:root {
  color-scheme: dark;
  font-family: Inter, Geist, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-synthesis: none;
  color: #e9ebf3;
  background: #101116;
  --bg: #101116;
  --sidebar: #13141a;
  --panel: #181a22;
  --raised: #20222d;
  --inset: #13151c;
  --hover: #252834;
  --line: #2b2e3a;
  --line-strong: #414554;
  --text: #e9ebf3;
  --subtle: #bdc2d0;
  --muted: #949bac;
  --dim: #858d9f;
  --accent: #bac6ff;
  --accent-panel: #252945;
  --accent-line: #474e7b;
  --green: #9bd8bb;
  --amber: #ebc786;
  --red: #f3a8ac;
  --blue: #b4c8ff;
  --radius: 12px;
  --mono: 'SF Mono', 'IBM Plex Mono', ui-monospace, Menlo, Consolas, monospace;
  --sidebar-width: 214px;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 320px; font-size:calc(15px * var(--ui-scale, 1)); line-height: 1.65; }
button, input, textarea, select { font: inherit; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; border: 0; background: none; color: inherit; }
button:disabled { opacity: .5; cursor: wait; }
a { color: inherit; text-decoration: none; }
:where(button, a, input, textarea, select, summary):focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { color: #fff; background: #4a5488; }
svg { width: 20px; height: 20px; flex-shrink: 0; vertical-align: middle; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
h1, h2, h3, h4, p { margin: 0; }
h1 { font-size:calc(30px * var(--ui-scale, 1)); line-height: 1.3; letter-spacing: -.7px; font-weight: 620; }
h2 { font-size:calc(20px * var(--ui-scale, 1)); font-weight: 590; letter-spacing: -.25px; }
h3 { font-size:calc(16px * var(--ui-scale, 1)); font-weight: 570; }
small { font-size:calc(13px * var(--ui-scale, 1)); color: var(--muted); }
strong { font-weight: 570; }
.muted { color: var(--muted); }
.eyebrow { color: var(--muted); font: 600 11px/1.6 var(--mono); letter-spacing: .11em; }
.mono { font: 12px/1.6 var(--mono); font-variant-numeric: tabular-nums; }
.helper { font-size:calc(12px * var(--ui-scale, 1)); color: var(--muted); }

/* Desktop frame */
.shell { display: grid; grid-template-columns: var(--sidebar-width) minmax(0, 1fr); min-height: 100vh; }
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  width: var(--sidebar-width);
  overflow-y: auto;
  padding: 20px 12px 12px;
  background: linear-gradient(160deg, #171820, var(--sidebar) 27%);
  border-right: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 9px; padding: 0 10px 23px; font-size:calc(18px * var(--ui-scale, 1)); letter-spacing: .14em; font-weight: 720; }
.brand svg { width: 27px; height: 27px; color: #dbdfff; fill: currentColor; stroke: none; }
.workspace { display: flex; align-items: center; gap: 10px; padding: 10px; margin: 0 1px 24px; border: 1px solid var(--line); border-radius: 8px; background: #ffffff05; }
.workspace-icon { display: grid; place-items: center; flex: 0 0 31px; height: 31px; border-radius: 6px; border: 1px solid var(--accent-line); background: #2a2e46; color: #dce2ff; font: 600 14px var(--mono); }
.workspace strong { display: block; font-size:calc(13px * var(--ui-scale, 1)); }
.workspace small { display: block; font-size:calc(11px * var(--ui-scale, 1)); white-space: nowrap; }
.nav-label { padding: 0 10px 7px; color: var(--dim); font: 11px/1.6 var(--mono); letter-spacing: .03em; }
.nav-item { display: flex; align-items: center; gap: 10px; width: 100%; margin: 2px 0; padding: 8px 9px; border: 1px solid transparent; border-radius: 7px; color: var(--subtle); text-align: left; font-size:calc(14px * var(--ui-scale, 1)); transition: background .15s, color .15s; }
.nav-item svg { width: 17px; height: 17px; color: var(--muted); }
.nav-item:hover { background: #ffffff0a; color: var(--text); }
.nav-item.active { background: #252739; border-color: #34374f; color: #e0e5ff; }
.nav-item.active svg { color: var(--accent); }
.nav-item .count { margin-left: auto; min-width: 21px; border-radius: 4px; background: #373c58; color: #e3e7ff; text-align: center; font: 11px/19px var(--mono); }
.sidebar-bottom { margin-top: auto; padding-top: 28px; }
.local-card { display: flex; align-items: center; gap: 8px; margin: 10px 3px 0; padding: 12px 7px 4px; border-top: 1px solid var(--line); color: var(--muted); font-size:calc(11px * var(--ui-scale, 1)); }
.local-card .mono { font-size:calc(10px * var(--ui-scale, 1)); }
.live-dot { display: inline-block; flex: 0 0 6px; width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px #9bd8bb33; }
.content { grid-column: 2; min-width: 0; background: radial-gradient(ellipse at 55% 0%, #191b29 0, transparent 520px), var(--bg); }
.topbar {
  position: sticky;
  z-index: 9;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 58px;
  padding: 0 28px;
  border-bottom: 1px solid #8389a32a;
  background: #15161de8;
  backdrop-filter: blur(20px) saturate(125%);
}
.crumb { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size:calc(13px * var(--ui-scale, 1)); }
.crumb span:last-child { color: var(--text); }
.top-right { display: flex; align-items: center; gap: 18px; }
.search-btn { display: flex; align-items: center; gap: 8px; padding: 4px 7px; border-radius: 6px; color: var(--subtle); font-size:calc(13px * var(--ui-scale, 1)); }
.search-btn:hover { background: #ffffff0a; }
.search-btn svg { width: 17px; height: 17px; }
.search-btn kbd { padding: 0 5px; border: 1px solid var(--line-strong); border-radius: 4px; color: var(--muted); font: 11px/18px var(--mono); }
.avatar { display: grid; place-items: center; width: 27px; height: 27px; border: 1px solid var(--line-strong); border-radius: 50%; background: #27293a; color: #e0e4fd; font-size:calc(12px * var(--ui-scale, 1)); }
.environment { display: flex; align-items: center; gap: 7px; color: var(--subtle); font-size:calc(12px * var(--ui-scale, 1)); }
.main { max-width: 1540px; margin: 0 auto; padding: 32px 28px 48px; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 25px; }
.page-heading .eyebrow { margin-bottom: 6px; }
.page-heading p { max-width: 66ch; margin-top: 6px; color: var(--muted); font-size:calc(14px * var(--ui-scale, 1)); }
.page-footer { display: flex; justify-content: space-between; gap: 12px; margin-top: 30px; color: var(--muted); font-size:calc(12px * var(--ui-scale, 1)); }

/* Shared surfaces and controls */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; padding: 7px 13px; border: 1px solid var(--line-strong); border-radius: 7px; background: var(--raised); color: var(--text); font-size:calc(14px * var(--ui-scale, 1)); font-weight: 540; white-space: nowrap; transition: background .15s, border-color .15s; }
.button:hover { border-color: #575d72; background: var(--hover); }
.button.primary { border-color: #d1d8ff; background: #d1d8ff; color: #171b31; box-shadow: inset 0 1px #ffffff42; }
.button.primary:hover { border-color: #e5e9ff; background: #e5e9ff; }
.button.quiet { border-color: var(--line); background: #ffffff04; color: var(--subtle); }
.button.quiet:hover { border-color: var(--line-strong); background: #ffffff0b; color: var(--text); }
.button.danger { border-color: #6a424e; background: #3c2630; color: var(--red); }
.button.small { min-height: 31px; padding: 4px 9px; font-size:calc(13px * var(--ui-scale, 1)); }
.button svg { width: 16px; height: 16px; }
.button-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.text-link { padding: 0; color: var(--accent); font-size:calc(13px * var(--ui-scale, 1)); }
.text-link:hover { color: #e6eaff; text-decoration: underline; text-underline-offset: 3px; }
.icon-button { display: inline-grid; place-items: center; width: 32px; height: 32px; padding: 4px; border-radius: 6px; color: var(--subtle); }
.icon-button:hover { background: var(--hover); color: var(--text); }
.panel { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); box-shadow: inset 0 1px #ffffff04; }
.panel + .panel { margin-top: 18px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 18px; border-bottom: 1px solid var(--line); }
.panel-head h2, .section-title h2 { font-size:calc(16px * var(--ui-scale, 1)); }
.panel-body { padding: 18px; }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 22px 0 12px; }
.note { padding: 11px 14px; border: 1px solid #353b54; border-radius: 8px; background: #202439; color: #c2c9e1; font-size:calc(13px * var(--ui-scale, 1)); line-height: 1.7; }
.note.amber { border-color: #524336; background: #2c241e; color: #e8c998; }
.note.red, .inline-error { border-color: #68424d; background: #34232c; color: #f2b5be; }
.inline-error { margin-bottom: 16px; padding: 11px 14px; border: 1px solid #68424d; border-radius: 7px; font-size:calc(13px * var(--ui-scale, 1)); }
.empty { padding: 40px 22px; color: var(--muted); text-align: center; }
.empty svg { width: 28px; height: 28px; margin-bottom: 10px; color: #a3acd1; }
.empty h3 { margin-bottom: 7px; color: var(--text); }
.empty p { max-width: 52ch; margin: 0 auto 16px; font-size:calc(14px * var(--ui-scale, 1)); }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 2px 7px; border: 1px solid #373a49; border-radius: 5px; background: #252834; color: #c8cde0; font-size:calc(12px * var(--ui-scale, 1)); white-space: nowrap; }
.tag.amber { border-color: #584837; background: #342a21; color: var(--amber); }
.tag.green { border-color: #355246; background: #1f322d; color: var(--green); }
.tag.blue { border-color: #414f77; background: #252d48; color: var(--blue); }
.tag.red { border-color: #63434c; background: #382731; color: var(--red); }
.tag.dim { border-color: #363946; background: #22242d; color: var(--muted); }
.grid-main { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 18px; }
.grid-main > *, .detail-grid > *, .research-workspace > * { min-width: 0; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: hidden; margin-bottom: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.stat { padding: 16px 20px; border-right: 1px solid var(--line); }
.stat:last-child { border: 0; }
.stat-label { display: flex; justify-content: space-between; gap: 6px; color: var(--subtle); font-size:calc(13px * var(--ui-scale, 1)); }
.stat-label svg { width: 16px; height: 16px; color: var(--muted); }
.stat-value { margin-top: 7px; font: 500 27px/1.3 var(--mono); letter-spacing: -.08em; }
.stat-value.green { color: var(--accent); }
.stat-note { color: var(--muted); font-size:calc(12px * var(--ui-scale, 1)); }
.spotlight { position: relative; padding: 22px; border-color: #41445b; background: linear-gradient(130deg, #24263a, #1a1c27 65%); }
.spotlight-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 18px; }
.spotlight h2 { margin-bottom: 7px; font-size:calc(22px * var(--ui-scale, 1)); }
.spotlight p { max-width: 70ch; color: var(--subtle); font-size:calc(14px * var(--ui-scale, 1)); }
.spotlight-meta { display: flex; align-items: center; gap: 14px 20px; flex-wrap: wrap; margin-top: 18px; color: var(--subtle); font-size:calc(13px * var(--ui-scale, 1)); }
.spotlight-meta span, .agent-stack { display: flex; align-items: center; gap: 6px; }
.spotlight-meta svg { width: 16px; height: 16px; }
.spotlight-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line-strong); }
.agent-square { display: grid; place-items: center; flex: 0 0 29px; width: 29px; height: 29px; border: 1px solid var(--accent-line); border-radius: 6px; background: #292d45; color: #d0d7ff; font-size:calc(12px * var(--ui-scale, 1)); }
.agent-square.blue { border-color: #42537a; background: #252e46; color: var(--blue); }
.feed { padding: 3px 18px 9px; }
.feed-item { position: relative; padding: 12px 0 12px 15px; border-bottom: 1px solid var(--line); }
.feed-item:last-child { border: 0; }
.feed-item::before { position: absolute; top: 20px; left: 0; width: 5px; height: 5px; border-radius: 50%; background: #a5add8; content: ''; }
.feed-item strong, .feed-item small { display: block; font-size:calc(13px * var(--ui-scale, 1)); }
.feed-item small { margin-top: 4px; font-size:calc(12px * var(--ui-scale, 1)); }
.connection { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size:calc(13px * var(--ui-scale, 1)); }
.connection:last-child { border: 0; }
.connection span { display: flex; align-items: center; gap: 8px; }
.connection svg { width: 16px; height: 16px; color: var(--accent); }

/* Task views */
.table-wrap { max-width: 100%; overflow: auto; }
.mission-table, .run-task-table { width: 100%; border-collapse: collapse; text-align: left; }
.mission-table th, .run-task-table th { padding: 10px 14px; border-bottom: 1px solid var(--line); background: #20222d; color: var(--subtle); font-size:calc(12px * var(--ui-scale, 1)); font-weight: 500; white-space: nowrap; }
.mission-table td, .run-task-table td { padding: 13px 14px; border-bottom: 1px solid var(--line); font-size:calc(13px * var(--ui-scale, 1)); white-space: nowrap; }
.mission-table tr:last-child td, .run-task-table tr:last-child td { border-bottom: 0; }
.mission-table tbody tr { cursor: pointer; }
.mission-table tbody tr:hover, .run-task-table tbody tr:hover { background: #ffffff05; }
.mission-table .task-title { display: block; color: var(--text); font-size:calc(14px * var(--ui-scale, 1)); font-weight: 550; }
.mission-table .subline { display: block; margin-top: 3px; color: var(--muted); font-size:calc(12px * var(--ui-scale, 1)); }
.progress { min-width: 60px; height: 3px; margin-top: 6px; overflow: hidden; border-radius: 3px; background: #33374a; }
.progress span { display: block; height: 100%; background: #a5b6fd; transition: width .35s; }
.task-time { color: var(--subtle); font: 12px/1.6 var(--mono); font-variant-numeric: tabular-nums; }
.run-task-table td:first-child { color: var(--text); font-weight: 540; }
.run-task-table td:first-child small { display: block; font-weight: 400; }
.run-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(190px, 1.5fr); gap: 12px; padding-block: 16px; }
.run-summary small, .run-summary strong { display: block; }
.run-summary strong { margin-top: 4px; font-size:calc(13px * var(--ui-scale, 1)); }
.run-task-table .run-task-toggle { display: inline-flex; align-items: center; gap: 6px; padding: 0; text-align: left; }
.run-task-table .run-task-toggle:hover { color: var(--accent); }
.run-task-toggle svg { width: 14px; height: 14px; color: var(--muted); transition: transform .12s; }
.run-task-toggle[aria-expanded='true'] svg { transform: rotate(90deg); color: var(--accent); }
.run-task-table tbody tr { cursor: default; }
.run-task-table .subline { padding-left: 20px; }
.run-detail-row[hidden] { display: none; }
.run-task-table .run-detail-row td { padding: 0; background: #141622; white-space: normal; }
.run-detail { display: grid; grid-template-columns: minmax(0, 2fr) minmax(160px, 1fr); gap: 22px; padding: 16px 18px 18px 34px; }
.run-detail h3 { margin-bottom: 6px; font-size:calc(13px * var(--ui-scale, 1)); }
.run-detail p { margin-bottom: 8px; color: var(--subtle); font-weight: 400; }
.run-detail .button { margin: 5px 6px 0 0; }
.execution-approval { width: min(490px, 100%); }
.training-chart canvas { display: block; width: 100%; height: 210px; }
.training-chart-summary { display: flex; gap: 9px 15px; flex-wrap: wrap; margin-top: 10px; color: var(--muted); font: 12px/1.6 var(--mono); }
.filter-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.filter { padding: 5px 9px; border: 1px solid transparent; border-radius: 6px; color: var(--muted); font-size:calc(13px * var(--ui-scale, 1)); }
.filter:hover { background: #ffffff06; color: var(--text); }
.filter.active { border-color: #414669; background: #272b43; color: #d6deff; }
.search-input { min-width: 190px; max-width: 100%; padding: 7px 10px; border: 1px solid var(--line-strong); border-radius: 7px; background: var(--inset); color: var(--text); font-size:calc(13px * var(--ui-scale, 1)); }
.tabs { display: flex; gap: 23px; margin-bottom: 21px; overflow: auto; border-bottom: 1px solid var(--line); }
.tab { padding: 0 2px 10px; border-bottom: 2px solid transparent; color: var(--muted); font-size:calc(14px * var(--ui-scale, 1)); white-space: nowrap; }
.tab:hover, .tab.active { color: var(--accent); }
.tab.active { border-color: var(--accent); }
.back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 14px; color: var(--subtle); font-size:calc(13px * var(--ui-scale, 1)); }
.back svg { width: 15px; height: 15px; }
.detail-heading { align-items: center; }
.detail-heading h1 { font-size:calc(27px * var(--ui-scale, 1)); }
.detail-meta { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-top: 10px; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 295px; gap: 18px; align-items: start; }
.fields { display: grid; gap: 17px; }
.field-title { margin-bottom: 4px; color: var(--muted); font-size:calc(12px * var(--ui-scale, 1)); }
.field-text { color: var(--text); font-size:calc(14px * var(--ui-scale, 1)); line-height: 1.75; white-space: pre-wrap; overflow-wrap: anywhere; }
.lifecycle { display: flex; justify-content: space-between; gap: 8px; padding: 20px 0 3px; }
.lifecycle-step { flex: 1; padding-top: 7px; border-top: 2px solid var(--line-strong); color: var(--muted); font-size:calc(12px * var(--ui-scale, 1)); }
.lifecycle-step.done { border-color: #6371a2; color: #c3ccee; }
.lifecycle-step.current { border-color: #c2ccff; color: var(--accent); }
.scope-chips { display: flex; gap: 7px; flex-wrap: wrap; }
.plan-row { display: flex; align-items: flex-start; gap: 11px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.plan-row:last-child { border: 0; }
.plan-row .agent-square { margin-top: 2px; }
.plan-row p { margin-top: 3px; color: var(--muted); font-size:calc(13px * var(--ui-scale, 1)); }
.plan-row .tag { margin-left: auto; }
.approval-box { padding: 18px; }
.approval-icon { display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 13px; border: 1px solid #5d4e3a; border-radius: 8px; background: #382e22; color: var(--amber); }
.approval-box h3 { margin-bottom: 7px; }
.approval-box p { margin-bottom: 14px; color: var(--subtle); font-size:calc(13px * var(--ui-scale, 1)); line-height: 1.7; }
.approval-box .button { width: 100%; margin-top: 8px; }
.kv { display: flex; justify-content: space-between; gap: 13px; padding: 8px 0; border-bottom: 1px solid var(--line); color: var(--subtle); font-size:calc(13px * var(--ui-scale, 1)); }
.kv:last-child { border: 0; }
.kv strong { color: var(--text); text-align: right; }
.hash { color: var(--muted); word-break: break-all; font: 11px/1.75 var(--mono); }
.step-card { padding: 17px 18px; border-bottom: 1px solid var(--line); }
.step-card:last-child { border: 0; }
.step-top { display: flex; align-items: center; gap: 11px; margin-bottom: 10px; }
.step-no { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 6px; background: var(--accent-panel); color: var(--accent); font: 12px var(--mono); }
.step-no svg { width: 17px; height: 17px; }
.step-top h3 { flex: 1; }
.step-card p { margin-bottom: 8px; color: var(--subtle); font-size:calc(14px * var(--ui-scale, 1)); }
.step-meta { display: flex; gap: 7px 16px; flex-wrap: wrap; color: var(--muted); font-size:calc(12px * var(--ui-scale, 1)); }
.criteria { margin: 12px 0 0; padding: 0; list-style: none; }
.criteria li { display: flex; gap: 8px; padding: 3px 0; color: var(--subtle); font-size:calc(13px * var(--ui-scale, 1)); }
.criteria svg { width: 15px; height: 15px; margin-top: 3px; color: var(--accent); }
.artifact { display: flex; align-items: center; gap: 12px; padding: 15px 17px; border-bottom: 1px solid var(--line); }
.artifact:last-child { border: 0; }
.artifact-icon { padding: 8px; border: 1px solid #3a4062; border-radius: 7px; background: var(--accent-panel); color: var(--accent); }
.artifact-body { flex: 1; min-width: 0; }
.artifact-body strong, .artifact-body small { display: block; overflow-wrap: anywhere; }
.artifact-body strong { font-size:calc(14px * var(--ui-scale, 1)); }
.artifact-body small { font-size:calc(12px * var(--ui-scale, 1)); }
.report { color: var(--subtle); font-size:calc(14px * var(--ui-scale, 1)); line-height: 1.8; white-space: pre-wrap; }
.timeline { padding: 0 12px; }
.timeline-event { position: relative; margin-left: 5px; padding: 0 0 20px 20px; border-left: 1px solid #424866; }
.timeline-event::before { position: absolute; top: 6px; left: -4.5px; width: 8px; height: 8px; border: 2px solid var(--panel); border-radius: 50%; background: #b3c0f7; content: ''; }
.timeline-event .event-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; color: var(--muted); font-size:calc(12px * var(--ui-scale, 1)); }
.timeline-event p { font-size:calc(14px * var(--ui-scale, 1)); }
.timeline-event details { margin-top: 7px; color: var(--subtle); font-size:calc(12px * var(--ui-scale, 1)); }
.code { max-height: 420px; overflow: auto; padding: 13px; border: 1px solid var(--line); border-radius: 7px; background: var(--inset); color: var(--subtle); font: 12px/1.6 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; }

/* Skills, settings and forms */
.proposal-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.proposal-card { padding: 18px; }
.proposal-card h3 { margin: 12px 0 7px; font-size:calc(17px * var(--ui-scale, 1)); }
.proposal-card p { margin-bottom: 12px; color: var(--subtle); font-size:calc(13px * var(--ui-scale, 1)); }
.proposal-card .code { max-height: 220px; margin-bottom: 14px; font-family: inherit; font-size:calc(13px * var(--ui-scale, 1)); }
.proposal-card + .proposal-card { margin-top: 0; }
.proposal-footer { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.settings-grid > .panel + .panel { margin: 0; }
.settings-grid .button { margin-top: 15px; }
.child-agent { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 9px 0; border-top: 1px solid var(--line); font-size:calc(13px * var(--ui-scale, 1)); }
.child-agent button { padding: 0; color: var(--accent); }
.modal-scrim { position: fixed; inset: 0; z-index: 40; display: flex; align-items: center; justify-content: center; padding: 22px; background: #08090ed1; backdrop-filter: blur(8px); }
.modal { width: min(700px, 100%); max-height: 91vh; overflow: auto; border: 1px solid var(--line-strong); border-radius: 14px; background: var(--panel); box-shadow: 0 24px 90px #0009, inset 0 1px #ffffff0a; }
.modal.wide { width: min(960px, 100%); }
.modal-head, .modal-footer { position: sticky; z-index: 2; display: flex; align-items: center; gap: 8px; background: #1c1e29f0; backdrop-filter: blur(15px); }
.modal-head { top: 0; justify-content: space-between; padding: 15px 20px; border-bottom: 1px solid var(--line); }
.modal-head h2 { font-size:calc(18px * var(--ui-scale, 1)); }
.modal-body { padding: 20px; }
.modal-footer { bottom: 0; justify-content: flex-end; flex-wrap: wrap; padding: 13px 20px; border-top: 1px solid var(--line); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; color: var(--subtle); font-size:calc(14px * var(--ui-scale, 1)); }
.form-field:last-child { margin-bottom: 0; }
.form-field :is(input, textarea, select) { width: 100%; padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: 7px; background: var(--inset); color: var(--text); font-size:calc(14px * var(--ui-scale, 1)); }
.form-field textarea { min-height: 68px; resize: vertical; }
.form-field small { font-size:calc(12px * var(--ui-scale, 1)); }
.scope-fieldset { min-width: 0; padding: 0; border: 0; }
.scope-fieldset legend { padding: 0; margin-bottom: 6px; }
.scope-options, .presets { display: flex; gap: 7px; flex-wrap: wrap; }
.scope-option { display: flex; align-items: center; gap: 7px; padding: 6px 9px; border: 1px solid var(--line-strong); border-radius: 6px; color: var(--subtle); font-size:calc(13px * var(--ui-scale, 1)); cursor: pointer; }
.scope-option:has(input:checked), .mode-option:has(input:checked) { border-color: var(--accent-line); background: var(--accent-panel); color: #e0e5ff; }
.scope-option input, .mode-option input { width: auto; accent-color: var(--accent); }
.mode-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 14px 0 17px; }
.mode-option { padding: 11px; border: 1px solid var(--line-strong); border-radius: 7px; cursor: pointer; }
.mode-option input { margin-right: 7px; }
.mode-option p { margin: 4px 0 0 23px; color: var(--muted); font-size:calc(12px * var(--ui-scale, 1)); }
.presets { margin: 11px 0 16px; }
.preset { padding: 4px 8px; border: 1px solid var(--line-strong); border-radius: 5px; color: var(--subtle); font-size:calc(12px * var(--ui-scale, 1)); }
.preset:hover { background: var(--hover); }
.divider { margin: 20px 0; border: 0; border-top: 1px solid var(--line); }
.search-results { display: grid; gap: 7px; margin-top: 12px; }
.search-result { padding: 11px; border: 1px solid var(--line-strong); border-radius: 6px; text-align: left; }
.search-result:hover { background: var(--hover); }
.search-result small { display: block; margin-top: 3px; }
.history-round { padding: 13px 0; border-bottom: 1px solid var(--line); }
.history-round p { margin: 6px 0; font-size:calc(14px * var(--ui-scale, 1)); }
.history-round:last-child { border: 0; }
.spacer { height: 18px; }
.loading { display: grid; place-items: center; height: 90vh; color: var(--accent); font: 14px var(--mono); }
.busy-bar { position: fixed; inset: 0 0 auto; z-index: 100; height: 2px; overflow: hidden; }
.busy-bar::after { position: absolute; width: 35%; height: 100%; background: var(--accent); content: ''; animation: busy 1.2s infinite ease-in-out; }
@keyframes busy { from { left: -35%; } to { left: 100%; } }
#toast { position: fixed; bottom: 25px; left: 50%; z-index: 70; max-width: 80vw; padding: 10px 14px; border: 1px solid var(--accent-line); border-radius: 8px; background: #2d314d; color: #e8edff; box-shadow: 0 8px 30px #0007; opacity: 0; transform: translate(-50%, 12px); pointer-events: none; transition: opacity .2s, transform .2s; font-size:calc(14px * var(--ui-scale, 1)); }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 100; padding: 8px; background: var(--accent); color: #111; }
.skip-link:focus { top: 8px; }
.mobile-brand { display: none; }
.line-clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.chat-transcript { display: flex; flex-direction: column; gap: 12px; max-height: 38vh; margin-bottom: 16px; overflow: auto; }
.chat-message { max-width: min(92%, 68ch); padding: 10px 13px; border: 1px solid var(--line); border-radius: 8px; background: var(--inset); color: var(--text); font-size:calc(14px * var(--ui-scale, 1)); white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-message.user { align-self: flex-end; border-color: #3e456b; background: #272b42; }
.chat-message small { display: block; margin-bottom: 4px; color: var(--subtle); }
.suggestion { margin-bottom: 16px; padding: 12px; border: 1px solid var(--accent-line); border-radius: 7px; color: var(--subtle); font-size:calc(14px * var(--ui-scale, 1)); }

/* The default research workspace */
.research-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(244px, 290px);
  gap: 18px;
  align-items: start;
  --research-padding: clamp(18px, 3vw, 36px);
}
.research-chat {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 360px;
  padding-bottom: 18px;
  border-color: #3b3e54;
  background: linear-gradient(148deg, #222437 0%, #1b1d2a 23%, #181a22 64%);
}
.research-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  padding: 12px 18px;
  border-bottom: 1px solid #8992be24;
  background: #16182266;
  color: var(--subtle);
  backdrop-filter: blur(16px);
}
.research-chat-header svg { color: var(--accent); }
.research-chat-header strong { color: var(--text); }
.research-chat-header .research-mark, .research-turn .research-mark { flex-shrink: 0; width: 28px; height: 28px; margin-bottom: 0; border-radius: 6px; box-shadow: none; }
.research-chat-header .research-mark svg, .research-turn .research-mark svg { width: 16px; height: 16px; color: #e2e8ff; }
.research-intro {
  position: relative;
  isolation: isolate;
  padding: 39px var(--research-padding) 24px;
  overflow: hidden;
}
.research-intro::after {
  position: absolute;
  z-index: -1;
  inset: 0 0 0 42%;
  background: radial-gradient(circle, #b0bfff36 .75px, transparent .85px);
  background-size: 13px 13px;
  mask-image: linear-gradient(112deg, transparent 8%, #000 75%);
  content: '';
  pointer-events: none;
}
.research-mark {
  display: inline-grid;
  place-items: center;
  width: 43px;
  height: 43px;
  margin-bottom: 16px;
  border: 1px solid #6a73a9;
  border-radius: 11px;
  background: linear-gradient(145deg, #535c89, #323759);
  color: #ebeeff;
  box-shadow: inset 0 1px #ffffff2b, 0 6px 20px #0a0a12aa;
}
.research-mark svg { width: 25px; height: 25px; }
.research-intro h1, .research-intro h2 { max-width: 22ch; font-size: clamp(27px, 3.2vw, 43px); letter-spacing: -.035em; line-height: 1.25; }
.research-intro p { max-width: 54ch; margin-top: 9px; color: var(--subtle); font-size:calc(14px * var(--ui-scale, 1)); }
.research-conversation {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-height: 48vh;
  padding: 18px var(--research-padding) 14px;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
.research-conversation:empty { display: none; }
.research-turn {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: fit-content;
  max-width: min(100%, 72ch);
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #161823d9;
  color: var(--text);
  font-size:calc(14px * var(--ui-scale, 1));
  overflow-wrap: anywhere;
}
.research-turn.user, .research-turn[data-role='user'] { align-self: flex-end; border-color: #4c537b; background: #292d48; }
.research-turn strong { display: block; margin-bottom: 3px; color: var(--subtle); font-size:calc(12px * var(--ui-scale, 1)); }
.research-turn p { white-space: pre-wrap; }
.research-chat > .inline-error { margin-inline: var(--research-padding); }
.research-composer {
  margin: 14px var(--research-padding) 0;
  padding: 8px;
  border: 1px solid #51587a;
  border-radius: 11px;
  background: #242738e8;
  box-shadow: 0 8px 28px #0c0d1866, inset 0 1px #ffffff0e;
  backdrop-filter: blur(15px);
  transition: border-color .18s, box-shadow .18s;
}
.research-composer:focus-within { border-color: #8a99dc; box-shadow: 0 8px 28px #0c0d1866, 0 0 0 3px #8a99dc22; }
.research-composer textarea {
  display: block;
  width: 100%;
  min-height: 76px;
  padding: 9px 10px;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text);
  caret-color: var(--accent);
  font-size:calc(15px * var(--ui-scale, 1));
  line-height: 1.6;
  resize: vertical;
}
.research-composer textarea::placeholder { color: #a7adc3; }
.research-composer textarea:focus-visible { outline: none; }
.research-composer-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; min-height: 41px; padding: 6px 0 0; }
.research-composer-actions small { margin-right: auto; }
.research-composer-actions .button { min-height: 34px; }
.research-starters { display: grid; grid-template-columns: repeat(auto-fit, minmax(137px, 1fr)); gap: 8px; margin: 13px var(--research-padding) 0; }
.research-starter { display: flex; align-items: center; gap: 9px; min-height: 41px; padding: 8px 10px; border: 1px solid #383d54; border-radius: 7px; background: #ffffff04; color: #d2d7ea; text-align: left; font-size:calc(13px * var(--ui-scale, 1)); }
.research-starter:hover { border-color: #717bab; background: #ffffff0b; color: #fff; }
.research-starter svg { width: 16px; height: 16px; color: var(--accent); }
.research-starter svg:last-child { width: 13px; height: 13px; margin-left: auto; color: var(--muted); }
.research-starter strong, .research-starter small { display: block; }
.research-starter small { margin-top: 2px; font-size:calc(11px * var(--ui-scale, 1)); }
.research-sidebar { display: grid; gap: 14px; }
.research-sidebar > .panel + .panel { margin-top: 0; }
.research-draft { border-color: #3e466a; background: linear-gradient(145deg, #242945, var(--panel) 52%); }
.research-draft h2 { font-size:calc(16px * var(--ui-scale, 1)); }
.research-draft h3 { font-size:calc(14px * var(--ui-scale, 1)); }
.research-draft p { margin-top: 6px; color: var(--subtle); font-size:calc(13px * var(--ui-scale, 1)); white-space: pre-wrap; overflow-wrap: anywhere; }
.research-draft-fields { display: grid; gap: 4px; margin-block: 14px; overflow-wrap: anywhere; }
.research-draft-fields dt { color: var(--muted); font-size:calc(12px * var(--ui-scale, 1)); }
.research-draft-fields dd { margin: 0 0 4px; color: var(--subtle); font-size:calc(13px * var(--ui-scale, 1)); }
.research-draft .button-row { margin-top: 10px; }

/* Team topology */
.tree-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.org-tree {
  overflow: auto;
  padding: 28px clamp(16px, 2.5vw, 32px) 34px;
  background-color: var(--inset);
  background-image: radial-gradient(circle, #a8b7ec27 .65px, transparent .9px);
  background-size: 15px 15px;
  scrollbar-width: thin;
  --tree-line: #566180;
  --branch-gap: 12px;
  --connector: 14px;
  --management-card-width: 174px;
  --domain-card-width: 156px;
  --domain-track-width: calc(5 * var(--domain-card-width) + 4 * var(--branch-gap));
}
.org-node { position: relative; min-width: 0; }
.org-node-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2px;
  min-width: 0;
  min-height: 60px;
  border: 1px solid #424a66;
  border-radius: 8px;
  background: #222538f2;
  box-shadow: inset 0 1px #ffffff06, 0 6px 14px #090b1466;
}
.org-node-card:hover { border-color: #727fad; }
.org-node-main { display: flex; flex: 1; min-width: 0; align-items: flex-start; gap: 9px; padding: 8px 9px; color: var(--text); text-align: left; }
.org-node-main > svg, .org-node-main em > svg { width: 17px; height: 17px; margin-top: 3px; color: var(--accent); }
.org-node-main :is(strong, small, span) { display: block; }
.org-node-main strong { font-size:calc(13px * var(--ui-scale, 1)); line-height: 1.4; }
.org-node-main small { margin-top: 4px; color: var(--subtle); font-size:calc(11px * var(--ui-scale, 1)); line-height: 1.35; overflow-wrap: anywhere; }
.org-root:has(.org-domains:not([hidden])) { min-width: calc(var(--management-card-width) + var(--branch-gap) + var(--domain-track-width)); }
.org-root > .org-node-card { width: min(252px, 100%); margin: 0 auto; border-color: #6573a5; background: #343a59; }
.org-root > .org-node-card strong { font-size:calc(15px * var(--ui-scale, 1)); }
.org-branch > .org-node-card { border-color: #505b80; background: #282d44; }
.org-toggle { display: inline-grid; flex: 0 0 24px; place-items: center; width: 24px; height: 26px; margin-right: 5px; padding: 2px; border-radius: 4px; color: var(--accent); }
.org-toggle:hover { background: #ffffff12; }
.org-toggle svg { width: 14px; height: 14px; transition: transform .12s; }
.org-toggle[aria-expanded='true'] svg { transform: rotate(90deg); }
.org-children { position: relative; display: grid; gap: 10px; padding-top: var(--connector); }
.org-children[hidden] { display: none; }
.org-children:not(.org-coordination, .org-domains) { margin-left: 12px; padding-left: 12px; border-left: 1px solid var(--tree-line); }
.org-children:not(.org-coordination, .org-domains) > .org-node::before { position: absolute; top: 50%; left: -12px; width: 12px; border-top: 1px solid var(--tree-line); content: ''; }
.org-leaf > .org-node-card { min-height: 38px; border-color: #363d53; background: #1b1e2b; }
.org-leaf .org-node-main { align-items: flex-start; padding: 8px; }
.org-leaf .org-node-main > svg { width: 14px; height: 14px; margin-top: 2px; }
.org-specialists .org-leaf > .org-node-card { min-height: 61px; }
.org-coordination, .org-domains { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); align-items: start; gap: var(--branch-gap); padding-top: calc(2 * var(--connector)); }
.org-coordination { grid-template-columns: minmax(var(--management-card-width), 1fr) minmax(172px, 4.7fr); }
.org-root:has(.org-domains:not([hidden])) > .org-coordination {
  grid-template-columns: minmax(var(--management-card-width), 1fr) minmax(var(--domain-track-width), 4.7fr);
}
.org-domains { grid-auto-columns: minmax(var(--domain-card-width), 1fr); }
.org-domains > .org-node > .org-node-card { min-height: 65px; }
.org-domains .org-node-main { gap: 5px; }
.org-domains .org-node-main > svg { width: 14px; height: 14px; }
.org-children.org-specialists { margin-left: 8px; padding-left: 8px; }
.org-children.org-specialists > .org-node::before { left: -8px; width: 8px; }
.org-coordination::before, .org-domains::before { position: absolute; top: 0; right: 50%; height: var(--connector); border-left: 1px solid var(--tree-line); content: ''; }
:is(.org-coordination, .org-domains) > .org-node::before, :is(.org-coordination, .org-domains) > .org-node::after { position: absolute; top: calc(-1 * var(--connector)); width: calc(50% + var(--branch-gap) / 2); height: var(--connector); border-top: 1px solid var(--tree-line); content: ''; pointer-events: none; }
:is(.org-coordination, .org-domains) > .org-node::before { right: 50%; border-right: 1px solid var(--tree-line); }
:is(.org-coordination, .org-domains) > .org-node::after { left: 50%; }
:is(.org-coordination, .org-domains) > .org-node:first-child::before { border-top: 0; }
:is(.org-coordination, .org-domains) > .org-node:last-child::after { display: none; }
:is(.org-coordination, .org-domains) > .org-node:only-child::before { height: var(--connector); }

/* Fit the workspace at laptop sizes, and retain scrolling at compact widths. */
@media (min-width: 1500px) {
  :root { --sidebar-width: 228px; }
  .topbar { padding-inline: 36px; }
  .main { padding-inline: 36px; }
  .research-workspace { grid-template-columns: minmax(0, 1fr) 310px; }
}
@media (max-width: 1200px) {
  :root { --sidebar-width: 187px; }
  .main { padding-inline: 22px; }
  .topbar { padding-inline: 22px; }
  .grid-main, .detail-grid { grid-template-columns: minmax(0, 1fr) 249px; gap: 14px; }
  .research-workspace { grid-template-columns: minmax(0, 1fr) 235px; gap: 14px; }
  .stat { padding-inline: 14px; }
}
@media (max-width: 1020px) {
  .detail-grid, .grid-main { grid-template-columns: minmax(0, 1fr); }
  .side-column { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
  .side-column > .panel + .panel { margin: 0; }
  .environment { display: none; }
  .run-summary { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .run-summary > :last-child { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .research-workspace { grid-template-columns: minmax(0, 1fr); }
  .research-chat { min-height: 0; }
  .research-sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .settings-grid, .proposal-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .shell { display: block; }
  .sidebar { position: static; width: auto; padding: 12px; border-right: 0; border-bottom: 1px solid var(--line); overflow: visible; }
  .brand { padding: 0 3px 9px; font-size:calc(16px * var(--ui-scale, 1)); }
  .workspace, .nav-label { display: none; }
  .sidebar nav, .sidebar-bottom { display: flex; gap: 4px; overflow-x: auto; }
  .sidebar-bottom { margin: 2px 0 0; padding: 0; }
  .nav-item { width: auto; flex: 0 0 auto; gap: 5px; padding: 4px 7px; font-size:calc(12px * var(--ui-scale, 1)); white-space: nowrap; }
  .nav-item svg { width: 14px; height: 14px; }
  .nav-item .count, .local-card { display: none; }
  .topbar { height: 44px; padding-inline: 12px; }
  .crumb { gap: 7px; font-size:calc(12px * var(--ui-scale, 1)); }
  .search-btn span, .search-btn kbd { display: none; }
  .top-right { gap: 7px; }
  .main { padding: 20px 12px 30px; }
  .page-heading { align-items: flex-start; gap: 10px; margin-bottom: 18px; }
  .page-heading h1, .detail-heading h1 { font-size:calc(24px * var(--ui-scale, 1)); }
  .page-heading > .button { min-height: 33px; padding-inline: 8px; font-size:calc(12px * var(--ui-scale, 1)); }
  .detail-heading { display: block; }
  .detail-heading > .button-row { margin-top: 12px; }
  .side-column, .settings-grid, .form-grid, .mode-options, .research-sidebar { grid-template-columns: minmax(0, 1fr); }
  .spotlight { padding: 15px; }
  .spotlight-bottom .helper { display: none; }
  .filter-bar { display: grid; }
  .filter-bar .search-input { width: 100%; }
  .modal-scrim { padding: 9px; }
  .modal-head, .modal-body, .modal-footer { padding-inline: 13px; }
  .tabs { gap: 15px; }
  .page-footer { flex-wrap: wrap; }
  .research-intro { padding-top: 24px; }
  .research-intro h1 { font-size:calc(24px * var(--ui-scale, 1)); }
  .research-starters { grid-template-columns: 1fr; }
  .org-tree { padding: 15px; }
  .run-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .run-detail { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* The desktop uses three independently scrolling panes. */
:root {
  color: #f0f0f1;
  background: #141416;
  --bg: #141416;
  --sidebar: #18181a;
  --panel: #1c1c1f;
  --raised: #252528;
  --inset: #171719;
  --hover: #2d2d31;
  --line: #323237;
  --line-strong: #48484e;
  --text: #f0f0f1;
  --subtle: #c9c9cd;
  --muted: #a0a0a7;
  --dim: #8d8d95;
  --accent: #e0e0e5;
  --accent-panel: #29292d;
  --accent-line: #4a4a51;
  --rail-width: 180px;
}

body { overflow: hidden; }

.desktop-shell {
  display: grid;
  grid-template-columns: var(--rail-width) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
  background: var(--bg);
}

.desktop-shell.has-group-chat {
  grid-template-columns: var(--rail-width) minmax(0, 1fr) 5px minmax(264px, var(--group-chat-width));
}

.desktop-shell .sidebar {
  position: static;
  grid-column: 1;
  width: auto;
  min-width: 0;
  min-height: 0;
  height: 100%;
  padding: 21px 11px 12px;
  overflow: auto;
  border-right: 1px solid #ffffff13;
  border-bottom: 0;
  background: linear-gradient(158deg, #202022ef, #171719f7 52%);
  backdrop-filter: blur(22px) saturate(70%);
  -webkit-backdrop-filter: blur(22px) saturate(70%);
}

.desktop-shell.native-shell { --native-titlebar-inset: max(32px, env(safe-area-inset-top, 0px)); }
.desktop-shell.native-shell .sidebar { padding-top: calc(var(--native-titlebar-inset) + 8px); }
.desktop-shell.native-shell .main { padding-top: calc(var(--native-titlebar-inset) + 12px); }
.desktop-shell.native-shell .group-chat { padding-top: var(--native-titlebar-inset); }
.desktop-shell .brand { padding: 0 7px 4px; gap: 7px; letter-spacing: -.045em; font-size:calc(22px * var(--ui-scale, 1)); line-height: 1.25; }
.desktop-shell .brand .product-mark { color: #f2f2f4; width: 29px; height: 29px; }
.product-mark { fill: currentColor; stroke: none; }
.product-label { margin: 2px 0 24px 9px; color: #828289; font: 600 8.5px/1.3 var(--mono); letter-spacing: .1em; }
.desktop-shell .nav-label { padding: 9px 8px 5px; }
.desktop-shell .nav-item { font-size:calc(13px * var(--ui-scale, 1)); margin: 1px 0; }
.desktop-shell .nav-item.active { color: #f2f2f2; background: #ffffff10; border-color: #ffffff12; }
.desktop-shell .nav-item.active svg { color: #eeeef0; }
.desktop-shell .nav-item .count { color: #ededee; background: #ffffff16; }
.desktop-shell .nav-item kbd { margin-left: auto; padding: 0 3px; font: 10px var(--mono); color: var(--dim); }
.desktop-shell .sidebar-bottom { padding-top: 18px; }
.desktop-shell .local-card { margin-top: 9px; font-size:calc(11px * var(--ui-scale, 1)); }
.desktop-shell .local-card .live-dot { background: #a7a7ae; box-shadow: none; }
.desktop-shell .content { min-height: 0; display: flex; overflow: hidden; background: radial-gradient(ellipse at 45% -10%, #222225 0, transparent 580px), var(--bg); }
.desktop-shell .main { flex: 1; width: 100%; max-width: none; height: 100%; padding: 25px 25px 38px; margin: 0; overflow: auto; scrollbar-gutter: stable; }
.desktop-shell .panel { background: linear-gradient(155deg, #ffffff04, #ffffff00 145px), var(--panel); }
.desktop-shell .main > .page-heading { margin-bottom: 19px; }
.desktop-shell .main > .page-heading h1 { font-size: clamp(24px,2.2vw,33px); }
.desktop-shell .main > .page-heading .eyebrow:empty { display: none; }

.button.primary {
  border-color: #e8e8e9;
  background: #e8e8e9;
  color: #202022;
  box-shadow: inset 0 1px #ffffff70;
}
.button.primary:hover { border-color: #fff; background: #fff; }
.button:hover, .text-link:hover { color: var(--text); }
.button.primary:hover { color: #171719; }
.note { background: #262629; border-color: #46464c; color: #d2d2d8; }
.note.amber { background: #2c241e; border-color: #524336; color: #e8c998; }
.note.red, .inline-error { background: #34232c; border-color: #68424d; color: #f2b5be; }
.tag.dim { background: #242426; border-color: #3a3a40; color: #adadb5; }

.research-launch {
  display: grid;
  justify-items: center;
  gap: 20px;
  padding: clamp(40px, 8vh, 80px) 22px clamp(36px, 6vh, 63px);
  margin: 0 0 22px;
  text-align: center;
}
.launch-brand {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  background: linear-gradient(155deg, #343437, #232325);
  border: 1px solid #515154;
  border-radius: 17px;
  color: #f3f3f5;
  box-shadow: inset 0 1px #ffffff13, 0 10px 32px #0005;
}
.launch-brand .product-mark { width: 40px; height: 40px; }
.launch-heading h1 { font-size: clamp(29px, 3.2vw, 48px); letter-spacing: -.055em; font-weight: 660; }
.launch-heading p { margin-top: 7px; color: var(--muted); font-size:calc(14px * var(--ui-scale, 1)); }
.research-launch .research-starters { width: min(100%, 675px); margin: 5px 0 0; text-align: left; }
.research-launch .research-starter { background: #ffffff06; border-color: #ffffff17; }
.research-launch .research-starter:hover { background: #ffffff0d; border-color: #ffffff30; }

.group-resizer {
  z-index: 4;
  grid-column: 3;
  grid-row: 1;
  background: #212124;
  border-right: 1px solid #ffffff0d;
  cursor: ew-resize;
}
.group-resizer:hover, .resizing-group .group-resizer { background: #8b8b9160; }
.resizing-group { cursor: ew-resize; user-select: none; }
.group-chat {
  grid-column: 4;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  height: 100%;
  background: linear-gradient(145deg, #202022f5, #19191bf6 65%);
  backdrop-filter: blur(23px) saturate(75%);
  -webkit-backdrop-filter: blur(23px) saturate(75%);
}
.group-chat-header { display: flex; min-height: 55px; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 11px 8px 14px; border-bottom: 1px solid #ffffff12; }
.group-chat-heading { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; }
.group-chat-heading svg { width: 16px; height: 16px; color: var(--muted); }
.group-chat-heading h2 { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size:calc(13px * var(--ui-scale, 1)); letter-spacing: 0; }
.group-chat-controls { display: flex; flex: 0 0 auto; gap: 1px; }
.group-chat-controls .icon-button { width: 28px; height: 28px; }
.group-chat-controls svg { width: 15px; height: 15px; }
.group-chat-context { display: flex; align-items: center; justify-content: space-between; gap: 5px; min-height: 38px; padding: 0 13px; border-bottom: 1px solid #ffffff0f; color: var(--muted); font-size:calc(12px * var(--ui-scale, 1)); }
.group-chat-context select { max-width: 140px; }
.group-chat select { background: #222224; color: #bebec5; border: 1px solid #ffffff17; border-radius: 5px; font-size:calc(11px * var(--ui-scale, 1)); padding: 3px 5px; }
.group-chat-scroll { flex: 1 1 auto; min-height: 0; padding: 13px 10px 13px 12px; overflow-y: auto; scrollbar-gutter: stable; }
.group-chat-empty { min-height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--muted); text-align: center; padding: 22px 15px; gap: 8px; }
.group-chat-empty strong { color: var(--text); font-size:calc(13px * var(--ui-scale, 1)); }
.group-chat-empty p { max-width: 23ch; font-size:calc(12px * var(--ui-scale, 1)); }
.group-chat-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; border: 1px solid #ffffff23; background: #ffffff0a; color: #c6c6cb; }
.group-chat-mark svg { width: 17px; height: 17px; }
.group-turn { padding: 10px; margin-bottom: 7px; border-radius: 8px; background: #ffffff04; border: 1px solid #ffffff08; }
.group-turn.own { background: #ffffff09; border-color: #ffffff13; }
.group-turn-head { display: flex; justify-content: space-between; gap: 5px; color: #d5d5d7; font-size:calc(11px * var(--ui-scale, 1)); }
.group-turn-head svg { width: 13px; height: 13px; margin-right: 1px; color: #a7a7ae; }
.group-turn-head time { flex: 0 0 auto; color: #97979c; font: 10px/1.8 var(--mono); }
.group-turn-head .recipient { color: #a1a1a8; }
.group-turn p { margin-top: 4px; color: #e0e0e1; font-size:calc(13px * var(--ui-scale, 1)); white-space: pre-wrap; overflow-wrap: anywhere; }
.group-pending, .group-error { margin: 7px 11px; font-size:calc(12px * var(--ui-scale, 1)); color: var(--muted); }
.group-error { color: var(--red); }
.thread-row { width: 100%; display: flex; align-items: flex-start; gap: 10px; border: 1px solid transparent; border-radius: 7px; padding: 10px 8px; text-align: left; }
.thread-row:hover, .thread-row.active { background: #ffffff0a; border-color: #ffffff0d; }
.thread-row svg { width: 15px; height: 15px; color: #aeaeae; margin-top: 3px; }
.thread-row span { min-width: 0; }
.thread-row strong, .thread-row small { display: block; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
.thread-row strong { font-size:calc(13px * var(--ui-scale, 1)); }
.thread-row small { font-size:calc(11px * var(--ui-scale, 1)); }
.group-draft { margin: 0 11px 9px; padding: 7px 8px; display: flex; justify-content: space-between; align-items: center; gap: 7px; border: 1px solid #ffffff24; background: #ffffff08; border-radius: 6px; }
.group-draft strong { font-size:calc(12px * var(--ui-scale, 1)); }
.group-chat-form { margin: 0 11px 11px; border: 1px solid #ffffff29; border-radius: 9px; background: #1d1d1f; }
.group-chat-form:focus-within { border-color: #ffffff58; }
.group-chat-form textarea { display: block; resize: vertical; width: 100%; min-height: 77px; max-height: 260px; padding: 10px; border: 0; outline: 0; background: transparent; color: #ececee; font-size:calc(13px * var(--ui-scale, 1)); }
.group-chat-form textarea:focus-visible { outline: 0; }
.group-chat-form textarea::placeholder { color: #909095; }
.group-chat-form-actions { display: flex; justify-content: space-between; align-items: center; gap: 6px; padding: 5px 8px 8px; }
.group-chat-form-actions select { max-width: 70%; }
.group-chat-form-actions .button { font-size:calc(12px * var(--ui-scale, 1)); min-height: 27px; }

.monitor-project-picker { max-width: 360px; }
.agent-page-heading { align-items: center; }
.agent-page-overview { display: grid; grid-template-columns: minmax(220px,.75fr) minmax(280px,1.1fr); gap: 12px; align-items: start; }
.agent-page-overview > .panel, .agent-skill-workspace > .panel { margin: 0; }
.agent-skill-workspace { display: grid; grid-template-columns: minmax(155px,.45fr) minmax(245px,1fr); gap: 12px; align-items: start; }
.agent-editor { min-width: 0; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; background: var(--inset); }
.agent-editor-head { display: flex; justify-content: space-between; align-items: center; gap: 9px; min-height: 47px; padding: 7px 10px; border-bottom: 1px solid var(--line); background: var(--panel); }
.agent-editor-head > div:first-child { display: flex; align-items: center; gap: 6px; min-width: 0; overflow-wrap: anywhere; }
.agent-editor-head svg { width: 15px; height: 15px; }
.agent-editor-head code { font: 12px var(--mono); }
.agent-editor-head small { font-size:calc(11px * var(--ui-scale, 1)); }
.agent-editor textarea { display: block; min-height: 320px; min-height: min(60vh, 650px); width: 100%; resize: vertical; padding: 14px; border: 0; background: transparent; color: #e5e5e8; tab-size: 2; font: 13px/1.6 var(--mono); }
.agent-skill-row { display: flex; align-items: center; gap: 7px; width: 100%; padding: 8px 11px; border-bottom: 1px solid var(--line); color: var(--subtle); text-align: left; overflow-wrap: anywhere; font-size:calc(12px * var(--ui-scale, 1)); }
.agent-skill-row:hover, .agent-skill-row.active { background: var(--hover); }
.agent-skill-row svg { width: 14px; height: 14px; }
.agent-canvas-empty { min-height: 160px; padding: 24px 18px; color: var(--muted); }
.org-tree { --tree-line: #56565d; }
.org-node-card, .org-branch > .org-node-card { background: #252528; border-color: #47474d; box-shadow: none; }
.org-root > .org-node-card { border-color: #77777c; background: #2f2f33; }
.org-leaf > .org-node-card { border-color: #36363b; background: #222224; }
.org-node-card:hover { border-color: #8b8b90; }
.org-node-main > svg { color: #aaaaaf; }

@media (max-width: 1220px) {
  :root { --rail-width: 154px; }
  .desktop-shell .main { padding-inline: 17px; }
  .desktop-shell.has-group-chat .detail-grid, .desktop-shell.has-group-chat .agent-page-overview { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 1000px) {
  :root { --rail-width: 143px; }
  .desktop-shell .main { padding-inline: 14px; }
  .desktop-shell .nav-item { padding-inline: 5px; gap: 6px; }
  .research-launch .research-starters { grid-template-columns: minmax(0, 1fr); max-width: 280px; }
}
@media (max-width: 890px) {
  .desktop-shell.has-group-chat { grid-template-columns: var(--rail-width) minmax(0, 1fr); }
  .group-chat { position: fixed; inset: 0 0 0 auto; z-index: 12; width: min(84vw, var(--group-chat-width)); box-shadow: -14px 0 35px #0008; border-left: 1px solid var(--line); }
  .group-resizer { display: none; }
}
@media (max-width: 560px) {
  :root { --rail-width: 45px; }
  .desktop-shell .sidebar { padding: 10px 4px; }
  .desktop-shell .brand { padding: 0; justify-content: center; }
  .desktop-shell .sidebar nav, .desktop-shell .sidebar-bottom { display: flex; flex-direction: column; align-items: stretch; overflow: visible; }
  .desktop-shell .nav-item { justify-content: center; min-height: 32px; padding: 4px; }
  .desktop-shell .brand span, .desktop-shell .nav-item span, .desktop-shell .nav-item kbd, .desktop-shell .product-label { display: none; }
  .agent-skill-workspace { grid-template-columns: minmax(0, 1fr); }
  .research-launch { padding-inline: 6px; }
  .launch-heading h1 { font-size:calc(27px * var(--ui-scale, 1)); }
}
.group-event-kind { display: inline-block; margin-top: 5px; color: #b8b8bf; font-size:calc(10px * var(--ui-scale, 1)); letter-spacing: .025em; }
.research-launch .research-starters { grid-template-columns: repeat(2, minmax(0,1fr)); }
.research-launch .research-starter:disabled { cursor: default; opacity: .43; }
@media(max-width:1000px) and (min-width:891px) {
  .desktop-shell.has-group-chat { grid-template-columns: var(--rail-width) minmax(0,1fr) 5px minmax(248px,min(29vw,var(--group-chat-width))); }
}
@media(max-width:620px) {
  .research-launch .research-starters { grid-template-columns: minmax(0,1fr); }
}
.desktop-shell .mission-table th, .desktop-shell .run-task-table th { background: #222225; }
.desktop-shell .run-task-table .run-detail-row td { background: #19191c; }
.desktop-shell .scope-option:has(input:checked) { border-color: #77777d; background: #2f2f35; }
.desktop-shell .search-input, .desktop-shell .form-field :is(input, textarea, select) { background: #202024; border-color: #45454b; }
.desktop-shell .filter.active { background: #38383e; border-color: #55555b; color: #f0f0f2; }
.desktop-shell .spotlight { background: linear-gradient(115deg,#29292d,#212124 55%,#1b1b1d); border-color: #49494f; }
.desktop-shell .research-draft { margin-bottom: 20px; }
.recipe-result .table-wrap + .table-wrap { margin-top: 12px; }
.recipe-result .table-wrap + .helper { margin-top: 10px; }
.recipe-result .helper + .button { margin-top: 10px; }

/* Keep title-bar and pane surfaces continuous behind the native controls. */
.desktop-shell {
  position: relative;
  --sidebar-actual: clamp(170px, var(--sidebar-user-width), max(170px, calc(100vw - 335px)));
  grid-template-columns: var(--sidebar-actual) 5px minmax(0, 1fr);
}
.desktop-shell.has-group-chat {
  --chat-actual: clamp(250px, min(var(--group-chat-width), 35vw), 550px);
  --sidebar-actual: clamp(170px, var(--sidebar-user-width), max(170px, calc(100vw - var(--chat-actual) - 335px)));
  grid-template-columns: var(--sidebar-actual) 5px minmax(0, 1fr) 5px var(--chat-actual);
}
.desktop-shell .sidebar {
  overflow: hidden;
  border: 0;
  background: linear-gradient(158deg, #202125f2, #191a1df7 50%);
}
.desktop-shell .content { grid-column: 3; flex-direction: column; }
.desktop-shell .main { min-height: 0; }
.desktop-shell.native-shell .main:has([data-resource-host="repositories"]) { padding: var(--native-titlebar-inset) 0 0; }
.desktop-shell.native-shell .has-review-shelf .main:has([data-resource-host="repositories"]) { padding: 0; }
.sidebar-resizer, .group-resizer {
  display: block;
  grid-row: 1;
  position: relative;
  z-index: 11;
  background: #202126;
  border: 0;
  cursor: ew-resize;
  touch-action: none;
}
.sidebar-resizer { grid-column: 2; }
.group-resizer { grid-column: 4; }
.sidebar-resizer::after, .group-resizer::after {
  position: absolute;
  inset: 0 auto 0 2px;
  width: 1px;
  background: #ffffff11;
  content: '';
}
.sidebar-resizer:hover, .sidebar-resizer:focus-visible, .resizing-sidebar .sidebar-resizer,
.group-resizer:hover, .group-resizer:focus-visible, .resizing-group .group-resizer { background: #9297a55e; }
.resizing-sidebar { cursor: ew-resize; user-select: none; }
.desktop-shell .group-chat {
  grid-column: 5;
  background: linear-gradient(145deg, #212226f5, #191a1df6 65%);
}
.native-window-blend {
  position: absolute;
  z-index: 13;
  inset: 0 0 auto;
  height: calc(var(--native-titlebar-inset) + 7px);
  background: linear-gradient(to bottom, #292b30 0, #292b3066 47%, #292b3000 100%);
  pointer-events: none;
}
.desktop-shell .product-label {
  margin: 3px 0 11px 8px;
  color: #a4a5ac;
  font-size:calc(10px * var(--ui-scale, 1));
  font-weight: 550;
  line-height: 1.45;
  letter-spacing: .01em;
}
.desktop-shell .main-navigation, .desktop-shell .sidebar-bottom, .desktop-shell .brand { flex: none; }
.desktop-shell .nav-item { padding-block: 6px; }
.desktop-shell .nav-label { padding-block: 6px 3px; }
.desktop-shell .sidebar-bottom { padding-top: 6px; }
.desktop-shell .local-card { margin-top: 5px; padding: 6px 7px 0; }
.sidebar-workspace {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 70px;
  margin-top: 9px;
  border-block: 1px solid #ffffff12;
}
.sidebar-workspace > header {
  display: flex;
  min-height: 30px;
  flex: none;
  align-items: center;
  justify-content: space-between;
  padding: 2px 3px 2px 8px;
  color: var(--muted);
  font-size:calc(11px * var(--ui-scale, 1));
  font-weight: 650;
}
.sidebar-workspace .icon-button { width: 24px; height: 24px; }
.sidebar-workspace .icon-button svg { width: 15px; height: 15px; }
.sidebar-workspace .icon-button.active { background: #ffffff1a; color: var(--text); }
.workspace-tree-host { flex: 1; min-height: 0; overflow: auto; scrollbar-width: thin; }
.workspace-tree-host :is(input, select) { max-width: 100%; }
.sidebar-workspace.workspace-unpopulated { border: 0; }
.sidebar-workspace > header strong { margin-left: 5px; color: var(--subtle); font-weight: 500; }
.workspace-tree-host > .workspace-link { margin-block: 2px; }
.workspace-link, .workspace-agent-row a {
  display: flex;
  align-items: center;
  gap: 5px;
  min-height: 26px;
  min-width: 0;
  padding: 2px 6px;
  border-radius: 5px;
  color: var(--subtle);
  font-size:calc(11px * var(--ui-scale, 1));
}
.workspace-link span, .workspace-agent-row a span:first-of-type { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace-link svg, .workspace-agent-row a svg { width: 13px; height: 13px; color: var(--muted); }
.workspace-link:hover, .workspace-agent-row:hover { background: #ffffff0b; }
.workspace-link.active, .workspace-agent-row.active { background: #ffffff16; color: var(--text); }
.workspace-agent-nav ul { margin: 0; padding: 0; list-style: none; }
.workspace-agent-nav li > ul { margin-left: 9px; border-left: 1px solid var(--line); padding-left: 4px; }
.workspace-agent-row { display: flex; align-items: center; gap: 1px; padding-left: 2px; border-radius: 5px; }
.workspace-agent-row a { flex: 1; padding-left: 2px; }
.workspace-fold { display: grid; flex: 0 0 17px; place-items: center; width: 17px; height: 20px; padding: 1px; border-radius: 4px; }
button.workspace-fold:hover { background: #ffffff18; }
.workspace-fold svg { width: 11px; height: 11px; color: var(--muted); }
.workspace-fold[aria-expanded='true'] svg { transform: rotate(90deg); }
.workspace-participant { width: 5px; height: 5px; flex: none; margin-left: auto; border-radius: 50%; background: #aee3db; }
.workspace-mission-title { margin: 7px 6px 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--dim); font-size:calc(11px * var(--ui-scale, 1)); }

.plan-skills { margin-top: 14px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: #ffffff03; }
.plan-skills > h3 { display: flex; align-items: center; gap: 7px; margin-bottom: 4px; font-size:calc(14px * var(--ui-scale, 1)); }
.plan-skills p.helper { margin: 4px 0; }
.plan-skill { margin-top: 9px; padding-top: 8px; border-top: 1px solid var(--line); }
.plan-skill h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; font-size:calc(13px * var(--ui-scale, 1)); }
.plan-skill code.hash { display: block; margin-top: 6px; overflow-wrap: anywhere; }

.review-shelf {
  display: flex;
  flex: none;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin: 9px 12px 0;
  padding: 8px 10px;
  border: 1px solid #b08a4c83;
  border-radius: 8px;
  background: linear-gradient(120deg, #3a2d1d, #2b2520 78%);
  color: #f6ddaf;
}
.native-shell .content > .review-shelf { margin-top: calc(var(--native-titlebar-inset) + 8px); }
.desktop-shell.native-shell .has-review-shelf .main { padding-top: 15px; }
.review-shelf.in-chat { margin: 9px 9px 1px; padding: 6px 7px; gap: 5px 7px; }
.review-shelf-info { display: flex; flex: 1 1 120px; align-items: center; gap: 7px; min-width: 0; }
.review-shelf-info svg { width: 18px; height: 18px; flex: none; color: #e9bc74; }
.review-shelf-info span { min-width: 0; }
.review-shelf-info :is(strong,small) { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.review-shelf-info strong { font-size:calc(12px * var(--ui-scale, 1)); }
.review-shelf-info small { color: #d3bc99; font-size:calc(11px * var(--ui-scale, 1)); }
.review-shelf .review-more { color: #eccea1; font-size:calc(11px * var(--ui-scale, 1)); }
.review-shelf .review-more:hover { text-decoration: underline; }
.button.review-button { flex: none; color: #21170c; background: #edc786; border-color: #edc786; }
.button.review-button:hover { color: #21170c; background: #f5d7a3; border-color: #f5d7a3; }
.stage-review-card { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 15px; }
.stage-review-card h3 { margin-block: 5px 3px; }
.stage-review-card a { text-decoration: underline; text-underline-offset: 2px; }
.stage-review-card p { margin-block: 8px; }
.stage-review-card small, .stage-review-evidence small { color: var(--muted); }
.stage-review-evidence { display: grid; justify-items: start; gap: 9px; }
.group-turn-head > span { min-width: 0; overflow-wrap: anywhere; }
.group-turn-head .recipient { margin-left: 3px; color: #b8cbdc; font-weight: 600; }

.org-tree {
  --tree-line: #56616c;
  background-image: radial-gradient(circle, #97a6b62a .65px, transparent .9px);
}
.org-root > .org-node-card {
  --role-icon: #dfc394;
  border-color: #907d5f;
  background: linear-gradient(140deg, #383128, #2a2723);
}
.org-depth-1 > .org-node-card {
  --role-icon: #a2c4df;
  border-color: #5e788d;
  background: linear-gradient(140deg, #243846, #222a34);
}
.org-depth-2 > .org-node-card, .org-depth-3 > .org-node-card {
  --role-icon: #99c8c3;
  border-color: #4d726f;
  background: linear-gradient(140deg, #243835, #202c2d);
}
.org-depth-3 > .org-node-card { border-color: #3d5655; background: #202a2b; }
.org-node > .org-node-card :is(.org-node-main, .org-toggle) > svg { color: var(--role-icon); }
.org-node.org-participant > .org-node-card {
  border-color: #b6e1dc;
  box-shadow: inset 0 0 0 1px #b6e1dc45, 0 0 0 1px #162424;
  background: linear-gradient(140deg, #32524f, #283b3d);
}
.org-node-main .org-participant-label {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 5px;
  color: #c3f0e7;
  font-size:calc(10px * var(--ui-scale, 1));
}
.org-participant-label::before { width: 6px; height: 6px; border-radius: 50%; background: currentColor; content: ''; }
.org-plan-picker {
  max-width: min(100%, 210px);
  min-height: 30px;
  padding: 3px 6px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--inset);
  color: var(--text);
  font-size:calc(12px * var(--ui-scale, 1));
}
.org-plan-summary { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 5px 10px; padding: 8px 12px; color: var(--muted); font-size:calc(12px * var(--ui-scale, 1)); }
.org-plan-summary strong { color: var(--text); }

@media (max-height: 700px) {
  .desktop-shell .nav-item { padding-block: 4px; }
  .desktop-shell .local-card { display: none; }
}
@media (max-width: 890px) {
  .desktop-shell.has-group-chat { grid-template-columns: var(--sidebar-actual) 5px minmax(0, 1fr); }
  .desktop-shell .group-resizer { display: none; }
}
@media (max-width: 560px) {
  .desktop-shell, .desktop-shell.has-group-chat { grid-template-columns: 45px 0 minmax(0, 1fr); }
  .desktop-shell .sidebar-resizer { display: none; }
  .desktop-shell .main-navigation .nav-label { display: none; }
  .sidebar-workspace > header { justify-content: center; padding: 2px 0; }
  .sidebar-workspace > header > span, .workspace-tree-host { display: none; }
}
