:root {
  --ink-950: #141112;
  --ink-900: #231f20;
  --ink-850: #302b2c;
  --ink-800: #403a3c;
  --ink-700: #514b4d;
  --ink-500: #777274;
  --ink-300: #aaa7a8;
  --ink-200: #d8d6d6;
  --ink-100: #eceaea;
  --ink-50: #f7f6f5;
  --white: #ffffff;
  --teal: #f2ad00;
  --teal-dark: #a86f00;
  --teal-soft: #fff3cf;
  --gold: #8b8b8b;
  --gold-soft: #efefef;
  --coral: #f26d5b;
  --coral-soft: #fee9e6;
  --blue: #4f8cff;
  --blue-soft: #e9f0ff;
  --shadow-sm: 0 8px 24px rgba(4, 20, 25, .07);
  --shadow-lg: 0 28px 80px rgba(4, 20, 25, .22);
  --radius: 20px;
  --sidebar: 264px;
  font-family: "Segoe UI Variable", "Segoe UI", Inter, system-ui, -apple-system, sans-serif;
  color: var(--ink-900);
  background: var(--ink-50);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: var(--ink-50); }
button, input, select { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.skip-link { position: fixed; z-index: 1000; left: 1rem; top: -5rem; padding: .8rem 1rem; background: var(--teal); color: var(--ink-950); border-radius: 10px; font-weight: 800; }
.skip-link:focus { top: 1rem; }

.auth-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(390px, .75fr); background: var(--ink-900); color: var(--white); }
.auth-visual { min-height: 720px; padding: clamp(36px, 5vw, 74px); position: relative; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; isolation: isolate; }
.auth-visual::before { content: ""; position: absolute; inset: 0; z-index: -3; background: radial-gradient(circle at 74% 17%, rgba(242, 173, 0, .2), transparent 25%), linear-gradient(135deg, #1a1718 0%, #302b2c 70%, #242021 100%); }
.auth-visual::after { content: ""; position: absolute; width: 360px; height: 360px; left: -190px; top: 27%; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; box-shadow: 0 0 0 70px rgba(255,255,255,.025), 0 0 0 140px rgba(255,255,255,.015); z-index: -1; }
.industrial-grid { position: absolute; inset: 0; opacity: .12; z-index: -2; background-image: linear-gradient(rgba(255,255,255,.14) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.14) 1px, transparent 1px); background-size: 52px 52px; mask-image: linear-gradient(to bottom right, black, transparent 78%); }
.auth-brand { display: flex; align-items: center; gap: 22px; position: relative; z-index: 2; }
.logo-plate { width: clamp(230px, 28vw, 360px); padding: 12px 16px; border-radius: 10px; background: white; box-shadow: 0 16px 40px rgba(0,0,0,.25); clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px); }
.company-logo { display: block; width: 100%; height: auto; object-fit: contain; }
.auth-brand h1 { max-width: 350px; margin: 6px 0 0; font-size: clamp(1.25rem, 1.7vw, 1.8rem); line-height: 1.1; letter-spacing: -.035em; }
.eyebrow { display: block; color: var(--teal); font-size: .7rem; font-weight: 850; text-transform: uppercase; letter-spacing: .16em; }
.eyebrow.dark { color: var(--teal-dark); }
.auth-copy { max-width: 650px; position: relative; z-index: 2; padding-bottom: 106px; }
.auth-copy > p { margin: 0 0 34px; max-width: 560px; font-size: clamp(2rem, 4vw, 4.25rem); line-height: .98; letter-spacing: -.055em; font-weight: 760; }
.value-list { display: flex; gap: 16px; }
.value-list div { width: min(180px, 31%); border-top: 1px solid rgba(255,255,255,.22); padding-top: 13px; }
.value-list span { color: var(--gold); font-size: .72rem; font-weight: 800; letter-spacing: .12em; }
.value-list p { margin: 8px 0 0; color: rgba(255,255,255,.65); font-size: .82rem; line-height: 1.5; }
.rig-scene { position: absolute; right: -6%; bottom: -1px; width: 86%; max-height: 48%; color: rgba(242, 173, 0, .55); z-index: 0; }
.pipe-lines { color: rgba(244, 184, 74, .32); }
.auth-panel { background: var(--ink-50); color: var(--ink-900); display: grid; place-items: center; align-content: center; padding: clamp(24px, 5vw, 72px); position: relative; }
.login-card { width: min(100%, 430px); background: var(--white); border: 1px solid rgba(4,20,25,.07); border-radius: 28px; padding: clamp(28px, 4vw, 46px); box-shadow: var(--shadow-lg); }
.status-chip { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 7px 11px; background: var(--teal-soft); color: var(--teal-dark); font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.status-chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 5px rgba(242,173,0,.14); }
.login-card h2 { font-size: clamp(2.1rem, 4vw, 3rem); margin: 26px 0 8px; letter-spacing: -.05em; }
.muted { color: var(--ink-500); line-height: 1.65; }
.button { min-height: 47px; border-radius: 12px; border: 0; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-weight: 750; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button--primary { background: var(--teal); color: var(--ink-950); box-shadow: 0 10px 20px rgba(242,173,0,.22); }
.button--primary:hover { background: #ffc12b; box-shadow: 0 14px 30px rgba(242,173,0,.3); }
.button--ghost { background: transparent; color: var(--ink-800); border: 1px solid var(--ink-200); }
.google-fallback, .google-button-host { width: 100%; margin-top: 28px; }
.google-fallback { background: var(--white); color: var(--ink-900); border: 1px solid var(--ink-200); box-shadow: 0 5px 13px rgba(4,20,25,.04); }
.google-fallback svg { width: 20px; }
.google-button-host:not(:empty) + .google-fallback { display: none; }
.divider { display: flex; align-items: center; gap: 14px; margin: 24px 0; color: var(--ink-500); font-size: .76rem; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--ink-200); }
.login-card .button--ghost { width: 100%; }
.login-note { margin: 22px 0 0; color: var(--ink-500); font-size: .72rem; text-align: center; }
.login-note strong { color: var(--ink-800); }
.auth-footer { position: absolute; bottom: 24px; color: var(--ink-500); font-size: .7rem; letter-spacing: .08em; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: var(--sidebar) 1fr; grid-template-rows: 76px 1fr; grid-template-areas: "sidebar topbar" "sidebar main"; }
.sidebar { grid-area: sidebar; position: fixed; inset: 0 auto 0 0; width: var(--sidebar); padding: 28px 18px 20px; background: var(--ink-900); color: var(--white); display: flex; flex-direction: column; z-index: 20; }
.brand-lockup { display: block; margin: 0 2px; padding: 10px 12px 15px; border-bottom: 1px solid rgba(255,255,255,.1); background: white; clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px); }
.sidebar-logo { width: 100%; }
.brand-lockup span { display: block; color: var(--ink-700); font-size: .64rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; margin: 8px 1px 0; }
.sidebar nav { display: grid; gap: 6px; margin-top: 28px; }
.nav-item { width: 100%; min-height: 46px; border: 0; border-radius: 11px; padding: 0 12px; color: rgba(255,255,255,.58); background: transparent; display: flex; align-items: center; gap: 12px; text-align: left; font-weight: 650; font-size: .88rem; }
.nav-item:hover { color: var(--white); background: rgba(255,255,255,.06); }
.nav-item.active { color: var(--ink-950); background: var(--teal); box-shadow: 0 10px 25px rgba(242,173,0,.2); }
.nav-icon { width: 20px; height: 20px; flex: 0 0 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; opacity: .88; transition: transform .2s ease, opacity .2s ease; }
.nav-item:hover .nav-icon { opacity: 1; transform: translateX(1px); }
.nav-item.active .nav-icon { opacity: 1; stroke-width: 2; }
.nav-count { margin-left: auto; min-width: 24px; padding: 3px 7px; text-align: center; color: var(--ink-900); background: rgba(255,255,255,.75); border-radius: 999px; font-size: .68rem; }
.sidebar-foot { margin-top: auto; }
.system-health { margin: 20px 6px; padding: 14px; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.035); border-radius: 14px; display: flex; gap: 10px; align-items: flex-start; }
.system-health > span { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); margin-top: 4px; box-shadow: 0 0 0 5px rgba(242,173,0,.14); }
.system-health strong, .system-health small { display: block; }
.system-health strong { font-size: .73rem; }
.system-health small { color: rgba(255,255,255,.42); font-size: .61rem; margin-top: 4px; }
.topbar { grid-area: topbar; position: sticky; top: 0; z-index: 15; height: 76px; padding: 0 34px; background: rgba(245,248,247,.86); backdrop-filter: blur(18px); border-bottom: 1px solid var(--ink-100); display: flex; align-items: center; justify-content: space-between; }
.search-box { width: min(480px, 48vw); height: 43px; display: flex; align-items: center; gap: 10px; padding: 0 14px; border: 1px solid var(--ink-200); border-radius: 12px; background: var(--white); color: var(--ink-500); }
.search-box:focus-within { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(242,173,0,.12); }
.search-box input { min-width: 0; width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink-900); }
.search-box input::placeholder { color: var(--ink-300); }
.topbar-actions, .profile { display: flex; align-items: center; gap: 14px; }
.icon-button { width: 39px; height: 39px; display: grid; place-items: center; border: 1px solid var(--ink-200); border-radius: 11px; background: var(--white); color: var(--ink-700); }
.notification { position: relative; font-size: 1.2rem; }
.notification i { position: absolute; top: 8px; right: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--coral); border: 1px solid white; }
.profile { padding-left: 5px; }
.avatar { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: linear-gradient(135deg, var(--teal), #ffd05b); color: var(--ink-950); font-size: .72rem; font-weight: 900; }
.profile strong, .profile span { display: block; }
.profile strong { font-size: .78rem; }
.profile span { color: var(--ink-500); font-size: .65rem; margin-top: 2px; }
.profile > span { font-size: .9rem; }
.menu-toggle { display: none; }
.main { grid-area: main; padding: 34px; min-width: 0; }
.page { display: none; animation: page-in .35s ease both; }
.active-page { display: block; }
@keyframes page-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.page-heading h1 { margin: 6px 0 4px; font-size: clamp(2rem, 3vw, 2.8rem); letter-spacing: -.055em; }
.page-heading p { margin: 0; color: var(--ink-500); }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; margin-bottom: 18px; }
.metric-card { position: relative; overflow: hidden; min-height: 164px; padding: 22px; border: 1px solid var(--ink-100); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-sm); }
.metric-card::after { content: ""; position: absolute; right: -42px; bottom: -48px; width: 130px; height: 130px; border-radius: 50%; background: var(--accent-soft); }
.metric-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--accent); }
.accent-teal { --accent: var(--teal); --accent-soft: var(--teal-soft); }.accent-gold { --accent: var(--gold); --accent-soft: var(--gold-soft); }.accent-coral { --accent: var(--coral); --accent-soft: var(--coral-soft); }.accent-blue { --accent: var(--blue); --accent-soft: var(--blue-soft); }
.metric-top { display: flex; align-items: center; justify-content: space-between; color: var(--ink-500); font-size: .78rem; font-weight: 650; }
.metric-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; color: var(--accent); background: var(--accent-soft); font-size: 1rem; }
.metric-card > strong { display: block; margin: 15px 0 8px; font-size: 2rem; letter-spacing: -.05em; }
.metric-card small { color: var(--ink-500); }.metric-card small b { color: var(--accent); }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(300px, .85fr); gap: 18px; }
.panel { background: var(--white); border: 1px solid var(--ink-100); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 22px; min-width: 0; }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.panel h2 { margin: 0 0 5px; font-size: 1.05rem; letter-spacing: -.02em; }
.panel-head p { margin: 0; color: var(--ink-500); font-size: .76rem; }
.panel select, .toolbar select, .form-grid select { min-height: 40px; border: 1px solid var(--ink-200); background: var(--white); color: var(--ink-700); border-radius: 10px; padding: 0 12px; outline: 0; }
.chart-legend { display: flex; gap: 20px; justify-content: flex-end; margin: 18px 0 4px; color: var(--ink-500); font-size: .7rem; }
.chart-legend i, .donut-legend i { display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; }.teal { background: var(--teal); }.gold { background: var(--gold); }.coral { background: var(--coral); }
.bar-chart { position: relative; height: 260px; margin: 8px 0 0 34px; border-bottom: 1px solid var(--ink-200); display: flex; align-items: flex-end; justify-content: space-around; }
.chart-line { position: absolute; left: 0; right: 0; border-top: 1px dashed var(--ink-100); }.chart-line span { position: absolute; left: -40px; top: -8px; color: var(--ink-300); font-size: .58rem; }.l1 { top: 8%; }.l2 { top: 31%; }.l3 { top: 54%; }.l4 { top: 77%; }
.bar-group { z-index: 1; height: 100%; width: 12%; display: flex; align-items: flex-end; justify-content: center; gap: 5px; position: relative; padding-bottom: 26px; }
.bar-group i, .bar-group b { width: 14px; height: var(--h); max-height: calc(100% - 27px); display: block; border-radius: 6px 6px 2px 2px; }.bar-group i { background: linear-gradient(to top, var(--teal-dark), var(--teal)); }.bar-group b { background: repeating-linear-gradient(-45deg, var(--gold-soft), var(--gold-soft) 4px, rgba(139,139,139,.55) 5px, rgba(139,139,139,.55) 7px); }
.bar-group span { position: absolute; bottom: 7px; color: var(--ink-500); font-size: .6rem; font-weight: 800; }
.donut-row { display: flex; align-items: center; justify-content: center; gap: 24px; min-height: 288px; }
.donut { width: 148px; height: 148px; flex: 0 0 auto; padding: 18px; border-radius: 50%; background: conic-gradient(var(--teal) 0 66%, var(--gold) 66% 83%, var(--coral) 83%); box-shadow: inset 0 0 0 1px rgba(4,20,25,.03); }
.donut > div { width: 100%; height: 100%; display: grid; place-content: center; text-align: center; background: var(--white); border-radius: 50%; box-shadow: 0 0 0 7px rgba(255,255,255,.5); }.donut strong { font-size: 1.8rem; }.donut span { color: var(--ink-500); font-size: .68rem; }
.donut-legend { width: 130px; display: grid; gap: 14px; }.donut-legend > div { display: grid; grid-template-columns: auto 1fr auto; align-items: center; color: var(--ink-500); font-size: .72rem; }.donut-legend b { color: var(--ink-900); }
.contracts-panel { grid-column: 1; }.deadlines-panel { grid-column: 2; grid-row: 2; }
.table-wrap { overflow-x: auto; margin: 17px -4px 0; }
table { width: 100%; border-collapse: collapse; min-width: 650px; }
th { padding: 10px 12px; color: var(--ink-500); text-align: left; font-size: .63rem; text-transform: uppercase; letter-spacing: .07em; font-weight: 800; border-bottom: 1px solid var(--ink-100); }
td { padding: 14px 12px; border-bottom: 1px solid var(--ink-100); font-size: .76rem; color: var(--ink-700); }
tbody tr:last-child td { border-bottom: 0; } tbody tr:hover { background: var(--ink-50); }
.contract-name { display: flex; align-items: center; gap: 10px; min-width: 200px; }.contract-name i { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 9px; font-style: normal; background: var(--teal-soft); color: var(--teal-dark); font-weight: 900; }.contract-name strong { display: block; color: var(--ink-900); }.contract-name small { color: var(--ink-500); }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 9px; border-radius: 999px; font-size: .64rem; font-weight: 800; white-space: nowrap; }.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }.badge.activo { background: var(--teal-soft); color: var(--teal-dark); }.badge.revision { background: var(--gold-soft); color: #ac7111; }.badge.vencer { background: var(--coral-soft); color: #c94a3a; }
.text-button { border: 0; background: transparent; color: var(--teal-dark); font-size: .74rem; font-weight: 800; }
.row-menu { width: 30px; height: 30px; border: 0; background: transparent; color: var(--ink-500); border-radius: 8px; }.row-menu:hover { background: var(--ink-100); }
.month-pill { padding: 6px 9px; border-radius: 8px; background: var(--ink-50); color: var(--ink-500); font-size: .62rem; font-weight: 800; }
.timeline { margin-top: 24px; display: grid; gap: 17px; }.timeline-item { display: grid; grid-template-columns: 42px 10px 1fr; gap: 12px; align-items: start; }.date-box { text-align: center; padding: 7px 4px; border: 1px solid var(--ink-100); border-radius: 9px; }.date-box strong, .date-box span { display: block; }.date-box strong { font-size: 1rem; }.date-box span { color: var(--ink-500); font-size: .55rem; font-weight: 800; }.timeline-dot { position: relative; width: 9px; height: 9px; margin-top: 11px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 5px var(--teal-soft); }.timeline-dot::after { content: ""; position: absolute; top: 14px; left: 4px; width: 1px; height: 47px; background: var(--ink-100); }.timeline-item:last-child .timeline-dot::after { display: none; }.timeline-copy strong { display: block; font-size: .75rem; margin-top: 2px; }.timeline-copy span { color: var(--ink-500); font-size: .66rem; }
.toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }.toolbar .compact { width: min(360px, 100%); }.toolbar .button { min-height: 40px; margin-left: auto; }
.company-page { max-width: 1280px; margin: 0 auto; }
.company-heading { align-items: center; }
.company-heading-actions { display: flex; align-items: center; gap: 12px; }
.save-state { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-500); font-size: .75rem; font-weight: 750; white-space: nowrap; }
.save-state i { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 5px var(--gold-soft); }
.save-state.saved { color: var(--teal-dark); }
.save-state.saved i { background: var(--teal); box-shadow: 0 0 0 5px var(--teal-soft); }
.company-form { display: grid; gap: 18px; }
.form-section { background: var(--white); border: 1px solid var(--ink-100); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 25px; }
.section-heading { display: flex; align-items: flex-start; gap: 14px; padding-bottom: 20px; margin-bottom: 22px; border-bottom: 1px solid var(--ink-100); }
.section-heading > span { width: 38px; height: 38px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 11px; background: var(--teal-soft); color: var(--teal-dark); font-size: .72rem; font-weight: 900; }
.section-heading h2 { margin: 1px 0 4px; font-size: 1.12rem; letter-spacing: -.025em; }
.section-heading p { margin: 0; color: var(--ink-500); font-size: .82rem; line-height: 1.5; }
.data-form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 19px 17px; }
.data-form-grid label { min-width: 0; color: var(--ink-700); font-size: .875rem; font-weight: 750; }
.data-form-grid .span-2 { grid-column: span 2; }
.data-form-grid .span-3 { grid-column: 1 / -1; }
.data-form-grid input, .data-form-grid select, .data-form-grid textarea { display: block; width: 100%; margin-top: 8px; border: 1px solid var(--ink-200); border-radius: 11px; background: var(--white); color: var(--ink-900); font: inherit; font-weight: 500; outline: 0; transition: border-color .2s ease, box-shadow .2s ease, background .2s ease; }
.data-form-grid input, .data-form-grid select { min-height: 46px; padding: 0 13px; }
.data-form-grid textarea { min-height: 96px; padding: 12px 13px; resize: vertical; line-height: 1.5; }
.data-form-grid input::placeholder, .data-form-grid textarea::placeholder { color: var(--ink-300); }
.data-form-grid input:focus, .data-form-grid select:focus, .data-form-grid textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(242,173,0,.12); background: #fffdfa; }
.company-form-actions { position: sticky; bottom: 16px; z-index: 4; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 15px 17px; border: 1px solid var(--ink-100); border-radius: 15px; background: rgba(255,255,255,.94); box-shadow: var(--shadow-lg); backdrop-filter: blur(16px); }
.company-form-actions p { margin: 0; color: var(--ink-500); font-size: .76rem; line-height: 1.45; }
.company-form-actions strong { color: var(--ink-700); }
.placeholder-page { min-height: calc(100vh - 160px); place-content: center; text-align: center; }.placeholder-page.active-page { display: grid; }.placeholder-art { width: 98px; height: 98px; margin: 0 auto 25px; display: grid; place-items: center; border-radius: 28px; background: linear-gradient(135deg, var(--teal-soft), var(--gold-soft)); color: var(--teal-dark); font-size: 2.6rem; transform: rotate(-5deg); }.placeholder-page h1 { margin: 8px 0; font-size: 2.4rem; letter-spacing: -.05em; }.placeholder-page p { max-width: 500px; margin: 0 auto 22px; color: var(--ink-500); line-height: 1.7; }
dialog { width: min(620px, calc(100% - 28px)); border: 0; border-radius: 24px; padding: 0; box-shadow: var(--shadow-lg); color: var(--ink-900); } dialog::backdrop { background: rgba(35,31,32,.65); backdrop-filter: blur(4px); } dialog form { padding: 28px; }.dialog-head, .dialog-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; }.dialog-head h2 { margin: 5px 0 0; font-size: 1.8rem; letter-spacing: -.04em; }.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; margin: 27px 0; }.form-grid label { color: var(--ink-700); font-size: .72rem; font-weight: 750; }.form-grid .full { grid-column: 1 / -1; }.form-grid input, .form-grid select { width: 100%; height: 45px; margin-top: 7px; border: 1px solid var(--ink-200); border-radius: 10px; padding: 0 12px; color: var(--ink-900); outline: 0; }.form-grid input:focus, .form-grid select:focus { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(242,173,0,.12); }.dialog-actions { justify-content: flex-end; padding-top: 20px; border-top: 1px solid var(--ink-100); }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 100; display: flex; gap: 11px; align-items: center; max-width: 380px; padding: 14px 18px; border-radius: 14px; color: white; background: var(--ink-900); box-shadow: var(--shadow-lg); transform: translateY(140%); opacity: 0; transition: .35s ease; }.toast.show { transform: none; opacity: 1; }.toast span { color: var(--teal); font-weight: 900; }.toast p { margin: 0; font-size: .8rem; }

