/* Dense case directory: scan, filter, then open a single source-backed case. */
[hidden]{display:none!important}
.app-main,.app-main button,.app-main input,.app-main textarea,.app-main select,.app-main h1,.app-main h2,.app-main h3,.app-main h4,.app-main p,.app-main dt,.app-main dd{font-family:'Noto Sans SC',sans-serif}.app-main h1,.app-main h2,.app-main h3{letter-spacing:-.045em}.app-main .app-header h1,.case-detail h1{font-weight:700}.ask-box textarea{font-weight:500}
.library-toolbar{border:0;margin-top:22px;padding:0;gap:8px}.filter-label{display:none}.filter-chip{height:36px;padding:0 14px;border:1px solid #ead7ad;background:#fffaf0;color:#946519;border-radius:99px;font-size:13px;font-weight:700}.filter-chip.active,.filter-chip:hover{background:#11131a;border-color:#11131a;color:#fff}.case-grid{grid-template-columns:1fr;gap:9px;margin-top:18px}.case-card.case-row{min-height:0;width:100%;display:grid;grid-template-columns:64px minmax(0,1fr) auto 18px;align-items:center;gap:16px;padding:16px 18px;border:1px solid #e3e9f2;border-top:1px solid #e3e9f2;border-radius:14px;background:#fff;box-shadow:none}.case-card.case-row:hover{transform:translateY(-1px);box-shadow:0 8px 18px rgba(7,23,46,.08);border-color:#b9cbe7}.case-index{width:48px;height:48px;display:grid;place-items:center;background:#f1f4f8;border-radius:12px;color:#556177;font:700 17px 'DM Mono',monospace}.case-row-main{min-width:0;text-align:left}.case-tags{display:flex;gap:6px;align-items:center}.case-tags small{display:inline-flex;align-items:center;min-height:22px;padding:0 8px;border:1px solid #e8cc8f;border-radius:99px;background:#fff9eb;color:#976313;font:700 11px 'Noto Sans SC',sans-serif}.case-tags small+small{border-color:#d4e1f5;background:#f2f7ff;color:#3a68ad}.case-row h2{font:700 19px/1.35 'Noto Sans SC',sans-serif;letter-spacing:-.03em;margin:6px 0 3px;color:#161d2b}.case-row p{display:block;margin:0;max-width:none;font-size:13px;line-height:1.5;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.case-date{white-space:nowrap;color:#7b8494;font:500 11px 'DM Mono',monospace}.case-row-arrow{color:var(--blue);font-size:20px}.case-row .case-meta{display:none}
@media(max-width:720px){.library-toolbar{gap:6px;margin-top:18px;overflow:auto;flex-wrap:nowrap;padding-bottom:2px}.filter-chip{height:32px;padding:0 11px;white-space:nowrap;font-size:12px}.case-grid{margin-top:12px}.case-card.case-row{grid-template-columns:42px minmax(0,1fr) 15px;gap:10px;padding:12px;border-radius:11px}.case-index{width:38px;height:38px;border-radius:10px;font-size:13px}.case-row h2{font-size:15px;margin:4px 0 3px}.case-row p{font-size:11px}.case-tags small{min-height:19px;padding:0 6px;font-size:9px}.case-date{display:none}.case-row-arrow{font-size:16px}}
.admin-flow-note{margin:-8px 0 16px;color:#66738a;font-size:13px;line-height:1.55}.row-actions{display:flex;align-items:center;gap:8px;flex-shrink:0}.tag-editor{display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) auto;gap:10px;align-items:end;margin:-2px 0 12px;padding:13px 14px;border:1px solid #d7e4f6;border-radius:12px;background:#f6faff}.tag-editor label{display:grid;gap:5px;color:#526079;font-size:11px;font-weight:700}.tag-editor input{width:100%;min-width:0;height:35px;border:1px solid #cbd9ea;border-radius:7px;background:#fff;padding:0 9px;color:#14213d;font:500 13px 'Noto Sans SC',sans-serif}.tag-editor-actions{display:flex;gap:7px;align-items:center}.tag-editor-actions .solid-button{height:35px;padding:0 12px;font-size:12px;white-space:nowrap}.text-button{border:0;background:transparent;color:#526079;padding:8px;font:600 12px 'Noto Sans SC',sans-serif;cursor:pointer}.text-button:hover{color:#1268ff}
@media(max-width:720px){.source-row{align-items:flex-start}.row-actions{width:100%;margin-top:8px}.row-actions .outline-button{flex:1}.tag-editor{grid-template-columns:1fr;margin-top:-3px}.tag-editor-actions{justify-content:flex-end}}
.citation{border:1px solid #dce6f3;border-radius:8px;background:#fff;overflow:hidden}.citation-links{display:flex;gap:12px;align-items:center;padding:0 11px 10px}.citations .citation-links .text-button{display:block;border:0;background:transparent;padding:0;color:#1268ff;font-size:11px}.citation-links a{color:#1268ff;font:600 11px 'Noto Sans SC',sans-serif;text-decoration:none}.citation-links a:hover{text-decoration:underline}@media(max-width:720px){.citation-links{gap:10px;flex-wrap:wrap}}
.history-page{max-width:1080px;margin:0 auto;padding-top:8px}.history-page-heading{display:flex;align-items:end;justify-content:space-between;margin:12px 0 14px}.history-page-heading h1{margin:0;color:#192234;font:700 clamp(26px,3vw,36px)/1 'Noto Sans SC',sans-serif;letter-spacing:-.06em}.history-page-heading small{color:#7e8a9d;font:500 11px 'DM Mono',monospace}.history-page-list{display:grid;gap:8px}.history-page-list button{width:100%;display:grid;grid-template-columns:50px minmax(0,1fr) auto 18px;align-items:center;gap:13px;border:1px solid #dfe7f1;border-radius:12px;background:#fff;padding:14px 16px;text-align:left;color:#162137;cursor:pointer}.history-page-list button:hover{border-color:#a9c5eb;background:#f7faff;transform:translateY(-1px)}.history-record-index{width:38px;height:38px;display:grid;place-items:center;border-radius:10px;background:#eef3f9;color:#52647c;font:700 13px 'DM Mono',monospace}.history-page-list b,.history-page-list em{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.history-page-list b{font:700 15px 'Noto Sans SC',sans-serif}.history-page-list em{margin-top:4px;color:#778396;font:400 12px 'Noto Sans SC',sans-serif}.history-page-list time{color:#7e8a9a;font:500 10px 'DM Mono',monospace;white-space:nowrap}.history-page-list i{font-size:17px;color:#1268ff;font-style:normal}@media(max-width:720px){.history-page{padding-top:0}.history-page-heading{margin-top:10px}.history-page-list button{grid-template-columns:38px minmax(0,1fr) 14px;gap:10px;padding:12px}.history-record-index{width:34px;height:34px;font-size:11px}.history-page-list b{font-size:13px}.history-page-list em{font-size:11px}.history-page-list time{display:none}}
.ask-page{max-width:1080px;margin:0 auto;padding-top:8px}.ask-compact-head{padding:0 4px;margin-bottom:12px}.ask-compact-head p{margin:0;color:#6d778a;font:500 12px/1.5 'Noto Sans SC',sans-serif}.ask-page .ask-box{display:flex;align-items:center;gap:12px;margin:0;border:1px solid #dbe3ee;border-radius:18px;padding:10px 12px 10px 20px;box-shadow:0 12px 30px rgba(7,23,46,.06)}.ask-page .ask-box textarea{min-height:46px;height:46px;flex:1;padding:10px 0;border:0;resize:none;font:500 17px/1.5 'Noto Sans SC',sans-serif}.ask-page .ask-box .solid-button{float:none;height:46px;margin:0;padding:0 22px;border-radius:12px;font-size:14px}.prompt-chips{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0 24px}.prompt-chips button{border:1px solid #e0e7f0;border-radius:99px;background:#fff;color:#59667a;padding:7px 12px;font:500 12px 'Noto Sans SC',sans-serif;cursor:pointer}.prompt-chips button:hover{border-color:#1268ff;color:#1268ff;background:#f4f8ff}.ask-page .answer{margin-top:0;border:1px solid #dbe3ee;border-left:3px solid var(--blue);border-radius:14px;padding:20px 22px;box-shadow:0 8px 20px rgba(7,23,46,.035)}.ask-page .answer-text{font-size:15px;line-height:1.85}.ask-page .answer h3{margin-top:22px}
@media(max-width:720px){.ask-page{padding-top:0}.ask-compact-head{margin-bottom:9px}.ask-compact-head p{font-size:11px}.ask-page .ask-box{gap:8px;padding:8px 8px 8px 14px;border-radius:14px}.ask-page .ask-box textarea{min-height:42px;height:42px;font-size:13px}.ask-page .ask-box .solid-button{height:42px;padding:0 13px;border-radius:9px;font-size:13px}.ask-page .ask-box .solid-button span{display:none}.prompt-chips{gap:6px;margin:9px 0 18px;flex-wrap:nowrap;overflow:auto;padding-bottom:2px}.prompt-chips button{white-space:nowrap;padding:6px 10px;font-size:11px}.ask-page .answer{padding:16px;border-radius:11px}.ask-page .answer-text{font-size:13px}}
.answer-topline,.evidence-heading,.history-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.answer-topline .answer-label{margin:0}.evidence-heading{margin-top:22px}.evidence-heading h3{margin:0!important}.copy-button{border:1px solid #c9d9ef;border-radius:7px;background:#f7faff;color:#1268ff;padding:5px 9px;font:600 11px 'Noto Sans SC',sans-serif;white-space:nowrap;cursor:pointer}.copy-button:hover{border-color:#1268ff;background:#eaf2ff}.search-history{margin-top:22px;padding-top:16px;border-top:1px solid #e1e7ef}.history-heading h3{margin:0;color:#1c2636;font:700 15px 'Noto Sans SC',sans-serif}.history-heading small{color:#8a94a4;font:500 10px 'Noto Sans SC',sans-serif}.history-list{display:grid;gap:6px;margin-top:10px}.history-list button{display:flex;justify-content:space-between;gap:14px;width:100%;border:1px solid #e3e9f2;border-radius:9px;background:#fff;color:#283548;padding:10px 12px;text-align:left;cursor:pointer;font:500 12px 'Noto Sans SC',sans-serif}.history-list button:hover{border-color:#a8c3e9;background:#f7faff}.history-list button span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.history-list button small{flex:none;color:#8993a1;font:500 10px 'DM Mono',monospace}.history-empty{margin:0;color:#8490a2;font-size:12px}@media(max-width:720px){.answer-topline,.evidence-heading{align-items:flex-start}.copy-button{font-size:10px;padding:5px 7px}.search-history{margin-top:18px}.history-list button{padding:9px 10px;font-size:11px}.history-list button small{display:none}}
@media(max-width:720px){.app-sidebar{position:sticky;top:0;display:flex;flex-direction:column;align-items:stretch;gap:7px;min-height:0;padding:10px 16px 0;background:var(--navy)}.app-sidebar .brand{padding:0;font-size:18px;line-height:1.35}.app-sidebar .brand i{font-size:10px}.app-sidebar nav{display:flex;gap:5px;overflow-x:auto;margin:0 -16px;padding:0 16px 9px;scrollbar-width:none}.app-sidebar nav button{flex:0 0 auto;padding:7px 10px;border-radius:7px;font-size:13px}.app-sidebar nav button i{font-size:9px}.app-main{padding:0 16px 36px}.app-topbar{position:sticky;top:79px;left:auto;right:auto;width:auto;height:54px;margin:0 -16px 18px;padding:9px 16px;border-bottom:1px solid #dfe7f1;background:rgba(247,250,255,.96);backdrop-filter:blur(12px);z-index:15}.global-search{width:100%;height:36px;border-radius:9px;box-shadow:0 5px 14px rgba(7,23,46,.06)}.global-search input{font-size:13px}.global-search button{width:40px}.app-main .app-header h1{font-size:clamp(30px,9vw,38px);line-height:1.15}.app-lede{margin-top:10px;font-size:12px}.case-card.case-row{grid-template-columns:42px minmax(0,1fr) auto 15px}.case-date{display:block;font-size:9px}.library-toolbar{margin-top:16px}.ask-page,.history-page{padding-top:2px}.ask-compact-head{padding:0}.search-history{padding-top:14px}}
.guest-page{max-width:1080px;margin:0 auto;padding-top:8px}.guest-panel{margin-top:12px;padding:clamp(24px,5vw,52px);border:1px solid #dbe5f2;border-left:4px solid var(--blue);border-radius:16px;background:linear-gradient(120deg,#fff 35%,#f0f6ff);box-shadow:0 12px 28px rgba(7,23,46,.05)}.guest-panel .eyebrow{margin:0;color:var(--blue);font-size:10px}.guest-panel h1{margin:16px 0 14px;color:#10213c;font:700 clamp(32px,4.8vw,58px)/1.08 'Noto Serif SC',serif;letter-spacing:-.08em}.guest-panel p:not(.eyebrow){max-width:450px;margin:0;color:#627087;font-size:14px;line-height:1.75}.guest-panel .solid-button{margin-top:24px}.guest-module-list{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:12px}.guest-module-list article{min-height:150px;padding:18px;border:1px solid #dfe7f1;border-radius:12px;background:#fff}.guest-module-list b{color:var(--blue);font:500 10px 'DM Mono',monospace}.guest-module-list h2{margin:25px 0 7px;color:#172235;font:700 19px 'Noto Sans SC',sans-serif}.guest-module-list p{margin:0;color:#748095;font-size:12px;line-height:1.6}@media(max-width:720px){.guest-page{padding-top:2px}.guest-panel{padding:25px 20px;border-radius:13px}.guest-panel h1{font-size:34px}.guest-panel p:not(.eyebrow){font-size:12px}.guest-module-list{grid-template-columns:1fr;gap:7px}.guest-module-list article{min-height:0;padding:15px}.guest-module-list h2{margin:14px 0 5px;font-size:16px}}
