:root {
  color-scheme: dark;
  --bg: #0c1119;
  --panel: #151d28;
  --panel-raised: #1b2532;
  --panel-hover: #202d3d;
  --line: #334053;
  --line-soft: #273345;
  --text: #f1f4f8;
  --muted: #aab6c7;
  --subtle: #8494a9;
  --amber: #ffc45a;
  --amber-bg: #342a1c;
  --green: #9edbbd;
  --green-bg: #1a3029;
  --red: #ffb2ae;
  --red-bg: #362327;
  --blue: #abc9f5;
  --radius: 18px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); line-height: 1.5; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button, input, select, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
button:disabled { cursor: default; opacity: .48; }
button, a, input, select, summary { touch-action: manipulation; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid var(--amber); outline-offset: 4px; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(1.65rem, 3vw, 2.05rem); line-height: 1.2; letter-spacing: -.035em; font-weight: 680; }
h2 { font-size: 1.1rem; line-height: 1.35; letter-spacing: -.015em; font-weight: 650; }
h3 { font-size: .95rem; font-weight: 650; }
p { overflow-wrap: anywhere; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 12px; top: -80px; z-index: 20; background: var(--amber); padding: 12px 18px; color: #17130c; border-radius: 9px; }
.skip-link:focus { top: 8px; }
.preview-banner { min-height: 40px; padding: 9px 24px; display: flex; align-items: center; justify-content: center; gap: 10px; font-size: .75rem; color: #e2cba4; background: #241f19; border-bottom: 1px solid #423827; }
.preview-banner strong { font-size: .66rem; letter-spacing: .1em; color: var(--amber); }
.preview-dot { width: 6px; height: 6px; flex: 0 0 auto; border-radius: 50%; background: var(--amber); }
.brand { display: flex; gap: 10px; align-items: center; }
.brand-mark { flex: 0 0 auto; width: 33px; height: 37px; border: 1.5px solid #bd8d42; border-radius: 15px 15px 15px 4px; display: grid; place-items: center; font-weight: 750; color: var(--amber); background: #2d261b; font-size: 16px; }
.brand-name { font-size: 1rem; line-height: 1.2; font-weight: 680; letter-spacing: -.025em; }
.brand-description { font-size: .7rem; color: var(--muted); margin-top: 3px; }
.auth-screen { max-width: 1020px; margin: 0 auto; padding: 9vh 30px 60px; display: grid; grid-template-columns: 1fr 420px; gap: 70px; align-items: center; }
.auth-intro .brand { margin-bottom: 58px; }
.auth-intro h1 { font-size: clamp(2rem, 4.4vw, 3.3rem); letter-spacing: -.05em; max-width: 400px; }
.auth-intro > p { color: var(--muted); margin-top: 20px; max-width: 380px; font-size: 1.05rem; }
.auth-benefits { padding: 0; margin: 30px 0 0; list-style: none; color: #cad4e2; display: grid; gap: 12px; font-size: .88rem; }
.auth-benefits li { display: flex; gap: 10px; align-items: baseline; }
.check-mark { color: var(--amber); }
.auth-card { padding: 30px; border: 1px solid var(--line); border-radius: 24px; background: var(--panel); box-shadow: 0 16px 60px #00000024; }
.eyebrow { color: var(--subtle); text-transform: uppercase; letter-spacing: .12em; font-size: .65rem; font-weight: 700; }
.auth-card h2 { font-size: 1.5rem; margin: 12px 0; }
.auth-card > p { color: var(--muted); font-size: .875rem; }
.field { display: grid; gap: 8px; margin-top: 24px; font-size: .82rem; color: #d8e1ed; }
.field input, .field select, .scenario-select { width: 100%; min-height: 46px; border: 1px solid #46546a; background: #101824; color: var(--text); border-radius: 10px; padding: 10px 12px; }
.field input[readonly] { color: var(--muted); }
.field small { font-size: .75rem; color: var(--muted); }
.button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; border-radius: 10px; border: 1px solid #46546a; background: var(--panel-raised); color: var(--text); font-size: .85rem; font-weight: 620; line-height: 1.4; text-align: center; }
.button:hover:enabled { background: var(--panel-hover); border-color: #687a91; }
.button.primary { color: #21170a; background: var(--amber); border-color: var(--amber); }
.button.primary:hover:enabled { background: #ffd48a; border-color: #ffd48a; }
.button.danger { color: #ffe1dd; background: #4d2a2f; border-color: #ad6469; }
.button.danger:hover:enabled { background: #633139; }
.button.quiet { background: transparent; border-color: transparent; color: var(--muted); }
.button.quiet:hover:enabled { background: var(--panel-raised); color: var(--text); border-color: var(--line); }
.button.full { width: 100%; }
.auth-card .button { margin-top: 20px; }
.auth-card .button.quiet { margin-top: 8px; }
.auth-note { border-top: 1px solid var(--line-soft); padding-top: 18px; margin-top: 25px; font-size: .75rem; color: var(--muted); }
.auth-note p + p { margin-top: 10px; }
.sample-code { display: flex; gap: 8px; margin: 22px 0 16px; }
.sample-code span { height: 49px; flex: 1; display: grid; place-items: center; background: #0e1723; border: 1px solid #46546a; border-radius: 8px; font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.shell { display: grid; grid-template-columns: 222px minmax(0, 1fr); max-width: 1600px; min-height: calc(100vh - 40px); margin: 0 auto; }
.sidebar { padding: 30px 18px 20px; border-right: 1px solid var(--line-soft); display: flex; flex-direction: column; gap: 34px; }
.sidebar .brand { padding: 0 10px; }
.nav { display: grid; gap: 7px; }
.nav-button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 46px; padding: 11px 12px; border: 1px solid transparent; border-radius: 10px; background: transparent; text-align: left; font-size: .82rem; color: var(--muted); }
.nav-button:hover { color: var(--text); background: var(--panel); }
.nav-button[aria-current="page"] { color: var(--amber); border-color: #544329; background: var(--amber-bg); }
.nav-icon { font-size: 1rem; width: 20px; flex: 0 0 auto; text-align: center; }
.nav-count { margin-left: auto; border: 1px solid #455064; border-radius: 6px; min-width: 23px; padding: 0 5px; text-align: center; font-size: .69rem; font-weight: 650; }
.nav-button[aria-current="page"] .nav-count { border-color: #695331; }
.sidebar-footer { margin-top: auto; padding: 15px 8px 0; border-top: 1px solid var(--line-soft); }
.owner-chip { display: flex; align-items: center; gap: 9px; margin-bottom: 10px; }
.avatar { width: 32px; height: 32px; border-radius: 10px; background: #263143; color: #d5dfed; display: grid; place-items: center; font-size: .7rem; font-weight: 650; }
.owner-chip strong { font-size: .77rem; font-weight: 600; }
.owner-chip p { font-size: .68rem; color: var(--muted); }
.sidebar-footer .button { justify-content: flex-start; padding: 8px 0; min-height: 40px; font-size: .76rem; }
.workspace { min-width: 0; padding: 30px 34px 24px; }
.workspace-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 23px; }
.workspace-header h1 { margin-top: 5px; }
.workspace-header .intro { font-size: .83rem; color: var(--muted); margin-top: 10px; max-width: 510px; }
.cadence { flex: 0 0 auto; font-size: .72rem; color: var(--muted); padding: 9px 12px; border: 1px solid var(--line-soft); border-radius: 10px; text-align: right; }
.cadence strong { color: #d3deec; font-size: .76rem; font-weight: 600; display: block; }
.scenario-panel { border: 1px solid var(--line-soft); border-radius: 11px; margin-bottom: 22px; background: #101722; font-size: .76rem; color: var(--muted); }
.scenario-panel summary { padding: 11px 14px; cursor: pointer; color: #bdc8d8; }
.scenario-content { padding: 0 14px 14px; display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.scenario-field { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1 1 340px; }
.scenario-select { min-height: 42px; font-size: .77rem; flex: 1; min-width: 0; padding: 8px 10px; }
.scenario-content .button { min-height: 42px; font-size: .76rem; }
.scenario-explainer { width: 100%; color: var(--muted); font-size: .73rem; }
.notice { margin-bottom: 18px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 13px 15px; border: 1px solid #395448; border-radius: 11px; background: var(--green-bg); color: var(--green); font-size: .8rem; }
.notice p { flex: 1 1 260px; }
.notice.warning { color: var(--amber); background: var(--amber-bg); border-color: #66502d; }
.notice .button { min-height: 38px; padding: 7px 12px; font-size: .76rem; }
.content-grid { display: grid; grid-template-columns: minmax(220px, .82fr) minmax(320px, 1.2fr); gap: 22px; align-items: start; }
.queue { min-width: 0; }
.queue-heading { display: flex; justify-content: space-between; align-items: center; margin: 0 0 12px; color: var(--muted); font-size: .7rem; }
.queue-heading h2 { font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: #bfcbdb; }
.queue-list { display: grid; gap: 10px; }
.case-row { display: block; width: 100%; border: 1px solid var(--line-soft); border-radius: 13px; padding: 17px; background: var(--panel); text-align: left; min-width: 0; }
.case-row:hover { background: var(--panel-raised); border-color: #57677e; }
.case-row[aria-current="true"] { border-color: #c79442; background: #211e1b; box-shadow: inset 3px 0 0 var(--amber); }
.row-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; color: var(--subtle); font-size: .67rem; }
.case-reference { letter-spacing: .05em; font-variant-numeric: tabular-nums; }
.case-row h3 { color: var(--text); overflow-wrap: anywhere; }
.case-row p { color: var(--muted); font-size: .77rem; margin-top: 5px; }
.row-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: .68rem; color: var(--subtle); margin-top: 15px; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; font-size: .64rem; font-weight: 650; line-height: 1.4; padding: 3px 7px; border-radius: 5px; color: var(--amber); background: #3a2e1c; }
.status-pill.red { color: var(--red); background: var(--red-bg); }
.status-pill.green { color: var(--green); background: var(--green-bg); }
.status-pill.neutral { color: #c8d4e3; background: #293343; }
.detail-card { min-width: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.detail-header { padding: 22px 23px 20px; border-bottom: 1px solid var(--line-soft); }
.detail-header .row-top { margin-bottom: 12px; }
.detail-header h2 { font-size: 1.25rem; }
.detail-header > p { font-size: .78rem; color: var(--muted); margin-top: 7px; }
.detail-body { padding: 23px; }
.evidence-note { color: var(--muted); background: #111a26; border: 1px solid var(--line-soft); border-radius: 10px; padding: 13px 14px; margin-bottom: 20px; font-size: .79rem; }
.detail-fields { margin: 0; display: grid; gap: 17px; }
.detail-fields > div { display: grid; gap: 5px; }
.detail-fields dt { font-size: .69rem; color: var(--muted); }
.detail-fields dd { margin: 0; font-size: .86rem; overflow-wrap: anywhere; }
.name-value { font-size: 1.04rem; }
.field-pair { display: grid !important; grid-template-columns: 1fr 1fr; gap: 18px !important; }
.field-pair dl { display: grid; gap: 5px; margin: 0; }
.context-box { display: flex; align-items: flex-start; gap: 10px; padding: 13px 14px; margin-top: 20px; border: 1px solid #3d4d63; border-radius: 10px; background: #121b28; font-size: .76rem; color: #c4d2e5; }
.context-box .context-icon { color: var(--blue); flex: 0 0 auto; }
.context-box p + p { margin-top: 4px; color: var(--muted); }
.policy-note { color: var(--muted); font-size: .73rem; margin-top: 18px; padding-top: 17px; border-top: 1px solid var(--line-soft); }
.detail-actions { border-top: 1px solid var(--line-soft); padding: 20px 23px 23px; display: grid; gap: 9px; }
.detail-actions .action-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.detail-actions > p { font-size: .72rem; color: var(--muted); margin-bottom: 3px; }
.detail-actions .button { min-height: 45px; padding: 10px 12px; font-size: .78rem; }
.detail-actions .suspend-entry { color: var(--red); border-color: #6b434a; background: #2c2027; }
.detail-actions .suspend-entry:hover:enabled { background: #442831; border-color: #b4707a; }
.action-explanation { font-size: .71rem; color: var(--muted); }
.detail-placeholder { min-height: 300px; padding: 40px 26px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: var(--muted); gap: 12px; }
.detail-placeholder h2 { color: var(--text); }
.detail-placeholder p { max-width: 300px; font-size: .82rem; }
.empty-symbol { width: 49px; height: 49px; display: grid; place-items: center; border: 1px solid #43516a; border-radius: 15px; color: #b4c3d7; font-size: 1.4rem; margin-bottom: 5px; }
.state-card { border: 1px solid var(--line); background: var(--panel); border-radius: var(--radius); padding: 38px 24px; text-align: center; display: grid; justify-items: center; gap: 12px; }
.state-card h2 { font-size: 1.12rem; }
.state-card p { max-width: 410px; color: var(--muted); font-size: .82rem; }
.state-card.error { border-color: #79573a; }
.state-card.error .empty-symbol { color: var(--amber); border-color: #79573a; }
.workspace-footer { font-size: .68rem; color: var(--subtle); margin-top: 24px; display: flex; gap: 12px; justify-content: space-between; flex-wrap: wrap; }
.feedback-message { font-size: .91rem; line-height: 1.75; color: #e1e8f2; padding: 20px 0; border-bottom: 1px solid var(--line-soft); }
.rating-stars { color: var(--amber); letter-spacing: 2px; font-size: 1rem; margin-right: 7px; }
.feedback-caption { font-size: .74rem; color: var(--muted); margin-top: 18px; }
.history-detail { display: grid; gap: 17px; }
.history-event { padding: 14px; border: 1px solid var(--line-soft); border-radius: 10px; background: #111a26; }
.history-event strong { font-size: .82rem; }
.history-event p { font-size: .76rem; color: var(--muted); margin-top: 6px; }
.mobile-back { display: none; }
dialog { padding: 0; background: var(--panel); color: var(--text); border: 1px solid #58657a; border-radius: 20px; width: min(500px, calc(100vw - 30px)); max-height: calc(100dvh - 30px); overflow: auto; box-shadow: 0 25px 80px #0008; }
dialog::backdrop { background: #050911bf; }
.dialog-content { padding: 28px; }
.dialog-preview { font-size: .63rem; letter-spacing: .1em; text-transform: uppercase; color: var(--amber); margin-bottom: 17px; }
.dialog-content h2 { font-size: 1.45rem; line-height: 1.35; margin-bottom: 14px; }
.dialog-content > p { color: #c1ccdb; font-size: .88rem; }
.dialog-target { margin: 20px 0; border: 1px solid var(--line); background: #101925; border-radius: 11px; padding: 14px; }
.dialog-target strong { display: block; font-size: .84rem; }
.dialog-target p { color: var(--muted); font-size: .75rem; margin-top: 5px; }
.dialog-work { padding: 0; margin: 13px 0 0; list-style: none; display: flex; gap: 8px; flex-wrap: wrap; }
.dialog-work li { font-size: .68rem; color: #c6d0df; padding: 4px 8px; border: 1px solid #3c4b60; border-radius: 6px; }
.dialog-actions { display: grid; gap: 10px; margin-top: 25px; }
.dialog-actions .button { width: 100%; }
.dialog-help { font-size: .73rem !important; color: var(--muted) !important; margin-top: 18px; }
.dialog-warning { font-size: .79rem; border-left: 3px solid var(--amber); padding: 10px 14px; background: var(--amber-bg); color: #eddbbc; border-radius: 0 8px 8px 0; margin: 20px 0; }
.noscript-message { padding: 40px; }
@media (min-width: 1440px) { .workspace { padding-left: 45px; padding-right: 45px; } .content-grid { grid-template-columns: minmax(290px, .8fr) minmax(370px, 1.2fr); gap: 28px; } }
@media (max-width: 1050px) { .shell { grid-template-columns: 192px minmax(0, 1fr); } .workspace { padding: 26px 24px; } .sidebar { padding-left: 12px; padding-right: 12px; } .content-grid { grid-template-columns: minmax(200px, .8fr) minmax(270px, 1fr); gap: 15px; } .detail-header, .detail-body { padding: 19px; } .detail-actions { padding: 18px; } .cadence { display: none; } .auth-screen { gap: 40px; grid-template-columns: 1fr 390px; } .detail-actions .action-pair { grid-template-columns: 1fr; } }
@media (max-width: 820px) { .shell { grid-template-columns: 1fr; } .sidebar { padding: 20px 24px 0; border-right: none; border-bottom: 1px solid var(--line-soft); gap: 20px; } .sidebar .brand { padding: 0; } .nav { display: flex; gap: 6px; padding-bottom: 15px; flex-wrap: wrap; } .nav-button { flex: 1 1 150px; width: auto; min-height: 44px; justify-content: flex-start; font-size: .76rem; } .nav-icon { display: none; } .sidebar-footer { position: absolute; top: 54px; right: 24px; margin: 0; padding: 0; border: none; } .owner-chip { display: none; } .sidebar-footer .button { min-height: 44px; padding: 8px; } .content-grid { grid-template-columns: minmax(220px, .85fr) minmax(280px, 1.15fr); } .auth-screen { grid-template-columns: 1fr; max-width: 520px; padding-top: 36px; gap: 30px; } .auth-intro .brand { margin-bottom: 25px; } .auth-intro h1 { font-size: 2.25rem; } .auth-intro > p { font-size: .94rem; } .auth-benefits { display: none; } }
@media (max-width: 600px) { .preview-banner { padding: 9px 14px; font-size: .65rem; gap: 7px; } .preview-banner strong { font-size: .59rem; } .sidebar { padding: 18px 16px 0; gap: 18px; } .sidebar-footer { right: 12px; top: 51px; } .sidebar-footer .button { font-size: .7rem; } .brand-mark { width: 28px; height: 32px; font-size: 14px; } .brand-name { font-size: .95rem; } .brand-description { font-size: .64rem; } .nav { gap: 6px; padding-bottom: 15px; } .nav-button { flex-basis: calc(50% - 6px); min-height: 44px; padding: 10px 11px; font-size: .74rem; } .workspace { padding: 23px 16px; } .workspace-header { margin-bottom: 18px; } .workspace-header h1 { font-size: 1.7rem; } .workspace-header .intro { font-size: .78rem; } .scenario-panel { margin-bottom: 18px; } .scenario-content { gap: 10px; } .scenario-field { display: grid; gap: 6px; } .scenario-select { width: 100%; } .scenario-content .button { width: 100%; } .content-grid { grid-template-columns: 1fr; gap: 16px; } .content-grid.mobile-list .detail-card { display: none; } .content-grid.mobile-detail .queue { display: none; } .mobile-back { display: inline-flex; margin-bottom: 13px; min-height: 44px; font-size: .78rem; padding: 8px 0; border: 0; border-radius: 5px; color: var(--muted); background: transparent; } .detail-card { border-radius: 15px; } .detail-header, .detail-body { padding: 20px; } .detail-actions { padding: 19px 20px; } .detail-actions .action-pair { grid-template-columns: 1fr; } .detail-actions .button { min-height: 46px; } .case-row { padding: 18px; } .field-pair { grid-template-columns: 1fr; gap: 17px !important; } .workspace-footer { gap: 7px; font-size: .64rem; } .auth-screen { padding: 30px 18px; gap: 27px; } .auth-intro h1 { font-size: 1.9rem; } .auth-intro > p { margin-top: 13px; } .auth-card { padding: 23px; border-radius: 18px; } .dialog-content { padding: 23px; } .dialog-content h2 { font-size: 1.25rem; } .notice { padding: 13px; } .notice .button { width: 100%; min-height: 44px; } }
@media (max-width: 600px) { .content-grid.mobile-list .detail-column { display: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; } }
.shell { min-height: 100vh; }
.auth-screen { min-height: 100vh; }
.session-note { color: var(--muted); font-size: .75rem; margin: -5px 0 22px; }
.notice.error { color: var(--red); border-color: #82535a; background: var(--red-bg); }
.operation { display: grid; align-items: start; gap: 12px; }
.operation p { flex: none; }
.operation .button { justify-self: start; }
.muted { color: var(--muted); font-size: .78rem; margin-top: 12px; }
.reference { overflow-wrap: anywhere; font-size: .74rem; color: var(--muted); margin-top: 12px; }
.pagination { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.pagination .button { flex: 1 1 120px; font-size: .76rem; }
.feedback-message { white-space: pre-wrap; overflow-wrap: anywhere; }
.rating { font-weight: 650; color: var(--amber); }
.evidence-note { color: var(--muted); padding: 14px; margin-bottom: 20px; border: 1px solid var(--line-soft); border-radius: 10px; background: #111a26; font-size: .8rem; }
.work-list { display: grid; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 10px; }
.work-list > div { display: grid; gap: 3px; }
.work-list dt { font-size: .75rem; color: var(--muted); }
.work-list dd { margin: 0; font-size: .83rem; overflow-wrap: anywhere; }
.dialog-content .reference { margin-top: 18px; }
.dialog-content .eyebrow { margin-bottom: 16px; }
.detail-column { min-width: 0; }
@media (max-width: 820px) { .sidebar-footer { top: 20px; } }
@media (max-width: 600px) { .sidebar-footer { top: 15px; } .workspace-header { flex-wrap: wrap; gap: 14px; } .workspace-header > .button { min-height: 44px; } .operation .button { width: 100%; } }
