:root { color-scheme:dark; font-family:Inter,Segoe UI,Arial,sans-serif; font-size:14px; color:#e9ebe7; background:#101415; --muted:#929b98; --border:#2c3432; --green:#9fcab7; --blue:#9ab8e2; --orange:#e5bb82; --red:#e6a397; }
* { box-sizing:border-box; }
body { margin:0; }
button,textarea,input { font:inherit; }
input { width:100%; color:#e0e6df; background:#111614; border:1px solid #39443e; padding:11px; border-radius:6px; }
.matter-form { display:grid; grid-template-columns:1fr 1fr; gap:5px 14px; }
.workflow-steps { padding-left:18px; color:#b4c2b7; line-height:1.7; font-size:13px; }
.workflow-steps li { margin-bottom:12px; }
.link-button { display:inline-block; color:#c9dece; text-decoration:none; padding:10px 15px; border:1px solid #3c4c44; border-radius:7px; }
button { cursor:pointer; color:inherit; background:#242d29; border:1px solid #3c4c44; border-radius:7px; padding:10px 15px; text-align:left; }
button:hover { background:#303c35; border-color:#7d9688; }
button:focus-visible,textarea:focus-visible { outline:2px solid #b6dfc9; outline-offset:3px; }
button:disabled { cursor:default; opacity:.38; }
button.primary { background:#b8d5c2; color:#15251d; border-color:#b8d5c2; font-weight:650; }
button.primary:hover { background:#d2e7d9; }
button.ghost { background:transparent; border-color:var(--border); }
button.small { font-size:12px; padding:7px 10px; }
.shell { max-width:1420px; margin:auto; min-height:100vh; }
.topbar { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:20px 32px; border-bottom:1px solid var(--border); }
.brand { display:flex; align-items:center; gap:11px; font-size:21px; font-weight:650; letter-spacing:-.6px; }
.mark { display:grid; grid-template-columns:repeat(2,7px); gap:3px; padding:9px; background:#27372e; border-radius:8px; }
.mark i { width:7px; height:7px; background:#b8d5c2; border-radius:1px; }
.brand small { font-size:11px; color:var(--muted); letter-spacing:.7px; text-transform:uppercase; font-weight:400; margin-left:12px; }
.topright { display:flex; align-items:center; gap:12px; }
.workflow-nav { position:sticky; top:0; z-index:20; display:flex; flex-wrap:wrap; gap:8px; padding:12px 32px; background:#101415f5; border-bottom:1px solid var(--border); backdrop-filter:blur(8px); }
.mode { color:#b9c7bb; font-size:11px; background:#243029; border:1px solid #35463b; border-radius:5px; padding:6px 9px; }
.mode.fallback { color:#d3c4a0; background:#2a291f; border-color:#423d2b; }
.content { padding:28px 32px 38px; }
.crumb { font-size:12px; color:var(--muted); margin-bottom:15px; }
.crumb span { color:#d8ded9; }
.matter { display:flex; justify-content:space-between; align-items:flex-start; gap:20px; padding-bottom:23px; }
h1,h2,h3,p { margin-top:0; }
h1 { font-size:29px; letter-spacing:-.9px; font-weight:550; margin-bottom:8px; line-height:1.18; }
h2 { font-size:20px; font-weight:550; letter-spacing:-.4px; margin-bottom:12px; }
h3 { font-size:16px; font-weight:550; margin-bottom:10px; }
p { line-height:1.6; }
.sub { color:var(--muted); font-size:13px; margin-bottom:0; }
.tags { display:flex; gap:8px; flex-wrap:wrap; margin-top:14px; }
.tag { font-size:11px; color:#b6c0ba; background:#1d2522; padding:6px 9px; border:1px solid var(--border); border-radius:5px; }
.version { color:#d8e9df; border-color:#506657; }
.eyebrow { color:#8b9c92; font-size:10px; text-transform:uppercase; letter-spacing:1.3px; margin-bottom:10px; font-weight:650; }
.intro { max-width:750px; margin:24px 0 30px; }
.intro h2 { font-size:28px; line-height:1.3; }
.import-grid { display:grid; grid-template-columns:1.6fr 1fr; gap:24px; }
.panel { background:#181e1c; border:1px solid var(--border); border-radius:10px; padding:24px; }
label { display:block; font-size:13px; margin:15px 0 10px; }
textarea { display:block; width:100%; resize:vertical; min-height:235px; border:1px solid #39443e; border-radius:7px; background:#111614; color:#e0e6df; padding:15px; font-size:12px; line-height:1.6; }
.actions { display:flex; gap:10px; flex-wrap:wrap; align-items:center; margin-top:18px; }
.hint { color:var(--muted); font-size:11px; line-height:1.6; margin-top:12px; margin-bottom:0; }
.route-list { display:grid; gap:19px; margin:24px 0 0; }
.route { display:grid; grid-template-columns:28px 1fr; gap:10px; align-items:start; }
.route b { border:1px solid var(--border); border-radius:50%; display:grid; place-items:center; width:26px; height:26px; font-size:11px; color:#c3d6c8; }
.route strong { display:block; font-size:13px; font-weight:550; }
.route p { color:var(--muted); margin:4px 0 0; font-size:12px; }
.metrics { display:grid; grid-template-columns:repeat(4,1fr); background:#171e1a; border:1px solid var(--border); border-radius:8px; margin-bottom:24px; }
.metric { padding:18px 20px; border-right:1px solid var(--border); }
.metric:last-child { border-right:0; }
.metric strong { display:block; font-size:24px; font-weight:500; margin-bottom:5px; }
.metric span { font-size:11px; color:var(--muted); }
.section-head { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:18px 0; }
.section-head h2 { margin:0; }
.cards { display:grid; grid-template-columns:repeat(2,1fr); gap:14px; }
.issue-card { display:block; width:100%; position:relative; border:1px solid var(--border); background:#181e1c; padding:21px; border-radius:9px; }
.issue-card:hover { background:#1d2721; }
.card-top { display:flex; justify-content:space-between; align-items:flex-start; margin-bottom:18px; gap:12px; }
.issue-number { font-size:11px; color:#8b9690; font-family:Consolas,monospace; }
.badge { display:inline-flex; align-items:center; gap:6px; border:1px solid currentColor; border-radius:5px; font-size:9px; font-weight:650; padding:5px 7px; text-transform:uppercase; letter-spacing:.3px; }
.badge::before { content:''; width:4px; height:4px; border-radius:50%; background:currentColor; flex-shrink:0; }
.green { color:var(--green); }.blue { color:var(--blue); }.orange { color:var(--orange); }.red { color:var(--red); }
.issue-card h3 { color:#e6eae5; font-size:19px; letter-spacing:-.4px; }
.issue-card p { color:#9ba79f; font-size:12px; line-height:1.6; margin-bottom:19px; }
.card-footer { border-top:1px solid var(--border); padding-top:13px; display:flex; justify-content:space-between; color:#b9c8bf; font-size:11px; }
.notice { background:#32221f; border:1px solid #75433a; border-radius:8px; padding:20px; margin-bottom:22px; }
.notice h3 { color:#efb0a1; font-size:14px; }
.notice p { font-size:12px; margin-bottom:10px; color:#d5b5ab; }
.notice .diff { display:grid; grid-template-columns:1fr 1fr; gap:15px; margin:17px 0; }
.notice .diff div { border:1px solid #56362f; border-radius:5px; padding:12px; font-size:12px; line-height:1.6; }
.notice .diff strong { display:block; font-size:10px; color:#b49a91; margin-bottom:6px; }
.detail-grid { display:grid; grid-template-columns:1.55fr 1fr; gap:20px; margin-top:19px; align-items:start; }
.evidence { margin-bottom:23px; }
.evidence:last-child { margin-bottom:0; }
.evidence p { font-size:13px; color:#c1cbc3; margin-bottom:7px; }
.quote { border-left:2px solid #63786b; padding:3px 0 3px 13px; }
.warning { color:#d8bf93; background:#302b20; border:1px solid #504431; border-radius:6px; padding:13px; font-size:12px; margin:16px 0; line-height:1.5; }
.success { color:#b6d9c3; background:#203025; border:1px solid #38593f; border-radius:6px; padding:15px; font-size:12px; margin:16px 0; line-height:1.6; }
.source-note { font-size:10px; color:#7d8c82; margin:20px 0; }
.decision-options { display:grid; gap:9px; }
.decision-options button { font-size:12px; padding:13px; }
.pack-row { display:grid; grid-template-columns:1fr auto; gap:15px; padding:18px 0; border-bottom:1px solid var(--border); }
.pack-row:last-child { border:0; }
.pack-row h3 { margin-bottom:7px; font-size:14px; }
.pack-row p { margin:0; font-size:12px; color:var(--muted); }
.tabs { display:flex; gap:7px; border-bottom:1px solid var(--border); margin:15px 0 22px; padding-bottom:12px; flex-wrap:wrap; }
.tabs button[aria-selected="true"] { background:#c0d6c6; color:#18261e; border-color:#c0d6c6; }
.draft { white-space:pre-wrap; line-height:1.85; font-size:13px; color:#d4dbd3; min-height:240px; }
.audit { margin-top:24px; border-top:1px solid var(--border); padding-top:18px; }
.audit summary { cursor:pointer; font-size:12px; color:#9baa9e; }
.audit-row { padding:10px 0; border-bottom:1px solid #242c27; font-size:11px; line-height:1.6; color:#93a296; }
.audit-row b { color:#c2cfc4; font-weight:550; }
.footer { display:flex; gap:20px; justify-content:space-between; color:#65736b; font-size:10px; padding-top:28px; }
#toast { position:fixed; bottom:20px; left:50%; transform:translateX(-50%); background:#d3e3d7; color:#1b2e22; padding:12px 18px; border-radius:7px; font-size:12px; box-shadow:0 6px 30px #0007; display:none; max-width:90vw; z-index:50; }
#toast.show { display:block; }
.loading { color:#c4d4c9; font-size:12px; padding:10px 0; }
.copy-manual { margin-top:20px; }
@media(max-width:760px) {
  .topbar { padding:15px 18px; }.content { padding:22px 18px; }.workflow-nav { padding:10px 18px; }.brand small { display:none; }
  .import-grid,.detail-grid { grid-template-columns:1fr; }.metrics { grid-template-columns:repeat(2,1fr); }
  .metric:nth-child(2) { border-right:0; }.metric:nth-child(-n+2) { border-bottom:1px solid var(--border); }
  .matter { flex-wrap:wrap; }h1 { font-size:25px; }.panel { padding:18px; }.badge { font-size:8px; }
  .notice .diff { grid-template-columns:1fr; }.footer { flex-wrap:wrap; }
}
@media(max-width:520px) { .cards,.matter-form { grid-template-columns:1fr; }.pack-row { grid-template-columns:1fr; }.topright { gap:6px; }.topbar { gap:8px; }.mode { font-size:9px; }.card-top { gap:5px; } }
.prompt-text { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; font-size: 12px; padding: 12px; background: #111614; color: #d4dbd3; }
details { margin-top: 16px; }
summary { cursor: pointer; font-size: 12px; }
