:root {
  --ink: #18231f;
  --muted: #68736e;
  --paper: #f3f0e8;
  --panel: rgba(255, 255, 252, .9);
  --line: #d9ddd5;
  --forest: #0d5b46;
  --forest-dark: #083f33;
  --lime: #b7d338;
  --amber: #e8a73f;
  --red: #b84232;
  --shadow: 0 18px 50px rgba(35, 49, 42, .09);
}
* { box-sizing: border-box; }
html { min-height: 100%; background: var(--paper); }
body { margin: 0; min-height: 100vh; color: var(--ink); font-family: "Avenir Next", "PingFang SC", sans-serif; background:
  radial-gradient(circle at 85% 5%, rgba(183, 211, 56, .17), transparent 27rem),
  linear-gradient(135deg, #f7f4ec 0%, #eef2e9 100%); }
a { color: var(--forest); text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.ambient { position: fixed; border-radius: 50%; filter: blur(2px); pointer-events: none; z-index: -1; }
.ambient-one { width: 22rem; height: 22rem; right: -10rem; top: 18rem; border: 1px solid rgba(13, 91, 70, .12); }
.ambient-two { width: 13rem; height: 13rem; left: -5rem; bottom: 8rem; background: rgba(232, 167, 63, .07); }
.portal-header { height: 76px; padding: 0 4vw; display: flex; align-items: center; gap: 3rem; border-bottom: 1px solid rgba(13, 91, 70, .12); background: rgba(248, 247, 241, .85); backdrop-filter: blur(18px); position: sticky; top: 0; z-index: 20; }
.brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--ink); min-width: max-content; }
.brand-mark { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 5px 15px 5px 15px; background: var(--forest); color: white; font: 700 13px Georgia, serif; letter-spacing: .08em; box-shadow: inset -7px -7px 0 rgba(183, 211, 56, .18); }
.brand strong, .brand small { display: block; }.brand strong { font: 700 19px Georgia, "Songti SC", serif; letter-spacing: .02em; }.brand small { color: var(--muted); font-size: 11px; margin-top: 2px; }
.portal-header nav { display: flex; align-self: stretch; gap: .4rem; }.portal-header nav a { display: grid; place-items: center; padding: 0 1rem; color: #53615b; border-bottom: 3px solid transparent; }
.portal-header nav a:hover, .portal-header nav a.active { color: var(--forest); border-bottom-color: var(--lime); }
.identity { margin-left: auto; display: flex; align-items: center; gap: 1rem; text-align: right; }.identity span, .identity small { display: block; }.identity span { font-weight: 650; }.identity small { color: var(--muted); font-size: 11px; margin-top: 2px; }
.quiet { border: 1px solid var(--line); background: transparent; border-radius: 999px; padding: .5rem .8rem; cursor: pointer; color: var(--muted); }
.portal-main { width: min(1480px, 92vw); margin: 0 auto; padding: 46px 0 70px; }
footer { width: min(1480px, 92vw); margin: auto; padding: 22px 0 35px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.eyebrow { color: var(--forest); font-size: 11px; letter-spacing: .18em; font-weight: 800; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }h1, h2 { font-family: Georgia, "Songti SC", serif; }h1 { font-size: clamp(34px, 4vw, 60px); line-height: 1.08; letter-spacing: -.035em; }h2 { font-size: 25px; }p { line-height: 1.65; }
.primary, .secondary { border: 0; border-radius: 10px; padding: .85rem 1.2rem; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.primary { background: var(--forest); color: white; box-shadow: 0 8px 22px rgba(13, 91, 70, .18); }.primary:hover { background: var(--forest-dark); }
.secondary { border: 1px solid #b8c4bd; background: rgba(255,255,255,.55); color: var(--forest); }.wide { width: 100%; }
.alert { padding: 13px 16px; border-radius: 10px; margin-bottom: 20px; font-weight: 650; }.alert.success { background: #dcebd8; color: #235a37; }.alert.error { background: #f8dfda; color: #8f2e24; }
.hero-dashboard { display: flex; justify-content: space-between; align-items: end; gap: 3rem; padding: 28px 0 38px; }.hero-dashboard div { max-width: 860px; }.hero-dashboard h1 { margin: 10px 0 14px; }.hero-dashboard p { color: var(--muted); font-size: 17px; max-width: 760px; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }.metric-grid article { position: relative; overflow: hidden; padding: 22px; min-height: 145px; background: var(--panel); border: 1px solid rgba(13, 91, 70, .1); border-radius: 16px; box-shadow: var(--shadow); }.metric-grid article::after { content: ""; position: absolute; width: 72px; height: 72px; right: -24px; top: -25px; border-radius: 50%; border: 12px solid rgba(13,91,70,.05); }
.metric-grid article.accent { background: var(--forest); color: white; }.metric-grid span, .metric-grid small { display: block; }.metric-grid span { font-size: 13px; color: var(--muted); }.metric-grid .accent span, .metric-grid .accent small { color: rgba(255,255,255,.72); }.metric-grid strong { display: block; margin: 12px 0 8px; font: 700 38px Georgia, serif; }.metric-grid small { font-size: 12px; }
.split-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 18px; margin-bottom: 18px; }.panel { background: var(--panel); border: 1px solid rgba(13,91,70,.1); border-radius: 16px; padding: 24px; box-shadow: var(--shadow); margin-bottom: 18px; }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 18px; }.section-head h2 { margin: 5px 0 0; }.section-head p { color: var(--muted); margin: 4px 0 0; font-size: 13px; }
.pipeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }.pipeline div { background: #edf1e8; padding: 16px; border-radius: 10px; }.pipeline b, .pipeline span { display: block; }.pipeline b { font: 700 25px Georgia, serif; }.pipeline span { color: var(--muted); font-size: 11px; margin-top: 5px; }
.callout { background: #f0eddb; border-left: 3px solid var(--amber); padding: 12px 15px; margin: 16px 0 0; font-size: 13px; }.callout.warning { color: #7f3b28; }
.action-list { display: grid; gap: 8px; }.action-list a { padding: 13px 14px; border: 1px solid var(--line); border-radius: 10px; display: flex; justify-content: space-between; gap: 1rem; color: var(--ink); transition: .18s; }.action-list a:hover { transform: translateX(4px); border-color: var(--forest); }.action-list b, .action-list span { display: block; }.action-list span { color: var(--muted); font-size: 12px; text-align: right; }
.table-wrap { overflow-x: auto; }table { width: 100%; border-collapse: collapse; }th, td { padding: 13px 12px; text-align: left; border-bottom: 1px solid #e4e6df; vertical-align: top; }th { color: #59655f; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }td { font-size: 13px; }tbody tr:last-child td { border-bottom: 0; }.empty { text-align: center; padding: 35px; color: var(--muted); }
.status, .verdict { display: inline-flex; align-items: center; border-radius: 999px; padding: 5px 9px; font-size: 11px; font-weight: 700; white-space: nowrap; }.status.pending, .verdict.pending_review, .verdict.pending_verification, .verdict.suspected_missed { background: #fff0c7; color: #835b12; }.status.approved, .status.resolved, .verdict.extracted { background: #dcebd8; color: #235a37; }.status.rejected, .verdict.report_missing { background: #f8dfda; color: #8f2e24; }.verdict.not_disclosed { background: #e7e9e6; color: #4f5854; }.verdict.not_applicable { background: #dfebef; color: #355b68; }
.page-title { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 28px; }.page-title h1 { margin: 8px 0 10px; }.page-title p { margin: 0; color: var(--muted); }
.filter-bar, .inline-filter { display: flex; gap: 10px; margin-bottom: 18px; }.filter-bar { padding: 14px; border: 1px solid var(--line); background: rgba(255,255,255,.58); border-radius: 14px; }.search-box { flex: 1; display: flex; align-items: center; gap: 9px; background: white; border: 1px solid var(--line); border-radius: 9px; padding: 0 12px; }.search-box input { border: 0; outline: 0; width: 100%; }.filter-bar select, .filter-bar input[type=number], .inline-filter input, .inline-filter select { border: 1px solid var(--line); border-radius: 9px; background: white; padding: .75rem .85rem; }
.company-link b, .company-link small, td small { display: block; }.company-link small, td small { margin-top: 4px; color: var(--muted); font-size: 11px; }.count-pill { display: inline-grid; place-items: center; min-width: 30px; height: 30px; background: #edf1e8; border-radius: 50%; font-weight: 750; }.coverage { width: 125px; height: 6px; border-radius: 999px; background: #e7eae5; overflow: hidden; }.coverage span { display: block; height: 100%; background: linear-gradient(90deg, var(--forest), var(--lime)); }.table-action { border: 0; background: transparent; color: var(--forest); padding: 0; cursor: pointer; font-weight: 700; white-space: nowrap; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 22px; padding-top: 22px; }.pagination span { color: #a0a7a3; }.pagination b { font-size: 12px; }
.company-hero { display: flex; justify-content: space-between; gap: 2rem; align-items: end; margin-bottom: 26px; }.company-hero h1 { margin: 8px 0 8px; }.company-hero p { color: var(--muted); margin: 0; }.back { display: block; margin-bottom: 25px; font-size: 13px; }.company-hero-note { max-width: 400px; background: var(--forest); color: white; padding: 18px 20px; border-radius: 4px 18px 4px 18px; }.company-hero-note b, .company-hero-note span { display: block; }.company-hero-note span { font-size: 12px; line-height: 1.6; opacity: .78; margin-top: 4px; }
.document-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 12px; }.document-card { padding: 16px; background: #f0f3eb; border-radius: 12px; display: grid; grid-template-columns: 50px 1fr; gap: 13px; }.document-icon { width: 48px; height: 58px; display: grid; place-items: center; background: #fff; color: var(--red); border-radius: 5px 5px 12px 5px; font: 700 11px Georgia, serif; border: 1px solid #e4d7d2; }.document-card p { color: var(--muted); font-size: 12px; margin: 5px 0 8px; }.document-flags { display: flex; gap: 5px; flex-wrap: wrap; }.document-flags span { padding: 3px 6px; background: #fff; border-radius: 5px; color: var(--muted); font-size: 10px; }.document-links a { font-size: 12px; margin: 9px 12px 0 0; display: inline-block; font-weight: 700; }
.summary-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 9px; margin-bottom: 18px; }.summary-card { padding: 16px 12px; background: rgba(255,255,255,.74); border: 1px solid var(--line); border-radius: 11px; color: var(--ink); }.summary-card strong, .summary-card span, .summary-card small { display: block; }.summary-card strong { font: 700 27px Georgia, serif; }.summary-card span { color: var(--muted); font-size: 11px; margin-top: 5px; }.summary-card small { color: var(--muted); font-size: 10px; line-height: 1.45; margin-top: 7px; }.summary-card:hover { border-color: var(--forest); }.accuracy-card { border-color: rgba(13,91,70,.38); background: #edf4ed; }.audit-note { display: grid; grid-template-columns: auto 1fr; gap: 5px 14px; margin: 0 0 18px; padding: 13px 15px; border-left: 3px solid var(--forest); background: rgba(255,255,255,.56); font-size: 12px; }.audit-note b { grid-row: 1 / 3; }.audit-note span { color: var(--muted); }
.dimension { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; font-weight: 800; }.dimension.e { color: #1d6b47; background: #dbedda; }.dimension.s { color: #885728; background: #f5e3c5; }.dimension.g { color: #355b68; background: #dce9ed; }.evidence-cell { max-width: 430px; color: #4d5953; line-height: 1.55; }.trace-table { max-height: 760px; }.trace-table th { position: sticky; top: 0; background: #fafbf7; z-index: 1; }
dialog { width: min(760px, 94vw); border: 0; border-radius: 18px; padding: 0; box-shadow: 0 35px 100px rgba(17,35,28,.35); }dialog::backdrop { background: rgba(13, 30, 24, .62); backdrop-filter: blur(4px); }.dialog-form { padding: 26px; }.dialog-head { display: flex; align-items: start; justify-content: space-between; }.dialog-head h2 { margin: 5px 0 0; }.dialog-close { border: 0; background: #edf0eb; width: 34px; height: 34px; border-radius: 50%; cursor: pointer; }.dialog-indicator { padding: 12px 14px; background: #eef2e9; border-radius: 9px; color: var(--forest); font-weight: 700; }.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }.dialog-form label { display: grid; gap: 6px; margin-bottom: 12px; font-size: 12px; font-weight: 700; }.dialog-form input, .dialog-form select, .dialog-form textarea { border: 1px solid var(--line); border-radius: 9px; padding: 11px; background: #fff; }.dialog-form textarea { min-height: 90px; resize: vertical; }.dialog-actions { display: flex; justify-content: end; gap: 10px; margin-top: 16px; }
.tabs { display: flex; gap: 6px; margin-bottom: 18px; }.tabs a { padding: 8px 13px; border-radius: 999px; color: var(--muted); }.tabs a.active { color: white; background: var(--forest); }.ticket-list { display: grid; gap: 14px; }.ticket { background: var(--panel); border: 1px solid rgba(13,91,70,.1); border-radius: 16px; padding: 20px; box-shadow: var(--shadow); }.ticket-top { display: flex; align-items: center; gap: 9px; }.ticket-top time { margin-left: auto; color: var(--muted); font-size: 11px; }.ticket-id { font: 700 16px Georgia, serif; }.ticket-main { display: flex; align-items: center; justify-content: space-between; margin: 18px 0; }.ticket-main h3 { margin: 0 0 4px; }.ticket-main p { color: var(--muted); font-size: 12px; margin: 0; }.request-type { border: 1px solid var(--line); border-radius: 999px; padding: 6px 9px; font-size: 11px; }.ticket-change { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; background: #f0f2ec; padding: 13px; border-radius: 11px; }.ticket-change div { background: white; border-radius: 8px; padding: 10px; }.ticket-change small, .ticket-change b { display: block; }.ticket-change small { color: var(--muted); margin-bottom: 4px; }.ticket-reason { padding: 16px 0 8px; }.ticket-reason p { margin: 6px 0; }.ticket-reason blockquote { margin: 10px 0; padding: 9px 13px; border-left: 3px solid var(--lime); color: var(--muted); }.ticket-meta { color: var(--muted); font-size: 11px; }.review-form { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }.review-form textarea { border: 1px solid var(--line); border-radius: 8px; padding: 10px; min-height: 64px; resize: vertical; }.review-form div { display: flex; gap: 7px; }.review-form button { border: 0; border-radius: 8px; padding: 8px 11px; color: white; cursor: pointer; }.review-form .approve { background: var(--forest); }.review-form .reject { background: var(--red); }.review-note { background: #edf1e8; border-radius: 10px; padding: 12px; margin-top: 15px; }.review-note p { margin: 5px 0; }.review-note small { color: var(--muted); }.empty-card { padding: 55px; text-align: center; background: rgba(255,255,255,.65); border: 1px dashed #b9c0bb; border-radius: 15px; color: var(--muted); }
.login-page { background: var(--forest-dark); color: white; overflow-x: hidden; }.login-atmosphere { position: fixed; inset: 0; background: radial-gradient(circle at 75% 15%, rgba(183,211,56,.22), transparent 28rem), repeating-linear-gradient(125deg, transparent 0 38px, rgba(255,255,255,.018) 39px 40px); }.login-shell { min-height: 100vh; width: min(1200px, 90vw); margin: auto; display: grid; grid-template-columns: 1.3fr .7fr; align-items: center; gap: 8vw; position: relative; }.login-story h1 { font-size: clamp(46px, 6vw, 79px); margin: 20px 0; }.login-story p { max-width: 650px; color: rgba(255,255,255,.68); font-size: 18px; }.login-story .eyebrow { color: var(--lime); }.principles { display: flex; gap: 9px; margin-top: 30px; }.principles span { padding: 7px 11px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; font-size: 12px; }.login-card { color: var(--ink); background: #faf9f4; padding: 34px; border-radius: 5px 28px 5px 28px; box-shadow: 0 35px 100px rgba(0,0,0,.35); }.login-brand { margin-bottom: 40px; }.login-card h2 { font-size: 30px; margin-bottom: 8px; }.muted, .security-note { color: var(--muted); }.stack { display: grid; gap: 15px; }.stack label { display: grid; gap: 6px; font-size: 12px; font-weight: 700; }.stack input { border: 1px solid #ced5cf; border-radius: 9px; padding: 12px; background: white; }.security-note { border-top: 1px solid var(--line); padding-top: 17px; margin: 22px 0 0; font-size: 11px; }
.form-field { display: grid; gap: 6px; }.captcha-row { display: grid; grid-template-columns: minmax(74px,1fr) 154px 42px; gap: 8px; align-items: center; }.captcha-row > input { min-width: 0; height: 48px; }.captcha-image-button, .captcha-refresh { height: 48px; padding: 0; border: 1px solid #b8c9bf; border-radius: 7px; background: #eef5ef; cursor: pointer; overflow: hidden; }.captcha-image-button { width: 154px; }.captcha-image-button img { display: block; width: 154px; height: 48px; object-fit: cover; }.captcha-refresh { width: 42px; color: var(--forest); font-size: 25px; line-height: 1; }.captcha-image-button:hover, .captcha-refresh:hover { border-color: var(--forest); }.captcha-image-button:focus-visible, .captcha-refresh:focus-visible, .captcha-row > input:focus { outline: 2px solid rgba(25,122,88,.28); outline-offset: 2px; }
@media (max-width: 1050px) { .portal-header { gap: 1rem; }.portal-header nav a { padding: 0 .55rem; }.metric-grid { grid-template-columns: 1fr 1fr; }.split-grid { grid-template-columns: 1fr; }.summary-grid { grid-template-columns: repeat(4,1fr); }.login-shell { grid-template-columns: 1fr 420px; gap: 4vw; } }
@media (max-width: 760px) { .portal-header { height: auto; padding: 12px 4vw; flex-wrap: wrap; }.portal-header nav { order: 3; width: 100%; overflow-x: auto; }.portal-header nav a { padding: 10px 12px; }.identity { margin-left: auto; }.identity > span { display: none; }.portal-main { padding-top: 28px; }.hero-dashboard, .page-title, .company-hero { align-items: start; flex-direction: column; }.metric-grid { grid-template-columns: 1fr 1fr; }.pipeline { grid-template-columns: 1fr 1fr; }.summary-grid { grid-template-columns: repeat(2,1fr); }.filter-bar, .inline-filter { flex-wrap: wrap; }.search-box { min-width: 100%; height: 46px; }.document-grid { grid-template-columns: 1fr; }.form-grid { grid-template-columns: 1fr; }.review-form { grid-template-columns: 1fr; }.login-shell { display: block; padding: 48px 0; }.login-story { margin-bottom: 38px; }.login-story h1 { font-size: 44px; }.login-card { padding: 25px; }.ticket-change { grid-template-columns: 1fr; }.ticket-change > span { transform: rotate(90deg); justify-self: center; } }
@media (max-width: 430px) { .metric-grid { grid-template-columns: 1fr; }.portal-header .brand small { display: none; }.hero-dashboard .primary, .page-title .secondary { width: 100%; }.principles { flex-wrap: wrap; } }
@media (max-width: 430px) { .captcha-row { grid-template-columns: 1fr 42px; }.captcha-row > input { grid-column: 1 / -1; }.captcha-image-button { width: 100%; }.captcha-image-button img { width: 100%; } }
.review-detail-link { display: inline-flex; margin-top: 15px; padding: 9px 12px; border: 1px solid var(--forest); border-radius: 8px; color: var(--forest); font-weight: 700; }
.review-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 16px; margin-bottom: 16px; }
.definition-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; }
.definition-grid div { padding: 12px; background: #f0f2ec; border-radius: 8px; }
.definition-grid dt { color: var(--muted); font-size: 11px; }.definition-grid dd { margin: 5px 0 0; font-weight: 700; }
.evidence-checks { display: grid; gap: 8px; list-style: none; padding: 0; }.evidence-checks li { display: grid; grid-template-columns: 48px 1fr; gap: 9px; padding: 9px; border-radius: 8px; }
.evidence-checks .pass { background: #e5f1e6; }.evidence-checks .fail { background: #fae5e0; }.evidence-checks .warning { background: #fff0c7; }.evidence-checks .notice { background: #f3f0e8; }.evidence-checks .pass b { color: var(--forest); }.evidence-checks .fail b, .gate-fail { color: var(--red); }.evidence-checks .warning b { color: #835b12; }.evidence-checks .notice b { color: var(--muted); }
.formula-box { display: grid; gap: 5px; padding: 14px; background: #edf1e8; border-left: 4px solid var(--lime); }.formula-box small { color: var(--muted); }
.evidence-block { margin-top: 16px; }.evidence-block blockquote { margin: 8px 0 14px; padding: 14px; background: #f6f5f0; border-left: 3px solid var(--forest); white-space: pre-wrap; }
.review-decision form { display: grid; gap: 12px; }.review-decision textarea { min-height: 110px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; }.review-decision form div { display: flex; gap: 8px; }.note-picker { display: grid; gap: 6px; color: var(--muted); font-size: 13px; }.note-picker select { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: white; color: var(--ink); }
.accuracy-impact { display: grid; grid-template-columns: 18px 1fr; align-items: start; gap: 10px; padding: 12px; border: 1px solid #d4b56b; border-radius: 8px; background: #fff7df; cursor: pointer; }.accuracy-impact input { margin-top: 3px; }.accuracy-impact b, .accuracy-impact small { display: block; }.accuracy-impact small { margin-top: 4px; color: var(--muted); font-weight: 400; line-height: 1.45; }
.review-decision button { border: 0; border-radius: 8px; padding: 10px 14px; color: white; }.review-decision .approve { background: var(--forest); }.review-decision .resolve { background: #416b58; }.review-decision .reject { background: var(--red); }.review-decision button:disabled { opacity: .4; cursor: not-allowed; }
@media (max-width: 760px) { .review-layout { grid-template-columns: 1fr; }.definition-grid { grid-template-columns: 1fr 1fr; } }
.risk-summary { display: grid; gap: 4px; padding: 10px; border-radius: 8px; }.risk-summary.low { background: #e5f1e6; }.risk-summary.medium { background: #fff0c7; }.risk-summary.high { background: #fae5e0; }.risk-summary span { font-size: 12px; color: var(--muted); }
.risk { display: inline-flex; padding: 4px 7px; border-radius: 999px; font-size: 11px; font-weight: 700; }.risk.low { background: #e5f1e6; color: var(--forest); }.risk.medium { background: #fff0c7; color: #835b12; }.risk.high { background: #fae5e0; color: var(--red); }
.correction-counts { display: grid; grid-template-columns: repeat(5,1fr); gap: 10px; margin-bottom: 16px; }.correction-count { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; color: var(--ink); }.correction-count strong { font-size: 26px; }.correction-count.pending strong { color: #835b12; }.correction-count.approved strong,.correction-count.resolved strong { color: var(--forest); }.correction-count.rejected strong { color: var(--red); }.tabs a b { display: inline-flex; min-width: 20px; justify-content: center; margin-left: 6px; padding: 1px 5px; border-radius: 999px; background: rgba(13,91,70,.1); font-size: 10px; }.tabs a.active b { background: rgba(255,255,255,.18); }
.amend-correction form { display:grid; gap:12px; }.amend-correction label { display:grid; gap:6px; font-size:13px; font-weight:700; }.amend-correction input,.amend-correction select,.amend-correction textarea { border:1px solid var(--line); border-radius:6px; padding:11px; background:#fff; }.amend-correction textarea { min-height:90px; resize:vertical; }.request-source { display:inline-flex; padding:5px 8px; margin-bottom:8px; border:1px solid var(--line); border-radius:5px; color:var(--forest); font-size:11px; font-weight:700; }.event-timeline { list-style:none; margin:0; padding:0; display:grid; gap:0; }.event-timeline li { padding:13px 0 13px 18px; border-left:2px solid #b9c9bf; }.event-timeline li div { display:flex; justify-content:space-between; gap:12px; }.event-timeline time,.event-timeline small { color:var(--muted); font-size:11px; }.event-timeline p { margin:6px 0; white-space:pre-wrap; }
.amend-correction .withdraw-correction { margin-top:18px; padding-top:18px; border-top:1px solid var(--line); }
@media (max-width: 760px) { .correction-counts { grid-template-columns: 1fr 1fr; } }

/* 2026 phase-two commercial workbench: quiet, high-signal workspace. */
:root {
  --ink: #1d252b;
  --muted: #68737c;
  --paper: #f5f7f8;
  --panel: #ffffff;
  --panel-soft: #f0f4f5;
  --line: #dbe2e6;
  --forest: #176b5d;
  --forest-dark: #0e4d43;
  --lime: #8bc9b5;
  --blue: #2d6882;
  --blue-soft: #e7f0f4;
  --red: #b6534a;
  --amber: #9c6b20;
  --shadow: 0 8px 24px rgba(28, 42, 50, .055);
}

html, body { background: var(--paper); }
body { background-image: none !important; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; color: var(--ink); }
body::before, body::after, .ambient, .swallow-flight, .spectrum-bar { display: none !important; }
.portal-header { height: 72px; padding: 0 4vw; gap: 2rem; background: rgba(255,255,255,.97); border-top: 0; border-bottom: 1px solid var(--line); backdrop-filter: none; }
.brand { gap: .65rem; }.brand-mark { width: 36px; height: 36px; }.brand strong { color: var(--ink); background: none; -webkit-text-fill-color: initial; font-size: 18px; }.brand small { color: var(--muted); }
.portal-header nav { gap: .15rem; overflow-x: auto; }.portal-header nav a { padding: 0 .8rem; color: #56636b; border-bottom: 2px solid transparent; white-space: nowrap; }.portal-header nav a:hover, .portal-header nav a.active { color: var(--forest); border-bottom-color: var(--lime); }
.identity { gap: .7rem; }.identity span { font-size: 13px; }.quiet { border-radius: 5px; border-color: var(--line); background: #fff; }
.portal-main { width: min(1320px, 92vw); padding: 42px 0 68px; }.portal-main > * { position: relative; }
footer { width: min(1320px, 92vw); border-top-color: var(--line); }
.eyebrow { color: var(--forest); letter-spacing: .12em; }.hero-dashboard { padding: 12px 0 34px; align-items: end; }.hero-dashboard h1 { margin: 8px 0 10px; font-size: clamp(32px, 4vw, 52px); letter-spacing: -.02em; }.hero-dashboard p { color: var(--muted); font-size: 16px; }
.metric-grid { gap: 12px; margin-bottom: 16px; }.metric-grid article { min-height: 132px; padding: 20px; border-radius: 8px; border-color: var(--line); box-shadow: var(--shadow); }.metric-grid article.accent { background: var(--forest); }.metric-grid strong { margin: 10px 0 6px; font-size: 34px; }
.split-grid { gap: 16px; }.panel, .ticket { padding: 22px; border-radius: 8px; border-color: var(--line); box-shadow: var(--shadow); }.section-head { margin-bottom: 16px; }.section-head h2 { font-size: 22px; }
.pipeline { gap: 8px; }.pipeline div { padding: 14px; border-radius: 6px; background: var(--panel-soft); }.pipeline b { font-size: 23px; }.action-list a { border-radius: 6px; border-color: var(--line); }.action-list a:hover { transform: none; border-color: var(--forest); background: var(--blue-soft); }
.filter-bar { border-radius: 7px; border-color: var(--line); background: var(--panel); }.search-box, .filter-bar select, .filter-bar input[type=number], .inline-filter input, .inline-filter select { border-radius: 5px; border-color: var(--line); }.table-action { color: var(--blue); }
.status, .verdict, .risk { border-radius: 4px; }.status.pending, .verdict.pending_review, .verdict.pending_verification, .verdict.suspected_missed { background: #fff3d6; color: #815e1b; }.status.approved, .status.resolved, .verdict.extracted { background: #e0f1ea; color: #216653; }.status.rejected, .verdict.report_missing { background: #f8e4e1; color: #984038; }
.coverage { width: 125px; height: 6px; border-radius: 2px; }.coverage span { background: var(--forest); }
.document-card, .summary-card, .ticket-change, .ticket-change div, .review-note { border-radius: 6px; }.document-card { background: var(--panel-soft); }.summary-card { background: var(--panel); border-color: var(--line); }.summary-card:hover { border-color: var(--forest); }
.tabs { gap: 4px; }.tabs a { border-radius: 5px; }.tabs a.active { background: var(--forest); }.ticket { background: var(--panel); }.ticket-change { background: var(--panel-soft); }.ticket-change div { background: var(--panel); }
.login-page { background: #eef3f4; color: var(--ink); }.login-shell { width: min(1120px, 90vw); min-height: 100vh; grid-template-columns: 1fr 410px; gap: 8vw; }.login-story h1 { color: var(--ink); font-size: clamp(40px, 5vw, 68px); letter-spacing: -.02em; }.login-story p { color: var(--muted); }.login-story .eyebrow { color: var(--forest); }.principles span { border-color: var(--line); color: var(--blue); border-radius: 4px; }.login-card { padding: 32px; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 20px 50px rgba(31, 49, 56, .12); }.login-card h2 { font-size: 28px; }.security-note { border-top-color: var(--line); }
@media (max-width: 900px) { .portal-header { height: auto; padding: 14px 4vw; flex-wrap: wrap; }.portal-header nav { order: 3; width: 100%; height: 38px; }.identity { margin-left: auto; }.login-shell { grid-template-columns: 1fr 400px; gap: 4vw; } }
@media (max-width: 680px) { .portal-main { width: min(100% - 28px, 1320px); padding-top: 28px; }.portal-header nav a { padding: 0 .55rem; }.identity span { display: none; }.hero-dashboard { display: block; }.metric-grid { grid-template-columns: 1fr 1fr; }.metric-grid article { min-height: 118px; padding: 16px; }.metric-grid strong { font-size: 29px; }.pipeline { grid-template-columns: 1fr 1fr; }.form-grid { grid-template-columns: 1fr; }.login-shell { width: min(100% - 28px, 520px); display: block; padding: 46px 0; }.login-story { margin-bottom: 34px; }.login-story h1 { font-size: 42px; }.login-card { padding: 24px; } }
@media (max-width: 420px) { .metric-grid { grid-template-columns: 1fr; }.correction-counts { grid-template-columns: 1fr 1fr; } }
.batch-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 0 14px; border-bottom: 1px solid var(--line); }.batch-toolbar label { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; }.batch-toolbar span { color: var(--muted); }.batch-toolbar input, .batch-item { width: 17px; height: 17px; accent-color: var(--forest); }
.rank-change { display: inline-flex; min-width: 42px; font-weight: 700; }.rank-change.up { color: var(--forest); }.rank-change.down { color: var(--red); }.rank-change.flat { color: var(--muted); }
.account-form,.account-edit form { display: grid; gap: 11px; }.account-form label,.account-edit label { display: grid; gap: 5px; color: var(--muted); font-size: 12px; font-weight: 700; }.account-form input,.account-form select,.account-edit input,.account-edit select { width: 100%; box-sizing: border-box; border: 1px solid var(--line); border-radius: 7px; padding: 10px 11px; background: #fff; color: var(--ink); }.account-form button { margin-top: 4px; }.account-edit { min-width: 230px; }.account-edit summary { display: inline-block; color: var(--forest); cursor: pointer; font-weight: 700; margin-bottom: 8px; }.account-edit small { color: var(--muted); font-weight: 400; }.checkbox-line { display: flex !important; grid-template-columns: auto 1fr; align-items: center; gap: 7px; }.checkbox-line input { width: 16px; accent-color: var(--forest); }.danger-action { color: var(--red); margin-top: 10px; }.account-grid { align-items: start; }

/* 2026 institutional UI refinement */
:root{--ink:#17332d;--muted:#637570;--paper:#f4f7f5;--panel:#fff;--line:#dbe7e2;--forest:#197a58;--forest-dark:#0e3b32;--lime:#79bf9e;--amber:#b97922;--shadow:0 10px 30px rgba(20,61,47,.07)}
html,body{background:var(--paper)}body{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif}.ambient{display:none}.portal-header{height:70px;background:rgba(255,255,255,.96);border-top:3px solid var(--forest);border-bottom:1px solid var(--line);backdrop-filter:blur(12px)}.brand-mark{border-radius:7px;background:var(--forest);box-shadow:none}.brand strong,h1,h2{font-family:inherit;letter-spacing:0}.portal-header nav a{border-bottom-width:2px}.quiet,.status,.verdict,.tabs a,.count-pill,.risk{border-radius:5px}.primary,.secondary{border-radius:6px;box-shadow:none}.portal-main{padding-top:38px}.metric-grid article,.panel,.ticket{border-radius:8px;background:#fff;box-shadow:var(--shadow)}.metric-grid article::after{display:none}.metric-grid strong,.pipeline b,.summary-card strong{font-family:inherit}.pipeline div,.action-list a,.filter-bar,.search-box,.document-card,.summary-card,.empty-card,.ticket-change,.ticket-change div,.review-note{border-radius:7px}.coverage span{background:var(--forest)}.company-hero-note{border-radius:8px}.login-atmosphere{background:var(--forest-dark)}.login-card{border-radius:8px;background:#fff}.login-story h1{letter-spacing:0}.principles span{border-radius:5px}.dialog-close{border-radius:6px}.site-scroll-progress{position:fixed;z-index:2000;top:0;left:0;width:100%;height:3px;background:#8ed0b2;transform:scaleX(0);transform-origin:left;pointer-events:none}

/* Shared AegisESG gold-foil mark and wordmark. */
.brand-mark{display:block;width:40px;height:40px;object-fit:contain;border-radius:0;background:transparent;box-shadow:none}
.brand strong{color:#9a6a1f;background:linear-gradient(105deg,#8a5a18 0%,#d9a94e 28%,#fff0a4 48%,#b87927 68%,#f0c86e 100%);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}

/* 2026 AegisESG workspace system: spacious, operational, and restrained. */
:root {
  --brand: #16a34a;
  --brand-strong: #15803d;
  --brand-deep: #166534;
  --brand-tint: #dcfce7;
  --brand-wash: #f0fdf4;
  --brand-ring: rgba(22, 163, 74, .28);
  --bg: #f6fbf7;
  --ink: #0f2a1d;
  --muted: #5f7b71;
  --muted-soft: #8aa39b;
  --panel: #ffffff;
  --panel-soft: #f0fdf4;
  --line: #e4efe8;
  --hairline: #eef6f0;
  --glass: rgba(255, 255, 255, .74);
  --amber: #b45309;
  --amber-wash: #fff7df;
  --amber-line: #f2d58d;
  --red: #b84232;
  --red-soft: #f8e2dd;
  --warning: #b45309;
  --warning-soft: #fff7df;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;
  --shadow: 0 1px 2px rgba(6, 46, 28, .04), 0 8px 20px rgba(6, 46, 28, .06);
  --shadow-hover: 0 2px 6px rgba(6, 46, 28, .05), 0 14px 32px rgba(6, 46, 28, .10);
  --ease: cubic-bezier(.22, .8, .24, 1);
  /* 旧名保留为别名：全文件约 110 处 var() 引用因此零改动地跟随新体系。
     --gold/--gold-soft 指向琥珀，所以语义性金色（待审 / 提示条 / 时间线）自动留在暖色。 */
  --paper: var(--bg);
  --forest: var(--brand-strong);
  --forest-dark: var(--brand-deep);
  --lime: var(--brand);
  --blue: var(--brand-strong);
  --blue-soft: var(--brand-tint);
  --gold: var(--amber);
  --gold-soft: var(--amber-wash);
}

html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  background-image: none;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.55;
}
body:not(.login-page) {
  position: relative;
  isolation: isolate;
}
body:not(.login-page)::before,
body:not(.login-page)::after {
  content: "";
  position: fixed;
  pointer-events: none;
  z-index: 0;
}
body:not(.login-page)::before {
  width: 76vw;
  height: 56vh;
  right: -20vw;
  top: -25vh;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(232, 176, 71, .18) 0%, rgba(232, 176, 71, .07) 32%, rgba(232, 176, 71, 0) 72%);
  filter: blur(18px);
  opacity: .72;
  animation: page-sunset-breathe 15s ease-in-out infinite alternate;
}
body:not(.login-page)::after {
  inset: -16% -18%;
  opacity: .11;
  background:
    linear-gradient(118deg, transparent 0 45%, rgba(236, 190, 99, .55) 53%, transparent 62%),
    linear-gradient(128deg, transparent 0 61%, rgba(236, 190, 99, .38) 68%, transparent 75%);
  transform: translateX(-2%);
  transform-origin: 82% 8%;
  animation: page-sunbeam-drift 18s ease-in-out infinite alternate;
}
.portal-header,
.portal-main,
footer { position: relative; z-index: 1; }
.ambient { display: none; }
.spectrum-bar {
  position: fixed;
  z-index: 2100;
  top: 0;
  left: 0;
  right: 0;
  height: var(--spectrum-height);
  pointer-events: none;
  background: linear-gradient(
    90deg,
    #d94c55 0%,
    #ed9140 16%,
    #e2c442 33%,
    #45a866 50%,
    #368fa5 66%,
    #596eb2 83%,
    #9857a3 100%,
    #d94c55 100%
  );
  background-size: 220% 100%;
  animation: spectrum-flow 10s linear infinite;
  box-shadow:
    0 0 4px rgba(217, 76, 85, .18),
    0 0 8px rgba(69, 168, 102, .12);
}
:root { --spectrum-height: 2px; }
body:not(.login-page) { padding-top: var(--spectrum-height); }
.login-page { padding-top: var(--spectrum-height); }
.spectrum-bar::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 6px;
  opacity: .12;
  background: linear-gradient(to bottom, rgba(69, 168, 102, .35), rgba(69, 168, 102, 0));
  pointer-events: none;
}
@keyframes spectrum-flow {
  from { background-position: 0% 50%; }
  to { background-position: 220% 50%; }
}
@media (prefers-reduced-motion: reduce) {
  .spectrum-bar {
    animation: none;
    background-size: 100% 100%;
    box-shadow: none;
  }
}
.swallow-flight {
  position: fixed;
  top: 104px;
  left: -72px;
  z-index: 2;
  width: 46px;
  height: 36px;
  pointer-events: none;
  opacity: .58;
  animation: swallow-cross 29s linear infinite;
}
.swallow-bird {
  position: absolute;
  left: 5px;
  top: 9px;
  width: 31px;
  height: 13px;
  border-radius: 70% 48% 55% 46%;
  background: #3f9167;
  filter: drop-shadow(0 3px 3px rgba(22, 74, 53, .18));
  transform: rotate(-6deg);
  animation: swallow-glide 1.8s ease-in-out infinite;
}
.swallow-bird::before,
.swallow-bird::after {
  content: "";
  position: absolute;
  top: -7px;
  width: 22px;
  height: 18px;
  background: #327b58;
  transform-origin: 82% 82%;
  clip-path: polygon(100% 100%, 0 12%, 57% 76%);
  animation: swallow-wing .42s ease-in-out infinite alternate;
}
.swallow-bird::before { left: 1px; transform: rotate(-14deg); }
.swallow-bird::after { right: -2px; transform: scaleX(-1) rotate(-12deg); background: #4aa372; animation-delay: .08s; }
.swallow-bird i {
  position: absolute;
  right: -10px;
  top: 2px;
  width: 16px;
  height: 12px;
  background: #2f7453;
  clip-path: polygon(0 48%, 100% 0, 68% 54%, 100% 100%);
}
.swallow-bird i::after {
  content: "";
  position: absolute;
  left: 1px;
  top: 3px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #174936;
}

.portal-header {
  position: sticky;
  top: var(--spectrum-height);
  min-height: 84px;
  height: 90px;
  padding: 10px clamp(24px, 4vw, 64px) 0;
  gap: clamp(24px, 3vw, 52px);
  background: rgba(255, 255, 255, .94);
  border-top: 0;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 4px 18px rgba(23, 51, 45, .045);
  isolation: isolate;
  overflow: hidden;
}
.portal-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  pointer-events: none;
  z-index: 0;
  top: 10px;
  height: 24px;
  opacity: .13;
  background: linear-gradient(to bottom, rgba(69, 168, 102, .42), rgba(69, 168, 102, 0));
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent);
  mask-image: linear-gradient(to bottom, #000, transparent);
}
.portal-header > .brand,
.portal-header > nav,
.portal-header > .identity { position: relative; z-index: 1; }
.brand { gap: 12px; }
.brand-mark { width: 46px; height: 46px; }
.brand strong { font-size: 21px; }
.brand small { font-size: 11px; letter-spacing: .02em; }
.portal-header nav {
  align-self: stretch;
  gap: 4px;
}
.portal-header nav a {
  position: relative;
  min-height: 44px;
  padding: 0 17px;
  color: #52635d;
  font-size: 14px;
  font-weight: 650;
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.portal-header nav a::after {
  content: "";
  position: absolute;
  left: 17px;
  right: 17px;
  bottom: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .24s var(--ease);
}
.portal-header nav a:hover,
.portal-header nav a.active {
  color: var(--forest-dark);
  background: #f6f8f4;
  border-bottom-color: transparent;
}
.portal-header nav a:hover::after,
.portal-header nav a.active::after { transform: scaleX(1); }
.identity { gap: 14px; }
.identity span { font-size: 14px; }
.identity small { font-size: 11px; }
.quiet {
  min-height: 40px;
  padding: 0 13px;
  border-radius: 6px;
  transition: color .2s var(--ease), border-color .2s var(--ease), background-color .2s var(--ease);
}
.quiet:hover { color: var(--brand-deep); border-color: var(--brand); background: var(--brand-wash); }

.portal-main {
  width: min(1480px, calc(100vw - 64px));
  padding: 56px 0 88px;
}
footer { width: min(1480px, calc(100vw - 64px)); padding: 26px 0 42px; }
.page-title, .company-hero { margin-bottom: 38px; }
.page-title h1, .company-hero h1 { font-size: clamp(34px, 3.2vw, 52px); line-height: 1.12; letter-spacing: -.02em; }
.page-title p, .company-hero p { font-size: 15px; }
.eyebrow { color: var(--brand); font-size: 10px; letter-spacing: .2em; }
h1, h2, h3 { color: var(--ink); }
h2 { font-size: 24px; }
h3 { font-size: 17px; }

.primary, .secondary {
  min-height: 44px;
  padding: 0 17px;
  border-radius: 7px;
  font-size: 13px;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s var(--ease), border-color .2s var(--ease);
}
.primary { background: var(--forest); box-shadow: 0 7px 16px rgba(23, 107, 80, .16); }
.primary:hover { background: var(--forest-dark); box-shadow: 0 11px 22px rgba(23, 107, 80, .22); transform: translateY(-1px); }
.secondary { background: var(--panel); border-color: #bdcbc3; }
.secondary:hover { color: var(--brand-deep); border-color: var(--brand); background: var(--brand-wash); transform: translateY(-1px); }

.metric-grid, .split-grid { gap: 18px; }
.metric-grid { margin-bottom: 24px; }
.metric-grid article, .panel, .ticket {
  border-radius: 9px;
  border-color: var(--line);
  box-shadow: var(--shadow);
}
.metric-grid article { min-height: 158px; padding: 26px; transition: transform .24s var(--ease), box-shadow .24s var(--ease); animation: rise-in .42s var(--ease) both; }
.metric-grid article:nth-child(2) { animation-delay: .05s; }
.metric-grid article:nth-child(3) { animation-delay: .1s; }
.metric-grid article:nth-child(4) { animation-delay: .15s; }
.metric-grid article:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.metric-grid article::after { display: none; }
.metric-grid span { font-size: 13px; }
.metric-grid strong { margin: 16px 0 9px; font-size: 40px; }
.metric-grid article.accent { background: var(--forest-dark); border-color: var(--forest-dark); }
.panel { padding: 28px; margin-bottom: 24px; }
.section-head { margin-bottom: 22px; }
.section-head h2 { margin-top: 7px; }
.pipeline { gap: 12px; }
.pipeline div { padding: 18px; border: 1px solid #e2e8df; background: var(--panel-soft); border-radius: 8px; }
.pipeline b { font-size: 27px; }
.action-list { gap: 10px; }
.action-list a { padding: 16px; border-radius: 8px; transition: transform .2s var(--ease), border-color .2s var(--ease), background-color .2s var(--ease); }
.action-list a:hover { transform: translateX(5px); border-color: var(--brand); background: var(--brand-wash); }

table { min-width: 720px; }
th, td { padding: 16px 14px; }
th { color: #65746e; font-size: 10px; }
td { font-size: 13px; }
tbody tr { transition: background-color .18s var(--ease); }
tbody tr:hover { background: #fbfcfa; }
.status, .verdict, .risk { border-radius: 5px; padding: 6px 9px; }
.status.approved, .status.resolved, .verdict.extracted, .risk.low { background: #e2f0e5; color: #236343; }
.status.pending, .verdict.pending_review, .verdict.pending_verification, .verdict.suspected_missed, .risk.medium { background: var(--warning-soft); color: var(--warning); }
.status.rejected, .verdict.report_missing, .risk.high { background: var(--red-soft); color: var(--red); }
.verdict.not_disclosed { background: #e8e9e6; color: #4f5854; }
.verdict.not_applicable { background: var(--blue-soft); color: var(--blue); }

.summary-grid, .correction-counts { gap: 12px; }
.summary-card, .correction-count { border-radius: 8px; transition: transform .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease); }
.summary-card:hover, .correction-count:hover { transform: translateY(-2px); border-color: var(--brand); box-shadow: var(--shadow); }
.summary-card strong, .correction-count strong { color: var(--forest-dark); }
.accuracy-card { border-color: var(--brand-ring); background: var(--brand-wash); }
.accuracy-card strong { color: var(--brand-strong); }
.callout { background: var(--gold-soft); border-left-color: var(--gold); }
.audit-note { border-left-color: var(--gold); background: var(--panel); }
.company-hero-note { background: var(--forest-dark); border-radius: 8px; box-shadow: var(--shadow); }

.filter-bar { padding: 16px; border-radius: 9px; background: var(--panel); }
.filter-bar select, .filter-bar input[type=number], .inline-filter input, .inline-filter select,
.dialog-form input, .dialog-form select, .dialog-form textarea,
.amend-correction input, .amend-correction select, .amend-correction textarea,
.review-decision textarea, .note-picker select { min-height: 44px; border-radius: 7px; }
.search-box { min-height: 44px; border-radius: 7px; }

.ticket { padding: 24px; transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease); animation: rise-in .42s var(--ease) both; }
.ticket:hover { transform: translateY(-2px); border-color: #b9cfc3; box-shadow: var(--shadow-hover); }
.ticket-change { padding: 15px; background: #f4f7f3; border-radius: 8px; }
.ticket-change div { border: 1px solid #e5ebe5; border-radius: 7px; }
.request-source { border-color: rgba(185, 121, 34, .42); background: var(--gold-soft); color: var(--gold); }
.review-detail-link { border-radius: 7px; transition: background-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease); }
.review-detail-link:hover { color: #fff; background: var(--forest); transform: translateY(-1px); }
.review-decision button { min-height: 44px; border-radius: 7px; transition: transform .2s var(--ease), filter .2s var(--ease); }
.review-decision button:hover:not(:disabled) { filter: brightness(.96); transform: translateY(-1px); }
.review-decision .resolve { background: var(--blue); }
.review-decision .reject { background: var(--red); }
.event-timeline li { position: relative; border-left-color: #c8d7cf; padding: 16px 0 16px 24px; }
.event-timeline li::before { content: ""; position: absolute; left: -6px; top: 21px; width: 10px; height: 10px; border: 2px solid var(--panel); border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.event-timeline li:first-child::before { background: var(--forest); box-shadow: 0 0 0 1px var(--forest); }

@keyframes rise-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes shimmer-line { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes sunset-pulse { from { transform: scale(.96); opacity: .78; } to { transform: scale(1.04); opacity: 1; } }
@keyframes sunlight-drift { from { transform: translateX(-4%) rotate(-1deg); opacity: .18; } to { transform: translateX(4%) rotate(1deg); opacity: .34; } }
@keyframes forest-sway { from { transform: translateX(-1.5%) skewX(-.3deg); } to { transform: translateX(1.5%) skewX(.3deg); } }
@keyframes forest-sway-rear { from { transform: translateX(2%); } to { transform: translateX(-2%); } }
@keyframes page-sunset-breathe { from { transform: translate3d(-1%, 0, 0) scale(.97); opacity: .52; } to { transform: translate3d(2%, 2%, 0) scale(1.04); opacity: .82; } }
@keyframes page-sunbeam-drift { from { transform: translateX(-3%) rotate(-.6deg); opacity: .07; } to { transform: translateX(3%) rotate(.6deg); opacity: .14; } }
@keyframes swallow-cross {
  0% { transform: translate3d(0, 18px, 0) rotate(-2deg); }
  18% { transform: translate3d(20vw, -4px, 0) rotate(3deg); }
  42% { transform: translate3d(45vw, 10px, 0) rotate(-1deg); }
  68% { transform: translate3d(72vw, -8px, 0) rotate(3deg); }
  100% { transform: translate3d(calc(100vw + 150px), 5px, 0) rotate(-2deg); }
}
@keyframes swallow-glide { 0%, 100% { transform: translateY(2px) rotate(-6deg); } 50% { transform: translateY(-2px) rotate(-1deg); } }
@keyframes swallow-wing { from { transform: rotate(-8deg) scaleY(1); } to { transform: rotate(22deg) scaleY(.72); } }

@media (max-width: 1050px) {
  .portal-header { gap: 18px; }
  .portal-header nav a { padding: 0 11px; font-size: 13px; }
  .portal-header nav a::after { left: 11px; right: 11px; }
  .portal-main, footer { width: min(100% - 48px, 1480px); }
}
@media (max-width: 760px) {
  .portal-header { min-height: 0; height: auto; padding: 14px 20px 0; gap: 10px; }
  .brand-mark { width: 42px; height: 42px; }
  .brand strong { font-size: 19px; }
  .portal-header nav { margin: 8px -20px 0; padding: 0 12px; width: calc(100% + 40px); border-top: 1px solid var(--line); overflow-x: auto; }
  .portal-header nav a { min-height: 48px; padding: 0 14px; white-space: nowrap; }
  .portal-header nav a::after { left: 14px; right: 14px; }
  .identity { margin-left: auto; }
  .portal-main, footer { width: calc(100% - 32px); }
  .portal-main { padding-top: 36px; padding-bottom: 64px; }
  .page-title, .company-hero { margin-bottom: 28px; }
  .page-title h1, .company-hero h1 { font-size: 34px; }
  .panel { padding: 21px; margin-bottom: 18px; }
  .metric-grid article { min-height: 140px; padding: 20px; }
  .metric-grid strong { font-size: 34px; }
  .ticket { padding: 18px; }
  .ticket-main { align-items: flex-start; gap: 14px; }
  table { min-width: 650px; }
}
@media (max-width: 430px) {
  .portal-header .brand small { display: none; }
  .identity span { display: none; }
  .portal-main, footer { width: calc(100% - 24px); }
  .metric-grid { grid-template-columns: 1fr; }
  .panel { padding: 17px; }
  .page-title h1, .company-hero h1 { font-size: 30px; }
  .page-title .secondary, .hero-dashboard .primary { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

/* Interaction polish and responsive guardrails. */
:focus-visible {
  outline: 3px solid rgba(185, 121, 34, .42);
  outline-offset: 3px;
}
::selection { color: var(--forest-dark); background: #f3d995; }
.portal-main > .page-title,
.portal-main > .company-hero,
.portal-main > .hero-dashboard {
  position: relative;
}
.portal-main > .page-title::after,
.portal-main > .company-hero::after,
.portal-main > .hero-dashboard::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -18px;
  width: 54px;
  height: 3px;
  border-radius: 3px;
  background: var(--brand);
  animation: shimmer-line .5s var(--ease) both;
}
.portal-main > .panel,
.portal-main > .split-grid,
.portal-main > .summary-grid,
.portal-main > .correction-counts,
.portal-main > .tabs,
.portal-main > .ticket-list {
  animation: rise-in .42s var(--ease) both;
}
.portal-main > .panel:nth-of-type(2),
.portal-main > .split-grid:nth-of-type(2) { animation-delay: .05s; }
.portal-main > .panel:nth-of-type(3) { animation-delay: .1s; }

.dialog-form input:hover,
.dialog-form select:hover,
.dialog-form textarea:hover,
.filter-bar input:hover,
.filter-bar select:hover,
.inline-filter input:hover,
.inline-filter select:hover,
.amend-correction input:hover,
.amend-correction select:hover,
.amend-correction textarea:hover {
  border-color: #afc4b7;
}
.dialog-form input:focus,
.dialog-form select:focus,
.dialog-form textarea:focus,
.filter-bar input:focus,
.filter-bar select:focus,
.inline-filter input:focus,
.inline-filter select:focus,
.amend-correction input:focus,
.amend-correction select:focus,
.amend-correction textarea:focus,
.review-decision textarea:focus,
.note-picker select:focus {
  outline: 0;
  border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(23, 107, 80, .12);
}
.table-action,
.document-links a,
.back,
.action-list a,
.review-detail-link {
  transition: color .2s var(--ease), background-color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.table-action:hover,
.document-links a:hover,
.back:hover { color: var(--brand); }
.back::before { content: ""; display: inline-block; width: 18px; height: 1px; margin: 0 7px 4px 0; background: currentColor; transition: width .2s var(--ease); }
.back:hover::before { width: 26px; }
.empty-card { min-height: 150px; display: grid; place-items: center; }
.alert { border-left: 4px solid transparent; animation: rise-in .32s var(--ease) both; }
.alert.success { border-left-color: var(--forest); }
.alert.error { border-left-color: var(--red); }
.ticket-top .status { flex: 0 0 auto; }
.ticket-reason { color: #344840; }
.ticket-reason blockquote { background: var(--panel-soft); border-left-color: var(--gold); border-radius: 0 6px 6px 0; }
.evidence-checks li { border: 1px solid transparent; transition: transform .2s var(--ease), border-color .2s var(--ease); }
.evidence-checks li:hover { transform: translateX(3px); }
.evidence-checks .pass { border-color: #c9e0ce; }
.evidence-checks .fail { border-color: #edc7bf; }
.evidence-checks .warning { border-color: #ead39a; }
.evidence-checks .notice { border-color: #e0e3dc; }
.correction-assessment .ticket-change { margin: 2px 0 18px; }
.correction-assessment form { margin-top: 16px; }
.correction-assessment form .primary { margin-left: auto; }

@media (max-width: 1050px) {
  .identity > span { display: none; }
  .portal-header nav { flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: thin; scrollbar-color: #c7d8cd transparent; }
  .portal-header nav::-webkit-scrollbar { height: 4px; }
  .portal-header nav::-webkit-scrollbar-thumb { background: #c7d8cd; border-radius: 4px; }
}
@media (max-width: 760px) {
  .portal-main > .page-title::after,
  .portal-main > .company-hero::after,
  .portal-main > .hero-dashboard::after { bottom: -13px; }
  .page-title .secondary + .secondary { width: auto; }
  .ticket-top { flex-wrap: wrap; }
  .ticket-top time { order: 3; width: 100%; margin: 2px 0 0; }
  .ticket-main { flex-wrap: wrap; }
  .ticket-main .request-type { margin-left: auto; }
  .definition-grid { gap: 8px; }
  .definition-grid div { padding: 11px; }
  .review-decision form div { flex-wrap: wrap; }
  .review-decision form div button { flex: 1 1 130px; }
}
@media (max-width: 430px) {
  .portal-header { padding-left: 14px; padding-right: 14px; }
  .portal-header nav { margin-left: -14px; margin-right: -14px; width: calc(100% + 28px); }
  .portal-main > .page-title::after,
  .portal-main > .company-hero::after,
  .portal-main > .hero-dashboard::after { width: 42px; }
  .ticket-main .request-type { margin-left: 0; }
  .definition-grid { grid-template-columns: 1fr; }
  .correction-assessment form .primary { width: 100%; }
}

@media (max-width: 760px) {
  .portal-header { min-height: 0; height: auto; padding-top: 12px; }
  .portal-header::after { height: 20px; }
}

/* Scanning hierarchy for operational pages. */
.hero-dashboard {
  padding-top: 12px;
  border-bottom: 1px solid var(--line);
}
.hero-dashboard .primary { flex: 0 0 auto; }
.hero-dashboard h1 { max-width: 780px; }
.metric-grid article { border-top: 3px solid transparent; }
.metric-grid article:not(.accent):nth-child(1) { border-top-color: var(--forest); }
.metric-grid article:not(.accent):nth-child(2) { border-top-color: var(--brand); }
.metric-grid article:not(.accent):nth-child(3) { border-top-color: var(--blue); }
.metric-grid article:not(.accent):nth-child(4) { border-top-color: var(--lime); }
.metric-grid article.accent { border-top-color: var(--brand); }
.metric-grid article.accent strong { color: #f5d98a; }
.section-head > div:first-child { min-width: 0; }
.section-head p { max-width: 680px; }
.section-head > a,
.section-head > div > a { flex: 0 0 auto; font-size: 13px; font-weight: 700; }
.panel > .section-head:last-child { margin-bottom: 0; }
.pipeline div { position: relative; overflow: hidden; }
.pipeline div::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.pipeline div:hover::after { transform: scaleX(1); }
.status::before,
.verdict::before,
.risk::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-right: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: .72;
}
.tabs {
  align-items: end;
  gap: 0;
  border-bottom: 1px solid var(--line);
}
.tabs a {
  position: relative;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 0;
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.tabs a:hover { color: var(--brand-deep); background: var(--brand-wash); }
.tabs a.active { color: var(--forest-dark); background: transparent; }
.tabs a.active::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: -1px;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--brand);
}
.tabs a b { background: #edf2ed; color: var(--forest); }
.tabs a.active b { color: #fff; background: var(--forest); }
.correction-counts { margin-bottom: 22px; }
.correction-count {
  min-height: 68px;
  padding: 14px 17px;
  border-top: 3px solid transparent;
}
.correction-count.all { border-top-color: var(--forest); }
.correction-count.pending { border-top-color: var(--gold); }
.correction-count.approved { border-top-color: var(--forest); }
.correction-count.rejected { border-top-color: var(--red); }
.correction-count.resolved { border-top-color: var(--blue); }
.correction-count span { font-size: 12px; color: var(--muted); }
.correction-count strong { font-size: 25px; line-height: 1; }
.document-card { border: 1px solid var(--line); transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease); }
.document-card:hover { transform: translateY(-2px); border-color: #b9cfc3; box-shadow: var(--shadow); }
.document-icon { transition: transform .22s var(--ease); }
.document-card:hover .document-icon { transform: translateY(-2px) rotate(-2deg); }
.document-flags span:first-child { color: var(--forest); }
.summary-card { min-height: 86px; }
.summary-card strong { line-height: 1.1; }
.dimension { transition: transform .2s var(--ease); }
.dimension:hover { transform: scale(1.08); }
.coverage { height: 8px; }
.coverage span { transition: width .7s var(--ease); }
.pagination a { color: var(--forest); font-weight: 700; }
.pagination a:hover { color: var(--brand); }
.pagination b { color: var(--forest-dark); }
input[type="checkbox"] { accent-color: var(--forest); }
button:disabled { cursor: not-allowed; }
.login-card .primary { min-height: 48px; }

@media (max-width: 760px) {
  .hero-dashboard { padding-top: 0; }
  .hero-dashboard .primary { width: 100%; }
  .section-head { align-items: flex-start; }
  .section-head > a, .section-head > div > a { margin-top: 4px; }
  .correction-count { min-height: 64px; }
  .tabs { overflow-x: auto; }
  .tabs a { white-space: nowrap; }
}

/* Entry experience: the login page shares the same visual language as the workspace. */
.login-page {
  position: relative;
  isolation: isolate;
  background: var(--forest-dark);
  color: #fff;
}
.login-atmosphere {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    var(--forest-dark);
  background-size: 48px 48px;
  opacity: .7;
}
.login-shell {
  z-index: 2;
  width: min(1240px, calc(100% - 64px));
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 430px);
  gap: clamp(48px, 9vw, 132px);
}
.login-page .swallow-flight {
  top: 12vh;
  z-index: 1;
  opacity: .4;
}
.login-page::before,
.login-page::after,
.login-atmosphere::before,
.login-atmosphere::after {
  content: "";
  position: fixed;
  pointer-events: none;
}
.login-page::before {
  z-index: -1;
  width: 48vw;
  height: 48vw;
  max-width: 760px;
  max-height: 760px;
  right: 3vw;
  top: -25vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 202, 100, .38) 0%, rgba(224, 164, 61, .16) 26%, rgba(224, 164, 61, 0) 68%);
  filter: blur(8px);
  animation: sunset-pulse 8s ease-in-out infinite alternate;
}
.login-page::after {
  z-index: -1;
  inset: -20% -10%;
  opacity: .28;
  background:
    linear-gradient(112deg, transparent 0 39%, rgba(247, 211, 126, .26) 44%, transparent 52%),
    linear-gradient(124deg, transparent 0 51%, rgba(247, 211, 126, .18) 58%, transparent 66%),
    linear-gradient(101deg, transparent 0 63%, rgba(247, 211, 126, .16) 69%, transparent 77%);
  transform: translateX(-3%);
  transform-origin: 78% 12%;
  animation: sunlight-drift 13s ease-in-out infinite alternate;
}
.login-atmosphere::before {
  z-index: -1;
  left: -5vw;
  right: -5vw;
  bottom: -2px;
  height: 27vh;
  min-height: 170px;
  opacity: .62;
  background: #072f28;
  clip-path: polygon(
    0 76%, 3% 63%, 5% 70%, 7% 42%, 9% 70%, 11% 55%, 13% 70%,
    15% 34%, 17% 70%, 19% 52%, 21% 70%, 23% 40%, 25% 70%,
    27% 58%, 29% 70%, 31% 32%, 33% 70%, 35% 51%, 37% 70%,
    39% 43%, 41% 70%, 44% 56%, 46% 70%, 48% 38%, 50% 70%,
    52% 52%, 54% 70%, 56% 30%, 58% 70%, 60% 49%, 62% 70%,
    64% 41%, 66% 70%, 68% 54%, 70% 70%, 72% 35%, 74% 70%,
    76% 48%, 78% 70%, 80% 39%, 82% 70%, 84% 57%, 86% 70%,
    88% 33%, 90% 70%, 92% 45%, 94% 70%, 96% 54%, 98% 70%, 100% 60%, 100% 100%, 0 100%
  );
  animation: forest-sway 19s ease-in-out infinite alternate;
}
.login-atmosphere::after {
  z-index: -2;
  left: -8vw;
  right: -8vw;
  bottom: 10vh;
  height: 23vh;
  min-height: 130px;
  opacity: .35;
  background: #4e795d;
  clip-path: polygon(
    0 82%, 4% 65%, 7% 77%, 10% 50%, 13% 77%, 16% 60%, 19% 77%,
    22% 46%, 25% 77%, 28% 62%, 31% 77%, 34% 53%, 37% 77%,
    40% 66%, 43% 77%, 46% 45%, 49% 77%, 52% 59%, 55% 77%,
    58% 49%, 61% 77%, 64% 64%, 67% 77%, 70% 44%, 73% 77%,
    76% 58%, 79% 77%, 82% 48%, 85% 77%, 88% 62%, 91% 77%,
    94% 50%, 97% 77%, 100% 64%, 100% 100%, 0 100%
  );
  animation: forest-sway-rear 25s ease-in-out infinite alternate-reverse;
}
.login-story { animation: rise-in .55s var(--ease) both; }
.login-story .eyebrow { color: #e4be64; }
.login-story h1 {
  max-width: 720px;
  margin: 24px 0 18px;
  color: #fff;
  font-size: clamp(44px, 5.2vw, 76px);
  line-height: 1.08;
}
.login-story p { color: rgba(255,255,255,.72); font-size: 16px; }
.principles { gap: 10px; margin-top: 34px; }
.principles span {
  padding: 8px 12px;
  border-color: rgba(228,190,100,.34);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.82);
  transition: border-color .2s var(--ease), background-color .2s var(--ease), transform .2s var(--ease);
}
.principles span:hover { border-color: #e4be64; background: rgba(228,190,100,.1); transform: translateY(-2px); }
.login-card {
  position: relative;
  overflow: hidden;
  padding: 38px;
  border: 1px solid rgba(228,190,100,.28);
  border-top: 4px solid #c79236;
  border-radius: 9px;
  background: #fffdf8;
  box-shadow: 0 30px 80px rgba(0,0,0,.32);
  animation: rise-in .55s .08s var(--ease) both;
}
.login-card::after {
  content: "";
  position: absolute;
  right: -38px;
  top: -38px;
  width: 110px;
  height: 110px;
  border: 1px solid rgba(185,121,34,.22);
  transform: rotate(45deg);
  pointer-events: none;
}
.login-brand { margin-bottom: 46px; }
.login-brand .brand-mark { width: 46px; height: 46px; }
.login-brand strong { font-size: 22px; }
.login-card h2 { margin-bottom: 10px; color: var(--forest-dark); font-size: 28px; }
.login-card .muted { font-size: 13px; }
.stack { gap: 17px; }
.stack label { gap: 7px; color: #52635d; font-size: 12px; }
.stack input {
  min-height: 48px;
  padding: 0 13px;
  border-color: #cfdcd4;
  border-radius: 7px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background-color .2s var(--ease);
}
.stack input:hover { border-color: #afc4b7; }
.stack input:focus { outline: 0; border-color: var(--forest); background: #fff; box-shadow: 0 0 0 3px rgba(23,107,80,.12); }
.captcha-row > input { height: 48px; }
.captcha-image-button, .captcha-refresh { height: 48px; border-radius: 7px; transition: border-color .2s var(--ease), transform .2s var(--ease), background-color .2s var(--ease); }
.captcha-image-button:hover, .captcha-refresh:hover { border-color: var(--brand); background: var(--brand-wash); transform: translateY(-1px); }
.login-card .primary { min-height: 50px; margin-top: 2px; background: var(--forest); }
.login-card .primary:hover { background: var(--forest-dark); }
.security-note { margin-top: 26px; padding-top: 19px; color: #718079; line-height: 1.55; }

@media (max-width: 1050px) {
  .login-shell { grid-template-columns: minmax(0, 1fr) 390px; gap: 52px; }
  .login-story h1 { font-size: clamp(42px, 5vw, 64px); }
}
@media (max-width: 760px) {
  .login-shell { width: calc(100% - 40px); display: block; padding: 48px 0 64px; }
  .login-story { margin-bottom: 40px; }
  .login-story h1 { margin-top: 18px; font-size: 44px; }
  .login-card { padding: 28px 24px; }
}
@media (max-width: 430px) {
  .login-shell { width: calc(100% - 28px); padding-top: 34px; }
  .login-story h1 { font-size: 36px; }
  .login-story p { font-size: 14px; }
  .principles { margin-top: 24px; }
  .login-card { padding: 25px 19px; }
}


/* ══════════════════════════════════════════════════════════════════════════
   2026 bright-green frame — the shell docs/assets/home.css establishes for the
   public site, carried to the 8001 workspace.

   Appended last on purpose. This file layers by source order (five :root blocks,
   .portal-header declared four times, .login-page three times), so the frame has
   to come after every earlier layer to win. Only the frame and the palette are
   restated here; body layout and table structure are untouched.
   ══════════════════════════════════════════════════════════════════════════ */
.portal-header {
  position: sticky;
  top: var(--sp-4);
  z-index: 30;
  height: auto;
  min-height: 0;
  width: min(1480px, calc(100vw - 64px));
  margin: var(--sp-4) auto var(--sp-6);
  padding: var(--sp-3) var(--sp-5);
  gap: var(--sp-5);
  overflow: visible;
  isolation: auto;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.portal-header::after { display: none; }
.portal-header nav { align-self: center; gap: var(--sp-1); }
.portal-header nav a {
  min-height: 0;
  padding: 8px 12px;
  border: 0;
  border-radius: var(--radius-pill);
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 500;
}
.portal-header nav a::after { display: none; }
.portal-header nav a:hover { color: var(--brand-strong); background: var(--brand-wash); }
.portal-header nav a.active { color: var(--brand-deep); background: var(--brand-tint); }
.brand { gap: var(--sp-3); }
.brand-mark { width: 34px; height: 34px; }
.brand strong {
  font-size: 17px;
  color: var(--ink);
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  -webkit-text-fill-color: currentColor;
}
.brand small { font-size: 12px; }
.quiet { min-height: 0; padding: 7px 14px; border-radius: var(--radius-pill); }
footer {
  width: min(1480px, calc(100vw - 64px));
  margin: var(--sp-8) auto 0;
  padding: var(--sp-7) 0 var(--sp-6);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}
.portal-footer .footer-brand { display: flex; align-items: baseline; gap: var(--sp-2); }
.portal-footer .footer-brand strong { color: var(--ink); font-size: 13px; }
.portal-footer .footer-links { display: flex; gap: var(--sp-5); }
.portal-footer .footer-links a { color: inherit; }
.portal-footer .footer-links a:hover { color: var(--brand-strong); }
.portal-footer .footer-note { color: var(--muted-soft); }

/* Login page. The dark forest panel came from .login-page, plus a gold "sunset"
   ::before and a gold light-ray ::after; all three are replaced by the same
   top-edge brand glow the public pages use. The .login-atmosphere mountains are
   dead CSS — no element in _login_page() carries that class. */
.login-page { background: var(--bg); color: var(--ink); }
.login-page::before {
  top: -14vw;
  right: auto;
  bottom: auto;
  left: 0;
  width: 100%;
  height: 52vw;
  max-width: 720px;
  max-height: 620px;
  border-radius: 0;
  filter: none;
  animation: none;
  background: radial-gradient(62% 56% at 50% 0%, rgba(134, 239, 172, .34), rgba(134, 239, 172, 0));
}
.login-page::after { display: none; }
.login-page .swallow-flight { display: none; }
.login-story .eyebrow { color: var(--brand-strong); }
.login-story h1 { color: var(--ink); }
.login-story p { color: var(--muted); }
.principles span { border-color: var(--line); background: var(--panel); color: var(--muted); }
.principles span:hover { border-color: var(--brand); background: var(--brand-wash); }
.login-card {
  border: 1px solid var(--line);
  border-top: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: var(--shadow-hover);
}
.login-card::after { display: none; }
.login-card h2 { color: var(--brand-deep); }
.login-card .primary { background: var(--brand); }
.login-card .primary:hover { background: var(--brand-strong); }

@media (max-width: 1050px) {
  .portal-header { gap: var(--sp-4); padding: var(--sp-3) var(--sp-4); }
}
@media (max-width: 900px) {
  .portal-header { top: var(--sp-2); flex-wrap: wrap; border-radius: var(--radius-lg); }
  /* flex-basis 0 comes from the 1050px layer, and a zero basis never wraps.
     Force a full-width basis so the nav takes its own row on small screens. */
  .portal-header nav { order: 3; flex: 0 0 100%; width: 100%; margin: 0; padding: 0; overflow-x: auto; }
}
@media (max-width: 760px) {
  .portal-header { height: auto; padding: var(--sp-3) var(--sp-4); }
  .portal-header nav { flex: 0 0 100%; margin: 0; padding: 0; width: 100%; border-top: 0; }
  .portal-header nav a { min-height: 0; padding: 8px 10px; }
}
@media (max-width: 430px) {
  .portal-header .brand small { display: none; }
}
@media print {
  .portal-header { position: static; background: #fff; box-shadow: none; backdrop-filter: none; }
}


/* ══════════════════════════════════════════════════════════════════════════
   2026-09-17 — the login page as a full-bleed photo hero.

   The workspace behind the login keeps the bright-green frame; only the entry
   page goes photographic: full-viewport photo, dark scrim, left-aligned white
   headline, sparse letterspaced nav, one solid and one outlined button. That
   is the shape of the reference the user supplied, and it also reads better
   than the green frame because the entry page has no data to show.

   Appended last on purpose: .login-page / .login-shell / .login-card are each
   declared by earlier layers, and this one has to win over all of them.
   ══════════════════════════════════════════════════════════════════════════ */
.login-page {
  min-height: 100vh;
  background: #05101f;
  color: #fff;
}
.login-page::before { display: none; }   /* was the green glow above the fold */

.login-hero {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.login-hero img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 42% 50%;
}
/* Two scrims stacked: a left-to-right one so the headline sits on near-solid
   navy, and a top/bottom one to settle the nav and the card edges. */
.login-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(4,14,30,.84) 0%, rgba(4,14,30,.62) 26%, rgba(5,17,36,.24) 54%, rgba(5,17,36,0) 100%),
    linear-gradient(180deg, rgba(3,9,20,.4) 0%, rgba(3,9,20,0) 32%, rgba(3,10,22,.3) 100%);
}

.login-topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-6);
  padding: var(--sp-5) clamp(24px, 4vw, 64px);
}
.login-wordmark {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .18em;
  text-decoration: none;
}
.login-wordmark img { display: block; width: 30px; height: 30px; border-radius: 6px; }
.login-nav { display: flex; align-items: center; gap: clamp(16px, 2.6vw, 38px); }
.login-nav a {
  padding: 6px 0;
  text-shadow: 0 1px 12px rgba(2,10,24,.5);
  border-bottom: 1px solid transparent;
  color: rgba(255,255,255,.78);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: .16em;
  white-space: nowrap;
  text-decoration: none;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.login-nav a:hover { color: #fff; border-bottom-color: rgba(255,255,255,.72); }

.login-shell {
  z-index: 2;
  width: min(1400px, calc(100% - 2 * clamp(24px, 4vw, 64px)));
  min-height: calc(100vh - 84px);
  padding: 0 0 clamp(32px, 6vh, 72px);
  grid-template-columns: minmax(0, 1fr) minmax(340px, 404px);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}

.login-story .eyebrow {
  color: #8ff0b8;
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.login-story h1 {
  max-width: 660px;
  margin: 22px 0 20px;
  color: #fff;
  font-size: clamp(38px, 4.4vw, 64px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.01em;
  text-shadow: 0 2px 28px rgba(2,10,24,.42);
}
.login-story p {
  max-width: 540px;
  color: rgba(255,255,255,.82);
  font-size: 16.5px;
  line-height: 1.72;
  text-shadow: 0 2px 18px rgba(2,10,24,.6);
}
.login-actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-6); }
.login-actions a {
  padding: 15px 30px;
  border-radius: 3px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .06em;
  text-decoration: none;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.login-cta-solid { background: #fff; color: #0a1c33; }
.login-cta-solid:hover { background: #d9f2e2; }
.login-cta-ghost { border: 1px solid rgba(255,255,255,.58); color: #fff; }
.login-cta-ghost:hover { border-color: #fff; background: rgba(255,255,255,.12); }

/* The three proof points read as one quiet line, not as pills: on a photo the
   pill outline from the light theme turns into visual noise under the CTA row. */
.login-story .principles {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: var(--sp-6);
  padding-top: var(--sp-5);
  border-top: 1px solid rgba(255,255,255,.16);
}
.login-story .principles span {
  padding: 0;
  border: 0;
  background: none;
  color: rgba(255,255,255,.62);
  font-size: 12.5px;
  letter-spacing: .1em;
}
.login-story .principles span + span::before {
  content: "·";
  margin: 0 12px;
  color: rgba(255,255,255,.3);
}
.login-story .principles span:hover { border: 0; background: none; transform: none; }

.login-card {
  padding: clamp(28px, 3vw, 40px);
  border: 0;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 40px 90px rgba(3,12,26,.46);
}
.login-card h2 { margin-bottom: 8px; color: var(--ink); font-size: 26px; }
.login-card .primary { background: var(--brand); }
.login-card .primary:hover { background: var(--brand-strong); }

@media (max-width: 1080px) {
  .login-shell { grid-template-columns: minmax(0, 1fr) 360px; gap: 44px; }
  .login-story h1 { font-size: clamp(34px, 4.6vw, 48px); }
}
@media (max-width: 900px) {
  .login-topbar { flex-wrap: wrap; gap: var(--sp-3); padding: var(--sp-4) var(--sp-5) 0; }
  .login-nav { order: 3; width: 100%; gap: var(--sp-5); overflow-x: auto; }
  .login-nav a { letter-spacing: .1em; }
  .login-shell {
    display: block;
    width: calc(100% - 40px);
    min-height: 0;
    padding: var(--sp-6) 0 var(--sp-8);
  }
  .login-story { margin-bottom: var(--sp-6); }
  .login-story h1 { margin-top: 16px; }
  .login-card { max-width: 460px; }
}
@media (max-width: 560px) {
  .login-story h1 { font-size: 32px; }
  .login-story p { font-size: 15px; }
  .login-actions a { flex: 1 1 auto; text-align: center; padding: 14px 20px; }
}
