@import url("/althea.css") layer(althea);

:root {
  --ink: #152035;
  --ink-2: #1d2d48;
  --paper: #f1f4f3;
  --surface: #fbfcfb;
  --surface-2: #edf2f1;
  --line: #d6dfdd;
  --muted: #6f7e87;
  --muted-2: #8c9aa0;
  --accent: #d6f36b;
  --accent-dark: #617c24;
  --risk: #c94637;
  --warn: #ba792b;
  --radius: 8px;
  font-family: "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-size: 15px;
}

* { box-sizing: border-box; }
html { background: var(--paper); }
body { margin: 0; min-width: 320px; background: var(--paper); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .48; }
a { color: inherit; }
[hidden] { display: none !important; }

.topbar {
  min-height: 76px;
  padding: 0 4.6vw;
  background: var(--ink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand { display: flex; gap: 12px; align-items: center; text-decoration: none; }
.brand-mark {
  width: 38px; height: 38px; border: 1px solid #819159; border-radius: 50%;
  color: var(--accent); display: grid; place-items: center; font-weight: 800; font-size: 20px;
}
.brand-copy strong { display: block; font-size: 16px; letter-spacing: .02em; }
.brand-copy small { display: block; margin-top: 4px; color: #98a6b8; font-size: 10px; letter-spacing: .16em; }
.topbar-status { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 12px; color: #d0d8e2; font-size: 14px; }
.user-identity { color: #eef2f7; font-size: 14px; overflow-wrap: anywhere; }
.admin-link { color: #d6f36b; text-decoration: none; font-size: 14px; font-weight: 700; }
.admin-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.topbar-caption { color: #9aa7ba; font-size: 10px; letter-spacing: .14em; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(214,243,107,.1); }
.pulse.off { background: #b86b5c; box-shadow: 0 0 0 4px rgba(184,107,92,.12); }
.icon-button {
  margin-left: 10px; border: 1px solid rgba(255,255,255,.22); color: #e1e6ed; background: transparent;
  min-height: 40px; padding: 8px 12px; border-radius: 5px; font-size: 14px;
}
.icon-button:hover { background: rgba(255,255,255,.1); }

.shell { width: min(1600px, 91vw); margin: 0 auto; padding: 48px 0 18px; }
.hero-row { display: flex; justify-content: space-between; align-items: start; gap: 32px; margin-bottom: 36px; }
.hero-row > div { min-width: 0; }
.kicker { margin: 0 0 11px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .19em; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 15px; font-size: 42px; line-height: 1.2; letter-spacing: 0; font-weight: 650; }
h1 em { color: var(--accent-dark); font-style: normal; }
.hero-copy { max-width: 650px; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.85; }

.workspace-grid { display: grid; grid-template-columns: minmax(300px, 370px) minmax(0, 1fr); gap: 22px; align-items: start; }
.control-rail, .report-canvas {
  min-width: 0;
  border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius);
  box-shadow: 0 18px 50px rgba(22,34,47,.045);
}
.control-rail { overflow: hidden; }
.report-canvas { min-height: 760px; padding: 27px 31px 0; }
.panel-head { display: flex; align-items: start; justify-content: space-between; gap: 12px; padding: 20px 21px; border-bottom: 1px solid var(--line); }
.panel-head > div { display: flex; align-items: center; gap: 10px; }
.panel-head h2 { margin: 0; font-size: 16px; line-height: 1.4; }
.panel-head.compact { padding: 17px 21px; }
.panel-head-actions { display: flex; align-items: center; gap: 10px; }
.intake-heading { color: #184cab; background: #eaf1ff; border-bottom-color: #c4d6f5; }
.evidence-heading { color: #076554; background: #e4f4ef; border-bottom-color: #b3ded2; }
.intake-heading .section-index { background: #245bbd; border-color: #245bbd; color: #fff; }
.evidence-heading .section-index { background: #087b64; border-color: #087b64; color: #fff; }
.evidence-heading .text-button { color: #076554; white-space: nowrap; }
.section-index { display: grid; place-items: center; width: 26px; height: 26px; border: 1px solid #bfcbc9; color: var(--muted); font-size: 10px; font-weight: 700; border-radius: 5px; }
.micro-status { padding: 5px 7px; border-radius: 4px; background: var(--surface-2); color: var(--muted); font-size: 10px; white-space: nowrap; }
.micro-status.ready { color: var(--accent-dark); background: #ebf5d5; }
.micro-status.warn { color: #97601f; background: #faeed8; }

fieldset { min-width: 0; margin: 0; padding: 21px; border: 0; border-bottom: 1px solid var(--line); }
legend { margin: 0 0 15px; font-size: 13px; font-weight: 700; }
.field-label { display: block; margin-bottom: 6px; color: #53636c; font-size: 11px; font-weight: 700; letter-spacing: .035em; }
input:not([type="checkbox"]), select, textarea {
  display: block; width: 100%; margin: 0 0 14px; padding: 10px 11px;
  color: var(--ink); background: #fff; border: 1px solid #cbd7d4; border-radius: 5px;
  outline: 0; transition: border-color .15s ease, box-shadow .15s ease;
}
textarea { resize: vertical; line-height: 1.65; min-height: 78px; }
input:hover, select:hover, textarea:hover { border-color: #9eafab; }
input:focus, select:focus, textarea:focus { border-color: #789342; box-shadow: 0 0 0 3px rgba(214,243,107,.28); }
input::placeholder, textarea::placeholder { color: #9ba6aa; }
.field-note, .action-hint { color: var(--muted); font-size: 11px; line-height: 1.75; }
.field-note { margin: -5px 0 2px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.scope-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 20px; }
.scope-options label { display: flex; align-items: center; gap: 9px; min-height: 44px; padding: 10px 12px; border: 1px solid #cbd7d4; border-radius: 5px; background: #fff; cursor: pointer; font-size: 14px; }
.scope-options label:has(input:checked) { background: #e4f4ef; border-color: #6da899; color: #075e4f; }
.scope-options input { width: 17px; height: 17px; margin: 0; accent-color: #087b64; flex-shrink: 0; }
.scope-options label:has(input:focus-visible) { outline: 3px solid #4383de; outline-offset: 2px; }
.evidence-note { margin: 0 21px 18px; font-size: 12px; line-height: 1.7; color: #6d5627; }
.form-actions { padding: 21px; }
.form-actions .action-hint { margin: 11px 0 0; }
.entry-actions { display: flex; justify-content: flex-end; margin-top: -3px; }
.button {
  min-height: 39px; padding: 9px 13px; border: 1px solid transparent; border-radius: 5px;
  font-size: 12px; font-weight: 700; transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.button:not(:disabled):active { transform: translateY(1px); }
.button-dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.button-dark:hover { background: var(--ink-2); }
.button-accent { background: var(--accent); color: #304313; border-color: #b8dc51; }
.button-accent:hover { background: #c9e95f; }
.button-light { background: #fff; color: var(--ink); border-color: #cbd7d4; }
.button-light:hover { border-color: #889d98; background: #f7faf9; }
.button-danger { background: #b83c32; border-color: #a73229; color: #fff; }
.button-danger:hover:not(:disabled) { background: #a73229; }
.button-read, .button-diagnose { min-height: 52px; padding: 13px 17px; color: #fff; font-size: 16px; }
.button-read { background: #245bbd; border-color: #194b9f; box-shadow: 0 3px 0 #194b9f; }
.button-read:hover:not(:disabled) { background: #194b9f; }
.button-diagnose { background: #087b64; border-color: #06614e; box-shadow: 0 3px 0 #06614e; justify-content: center !important; }
.button-diagnose:hover:not(:disabled) { background: #06614e; }
button:focus-visible, a:focus-visible { outline: 3px solid #4383de; outline-offset: 3px; }
.button-wide { width: 100%; display: flex; align-items: center; justify-content: space-between; }
.button b { font-size: 16px; line-height: 1; }
.text-button { padding: 3px 0; border: 0; background: transparent; color: var(--accent-dark); font-size: 11px; font-weight: 700; }
.text-button:hover { text-decoration: underline; }
.inline-error { margin: 0 21px 21px; padding: 11px 12px; color: #983c32; background: #fff0ed; border-radius: 5px; font-size: 12px; line-height: 1.6; }

.evidence-panel { border-top: 1px solid var(--line); }
.identity-summary { padding: 18px 21px 9px; }
.identity-title { margin: 0 0 7px; color: var(--ink); font-size: 15px; font-weight: 700; line-height: 1.55; }
.identity-meta { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.7; overflow-wrap: anywhere; }
.status-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; padding: 9px 21px 16px; }
.status-chip { padding: 9px 10px; background: var(--surface-2); border-radius: 5px; }
.status-chip strong { display: block; color: var(--muted); font-size: 10px; font-weight: 700; }
.status-chip span { display: block; margin-top: 3px; color: var(--ink); font-size: 12px; }
.status-chip.ok { background: #edf6dd; }
.status-chip.ok span { color: var(--accent-dark); }
.status-chip.warn { background: #fff1d9; }
.status-chip.warn span { color: #94621f; }
.status-chip.bad { background: #fff0ed; }
.status-chip.bad span { color: var(--risk); }
.asset-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; padding: 0 21px 16px; }
.asset-thumb { position: relative; aspect-ratio: 1; overflow: hidden; border: 1px solid var(--line); background: #e7eceb; border-radius: 4px; }
.asset-thumb img { width: 100%; height: 100%; display: block; object-fit: cover; }
.asset-thumb span { position: absolute; left: 4px; bottom: 4px; padding: 2px 4px; color: #fff; background: rgba(20,32,53,.76); border-radius: 3px; font-size: 9px; }
.candidate-list { padding: 0 21px 16px; }
.candidate-title { margin: 0 0 9px; color: var(--muted); font-size: 11px; font-weight: 700; }
.candidate { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.candidate:last-child { border-bottom: 0; }
.candidate p { margin: 0; font-size: 11px; line-height: 1.5; }
.candidate small { color: var(--muted); }
.candidate button { flex: 0 0 auto; padding: 5px 7px; border: 1px solid #bfd0cb; color: var(--accent-dark); background: #f7fbef; border-radius: 4px; font-size: 10px; }
.evidence-panel > .button, .evidence-panel > .action-hint { margin-left: 21px; margin-right: 21px; }
.evidence-panel > .button { width: calc(100% - 42px); }
.evidence-panel > .action-hint { padding-bottom: 20px; margin-bottom: 0; }
.provider-panel { flex: 0 0 380px; max-width: 100%; padding: 16px 0 0; border-top: 3px solid #617c24; }
.provider-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.provider-heading h2 { margin: 0; font-size: 17px; }
.provider-heading a { margin-left: auto; font-size: 13px; }
.provider-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 12px; }
.provider-fields > div { min-width: 0; }
.provider-fields .field-label { font-size: 13px; }
.provider-fields select { margin-bottom: 10px; font-size: 14px; text-overflow: ellipsis; }
.provider-panel > .field-note { margin: 0; font-size: 12px; overflow-wrap: anywhere; }
.provider-settings { margin: 0 21px 21px; padding: 15px; border: 1px solid var(--line); background: #f7faf8; border-radius: 6px; }
.settings-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; font-size: 12px; }
.provider-settings .field-note { margin: 0 0 14px; padding: 0; }
.provider-settings input, .provider-settings select, .provider-settings textarea { background: #fff; }
.setting-check { display: flex; align-items: center; gap: 7px; margin: 3px 0 14px; color: var(--muted); font-size: 11px; }
.setting-check input { width: 15px; height: 15px; margin: 0; accent-color: var(--accent-dark); }
.settings-actions { display: flex; gap: 7px; flex-wrap: wrap; }
.settings-actions .button { flex: 1 1 105px; }
.danger-button { color: var(--risk); }
.inline-settings-error { margin: 12px 0 0; padding: 9px 10px; color: #983c32; background: #fff0ed; border-radius: 5px; font-size: 11px; line-height: 1.6; }

.auth-page { min-height: 100vh; display: flex; flex-direction: column; }
.auth-shell { width: min(1120px, 88vw); margin: auto; padding: 72px 0; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(330px, 420px); gap: 90px; align-items: center; }
.auth-intro h1 { margin-bottom: 20px; font-size: clamp(38px, 5vw, 68px); }
.auth-intro > p:not(.kicker) { max-width: 540px; color: var(--muted); line-height: 1.9; }
.auth-rule { display: flex; align-items: center; gap: 10px; margin: 34px 0 16px; color: var(--ink); font-size: 12px; }
.auth-rule span { width: 26px; height: 2px; background: var(--accent-dark); }
.auth-role-list { border-top: 1px solid var(--line); max-width: 540px; }
.auth-role-list > div { display: flex; justify-content: space-between; gap: 20px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.auth-role-list span { color: var(--muted); text-align: right; }
.auth-card { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); box-shadow: 0 20px 55px rgba(22,34,47,.08); }
.auth-card-head { display: flex; align-items: center; gap: 12px; padding: 24px; border-bottom: 1px solid var(--line); }
.auth-card-head h2 { margin: 0 0 4px; font-size: 18px; }
.auth-card-head p { margin: 0; color: var(--muted); font-size: 11px; }
.auth-card form { padding: 24px; }
.auth-card form .button { margin-top: 8px; }
.auth-card .inline-error { margin: 14px 0 0; }
.auth-footer { width: min(1120px, 88vw); margin: 0 auto; }

.admin-page { min-height: 100vh; }
.admin-shell { width: min(1440px, 91vw); margin: 0 auto; padding: 52px 0 32px; }
.admin-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 34px; }
.admin-heading h1 { margin-bottom: 10px; font-size: clamp(34px, 4vw, 54px); }
.admin-heading p:last-child { max-width: 650px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.8; }
.admin-badge { padding: 8px 10px; color: var(--accent-dark); background: #ebf5d5; border: 1px solid #c9de9d; border-radius: 4px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.admin-grid { display: grid; grid-template-columns: minmax(320px, 390px) minmax(0, 1fr); gap: 22px; align-items: start; }
.admin-panel { min-width: 0; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); box-shadow: 0 18px 50px rgba(22,34,47,.045); }
.admin-form { padding: 23px 21px 24px; }
.admin-form .button { margin-top: 5px; }
.admin-form .inline-error { margin: 13px 0 0; }
.admin-table-panel { overflow: hidden; }
.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; min-width: 650px; font-size: 12px; }
.admin-table th, .admin-table td { padding: 14px 15px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.admin-table th { color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .05em; white-space: nowrap; }
.admin-table td strong, .admin-table td span { display: block; }
.admin-table td > span, .admin-table td small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.role-badge, .status-badge { display: inline-block !important; width: fit-content; margin-top: 0 !important; padding: 4px 6px; border-radius: 4px; font-size: 10px !important; font-weight: 700; }
.role-badge.admin { color: #fff; background: var(--ink); }
.role-badge.operator { color: #4e691d; background: var(--accent); }
.status-badge.active { color: var(--accent-dark); background: #edf6dd; }
.status-badge.inactive { color: #95611f; background: #fff1d9; }
.row-actions { white-space: nowrap; }
.row-actions .text-button { margin-right: 12px; }
.danger-text { color: var(--risk); }
.empty-row { padding: 35px !important; color: var(--muted); text-align: center !important; }
.admin-note { margin: 0; padding: 15px 21px 19px; color: var(--muted); font-size: 11px; line-height: 1.7; }
.provider-table { min-width: 760px; }

.report-topline { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: start; gap: 18px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.report-topline > div:first-child { flex: 1 1 320px; min-width: 0; }
.report-topline h2 { margin: 0 0 6px; font-size: 24px; line-height: 1.45; letter-spacing: 0; overflow-wrap: anywhere; }
.report-topline p:last-child { margin: 0; color: var(--muted); font-size: 12px; }
.report-topline .report-scope { margin: 8px 0 0; color: #076554; font-size: 13px; }
.report-actions { display: flex; flex: 0 1 auto; flex-wrap: wrap; align-items: center; gap: 12px; }
#exportReportButton { min-height: 44px; font-size: 14px; white-space: nowrap; flex-shrink: 0; }
.report-state { padding: 6px 8px; border: 1px solid var(--line); border-radius: 4px; color: var(--muted); font-size: 10px; white-space: nowrap; }
.report-state.ready { color: var(--accent-dark); background: #edf6dd; border-color: #c9de9d; }
.report-state.confirmed { color: #fff; background: var(--ink); border-color: var(--ink); }
.report-state.busy { color: #7b641d; background: #fff7d9; border-color: #e7d58c; }
.report-state.bad { color: #983c32; background: #fff0ed; border-color: #e7b7ae; }
.report-tabs { display: flex; gap: 24px; overflow-x: auto; border-bottom: 1px solid var(--line); }
.tab { position: relative; flex: 0 0 auto; padding: 15px 0 13px; border: 0; background: transparent; color: var(--muted); font-size: 12px; font-weight: 700; }
.tab:hover { color: var(--ink); }
.tab.is-active { color: var(--ink); }
.tab.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--accent-dark); }
.report-empty { display: grid; justify-items: center; padding: 90px 20px 80px; text-align: center; }
.empty-mark { width: 64px; height: 64px; display: grid; place-items: center; margin-bottom: 22px; border: 1px solid #becbc8; color: var(--accent-dark); font-weight: 800; font-size: 29px; background: #eef4e7; border-radius: 50%; }
.report-empty h3 { margin: 0 0 11px; font-size: 21px; }
.report-empty > p:not(.kicker) { max-width: 470px; margin: 0; color: var(--muted); line-height: 1.85; font-size: 13px; }
.diagnosis-progress, .diagnosis-failure { display: grid; justify-items: center; padding: 90px 24px 80px; text-align: center; }
.diagnosis-progress h3, .diagnosis-failure h3 { margin: 0 0 11px; font-size: 21px; }
.diagnosis-progress > p:not(.kicker), .diagnosis-failure > p:not(.kicker) { max-width: 520px; margin: 0; color: var(--muted); line-height: 1.85; font-size: 13px; }
.diagnosis-progress strong { margin-top: 22px; color: var(--accent-dark); font-size: 13px; letter-spacing: .08em; }
.progress-mark, .failure-mark { width: 48px; height: 48px; margin-bottom: 20px; border: 1px solid var(--accent-dark); border-radius: 50%; display: grid; place-items: center; color: var(--accent-dark); font-weight: 800; font-size: 20px; }
.progress-mark { animation: pulse-mark 1.4s ease-in-out infinite; }
.failure-mark { color: #983c32; border-color: #c94637; background: #fff0ed; }
.failure-message { color: #983c32 !important; font-weight: 700; }
.failure-hint { margin-top: 15px !important; }
@keyframes pulse-mark { 50% { transform: scale(1.08); opacity: .65; } }
.empty-steps { display: grid; grid-template-columns: repeat(4, 1fr); width: min(600px, 100%); gap: 7px; margin-top: 30px; }
.empty-steps span { padding: 10px 6px; border-top: 2px solid #c9d5d2; color: var(--muted); font-size: 11px; }
.empty-steps b { display: block; margin-bottom: 4px; color: var(--ink); font-size: 10px; }

.report-section { padding: 25px 0; border-bottom: 1px solid var(--line); }
.report-section:last-child { border-bottom: 0; }
.report-section-head { display: flex; justify-content: space-between; align-items: start; gap: 14px; margin-bottom: 15px; }
.report-section h3 { margin: 0; font-size: 17px; letter-spacing: -.015em; }
.report-section-intro { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.evidence-ribbon { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; margin-bottom: 20px; }
.ribbon-cell { padding: 10px; background: var(--surface-2); border-radius: 5px; }
.ribbon-cell strong { display: block; color: var(--muted); font-size: 10px; }
.ribbon-cell span { display: block; margin-top: 5px; color: var(--ink); font-size: 12px; }
.ribbon-cell.ok { background: #edf6dd; }
.ribbon-cell.ok span { color: var(--accent-dark); }
.ribbon-cell.warn { background: #fff1d9; }
.ribbon-cell.warn span { color: #94621f; }
.ribbon-cell.bad { background: #fff0ed; }
.ribbon-cell.bad span { color: var(--risk); }
.conclusion-box { padding: 18px 20px; background: var(--ink); color: #fff; border-radius: 6px; }
.conclusion-box .kicker { color: #aebaca; }
.conclusion-box p:last-child { margin: 0; color: #e0e7ee; font-size: 15px; line-height: 1.85; }
.identity-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 14px; background: var(--line); border: 1px solid var(--line); }
.identity-grid div { padding: 13px 14px; background: var(--surface); }
.identity-grid strong { display: block; margin-bottom: 4px; color: var(--muted); font-size: 10px; }
.identity-grid span { display: block; font-size: 13px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.score-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.score-card { padding: 13px; border: 1px solid var(--line); background: #fff; border-radius: 6px; }
.score-card strong { display: block; color: var(--muted); font-size: 11px; line-height: 1.4; }
.score-number { margin: 10px 0 5px; font-size: 26px; font-weight: 650; color: var(--ink); }
.score-card p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.65; }
.score-track { height: 4px; margin: 9px 0 0; background: #e2e9e7; border-radius: 99px; overflow: hidden; }
.score-track i { display: block; height: 100%; background: var(--accent-dark); }
.editable { white-space: pre-wrap; overflow-wrap: anywhere; }
.editable:focus { outline: 2px solid rgba(214,243,107,.8); outline-offset: 3px; border-radius: 3px; }
.report-table-wrap { overflow-x: auto; }
.report-table { width: 100%; border-collapse: collapse; min-width: 720px; font-size: 12px; }
.report-table th, .report-table td { padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; line-height: 1.65; }
.report-table th { color: var(--muted); font-size: 10px; letter-spacing: .04em; font-weight: 700; white-space: nowrap; }
.priority { display: inline-grid; place-items: center; min-width: 28px; padding: 3px 5px; border-radius: 4px; font-size: 10px; font-weight: 800; }
.priority.p0 { color: #fff; background: var(--risk); }
.priority.p1 { color: #fff; background: var(--warn); }
.priority.p2 { color: #526a20; background: var(--accent); }
.source-tag { display: inline-block; margin-top: 5px; padding: 2px 5px; color: var(--muted); background: var(--surface-2); border-radius: 3px; font-size: 9px; }
.asset-details, .task-details { margin: 10px 0; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: #fff; }
.asset-details summary, .task-details summary { display: flex; align-items: center; gap: 9px; cursor: pointer; list-style: none; padding: 14px; }
.asset-details summary::-webkit-details-marker, .task-details summary::-webkit-details-marker { display: none; }
.asset-details summary::after, .task-details summary::after { content: "+"; margin-left: auto; color: var(--muted); font-size: 17px; }
.asset-details[open] summary::after, .task-details[open] summary::after { content: "-"; }
.asset-details summary:hover, .task-details summary:hover { background: #f9fbfa; }
.asset-id { padding: 4px 6px; border-radius: 4px; color: var(--ink); background: var(--surface-2); font-size: 10px; font-weight: 800; }
.asset-summary-title, .task-summary-title { font-size: 13px; font-weight: 700; }
.asset-summary-status { margin-left: auto; color: var(--muted); font-size: 10px; }
.details-body { padding: 0 14px 15px; border-top: 1px solid var(--line); }
.details-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; padding-top: 13px; }
.detail-field label { display: block; margin-bottom: 5px; color: var(--muted); font-size: 10px; font-weight: 700; }
.detail-field p { margin: 0; color: var(--ink); font-size: 12px; line-height: 1.75; min-height: 20px; }
.detail-field.full { grid-column: 1 / -1; }
.task-details summary { gap: 9px; }
.task-priority { flex: 0 0 auto; }
.pending-list { margin: 0; padding-left: 20px; color: var(--ink); }
.pending-list li { margin: 8px 0; color: #7a4b24; font-size: 12px; line-height: 1.7; }
.pending-empty { color: var(--accent-dark); font-size: 12px; }
.report-note { padding: 11px 13px; margin-top: 15px; color: #6a5a39; background: #fff4df; border-left: 3px solid #d4994b; font-size: 11px; line-height: 1.7; }
.export-actions { display: flex; gap: 7px; flex-wrap: wrap; }
.app-dialog { width: min(520px, calc(100% - 32px)); max-height: calc(100dvh - 40px); padding: 0; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: #fff; box-shadow: 0 24px 80px #15203533; }
.app-dialog::backdrop { background: #15203566; }
.app-dialog .panel-head { align-items: center; background: #edf2f1; }
.app-dialog .panel-head h2 { min-width: 0; overflow-wrap: anywhere; }
.app-dialog .panel-head button { flex-shrink: 0; font-size: 14px; }
.app-dialog .field-label { font-size: 13px; }
.dialog-body { padding: 24px; }
#deleteConversationName { overflow-wrap: anywhere; font-weight: 700; line-height: 1.6; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.dialog-actions .button, .export-actions .button { min-height: 44px; font-size: 14px; }
.export-dialog .export-actions { padding: 24px; gap: 10px; }
.export-dialog .export-actions .button { flex: 1 1 120px; }
.export-message { margin: 0; padding: 0 24px 20px; font-size: 13px; color: var(--muted); }
.export-message:empty { display: none; }
.footer { display: flex; justify-content: space-between; gap: 20px; padding: 22px 0 2px; color: var(--muted-2); font-size: 10px; letter-spacing: .06em; }
.assistant-panel { margin: 0 0 28px; padding: 0 0 25px; border-bottom: 1px solid var(--line); }
.assistant-head { display: flex; justify-content: space-between; align-items: start; gap: 20px; margin-bottom: 16px; }
.assistant-head h3 { margin: 0 0 6px; font-size: 18px; }
.assistant-head p:last-child { max-width: 660px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.assistant-layout { display: grid; grid-template-columns: minmax(0, 1fr); border: 1px solid var(--line); background: #f7faf8; }
.conversation-list { min-width: 0; width: 100%; max-width: 100%; overflow: hidden; border-bottom: 1px solid var(--line); background: #eef4f1; }
.conversation-list-head { display: flex; align-items: center; gap: 8px; padding: 12px 14px 8px; color: #53656a; font-size: 12px; font-weight: 700; letter-spacing: 0; }
.conversation-list-head span:last-child { min-width: 18px; padding: 2px 4px; color: var(--accent-dark); background: var(--accent); border-radius: 4px; text-align: center; }
.conversation-items { display: flex; gap: 8px; width: 100%; max-width: 100%; min-width: 0; padding: 0 12px 10px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: #83988e #e1e9e5; scroll-padding-inline: 12px; }
.conversation-row { flex: 0 0 272px; max-width: 100%; min-width: 0; display: flex; align-items: center; background: transparent; border-bottom: 3px solid transparent; }
.conversation-row.is-active { border-bottom-color: var(--accent-dark); background: #fff; }
.conversation-item { flex: 1; min-width: 0; width: 100%; padding: 10px; border: 0; background: transparent; color: var(--ink); text-align: left; cursor: pointer; }
.conversation-item:hover { background: rgba(255,255,255,.7); }
.conversation-item strong, .conversation-item span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conversation-item strong { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; min-height: 39px; white-space: normal; overflow-wrap: anywhere; font-size: 13px; line-height: 1.5; }
.conversation-item span { margin-top: 4px; color: #53656a; font-size: 11px; }
.conversation-delete { flex: 0 0 40px; width: 40px; min-height: 44px; border: 0; color: #a33a32; background: transparent; font-size: 12px; }
.conversation-delete:hover { background: #ffefec; }
.conversation-items:focus-visible, .conversation-item:focus-visible, .conversation-delete:focus-visible { outline: 2px solid var(--accent-dark); outline-offset: -2px; }
.conversation-empty { margin: 10px 9px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.chat-workspace { display: flex; min-width: 0; min-height: 430px; flex-direction: column; background: #fff; }
.chat-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 14px 17px; border-bottom: 1px solid var(--line); }
.chat-toolbar strong, .chat-toolbar span { display: block; }
.chat-toolbar strong { font-size: 12px; }
.chat-toolbar span:not(.chat-connection) { margin-top: 4px; color: var(--muted); font-size: 10px; }
.chat-connection { padding: 5px 7px; border: 1px solid #c9de9d; color: var(--accent-dark); background: #edf6dd; border-radius: 4px; font-size: 10px !important; white-space: nowrap; }
.chat-connection.warn { color: #983c32; background: #fff0ed; border-color: #e7b7ae; }
.chat-messages { flex: 1; min-height: 220px; max-height: 380px; overflow: auto; padding: 16px 17px; background: #fbfcfb; }
.chat-welcome { display: flex; gap: 10px; max-width: 520px; margin: 38px auto; color: var(--muted); }
.chat-avatar { flex: 0 0 auto; width: 28px; height: 28px; display: grid; place-items: center; color: var(--accent-dark); background: var(--accent); border-radius: 50%; font-size: 9px; font-weight: 900; }
.chat-welcome strong { display: block; color: var(--ink); font-size: 12px; }
.chat-welcome p { margin: 5px 0 0; font-size: 11px; line-height: 1.7; }
.chat-message { max-width: 82%; margin-bottom: 13px; }
.chat-message.from-user { margin-left: auto; }
.chat-message-meta { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 5px; color: var(--muted); font-size: 10px; }
.chat-message-body { padding: 10px 12px; border: 1px solid var(--line); background: #fff; border-radius: 5px 10px 10px 10px; color: var(--ink); font-size: 12px; line-height: 1.75; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-message.from-user .chat-message-body { border-color: #cfdf9e; background: #f1f8df; border-radius: 10px 5px 10px 10px; }
.chat-message.is-pending .chat-message-body { color: var(--muted); background: #f4f6f4; }
.chat-message-state { margin-top: 5px; color: #983c32; font-size: 10px; }
.chat-task-progress { margin: 0 17px 12px; padding: 12px 13px; border: 1px solid #e4d796; background: #fff9df; border-radius: 5px; }
.chat-task-topline, .chat-task-detail { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.chat-task-topline strong { display: block; margin-top: 3px; color: var(--ink); font-size: 12px; }
.chat-task-percent { color: #7b641d; font-size: 11px; font-weight: 800; }
.chat-task-track { height: 5px; margin: 9px 0 7px; overflow: hidden; background: #eadfb1; border-radius: 99px; }
.chat-task-track i { display: block; height: 100%; background: #a88e24; transition: width .3s ease; }
.chat-task-detail { color: #7b641d; font-size: 10px; line-height: 1.5; }
.chat-continue-button { margin-top: 8px; color: #983c32; }
.chat-composer { padding: 12px 17px 15px; border-top: 1px solid var(--line); background: #fff; }
.chat-composer textarea { min-height: 54px; resize: vertical; background: #fbfcfb; }
.chat-composer-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 8px; }
.chat-composer-foot span { color: var(--muted); font-size: 10px; }
.chat-composer-foot .button { flex: 0 0 auto; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 20; max-width: min(520px, 90vw); transform: translateX(-50%) translateY(10px); padding: 11px 15px; color: #fff; background: var(--ink); border-radius: 5px; box-shadow: 0 12px 30px rgba(0,0,0,.2); font-size: 12px; line-height: 1.6; opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
.toast.visible { opacity: 1; transform: translateX(-50%) translateY(0); }
.loading-bar { height: 3px; margin: 0 -31px; background: linear-gradient(90deg, var(--accent-dark), var(--accent), var(--accent-dark)); background-size: 200% 100%; animation: loading 1.1s linear infinite; }
@keyframes loading { to { background-position: -200% 0; } }

@media (max-width: 1120px) {
  .workspace-grid { grid-template-columns: minmax(280px, 330px) minmax(0, 1fr); }
  .report-canvas { padding-left: 23px; padding-right: 23px; }
  .loading-bar { margin-left: -23px; margin-right: -23px; }
}
@media (max-width: 850px) {
  .topbar { padding: 16px 22px; flex-wrap: wrap; gap: 16px; }
  .shell { width: min(94vw, 700px); padding-top: 32px; }
  .hero-row { align-items: start; flex-direction: column; margin-bottom: 27px; }
  .provider-panel { flex: 0 0 auto; width: 100%; }
  .workspace-grid { grid-template-columns: 1fr; }
  .report-canvas { min-height: 500px; }
  .auth-shell { width: min(94vw, 560px); grid-template-columns: 1fr; gap: 35px; padding: 45px 0; }
  .admin-shell { width: min(94vw, 700px); padding-top: 34px; }
  .admin-grid { grid-template-columns: 1fr; }
  .admin-heading { align-items: start; flex-direction: column; gap: 14px; }
  .conversation-row { flex: 0 0 250px; }
}
@media (max-width: 580px) {
  .brand-copy small, .topbar-caption { display: none; }
  .topbar-status { justify-content: flex-start; width: 100%; gap: 10px; }
  .shell { width: calc(100vw - 28px); padding-top: 26px; }
  h1 { font-size: 31px; }
  .hero-copy { font-size: 13px; }
  .two-col { grid-template-columns: 1fr; gap: 0; }
  .report-canvas { padding: 20px 16px 0; }
  .report-topline { flex-direction: column; gap: 12px; }
  .report-topline > div:first-child { flex-basis: auto; }
  .report-actions { width: 100%; justify-content: space-between; }
  .report-topline h2 { font-size: 21px; }
  .report-tabs { gap: 18px; }
  .evidence-ribbon, .score-grid { grid-template-columns: 1fr 1fr; }
  .identity-grid, .details-grid { grid-template-columns: 1fr; }
  .detail-field.full { grid-column: auto; }
  .export-actions .button { flex: 1 1 auto; }
  .loading-bar { margin-left: -16px; margin-right: -16px; }
  .footer { flex-direction: column; gap: 7px; }
  .topbar { gap: 10px; }
  .admin-link { font-size: 14px; }
  .auth-shell { width: calc(100vw - 28px); padding: 32px 0; }
  .auth-intro h1 { font-size: 38px; }
  .auth-role-list > div { display: block; }
  .auth-role-list span { display: block; margin-top: 4px; text-align: left; }
  .admin-shell { width: calc(100vw - 28px); }
  .admin-heading h1 { font-size: 38px; }
  .admin-page .topbar { min-height: 86px; padding: 11px 14px; flex-wrap: wrap; gap: 8px 12px; }
  .admin-page .topbar-status { flex: 1 1 100%; justify-content: flex-end; gap: 11px; }
  .admin-page .topbar-status .user-identity { display: none; }
  .admin-page .admin-link { white-space: nowrap; }
  .assistant-head { flex-direction: column; }
  .assistant-head .button { width: 100%; }
  .chat-message { max-width: 94%; }
  .chat-composer-foot { align-items: stretch; flex-direction: column; }
  .chat-composer-foot .button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Althea-inspired visual system: calm lavender space, editorial headings, clear work surfaces. */
:root {
  --ink: #303140;
  --ink-2: #4a4b5e;
  --paper: #d9ddec;
  --surface: #ffffff;
  --surface-2: #f2f3f8;
  --line: #e0e2ed;
  --muted: #6e7181;
  --muted-2: #8c90a0;
  --accent: #dfe9bf;
  --accent-dark: #68764e;
  --risk: #b26763;
  --warn: #a47e45;
  --radius: 14px;
  font-family: "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-size: 15px;
}

html {
  min-height: 100%;
  background: var(--paper);
  background-image: radial-gradient(circle at 50% 8%, rgba(255,255,255,.76), rgba(255,255,255,0) 48%);
  overflow-x: clip;
}

body {
  position: relative;
  min-height: 100vh;
  background: transparent;
  overflow-x: clip;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  content: "";
  opacity: .42;
  background-image:
    radial-gradient(ellipse at 12% 18%, rgba(255,255,255,.48), transparent 30%),
    radial-gradient(ellipse at 88% 76%, rgba(206,223,237,.34), transparent 34%);
}

body > * { position: relative; z-index: 1; }

h1, h2, h3,
.report-topline h2,
.identity-title,
.score-number,
.brand-copy strong,
.auth-intro h1,
.admin-heading h1 {
  font-family: "Noto Serif SC", "Songti SC", STSong, serif;
  font-weight: 500;
  letter-spacing: 0;
}

h1 em { color: inherit; }
.kicker, .topbar-caption, .brand-copy small, .field-label { letter-spacing: 0; }

.ui-icon {
  display: inline-grid;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  place-items: center;
  vertical-align: -3px;
}

.ui-icon svg { width: 100%; height: 100%; stroke: currentColor; }
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.topbar {
  min-height: 74px;
  padding: 0 4.5vw;
  color: var(--ink);
  background: rgba(255,255,255,.64);
  border-bottom: 1px solid rgba(255,255,255,.88);
  box-shadow: 0 10px 30px rgba(62,65,91,.06);
  backdrop-filter: blur(12px);
}

.brand { gap: 12px; }
.brand-mark {
  width: 40px;
  height: 40px;
  border: 1px solid #8f96b2;
  color: var(--ink);
  background: rgba(255,255,255,.7);
  border-radius: 50%;
  font-family: "Instrument Serif", serif;
  font-size: 22px;
  font-weight: 400;
}
.brand-copy strong { font-size: 18px; }
.brand-copy small { margin-top: 1px; color: var(--muted); font-size: 11px; }
.topbar-status { color: var(--muted); }
.user-identity { color: var(--ink); }
.admin-link { display: inline-flex; align-items: center; gap: 5px; color: var(--ink-2); font-size: 13px; }
.admin-link[aria-current="page"] { color: var(--ink); font-weight: 800; text-decoration: underline; text-underline-offset: 5px; }
.topbar-caption { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.pulse { background: #9bab72; box-shadow: 0 0 0 4px rgba(155,171,114,.16); }
.pulse.off { background: var(--risk); box-shadow: 0 0 0 4px rgba(178,103,99,.14); }
.icon-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: 7px;
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid rgba(87,90,119,.2);
  border-radius: 999px;
  color: var(--ink-2);
  background: rgba(255,255,255,.58);
  font-size: 13px;
}
.icon-button:hover { color: var(--ink); background: #fff; border-color: #9da2ba; }
.icon-button.icon-only { width: 40px; justify-content: center; padding: 8px; }

.shell { width: min(1600px, 91vw); padding: 55px 0 24px; }
.hero-row { margin-bottom: 32px; }
.hero-row h1 { margin-bottom: 11px; font-size: clamp(38px, 4.2vw, 62px); line-height: 1.15; }
.hero-copy { color: var(--muted); font-size: 16px; line-height: 1.65; }
.provider-panel { border-top: 2px solid #8b90ab; }
.provider-heading h2 { font-family: "Noto Serif SC", serif; font-size: 21px; }
.provider-heading a { display: inline-flex; align-items: center; gap: 5px; }

.workspace-grid { gap: 26px; }
.control-rail, .report-canvas, .admin-panel, .auth-card {
  border: 1px solid rgba(255,255,255,.92);
  border-radius: 18px;
  background: rgba(255,255,255,.82);
  box-shadow: 0 20px 60px rgba(62,65,91,.13);
}
.report-canvas { background: rgba(255,255,255,.9); }
.panel-head { padding: 20px 22px; }
.panel-head h2 { font-family: "Noto Serif SC", serif; font-size: 18px; }
.panel-head.compact { padding: 17px 22px; }
.intake-heading { color: var(--ink); background: #e9edf9; border-bottom-color: #d7dcec; }
.evidence-heading { color: #536557; background: #e6eee8; border-bottom-color: #d2e0d5; }
.intake-heading .section-index { background: #777d9d; border-color: #777d9d; }
.evidence-heading .section-index { background: #7d9985; border-color: #7d9985; }
.section-index { border-color: #c6cad9; color: var(--muted); background: rgba(255,255,255,.6); border-radius: 50%; }
.micro-status { border: 1px solid #e2e4ec; background: #f4f5f9; }
.micro-status.ready { color: var(--accent-dark); background: #edf2df; }

fieldset { padding: 21px 22px; border-bottom-color: var(--line); }
legend { font-family: "Noto Serif SC", serif; font-size: 16px; font-weight: 500; }
input:not([type="checkbox"]), select, textarea {
  padding: 11px 12px;
  border-color: #d4d7e2;
  border-radius: 10px;
  background: rgba(255,255,255,.94);
}
input:hover, select:hover, textarea:hover { border-color: #aeb3c8; }
input:focus, select:focus, textarea:focus { border-color: #878da9; box-shadow: 0 0 0 3px rgba(135,141,169,.16); }
input::placeholder, textarea::placeholder { color: #9b9eac; }
.scope-options label { border-color: #d4d7e2; border-radius: 10px; background: #fff; }
.scope-options label:has(input:checked) { color: #586649; background: #edf2df; border-color: #b7c79b; }
.scope-options input { accent-color: #7d9985; }

.button {
  min-height: 42px;
  padding: 10px 15px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}
.button-dark { color: #fff; background: #58596f; border-color: #58596f; }
.button-dark:hover { background: #414257; }
.button-light { color: var(--ink); border-color: #d2d5e2; background: #fff; }
.button-light:hover { border-color: #9ca1b9; background: #f8f8fb; }
.button-read, .button-diagnose { min-height: 54px; padding: 14px 18px; border-radius: 999px; font-size: 15px; box-shadow: none; }
.button-read { background: #777d9d; border-color: #777d9d; }
.button-read:hover:not(:disabled) { background: #5f6482; }
.button-diagnose { background: #7d9985; border-color: #7d9985; }
.button-diagnose:hover:not(:disabled) { background: #607966; }
.text-button { display: inline-flex; align-items: center; gap: 5px; color: #68704f; font-size: 12px; }

.identity-summary { padding: 20px 22px 9px; }
.identity-title { font-size: 17px; }
.status-chip, .ribbon-cell { border-radius: 10px; }
.asset-thumb { border-radius: 9px; }
.asset-thumb span { border-radius: 999px; }
.provider-panel { background: transparent; }

.auth-shell { width: min(1140px, 88vw); gap: 94px; padding: 78px 0; }
.auth-intro h1 { font-size: clamp(42px, 5vw, 72px); line-height: 1.12; }
.auth-intro > p:not(.kicker) { color: var(--muted); font-size: 18px; line-height: 1.75; }
.auth-card-head { padding: 27px 26px; border-bottom-color: var(--line); }
.auth-card-head h2 { font-family: "Noto Serif SC", serif; font-size: 23px; }
.auth-card form { padding: 26px; }
.auth-card { border-radius: 20px; }
.auth-rule { color: var(--muted); }
.auth-rule span { background: #8b90ab; }
.auth-role-list { border-top-color: var(--line); }
.auth-role-list > div { border-bottom-color: var(--line); }

.admin-shell { width: min(1440px, 91vw); padding: 58px 0 38px; }
.admin-heading { margin-bottom: 34px; }
.admin-heading h1 { font-size: clamp(40px, 4.6vw, 66px); line-height: 1.12; }
.admin-heading p:last-child { color: var(--muted); font-size: 15px; }
.admin-badge { display: inline-flex; align-items: center; gap: 6px; border-color: #cad5b0; border-radius: 999px; color: #64734c; background: #eef2df; }
.admin-grid { gap: 26px; }
.admin-table { font-size: 13px; }
.admin-table th { color: var(--muted); }
.admin-table th, .admin-table td { border-bottom-color: var(--line); }
.role-badge, .status-badge { border-radius: 999px; }
.app-dialog { border-radius: 18px; }
.app-dialog .panel-head { background: #eff0f7; }

.assistant-panel { padding-bottom: 30px; }
.assistant-head h3 { font-family: "Noto Serif SC", serif; font-size: 24px; }
.assistant-head p:last-child { color: var(--muted); }
.assistant-layout { border-color: #e1e3ed; border-radius: 16px; overflow: hidden; background: #f7f7fb; }
.conversation-list { background: #eff0f7; border-bottom-color: #dfe2ec; }
.conversation-list-head { color: var(--muted); }
.conversation-list-head span:last-child { color: #66724f; background: #dde7ba; }
.conversation-row { border-bottom-color: transparent; }
.conversation-row.is-active { border-bottom-color: #7d9985; background: #fff; }
.conversation-item { border-radius: 10px; }
.conversation-item:hover { background: rgba(255,255,255,.86); }
.conversation-delete { border-radius: 999px; }
.chat-workspace { background: #fff; }
.chat-toolbar { border-bottom-color: var(--line); }
.chat-messages { background: #fbfbfd; }
.chat-avatar { display: grid; place-items: center; color: #64724e; background: #e1e9c5; }
.chat-message-body { border-color: #e1e3ed; border-radius: 8px 14px 14px 14px; }
.chat-message.from-user .chat-message-body { border-color: #d0dca9; background: #f1f5e4; border-radius: 14px 8px 14px 14px; }
.chat-task-progress { border-color: #e2dcc0; background: #fbf8e9; border-radius: 12px; }
.chat-composer { border-top-color: var(--line); }
.empty-mark, .progress-mark, .failure-mark {
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #eef0f8;
  color: #777d9d;
}
.empty-mark { width: 70px; height: 70px; border-color: #c7cbdd; }
.progress-mark, .failure-mark { width: 54px; height: 54px; }
.failure-mark { color: var(--risk); background: #f8eaea; border-color: #dfb7b4; }
.report-empty h3, .diagnosis-progress h3, .diagnosis-failure h3 { font-family: "Noto Serif SC", serif; font-size: 24px; }
.conclusion-box { border-radius: 14px; background: #58596f; }
.score-card, .asset-details, .task-details { border-radius: 12px; }
.report-note { border-left-color: #b2bd8e; border-radius: 0 8px 8px 0; background: #f5f3e6; }
.toast { border-radius: 999px; background: #58596f; }

.loading-bar { background: #7d9985; }

@media (max-width: 850px) {
  .topbar { padding: 14px 22px; }
  .hero-row { margin-bottom: 27px; }
  .auth-shell { gap: 42px; padding: 52px 0; }
  .admin-shell { padding-top: 42px; }
}

@media (max-width: 580px) {
  .topbar { padding: 12px 14px; }
  .topbar-status { gap: 8px; }
  .shell { padding-top: 32px; }
  .hero-row h1 { font-size: 38px; }
  .auth-shell { padding: 38px 0; }
  .auth-intro h1 { font-size: 44px; }
  .auth-intro > p:not(.kicker) { font-size: 16px; }
  .admin-heading h1 { font-size: 44px; }
  .assistant-head h3 { font-size: 22px; }
  .conversation-row { flex-basis: 258px; }
}
