/* Readable three-column workspace. Width and text preferences are browser-local. */
:root {
  --side-width: 252px;
  --inspector-width: 416px;
  --muted: #63748b;
  --faint: #738399;
}
.app-shell { grid-template-columns: 56px var(--side-width) minmax(360px, 1fr) 8px var(--inspector-width); }
.rail { padding-top: 24px; gap: 18px; }
.rail-button { width: 40px; height: 40px; }
.rail-button svg { width: 22px; height: 22px; }
.rail-button.active { box-shadow: inset 3px 0 #456e9d; }
.sidebar { padding: 24px 14px 16px; }
.brand { display: flex; align-items: center; gap: 10px; margin: 0 4px 25px; }
.brand-mark { display: grid; place-items: center; width: 36px; height: 40px; color: var(--accent); background: #e4ecf7; border: 1px solid #d7e2f0; border-radius: 10px; flex-shrink: 0; }
.brand-mark svg { width: 24px; height: 24px; }
.brand-title { font-size: 1.0625rem; letter-spacing: 0; }
.brand small { font-size: .625rem; letter-spacing: 1.3px; color: #697d96; }
.new-session { padding: 12px 10px; gap: 8px; font-weight: 600; background: var(--accent); color: #fff; border-color: var(--accent); box-shadow: 0 3px 8px #294f7c12; }
.new-session:hover { background: #204269; }
.new-session svg { width: 19px; height: 19px; }
.new-session kbd { color: #e2eaf5; border-color: #ffffff40; font-size: .75rem; }
.sidebar-group-label { margin: 22px 10px 7px; color: #697c95; font-size: .75rem; font-weight: 600; letter-spacing: .8px; }
.sidebar-links { gap: 4px; margin: 0; }
.sidebar-links button { min-height: 46px; padding: 8px 10px; gap: 10px; color: #4c607c; position: relative; }
.sidebar-links button.active { background: #e3ecf9; color: #294f7c; font-weight: 600; }
.sidebar-links button.active::before { content: ''; position: absolute; left: 0; height: 23px; width: 3px; border-radius: 3px; background: #456e9d; }
.nav-icon { display: grid; place-items: center; width: 29px; height: 29px; flex-shrink: 0; color: #58769a; background: #eaf0f7; border: 1px solid #dfe7f1; border-radius: 7px; }
.nav-icon svg { width: 18px; height: 18px; }
.active .nav-icon { color: #294f7c; background: #d4e2f5; border-color: #cadbf0; }
.nav-chevron { margin-left: auto; color: #6380a2; font-size: 1.25rem; }
.nav-count { display: inline-flex; justify-content: center; align-items: center; min-width: 23px; padding: 0 5px; background: #e9eef6; color: #617793; border-radius: 5px; font-size: .75rem; }
.sidebar-history-label { border-top: 1px solid #dce4ef; margin: 20px 6px 10px; padding-top: 18px; align-items: center; color: #637791; font-weight: 600; }
.sidebar-history-label > span:first-child { display: flex; align-items: center; gap: 7px; }
.sidebar-history-label svg { width: 17px; height: 17px; }
.history-search { border: 1px solid #dfe6ef; border-radius: 7px; padding: 0 9px; margin: 0 4px 10px; background: #fff; }
.history-search input { font-size: .8125rem; padding: 9px 0; }
.history-search:focus-within { border-color: #6c8fb6; outline: 2px solid #dfe9f7; }
.sessions { min-height: 60px; }
.session-item { display: flex; align-items: flex-start; gap: 9px; padding: 12px 9px; border: 1px solid transparent; }
.session-item.selected { border-color: #cbdbee; background: #e7effa; }
.session-icon { color: #7287a1; margin-top: 2px; }
.session-icon svg { width: 18px; height: 18px; }
.session-content { flex: 1; min-width: 0; }
.session-item strong { font-size: .875rem; color: #3e5573; }
.session-item small { flex-wrap: wrap; font-size: .75rem; color: #63758d; }
.session-status { display: inline-flex; align-items: center; gap: 5px; }
.session-status::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: #8899af; }
.session-status[data-status=running]::before, .session-status[data-status=completed]::before { background: #27816c; }
.session-status[data-status=failed]::before, .session-status[data-status=interrupted]::before { background: #b74848; }
.sidebar-bottom { padding-top: 14px; }
.sidebar-bottom strong { font-size: .875rem; }
.sidebar-bottom small { color: #667b96; }
.avatar { width: 35px; height: 35px; }
.workspace-header { padding: 0 24px; height: 88px; }
.workspace-heading p { color: #6c7f98; }
.welcome { max-width: 680px; padding: clamp(28px, 5vh, 64px) 28px 24px; }
.welcome > p:not(.eyebrow) { color: #657990; font-size: 1rem; }
.welcome h2 { font-size: clamp(1.6rem, 2.05vw, 2rem); }
.welcome .eyebrow { font-size: .8125rem; color: #657b96; }
.suggestions { gap: 10px; margin-top: 24px; }
.suggestions button { padding: 15px 13px; }
.suggestions strong { font-size: .9375rem; }
.suggestions small { color: #697b93; }
.scope-reminder { color: #697b93; }
.conversation { max-width: 800px; padding: 24px; }
.message p { font-size: 1rem; color: #465d7a; line-height: 1.85; }
.message pre { font-size: .875rem; color: #4c6380; }
.message header time { color: #73839b; }
.task-meta span { color: #657994; }
.composer-region { width: 100%; max-width: 800px; margin: 0 auto; padding: 16px 24px; }
.composer textarea { font-size: 1rem; min-height: 104px; }
.target-input-row input { font-size: .9375rem; }
.scope-badge, .composer-note, .composer-footer { color: #667c98; }
.composer-toolbar { flex-wrap: wrap; gap: 8px; }
.send-button { width: 37px; height: 37px; }
.panel-resizer { cursor: col-resize; touch-action: none; position: relative; background: #f6f8fc; border-left: 1px solid #e1e7ef; border-right: 1px solid #e1e7ef; z-index: 2; }
.panel-resizer span { position: absolute; left: 2px; top: calc(50% - 24px); height: 48px; width: 2px; border-radius: 3px; background: #b6c7db; }
.panel-resizer:hover, .panel-resizer:focus-visible, .resizing-inspector .panel-resizer { background: #dce8f7; outline: none; }
.panel-resizer:focus-visible { box-shadow: inset 0 0 0 2px #6c8fb6; }
.panel-resizer:hover span, .resizing-inspector .panel-resizer span { background: #456e9d; }
.resizing-inspector, .resizing-inspector * { cursor: col-resize !important; user-select: none !important; }
.inspector { --text-scale: 1; border-left: 0; }
.inspector-heading { padding: 0 20px; gap: 10px; height: auto; min-height: 88px; flex-wrap: wrap; align-content: center; }
.inspector-heading > div { min-width: 0; }
.inspector-heading strong { font-size: calc(1.0625rem * var(--text-scale)); }
.inspector-heading small { color: #6e829c; }
.live-label { color: #667e99; }
.inspector-close { display: none; }
.inspector-reading-tools { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; padding: 10px 18px; border-bottom: 1px solid var(--line); background: #f1f5fa; color: #617793; font-size: .8125rem; flex-shrink: 0; }
.text-scale-control { display: flex; align-items: center; background: #fff; border: 1px solid #d9e3ef; border-radius: 6px; }
.text-scale-control button { display: grid; place-items: center; width: 32px; height: 30px; }
.text-scale-control button:hover { background: #e8eff9; }
.text-scale-control svg { width: 14px; height: 14px; }
.text-scale-control output { min-width: 47px; text-align: center; font-variant-numeric: tabular-nums; }
.reset-layout { display: inline-flex; align-items: center; gap: 5px; padding: 5px; margin-left: auto; border-radius: 5px; }
.reset-layout:hover { background: #e2eaf5; }
.reset-layout svg { width: 15px; height: 15px; }
.inspector-tabs { gap: 8px; padding: 0 18px; }
.inspector-tabs button { flex: 1; color: #6d7f96; white-space: nowrap; font-size: calc(.875rem * var(--text-scale)); }
.inspector-tabs button.selected { font-weight: 600; }
.inspector-body { padding: 20px 18px; scrollbar-gutter: stable; }
.inspector-section-title, .inspector-section-title span:last-child { color: #667d98; }
.agent-card { padding: 16px; }
.agent-card header { flex-wrap: wrap; gap: 9px; }
.agent-card h3 { flex: 1; min-width: 120px; color: #345271; font-weight: 600; }
.agent-card header .status { margin-left: auto; }
.agent-symbol { width: 34px; height: 34px; }
.agent-symbol svg { width: 19px; height: 19px; }
.agent-card p { font-size: calc(.9375rem * var(--text-scale)); color: #596e88; line-height: 1.85; }
.agent-card small, .agent-budget, .agent-footer small, .agent-budget-note { color: #6d8098; }
.agent-budget, .agent-footer { flex-wrap: wrap; }
.agent-budget-note { font-size: calc(.75rem * var(--text-scale)) !important; }
.execution-clock { font-size: calc(.8125rem * var(--text-scale)); color: #577491; white-space: normal; }
.execution-label, .execution-summary > small { color: #637b97; }
.scope-summary .eyebrow { color: #637b97; }
.scope-summary strong { font-size: calc(.9375rem * var(--text-scale)); color: #45627f; }
.scope-summary p { color: #6a7f99; font-size: calc(.875rem * var(--text-scale)); }
.empty-note, .empty-state p { color: #6e8097; }
.empty-state strong { color: #4d6786; }
.empty-state p { font-size: calc(.875rem * var(--text-scale, 1)); }
.inspector-footer { color: #6d819b; flex-shrink: 0; }
.inspector-reading-tools, .inspector-footer { overflow-wrap: anywhere; }
.inspector-footer { font-size: .75rem; }
.inspector-reading-tools .text-scale-control { flex-shrink: 0; }
.timeline-item header { flex-wrap: wrap; }
.timeline-item p { font-size: calc(.9375rem * var(--text-scale)); color: #5e7490; }
.timeline-item time { color: #70829b; }
.report-state p { color: #60758f; font-size: calc(.9375rem * var(--text-scale)); }
.report-state small, .report-note { color: #6c809a; }
.inspector-hidden .app-shell { grid-template-columns: 56px var(--side-width) minmax(360px, 1fr); }
.inspector-hidden .panel-resizer { display: none; }
@media (max-width: 1280px) {
  :root { --side-width: 236px; }
  .brand-title { font-size: 1rem; }
  .workspace-header { padding: 0 18px; }
  .workspace-heading p { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .welcome { padding: 28px 20px 20px; }
  .suggestions { grid-template-columns: 1fr; }
  .suggestions button { padding: 12px 14px 12px 44px; }
  .suggestions button > span:first-child { position: absolute; left: 13px; top: 14px; }
  .suggestions small { margin-top: 3px; }
  .composer-region { padding: 12px 18px; }
}
@media (max-width: 1100px) {
  .app-shell, .inspector-hidden .app-shell { grid-template-columns: 56px var(--side-width) minmax(0, 1fr); }
  .panel-resizer, .inspector { display: none; }
  body.inspector-open .inspector { display: flex; position: fixed; right: 0; top: 0; bottom: 0; width: min(480px, 100vw); z-index: 25; border-left: 1px solid #d8e2ef; box-shadow: -18px 0 60px #1e38522b; }
  .inspector-close { display: inline-flex; flex-shrink: 0; }
  .welcome { max-width: 680px; padding: 40px 28px 24px; }
  .suggestions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .suggestions button { padding: 16px; }
  .suggestions button > span:first-child { position: static; }
}
@media (max-width: 760px) {
  .app-shell, .inspector-hidden .app-shell { grid-template-columns: minmax(0, 1fr); }
  .rail, .sidebar { display: none; }
  .mobile-only { display: inline-flex; }
  .sidebar-open .sidebar { display: flex; position: fixed; left: 0; top: 0; bottom: 0; width: min(280px, 90vw); z-index: 30; box-shadow: 15px 0 50px #1d395530; }
  .workspace-header { padding: 0 14px; height: 78px; gap: 8px; }
  .workspace-heading h1 { font-size: 1.0625rem; }
  .workspace-heading p { font-size: .75rem; }
  .run-controls { gap: 3px; }
  .run-controls .status { font-size: .75rem; }
  .run-controls .quiet-button { font-size: .8125rem; }
  .welcome { padding: 28px 22px 20px; }
  .suggestions { grid-template-columns: 1fr; }
  .suggestions button { padding: 12px 14px 12px 44px; }
  .suggestions button > span:first-child { position: absolute; left: 13px; top: 14px; }
  .scope-reminder, .scope-reminder button, .composer-footer { font-size: .75rem; }
  .composer-region { padding: 12px 14px; }
  .composer-toolbar { gap: 6px; }
  .composer-toolbar .quiet-button { font-size: .8125rem; }
  .rag-toggle { font-size: .75rem; }
  .composer-note { display: none; }
  .target-input-row { padding: 10px 12px; }
  .conversation { padding: 20px 18px; }
  .inspector-heading { padding: 0 16px; }
}
@media (max-height: 760px) {
  .sidebar { padding-top: 16px; }
  .brand { margin-bottom: 16px; }
  .sidebar-group-label { margin-top: 12px; }
  .sidebar-links button { min-height: 40px; }
  .sidebar-history-label { margin-top: 12px; padding-top: 12px; }
}

.composer-mode{font-size:.8rem;line-height:1.6;color:#60758d;margin:10px 3px}.suggestions [aria-pressed="true"]{background:#edf4fa;border-color:#94b1cd}
