:root {
  --ink: #11183d;
  --ink-soft: #414a6b;
  --forest: #283593;
  --forest-dark: #17205f;
  --mint: #dcf7f4;
  --mint-soft: #f4f3ff;
  --gold: #c2410c;
  --gold-soft: #fff1eb;
  --danger: #a92b2b;
  --danger-soft: #fff0f0;
  --success: #17643f;
  --surface: #ffffff;
  --canvas: #f8f9ff;
  --border: #dfe2f2;
  --muted: #69718e;
  --shadow: 0 18px 45px rgba(40, 53, 147, .10);
  --radius-sm: .5rem;
  --radius: .875rem;
  --radius-lg: 1.25rem;
  --container: 1180px;
  --focus: #0d6efd;
  --ease: 180ms ease;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--canvas); font-family: "Noto Sans Tamil", "Segoe UI", Arial, sans-serif; font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--forest); text-underline-offset: .2em; }
a:hover { color: var(--forest-dark); }
button, input, select, textarea { font: inherit; }
button, a { touch-action: manipulation; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
img, svg { max-width: 100%; }
h1, h2, h3 { margin: 0 0 .65em; color: var(--ink); line-height: 1.15; letter-spacing: -.025em; }
h1 { font-size: clamp(2.3rem, 5vw, 4.8rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.35rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1rem; }
.container { width: min(calc(100% - 2rem), var(--container)); margin-inline: auto; }
.narrow { max-width: 760px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 1000; background: var(--ink); color: white; padding: .75rem 1rem; border-radius: var(--radius-sm); }
.skip-link:focus { top: 1rem; }

.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--border); backdrop-filter: blur(12px); }
.nav-shell { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .8rem; color: var(--ink); font-weight: 800; text-decoration: none; letter-spacing: -.02em; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--forest); color: white; font-size: .83rem; letter-spacing: .06em; }
.site-nav { display: flex; align-items: center; gap: 1.35rem; }
.site-nav > a, .link-button { color: var(--ink-soft); font-size: .94rem; font-weight: 650; text-decoration: none; }
.site-nav > a:hover, .link-button:hover { color: var(--forest); }
.language-link { border-left: 1px solid var(--border); padding-left: 1.25rem; }
.nav-form { margin: 0; }
.link-button { border: 0; padding: .65rem 0; background: none; cursor: pointer; }
.nav-toggle { display: none; width: 48px; height: 48px; border: 1px solid var(--border); background: white; border-radius: var(--radius-sm); padding: 12px; }
.nav-toggle span:not(.sr-only) { display: block; height: 2px; margin: 5px 0; background: var(--ink); }

