
:root {
  --canvas: #edf2f0;
  --surface: #ffffff;
  --surface-soft: #f8faf9;
  --ink: #17262a;
  --muted: #778387;
  --faint: #aab4b5;
  --line: #cfdad6;
  --brand: #a74f60;
  --brand-dark: #873b4d;
  --brand-soft: #f7e9ec;
  --sage: #7eaa9a;
  --sage-soft: #e6f1ed;
  --lavender: #837cae;
  --peach: #c78e71;
  --dark: #17272b;
  --shadow: 0 18px 48px rgba(31, 54, 58, .10);
  --shadow-small: 0 7px 22px rgba(31, 54, 58, .075);
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--canvas); }
body { margin: 0; color: var(--ink); background: var(--canvas); font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif; line-height: 1.6; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .58; }
a { color: inherit; }
[hidden] { display: none !important; }

.app-shell { display: flex; min-height: 100vh; }
.sidebar { width: 252px; flex: 0 0 252px; display: flex; flex-direction: column; min-height: 100vh; padding: 26px 16px 18px; color: #dce6e5; background: var(--dark); }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 11px 34px; color: #fff; text-decoration: none; }
.brand-mark { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 13px; color: #fff; background: linear-gradient(145deg, #d27886, #8c4053); font-family: Georgia, serif; font-size: 21px; box-shadow: 0 7px 18px rgba(193, 102, 119, .26); }
.brand strong { display: block; font-size: 17px; letter-spacing: .06em; }
.brand small { display: block; margin-top: 1px; color: #8da1a1; font-size: 10px; letter-spacing: .08em; }
.sidebar-label { padding: 0 12px 9px; color: #6f8586; font-size: 10px; font-weight: 800; letter-spacing: .16em; }
.sidebar-label-spaced { margin-top: 28px; }
.main-nav { display: grid; gap: 4px; }
.nav-item { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; border: 1px solid transparent; border-radius: 12px; color: #a9babb; font-size: 13px; text-decoration: none; transition: .2s ease; }
.nav-item:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.nav-item.active { color: #fff; background: rgba(207, 125, 140, .16); border-color: rgba(207, 125, 140, .17); }
.nav-symbol { width: 20px; color: #9ab1ae; font-size: 20px; line-height: 1; text-align: center; }
.nav-item.active .nav-symbol { color: #ed9aa7; }
.subtle-nav { margin-top: -4px; }
.sidebar-spacer { flex: 1; min-height: 70px; }
.sidebar-status { display: flex; align-items: center; gap: 10px; margin: 0 8px 14px; padding: 13px 11px; border: 1px solid rgba(255, 255, 255, .08); border-radius: 12px; background: rgba(255, 255, 255, .035); }
.sidebar-status strong, .sidebar-status small { display: block; }
.sidebar-status strong { color: #d5e2df; font-size: 11px; }
.sidebar-status small { margin-top: 2px; color: #79908f; font-size: 10px; }
.status-dot, .tiny-dot { display: inline-block; width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: #7bc5a8; box-shadow: 0 0 0 4px rgba(123, 197, 168, .12); }
.profile-chip { display: flex; align-items: center; gap: 9px; padding: 11px 9px 0; border-top: 1px solid rgba(255, 255, 255, .08); color: #a9babb; font-size: 11px; }
.profile-avatar { display: grid; width: 27px; height: 27px; place-items: center; border-radius: 9px; color: #5c393f; background: #f1c8ce; font-size: 11px; font-weight: 800; }
.profile-more { margin-left: auto; color: #668080; letter-spacing: 2px; }

.app-main { min-width: 0; flex: 1; }
.workspace-bar { display: flex; align-items: center; justify-content: space-between; height: 72px; padding: 0 clamp(22px, 4vw, 58px); border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .74); backdrop-filter: blur(14px); }
.workspace-context { display: flex; align-items: center; gap: 9px; color: #647276; font-size: 12px; }
.breadcrumb-link { color: #7d8b8c; text-decoration: none; }
.workspace-tools { display: flex; align-items: center; gap: 13px; }
.engine-pill { display: flex; align-items: center; gap: 8px; padding: 7px 11px; border: 1px solid var(--line); border-radius: 999px; color: #6f7d7f; background: #fff; font-size: 11px; }
.help-button, .mobile-menu { display: grid; width: 28px; height: 28px; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 50%; color: #798789; background: #fff; }
.mobile-menu { display: none; border: 0; background: transparent; font-size: 18px; }
.content-shell { width: min(100%, 1440px); margin: 0 auto; padding: 40px clamp(22px, 4vw, 58px) 80px; }

.dashboard-heading { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 34px; }
.overline { margin: 0 0 8px; color: var(--brand); font-size: 10px; font-weight: 800; letter-spacing: .18em; }
.dashboard-heading h1 { max-width: 700px; margin: 0; font-family: Georgia, "Songti SC", serif; font-size: clamp(34px, 4vw, 51px); font-weight: 500; line-height: 1.15; letter-spacing: -.035em; }
.dashboard-heading h1 em { color: var(--brand); font-style: normal; }
.heading-copy { max-width: 560px; margin: 17px 0 0; color: var(--muted); font-size: 14px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; padding: 8px 15px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: #fff; font-size: 12px; font-weight: 750; text-decoration: none; transition: .2s ease; }
.button:hover { border-color: #cad5d1; transform: translateY(-1px); box-shadow: var(--shadow-small); }
.button-primary { border-color: var(--brand); color: #fff; background: var(--brand); box-shadow: 0 8px 17px rgba(167, 79, 96, .17); }
.button-primary:hover { border-color: var(--brand-dark); background: var(--brand-dark); }
.button-secondary { color: #647477; background: var(--surface-soft); }
.button-large { min-height: 47px; padding: 11px 20px; font-size: 13px; }
.button-block { width: 100%; }
.button-arrow { font-size: 17px; font-weight: 400; line-height: 0; }
.sparkle { font-size: 14px; }

.metric-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) 1.45fr; gap: 13px; margin-bottom: 24px; }
.metric-card { display: flex; align-items: center; gap: 12px; min-height: 90px; padding: 16px 17px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); box-shadow: var(--shadow-small); }
.metric-icon { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 11px; color: #477f70; background: var(--sage-soft); font-size: 18px; }
.metric-icon.lavender { color: var(--lavender); background: #eeecf7; }
.metric-icon.peach { color: var(--peach); background: #f8ede7; }
.metric-card strong, .metric-card span { display: block; }
.metric-card strong { font-size: 21px; line-height: 1.25; }
.metric-card div span { color: var(--muted); font-size: 11px; }
.metric-card small { align-self: start; margin-left: auto; color: #8ba094; font-size: 10px; white-space: nowrap; }
.metric-tip { gap: 14px; border-color: #e7ded7; background: linear-gradient(120deg, #fffaf5, #f8f2ec); }
.metric-tip strong { font-size: 12px; font-weight: 750; }
.metric-tip div span { margin-top: 3px; color: #9a8d83; }
.tip-mark { color: var(--peach); font-size: 25px; }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.46fr) minmax(300px, .75fr); gap: 22px; }
.right-rail { display: grid; align-content: start; gap: 22px; }
.surface { border: 1px solid #c9d5d1; border-radius: 17px; background: var(--surface); box-shadow: var(--shadow-small); }
.surface-header { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 24px 25px 16px; }
.surface-header.compact { padding-bottom: 14px; }
.surface-header h2, .insight-header h2 { margin: 0; font-size: 18px; letter-spacing: -.02em; }
.surface-header .overline, .insight-header .overline { margin-bottom: 4px; }
.list-tools { display: flex; align-items: center; gap: 10px; }
.search-box { display: flex; align-items: center; gap: 7px; width: 150px; padding: 0 9px; border: 1px solid var(--line); border-radius: 8px; color: var(--faint); background: var(--surface-soft); }
.search-box input { min-width: 0; height: 31px; padding: 0; border: 0; outline: 0; background: transparent; font-size: 11px; }
.case-count, .material-count { color: var(--faint); font-size: 11px; white-space: nowrap; }
.case-list { padding: 0 25px; }
.case-list-item { display: flex; align-items: center; gap: 12px; min-height: 75px; border-bottom: 1px solid #eff2f0; color: var(--ink); text-decoration: none; transition: .18s ease; }
.case-list-item:hover { padding: 0 8px; margin: 0 -8px; border-radius: 10px; background: var(--surface-soft); }
.case-avatar, .case-title-avatar { display: grid; flex: 0 0 auto; place-items: center; border-radius: 11px; color: #80525b; background: #f1dcdf; font-family: Georgia, serif; font-size: 16px; }
.case-avatar { width: 37px; height: 37px; }
.avatar-1 { color: #526e74; background: #dceced; }.avatar-2 { color: #806b45; background: #f3ead1; }.avatar-3 { color: #635a80; background: #e9e7f3; }.avatar-4 { color: #55755d; background: #e1eee3; }
.case-list-info { min-width: 0; flex: 1; }
.case-list-info strong, .case-list-info small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.case-list-info strong { font-size: 13px; font-weight: 700; }
.case-list-info small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.case-list-status { padding: 4px 8px; border-radius: 999px; color: #899294; background: #f1f3f2; font-size: 10px; white-space: nowrap; }.case-list-status.status-open { color: #4b866e; background: var(--sage-soft); }
.case-arrow { color: #aab5b4; font-size: 21px; }
.view-all { display: flex; justify-content: space-between; margin: 3px 25px 0; padding: 16px 0 20px; color: var(--brand); font-size: 11px; font-weight: 750; text-decoration: none; }.view-all span { font-size: 16px; }
.empty-list { padding: 45px 20px; color: var(--muted); text-align: center; }.empty-list strong { display: block; margin-top: 9px; color: var(--ink); font-size: 14px; }.empty-list p { margin: 3px 0 17px; font-size: 12px; }.empty-icon { color: #c58a97; font-size: 25px; }.empty-icon.large { display: block; font-size: 32px; }
.quick-start-card { position: relative; overflow: hidden; min-height: 284px; padding: 30px 28px; color: #f9f5f2; background: linear-gradient(148deg, #344b4d 0%, #1b2d31 100%); }.quick-start-card h2 { position: relative; margin: 7px 0 7px; font-family: Georgia, serif; font-size: 25px; font-weight: 500; }.quick-start-card > p:not(.overline) { position: relative; max-width: 240px; margin: 0; color: #a8bbba; font-size: 11px; }.quick-icon { position: relative; display: grid; width: 35px; height: 35px; place-items: center; border-radius: 11px; color: #f4c8cd; background: rgba(218, 128, 143, .18); font-size: 18px; }.light-overline { position: relative; margin-top: 20px; color: #9ec9ba; }.quick-steps { position: relative; display: flex; gap: 12px; margin: 25px 0 23px; color: #bed0cc; font-size: 10px; }.quick-steps span { display: flex; align-items: center; gap: 5px; }.quick-steps b { display: grid; width: 19px; height: 19px; place-items: center; border-radius: 50%; color: #d8eee7; background: rgba(140, 191, 174, .2); font-size: 10px; }.button-light { position: relative; border-color: rgba(255,255,255,.18); color: #fff; background: rgba(255,255,255,.1); }.button-light:hover { color: var(--dark); background: #fff; }.quick-orbit { position: absolute; border: 1px solid rgba(174, 211, 199, .14); border-radius: 50%; }.orbit-one { width: 280px; height: 280px; right: -130px; top: -75px; }.orbit-two { width: 190px; height: 190px; right: -72px; top: -30px; }
.package-summary { padding-bottom: 9px; }.text-link { color: var(--brand); font-size: 11px; font-weight: 750; text-decoration: none; }.package-line { display: flex; align-items: center; gap: 10px; margin: 0 24px; padding: 13px 0; border-top: 1px solid #eff2f0; }.package-icon { display: grid; width: 29px; height: 29px; place-items: center; border-radius: 9px; color: var(--lavender); background: #eeecf7; }.package-line strong, .package-line small { display: block; }.package-line strong { font-size: 11px; }.package-line small { color: var(--muted); font-size: 10px; }.package-check { margin-left: auto; color: #5aa487; font-size: 14px; }

.modal-backdrop { position: fixed; z-index: 80; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(18, 34, 38, .48); backdrop-filter: blur(8px); }.modal-card { position: relative; width: min(100%, 430px); padding: 32px; border: 1px solid rgba(255,255,255,.65); border-radius: 20px; background: #fff; box-shadow: 0 30px 80px rgba(10, 23, 26, .2); }.modal-close { position: absolute; top: 15px; right: 17px; width: 28px; height: 28px; border: 0; border-radius: 50%; color: var(--muted); background: var(--surface-soft); font-size: 20px; line-height: 1; }.modal-mark { display: grid; width: 35px; height: 35px; place-items: center; margin-bottom: 20px; border-radius: 11px; color: var(--brand); background: var(--brand-soft); font-size: 20px; }.modal-card h2 { margin: 0; font-family: Georgia, serif; font-size: 27px; font-weight: 500; }.modal-copy { margin: 7px 0 24px; color: var(--muted); font-size: 12px; }.clean-form { display: grid; gap: 15px; }.clean-form label { display: grid; gap: 7px; color: #526164; font-size: 11px; font-weight: 750; }.clean-form input, .clean-form select, .clean-form textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; outline: 0; color: var(--ink); background: var(--surface-soft); font-size: 12px; }.clean-form input:focus, .clean-form select:focus, .clean-form textarea:focus { border-color: #d38b98; box-shadow: 0 0 0 3px var(--brand-soft); }.optional { color: var(--faint); font-weight: 400; }.spinner { width: 13px; height: 13px; border: 2px solid rgba(255,255,255,.45); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }

.case-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }.back-link { display: inline-block; margin-bottom: 17px; color: var(--muted); font-size: 11px; text-decoration: none; }.back-link:hover { color: var(--brand); }.case-title-line { display: flex; align-items: center; gap: 13px; }.case-title-avatar { width: 46px; height: 46px; font-size: 21px; }.case-kicker { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 10px; }.case-status-dot { width: 6px; height: 6px; border-radius: 50%; background: #5eb38f; box-shadow: 0 0 0 4px #e1f1e9; }.case-title-line h1 { margin: 4px 0 0; font-family: Georgia, serif; font-size: clamp(27px, 3vw, 37px); font-weight: 500; line-height: 1.15; }.case-heading-actions { display: flex; gap: 9px; }.button-analysis { min-height: 45px; padding-left: 19px; padding-right: 17px; }.case-workspace-grid { display: grid; grid-template-columns: minmax(0, 1.42fr) minmax(330px, .78fr); align-items: start; gap: 22px; }.case-main-column { display: grid; gap: 20px; min-width: 0; }.case-insight-column { display: grid; gap: 20px; min-width: 0; position: sticky; top: 95px; }.transcript-surface { overflow: hidden; }.transcript-header { padding-bottom: 19px; }.record-count { display: inline-block; margin-left: 7px; padding: 3px 7px; border-radius: 999px; color: var(--brand); background: var(--brand-soft); font-size: 10px; font-weight: 700; vertical-align: middle; }.autosave-hint { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 10px; }.tiny-dot { width: 5px; height: 5px; box-shadow: none; background: #d49b65; }.tiny-dot.saved { background: #68aa8b; }
.transcript-editor { max-height: 580px; overflow: auto; padding: 0 25px 7px; }.transcript-entry { position: relative; display: grid; grid-template-columns: 33px 1fr; gap: 12px; min-height: 91px; }.timeline-line { position: absolute; top: 22px; bottom: -1px; left: 14px; width: 1px; background: #e8edeb; }.transcript-entry:last-child .timeline-line { display: none; }.timeline-node { position: relative; z-index: 1; display: grid; width: 29px; height: 29px; place-items: center; margin-top: 7px; border: 4px solid #fff; border-radius: 50%; color: #8e9c9b; background: #e8efec; font-size: 9px; font-weight: 800; }.transcript-entry:first-child .timeline-node { color: var(--brand); background: var(--brand-soft); }.entry-card { min-width: 0; padding: 8px 13px 18px; border-bottom: 1px solid #eff2f0; }.entry-topline { display: flex; align-items: center; gap: 10px; }.segment-speaker { width: auto; min-width: 72px; padding: 2px 17px 2px 0; border: 0; outline: 0; color: var(--brand); background: transparent; font-size: 11px; font-weight: 800; }.entry-time { color: #b0bab9; font-size: 10px; }.edit-entry { margin-left: auto; padding: 2px 0; border: 0; color: #a1acaa; background: transparent; font-size: 10px; }.edit-entry:hover { color: var(--brand); }.segment-display { margin: 7px 0 0; color: #465458; font-size: 13px; white-space: pre-wrap; }.segment-editor { width: 100%; min-height: 57px; margin-top: 7px; padding: 8px 10px; border: 1px solid #e1c6cb; border-radius: 8px; outline: 0; color: #465458; background: #fffafb; font-size: 13px; resize: vertical; }.transcript-empty { padding: 58px 20px; color: var(--muted); text-align: center; }.transcript-empty h3 { margin: 7px 0 3px; color: var(--ink); font-family: Georgia, serif; font-size: 18px; font-weight: 500; }.transcript-empty p { margin: 0; font-size: 11px; }.record-composer { display: flex; gap: 11px; margin: 17px 25px 24px; padding: 13px; border: 1px solid #e3eae7; border-radius: 13px; background: var(--surface-soft); }.composer-avatar { display: grid; width: 31px; height: 31px; flex: 0 0 31px; place-items: center; border-radius: 9px; color: #80525b; background: #f1dcdf; font-family: Georgia, serif; font-size: 13px; }.composer-body { min-width: 0; flex: 1; }.composer-topline { display: flex; align-items: center; gap: 9px; }.composer-topline select { width: auto; padding: 0 14px 0 0; border: 0; outline: 0; color: var(--brand); background: transparent; font-size: 11px; font-weight: 800; }.composer-topline span { color: #a4afad; font-size: 10px; }.record-composer textarea { display: block; width: 100%; min-height: 45px; margin-top: 6px; padding: 7px 0; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 12px; resize: vertical; }.record-composer textarea::placeholder { color: #b3bdbc; }.composer-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; }.composer-tip { color: #a0acab; font-size: 9px; }.composer-footer .button { min-height: 31px; padding: 5px 10px; font-size: 10px; }
.notes-editor-shell { margin: 0 25px 25px; overflow: hidden; border: 1px solid #b9cbc5; border-radius: 13px; background: #fbfdfc; box-shadow: inset 0 1px 0 rgba(255,255,255,.8); }
.notes-editor-toolbar, .notes-editor-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 15px; color: #82908e; background: #f1f6f3; font-size: 10px; }
.notes-editor-toolbar { border-bottom: 1px solid #d2dfda; }
.editor-mode { display: flex; align-items: center; gap: 7px; color: #516b66; font-weight: 800; }
.editor-mode-dot { width: 7px; height: 7px; border-radius: 50%; background: #5da486; box-shadow: 0 0 0 4px #dceee7; }
.editor-hint { color: #849795; }
.case-notes-editor { display: block; width: 100%; min-height: 455px; padding: 22px 23px; border: 0; outline: 0; color: #26383a; background: #fff; font-size: 14px; line-height: 2; resize: vertical; }
.case-notes-editor::placeholder { color: #aab8b5; }
.case-notes-editor:focus { box-shadow: inset 0 0 0 2px #e7c8ce; }
.notes-editor-footer { justify-content: flex-end; border-top: 1px solid #d2dfda; }
.notes-editor-footer span { margin-right: auto; }
.notes-editor-footer span + span { margin-right: 4px; color: #9aa8a5; }
.notes-editor-footer .button { min-height: 32px; padding: 5px 13px; font-size: 10px; }
.transcript-surface, .materials-surface, .insight-surface, .case-context-card { border-color: #c4d1cd; }
.materials-surface { overflow: hidden; }.dropzone { display: flex; align-items: center; gap: 12px; margin: 0 25px; padding: 16px; border: 1px dashed #cbdad4; border-radius: 12px; background: #fbfdfc; transition: .2s ease; }.dropzone.dragging { border-color: var(--brand); background: var(--brand-soft); }.drop-icon { display: grid; width: 35px; height: 35px; flex: 0 0 35px; place-items: center; border-radius: 10px; color: #57977f; background: var(--sage-soft); font-size: 20px; }.dropzone strong, .dropzone p { display: block; }.dropzone strong { font-size: 11px; }.dropzone p { margin: 2px 0 0; color: var(--muted); font-size: 10px; }.dropzone .button { margin-left: auto; min-height: 31px; padding: 5px 10px; font-size: 10px; }.attachment-list { display: grid; gap: 2px; margin: 11px 25px 0; }.attachment-item { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid #f0f3f1; }.file-icon { display: grid; width: 29px; height: 29px; place-items: center; border-radius: 8px; color: #6d7eb0; background: #edf0fb; font-size: 15px; }.file-icon.audio-file { color: #9e6882; background: #f5eaf0; }.attachment-item strong, .attachment-item small { display: block; }.attachment-item strong { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }.attachment-item small { color: var(--muted); font-size: 9px; }.attachment-ok { margin-left: auto; color: #65aa89; font-size: 13px; }.recording-row { display: flex; align-items: center; gap: 10px; margin: 10px 25px 21px; padding-top: 12px; border-top: 1px solid #eff2f0; }.recording-icon { display: grid; width: 29px; height: 29px; place-items: center; border-radius: 50%; color: #b05c6c; background: var(--brand-soft); font-size: 9px; }.recording-row strong, .recording-row small { display: block; }.recording-row strong { font-size: 10px; }.recording-row small { color: var(--muted); font-size: 9px; }.recording-row .button { margin-left: auto; min-height: 31px; padding: 5px 10px; font-size: 10px; }.recording-row .button + .button { margin-left: 0; }

.insight-surface { min-height: 440px; overflow: hidden; }.insight-header { display: flex; align-items: start; justify-content: space-between; padding: 24px 25px 10px; }.live-badge { display: flex; align-items: center; gap: 6px; padding: 5px 8px; border-radius: 999px; color: #4e957b; background: var(--sage-soft); font-size: 9px; }.live-badge i { width: 5px; height: 5px; border-radius: 50%; background: #61b190; }.analysis-empty { padding: 39px 28px 36px; text-align: center; }.analysis-orb { display: grid; width: 72px; height: 72px; place-items: center; margin: 0 auto 18px; border: 1px solid #e6d8da; border-radius: 25px; color: var(--brand); background: radial-gradient(circle at 35% 25%, #fff, #f6e7e9); box-shadow: 0 9px 24px rgba(167, 79, 96, .1); font-size: 27px; }.analysis-empty h3 { margin: 0; font-family: Georgia, serif; font-size: 20px; font-weight: 500; }.analysis-empty p { max-width: 250px; margin: 8px auto 22px; color: var(--muted); font-size: 11px; }.analysis-empty .button { min-height: 40px; }
.analysis-shortcut { display: block; margin-top: 26px; color: #83918f; font-size: 10px; }
.analysis-progress { padding: 20px 25px 28px; }.progress-title { display: flex; align-items: center; gap: 8px; padding: 11px 12px; border-radius: 10px; color: #587a72; background: #f0f7f4; font-size: 11px; }.pulse-dot { width: 7px; height: 7px; border-radius: 50%; background: #5cae8e; box-shadow: 0 0 0 4px rgba(92,174,142,.15); animation: pulse 1.5s infinite; }.analysis-progress ol { display: grid; gap: 0; margin: 20px 0; padding: 0; list-style: none; }.analysis-progress li { position: relative; display: flex; gap: 11px; min-height: 51px; color: #a6b1b0; }.analysis-progress li:not(:last-child)::after { position: absolute; top: 27px; bottom: 0; left: 12px; width: 1px; background: #e7edeb; content: ""; }.analysis-progress li > span { position: relative; z-index: 1; display: grid; width: 25px; height: 25px; flex: 0 0 25px; place-items: center; border: 1px solid #e0e8e5; border-radius: 50%; color: #9eaaa8; background: #fff; font-size: 10px; }.analysis-progress li strong, .analysis-progress li small { display: block; }.analysis-progress li strong { color: #7e8a8b; font-size: 11px; font-weight: 700; }.analysis-progress li small { margin-top: 2px; font-size: 9px; }.analysis-progress li.active > span { border-color: var(--brand); color: #fff; background: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }.analysis-progress li.active strong { color: var(--brand); }.analysis-progress li.complete > span { border-color: #6cae91; color: #fff; background: #6cae91; }.analysis-progress li.complete strong { color: #5f8c7a; }.live-output { min-height: 54px; padding: 13px; border-radius: 10px; color: #637274; background: #fbfcfc; font-size: 11px; }.live-output p { margin: 0 0 8px; }.live-output p b, .live-section > b { display: block; margin-bottom: 4px; color: var(--ink); font-size: 10px; }.live-output ul, .live-section ul { margin: 0; padding-left: 17px; }.live-output li, .live-section li { margin: 2px 0; }.typing-cursor { display: inline-block; width: 5px; height: 13px; margin-left: 3px; vertical-align: -2px; background: var(--brand); animation: blink .8s steps(2, start) infinite; }.analysis-result { padding: 0 25px 28px; }.result-status { display: flex; align-items: center; gap: 9px; margin-bottom: 17px; padding: 11px 12px; border-radius: 10px; background: #f0f7f4; }.result-check { display: grid; width: 23px; height: 23px; place-items: center; border-radius: 50%; color: #fff; background: #62aa89; font-size: 12px; }.result-status strong, .result-status small { display: block; }.result-status strong { color: #4e846f; font-size: 11px; }.result-status small { margin-top: 2px; color: #7b9b90; font-size: 9px; }.icon-button { width: 27px; height: 27px; margin-left: auto; border: 1px solid #d7e5df; border-radius: 50%; color: #6ca08b; background: transparent; font-size: 16px; }.report-summary { padding: 14px; border-radius: 11px; background: #fdf8f5; }.report-label { color: var(--peach); font-size: 9px; font-weight: 800; letter-spacing: .13em; }.report-summary p { margin: 6px 0 0; color: #5b6264; font-size: 11px; }.risk-summary { margin-top: 16px; }.risk-heading { display: flex; align-items: center; gap: 7px; color: #596669; font-size: 11px; }.risk-symbol { display: grid; width: 19px; height: 19px; place-items: center; border-radius: 50%; color: #fff; background: #d18a6f; font-size: 11px; font-weight: 800; }.risk-count { margin-left: auto; color: #b18777; font-size: 9px; }.risk-item { display: flex; gap: 8px; margin-top: 10px; padding: 10px; border: 1px solid #f0e8e4; border-radius: 9px; background: #fffdfc; }.risk-level { align-self: start; padding: 3px 5px; border-radius: 4px; color: #fff; background: #c98971; font-size: 8px; }.risk-high, .risk-critical { background: #b75162; }.risk-medium { background: #c88963; }.risk-low { background: #6aa487; }.risk-item strong { display: block; color: #626c6e; font-size: 10px; }.risk-item p { margin: 3px 0 0; color: var(--muted); font-size: 9px; }.risk-clear { margin: 9px 0 0; font-size: 10px; }.report-section { margin-top: 17px; }.report-section h3 { margin: 0 0 7px; color: #596669; font-size: 11px; }.report-section ol, .report-section ul { margin: 0; padding-left: 19px; color: #657274; font-size: 10px; }.report-section li { margin: 5px 0; padding-left: 2px; }.avoid-section { padding: 10px; border-radius: 9px; background: #faf6f2; }.report-more { margin-top: 19px; padding-top: 13px; border-top: 1px solid #eff2f0; color: var(--muted); font-size: 10px; }.report-more summary { cursor: pointer; color: #788786; }.report-more .live-section { margin-top: 13px; }
.case-context-card { padding-bottom: 14px; }.context-item { display: flex; justify-content: space-between; margin: 0 25px; padding: 11px 0; border-top: 1px solid #eff2f0; color: var(--muted); font-size: 10px; }.context-item strong { color: #586668; font-size: 10px; }.context-item .context-open { color: #5e9d81; }.context-note { margin: 3px 25px 8px; padding: 10px; border-radius: 8px; color: #7e8585; background: #fafbfa; font-size: 10px; }

.toast { position: fixed; right: 24px; bottom: 24px; z-index: 100; padding: 12px 16px; border: 1px solid rgba(255,255,255,.12); border-radius: 10px; color: #fff; background: #203235; box-shadow: 0 12px 35px rgba(16, 30, 33, .2); font-size: 12px; animation: toast-in .22s ease-out; }.toast.error { background: #a74758; }
@keyframes spin { to { transform: rotate(360deg); } }@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(92,174,142,.03); } }@keyframes blink { 50% { opacity: 0; } }@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* Low-frequency management pages retain the same visual language. */
.container, .topbar, .hero, .stats-grid, .two-column, .panel, .page-heading, .filter-row, .skill-grid, .skill-card, .case-layout { max-width: 100%; }
.hero { padding: 36px; border-radius: 18px; background: var(--surface); }.hero h1, .page-heading h1 { font-family: Georgia, serif; }.topbar { display: none; }.container { padding: 0; }.stats-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }.stat { padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }.stat strong { display: block; font-size: 25px; }.stat span, .muted { color: var(--muted); font-size: 11px; }.two-column { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 20px 0; }.panel { padding: 22px; border: 1px solid var(--line); border-radius: 15px; background: #fff; box-shadow: var(--shadow-small); }.panel-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 15px; }.panel-heading h2 { margin: 0; font-size: 17px; }.stack { display: grid; gap: 13px; }.panel label { display: grid; gap: 6px; font-size: 11px; font-weight: 700; }.panel input, .panel textarea, .panel select { width: 100%; padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px; background: #fbfcfb; }.page-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 23px; }.page-heading h1 { margin: 0; font-size: 34px; font-weight: 500; }.page-heading p { color: var(--muted); }.package-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }.package-card { display: grid; gap: 3px; padding: 16px; border: 1px solid var(--line); border-radius: 11px; color: var(--ink); background: #fff; text-decoration: none; }.package-card span { color: var(--brand); }.package-card small { color: var(--muted); font-size: 10px; }.skill-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 15px; }.skill-card { padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }.skill-card h2 { font-size: 17px; }.skill-meta { display: flex; gap: 5px; flex-wrap: wrap; }.skill-meta span, .badge { padding: 3px 7px; border-radius: 999px; color: var(--brand); background: var(--brand-soft); font-size: 9px; }.result, pre { max-height: 500px; padding: 12px; border-radius: 8px; white-space: pre-wrap; word-break: break-word; background: #f3f6f4; font-size: 11px; }.filter-row { margin-bottom: 16px; }.filter-row select { max-width: 310px; }.case-layout { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(320px, .8fr); gap: 20px; }.analysis-box { font-size: 12px; }.analysis-box h3 { margin: 13px 0 5px; }.analysis-box ul { padding-left: 19px; }

@media (max-width: 1080px) { .sidebar { width: 222px; flex-basis: 222px; }.metric-row { grid-template-columns: repeat(3, 1fr); }.metric-tip { grid-column: span 3; }.case-workspace-grid { grid-template-columns: minmax(0, 1fr) minmax(300px, .75fr); } }
@media (max-width: 840px) { .sidebar { position: fixed; z-index: 60; left: -270px; width: 252px; transition: left .25s ease; }.sidebar.open { left: 0; box-shadow: 15px 0 35px rgba(14, 29, 32, .2); }.mobile-menu { display: grid; }.workspace-context { margin-left: 8px; }.content-shell { padding-top: 28px; }.dashboard-heading, .case-heading { align-items: start; flex-direction: column; }.dashboard-heading .button { align-self: stretch; }.dashboard-grid, .case-workspace-grid, .case-layout { grid-template-columns: 1fr; }.case-insight-column { position: static; }.insight-surface { min-height: auto; }.right-rail { grid-template-columns: 1fr 1fr; }.two-column { grid-template-columns: 1fr; }.stats-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .workspace-bar { height: 60px; padding: 0 15px; }.engine-pill { display: none; }.content-shell { padding: 25px 14px 55px; }.dashboard-heading h1 { font-size: 34px; }.metric-row { grid-template-columns: repeat(2, 1fr); }.metric-card { min-height: 77px; padding: 12px; }.metric-tip { grid-column: span 2; }.metric-card small { display: none; }.surface-header { padding: 20px 16px 14px; }.case-list { padding: 0 16px; }.case-list-status { display: none; }.view-all { margin-left: 16px; margin-right: 16px; }.right-rail { grid-template-columns: 1fr; }.case-heading-actions { width: 100%; }.case-heading-actions .button { flex: 1; }.transcript-editor { padding-left: 15px; padding-right: 15px; }.record-composer { margin-left: 15px; margin-right: 15px; }.composer-tip { display: none; }.dropzone { align-items: start; margin-left: 15px; margin-right: 15px; }.dropzone .button { margin-top: 1px; }.dropzone p { max-width: 150px; }.attachment-list, .recording-row { margin-left: 15px; margin-right: 15px; }.recording-row { flex-wrap: wrap; }.recording-row small { max-width: 170px; }.recording-row .button { margin-left: 0; }.insight-header, .analysis-progress, .analysis-result { padding-left: 16px; padding-right: 16px; }.analysis-empty { padding-left: 18px; padding-right: 18px; }.modal-card { padding: 25px 20px; }.stats-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .notes-editor-shell { margin-left: 15px; margin-right: 15px; }.case-notes-editor { min-height: 360px; padding: 16px; font-size: 13px; }.notes-editor-toolbar, .notes-editor-footer { padding: 10px 12px; }.editor-hint, .notes-editor-footer span + span { display: none; } }

/* Consensus Technology design system — calm, focused enterprise workspace. */
:root {
  --canvas: #f5f7fb;
  --surface: #ffffff;
  --surface-soft: #f8faff;
  --ink: #162033;
  --muted: #6b778c;
  --faint: #98a2b3;
  --line: #e3e8f0;
  --brand: #1677ff;
  --brand-dark: #0958d9;
  --brand-soft: #eaf3ff;
  --sage: #2fb380;
  --sage-soft: #eaf8f2;
  --dark: #0e1b35;
  --shadow: 0 16px 42px rgba(20, 40, 75, .08);
  --shadow-small: 0 5px 18px rgba(20, 40, 75, .055);
}

body { color: var(--ink); background: var(--canvas); font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif; }
.sidebar { width: 238px; flex-basis: 238px; padding: 24px 14px 16px; color: #cbd5e8; background: #0e1b35; }
.brand { gap: 10px; padding: 3px 10px 33px; }
.brand-mark { display: block; width: 37px; height: 37px; object-fit: contain; border-radius: 10px; background: #fff; box-shadow: 0 4px 12px rgba(1, 12, 33, .25); }
.brand strong { font-size: 16px; letter-spacing: .015em; }
.brand small { color: #8492aa; letter-spacing: .035em; }
.sidebar-label { padding: 0 12px 8px; color: #60708d; font-size: 10px; letter-spacing: .12em; }
.nav-item { min-height: 42px; gap: 11px; border-radius: 9px; color: #aebbd1; font-size: 13px; }
.nav-item:hover { color: #fff; background: rgba(255,255,255,.055); }
.nav-item.active { border-color: transparent; color: #fff; background: linear-gradient(90deg, rgba(22,119,255,.28), rgba(22,119,255,.12)); }
.nav-symbol { color: #9badc8; font-size: 18px; }
.nav-item.active .nav-symbol { color: #72adff; }
.sidebar-status { margin: 0 6px 13px; padding: 12px 10px; border-color: rgba(159,181,220,.15); border-radius: 10px; background: rgba(255,255,255,.035); }
.sidebar-status strong { color: #d8e2f1; }.sidebar-status small { color: #7f91ac; }
.profile-chip { padding: 12px 8px 0; color: #aebbd1; }.profile-avatar { color: #0c5ccc; background: #ddecff; }
.status-dot, .tiny-dot { background: #37bd86; box-shadow: 0 0 0 4px rgba(55,189,134,.12); }

.workspace-bar { height: 68px; border-color: var(--line); background: rgba(255,255,255,.9); }
.workspace-context, .breadcrumb-link { color: var(--muted); font-size: 12px; }.breadcrumb-link:hover { color: var(--brand); }
.engine-pill { border-color: #dce6f5; color: #4b6382; background: #f8fbff; }
.help-button { display: none; }
.content-shell { width: min(100%, 1480px); padding-top: 34px; padding-bottom: 42px; }
.app-footer { padding: 5px 32px 30px; color: #9aa6b7; font-size: 11px; text-align: center; }.app-footer strong { color: #6b7d96; font-weight: 650; }

.overline { margin-bottom: 6px; color: var(--brand); font-size: 10px; letter-spacing: .13em; }
.dashboard-heading h1, .case-title-line h1, .page-heading h1 { font-family: Inter, "PingFang SC", sans-serif; font-weight: 720; letter-spacing: -.045em; }
.dashboard-heading h1 em { color: var(--brand); }.heading-copy { color: var(--muted); }
.button { min-height: 40px; border-color: #d9e1ec; border-radius: 9px; color: #31415d; background: #fff; font-weight: 650; }
.button:hover { border-color: #a9c9ff; box-shadow: 0 5px 16px rgba(22,119,255,.11); }
.button-primary { border-color: var(--brand); color: #fff; background: var(--brand); box-shadow: 0 7px 16px rgba(22,119,255,.2); }.button-primary:hover { border-color: var(--brand-dark); background: var(--brand-dark); }
.button-secondary { color: #3e516e; background: #f8faff; }.button-large { min-height: 45px; }

.surface { border-color: var(--line); border-radius: 14px; box-shadow: var(--shadow-small); }
.surface-header { padding: 22px 24px 15px; }.surface-header h2, .insight-header h2 { color: #1b2941; font-size: 18px; font-weight: 700; }
.metric-card { border-color: var(--line); border-radius: 13px; box-shadow: none; }.metric-tip { border-color: #dae7fc; background: #f7faff; }.metric-icon { color: var(--brand); background: var(--brand-soft); }
.case-list-item:hover { background: #f6f9ff; }.case-list-status.status-open, .record-count { color: #1677ff; background: #edf5ff; }.case-avatar, .case-title-avatar { color: #1769d5; background: #eaf3ff; font-family: Inter, sans-serif; font-weight: 700; }

.case-heading { margin-bottom: 25px; }.back-link { color: #6a7a92; }.back-link:hover { color: var(--brand); }
.case-kicker { color: #7b8aa0; }.case-status-dot { background: #37bd86; box-shadow: 0 0 0 4px #e9f8f1; }
.case-title-line h1 { color: #16233a; font-size: clamp(28px, 3vw, 36px); }
.button-analysis { min-width: 126px; min-height: 44px; }.sparkle { font-size: 15px; }
.case-workspace-grid { grid-template-columns: minmax(0, 1.55fr) minmax(346px, .72fr); gap: 20px; }.case-insight-column { top: 84px; gap: 16px; }
.transcript-surface, .materials-surface, .insight-surface, .case-context-card { border-color: var(--line); }
.transcript-header { padding-bottom: 14px; }.autosave-hint { padding: 5px 8px; border-radius: 999px; color: #4f7b6e; background: #f1faf6; }
.notes-editor-shell { margin: 0 18px 18px; overflow: hidden; border: 1px solid #dfe7f2; border-radius: 11px; background: #fff; }
.notes-editor-toolbar { min-height: 43px; padding: 0 15px; border-bottom: 1px solid #e9eef5; background: #fafcff; }.editor-mode { color: #3c5374; }.editor-mode-dot { background: var(--brand); }.editor-hint { color: #8b98aa; }
.case-notes-editor { min-height: 480px; padding: 21px 22px; color: #2b3950; background: #fff; font-size: 14px; line-height: 1.95; }.case-notes-editor::placeholder { color: #a4afbf; }.case-notes-editor:focus { box-shadow: inset 0 0 0 2px rgba(22,119,255,.32); }
.notes-editor-footer { min-height: 52px; padding: 8px 12px 8px 17px; border-top: 1px solid #e9eef5; background: #fafcff; color: #8995a8; }.notes-editor-footer .button { min-height: 34px; }

.materials-surface { overflow: hidden; }.dropzone { margin: 0 20px; border-color: #cbd9ed; border-radius: 11px; background: #fbfdff; }.dropzone:hover, .dropzone.dragging { border-color: var(--brand); background: #f4f9ff; }.drop-icon { color: var(--brand); background: #eaf3ff; }.dropzone strong { color: #2a3d59; }.dropzone p { color: #7e8da2; }.attachment-item { border-color: #e7edf5; }.recording-row { background: #fafcff; }

.insight-surface { min-height: 420px; overflow: hidden; }.insight-header { padding: 22px 22px 12px; border-bottom: 1px solid #edf1f6; }.live-badge { color: #278964; background: #eaf8f2; }.live-badge i { background: #31b681; }
.analysis-empty { padding: 44px 30px 39px; }.analysis-orb { width: 62px; height: 62px; border-color: #d7e7ff; border-radius: 18px; color: var(--brand); background: #eff6ff; box-shadow: none; }.analysis-empty h3 { color: #1e2f49; font-family: Inter, sans-serif; font-size: 19px; font-weight: 700; }.analysis-empty p { max-width: 270px; color: #718096; font-size: 12px; }.analysis-shortcut { color: #97a3b4; }
.analysis-progress { padding: 16px 20px 20px; }.progress-title { padding: 10px 11px; border-radius: 8px; color: #385b86; background: #f1f7ff; }.pulse-dot { background: var(--brand); box-shadow: 0 0 0 4px rgba(22,119,255,.12); }
.analysis-progress .simple-live-output { display: flex; height: 310px; min-height: 310px; max-height: 310px; margin: 13px 0 15px; border-color: #dfe7f2; border-radius: 10px; background: #fff; }.live-stream-header { min-height: 40px; border-color: #e8eef6; color: #385170; background: #f8fbff; }.live-stream-header small { color: #8796aa; }.live-stream-dot { background: var(--brand); box-shadow: 0 0 0 4px rgba(22,119,255,.1); }
.live-stream-body { padding: 14px; background: #fff; }.live-message { margin-bottom: 13px; padding: 0 0 0 11px; border-left-color: #d8e4f3; }.live-message.active { border-left-color: var(--brand); }.live-message-label { color: #7086a3; }.live-message.active .live-message-label { color: var(--brand); }.live-message p { color: #33475f; font-size: 12px; line-height: 1.85; }
.analysis-progress ol.progress-steps { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 5px; margin: 0; }.analysis-progress .progress-steps li { min-height: 50px; gap: 7px; padding: 6px 4px; }.analysis-progress .progress-steps li:not(:last-child)::after { display: none; }.analysis-progress .progress-steps li > span { width: 21px; height: 21px; flex-basis: 21px; color: #8594a8; font-size: 9px; }.analysis-progress .progress-steps li strong { color: #66768b; font-size: 10px; line-height: 1.35; }.analysis-progress .progress-steps li small { color: #a1adbb; font-size: 8px; line-height: 1.3; }.analysis-progress .progress-steps li.active > span { border-color: var(--brand); background: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }.analysis-progress .progress-steps li.active strong { color: var(--brand); }.analysis-progress .progress-steps li.complete > span { border-color: #32b480; background: #32b480; }
.analysis-result { padding: 0 20px 22px; }.result-status { margin: 15px 0 17px; border: 1px solid #d9eee4; background: #f2fbf6; }.result-check { background: #32b480; }.result-status strong { color: #247659; }.icon-button { border-color: #d7e4f4; color: #3977c6; }
.report-summary { border: 1px solid #e2eaf5; background: #f8fbff; }.report-label { color: var(--brand); }.report-summary p { color: #34465f; }.risk-heading { color: #364861; }.risk-symbol { background: #f0834b; }.risk-item { border-color: #e7edf5; background: #fff; }.risk-item strong { color: #33465e; }.risk-item p, .report-section ol, .report-section ul { color: #607087; }.risk-high, .risk-critical { background: #de5b62; }.risk-medium { background: #e28d4c; }.risk-low { background: #36a978; }.avoid-section { background: #fff9f1; }
.case-context-card { box-shadow: none; }.context-item { border-color: #edf1f5; }.context-item strong { color: #40516a; }.context-item .context-open { color: #269369; }.context-note { color: #687990; background: #f7faff; }

.report-trace { border-color: #e7edf5; }.trace-stage { border-color: #e3eaf3; background: #fbfdff; }.trace-usage { color: #58708f; background: #f2f7ff; }.trace-raw pre { background: #f5f8fc; }
.toast { border-color: #d7e6fc; background: #fff; box-shadow: 0 12px 32px rgba(23,60,110,.16); }.toast.error { border-color: #f6d8d8; }

@media (max-width: 1080px) { .sidebar { width: 222px; flex-basis: 222px; }.case-workspace-grid { grid-template-columns: minmax(0,1fr) minmax(308px,.72fr); } }
@media (max-width: 840px) { .sidebar { width: 252px; }.case-workspace-grid { grid-template-columns: 1fr; }.case-insight-column { position: static; }.analysis-progress .simple-live-output { height: 280px; min-height: 280px; max-height: 280px; }.app-footer { padding-bottom: 24px; } }
@media (max-width: 560px) { .workspace-bar { height: 60px; }.content-shell { padding-top: 24px; padding-bottom: 25px; }.case-heading-actions .button { min-height: 43px; }.notes-editor-shell { margin: 0 14px 14px; }.case-notes-editor { min-height: 360px; }.surface-header { padding: 19px 16px 13px; }.analysis-progress { padding: 14px 15px 17px; }.analysis-progress .simple-live-output { height: 285px; min-height: 285px; max-height: 285px; }.analysis-progress .progress-steps li { padding: 5px 2px; }.analysis-progress .progress-steps li strong { font-size: 9px; }.analysis-progress .progress-steps li small { display: none; }.app-footer { padding: 4px 15px 24px; } }
/* Live model deltas remain readable while the structured report is still forming. */
.live-output { max-height: 380px; overflow: auto; border: 1px solid #dce6e2; }
.live-stage-output { margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid #e9efed; }
.live-stage-output > b { display: block; margin-bottom: 4px; color: var(--ink); font-size: 10px; }
.live-stage-output pre { max-height: 150px; overflow: auto; margin: 6px 0 9px; white-space: pre-wrap; word-break: break-word; color: #526967; font: 11px/1.65 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.live-section { margin-top: 8px; padding: 8px; border-radius: 8px; background: #f3f8f6; }
.live-stage-panel { border-bottom: 1px solid #e2ebe8; padding: 9px 2px; }
.live-stage-panel:last-child { border-bottom: 0; }
.live-stage-panel summary { cursor: pointer; list-style: none; color: #536a68; font-size: 11px; font-weight: 700; }
.live-stage-panel summary::-webkit-details-marker { display: none; }
.live-stage-panel summary::before { content: "＋"; display: inline-block; width: 18px; color: var(--brand); }
.live-stage-panel[open] summary::before { content: "－"; }
.live-stage-panel summary em { float: right; color: #8aa09a; font-size: 9px; font-style: normal; font-weight: 500; }
.live-stage-body { padding: 8px 18px 2px; }
.live-stage-body pre { max-height: 145px; overflow: auto; margin: 0 0 8px; white-space: pre-wrap; word-break: break-word; color: #526967; font: 11px/1.65 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.analysis-progress { display: flex; flex-direction: column; }
.analysis-progress .progress-title { order: 0; }
.analysis-progress .live-output { order: 1; margin: 14px 0 8px; min-height: 190px; max-height: 300px; background: #f8fbfa; }
.analysis-progress ol { order: 2; margin-top: 14px; }
.live-stage-panel[open] { min-height: 168px; }
.live-readable-text { max-height: 215px; overflow: auto; padding: 10px 11px; border-radius: 8px; color: #48615d; background: #edf5f2; white-space: pre-wrap; word-break: break-word; font: 12px/1.75 ui-sans-serif, system-ui, -apple-system, "Microsoft YaHei", sans-serif; }
/* Single-scroll agent transcript: no nested cards or competing scrollbars. */
.analysis-progress .simple-live-output { display: flex; min-height: 258px; height: 258px; max-height: 258px; margin: 14px 0 8px; padding: 0; overflow: hidden; border: 1px solid #d5e2dd; border-radius: 12px; background: #fbfdfc; }
.live-stream-header { display: flex; align-items: center; gap: 7px; min-height: 38px; padding: 0 13px; border-bottom: 1px solid #e5eeea; color: #4f6964; background: #f3f8f6; font-size: 11px; }
.live-stream-dot { width: 7px; height: 7px; border-radius: 50%; background: #60ae8d; box-shadow: 0 0 0 4px rgba(96,174,141,.12); animation: pulse 1.5s infinite; }
.live-stream-header small { margin-left: auto; color: #83a097; font-size: 9px; }
.live-stream-body { flex: 1; min-height: 0; overflow-y: auto; padding: 10px 13px 14px; scrollbar-gutter: stable; }
.live-message { margin: 0 0 14px; padding-left: 10px; border-left: 2px solid #cdded8; }
.live-message.active { border-left-color: var(--brand); }
.live-message-label { margin-bottom: 4px; color: #81958f; font-size: 9px; font-weight: 800; letter-spacing: .08em; }
.live-message.active .live-message-label { color: var(--brand); }
.live-message p { margin: 0; color: #3f5754; white-space: pre-wrap; word-break: break-word; font-size: 12px; line-height: 1.8; }
.report-trace { margin-top: 20px; padding-top: 14px; border-top: 1px solid #e5ece9; color: #657572; font-size: 10px; }
.report-trace > summary, .trace-stage > summary, .trace-raw > summary { cursor: pointer; color: #5d716d; font-weight: 700; }
.trace-content { display: grid; gap: 8px; margin-top: 11px; }
.trace-stage { padding: 10px; border: 1px solid #e1eae6; border-radius: 9px; background: #fbfdfc; }
.trace-stage p { margin: 8px 0 0; white-space: pre-wrap; line-height: 1.65; }
.trace-raw { margin-top: 9px; }
.trace-raw pre { max-height: 240px; margin: 7px 0 0; overflow: auto; color: #546963; background: #f1f6f4; }
.trace-usage { display: grid; gap: 4px; padding: 10px; border-radius: 9px; color: #6c7d79; background: #f2f7f5; }
.trace-usage small { color: #8a9a97; }

/* Keep the streaming view within the same blue enterprise palette. */
.analysis-progress .simple-live-output { display: flex; flex-direction: column; height: 310px; min-height: 310px; max-height: 310px; margin: 13px 0 15px; border-color: #dfe7f2; border-radius: 10px; background: #fff; }
.live-stream-header { min-height: 40px; border-color: #e8eef6; color: #385170; background: #f8fbff; }
.live-stream-dot { background: var(--brand); box-shadow: 0 0 0 4px rgba(22,119,255,.1); }
.live-stream-header small { color: #8796aa; }.live-stream-body { padding: 14px; background: #fff; }.live-message { border-left-color: #d8e4f3; }.live-message.active { border-left-color: var(--brand); }.live-message-label { color: #7086a3; }.live-message.active .live-message-label { color: var(--brand); }.live-message p { color: #33475f; line-height: 1.85; }
.live-stream-body .live-transcript { margin: 0; color: #33475f; white-space: pre-wrap; word-break: break-word; font-size: 12px; line-height: 1.85; }
.analysis-progress ol.progress-steps { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 5px; margin: 0; }.analysis-progress .progress-steps li { min-height: 50px; gap: 7px; padding: 6px 4px; }.analysis-progress .progress-steps li:not(:last-child)::after { display: none; }.analysis-progress .progress-steps li > span { width: 21px; height: 21px; flex-basis: 21px; color: #8594a8; font-size: 9px; }.analysis-progress .progress-steps li strong { color: #66768b; font-size: 10px; line-height: 1.35; }.analysis-progress .progress-steps li small { color: #a1adbb; font-size: 8px; line-height: 1.3; }.analysis-progress .progress-steps li.active > span { border-color: var(--brand); background: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }.analysis-progress .progress-steps li.active strong { color: var(--brand); }.analysis-progress .progress-steps li.complete > span { border-color: #32b480; background: #32b480; }
.report-trace { border-color: #e7edf5; }.report-trace > summary, .trace-stage > summary, .trace-raw > summary { color: #536f96; }.trace-stage { border-color: #e3eaf3; background: #fbfdff; }.trace-raw pre { background: #f5f8fc; }.trace-usage { color: #58708f; background: #f2f7ff; }
@media (max-width: 560px) { .analysis-progress .simple-live-output { height: 285px; min-height: 285px; max-height: 285px; } }

/* Public client workspace: deliberately independent from management navigation. */
.client-shell { min-height: 100vh; background: var(--canvas); }.client-bar { display: flex; align-items: center; min-height: 68px; padding: 0 max(28px, calc((100vw - 1240px) / 2)); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.92); }.client-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }.client-brand img { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 3px 10px rgba(22,52,97,.13); }.client-brand strong, .client-brand small { display: block; }.client-brand strong { font-size: 15px; letter-spacing: .01em; }.client-brand small { margin-top: 1px; color: #8090a6; font-size: 10px; }.client-context { margin-left: 42px; color: #74839a; font-size: 12px; }.client-status { display: inline-flex; align-items: center; gap: 7px; margin-left: auto; color: #6c7d92; font-size: 11px; }.client-status i { width: 7px; height: 7px; border-radius: 50%; background: #35bb84; box-shadow: 0 0 0 4px #e9f8f1; }.client-main { min-width: 0; }.client-ui .content-shell { width: min(100%, 1240px); padding: 44px 28px 36px; }.client-ui .app-footer { padding: 8px 28px 28px; }
.client-dashboard-heading { margin-bottom: 34px; }.client-dashboard-heading h1 { max-width: 680px; font-size: clamp(33px, 4.5vw, 52px); }.client-workspace-grid { display: grid; grid-template-columns: minmax(0, 1fr) 286px; align-items: stretch; gap: 20px; }.client-case-list-surface { min-height: 460px; }.client-guidance-card { display: flex; flex-direction: column; padding: 25px 24px; border: 1px solid #d8e7ff; border-radius: 14px; color: #dceaff; background: linear-gradient(145deg, #163663, #112847); box-shadow: 0 14px 30px rgba(18,48,91,.12); }.client-guidance-card .overline { margin-top: 18px; color: #79b0ff; }.client-guidance-card h2 { margin: 0; color: #fff; font-size: 22px; letter-spacing: -.03em; }.client-guidance-card p:not(.overline) { margin: 10px 0 0; color: #b6c9e4; font-size: 12px; line-height: 1.8; }.guidance-icon { display: grid; width: 35px; height: 35px; place-items: center; border-radius: 11px; color: #8fc0ff; background: rgba(255,255,255,.12); }.client-guidance-card ol { display: grid; gap: 10px; margin: 22px 0 auto; padding: 0; list-style: none; color: #dceaff; font-size: 12px; }.client-guidance-card li { display: flex; align-items: center; gap: 8px; }.client-guidance-card li b { display: grid; width: 18px; height: 18px; place-items: center; border-radius: 50%; color: #123866; background: #9dc7ff; font-size: 9px; }.client-guidance-card .button { width: 100%; margin-top: 23px; border-color: transparent; color: #17345a; background: #fff; }
.client-ui .case-heading { margin-top: 3px; }.client-ui .case-workspace-grid { grid-template-columns: minmax(0, 1.55fr) minmax(332px, .72fr); }.client-ui .case-insight-column { top: 20px; }.client-ui .analysis-result .report-trace { display: none; }

/* Customer workspace: keep the home footer in the first viewport and give reports room. */
.client-shell, .client-main { display: flex; flex-direction: column; }.client-shell { min-height: 100vh; }.client-main { flex: 1; }.client-ui.app-page .content-shell { padding-top: 24px; padding-bottom: 16px; }.client-dashboard-heading { margin-bottom: 22px; }.client-dashboard-heading h1 { font-size: clamp(29px, 3.7vw, 42px); }.client-dashboard-heading .heading-copy { max-width: 620px; margin-top: 8px; }.client-case-list-surface { min-height: 0; }.case-pagination { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 0 20px; border-top: 1px solid #e8eef6; color: #8492a5; font-size: 11px; }.case-pagination a { color: var(--brand); font-weight: 700; text-decoration: none; }.case-pagination span { color: #b1bac7; }.case-pagination strong { color: #5e7088; font-size: 11px; }.client-ui .case-workspace-grid { grid-template-columns: minmax(0, 1.15fr) minmax(450px, 1fr); }.report-downloads { display: inline-flex; gap: 7px; margin-left: auto; }.report-downloads a { padding: 6px 8px; border: 1px solid #d7e5f5; border-radius: 7px; color: #2876ce; background: #fff; font-size: 10px; font-weight: 700; text-decoration: none; white-space: nowrap; }.report-downloads a:hover { border-color: #9bc5f7; background: #f4f9ff; }
.case-list-status.status-closed, .context-closed { color: #6e7b8e; background: #edf1f5; }.case-status-dot.closed { background: #8d9aab; box-shadow: 0 0 0 4px #edf1f5; }.closed-case-badge { display: inline-flex; align-items: center; min-height: 38px; padding: 0 13px; border-radius: 9px; color: #58718e; background: #edf3fa; font-size: 12px; font-weight: 750; }.button-close-case { border-color: #d9e4f1; color: #60738c; background: #fff; }.button-close-case:hover { border-color: #99b8dd; color: #2f6fb6; background: #f4f9ff; }.closure-note { margin: 3px 20px 12px; padding: 11px 12px; border: 1px solid #e2eaf3; border-radius: 9px; color: #607087; background: #f8fbff; }.closure-note strong { color: #496a92; font-size: 10px; }.closure-note p { margin: 5px 0; font-size: 11px; line-height: 1.65; white-space: pre-wrap; }.closure-note small { color: #8b9ab0; font-size: 9px; }.close-case-modal label { display: grid; gap: 7px; color: #41536e; font-size: 12px; font-weight: 700; }.close-case-modal textarea { width: 100%; resize: vertical; padding: 10px 11px; border: 1px solid #d8e4f2; border-radius: 8px; color: #263a56; font: inherit; line-height: 1.6; }.close-case-modal .button { margin-top: 18px; }

/* Authenticated management console. */
.admin-logout { margin: 0; padding: 11px 8px 0; border-top: 1px solid rgba(255,255,255,.08); }.admin-logout button { display: flex; width: 100%; align-items: center; gap: 9px; padding: 0; border: 0; color: #aebbd1; background: transparent; font-size: 11px; text-align: left; }.admin-logout button:hover { color: #fff; }.admin-heading { margin-bottom: 28px; }.admin-heading h1 { font-size: 35px; }.admin-heading p { margin: 9px 0 0; color: var(--muted); }.admin-overview-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 15px; margin-bottom: 22px; }.admin-action-card { display: grid; grid-template-columns: 40px 1fr auto; gap: 13px; align-items: start; min-height: 164px; padding: 19px; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); background: #fff; box-shadow: var(--shadow-small); text-decoration: none; transition: .18s ease; }.admin-action-card:hover { border-color: #b9d3fa; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(22,82,160,.1); }.admin-action-icon { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 11px; color: var(--brand); background: var(--brand-soft); font-size: 18px; }.admin-action-card strong { display: block; color: var(--brand); font-size: 24px; line-height: 1; }.admin-action-card h2 { margin: 7px 0 4px; font-size: 15px; }.admin-action-card p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.7; }.admin-action-card > span:last-child { color: #9bb0c9; }.admin-package-surface { overflow: hidden; }.admin-package-list > a { display: flex; align-items: center; gap: 11px; min-height: 65px; margin: 0 24px; border-top: 1px solid #edf1f5; color: var(--ink); text-decoration: none; }.admin-package-list strong, .admin-package-list small { display: block; }.admin-package-list small { color: var(--muted); font-size: 10px; }.admin-package-list time { margin-left: auto; color: #8c9aae; font-size: 10px; }.analysis-records-surface { overflow: hidden; }.analysis-records-head, .analysis-record-row { display: grid; grid-template-columns: minmax(220px,1.6fr) minmax(100px,.7fr) minmax(180px,1fr) 65px; align-items: center; gap: 15px; padding: 13px 24px; }.analysis-records-head { color: #94a0b0; background: #fafcff; font-size: 10px; font-weight: 700; }.analysis-record-row { min-height: 74px; border-top: 1px solid #edf1f5; color: #3b4c63; text-decoration: none; }.analysis-record-row:hover { background: #f7faff; }.analysis-record-row strong, .analysis-record-row small { display: block; }.analysis-record-row strong { font-size: 12px; }.analysis-record-row small { margin-top: 3px; color: #8a98aa; font-size: 10px; }.analysis-record-status { display: inline-flex; width: fit-content; padding: 4px 8px; border-radius: 999px; color: #8a98aa; background: #f1f4f8; font-size: 10px; }.analysis-record-status.complete { color: #278963; background: #eaf8f1; }.analysis-record-arrow { color: var(--brand); font-size: 11px; font-weight: 650; }.admin-empty { margin: 0; padding: 32px 24px; color: var(--muted); }
.admin-login-page { display: grid; min-height: 100vh; place-items: center; background: radial-gradient(circle at 10% 0, #e6f1ff 0, transparent 32%), #f5f7fb; }.admin-login-shell { width: min(100% - 32px, 420px); }.admin-login-card { padding: 32px; border: 1px solid #e0e7f1; border-radius: 18px; background: #fff; box-shadow: 0 20px 50px rgba(20,52,97,.11); }.login-brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; }.login-brand img { width: 34px; height: 34px; border-radius: 9px; }.login-brand strong, .login-brand small { display: block; }.login-brand strong { font-size: 15px; }.login-brand small { color: #8191a6; font-size: 10px; }.login-copy { margin: 34px 0 22px; }.login-copy h1 { margin: 0; color: #172943; font-size: 28px; letter-spacing: -.04em; }.login-copy p:not(.overline) { margin: 10px 0 0; color: var(--muted); font-size: 12px; line-height: 1.8; }.admin-login-form { display: grid; gap: 15px; }.admin-login-form label { display: grid; gap: 6px; color: #41536e; font-size: 12px; font-weight: 650; }.admin-login-form input { height: 41px; padding: 0 11px; border: 1px solid #dce5f0; border-radius: 8px; color: var(--ink); outline: 0; }.admin-login-form input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px #eaf3ff; }.login-error { margin: 0 0 15px; padding: 9px 10px; border-radius: 8px; color: #b9424b; background: #fff1f1; font-size: 11px; }.login-setup { padding: 13px; border: 1px solid #f0dfb7; border-radius: 9px; color: #745b2c; background: #fffaf0; font-size: 12px; }.login-setup p { margin: 5px 0 0; line-height: 1.7; }.login-setup code { color: #5a4521; }.login-footer { margin: 15px 0 0; color: #96a3b3; font-size: 10px; text-align: center; }.login-footer strong { color: #71839c; }
@media (max-width: 840px) { .client-bar { padding: 0 18px; }.client-context { margin-left: 18px; }.client-workspace-grid, .client-ui .case-workspace-grid { grid-template-columns: 1fr; }.client-guidance-card { min-height: auto; }.client-guidance-card ol { margin-bottom: 0; }.admin-overview-grid { grid-template-columns: 1fr; }.analysis-records-head { display: none; }.analysis-record-row { grid-template-columns: 1fr auto; }.analysis-record-row > span:nth-child(3) { display: none; } }
@media (max-width: 560px) { .client-bar { min-height: 60px; }.client-brand small, .client-context, .client-status { display: none; }.client-ui .content-shell { padding: 25px 14px; }.client-dashboard-heading { margin-bottom: 25px; }.client-dashboard-heading h1 { font-size: 34px; }.client-guidance-card { padding: 21px; }.analysis-record-row { padding: 13px 16px; }.admin-login-card { padding: 25px 22px; } }
