/* Workspace shell: quieter surfaces, clear hierarchy and task state. */
:root { --radius: 12px; --accent: #246a60; --accent-soft: #e3efeb; --accent-text: #fff; }
:root[data-theme="light"] { --bg: #f8f9f6; --sidebar: #f0f2ed; --panel: #fff; --border: #dfe4dd; --active: #e1eae3; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) { --bg: #f8f9f6; --sidebar: #f0f2ed; --border: #dfe4dd; --active: #e1eae3; }
}
:root[data-theme="dark"] { --accent: #89c8b7; --accent-soft: #203a34; --accent-text: #102820; --active: #233a34; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --accent: #89c8b7; --accent-soft: #203a34; --accent-text: #102820; --active: #233a34; }
}
.topbar { height: 60px; border-bottom: 1px solid var(--border); background: var(--panel); }
.workspace-title { font-size: 13px; font-weight: 600; padding-left: 12px; color: var(--muted); }
.side-head { padding-top: 20px; padding-bottom: 20px; }
.new-chat { border-color: transparent; background: var(--accent); color: var(--accent-text); }
.new-chat:hover { background: var(--accent); filter: brightness(1.07); }
.conv-item { height: 38px; }
.conv-item.active { box-shadow: inset 3px 0 var(--accent); }
.hello { padding-top: clamp(28px, 7vh, 88px); max-width: 840px; text-align: left; }
.workspace-eyebrow { display: flex; align-items: center; gap: 12px; font: 600 11px var(--mono); letter-spacing: .13em; color: var(--accent); }
.workspace-eyebrow span { font: 400 12px var(--font); letter-spacing: 0; color: var(--muted); border-left: 1px solid var(--border); padding-left: 12px; }
.hello h1 { font-size: clamp(28px, 3.2vw, 42px); letter-spacing: -.045em; margin: 20px 0 12px; font-weight: 600; }
.hello > p { max-width: 630px; line-height: 1.65; }
.workspace-modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.workspace-mode { display: grid; gap: 8px; padding: 18px; text-align: left; border: 1px solid var(--border); border-radius: 12px; background: var(--panel); }
.workspace-mode .i { width: 22px; height: 22px; color: var(--muted); margin-bottom: 6px; }
.workspace-mode b { font-size: 15px; }
.workspace-mode span { font-size: 12px; color: var(--muted); }
.workspace-mode.selected { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.workspace-mode.selected .i { color: var(--accent); }
.workspace-resources { display: flex; flex-wrap: wrap; gap: 10px 20px; padding: 18px 0 4px; color: var(--muted); font-size: 12px; }
.workspace-resources > * { display: inline-flex; align-items: center; gap: 6px; }
.workspace-resources .i { width: 15px; height: 15px; }
.workspace-resources button:hover { color: var(--accent); }
.suggest { background: transparent; border-style: dashed; font-size: 13px; }
.suggest:hover { background: var(--panel); border-style: solid; }
.composer { border-radius: 16px; box-shadow: 0 4px 18px #00000008; }
.composer:focus-within { border-color: var(--accent); }
.comp-bar { flex-wrap: wrap; min-width: 0; gap: 6px 8px; }
.comp-controls { display: flex; align-items: center; flex: 1 1 460px; flex-wrap: wrap; min-width: 0; gap: 4px; }
.comp-submit { display: flex; align-items: center; gap: 6px; flex: 0 1 250px; min-width: 0; max-width: 100%; margin-left: auto; }
.comp-submit .model-btn { flex: 1 1 auto; min-width: 0; max-width: 100%; overflow: hidden; }
.comp-submit .model-btn span { min-width: 0; }
.comp-submit .send { flex-shrink: 0; }
.comp-controls .folder-wrap { min-width: 0; max-width: min(180px, 45%); }
.comp-controls .folder-name { min-width: 0; }
.comp-controls .modes { flex-shrink: 0; }
/* A two-tone I-beam remains visible with both Windows pointer themes. */
.composer textarea, .thread .md, .thread .bubble, .edit-box textarea {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cpath d='M11 6h10M16 6v20M11 26h10' fill='none' stroke='%23000' stroke-width='4' stroke-linecap='round'/%3E%3Cpath d='M11 6h10M16 6v20M11 26h10' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") 16 16, text;
  caret-color: var(--text);
}
.composer textarea { color: var(--text); }
.composer textarea::placeholder { color: var(--muted); opacity: 1; }
.thread .md a, .thread .md button { cursor: pointer; }
.team { border-radius: 12px; }
.team-head { background: var(--code-bg); padding: 14px 16px; }
.team-progress { height: 3px; background: var(--border); }
.team-progress > div { height: 100%; background: var(--accent); transition: width .2s; }
.team-stats { display: flex; flex-wrap: wrap; gap: 12px; padding: 10px 16px; font-size: 12px; color: var(--muted); border-bottom: 1px solid var(--border); }
.agent summary { padding: 14px 16px; }
.agent .av { border-radius: 50%; }
.agent-meta { margin-bottom: 8px; color: var(--muted); font-size: 12px; }
.agent[data-status="run"] { border-left: 3px solid var(--accent); }
.agent[data-status="error"], .agent[data-status="blocked"] { border-left: 3px solid var(--danger); }
@media (max-width: 600px) {
  .hello { padding: 26px 16px 20px; }
  .workspace-modes { gap: 6px; }
  .workspace-mode { padding: 12px 9px; }
  .workspace-mode span { font-size: 11px; }
  .workspace-title { display: none; }
  .agent summary { flex-wrap: wrap; }
  .agent .abody { padding-left: 16px; }
}
@media (max-width: 820px) {
  .comp-controls { flex-basis: 100%; }
  .comp-submit { flex-basis: 100%; }
  .comp-controls .folder-wrap { max-width: 45%; }
  .comp-submit .model-btn { min-width: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