.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; border: 2px solid var(--forest); border-radius: var(--radius-sm); padding: .7rem 1.2rem; background: var(--forest); color: white; font-weight: 750; text-decoration: none; cursor: pointer; transition: background var(--ease), border-color var(--ease), color var(--ease), opacity var(--ease); }
.button:hover { color: white; background: var(--forest-dark); border-color: var(--forest-dark); }
.button-secondary { color: var(--forest); background: transparent; }
.button-secondary:hover { color: white; }
.button-small { min-height: 42px; padding: .45rem .8rem; font-size: .9rem; }
.button-large { min-height: 54px; padding-inline: 1.6rem; }
.button-block { width: 100%; }
.button-danger { background: var(--danger); border-color: var(--danger); }
.button-danger:hover { background: #7e2020; border-color: #7e2020; }
.button:disabled { opacity: .45; cursor: not-allowed; }
.button-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.text-link { font-weight: 750; }

.hero { min-height: 680px; display: grid; align-items: center; padding: 6rem 0; background: var(--mint-soft); border-bottom: 1px solid var(--border); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(3rem, 7vw, 7rem); align-items: center; }
.hero-grid > * { min-width: 0; }
.hero-copy h1, .hero-copy p { overflow-wrap: anywhere; }
.hero-copy .lead { max-width: 650px; }
.eyebrow { margin-bottom: .9rem; color: var(--forest); font-size: .78rem; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.lead { color: var(--ink-soft); font-size: clamp(1.1rem, 2vw, 1.35rem); line-height: 1.55; }
.lead-small { color: var(--ink-soft); font-size: 1.08rem; }
.hero-copy .button-row { margin: 2rem 0 1rem; }
.hero-trust { color: var(--muted); font-size: .9rem; }
.hero-panel { min-width: 0; padding: clamp(1.25rem, 3vw, 2rem); border: 1px solid var(--border); border-radius: var(--radius-lg); background: white; box-shadow: var(--shadow); }
.panel-head, .panel-foot, .result-head, .card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.panel-head span { display: block; color: var(--muted); font-size: .9rem; }
.panel-head strong { display: block; margin-top: .15rem; font-size: 1.75rem; font-variant-numeric: tabular-nums; }
.mini-chart { height: 260px; display: flex; align-items: end; gap: .55rem; margin-top: 2rem; padding-top: 1rem; border-bottom: 1px solid var(--border); background: repeating-linear-gradient(to top, transparent 0, transparent 63px, #edf2ef 64px); }
.mini-chart span { position: relative; flex: 1; min-width: 8px; max-height: 94%; background: var(--forest); border-radius: 4px 4px 0 0; }
.mini-chart i { position: absolute; bottom: -1.75rem; width: 100%; color: var(--muted); font-size: .7rem; font-style: normal; text-align: center; }
.panel-foot { margin-top: 2rem; color: var(--muted); font-size: .8rem; }
.fine-print { margin-top: 1.5rem; color: var(--muted); font-size: .8rem; }

.section { padding: clamp(4rem, 8vw, 7rem) 0; }
.section-tight { padding-top: 3rem; }
.soft-section { background: var(--mint-soft); border-block: 1px solid var(--border); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.feature { padding: 1.6rem; border: 1px solid var(--border); border-radius: var(--radius); background: white; }
.feature p { color: var(--ink-soft); }
.icon-circle { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 1.25rem; border-radius: 50%; background: var(--mint); color: var(--forest); font-weight: 800; font-variant-numeric: tabular-nums; }
.split { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 7vw, 6rem); align-items: start; }
.step-list { margin: 0; padding: 0; list-style: none; counter-reset: steps; }
.step-list li { position: relative; padding: 0 0 2rem 4rem; counter-increment: steps; }
.step-list li::before { content: counter(steps); position: absolute; left: 0; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--forest); color: white; font-weight: 800; }
.step-list li:not(:last-child)::after { content: ""; position: absolute; left: 20px; top: 46px; bottom: 4px; width: 2px; background: var(--border); }
.step-list strong, .step-list span { display: block; }
.step-list span { color: var(--ink-soft); }
.callout { display: flex; justify-content: space-between; align-items: center; gap: 2rem; padding: clamp(2rem, 5vw, 4rem); border-radius: var(--radius-lg); background: var(--ink); color: white; }
.callout h2, .callout .eyebrow { color: white; }

.page-hero { padding: clamp(4rem, 8vw, 7rem) 0 3rem; background: var(--mint-soft); border-bottom: 1px solid var(--border); }
.page-hero h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
.notice { margin-bottom: 2rem; padding: 1.25rem 1.4rem; border-left: 4px solid var(--gold); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background: var(--gold-soft); }
.notice p { margin: .4rem 0 0; }
.badge { display: inline-flex; align-items: center; min-height: 28px; padding: .2rem .55rem; border-radius: 999px; background: var(--mint); color: var(--forest-dark); font-size: .76rem; font-weight: 800; white-space: nowrap; }
.badge-warning { background: var(--gold-soft); color: #6f480f; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 2rem; }
.metric-grid article { padding: 1.35rem; border: 1px solid var(--border); border-radius: var(--radius); background: white; }
.metric-grid span, .summary-grid span { display: block; color: var(--muted); font-size: .85rem; }
.metric-grid strong { display: block; margin-top: .35rem; font-size: 1.65rem; font-variant-numeric: tabular-nums; }
.metric-grid.compact { grid-template-columns: repeat(5, 1fr); }
.table-card, .card { border: 1px solid var(--border); border-radius: var(--radius); background: white; overflow: hidden; }
.table-card { margin: 1.5rem 0; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
caption { padding: 1rem; color: var(--ink); font-weight: 800; text-align: left; }
th { background: #f0f5f2; color: var(--ink-soft); font-size: .78rem; letter-spacing: .04em; text-align: left; text-transform: uppercase; }
th, td { padding: .9rem 1rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
.tabular { font-variant-numeric: tabular-nums; }
.projection-note { max-width: 760px; margin-top: 3rem; }
.prose { max-width: 880px; }
.prose > p { max-width: 75ch; color: var(--ink-soft); }
.prose > h2 { margin-top: 2.5rem; }
.legal-date { color: var(--muted); font-size: .9rem; }
.journey { margin: 0; padding: 0; list-style: none; }
.journey li { display: grid; grid-template-columns: 56px 1fr; gap: 1.25rem; padding: 1.5rem 0; border-bottom: 1px solid var(--border); }
.journey li > span { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--forest); color: white; font-weight: 800; }
.accordion details { margin-bottom: .75rem; border: 1px solid var(--border); border-radius: var(--radius-sm); background: white; }
.accordion summary { min-height: 52px; padding: 1rem 3rem 1rem 1.25rem; font-weight: 750; cursor: pointer; }
.accordion details p { padding: 0 1.25rem 1.25rem; color: var(--ink-soft); }

.form-container { max-width: 900px; }
.form-card { padding: clamp(1.25rem, 4vw, 2.2rem); border: 1px solid var(--border); border-radius: var(--radius); background: white; box-shadow: var(--shadow); }
.form-card fieldset { margin: 0 0 2.5rem; padding: 0; border: 0; }
.form-card legend { width: 100%; margin-bottom: 1.25rem; padding-bottom: .75rem; border-bottom: 1px solid var(--border); color: var(--ink); font-size: 1.35rem; font-weight: 800; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.field { margin-bottom: 1.2rem; }
.form-grid .field { margin: 0; }
.field-full { grid-column: 1 / -1; }
label { display: block; margin-bottom: .42rem; color: var(--ink); font-size: .9rem; font-weight: 700; }
input, select, textarea, .read-only { width: 100%; min-height: 48px; border: 1px solid #aab9b2; border-radius: var(--radius-sm); background: white; color: var(--ink); padding: .7rem .8rem; transition: border-color var(--ease), box-shadow var(--ease); }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--focus); box-shadow: 0 0 0 3px rgba(13,110,253,.14); outline: 0; }
.read-only { background: #f0f4f2; }
.field small { display: block; margin-top: .35rem; color: var(--muted); font-size: .78rem; }
.field-warning { color: var(--danger); font-size: .85rem; }
.field-help { margin: .85rem 0 0; padding: .85rem 1rem; border-left: 4px solid var(--success); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background: #edfaf3; color: var(--ink-soft); font-size: .85rem; line-height: 1.55; }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 4.5rem; }
.password-toggle { position: absolute; right: 4px; top: 4px; min-width: 48px; min-height: 40px; border: 0; background: transparent; color: var(--forest); font-size: .8rem; font-weight: 800; cursor: pointer; }
.checkbox { display: grid; grid-template-columns: 22px 1fr; gap: .75rem; align-items: start; margin: 1rem 0 2rem; }
.checkbox input { width: 22px; min-height: 22px; margin: 2px 0 0; }
.form-foot { margin: 1rem 0 0; text-align: center; }
.progress-steps { display: flex; gap: .5rem; margin-top: 2rem; overflow-x: auto; }
.progress-steps span { min-width: max-content; padding: .5rem .75rem; border-radius: 999px; background: white; color: var(--muted); font-size: .8rem; font-weight: 700; }
.progress-steps .active { background: var(--forest); color: white; }
.auth-section { min-height: 70vh; display: grid; align-items: center; padding: 5rem 0; }
.auth-grid { display: grid; grid-template-columns: 1fr 460px; gap: clamp(2rem, 8vw, 7rem); align-items: center; }
.check-list { padding-left: 1.3rem; color: var(--ink-soft); }

.flash-region { position: fixed; z-index: 500; top: 88px; left: 50%; transform: translateX(-50%); width: min(calc(100% - 2rem), 720px); }
.alert { margin-bottom: .5rem; padding: .9rem 1rem; border: 1px solid; border-radius: var(--radius-sm); background: white; box-shadow: var(--shadow); }
.alert-success { color: var(--success); border-color: #84c7a6; background: #edfaf3; }
.alert-danger { color: var(--danger); border-color: #e2a5a5; background: var(--danger-soft); }
.alert-warning { color: #6f480f; border-color: #e6ca7a; background: var(--gold-soft); }

.result-panel { margin-top: 2rem; padding: clamp(1.25rem, 4vw, 2rem); border: 1px solid var(--border); border-radius: var(--radius); background: white; }
.result-head { margin-bottom: 2rem; }
.result-head h2 { word-break: break-word; font-size: clamp(1.25rem, 4vw, 2rem); font-variant-numeric: tabular-nums; }
.status { display: inline-flex; align-items: center; min-height: 30px; padding: .25rem .65rem; border-radius: 999px; background: #e8edef; color: #3e5158; font-size: .76rem; font-weight: 850; white-space: nowrap; }
.status::before { content: ""; width: 7px; height: 7px; margin-right: .4rem; border-radius: 50%; background: currentColor; }
.status-approved, .status-active, .status-completed { background: #e2f5e9; color: #17643f; }
.status-submitted, .status-under_review { background: #e7f0ff; color: #265a9c; }
.status-documents_required, .status-pending { background: var(--gold-soft); color: #7a4d0b; }
.status-rejected, .status-suspended { background: var(--danger-soft); color: var(--danger); }
.summary-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-bottom: 2rem; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--border); overflow: hidden; }
.summary-grid > div { padding: 1rem; background: white; }
.summary-grid strong { display: block; margin-top: .25rem; font-variant-numeric: tabular-nums; }
.timeline { margin: 1rem 0 2rem; padding: 0; list-style: none; }
.timeline li { position: relative; display: grid; grid-template-columns: 24px 1fr; gap: .75rem; padding-bottom: 1.5rem; }
.timeline li > span { position: relative; z-index: 1; width: 13px; height: 13px; margin-top: .38rem; border: 3px solid white; border-radius: 50%; background: var(--forest); box-shadow: 0 0 0 2px var(--forest); }
.timeline li:not(:last-child)::before { content: ""; position: absolute; left: 6px; top: 18px; bottom: 0; width: 2px; background: var(--border); }
.timeline p, .timeline small { margin: .2rem 0 0; color: var(--muted); }
.document-list, .request-list { margin: 0; padding: 0; list-style: none; }
.document-list li, .request-list li { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--border); }
.document-list li > div, .document-list li > strong, .document-list li > span, .request-list li > div { min-width: 0; }
.document-list strong, .document-list span, .request-list strong, .request-list small { display: block; }
.empty-state { padding: 1.5rem; border: 1px dashed var(--border); border-radius: var(--radius-sm); background: #fafcfb; color: var(--muted); text-align: center; }

.dashboard-head { padding: 3.5rem 0 2rem; background: var(--mint-soft); border-bottom: 1px solid var(--border); }
.dashboard-head > .container { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; }
.dashboard-head h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
.registration-id { margin: 0; color: var(--muted); }
.registration-id strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.unit-price-line { margin-top: .25rem; }
.dashboard-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 1.25rem; margin-bottom: 1.25rem; align-items: start; }
.card { padding: 1.5rem; }
.action-card .button + .button { margin-top: .75rem; }
.privacy-tip { margin-top: 1.5rem; padding: 1rem; border-radius: var(--radius-sm); background: var(--mint-soft); }
.privacy-tip p { margin: .3rem 0 0; color: var(--ink-soft); font-size: .85rem; }
.section-card { margin-top: 1.25rem; }
.staff-head { background: #eef3f1; }
.back-link { display: inline-block; margin-bottom: .6rem; font-weight: 700; text-decoration: none; }
.review-row { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; padding: 1.25rem 0; border-bottom: 1px solid var(--border); }

.site-footer { padding: 4rem 0 1.5rem; background: var(--ink); color: #d7e2dd; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; }
.brand-light, .site-footer h2 { color: white; }
.site-footer h2 { font-size: .9rem; letter-spacing: .08em; text-transform: uppercase; }
.site-footer a:not(.brand) { display: block; margin: .45rem 0; color: #d7e2dd; }
.site-footer .brand-mark { background: white; color: var(--forest); }
.legal-note { display: flex; justify-content: space-between; gap: 2rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.16); color: #aebfb8; font-size: .78rem; }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .site-nav { position: absolute; top: 76px; left: 0; right: 0; display: none; align-items: stretch; flex-direction: column; gap: 0; padding: .75rem 1rem 1rem; border-bottom: 1px solid var(--border); background: white; box-shadow: var(--shadow); }
  .site-nav.open { display: flex; }
  .site-nav > a, .link-button { display: flex; align-items: center; min-height: 48px; width: 100%; padding: .6rem; }
  .language-link { border-left: 0; border-top: 1px solid var(--border); }
  .hero { min-height: 0; }
  .hero-grid, .auth-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: 760px; }
  .hero-panel { max-width: 660px; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .metric-grid.compact { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 720px) {
  .container { width: min(calc(100% - 1.25rem), var(--container)); }
  .hero { padding: 3.5rem 0; }
  .feature-grid, .split, .form-grid, .dashboard-grid, .footer-grid, .review-row { grid-template-columns: 1fr; }
  .field-full { grid-column: auto; }
  .callout, .dashboard-head > .container, .legal-note { align-items: flex-start; flex-direction: column; }
  .summary-grid { grid-template-columns: repeat(2, 1fr); }
  .form-card { box-shadow: none; }
  .document-list li { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 430px) {
  h1 { font-size: 2.35rem; }
  .brand > span:last-child { max-width: 160px; line-height: 1.1; }
  .button-row .button { width: 100%; }
  .mini-chart { height: 190px; gap: .35rem; }
  .metric-grid, .metric-grid.compact, .summary-grid { grid-template-columns: 1fr; }
  .panel-head, .result-head { align-items: flex-start; flex-direction: column; }
  th, td { padding: .75rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

@media print {
  .site-header, .site-footer, .button, .nav-toggle, .flash-region { display: none !important; }
  body { background: white; color: black; }
  .card, .table-card, .form-card { box-shadow: none; break-inside: avoid; }
}


/* Bilingual, approved-plan usability refinements */
.language-switch { display: inline-flex; align-items: center; gap: .2rem; padding: .2rem; border: 1px solid var(--border); border-radius: 999px; background: #f5f8f6; }
.language-switch a { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: .35rem .7rem; border-radius: 999px; color: var(--ink-soft); font-size: .85rem; font-weight: 750; text-decoration: none; }
.language-switch a[aria-current="true"] { background: var(--forest); color: white; }
.approval-banner { display: flex; align-items: flex-start; gap: .9rem; margin-bottom: 2rem; padding: 1.1rem 1.25rem; border: 1px solid #84c7a6; border-radius: var(--radius); background: #edfaf3; color: var(--success); }
.approval-banner p { margin: .25rem 0 0; color: var(--ink-soft); }
.approval-icon { display: grid; place-items: center; flex: 0 0 32px; width: 32px; height: 32px; border-radius: 50%; background: var(--success); color: white; font-weight: 900; }
.approved-text { color: var(--success) !important; font-weight: 750; }
.settlement-form { flex: 1 1 420px; max-width: 620px; padding: 1rem; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--mint-soft); }
.settlement-form fieldset { margin: 0; padding: 0; border: 0; }
.settlement-form legend { margin-bottom: .75rem; color: var(--ink); font-size: 1.05rem; font-weight: 800; }
.compact-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.compact-form-grid .field:last-child { grid-column: 1 / -1; }
.calculation-note { margin: .75rem 0; padding: .85rem 1rem; border-radius: var(--radius-sm); background: white; color: var(--ink-soft); font-size: .85rem; }
.calculation-note p { margin: .25rem 0 0; }
.notice-warning { border-color: #d9b65d; background: #fff9e8; }
.notice-success { border-color: #84c7a6; background: #edfaf3; }
.account-summary { margin-top: 1rem; }
.approval-steps { display: flex; align-items: center; gap: .75rem; margin: 0 0 2rem; padding: 0; list-style: none; overflow-x: auto; }
.approval-steps li { display: inline-flex; align-items: center; gap: .5rem; min-width: max-content; color: var(--muted); font-size: .86rem; font-weight: 750; }
.approval-steps li:not(:last-child)::after { content: ""; width: 42px; height: 2px; margin-left: .25rem; background: var(--border); }
.approval-steps span { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--border); border-radius: 50%; background: white; }
.approval-steps .active { color: var(--forest); }
.approval-steps .active span, .approval-steps .done span { border-color: var(--forest); background: var(--forest); color: white; }
.valuation-start-grid { align-items: start; }
.valuation-summary { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.review-controls, .approval-card { display: grid; grid-template-columns: 1fr minmax(300px, .65fr); gap: 2rem; align-items: start; margin-top: 1.25rem; }
.review-controls form, .approval-card form { margin: 0; }
.valuation-table td, .valuation-table th { white-space: nowrap; }
.value-positive { color: var(--success) !important; }
.value-negative { color: var(--danger) !important; }
.progress-pill { display: inline-flex; min-height: 30px; align-items: center; padding: .25rem .65rem; border-radius: 999px; font-weight: 850; font-variant-numeric: tabular-nums; }
.progress-pill.positive { background: #e2f5e9; color: var(--success); }
.progress-pill.negative { background: var(--danger-soft); color: var(--danger); }
.progress-history { overflow: hidden; }
.progress-highlight { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin: 1rem 0; }
.progress-highlight > div { padding: 1rem; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--mint-soft); }
.progress-highlight span { display: block; color: var(--muted); font-size: .8rem; }
.progress-highlight strong { display: block; margin-top: .25rem; font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.status-draft, .status-approving { background: var(--gold-soft); color: #7a4d0b; }
@media (max-width: 960px) { .valuation-summary { grid-template-columns: repeat(2, 1fr); } .review-controls, .approval-card { grid-template-columns: 1fr; } .progress-highlight { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .progress-highlight, .valuation-summary { grid-template-columns: 1fr; } .approval-steps li:not(:last-child)::after { width: 20px; } }
@media (max-width: 640px) { .compact-form-grid { grid-template-columns: 1fr; } .compact-form-grid .field:last-child { grid-column: auto; } }
.badge-success { background: #e2f5e9; color: #17643f; }
@media (max-width: 960px) { .language-switch { width: 100%; margin-top: .5rem; } .language-switch a { flex: 1; min-height: 48px; } }
/* SLP vibrant brand system */
.brand-logo { display: block; width: 56px; height: 56px; object-fit: contain; flex: 0 0 56px; }
.brand-light .brand-logo { padding: 4px; border-radius: 12px; background: white; }
.hero { position: relative; isolation: isolate; background-color: var(--mint-soft); background-image: linear-gradient(90deg, rgba(250,250,255,.99) 0%, rgba(250,250,255,.96) 38%, rgba(250,250,255,.67) 58%, rgba(250,250,255,.08) 100%), url('../img/slp-finance-background-v3.webp'); background-size: cover; background-position: center; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(40,53,147,.04)); pointer-events: none; }
.business-hero { position: relative; background-color: var(--mint-soft); background-image: linear-gradient(90deg, rgba(250,250,255,.99) 0%, rgba(250,250,255,.94) 48%, rgba(250,250,255,.42) 76%, rgba(250,250,255,.08) 100%), url('../img/slp-finance-background-v3.webp'); background-size: cover; background-position: center 54%; }
@media (max-width: 720px) { .hero, .business-hero { background-position: 66% center; background-image: linear-gradient(180deg, rgba(250,250,255,.99) 0%, rgba(250,250,255,.96) 58%, rgba(250,250,255,.78) 100%), url('../img/slp-finance-background-v3.webp'); } .brand-logo { width: 48px; height: 48px; flex-basis: 48px; } }
/* Investment operations cockpit */
.ops-head { background: linear-gradient(135deg, #eef3ff 0%, #f8f9ff 62%, #fff6ec 100%); }
.ops-dashboard { padding-bottom: 5rem; }
.ops-jump-nav { position: sticky; top: 77px; z-index: 20; display: flex; gap: .5rem; margin: -1rem 0 1.25rem; padding: .55rem; overflow-x: auto; border: 1px solid var(--border); border-radius: 999px; background: rgba(255,255,255,.96); box-shadow: 0 8px 24px rgba(40,53,147,.08); }
.ops-jump-nav a { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; min-width: max-content; padding: .4rem .85rem; border-radius: 999px; color: var(--ink-soft); font-size: .85rem; font-weight: 750; text-decoration: none; }
.ops-jump-nav a:hover { background: var(--mint-soft); color: var(--forest); }
.ops-kpi-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; margin-bottom: 1.25rem; }
.ops-kpi { position: relative; min-width: 0; padding: 1.2rem; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); background: white; color: var(--ink); text-decoration: none; transition: border-color var(--ease), box-shadow var(--ease), transform var(--ease); }
.ops-kpi::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--forest); }
.ops-kpi:hover { border-color: #aeb7e4; color: var(--ink); box-shadow: 0 12px 30px rgba(40,53,147,.10); transform: translateY(-2px); }
.ops-kpi span, .ops-kpi small { display: block; color: var(--muted); }
.ops-kpi span { font-size: .82rem; font-weight: 750; }
.ops-kpi strong { display: block; margin: .3rem 0 .2rem; overflow-wrap: anywhere; font-size: clamp(1.55rem, 3vw, 2.1rem); line-height: 1.15; font-variant-numeric: tabular-nums; }
.ops-kpi small { font-size: .78rem; }
.ops-kpi-primary { background: linear-gradient(135deg, var(--forest), var(--forest-dark)); color: white; }
.ops-kpi-primary::before { background: var(--gold); }
.ops-kpi-primary span, .ops-kpi-primary small { color: #e8ebff; }
.ops-kpi-primary:hover { color: white; }
.ops-kpi-buy::before { background: var(--success); }
.ops-kpi-sale::before { background: var(--gold); }
.ops-valuation-banner { display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: 1rem; align-items: center; margin: 1.25rem 0; padding: 1rem 1.2rem; border: 1px solid #84c7a6; border-radius: var(--radius); background: #edfaf3; }
.ops-valuation-banner span, .ops-valuation-banner strong { display: block; }
.ops-valuation-banner span { color: var(--muted); font-size: .76rem; }
.ops-valuation-banner strong { font-variant-numeric: tabular-nums; }
.ops-notice { margin: 1.25rem 0; }
.ops-analysis-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 1.25rem; align-items: start; }
.ops-analysis-grid h2, .ops-list-section h2, .ops-settlement-strip h2 { font-size: clamp(1.25rem, 2vw, 1.7rem); }
.stage-list { display: grid; gap: .9rem; margin-top: 1rem; }
.stage-row > div { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.stage-row > div strong { font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.stage-row progress { width: 100%; height: 8px; display: block; margin: .55rem 0 .2rem; border: 0; border-radius: 999px; overflow: hidden; background: var(--border); }
.stage-row progress::-webkit-progress-bar { background: var(--border); }
.stage-row progress::-webkit-progress-value { background: var(--forest); border-radius: 999px; }
.stage-row progress::-moz-progress-bar { background: var(--forest); border-radius: 999px; }
.stage-row small { color: var(--muted); font-size: .76rem; }
.compact-table th, .compact-table td { padding: .7rem .75rem; white-space: nowrap; }
.ops-settlement-strip { display: grid; grid-template-columns: 1.2fr repeat(3, 1fr); gap: 1px; margin: 1.25rem 0; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); background: var(--border); }
.ops-settlement-strip > div, .ops-settlement-strip article { min-width: 0; padding: 1.2rem; background: white; }
.ops-settlement-strip article span, .ops-settlement-strip article small { display: block; color: var(--muted); }
.ops-settlement-strip article span { font-size: .8rem; font-weight: 750; }
.ops-settlement-strip article strong { display: block; margin: .3rem 0; overflow-wrap: anywhere; font-size: 1.55rem; font-variant-numeric: tabular-nums; }
.ops-settlement-strip article small { font-size: .75rem; }
.ops-list-section { scroll-margin-top: 145px; }
.ops-list-section .card-head { margin-bottom: 1rem; }
.ops-list-section th, .ops-list-section td { white-space: nowrap; }
.empty-cell { padding: 2rem !important; color: var(--muted); text-align: center; }
.ops-definition-note { max-width: 90ch; margin: 1.5rem auto 0; color: var(--muted); font-size: .8rem; text-align: center; }
@media (max-width: 960px) {
  .ops-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ops-analysis-grid { grid-template-columns: 1fr; }
  .ops-settlement-strip { grid-template-columns: repeat(2, 1fr); }
  .ops-valuation-banner { grid-template-columns: repeat(3, 1fr); }
  .ops-valuation-banner .text-link { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .ops-jump-nav { top: 77px; margin-inline: -.15rem; border-radius: var(--radius); }
  .ops-kpi-grid, .ops-settlement-strip, .ops-valuation-banner { grid-template-columns: 1fr; }
  .ops-valuation-banner .text-link { grid-column: auto; min-height: 44px; display: inline-flex; align-items: center; }
}