:root {
  --ink: #14201e;
  --muted: #64716e;
  --line: #dce3df;
  --paper: #f5f7f3;
  --white: #fff;
  --forest: #113b34;
  --forest-2: #1a5147;
  --mint: #d8eee7;
  --mint-2: #edf7f3;
  --gold: #c89948;
  --gold-pale: #f5ead6;
  --danger: #be4a43;
  --danger-pale: #f9e9e7;
  --warning: #c57922;
  --warning-pale: #fff1dd;
  --info: #356aa0;
  --info-pale: #e9f1fa;
  --shadow: 0 18px 45px rgba(20, 32, 30, .10);
  --radius: 18px;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { min-width: 1180px; background: var(--paper); color: var(--ink); }
body { margin: 0; min-height: 100vh; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }

.entry-screen { min-height: 100vh; color: #f5f8f6; background: radial-gradient(circle at 78% 12%, rgba(66, 140, 119, .25), transparent 34%), linear-gradient(135deg, #0d302a 0%, #113b34 50%, #0a2924 100%); position: relative; overflow: hidden; padding: 0 7vw; }
.entry-screen::before { content: ""; position: absolute; width: 620px; height: 620px; right: -210px; bottom: -320px; border: 1px solid rgba(255,255,255,.13); border-radius: 50%; box-shadow: 0 0 0 90px rgba(255,255,255,.025), 0 0 0 180px rgba(255,255,255,.018); }
.entry-grain { pointer-events: none; position: absolute; inset: 0; opacity: .15; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E"); }
.entry-header, .entry-footer { height: 88px; position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,.12); }
.entry-footer { height: 60px; border: 0; border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.55); font-size: 12px; letter-spacing: .08em; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-light { color: #fff; }
.brand-mark { width: 40px; height: 40px; display: grid; place-items: center; background: var(--gold); color: #fff; border-radius: 12px 12px 12px 3px; font-weight: 800; box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }
.brand span:last-child { display: grid; gap: 2px; }
.brand strong { font-size: 17px; letter-spacing: .08em; }
.brand small { opacity: .62; font-size: 10px; letter-spacing: .16em; }
.demo-badge { border: 1px solid rgba(255,255,255,.22); border-radius: 999px; padding: 9px 14px; font-size: 10px; color: rgba(255,255,255,.7); letter-spacing: .16em; }
.entry-main { min-height: calc(100vh - 148px); padding: 6vh 0; display: grid; grid-template-columns: minmax(520px, 1fr) 440px; align-items: center; gap: 7vw; position: relative; z-index: 1; }
.eyebrow { font-size: 11px; color: #9ac7ba; letter-spacing: .23em; font-weight: 700; margin: 0 0 28px; }
.entry-copy h1 { margin: 0; font-family: Georgia, "Songti SC", serif; font-size: clamp(50px, 5vw, 76px); font-weight: 400; line-height: 1.17; letter-spacing: -.04em; }
.entry-copy h1 em { color: #f1c87f; font-style: normal; }
.entry-lead { max-width: 600px; color: rgba(255,255,255,.68); font-size: 17px; line-height: 1.9; margin: 30px 0 44px; }
.promise-row { display: flex; gap: 22px; flex-wrap: wrap; }
.promise-row span { display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,.76); font-size: 13px; }
.promise-row i { font-style: normal; font-size: 9px; color: #f1c87f; border: 1px solid rgba(241,200,127,.35); border-radius: 4px; padding: 3px; }
.role-panel { background: #fff; color: var(--ink); padding: 30px; border-radius: 4px 28px 4px 28px; box-shadow: 0 28px 80px rgba(0,0,0,.25); }
.role-panel-head { display: flex; justify-content: space-between; margin-bottom: 22px; }
.step-label { color: var(--forest-2); font-size: 10px; letter-spacing: .18em; font-weight: 800; }
.role-panel h2 { margin: 8px 0 0; font-family: Georgia, "Songti SC", serif; font-size: 27px; font-weight: 500; }
.step-count { color: #a3aba8; font-size: 11px; }
.role-card { width: 100%; border: 1px solid var(--line); background: #fff; border-radius: 14px; padding: 16px; margin-bottom: 12px; text-align: left; display: grid; grid-template-columns: 48px 1fr 22px; gap: 14px; align-items: center; color: var(--ink); transition: .2s ease; }
.role-card:hover { transform: translateY(-1px); border-color: #9bbfb5; }
.role-card.selected { border: 1.5px solid var(--forest-2); background: var(--mint-2); box-shadow: 0 8px 22px rgba(26,81,71,.08); }
.role-icon { width: 48px; height: 48px; border-radius: 14px; background: var(--forest); color: #fff; display: grid; place-items: center; font-family: Georgia, serif; font-size: 18px; }
.role-icon-gold { background: #936d32; }
.role-copy { display: grid; gap: 3px; }
.role-copy strong { font-size: 15px; }
.role-copy small { color: var(--muted); }
.role-copy b { color: #7c8985; font-size: 10px; font-weight: 500; margin-top: 5px; }
.arrow { color: var(--forest-2); font-size: 18px; }
.primary-btn { border: 0; background: var(--forest); color: #fff; border-radius: 10px; padding: 13px 20px; font-weight: 650; box-shadow: 0 8px 18px rgba(17,59,52,.2); }
.primary-btn:hover { background: var(--forest-2); }
.primary-btn.full { width: 100%; display: flex; justify-content: space-between; margin-top: 18px; padding: 15px 18px; }
.entry-note { text-align: center; color: #9ba4a1; font-size: 10px; margin: 14px 0 0; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 232px 1fr; background: var(--paper); }
.sidebar { height: 100vh; position: sticky; top: 0; background: #f9faf7; border-right: 1px solid var(--line); padding: 24px 16px 16px; display: flex; flex-direction: column; justify-content: space-between; z-index: 10; }
.sidebar .brand { padding: 0 8px 20px; border-bottom: 1px solid var(--line); }
.workspace-pill { margin: 18px 6px; padding: 12px; background: var(--mint-2); border-radius: 12px; display: flex; gap: 10px; align-items: center; }
.pulse-dot { width: 8px; height: 8px; background: #3ea77c; border-radius: 50%; box-shadow: 0 0 0 4px rgba(62,167,124,.13); }
.workspace-pill span:last-child { display: grid; gap: 3px; }
.workspace-pill small { color: var(--muted); font-size: 9px; }
.workspace-pill b { color: var(--forest); font-size: 11px; }
.main-nav { display: grid; gap: 5px; }
.nav-item, .utility-btn { border: 0; background: transparent; color: #58645f; border-radius: 10px; padding: 11px 12px; display: flex; align-items: center; gap: 12px; text-align: left; }
.nav-item > span { font-size: 17px; width: 18px; text-align: center; }
.nav-item i { margin-left: auto; width: 20px; height: 20px; background: #e6ece9; color: var(--forest); border-radius: 50%; font-size: 10px; font-style: normal; display: grid; place-items: center; }
.nav-item .alert-count { color: var(--danger); background: var(--danger-pale); }
.nav-item:hover, .nav-item.active { background: #e8f1ed; color: var(--forest); font-weight: 650; }
.sidebar-bottom { display: grid; gap: 6px; }
.system-status { display: flex; justify-content: space-between; padding: 8px 10px 12px; font-size: 9px; color: var(--muted); }
.system-status b { color: #4d7669; font-weight: 600; }
.system-status i { display: inline-block; width: 6px; height: 6px; background: #48a77f; border-radius: 50%; }
.utility-btn { font-size: 11px; }
.utility-btn:hover { background: #eef2ef; color: var(--forest); }
.mini-disclaimer { margin: 10px 6px 0; border-top: 1px solid var(--line); padding: 13px 4px 0; color: #9aa39f; font-size: 9px; line-height: 1.7; }

.workspace { min-width: 0; }
.topbar { height: 72px; background: rgba(255,255,255,.82); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 0 30px; position: sticky; top: 0; z-index: 8; }
.breadcrumb { display: flex; gap: 10px; align-items: center; font-size: 12px; color: #95a09c; }
.breadcrumb b { font-weight: 400; }
.breadcrumb strong { color: var(--ink); }
.top-actions { display: flex; align-items: center; gap: 9px; }
.icon-btn { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: #4b5a56; position: relative; }
.notification-dot { position: absolute; width: 6px; height: 6px; right: 7px; top: 6px; border: 1px solid #fff; background: var(--danger); border-radius: 50%; }
.profile-btn { border: 0; background: transparent; display: grid; grid-template-columns: 36px auto 14px; align-items: center; gap: 10px; text-align: left; color: var(--ink); padding: 4px 8px; border-radius: 10px; }
.profile-btn:hover { background: #eef2ef; }
.avatar { width: 36px; height: 36px; display: grid; place-items: center; background: var(--forest); color: #fff; border-radius: 10px; font-weight: 750; }
.profile-btn span:nth-child(2) { display: grid; gap: 2px; }
.profile-btn strong { font-size: 12px; }
.profile-btn small { color: var(--muted); font-size: 9px; }
.profile-btn i { color: #8e9894; font-style: normal; }

.page { display: none; padding: 30px; max-width: 1500px; margin: 0 auto; }
.page.active-page { display: block; animation: pageIn .25s ease; }
@keyframes pageIn { from { opacity: 0; transform: translateY(4px); } }
.page-heading { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 24px; }
.page-heading h1 { margin: 5px 0 7px; font-family: Georgia, "Songti SC", serif; font-size: 30px; font-weight: 500; }
.page-heading p { margin: 0; color: var(--muted); font-size: 12px; }
.overline { color: var(--forest-2); font-size: 9px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.ghost-btn, .outline-btn { border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 9px; padding: 10px 14px; font-size: 11px; }
.ghost-btn:hover, .outline-btn:hover { border-color: #9bbab2; background: var(--mint-2); }
.outline-btn.danger { border-color: #e3b5b1; color: var(--danger); }
.button-row { display: flex; align-items: center; gap: 9px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 4px 14px rgba(20,32,30,.025); }
.hero-card { padding: 25px 28px; color: #fff; background: linear-gradient(120deg, #17463e, #0f352f); position: relative; overflow: hidden; }
.hero-card::after { content: "AI"; position: absolute; right: 30px; bottom: -38px; color: rgba(255,255,255,.045); font: 130px Georgia, serif; }
.hero-card h2 { font: 400 27px Georgia, "Songti SC", serif; margin: 9px 0; }
.hero-card p { color: rgba(255,255,255,.67); margin: 0; font-size: 12px; }
.hero-card .primary-btn { background: #e5bd73; color: #17362f; box-shadow: none; position: relative; z-index: 1; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(300px,.75fr); gap: 18px; margin-top: 18px; }
.stack { display: grid; gap: 18px; align-content: start; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.metric-card { padding: 18px; }
.metric-label { color: var(--muted); font-size: 10px; display: flex; justify-content: space-between; }
.metric-value { font-size: 28px; font-family: Georgia, serif; margin: 12px 0 4px; }
.metric-foot { font-size: 9px; color: #899490; }
.trend-up { color: #43826e; }
.section-card { padding: 20px; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.section-head h2, .section-head h3 { margin: 0; font-size: 15px; }
.section-head small { color: var(--muted); }
.link-btn { border: 0; background: none; color: var(--forest-2); font-size: 10px; padding: 0; }
.project-row { width: 100%; border: 1px solid transparent; border-top-color: var(--line); background: #fff; padding: 15px 4px; display: grid; grid-template-columns: 1fr 110px 90px 70px 20px; align-items: center; text-align: left; gap: 12px; color: var(--ink); }
.project-row:hover { background: #fafcfb; }
.project-row:first-of-type { border-top: 0; }
.project-name { display: grid; gap: 4px; }
.project-name strong { font-size: 12px; }
.project-name small, .meta { font-size: 9px; color: var(--muted); }
.status-pill, .tag { display: inline-flex; width: fit-content; align-items: center; gap: 5px; border-radius: 999px; padding: 5px 9px; background: #edf1ef; color: #5e6a66; font-size: 9px; font-weight: 650; }
.status-pill.green { background: var(--mint-2); color: #35735f; }
.status-pill.red { background: var(--danger-pale); color: var(--danger); }
.status-pill.orange { background: var(--warning-pale); color: var(--warning); }
.status-pill.blue { background: var(--info-pale); color: var(--info); }
.deadline { font-size: 10px; color: var(--muted); }
.deadline b { display: block; color: var(--danger); font-size: 11px; margin-top: 4px; }
.timeline-mini { display: grid; gap: 15px; }
.timeline-event { display: grid; grid-template-columns: 28px 1fr; gap: 10px; position: relative; }
.timeline-event:not(:last-child)::after { content: ""; width: 1px; background: var(--line); position: absolute; left: 13px; top: 27px; bottom: -17px; }
.event-dot { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 9px; background: var(--mint-2); color: var(--forest-2); font-size: 11px; }
.timeline-event strong { font-size: 10px; display: block; margin-bottom: 3px; }
.timeline-event p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.5; }
.progress-bar { height: 5px; background: #edf0ee; border-radius: 99px; overflow: hidden; }
.progress-bar i { display: block; height: 100%; background: var(--forest-2); border-radius: 99px; }

.project-layout { display: grid; grid-template-columns: minmax(0,1fr) 330px; gap: 18px; }
.project-summary { padding: 22px; }
.project-title-row { display: flex; justify-content: space-between; gap: 20px; }
.project-title-row h2 { font: 500 22px Georgia, "Songti SC", serif; margin: 8px 0; }
.project-title-row p { margin: 0; color: var(--muted); font-size: 10px; }
.project-code { text-align: right; color: var(--muted); font-size: 9px; }
.project-code b { color: var(--ink); display: block; font-family: monospace; font-size: 11px; margin-top: 5px; }
.summary-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 0; margin: 22px 0; border: 1px solid var(--line); border-radius: 12px; }
.summary-cell { padding: 14px; border-right: 1px solid var(--line); }
.summary-cell:last-child { border: 0; }
.summary-cell small { color: var(--muted); font-size: 9px; }
.summary-cell b { display: block; margin-top: 7px; font-size: 11px; }
.material-list { display: grid; gap: 8px; }
.material-item { display: grid; grid-template-columns: 36px 1fr auto; gap: 11px; align-items: center; padding: 11px; background: #fafbf9; border: 1px solid var(--line); border-radius: 10px; }
.file-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 9px; background: #ebf2ef; color: var(--forest-2); font-size: 9px; font-weight: 800; }
.file-icon.missing { background: var(--danger-pale); color: var(--danger); }
.material-item strong { display: block; font-size: 10px; }
.material-item small { color: var(--muted); font-size: 8px; }
.assistant-launch-card { padding: 22px; background: linear-gradient(145deg,#173f38,#0f302a); color: #fff; position: relative; overflow: hidden; }
.assistant-launch-card::after { content: "✦"; position: absolute; right: -16px; bottom: -28px; font-size: 100px; color: rgba(255,255,255,.05); }
.assistant-launch-card h3 { font: 500 22px Georgia, serif; margin: 14px 0 7px; }
.assistant-launch-card p { color: rgba(255,255,255,.62); font-size: 10px; line-height: 1.7; }
.assistant-launch-card button { margin-top: 14px; background: #e6bd74; color: #16362f; }
.budget-rows { display: grid; gap: 13px; }
.budget-row { display: grid; grid-template-columns: 90px 1fr 65px; gap: 10px; align-items: center; font-size: 10px; }
.submit-card { padding: 20px; }
.submit-card p { color: var(--muted); font-size: 10px; line-height: 1.7; }
.submit-card .primary-btn { width: 100%; margin-top: 10px; }

.assistant-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: 460px; background: #fff; z-index: 30; box-shadow: -20px 0 60px rgba(20,32,30,.16); transform: translateX(102%); transition: transform .3s cubic-bezier(.2,.8,.2,1); display: flex; flex-direction: column; }
.assistant-drawer.open { transform: translateX(0); }
.drawer-backdrop { position: fixed; inset: 0; background: rgba(10,25,22,.24); backdrop-filter: blur(2px); z-index: 25; }
.drawer-head { padding: 19px 21px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); }
.assistant-title { display: flex; align-items: center; gap: 11px; }
.assistant-title > span:last-child { display: grid; gap: 3px; }
.assistant-title small { font-size: 8px; color: var(--muted); }
.assistant-glyph { width: 35px; height: 35px; background: var(--forest); color: #fff; border-radius: 10px 10px 10px 3px; display: grid; place-items: center; font-size: 10px; font-weight: 800; }
.close-btn { border: 0; width: 32px; height: 32px; background: #f1f3f1; border-radius: 9px; color: var(--muted); font-size: 21px; }
.assistant-tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 0 21px; border-bottom: 1px solid var(--line); }
.tab-btn { border: 0; border-bottom: 2px solid transparent; background: none; padding: 14px 8px; color: var(--muted); font-size: 11px; }
.tab-btn.active { color: var(--forest); border-color: var(--forest); font-weight: 700; }
.tab-btn span { background: var(--danger-pale); color: var(--danger); padding: 2px 6px; border-radius: 99px; margin-left: 4px; font-size: 8px; }
.assistant-panel { flex: 1; min-height: 0; overflow-y: auto; padding: 20px; }
.drawer-disclaimer { padding: 11px 20px; border-top: 1px solid var(--line); background: #f7f9f6; color: #7a8682; font-size: 9px; }
.check-intro { padding: 16px; background: var(--mint-2); border-radius: 12px; }
.check-intro h3 { margin: 0 0 6px; font-size: 13px; }
.check-intro p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.6; }
.check-summary { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin: 14px 0; }
.check-summary div { padding: 11px; border: 1px solid var(--line); border-radius: 10px; text-align: center; }
.check-summary b { display: block; font: 23px Georgia, serif; }
.check-summary small { color: var(--muted); font-size: 8px; }
.check-summary .critical b { color: var(--danger); }
.check-summary .warn b { color: var(--warning); }
.issue-list { display: grid; gap: 9px; }
.issue-card { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.issue-main { padding: 13px; display: grid; grid-template-columns: 7px 1fr auto; gap: 10px; align-items: start; }
.severity-line { width: 5px; height: 36px; background: var(--danger); border-radius: 99px; }
.severity-line.warning { background: var(--warning); }
.severity-line.info { background: var(--info); }
.issue-main strong { font-size: 10px; display: block; margin-bottom: 5px; }
.issue-main p { margin: 0; font-size: 8px; color: var(--muted); line-height: 1.5; }
.issue-expand { border: 0; background: #f1f4f2; color: var(--muted); width: 26px; height: 26px; border-radius: 8px; }
.issue-detail { padding: 0 13px 13px 30px; display: grid; gap: 8px; }
.evidence-box { padding: 10px; background: #f7f8f6; border-radius: 8px; font-size: 8px; line-height: 1.6; color: #52605c; }
.issue-actions { display: flex; gap: 7px; }
.issue-actions button { padding: 7px 9px; border-radius: 7px; border: 1px solid var(--line); background: #fff; color: var(--muted); font-size: 8px; }
.issue-actions button.active { border-color: #8db5a8; background: var(--mint-2); color: var(--forest); }
.check-progress { padding: 20px 4px; }
.progress-stage { display: flex; gap: 12px; padding: 11px 0; color: #9da6a2; align-items: center; }
.progress-stage i { width: 24px; height: 24px; border-radius: 50%; background: #eef1ef; display: grid; place-items: center; font-size: 9px; font-style: normal; }
.progress-stage.active { color: var(--forest); font-weight: 650; }
.progress-stage.done i { color: #fff; background: #4b947c; }
.qa-welcome { text-align: center; padding: 12px 20px 20px; }
.qa-welcome .assistant-glyph { margin: auto; }
.qa-welcome h3 { margin: 12px 0 5px; font: 500 18px Georgia, serif; }
.qa-welcome p { font-size: 9px; color: var(--muted); }
.quick-questions { display: grid; gap: 7px; }
.quick-question { text-align: left; padding: 11px; border: 1px solid var(--line); background: #fff; border-radius: 9px; font-size: 9px; color: #4e5b57; }
.chat-log { display: grid; gap: 12px; margin: 15px 0; }
.chat-bubble { max-width: 88%; padding: 11px 13px; border-radius: 12px 12px 12px 3px; background: #eff4f1; font-size: 9px; line-height: 1.7; }
.chat-bubble.user { margin-left: auto; background: var(--forest); color: #fff; border-radius: 12px 12px 3px 12px; }
.citation { display: block; border: 1px solid #cdded8; background: #fff; margin-top: 9px; padding: 9px; border-radius: 8px; color: var(--forest-2); font-size: 8px; }
.qa-input { position: sticky; bottom: -20px; background: #fff; padding: 12px 0 0; display: grid; grid-template-columns: 1fr 38px; gap: 8px; }
.qa-input input { border: 1px solid var(--line); border-radius: 10px; padding: 10px 11px; font-size: 9px; outline: none; }
.qa-input button { border: 0; border-radius: 10px; background: var(--forest); color: #fff; }

.review-grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: 18px; }
.risk-overview { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.risk-card { padding: 16px; border-left: 3px solid var(--danger); }
.risk-card.warning { border-color: var(--warning); }
.risk-card.neutral { border-color: #5f877d; }
.risk-card b { font: 24px Georgia,serif; }
.risk-card span { color: var(--muted); font-size: 9px; margin-left: 6px; }
.queue-table { width: 100%; border-collapse: collapse; }
.queue-table th { text-align: left; color: #8a9490; font-size: 8px; font-weight: 600; padding: 10px; border-bottom: 1px solid var(--line); }
.queue-table td { font-size: 9px; padding: 13px 10px; border-bottom: 1px solid var(--line); }
.queue-table tr:last-child td { border: 0; }
.queue-table tr:hover td { background: #fafbf9; }
.review-detail { display: grid; grid-template-columns: minmax(0,1fr) 350px; gap: 18px; }
.risk-item { padding: 13px; border: 1px solid var(--line); border-radius: 11px; margin-bottom: 9px; }
.risk-item-head { display: flex; justify-content: space-between; gap: 12px; }
.risk-item strong { font-size: 10px; }
.risk-item p { font-size: 9px; color: var(--muted); line-height: 1.6; }
.risk-evidence { border-left: 2px solid #bdcbc6; padding-left: 10px; font-size: 8px; color: #6f7b77; line-height: 1.7; }
.decision-panel { padding: 20px; position: sticky; top: 90px; }
.decision-option { padding: 11px; border: 1px solid var(--line); border-radius: 10px; margin: 8px 0; display: flex; gap: 9px; align-items: center; font-size: 9px; }
.decision-option input { accent-color: var(--forest); }
.decision-panel textarea { width: 100%; min-height: 90px; resize: vertical; border: 1px solid var(--line); border-radius: 10px; padding: 10px; font-size: 9px; outline: none; }

.filter-bar { display: flex; gap: 8px; padding: 13px; margin-bottom: 14px; }
.filter-bar input, .filter-bar select { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 8px 10px; font-size: 9px; color: var(--muted); outline: none; }
.filter-bar input { flex: 1; }
.audit-list { padding: 8px 20px; }
.audit-row { display: grid; grid-template-columns: 115px 42px 1fr 110px; align-items: center; gap: 12px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.audit-row:last-child { border: 0; }
.audit-time { font-family: monospace; color: var(--muted); font-size: 9px; }
.audit-icon { width: 32px; height: 32px; display: grid; place-items: center; background: var(--mint-2); color: var(--forest); border-radius: 10px; font-size: 11px; }
.audit-copy strong { font-size: 10px; }
.audit-copy p { margin: 4px 0 0; color: var(--muted); font-size: 8px; }
.audit-actor { color: var(--muted); font-size: 9px; text-align: right; }

.layer-map { display: grid; grid-template-columns: 150px 1fr; gap: 14px; margin-bottom: 18px; }
.layer-label { padding: 18px; color: #fff; border-radius: 14px; background: var(--forest); }
.layer-label small { opacity: .55; font-size: 8px; letter-spacing: .12em; }
.layer-label strong { display: block; margin-top: 7px; }
.layer-items { display: grid; grid-template-columns: repeat(4,1fr); gap: 9px; }
.layer-item { border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 15px; }
.layer-item strong { display: block; font-size: 10px; margin-bottom: 5px; }
.layer-item span { font-size: 8px; color: var(--muted); }
.module-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.module-card { padding: 18px; min-height: 145px; position: relative; overflow: hidden; }
.module-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); transition: .2s; }
.module-no { color: #b4bcb9; font: 22px Georgia,serif; }
.module-card h3 { margin: 12px 0 7px; font-size: 13px; }
.module-card p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.6; }
.priority { position: absolute; top: 16px; right: 16px; border-radius: 99px; padding: 4px 7px; font-size: 8px; font-weight: 700; background: var(--mint-2); color: var(--forest); }
.priority.p1 { background: var(--gold-pale); color: #93661f; }
.priority.p2 { background: #eef0ef; color: #7a8581; }

.modal-root { position: fixed; inset: 0; z-index: 50; background: rgba(10,26,23,.42); backdrop-filter: blur(4px); display: grid; place-items: center; }
.modal { width: min(500px, calc(100vw - 40px)); background: #fff; border-radius: 20px; box-shadow: 0 24px 80px rgba(0,0,0,.28); padding: 24px; animation: modalIn .2s ease; }
@keyframes modalIn { from { opacity: 0; transform: scale(.97); } }
.modal h2 { margin: 0 0 8px; font: 500 22px Georgia,"Songti SC",serif; }
.modal > p { color: var(--muted); font-size: 10px; line-height: 1.7; }
.modal-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 20px; }
.confirm-list { background: #f7f9f7; border-radius: 10px; padding: 12px; display: grid; gap: 8px; }
.confirm-list span { display: flex; justify-content: space-between; color: var(--muted); font-size: 9px; }
.confirm-list b { color: var(--ink); }
.scenario-grid { display: grid; gap: 8px; margin: 15px 0; }
.scenario-grid label { display: flex; justify-content: space-between; align-items: center; border: 1px solid var(--line); padding: 11px; border-radius: 10px; font-size: 10px; }
.scenario-grid input { accent-color: var(--forest); }
.toast-region { position: fixed; right: 24px; top: 88px; z-index: 80; display: grid; gap: 8px; }
.toast { min-width: 280px; background: #152e29; color: #fff; border-radius: 12px; box-shadow: var(--shadow); padding: 12px 15px; font-size: 10px; animation: toastIn .25s ease; }
.toast small { display: block; margin-top: 4px; color: rgba(255,255,255,.6); }
@keyframes toastIn { from { opacity: 0; transform: translateX(15px); } }

@media (max-width: 1250px) {
  .entry-main { grid-template-columns: 1fr 400px; gap: 4vw; }
  .dashboard-grid { grid-template-columns: 1fr 330px; }
  .metric-grid { grid-template-columns: repeat(2,1fr); }
}

@media print {
  .sidebar, .topbar, .assistant-drawer, .drawer-backdrop, .button-row { display: none !important; }
  .app-shell { display: block; }
  .page { padding: 0; }
  .card { box-shadow: none; break-inside: avoid; }
}