@media (max-width: 1350px) { .metric-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 1120px) { .dashboard-grid { grid-template-columns: 1fr; }.contracts-panel, .deadlines-panel { grid-column: 1; grid-row: auto; }.donut-row { min-height: 220px; }.data-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }.data-form-grid .span-3 { grid-column: 1 / -1; } }
@media (max-width: 900px) { .auth-shell { grid-template-columns: 1fr; }.auth-visual { min-height: 560px; }.auth-panel { min-height: 600px; }.app-shell { grid-template-columns: 1fr; grid-template-areas: "topbar" "main"; }.sidebar { transform: translateX(-105%); transition: transform .25s ease; box-shadow: var(--shadow-lg); }.sidebar.open { transform: none; }.menu-toggle { display: grid; }.topbar { padding: 0 18px; }.topbar > .search-box { width: 42vw; }.main { padding: 24px 18px; } }
@media (max-width: 620px) { .auth-visual { min-height: 550px; padding: 28px 22px; }.auth-brand { align-items: flex-start; flex-direction: column; }.logo-plate { width: min(100%, 330px); }.auth-copy { padding-bottom: 50px; }.auth-copy > p { font-size: 2.25rem; }.value-list { display: none; }.rig-scene { width: 130%; right: -32%; }.auth-panel { min-height: 560px; padding: 22px 14px 70px; }.login-card { padding: 28px 22px; border-radius: 22px; }.profile > div:not(.avatar), .profile > span, .notification { display: none; }.topbar > .search-box { width: auto; flex: 1; margin-left: 10px; }.page-heading { align-items: flex-start; flex-direction: column; }.page-heading .button { width: 100%; }.company-heading-actions { width: 100%; align-items: stretch; flex-direction: column; }.company-heading-actions .save-state { justify-content: center; }.metric-grid { grid-template-columns: 1fr; }.metric-card { min-height: 146px; }.panel { padding: 18px 14px; }.performance-panel { overflow: hidden; }.bar-chart { height: 230px; }.donut-row { flex-direction: column; }.donut-legend { width: 180px; }.toolbar { align-items: stretch; flex-direction: column; }.toolbar .compact, .toolbar select, .toolbar .button { width: 100%; margin: 0; }.form-grid, .data-form-grid { grid-template-columns: 1fr; }.form-grid .full, .data-form-grid .span-2, .data-form-grid .span-3 { grid-column: auto; }.form-section { padding: 20px 16px; }.company-form-actions { position: static; align-items: stretch; flex-direction: column; }.company-form-actions .button { width: 100%; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; } }
