:root {
  --sidebar-open-width: 248px;
  --inspector-open-width: 340px;
  --sidebar-width: var(--sidebar-open-width);
  --inspector-width: var(--inspector-open-width);
  --floating-inset: 24px;
  --floating-card-width: 340px;
  --tab-strip-height: 36px;
  --column-height: calc(100vh - var(--tab-strip-height));
  --bench-charcoal: #252321;
  --bench-chalk: #EFEBE3;
  --bench-face-ring: rgba(37, 35, 33, 0.12);
  --bench-face-shine: #FFFFFF;
  --bench-face-blush: rgba(185, 68, 103, 0.28);
  --bench-face-drop: #7FA9C2;
  --bench-canvas: #F5F5F5;
  --bench-chrome: #EFEEEC;
  --bench-raised: #FFFFFF;
  --bench-border: #E4E2E1;
  --bench-text: var(--bench-charcoal);
  --bench-subtle: #6A6967;
  --bench-disabled: rgba(106, 105, 103, 0.5);
  --bench-accent: var(--bench-charcoal);
  --bench-on-accent: var(--bench-chalk);
  --bench-hover: rgba(37, 35, 33, 0.07);
  --bench-halo: rgba(37, 35, 33, 0.14);
  --bench-accent-lift: #413F3C;
  --bench-destructive-lift: #A15246;
  --bench-raised-lift: #F4F4F3;
  --bench-edge-lift: #C5C4C2;
  --bench-selected: #FFFFFF;
  --bench-selected-edge: 0 0 0 0.5px rgba(37, 35, 33, 0.14), 0 1px 2px rgba(37, 35, 33, 0.10);
  --bench-row-selected: rgba(37, 35, 33, 0.07);
  --bench-match: rgba(137, 98, 23, 0.18);
  --bench-mention: rgba(37, 35, 33, 0.12);
  --bench-search-hit: rgba(240, 190, 50, 0.45);
  --bench-pop-edge: 0 0 0 0.5px rgba(37, 35, 33, 0.14), 0 12px 32px rgba(37, 35, 33, 0.20);
  --bench-backdrop: rgba(37, 35, 33, 0.22);
  --bench-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236A6967' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  --bench-destructive: #94392D;
  --bench-destructive-text: #94392D;
  --bench-recording: var(--bench-destructive);
  --bench-warning: #896217;
  --bench-warning-text: #896217;
  --bench-live: #3B6F5C;
  --bench-live-text: #3B6F5C;
  --bench-live-glow: rgba(59, 111, 92, 0.25);
  --bench-live-halo: rgba(59, 111, 92, 0.55);
  --bench-on-pigment: var(--bench-chalk);
  --bench-note: #3A7E93;
  --bench-note-text: #3A7E93;
  --bench-component: #8B3DFF;
  --bench-component-text: #8B3DFF;
  --bench-component-tint: rgba(139, 61, 255, 0.06);
  --bench-on-component: #FFFFFF;
  --bench-box: var(--bench-charcoal);
  --bench-box-ring: var(--bench-chalk);
  --bench-box-halo: rgba(37, 35, 33, 0.2);
  --bench-box-done: #6A6967;
  --bench-viewer-backdrop: rgba(18, 17, 16, 0.82);
  --bench-viewer-chip: rgba(18, 17, 16, 0.72);
  --bench-viewer-button: rgba(239, 235, 227, 0.14);
  --bench-paper: #FFFFFF;
  --bench-mark: url("/charkol-icon.png");
  --bench-loader: url("/loader-charcoal.webp");
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bench-mark: url("/charkol-icon-light.png");
    --bench-loader: url("/loader-chalk.webp");
    --bench-canvas: #1E1E1E;
    --bench-chrome: #252321;
    --bench-raised: #2D2C2B;
    --bench-border: #3A3938;
    --bench-text: var(--bench-chalk);
    --bench-subtle: #A3A19E;
    --bench-disabled: rgba(163, 161, 158, 0.5);
    --bench-accent: var(--bench-chalk);
    --bench-on-accent: var(--bench-charcoal);
    --bench-hover: rgba(239, 235, 227, 0.07);
    --bench-halo: rgba(239, 235, 227, 0.18);
    --bench-accent-lift: #D3CFC8;
    --bench-raised-lift: #393836;
    --bench-edge-lift: #545351;
    --bench-selected: #3A3835;
    --bench-selected-edge: inset 0 0.5px 0 rgba(239, 235, 227, 0.10), 0 0 0 0.5px rgba(0, 0, 0, 0.45), 0 1px 2px rgba(0, 0, 0, 0.30);
    --bench-row-selected: rgba(239, 235, 227, 0.08);
    --bench-match: rgba(195, 158, 97, 0.22);
    --bench-mention: rgba(239, 235, 227, 0.14);
    --bench-search-hit: rgba(240, 190, 50, 0.38);
    --bench-pop-edge: 0 0 0 0.5px rgba(239, 235, 227, 0.12), 0 12px 32px rgba(0, 0, 0, 0.45);
    --bench-backdrop: rgba(18, 17, 16, 0.45);
    --bench-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23A3A19E' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    --bench-destructive-text: #D78F83;
    --bench-warning-text: #C39E61;
    --bench-live-text: #80B19D;
    --bench-note-text: #5FA3B9;
    --bench-component-text: #A884FF;
  }
}
:root[data-theme="dark"] {
  --bench-mark: url("/charkol-icon-light.png");
  --bench-loader: url("/loader-chalk.webp");
  --bench-canvas: #1E1E1E;
  --bench-chrome: #252321;
  --bench-raised: #2D2C2B;
  --bench-border: #3A3938;
  --bench-text: var(--bench-chalk);
  --bench-subtle: #A3A19E;
  --bench-disabled: rgba(163, 161, 158, 0.5);
  --bench-accent: var(--bench-chalk);
  --bench-on-accent: var(--bench-charcoal);
  --bench-hover: rgba(239, 235, 227, 0.07);
  --bench-halo: rgba(239, 235, 227, 0.18);
  --bench-accent-lift: #D3CFC8;
  --bench-raised-lift: #393836;
  --bench-edge-lift: #545351;
  --bench-selected: #3A3835;
  --bench-selected-edge: inset 0 0.5px 0 rgba(239, 235, 227, 0.10), 0 0 0 0.5px rgba(0, 0, 0, 0.45), 0 1px 2px rgba(0, 0, 0, 0.30);
  --bench-row-selected: rgba(239, 235, 227, 0.08);
  --bench-match: rgba(195, 158, 97, 0.22);
  --bench-mention: rgba(239, 235, 227, 0.14);
  --bench-search-hit: rgba(240, 190, 50, 0.38);
  --bench-pop-edge: 0 0 0 0.5px rgba(239, 235, 227, 0.12), 0 12px 32px rgba(0, 0, 0, 0.45);
  --bench-backdrop: rgba(18, 17, 16, 0.45);
  --bench-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23A3A19E' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  --bench-destructive-text: #D78F83;
  --bench-warning-text: #C39E61;
  --bench-live-text: #80B19D;
  --bench-note-text: #5FA3B9;
  --bench-component-text: #A884FF;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; overscroll-behavior: none; }
body {
  background: var(--bench-canvas);
  color: var(--bench-text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", system-ui, sans-serif;
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr) var(--inspector-width);
  grid-template-rows: var(--tab-strip-height) minmax(0, 1fr);
  min-height: 100vh;
  -webkit-user-select: none;
  user-select: none;
}
input, textarea, [contenteditable]:not([contenteditable="false"]) { -webkit-user-select: text; user-select: text; }
* { -webkit-tap-highlight-color: transparent; }
:focus, :focus-visible { outline: none; }

.side-column {
  position: sticky;
  top: 0;
  height: var(--column-height);
  min-width: 0;
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--bench-border);
  background: var(--bench-chrome);
  z-index: 1;
}
#main [data-note] { cursor: pointer; }
.note-hover { outline: calc(2px / var(--canvas-zoom, 1)) dashed var(--bench-note); outline-offset: calc(2px / var(--canvas-zoom, 1)); }
.note-selected { outline: calc(2px / var(--canvas-zoom, 1)) solid var(--bench-note); outline-offset: calc(2px / var(--canvas-zoom, 1)); }
.phone.note-hover, .phone.note-selected { outline-offset: 13px; }

.sidebar {
  border-right: 1px solid var(--bench-border);
  background: var(--bench-chrome);
  padding: 0 12px;
  position: sticky;
  top: 0;
  height: var(--column-height);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  z-index: 1;
}
.finder-head { position: relative; }
.finder-head.is-searching > :not(.sidebar-search) { visibility: hidden; }
.sidebar-search { position: absolute; inset: 9px 12px; }
.sidebar-search > svg { position: absolute; left: 9px; top: 50%; transform: translateY(-50%); color: var(--bench-subtle); pointer-events: none; }
.sidebar-sort.is-on { color: var(--bench-text); background: var(--bench-hover); }
.sidebar-search-close { position: absolute; right: 3px; top: 3px; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 6px; background: none; color: var(--bench-subtle); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.sidebar-search-close:hover { background: var(--bench-hover); color: var(--bench-text); }
:root[data-keyboard-focus] .sidebar-search-close:focus-visible { outline: 2px solid var(--bench-accent); outline-offset: 1px; }
.sidebar-search input { width: 100%; height: 30px; padding: 0 32px 0 28px; border: 1px solid var(--bench-border); border-radius: 8px; background: var(--bench-canvas); color: var(--bench-text); font: 400 13px -apple-system, BlinkMacSystemFont, system-ui, sans-serif; -webkit-appearance: none; appearance: none; outline: none; }
.sidebar-search input::placeholder { color: var(--bench-subtle); }
.sidebar-search input:focus { border-color: var(--bench-accent); background: var(--bench-raised); }
.tree-match { background: var(--bench-match); color: inherit; border-radius: 2px; }
.sidebar > .side-head, .sidebar > .side-divider { margin: 0 -12px; }
.sidebar > .finder { flex: 1 1 0; min-height: 120px; display: flex; flex-direction: column; margin: 0 -12px; padding: 0 12px; border-top: 1px solid var(--bench-border); }
.sidebar.has-finder-height > .finder { flex: 0 1 var(--finder-height); }
.sidebar .nav { position: relative; flex: 1 1 0; min-height: 0; overflow-y: auto; padding-top: 4px; }
.sidebar-foot { flex-shrink: 0; display: flex; align-items: center; gap: 4px; margin: 0 -12px; padding: 8px 14px; border-top: 1px solid var(--bench-border); }
.settings-button { width: 32px; height: 32px; padding: 0; border: 0; border-radius: 8px; background: none; color: var(--bench-subtle); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.settings-button:hover { background: var(--bench-hover); color: var(--bench-text); }
:root[data-keyboard-focus] .settings-button:focus-visible { outline: 2px solid var(--bench-accent); outline-offset: 1px; }
.foot-action { flex: none; height: 32px; padding: 0 7px; border: 0; border-radius: 8px; background: none; color: var(--bench-subtle); display: inline-flex; align-items: center; gap: 5px; font: 400 12px/16px -apple-system, BlinkMacSystemFont, system-ui, sans-serif; white-space: nowrap; cursor: pointer; }
.foot-action[hidden] { display: none; }
.foot-action svg { flex: none; display: block; }
.settings-button + .foot-action { margin-left: auto; }
.foot-action:hover { background: var(--bench-hover); color: var(--bench-text); }
:root[data-keyboard-focus] .foot-action:focus-visible { outline: 2px solid var(--bench-accent); outline-offset: 1px; }
.task-panel { flex: 1 1 0; min-height: 160px; display: flex; flex-direction: column; border-top: 1px solid var(--bench-border); margin: 0 -12px; }
.task-header { gap: 2px; }
.task-header .side-head-button + .side-head-button { margin-left: 0; }
.switcher { position: relative; display: inline-flex; align-items: stretch; gap: 18px; box-shadow: inset 0 -1px 0 var(--bench-border); }
.switcher > button { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0; border: 0; background: none; color: var(--bench-subtle); font: 600 13px/18px -apple-system, BlinkMacSystemFont, system-ui, sans-serif; white-space: nowrap; cursor: pointer; transition: color 180ms ease; }
.switcher > button::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 1px; background: transparent; transition: background-color 180ms ease; }
.switcher-indicator { position: absolute; left: 0; bottom: 0; height: 2px; border-radius: 1px; background: var(--bench-accent); pointer-events: none; transition: transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1), width 260ms cubic-bezier(0.2, 0.8, 0.2, 1); }
.switcher-indicator.is-settling { transition: none; }
.switcher.on-edge .switcher-indicator { bottom: -1px; }
.switcher.is-animated > button.on::after, .switcher.is-animated > button[aria-pressed="true"]::after { background: transparent; }
@media (prefers-reduced-motion: reduce) {
  .switcher > button, .switcher > button::after, .switcher-indicator { transition: none; }
}
.switcher > button.on, .switcher > button[aria-pressed="true"] { color: var(--bench-text); }
.switcher > button.on::after, .switcher > button[aria-pressed="true"]::after { background: var(--bench-accent); }
.switcher.on-edge { box-shadow: none; }
.switcher.on-edge > button::after { bottom: -1px; }
:root[data-keyboard-focus] .switcher > button:focus-visible { outline: 2px solid var(--bench-accent); outline-offset: 2px; border-radius: 4px; }
@media (hover: hover) {
  .switcher > button:not(.on):not([aria-pressed="true"]):hover { color: var(--bench-text); }
  .switcher > button:not(.on):not([aria-pressed="true"]):hover::after { background: var(--bench-border); }
}
.count-badge { display: inline-block; min-width: 16px; letter-spacing: 0; height: 16px; padding: 0 5px; border-radius: 8px; background: var(--bench-accent); color: var(--bench-on-accent); font: 700 10px/16px -apple-system, system-ui, sans-serif; text-align: center; font-variant-numeric: tabular-nums; }
.count-badge[hidden] { display: none; }
.side-head-button { flex: none; align-self: center; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 6px; background: none; color: var(--bench-subtle); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.side-head-button:hover, .side-head-button.open { background: var(--bench-hover); color: var(--bench-text); }
.side-toggle + .side-head-button { margin-left: auto; }
.side-head-button + .side-head-button { margin-left: 2px; }
:root[data-keyboard-focus] .side-head-button:focus-visible { outline: 2px solid var(--bench-accent); outline-offset: 1px; }
.task-filter-button.on { color: var(--bench-accent); }
.task-filter-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 22px 8px; }
.task-filter-chips[hidden] { display: none; }
.task-filter-chip { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; min-height: 24px; padding: 3px 3px 3px 8px; border: 0; border-radius: 12px; background: var(--bench-raised); box-shadow: inset 0 0 0 1px var(--bench-border); color: var(--bench-text); font: 500 12px/16px -apple-system, BlinkMacSystemFont, system-ui, sans-serif; text-align: left; cursor: pointer; }
.task-filter-chip:hover { box-shadow: inset 0 0 0 1px var(--bench-edge-lift); }
.task-filter-chip .filter-glyph { display: flex; color: var(--bench-subtle); }
.task-filter-chip .filter-glyph svg { width: 12px; height: 12px; }
.task-filter-chip .filter-label { min-width: 0; overflow-wrap: anywhere; }
.task-filter-chip .filter-remove { flex: none; width: 18px; height: 18px; border-radius: 9px; display: flex; align-items: center; justify-content: center; color: var(--bench-subtle); }
.task-filter-chip .filter-remove:hover { background: var(--bench-hover); color: var(--bench-text); }
.task-filter-menu { position: fixed; z-index: 120; box-sizing: border-box; width: 236px; max-height: min(420px, calc(100vh - 24px)); overflow-y: auto; padding: 4px; border-radius: 10px; background: var(--bench-raised); box-shadow: var(--bench-pop-edge); color: var(--bench-text); font: 400 13px/18px -apple-system, BlinkMacSystemFont, system-ui, sans-serif; outline: none; }
.task-filter-menu .filter-search { display: flex; align-items: center; gap: 6px; height: 28px; margin: 2px 2px 4px; padding: 0 8px; border-radius: 6px; background: var(--bench-canvas); box-shadow: inset 0 0 0 1px var(--bench-border); color: var(--bench-subtle); }
.task-filter-menu .filter-search input { flex: 1; min-width: 0; padding: 0; border: 0; outline: none; background: none; color: var(--bench-text); font: 400 12px/16px -apple-system, BlinkMacSystemFont, system-ui, sans-serif; }
.task-filter-menu .filter-row { display: flex; align-items: center; gap: 8px; width: 100%; padding: 6px 8px; border: 0; border-radius: 6px; background: none; color: var(--bench-text); font: inherit; text-align: left; cursor: pointer; }
.task-filter-menu .filter-row:hover, .task-filter-menu .filter-row.active { background: var(--bench-hover); }
.task-filter-menu .filter-row.back { padding: 5px 6px 3px; color: var(--bench-subtle); font-size: 12px; line-height: 16px; font-weight: 600; gap: 4px; }
.task-filter-menu .filter-row.back:hover, .task-filter-menu .filter-row.back.active { background: none; color: var(--bench-text); }
.task-filter-menu .filter-row.more { padding-left: 30px; color: var(--bench-subtle); font-size: 12px; }
.task-filter-menu .filter-glyph { flex: none; display: flex; color: var(--bench-subtle); }
.task-filter-menu .filter-glyph svg { width: 14px; height: 14px; }
.task-filter-menu .filter-row.back .filter-glyph svg { width: 12px; height: 12px; }
.task-filter-menu .filter-check { flex: none; width: 14px; display: flex; justify-content: center; color: var(--bench-accent); }
.task-filter-menu .filter-label { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.task-filter-menu .filter-label b { font-weight: 700; }
.task-filter-menu .filter-row.picked .filter-label { font-weight: 600; }
.task-filter-menu .filter-row.back .filter-label { flex: none; }
.task-filter-menu .filter-live { flex: none; width: 6px; height: 6px; border-radius: 3px; background: var(--bench-live); box-shadow: 0 0 0 2px var(--bench-live-glow); }
.task-filter-menu .filter-count { flex: none; color: var(--bench-subtle); font-size: 11px; line-height: 15px; font-variant-numeric: tabular-nums; }
.task-filter-menu .filter-heading { padding: 6px 8px 2px; color: var(--bench-subtle); font-size: 11px; line-height: 14px; font-weight: 600; }
.task-filter-menu .filter-separator { height: 1px; margin: 4px 6px; background: var(--bench-border); }
.task-filter-menu .filter-empty { padding: 6px 8px; color: var(--bench-subtle); font-size: 12px; }
.queue-problem { display: flex; flex-direction: column; gap: 8px; padding: 0 22px 12px; }
.queue-problem[hidden] { display: none; }
.queue-problem .detail { padding: 8px 10px; border-radius: 8px; background: var(--bench-canvas); font: 11px/1.45 ui-monospace, SFMono-Regular, Menlo, monospace; overflow-wrap: anywhere; max-height: 96px; overflow-y: auto; }
.queue-problem button { align-self: flex-start; height: 28px; padding: 0 12px; border: 1px solid var(--bench-border); border-radius: 7px; background: var(--bench-raised); color: var(--bench-text); font: 600 12px -apple-system, system-ui, sans-serif; cursor: pointer; }
.queue-problem button:disabled { background: none; color: var(--bench-disabled); cursor: default; }
@keyframes queue-pulse { 50% { opacity: 0.3; } }
.task-panel .empty { padding: 4px 10px; font-size: 12px; line-height: 1.5; color: var(--bench-subtle); }
.task-list { flex: 1; min-height: 0; overflow-y: auto; padding: 0 12px 16px; display: flex; flex-direction: column; gap: 0; }
.agent-pill .status-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--bench-disabled); }
.agent-pill .status-dot.working { background: var(--bench-live); animation: queue-pulse 1.4s ease-in-out infinite; }
.agent-pill .status-text { min-width: 0; font-size: 11px; font-weight: 400; color: var(--bench-subtle); }
.agent-pill .status-text.working { color: var(--bench-live-text); }
.agent-overlay { position: fixed; bottom: var(--floating-inset); left: calc(var(--sidebar-width) + var(--floating-inset)); z-index: 100; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; pointer-events: none; }
.agent-pill { position: relative; height: 36px; display: flex; flex-direction: column; justify-content: flex-end; pointer-events: auto; outline: none; cursor: pointer; }
.agent-pill:hover, .agent-pill:focus-visible { z-index: 1; }
.agent-face { flex: none; display: flex; flex-direction: column; gap: 4px; box-sizing: border-box; min-height: 36px; padding: 5px 14px 5px 5px; border: 1px solid var(--bench-border); border-radius: 18px; background: var(--bench-raised); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12); }
.agent-pill:hover .agent-face, .agent-pill:focus-visible .agent-face, .agent-pill.active .agent-face { border-color: var(--bench-text); }
.agent-pill.menu-target .agent-face { border-color: var(--bench-accent); box-shadow: inset 0 0 0 0.5px var(--bench-accent), 0 4px 12px rgba(0, 0, 0, 0.12); }
.agent-line { display: flex; align-items: center; gap: 8px; height: 24px; white-space: nowrap; }
.agent-avatar { flex: none; width: 24px; height: 24px; border-radius: 12px; background: var(--bench-note); color: var(--bench-on-pigment); font: 700 11px/24px -apple-system, BlinkMacSystemFont, system-ui, sans-serif; text-align: center; }
.agent-avatar.built-in { border-radius: 7px; background: none; -webkit-user-drag: none; }
.agent-avatar.is-face { overflow: hidden; background: var(--bench-chalk); box-shadow: inset 0 0 0 1px var(--bench-face-ring); }
.agent-avatar.is-face svg { display: block; width: 100%; height: 100%; }
.agent-avatar.is-face .line { fill: none; stroke: var(--bench-charcoal); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.agent-avatar.is-face .line.thin { stroke-width: 1; }
.agent-avatar.is-face .dot { fill: var(--bench-charcoal); }
.agent-avatar.is-face .shine { fill: var(--bench-face-shine); }
.agent-avatar.is-face .blush { fill: var(--bench-face-blush); }
.agent-avatar.is-face .drop { fill: var(--bench-face-drop); }
.agent-pill .agent-name { font: 600 13px/18px -apple-system, BlinkMacSystemFont, system-ui, sans-serif; color: var(--bench-text); }
.agent-pill .status-text { font-size: 12px; font-weight: 500; }
.task-item { position: relative; display: flex; gap: 10px; align-items: flex-start; width: 100%; padding: 9px 10px; border: 0; border-radius: 8px; background: none; color: var(--bench-text); font: inherit; text-align: left; cursor: pointer; }
.task-item:hover { background: var(--bench-hover); }
.task-item.active { background: var(--bench-selected); box-shadow: var(--bench-selected-edge); }
.task-item.menu-target { box-shadow: inset 0 0 0 1.5px var(--bench-accent); }
.task-item .rl { position: absolute; left: 14px; top: 0; bottom: 0; width: 12px; pointer-events: none; }
.task-item .rl::before, .task-item .rl::after { content: ""; position: absolute; left: 5px; width: 2px; background: var(--bench-accent); mask-image: url("/task-grain.png"); mask-size: 128px; mask-mode: luminance; }
.task-item .rl::before { top: 0; height: 18px; }
.task-item .rl::after { top: 18px; bottom: 0; }
.task-item .rl.pending::after, .task-item .rl.after-pending::before { background: repeating-linear-gradient(to bottom, var(--bench-edge-lift) 0 3px, transparent 3px 7px); mask-image: none; }
.task-item.first .rl::before { display: none; }
.task-item.last .rl::after { display: none; }
:is(.task-item, .agent-strip) .n { position: relative; z-index: 1; flex: none; width: 20px; height: 20px; margin-top: -1px; display: flex; align-items: center; justify-content: center; }
:is(.task-item, .agent-strip) .n::before { content: ""; box-sizing: border-box; width: 12px; height: 12px; border-radius: 6px; }
:is(.task-item, .agent-strip) .n.edit::before { background: var(--bench-accent); }
:is(.task-item, .agent-strip) .n.none::before { background: var(--bench-chrome); border: 1.5px solid var(--bench-subtle); }
:is(.task-item, .agent-strip) .n.working::before { background: var(--bench-live); box-shadow: 0 0 0 3px var(--bench-live-glow); }
:is(.task-item, .agent-strip) .n.queued::before { background: var(--bench-chrome); border: 1.5px dashed var(--bench-subtle); }
:is(.task-item, .agent-strip) .n.failed::before { background: var(--bench-chrome); border: 1.5px solid var(--bench-warning); }
:is(.task-item, .agent-strip) .n.glyph { border-radius: 10px; background: var(--bench-accent); color: var(--bench-on-accent); }
:is(.task-item, .agent-strip) .n.glyph::before { display: none; }
:is(.task-item, .agent-strip) .n.glyph.thread { background: var(--bench-chrome); color: var(--bench-subtle); }
.task-item .b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.task-item .row-words { display: flex; flex-direction: column; gap: 3px; max-height: var(--row-words-cap); overflow: hidden; }
.task-item.is-expanded .row-words { max-height: none; }
.task-item.is-long:not(.is-expanded) .row-words { mask-image: linear-gradient(to bottom, #000 calc(100% - 32px), transparent); }
.task-item .row-more { display: none; align-self: flex-start; padding: 0; border: 0; background: none; color: var(--bench-text); font: 600 12px/16px -apple-system, BlinkMacSystemFont, system-ui, sans-serif; cursor: pointer; }
.task-item .row-more:hover { text-decoration: underline; }
.task-item.is-long .row-more { display: block; }
.task-item .tx { font-size: 13px; line-height: 1.4; overflow-wrap: anywhere; }
.task-item .tx .answer-code { display: inline; margin: 0; padding: 0; background: none; font: 12px ui-monospace, SFMono-Regular, Menlo, monospace; white-space: normal; }
.task-item.quiet .tx { color: var(--bench-subtle); }
.task-item.undone .tx { color: var(--bench-subtle); text-decoration: line-through; }
.task-item .oc { font-size: 12px; line-height: 1.4; color: var(--bench-subtle); border-left: 2px solid var(--bench-border); padding-left: 8px; overflow-wrap: anywhere; }
.task-item .st { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 11px; line-height: 15px; color: var(--bench-subtle); }
.task-item .st b { font-weight: 600; color: var(--bench-text); }
.task-item .st.live b { color: var(--bench-live-text); }
.task-item .st.warn b { color: var(--bench-warning-text); }
.task-item .st time { flex: none; font-variant-numeric: tabular-nums; }
.task-item .m { align-self: flex-start; font-size: 11px; line-height: 15px; color: var(--bench-subtle); }
.task-item .by { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 5px; margin-bottom: 1px; font-size: 12px; line-height: 18px; color: var(--bench-subtle); }
.by-person { display: inline-flex; align-items: center; gap: 5px; color: var(--bench-text); font-weight: 600; }
.by-person > .agent-avatar { width: 16px; height: 16px; border-radius: 8px; font-size: 9px; line-height: 16px; text-align: center; }
.by-person > .agent-avatar.built-in { border-radius: 5px; }
.task-item .by-arrow { display: inline-flex; align-items: center; gap: 5px; }
.task-item .by-arrow > svg { flex: none; }
.profile-avatar.byline { width: 16px; height: 16px; }
.agent-strip { display: flex; align-items: center; gap: 6px; margin: 1px 0 2px; }
.agent-strip .strip-step { flex: none; box-sizing: border-box; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 6px; display: flex; align-items: center; justify-content: center; background: var(--bench-raised); box-shadow: inset 0 0 0 1px var(--bench-border); color: var(--bench-text); cursor: pointer; }
.strip-step:hover { box-shadow: inset 0 0 0 1px var(--bench-edge-lift); }
.strip-step.off { visibility: hidden; }
.strip-older { flex: none; color: var(--bench-subtle); font: 600 10px/14px -apple-system, BlinkMacSystemFont, system-ui, sans-serif; font-variant-numeric: tabular-nums; }
.strip-dots { position: relative; flex: 1; min-width: 0; height: 22px; display: flex; align-items: center; justify-content: space-between; }
.strip-dots::before { content: ""; position: absolute; left: 10px; right: 10px; top: 10px; height: 2px; background: var(--bench-accent); mask-image: url("/task-grain.png"); mask-size: 128px; mask-mode: luminance; }
.agent-strip .n { margin-top: 0; padding: 0; border: 0; font: inherit; cursor: pointer; }
.agent-strip .n:not(.glyph) { background: none; }
.agent-strip .n.is-shown::after { content: ""; position: absolute; left: 5px; right: 5px; bottom: -5px; height: 2px; border-radius: 1px; background: var(--bench-accent); }
:root[data-keyboard-focus] .strip-step:focus-visible, :root[data-keyboard-focus] .agent-strip .n:focus-visible { outline: 2px solid var(--bench-accent); outline-offset: 1px; }
.strip-older:empty { display: none; }
.strip-head:not([hidden]) { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; line-height: 18px; }
.strip-count { flex: none; color: var(--bench-subtle); font-size: 11px; font-variant-numeric: tabular-nums; }
.pinned-tasks:not([hidden]) { display: flex; flex-direction: column; gap: 6px; padding: 0 12px; }
.pinned-head { display: flex; align-items: center; gap: 6px; height: 22px; padding-left: 10px; color: var(--bench-subtle); font: 600 11px/14px -apple-system, BlinkMacSystemFont, system-ui, sans-serif; }
.pinned-head > svg { flex: none; }
.pinned-head .strip-count { margin-left: auto; font-weight: 500; }
.pinned-tasks .agent-strip { margin: 0 0 4px 10px; }
.pinned-deck { position: relative; margin: 2px 12px 0 0; }
.pinned-back { position: absolute; top: 9px; bottom: 9px; left: 8px; right: -8px; border-radius: 10px; background: var(--bench-raised); box-shadow: 0 0 0 1px var(--bench-edge-lift); }
.pinned-back.is-far { top: 18px; bottom: 18px; left: 16px; right: -16px; opacity: 0.7; }
.task-item.pinned-card { z-index: 1; padding: 10px 12px 10px 8px; border-radius: 10px; background: var(--bench-raised); box-shadow: 0 0 0 1px var(--bench-border), 0 4px 12px rgba(0, 0, 0, 0.07); }
.task-item.pinned-card.active, .task-item.pinned-card.menu-target { box-shadow: 0 0 0 1.5px var(--bench-accent), 0 4px 12px rgba(0, 0, 0, 0.08); }
.task-item.pinned-card.is-leaving { position: absolute; inset: 0; z-index: 2; overflow: hidden; pointer-events: none; }
.pinned-card .rl, .pinned-card .row-more, .pinned-card .pin-mark { display: none; }
.pinned-card .tx { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pinned-divider { height: 1px; margin: 0 -12px; background: var(--bench-border); }
.pinned-tasks:not([hidden]) + .task-list { padding-top: 8px; }
.pinned-tasks:not([hidden]), .pinned-tasks[hidden] + .task-list { border-top: 1px solid var(--bench-border); padding-top: 8px; }
.pin-mark { display: inline-flex; vertical-align: -1px; margin-left: 4px; color: var(--bench-subtle); }
.thread-card .agent-strip .n.glyph.thread, .thread-card .agent-strip .n:is(.none, .queued, .failed)::before { background: var(--bench-raised); }
.tree-group { display: flex; flex-direction: column; gap: 1px; }
.tree-group.nested { position: relative; }
.tree-rail { position: absolute; top: 0; bottom: 0; left: calc(6px + var(--depth) * 14px); width: 12px; padding: 0; border: 0; background: none; cursor: pointer; z-index: 1; }
.tree-rail::before { content: ""; position: absolute; top: 2px; bottom: 2px; left: 6px; width: 1px; border-radius: 1px; background: var(--bench-border); transition: background-color 120ms ease; }
.tree-rail:hover::before { left: 5px; width: 3px; background: var(--bench-accent); }
.tree-row.folder:has(+ .tree-group.nested > .tree-rail:hover) { background: var(--bench-hover); }
.tree-row {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  width: 100%;
  padding: 6px 8px 6px calc(4px + var(--depth, 0) * 14px);
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--bench-text);
  font: 400 13px/18px -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.tree-row:hover { background: var(--bench-hover); }
.tree-row.active { background: var(--bench-selected); color: var(--bench-text); box-shadow: var(--bench-selected-edge); }
.tree-row .twisty, .tree-row .tree-icon { flex-shrink: 0; width: 16px; height: 18px; display: flex; align-items: center; color: var(--bench-subtle); }
.tree-row .twisty svg { transition: transform 120ms ease; }
.tree-row .twisty.open svg { transform: rotate(90deg); }
.tree-row.folder .tree-icon { color: var(--bench-note-text); }
.tree-row.active .tree-icon { color: var(--bench-text); }
.tree-row .tree-label { min-width: 0; margin-left: 2px; overflow-wrap: anywhere; }
.tree-row .tree-add { flex-shrink: 0; width: 18px; height: 18px; margin: 0 -2px 0 auto; display: flex; align-items: center; justify-content: center; border-radius: 5px; color: var(--bench-subtle); visibility: hidden; }
.tree-row .tree-add svg { width: 14px; height: 14px; }
.tree-row:hover .tree-add, .tree-row:focus-visible .tree-add { visibility: visible; }
.tree-row.folder .tree-label { font-weight: 600; }
.tree-row.revealed { animation-name: tree-row-revealed; animation-timing-function: ease-out; }
@keyframes tree-row-revealed {
  0%, 55% { box-shadow: inset 0 0 0 2px var(--bench-accent); }
  100% { box-shadow: inset 0 0 0 2px transparent; }
}
.tree-row.empty { padding-left: calc(28px + var(--depth) * 14px); color: var(--bench-subtle); font-size: 12px; cursor: default; }
.tree-row.empty:hover { background: none; }
.tree-group.nested > .tree-row { --rail-clearance: calc(var(--depth) * 14px + 1px); width: calc(100% - var(--rail-clearance)); margin-left: var(--rail-clearance); padding-left: 3px; }
.tree-group.nested > .tree-row.empty { padding-left: 27px; }
.tree-blank { padding: 4px 10px; font-size: 12px; line-height: 1.5; color: var(--bench-subtle); }
.tree-row.dragging { opacity: 0.45; }
.tree-row.renaming { background: var(--bench-raised); box-shadow: inset 0 0 0 1.5px var(--bench-accent); cursor: text; }
.tree-row.renaming .tree-label { flex: 1 1 auto; min-height: 18px; outline: none; cursor: text; user-select: text; -webkit-user-select: text; }
.tree-row.drop-target, .tree-row.menu-target { box-shadow: inset 0 0 0 1.5px var(--bench-accent); }
.tree-row.drop-target { background: var(--bench-hover); }
.sidebar .nav.drop-root { border-radius: 8px; box-shadow: inset 0 0 0 1.5px var(--bench-accent); }
.tree-drop-line { position: absolute; right: 8px; height: 2px; border-radius: 1px; background: var(--bench-accent); pointer-events: none; z-index: 2; }
.tree-drop-line::before { content: ""; position: absolute; left: -8px; top: 50%; box-sizing: border-box; width: 8px; height: 8px; border: 2px solid var(--bench-accent); border-radius: 50%; background: var(--bench-chrome); transform: translateY(-50%); }
.context-menu { position: fixed; z-index: 220; min-width: 190px; padding: 4px; border: 1px solid transparent; border-radius: 10px; background: var(--bench-raised); box-shadow: var(--bench-pop-edge); display: flex; flex-direction: column; outline: none; }
.context-menu-item { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; padding: 7px 10px; border: 0; border-radius: 6px; background: none; color: var(--bench-text); font: 400 13px/18px -apple-system, BlinkMacSystemFont, system-ui, sans-serif; text-align: left; cursor: pointer; }
.context-menu-item:not(:disabled):hover, .context-menu-item:focus-visible { background: var(--bench-hover); outline: none; }
.context-menu-item.destructive { color: var(--bench-destructive-text); }
.context-menu-item:disabled { color: var(--bench-disabled); cursor: default; }
.context-menu-item .detail { font-size: 11px; line-height: 14px; color: var(--bench-subtle); }
.context-menu-separator { height: 1px; margin: 4px 0; background: var(--bench-border); }
.context-menu-heading { padding: 6px 10px 2px; font: 600 11px/14px -apple-system, BlinkMacSystemFont, system-ui, sans-serif; color: var(--bench-subtle); }
.context-menu-heading ~ .context-menu-heading { margin-top: 4px; border-top: 1px solid var(--bench-border); padding-top: 8px; }
.context-menu-item[role="menuitemradio"] { position: relative; padding-left: 26px; }
.context-menu-item[aria-checked="true"]::before { content: "✓"; position: absolute; left: 10px; top: 7px; font-weight: 600; }

#main { position: relative; grid-column: 2; grid-row: 1 / span 2; height: 100vh; min-width: 0; display: flex; flex-direction: column; overflow: clip; user-select: none; -webkit-user-select: none; }
#main img { -webkit-user-drag: none; }
.pane-row { flex: 1 1 0; min-height: 0; display: flex; }
.pane { position: relative; flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; }
.pane + .pane { border-left: 1px solid var(--bench-edge-lift); }
.pane-row + .pane-row > .pane > .tab-bar { border-top-color: var(--bench-edge-lift); }
.pane > .tab-bar { flex: none; }
.canvas-viewport { --edge-shadow-left: inset 16px 0 12px -12px rgba(0, 0, 0, 0.12); --edge-shadow-right: inset -16px 0 12px -12px rgba(0, 0, 0, 0.12); position: relative; flex: 1 1 0; min-height: 0; overflow: clip; }
.canvas-viewport::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; box-shadow: var(--edge-shadow-left), var(--edge-shadow-right), inset 0 16px 12px -12px rgba(0, 0, 0, 0.12); }
body.columns-hidden .pane:not(.pane + .pane) > .canvas-viewport { --edge-shadow-left: 0 0 transparent; }
body.columns-hidden .pane:not(:has(+ .pane)) > .canvas-viewport { --edge-shadow-right: 0 0 transparent; }
#main.is-split .pane:not(.is-focused) .design-tab.focused { background: none; box-shadow: inset 0 0 0 1px var(--bench-border); }
.sidebar { grid-column: 1; grid-row: 2; }
.side-column { grid-column: 3; grid-row: 2; }
body.columns-hidden { --sidebar-width: 0px; --inspector-width: 0px; }
body.columns-hidden .column-head, body.columns-hidden .sidebar { display: none; }
body.columns-hidden .side-column { display: contents; }
.link-copied { position: fixed; left: 50%; bottom: calc(var(--floating-inset) + 52px); padding: 7px 12px; border-radius: 8px; background: var(--bench-accent); color: var(--bench-on-accent); font: 600 12px/16px -apple-system, BlinkMacSystemFont, system-ui, sans-serif; pointer-events: none; z-index: 210; animation: link-copied 1600ms ease forwards; }
@keyframes link-copied { 0% { opacity: 0; transform: translate(-50%, 4px); } 12%, 78% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; transform: translate(-50%, 0); } }
.column-head, .tab-bar { grid-row: 1; height: var(--tab-strip-height); z-index: 2; border-top: 1px solid var(--bench-border); border-bottom: 1px solid var(--bench-border); background: var(--bench-chrome); }
.sidebar-head { grid-column: 1; display: flex; align-items: center; padding: 0 12px; border-bottom: 0; border-right: 1px solid var(--bench-border); }
.sidebar-logo { width: 22px; height: 22px; -webkit-user-drag: none; }
.sidebar-home { display: flex; border-radius: 6px; }
.sidebar-disconnect { margin-left: auto; height: 24px; padding: 0 10px; border: 1px solid var(--bench-destructive); border-radius: 6px; background: var(--bench-destructive); color: var(--bench-on-pigment); font: 600 12px/16px -apple-system, BlinkMacSystemFont, system-ui, sans-serif; cursor: pointer; }
.sidebar-disconnect:disabled { opacity: 0.6; cursor: default; }
.sidebar-logo, .agent-avatar.built-in, .start-mark { content: var(--bench-mark); }
.inspector-head { grid-column: 3; border-bottom: 0; border-left: 1px solid var(--bench-border); }
.inspector-head { display: flex; align-items: center; justify-content: flex-end; padding: 0 12px; }
.profile-button { position: relative; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%; background: none; display: flex; align-items: center; justify-content: center; cursor: pointer; }
:root[data-keyboard-focus] .profile-button:focus-visible { outline: 2px solid var(--bench-accent); outline-offset: 2px; }
.profile-button.is-open { box-shadow: 0 0 0 2px var(--bench-chrome), 0 0 0 3.5px var(--bench-accent); }
.profile-button.is-waiting::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1.5px solid var(--bench-border); border-top-color: var(--bench-accent); animation: profile-waiting 0.9s linear infinite; }
@keyframes profile-waiting { to { transform: rotate(360deg); } }
.profile-avatar { width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0; object-fit: cover; -webkit-user-drag: none; }
.profile-avatar.is-guest { background: var(--bench-raised); box-shadow: inset 0 0 0 1px var(--bench-border); color: var(--bench-subtle); }
.profile-button .profile-avatar.is-guest { background: var(--bench-accent); box-shadow: none; color: var(--bench-on-accent); }
.profile-avatar.is-colors { background: linear-gradient(135deg, var(--from), var(--to)); }
.profile-avatar.nav { width: 20px; height: 20px; }
.profile-avatar.medium { width: 32px; height: 32px; }
.profile-avatar.xl { width: 48px; height: 48px; }
.profile-menu-identity { display: flex; align-items: center; gap: 10px; padding: 8px 10px 10px; min-width: 212px; }
.profile-menu-names { min-width: 0; }
.profile-menu-name { font: 600 13px/18px -apple-system, BlinkMacSystemFont, system-ui, sans-serif; overflow-wrap: anywhere; }
.profile-menu-email { font: 400 11px/14px -apple-system, BlinkMacSystemFont, system-ui, sans-serif; color: var(--bench-subtle); overflow-wrap: anywhere; }
.context-menu-item.with-icon { flex-direction: row; align-items: center; gap: 8px; }
.tab-bar { grid-column: 2; display: flex; align-items: stretch; min-width: 0; }
.columns-toggle { flex: none; width: 40px; display: flex; align-items: center; justify-content: center; padding: 0; border: 0; background: none; color: var(--bench-subtle); cursor: pointer; }
.columns-toggle:hover { color: var(--bench-text); }
.columns-toggle .side-pane { fill: currentColor; fill-opacity: 0.3; stroke: none; }
body.columns-hidden .columns-toggle .side-pane { fill-opacity: 0; }
.design-tabs { flex: 1; display: flex; align-items: stretch; min-width: 0; padding-inline: 2px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.design-tabs::-webkit-scrollbar { display: none; }
.design-tab { flex: none; display: flex; align-items: center; gap: 8px; padding: 0 6px 0 12px; border-radius: 5px; color: var(--bench-subtle); font: 500 12px/16px -apple-system, BlinkMacSystemFont, system-ui, sans-serif; white-space: nowrap; cursor: pointer; }
.design-tab:hover { color: var(--bench-text); }
.design-tab.focused { background: var(--bench-selected); color: var(--bench-text); box-shadow: var(--bench-selected-edge); }
.design-tab .dot { flex: none; width: 8px; height: 8px; border-radius: 50%; visibility: hidden; }
.design-tab.claude .dot, .design-tab.gone .dot { visibility: visible; }
.design-tab.claude .dot { background: var(--bench-live); }
.design-tab.working .dot { animation: claude-glow 1.6s ease-in-out infinite; }
.design-tab.gone .dot { background: var(--bench-disabled); }
@keyframes claude-glow { 50% { box-shadow: 0 0 0 4px var(--bench-live-glow), 0 0 10px 2px var(--bench-live-halo); } }
.design-tab .label[data-rename-field] { min-width: 40px; outline: none; cursor: text; user-select: text; -webkit-user-select: text; }
.design-tab:has(.label[data-rename-field]) { cursor: text; box-shadow: inset 0 0 0 1.5px var(--bench-accent); }
.design-tab.focused .label { cursor: text; }
.design-tab .close { flex: none; width: 18px; height: 18px; display: inline-flex; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: 4px; background: none; color: var(--bench-subtle); font: 400 14px/1 -apple-system, BlinkMacSystemFont, system-ui, sans-serif; cursor: pointer; }
.design-tab .close:hover { background: var(--bench-hover); color: var(--bench-text); }
.design-tab.owned { padding-right: 12px; }
.design-tab .owner, .chat-palette-agent .this-tab { flex: none; display: inline-flex; align-items: center; gap: 4px; font-weight: 600; }
.design-tab .owner svg, .chat-palette-agent .this-tab svg { flex: none; display: block; }
.design-tabs.is-dragging, .design-tabs.is-dragging .design-tab { cursor: grabbing; user-select: none; -webkit-user-select: none; }
.design-tabs.is-dragging .design-tab { transition: transform 150ms ease; }
.design-tabs.is-dragging .design-tab.dragging { position: relative; z-index: 1; transition: none; background: var(--bench-selected); color: var(--bench-text); box-shadow: var(--bench-selected-edge); }
.design-tabs.is-lifted .design-tab.dragging { opacity: 0.4; }
.tab-ghost { position: fixed; z-index: 300; height: calc(var(--tab-strip-height) - 8px); padding: 0 12px; pointer-events: none; cursor: grabbing; box-shadow: var(--bench-pop-edge); }
.tab-drop { position: fixed; z-index: 250; pointer-events: none; border-radius: 6px; background: var(--bench-mention); box-shadow: inset 0 0 0 2px var(--bench-accent); transition: left 90ms ease, top 90ms ease, width 90ms ease, height 90ms ease; }
.tab-drop.is-insert { border-radius: 1px; background: var(--bench-accent); box-shadow: none; transition: none; }
.design-tab-new { flex: none; width: 36px; padding: 0; border: 0; background: none; color: var(--bench-subtle); font: 400 18px/1 -apple-system, BlinkMacSystemFont, system-ui, sans-serif; cursor: pointer; }
.design-tab-new:hover:not(:disabled) { color: var(--bench-text); }
.design-tab-new:disabled { color: var(--bench-disabled); cursor: default; }
.canvas-world { position: absolute; top: 0; left: 0; width: max-content; padding: 28px 36px 64px; transform-origin: 0 0; }
.canvas-world.is-layered { will-change: transform; }
.canvas-world.is-layered [data-anchor] { will-change: opacity; }
.canvas-world:has(> .canvas-empty) { padding: 0; }
.canvas-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 0 0 84px; color: var(--bench-text); font: 400 13px/18px -apple-system, BlinkMacSystemFont, system-ui, sans-serif; }
.start-mark { width: 40px; height: 40px; }
.start-title { margin-top: 4px; font: 700 17px/24px "POMerri", "Merriweather", Georgia, serif; }
.start-hints { display: grid; grid-template-columns: auto auto; column-gap: 10px; row-gap: 8px; margin-top: 8px; color: var(--bench-subtle); font-size: 12px; }
.start-row { display: grid; grid-column: 1 / -1; grid-template-columns: subgrid; align-items: center; }
.start-keys { display: flex; gap: 4px; justify-content: flex-end; }
.start-keys kbd { box-sizing: border-box; min-width: 20px; height: 20px; padding: 0 5px; border: 1px solid var(--bench-border); border-bottom-width: 2px; border-radius: 5px; background: var(--bench-raised); color: var(--bench-text); font: 600 11px/17px -apple-system, system-ui, sans-serif; text-align: center; }
.start-keys kbd.icon { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; border: 0; border-radius: 6px; background: var(--bench-accent); color: var(--bench-on-accent); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18); }
.start-row.is-click { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; outline: none; pointer-events: none; }
.start-row.is-click > * { pointer-events: auto; }
.start-row.is-click > .start-keys { justify-self: end; margin: -4px -10px -4px -8px; padding: 4px 10px 4px 8px; border-radius: 8px 0 0 8px; }
.start-row.is-click > .start-label { justify-self: start; margin: -4px -8px -4px 0; padding: 4px 8px 4px 0; border-radius: 0 8px 8px 0; }
.start-row.is-click:is(:hover, :focus-visible) > *, body:has(.cmt-pop[data-new-design]) .start-row.is-click > * { background: var(--bench-hover); color: var(--bench-text); }
.start-row.is-click:is(:hover, :focus-visible) kbd.icon, body:has(.cmt-pop[data-new-design]) .start-row.is-click kbd.icon { box-shadow: 0 0 0 3px var(--bench-mention), 0 1px 2px rgba(0, 0, 0, 0.18); }
.canvas-problem { max-width: 560px; padding: 20px; border: 1px solid var(--bench-border); border-radius: 12px; background: var(--bench-raised); font-size: 13px; line-height: 1.5; }
.canvas-problem b { display: block; margin-bottom: 6px; font-size: 14px; }
.canvas-problem code { font: 12px ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--bench-destructive-text); }
.canvas-zoom {
  position: absolute;
  top: calc(var(--tab-strip-height) + var(--floating-inset));
  right: var(--floating-inset);
  display: flex;
  align-items: center;
  padding: 3px;
  border: 1px solid var(--bench-border);
  border-radius: 10px;
  background: var(--bench-raised);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  z-index: 120;
}
.canvas-zoom button { min-width: 30px; height: 28px; border: 0; border-radius: 7px; padding: 0 8px; background: none; color: var(--bench-text); font: 600 12px -apple-system, system-ui, sans-serif; font-variant-numeric: tabular-nums; cursor: pointer; }
.canvas-zoom button:hover { background: var(--bench-hover); }
.canvas-zoom .zoom-step { font-size: 16px; font-weight: 400; }
.canvas-zoom .zoom-level { min-width: 52px; }
.canvas-zoom .separator { width: 1px; height: 16px; margin: 0 3px; background: var(--bench-border); }

