/* WorkBuddy-inspired neutral workspace. Application behavior stays in app.js. */
:root {
  --bg: #ffffff;
  --sidebar: #f7f7f7;
  --panel: #ffffff;
  --surface: #f1f1f1;
  --text: #202020;
  --muted: #737373;
  --faint: #969696;
  --line: #ebebeb;
  --accent: #242424;
  --accent-light: #f1f1f1;
  --side-width: 280px;
  --rail-width: 0px;
  --inspector-width: 560px;
  font-family: 'Segoe UI Variable Text', 'Segoe UI', 'Microsoft YaHei UI', sans-serif;
}
::selection { background: #dceee8; }
::-webkit-scrollbar-thumb { background: #d8d8d8; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
button { transition: background-color .15s, border-color .15s, color .15s; }
input, textarea, select { border-color: #dedede; border-radius: 9px; }
input::placeholder, textarea::placeholder { color: #989898; }
input:focus, textarea:focus, select:focus { border-color: #aaa; outline: 2px solid #eeeeee; }
button:focus-visible, a:focus-visible { outline: 2px solid #777; outline-offset: 3px; }
.primary-button { border-radius: 9px; }
.primary-button:hover { background: #404040; }
.quiet-button, .icon-button { color: #727272; border-radius: 8px; }
.app-shell { grid-template-columns: var(--side-width) minmax(360px, 1fr) 5px var(--inspector-width); }
.rail { display: none; }
.sidebar { background: var(--sidebar); padding: 30px 12px 0; }
.brand { gap: 9px; margin: 0 10px 27px; min-height: 34px; }
.brand-mark { width: 29px; height: 32px; border: 0; border-radius: 0; color: #303030; background: transparent; }
.brand-mark svg { width: 25px; height: 25px; }
.brand-title { color: #171717; font-size: 1rem; font-weight: 650; letter-spacing: 0; }
.brand small { font-size: .5625rem; color: #a2a2a2; letter-spacing: 1.5px; margin-top: 1px; }
.new-session { min-height: 39px; padding: 9px 12px; gap: 10px; background: #ebebeb; border: 1px solid transparent; border-radius: 9px; color: #222; box-shadow: none; font-weight: 500; }
.new-session:hover { background: #e2e2e2; border-color: transparent; }
.new-session svg { width: 18px; height: 18px; }
.new-session kbd { background: transparent; border-color: #d6d6d6; color: #929292; font-weight: 400; }
.sidebar-group-label { display: none; }
.sidebar-links { gap: 3px; margin: 9px 0 0; }
.sidebar-admin { margin-top: 3px; }
.sidebar-links button { min-height: 39px; padding: 8px 12px; gap: 11px; border-radius: 8px; color: #383838; font-size: .875rem; }
.sidebar-links button:hover, .sidebar-links button.active { background: #ededed; color: #202020; font-weight: 400; }
.sidebar-links button.active::before { display: none; }
.nav-icon, .active .nav-icon { width: 19px; height: 22px; border: 0; background: transparent; color: #414141; }
.nav-icon svg { width: 18px; height: 18px; }
.nav-chevron { color: #969696; font-size: 1.125rem; }
.nav-count { min-width: 19px; padding: 0 4px; background: #ebebeb; color: #868686; border-radius: 5px; font-size: .6875rem; }
.sidebar-history-label { margin: 30px 11px 10px; padding: 0; border: 0; color: #949494; font-size: .75rem; font-weight: 400; }
.sidebar-history-label svg { width: 14px; height: 14px; }
.history-search { margin: 0 5px 8px; padding: 0 8px; border: 1px solid transparent; background: transparent; color: #a0a0a0; }
.history-search input { font-size: .75rem; padding: 7px 0; }
.history-search:focus-within { background: #fff; border-color: #dedede; outline: none; }
.sessions { min-height: 70px; }
.sessions > .empty-note { margin: 26px 10px; color: #8a8a8a; font-size: .75rem; line-height: 1.9; text-align: center; }
.session-item { padding: 11px 10px; gap: 9px; border-radius: 9px; }
.session-item:hover { background: #efefef; }
.session-item.selected { background: #eaeaea; border-color: transparent; }
.session-icon, .session-item strong { color: #4a4a4a; }
.session-item strong { font-size: .8125rem; }
.session-item small { color: #898989; font-size: .6875rem; }
.session-status::before { background: #a1a1a1; }
.sidebar-scope-card { display: flex; align-items: center; gap: 11px; width: 100%; padding: 13px 12px; margin: 12px 0; text-align: left; background: #fff; border: 1px solid #e0e0e0; border-radius: 16px; }
.sidebar-scope-card > span:first-child { color: #777; }
.sidebar-scope-card > span:last-child { margin-left: auto; color: #aaa; }
.sidebar-scope-card strong { display: block; font-size: .8125rem; font-weight: 500; }
.sidebar-scope-card small { display: block; color: #969696; font-size: .6875rem; margin-top: 4px; line-height: 1.7; }
.sidebar-scope-card:hover { background: #fcfcfc; border-color: #c9c9c9; }
.sidebar-bottom { min-height: 68px; flex-shrink: 0; margin: 0 -12px; padding: 13px 18px; border-color: #e6e6e6; }
.avatar { width: 31px; height: 31px; background: #e0f4ed; border-color: #ceebe0; color: #22866a; font-size: .8125rem; }
.sidebar-bottom strong { color: #363636; font-size: .8125rem; }
.sidebar-bottom small { color: #929292; font-size: .6875rem; }
.sidebar-bottom button { color: #818181; }
.workspace-header { height: 66px; padding: 0 25px; border-color: #f0f0f0; }
.workspace-heading h1 { color: #303030; font-size: 1rem; font-weight: 550; }
.workspace-heading p { color: #969696; font-size: .75rem; }
.conversation-area:has(#welcome:not([hidden])) .workspace-header { border-bottom-color: transparent; }
.conversation-area:has(#welcome:not([hidden])) .workspace-heading { visibility: hidden; }
.conversation-area:has(#welcome:not([hidden])) .conversation-scroll { flex: 0 0 auto; overflow: visible; }
.welcome { width: 100%; max-width: 720px; margin: 0 auto; padding: clamp(48px, 9vh, 100px) 24px 0; text-align: center; }
.welcome h2 { margin: 0; color: #171717; font-size: clamp(1.5rem, 2.15vw, 2.125rem); line-height: 1.4; font-weight: 650; letter-spacing: -.7px; }
.welcome > p:not(.eyebrow) { margin: 14px 0 0; color: #969696; font-size: .875rem; line-height: 1.9; }
.welcome-modes { display: inline-flex; align-items: center; gap: 2px; padding: 3px; margin-top: 22px; border: 1px solid #e9e9e9; border-radius: 24px; background: #f3f3f3; }
.welcome-modes button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 32px; padding: 5px 16px; border-radius: 20px; font-size: .8125rem; color: #737373; }
.welcome-modes button.active { background: #fff; color: #242424; box-shadow: 0 1px 4px #0000000c; }
.welcome-modes button:hover { color: #202020; }
.welcome-modes svg { width: 16px; height: 16px; }
.composer-region { max-width: 720px; padding: 16px 30px 18px; }
.conversation-area:has(#welcome:not([hidden])) .composer-region { margin: clamp(40px, 7.5vh, 82px) auto 50px; padding-top: 0; }
.suggestions { display: flex; gap: 8px; margin: 0 0 14px; padding: 2px 0; overflow-x: auto; scrollbar-width: none; }
.suggestions::-webkit-scrollbar { display: none; }
.suggestions button { display: inline-flex; align-items: center; gap: 7px; flex-shrink: 0; padding: 8px 13px; border: 1px solid #e2e2e2; border-radius: 24px; background: #f8f8f8; text-align: center; }
.suggestions button:hover { border-color: #c8c8c8; background: #eee; }
.suggestions button > span:first-child { position: static; }
.suggestions svg { width: 14px; height: 14px; margin: 0; color: #696969; }
.suggestions strong { font-size: .75rem; font-weight: 400; color: #424242; white-space: nowrap; }
.suggestions small, .suggestions .arrow { display: none; }
.conversation-area:has(#welcome[hidden]) .suggestions { display: none; }
.composer { border: 1px solid #e1e1e1; border-radius: 23px; box-shadow: 0 8px 22px #00000004; }
.composer:focus-within { border-color: #bcbcbc; box-shadow: 0 8px 24px #00000006; }
.composer textarea { min-height: 106px; padding: 17px 20px 10px; font-size: .9375rem; line-height: 1.9; border-radius: 0; resize: vertical; }
.composer textarea:focus { outline: none; }
.target-input-row { margin: 0 18px; padding: 10px 0; border-top: 1px solid #f0f0f0; border-bottom: 0; background: #fff; color: #939393; }
.target-input-row input { font-size: .8125rem; }
.target-input-row input:focus { outline: none; }
.scope-badge { color: #9b9b9b; font-size: .625rem; }
.composer-toolbar { gap: 10px; padding: 7px 14px 13px; }
.rag-toggle { color: #747474; font-size: .75rem; }
.rag-toggle svg { width: 15px; height: 15px; }
.composer-toolbar .quiet-button { padding: 6px; color: #6f6f6f; font-size: .75rem; }
.composer-toolbar .quiet-button svg { width: 15px; height: 15px; }
.composer-note { color: #999; font-size: .6875rem; }
.send-button { width: 35px; height: 35px; margin-left: auto; border-radius: 50%; background: #282828; color: #fff; }
.send-button:hover { background: #444; }
.send-button:disabled { background: #d1d1d1; color: #fff; opacity: 1; }
.composer-footer { padding: 0 6px; color: #999; font-size: .6875rem; gap: 12px; }
.scope-reminder { margin: 13px 5px 0; gap: 6px; color: #a1a1a1; font-size: .6875rem; text-align: left; }
.scope-reminder button { font-size: .6875rem; color: #858585; }
.workspace-disclaimer { display: none; }
.conversation-area:has(#welcome:not([hidden])) .workspace-disclaimer { display: block; position: absolute; bottom: 14px; left: 20px; right: 20px; margin: 0; text-align: center; font-size: .625rem; color: #aeaeae; pointer-events: none; }
.conversation { max-width: 820px; }
.message p, .message pre { color: #494949; }
.message header strong { color: #343434; }
.message header time, .task-meta span { color: #909090; }
.message pre { background: #f7f7f7; border-color: #e8e8e8; border-radius: 10px; }
.task-meta { border-color: #e7e7e7; }
.panel-resizer { background: #fff; border: 0; border-left: 1px solid #eaeaea; }
.panel-resizer span { left: 1px; width: 2px; background: transparent; }
.panel-resizer:hover, .panel-resizer:focus-visible, .resizing-inspector .panel-resizer { background: #eee; box-shadow: none; }
.panel-resizer:hover span, .resizing-inspector .panel-resizer span { background: #aaa; }
.inspector { background: #fff; }
.inspector-heading { min-height: 66px; padding: 0 22px; border-color: #efefef; }
.inspector-heading > div { display: flex; align-items: center; gap: 9px; padding: 6px 13px; border-radius: 9px; background: #f4f4f4; }
.inspector-heading strong { font-size: calc(.875rem * var(--text-scale)); font-weight: 500; color: #343434; }
.inspector-heading strong > span { margin-right: 6px; }
.inspector-heading strong svg { width: 16px; height: 16px; }
.inspector-heading small { display: none; }
.live-label { font-size: .6875rem; color: #9a9a9a; }
.live-label i { background: #c8c8c8; }
.live-label.running { color: #27816c; }
.live-label.running i { background: #27816c; }
.inspector-reading-tools { justify-content: flex-end; gap: 8px; padding: 10px 22px; background: #fff; color: #9a9a9a; font-size: .6875rem; border-color: #f2f2f2; }
.text-scale-control { border-color: #e7e7e7; border-radius: 7px; color: #777; }
.text-scale-control button { width: 27px; height: 25px; }
.text-scale-control button:hover, .reset-layout:hover { background: #f2f2f2; }
.text-scale-control output { min-width: 37px; font-size: .6875rem; }
.reset-layout { margin-left: 3px; }
.inspector-tabs { gap: 6px; padding: 9px 22px; border-color: #efefef; }
.inspector-tabs button { padding: 7px 12px; border: 0; border-radius: 7px; font-size: calc(.8125rem * var(--text-scale)); color: #909090; }
.inspector-tabs button:hover { background: #f8f8f8; }
.inspector-tabs button.selected { color: #2d2d2d; background: #f1f1f1; font-weight: 500; }
.inspector-body { padding: 22px; }
.inspector-section-title, .inspector-section-title span:last-child { color: #929292; }
.conversation-area:has(#welcome:not([hidden])) ~ .inspector .inspector-section-title,
.conversation-area:has(#welcome:not([hidden])) ~ .inspector .scope-summary { display: none; }
.inspector-body:has(#agents > .empty-state) #panel-agents { min-height: 100%; display: flex; flex-direction: column; }
#agents:has(> .empty-state) { flex: 1; display: grid; align-items: center; }
.empty-state { background: transparent; border: 0; padding: 42px 22px; }
.empty-state > span:first-child { display: inline-grid; place-items: center; width: 66px; height: 66px; border-radius: 19px; color: #d0d0d0; background: #fafafa; }
.empty-state svg { width: 36px; height: 36px; color: #c9c9c9; }
.empty-state strong { color: #8b8b8b; font-size: calc(.875rem * var(--text-scale, 1)); margin-top: 19px; font-weight: 400; }
.empty-state p { max-width: 290px; margin: 6px auto 0; color: #aaa; font-size: calc(.75rem * var(--text-scale, 1)); line-height: 1.9; }
.scope-summary { border-color: #ebebeb; }
.scope-summary .eyebrow, .scope-summary p { color: #929292; }
.scope-summary strong { color: #555; }
.inspector-footer { border-color: #f1f1f1; color: #a0a0a0; font-size: .6875rem; }
.agent-card { border-color: #e6e6e6; border-radius: 12px; background: #fff; }
.agent-card h3 { color: #353535; }
.agent-card p, .timeline-item p { color: #777; }
.agent-card small, .agent-budget, .agent-footer small, .agent-budget-note, .execution-clock { color: #8a8a8a; }
.agent-symbol { background: #f5f5f5; color: #777; border-color: #e9e9e9; border-radius: 9px; }
.agent-card.is-working { background: #fcfefd; border-color: #c4dfd5; box-shadow: none; }
.agent-card.is-working:before { background: linear-gradient(90deg, transparent, #65a98e, transparent); }
.agent-card.is-working .agent-symbol { background: #eef8f3; border-color: #d5e9df; color: #42866b; }
.agent-card.is-working .agent-symbol:after { border-color: #95c5ae; }
.agent-card.is-working .status { background: #eaf5ef; color: #42866b; }
.agent-current-phase { color: #5a8e76; }
.phase-pulse { background: #6aa38a; }
.agent-budget strong { color: #737373; }
.agent-round-progress, .agent-round-progress::-webkit-progress-bar { background: #f0f0f0; }
.agent-round-progress::-webkit-progress-value { background: #8eb9a5; }
.agent-round-progress::-moz-progress-bar { background: #8eb9a5; }
.execution-summary { background: #f8f8f8; border-color: #e8e8e8; }
.execution-label, .execution-summary > small { color: #838383; }
.status { background: #f1f1f1; color: #777; }
.status.completed { background: #edf6f0; color: #438466; }
.status.running, .status.starting { background: #edf6f0; color: #438466; }
.status.failed, .status.interrupted, .status.blocked { background: #fbefed; color: #aa615a; }
.status.partial { background: #fff4dc; color: #906923; }
.timeline-item time { color: #999; }
.report-state { border-color: #e4e4e4; border-radius: 12px; }
.report-state-heading { color: #555; }
.report-state p { color: #777; }
.report-state small, .report-note { color: #969696; }
.report-ready { border-color: #c6ddcf; }
.report-ready .report-state-heading { color: #4c8971; }
.report-failed { border-color: #ecd5d1; }
.report-failed .report-state-heading { color: #a96d61; }
.report-actions .quiet-button { border-color: #e4e4e4; border-radius: 8px; }
.inspector-hidden .app-shell { grid-template-columns: var(--side-width) minmax(360px, 1fr); }
.notice, .environment-note { border-radius: 9px; font-size: .8125rem; }
.environment-note { color: #8b7861; background: #fbf8f2; border-color: #eee7db; }
dialog { border-color: #e3e3e3; border-radius: 18px; box-shadow: 0 20px 90px #0000001c; }
dialog::backdrop { background: #20202035; backdrop-filter: blur(3px); }
.dialog-header { border-color: #ebebeb; }
.dialog-header h2, .dialog-body h3, .section-heading h3 { color: #303030; }
.dialog-header .eyebrow { color: #999; }
.dialog-tabs button { color: #888; }
.dialog-tabs button.selected { color: #292929; border-color: #393939; }
.form-footer, .user-form { border-color: #e7e7e7; }
.options-context, .knowledge-status { background: #f7f7f7; border-color: #e7e7e7; color: #737373; border-radius: 10px; }
.field-help, .dialog-body label, .service-detail { color: #808080; }
th { color: #757575; background: #f7f7f7; }
td { color: #656565; border-color: #ececec; }
.report-preview-tools { background: #fafafa; }
.report-preview-tools > span { color: #888; }
.markdown-preview { color: #535353; }
.markdown-preview h1, .markdown-preview h2, .markdown-preview h3, .markdown-preview h4 { color: #303030; }
.markdown-preview h1, .markdown-preview hr { border-color: #e5e5e5; }
.markdown-preview pre { background: #f7f7f7; border-color: #e7e7e7; }
.markdown-preview code { background: #f0f0f0; }
.markdown-preview blockquote { background: #f8f8f8; border-color: #c6c6c6; color: #808080; }
.toast { background: #303030; border-radius: 10px; box-shadow: 0 6px 30px #00000015; }
.login-intro { background: #f7f7f7; border-color: #e8e8e8; }
.login-brand, .login-emblem, .login-intro h1 { color: #282828; }
.login-intro h1 { font-weight: 500; }
.login-description { color: #868686; }
.login-rule { background: #9d9d9d; }
.login-caption, .login-foot { color: #aaa; }
.login-form h2 { color: #242424; }
.login-form label { color: #737373; }
.login-help { color: #999; }
@media (max-width: 1280px) {
  :root { --side-width: 248px; }
  .brand-title { font-size: .9375rem; }
  .welcome { padding: 64px 20px 0; }
  .composer-region { padding-left: 24px; padding-right: 24px; }
  .suggestions { display: flex; }
  .suggestions button { padding: 8px 12px; }
  .suggestions button > span:first-child { position: static; }
  .inspector-heading { padding: 0 16px; }
}
@media (max-width: 1100px) {
  .app-shell, .inspector-hidden .app-shell { grid-template-columns: var(--side-width) minmax(0, 1fr); }
  .panel-resizer, .inspector { display: none; }
  body.inspector-open .inspector { width: min(480px, 100vw); border-color: #e4e4e4; box-shadow: -18px 0 60px #00000012; }
  .welcome { max-width: 720px; padding-top: clamp(52px, 10vh, 100px); }
  .composer-region { max-width: 720px; }
  .suggestions { display: flex; }
}
@media (max-width: 760px) {
  .app-shell, .inspector-hidden .app-shell { grid-template-columns: minmax(0, 1fr); }
  .sidebar { display: none; }
  .sidebar-open .sidebar { width: min(280px, 88vw); box-shadow: 15px 0 50px #00000018; padding-top: 24px; }
  .workspace-header { height: 64px; padding: 0 15px; }
  .conversation-area:has(#welcome:not([hidden])) .workspace-heading { visibility: visible; }
  .workspace-heading h1 { font-size: .9375rem; }
  .workspace-heading p { font-size: .625rem; }
  .welcome { padding: 44px 18px 0; }
  .welcome h2 { font-size: 1.5rem; letter-spacing: -.4px; }
  .welcome > p:not(.eyebrow) { font-size: .75rem; }
  .welcome-modes { margin-top: 18px; }
  .composer-region { padding: 12px 18px 16px; }
  .conversation-area:has(#welcome:not([hidden])) .composer-region { margin-top: 38px; }
  .suggestions { display: flex; gap: 7px; margin-bottom: 11px; }
  .suggestions button { padding: 7px 11px; }
  .suggestions strong { font-size: .6875rem; }
  .composer textarea { padding: 16px; font-size: .875rem; min-height: 104px; }
  .target-input-row { margin: 0 15px; padding: 10px 0; }
  .target-input-row input { font-size: .75rem; }
  .scope-badge { display: none; }
  .composer-toolbar { gap: 7px; }
  .composer-toolbar .quiet-button, .rag-toggle { font-size: .6875rem; }
  .composer-footer, .scope-reminder, .scope-reminder button { font-size: .625rem; }
  .scope-reminder button { margin-left: auto; }
  .workspace-disclaimer { font-size: .5625rem; }
  .inspector-reading-tools { padding: 10px 16px; }
}
@media (max-height: 760px) {
  .sidebar { padding-top: 20px; }
  .brand { margin-bottom: 17px; }
  .sidebar-history-label { margin-top: 22px; }
  .welcome { padding-top: 32px; }
  .conversation-area:has(#welcome:not([hidden])) .composer-region { margin-top: 30px; margin-bottom: 24px; }
  .conversation-area:has(#welcome:not([hidden])) { overflow-y: auto; }
  .conversation-area:has(#welcome:not([hidden])) .workspace-disclaimer { position: static; margin: auto 18px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  button { transition: none; }
}

/* Task controls belong to the composer, beside the send action. */
.composer-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.composer-actions .send-button { margin-left: 0; }
.composer-actions .status { font-size: .6875rem; padding: 3px 8px; border-radius: 6px; white-space: nowrap; }
.composer-toolbar .task-action { min-height: 34px; padding: 6px 11px; border: 1px solid #dedede; border-radius: 9px; background: #fff; color: #444; font-size: .75rem; white-space: nowrap; }
.composer-toolbar .task-action:hover { background: #f2f2f2; border-color: #c4c4c4; }
.composer-toolbar #stop-task { color: #a35950; border-color: #e8d7d3; }
.composer-toolbar #stop-task:hover { background: #fcf4f2; }
.composer-toolbar #resume-task, .composer-toolbar #start-task { background: #292929; border-color: #292929; color: #fff; }
.composer-toolbar #resume-task:hover, .composer-toolbar #start-task:hover { background: #444; }
.composer-note:not(:empty) { flex: 1 0 100%; order: 1; padding: 3px 3px 0; overflow-wrap: anywhere; }
body.reports-mode .app-shell, body.reports-mode.inspector-hidden .app-shell { grid-template-columns: var(--side-width) minmax(0, 1fr); }
body.reports-mode .conversation-area, body.reports-mode .inspector, body.reports-mode .panel-resizer { display: none; }
.reports-page { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: #fafafa; }
.reports-header { display: flex; align-items: center; gap: 12px; min-height: 91px; padding: 20px 34px; border-bottom: 1px solid var(--line); background: #fff; flex-shrink: 0; }
.reports-header > div { flex: 1; min-width: 0; }
.reports-header h1 { margin: 0; color: #292929; font-size: 1.1875rem; font-weight: 600; }
.reports-header p { margin: 5px 0 0; color: #929292; font-size: .75rem; }
.reports-header > .quiet-button { border: 1px solid #e3e3e3; padding: 7px 12px; font-size: .75rem; }
.reports-header > .quiet-button svg { width: 15px; height: 15px; }
.reports-content { padding: 28px 32px 22px; overflow: auto; min-height: 0; }
.reports-overview { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 25px; }
.reports-overview > div { background: #fff; border: 1px solid #e9e9e9; border-radius: 12px; padding: 17px 21px; }
.reports-overview span { display: flex; align-items: center; gap: 7px; color: #8b8b8b; font-size: .75rem; }
.reports-overview strong { display: block; color: #353535; font-size: 1.75rem; line-height: 1.4; font-weight: 550; margin-top: 9px; font-variant-numeric: tabular-nums; }
.report-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #aaa; flex-shrink: 0; }
.report-dot.ready, .report-status.ready .report-dot { background: #38a17c; }
.report-dot.generating, .report-status.generating .report-dot, .report-status.queued .report-dot { background: #bc9b53; }
.report-dot.failed, .report-status.failed .report-dot { background: #c57d70; }
.reports-card { background: #fff; border: 1px solid #e7e7e7; border-radius: 13px; overflow: hidden; }
.reports-filters { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 21px 22px; border-bottom: 1px solid #ededed; }
.reports-filters label { margin: 0; display: flex; align-items: center; min-width: 0; }
.reports-filters input, .reports-filters select { min-height: 36px; font-size: .75rem; padding: 7px 10px; border-color: #e0e0e0; border-radius: 7px; }
.report-search { gap: 8px; flex: 1 1 180px; max-width: 320px; border: 1px solid #e0e0e0; border-radius: 7px; padding: 0 10px; }
.report-search:focus-within { border-color: #aaa; }
.report-search svg { width: 15px; height: 15px; color: #969696; }
.report-search input { width: 100%; border: 0; padding-left: 0; min-width: 0; outline: none; }
.report-search input:focus { outline: none; }
.report-date-range { display: flex; align-items: center; gap: 7px; color: #aaa; }
.report-date-range input { width: 139px; color: #777; }
.reports-filters .primary-button, .reports-filters .quiet-button { min-height: 36px; padding: 7px 13px; font-size: .75rem; gap: 6px; border-radius: 7px; }
.reports-filters button svg { width: 14px; height: 14px; }
#reports-error { margin: 15px 22px 0; }
.reports-list-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 15px 22px; }
#reports-result-count { color: #979797; font-size: .75rem; }
.reports-list-toolbar > div { display: flex; align-items: center; gap: 14px; }
.reports-list-toolbar label { display: flex; align-items: center; gap: 8px; color: #979797; font-size: .6875rem; }
.reports-list-toolbar select { padding: 4px 7px; font-size: .6875rem; border-color: #e7e7e7; border-radius: 6px; }
.reports-list-toolbar button { padding: 6px 9px; font-size: .75rem; }
.reports-list-toolbar button svg { width: 15px; height: 15px; }
.reports-table-wrap { width: 100%; overflow-x: auto; }
.reports-table { width: 100%; min-width: 970px; border-collapse: collapse; table-layout: auto; font-size: .75rem; }
.reports-table th { background: #f9f9f9; padding: 15px 16px; border-top: 1px solid #efefef; border-bottom: 1px solid #ededed; color: #707070; font-weight: 500; text-align: left; white-space: nowrap; }
.reports-table th button { display: flex; align-items: center; gap: 8px; font-size: .75rem; padding: 0; }
.reports-table th button span { color: #a0a0a0; }
.reports-table td { padding: 17px 16px; height: 77px; border-bottom: 1px solid #f0f0f0; vertical-align: middle; }
.reports-table tbody tr:hover { background: #fcfcfc; }
.reports-table tbody tr:last-child td { border-bottom: 0; }
.reports-table .report-select { width: 38px; padding-right: 0; padding-left: 22px; }
.reports-table input[type=checkbox] { appearance: auto; width: 14px; height: 14px; padding: 0; margin: 0; accent-color: #4c7467; cursor: pointer; }
.reports-table input[type=checkbox]:disabled { cursor: not-allowed; }
.report-name-cell { min-width: 180px; max-width: 300px; }
.report-name-cell strong { display: block; color: #414141; font-size: .8125rem; line-height: 1.7; font-weight: 500; overflow-wrap: anywhere; }
.report-name-cell small { display: block; margin-top: 4px; color: #a3a3a3; font-size: .6875rem; }
.report-date-cell { color: #858585; white-space: nowrap; font-variant-numeric: tabular-nums; font-size: .6875rem; }
.report-status { display: inline-flex; align-items: center; gap: 6px; font-size: .6875rem; color: #8b8b8b; white-space: nowrap; }
.report-status.ready { color: #338b6e; }
.report-status.generating, .report-status.queued { color: #a1864e; }
.report-status.failed { color: #b46d60; }
.report-status-note { display: block; max-width: 140px; margin-top: 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #aaa; font-size: .625rem; }
.report-creator { color: #858585; max-width: 140px; overflow-wrap: anywhere; }
.report-formats { min-width: 88px; white-space: nowrap; }
.file-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; height: 22px; padding: 0 5px; margin-right: 5px; border: 1px solid; border-radius: 4px; font-size: .5625rem; font-weight: 600; line-height: 1; }
.file-badge.pdf { border-color: #efdcd7; color: #b97466; background: #fcf4f1; }
.file-badge.markdown { border-color: #dce5e1; color: #648878; background: #f1f7f4; }
.report-placeholder { color: #b2b2b2; }
.report-size { color: #969696; white-space: nowrap; font-size: .6875rem; font-variant-numeric: tabular-nums; }
.report-row-actions { display: flex; align-items: center; gap: 9px; white-space: nowrap; }
.report-row-action { padding: 5px 0; color: #658477; font-size: .6875rem; }
.report-row-action:hover { color: #2f5f4b; text-decoration: underline; text-underline-offset: 3px; }
.report-row-action:last-child { color: #969696; }
.reports-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 260px; padding: 40px 24px; }
.reports-empty > span { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: #f7f7f7; color: #bcbcbc; }
.reports-empty svg { width: 27px; height: 27px; }
.reports-empty strong { font-size: .875rem; color: #818181; font-weight: 400; margin-top: 16px; }
.reports-empty p { font-size: .75rem; color: #a4a4a4; line-height: 1.8; margin: 7px 0 0; text-align: center; }
.reports-pagination { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; border-top: 1px solid #eee; padding: 15px 22px; color: #aaa; font-size: .625rem; }
.reports-pagination > div { display: flex; align-items: center; gap: 8px; }
.reports-pagination label { display: inline-flex; align-items: center; gap: 6px; }
.reports-pagination select { padding: 3px 6px; border-color: #e8e8e8; font-size: .625rem; border-radius: 5px; }
.reports-pagination .icon-button { width: 27px; height: 27px; font-size: 1.125rem; }
#reports-page-label { color: #838383; min-width: 43px; text-align: center; font-variant-numeric: tabular-nums; }
.reports-footnote { display: flex; align-items: center; gap: 7px; margin: 16px 5px 0; color: #a0a0a0; font-size: .625rem; line-height: 1.9; }
.reports-footnote svg { width: 12px; height: 12px; }
@media (max-width: 1100px) {
  .reports-content { padding: 22px; }
  .reports-header { padding: 20px 24px; }
  .reports-overview { gap: 12px; }
  .reports-overview > div { padding: 15px; }
  .reports-filters { padding: 17px; }
  .report-search { max-width: none; }
}
@media (max-width: 760px) {
  body.reports-mode .app-shell, body.reports-mode.inspector-hidden .app-shell { grid-template-columns: minmax(0, 1fr); }
  .reports-header { min-height: 78px; padding: 14px 15px; gap: 8px; }
  .reports-header h1 { font-size: 1rem; }
  .reports-header p { font-size: .625rem; }
  .reports-header > .quiet-button { padding: 6px 9px; font-size: .6875rem; }
  .reports-content { padding: 18px 14px; }
  .reports-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 17px; }
  .reports-overview > div { padding: 13px 15px; }
  .reports-overview strong { font-size: 1.5rem; margin-top: 6px; }
  .reports-overview span { font-size: .6875rem; }
  .reports-filters { padding: 14px; gap: 8px; }
  .report-search { flex-basis: 100%; }
  .report-date-range { flex: 1 0 100%; }
  .report-date-range label { flex: 1; }
  .report-date-range input { width: 100%; min-width: 0; }
  .reports-list-toolbar { padding: 12px 14px; }
  .reports-list-toolbar > div { gap: 7px; }
  .reports-list-toolbar label { gap: 5px; font-size: .625rem; }
  .reports-list-toolbar button { font-size: .6875rem; padding: 6px; }
  .reports-pagination { padding: 13px 14px; }
  .reports-pagination > span { flex-basis: 100%; }
  .reports-pagination > div { margin-left: auto; }
  .reports-footnote { align-items: flex-start; font-size: .5625rem; }
  .reports-footnote svg { margin-top: 3px; }
  #reports-error { margin: 12px 14px 0; }
  .composer-actions { gap: 6px; }
  .composer-toolbar .task-action { padding: 6px 9px; font-size: .6875rem; }
  .composer-actions .status { font-size: .625rem; }
}

.reports-table th:last-child, .reports-table td:last-child { position: sticky; right: 0; background: #fff; box-shadow: -8px 0 12px -12px #00000030; }
.reports-table th:last-child { background: #f9f9f9; }
.reports-table tbody tr:hover td:last-child { background: #fcfcfc; }
.report-name-cell strong { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Short dividers separate report header labels without adding body grid lines. */
.reports-table th { position: relative; }
.reports-table th:nth-child(n+3)::before { content: ''; position: absolute; left: 0; top: 50%; width: 1px; height: 22px; background: #e4e4e4; transform: translateY(-50%); }

/* Report/review runs after assessment and keeps its own live state. */
.report-agent-card{border-color:#d9e4df;background:#fcfdfb}.report-agent-card header h3{min-width:140px}.report-agent-card .agent-symbol{background:#f0f5f1;color:#668579;border-color:#e0e9e2}.report-agent-stages{display:flex;flex-wrap:wrap;gap:7px 11px;list-style:none;margin:15px 0 13px;padding:0}.report-agent-stages li{display:flex;align-items:center;gap:5px;color:#a0aaa4;font-size:calc(.6875rem * var(--text-scale,1))}.report-agent-stages li:before{content:'';width:5px;height:5px;border:1px solid #cbd5ce;border-radius:50%;flex-shrink:0}.report-agent-stages li.done{color:#698b7b}.report-agent-stages li.done:before{background:#8db29e;border-color:#8db29e}.report-agent-stages li.current{color:#3f7763}.report-agent-stages li.current:before{background:#628e7b;border-color:#628e7b}.report-agent-scope{display:block;line-height:1.9}.report-agent-card .report-agent-open{padding:3px 0;margin-left:auto;font-size:calc(.6875rem * var(--text-scale,1));color:#5a8470}.report-agent-legacy{display:block;margin-top:8px;line-height:1.8;color:#a2aaa5}.report-agent-card.failed .report-agent-stages li.current{color:#ac7166}.review-summary{padding:16px;margin-top:15px;background:#f7faf7;border:1px solid #e1e9e0;border-radius:11px}.review-summary h3{font-size:calc(.875rem * var(--text-scale,1));font-weight:500;margin:0 0 11px;color:#4e6a59}.review-summary-counts{display:flex;flex-wrap:wrap;gap:7px}.review-summary-counts span{padding:3px 7px;background:#edf3ed;border-radius:5px;color:#73907b;font-size:calc(.6875rem * var(--text-scale,1))}.review-summary p{font-size:calc(.75rem * var(--text-scale,1));line-height:1.9;color:#839488;margin:12px 0 0}
