:root {
  color-scheme: dark;
  --bg: #0d0e10;
  --panel: #161820;
  --panel-2: #1d2028;
  --panel-3: #252930;
  --line: #333a45;
  --text: #f0ece2;
  --muted: #8c96a4;
  --accent: #5ecfa8;
  --accent-2: #f0bc40;
  --danger: #ff5f5f;
  --good: #6ecf76;
  --shadow: rgba(0, 0, 0, 0.45);
  --shadow-lg: rgba(0, 0, 0, 0.65);
  --transition: 0.16s ease;
  /* Uniform spacing system */
  --gap-main: 16px;
  --gap-tight: 8px;
  --gap-xtight: 4px;
  --pad-panel: 14px;
  --radius: 10px;
  /* Muted status badge + glowing dots */
  --badge-bg: rgba(255, 255, 255, 0.05);
  --dot-ready: #06b6d4;
  --dot-demo: #f59e0b;
  --dot-fail: #ef4444;
  --dot-idle: #6b7280;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.public-sample-banner {
  position: fixed;
  z-index: 2000;
  inset: 0 0 auto;
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 7px 18px;
  border-bottom: 1px solid rgba(129, 225, 255, 0.28);
  background: linear-gradient(90deg, rgba(6, 12, 25, 0.98), rgba(33, 15, 58, 0.98), rgba(6, 12, 25, 0.98));
  color: #dff9ff;
  font-size: 11px;
  letter-spacing: 0.07em;
  text-align: center;
}

.public-sample-banner strong {
  color: #f0c86a;
  font-size: 10px;
  letter-spacing: 0.16em;
}

.app-shell {
  padding-top: 34px;
}

#settings-toggle,
#connections-toggle {
  display: none !important;
}

@media (max-width: 760px) {
  .public-sample-banner {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
    min-height: 50px;
    padding: 7px 12px;
    text-align: left;
  }

  .app-shell {
    padding-top: 50px;
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
  background: var(--bg);
  background-image: radial-gradient(ellipse 80% 40% at 20% 0%, #151a2a 0%, transparent 70%),
    radial-gradient(ellipse 60% 30% at 80% 100%, #0f1a18 0%, transparent 65%);
  color: var(--text);
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
select,
input,
textarea {
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--text);
}

button {
  min-height: 30px;
  border-radius: 6px;
  padding: 0 8px;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), opacity var(--transition), color var(--transition);
}

button:hover {
  border-color: var(--accent);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

textarea,
input,
select {
  width: 100%;
  border-radius: 6px;
  padding: 6px 8px;
  outline: none;
}

/* Radios and checkboxes must never stretch to full width. */
input[type="radio"],
input[type="checkbox"] {
  width: auto;
  flex: 0 0 auto;
  padding: 0;
}

textarea:focus,
input:focus,
select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(100, 210, 176, 0.18);
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 10px 14px;
  background: rgba(13, 14, 16, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.3);
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 0.95rem;
  white-space: nowrap;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: var(--accent);
  color: #071310;
  font-weight: 800;
  letter-spacing: 0;
}

.global-chat {
  position: relative;
  display: block;
}

.global-chat textarea {
  width: 100%;
  min-height: 34px;
  max-height: 72px;
  resize: vertical;
  background: #111317;
  border-color: #4b525d;
  line-height: 1.25;
  padding: 5px 74px 5px 10px;
}

/* Send sits inside the far-right edge of the input boundary */
.global-chat button {
  position: absolute;
  right: 5px;
  bottom: 5px;
  min-width: 62px;
  min-height: 26px;
  padding: 0 12px;
  border-radius: 6px;
  background: var(--accent);
  color: #071310;
  border-color: var(--accent);
  font-weight: 700;
  font-size: 0.78rem;
}

.global-chat button:hover {
  filter: brightness(1.08);
}

.global-status {
  margin: 0;
  min-height: 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.ops-status {
  color: var(--accent);
  font-size: 0.74rem;
}

.board-composer-dock {
  position: fixed;
  left: 50%;
  bottom: 10px;
  z-index: 40;
  width: min(1040px, calc(100vw - 310px));
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(180px, 260px);
  gap: 6px 8px;
  align-items: center;
  padding: 7px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(25, 27, 31, 0.97);
  box-shadow: 0 14px 36px var(--shadow);
}

.dock-label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.board-composer-dock .global-chat {
  grid-column: 2;
}

.dock-status {
  grid-column: 3;
  display: grid;
  gap: 2px;
  align-self: center;
  justify-items: end;
  text-align: right;
}

.board-composer-dock .global-status {
  margin: 0;
}

.top-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
}

.workspace {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 0;
  padding: 0 var(--gap-main) 72px;
}

/* ── Board panel dropdowns in the top bar (Brief / Tasks / Pins) ─────────────── */
.board-menus {
  display: flex;
  align-items: center;
  gap: var(--gap-tight);
  min-width: 0;
}

.board-menu {
  position: relative;
}

.board-menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 32px;
  padding: 0 12px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  background: var(--panel-2);
  border-color: var(--line);
}

.board-menu-toggle .caret {
  color: var(--muted);
  font-size: 0.7rem;
}

.board-menu-toggle[aria-expanded="true"] {
  border-color: var(--accent);
  color: var(--accent);
}

.board-menu-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 60;
  width: min(340px, calc(100vw - 24px));
  max-height: 72vh;
  overflow: auto;
  display: grid;
  gap: 10px;
  padding: var(--pad-panel);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 16px 40px var(--shadow-lg);
}

.board-menu-panel[hidden] {
  display: none;
}

.panel-head-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--gap-tight);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

h2,
h3 {
  margin: 0;
  font-size: 0.92rem;
  letter-spacing: 0;
}

.filters {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.selection-tools {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.selection-tools button {
  min-height: 28px;
  padding: 0 6px;
  font-size: 0.78rem;
}

.checkline {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.86rem;
}

.checkline input {
  width: auto;
}

.sidecar-picker {
  display: grid;
  gap: 5px;
  margin: 10px 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.model-grid {
  align-content: start;
  align-items: start;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
  gap: var(--gap-main);
  padding: var(--gap-main) 0 82px;
  overflow: auto;
  max-height: calc(100vh - 63px);
}

.model-window {
  --window-panel: var(--panel);
  --window-panel-2: var(--panel-2);
  --window-body: #11131a;
  --window-message: var(--panel-2);
  --window-line: var(--line);
  --window-accent: var(--accent);
  aspect-ratio: 1 / 1;
  min-height: 248px;
  display: grid;
  grid-template-rows: min-content minmax(0, 1fr) minmax(38px, min-content);
  background: var(--window-panel);
  border: 1px solid var(--window-line);
  border-top: 2px solid var(--window-accent);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 16px var(--shadow), 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: box-shadow var(--transition), transform var(--transition);
}

.model-window:not(.expanded):not(.floating):hover {
  box-shadow: 0 8px 32px var(--shadow), 0 0 0 1px var(--window-accent);
  transform: translateY(-1px);
}

.model-window.scheme-mint {
  --window-panel: #17211f;
  --window-panel-2: #1d2d29;
  --window-body: #111a18;
  --window-message: #213530;
  --window-line: #376056;
  --window-accent: #64d2b0;
}

.model-window.scheme-amber {
  --window-panel: #241e13;
  --window-panel-2: #312719;
  --window-body: #19150e;
  --window-message: #3a2d1b;
  --window-line: #76582b;
  --window-accent: #f2c14e;
}

.model-window.scheme-rose {
  --window-panel: #26191e;
  --window-panel-2: #342029;
  --window-body: #1a1115;
  --window-message: #3d2630;
  --window-line: #81495e;
  --window-accent: #ff86a3;
}

.model-window.scheme-sky {
  --window-panel: #14212a;
  --window-panel-2: #1a2c38;
  --window-body: #0f171d;
  --window-message: #213847;
  --window-line: #3f718c;
  --window-accent: #74c7ec;
}

.model-window.scheme-violet {
  --window-panel: #201b2b;
  --window-panel-2: #2a243a;
  --window-body: #16121e;
  --window-message: #322a46;
  --window-line: #665294;
  --window-accent: #b59cff;
}

.model-window.scheme-lime {
  --window-panel: #1b2415;
  --window-panel-2: #24311d;
  --window-body: #12180f;
  --window-message: #2a3b22;
  --window-line: #5d7d45;
  --window-accent: #a8db6f;
}

.model-window.scheme-coral {
  --window-panel: #271b16;
  --window-panel-2: #35241d;
  --window-body: #1a120f;
  --window-message: #3f2a21;
  --window-line: #855541;
  --window-accent: #ff9a76;
}

.model-window.selected {
  border-color: var(--accent-2);
  border-top-color: var(--accent-2);
  box-shadow: 0 0 0 2px rgba(240, 188, 64, 0.2), 0 4px 20px var(--shadow);
}

.model-window.expanded {
  position: fixed;
  inset: 78px 24px 96px 300px;
  z-index: 30;
  aspect-ratio: auto;
  min-height: 0;
}

.window-head,
.window-foot {
  display: grid;
  gap: var(--gap-xtight);
  padding: var(--gap-tight);
  background: var(--window-panel-2);
  border-bottom: 1px solid var(--window-line);
}

.window-foot {
  border-top: 1px solid var(--window-line);
  border-bottom: 0;
  position: relative;
  z-index: 2;
  box-shadow: 0 -8px 18px rgba(0, 0, 0, 0.18);
}

.window-row {
  display: flex;
  gap: 4px;
  align-items: center;
}
.window-row select {
  flex: 1 1 0;
}
.window-row .code-flip,
.window-row .team-rules-btn,
.window-row .project-outline-btn,
.window-row .role-fixed {
  flex: 0 0 auto;
}

.window-row select {
  min-width: 0;
  min-height: 28px;
  font-size: 0.74rem;
}

/* De-emphasize the color-scheme dropdown so it doesn't fight the model name */
.window-row select.slot-scheme {
  color: var(--muted);
  font-size: 0.7rem;
  opacity: 0.82;
}

.window-row select.slot-scheme:hover,
.window-row select.slot-scheme:focus {
  opacity: 1;
}

.window-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: var(--gap-xtight);
}

.window-actions button {
  flex: 0 0 auto;
  min-height: 24px;
  padding: 0 6px;
  font-size: 0.72rem;
}

/* Icon action buttons: ghost by default, accent on hover */
.icon-btn {
  width: 28px;
  height: 28px;
  min-height: 28px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 7px;
  color: var(--muted);
}

.icon-btn:hover {
  color: var(--text);
  background: var(--panel-3);
  border-color: var(--window-line);
}

.icon-btn:focus-visible {
  color: var(--text);
  border-color: var(--window-accent);
}

.icon-btn svg {
  display: block;
  pointer-events: none;
}

.stop-slot.icon-btn:hover {
  color: var(--danger);
  border-color: var(--danger);
}

.float-btn.is-floating {
  color: var(--window-accent);
}

/* Push the overflow menu to the far right for an even, balanced bar */
.window-actions .slot-menu-wrap {
  margin-left: auto;
}

.slot-menu-toggle.icon-btn {
  font-size: 1rem;
  line-height: 1;
}

.code-flip {
  min-width: 42px;
  padding: 0 7px;
  border-color: var(--window-accent);
  color: var(--window-accent);
}

.model-window.code-side .code-flip {
  color: #0b0d10;
  background: var(--window-accent);
}

.status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--gap-tight);
  min-width: 0;
  color: var(--muted);
  font-size: 0.74rem;
}

.status-id {
  display: flex;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
  overflow: hidden;
}

.model-name {
  color: var(--text);
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

/* Secondary labels recede: uppercase, muted, low weight */
.role-tag {
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.meta-tag {
  color: var(--muted);
  opacity: 0.7;
  font-size: 0.64rem;
  white-space: nowrap;
}

/* Muted, unified status badge with a glowing tone dot */
.run-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  padding: 2px 9px 2px 7px;
  border-radius: 999px;
  background: var(--badge-bg);
  border: 1px solid var(--window-line);
  color: var(--muted);
  font-size: 0.68rem;
  white-space: nowrap;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--dot-idle);
  box-shadow: 0 0 0 0 transparent;
  flex: 0 0 auto;
}

.run-status.tone-ok .status-dot {
  background: var(--dot-ready);
  box-shadow: 0 0 7px 1px color-mix(in srgb, var(--dot-ready) 75%, transparent);
  animation: dotPulse 1.9s ease-in-out infinite;
}

.run-status.tone-busy .status-dot {
  background: var(--dot-ready);
  box-shadow: 0 0 7px 1px color-mix(in srgb, var(--dot-ready) 75%, transparent);
  animation: dotPulse 1s ease-in-out infinite;
}

.run-status.tone-warn .status-dot {
  background: var(--dot-demo);
  box-shadow: 0 0 7px 1px color-mix(in srgb, var(--dot-demo) 70%, transparent);
}

.run-status.tone-bad .status-dot {
  background: var(--dot-fail);
  box-shadow: 0 0 7px 1px color-mix(in srgb, var(--dot-fail) 70%, transparent);
}

.run-status.tone-idle .status-dot {
  background: var(--dot-idle);
}

@keyframes dotPulse {
  0%,
  100% {
    box-shadow: 0 0 6px 0 color-mix(in srgb, var(--dot-ready) 60%, transparent);
    opacity: 0.85;
  }
  50% {
    box-shadow: 0 0 10px 2px color-mix(in srgb, var(--dot-ready) 85%, transparent);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .status-dot {
    animation: none !important;
  }
}

.window-body {
  min-height: 0;
  overflow: auto;
  padding: 7px;
  background: var(--window-body);
}

.code-panel {
  display: grid;
  gap: 7px;
  min-height: 100%;
}

.code-panel label {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 0.76rem;
  min-height: 0;
}

.code-panel textarea {
  width: 100%;
  min-height: 0;
  resize: vertical;
  color: var(--text);
  background: #0e1014;
  border-color: var(--window-line);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
  line-height: 1.35;
}

.code-actions {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.code-actions button {
  min-height: 27px;
  padding: 0 8px;
  font-size: 0.76rem;
}

.message {
  margin: 0 0 6px;
  padding: 7px 9px;
  border-radius: 8px;
  background: var(--window-message);
  border: 1px solid transparent;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.38;
  font-size: 0.88rem;
}

.message.user {
  margin-left: 14%;
  background: transparent;
  border-color: var(--window-accent);
  border-left-width: 2px;
  padding-left: 8px;
  color: var(--text);
  opacity: 0.92;
}

.message.system {
  color: var(--muted);
  border-color: var(--window-line);
  font-style: italic;
  font-size: 0.8rem;
  opacity: 0.75;
}

.message.error {
  border-color: var(--danger);
  color: #ffd8d8;
}

.local-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px;
  min-height: 30px;
}

.local-form input {
  min-height: 30px;
  font-size: 0.8rem;
  background: #101317;
  border-color: var(--window-line);
}

.local-form button {
  min-height: 30px;
  padding: 0 7px;
  font-size: 0.78rem;
  background: var(--window-accent);
  border-color: var(--window-accent);
  color: #071310;
  font-weight: 700;
}

.task-board,
.pins,
.research-feed {
  display: grid;
  gap: 8px;
}

.task-card,
.pin-card,
.dispatch-card {
  padding: 9px;
  border-radius: 7px;
  background: var(--panel-2);
  border: 1px solid var(--line);
}

.task-card textarea {
  margin: 8px 0;
}

.task-target {
  margin-bottom: 8px;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.empty-state {
  color: var(--muted);
  font-size: 0.88rem;
}

.research-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}

/* Learning model FAB — bottom-left corner. */
.research-fab {
  position: fixed;
  left: 16px;
  right: auto;
  transform: none;
  bottom: 16px;
  z-index: 45;
  width: 52px;
  height: 52px;
  min-height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  padding: 0;
  background: var(--accent);
  border-color: var(--accent);
  color: #071310;
  font-weight: 900;
  box-shadow: 0 14px 38px var(--shadow);
}

/* Begin — bottom-right corner; starts the workflow. */
.begin-btn {
  position: fixed;
  right: 16px;
  left: auto;
  bottom: 16px;
  z-index: 45;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--good);
  border-color: var(--good);
  color: #06210a;
  font-weight: 800;
  font-size: 0.92rem;
  box-shadow: 0 12px 30px var(--shadow);
}

.begin-btn:hover {
  filter: brightness(1.08);
  border-color: var(--good);
}

.begin-btn.is-running {
  background: var(--accent-2);
  border-color: var(--accent-2);
  color: #1d1603;
}

/* Export / import pickers */
.box-picker {
  margin: 10px 0;
}

.box-check-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px 12px;
  margin-top: 6px;
}

.box-check-list label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.box-check-list input[type="checkbox"] {
  width: auto;
  flex: 0 0 auto;
  margin: 0;
}

.format-picker {
  display: grid;
  gap: 6px;
  margin-top: 6px;
}

.format-picker label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
}

.format-picker h3,
.box-picker h3 {
  font-size: 0.82rem;
  color: var(--accent);
  margin-bottom: 4px;
}

@media (max-width: 760px) {
  .research-fab {
    left: 12px;
    right: auto;
    transform: none;
    bottom: 122px;
  }
  .begin-btn {
    right: 12px;
    left: auto;
    bottom: 122px;
  }
}

.research-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--accent-2);
  color: #1d1603;
  font-size: 0.7rem;
  border: 1px solid #1d1603;
}

.research-drawer .section-head {
  cursor: move;
  user-select: none;
}
.research-drawer .section-head.dragging {
  cursor: grabbing;
}

.research-drawer {
  position: fixed;
  right: 18px;
  bottom: 82px;
  z-index: 44;
  width: min(360px, calc(100vw - 28px));
  max-height: min(680px, calc(100vh - 112px));
  overflow: auto;
  padding: 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 80px var(--shadow);
}

.dispatch-card.warning {
  border-color: var(--accent-2);
}

.dispatch-card strong {
  display: block;
  margin-bottom: 5px;
}

.modal {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--text);
}

.modal::backdrop {
  background: rgba(0, 0, 0, 0.58);
}

.modal-card {
  width: min(860px, calc(100vw - 28px));
  max-height: calc(100vh - 40px);
  overflow: auto;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 80px var(--shadow);
}

.wide-modal {
  width: min(1100px, calc(100vw - 28px));
}

.modal-head,
.modal-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 12px;
  background: var(--panel-2);
  border-bottom: 1px solid var(--line);
}

.modal-actions {
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

.settings-grid,
.handoff-grid {
  display: grid;
  gap: 12px;
  padding: 12px;
}

.settings-card {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
  align-items: end;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
}

.settings-card h3 {
  align-self: center;
}

.settings-card label {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 0.78rem;
}

.model-setting {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  align-items: end;
}

.danger {
  color: #ffe1e1;
  border-color: var(--danger);
}

.compare-output {
  margin: 0;
  padding: 12px;
  min-height: 360px;
  max-height: 70vh;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #111317;
}

.compare-toolbar {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto;
  gap: 10px;
  align-items: end;
  padding: 12px;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}

.compare-toolbar label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 0.8rem;
}

@media (max-width: 1180px) {
  .topbar {
    grid-template-columns: 1fr;
  }

  .brand,
  .top-actions {
    justify-content: center;
  }

  .board-menus {
    justify-content: center;
    flex-wrap: wrap;
  }

  .workspace {
    grid-template-columns: 1fr;
  }

  .model-grid {
    max-height: none;
  }

  .board-composer-dock {
    width: min(860px, calc(100vw - 32px));
    grid-template-columns: minmax(0, 1fr) minmax(150px, 220px);
  }

  .board-composer-dock .global-chat {
    grid-column: 1;
  }

  .dock-status {
    grid-column: 2;
  }

  .dock-label {
    display: none;
  }

  .model-window.expanded {
    inset: 104px 16px 96px 16px;
  }
}

@media (max-width: 760px) {
  .workspace {
    grid-template-columns: 1fr;
    padding-bottom: 110px;
  }

  .left-panel,
  .model-grid {
    min-height: auto;
    max-height: none;
  }

  .model-grid {
    grid-template-columns: 1fr;
  }

  .board-composer-dock {
    left: 10px;
    right: 10px;
    bottom: 10px;
    width: auto;
    transform: none;
    grid-template-columns: 1fr;
  }

  .board-composer-dock .global-chat,
  .dock-status {
    grid-column: 1;
  }

  .dock-label {
    display: none;
  }

  .model-window {
    min-height: 280px;
  }

  .settings-card {
    grid-template-columns: 1fr;
  }
}

/* ── Markdown output ──────────────────────────────── */
.message.assistant {
  white-space: normal;
}

.message.assistant .md-p {
  margin: 0 0 0.6em;
  line-height: 1.6;
}
.message.assistant .md-p:last-child { margin-bottom: 0; }

.message.assistant .md-h {
  margin: 0.8em 0 0.3em;
  font-weight: 700;
  line-height: 1.3;
}
.message.assistant .md-h[data-level="1"] { font-size: 1.15em; }
.message.assistant .md-h[data-level="2"] { font-size: 1.05em; }
.message.assistant .md-h[data-level="3"] { font-size: 0.97em; }

.message.assistant .md-ul,
.message.assistant .md-ol {
  margin: 0.4em 0 0.6em 1.4em;
  padding: 0;
}
.message.assistant .md-li { margin: 0.15em 0; line-height: 1.5; }

.message.assistant .md-pre {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  margin: 0.5em 0 0.8em;
  overflow-x: auto;
  font-family: "Fira Code", "Cascadia Code", Consolas, monospace;
  font-size: 0.83em;
  line-height: 1.5;
  white-space: pre;
}
.message.assistant .md-pre.md-streaming {
  border-color: var(--accent);
  opacity: 0.85;
}

.message.assistant .md-code {
  background: var(--panel-3);
  border-radius: 4px;
  padding: 1px 5px;
  font-family: "Fira Code", "Cascadia Code", Consolas, monospace;
  font-size: 0.87em;
}

.message.assistant .md-hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 0.8em 0;
}

.message.assistant .md-a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
}
.message.assistant .md-a:hover { opacity: 0.8; }

.message.assistant .md-ic { font-style: italic; }
.message.assistant strong { font-weight: 700; }

/* ── Slot action dropdown menu ────────────────────── */
.slot-menu-wrap {
  position: relative;
  display: inline-block;
}

.slot-menu-toggle {
  min-width: 28px;
  padding: 0 5px;
  font-size: 1.1em;
  line-height: 1;
  background: transparent;
  border-color: transparent;
}
.slot-menu-toggle:hover {
  border-color: var(--line);
  background: var(--panel-3);
}

.slot-menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  z-index: 200;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 6px 20px var(--shadow);
  min-width: 160px;
  padding: 4px 0;
  display: flex;
  flex-direction: column;
}
.slot-menu[hidden] {
  display: none;
}
.slot-menu button {
  text-align: left;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 6px 14px;
  font-size: 0.85em;
  color: var(--text);
  cursor: pointer;
}
.slot-menu button:hover {
  background: var(--panel-2);
}
.slot-menu .menu-danger { color: var(--danger); }

/* ── Token counter in slot header ─────────────────── */
.token-count {
  font-size: 0.72em;
  color: var(--muted);
  margin-right: 4px;
  white-space: nowrap;
}

/* ── Edit message button ──────────────────────────── */
.msg-text { display: inline; }

.edit-msg {
  display: inline-block;
  margin-left: 6px;
  padding: 0 5px;
  min-height: 20px;
  font-size: 0.72em;
  color: var(--muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  vertical-align: middle;
  opacity: 0;
  transition: opacity 0.15s;
}
.message.user:hover .edit-msg { opacity: 1; }
.edit-msg:hover {
  border-color: var(--line);
  background: var(--panel-3);
  color: var(--text);
}

/* ── System prompt panel ──────────────────────────── */
.sys-prompt-wrap {
  display: none;
  border-top: 1px solid var(--line);
  padding: 8px;
  background: var(--panel-2);
  flex-direction: column;
  gap: 5px;
}
.sys-prompt-wrap.open {
  display: flex;
}

.sys-prompt-wrap label {
  font-size: 0.75em;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sys-prompt-input {
  width: 100%;
  resize: vertical;
  font-size: 0.82em;
  line-height: 1.5;
  background: var(--panel-3);
  border-radius: 5px;
  padding: 6px 8px;
  min-height: 56px;
}

.sys-prompt-actions {
  display: flex;
  gap: 5px;
  justify-content: flex-end;
}
.sys-prompt-save {
  font-size: 0.78em;
  padding: 2px 10px;
  min-height: 24px;
  background: var(--accent);
  color: var(--bg);
  border-color: transparent;
  border-radius: 5px;
  font-weight: 600;
}
.sys-prompt-save:hover { opacity: 0.85; }
.sys-prompt-clear {
  font-size: 0.78em;
  padding: 2px 8px;
  min-height: 24px;
  border-radius: 5px;
}

/* ── Code-side mini transcript ────────────────────── */
.code-history {
  border-bottom: 1px solid var(--line);
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 160px;
  overflow-y: auto;
  background: var(--bg);
}
.code-history:empty { display: none; }

.ch-msg {
  display: flex;
  gap: 6px;
  align-items: flex-start;
  font-size: 0.78em;
  line-height: 1.45;
}
.ch-role {
  flex-shrink: 0;
  font-size: 0.7em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding-top: 1px;
  color: var(--muted);
  min-width: 48px;
}
.ch-msg.ch-user .ch-role { color: var(--accent-2); }
.ch-msg.ch-assistant .ch-role { color: var(--accent); }
.ch-text {
  color: var(--muted);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* ── ElevenLabs audio message ─────────────────────── */
.msg-audio {
  display: block;
  width: 100%;
  max-width: 340px;
  margin-top: 4px;
  border-radius: 8px;
  background: transparent;
  accent-color: var(--window-accent, var(--accent));
}

/* ── Learner badge ────────────────────────────────── */
.learner-badge {
  display: inline-block;
  margin-left: 6px;
  font-size: 0.78em;
  color: var(--window-accent, var(--accent));
  font-weight: 600;
  vertical-align: middle;
}

/* ── Load Local Model panel ───────────────────────── */
.load-local-btn {
  font-size: 0.78em;
  padding: 0 8px;
  min-height: 24px;
  background: var(--window-accent, var(--accent));
  color: var(--bg);
  border-color: transparent;
  border-radius: 5px;
  font-weight: 700;
}
.load-local-btn:hover { opacity: 0.85; }

.local-loader-wrap {
  display: none;
  border-top: 1px solid var(--window-line, var(--line));
  padding: 10px;
  background: var(--window-panel-2, var(--panel-2));
  flex-direction: column;
  gap: 7px;
}
.local-loader-wrap.open {
  display: flex;
}

.loader-label {
  font-size: 0.73em;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.loader-presets {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.preset-btn {
  font-size: 0.78em;
  padding: 2px 10px;
  min-height: 24px;
  border-radius: 5px;
  background: var(--window-panel, var(--panel));
  border-color: var(--window-line, var(--line));
}
.preset-btn:hover {
  border-color: var(--window-accent, var(--accent));
  color: var(--window-accent, var(--accent));
}

.loader-endpoint,
.loader-model {
  width: 100%;
  font-size: 0.82em;
  background: var(--window-body, var(--bg));
  border-radius: 5px;
  padding: 5px 8px;
  border-color: var(--window-line, var(--line));
}

.loader-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.loader-connect {
  font-size: 0.82em;
  padding: 3px 14px;
  min-height: 26px;
  border-radius: 5px;
  background: var(--window-accent, var(--accent));
  color: var(--bg);
  border-color: transparent;
  font-weight: 700;
}
.loader-connect:hover { opacity: 0.85; }
.loader-status {
  font-size: 0.78em;
  color: var(--good);
}

/* ── Indigo color scheme (learner window) ─────────── */
.model-window.scheme-indigo {
  --window-panel: #191427;
  --window-panel-2: #221c38;
  --window-body: #110f1c;
  --window-message: #2d2450;
  --window-line: #5c4e9e;
  --window-accent: #a78bfa;
}

/* ── Thin scrollbars ──────────────────────────────── */
.window-body {
  scrollbar-width: thin;
  scrollbar-color: var(--window-line) transparent;
}
.window-body::-webkit-scrollbar {
  width: 5px;
}
.window-body::-webkit-scrollbar-track {
  background: transparent;
}
.window-body::-webkit-scrollbar-thumb {
  background: var(--window-line);
  border-radius: 10px;
}
.window-body::-webkit-scrollbar-thumb:hover {
  background: var(--window-accent);
}

/* ── Float / lock toggle button ───────────────────── */
.float-btn {
  font-size: 0.95em;
  line-height: 1;
  padding: 0 5px;
  min-height: 24px;
  min-width: 26px;
  background: transparent;
  border-color: transparent;
  color: var(--muted);
}
.float-btn:hover {
  border-color: var(--window-accent);
  color: var(--window-accent);
  background: rgba(0, 0, 0, 0.2);
}
.float-btn.is-floating {
  color: var(--window-accent);
  border-color: var(--window-accent);
  background: rgba(0, 0, 0, 0.15);
}

/* ── Floating (free-draggable) window ─────────────── */
.model-window.floating {
  position: fixed;
  z-index: 200;
  width: 390px;
  height: 460px;
  aspect-ratio: auto;
  min-height: 0;
  border-radius: 12px;
  resize: both;
  overflow: hidden;
  box-shadow: 0 20px 70px var(--shadow-lg), 0 0 0 1px var(--window-accent),
    0 0 40px rgba(0, 0, 0, 0.5);
}
.model-window.floating .window-head {
  cursor: grab;
  user-select: none;
}
.model-window.floating .window-head.dragging {
  cursor: grabbing;
}

/* ════════════════════════════════════════════════════════════════════════════
   Supervisor / mode / role-color additions
   ════════════════════════════════════════════════════════════════════════════ */

/* New role color schemes */
.model-window.scheme-teal {
  --window-panel: #142324;
  --window-panel-2: #193032;
  --window-body: #0f1c1d;
  --window-message: #1f3b3d;
  --window-line: #2f6d70;
  --window-accent: #2dd4bf;
}
.model-window.scheme-gold {
  --window-panel: #262013;
  --window-panel-2: #342c19;
  --window-body: #1b160c;
  --window-message: #40361d;
  --window-line: #8a7028;
  --window-accent: #f5c451;
}

/* Role-driven color: the primary role tag picks up the window accent */
.role-tag {
  color: var(--window-accent);
  opacity: 0.92;
}

/* ── Mode toggle (top-middle) ─────────────────────────────────────────────── */
.topbar-center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--gap-main);
  min-width: 0;
  flex-wrap: wrap;
}

.mode-toggle {
  display: inline-flex;
  padding: 3px;
  gap: 3px;
  background: var(--panel-3);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.mode-opt {
  min-height: 28px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
}

.mode-opt.is-active {
  background: var(--accent);
  color: #071310;
  border-color: var(--accent);
}

.mode-opt:not(.is-active):hover {
  color: var(--text);
}

/* ── Supervisor box ───────────────────────────────────────────────────────── */
.model-window.supervisor {
  border-color: var(--window-accent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--window-accent) 55%, transparent),
    0 14px 34px rgba(0, 0, 0, 0.5);
}

.role-fixed {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 8px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #1b160c;
  background: var(--window-accent);
  white-space: nowrap;
}

.team-rules-btn {
  min-width: 0;
  min-height: 28px;
  padding: 0 8px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--window-accent);
  border-color: var(--window-accent);
  background: transparent;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.team-rules-btn:hover {
  background: color-mix(in srgb, var(--window-accent) 16%, transparent);
}

.supervisor-badge {
  color: var(--window-accent);
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

/* ── Collaboration active-model enlarge ───────────────────────────────────── */
.model-window.collab-active {
  grid-column: 1 / -1;
  z-index: 5;
  box-shadow: 0 0 0 1px var(--window-accent), 0 18px 46px rgba(0, 0, 0, 0.55);
  min-height: 440px;
  animation: collabRise var(--transition);
}

@keyframes collabRise {
  from { transform: scale(0.985); opacity: 0.8; }
  to { transform: scale(1); opacity: 1; }
}

/* ── Supervisor rules modal ───────────────────────────────────────────────── */
.supervisor-grid {
  display: grid;
  gap: 14px;
  padding: 4px 2px;
}

.rule-group {
  display: grid;
  gap: 6px;
}

.rule-group h3 {
  font-size: 0.82rem;
  color: var(--accent);
}

.rule-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.rule-group textarea {
  resize: vertical;
  min-height: 54px;
}

.rule-hint {
  margin: 0;
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.35;
}

@media (max-width: 620px) {
  .rule-two-col {
    grid-template-columns: 1fr;
  }
}

/* ── Learning model sidecar ───────────────────────────────────────────────── */
.research-drawer {
  overflow-y: auto;
}

.learn-block {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.learn-block h3 {
  font-size: 0.82rem;
  color: var(--accent);
}

.learn-block > summary {
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}

.learn-field {
  display: grid;
  gap: 4px;
  font-size: 0.78rem;
  color: var(--muted);
}

.learn-hint {
  margin: 0;
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.35;
}

.learn-chat {
  display: grid;
  gap: 6px;
  align-content: start;
  max-height: 220px;
  overflow-y: auto;
  padding: 8px;
  background: #101317;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.learn-chat.empty-state {
  color: var(--muted);
  font-size: 0.78rem;
}

.learn-msg {
  font-size: 0.8rem;
  line-height: 1.35;
  padding: 6px 8px;
  border-radius: 6px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.learn-user {
  background: var(--panel-3);
  color: var(--text);
}

.learn-assistant {
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--text);
}

.learn-chat-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px;
}

.learn-chat-form button {
  background: var(--accent);
  color: #071310;
  border-color: var(--accent);
  font-weight: 700;
}

/* ════════════════════════════════════════════════════════════════════════════
   Effort picker · status layout · code panel · project outline
   ════════════════════════════════════════════════════════════════════════════ */

/* Status row: effort picker (left) + status side (right) */
.status {
  align-items: center;
}
/* Support-role dropdown sits between the effort picker and the status dot. */
.status .slot-secondary {
  flex: 1 1 0;
  min-width: 0;
  height: 22px;
  min-height: 22px;
  padding: 0 4px;
  font-size: 0.62rem;
}
.effort-picker {
  display: flex;
  flex-direction: row;
  gap: 2px;
  flex: 0 0 auto;
  min-width: 0;
  max-width: 96px;
}
.effort-opt {
  flex: 1 1 0;
  min-width: 0;
  min-height: 0;
  height: 14px;
  padding: 0 2px;
  border: 1px solid var(--window-line);
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  font-size: 0.54rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
}
.effort-opt.is-active {
  background: var(--window-accent);
  border-color: var(--window-accent);
  color: #0b0d10;
}
.effort-opt:not(.is-active):hover {
  color: var(--text);
  border-color: var(--window-accent);
}
.status .run-status {
  flex: 0 1 auto;
  min-width: 0;
}
.status .run-status .status-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.status-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 0 var(--gap-tight) 2px;
  color: var(--muted);
}

/* Supervisor project-outline button (sits where the code toggle was) */
.project-outline-btn {
  min-width: 0;
  min-height: 28px;
  padding: 0 8px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--window-accent);
  border-color: var(--window-accent);
  background: transparent;
  white-space: nowrap;
}
.project-outline-btn:hover {
  background: color-mix(in srgb, var(--window-accent) 16%, transparent);
}

/* Code view: received instructions + model thinking (read-only) */
.code-section {
  display: grid;
  gap: 4px;
  margin-bottom: 8px;
}
.code-section h4 {
  margin: 0;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--window-accent);
}
.code-readout {
  font-size: 0.8rem;
  line-height: 1.4;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  padding: 7px 9px;
  background: var(--window-message);
  border: 1px solid var(--window-line);
  border-radius: 7px;
  max-height: 220px;
  overflow-y: auto;
}
.code-thinking {
  color: var(--text);
}

/* Project outline modal */
.outline-body {
  display: grid;
  gap: 16px;
  padding: 4px 2px;
  max-height: 62vh;
  overflow-y: auto;
}
.outline-section h3 {
  font-size: 0.82rem;
  color: var(--accent);
  margin-bottom: 8px;
}
.outline-box {
  display: grid;
  gap: 5px;
  padding: 8px;
  margin-bottom: 8px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.outline-box-head {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text);
}
.outline-box textarea {
  resize: vertical;
  min-height: 40px;
  font-size: 0.82rem;
}
.outline-doc {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  padding: 3px 0;
}

/* ── Connections modal ────────────────────────────────────────────────────── */
.conn-grid {
  display: grid;
  gap: 16px;
  padding: 4px 2px;
  max-height: 66vh;
  overflow-y: auto;
}
.conn-section {
  display: grid;
  gap: 7px;
  padding: 12px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.conn-section h3 {
  font-size: 0.82rem;
  color: var(--accent);
}
.conn-row {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}
.conn-row input {
  flex: 1 1 160px;
  min-width: 0;
}
.conn-row button {
  flex: 0 0 auto;
}
.conn-output {
  margin: 0;
  max-height: 200px;
  overflow: auto;
  padding: 8px 10px;
  background: #0d1013;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 0.76rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: #cfe8df;
}
.conn-files {
  display: grid;
  gap: 2px;
  max-height: 180px;
  overflow-y: auto;
}
.conn-file-row {
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text);
  font-size: 0.8rem;
  padding: 3px 6px;
}
.conn-file-row:hover {
  background: var(--panel-3);
  border-color: var(--line);
}
.conn-changes {
  display: grid;
  gap: 3px;
  max-height: 160px;
  overflow-y: auto;
}
.conn-change-row {
  font-size: 0.76rem;
  color: var(--text);
  padding: 3px 6px;
  background: var(--panel-3);
  border-radius: 5px;
  overflow-wrap: anywhere;
}
.conn-shot {
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  margin-top: 6px;
}

/* Supervisor project review popup */
.review-files {
  display: grid;
  gap: 3px;
  max-height: 240px;
  overflow-y: auto;
  margin-bottom: 8px;
}
.review-file-row {
  text-align: left;
  background: var(--panel-2);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 0.84rem;
  padding: 7px 9px;
  border-radius: 6px;
}
.review-file-row:hover {
  border-color: var(--accent);
}
.outline-field {
  display: grid;
  gap: 3px;
  font-size: 0.76rem;
  color: var(--muted);
}

/* Dual supervisor-chat toggles in the board dock */
.dock-label.dual-chat {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.sup-chat-toggle {
  min-height: 0;
  padding: 2px 9px;
  font-size: 0.68rem;
  font-weight: 700;
  border-radius: 5px;
  background: var(--panel-3);
  border: 1px solid var(--line);
  color: var(--muted);
  white-space: nowrap;
}
.sup-chat-toggle.is-on {
  background: var(--accent);
  border-color: var(--accent);
  color: #071310;
}
.sup-chat-toggle:not(.is-on):hover {
  color: var(--text);
}

.public-sample-banner + .app-shell .topbar {
  top: 34px;
}

@media (max-width: 760px) {
  .public-sample-banner + .app-shell .topbar {
    top: 50px;
  }
}