body.drawing-task .canvas-viewport, body.drawing-task .canvas-viewport *, body.drawing-task .note-body, body.drawing-task .note-body * { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 24 24'%3E%3Cg transform='translate(.23 20.23) rotate(-45)'%3E%3Cpath d='M1.7-2.5H16.1a.9.9 0 0 1 .9.9V1.6a.9.9 0 0 1-.9.9H0Z' fill='%23252321' stroke='%23FFFFFF' stroke-width='1.3' stroke-linejoin='round' paint-order='stroke'/%3E%3C/g%3E%3C/svg%3E") 2 26, crosshair !important; }
.canvas-world [data-offscreen], .canvas-world [data-offscreen] *, .canvas-world [data-offscreen] *::before, .canvas-world [data-offscreen] *::after { animation-name: none !important; }
body.canvas-grab .canvas-viewport, body.canvas-grab .canvas-viewport * { cursor: grab !important; }
body.canvas-panning .canvas-viewport, body.canvas-panning .canvas-viewport * { cursor: grabbing !important; }
.note-body { position: relative; }
.canvas-viewport::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid var(--bench-accent);
  pointer-events: none;
  z-index: 90;
  opacity: 0;
  transition: opacity 200ms ease;
}
body.drawing-task .canvas-viewport::after {
  opacity: 1;
}
.cmt-box { position: absolute; pointer-events: none; z-index: 50; }
.cmt-box.live { position: fixed; z-index: 95; }
.task-stroke { position: absolute; overflow: visible; pointer-events: none; }
.task-stroke-keyline { fill: var(--bench-box-ring); stroke: var(--bench-box-ring); stroke-width: 2px; stroke-linejoin: round; }
.task-stroke-line { fill: var(--bench-box); }
.cmt-box.is-faded .task-stroke { opacity: 0.42; }
.task-stroke-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.cmt-badge {
  position: absolute;
  left: var(--stroke-end-x, 100%);
  top: calc(var(--stroke-end-y, 100%) - 11px);
  min-width: 22px;
  height: 22px;
  padding: 0;
  border-radius: 11px;
  background: var(--bench-box);
  color: var(--bench-box-ring);
  border: 2px solid var(--bench-box-ring);
  font: 600 11px/18px ui-monospace, SFMono-Regular, Menlo, monospace;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-origin: left center;
  transform: translateX(calc((100% + 4px) * var(--badge-step, 0) / var(--canvas-zoom, 1))) scale(calc(1 / var(--canvas-zoom, 1)));
  pointer-events: auto;
  cursor: pointer !important;
}
.cmt-box[data-task] .cmt-badge { padding: 0 7px; }
.cmt-box.done .cmt-badge { background: var(--bench-box-ring); color: var(--bench-box-done); box-shadow: inset 0 0 0 1.5px var(--bench-box-done); }
.cmt-box.working .cmt-badge { background: var(--bench-live); box-shadow: 0 0 0 4px var(--bench-live-glow); animation: queue-pulse 1.4s ease-in-out infinite; }
.cmt-box.failed .cmt-badge { background: var(--bench-warning); }
.bottom-dock { bottom: var(--floating-inset); height: var(--voice-bar-height); display: flex; align-items: center; gap: 12px; padding: 0 8px; border: 1px solid var(--bench-border); border-radius: 30px; background: var(--bench-raised); color: var(--bench-text); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12); z-index: 120; }
.bottom-dock:has(.voice-dock) { width: var(--bottom-dock-width); }
.cmt-dock { flex: none; display: flex; }
.cmt-dock .cmt-chip.hint { position: absolute; right: 0; bottom: calc(100% + 10px); white-space: nowrap; opacity: 0; visibility: hidden; translate: 0 6px; transition: opacity 160ms ease, translate 160ms ease, visibility 0s 160ms; }
.cmt-dock.is-drawing .cmt-chip.hint { opacity: 1; visibility: visible; translate: 0 0; transition: opacity 180ms ease, translate 220ms cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0s; }
.bottom-dock { --voice-bar-height: 60px; --bottom-dock-width: 472px; position: fixed; left: calc(50vw + (var(--sidebar-open-width) - var(--inspector-open-width)) / 2); transform: translateX(-50%); }
.voice-dock { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; font: 400 13px/18px -apple-system, system-ui, sans-serif; }
.voice-toggle { position: relative; isolation: isolate; flex: none; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 50%; background: var(--bench-accent); color: var(--bench-on-accent); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: transform 180ms cubic-bezier(0.2, 0.8, 0.2, 1), background-color 240ms ease, color 240ms ease, box-shadow 200ms ease; }
.voice-toggle svg { width: 20px; height: 20px; transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1); }
.voice-toggle::before, .voice-toggle::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; opacity: 0; }
.voice-toggle::before { inset: -4px; border: 2px solid transparent; }
.voice-toggle::after { inset: 0; background: var(--bench-live); }
.voice-toggle:hover { background: var(--bench-accent-lift); }
.voice-toggle:hover svg { transform: translateY(-1px) rotate(-10deg); }
.voice-toggle:active { transform: scale(0.94); transition-duration: 90ms; }
.voice-toggle:disabled, .voice-toggle:disabled:hover { background: var(--bench-canvas); color: var(--bench-disabled); box-shadow: inset 0 0 0 1px var(--bench-border); cursor: default; }
.voice-toggle:disabled:active, .voice-toggle:disabled:hover svg { transform: none; }
.voice-dock.is-unavailable :is(.voice-title, .voice-hint, .voice-keys kbd) { color: var(--bench-disabled); }
.voice-dock[data-mode="off"] .voice-toggle { animation: voice-settle 280ms cubic-bezier(0.2, 0.8, 0.2, 1); }
.voice-dock:is([data-mode="starting"], [data-mode="listening"]) .voice-toggle { background: var(--bench-live); color: var(--bench-on-pigment); animation: button-pop 420ms cubic-bezier(0.2, 0.9, 0.3, 1.35); }
.voice-dock:is([data-mode="starting"], [data-mode="listening"]) .voice-toggle:hover { background: color-mix(in srgb, var(--bench-live) 86%, var(--bench-on-pigment)); }
.voice-dock[data-mode="starting"] .voice-toggle::before { border-top-color: var(--bench-live); border-right-color: var(--bench-live); animation: voice-spin 800ms linear infinite, voice-slow-start 200ms ease 500ms forwards; }
.voice-dock[data-mode="listening"] .voice-toggle::after { animation: voice-ripple 2400ms ease-out 420ms infinite; }
.voice-dock[data-mode="listening"] .voice-dot::after { animation: voice-dot-breathe 1800ms ease-in-out infinite; }
@keyframes voice-spin { to { transform: rotate(360deg); } }
@keyframes voice-slow-start { to { opacity: 1; } }
@keyframes button-pop { 0% { transform: scale(0.86); } 60% { transform: scale(1.05); } 100% { transform: scale(1); } }
@keyframes voice-settle { 0% { transform: scale(0.92); } 100% { transform: scale(1); } }
@keyframes voice-ripple { 0% { opacity: 0.4; transform: scale(1); } 100% { opacity: 0; transform: scale(1.24); } }
@keyframes voice-dot-breathe { 50% { opacity: 1; scale: 1.8; } }
@keyframes button-icon-in { from { opacity: 0; rotate: -90deg; scale: 0.6; } }
@media (prefers-reduced-motion: reduce) {
  .voice-toggle, .voice-toggle svg, .cmt-fab, .cmt-fab svg { transition: background-color 240ms ease, color 240ms ease; }
  .voice-toggle:hover, .voice-toggle:active, .voice-toggle:hover svg, .cmt-fab:hover, .cmt-fab:active, .cmt-fab:hover svg { transform: none; }
  .voice-dock .voice-toggle, .voice-dock .voice-toggle::after, .voice-dock .voice-dot::after, .cmt-fab, .cmt-fab svg { animation: none; }
  .cmt-dock .cmt-chip.hint, .cmt-dock.is-drawing .cmt-chip.hint, .canvas-viewport::after { transition: none; }
}
.voice-lines { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.voice-top { display: flex; align-items: center; gap: 8px; height: 18px; min-width: 0; }
.voice-title { font-weight: 600; }
.voice-tag { flex: none; display: inline-flex; align-items: center; gap: 6px; font: 600 11px/14px -apple-system, system-ui, sans-serif; color: var(--bench-live-text); }
.voice-dot { position: relative; flex: none; width: 6px; height: 6px; margin-left: 3px; border-radius: 3px; background: var(--bench-live); box-shadow: 0 0 0 3px var(--bench-live-glow); }
.voice-dot::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; background: var(--bench-live-glow); opacity: 0; pointer-events: none; }
.voice-hint { color: var(--bench-subtle); }
.voice-notice { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--bench-subtle); }
.voice-notice.problem { color: var(--bench-warning-text); }
.voice-notice svg { vertical-align: -1px; margin-right: 5px; }
.voice-says { display: flex; align-items: center; gap: 4px; height: 20px; overflow: hidden; white-space: nowrap; font-size: 11px; }
.voice-says .voice-hint { margin-left: 2px; }
.voice-says[hidden] { display: none; }
.voice-meter-line { gap: 10px; }
.voice-meter { flex: none; width: 112px; height: 4px; border-radius: 2px; background: var(--bench-border); overflow: hidden; }
.voice-meter-fill { display: block; width: 100%; height: 100%; border-radius: 2px; background: var(--bench-live); transform: scaleX(0); transform-origin: left center; }
.voice-meter-hint { min-width: 0; display: inline-flex; align-items: center; gap: 4px; overflow: hidden; }
.voice-say { flex: none; height: 20px; padding: 0 6px; box-sizing: border-box; border: 1px solid var(--bench-border); border-radius: 10px; background: var(--bench-canvas); color: var(--bench-text); font: 500 11px/18px -apple-system, system-ui, sans-serif; }
.voice-keys { flex: none; display: inline-flex; gap: 3px; }
.voice-keys kbd { min-width: 20px; height: 20px; padding: 0 5px; box-sizing: border-box; border: 1px solid var(--bench-border); border-bottom-width: 2px; border-radius: 5px; background: var(--bench-raised); color: var(--bench-text); font: 600 11px/16px -apple-system, system-ui, sans-serif; text-align: center; }
.voice-help-button { flex: none; width: 18px; height: 18px; margin-left: -2px; padding: 0; box-sizing: border-box; border: 1px solid var(--bench-border); border-radius: 9px; background: var(--bench-canvas); color: var(--bench-subtle); font: 600 11px/16px -apple-system, system-ui, sans-serif; text-align: center; cursor: pointer; }
.voice-help-button.is-open { border-color: var(--bench-text); color: var(--bench-text); }
.cmt-dialog.settings.voice-help { width: 480px; }
.voice-phrase { display: grid; grid-template-columns: 116px 1fr; column-gap: 12px; align-items: start; }
.voice-phrase .voice-say, .voice-phrase .voice-keys { justify-self: start; }
.voice-phrase-also { display: block; margin-top: 1px; font-size: 12px; line-height: 16px; color: var(--bench-subtle); }
.voice-example { display: flex; flex-direction: column; gap: 2px; }
.voice-example-say { font-weight: 600; }
.cmt-chip {
  border: 1px solid var(--bench-border);
  background: var(--bench-raised);
  color: var(--bench-subtle);
  border-radius: 16px;
  padding: 7px 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  font: 600 12px -apple-system, system-ui, sans-serif;
}
.cmt-fab {
  position: relative;
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 21px;
  border: 0;
  background: var(--bench-accent);
  color: var(--bench-on-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 180ms cubic-bezier(0.2, 0.8, 0.2, 1), background-color 220ms ease, color 220ms ease, box-shadow 200ms ease;
}
.cmt-fab svg { transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1); animation: button-icon-in 260ms cubic-bezier(0.2, 0.9, 0.3, 1.3); }
.cmt-fab:not(:disabled):hover { background: var(--bench-accent-lift); }
.cmt-fab:not(:disabled):hover svg { transform: scale(1.08); }
.cmt-fab:not(:disabled):active { transform: scale(0.94); transition-duration: 90ms; }
.cmt-fab.on { background: var(--bench-raised); color: var(--bench-accent); box-shadow: inset 0 0 0 2px var(--bench-accent); animation: button-pop 420ms cubic-bezier(0.2, 0.9, 0.3, 1.35); }
.cmt-fab.on:not(:disabled):hover { background: var(--bench-raised-lift); }
.cmt-fab:disabled { background: var(--bench-raised); color: var(--bench-disabled); box-shadow: inset 0 0 0 1px var(--bench-border); cursor: default; }
.charcoal-glyph { mask-image: url("/task-grain.png"); mask-size: 20px; mask-mode: luminance; }
.cmt-fab .charcoal-glyph { mask-size: 24px; }
.cmt-fab .count-badge { position: absolute; top: -3px; right: -3px; box-shadow: 0 0 0 2px var(--bench-raised); }
.cmt-fab:hover::after {
  content: attr(data-tip);
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  white-space: nowrap;
  background: var(--bench-accent);
  color: var(--bench-on-accent);
  padding: 6px 10px;
  border-radius: 6px;
  font: 600 12px -apple-system, system-ui, sans-serif;
  pointer-events: none;
}
.cmt-fab.on:hover::after { content: none; }
.is-out-of-picture { visibility: hidden; }
.cmt-dialog-scrim {
  position: fixed;
  inset: 0;
  padding: 16px;
  background: var(--bench-backdrop);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
}
.cmt-dialog {
  width: 340px;
  max-width: 100%;
  padding: 20px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: var(--bench-raised);
  color: var(--bench-text);
  box-shadow: var(--bench-pop-edge);
  display: flex;
  flex-direction: column;
  gap: 6px;
  font: 400 13px/1.5 -apple-system, system-ui, sans-serif;
}
.cmt-dialog.wide { width: 480px; }
.cmt-dialog .title { font-family: "POMerri", "Merriweather", Georgia, serif; font-weight: 700; font-size: 17px; line-height: 24px; }
.cmt-dialog .message, .pairing-onboarding .message { color: var(--bench-subtle); }
.cmt-dialog .detail { margin: 4px 0 0; max-height: 200px; overflow: auto; padding: 8px 10px; border-radius: 8px; background: var(--bench-canvas); color: var(--bench-text); font: 12px/1.45 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.cmt-dialog .actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 14px; }
.cmt-dialog .passphrase-fields { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.cmt-dialog .passphrase-input { box-sizing: border-box; width: 100%; height: 30px; padding: 0 10px; border: 1px solid var(--bench-border); border-radius: 8px; background: var(--bench-canvas); color: var(--bench-text); font: 400 13px/18px -apple-system, BlinkMacSystemFont, system-ui, sans-serif; }
.cmt-dialog .passphrase-input::placeholder { color: var(--bench-subtle); }
.cmt-dialog .passphrase-input:focus { outline: 2px solid var(--bench-accent); outline-offset: 1px; }
.cmt-dialog .passphrase-input:disabled { color: var(--bench-subtle); }
.cmt-dialog .passphrase-status { min-height: 16px; font: 400 12px/16px -apple-system, BlinkMacSystemFont, system-ui, sans-serif; color: var(--bench-subtle); }
.cmt-dialog .passphrase-status.problem { color: var(--bench-warning-text); }
.cmt-dialog .passphrase-status + .actions { margin-top: 8px; }
.cmt-dialog .passphrase-status + .actions button:disabled { cursor: default; opacity: 0.6; }
.cmt-dialog button, .pairing-onboarding button {
  border: 1px solid var(--bench-border);
  border-radius: 10px;
  padding: 9px 16px;
  background: var(--bench-raised);
  color: var(--bench-text);
  font: 600 13px -apple-system, system-ui, sans-serif;
  cursor: pointer;
}
.cmt-dialog button.primary { background: var(--bench-accent); border-color: var(--bench-accent); color: var(--bench-on-accent); }
.cmt-dialog button.destructive { background: var(--bench-destructive); border-color: var(--bench-destructive); color: var(--bench-on-pigment); }
:root[data-keyboard-focus] .cmt-dialog button:focus-visible, :root[data-keyboard-focus] .pairing-onboarding button:focus-visible { outline: 2px solid var(--bench-accent); outline-offset: 2px; }
.cmt-pop button {
  border: 1px solid var(--bench-border);
  background: var(--bench-raised);
  color: var(--bench-text);
  border-radius: 8px;
  padding: 7px 12px;
  font: 600 12px -apple-system, system-ui, sans-serif;
  cursor: pointer;
}
button.pin-toggle { flex: none; align-self: center; width: 22px; height: 22px; margin: -4px -4px -4px 0; padding: 0; border: 0; border-radius: 6px; display: flex; align-items: center; justify-content: center; background: none; color: var(--bench-subtle); cursor: pointer; }
button.pin-toggle:hover:not(:disabled) { background: var(--bench-hover); color: var(--bench-text); }
button.pin-toggle.is-on { color: var(--bench-accent); }
button.pin-toggle:disabled { opacity: 0.4; cursor: default; }
.cmt-pop {
  position: fixed;
  width: 300px;
  background: var(--bench-raised);
  color: var(--bench-text);
  border: 1px solid transparent;
  border-radius: 10px;
  box-shadow: var(--bench-pop-edge);
  padding: 12px;
  z-index: 110;
  font: 400 13px/1.45 -apple-system, system-ui, sans-serif;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cmt-pop textarea, .cmt-pop .mention-mirror, .chat-compose textarea, .chat-compose .mention-mirror {
  border: 0;
  padding: 8px 8px 4px;
  background: transparent;
  color: var(--bench-text);
  font: 400 13px/1.45 -apple-system, system-ui, sans-serif;
}
.cmt-pop textarea, .chat-compose textarea {
  width: 100%;
  min-height: 36px;
  max-height: 25vh;
  resize: none;
  overflow-y: auto;
  outline: none;
}
.cmt-pop .meta { color: var(--bench-subtle); font-size: 11px; }
.thread-card > .meta { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.thread-card > .meta .meta-when { flex: none; font-variant-numeric: tabular-nums; }
.cmt-pop .actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.cmt-pop .actions .spacer { flex: 1; }
.cmt-pop .actions .primary { background: var(--bench-accent); border-color: var(--bench-accent); color: var(--bench-on-accent); }
.cmt-pop .meta.status-working { color: var(--bench-live-text); font-weight: 600; }
.cmt-pop .meta.status-failed { color: var(--bench-warning-text); font-weight: 600; }
.cmt-pop .output { display: flex; flex-direction: column; gap: 6px; border-top: 1px solid var(--bench-border); padding-top: 8px; }
.cmt-pop .output b { font-weight: 600; }
.thread-card .thread-notes { display: flex; flex-direction: column; gap: 4px; padding: 8px 10px; border-radius: 8px; background: var(--bench-hover); color: var(--bench-text); font-size: 12px; line-height: 17px; }
.thread-card .thread-notes b { font-weight: 600; }
.thread-card .thread-notes ul { margin: 0; padding-left: 16px; }
.cmt-pop .output-links { display: flex; flex-wrap: wrap; gap: 6px; }
.cmt-pop button.output-link { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 4px 10px 4px 8px; font-weight: 500; text-align: left; }
.cmt-pop .output-link svg { flex: none; color: var(--bench-subtle); }
.cmt-pop .output-link span { min-width: 0; overflow-wrap: anywhere; }
.cmt-pop .output-more { display: inline-flex; align-items: center; padding: 0 4px; border: 0; background: none; color: var(--bench-subtle); font-size: 12px; font-weight: 500; cursor: pointer; }
.tasks-here { display: flex; flex-direction: column; gap: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--bench-border); }
.here-head { color: var(--bench-text); font: 600 13px/18px -apple-system, system-ui, sans-serif; }
.here-list { max-height: 228px; margin: 0 -6px; overflow-y: auto; display: flex; flex-direction: column; }
.cmt-pop button.here-task { flex: none; position: relative; display: flex; flex-direction: column; gap: 2px; padding: 6px 6px 7px; border: 0; border-radius: 7px; background: none; color: var(--bench-text); font: 400 12.5px/17px -apple-system, system-ui, sans-serif; text-align: left; }
.cmt-pop button.here-task + button.here-task { margin-top: 1px; }
.cmt-pop button.here-task + button.here-task::before { content: ""; position: absolute; left: 6px; right: 6px; top: -1px; border-top: 1px solid var(--bench-border); }
.cmt-pop button.here-task:hover { background: var(--bench-hover); }
.here-top { display: flex; align-items: center; gap: 6px; color: var(--bench-subtle); font-size: 11px; line-height: 15px; }
.here-top time { margin-left: auto; white-space: nowrap; }
.here-dot { flex: none; box-sizing: border-box; width: 6px; height: 6px; border-radius: 3px; background: var(--bench-subtle); }
.here-task.working .here-dot { background: var(--bench-live); box-shadow: 0 0 0 3px var(--bench-live-glow); }
.here-task.queued .here-dot { background: none; box-shadow: inset 0 0 0 1.5px var(--bench-subtle); }
.here-task.failed .here-dot { background: none; box-shadow: inset 0 0 0 1.5px var(--bench-warning); }
.here-id { color: var(--bench-text); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; text-decoration: underline; text-decoration-color: var(--bench-edge-lift); text-underline-offset: 2px; }
.here-task.working .here-state { color: var(--bench-live-text); font-weight: 600; }
.here-words { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.here-by { color: var(--bench-subtle); font-size: 11px; line-height: 15px; }
.here-new { margin-bottom: -2px; color: var(--bench-text); font: 600 11px/15px -apple-system, system-ui, sans-serif; }
.cmt-pop button.here-back { align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; margin: -4px 0 0 -6px; padding: 3px 8px 3px 4px; border: 0; border-radius: 6px; background: none; color: var(--bench-subtle); }
.cmt-pop button.here-back:hover { background: var(--bench-hover); color: var(--bench-text); }
.cmt-pop button.thread-close { position: absolute; top: 9px; right: 8px; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 6px; background: none; color: var(--bench-subtle); display: flex; align-items: center; justify-content: center; }
.cmt-pop button.thread-close svg { width: 14px; height: 14px; }
.cmt-pop button.thread-close:hover { background: var(--bench-hover); color: var(--bench-text); }
:root[data-keyboard-focus] .cmt-pop button.thread-close:focus-visible { outline: 2px solid var(--bench-accent); outline-offset: 1px; }
.thread-card > .strip-head:first-child, .thread-card > .strip-head[hidden]:first-child + .meta { margin-right: 28px; }
.cmt-pop .text { white-space: pre-wrap; }
.cmt-pop .prompt { border-left: 2px solid var(--bench-border); padding-left: 8px; color: var(--bench-subtle); }
.cmt-pop { max-height: calc(100vh - var(--tab-strip-height) - 24px); overflow-y: auto; }
.cmt-pop.task-card { max-height: 50vh; overflow: hidden; }
.cmt-pop .card-body { flex: 0 1 auto; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }
.cmt-pop, .cmt-pop .card-body { scrollbar-width: none; }
.cmt-pop::-webkit-scrollbar, .cmt-pop .card-body::-webkit-scrollbar { display: none; }
.cmt-pop .card-body { --fade-top: 0px; --fade-bottom: 0px; mask-image: linear-gradient(to bottom, transparent, #000 var(--fade-top), #000 calc(100% - var(--fade-bottom)), transparent); }
.cmt-pop .card-body.is-scrolled-past { --fade-top: 32px; }
.cmt-pop .card-body.has-more-below { --fade-bottom: 32px; }
.thread-card .thread-words, .thread-card .thread-editing { display: flex; flex-direction: column; gap: 6px; }
.thread-card .thread-replies { display: flex; flex-direction: column; gap: 8px; }
.thread-card .thread-turn { display: flex; flex-direction: column; gap: 4px; }
.thread-card .thread-turn > .thread-answer { margin-top: 4px; }
.thread-card .turn-by { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2px 8px; font-size: 12px; line-height: 18px; color: var(--bench-subtle); }
.thread-card .turn-by .when { flex: none; margin-left: auto; font-size: 11px; font-variant-numeric: tabular-nums; }
.thread-card .team-step { display: flex; align-items: center; gap: 8px; color: var(--bench-subtle); font: 600 10px/14px -apple-system, system-ui, sans-serif; letter-spacing: 0.5px; text-transform: uppercase; }
.thread-card .team-step::after { content: ""; flex: 1; height: 1px; background: var(--bench-border); }
.thread-card .turn-by .when > .task-code:not(:hover) { color: var(--bench-subtle); }
.thread-card .turn-by .when.status-failed { color: var(--bench-warning-text); font-weight: 600; }
.thread-card .turn-by .when.status-working { display: inline-flex; align-items: center; gap: 6px; color: var(--bench-live-text); font-weight: 600; }
.thread-card .turn-by .when.status-working::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 3px; background: var(--bench-live); box-shadow: 0 0 0 3px var(--bench-live-glow); }
.thread-card .thread-answer { display: flex; flex-direction: column; gap: 4px; padding: 8px 10px; border-radius: 8px; background: var(--bench-canvas); }
.thread-card .thread-answer > .text { white-space: pre-wrap; }
.thread-card .thread-answer .output { border-top: 0; padding-top: 0; }
.thread-card .thread-answer .output > b { display: none; }
.thread-card .thread-answer .chat-typing { padding: 2px 0; }
.thread-card .thread-answer .answer-code { background: var(--bench-raised); }
.change-card .change-summary { font-weight: 600; }
.change-card .change-file, .change-card .change-section { display: flex; flex-direction: column; gap: 2px; border-top: 1px solid var(--bench-border); padding-top: 8px; }
.change-card .change-section > b { font-weight: 600; padding: 0 6px 2px; }
.change-card .change-frames { display: flex; flex-direction: column; padding-left: 22px; }
.cmt-pop .change-link { display: flex; align-items: baseline; gap: 6px; width: 100%; padding: 4px 6px; border: 0; border-radius: 6px; background: none; color: var(--bench-text); font: 400 13px/18px -apple-system, system-ui, sans-serif; text-align: left; }
.cmt-pop button.change-link:hover { background: var(--bench-hover); }
.change-card .change-link svg { flex: none; align-self: center; color: var(--bench-subtle); }
.change-card .change-link .label { min-width: 0; overflow-wrap: anywhere; }
.change-card .change-file > .change-link .label { font-weight: 600; }
.change-card .change-link .detail { flex: none; margin-left: auto; color: var(--bench-subtle); font-size: 11px; }
.change-card .change-link.unreachable { color: var(--bench-subtle); cursor: default; }
.thread-card .thread-compose { flex: none; display: flex; flex-direction: column; gap: 6px; }
.thread-card .thread-compose textarea { max-height: 128px; }
.cmt-pop button.chat-send { padding: 0; border: 0; border-radius: 14px; background: var(--bench-accent); color: var(--bench-on-accent); }
.cmt-pop button.chat-send.off { opacity: 0.5; }
.thread-hint { position: absolute; left: 72px; right: 40px; bottom: 5px; height: 28px; display: flex; align-items: center; color: var(--bench-subtle); font-size: 11px; line-height: 13px; pointer-events: none; }
.thread-hint b { margin-left: 3px; font-weight: 600; color: var(--bench-text); }
.thread-menu-target { position: fixed; z-index: 111; pointer-events: none; }
.cmt-pop.dropping, .chat-compose.dropping { outline: 2px dashed var(--bench-accent); outline-offset: -6px; }
.cmt-field { position: relative; padding-bottom: 34px; border: 1px solid var(--bench-border); border-radius: 8px; background: var(--bench-canvas); }
.cmt-field textarea { display: block; }
.cmt-field .mention-mirror { position: absolute; box-sizing: border-box; overflow: hidden; white-space: pre-wrap; overflow-wrap: break-word; color: transparent; pointer-events: none; }
.cmt-field.has-mentions textarea { position: relative; }
.mention-mirror .mention { color: transparent; background: var(--bench-mention); border-radius: 4px; box-shadow: 2px 0 0 var(--bench-mention), -2px 0 0 var(--bench-mention); }
.mention-mirror .mention.identity-reference { --identity-reference-tint: color-mix(in srgb, var(--bench-note) 24%, transparent); background: var(--identity-reference-tint); box-shadow: 2px 0 0 var(--identity-reference-tint), -2px 0 0 var(--identity-reference-tint); }
.mention-menu { position: fixed; z-index: 111; min-width: 120px; padding: 4px; background: var(--bench-raised); border: 1px solid transparent; border-radius: 8px; box-shadow: var(--bench-pop-edge); display: flex; flex-direction: column; gap: 2px; }
.mention-menu[hidden] { display: none; }
.mention-menu button { border: 0; border-radius: 6px; padding: 5px 8px; background: none; color: var(--bench-text); text-align: left; font: 600 13px -apple-system, system-ui, sans-serif; cursor: pointer; }
.mention-menu button.on { background: var(--bench-row-selected); color: var(--bench-text); }
.mention-menu button.is-team { padding: 7px 8px 8px; }
.mention-mirror .mention.design-reference { --design-reference-tint: color-mix(in srgb, var(--bench-accent) 18%, transparent); background: var(--design-reference-tint); box-shadow: 2px 0 0 var(--design-reference-tint), -2px 0 0 var(--design-reference-tint); }
.mention-menu button.is-file { font-weight: 500; }
.mention-file { display: flex; align-items: center; gap: 6px; min-width: 0; }
.mention-file-glyph { display: flex; flex: none; color: var(--bench-subtle); }
.mention-file-glyph svg { width: 13px; height: 13px; }
.mention-file-title { flex: none; font-weight: 600; }
.mention-file-folder { flex: 1; min-width: 0; margin-left: 6px; color: var(--bench-subtle); font-weight: 400; text-align: right; }
.team-row { display: flex; flex-direction: column; gap: 4px; }
.team-top { display: flex; align-items: center; gap: 16px; }
.team-faces { display: flex; align-items: center; margin-left: auto; }
.team-faces > .agent-avatar { width: 20px; height: 20px; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--bench-face-ring), 0 0 0 2px var(--bench-raised); }
.team-faces > * + * { margin-left: -6px; }
.team-more { box-sizing: border-box; height: 20px; min-width: 20px; padding: 0 5px; border-radius: 10px; background: var(--bench-hover); box-shadow: 0 0 0 2px var(--bench-raised); color: var(--bench-subtle); font-size: 10px; font-weight: 600; line-height: 20px; text-align: center; }
.team-sub { color: var(--bench-subtle); font-size: 11px; font-weight: 500; line-height: 14px; white-space: nowrap; }
.cmt-field .attach { position: absolute; left: 5px; bottom: 5px; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 6px; background: none; color: var(--bench-subtle); display: flex; align-items: center; justify-content: center; }
.cmt-field .attach:hover { background: var(--bench-hover); color: var(--bench-text); }
.cmt-field .attach ~ .dictate { left: 37px; }
.cmt-field .dictate { position: absolute; left: 5px; bottom: 5px; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 6px; background: none; color: var(--bench-subtle); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.cmt-field .dictate:hover { background: var(--bench-hover); color: var(--bench-text); }
.cmt-field .dictate[data-state="recording"] { background: var(--bench-recording); color: var(--bench-on-pigment); }
.cmt-field .dictate:disabled { background: none; color: var(--bench-disabled); cursor: default; }
.cmt-tray, .cmt-gallery { display: flex; flex-wrap: wrap; gap: 6px; }
.cmt-tray[hidden] { display: none; }
.cmt-thumb { position: relative; width: 64px; height: 64px; flex-shrink: 0; border: 1px solid var(--bench-border); border-radius: 8px; overflow: hidden; background: var(--bench-canvas); display: flex; align-items: center; justify-content: center; }
.cmt-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cmt-thumb.file { padding: 6px; color: var(--bench-subtle); font-size: 10px; line-height: 1.3; text-align: center; text-decoration: none; overflow-wrap: anywhere; }
button.cmt-thumb { padding: 0; cursor: zoom-in; }
button.cmt-thumb.file { padding: 6px; font: inherit; font-size: 10px; }
.cmt-tray .cmt-thumb .remove { position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; padding: 0; border: 0; border-radius: 10px; background: var(--bench-viewer-chip); color: var(--bench-chalk); font: 600 14px/20px -apple-system, system-ui, sans-serif; }

.attachment-viewer { position: fixed; inset: 0; z-index: 210; padding: 48px; background: var(--bench-viewer-backdrop); display: flex; align-items: center; justify-content: center; }
.attachment-viewer img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4); }
.attachment-viewer iframe { width: min(1000px, 100%); height: 100%; border: 0; border-radius: 8px; background: var(--bench-paper); }
.attachment-viewer .close { position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border: 0; border-radius: 16px; background: var(--bench-viewer-button); color: var(--bench-chalk); display: flex; align-items: center; justify-content: center; cursor: pointer; }

.stage [hidden] { display: none !important; }
.chat { flex: 1.25 1 0; min-height: 0; display: flex; flex-direction: column; border-top: 1px solid var(--bench-border); background: var(--bench-chrome); color: var(--bench-text); font: 400 13px/18px -apple-system, BlinkMacSystemFont, system-ui, sans-serif; }
body.columns-hidden .chat { position: fixed; z-index: 100; box-sizing: border-box; width: var(--floating-card-width); overflow: hidden; border: 1px solid var(--bench-border); border-radius: 16px; background: var(--bench-chrome); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16); animation: floating-card-in 180ms ease-out; }
body.columns-hidden .chat { right: var(--floating-inset); bottom: var(--floating-inset); height: 452px; }
.chat-head { flex: none; display: flex; align-items: center; justify-content: space-between; padding: 9px 14px 9px 22px; }
.side-head { flex: none; display: flex; align-items: center; min-height: 30px; padding: 9px 14px 9px 22px; }
.side-toggle { display: inline-flex; align-items: center; gap: 6px; height: 30px; margin-left: -16px; padding: 0 4px 0 0; border: 0; background: none; color: var(--bench-subtle); font: 600 11px/14px -apple-system, BlinkMacSystemFont, system-ui, sans-serif; letter-spacing: 0.6px; text-transform: uppercase; cursor: pointer; }
.side-toggle:hover { color: var(--bench-text); }
.side-title { display: inline-flex; align-items: center; height: 30px; color: var(--bench-subtle); font: 600 11px/14px -apple-system, BlinkMacSystemFont, system-ui, sans-serif; letter-spacing: 0.6px; text-transform: uppercase; }
:root[data-keyboard-focus] .side-toggle:focus-visible { outline: 2px solid var(--bench-accent); outline-offset: 2px; border-radius: 4px; }
.side-toggle-chevron { flex: none; transition: transform 160ms ease; }
.side-toggle[aria-expanded="false"] .side-toggle-chevron { transform: rotate(-90deg); }
.chat-fold { display: none; }
body.columns-hidden .chat-head > .side-title { display: none; }
body.columns-hidden .chat-fold { display: inline-flex; }
body.columns-hidden .chat.is-folded { height: auto; min-height: 0; }
body.columns-hidden .chat.is-folded > :not(.chat-head) { display: none; }
body.columns-hidden .chat.is-folded .task-filter-button { display: none; }
body.columns-hidden .chat.is-full { --canvas-zoom-clearance: 48px; top: calc(var(--tab-strip-height) + var(--floating-inset) + var(--canvas-zoom-clearance)); height: auto; }
.chat-fold .chat-fold-icon { flex: none; display: block; }
.chat > .task-filter-chips { flex: none; }
.chat-head > .chat-search-button { margin-left: auto; }
.chat-search-button.on { color: var(--bench-accent); }
body.columns-hidden .chat.is-folded .chat-search-button { display: none; }
.chat-search { flex: none; display: flex; align-items: center; gap: 6px; margin: 0 14px 8px 22px; padding: 0 4px 0 8px; height: 30px; border: 1px solid var(--bench-border); border-radius: 8px; background: var(--bench-canvas); }
.chat-search[hidden] { display: none; }
.chat-search-glyph { flex: none; display: flex; color: var(--bench-subtle); }
.chat-search-glyph svg { width: 13px; height: 13px; }
.chat-search input { flex: 1; min-width: 0; height: 28px; padding: 0; border: 0; outline: 0; background: none; color: var(--bench-text); font: 400 13px/18px -apple-system, BlinkMacSystemFont, system-ui, sans-serif; -webkit-appearance: none; appearance: none; }
.chat-search input::-webkit-search-cancel-button { display: none; }
.chat-search-count { flex: none; color: var(--bench-subtle); font: 500 11px/14px -apple-system, system-ui, sans-serif; font-variant-numeric: tabular-nums; }
.chat-search-clear { flex: none; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 5px; background: none; color: var(--bench-subtle); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.chat-search-clear:hover { background: var(--bench-hover); color: var(--bench-text); }
::highlight(chat-search) { background-color: var(--bench-search-hit); }
.side-column > .chat { flex: 1.25 1 0; min-height: 240px; }
.side-divider { position: relative; flex: none; height: 0; z-index: 3; }
.side-divider::before { content: ""; position: absolute; left: 0; right: 0; top: -4px; height: 8px; cursor: row-resize; }
.side-divider::after { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: var(--bench-accent); opacity: 0; transition: opacity 120ms ease; pointer-events: none; }
.side-divider:hover::after, .is-resizing > .side-divider::after, :root[data-keyboard-focus] .side-divider:focus-visible::after { opacity: 1; }
.sidebar.is-resizing { cursor: row-resize; user-select: none; -webkit-user-select: none; }
.sidebar.finder-collapsed > .finder,
.sidebar.finder-collapsed > .side-divider,
.sidebar.tasks-collapsed > .side-divider,
.sidebar.tasks-collapsed > .task-panel > :not(.task-header) { display: none; }
.sidebar.tasks-collapsed > .task-panel { flex: none; min-height: 0; }
.sidebar.tasks-collapsed > .finder { flex: 1 1 0; }
body.columns-hidden .side-head, body.columns-hidden .side-divider { display: none; }
.chat-scroll { position: relative; flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; border-top: 1px solid var(--bench-border); }
.chat-feed { flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain; padding: 0 14px 0 16px; isolation: isolate; }
.chat-jump { position: absolute; left: 50%; bottom: 12px; z-index: 2; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; padding: 0; border: 1px solid var(--bench-border); border-radius: 15px; background: var(--bench-raised); color: var(--bench-text); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12); cursor: pointer; opacity: 0; visibility: hidden; transform: translate(-50%, 6px); transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s; }
.chat-jump.is-shown { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.chat-jump:hover { box-shadow: inset 0 0 0 15px var(--bench-hover), 0 4px 12px rgba(0, 0, 0, 0.12); }
.chat-compose { flex: none; display: flex; flex-direction: column; gap: 6px; padding: 2px 14px 14px 16px; }
.chat-compose textarea { min-height: 36px; max-height: 128px; }
.chat-compose .cmt-field { background: var(--bench-raised); }
.chat-send { position: absolute; right: 5px; bottom: 5px; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: 14px; background: var(--bench-accent); color: var(--bench-on-accent); cursor: pointer; }
.chat-send:disabled { opacity: 0.5; cursor: default; }
.chat-list { margin-top: auto; padding: 14px 0; display: flex; flex-direction: column; gap: 12px; overflow-y: clip; }
.chat-line { align-self: center; color: var(--bench-subtle); font: 500 11px/14px -apple-system, system-ui, sans-serif; text-align: center; }
.chat-msg { display: flex; align-items: flex-start; gap: 8px; transition: opacity 0.3s ease; }
.chat-msg.is-faded { opacity: 0.45; }
.chat-msg.menu-target .chat-bubble { outline: 1.5px solid var(--bench-accent); outline-offset: 2px; }
.chat-face { flex: none; display: flex; margin-top: -5px; }
.chat-face .agent-avatar, .chat-face .profile-avatar { width: 24px; height: 24px; }
.chat-body { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.chat-who { display: flex; align-items: baseline; gap: 6px; padding-left: 4px; white-space: nowrap; font: 600 11px/14px -apple-system, system-ui, sans-serif; }
.chat-who .sub { font-weight: 500; color: var(--bench-subtle); }
.chat-who .role, .by-person .role { padding: 1px 6px; border-radius: 8px; background: var(--bench-hover); color: var(--bench-text); font-size: 10px; font-weight: 600; line-height: 14px; }
.chat-bubble { max-width: 252px; padding: 7px 11px; border-radius: 14px; border-bottom-left-radius: 5px; background: var(--bench-raised); white-space: pre-wrap; overflow-wrap: anywhere; -webkit-user-select: text; user-select: text; }
.answer-code { margin: 6px 0; padding: 8px 10px; border-radius: 8px; background: var(--bench-canvas); color: var(--bench-text); font: 12px/17px ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre; overflow-x: auto; -webkit-user-select: text; user-select: text; }
.chat-msg.is-agent .chat-bubble { box-shadow: inset 0 0 0 1px var(--bench-border); }
.chat-msg.is-you { justify-content: flex-end; }
.chat-msg.is-you .chat-body { align-items: flex-end; }
.chat-msg.is-you .chat-bubble { border-radius: 14px; border-bottom-right-radius: 5px; background: var(--bench-accent); color: var(--bench-on-accent); }
.chat-body > .cmt-gallery { max-width: 252px; }
.chat-msg.is-you .chat-body > .cmt-gallery { justify-content: flex-end; }
.chat-mention { padding: 0 3px; border-radius: 4px; background: var(--bench-mention); font-weight: 600; }
.chat-msg.is-you .chat-mention { background: color-mix(in srgb, var(--bench-on-accent) 18%, transparent); }
.chat-live { opacity: 0.75; }
.chat-caret { display: inline-block; width: 2px; height: 14px; margin-left: 2px; vertical-align: -2px; background: currentColor; animation: chat-caret 1s steps(1) infinite; }
.chat-typing { display: flex; gap: 4px; padding: 6px 0 5px; }
.chat-typing i { width: 6px; height: 6px; border-radius: 3px; background: var(--bench-subtle); animation: queue-pulse 1.2s ease-in-out infinite; }
.chat-typing i:nth-child(2) { animation-delay: 0.2s; }
.chat-typing i:nth-child(3) { animation-delay: 0.4s; }
.chat-meta { display: flex; align-items: center; min-width: 0; max-width: 100%; padding: 0 4px; color: var(--bench-subtle); font: 500 11px/14px -apple-system, system-ui, sans-serif; }
.chat-meta > span { display: block; min-width: 0; white-space: pre-wrap; }
.chat-msg.is-you .chat-meta > span { text-align: right; }
.chat-meta button.pin-toggle { display: inline-flex; width: 18px; height: 18px; margin: -3px 0 -3px 0; vertical-align: middle; }
.chat-meta.working { gap: 6px; color: var(--bench-live-text); }
.chat-meta.working::before { content: ""; width: 6px; height: 6px; border-radius: 3px; background: var(--bench-live); box-shadow: 0 0 0 3px var(--bench-live-glow); }
.chat-meta.failed { color: var(--bench-warning-text); }
button.text-link { padding: 0; border: 0; border-radius: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.text-link { text-decoration: underline; text-decoration-color: var(--bench-edge-lift); text-decoration-thickness: 1px; text-underline-offset: 2px; }
.text-link:not(.gone):hover { color: var(--bench-text); text-decoration-color: currentColor; }
.text-link.gone { color: var(--bench-subtle); text-decoration-line: line-through; text-decoration-color: currentColor; cursor: default; }
.task-code, .task-code.text-link { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 500; letter-spacing: 0.2px; }
.place-link { white-space: nowrap; }
.place-link > svg { width: 13px; height: 13px; margin-right: 3px; vertical-align: -2px; color: var(--bench-subtle); }
@keyframes chat-caret { 50% { opacity: 0; } }
@keyframes floating-card-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .chat-caret, .chat-typing i, body.columns-hidden .chat { animation: none; }
}
.component-frame { position: absolute; z-index: 60; pointer-events: none; border: calc(1.5px / var(--canvas-zoom, 1)) solid var(--bench-component); border-radius: calc(3px / var(--canvas-zoom, 1)); }
.component-frame.copy { border-style: dashed; }
.component-frame.selected { border-width: calc(2px / var(--canvas-zoom, 1)); background: var(--bench-component-tint); }
.component-tag { position: absolute; left: calc(-1.5px / var(--canvas-zoom, 1)); bottom: 100%; padding: 2px 7px; border-radius: 4px 4px 4px 0; background: var(--bench-component); color: var(--bench-on-component); font: 600 11px/14px -apple-system, system-ui, sans-serif; white-space: nowrap; transform: scale(calc(1 / var(--canvas-zoom, 1))); transform-origin: bottom left; }
.identity-layer { position: absolute; left: 0; top: 0; z-index: 49; pointer-events: none; }
.identity-mark { position: absolute; }
.identity-mark[hidden] { display: none; }
.identity-tags { position: absolute; display: flex; gap: 4px; transform: scale(calc(1 / var(--canvas-zoom, 1))); }
.identity-mark.is-container .identity-tags { right: calc(4px / var(--canvas-zoom, 1)); top: 0; transform-origin: top right; }
.identity-mark.is-path .identity-tags { left: calc(-4px / var(--canvas-zoom, 1)); bottom: calc(6px / var(--canvas-zoom, 1)); transform-origin: bottom left; }
.identity-mark.is-path.above-component .identity-tags { bottom: calc(24px / var(--canvas-zoom, 1)); }
.identity-tag { padding: 2px 7px; border-radius: 4px 4px 4px 0; background: var(--bench-accent); color: var(--bench-on-accent); font: 600 11px/14px ui-monospace, SFMono-Regular, Menlo, monospace; white-space: nowrap; }
.identity-tag.is-note, .identity-mark.is-noted .identity-tag:first-child { background: var(--bench-note); color: var(--bench-on-pigment); }
.identity-tag.is-component { background: var(--bench-component); color: var(--bench-on-component); font-family: -apple-system, BlinkMacSystemFont, system-ui, sans-serif; }
.component-broken { padding: 8px 10px; border: 1px dashed var(--bench-destructive); border-radius: 6px; color: var(--bench-destructive); font: 12px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; }
.cmt-dialog.settings { width: 520px; max-height: calc(100vh - 64px); overflow-y: auto; padding: 0; gap: 0; }
.settings-header { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; padding: 16px 16px 12px 24px; background: var(--bench-raised); border-bottom: 1px solid var(--bench-border); }
.cmt-dialog .settings-close { width: 32px; height: 32px; padding: 0; border: 0; border-radius: 8px; background: none; color: var(--bench-subtle); display: flex; align-items: center; justify-content: center; }
.cmt-dialog .settings-close:hover { background: var(--bench-hover); color: var(--bench-text); }
.settings-section { display: flex; flex-direction: column; gap: 12px; padding: 20px 24px; }
.settings-section + .settings-section { border-top: 1px solid var(--bench-border); }
.settings-heading { font-size: 11px; font-weight: 600; letter-spacing: 0.6px; text-transform: uppercase; color: var(--bench-subtle); }
.settings-hint { color: var(--bench-subtle); }
.settings-window { position: relative; width: 760px; height: 540px; max-width: 100%; max-height: 100%; display: grid; grid-template-columns: 208px minmax(0, 1fr); border-radius: 14px; overflow: hidden; background: var(--bench-canvas); box-shadow: var(--bench-pop-edge); color: var(--bench-text); font: 400 13px/1.5 -apple-system, BlinkMacSystemFont, system-ui, sans-serif; }
.settings-nav { display: flex; flex-direction: column; gap: 2px; min-height: 0; overflow-y: auto; padding: 18px 10px; background: var(--bench-chrome); border-right: 1px solid var(--bench-border); }
.settings-nav-title { padding: 0 10px 14px; font: 700 17px/24px "POMerri", "Merriweather", Georgia, serif; }
.settings-nav-item { flex-shrink: 0; display: flex; align-items: center; gap: 10px; height: 32px; padding: 0 10px; border: 0; border-radius: 8px; background: none; color: var(--bench-text); font: 400 13px/18px -apple-system, BlinkMacSystemFont, system-ui, sans-serif; text-align: left; cursor: pointer; }
.settings-nav-item > svg { flex-shrink: 0; color: var(--bench-subtle); }
.settings-nav-item.on { background: var(--bench-selected); box-shadow: var(--bench-selected-edge); font-weight: 600; }
.settings-nav-item.on > svg { color: var(--bench-text); }
:root[data-keyboard-focus] .settings-nav-item:focus-visible { outline: 2px solid var(--bench-accent); outline-offset: 1px; }
.settings-pane { min-height: 0; overflow-y: auto; padding: 22px 28px 28px; }
.settings-window .settings-close { position: absolute; top: 14px; right: 14px; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 8px; background: none; color: var(--bench-subtle); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.settings-window .settings-close svg { width: 16px; height: 16px; }
:root[data-keyboard-focus] .settings-window .settings-close:focus-visible { outline: 2px solid var(--bench-accent); outline-offset: 1px; }
.settings-pane-title { margin: 0; padding-right: 32px; font: 700 20px/28px "POMerri", "Merriweather", Georgia, serif; }
.settings-pane-lead { margin: 2px 0 18px; padding-right: 32px; color: var(--bench-subtle); }
.settings-group-label { margin: 20px 0 8px 2px; font-size: 11px; font-weight: 600; letter-spacing: 0.6px; text-transform: uppercase; color: var(--bench-subtle); }
.settings-group { border: 1px solid var(--bench-border); border-radius: 12px; background: var(--bench-raised); overflow: hidden; }
.settings-group + .settings-group { margin-top: 16px; }
.settings-item { display: flex; align-items: center; gap: 14px; min-height: 52px; padding: 10px 16px; }
.settings-item[hidden] { display: none; }
.settings-item + .settings-item { border-top: 1px solid var(--bench-border); }
.settings-item-text { flex: 1; min-width: 0; }
.settings-item-label { font-weight: 600; overflow-wrap: anywhere; }
.settings-item-detail { color: var(--bench-subtle); font-size: 12px; line-height: 17px; overflow-wrap: anywhere; }
.settings-item-detail.is-body { color: var(--bench-text); font-size: 13px; line-height: 19px; }
.settings-foot { margin: 10px 2px 0; color: var(--bench-subtle); font-size: 12px; line-height: 17px; }
.settings-foot[hidden] { display: none; }
.settings-value { flex-shrink: 0; color: var(--bench-subtle); }
.settings-select {
  flex: 0 1 auto;
  display: inline-grid;
  align-items: center;
  min-width: 150px;
  max-width: 100%;
  height: 30px;
  padding: 0 30px 0 10px;
  border: 1px solid var(--bench-border);
  border-radius: 8px;
  background: var(--bench-raised) var(--bench-chevron) no-repeat right 10px center;
  color: var(--bench-text);
  font: 400 13px/18px -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  text-align: left;
  white-space: nowrap;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}
.settings-select-label { grid-area: 1 / 1; }
.settings-select-label:not(.on) { visibility: hidden; }
:root[data-keyboard-focus] .settings-select:focus-visible { outline: 2px solid var(--bench-accent); outline-offset: 1px; }
.settings-action { flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border: 1px solid var(--bench-border); border-radius: 8px; background: var(--bench-raised); color: var(--bench-text); font: 600 13px -apple-system, BlinkMacSystemFont, system-ui, sans-serif; white-space: nowrap; cursor: pointer; }
.settings-action.primary { border-color: var(--bench-accent); background: var(--bench-accent); color: var(--bench-on-accent); }
.settings-action:disabled { border-color: var(--bench-border); background: var(--bench-raised); color: var(--bench-disabled); cursor: default; }
.settings-action:disabled svg { opacity: 0.5; }
:root[data-keyboard-focus] .settings-action:focus-visible { outline: 2px solid var(--bench-accent); outline-offset: 2px; }
.settings-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.settings-key-input { flex: 1; min-width: 0; height: 30px; padding: 0 10px; border: 1px solid var(--bench-border); border-radius: 8px; background: var(--bench-canvas); color: var(--bench-text); font: 13px/18px ui-monospace, SFMono-Regular, Menlo, monospace; }
.settings-key-input::placeholder { color: var(--bench-subtle); }
.settings-key-input:focus { outline: 2px solid var(--bench-accent); outline-offset: 1px; }
.settings-item > .switcher { flex-shrink: 0; }
.settings-status { display: inline-flex; align-items: center; gap: 8px; }
.settings-status::before { content: ""; flex-shrink: 0; width: 8px; height: 8px; border-radius: 4px; background: var(--bench-subtle); }
.settings-status.connected::before { background: var(--bench-live); }
.settings-status.checking::before { background: var(--bench-note); }
.settings-status.attention::before { background: var(--bench-warning); }
.settings-row-icon { flex-shrink: 0; width: 32px; height: 32px; border-radius: 8px; background: var(--bench-hover); color: var(--bench-subtle); display: flex; align-items: center; justify-content: center; }
.settings-link { flex: 1; min-width: 0; padding: 7px 10px; border-radius: 8px; background: var(--bench-canvas); font: 12px/1.45 ui-monospace, SFMono-Regular, Menlo, monospace; overflow-wrap: anywhere; user-select: all; }
.settings-item.step-item { min-height: 44px; align-items: flex-start; }
.step-number { flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--bench-hover); box-shadow: inset 0 0 0 1px var(--bench-border); color: var(--bench-subtle); font-size: 11px; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.settings-item.account-card { min-height: 76px; }
.account-name { font-weight: 600; font-size: 15px; line-height: 21px; overflow-wrap: anywhere; }
.settings-item.account-actions { padding-top: 12px; padding-bottom: 14px; }
.avatar-waiting { position: relative; flex-shrink: 0; display: flex; width: max-content; height: max-content; }
.avatar-waiting::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1.5px solid var(--bench-border); border-top-color: var(--bench-accent); animation: profile-waiting 0.9s linear infinite; }
.settings-item.picture-item { padding-top: 14px; padding-bottom: 14px; }
.picture-swatches { display: flex; flex-wrap: wrap; gap: 10px; padding: 2px; }
.picture-swatch { flex-shrink: 0; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; overflow: hidden; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--from), var(--to)); color: var(--bench-subtle); cursor: pointer; }
.picture-swatch.is-photo { background: none; }
.picture-swatch.is-photo img { width: 100%; height: 100%; display: block; object-fit: cover; -webkit-user-drag: none; }
.picture-swatch.on { box-shadow: 0 0 0 2px var(--bench-raised), 0 0 0 3.5px var(--bench-accent); }
:root[data-keyboard-focus] .picture-swatch:focus-visible { outline: 2px solid var(--bench-accent); outline-offset: 4px; }
.hex-fields { flex-shrink: 0; display: flex; align-items: center; gap: 6px; color: var(--bench-subtle); }
.hex-arrow { display: flex; }
.hex-field { display: inline-flex; align-items: center; gap: 8px; width: 112px; height: 30px; padding: 0 10px; border: 1px solid var(--bench-border); border-radius: 8px; background: var(--bench-raised); color: var(--bench-text); cursor: text; }
.hex-field:focus-within { outline: 2px solid var(--bench-accent); outline-offset: 1px; }
.hex-field.is-active { border-color: var(--bench-accent); }
.hex-field.is-invalid { border-color: var(--bench-destructive); }
.hex-chip { flex-shrink: 0; width: 14px; height: 14px; border-radius: 4px; box-shadow: inset 0 0 0 1px var(--bench-halo); }
.hex-field input { width: 100%; min-width: 0; padding: 0; border: 0; background: none; color: var(--bench-text); font: 400 12px ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: uppercase; outline: none; }
.settings-item.color-picker-item { padding-top: 14px; padding-bottom: 16px; }
.color-picker { flex: 1; min-width: 0; display: grid; gap: 12px; }
.color-area { position: relative; height: 112px; border-radius: 8px; background: linear-gradient(to top, #000, rgba(0, 0, 0, 0)), linear-gradient(to right, #FFF, hsl(var(--hue, 0) 100% 50%)); box-shadow: inset 0 0 0 1px var(--bench-halo); cursor: crosshair; touch-action: none; }
.hue-bar { position: relative; height: 12px; border-radius: 6px; background: linear-gradient(to right, #F00, #FF0 16.67%, #0F0 33.33%, #0FF 50%, #00F 66.67%, #F0F 83.33%, #F00); box-shadow: inset 0 0 0 1px var(--bench-halo); cursor: pointer; touch-action: none; }
.picker-thumb { position: absolute; width: 16px; height: 16px; margin: -8px 0 0 -8px; border: 2px solid #FFF; border-radius: 50%; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25), 0 1px 4px rgba(0, 0, 0, 0.3); pointer-events: none; }
.hue-bar .picker-thumb { top: 50%; }
.pairing {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: var(--bench-canvas);
}
.pairing[hidden] { display: none; }
.pairing:empty::before, .charkol-loader { content: ""; flex: none; display: block; width: 64px; height: 64px; background: var(--bench-loader) center / 64px no-repeat; }
.pairing-start { flex: none; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.pairing-reconnect { position: relative; flex: none; }
.pairing-reconnect-line { position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%); color: var(--bench-text); white-space: nowrap; }
.pairing-onboarding { box-sizing: border-box; width: min(580px, calc(100vw - 32px)); display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; color: var(--bench-text); font: 400 13px/18px -apple-system, BlinkMacSystemFont, system-ui, sans-serif; -webkit-user-select: text; user-select: text; }
.pairing-onboarding .pairing-copy { align-self: stretch; text-align: left; }
.pairing-onboarding .pairing-command { background: var(--bench-raised); box-shadow: inset 0 0 0 1px var(--bench-border); }
.pairing-agent { display: inline-flex; align-items: center; gap: 6px; vertical-align: top; }
.pairing-agent .agent-avatar { width: 18px; height: 18px; border-radius: 9px; font-size: 10px; line-height: 18px; }
.pairing-step { display: inline-flex; align-items: center; gap: 8px; color: var(--bench-text); font-weight: 600; }
.pairing-step .number { width: 20px; height: 20px; border-radius: 10px; background: var(--bench-accent); color: var(--bench-on-accent); font: 700 11px/20px -apple-system, BlinkMacSystemFont, system-ui, sans-serif; text-align: center; }
.pairing-step.is-second { margin-top: 12px; }
.pairing-code { position: relative; display: flex; justify-content: center; gap: 6px; margin: 4px 0; }
.pairing-code i { width: 40px; height: 48px; box-sizing: border-box; border: 1px solid var(--bench-border); border-radius: 8px; background: var(--bench-canvas); font: 600 22px/46px ui-monospace, SFMono-Regular, Menlo, monospace; font-style: normal; text-align: center; }
.pairing-code .code-gap { width: 10px; }
.pairing-code i.is-caret { border-color: var(--bench-accent); box-shadow: inset 0 0 0 1px var(--bench-accent); }
.pairing-code-input { position: absolute; inset: 0; opacity: 0; font-size: 16px; }
.pairing-status { min-height: 36px; }
.pairing-status.is-wrong { color: var(--bench-destructive-text); }
.pairing-mono { font: 12px/16px ui-monospace, SFMono-Regular, Menlo, monospace; }
.waiting-words::after { content: "..."; display: inline-block; clip-path: inset(0 66.667% 0 0); animation: waiting-dots 1.2s steps(1, end) infinite; }
@keyframes waiting-dots { 33.333% { clip-path: inset(0 33.333% 0 0); } 66.667% { clip-path: inset(0); } }
@media (prefers-reduced-motion: reduce) {
  .pairing:empty::before, .charkol-loader { background-image: var(--bench-mark); background-size: 40px; }
  .waiting-words::after { animation: none; clip-path: none; }
}
.pairing-card { gap: 10px; }
.pairing-copy { display: flex; gap: 8px; align-items: flex-start; }
.pairing-copy[hidden] { display: none; }
.pairing-command {
  flex: 1;
  min-width: 0;
  padding: 9px 10px;
  border-radius: 8px;
  background: var(--bench-canvas);
  color: var(--bench-text);
  font: 12px/1.45 ui-monospace, SFMono-Regular, Menlo, monospace;
  overflow-wrap: anywhere;
  user-select: all;
}
.connection-banner {
  position: fixed;
  top: var(--floating-inset);
  left: 50%;
  transform: translateX(-50%);
  z-index: 130;
  padding: 7px 14px;
  border: 1px solid var(--bench-border);
  border-radius: 16px;
  background: var(--bench-raised);
  color: var(--bench-warning-text);
  font: 600 12px/1.4 -apple-system, system-ui, sans-serif;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}
.connection-banner[hidden] { display: none; }
.search-palette {
  width: 560px;
  max-width: 100%;
  border: 1px solid transparent;
  border-radius: 14px;
  background: var(--bench-raised);
  color: var(--bench-text);
  box-shadow: var(--bench-pop-edge);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font: 400 13px/18px -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}
.search-palette-field { position: relative; flex-shrink: 0; border-bottom: 1px solid var(--bench-border); }
.search-palette-field svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--bench-subtle); pointer-events: none; }
.search-palette-field input { width: 100%; height: 48px; padding: 0 16px 0 42px; border: 0; background: none; color: var(--bench-text); font: 400 15px -apple-system, BlinkMacSystemFont, system-ui, sans-serif; outline: none; -webkit-appearance: none; appearance: none; }
.search-palette-field input::placeholder { color: var(--bench-subtle); }
.search-palette-results { height: 280px; padding: 6px; overflow-y: auto; overscroll-behavior: contain; }
.search-palette-row { display: flex; align-items: flex-start; gap: 6px; padding: 7px 10px 7px calc(10px + var(--depth, 0) * 22px); border-radius: 8px; cursor: pointer; }
.search-palette-twisty { flex-shrink: 0; width: 16px; height: 18px; display: flex; align-items: center; color: var(--bench-subtle); }
.search-palette-twisty svg { transition: transform 120ms ease; }
.search-palette-twisty.open svg { transform: rotate(90deg); }
.search-palette-row[aria-selected="true"] { background: var(--bench-row-selected); }
.search-palette-icon { flex-shrink: 0; width: 16px; height: 18px; display: flex; align-items: center; color: var(--bench-subtle); }
.search-palette-row.folder .search-palette-icon { color: var(--bench-note-text); }
.search-palette-row[aria-selected="true"] .search-palette-icon { color: var(--bench-text); }
.search-palette-name { min-width: 0; overflow-wrap: anywhere; }
.search-palette-row.folder .search-palette-name { font-weight: 600; }
.search-palette-name mark { background: var(--bench-match); color: inherit; border-radius: 2px; }
.search-palette-path { flex-shrink: 0; max-width: 50%; margin-left: auto; padding-left: 12px; color: var(--bench-subtle); font-size: 12px; text-align: right; overflow-wrap: anywhere; }
.search-palette-empty { padding: 7px 10px 7px calc(32px + var(--depth) * 22px); color: var(--bench-subtle); font-size: 12px; }
.add-task-mark { flex: none; width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--bench-accent); color: var(--bench-on-accent); }
.chat-palette .search-palette-field > .add-task-mark { position: absolute; left: 12px; top: 12px; }
.chat-palette .add-task-mark svg { position: static; transform: none; color: inherit; }
.chat-palette .search-palette-field textarea { display: block; box-sizing: border-box; width: 100%; min-height: 48px; max-height: 30vh; padding: 14px 80px 14px 46px; border: 0; background: none; color: var(--bench-text); font: 400 15px/20px -apple-system, BlinkMacSystemFont, system-ui, sans-serif; outline: none; resize: none; overflow-y: auto; }
.chat-palette .search-palette-field textarea::placeholder { color: var(--bench-subtle); }
.chat-palette .mention-mirror { padding: 14px 80px 14px 46px; border: 0; font: 400 15px/20px -apple-system, BlinkMacSystemFont, system-ui, sans-serif; }
.chat-palette-agent .team-faces { flex: none; margin-left: 0; }
.chat-palette-agent .team-faces > .agent-avatar, .chat-palette-agent .team-more { width: 24px; height: 24px; border-radius: 12px; line-height: 24px; }
.chat-palette .dictate { position: absolute; top: 10px; right: 10px; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 6px; background: none; color: var(--bench-subtle); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.chat-palette .dictate[hidden] { display: none; }
.chat-palette .dictate svg { position: static; transform: none; color: inherit; }
.chat-palette .dictate:hover { background: var(--bench-hover); color: var(--bench-text); }
.chat-palette .dictate[data-state="recording"] { background: var(--bench-recording); color: var(--bench-on-pigment); }
.chat-palette .dictate:disabled { background: none; color: var(--bench-disabled); cursor: default; }
.chat-palette .cmt-field { padding: 0; border: 0; border-radius: 0; background: none; }
.chat-palette .cmt-field .attach { top: 10px; right: 42px; bottom: auto; left: auto; }
.chat-palette .cmt-field .attach svg, .chat-palette .cmt-tray svg { position: static; transform: none; color: inherit; }
.chat-palette .cmt-tray { padding: 0 14px 12px 46px; }
.chat-palette.dropping { outline: 2px dashed var(--bench-accent); outline-offset: -6px; }
.chat-palette-agents { height: auto; max-height: 280px; }
.chat-palette-agent { align-items: center; gap: 12px; }
.chat-palette-agent .agent-name { font: 600 13px/18px -apple-system, BlinkMacSystemFont, system-ui, sans-serif; color: var(--bench-text); }
.chat-palette-agent .status-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--bench-disabled); }
.chat-palette-agent .status-dot.working { background: var(--bench-live); animation: queue-pulse 1.4s ease-in-out infinite; }
.chat-palette-agent .status-text { font-size: 12px; color: var(--bench-subtle); }
.chat-palette-agent .status-text.working { color: var(--bench-live-text); }
.chat-palette-agent .this-tab { color: var(--bench-text); font-size: 12px; }
.chat-palette-foot { display: flex; justify-content: space-between; gap: 12px; padding: 9px 14px; border-top: 1px solid var(--bench-border); color: var(--bench-subtle); font-size: 12px; }
.chat-palette-hint { display: inline-flex; align-items: center; gap: 4px; }
.chat-palette-hint kbd { box-sizing: border-box; min-width: 20px; height: 20px; padding: 0 5px; border: 1px solid var(--bench-border); border-bottom-width: 2px; border-radius: 5px; background: var(--bench-raised); color: var(--bench-text); font: 600 11px/17px -apple-system, system-ui, sans-serif; text-align: center; }
.chat-palette-hint kbd:last-of-type { margin-right: 2px; }
.search-palette-blank { height: 100%; display: flex; align-items: center; justify-content: center; padding: 0 24px; color: var(--bench-subtle); text-align: center; }
@media (hover: hover) {
  .tree-row .tree-add:hover { background: var(--bench-raised); color: var(--bench-text); }
  .profile-button:hover { box-shadow: 0 0 0 3px var(--bench-halo); }
  .profile-button.is-open:hover { box-shadow: 0 0 0 2px var(--bench-chrome), 0 0 0 3.5px var(--bench-accent); }
  .profile-button:hover .profile-avatar.is-guest { background: var(--bench-accent-lift); }
  .columns-toggle, .design-tab-new { position: relative; isolation: isolate; }
  .columns-toggle::before, .design-tab-new::before { content: ""; position: absolute; inset: 3px 5px; border-radius: 8px; z-index: -1; }
  .design-tab-new::before { inset: 3px; }
  .columns-toggle:hover::before, .design-tab-new:not(:disabled):hover::before { background: var(--bench-hover); }
  .design-tab:not(.focused):hover { background: var(--bench-hover); }
  .voice-help-button:not(.is-open):hover { border-color: var(--bench-edge-lift); color: var(--bench-text); }
  .mention-menu button:not(.on):hover { background: var(--bench-hover); }
  .cmt-tray .cmt-thumb .remove:hover { background: var(--bench-viewer-backdrop); }
  button.cmt-thumb:hover { border-color: var(--bench-edge-lift); }
  .attachment-viewer .close:hover { background: color-mix(in srgb, var(--bench-chalk) 24%, transparent); }
  .cmt-badge:hover { outline: 3px solid var(--bench-box-halo); }
  .cmt-pop button.output-more:hover { color: var(--bench-text); }
  .cmt-dialog button:not(.primary, .destructive, .settings-close, .on):not(:disabled):hover,
  .pairing-onboarding button:not(:disabled):hover,
  .cmt-pop button.output-link:hover,
  .cmt-pop .actions button:not(.primary):not(:disabled):hover,
  .queue-problem button:not(:disabled):hover,
  .settings-action:not(.primary):not(:disabled):hover { background: var(--bench-raised-lift); border-color: var(--bench-edge-lift); }
  .cmt-dialog button.primary:not(:disabled):hover,
  .cmt-pop .actions .primary:not(:disabled):hover,
  .settings-action.primary:not(:disabled):hover { background: var(--bench-accent-lift); border-color: var(--bench-accent-lift); }
  .cmt-dialog button.destructive:not(:disabled):hover,
  .sidebar-disconnect:not(:disabled):hover { background: var(--bench-destructive-lift); border-color: var(--bench-destructive-lift); }
  .settings-nav-item:not(.on):hover { background: var(--bench-hover); }
  .settings-window .settings-close:hover { background: var(--bench-hover); color: var(--bench-text); }
  .picture-swatch:not(.on):hover { box-shadow: 0 0 0 2px var(--bench-raised), 0 0 0 3.5px var(--bench-halo); }
  .hex-field:hover { border-color: var(--bench-edge-lift); }
  .hex-field.is-active:hover { border-color: var(--bench-accent); }
  .hex-field.is-invalid:hover { border-color: var(--bench-destructive); }
  .settings-select:hover, .cmt-field:hover, .sidebar-search input:not(:focus):hover { border-color: var(--bench-edge-lift); }
}
