:root {
    --ink: #132235;
    --muted: #697789;
    --muted-2: #8995a4;
    --line: #e3e8ed;
    --surface: #ffffff;
    --canvas: #f4f6f7;
    --navy: #0e1a2a;
    --navy-2: #14253a;
    --teal: #187a77;
    --teal-2: #1d918b;
    --teal-soft: #e6f4f2;
    --gold: #b78a43;
    --gold-soft: #f7f0e4;
    --red: #bb4d58;
    --red-soft: #fbecef;
    --amber: #b97220;
    --amber-soft: #fff3df;
    --green: #2e7b5e;
    --green-soft: #e8f4ed;
    --blue: #3c668f;
    --blue-soft: #ebf1f7;
    --shadow: 0 1px 2px rgba(17,34,52,.04), 0 8px 24px rgba(17,34,52,.05);
    --radius: 14px;
    --sidebar: 272px;
    font-synthesis: none;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--canvas); }
body { margin: 0; min-height: 100vh; color: var(--ink); background: var(--canvas); font: 14px/1.55 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 9px; font-size: clamp(27px, 3vw, 38px); line-height: 1.12; letter-spacing: -.035em; }
h2 { margin-bottom: 6px; font-size: 19px; line-height: 1.25; letter-spacing: -.018em; }
h3 { font-size: 15px; }
p { color: var(--muted); }
.app-shell { min-height: 100vh; }
.sidebar { position: fixed; z-index: 40; inset: 0 auto 0 0; display: flex; flex-direction: column; width: var(--sidebar); padding: 27px 18px 18px; color: #dce5eb; background: var(--navy); overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 8px 27px; color: #fff; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; color: #7bd0c9; }
.brand-mark svg { display: block; width: 100%; height: 100%; }
.brand strong { display: block; font-size: 17px; letter-spacing: .18em; }
.brand small { display: block; margin-top: 1px; color: #8fa2b4; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.nav-stack { display: flex; flex: 1; flex-direction: column; gap: 4px; }
.nav-label { padding: 19px 12px 7px; color: #687e92; font-size: 10px; font-weight: 750; letter-spacing: .16em; text-transform: uppercase; }
.nav-item { display: flex; align-items: center; gap: 11px; min-height: 42px; padding: 9px 11px; border: 1px solid transparent; border-radius: 9px; color: #aebdcc; font-size: 13px; transition: .18s ease; }
.nav-item:hover { color: #fff; background: rgba(255,255,255,.045); }
.nav-item.active { color: #fff; border-color: rgba(101,203,195,.13); background: rgba(65,167,158,.13); box-shadow: inset 2px 0 0 #55b9b0; }
.nav-icon { width: 22px; color: #7891a5; font-size: 17px; text-align: center; }
.stage-token { display: grid; place-items: center; width: 22px; height: 22px; border: 1px solid #3b5267; border-radius: 6px; color: #82bdb8; font-size: 10px; font-weight: 800; }
.sidebar-footer { margin-top: 20px; }
.horizon-card { margin-bottom: 9px; padding: 14px; border: 1px solid #263a50; border-radius: 11px; background: #112135; }
.horizon-card strong, .horizon-card small { display: block; }
.horizon-card strong { margin: 5px 0 2px; color: #eaf1f5; font-size: 12px; }
.horizon-card small { color: #7f92a3; font-size: 11px; }
.main-shell { min-height: 100vh; margin-left: var(--sidebar); }
.topbar { position: sticky; z-index: 30; top: 0; display: flex; align-items: center; justify-content: space-between; height: 74px; padding: 0 34px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.94); backdrop-filter: blur(12px); }
.organization-identity { display: flex; align-items: center; gap: 11px; }
.organization-identity > div strong, .organization-identity > div small { display: block; }
.organization-identity > div strong { font-size: 13px; }
.organization-identity > div small { color: var(--muted-2); font-size: 11px; }
.org-avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; color: #fff; background: var(--teal); font-weight: 800; }
.topbar-actions { display: flex; align-items: center; gap: 13px; }
.quick-create { padding: 9px 15px; border: 1px solid #ced8df; border-radius: 8px; background: #fff; color: #24394d; font-size: 12px; font-weight: 700; }
.quick-create:hover { border-color: var(--teal); color: var(--teal); }
.user-menu { position: relative; }
.user-menu summary { list-style: none; }
.user-menu summary::-webkit-details-marker { display: none; }
.user-menu summary span { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: #fff; background: var(--navy-2); font-weight: 800; cursor: pointer; }
.dropdown-menu { position: absolute; top: 45px; right: 0; width: 240px; padding: 14px; border: 1px solid var(--line); border-radius: 11px; background: #fff; box-shadow: 0 18px 50px rgba(23,39,57,.15); }
.dropdown-menu strong, .dropdown-menu small { display: block; }
.dropdown-menu small { color: var(--muted); }
.dropdown-menu hr { margin: 11px 0; border: 0; border-top: 1px solid var(--line); }
.dropdown-menu button { width: 100%; padding: 8px; border: 0; border-radius: 7px; background: transparent; color: var(--ink); text-align: left; }
.dropdown-menu button:hover { background: var(--canvas); }
.page-wrap { max-width: 1560px; margin: 0 auto; padding: 36px 34px 70px; }
.page-heading { margin-bottom: 27px; }
.page-heading > p { max-width: 750px; margin-bottom: 0; font-size: 14px; }
.split-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; }
.heading-actions, .record-actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.eyebrow { display: block; color: var(--teal); font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.back-link { display: block; width: fit-content; margin-bottom: 20px; color: var(--muted); font-size: 12px; font-weight: 650; }
.back-link:hover { color: var(--teal); }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.panel-header { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 20px 22px 17px; border-bottom: 1px solid #edf0f2; }
.panel-header h2 { margin: 4px 0 0; }
.panel-header > a, .text-button { color: var(--teal); font-size: 12px; font-weight: 750; }
.text-button { padding: 4px; border: 0; background: none; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 9px 16px; border: 1px solid transparent; border-radius: 8px; font-size: 12px; font-weight: 750; letter-spacing: .01em; transition: .16s ease; }
.button.primary { color: #fff; border-color: var(--teal); background: var(--teal); box-shadow: 0 6px 16px rgba(24,122,119,.15); }
.button.primary:hover { border-color: #126864; background: #126864; transform: translateY(-1px); }
.button.secondary { color: #294158; border-color: #d5dde3; background: #fff; }
.button.secondary:hover { border-color: var(--teal); color: var(--teal); }
.button.ghost { color: var(--muted); border-color: transparent; background: transparent; }
.button.full { width: 100%; }
.icon-button { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid #d7dfe5; border-radius: 8px; color: var(--ink); background: #fff; }
.mobile-menu { display: none; }
.flash { margin-bottom: 20px; padding: 13px 16px; border: 1px solid; border-radius: 10px; }
.flash.success { color: #245e49; border-color: #c8e2d3; background: var(--green-soft); }
.flash.error { color: #873844; border-color: #f0cfd4; background: var(--red-soft); }
.flash ul { margin-bottom: 0; }
.system-state { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 11px; font-weight: 650; }
.system-state i, .live-label i { width: 7px; height: 7px; border-radius: 50%; background: #45a67c; box-shadow: 0 0 0 4px #e8f5ee; }
.cycle-banner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 30px; margin-bottom: 16px; padding: 25px 28px; border: 1px solid #dfe5e7; border-radius: var(--radius); background: linear-gradient(120deg,#fff 0%,#f6fbfa 100%); overflow: hidden; }
.cycle-banner::after { position: absolute; right: -40px; width: 210px; height: 210px; border: 1px solid rgba(24,122,119,.08); border-radius: 50%; content: ""; }
.cycle-banner h2 { margin: 5px 0 6px; font-size: 22px; }
.cycle-banner p { max-width: 760px; margin: 0; }
.cycle-period { position: relative; z-index: 1; min-width: 190px; padding: 13px 16px; border-left: 2px solid #8bc8c2; }
.cycle-period strong, .cycle-period small { display: block; }
.cycle-period small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.operating-loop { display: grid; grid-template-columns: repeat(6,1fr); margin-bottom: 20px; border: 1px solid var(--line); border-radius: 11px; background: #fff; overflow: hidden; }
.loop-step { position: relative; display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; padding: 14px 17px; border-right: 1px solid var(--line); }
.loop-step:last-child { border-right: 0; }
.loop-step:hover { background: #f7fbfa; }
.loop-step > span { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.loop-step strong { grid-row: 1/3; grid-column: 2; align-self: center; color: var(--ink); font-size: 23px; }
.loop-step small { color: var(--muted-2); font-size: 10px; }
.dashboard-grid { display: grid; grid-template-columns: repeat(12,1fr); gap: 18px; }
.span-4 { grid-column: span 4; }.span-5 { grid-column: span 5; }.span-6 { grid-column: span 6; }.span-7 { grid-column: span 7; }.span-8 { grid-column: span 8; }
.manual-chip { padding: 5px 9px; border: 1px solid #dce4e8; border-radius: 20px; color: var(--muted); background: #f8fafb; font-size: 9px; font-weight: 700; text-transform: uppercase; }
.briefing-list { padding: 8px 22px 17px; }
.briefing-item { display: flex; gap: 13px; padding: 14px 0; border-bottom: 1px solid #edf0f2; }
.briefing-item:last-child { border-bottom: 0; }
.briefing-signal { flex: 0 0 auto; width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 5px var(--blue-soft); }
.briefing-item.critical .briefing-signal { background: var(--red); box-shadow: 0 0 0 5px var(--red-soft); }
.briefing-item.attention .briefing-signal { background: var(--amber); box-shadow: 0 0 0 5px var(--amber-soft); }
.briefing-item.positive .briefing-signal { background: var(--green); box-shadow: 0 0 0 5px var(--green-soft); }
.briefing-item strong { display: block; margin-bottom: 2px; font-size: 13px; }
.briefing-item p { margin: 0; font-size: 12px; }
.compact-list { padding: 6px 21px 15px; }
.compact-list > a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 0; border-bottom: 1px solid #edf0f2; }
.compact-list > a:last-child { border-bottom: 0; }
.compact-list > a:hover strong { color: var(--teal); }
.compact-list strong, .compact-list small { display: block; }
.compact-list strong { font-size: 12px; }.compact-list small { margin-top: 2px; color: var(--muted); font-size: 10px; }
.compact-list time { flex: 0 0 auto; color: var(--muted); font-size: 10px; }
.outcome-list { padding: 7px 21px 15px; }
.outcome-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid #edf0f2; }
.outcome-row:last-child { border-bottom: 0; }.outcome-row strong,.outcome-row small { display: block; }.outcome-row strong { font-size: 12px; }.outcome-row small { color: var(--muted); font-size: 10px; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 5px var(--teal-soft); }.status-dot.at_risk { background: var(--amber); box-shadow: 0 0 0 5px var(--amber-soft); }
.metric-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; padding: 16px 20px 20px; }
.metric-card { padding: 13px; border: 1px solid #e6eaee; border-radius: 9px; background: #fbfcfc; }
.metric-card > span { display: block; min-height: 31px; color: var(--muted); font-size: 10px; font-weight: 700; }
.metric-card strong { display: block; margin: 3px 0; font-size: 22px; }.metric-card strong small { margin-left: 3px; color: var(--muted); font-size: 10px; font-weight: 500; }.metric-card em { color: var(--teal); font-size: 9px; font-style: normal; }
.empty-mini { padding: 22px 0; color: var(--muted); font-size: 12px; text-align: center; }
.badge { display: inline-flex; align-items: center; width: fit-content; padding: 4px 8px; border-radius: 20px; color: #536475; background: #eef2f4; font-size: 9px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; white-space: nowrap; }
.badge.active,.badge.approved,.badge.achieved,.badge.completed,.badge.current,.badge.resolved,.badge.complete { color: var(--green); background: var(--green-soft); }
.badge.at_risk,.badge.blocked,.badge.proposed,.badge.ready,.badge.follow_up,.badge.scheduled,.badge.treating,.badge.high { color: var(--amber); background: var(--amber-soft); }
.badge.critical,.badge.rejected,.badge.disputed { color: var(--red); background: var(--red-soft); }
.badge.draft,.badge.open,.badge.framing,.badge.acknowledged,.badge.normal { color: var(--blue); background: var(--blue-soft); }
.priority-label { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 11px; white-space: nowrap; }.priority-label i { width: 7px; height: 7px; border-radius: 50%; background: #95a2ae; }.priority-label.high i { background: var(--amber); }.priority-label.critical i { background: var(--red); }.priority-label.low i { background: #6a9e8a; }
.overdue { color: var(--red) !important; font-weight: 700; }
.filter-bar { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; }
.filter-bar select, .filter-bar input { height: 40px; border: 1px solid #d9e0e5; border-radius: 8px; color: var(--ink); background: #fff; outline: none; }
.filter-bar select { padding: 0 30px 0 11px; font-size: 11px; }
.search-field { position: relative; flex: 1; max-width: 440px; }.search-field span { position: absolute; top: 8px; left: 12px; color: var(--muted); font-size: 18px; }.search-field input { width: 100%; padding: 0 12px 0 37px; }
.text-link { color: var(--muted); font-size: 11px; text-decoration: underline; }
.table-panel { overflow: hidden; }.table-scroll { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { padding: 12px 18px; color: #7a8795; background: #f8fafb; font-size: 9px; font-weight: 800; letter-spacing: .1em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.data-table td { padding: 15px 18px; border-top: 1px solid #edf0f2; color: #3c4c5b; font-size: 11px; vertical-align: middle; }
.data-table tbody tr:hover { background: #fbfcfc; }.clickable-row { cursor: pointer; }
.record-title { display: block; min-width: 280px; }.record-title > span { display: block; margin-bottom: 2px; color: var(--teal); font-size: 9px; font-weight: 800; letter-spacing: .05em; }.record-title strong { display: block; color: var(--ink); font-size: 12px; }.record-title small { display: block; max-width: 520px; margin-top: 2px; color: var(--muted); }
.pagination { display: flex; align-items: center; justify-content: flex-end; gap: 15px; padding: 14px 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }.pagination a { color: var(--teal); font-weight: 750; }.pagination .disabled { color: #b6bec6; }
.empty-state { display: flex; align-items: center; flex-direction: column; padding: 70px 25px; text-align: center; }.empty-state p,.empty-state span { max-width: 480px; color: var(--muted); }.empty-state .button { margin-top: 12px; }.empty-state.small { padding: 25px 12px; }.empty-state.small strong,.empty-state.small span { display: block; }.empty-state.small span { margin-top: 4px; font-size: 11px; }
.empty-glyph { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 16px; border: 1px solid #cae2df; border-radius: 13px; color: var(--teal); background: var(--teal-soft); font-weight: 800; }
.form-layout { display: grid; grid-template-columns: minmax(0,2fr) minmax(280px,1fr); gap: 18px; }.form-main { padding: 23px; }.form-side { display: flex; flex-direction: column; gap: 18px; }.form-side .panel { padding: 21px; }
.section-heading { display: flex; align-items: flex-start; gap: 13px; margin-bottom: 22px; }.section-heading > span { display: grid; place-items: center; flex: 0 0 auto; width: 30px; height: 30px; border-radius: 8px; color: var(--teal); background: var(--teal-soft); font-size: 9px; font-weight: 800; }.section-heading h2 { margin-bottom: 2px; }.section-heading p { margin: 0; font-size: 11px; }.section-heading.compact { margin-bottom: 17px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }.span-2 { grid-column: span 2; }
.form-stack { display: flex; flex-direction: column; gap: 15px; }
label { display: block; color: #3b4c5d; font-size: 10px; font-weight: 750; letter-spacing: .02em; } label em,label small { color: var(--muted); font-size: 9px; font-style: normal; font-weight: 500; }
input,select,textarea { width: 100%; margin-top: 6px; padding: 10px 11px; border: 1px solid #d8dfe4; border-radius: 8px; color: var(--ink); background: #fff; outline: none; transition: border .15s, box-shadow .15s; } input,select { min-height: 42px; } textarea { resize: vertical; line-height: 1.55; }
input:focus,select:focus,textarea:focus { border-color: #69aaa5; box-shadow: 0 0 0 3px rgba(24,122,119,.09); }
.form-guidance { color: #dce8ed; border-color: #1d344b !important; background: var(--navy-2) !important; box-shadow: none !important; }.form-guidance p { margin: 7px 0 12px; color: #aebfcb; font-size: 12px; }.form-guidance ul { margin: 0; padding-left: 18px; color: #9eb0bd; font-size: 11px; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }.form-layout > .form-main:last-child { grid-column: 1; }
.record-hero { display: flex; align-items: flex-start; justify-content: space-between; gap: 30px; margin-bottom: 22px; padding: 4px 0 2px; }.record-hero > div:first-child { max-width: 950px; }.record-hero h1 { margin-top: 9px; }.record-hero p { max-width: 850px; font-size: 15px; }
.record-kicker { display: flex; gap: 8px; }.record-kicker span { padding: 3px 7px; border-radius: 5px; color: var(--teal); background: var(--teal-soft); font-size: 9px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.record-badges { display: flex; align-items: center; gap: 12px; margin-top: 17px; }.confidence-chip { color: var(--muted); font-size: 10px; }
.record-layout { display: grid; grid-template-columns: minmax(0,2.1fr) minmax(310px,.9fr); gap: 18px; }.record-main,.record-side { display: flex; flex-direction: column; gap: 18px; }
.detail-grid { display: grid; grid-template-columns: repeat(4,1fr); margin: 0; }.detail-grid div { min-height: 82px; padding: 17px 20px; border-right: 1px solid #edf0f2; border-bottom: 1px solid #edf0f2; }.detail-grid div:nth-child(4n) { border-right: 0; }.detail-grid div:nth-last-child(-n+4) { border-bottom: 0; }.detail-grid dt { margin-bottom: 6px; color: var(--muted-2); font-size: 9px; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; }.detail-grid dd { margin: 0; color: #324455; font-size: 11px; font-weight: 650; }
.narrative-panel { padding-bottom: 10px; }.narrative-panel article { padding: 18px 22px; border-bottom: 1px solid #edf0f2; }.narrative-panel article:last-child { border-bottom: 0; }.narrative-panel article h3 { margin-bottom: 6px; color: #425669; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }.narrative-panel article p { margin: 0; color: #3c4f60; white-space: normal; }
.relationship-list { padding: 7px 21px 15px; }.relationship-list > div { display: grid; grid-template-columns: 110px 1fr auto; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid #edf0f2; font-size: 11px; }.relationship-list > div:last-child { border-bottom: 0; }.relationship-list a:hover { color: var(--teal); }.relation-type { color: var(--teal); font-size: 9px; font-weight: 800; text-transform: uppercase; }.relation-type.inverse { color: var(--blue); }
.danger-link { padding: 2px; border: 0; color: var(--red); background: none; font-size: 9px; }.danger-button { padding: 8px 11px; border: 1px solid #efcbd0; border-radius: 7px; color: var(--red); background: var(--red-soft); font-size: 10px; font-weight: 750; }
.comment-list { padding: 8px 21px 3px; }.comment-list article { display: flex; gap: 11px; padding: 14px 0; border-bottom: 1px solid #edf0f2; }.comment-avatar { display: grid; place-items: center; flex: 0 0 auto; width: 31px; height: 31px; border-radius: 50%; color: #fff; background: #597386; font-size: 10px; font-weight: 800; }.comment-list article > div { flex: 1; }.comment-list header { display: flex; justify-content: space-between; }.comment-list header strong { font-size: 11px; }.comment-list time { color: var(--muted-2); font-size: 9px; }.comment-list p { margin: 4px 0 0; color: #445565; font-size: 11px; }.comment-form { padding: 14px 21px 20px; }.comment-form .button { margin-top: 8px; }
.file-list { padding: 8px 17px 17px; }.file-list article { display: grid; grid-template-columns: auto 1fr auto; gap: 9px; padding: 12px 0; border-bottom: 1px solid #edf0f2; }.file-icon { display: grid; place-items: center; width: 35px; height: 39px; border-radius: 6px; color: var(--teal); background: var(--teal-soft); font-size: 8px; font-weight: 900; }.file-list a { display: block; font-size: 11px; font-weight: 700; }.file-list small,.file-list em { display: block; color: var(--muted); font-size: 9px; font-style: normal; }.file-list em { margin-top: 3px; color: var(--green); font-weight: 750; }
.truth-check,.danger-zone { padding: 21px; }.truth-check h3 { margin: 6px 0 13px; }.truth-check ul { margin: 0; padding: 0; list-style: none; }.truth-check li { position: relative; padding: 7px 0 7px 23px; color: var(--muted); font-size: 10px; }.truth-check li::before { position: absolute; left: 0; width: 14px; height: 14px; border: 1px solid #d4dce2; border-radius: 50%; content: ""; }.truth-check li.done { color: #354c43; }.truth-check li.done::before { border-color: var(--green); background: var(--green); box-shadow: inset 0 0 0 3px #fff; }.danger-zone p { margin: 8px 0 13px; font-size: 10px; }
.modal { width: min(540px,calc(100vw - 28px)); padding: 0; border: 0; border-radius: 14px; color: var(--ink); background: #fff; box-shadow: 0 24px 80px rgba(10,25,41,.28); }.modal.wide { width: min(740px,calc(100vw - 28px)); }.modal::backdrop { background: rgba(8,20,34,.62); backdrop-filter: blur(3px); }.modal > form > header { display: flex; justify-content: space-between; padding: 22px 24px 17px; border-bottom: 1px solid var(--line); }.modal header h2 { margin: 4px 0 0; }.modal header button { border: 0; color: var(--muted); background: none; font-size: 22px; }.modal > form > p,.modal > form > label,.modal > form > .form-stack,.modal > form > .form-grid { margin: 20px 24px; }.modal > form > footer { display: flex; justify-content: flex-end; gap: 8px; padding: 15px 24px; border-top: 1px solid var(--line); background: #fafbfb; }.file-drop { padding: 16px; border: 1px dashed #bfcdd5; border-radius: 9px; background: #f8fafb; }.file-drop input { padding: 0; border: 0; background: transparent; }.file-drop span { display: block; margin-top: 6px; color: var(--muted); font-size: 9px; }
.card-grid { display: grid; gap: 17px; }.card-grid.three { grid-template-columns: repeat(3,1fr); }.cycle-card { padding: 21px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }.cycle-card.active { border-color: #8dc9c3; box-shadow: 0 0 0 2px var(--teal-soft), var(--shadow); }.cycle-card header { display: flex; justify-content: space-between; margin-bottom: 18px; }.live-label { display: flex; align-items: center; gap: 7px; color: var(--green); font-size: 9px; font-weight: 800; text-transform: uppercase; }.cycle-card h2 { font-size: 17px; }.cycle-card p { min-height: 68px; font-size: 11px; }.cycle-card dl { display: grid; grid-template-columns: 1fr 1fr; margin: 16px 0; padding: 13px 0; border-block: 1px solid #edf0f2; }.cycle-card dt { color: var(--muted-2); font-size: 8px; font-weight: 800; text-transform: uppercase; }.cycle-card dd { margin: 3px 0 0; font-size: 10px; font-weight: 700; }
.metric-list { display: flex; flex-direction: column; gap: 14px; }.metric-row { display: grid; grid-template-columns: 1fr 220px; overflow: hidden; }.metric-summary { padding: 22px 24px; }.metric-summary h2 { margin: 5px 0; }.metric-summary > p { font-size: 11px; }.metric-meta { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-top: 18px; }.metric-meta span { font-size: 10px; font-weight: 650; }.metric-meta small { display: block; margin-bottom: 4px; color: var(--muted-2); font-size: 8px; font-weight: 800; text-transform: uppercase; }.metric-latest { display: flex; align-items: center; flex-direction: column; justify-content: center; padding: 20px; border-left: 1px solid var(--line); background: #fafcfc; text-align: center; }.metric-latest > span { color: var(--muted); font-size: 9px; text-transform: uppercase; }.metric-latest strong { margin: 7px 0 2px; color: var(--teal); font-size: 31px; }.metric-latest strong small { margin-left: 4px; color: var(--muted); font-size: 10px; }.metric-latest em { margin-bottom: 12px; color: var(--muted); font-size: 9px; font-style: normal; }
.person-cell { display: flex; align-items: center; gap: 9px; }.person-cell > span { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; color: #fff; background: #5b7388; font-weight: 800; }.person-cell strong,.person-cell small { display: block; }.person-cell small { color: var(--muted); }
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }.settings-grid > .panel { padding: 23px; }.settings-grid .ai-boundary { grid-column: span 2; color: #e9f0f4; border-color: #203a52; background: var(--navy-2); }.ai-boundary p { max-width: 750px; color: #9eb0bd; }.ai-boundary dl { display: grid; grid-template-columns: repeat(3,1fr); margin: 20px 0 0; }.ai-boundary dl div { padding-right: 18px; }.ai-boundary dt { color: #7890a2; font-size: 8px; font-weight: 800; text-transform: uppercase; }.ai-boundary dd { margin: 4px 0 0; color: #dfe9ee; font-size: 11px; }
.event-label { padding: 4px 7px; border-radius: 5px; color: var(--blue); background: var(--blue-soft); font-size: 9px; font-weight: 750; }.audit-detail summary { color: var(--teal); cursor: pointer; }.audit-detail pre { max-width: 450px; max-height: 230px; padding: 10px; border-radius: 6px; color: #dce5eb; background: var(--navy); overflow: auto; font-size: 9px; }
.auth-body { background: var(--navy); }.auth-shell { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(460px,.85fr); min-height: 100vh; }.auth-story { display: flex; flex-direction: column; justify-content: space-between; padding: 55px clamp(45px,7vw,110px); color: #fff; background: radial-gradient(circle at 20% 75%,rgba(32,147,140,.22),transparent 32%),linear-gradient(140deg,#0b1726,#12283d); }.auth-brand { display: flex; align-items: center; gap: 12px; letter-spacing: .18em; }.auth-story h1 { margin: 13px 0 19px; font-size: clamp(38px,5vw,65px); line-height: 1.04; }.auth-story p { max-width: 650px; color: #a9bac6; font-size: 16px; }.auth-loop { display: grid; grid-template-columns: repeat(6,1fr); border: 1px solid #294057; border-radius: 9px; }.auth-loop span { padding: 11px; border-right: 1px solid #294057; color: #7fbdb8; font-size: 9px; font-weight: 800; text-align: center; text-transform: uppercase; }.auth-loop span:last-child { border: 0; }.auth-panel { display: grid; place-items: center; padding: 40px; background: #f6f8f9; }.login-card { width: min(390px,100%); padding: 34px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 24px 70px rgba(12,28,45,.15); }.login-card h2 { margin: 7px 0; font-size: 28px; }.login-card > p { margin-bottom: 25px; }.check-row { display: flex; align-items: center; gap: 8px; }.check-row input { width: auto; min-height: auto; margin: 0; }.security-note { display: block; margin-top: 17px; color: var(--muted); font-size: 9px; text-align: center; }
.sidebar-backdrop { display: none; }

@media (max-width: 1180px) {
    .span-8,.span-7 { grid-column: span 12; }.span-4,.span-5,.span-6 { grid-column: span 6; }
    .detail-grid { grid-template-columns: repeat(2,1fr); }.detail-grid div:nth-child(2n) { border-right: 0; }.detail-grid div:nth-last-child(-n+4) { border-bottom: 1px solid #edf0f2; }.detail-grid div:nth-last-child(-n+2) { border-bottom: 0; }
    .record-layout { grid-template-columns: minmax(0,1.65fr) minmax(290px,.85fr); }
    .card-grid.three { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 900px) {
    .sidebar { transform: translateX(-105%); transition: transform .22s ease; }.nav-open .sidebar { transform: translateX(0); }.nav-open .sidebar-backdrop { display: block; position: fixed; z-index: 35; inset: 0; background: rgba(7,19,33,.58); }
    .main-shell { margin-left: 0; }.mobile-menu { display: grid; }.topbar { padding: 0 20px; }.organization-identity { margin-right: auto; margin-left: 12px; }.page-wrap { padding: 27px 20px 55px; }
    .record-layout,.form-layout { grid-template-columns: 1fr; }.form-layout > .form-main:last-child { grid-column: 1; }.record-side { display: grid; grid-template-columns: 1fr 1fr; }.record-side .evidence-panel { grid-column: span 2; }
    .operating-loop { grid-template-columns: repeat(3,1fr); }.loop-step:nth-child(3) { border-right: 0; }.loop-step:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
    .auth-shell { grid-template-columns: 1fr; }.auth-story { min-height: 430px; padding: 38px; }.auth-panel { min-height: 500px; }
}

@media (max-width: 660px) {
    .quick-create { display: none; }.organization-identity > div { display: none; }.page-wrap { padding-inline: 14px; }.topbar { padding-inline: 14px; }
    .split-heading,.record-hero,.cycle-banner { align-items: flex-start; flex-direction: column; }.heading-actions,.record-actions { width: 100%; }.heading-actions .button,.record-actions .button { flex: 1; }
    .operating-loop { grid-template-columns: repeat(2,1fr); }.loop-step:nth-child(2n) { border-right: 0; }.loop-step:nth-child(3) { border-right: 1px solid var(--line); }.loop-step:nth-child(-n+4) { border-bottom: 1px solid var(--line); }
    .span-4,.span-5,.span-6,.span-7,.span-8 { grid-column: span 12; }.dashboard-grid { gap: 13px; }.panel-header { padding: 17px; }.manual-chip { display: none; }
    .metric-grid,.form-grid,.settings-grid,.card-grid.three,.metric-meta { grid-template-columns: 1fr; }.span-2,.settings-grid .ai-boundary { grid-column: span 1; }
    .form-main { padding: 18px; }.record-side { display: flex; }.record-side .evidence-panel { grid-column: auto; }
    .detail-grid { grid-template-columns: 1fr; }.detail-grid div { border-right: 0 !important; border-bottom: 1px solid #edf0f2 !important; }.detail-grid div:last-child { border-bottom: 0 !important; }
    .relationship-list > div { grid-template-columns: 1fr; }.metric-row { grid-template-columns: 1fr; }.metric-latest { border-top: 1px solid var(--line); border-left: 0; }.ai-boundary dl { grid-template-columns: 1fr; gap: 14px; }
    .filter-bar { align-items: stretch; flex-direction: column; }.filter-bar .search-field { max-width: none; }.auth-story { min-height: 370px; padding: 28px 22px; }.auth-story h1 { font-size: 39px; }.auth-loop { grid-template-columns: repeat(3,1fr); }.auth-loop span:nth-child(3) { border-right: 0; }.auth-loop span:nth-child(-n+3) { border-bottom: 1px solid #294057; }.auth-panel { padding: 22px 14px; }.login-card { padding: 26px 21px; }
}

@media (prefers-reduced-motion: reduce) { *,*::before,*::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }

