:root {
  color-scheme: light;
  --bg: #f4f7f6;
  --panel: #ffffff;
  --panel-soft: #f1f5f3;
  --panel-tint: #f8fbfa;
  --surface-raised: rgba(255, 255, 255, .94);
  --surface-code: #0b1220;
  --surface-code-2: #111827;
  --file-hover: #f1f8f6;
  --file-selected: #ddf4ef;
  --border: #d9e4e1;
  --border-strong: #b7cbc6;
  --text: #10201d;
  --muted: #5f716d;
  --muted-2: #8aa09b;
  --accent: #0f766e;
  --accent-hover: #0b5f59;
  --accent-soft: #dff4ef;
  --accent-soft-2: #ccece5;
  --accent-ring: rgba(15, 118, 110, .18);
  --select-bg: #e5f5f1;
  --select-bg-strong: #ccece5;
  --select-border: #0f766e;
  --info: #2563eb;
  --info-soft: #e8f1ff;
  --violet: #7c3aed;
  --violet-soft: #f2ecff;
  --success: #15803d;
  --success-soft: #e7f8ee;
  --warning: #b45309;
  --warning-soft: #fff4df;
  --danger: #b42318;
  --danger-soft: #fee7e2;
  --shadow: 0 22px 70px rgba(16, 32, 29, .15);
  --shadow-soft: 0 12px 34px rgba(16, 32, 29, .08);
  --motion-fast: 140ms;
  --motion-base: 190ms;
  --motion-slow: 260ms;
  --ease-standard: cubic-bezier(.2, .8, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --focus-ring: 0 0 0 3px var(--accent-ring), 0 0 0 1px rgba(15, 118, 110, .18);
  --z-dropdown: 20;
  --z-sticky: 30;
  --z-modal: 50;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: radial-gradient(circle at 16% 0%, rgba(15, 118, 110, .10), transparent 28%), radial-gradient(circle at 86% 9%, rgba(37, 99, 235, .08), transparent 24%), radial-gradient(circle at 70% 100%, rgba(180, 83, 9, .05), transparent 28%), var(--bg); color: var(--text); overflow: hidden; }
button, input, textarea, select { font: inherit; }
button, a, input, textarea, select { transition: background-color var(--motion-fast) var(--ease-standard), border-color var(--motion-fast) var(--ease-standard), color var(--motion-fast) var(--ease-standard), box-shadow var(--motion-base) var(--ease-standard), transform var(--motion-fast) var(--ease-standard), opacity var(--motion-fast) var(--ease-standard); }
button { cursor: pointer; }
button:disabled, textarea:disabled { cursor: not-allowed; opacity: .68; }
button:active { transform: translateY(1px); }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid transparent; box-shadow: var(--focus-ring); }

.app-shell { height: 100vh; display: grid; grid-template-columns: 292px minmax(0, 1fr); transition: grid-template-columns var(--motion-slow) var(--ease-standard); }
.app-shell.workspace-open { grid-template-columns: 292px minmax(0, 1fr) minmax(320px, 360px); }
.app-shell.workspace-open.workspace-wide { grid-template-columns: 292px minmax(320px, .82fr) minmax(520px, 680px); }
.app-shell.workspace-flow-modal-active,
.app-shell.workspace-open.workspace-flow-modal-active,
.app-shell.workspace-open.workspace-wide.workspace-flow-modal-active { grid-template-columns: 292px minmax(0, 1fr); }
.sidebar { background: rgba(251,251,249,.96); border-right: 1px solid var(--border); display: flex; flex-direction: column; min-height: 0; padding: 12px; gap: 10px; }
.side-top { height: 44px; display: flex; align-items: center; gap: 10px; }
.brand-mark, .avatar, .welcome-logo { display: grid; place-items: center; font-weight: 750; letter-spacing: 0; }
.brand-mark { width: 34px; height: 34px; border-radius: 8px; background: #111827; color: #fff; }
.brand-copy { min-width: 0; display: grid; gap: 1px; }
.brand-copy strong { font-size: 14px; }
.brand-copy span { font-size: 12px; color: var(--muted); }
.new-chat, .new-project, .side-action, .account-pill, .ghost-btn, .icon-btn { border: 1px solid transparent; background: transparent; color: var(--text); }
.new-chat { width: 100%; min-height: 38px; border-radius: 10px; background: var(--accent); color: #fff; font-weight: 650; text-align: left; padding: 0 14px; box-shadow: var(--shadow-soft); }
.new-chat:hover { background: var(--accent-hover); }
.new-project {
  width: 100%;
  min-height: 42px;
  border-radius: 10px;
  border-color: var(--border-strong);
  background: #fffaf2;
  color: #92400e;
  font-weight: 680;
  text-align: left;
  padding: 0 14px;
}
.new-project:hover { background: #ffedd5; border-color: #fdba74; }
.search-box input { width: 100%; height: 38px; border: 1px solid var(--border); background: var(--panel); border-radius: 10px; padding: 0 12px; outline: none; }
.sidebar-section { display: grid; gap: 6px; min-height: 0; }
.project-space-section { flex: 0 1 auto; min-height: 80px; max-height: 46vh; overflow: hidden; }
.sidebar-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 2px 2px 0;
}
.sidebar-section-head button {
  min-height: 26px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--panel);
  color: var(--muted);
  padding: 0 9px;
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
}
.sidebar-section-head button:hover,
.sidebar-section-head button.active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}
.chat-section-head { margin-top: 2px; }
.project-space-list {
  display: grid;
  gap: 4px;
  overflow: auto;
  padding-right: 2px;
}
.project-space-group {
  min-width: 0;
  display: grid;
  gap: 3px;
}
.project-space-row {
  position: relative;
  min-width: 0;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  padding: 6px 7px 6px 8px;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  gap: 6px;
  align-items: center;
  cursor: pointer;
}
.project-space-row::before {
  content: '';
  position: absolute;
  left: 3px;
  top: 9px;
  bottom: 9px;
  width: 3px;
  border-radius: 999px;
  background: transparent;
}
.project-space-row:hover { border-color: var(--border); background: var(--panel-tint); }
.project-space-group.active > .project-space-row {
  border-color: var(--select-border);
  background: var(--select-bg);
  box-shadow: inset 0 0 0 1px rgba(15, 118, 110, .08);
}
.project-space-group.active > .project-space-row::before { background: var(--accent); }
.project-space-caret {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  color: var(--muted);
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 850;
}
.project-space-row:hover .project-space-caret { background: #fff; color: var(--text); }
.project-space-row div { min-width: 0; display: grid; gap: 2px; }
.project-space-row strong,
.project-space-row small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.project-space-row strong { color: var(--text); font-size: 14px; font-weight: 760; }
.project-space-group.pinned .project-space-row strong::before { content: '★ '; color: var(--accent); }
.project-space-row small { color: var(--muted); font-size: 12px; }
.project-space-actions {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(3, 22px) 24px;
  gap: 3px;
  align-items: center;
}
.project-space-action {
  width: 22px;
  height: 22px;
  min-height: 22px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--muted-2);
  display: grid;
  place-items: center;
  padding: 0;
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
  opacity: .72;
  transition: background var(--motion-fast) var(--ease-standard), border-color var(--motion-fast) var(--ease-standard), color var(--motion-fast) var(--ease-standard), opacity var(--motion-fast) var(--ease-standard);
}
.project-space-action:hover { border-color: var(--border); background: #fff; color: var(--text); opacity: 1; transform: none; }
.project-space-add-chat {
  border-color: rgba(217, 119, 6, .30);
  background: #fff7ed;
  color: #b45309;
  font-size: 15px;
  opacity: 1;
}
.project-space-add-chat:hover {
  border-color: #d97706;
  background: #f59e0b;
  color: #fff;
  box-shadow: 0 6px 14px rgba(217, 119, 6, .18);
}
.pin-project-space:hover,
.project-space-group.pinned .pin-project-space { color: var(--accent); }
.rename-project-space:hover { color: var(--accent); }
.delete-project-space:hover { border-color: #fecaca; background: #fff1f2; color: var(--danger); }
.anchored-action-popover {
  position: fixed;
  z-index: calc(var(--z-modal) + 6);
  border: 1px solid rgba(183, 203, 198, .86);
  border-radius: 12px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 18px 48px rgba(16, 32, 29, .17), 0 1px 0 rgba(255,255,255,.92) inset;
  color: var(--text);
  padding: 10px;
  display: grid;
  gap: 10px;
  animation: popoverIn var(--motion-base) var(--ease-out) both;
  transform-origin: left top;
}
.anchored-action-popover::before {
  content: '';
  position: absolute;
  top: 18px;
  width: 10px;
  height: 10px;
  border-left: 1px solid rgba(183, 203, 198, .86);
  border-bottom: 1px solid rgba(183, 203, 198, .86);
  background: rgba(255, 255, 255, .98);
  transform: rotate(45deg);
}
.anchored-action-popover[data-side="right"]::before { left: -6px; }
.anchored-action-popover[data-side="left"]::before { right: -6px; transform: rotate(225deg); }
.anchored-action-popover header { min-width: 0; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.anchored-action-popover header span { color: var(--accent); font-size: 10px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.anchored-action-popover.danger header span { color: var(--danger); }
.anchored-action-popover header button {
  width: 24px;
  height: 24px;
  min-height: 24px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--muted-2);
  padding: 0;
}
.anchored-action-popover header button:hover { border-color: var(--border); background: var(--panel-soft); color: var(--text); }
.anchored-action-copy { min-width: 0; display: grid; gap: 4px; }
.anchored-action-copy strong { min-width: 0; color: var(--text); font-size: 13px; font-weight: 780; line-height: 1.35; overflow-wrap: anywhere; }
.anchored-action-copy em { color: var(--muted); font-size: 12px; font-style: normal; line-height: 1.45; }
.anchored-action-popover label { display: grid; gap: 6px; color: var(--muted); font-size: 11px; font-weight: 760; }
.anchored-action-popover input {
  width: 100%;
  min-height: 36px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--panel-tint);
  color: var(--text);
  padding: 0 10px;
  outline: none;
}
.anchored-action-popover input:focus { border-color: var(--accent); background: #fff; box-shadow: 0 0 0 3px var(--accent-ring); }
.anchored-action-popover.invalid input { border-color: #fecaca; box-shadow: 0 0 0 3px rgba(180, 35, 24, .08); }
.anchored-action-buttons { display: flex; justify-content: flex-end; gap: 8px; }
.anchored-action-buttons button {
  min-height: 32px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: #fff;
  color: var(--text);
  padding: 0 12px;
  font-size: 12px;
  font-weight: 760;
}
.anchored-action-buttons button:hover { border-color: var(--border-strong); background: var(--panel-soft); }
.anchored-action-buttons button.primary { border-color: var(--accent); background: var(--accent); color: #fff; }
.anchored-action-buttons button.primary:hover { background: var(--accent-hover); }
.anchored-action-buttons button.danger { border-color: var(--danger); background: var(--danger); color: #fff; }
.anchored-action-buttons button.danger:hover { background: #991b1b; }
.project-space-chat-list {
  min-width: 0;
  display: grid;
  gap: 2px;
  padding: 0 0 2px 28px;
}
.project-space-chat,
.project-space-empty-chat {
  min-width: 0;
  min-height: 34px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--text);
  text-align: left;
  padding: 5px 8px;
  display: grid;
  gap: 1px;
}
.project-space-chat {
  position: relative;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  padding: 0 5px 0 8px;
}
.project-space-chat:hover,
.project-space-empty-chat:hover { border-color: var(--border); background: rgba(255,255,255,.74); }
.project-space-chat.active { background: #fff; border-color: var(--select-border); box-shadow: inset 3px 0 0 var(--accent); }
.project-space-chat-main {
  min-width: 0;
  min-height: 32px;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
  padding: 5px 2px;
  display: grid;
  gap: 1px;
}
.project-space-chat-main:hover { background: transparent; transform: none; }
.project-space-chat-main span,
.project-space-chat-main small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.project-space-chat-main span { font-size: 13px; font-weight: 680; }
.project-space-chat-main small { color: var(--muted); font-size: 11px; }
.project-space-chat.pinned .project-space-chat-main span::before { content: '★ '; color: var(--accent); }
.project-space-chat-actions {
  display: grid;
  grid-template-columns: repeat(3, 21px);
  gap: 2px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--motion-fast) var(--ease-standard);
}
.project-space-chat:hover .project-space-chat-actions,
.project-space-chat.active .project-space-chat-actions,
.project-space-chat.pinned .project-space-chat-actions {
  opacity: 1;
  pointer-events: auto;
}
.project-space-chat-action {
  width: 21px;
  height: 21px;
  min-height: 21px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--muted-2);
  padding: 0;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 850;
  line-height: 1;
  transition: background var(--motion-fast) var(--ease-standard), border-color var(--motion-fast) var(--ease-standard), color var(--motion-fast) var(--ease-standard);
}
.project-space-chat-action:hover { border-color: var(--border); background: #fff; transform: none; }
.project-space-chat-action.pin-chat:hover,
.project-space-chat.pinned .project-space-chat-action.pin-chat { color: var(--accent); }
.project-space-chat-action.rename-chat:hover { color: var(--accent); }
.project-space-chat-action.delete-chat:hover { border-color: #fecaca; background: #fff1f2; color: var(--danger); }
.project-space-empty-chat { color: var(--muted); font-size: 12px; }
.project-space-item {
  position: relative;
  width: 100%;
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  text-align: left;
  padding: 8px 10px 8px 13px;
  display: grid;
  gap: 3px;
}
.project-space-item::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: 999px;
  background: transparent;
}
.project-space-item:hover {
  border-color: var(--border);
  background: var(--panel-tint);
}
.project-space-item.active {
  border-color: var(--select-border);
  background: var(--select-bg);
  box-shadow: inset 0 0 0 1px rgba(15, 118, 110, .08);
}
.project-space-item.active::before { background: var(--accent); }
.project-space-item span,
.project-space-item small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.project-space-item span { font-size: 14px; font-weight: 720; }
.project-space-item small { color: var(--muted); font-size: 12px; }
.chat-folder-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.chat-folder-tab { min-height: 28px; border: 1px solid var(--border); border-radius: 999px; background: var(--panel); color: var(--muted); padding: 0 10px; font-size: 12px; }
.chat-folder-tab.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.inline-toggle { display: flex !important; flex-direction: row !important; align-items: center; gap: 8px; color: var(--text) !important; }
.inline-toggle input { width: 16px; height: 16px; margin: 0; }
.stack-form label.inline-toggle {
  display: inline-flex !important;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  min-height: 32px;
}
.stack-form label.inline-toggle input[type="checkbox"] {
  flex: 0 0 16px;
  width: 16px;
  min-width: 16px;
  height: 16px;
  min-height: 16px;
  padding: 0;
  margin: 0;
}
.search-box input:focus, .composer textarea:focus, .stack-form input:focus, .stack-form textarea:focus, .stack-form select:focus, .bridge-card select:focus, .agent-mode-select:focus { border-color: #aab1bd; box-shadow: 0 0 0 3px rgba(17, 24, 39, .07); }
.chat-list { flex: 1; min-height: 0; overflow: auto; display: flex; flex-direction: column; gap: 4px; padding-right: 2px; }
.chat-item { position: relative; width: 100%; border: 0; background: transparent; border-radius: 10px; text-align: left; padding: 10px 84px 10px 10px; display: grid; gap: 3px; color: var(--text); }
.chat-item:hover, .chat-item.active { background: var(--accent-soft); }
.chat-item.pinned span::before { content: '★ '; color: var(--accent); }
.chat-item span, .chat-item small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-item span { font-size: 14px; }
.chat-item small { color: var(--muted); font-size: 12px; }
.chat-item em { position: absolute; top: 8px; width: 22px; height: 22px; border-radius: 7px; display: none; place-items: center; color: var(--muted); font-style: normal; }
.chat-item em.pin-chat { right: 58px; display: grid; color: var(--muted-2); }
.chat-item em.rename-chat { right: 32px; }
.chat-item em.delete-chat { right: 8px; }
.chat-item:hover em { display: grid; }
.chat-item.pinned em.pin-chat { display: grid; color: var(--accent); }
.chat-item em:hover { background: #fff; color: var(--danger); }
.chat-item em.pin-chat:hover { color: var(--accent); }
.empty-list { color: var(--muted); font-size: 13px; padding: 14px 10px; }
.side-footer { display: grid; gap: 7px; border-top: 1px solid var(--border); padding-top: 10px; }
.side-action, .account-pill { width: 100%; min-height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 10px; }
.side-action:hover, .account-pill:hover, .ghost-btn:hover, .icon-btn:hover { background: var(--accent-soft); }
.side-action span, .account-pill em { color: var(--text); font-size: 13px; font-style: normal; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-action strong { color: var(--muted); font-size: 12px; font-weight: 600; max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-pill { justify-content: flex-start; }
.account-pill span { flex: 0 0 26px; height: 26px; border-radius: 8px; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 700; }

.workspace { min-width: 0; height: 100vh; display: grid; grid-template-rows: 58px minmax(0, 1fr) auto; background: var(--panel); }
.topbar { border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; padding: 0 18px; gap: 14px; }
.model-chip { display: grid; gap: 1px; min-width: 0; }
.model-chip span { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.model-chip small { color: var(--muted); }
.top-actions { display: flex; align-items: center; gap: 8px; }
.app-shell.home-empty .chat-only-actions,
.app-shell.home-empty #mobileWorkspacePanelBtn { display: none !important; }
.run-status-chip {
  --run-progress: 0%;
  min-width: 132px;
  max-width: 220px;
  min-height: 36px;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  background: #eff6ff;
  color: #1d4ed8;
  padding: 5px 8px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1px 8px;
  align-items: center;
  text-align: left;
}
.run-status-chip:hover {
  border-color: #93c5fd;
  background: #dbeafe;
  transform: translateY(-1px);
}
.run-status-chip span,
.run-status-chip strong,
.run-status-chip em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.run-status-chip span {
  color: #1d4ed8;
  font-size: 10px;
  font-weight: 850;
}
.run-status-chip strong {
  justify-self: end;
  font-size: 12px;
  font-weight: 900;
}
.run-status-chip em {
  grid-column: 1 / -1;
  color: #475569;
  font-size: 10px;
  font-style: normal;
}
.run-status-chip i {
  grid-column: 1 / -1;
  height: 3px;
  border-radius: 999px;
  background: rgba(37,99,235,.16);
  overflow: hidden;
}
.run-status-chip i b {
  width: var(--run-progress);
  height: 100%;
  display: block;
  border-radius: inherit;
  background: #2563eb;
  transition: width .22s ease;
}
.run-status-chip.failed,
.run-status-chip.error {
  border-color: #fecaca;
  background: #fff7f7;
  color: #b91c1c;
}
.run-status-chip.failed i b,
.run-status-chip.error i b { background: #dc2626; }
.run-status-chip.succeeded,
.run-status-chip.done {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #15803d;
}
.run-status-chip.succeeded i b,
.run-status-chip.done i b { background: #16a34a; }
.project-upload-choice {
  position: fixed;
  z-index: 80;
  width: 232px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  padding: 6px;
  display: grid;
  gap: 5px;
  box-shadow: 0 18px 42px rgba(17,24,39,.14);
  animation: workspaceViewIn .14s ease both;
}
.project-upload-choice button {
  min-width: 0;
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--text);
  padding: 7px 8px;
  display: grid;
  gap: 2px;
  text-align: left;
}
.project-upload-choice button:hover {
  border-color: var(--border);
  background: var(--accent-soft);
  transform: none;
}
.project-upload-choice strong,
.project-upload-choice span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.project-upload-choice strong { font-size: 12px; }
.project-upload-choice span { color: var(--muted); font-size: 11px; }
.agent-switch { height: 36px; display: flex; align-items: center; gap: 7px; padding: 0 11px; border: 1px solid var(--border); border-radius: 999px; color: var(--muted); font-size: 13px; }
.agent-mode-select { height: 36px; border: 1px solid var(--border); border-radius: 9px; background: var(--panel); color: var(--text); padding: 0 9px; outline: none; font-size: 13px; }
.ghost-btn, .icon-btn { min-height: 36px; border-radius: 9px; padding: 0 12px; border-color: var(--border); background: var(--panel); }
.icon-btn { width: 38px; padding: 0; }
.mobile-workspace-btn { margin-right: auto; }
.mobile-only { display: none; }

.messages { overflow: auto; padding: 22px 24px 18px; }
.messages:has(.welcome) { display: grid; place-items: center; }
.welcome { width: min(1080px, 100%); text-align: left; margin: 0 auto; animation: welcomeIn .22s ease both; }
.welcome.openwebui-style,
.welcome-simple { width: min(760px, 100%); text-align: center; }
.welcome-hero { display: grid; grid-template-columns: 62px minmax(0, 1fr); align-items: center; gap: 16px; margin-bottom: 14px; }
.welcome-hero.openwebui-style { display: grid; grid-template-columns: 1fr; justify-items: center; gap: 14px; margin-bottom: 0; }
.welcome-logo { width: 58px; height: 58px; border-radius: 16px; background: var(--accent); color: #fff; margin: 0; box-shadow: var(--shadow-soft); }
.welcome-kicker { width: fit-content; min-height: 24px; display: inline-grid; place-items: center; border: 1px solid var(--border); border-radius: 999px; background: var(--panel); color: var(--muted); padding: 0 9px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0; }
.welcome h1 { margin: 7px 0 4px; font-size: clamp(28px, 4vw, 42px); letter-spacing: 0; }
.welcome p { margin: 0 auto; color: var(--muted); font-size: 14px; line-height: 1.55; max-width: 720px; }
.welcome-status { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 16px 0 12px; }
.welcome-status span { min-width: 0; min-height: 42px; border: 1px solid var(--border); border-radius: 12px; background: var(--panel); color: var(--muted); display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 12px; font-size: 12px; font-weight: 700; box-shadow: 0 6px 18px rgba(17,24,39,.03); }
.welcome-status b { min-width: 0; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.welcome-status span.live { border-color: #93c5fd; background: #eff6ff; color: #1d4ed8; }
.welcome-status span.live b { color: #1d4ed8; }
.welcome-simple { width: min(960px, 100%); }
.welcome-project-start {
  min-width: 0;
  border: 1px solid #bfdbfe;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  padding: 16px;
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(320px, 1.14fr);
  gap: 16px;
  align-items: end;
  box-shadow: 0 16px 42px rgba(37,99,235,.08);
}
.welcome-project-start-copy { min-width: 0; display: grid; gap: 5px; align-content: center; }
.welcome-project-start-copy span {
  width: fit-content;
  min-height: 22px;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  display: inline-grid;
  place-items: center;
  padding: 0 8px;
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}
.welcome-project-start-copy strong,
.welcome-project-start-copy em { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.welcome-project-start-copy strong { color: var(--text); font-size: 20px; line-height: 1.25; }
.welcome-project-start-copy em { color: var(--muted); font-size: 12px; font-style: normal; line-height: 1.45; }
.welcome-project-form { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; align-items: end; }
.welcome-project-form label { min-width: 0; display: grid; gap: 5px; color: var(--muted); font-size: 11px; font-weight: 800; }
.welcome-project-form input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: #fff;
  color: var(--text);
  outline: none;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 650;
}
.welcome-project-form input:focus { border-color: #93c5fd; box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.welcome-project-form button {
  min-height: 44px;
  border: 1px solid var(--info);
  border-radius: 11px;
  background: var(--info);
  color: #fff;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 850;
  white-space: nowrap;
}
.welcome-project-form button.secondary { border-color: var(--border); background: #fff; color: var(--text); }
.welcome-project-form button:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(37,99,235,.12); }
.welcome-project-form button.secondary:hover { border-color: var(--border-strong); box-shadow: 0 10px 22px rgba(17,24,39,.06); }
.welcome-project-map { margin: 12px 0 14px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.welcome-project-zone {
  min-width: 0;
  min-height: 138px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--panel);
  color: var(--text);
  padding: 13px;
  text-align: left;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 6px;
  box-shadow: 0 10px 28px rgba(17,24,39,.045);
}
.welcome-project-zone:hover { border-color: var(--border-strong); transform: translateY(-1px); box-shadow: 0 16px 34px rgba(17,24,39,.07); }
.welcome-project-map.read-only .welcome-project-zone { cursor: default; }
.welcome-project-map.read-only .welcome-project-zone:hover { border-color: var(--border); transform: none; box-shadow: 0 10px 26px rgba(17,24,39,.04); }
.welcome-project-zone span {
  width: fit-content;
  min-height: 22px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--panel-soft);
  color: var(--muted);
  display: inline-grid;
  place-items: center;
  padding: 0 8px;
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}
.welcome-project-zone.files { border-color: #fed7aa; background: linear-gradient(180deg, #fff, #fffaf2); }
.welcome-project-zone.project { border-color: #bfdbfe; background: linear-gradient(180deg, #fff, #f8fbff); }
.welcome-project-zone.progress { border-color: #ddd6fe; background: linear-gradient(180deg, #fff, #fbf8ff); }
.welcome-project-zone.files span { border-color: #fed7aa; background: #fff7ed; color: #c2410c; }
.welcome-project-zone.project span { border-color: #bfdbfe; background: #eff6ff; color: #1d4ed8; }
.welcome-project-zone.progress span { border-color: #ddd6fe; background: #f5f3ff; color: #6d28d9; }
.welcome-project-zone strong,
.welcome-project-zone em,
.welcome-project-zone small { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.welcome-project-zone strong { font-size: 15px; line-height: 1.25; white-space: nowrap; }
.welcome-project-zone em { color: var(--muted); font-size: 12px; line-height: 1.45; font-style: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.welcome-project-zone small { align-self: end; color: var(--muted-2); font-size: 11px; font-weight: 800; white-space: nowrap; }
.welcome-launcher { margin: 0 auto 14px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.welcome-launcher.focused { grid-template-columns: 1fr; }
.welcome-primary-action { min-width: 0; display: grid; animation: workspaceViewIn .16s ease both; }
.welcome-action { position: relative; min-height: 150px; border: 1px solid var(--border); border-radius: 12px; background: var(--panel); color: var(--text); padding: 14px; text-align: left; display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; gap: 7px; overflow: hidden; box-shadow: 0 10px 28px rgba(17,24,39,.045); }
.welcome-launcher-head { min-width: 0; display: flex; justify-content: space-between; align-items: end; gap: 12px; margin-bottom: 10px; }
.welcome-launcher-head div { min-width: 0; display: grid; gap: 3px; }
.welcome-launcher-head span { width: fit-content; min-height: 22px; border: 1px solid var(--border); border-radius: 999px; background: #f0fdfa; color: #0f766e; display: inline-grid; place-items: center; padding: 0 8px; font-size: 10px; font-weight: 850; text-transform: uppercase; }
.welcome-launcher-head strong { min-width: 0; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.welcome-launcher-head em { color: var(--muted); font-size: 12px; line-height: 1.45; font-style: normal; }
.welcome-launcher-head b { flex: 0 0 auto; min-height: 26px; border: 1px solid #ccfbf1; border-radius: 999px; background: #f0fdfa; color: #0f766e; display: inline-flex; align-items: center; padding: 0 10px; font-size: 11px; }
.welcome-agent-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.welcome-primary-action .welcome-action { min-height: 118px; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto auto; align-items: center; gap: 5px 10px; }
.welcome-action.compact { min-height: 126px; padding: 12px; }
.welcome-action-preview {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.welcome-action-preview span {
  position: relative;
  min-width: 0;
  min-height: 66px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: linear-gradient(180deg, #fff, var(--panel-tint));
  padding: 9px 10px 9px 38px;
  display: grid;
  align-content: start;
  gap: 2px;
  box-shadow: 0 8px 22px rgba(16,32,29,.04);
}
.welcome-action-preview span::before {
  content: '';
  position: absolute;
  inset: 8px auto 8px 0;
  width: 3px;
  border-radius: 999px;
  background: var(--accent);
}
.welcome-action-preview b {
  position: absolute;
  left: 10px;
  top: 10px;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: var(--select-bg);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 9px;
  font-weight: 850;
}
.welcome-action-preview strong,
.welcome-action-preview em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.welcome-action-preview strong { color: var(--text); font-size: 12px; line-height: 1.25; white-space: nowrap; }
.welcome-action-preview em { color: var(--muted); font-size: 11px; line-height: 1.35; font-style: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.welcome-action-preview.project span { border-color: rgba(15,118,110,.2); background: linear-gradient(180deg, #fff, #eef9f6); }
.welcome-action-preview.goal span { border-color: rgba(37,99,235,.2); background: linear-gradient(180deg, #fff, var(--info-soft)); }
.welcome-action-preview.task span { border-color: rgba(124,58,237,.2); background: linear-gradient(180deg, #fff, var(--violet-soft)); }
.welcome-action-preview.tools span { border-color: rgba(8,145,178,.2); background: linear-gradient(180deg, #fff, #e6f7fb); }
.welcome-action-preview.build span { border-color: rgba(234,88,12,.2); background: linear-gradient(180deg, #fff, var(--warning-soft)); }
.welcome-action-preview.plan span { border-color: rgba(71,85,105,.2); background: linear-gradient(180deg, #fff, #eef2f7); }
.welcome-action-preview.note span { border-color: rgba(21,128,61,.2); background: linear-gradient(180deg, #fff, var(--success-soft)); }
.welcome-action-preview.goal span::before { background: var(--info); }
.welcome-action-preview.task span::before { background: var(--violet); }
.welcome-action-preview.tools span::before { background: #0891b2; }
.welcome-action-preview.build span::before { background: #ea580c; }
.welcome-action-preview.plan span::before { background: #475569; }
.welcome-action-preview.note span::before { background: var(--success); }
.welcome-more-actions {
  margin: 0 auto 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(17,24,39,.035);
}
.welcome-more-actions > summary {
  list-style: none;
  cursor: pointer;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 12px;
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
}
.welcome-more-actions > summary::-webkit-details-marker { display: none; }
.welcome-more-actions > summary::after { content: '▾'; color: var(--muted); transition: transform .15s ease; }
.welcome-more-actions[open] > summary { border-bottom: 1px solid var(--border); background: var(--panel-soft); }
.welcome-more-actions[open] > summary::after { transform: rotate(180deg); }
.welcome-more-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 10px; }
.welcome-action::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--border-strong); }
.welcome-action:hover { border-color: var(--border-strong); transform: translateY(-2px); box-shadow: 0 16px 36px rgba(17,24,39,.08); }
.welcome-action.primary { background: #111827; border-color: #111827; color: #fff; }
.welcome-action.primary::before { background: #fff; opacity: .9; }
.welcome-primary-action .welcome-action::after { content: '下一步'; position: absolute; right: 12px; top: 12px; min-height: 22px; border-radius: 999px; background: rgba(255,255,255,.12); color: rgba(255,255,255,.82); display: inline-flex; align-items: center; padding: 0 8px; font-size: 10px; font-weight: 850; }
.welcome-action.project::before { background: #0f766e; }
.welcome-action.goal::before { background: #2563eb; }
.welcome-action.task::before { background: #7c3aed; }
.welcome-action.tools::before { background: #0891b2; }
.welcome-action.automation::before { background: #0d9488; }
.welcome-action.web::before { background: #0369a1; }
.welcome-action.computer::before { background: #9333ea; }
.welcome-action.build::before { background: #ea580c; }
.welcome-action.plan::before { background: #475569; }
.welcome-action.note::before { background: #15803d; }
.welcome-action.live { border-color: #93c5fd; background: #eff6ff; }
.welcome-action span { width: fit-content; min-height: 24px; display: inline-grid; place-items: center; border: 1px solid var(--border); border-radius: 999px; padding: 0 8px; color: var(--muted); background: var(--panel-soft); font-size: 11px; font-weight: 800; }
.welcome-action.primary span { border-color: rgba(255,255,255,.2); background: rgba(255,255,255,.12); color: #fff; }
.welcome-action strong,
.welcome-action em,
.welcome-action small { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.welcome-action strong { display: block; font-size: 15px; line-height: 1.25; white-space: normal; }
.welcome-action em { color: var(--muted); font-size: 12px; font-style: normal; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.welcome-action small { align-self: end; color: var(--muted-2); font-size: 11px; font-weight: 700; line-height: 1.35; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.welcome-action-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.welcome-action-tags b { min-height: 19px; border: 1px solid var(--border); border-radius: 999px; background: #f8fafc; color: #475569; display: inline-flex; align-items: center; padding: 0 6px; font-size: 9px; font-weight: 850; }
.welcome-action.primary .welcome-action-tags b { border-color: rgba(255,255,255,.16); background: rgba(255,255,255,.12); color: rgba(255,255,255,.78); }
.welcome-action-result {
  min-width: 0;
  min-height: 26px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  color: var(--muted);
  padding: 0 9px;
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 7px;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  max-width: 100%;
}
.welcome-action-result b,
.welcome-action-result i {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-style: normal;
}
.welcome-action-result b { flex: 0 0 auto; color: var(--accent); }
.welcome-action-result i { color: var(--text); }
.welcome-primary-action .welcome-action span { grid-row: 1 / span 2; }
.welcome-primary-action .welcome-action strong { padding-right: 70px; font-size: 18px; }
.welcome-primary-action .welcome-action em,
.welcome-primary-action .welcome-action small,
.welcome-primary-action .welcome-action .welcome-action-result { grid-column: 1 / -1; }
.welcome-action.primary em { color: rgba(255,255,255,.72); }
.welcome-action.primary small { color: rgba(255,255,255,.58); }
.welcome-action.primary .welcome-action-result {
  border-color: rgba(255,255,255,.24);
  background: rgba(255,255,255,.14);
  color: #fff;
}
.welcome-action.primary .welcome-action-result b,
.welcome-action.primary .welcome-action-result i { color: #fff; }
.welcome-recent { margin: 0 auto 14px; display: grid; gap: 10px; }
.welcome-recent-head { display: grid; gap: 3px; padding: 0 2px; }
.welcome-recent-head span { width: fit-content; min-height: 22px; display: inline-grid; place-items: center; border: 1px solid var(--border); border-radius: 999px; background: var(--panel); color: var(--muted); padding: 0 8px; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0; }
.welcome-recent-head strong { font-size: 16px; letter-spacing: 0; }
.welcome-recent-head em { color: var(--muted); font-style: normal; font-size: 12px; }
.welcome-recent-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.welcome-recent-grid.focused { grid-template-columns: 1fr; }
.welcome-recent-group { min-width: 0; border: 1px solid var(--border); border-radius: 12px; background: var(--panel); padding: 12px; display: grid; gap: 8px; box-shadow: 0 10px 28px rgba(17,24,39,.04); }
.welcome-recent-group.primary { border-color: var(--border-strong); background: #fff; animation: workspaceViewIn .16s ease both; }
.welcome-recent-group > div { display: grid; gap: 2px; }
.welcome-recent-group > div span { width: fit-content; min-height: 20px; display: inline-grid; place-items: center; border: 1px solid var(--border); border-radius: 999px; background: var(--panel-soft); color: var(--muted); padding: 0 8px; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0; }
.welcome-recent-group > div strong { min-width: 0; font-size: 14px; }
.welcome-recent-group button { min-width: 0; border: 1px solid var(--border); border-radius: 10px; background: var(--panel-soft); color: var(--text); padding: 9px 10px; text-align: left; display: grid; gap: 3px; }
.welcome-recent-group button:hover { border-color: var(--border-strong); transform: translateY(-1px); background: #fff; }
.welcome-recent-group button.active { border-color: var(--accent); background: var(--accent-soft); }
.welcome-recent-group button.live { border-color: #93c5fd; background: #eff6ff; }
.welcome-recent-group button.empty { background: transparent; color: var(--muted); }
.welcome-recent-group .empty { min-width: 0; border: 1px dashed var(--border); border-radius: 10px; background: transparent; color: var(--muted); padding: 9px 10px; display: grid; gap: 3px; }
.welcome-recent-group button span,
.welcome-recent-group button strong,
.welcome-recent-group button em,
.welcome-recent-group .empty span,
.welcome-recent-group .empty strong,
.welcome-recent-group .empty em { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.welcome-recent-group button span { width: fit-content; min-height: 20px; display: inline-grid; place-items: center; border: 1px solid var(--border); border-radius: 999px; background: var(--panel); color: var(--muted); padding: 0 7px; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.welcome-recent-group button strong { display: block; font-size: 13px; line-height: 1.25; white-space: normal; }
.welcome-recent-group button em { color: var(--muted); font-style: normal; font-size: 11px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.welcome-recent-group button.empty span { background: var(--panel-soft); }
.welcome-recent-group .empty span { width: fit-content; min-height: 20px; display: inline-grid; place-items: center; border: 1px solid var(--border); border-radius: 999px; background: var(--panel-soft); color: var(--muted); padding: 0 7px; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.welcome-recent-group .empty strong { display: block; font-size: 13px; line-height: 1.25; white-space: normal; }
.welcome-recent-group .empty em { color: var(--muted); font-style: normal; font-size: 11px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.welcome-more-recent { margin-top: 0; }
.welcome-more-recent .welcome-recent-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 10px; }
.prompt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.prompt-grid button { min-height: 76px; border: 1px solid var(--border); background: var(--panel); border-radius: 14px; padding: 12px; color: var(--text); text-align: left; line-height: 1.45; }
.prompt-grid button:hover { background: var(--panel-soft); }
.prompt-grid.compact { max-width: 520px; margin: 0 auto; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.prompt-grid.compact button { min-height: 38px; border-radius: 999px; padding: 0 12px; text-align: center; color: var(--muted); font-size: 12px; }
.prompt-grid.compact button:hover { color: var(--text); transform: translateY(-1px); }
.message-row { max-width: 920px; margin: 0 auto 22px; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 14px; }
.avatar { width: 34px; height: 34px; border-radius: 10px; background: #eef0f3; color: var(--text); font-size: 12px; }
.message-row.user .avatar { background: #111827; color: #fff; }
.message-row.tool .avatar { background: #dcfce7; color: #166534; }
.message-bubble { min-width: 0; }
.message-head { min-height: 22px; color: var(--muted); font-size: 13px; font-weight: 650; }
.message-body { overflow-wrap: anywhere; line-height: 1.68; font-size: 15px; }
.message-body p { margin: 0 0 12px; }
.message-body p:last-child { margin-bottom: 0; }
.message-body h1, .message-body h2, .message-body h3 { margin: 14px 0 8px; line-height: 1.25; letter-spacing: 0; }
.message-body h1 { font-size: 24px; }
.message-body h2 { font-size: 20px; }
.message-body h3 { font-size: 17px; }
.message-body ul { margin: 8px 0 12px 20px; padding: 0; }
.message-body code { border: 1px solid var(--border); background: var(--panel-soft); border-radius: 6px; padding: 1px 5px; font-family: Consolas, "SFMono-Regular", monospace; font-size: .92em; }
.message-body pre { position: relative; margin: 12px 0; padding: 42px 14px 14px; border-radius: 12px; overflow: auto; background: #0f172a; color: #e5e7eb; }
.message-body pre code { border: 0; background: transparent; color: inherit; padding: 0; font-size: 13px; }
.code-actions { position: absolute; right: 8px; top: 8px; left: 8px; display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 6px; }
.code-actions button { min-height: 28px; border: 1px solid rgba(255,255,255,.14); border-radius: 8px; background: rgba(255,255,255,.08); color: #fff; padding: 0 8px; font-size: 12px; }
.code-actions button:hover { background: rgba(255,255,255,.16); }
.message-row.user .message-body { background: var(--panel-soft); border-radius: 16px; padding: 12px 14px; width: fit-content; max-width: 100%; }
.message-row.error .message-body, .message-row.assistant.error .message-body { color: var(--danger); background: var(--danger-soft); border-radius: 12px; padding: 10px 12px; }
.message-row.streaming .message-body::after { content: ''; display: inline-block; width: 7px; height: 1.1em; margin-left: 3px; background: currentColor; vertical-align: -2px; animation: blink 1s steps(2, start) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@keyframes welcomeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.tool-card { border: 1px solid var(--border); border-radius: 12px; background: var(--panel); overflow: hidden; }
.tool-card-head { width: 100%; min-height: 46px; border: 0; background: var(--panel-soft); color: var(--text); display: grid; grid-template-columns: minmax(110px, auto) minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 11px; text-align: left; }
.tool-card-head:hover { background: var(--accent-soft); }
.tool-card-head strong { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tool-card-head span { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tool-card-head em { color: var(--muted-2); font-size: 12px; font-style: normal; }
.tool-card-detail { padding: 11px 12px 12px; border-top: 1px solid var(--border); max-height: min(58vh, 520px); overflow: auto; background: #fff; }
.tool-card-detail p { margin: 0 0 9px; }
.tool-card-detail pre { margin-bottom: 0; }
.tool-group .message-head { margin-bottom: 8px; }
.tool-stack-card { border: 1px solid var(--border); border-radius: 12px; background: var(--panel); overflow: hidden; }
.tool-stack-head { width: 100%; min-height: 44px; border: 0; background: var(--panel-soft); color: var(--text); display: grid; grid-template-columns: minmax(140px, auto) minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 11px; text-align: left; }
.tool-stack-head:hover { background: var(--accent-soft); }
.tool-stack-head strong { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tool-stack-head span { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tool-stack-head em { color: var(--muted-2); font-size: 12px; font-style: normal; }
.tool-stack-detail { border-top: 1px solid var(--border); background: #fff; padding: 8px; display: grid; gap: 8px; }
.tool-stack-entry { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: var(--panel); }
.tool-stack-entry summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(110px, auto) minmax(0, 1fr); gap: 10px; align-items: center; min-height: 38px; padding: 8px 10px; background: var(--panel-soft); }
.tool-stack-entry summary::-webkit-details-marker { display: none; }
.tool-stack-entry summary strong { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tool-stack-entry summary span { color: var(--muted); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tool-stack-entry[open] summary { background: var(--accent-soft); }
.tool-stack-entry-body { padding: 10px; max-height: min(50vh, 420px); overflow: auto; background: #fff; }
.tool-stack-entry-body p { margin: 0 0 9px; }
.tool-stack-entry-body pre { margin-bottom: 0; }
.tool-stack-detail[hidden],
.tool-card-detail[hidden] { display: none !important; }
.message-row.tool.tool-group.compact-transcript {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  margin: -8px auto 10px;
}
.message-row.tool.tool-group.compact-transcript .avatar,
.message-row.tool.tool-group.compact-transcript .message-head,
.message-row.tool.tool-group.compact-transcript .message-actions {
  display: none;
}
.message-row.tool.tool-group.compact-transcript .message-body {
  line-height: 1.35;
  font-size: 12px;
}
.tool-stack-card.compact-transcript {
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: visible;
}
.tool-stack-card.compact-transcript .tool-stack-head {
  width: min(100%, 520px);
  min-height: 24px;
  display: inline-grid;
  grid-template-columns: 18px max-content minmax(0, 1fr) 14px;
  gap: 6px;
  align-items: center;
  padding: 0 6px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  box-shadow: none;
}
.tool-stack-card.compact-transcript .tool-stack-head:hover,
.tool-stack-card.compact-transcript .tool-stack-head:focus-visible {
  background: var(--panel-soft);
  color: var(--text);
}
.tool-stack-card.compact-transcript .tool-stack-head strong,
.tool-stack-card.compact-transcript .tool-stack-head span,
.tool-stack-card.compact-transcript .tool-stack-head em {
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
}
.tool-stack-card.compact-transcript .tool-stack-head strong,
.tool-stack-card.compact-transcript .tool-stack-head em {
  color: inherit;
}
.tool-stack-card.compact-transcript .tool-stack-head span {
  color: var(--muted-2);
}
.tool-stack-icon { width: 18px; height: 18px; display: inline-grid; place-items: center; color: currentColor; font-style: normal; }
.tool-stack-icon svg { width: 17px; height: 17px; display: block; }
.tool-stack-card.compact-transcript .tool-stack-detail {
  width: min(100%, 760px);
  margin-top: 6px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  padding: 6px;
  gap: 6px;
}
.tool-stack-card.compact-transcript .tool-stack-entry summary {
  min-height: 28px;
  padding: 5px 8px;
}
.tool-stack-card.compact-transcript .tool-stack-entry-body {
  padding: 8px;
  max-height: min(42vh, 340px);
}
.agent-run-transcript {
  max-width: 920px;
  margin: 0 auto 18px;
  border: 0;
  background: transparent;
}
.agent-run-summary {
  min-height: 42px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 2px;
  transition: color .18s ease, background .18s ease;
}
.agent-run-summary::-webkit-details-marker { display: none; }
.agent-run-summary::after {
  content: '›';
  flex: 0 0 auto;
  color: var(--muted-2);
  font-size: 20px;
  line-height: 1;
  transform-origin: 50% 50%;
  transition: transform .18s ease, color .18s ease;
}
.agent-run-transcript[open] > .agent-run-summary::after { transform: rotate(90deg); }
.agent-run-summary:hover { color: var(--text); }
.agent-run-summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 7px; }
.agent-run-state { min-width: 0; display: inline-flex; align-items: center; gap: 7px; font-size: 13px; }
.agent-run-state i { width: 7px; height: 7px; border-radius: 999px; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.agent-run-state strong { color: inherit; font-size: inherit; font-weight: 600; }
.agent-run-state > span { color: var(--muted-2); font-variant-numeric: tabular-nums; }
.agent-run-transcript[data-finalized="false"] .agent-run-state i { animation: agentRunPulse 1.6s ease-in-out infinite; }
.agent-run-transcript[data-finalized="true"] .agent-run-state i { background: var(--muted-2); box-shadow: none; }
.agent-run-actions { display: flex; justify-content: flex-end; padding: 0 14px 8px; }
.agent-run-actions[hidden] { display: none; }
.agent-run-promote-btn { min-height: 30px; padding: 5px 10px; border-radius: 9px; font-size: 11px; }
.agent-run-actions[data-promoted="true"] .agent-run-promote-btn { color: var(--success); border-color: color-mix(in srgb, var(--success) 42%, var(--line)); background: color-mix(in srgb, var(--success) 8%, var(--surface)); }
.agent-run-body { padding: 18px 0 2px; }
.agent-run-body .message-row.progress {
  max-width: none;
  margin: 0 0 10px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}
.message-row.progress .message-body { color: var(--text); font-size: 15px; line-height: 1.72; }
.message-row.progress .message-body p { margin-bottom: 8px; }
.agent-run-body .message-row.tool.tool-group.compact-transcript { max-width: none; margin: 0 0 18px; }
.agent-run-body .tool-stack-card.compact-transcript .tool-stack-head { width: min(100%, 620px); }
.message-row.assistant.agent-final-result {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  margin-top: 0;
  padding-top: 2px;
}
.message-row.assistant.agent-final-result .avatar,
.message-row.assistant.agent-final-result .message-head { display: none; }
.message-row.assistant.agent-final-result .message-body { font-size: 16px; line-height: 1.76; }
.message-row.assistant.agent-final-result .message-body > p:first-child { margin-top: 0; }
.message-row.assistant.agent-final-result .message-body > br { display: none; }
.message-row.assistant.agent-final-result .message-body > ul { margin-top: 5px; margin-bottom: 7px; }
@keyframes agentRunPulse {
  0%, 100% { opacity: .52; transform: scale(.82); }
  50% { opacity: 1; transform: scale(1); }
}
.message-actions { display: flex; gap: 6px; margin-top: 8px; opacity: 0; transition: opacity .12s ease; }
.message-row:hover .message-actions { opacity: 1; }
.message-actions button { min-height: 28px; border: 1px solid var(--border); border-radius: 8px; background: var(--panel); color: var(--muted); padding: 0 8px; font-size: 12px; }
.message-actions button:hover { color: var(--text); background: var(--panel-soft); }
.approval-actions { display: flex; gap: 8px; margin-top: 12px; }
.approval-actions button { min-height: 34px; border-radius: 9px; border: 1px solid var(--border); background: var(--panel); padding: 0 12px; }

.composer-wrap { padding: 12px 24px 18px; background: linear-gradient(180deg, rgba(255,255,255,0), var(--panel) 22%); }
.pending-composer-queue { max-width: 920px; margin: 0 auto 8px; display: grid; gap: 6px; }
.pending-composer-queue[hidden] { display: none; }
.pending-composer-card { min-width: 0; min-height: 42px; border: 1px solid rgba(214,217,222,.95); border-left: 3px solid #9ca3af; border-radius: 13px; background: rgba(255,255,255,.86); box-shadow: 0 8px 24px rgba(15, 23, 42, .06); padding: 6px 7px 6px 10px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; animation: compactFadeIn .18s ease both; }
.pending-composer-card.guide { border-left-color: var(--accent); background: linear-gradient(90deg, rgba(20, 184, 166, .08), rgba(255,255,255,.9) 42%); }
.pending-composer-main { min-width: 0; display: flex; align-items: baseline; gap: 8px; }
.pending-composer-main span { flex: 0 0 auto; color: var(--accent); font-size: 11px; font-weight: 800; white-space: nowrap; }
.pending-composer-main strong { min-width: 0; color: var(--text); font-size: 12px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pending-composer-actions { display: inline-flex; align-items: center; gap: 4px; }
.pending-composer-actions button { min-height: 28px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--muted); padding: 0 8px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.pending-composer-actions button:hover,
.pending-composer-actions button:focus-visible { border-color: var(--border); background: var(--panel-soft); color: var(--text); outline: none; }
.pending-composer-actions button[data-pending-composer-action="guide"] { color: var(--accent); background: rgba(20, 184, 166, .08); }
.pending-composer-actions button[data-pending-composer-action="edit"] { color: #92400e; background: rgba(245, 158, 11, .1); }
.pending-composer-actions button.icon-danger { color: var(--danger); }
.composer { position: relative; max-width: 920px; margin: 0 auto; border: 1px solid var(--border-strong); border-radius: 18px; background: var(--panel); box-shadow: 0 10px 30px rgba(15, 23, 42, .08); padding: 10px; display: grid; gap: 8px; }
.context-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 4px; }
.context-chips button { min-height: 28px; max-width: 100%; border: 1px solid var(--border); border-radius: 999px; background: var(--panel-soft); color: var(--muted); padding: 0 9px; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.context-chips button.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.context-chips button:disabled { opacity: .48; }
.composer textarea { width: 100%; min-height: 48px; max-height: 180px; resize: none; border: 0; outline: none; padding: 8px 10px; line-height: 1.5; color: var(--text); }
.composer-actions { position: relative; display: flex; justify-content: flex-start; align-items: center; gap: 8px; }
.composer-mode-controls { display: inline-flex; align-items: center; gap: 7px; min-width: 0; }
.composer-actions #sendBtn { margin-left: auto; }
.composer-actions #stopGenerateBtn:not([hidden]) { margin-left: auto; }
.composer-actions #stopGenerateBtn:not([hidden]) + #sendBtn { margin-left: 0; }
.composer-actions button, .primary-link, .stack-form button, .bridge-card button { min-height: 36px; border-radius: 10px; border: 1px solid var(--border); background: var(--panel-soft); color: var(--text); padding: 0 13px; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.slash-prompt-menu { position: absolute; left: 10px; right: 10px; bottom: calc(100% + 8px); max-height: 280px; overflow: auto; border: 1px solid var(--border); border-radius: 14px; background: var(--panel); box-shadow: var(--shadow); padding: 6px; display: grid; gap: 2px; z-index: 14; }
.slash-prompt-menu button { width: 100%; min-height: 46px; border: 0; border-radius: 10px; background: transparent; color: var(--text); text-align: left; display: grid; grid-template-columns: minmax(88px, auto) minmax(0, 1fr); gap: 10px; align-items: center; padding: 7px 10px; }
.slash-prompt-menu button:hover, .slash-prompt-menu button.active { background: var(--panel-soft); }
.slash-prompt-menu strong { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slash-prompt-menu span { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.quick-actions-menu { position: absolute; right: 118px; bottom: 44px; width: min(560px, calc(100vw - 28px)); max-height: min(76vh, 660px); overflow: auto; border: 1px solid var(--border); border-radius: 14px; background: var(--panel); box-shadow: var(--shadow); padding: 8px; display: grid; gap: 8px; z-index: 12; }
.quick-actions-menu::before { content: '工具中心'; font-size: 11px; font-weight: 700; color: var(--muted); padding: 2px 8px 0; letter-spacing: 0; }
.quick-actions-menu.attachment-menu { right: auto; left: 0; bottom: 44px; width: min(260px, calc(100vw - 28px)); padding: 7px; gap: 4px; }
.quick-actions-menu.attachment-menu::before { content: '添加'; }
.quick-actions-menu.attachment-menu button { min-height: 42px; border: 0; border-radius: 10px; background: transparent; color: var(--text); display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; text-align: left; padding: 0 10px; }
.quick-actions-menu.attachment-menu button:hover,
.quick-actions-menu.attachment-menu button:focus-visible { background: var(--panel-soft); outline: none; }
.quick-actions-menu.attachment-menu span { font-weight: 750; font-size: 13px; }
.quick-actions-menu.attachment-menu em { color: var(--muted); font-style: normal; font-size: 12px; }
.quick-action-search { width: 100%; min-height: 36px; border: 1px solid var(--border); border-radius: 10px; background: var(--panel-soft); color: var(--text); outline: none; padding: 0 10px; font-size: 13px; }
.quick-action-search:focus { border-color: #aab1bd; box-shadow: 0 0 0 3px rgba(17, 24, 39, .07); }
.quick-action-summary { border: 1px solid var(--border); border-radius: 12px; background: var(--panel-soft); padding: 9px 10px; display: grid; gap: 2px; }
.quick-action-summary strong { font-size: 13px; }
.quick-action-summary span,
.quick-action-summary small { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.quick-action-summary small { color: var(--muted-2); font-size: 11px; }
.quick-action-categories { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.quick-action-categories button { min-width: 0; min-height: 54px; border: 1px solid var(--border); border-radius: 11px; background: var(--panel); display: grid; align-content: center; gap: 2px; padding: 7px 8px; text-align: left; }
.quick-action-categories button.active { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--accent); }
.quick-action-categories span,
.quick-action-categories em { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-style: normal; }
.quick-action-categories span { font-size: 12px; font-weight: 750; color: var(--text); }
.quick-action-categories em { color: var(--muted); font-size: 10px; }
.quick-action-section { display: grid; gap: 4px; }
.quick-action-section-head { color: var(--muted); font-size: 11px; font-weight: 700; padding: 4px 8px 0; text-transform: none; display: flex; justify-content: space-between; gap: 8px; }
.quick-action-section-head strong, .quick-action-section-head span { font: inherit; }
.quick-action-section-head span { color: var(--muted-2); }
.quick-action-section-list { display: grid; gap: 2px; }
.quick-action-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; align-items: stretch; }
.quick-action-list { display: grid; gap: 2px; }
.quick-actions-menu button { justify-content: flex-start; width: 100%; min-height: 36px; border: 0; border-radius: 10px; background: transparent; padding: 0 10px; color: var(--text); }
.quick-actions-menu .quick-action-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 8px; text-align: left; padding-block: 8px !important; align-items: start; justify-content: stretch; }
.quick-action-item span, .quick-action-item em, .quick-action-item small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-style: normal; }
.quick-action-item span { font-size: 13px; }
.quick-action-item em { color: var(--muted); font-size: 11px; }
.quick-action-item small { grid-column: 1 / -1; color: var(--muted); font-size: 11px; line-height: 1.35; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.quick-action-route { grid-column: 1 / -1; min-width: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding-top: 2px; }
.quick-action-route b { min-width: 0; min-height: 34px; border: 1px solid var(--border); border-radius: 8px; background: #fff; color: var(--text); padding: 5px 6px; display: grid; align-content: center; gap: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; line-height: 1.15; }
.quick-action-route i { color: var(--accent); font-size: 9px; font-style: normal; font-weight: 850; }
.quick-action-pin { width: 62px; min-height: 100%; border: 1px solid var(--border); border-radius: 10px; background: var(--panel-soft); color: var(--muted); padding: 0 8px; font-size: 11px; }
.quick-action-item.active, .quick-action-pin:hover, .quick-actions-menu button:hover { background: var(--panel-soft); }
.quick-action-empty { color: var(--muted); font-size: 12px; padding: 9px 10px; }
.folder-actions { display: grid; grid-template-columns: minmax(0, 1fr) 72px; gap: 8px; }
.folder-actions input { min-width: 0; min-height: 36px; border: 1px solid var(--border); border-radius: 9px; background: var(--panel); color: var(--text); outline: none; padding: 0 10px; font-size: 12px; }
.folder-actions button { min-height: 36px; border: 1px solid var(--border); border-radius: 9px; background: var(--panel); color: var(--text); font-size: 12px; }
.folder-actions button:hover { background: var(--accent-soft); }
#sendBtn, .stack-form button, .primary-link { background: var(--accent); color: #fff; border-color: var(--accent); font-weight: 650; }
.stack-form button.secondary-btn { background: var(--panel-soft); color: var(--text); border-color: var(--border); }
#stopGenerateBtn, .danger-btn { background: var(--danger-soft) !important; color: var(--danger) !important; border-color: #fecaca !important; }
.followup-chips { max-width: 920px; margin: 10px auto 0; display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.followup-chips button { min-height: 32px; border: 1px solid var(--border); border-radius: 999px; background: var(--panel); color: var(--muted); padding: 0 12px; font-size: 12px; }
.followup-chips button:hover { background: var(--panel-soft); color: var(--text); }
.composer-hint { max-width: 920px; margin: 8px auto 0; color: var(--muted-2); text-align: center; font-size: 12px; }

.workspace-panel { position: relative; z-index: 19; min-width: 0; height: 100vh; border-left: 1px solid rgba(214,217,222,.9); background: rgba(251,251,249,.92); backdrop-filter: blur(18px); display: flex; flex-direction: column; gap: 12px; padding: 12px; overflow: auto; animation: workspacePanelIn .2s cubic-bezier(.2,.8,.2,1) both; }
.workspace-panel.collapsed { display: none; }
.workspace-panel.workspace-flow-modal-only {
  position: fixed;
  inset: 0;
  z-index: 29;
  display: block;
  width: auto;
  min-width: 0;
  max-width: none;
  height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
  pointer-events: none;
}
.workspace-panel.workspace-flow-modal-only > .workspace-header,
.workspace-panel.workspace-flow-modal-only > .workspace-tabs,
.workspace-panel.workspace-flow-modal-only > .workspace-mode-bar,
.workspace-panel.workspace-flow-modal-only > .workspace-focus-strip,
.workspace-panel.workspace-flow-modal-only > .workspace-local-context,
.workspace-panel.workspace-flow-modal-only > .workspace-stage,
.workspace-panel.workspace-flow-modal-only > .workspace-guide,
.workspace-panel.workspace-flow-modal-only > .workspace-context-bar,
.workspace-panel.workspace-flow-modal-only > .workspace-run-dock,
.workspace-panel.workspace-flow-modal-only > .workspace-overview,
.workspace-panel.workspace-flow-modal-only > .workspace-section-nav,
.workspace-panel.workspace-flow-modal-only > .workspace-quick-start {
  display: none !important;
}
.workspace-panel.workspace-flow-modal-only .workspace-body {
  display: block;
  overflow: visible;
  padding: 0;
  pointer-events: none;
}
.workspace-panel.workspace-flow-modal-only .workspace-view,
.workspace-panel.workspace-flow-modal-only .workspace-launchpad {
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}
.workspace-panel.workspace-flow-modal-only .workspace-flow-host {
  display: block !important;
  overflow: visible !important;
}
.workspace-panel.workspace-flow-modal-only.workspace-detail-compact[data-workspace-mode] .workspace-view.workspace-flow-host,
.workspace-panel.workspace-flow-modal-only.workspace-detail-open[data-workspace-mode] .workspace-view.workspace-flow-host {
  display: block !important;
  overflow: visible !important;
}
.workspace-panel.workspace-flow-modal-only .workspace-flow-host > :not(.workspace-flow-chooser):not(.workspace-drawer) {
  display: none !important;
}
.workspace-panel.workspace-flow-modal-only .workspace-flow-host > .workspace-drawer:not([open]) {
  display: none !important;
}
.workspace-panel.workspace-empty .workspace-overview,
.workspace-panel.workspace-empty .workspace-context-bar,
.workspace-panel.workspace-empty .workspace-run-dock,
.workspace-panel.workspace-empty .workspace-section-nav {
  display: none;
}
.workspace-panel .project-list,
.workspace-panel .project-files,
.workspace-panel .agent-steps,
.workspace-panel .recent-files,
.workspace-panel .tool-timeline {
  gap: 6px;
}
.panel-head { min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.panel-head div { display: grid; gap: 1px; min-width: 0; }
.panel-head strong { font-size: 14px; }
.panel-head span { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace-head-actions { display: flex !important; align-items: center; gap: 6px; flex: 0 0 auto; }
.workspace-head-actions .icon-btn { min-width: 36px; padding: 0; }
.workspace-head-actions .icon-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: var(--shadow-soft); }
.workspace-local-context { border: 1px solid var(--border); border-radius: 11px; background: rgba(255,255,255,.72); padding: 0 10px; }
.workspace-local-context summary { min-height: 42px; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; list-style: none; }
.workspace-local-context summary::-webkit-details-marker { display: none; }
.workspace-local-context summary strong,
.workspace-local-context summary span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace-local-context summary strong { font-size: 13px; }
.workspace-local-context summary span { color: var(--muted); font-size: 11px; }
.workspace-local-context[open] { padding-bottom: 10px; display: grid; gap: 8px; }
.project-path { display: grid; gap: 6px; color: var(--muted); font-size: 12px; }
.project-path input { width: 100%; min-height: 38px; border: 1px solid var(--border); border-radius: 10px; background: var(--panel); outline: none; padding: 0 10px; color: var(--text); }
.project-context-hint { min-height: 18px; color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.panel-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.panel-actions button { min-height: 36px; border: 1px solid var(--border); border-radius: 10px; background: var(--panel); color: var(--text); }
.panel-actions button:hover { background: var(--accent-soft); }
.workspace-tabs { position: sticky; top: -12px; z-index: 3; display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; padding: 8px 0 6px; background: rgba(251,251,249,.96); backdrop-filter: blur(12px); }
.workspace-tabs button { min-width: 0; min-height: 34px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--muted); font-size: 12px; font-weight: 650; display: flex; align-items: center; justify-content: center; gap: 5px; padding: 0 6px; }
.workspace-tabs button span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace-tab-badge { min-width: 18px; height: 18px; display: inline-grid; place-items: center; border-radius: 999px; background: var(--panel-soft); color: var(--muted); padding: 0 5px; font-size: 10px; font-style: normal; font-weight: 750; line-height: 1; }
.workspace-tabs button.has-count .workspace-tab-badge { background: #e5e7eb; color: var(--text); }
.workspace-tabs button.active .workspace-tab-badge { background: rgba(255,255,255,.2); color: #fff; }
.workspace-tabs button.has-live-task .workspace-tab-badge { background: #2563eb; color: #fff; box-shadow: 0 0 0 3px rgba(37, 99, 235, .12); }
.workspace-tabs button.active.has-live-task .workspace-tab-badge { background: #fff; color: #1d4ed8; }
.workspace-tabs button:hover { background: var(--panel-soft); color: var(--text); }
.workspace-tabs button.active { background: var(--accent); color: #fff; border-color: var(--accent); box-shadow: var(--shadow-soft); }
.workspace-panel:not([data-workspace-mode="resources"]) .workspace-tabs,
.workspace-panel:not([data-workspace-mode="local"]):not([data-workspace-mode="resources"]) .workspace-local-context {
  display: none !important;
}
.workspace-panel[data-workspace-mode="resources"] .workspace-tabs {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.workspace-panel[data-workspace-mode="resources"] .workspace-tabs [data-workspace-tab="run"],
.workspace-panel[data-workspace-mode="resources"] .workspace-tabs [data-workspace-tab="activity"] {
  display: none;
}
.workspace-mode-bar { display: grid; gap: 7px; }
.workspace-mode-switcher { min-width: 0; display: flex; gap: 4px; border: 1px solid var(--border); border-radius: 12px; background: var(--panel-soft); padding: 4px; overflow-x: auto; scrollbar-width: thin; scroll-snap-type: x proximity; }
.workspace-mode-chip-rail { align-items: center; }
.workspace-mode-bar button { position: relative; flex: 0 0 auto; min-width: 58px; min-height: 34px; border: 1px solid transparent; border-radius: 999px; background: transparent; color: var(--text); padding: 5px 7px; text-align: left; display: grid; grid-template-columns: minmax(0, auto) auto; grid-template-rows: auto; gap: 4px; align-items: center; overflow: hidden; scroll-snap-align: start; }
.workspace-mode-bar button:hover { border-color: var(--border); background: rgba(255,255,255,.76); transform: none; box-shadow: none; }
.workspace-mode-bar button::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: 3px; height: 2px; border-radius: 999px; background: transparent; }
.workspace-mode-bar button.active { border-color: var(--border); background: #fff; box-shadow: 0 6px 18px rgba(17,24,39,.055); }
.workspace-mode-bar button.active::after { background: #111827; }
.workspace-mode-bar button.local.active::after { background: #0f766e; }
.workspace-mode-bar button.projects.active::after { background: #2563eb; }
.workspace-mode-bar button.goals.active::after { background: #16a34a; }
.workspace-mode-bar button.run.active::after { background: #ea580c; }
.workspace-mode-bar button.capabilities.active::after { background: #7c3aed; }
.workspace-mode-bar button.gated em { background: #fef2f2; color: #b91c1c; }
.workspace-mode-bar button.live em { background: #eff6ff; color: #1d4ed8; }
.workspace-mode-bar button.ready em { background: #ecfdf5; color: #047857; }
.workspace-mode-bar span,
.workspace-mode-bar strong,
.workspace-mode-bar em,
.workspace-mode-bar small { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-style: normal; }
.workspace-mode-bar button span { grid-column: 1; color: var(--text); font-size: 11px; font-weight: 850; }
.workspace-mode-bar button strong { display: none; }
.workspace-mode-bar button em { grid-column: 2; align-self: center; min-height: 19px; border-radius: 999px; background: rgba(255,255,255,.68); color: var(--muted); display: inline-flex; align-items: center; padding: 0 6px; font-size: 9px; font-weight: 800; }
.workspace-mode-more { position: relative; min-width: 0; }
.workspace-mode-more summary { list-style: none; min-height: 34px; border: 1px solid transparent; border-radius: 999px; background: transparent; color: var(--text); padding: 5px 6px 5px 8px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px; align-items: center; cursor: pointer; }
.workspace-mode-more summary::-webkit-details-marker { display: none; }
.workspace-mode-more summary:hover,
.workspace-mode-more[open] summary { border-color: var(--border); background: #fff; box-shadow: 0 6px 18px rgba(17,24,39,.055); }
.workspace-mode-more summary span { color: var(--text); font-size: 11px; font-weight: 850; }
.workspace-mode-more summary em { min-height: 19px; border-radius: 999px; background: rgba(255,255,255,.76); color: var(--muted); display: inline-flex; align-items: center; padding: 0 6px; font-size: 9px; font-weight: 850; }
.workspace-mode-more-menu { position: absolute; z-index: 60; right: 0; top: calc(100% + 6px); width: min(260px, calc(100vw - 32px)); border: 1px solid var(--border); border-radius: 12px; background: #fff; padding: 6px; display: grid; gap: 4px; box-shadow: 0 18px 46px rgba(17,24,39,.15); animation: workspaceViewIn .14s ease both; }
.workspace-mode-more-menu button.compact { min-height: 38px; border-radius: 10px; background: #fff; }
.workspace-mode-more-menu button.compact strong { display: block; grid-column: 1 / -1; color: var(--muted); font-size: 10px; line-height: 1.2; }
.workspace-mode-more-menu button.compact.active { border-color: var(--border-strong); background: var(--panel-soft); }
.workspace-mode-summary { min-width: 0; min-height: 54px; border: 1px solid var(--border); border-radius: 12px; background: #fff; padding: 8px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(86px, auto) auto; gap: 6px 8px; align-items: center; box-shadow: 0 8px 24px rgba(17,24,39,.04); animation: workspaceViewIn .16s ease both; }
.workspace-mode-summary.run { border-left: 3px solid #ea580c; }
.workspace-mode-summary.capabilities { border-left: 3px solid #7c3aed; }
.workspace-mode-summary.create { border-left: 3px solid #111827; }
.workspace-mode-summary.resources { border-left: 3px solid #0f766e; }
.workspace-mode-summary.local { border-left: 3px solid #0f766e; }
.workspace-mode-summary.projects { border-left: 3px solid #2563eb; }
.workspace-mode-summary.goals { border-left: 3px solid #16a34a; }
.workspace-mode-summary-copy { min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 8px; align-items: center; }
.workspace-mode-summary-copy span { width: fit-content; min-height: 20px; border: 1px solid var(--border); border-radius: 999px; background: var(--panel-soft); color: var(--muted); display: inline-grid; place-items: center; padding: 0 8px; font-size: 10px; font-weight: 850; }
.workspace-mode-summary-copy strong { min-width: 0; font-size: 14px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: normal; overflow-wrap: anywhere; }
.workspace-mode-summary-copy em { grid-column: 1 / -1; min-width: 0; color: var(--muted); font-size: 12px; font-style: normal; overflow: hidden; text-overflow: ellipsis; white-space: normal; overflow-wrap: anywhere; }
.workspace-mode-path-drawer { grid-column: 1 / -1; min-width: 0; border: 1px solid var(--border); border-radius: 10px; background: var(--panel-soft); overflow: hidden; display: none; }
.workspace-mode-summary.detail-open .workspace-mode-path-drawer { display: block; }
.workspace-mode-path-drawer summary { min-width: 0; min-height: 36px; padding: 6px 8px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 6px; align-items: center; cursor: pointer; list-style: none; }
.workspace-mode-path-drawer summary::-webkit-details-marker { display: none; }
.workspace-mode-path-drawer summary::after { content: '+'; width: 20px; height: 20px; border: 1px solid var(--border); border-radius: 999px; background: #fff; color: var(--muted); display: grid; place-items: center; font-size: 13px; font-weight: 850; }
.workspace-mode-path-drawer[open] summary { border-bottom: 1px solid var(--border); background: #fff; }
.workspace-mode-path-drawer[open] summary::after { content: '-'; }
.workspace-mode-path-drawer summary span { min-height: 20px; border: 1px solid var(--border); border-radius: 999px; background: #fff; color: var(--muted); display: inline-grid; place-items: center; padding: 0 7px; font-size: 10px; font-weight: 850; white-space: nowrap; }
.workspace-mode-path-drawer summary strong,
.workspace-mode-path-drawer summary em { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.workspace-mode-path-drawer summary strong { color: var(--text); font-size: 12px; line-height: 1.25; white-space: normal; }
.workspace-mode-path-drawer summary em { color: var(--muted); font-size: 10px; font-style: normal; line-height: 1.25; white-space: nowrap; }
.workspace-mode-path { padding: 7px; min-width: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.workspace-mode-path span { min-width: 0; min-height: 40px; border: 1px solid var(--border); border-radius: 10px; background: var(--panel-soft); padding: 7px 8px 7px 30px; position: relative; display: grid; align-content: center; gap: 1px; overflow: hidden; }
.workspace-mode-path span::after { content: ''; position: absolute; right: -7px; top: 50%; width: 13px; height: 13px; border-top: 1px solid var(--border); border-right: 1px solid var(--border); background: var(--panel-soft); transform: translateY(-50%) rotate(45deg); }
.workspace-mode-path span:last-child::after { display: none; }
.workspace-mode-path span.current { border-color: var(--accent); background: var(--accent-soft); }
.workspace-mode-path span.current::after { border-color: var(--accent); background: var(--accent-soft); }
.workspace-mode-path b { position: absolute; left: 8px; top: 10px; width: 16px; height: 16px; border-radius: 999px; background: rgba(255,255,255,.88); color: var(--muted); display: grid; place-items: center; font-size: 9px; font-weight: 850; }
.workspace-mode-path span.current b { background: var(--accent); color: #fff; }
.workspace-mode-path strong,
.workspace-mode-path em { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace-mode-path strong { color: var(--text); font-size: 11px; line-height: 1.2; }
.workspace-mode-path em { color: var(--muted); font-size: 10px; font-style: normal; line-height: 1.2; }
.workspace-mode-summary-state { min-width: 0; display: grid; justify-items: end; gap: 3px; }
.workspace-mode-view-state { max-width: 128px; min-height: 21px; border: 1px solid var(--border); border-radius: 999px; background: #fff; color: var(--muted); display: inline-flex; align-items: center; padding: 0 8px; font-size: 10px; font-weight: 850; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace-mode-summary.detail-compact .workspace-mode-view-state { border-color: #ddd6fe; background: #f5f3ff; color: #6d28d9; }
.workspace-mode-summary.detail-open .workspace-mode-view-state { border-color: #bfdbfe; background: #eff6ff; color: #1d4ed8; }
.workspace-mode-summary-state b { max-width: 120px; min-height: 23px; border-radius: 999px; background: var(--panel-soft); color: var(--text); display: inline-flex; align-items: center; padding: 0 8px; font-size: 11px; font-weight: 850; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace-mode-summary-state small { max-width: 168px; color: var(--muted); font-size: 10px; font-weight: 700; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: normal; overflow-wrap: anywhere; }
.workspace-mode-summary-actions { min-width: 0; display: flex; flex-wrap: wrap; justify-content: end; gap: 5px; }
.workspace-mode-summary-actions button { min-width: 68px; min-height: 30px; border: 1px solid var(--border); border-radius: 999px; background: var(--panel-soft); color: var(--text); padding: 0 10px; font-size: 11px; font-weight: 800; white-space: nowrap; }
.workspace-mode-summary-actions button.primary { border-color: #111827; background: #111827; color: #fff; }
.workspace-mode-summary-actions button:hover { border-color: var(--border-strong); background: #fff; transform: translateY(-1px); }
.workspace-mode-summary-actions button.primary:hover { background: #020617; color: #fff; }
.workspace-mode-summary.live .workspace-mode-summary-state b { background: #eff6ff; color: #1d4ed8; }
.workspace-mode-summary.gated .workspace-mode-summary-state b { background: #fef2f2; color: #b91c1c; }
.workspace-mode-summary.ready .workspace-mode-summary-state b { background: #ecfdf5; color: #047857; }
.workspace-panel.workspace-detail-compact[data-workspace-mode="local"] .workspace-local-context,
.workspace-panel.workspace-detail-compact[data-workspace-mode="local"] .workspace-section-nav,
.workspace-panel.workspace-detail-compact[data-workspace-mode="local"] .workspace-quick-start,
.workspace-panel.workspace-detail-compact[data-workspace-mode="local"] .workspace-view,
.workspace-panel.workspace-detail-compact[data-workspace-mode="projects"] .workspace-section-nav,
.workspace-panel.workspace-detail-compact[data-workspace-mode="projects"] .workspace-quick-start,
.workspace-panel.workspace-detail-compact[data-workspace-mode="projects"] .workspace-view,
.workspace-panel.workspace-detail-compact[data-workspace-mode="goals"] .workspace-section-nav,
.workspace-panel.workspace-detail-compact[data-workspace-mode="goals"] .workspace-quick-start,
.workspace-panel.workspace-detail-compact[data-workspace-mode="goals"] .workspace-view,
.workspace-panel.workspace-detail-compact[data-workspace-mode="resources"] .workspace-tabs,
.workspace-panel.workspace-detail-compact[data-workspace-mode="resources"] .workspace-local-context,
.workspace-panel.workspace-detail-compact[data-workspace-mode="resources"] .workspace-section-nav,
.workspace-panel.workspace-detail-compact[data-workspace-mode="resources"] .workspace-quick-start,
.workspace-panel.workspace-detail-compact[data-workspace-mode="resources"] .workspace-view,
.workspace-panel.workspace-detail-compact[data-workspace-mode="run"] .workspace-stage,
.workspace-panel.workspace-detail-compact[data-workspace-mode="run"] .workspace-run-dock,
.workspace-panel.workspace-detail-compact[data-workspace-mode="run"] .workspace-section-nav,
.workspace-panel.workspace-detail-compact[data-workspace-mode="run"] .workspace-quick-start,
.workspace-panel.workspace-detail-compact[data-workspace-mode="run"] .workspace-view,
.workspace-panel.workspace-detail-compact[data-workspace-mode="capabilities"] .workspace-section-nav,
.workspace-panel.workspace-detail-compact[data-workspace-mode="capabilities"] .workspace-view {
  display: none !important;
}
.workspace-panel[data-workspace-mode="overview"] .workspace-stage,
.workspace-panel[data-workspace-mode="overview"] .workspace-focus-strip,
.workspace-panel[data-workspace-mode="overview"] .workspace-context-bar,
.workspace-panel[data-workspace-mode="overview"] .workspace-run-dock,
.workspace-panel[data-workspace-mode="overview"] .workspace-section-nav,
.workspace-panel[data-workspace-mode="overview"] .workspace-quick-start,
.workspace-panel[data-workspace-mode="overview"] .workspace-view {
  display: none !important;
}
.workspace-panel[data-workspace-mode="create"] .workspace-stage,
.workspace-panel[data-workspace-mode="create"] .workspace-focus-strip,
.workspace-panel[data-workspace-mode="create"] .workspace-context-bar,
.workspace-panel[data-workspace-mode="create"] .workspace-run-dock,
.workspace-panel[data-workspace-mode="create"] .workspace-overview,
.workspace-panel[data-workspace-mode="create"] .workspace-section-nav,
.workspace-panel[data-workspace-mode="create"] .workspace-quick-start,
.workspace-panel[data-workspace-mode="create"] .workspace-view:not(.workspace-flow-host) {
  display: none !important;
}
.workspace-panel[data-workspace-mode="create"] .workspace-launchpad-head,
.workspace-panel[data-workspace-mode="create"] .workspace-orbit,
.workspace-panel[data-workspace-mode="create"] .workspace-status-drawer,
.workspace-panel[data-workspace-mode="create"] .workspace-launchpad-more {
  display: none !important;
}
.workspace-panel[data-workspace-mode="create"] .workspace-launchpad {
  border-color: transparent;
  background: transparent;
  padding: 0;
  box-shadow: none;
}
.workspace-panel[data-workspace-mode="local"] .workspace-launchpad,
.workspace-panel[data-workspace-mode="local"] .workspace-stage,
.workspace-panel[data-workspace-mode="local"] .workspace-focus-strip,
.workspace-panel[data-workspace-mode="local"] .workspace-context-bar,
.workspace-panel[data-workspace-mode="local"] .workspace-overview,
.workspace-panel[data-workspace-mode="local"] .workspace-quick-start,
.workspace-panel[data-workspace-mode="local"] .workspace-view:not([data-workspace-view~="local"]) {
  display: none !important;
}
.workspace-panel[data-workspace-mode="projects"] .workspace-launchpad,
.workspace-panel[data-workspace-mode="projects"] .workspace-stage,
.workspace-panel[data-workspace-mode="projects"] .workspace-focus-strip,
.workspace-panel[data-workspace-mode="projects"] .workspace-context-bar,
.workspace-panel[data-workspace-mode="projects"] .workspace-overview,
.workspace-panel[data-workspace-mode="projects"] .workspace-quick-start,
.workspace-panel[data-workspace-mode="projects"] .workspace-view:not([data-workspace-view~="cloud"]) {
  display: none !important;
}
.workspace-panel[data-workspace-mode="goals"] .workspace-launchpad,
.workspace-panel[data-workspace-mode="goals"] .workspace-stage,
.workspace-panel[data-workspace-mode="goals"] .workspace-focus-strip,
.workspace-panel[data-workspace-mode="goals"] .workspace-context-bar,
.workspace-panel[data-workspace-mode="goals"] .workspace-overview,
.workspace-panel[data-workspace-mode="goals"] .workspace-quick-start,
.workspace-panel[data-workspace-mode="goals"] .workspace-view:not([data-workspace-view~="goals"]) {
  display: none !important;
}
.workspace-panel[data-workspace-mode="resources"] .workspace-launchpad,
.workspace-panel[data-workspace-mode="resources"] .workspace-stage,
.workspace-panel[data-workspace-mode="resources"] .workspace-focus-strip,
.workspace-panel[data-workspace-mode="resources"] .workspace-context-bar,
.workspace-panel[data-workspace-mode="resources"] .workspace-run-dock,
.workspace-panel[data-workspace-mode="resources"] .workspace-overview,
.workspace-panel[data-workspace-mode="resources"] .workspace-quick-start {
  display: none !important;
}
.workspace-panel[data-workspace-mode="run"] .workspace-launchpad,
.workspace-panel[data-workspace-mode="run"] .workspace-focus-strip,
.workspace-panel[data-workspace-mode="run"] .workspace-context-bar,
.workspace-panel[data-workspace-mode="run"] .workspace-overview,
.workspace-panel[data-workspace-mode="run"] .workspace-quick-start,
.workspace-panel[data-workspace-mode="run"] .workspace-view:not([data-workspace-view~="run"]) {
  display: none !important;
}
.workspace-panel[data-workspace-mode="capabilities"] .workspace-launchpad,
.workspace-panel[data-workspace-mode="capabilities"] .workspace-stage,
.workspace-panel[data-workspace-mode="capabilities"] .workspace-focus-strip,
.workspace-panel[data-workspace-mode="capabilities"] .workspace-context-bar,
.workspace-panel[data-workspace-mode="capabilities"] .workspace-overview,
.workspace-panel[data-workspace-mode="capabilities"] .workspace-quick-start,
.workspace-panel[data-workspace-mode="capabilities"] .workspace-view:not([data-workspace-view~="activity"]) {
  display: none !important;
}
.workspace-panel .workspace-tabs {
  display: none !important;
}
.workspace-panel #cloudProjectsSection,
.workspace-panel #cloudNotesSection,
.workspace-panel #goalsListSection,
.workspace-panel #goalDetailSection {
  display: none !important;
}
.workspace-panel[data-workspace-mode="local"] .workspace-stage,
.workspace-panel[data-workspace-mode="run"] .workspace-stage {
  display: grid !important;
}
.workspace-panel[data-workspace-mode="projects"] .workspace-stage {
  display: none !important;
}
.workspace-panel.workspace-detail-compact[data-workspace-mode="projects"][data-workspace-tab="cloud"] #projectFilesSection {
  display: grid !important;
}
.workspace-panel.workspace-detail-compact[data-workspace-mode="projects"][data-workspace-tab="cloud"] .workspace-view:not(#projectFilesSection) {
  display: none !important;
}
.workspace-panel.workspace-detail-compact[data-workspace-mode="run"][data-workspace-tab="run"] #goalsTasksSection {
  display: grid !important;
}
.workspace-panel.workspace-detail-compact[data-workspace-mode="run"][data-workspace-tab="run"] .workspace-view:not(#goalsTasksSection) {
  display: none !important;
}
.workspace-panel.workspace-flow-modal-only[data-workspace-mode] .workspace-stage,
.workspace-panel.workspace-flow-modal-only[data-workspace-mode] .workspace-mode-bar,
.workspace-panel.workspace-flow-modal-only[data-workspace-mode] .workspace-section-nav,
.workspace-panel.workspace-flow-modal-only[data-workspace-mode] .workspace-run-dock {
  display: none !important;
}
.workspace-panel[data-workspace-mode="projects"][data-workspace-tab="goals"] .workspace-view[data-workspace-view~="goals"],
.workspace-panel[data-workspace-mode="run"][data-workspace-tab="activity"] .workspace-view[data-workspace-view~="activity"] {
  display: grid !important;
}
.workspace-panel[data-workspace-mode="projects"][data-workspace-tab="goals"] .workspace-view:not([data-workspace-view~="goals"]),
.workspace-panel[data-workspace-mode="run"][data-workspace-tab="activity"] .workspace-view:not([data-workspace-view~="activity"]) {
  display: none !important;
}
.workspace-mode-switcher.simplified {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  overflow: visible;
  padding: 5px;
  border-radius: 14px;
}
.workspace-mode-switcher.simplified button {
  min-width: 0;
  min-height: 46px;
  border-radius: 11px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 7px 8px;
}
.workspace-mode-switcher.simplified button span {
  font-size: 12px;
}
.workspace-mode-switcher.simplified button em {
  max-width: 66px;
}
.workspace-simplified-stage {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(180deg, #fff, #fbfbfa);
  padding: 10px;
  display: grid;
  gap: 10px;
  box-shadow: 0 8px 24px rgba(17,24,39,.045);
}
.workspace-simplified-copy {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 8px;
  align-items: center;
}
.workspace-simplified-copy span {
  width: fit-content;
  min-height: 21px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--panel-soft);
  color: var(--muted);
  display: inline-grid;
  place-items: center;
  padding: 0 8px;
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}
.workspace-simplified-copy strong,
.workspace-simplified-copy em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.workspace-simplified-copy strong {
  font-size: 15px;
  line-height: 1.25;
  white-space: nowrap;
}
.workspace-simplified-copy em {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  font-style: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.workspace-simplified-status {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}
.workspace-simplified-status span {
  min-width: 0;
  min-height: 50px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--panel-soft);
  padding: 7px 8px;
  display: grid;
  align-content: center;
  gap: 2px;
}
.workspace-simplified-status span.live {
  border-color: #93c5fd;
  background: #eff6ff;
}
.workspace-simplified-status b,
.workspace-simplified-status em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.workspace-simplified-status b {
  color: var(--text);
  font-size: 13px;
  font-weight: 850;
}
.workspace-simplified-status em {
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  font-weight: 750;
}
.workspace-simplified-primary {
  min-width: 0;
  min-height: 52px;
  border: 1px solid var(--accent);
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  padding: 8px 12px;
  display: grid;
  gap: 2px;
  text-align: left;
  box-shadow: 0 10px 22px rgba(217,119,6,.18);
}
.workspace-simplified-primary:hover {
  background: #b45309;
  border-color: #b45309;
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(180,83,9,.2);
}
.workspace-simplified-primary strong,
.workspace-simplified-primary em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.workspace-simplified-primary strong {
  font-size: 13px;
  white-space: nowrap;
}
.workspace-simplified-primary em {
  color: rgba(255,255,255,.82);
  font-size: 11px;
  line-height: 1.35;
  font-style: normal;
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.workspace-stage-file-list,
.workspace-stage-run-list {
  min-width: 0;
  display: grid;
  gap: 5px;
}
.workspace-stage-file-row,
.workspace-stage-run-row {
  min-width: 0;
  min-height: 34px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--panel-soft);
  color: var(--text);
  padding: 5px 7px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 6px;
  align-items: center;
  text-align: left;
}
.workspace-stage-file-row:hover,
.workspace-stage-run-row:hover {
  border-color: var(--border-strong);
  background: #fff;
  transform: translateY(-1px);
}
.workspace-stage-file-row span,
.workspace-stage-run-row span {
  min-height: 22px;
  border: 1px solid #bfdbfe;
  border-radius: 7px;
  background: #eff6ff;
  color: #1d4ed8;
  display: inline-grid;
  place-items: center;
  font-size: 9px;
  font-weight: 850;
}
.workspace-stage-file-row.directory span { border-color: #a7f3d0; background: #ecfdf5; color: #047857; }
.workspace-stage-file-row strong,
.workspace-stage-file-row em,
.workspace-stage-run-row strong,
.workspace-stage-run-row em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.workspace-stage-file-row strong,
.workspace-stage-run-row strong {
  font-size: 12px;
  font-weight: 850;
}
.workspace-stage-file-row em,
.workspace-stage-run-row em {
  grid-column: 2;
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
}
.workspace-stage-file-row b,
.workspace-stage-run-row b {
  grid-column: 3;
  grid-row: 1 / span 2;
  min-height: 22px;
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  display: inline-grid;
  place-items: center;
  padding: 0 7px;
  font-size: 10px;
  font-weight: 850;
  white-space: nowrap;
}
.workspace-stage-file-row b.changed { background: #fff7ed; color: #c2410c; }
.workspace-stage-run-row.running,
.workspace-stage-run-row.queued { border-color: #bfdbfe; background: #f8fbff; }
.workspace-stage-run-row.succeeded { border-color: #bbf7d0; background: #f0fdf4; }
.workspace-stage-run-row.failed { border-color: #fecaca; background: #fff7f7; }
.workspace-stage-empty {
  min-height: 42px;
  border: 1px dashed var(--border);
  border-radius: 10px;
  background: var(--panel-soft);
  color: var(--muted);
  display: grid;
  place-items: center;
  padding: 8px;
  font-size: 12px;
  pointer-events: none;
  user-select: none;
}
.workspace-launchpad {
  display: grid;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: linear-gradient(180deg, #fff, #fbfbfa);
  padding: 10px;
  box-shadow: 0 8px 26px rgba(17,24,39,.045);
}
.workspace-orbit { display: grid; grid-template-columns: auto 1fr auto 1fr auto 1fr auto 1fr auto; align-items: center; gap: 6px; padding: 2px 1px 4px; }
.workspace-orbit span { min-width: 0; min-height: 26px; border: 1px solid var(--border); border-radius: 999px; background: var(--panel); color: var(--muted); display: inline-grid; place-items: center; padding: 0 9px; font-size: 11px; font-weight: 750; white-space: nowrap; }
.workspace-orbit span.active { border-color: var(--accent); background: var(--accent); color: #fff; box-shadow: 0 7px 18px rgba(17,24,39,.09); }
.workspace-orbit i { height: 1px; min-width: 12px; background: linear-gradient(90deg, var(--border), var(--border-strong)); }
.workspace-launchpad-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; }
.workspace-launchpad-head span { min-height: 21px; display: inline-grid; place-items: center; border: 1px solid var(--border); border-radius: 999px; background: var(--panel-soft); color: var(--muted); padding: 0 8px; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0; }
.workspace-launchpad-head strong { min-width: 0; color: var(--muted); font-size: 12px; font-weight: 750; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace-entry-gate { min-width: 0; display: grid; gap: 8px; }
.workspace-entry-head { min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 8px; align-items: center; }
.workspace-entry-head span { width: fit-content; min-height: 21px; border: 1px solid var(--border); border-radius: 999px; background: var(--panel-soft); color: var(--muted); display: inline-grid; place-items: center; padding: 0 8px; font-size: 10px; font-weight: 850; text-transform: uppercase; }
.workspace-entry-head strong,
.workspace-entry-head em { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.workspace-entry-head strong { font-size: 14px; white-space: nowrap; }
.workspace-entry-head em { grid-column: 2; color: var(--muted); font-size: 12px; line-height: 1.4; font-style: normal; }
.workspace-entry-primary { min-width: 0; display: grid; animation: workspaceViewIn .16s ease both; }
.workspace-entry-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.workspace-entry-grid-more { padding: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.workspace-entry-primary button,
.workspace-entry-grid button { position: relative; min-width: 0; min-height: 92px; border: 1px solid var(--border); border-radius: 11px; background: var(--panel); color: var(--text); padding: 9px; text-align: left; display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; gap: 4px; overflow: hidden; box-shadow: 0 6px 18px rgba(17,24,39,.035); transition: border-color .16s ease, background .16s ease, box-shadow .16s ease, transform .16s ease; }
.workspace-entry-primary button { min-height: 104px; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-rows: auto auto; align-items: center; border-color: #111827; background: linear-gradient(180deg, #fff, #f8fafc); box-shadow: inset 3px 0 0 #111827, 0 8px 22px rgba(17,24,39,.055); }
.workspace-entry-primary button::after { content: '推荐'; position: absolute; right: 10px; top: 9px; min-height: 21px; border: 1px solid var(--border); border-radius: 999px; background: #fff; color: var(--muted); display: inline-flex; align-items: center; padding: 0 7px; font-size: 10px; font-weight: 850; }
.workspace-entry-primary button::before,
.workspace-entry-grid button::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 3px; background: #111827; opacity: .9; }
.workspace-entry-primary button.create::before,
.workspace-entry-grid button.create::before { background: #7c3aed; }
.workspace-entry-primary button.local::before,
.workspace-entry-grid button.local::before { background: #0f766e; }
.workspace-entry-primary button.projects::before,
.workspace-entry-grid button.projects::before { background: #2563eb; }
.workspace-entry-primary button.goals::before,
.workspace-entry-grid button.goals::before { background: #16a34a; }
.workspace-entry-primary button.run::before,
.workspace-entry-grid button.run::before { background: #ea580c; }
.workspace-entry-primary button.capabilities::before,
.workspace-entry-grid button.capabilities::before { background: #475569; }
.workspace-entry-primary button:hover,
.workspace-entry-grid button:hover { border-color: var(--border-strong); background: #fbfbfa; transform: translateY(-1px); box-shadow: 0 12px 28px rgba(17,24,39,.075); }
.workspace-entry-primary button.current,
.workspace-entry-grid button.current { border-color: var(--accent); background: var(--accent-soft); }
.workspace-entry-primary button.ready,
.workspace-entry-grid button.ready { background: #fbfffd; }
.workspace-entry-primary button.partial,
.workspace-entry-grid button.partial { background: #fff; }
.workspace-entry-primary button.live,
.workspace-entry-grid button.live { border-color: #93c5fd; background: #eff6ff; }
.workspace-entry-primary span,
.workspace-entry-grid span { width: fit-content; min-height: 20px; border: 1px solid var(--border); border-radius: 999px; background: var(--panel-soft); color: var(--muted); display: inline-grid; place-items: center; padding: 0 7px; font-size: 9px; font-weight: 850; text-transform: uppercase; }
.workspace-entry-primary strong,
.workspace-entry-primary em,
.workspace-entry-primary b,
.workspace-entry-grid strong,
.workspace-entry-grid em,
.workspace-entry-grid b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace-entry-primary strong,
.workspace-entry-grid strong { font-size: 12px; line-height: 1.25; }
.workspace-entry-primary strong { padding-right: 54px; font-size: 14px; white-space: normal; }
.workspace-entry-primary em,
.workspace-entry-grid em { color: var(--muted); font-size: 10px; font-style: normal; line-height: 1.35; align-self: start; }
.workspace-entry-primary em { grid-column: 1 / -1; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.workspace-entry-primary b,
.workspace-entry-grid b { width: fit-content; max-width: 100%; min-height: 22px; border: 1px solid var(--border); border-radius: 999px; background: var(--panel-soft); color: var(--text); display: inline-grid; place-items: center; padding: 0 8px; font-size: 10px; font-weight: 850; }
.workspace-entry-more { min-width: 0; border: 1px solid var(--border); border-radius: 11px; background: rgba(255,255,255,.72); overflow: hidden; }
.workspace-entry-more summary { min-height: 34px; padding: 0 9px; display: flex; align-items: center; justify-content: space-between; gap: 8px; cursor: pointer; list-style: none; }
.workspace-entry-more summary::-webkit-details-marker { display: none; }
.workspace-entry-more summary strong { min-width: 0; color: var(--text); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace-entry-more summary span { min-height: 21px; border: 1px solid var(--border); border-radius: 999px; background: #fff; color: var(--muted); display: inline-grid; place-items: center; padding: 0 8px; font-size: 10px; font-weight: 850; }
.workspace-entry-more[open] summary { border-bottom: 1px solid var(--border); background: var(--panel-soft); }
.workspace-capability-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.workspace-capability-strip button { min-width: 0; min-height: 82px; border: 1px solid var(--border); border-radius: 10px; background: var(--panel); color: var(--text); padding: 8px; text-align: left; display: grid; grid-template-rows: auto auto minmax(0, 1fr); gap: 3px; overflow: hidden; box-shadow: 0 5px 16px rgba(17,24,39,.03); }
.workspace-capability-strip button:hover { border-color: var(--border-strong); background: #fff; transform: translateY(-1px); box-shadow: 0 10px 24px rgba(17,24,39,.06); }
.workspace-capability-strip span { width: fit-content; min-height: 19px; display: inline-grid; place-items: center; border: 1px solid var(--border); border-radius: 999px; background: var(--panel-soft); color: var(--muted); padding: 0 7px; font-size: 9px; font-weight: 850; text-transform: uppercase; letter-spacing: 0; }
.workspace-capability-strip strong,
.workspace-capability-strip em { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace-capability-strip strong { font-size: 12px; line-height: 1.2; }
.workspace-capability-strip em { color: var(--muted); font-size: 10px; font-style: normal; line-height: 1.3; align-self: end; }
.workspace-capability-strip button.ready { border-color: #bbf7d0; background: #f7fef9; }
.workspace-capability-strip button.ready span { background: #dcfce7; color: #15803d; }
.workspace-capability-strip button.partial { border-color: #fde68a; background: #fffbeb; }
.workspace-capability-strip button.partial span { background: #fef3c7; color: #92400e; }
.workspace-capability-strip button.missing { border-style: dashed; color: var(--muted); }
.workspace-capability-strip button.missing span { background: #f9fafb; color: var(--muted); }
.workspace-capability-strip button.live { border-color: #93c5fd; background: #eff6ff; }
.workspace-capability-strip button.live span { background: #2563eb; border-color: #2563eb; color: #fff; }
.workspace-launchpad-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.workspace-status-drawer,
.workspace-launchpad-more { min-width: 0; border: 1px dashed var(--border); border-radius: 12px; background: var(--panel-soft); padding: 8px 10px; }
.workspace-status-drawer summary,
.workspace-launchpad-more summary { min-height: 34px; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 10px; list-style: none; }
.workspace-status-drawer summary::-webkit-details-marker,
.workspace-launchpad-more summary::-webkit-details-marker { display: none; }
.workspace-status-drawer summary strong,
.workspace-launchpad-more summary strong { min-width: 0; color: var(--text); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace-status-drawer summary span,
.workspace-launchpad-more summary span { flex: 0 0 auto; min-height: 21px; border: 1px solid var(--border); border-radius: 999px; background: #fff; color: var(--muted); display: inline-grid; place-items: center; padding: 0 8px; font-size: 10px; font-weight: 800; }
.workspace-status-drawer[open] .workspace-capability-strip,
.workspace-launchpad-more[open] .workspace-launchpad-grid { margin-top: 8px; }
.workspace-launch-card {
  position: relative;
  min-width: 0;
  min-height: 128px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel);
  color: var(--text);
  padding: 12px;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto auto;
  gap: 6px;
  text-align: left;
  overflow: hidden;
  box-shadow: 0 7px 22px rgba(17,24,39,.04);
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.workspace-launch-card::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 3px; background: #111827; }
.workspace-launch-card.project::before { background: #0f766e; }
.workspace-launch-card.goal::before { background: #2563eb; }
.workspace-launch-card.task::before { background: #7c3aed; }
.workspace-launch-card.note::before { background: #15803d; }
.workspace-launch-card:hover { border-color: var(--border-strong); background: #fbfbfa; transform: translateY(-2px); box-shadow: 0 14px 34px rgba(17,24,39,.09); }
.workspace-launch-card:hover::after { opacity: 1; transform: translateX(0); }
.workspace-launch-card::after { content: '→'; position: absolute; right: 12px; bottom: 10px; color: var(--muted); opacity: 0; transform: translateX(-4px); transition: opacity .16s ease, transform .16s ease; font-weight: 800; }
.workspace-launch-card.active { border-color: var(--accent); box-shadow: inset 0 -2px 0 var(--accent), 0 10px 28px rgba(17,24,39,.065); }
.workspace-launch-card.live { border-color: #93c5fd; background: #eff6ff; }
.workspace-launch-card span {
  width: fit-content;
  min-height: 22px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--panel-soft);
  color: var(--muted);
  padding: 0 8px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}
.workspace-launch-card strong,
.workspace-launch-card em,
.workspace-launch-card small,
.workspace-launch-card b {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.workspace-launch-card strong { font-size: 14px; line-height: 1.25; white-space: nowrap; }
.workspace-launch-card em { color: var(--muted); font-size: 11px; font-style: normal; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.workspace-launch-card small { color: var(--muted-2); font-size: 10px; font-weight: 700; white-space: nowrap; }
.workspace-launch-card b { align-self: end; width: fit-content; max-width: 100%; min-height: 28px; border-radius: 999px; background: var(--panel-soft); color: var(--text); padding: 6px 10px; font-size: 11px; font-weight: 750; white-space: nowrap; }
.workspace-launch-card.project b { background: #ecfdf5; color: #047857; }
.workspace-launch-card.goal b { background: #eff6ff; color: #1d4ed8; }
.workspace-launch-card.task b { background: #f5f3ff; color: #6d28d9; }
.workspace-launch-card.note b { background: #f0fdf4; color: #15803d; }
.workspace-launch-card.live b { background: #2563eb; color: #fff; }
.workspace-create-hub { min-width: 0; border: 1px solid var(--border); border-radius: 12px; background: #fff; padding: 10px; display: grid; gap: 9px; box-shadow: 0 8px 22px rgba(17,24,39,.04); }
.workspace-create-head { min-width: 0; display: grid; gap: 4px; }
.workspace-create-head span { width: fit-content; min-height: 21px; border: 1px solid var(--border); border-radius: 999px; background: var(--panel-soft); color: var(--muted); display: inline-grid; place-items: center; padding: 0 8px; font-size: 10px; font-weight: 850; text-transform: uppercase; }
.workspace-create-head strong,
.workspace-create-head em { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.workspace-create-head strong { font-size: 14px; white-space: nowrap; }
.workspace-create-head em { color: var(--muted); font-size: 12px; line-height: 1.45; font-style: normal; }
.workspace-create-layers { display: grid; gap: 8px; }
.workspace-create-layer { min-width: 0; border: 1px solid var(--border); border-radius: 11px; background: #fff; padding: 8px; display: grid; gap: 7px; }
.workspace-create-layer-title { min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 7px; }
.workspace-create-layer-title span { width: 25px; height: 22px; border: 1px solid var(--border); border-radius: 8px; background: var(--panel-soft); color: var(--muted); display: grid; place-items: center; font-size: 10px; font-weight: 850; }
.workspace-create-layer-title strong,
.workspace-create-layer-title em { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace-create-layer-title strong { font-size: 12px; }
.workspace-create-layer-title em { color: var(--muted); font-size: 10px; font-style: normal; font-weight: 750; text-align: right; }
.workspace-create-lens { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.workspace-create-lens span { min-width: 0; min-height: 42px; border: 1px solid var(--border); border-radius: 10px; background: var(--panel-soft); padding: 6px 8px; display: grid; gap: 2px; align-content: center; }
.workspace-create-lens b,
.workspace-create-lens em { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace-create-lens b { color: var(--muted-2); font-size: 9px; font-weight: 850; text-transform: uppercase; }
.workspace-create-lens em { color: var(--text); font-size: 11px; font-style: normal; font-weight: 850; }
.workspace-create-switcher { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.workspace-create-switcher button { min-width: 0; min-height: 62px; border: 1px solid var(--border); border-radius: 10px; background: var(--panel); color: var(--text); padding: 7px; text-align: left; display: grid; grid-template-rows: auto 1fr auto; gap: 2px; }
.workspace-create-switcher button:hover { border-color: var(--border-strong); background: #fbfbfa; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(17,24,39,.055); }
.workspace-create-switcher button.active { border-color: #111827; box-shadow: inset 0 -2px 0 #111827, 0 8px 22px rgba(17,24,39,.06); }
.workspace-create-switcher button.ready { background: #fbfffd; }
.workspace-create-switcher button.current { background: #f8fbff; }
.workspace-create-switcher button.missing { border-style: dashed; background: #f9fafb; color: var(--muted); }
.workspace-create-switcher span { width: fit-content; min-height: 19px; border: 1px solid var(--border); border-radius: 999px; background: #fff; color: var(--muted); display: inline-grid; place-items: center; padding: 0 7px; font-size: 9px; font-weight: 850; text-transform: uppercase; }
.workspace-create-switcher strong,
.workspace-create-switcher em { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace-create-switcher strong { font-size: 11px; }
.workspace-create-switcher em { color: var(--muted); font-size: 9px; font-style: normal; font-weight: 800; }
.workspace-create-more { min-width: 0; border: 1px solid var(--border); border-radius: 10px; background: #fff; }
.workspace-create-more summary { min-height: 36px; cursor: pointer; list-style: none; padding: 0 9px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.workspace-create-more summary::-webkit-details-marker { display: none; }
.workspace-create-more summary::after { content: '+'; width: 22px; height: 22px; border: 1px solid var(--border); border-radius: 8px; color: var(--muted); display: grid; place-items: center; font-weight: 900; justify-self: end; }
.workspace-create-more[open] summary::after { content: '-'; }
.workspace-create-more summary strong,
.workspace-create-more summary span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace-create-more summary strong { font-size: 12px; }
.workspace-create-more summary span { color: var(--muted); font-size: 11px; }
.workspace-create-more-grid { border-top: 1px solid var(--border); padding: 7px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.workspace-create-more-grid .active { border-color: #111827; box-shadow: inset 0 -2px 0 #111827, 0 8px 22px rgba(17,24,39,.06); }
.workspace-create-source-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.workspace-create-source-grid button { min-width: 0; min-height: 58px; border: 1px solid var(--border); border-radius: 10px; background: var(--panel); color: var(--text); padding: 7px; text-align: left; display: grid; grid-template-columns: 24px minmax(0, 1fr); grid-template-rows: auto auto; gap: 2px 7px; align-items: center; }
.workspace-create-source-grid button:hover:not(:disabled) { border-color: var(--border-strong); background: #fbfbfa; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(17,24,39,.055); }
.workspace-create-source-grid button:disabled { cursor: default; opacity: .78; }
.workspace-create-source-grid button.current { border-color: var(--accent); background: var(--accent-soft); }
.workspace-create-source-grid button.ready { border-color: #bbf7d0; background: #f0fdf4; }
.workspace-create-source-grid button.missing { border-style: dashed; background: #f9fafb; color: var(--muted); }
.workspace-create-source-grid span { grid-row: 1 / span 2; width: 24px; height: 24px; border: 1px solid var(--border); border-radius: 8px; background: var(--panel-soft); color: var(--muted); display: grid; place-items: center; font-size: 10px; font-weight: 850; }
.workspace-create-source-grid strong,
.workspace-create-source-grid em { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace-create-source-grid strong { font-size: 11px; }
.workspace-create-source-grid em { color: var(--muted); font-size: 10px; font-style: normal; }
.workspace-create-primary-action button { width: 100%; min-width: 0; min-height: 52px; border: 1px solid var(--accent); border-radius: 10px; background: var(--accent); color: #fff; padding: 8px 10px; display: grid; gap: 3px; text-align: left; }
.workspace-create-primary-action strong,
.workspace-create-primary-action em { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace-create-primary-action strong { font-size: 13px; }
.workspace-create-primary-action em { color: rgba(255,255,255,.82); font-size: 11px; font-style: normal; }
.workspace-create-more-actions { min-width: 0; border: 1px dashed var(--border); border-radius: 10px; background: var(--panel-soft); }
.workspace-create-more-actions summary { min-height: 32px; cursor: pointer; list-style: none; padding: 0 8px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px; }
.workspace-create-more-actions summary::-webkit-details-marker { display: none; }
.workspace-create-more-actions summary::after { content: '+'; width: 20px; height: 20px; border: 1px solid var(--border); border-radius: 7px; color: var(--muted); display: grid; place-items: center; font-weight: 900; }
.workspace-create-more-actions[open] summary::after { content: '-'; }
.workspace-create-more-actions summary strong,
.workspace-create-more-actions summary span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace-create-more-actions summary strong { font-size: 11px; }
.workspace-create-more-actions summary span { color: var(--muted); font-size: 10px; }
.workspace-create-more-actions div { border-top: 1px solid var(--border); padding: 7px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.workspace-create-more-actions button { min-width: 0; min-height: 30px; border: 1px solid var(--border); border-radius: 8px; background: #fff; color: var(--text); padding: 0 8px; font-size: 11px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace-create-funnel { min-width: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.workspace-create-funnel span { position: relative; min-width: 0; min-height: 58px; border: 1px solid var(--border); border-radius: 10px; background: var(--panel); padding: 8px 9px 8px 34px; display: grid; gap: 2px; overflow: hidden; }
.workspace-create-funnel span::after { content: ''; position: absolute; right: -7px; top: 50%; width: 14px; height: 14px; border: 1px solid var(--border); border-width: 1px 1px 0 0; background: inherit; transform: translateY(-50%) rotate(45deg); }
.workspace-create-funnel span:last-child::after { display: none; }
.workspace-create-funnel b { position: absolute; left: 9px; top: 9px; width: 18px; height: 18px; border-radius: 999px; background: var(--panel-soft); color: var(--muted); display: grid; place-items: center; font-size: 10px; font-weight: 850; }
.workspace-create-funnel span.done { border-color: #bbf7d0; background: #f0fdf4; }
.workspace-create-funnel span.done b { background: #22c55e; color: #fff; }
.workspace-create-funnel span.current { border-color: var(--accent); background: var(--accent-soft); }
.workspace-create-funnel span.current b { background: var(--accent); color: #fff; }
.workspace-create-funnel strong,
.workspace-create-funnel em { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace-create-funnel strong { font-size: 12px; line-height: 1.25; }
.workspace-create-funnel em { color: var(--muted); font-size: 11px; line-height: 1.3; font-style: normal; }
.workspace-create-detail { min-width: 0; border: 1px solid var(--border); border-radius: 11px; background: linear-gradient(180deg, #fff, #fbfbfa); padding: 10px; display: grid; gap: 9px; box-shadow: inset 3px 0 0 #2563eb; }
.workspace-create-detail.ready { box-shadow: inset 3px 0 0 #16a34a; }
.workspace-create-detail.partial { box-shadow: inset 3px 0 0 #f59e0b; }
.workspace-create-detail.missing { border-style: dashed; box-shadow: inset 3px 0 0 #9ca3af; }
.workspace-create-copy { min-width: 0; display: grid; gap: 3px; }
.workspace-create-copy span { width: fit-content; min-height: 20px; border: 1px solid var(--border); border-radius: 999px; background: var(--panel-soft); color: var(--muted); display: inline-grid; place-items: center; padding: 0 8px; font-size: 10px; font-weight: 850; text-transform: uppercase; }
.workspace-create-copy strong,
.workspace-create-copy em { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.workspace-create-copy strong { font-size: 13px; white-space: nowrap; }
.workspace-create-copy em { color: var(--muted); font-size: 11px; line-height: 1.45; font-style: normal; }
.workspace-create-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.workspace-create-steps span { min-width: 0; min-height: 58px; border: 1px solid var(--border); border-radius: 10px; background: var(--panel); padding: 7px; display: grid; grid-template-columns: 24px minmax(0, 1fr); grid-template-rows: auto auto; gap: 2px 7px; align-items: center; }
.workspace-create-steps b { grid-row: 1 / span 2; width: 24px; height: 24px; border: 1px solid var(--border); border-radius: 8px; background: var(--panel-soft); color: var(--muted); display: grid; place-items: center; font-size: 10px; }
.workspace-create-steps strong,
.workspace-create-steps em { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace-create-steps strong { font-size: 11px; }
.workspace-create-steps em { color: var(--muted); font-size: 10px; font-style: normal; }
.workspace-create-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.workspace-create-actions button { min-width: 0; min-height: 32px; border: 1px solid var(--border); border-radius: 9px; background: var(--panel-soft); color: var(--text); padding: 0 9px; font-size: 11px; font-weight: 850; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace-create-actions button.primary { border-color: var(--accent); background: var(--accent); color: #fff; }
.workspace-stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: linear-gradient(180deg, #fff, #fbfbfa);
  padding: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(17,24,39,.055);
  animation: workspaceStageIn .18s cubic-bezier(.2,.8,.2,1) both;
}
.workspace-stage::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 3px; background: #111827; }
.workspace-stage[data-stage-tab="cloud"]::before { background: #0f766e; }
.workspace-stage[data-stage-tab="goals"]::before { background: #2563eb; }
.workspace-stage[data-stage-tab="run"]::before { background: #ea580c; }
.workspace-stage[data-stage-tab="activity"]::before { background: #7c3aed; }
.workspace-progress-drawer { min-width: 0; display: grid; gap: 8px; }
.workspace-progress-drawer summary { min-height: 44px; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; list-style: none; }
.workspace-progress-drawer summary::-webkit-details-marker { display: none; }
.workspace-progress-drawer summary div { min-width: 0; display: grid; gap: 3px; }
.workspace-progress-drawer summary span { width: fit-content; min-height: 20px; display: inline-grid; place-items: center; border: 1px solid var(--border); border-radius: 999px; background: var(--panel-soft); color: var(--muted); padding: 0 8px; font-size: 10px; font-weight: 850; text-transform: uppercase; }
.workspace-progress-drawer summary strong,
.workspace-progress-drawer summary em,
.workspace-progress-drawer summary b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace-progress-drawer summary strong { color: var(--text); font-size: 13px; }
.workspace-progress-drawer summary em { color: var(--muted); font-size: 11px; font-style: normal; }
.workspace-progress-drawer summary b { min-height: 22px; border: 1px solid var(--border); border-radius: 999px; background: #fff; color: var(--muted); display: inline-flex; align-items: center; padding: 0 8px; font-size: 10px; font-weight: 850; }
.workspace-progress-body { display: grid; gap: 8px; padding-top: 2px; }
.workspace-progress-guide { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.workspace-guide[hidden] { display: none !important; }
.workspace-stage-copy { min-width: 0; display: grid; gap: 3px; }
.workspace-stage-copy span { width: fit-content; min-height: 21px; display: inline-grid; place-items: center; border: 1px solid var(--border); border-radius: 999px; background: var(--panel-soft); color: var(--muted); padding: 0 8px; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0; }
.workspace-stage-copy strong { font-size: 16px; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace-stage-copy em { color: var(--muted); font-size: 12px; font-style: normal; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace-stage-next { min-width: 0; border: 1px solid var(--border); border-radius: 10px; background: var(--panel); padding: 9px 10px; display: grid; gap: 3px; }
.workspace-stage-next span { width: fit-content; min-height: 20px; display: inline-grid; place-items: center; border-radius: 999px; background: var(--panel-soft); color: var(--muted); padding: 0 8px; font-size: 10px; font-weight: 800; }
.workspace-stage-next strong { min-width: 0; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace-stage-status { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.workspace-stage-status span { min-height: 26px; border: 1px solid var(--border); border-radius: 999px; background: var(--panel); color: var(--muted); display: inline-flex; align-items: center; gap: 6px; padding: 0 8px; font-size: 11px; font-weight: 650; }
.workspace-stage-status b { color: var(--text); font-size: 11px; font-weight: 750; max-width: 126px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace-stage-status span.live { border-color: #93c5fd; background: #eff6ff; color: #1d4ed8; }
.workspace-stage-status span.live b { color: #1d4ed8; }
.workspace-stage-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.workspace-stage-actions button { min-width: 0; min-height: 34px; border: 1px solid var(--border); border-radius: 9px; background: var(--panel-soft); color: var(--text); padding: 0 9px; font-size: 12px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace-stage-actions button.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.workspace-stage-actions button:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(17,24,39,.08); }
.workspace-guide { display: grid; gap: 8px; border: 1px solid var(--border); border-radius: 12px; background: linear-gradient(180deg, #fff, #fbfbfa); padding: 10px; box-shadow: 0 8px 24px rgba(17,24,39,.04); }
.workspace-guide-head { min-width: 0; display: grid; gap: 3px; }
.workspace-guide-head span { width: fit-content; min-height: 21px; display: inline-grid; place-items: center; border: 1px solid var(--border); border-radius: 999px; background: var(--panel-soft); color: var(--muted); padding: 0 8px; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0; }
.workspace-guide-head strong,
.workspace-guide-head em { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace-guide-head strong { font-size: 14px; }
.workspace-guide-head em { color: var(--muted); font-size: 11px; font-style: normal; }
.workspace-guide-rail { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.workspace-guide-item { position: relative; min-width: 0; min-height: 76px; border: 1px solid var(--border); border-radius: 12px; background: var(--panel); color: var(--text); padding: 8px; text-align: left; display: grid; gap: 2px; align-content: start; overflow: hidden; box-shadow: 0 6px 18px rgba(17,24,39,.035); }
.workspace-guide-item:hover { transform: translateY(-1px); border-color: var(--border-strong); box-shadow: 0 10px 24px rgba(17,24,39,.065); }
.workspace-guide-item::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--panel-soft); }
.workspace-guide-item:hover { border-color: var(--border-strong); background: #fbfbfa; transform: translateY(-1px); box-shadow: 0 10px 26px rgba(17,24,39,.065); }
.workspace-guide-item span { width: 24px; height: 22px; border-radius: 8px; background: var(--panel-soft); color: var(--muted); display: grid; place-items: center; font-size: 10px; font-weight: 800; }
.workspace-guide-item strong, .workspace-guide-item em, .workspace-guide-item small { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace-guide-item strong { font-size: 11px; }
.workspace-guide-item em { color: var(--text); font-size: 11px; font-style: normal; font-weight: 650; }
.workspace-guide-item small { color: var(--muted); font-size: 10px; line-height: 1.3; }
.workspace-guide-item.done { border-color: #bbf7d0; background: #f7fef9; }
.workspace-guide-item.done span { background: #dcfce7; color: #15803d; }
.workspace-guide-item.done::after { background: #22c55e; }
.workspace-guide-item.current { border-color: var(--accent); box-shadow: inset 3px 0 0 var(--accent), 0 10px 26px rgba(17,24,39,.075); }
.workspace-guide-item.current span { background: var(--accent); color: #fff; }
.workspace-guide-item.current::after { background: var(--accent); }
.workspace-guide-item.live { border-color: #93c5fd; background: #eff6ff; }
.workspace-guide-item.live span { background: #2563eb; color: #fff; }
.workspace-guide-item.live::after { background: #2563eb; }
.workspace-guide-item.pending { color: var(--muted); }
.workspace-focus-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: -4px; }
.workspace-focus-item { position: relative; min-width: 0; min-height: 54px; border: 1px solid var(--border); border-radius: 8px; background: var(--panel); color: var(--text); display: grid; grid-template-columns: 28px minmax(0, 1fr); grid-template-rows: auto auto; gap: 1px 7px; align-items: center; padding: 7px 8px; text-align: left; overflow: hidden; box-shadow: 0 5px 16px rgba(17,24,39,.028); }
.workspace-focus-item::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--panel-soft); }
.workspace-focus-item:hover { border-color: var(--border-strong); background: #fbfbfa; transform: translateY(-1px); box-shadow: 0 10px 24px rgba(17,24,39,.06); }
.workspace-focus-item span { grid-row: 1 / span 2; width: 26px; height: 26px; border-radius: 8px; background: var(--panel-soft); color: var(--muted); display: grid; place-items: center; font-size: 10px; font-weight: 850; }
.workspace-focus-item strong,
.workspace-focus-item em { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace-focus-item strong { font-size: 12px; line-height: 1.2; }
.workspace-focus-item em { color: var(--muted); font-size: 10px; font-style: normal; line-height: 1.2; }
.workspace-focus-item.done { border-color: #bbf7d0; background: #f7fef9; }
.workspace-focus-item.done span { background: #dcfce7; color: #15803d; }
.workspace-focus-item.done::after { background: #22c55e; }
.workspace-focus-item.current,
.workspace-focus-item.active { border-color: var(--border-strong); box-shadow: inset 0 -2px 0 var(--accent), 0 8px 22px rgba(17,24,39,.055); }
.workspace-focus-item.current span,
.workspace-focus-item.active span { background: var(--accent); color: #fff; }
.workspace-focus-item.current::after,
.workspace-focus-item.active::after { background: var(--accent); }
.workspace-focus-item.live { border-color: #93c5fd; background: #eff6ff; }
.workspace-focus-item.live span { background: #2563eb; color: #fff; }
.workspace-focus-item.live::after { background: #2563eb; }
.workspace-focus-item.pending { color: var(--muted); }
.workspace-context-bar { display: grid; gap: 6px; }
.workspace-context-item { min-width: 0; min-height: 58px; border: 1px solid var(--border); border-radius: 10px; background: var(--panel); color: var(--text); display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 2px 8px; align-items: center; padding: 8px 10px; text-align: left; box-shadow: 0 6px 18px rgba(17,24,39,.03); }
.workspace-context-item:hover { border-color: var(--border-strong); background: #fbfbfa; transform: translateY(-1px); }
.workspace-context-item span { grid-row: 1 / span 2; min-height: 30px; display: grid; place-items: center; border-radius: 8px; background: var(--panel-soft); color: var(--muted); font-size: 11px; font-weight: 750; }
.workspace-context-item strong, .workspace-context-item em { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace-context-item strong { font-size: 13px; }
.workspace-context-item em { color: var(--muted); font-size: 11px; font-style: normal; }
.workspace-context-item.active { border-color: var(--border-strong); box-shadow: inset 3px 0 0 var(--accent), 0 8px 24px rgba(17,24,39,.045); }
.workspace-context-item.live { border-color: #93c5fd; background: #eff6ff; }
.workspace-context-item.live span { background: #2563eb; color: #fff; }
.workspace-run-dock { display: grid; gap: 6px; }
.workspace-run-lens { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.workspace-run-lens span { min-width: 0; min-height: 42px; border: 1px solid var(--border); border-radius: 10px; background: var(--panel-soft); padding: 6px 8px; display: grid; gap: 2px; align-content: center; }
.workspace-run-lens b,
.workspace-run-lens em { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace-run-lens b { color: var(--muted-2); font-size: 9px; font-weight: 850; text-transform: uppercase; }
.workspace-run-lens em { color: var(--text); font-size: 11px; font-style: normal; font-weight: 850; }
.workspace-run-scenes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.workspace-run-scenes button { min-width: 0; min-height: 58px; border: 1px solid var(--border); border-radius: 10px; background: var(--panel); color: var(--text); padding: 7px; display: grid; grid-template-rows: auto 1fr auto; gap: 2px; text-align: left; box-shadow: 0 5px 16px rgba(17,24,39,.025); }
.workspace-run-scenes button:hover { border-color: var(--border-strong); background: #fbfbfa; transform: translateY(-1px); box-shadow: 0 10px 22px rgba(17,24,39,.055); }
.workspace-run-scenes button.active { border-color: #111827; box-shadow: inset 0 -2px 0 #111827, 0 8px 22px rgba(17,24,39,.06); }
.workspace-run-scenes button.live { border-color: #93c5fd; background: #eff6ff; }
.workspace-run-scenes button.missing { border-style: dashed; background: #f9fafb; color: var(--muted); }
.workspace-run-scenes span { width: fit-content; min-height: 19px; border: 1px solid var(--border); border-radius: 999px; background: #fff; color: var(--muted); display: inline-grid; place-items: center; padding: 0 7px; font-size: 9px; font-weight: 850; text-transform: uppercase; }
.workspace-run-scenes strong,
.workspace-run-scenes em { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace-run-scenes strong { font-size: 11px; }
.workspace-run-scenes em { color: var(--muted); font-size: 9px; font-style: normal; font-weight: 800; }
.workspace-run-scene-primary,
.workspace-local-scene-primary,
.workspace-capability-scene-primary { display: grid; }
.workspace-run-scene-primary button,
.workspace-local-scene-primary button,
.workspace-capability-scene-primary button { min-width: 0; min-height: 68px; border: 1px solid var(--border); border-radius: 10px; background: var(--panel); color: var(--text); padding: 7px; display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; gap: 3px 8px; align-items: center; text-align: left; box-shadow: 0 5px 16px rgba(17,24,39,.025); transition: background .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.workspace-run-scene-primary button { border-color: #111827; background: #f8fafc; box-shadow: inset 0 -2px 0 #111827, 0 8px 22px rgba(17,24,39,.06); }
.workspace-local-scene-primary button { border-color: #064e3b; background: #ecfdf5; box-shadow: inset 0 -2px 0 #10b981, 0 8px 22px rgba(16,185,129,.08); }
.workspace-capability-scene-primary button { border-color: #312e81; background: #eef2ff; box-shadow: inset 0 -2px 0 #6366f1, 0 8px 22px rgba(99,102,241,.09); }
.workspace-run-scene-primary button:hover,
.workspace-local-scene-primary button:hover,
.workspace-capability-scene-primary button:hover { border-color: var(--border-strong); background: #fbfbfa; transform: translateY(-1px); box-shadow: 0 10px 22px rgba(17,24,39,.055); }
.workspace-run-scene-primary button.live,
.workspace-capability-scene-primary button.live { border-color: #93c5fd; background: #eff6ff; }
.workspace-local-scene-primary button.live { border-color: #86efac; background: #f0fdf4; }
.workspace-run-scene-primary button.missing,
.workspace-local-scene-primary button.missing,
.workspace-capability-scene-primary button.missing { border-style: dashed; background: #f9fafb; color: var(--muted); }
.workspace-capability-scene-primary button.gated { border-color: #fed7aa; background: #fff7ed; }
.workspace-run-scene-primary span,
.workspace-local-scene-primary span,
.workspace-capability-scene-primary span { grid-row: 1 / 3; width: fit-content; min-height: 19px; border: 1px solid var(--border); border-radius: 999px; background: #fff; color: var(--muted); display: inline-grid; place-items: center; align-self: center; padding: 0 7px; font-size: 9px; font-weight: 850; text-transform: uppercase; }
.workspace-run-scene-primary strong,
.workspace-run-scene-primary em,
.workspace-local-scene-primary strong,
.workspace-local-scene-primary em,
.workspace-capability-scene-primary strong,
.workspace-capability-scene-primary em { min-width: 0; overflow: visible; text-overflow: clip; white-space: normal; }
.workspace-run-scene-primary strong,
.workspace-local-scene-primary strong,
.workspace-capability-scene-primary strong { align-self: end; font-size: 13px; }
.workspace-run-scene-primary em,
.workspace-local-scene-primary em,
.workspace-capability-scene-primary em { color: var(--muted); font-size: 11px; font-style: normal; font-weight: 800; line-height: 1.35; }
.workspace-run-scenes-more,
.workspace-local-scenes-more,
.workspace-capability-scenes-more { border: 1px solid var(--border); border-radius: 10px; background: #fff; overflow: hidden; }
.workspace-run-scenes-more summary,
.workspace-local-scenes-more summary,
.workspace-capability-scenes-more summary { min-height: 40px; padding: 0 10px; display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--text); cursor: pointer; font-size: 12px; font-weight: 850; list-style: none; transition: background .18s ease, color .18s ease; }
.workspace-run-scenes-more summary::-webkit-details-marker,
.workspace-local-scenes-more summary::-webkit-details-marker,
.workspace-capability-scenes-more summary::-webkit-details-marker { display: none; }
.workspace-run-scenes-more summary:hover,
.workspace-local-scenes-more summary:hover,
.workspace-capability-scenes-more summary:hover { background: #fbfbfa; }
.workspace-run-scenes-more summary::after,
.workspace-local-scenes-more summary::after,
.workspace-capability-scenes-more summary::after { content: '+'; width: 20px; height: 20px; border: 1px solid var(--border); border-radius: 999px; display: inline-grid; place-items: center; flex: 0 0 auto; color: var(--muted); }
.workspace-run-scenes-more[open] summary::after,
.workspace-local-scenes-more[open] summary::after,
.workspace-capability-scenes-more[open] summary::after { content: '-'; }
.workspace-run-scenes-more summary span,
.workspace-local-scenes-more summary span,
.workspace-capability-scenes-more summary span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace-run-scenes-more summary strong,
.workspace-local-scenes-more summary strong,
.workspace-capability-scenes-more summary strong { color: var(--muted); font-size: 11px; font-weight: 800; white-space: nowrap; }
.workspace-run-scenes-more .workspace-run-scenes,
.workspace-local-scenes-more .workspace-local-scenes,
.workspace-capability-scenes-more .workspace-capability-scenes { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0 7px 7px; }
.workspace-run-scenes-more .workspace-run-scenes button,
.workspace-local-scenes-more .workspace-local-scenes button,
.workspace-capability-scenes-more .workspace-capability-scenes button { transition: background .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.workspace-run-scenes-more .workspace-run-scenes strong,
.workspace-run-scenes-more .workspace-run-scenes em,
.workspace-local-scenes-more .workspace-local-scenes strong,
.workspace-local-scenes-more .workspace-local-scenes em,
.workspace-capability-scenes-more .workspace-capability-scenes strong,
.workspace-capability-scenes-more .workspace-capability-scenes em { white-space: normal; }
.workspace-local-lens { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.workspace-local-lens span { min-width: 0; min-height: 42px; border: 1px solid var(--border); border-radius: 10px; background: #ecfdf5; padding: 6px 8px; display: grid; gap: 2px; align-content: center; }
.workspace-local-lens b,
.workspace-local-lens em { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace-local-lens b { color: #047857; font-size: 9px; font-weight: 850; text-transform: uppercase; }
.workspace-local-lens em { color: var(--text); font-size: 11px; font-style: normal; font-weight: 850; }
.workspace-local-scenes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.workspace-local-scenes button { min-width: 0; min-height: 58px; border: 1px solid var(--border); border-radius: 10px; background: var(--panel); color: var(--text); padding: 7px; display: grid; grid-template-rows: auto 1fr auto; gap: 2px; text-align: left; box-shadow: 0 5px 16px rgba(17,24,39,.025); }
.workspace-local-scenes button:hover { border-color: var(--border-strong); background: #fbfbfa; transform: translateY(-1px); box-shadow: 0 10px 22px rgba(17,24,39,.055); }
.workspace-local-scenes button.active { border-color: #064e3b; box-shadow: inset 0 -2px 0 #10b981, 0 8px 22px rgba(16,185,129,.08); }
.workspace-local-scenes button.live { border-color: #86efac; background: #f0fdf4; }
.workspace-local-scenes button.missing { border-style: dashed; background: #f9fafb; color: var(--muted); }
.workspace-local-scenes span { width: fit-content; min-height: 19px; border: 1px solid var(--border); border-radius: 999px; background: #fff; color: var(--muted); display: inline-grid; place-items: center; padding: 0 7px; font-size: 9px; font-weight: 850; text-transform: uppercase; }
.workspace-local-scenes strong,
.workspace-local-scenes em { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace-local-scenes strong { font-size: 11px; }
.workspace-local-scenes em { color: var(--muted); font-size: 9px; font-style: normal; font-weight: 800; }
.workspace-local-card { min-width: 0; min-height: 58px; border: 1px solid var(--border); border-radius: 10px; background: var(--panel); color: var(--text); padding: 9px 10px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 3px 8px; align-items: center; text-align: left; }
.workspace-local-card:hover { border-color: var(--border-strong); background: #fbfbfa; transform: translateY(-1px); }
.workspace-local-card span { min-height: 24px; display: inline-grid; place-items: center; border-radius: 999px; background: #dcfce7; color: #166534; padding: 0 8px; font-size: 11px; font-weight: 800; }
.workspace-local-card strong,
.workspace-local-card em { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace-local-card strong { font-size: 13px; }
.workspace-local-card em { grid-column: 2; color: var(--muted); font-size: 11px; font-style: normal; }
.workspace-local-card.live { border-color: #86efac; background: #f0fdf4; }
.workspace-local-card.missing { border-style: dashed; background: #f9fafb; }
.workspace-project-lens { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.workspace-project-lens span { min-width: 0; min-height: 42px; border: 1px solid var(--border); border-radius: 10px; background: #f0f9ff; padding: 6px 8px; display: grid; gap: 2px; align-content: center; }
.workspace-project-lens b,
.workspace-project-lens em { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace-project-lens b { color: #0369a1; font-size: 9px; font-weight: 850; text-transform: uppercase; }
.workspace-project-lens em { color: var(--text); font-size: 11px; font-style: normal; font-weight: 850; }
.workspace-project-scene-primary,
.workspace-goal-scene-primary { display: grid; }
.workspace-project-scenes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding-top: 7px; }
.workspace-project-scene-primary button,
.workspace-project-scenes button { min-width: 0; min-height: 58px; border: 1px solid var(--border); border-radius: 10px; background: var(--panel); color: var(--text); padding: 7px; display: grid; grid-template-rows: auto 1fr auto; gap: 2px; text-align: left; box-shadow: 0 5px 16px rgba(17,24,39,.025); transition: background .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.workspace-project-scene-primary button { min-height: 68px; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; gap: 3px 8px; border-color: #075985; background: #f0f9ff; box-shadow: inset 0 -2px 0 #0284c7, 0 8px 22px rgba(2,132,199,.08); }
.workspace-project-scene-primary button:hover,
.workspace-project-scenes button:hover { border-color: var(--border-strong); background: #fbfbfa; transform: translateY(-1px); box-shadow: 0 10px 22px rgba(17,24,39,.055); }
.workspace-project-scenes button.active { border-color: #075985; box-shadow: inset 0 -2px 0 #0284c7, 0 8px 22px rgba(2,132,199,.08); }
.workspace-project-scene-primary button.live,
.workspace-project-scenes button.live { border-color: #93c5fd; background: #eff6ff; }
.workspace-project-scene-primary button.missing,
.workspace-project-scenes button.missing { border-style: dashed; background: #f9fafb; color: var(--muted); }
.workspace-project-scene-primary span,
.workspace-project-scenes span { width: fit-content; min-height: 19px; border: 1px solid var(--border); border-radius: 999px; background: #fff; color: var(--muted); display: inline-grid; place-items: center; padding: 0 7px; font-size: 9px; font-weight: 850; text-transform: uppercase; }
.workspace-project-scenes strong,
.workspace-project-scenes em { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: normal; }
.workspace-project-scene-primary strong,
.workspace-project-scene-primary em { min-width: 0; overflow: visible; text-overflow: clip; white-space: normal; }
.workspace-project-scene-primary span { grid-row: 1 / 3; align-self: center; }
.workspace-project-scene-primary strong { align-self: end; font-size: 13px; }
.workspace-project-scene-primary em { color: var(--muted); font-size: 11px; font-style: normal; font-weight: 800; line-height: 1.35; }
.workspace-project-scenes strong { font-size: 11px; }
.workspace-project-scenes em { color: var(--muted); font-size: 9px; font-style: normal; font-weight: 800; }
.workspace-project-scenes-more,
.workspace-goal-scenes-more { border: 1px solid var(--border); border-radius: 10px; background: #fff; overflow: hidden; }
.workspace-project-scenes-more summary,
.workspace-goal-scenes-more summary { min-height: 40px; padding: 0 10px; display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--text); cursor: pointer; font-size: 12px; font-weight: 850; list-style: none; transition: background .18s ease, color .18s ease; }
.workspace-project-scenes-more summary::-webkit-details-marker,
.workspace-goal-scenes-more summary::-webkit-details-marker { display: none; }
.workspace-project-scenes-more summary:hover,
.workspace-goal-scenes-more summary:hover { background: #fbfbfa; }
.workspace-project-scenes-more summary::after,
.workspace-goal-scenes-more summary::after { content: '+'; width: 20px; height: 20px; border: 1px solid var(--border); border-radius: 999px; display: inline-grid; place-items: center; flex: 0 0 auto; color: var(--muted); }
.workspace-project-scenes-more[open] summary::after,
.workspace-goal-scenes-more[open] summary::after { content: '-'; }
.workspace-project-scenes-more summary span,
.workspace-goal-scenes-more summary span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace-project-scenes-more summary strong,
.workspace-goal-scenes-more summary strong { color: var(--muted); font-size: 11px; font-weight: 800; white-space: nowrap; }
.workspace-project-scenes-more .workspace-project-scenes,
.workspace-goal-scenes-more .workspace-goal-scenes { padding: 0 7px 7px; }
.workspace-project-card { min-width: 0; min-height: 58px; border: 1px solid var(--border); border-radius: 10px; background: var(--panel); color: var(--text); padding: 9px 10px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 3px 8px; align-items: center; text-align: left; }
.workspace-project-card:hover { border-color: var(--border-strong); background: #fbfbfa; transform: translateY(-1px); }
.workspace-project-card span { min-height: 24px; display: inline-grid; place-items: center; border-radius: 999px; background: #e0f2fe; color: #075985; padding: 0 8px; font-size: 11px; font-weight: 800; }
.workspace-project-card strong,
.workspace-project-card em { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace-project-card strong { font-size: 13px; }
.workspace-project-card em { grid-column: 2; color: var(--muted); font-size: 11px; font-style: normal; }
.workspace-project-card.missing { border-style: dashed; background: #f9fafb; }
.workspace-goal-lens { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.workspace-goal-lens span { min-width: 0; min-height: 42px; border: 1px solid var(--border); border-radius: 10px; background: #f0fdf4; padding: 6px 8px; display: grid; gap: 2px; align-content: center; }
.workspace-goal-lens b,
.workspace-goal-lens em { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace-goal-lens b { color: #047857; font-size: 9px; font-weight: 850; text-transform: uppercase; }
.workspace-goal-lens em { color: var(--text); font-size: 11px; font-style: normal; font-weight: 850; }
.workspace-goal-scenes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding-top: 7px; }
.workspace-goal-scene-primary button,
.workspace-goal-scenes button { min-width: 0; min-height: 58px; border: 1px solid var(--border); border-radius: 10px; background: var(--panel); color: var(--text); padding: 7px; display: grid; grid-template-rows: auto 1fr auto; gap: 2px; text-align: left; box-shadow: 0 5px 16px rgba(17,24,39,.025); transition: background .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.workspace-goal-scene-primary button { min-height: 68px; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; gap: 3px 8px; border-color: #14532d; background: #f0fdf4; box-shadow: inset 0 -2px 0 #16a34a, 0 8px 22px rgba(22,163,74,.08); }
.workspace-goal-scene-primary button:hover,
.workspace-goal-scenes button:hover { border-color: var(--border-strong); background: #fbfbfa; transform: translateY(-1px); box-shadow: 0 10px 22px rgba(17,24,39,.055); }
.workspace-goal-scenes button.active { border-color: #14532d; box-shadow: inset 0 -2px 0 #16a34a, 0 8px 22px rgba(22,163,74,.08); }
.workspace-goal-scene-primary button.live,
.workspace-goal-scenes button.live { border-color: #93c5fd; background: #eff6ff; }
.workspace-goal-scene-primary button.missing,
.workspace-goal-scenes button.missing { border-style: dashed; background: #f9fafb; color: var(--muted); }
.workspace-goal-scene-primary span,
.workspace-goal-scenes span { width: fit-content; min-height: 19px; border: 1px solid var(--border); border-radius: 999px; background: #fff; color: var(--muted); display: inline-grid; place-items: center; padding: 0 7px; font-size: 9px; font-weight: 850; text-transform: uppercase; }
.workspace-goal-scenes strong,
.workspace-goal-scenes em { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: normal; }
.workspace-goal-scene-primary strong,
.workspace-goal-scene-primary em { min-width: 0; overflow: visible; text-overflow: clip; white-space: normal; }
.workspace-goal-scene-primary span { grid-row: 1 / 3; align-self: center; }
.workspace-goal-scene-primary strong { align-self: end; font-size: 13px; }
.workspace-goal-scene-primary em { color: var(--muted); font-size: 11px; font-style: normal; font-weight: 800; line-height: 1.35; }
.workspace-goal-scenes strong { font-size: 11px; }
.workspace-goal-scenes em { color: var(--muted); font-size: 9px; font-style: normal; font-weight: 800; }
.workspace-goal-card { min-width: 0; min-height: 58px; border: 1px solid var(--border); border-radius: 10px; background: var(--panel); color: var(--text); padding: 9px 10px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 3px 8px; align-items: center; text-align: left; }
.workspace-goal-card:hover { border-color: var(--border-strong); background: #fbfbfa; transform: translateY(-1px); }
.workspace-goal-card span { min-height: 24px; display: inline-grid; place-items: center; border-radius: 999px; background: #dcfce7; color: #166534; padding: 0 8px; font-size: 11px; font-weight: 800; }
.workspace-goal-card strong,
.workspace-goal-card em { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace-goal-card strong { font-size: 13px; }
.workspace-goal-card em { grid-column: 2; color: var(--muted); font-size: 11px; font-style: normal; }
.workspace-goal-card.live { border-color: #93c5fd; background: #eff6ff; }
.workspace-goal-card.missing { border-style: dashed; background: #f9fafb; }
.workspace-capability-lens { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.workspace-capability-lens span { min-width: 0; min-height: 42px; border: 1px solid var(--border); border-radius: 10px; background: #f8fafc; padding: 6px 8px; display: grid; gap: 2px; align-content: center; }
.workspace-capability-lens b,
.workspace-capability-lens em { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace-capability-lens b { color: #475569; font-size: 9px; font-weight: 850; text-transform: uppercase; }
.workspace-capability-lens em { color: var(--text); font-size: 11px; font-style: normal; font-weight: 850; }
.workspace-capability-scenes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.workspace-capability-scenes button { min-width: 0; min-height: 58px; border: 1px solid var(--border); border-radius: 10px; background: var(--panel); color: var(--text); padding: 7px; display: grid; grid-template-rows: auto 1fr auto; gap: 2px; text-align: left; box-shadow: 0 5px 16px rgba(17,24,39,.025); }
.workspace-capability-scenes button:hover { border-color: var(--border-strong); background: #fbfbfa; transform: translateY(-1px); box-shadow: 0 10px 22px rgba(17,24,39,.055); }
.workspace-capability-scenes button.active { border-color: #0f172a; box-shadow: inset 0 -2px 0 #6366f1, 0 8px 22px rgba(99,102,241,.09); }
.workspace-capability-scenes button.live { border-color: #93c5fd; background: #eff6ff; }
.workspace-capability-scenes button.missing { border-style: dashed; background: #f9fafb; color: var(--muted); }
.workspace-capability-scenes button.gated { border-color: #fed7aa; background: #fff7ed; }
.workspace-capability-scenes span { width: fit-content; min-height: 19px; border: 1px solid var(--border); border-radius: 999px; background: #fff; color: var(--muted); display: inline-grid; place-items: center; padding: 0 7px; font-size: 9px; font-weight: 850; text-transform: uppercase; }
.workspace-capability-scenes strong,
.workspace-capability-scenes em { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace-capability-scenes strong { font-size: 11px; }
.workspace-capability-scenes em { color: var(--muted); font-size: 9px; font-style: normal; font-weight: 800; }
.workspace-capability-card { min-width: 0; min-height: 58px; border: 1px solid var(--border); border-radius: 10px; background: var(--panel); color: var(--text); padding: 9px 10px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 3px 8px; align-items: center; text-align: left; }
.workspace-capability-card:hover { border-color: var(--border-strong); background: #fbfbfa; transform: translateY(-1px); }
.workspace-capability-card span { min-height: 24px; display: inline-grid; place-items: center; border-radius: 999px; background: #eef2ff; color: #4338ca; padding: 0 8px; font-size: 11px; font-weight: 800; }
.workspace-capability-card strong,
.workspace-capability-card em { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace-capability-card strong { font-size: 13px; }
.workspace-capability-card em { grid-column: 2; color: var(--muted); font-size: 11px; font-style: normal; }
.workspace-capability-card.gated { border-color: #fed7aa; background: #fff7ed; }
.workspace-capability-card.missing { border-style: dashed; background: #f9fafb; }
.workspace-run-card { position: relative; min-width: 0; min-height: 62px; border: 1px solid var(--border); border-radius: 10px; background: var(--panel); color: var(--text); display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 3px 8px; align-items: center; padding: 9px 10px 12px; text-align: left; overflow: hidden; }
.workspace-run-card:hover { border-color: var(--border-strong); background: #fbfbfa; transform: translateY(-1px); }
.workspace-run-card span { min-height: 24px; display: inline-grid; place-items: center; border-radius: 999px; background: var(--panel-soft); color: var(--muted); padding: 0 8px; font-size: 11px; font-weight: 750; }
.workspace-run-card strong, .workspace-run-card em { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace-run-card strong { font-size: 13px; }
.workspace-run-card em { grid-column: 2; color: var(--muted); font-size: 11px; font-style: normal; }
.workspace-run-card i { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--panel-soft); }
.workspace-run-card i b { display: block; height: 100%; width: 0; background: var(--accent); transition: width .24s ease; }
.workspace-run-card.live { border-color: #93c5fd; background: #eff6ff; }
.workspace-run-card.live span { background: #2563eb; color: #fff; }
.workspace-run-card.failed, .workspace-run-card.error { border-color: #fecaca; background: #fef2f2; }
.workspace-run-card.failed span, .workspace-run-card.error span { background: #fee2e2; color: var(--danger); }
.workspace-run-card.idle { min-height: 52px; }
.workspace-run-card.approval { grid-template-columns: auto minmax(0, 1fr); border-color: #fed7aa; background: #fff7ed; box-shadow: 0 8px 24px rgba(194,65,12,.08); }
.workspace-run-card.approval span { background: #ffedd5; color: #c2410c; }
.workspace-run-card.approval em { grid-column: 2; color: #9a3412; }
.workspace-run-actions { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-top: 4px; }
.workspace-run-actions button { min-width: 0; min-height: 30px; border: 1px solid var(--border); border-radius: 8px; background: #fff; color: var(--text); padding: 0 9px; font-size: 11px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace-run-actions button.primary { border-color: #fb923c; background: #ea580c; color: #fff; }
.workspace-run-actions button.danger { border-color: #fecaca; background: #fff1f2; color: #be123c; }
.workspace-readable-text,
.workspace-entry-head strong,
.workspace-entry-grid strong,
.workspace-capability-strip strong,
.workspace-launch-card strong,
.workspace-create-head strong,
.workspace-create-switcher strong,
.workspace-create-source-grid strong,
.workspace-create-primary-action strong,
.workspace-create-funnel strong,
.workspace-create-copy strong,
.workspace-stage-copy strong,
.workspace-guide-head strong,
.workspace-guide-item strong,
.workspace-focus-item strong,
.workspace-local-card strong,
.workspace-project-card strong,
.workspace-goal-card strong,
.workspace-capability-card strong,
.workspace-run-card strong,
.workspace-section-current strong,
.workspace-quick-grid strong,
.workspace-flow-hero strong,
.workspace-flow-guide-head strong,
.workspace-flow-guide-option strong,
.workspace-flow-launcher strong,
.workspace-flow-chooser-copy strong {
  white-space: normal;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.workspace-entry-head em,
.workspace-create-head em,
.workspace-create-primary-action em,
.workspace-create-copy em,
.workspace-stage-copy em,
.workspace-focus-item em,
.workspace-local-card em,
.workspace-project-card em,
.workspace-goal-card em,
.workspace-capability-card em,
.workspace-run-card em,
.workspace-section-current em,
.workspace-flow-hero em,
.workspace-flow-launcher em {
  white-space: normal;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.workspace-overview { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.workspace-overview-card { min-width: 0; min-height: 74px; border: 1px solid var(--border); border-radius: 12px; background: var(--panel); color: var(--text); padding: 10px; display: grid; gap: 4px; text-align: left; box-shadow: 0 6px 18px rgba(17,24,39,.035); }
.workspace-overview-card:hover { border-color: var(--border-strong); background: #fbfbfa; transform: translateY(-1px); }
.workspace-overview-card.active { border-color: var(--accent); box-shadow: inset 3px 0 0 var(--accent), 0 8px 24px rgba(17,24,39,.06); }
.workspace-overview-card strong { font-size: 18px; line-height: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace-overview-card span { color: var(--text); font-size: 12px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace-overview-card em { color: var(--muted); font-size: 11px; font-style: normal; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace-section-nav {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px;
  align-items: start;
  padding: 2px 1px 4px;
}
.workspace-section-current {
  min-width: 0;
  min-height: 42px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  padding: 7px 10px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 6px;
  align-items: center;
  box-shadow: 0 7px 18px rgba(17,24,39,.04);
}
.workspace-section-current.overview { border-style: dashed; background: var(--panel-soft); }
.workspace-section-current.live { border-color: #93c5fd; background: #eff6ff; }
.workspace-section-current span { min-height: 20px; border: 1px solid var(--border); border-radius: 999px; background: var(--panel-soft); color: var(--muted); display: inline-flex; align-items: center; padding: 0 7px; font-size: 10px; font-weight: 850; white-space: nowrap; }
.workspace-section-current strong { min-width: 0; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace-section-current em { min-width: 0; color: var(--muted); font-size: 11px; font-style: normal; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace-readable-dashboard .workspace-mode-summary-copy strong,
.workspace-readable-dashboard .workspace-mode-summary-copy em,
.workspace-readable-dashboard .workspace-mode-summary-state small,
.workspace-readable-dashboard .workspace-section-current strong,
.workspace-readable-dashboard .workspace-section-current em,
.workspace-readable-dashboard .workspace-overview-card strong,
.workspace-readable-dashboard .workspace-overview-card em,
.workspace-readable-dashboard .workspace-quick-grid strong,
.workspace-readable-dashboard .workspace-quick-grid em,
.workspace-readable-dashboard .workspace-context-item strong,
.workspace-readable-dashboard .workspace-context-item em,
.workspace-readable-dashboard .workspace-local-lens em,
.workspace-readable-dashboard .workspace-project-lens em,
.workspace-readable-dashboard .workspace-goal-lens em,
.workspace-readable-dashboard .workspace-run-lens em,
.workspace-readable-dashboard .workspace-capability-lens em,
.workspace-readable-dashboard .workspace-mode-path em {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.workspace-readable-dashboard .workspace-mode-summary-copy strong,
.workspace-readable-dashboard .workspace-section-current strong,
.workspace-readable-dashboard .workspace-overview-card strong,
.workspace-readable-dashboard .workspace-quick-grid strong,
.workspace-readable-dashboard .workspace-context-item strong { -webkit-line-clamp: 2; }
.workspace-readable-dashboard .workspace-mode-summary-copy em,
.workspace-readable-dashboard .workspace-mode-summary-state small,
.workspace-readable-dashboard .workspace-section-current em,
.workspace-readable-dashboard .workspace-overview-card em,
.workspace-readable-dashboard .workspace-quick-grid em,
.workspace-readable-dashboard .workspace-context-item em,
.workspace-readable-dashboard .workspace-mode-path em { -webkit-line-clamp: 2; }
.workspace-readable-dashboard .workspace-local-lens em,
.workspace-readable-dashboard .workspace-project-lens em,
.workspace-readable-dashboard .workspace-goal-lens em,
.workspace-readable-dashboard .workspace-run-lens em,
.workspace-readable-dashboard .workspace-capability-lens em { -webkit-line-clamp: 2; font-size: 10px; }
.workspace-readable-dashboard .workspace-mode-summary { grid-template-columns: minmax(0, 1fr) minmax(112px, auto); align-items: stretch; }
.workspace-readable-dashboard .workspace-mode-summary-copy { align-self: center; }
.workspace-readable-dashboard .workspace-mode-summary-state { justify-items: start; align-self: center; }
.workspace-readable-dashboard .workspace-mode-summary-state b { max-width: 100%; }
.workspace-readable-dashboard .workspace-mode-summary-actions { grid-column: 1 / -1; justify-content: start; }
.workspace-readable-dashboard .workspace-section-current { grid-template-columns: auto minmax(0, 1fr); align-items: start; }
.workspace-readable-dashboard .workspace-section-current em { grid-column: 2; }
.workspace-readable-dashboard .workspace-overview-card { min-height: 86px; align-content: start; }
.workspace-readable-dashboard .workspace-overview-card strong { font-size: 16px; line-height: 1.18; }
.workspace-readable-dashboard .workspace-overview-card em { line-height: 1.4; }
.workspace-readable-dashboard .workspace-quick-grid button { min-height: 78px; align-content: start; }
.workspace-readable-dashboard .workspace-context-item { min-height: 68px; align-content: start; }
.workspace-readable-dashboard .workspace-mode-path span { min-height: 48px; }
.workspace-section-picker {
  position: relative;
  min-width: 128px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel);
  box-shadow: 0 7px 18px rgba(17,24,39,.035);
}
.workspace-section-picker summary {
  min-height: 42px;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 10px;
}
.workspace-section-picker summary::-webkit-details-marker { display: none; }
.workspace-section-picker summary strong { font-size: 12px; white-space: nowrap; }
.workspace-section-picker summary span { min-height: 20px; border-radius: 999px; background: var(--panel-soft); color: var(--muted); display: inline-flex; align-items: center; padding: 0 7px; font-size: 10px; font-weight: 800; white-space: nowrap; }
.workspace-section-options { display: grid; gap: 6px; padding: 0 7px 7px; min-width: 180px; }
.workspace-section-nav button {
  min-width: 0;
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  padding: 5px 9px;
  display: grid;
  gap: 2px;
  text-align: left;
  box-shadow: 0 5px 16px rgba(17,24,39,.03);
}
.workspace-section-nav button:hover { border-color: var(--border-strong); background: #fbfbfa; transform: translateY(-1px); }
.workspace-section-nav button.active { border-color: var(--accent); box-shadow: inset 0 -2px 0 var(--accent), 0 8px 20px rgba(17,24,39,.055); }
.workspace-section-nav button.selected { border-color: #111827; background: #111827; color: #fff; box-shadow: 0 8px 22px rgba(17,24,39,.14); }
.workspace-section-nav button.selected em,
.workspace-section-nav button.selected span { color: #fff; }
.workspace-section-nav button.live { border-color: #93c5fd; background: #eff6ff; }
.workspace-section-nav span,
.workspace-section-nav em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.workspace-section-nav span { font-size: 12px; font-weight: 700; }
.workspace-section-nav em { color: var(--muted); font-size: 10px; font-style: normal; }
.workspace-section-nav button.live em { color: #1d4ed8; font-weight: 700; }
.workspace-quick-start {
  display: grid;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: linear-gradient(180deg, #fff, #fbfbfa);
  padding: 10px;
  box-shadow: 0 8px 24px rgba(17,24,39,.04);
}
.workspace-quick-head { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.workspace-quick-head span { min-height: 21px; display: inline-grid; place-items: center; border: 1px solid var(--border); border-radius: 999px; background: var(--panel-soft); color: var(--muted); padding: 0 8px; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0; }
.workspace-quick-head strong { min-width: 0; color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace-quick-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; }
.workspace-quick-grid button { min-width: 0; min-height: 82px; border: 1px solid var(--border); border-radius: 11px; background: var(--panel); color: var(--text); padding: 8px; display: grid; gap: 3px; text-align: left; overflow: hidden; box-shadow: 0 5px 16px rgba(17,24,39,.03); }
.workspace-quick-grid button:hover { border-color: var(--border-strong); background: #fbfbfa; transform: translateY(-1px); box-shadow: 0 10px 24px rgba(17,24,39,.065); }
.workspace-quick-grid button.primary { border-color: var(--accent); box-shadow: inset 0 -2px 0 var(--accent), 0 8px 20px rgba(17,24,39,.055); }
.workspace-quick-grid button.live { border-color: #93c5fd; background: #eff6ff; }
.workspace-quick-grid span { width: 26px; height: 24px; border-radius: 9px; background: var(--panel-soft); color: var(--muted); display: grid; place-items: center; font-size: 11px; font-weight: 850; }
.workspace-quick-grid button.primary span { background: var(--accent); color: #fff; }
.workspace-quick-grid button.live span { background: #2563eb; color: #fff; }
.workspace-quick-grid strong,
.workspace-quick-grid em { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace-quick-grid strong { font-size: 11px; }
.workspace-quick-grid em { color: var(--muted); font-size: 10px; font-style: normal; }
.workspace-command-center {
  position: relative;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel);
  padding: 12px;
  box-shadow: 0 8px 28px rgba(17,24,39,.045);
  overflow: hidden;
}
.workspace-command-center::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--accent);
}
.workspace-command-center div { min-width: 0; }
.workspace-command-center strong { display: block; font-size: 14px; }
.workspace-command-center span { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace-command-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.workspace-command-actions button { min-height: 34px; border: 1px solid var(--border); border-radius: 10px; background: var(--panel-soft); color: var(--text); font-size: 12px; font-weight: 650; }
.workspace-command-actions button:first-child { background: var(--accent); border-color: var(--accent); color: #fff; }
.workspace-command-actions button:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(17,24,39,.08); }
.workspace-panel .workspace-view { display: none; }
.workspace-panel[data-workspace-tab="local"] .workspace-view[data-workspace-view~="local"],
.workspace-panel[data-workspace-tab="cloud"] .workspace-view[data-workspace-view~="cloud"],
.workspace-panel[data-workspace-tab="goals"] .workspace-view[data-workspace-view~="goals"],
.workspace-panel[data-workspace-tab="run"] .workspace-view[data-workspace-view~="run"],
.workspace-panel[data-workspace-tab="activity"] .workspace-view[data-workspace-view~="activity"] {
  display: grid;
  animation: workspaceViewIn .16s ease both;
}
.workspace-panel .workspace-view.workspace-focus-hidden { display: none; }
.workspace-block { gap: 8px; border-top: 1px solid var(--border); padding-top: 12px; }
.workspace-block h3 { margin: 0; color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0; }
.workspace-flow-backdrop { position: fixed; inset: 0; z-index: 28; background: rgba(17, 24, 39, .34); backdrop-filter: blur(6px); animation: fadeIn .14s ease both; }
.workspace-drawer { border: 1px solid var(--border); border-radius: 10px; background: var(--panel); overflow: hidden; }
.workspace-drawer[open] { position: fixed; z-index: 30; top: 72px; right: 18px; width: min(560px, calc(100vw - 28px)); max-height: min(82vh, 720px); overflow: auto; box-shadow: var(--shadow); animation: workspaceFlowIn .18s cubic-bezier(.2,.8,.2,1) both; }
.workspace-panel.workspace-flow-modal-only .workspace-drawer[open],
.workspace-panel.workspace-flow-modal-only .workspace-flow-chooser {
  position: fixed;
  z-index: 30;
  top: 50%;
  left: 50%;
  right: auto;
  width: min(680px, calc(100vw - 28px));
  max-height: min(86vh, 760px);
  overflow: auto;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.workspace-panel.workspace-flow-modal-only .workspace-flow-chooser {
  padding: 14px;
  display: grid !important;
}
.workspace-drawer summary { list-style: none; cursor: pointer; min-height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 11px; color: var(--text); font-size: 13px; font-weight: 650; }
.workspace-drawer summary::-webkit-details-marker { display: none; }
.workspace-drawer summary:hover { background: var(--panel-soft); }
.workspace-drawer summary span { min-width: 0; display: grid; gap: 2px; }
.workspace-drawer summary strong, .workspace-drawer summary small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace-drawer summary strong { font-size: 13px; }
.workspace-drawer summary small { color: var(--muted); font-size: 11px; font-weight: 500; }
.workspace-drawer summary em { color: var(--muted); font-size: 11px; font-style: normal; font-weight: 600; }
.workspace-drawer[open] summary { border-bottom: 1px solid var(--border); background: var(--panel-soft); }
.workspace-drawer[open] summary em { color: var(--text); }
.workspace-drawer[open] summary em::before { content: '收起'; }
.workspace-drawer[open] summary em { font-size: 0; }
.workspace-drawer[open] summary em::before { font-size: 11px; }
.workspace-drawer .stack-form { padding: 10px; animation: workspaceViewIn .14s ease both; }
.workspace-flow-hero {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: linear-gradient(180deg, #fff, #fbfbfa);
  padding: 12px;
  display: grid;
  gap: 4px;
  overflow: hidden;
}
.workspace-flow-hero::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 3px; background: #111827; }
.workspace-flow-hero.project-flow::before { background: #0f766e; }
.workspace-flow-hero.goal-flow::before { background: #2563eb; }
.workspace-flow-hero.task-flow::before { background: #7c3aed; }
.workspace-flow-hero span { width: fit-content; min-height: 21px; display: inline-grid; place-items: center; border: 1px solid var(--border); border-radius: 999px; background: var(--panel-soft); color: var(--muted); padding: 0 8px; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0; }
.workspace-flow-hero strong { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace-flow-hero em { color: var(--muted); font-size: 12px; font-style: normal; line-height: 1.45; }
.workspace-flow-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}
.workspace-flow-steps span {
  min-width: 0;
  min-height: 32px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--panel);
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 8px;
  font-size: 11px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.workspace-flow-steps b { width: 18px; height: 18px; border-radius: 999px; display: inline-grid; place-items: center; background: var(--panel-soft); color: var(--muted); font-size: 10px; }
.workspace-flow-steps span.current { border-color: var(--accent); color: var(--text); background: var(--accent-soft); }
.workspace-flow-steps span.current b { background: var(--accent); color: #fff; }
.workspace-flow-steps span.done { border-color: #bbf7d0; background: #f0fdf4; color: #15803d; }
.workspace-flow-steps span.done b { background: #22c55e; color: #fff; }
.workspace-flow-steps span.pending { opacity: .76; }
.workspace-flow-stepbar { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.workspace-flow-stepbar span { min-width: 0; min-height: 34px; border: 1px solid var(--border); border-radius: 999px; background: var(--panel); color: var(--muted); display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 0 8px; font-size: 11px; font-weight: 750; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace-flow-stepbar b { width: 19px; height: 19px; display: inline-grid; place-items: center; border-radius: 999px; background: var(--panel-soft); color: var(--muted); font-size: 10px; }
.workspace-flow-stepbar span.current { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 8px 20px rgba(17,24,39,.09); }
.workspace-flow-stepbar span.current b { background: #fff; color: var(--accent); }
.workspace-drawer[data-flow-stage="details"] .workspace-flow-stepbar span:nth-child(1),
.workspace-drawer[data-flow-stage="details"] .workspace-flow-stepbar span:nth-child(2) { border-color: var(--accent); background: var(--accent-soft); color: var(--text); }
.workspace-drawer[data-flow-stage="details"] .workspace-flow-stepbar span:nth-child(1) b { background: var(--accent); color: #fff; }
.workspace-drawer[data-flow-stage="details"] .workspace-flow-stepbar span:nth-child(2) { background: var(--accent); color: #fff; }
.workspace-drawer[data-flow-stage="details"] .workspace-flow-stepbar span:nth-child(2) b { background: #fff; color: var(--accent); }
.workspace-flow-grid { display: grid; gap: 8px; }
.workspace-wizard { gap: 10px; }
.workspace-flow-path { display: grid; gap: 8px; }
.workspace-flow-recommendation {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: linear-gradient(180deg, #fff, #fbfbfa);
  padding: 12px;
  display: grid;
  gap: 5px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(17,24,39,.03);
}
.workspace-flow-recommendation { position: relative; }
.workspace-flow-recommendation::after { content: ''; position: absolute; inset: 0 auto 0 0; width: 3px; background: #111827; }
.workspace-flow-recommendation.project::after { background: #0f766e; }
.workspace-flow-recommendation.goal::after { background: #2563eb; }
.workspace-flow-recommendation span {
  width: fit-content;
  min-height: 21px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--panel-soft);
  color: var(--muted);
  padding: 0 8px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}
.workspace-flow-recommendation strong { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace-flow-recommendation em { color: var(--muted); font-size: 12px; font-style: normal; line-height: 1.45; overflow: hidden; text-overflow: ellipsis; }
.workspace-flow-recommendation button {
  justify-self: start;
  min-height: 34px;
  border: 1px solid var(--accent);
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 700;
}
.workspace-flow-recommendation[data-flow-stage="start"] {
  min-height: 164px;
  align-content: start;
  padding: 14px 14px 13px;
  box-shadow: 0 12px 34px rgba(17,24,39,.07);
}
.workspace-flow-recommendation[data-flow-stage="start"] strong { font-size: 16px; }
.workspace-flow-recommendation[data-flow-stage="start"] button { min-height: 38px; padding: 0 14px; }
.workspace-flow-summary { min-width: 0; display: grid; gap: 6px; margin: 3px 0 2px; }
.workspace-flow-summary:empty { display: none; }
.workspace-flow-summary-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.workspace-flow-summary-grid span {
  min-width: 0;
  min-height: 54px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--panel);
  padding: 8px;
  display: grid;
  gap: 2px;
}
.workspace-flow-summary-grid b,
.workspace-flow-summary-grid em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-style: normal;
}
.workspace-flow-summary-grid b { color: var(--muted); font-size: 10px; font-weight: 800; }
.workspace-flow-summary-grid em { color: var(--text); font-size: 11px; font-weight: 650; }
.workspace-flow-more {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel);
  overflow: hidden;
}
.workspace-flow-more[open] { box-shadow: 0 8px 24px rgba(17,24,39,.04); }
.workspace-flow-more > summary {
  list-style: none;
  cursor: pointer;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 12px;
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
}
.workspace-flow-chooser .workspace-flow-more:not([open]) { border-style: dashed; background: rgba(255,255,255,.62); }
.workspace-flow-chooser .workspace-flow-more:not([open]) > summary { color: var(--muted); }
.workspace-flow-more > summary::-webkit-details-marker { display: none; }
.workspace-flow-more > summary::after { content: '▾'; color: var(--muted); transition: transform .15s ease; }
.workspace-flow-more[open] > summary { border-bottom: 1px solid var(--border); background: var(--panel-soft); }
.workspace-flow-more[open] > summary::after { transform: rotate(180deg); }
.workspace-flow-guide {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  padding: 11px;
  display: grid;
  gap: 9px;
  box-shadow: 0 10px 28px rgba(17,24,39,.045);
  animation: workspaceStageIn .16s cubic-bezier(.2,.8,.2,1) both;
}
.workspace-flow-guide-head {
  position: relative;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 11px;
}
.workspace-flow-guide-head::before {
  content: '';
  position: absolute;
  left: 0;
  top: 2px;
  bottom: 2px;
  width: 3px;
  border-radius: 999px;
  background: #111827;
}
.workspace-flow-guide-head.project::before { background: #0f766e; }
.workspace-flow-guide-head.goal::before { background: #2563eb; }
.workspace-flow-guide-head.task::before { background: #7c3aed; }
.workspace-flow-guide-head span {
  flex: 0 0 auto;
  width: fit-content;
  min-height: 21px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--panel-soft);
  color: var(--muted);
  padding: 0 8px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}
.workspace-flow-guide-head strong,
.workspace-flow-guide-head em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.workspace-flow-guide-head strong { font-size: 16px; white-space: nowrap; }
.workspace-flow-guide-head em { color: var(--muted); font-size: 12px; font-style: normal; line-height: 1.45; }
.agent-guide-state { min-width: 0; border: 1px solid #ccfbf1; border-radius: 12px; background: linear-gradient(180deg, #f0fdfa, #fff); padding: 9px; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 8px; }
.agent-guide-state.goal { border-color: #dbeafe; background: linear-gradient(180deg, #eff6ff, #fff); }
.agent-guide-state.task { border-color: #ddd6fe; background: linear-gradient(180deg, #f5f3ff, #fff); }
.agent-guide-state.automation { border-color: #ccfbf1; background: linear-gradient(180deg, #f0fdfa, #fff); }
.agent-guide-state-main { min-width: 0; display: grid; gap: 3px; align-content: center; }
.agent-guide-state-main span { width: fit-content; min-height: 20px; border: 1px solid #99f6e4; border-radius: 999px; background: #fff; color: #0f766e; display: inline-grid; place-items: center; padding: 0 7px; font-size: 9px; font-weight: 850; text-transform: uppercase; }
.agent-guide-state.goal .agent-guide-state-main span { border-color: #bfdbfe; color: #1d4ed8; }
.agent-guide-state.task .agent-guide-state-main span { border-color: #ddd6fe; color: #6d28d9; }
.agent-guide-state-main strong,
.agent-guide-state-main em { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.agent-guide-state-main strong { font-size: 12px; white-space: nowrap; }
.agent-guide-state-main em { color: var(--muted); font-size: 11px; line-height: 1.4; font-style: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.agent-guide-state-grid { min-width: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
.agent-guide-state-grid span { min-width: 0; min-height: 42px; border: 1px solid var(--border); border-radius: 9px; background: rgba(255,255,255,.82); padding: 6px; display: grid; gap: 2px; align-content: center; }
.agent-guide-state-grid b,
.agent-guide-state-grid em { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.agent-guide-state-grid b { color: var(--muted); font-size: 9px; font-weight: 850; }
.agent-guide-state-grid em { color: var(--text); font-size: 11px; font-style: normal; font-weight: 800; }
.agent-guide-requirements { grid-column: 1 / -1; min-width: 0; display: flex; flex-wrap: wrap; gap: 5px; }
.agent-guide-requirements span { min-width: 0; min-height: 23px; border: 1px solid var(--border); border-radius: 999px; background: #fff; color: var(--muted); display: inline-flex; align-items: center; gap: 5px; padding: 0 8px; font-size: 10px; font-weight: 800; }
.agent-guide-requirements span.ready { border-color: #bbf7d0; color: #15803d; background: #f0fdf4; }
.agent-guide-requirements span.partial { border-color: #fde68a; color: #92400e; background: #fffbeb; }
.agent-guide-requirements span.missing { border-color: #fecaca; color: #b91c1c; background: #fef2f2; }
.agent-guide-requirements span.gated { border-color: #ddd6fe; color: #6d28d9; background: #f5f3ff; }
.agent-guide-requirements b { font-size: 9px; }
.agent-guide-requirements em { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-style: normal; }
.workspace-flow-lens { min-width: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.workspace-flow-lens span {
  position: relative;
  min-width: 0;
  min-height: 38px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--panel);
  padding: 7px 8px 7px 31px;
  display: grid;
  gap: 1px;
  overflow: hidden;
}
.workspace-flow-lens b { position: absolute; left: 8px; top: 8px; width: 17px; height: 17px; border-radius: 999px; background: var(--panel-soft); color: var(--muted); display: grid; place-items: center; font-size: 9px; font-weight: 850; }
.workspace-flow-lens span.done { border-color: #bbf7d0; background: #f0fdf4; }
.workspace-flow-lens span.done b { background: #22c55e; color: #fff; }
.workspace-flow-lens span.current { border-color: var(--accent); background: var(--accent-soft); }
.workspace-flow-lens span.current b { background: var(--accent); color: #fff; }
.workspace-flow-lens strong,
.workspace-flow-lens em { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace-flow-lens strong { font-size: 11px; line-height: 1.25; }
.workspace-flow-lens em { display: none; }
.workspace-flow-guide-path {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.workspace-flow-guide-path span {
  min-height: 24px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--panel-soft);
  color: var(--muted);
  padding: 0 9px;
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 750;
}
.workspace-flow-guide-path span:not(:last-child)::after {
  content: '›';
  margin-left: 8px;
  color: var(--muted-2);
}
.workspace-flow-guide-path span.active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}
.workspace-flow-guide-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
.workspace-flow-choice-overview {
  display: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}
.workspace-flow-choice-overview span {
  min-width: 0;
  min-height: 44px;
  border: 1px solid rgba(15,118,110,.18);
  border-radius: 10px;
  background: linear-gradient(180deg, #fff, var(--panel-tint));
  padding: 7px 8px;
  display: grid;
  gap: 2px;
}
.workspace-flow-choice-overview b,
.workspace-flow-choice-overview em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.workspace-flow-choice-overview b { color: var(--accent); font-size: 10px; font-weight: 850; }
.workspace-flow-choice-overview em { color: var(--text); font-size: 11px; font-style: normal; font-weight: 750; }
.workspace-flow-choice-overview.goal span { border-color: rgba(37,99,235,.18); background: linear-gradient(180deg, #fff, var(--info-soft)); }
.workspace-flow-choice-overview.goal b { color: var(--info); }
.workspace-flow-choice-overview.task span { border-color: rgba(124,58,237,.18); background: linear-gradient(180deg, #fff, var(--violet-soft)); }
.workspace-flow-choice-overview.task b { color: var(--violet); }
.workspace-flow-visible-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}
.workspace-flow-visible-options.goal .workspace-flow-guide-option.primary-choice { border-color: var(--info); background: linear-gradient(180deg, #fff, var(--info-soft)); box-shadow: inset 3px 0 0 var(--info), 0 10px 26px rgba(37,99,235,.08); }
.workspace-flow-visible-options.task .workspace-flow-guide-option.primary-choice { border-color: var(--violet); background: linear-gradient(180deg, #fff, var(--violet-soft)); box-shadow: inset 3px 0 0 var(--violet), 0 10px 26px rgba(124,58,237,.08); }
.workspace-flow-primary-choice { min-width: 0; display: grid; }
.workspace-flow-more-choices { min-width: 0; border: 1px dashed var(--border); border-radius: 12px; background: var(--panel-soft); padding: 7px 8px; }
.workspace-flow-more-choices summary { min-height: 31px; cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.workspace-flow-more-choices summary::-webkit-details-marker { display: none; }
.workspace-flow-more-choices summary strong { min-width: 0; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace-flow-more-choices summary span { flex: 0 0 auto; min-height: 20px; border: 1px solid var(--border); border-radius: 999px; background: #fff; color: var(--muted); display: inline-grid; place-items: center; padding: 0 7px; font-size: 10px; font-weight: 800; }
.workspace-flow-guide-options-more { margin-top: 7px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.workspace-flow-guide-option {
  min-width: 0;
  min-height: 76px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: linear-gradient(180deg, #fff, #fbfbfa);
  color: var(--text);
  padding: 10px 11px;
  display: grid;
  grid-template-rows: auto auto auto;
  gap: 4px;
  text-align: left;
  overflow: hidden;
}
.workspace-flow-guide-option.primary-choice { min-height: 82px; border-color: var(--accent); background: linear-gradient(180deg, #fff, var(--accent-soft)); box-shadow: inset 3px 0 0 var(--accent), 0 10px 26px rgba(17,24,39,.07); }
.workspace-flow-visible-options .workspace-flow-guide-option.primary-choice { min-height: 82px; }
.workspace-flow-guide-option.primary-choice strong { font-size: 14px; }
.workspace-flow-guide-option.compact-choice { min-height: 72px; border-radius: 11px; padding: 9px; box-shadow: none; }
.workspace-flow-guide-option.compact-choice small { min-height: 20px; padding-top: 5px; }
.workspace-flow-guide-option:hover,
.workspace-flow-guide-option:focus-visible {
  border-color: var(--border-strong);
  background: var(--panel-soft);
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(17,24,39,.07);
}
.workspace-flow-guide-option.final {
  box-shadow: inset 3px 0 0 var(--accent);
}
.workspace-flow-guide-option.runtime-missing {
  border-style: dashed;
  background: #fff7ed;
}
.workspace-flow-guide-option.runtime-missing b {
  border-color: #fed7aa;
  background: #fffbeb;
  color: #b45309;
}
.workspace-flow-guide-option b {
  width: fit-content;
  min-height: 21px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--panel-soft);
  color: var(--muted);
  padding: 0 8px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}
.workspace-flow-guide-option strong,
.workspace-flow-guide-option em,
.workspace-flow-guide-option small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.workspace-flow-guide-option strong { font-size: 13px; line-height: 1.3; white-space: nowrap; }
.workspace-flow-guide-option em {
  display: none;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}
.workspace-flow-guide-option small {
  width: fit-content;
  min-height: 20px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  color: var(--muted-2);
  padding: 0 7px;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}
.workspace-flow-guide-back {
  justify-self: start;
  min-height: 32px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--panel-soft);
  color: var(--muted);
  padding: 0 11px;
  font-size: 12px;
  font-weight: 700;
}
.workspace-flow-guide-back:hover { background: var(--accent-soft); color: var(--text); transform: translateY(-1px); }
.workspace-flow-launchers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.workspace-flow-launcher {
  min-width: 0;
  min-height: 96px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel);
  color: var(--text);
  padding: 11px 12px;
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 4px;
  text-align: left;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(17,24,39,.03);
}
.workspace-flow-launcher:hover { border-color: var(--border-strong); background: var(--panel-soft); transform: translateY(-1px); box-shadow: 0 10px 24px rgba(17,24,39,.06); }
.workspace-flow-launcher span { width: fit-content; min-height: 20px; display: inline-grid; place-items: center; border: 1px solid var(--border); border-radius: 999px; background: var(--panel-soft); color: var(--muted); padding: 0 8px; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0; }
.workspace-flow-launcher strong,
.workspace-flow-launcher em { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.workspace-flow-launcher strong { font-size: 13px; line-height: 1.3; white-space: nowrap; }
.workspace-flow-launcher em { color: var(--muted); font-style: normal; font-size: 11px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.workspace-wizard-body { display: grid; grid-template-columns: minmax(150px, .56fr) minmax(0, 1fr); gap: 10px; align-items: start; }
.workspace-drawer[data-flow-stage="details"] .workspace-flow-recommendation button { opacity: .96; }
.workspace-drawer[data-flow-stage="details"] .workspace-flow-path,
.workspace-drawer[data-flow-stage="plan"] .workspace-flow-path,
.workspace-drawer[data-flow-stage="confirm"] .workspace-flow-path { display: none; }
.workspace-drawer[data-flow-stage="start"] .workspace-wizard-body,
.workspace-drawer[data-flow-stage="start"] .workspace-wizard-actions {
  display: none;
}
.workspace-drawer[data-flow-stage="details"] [data-wizard-step]:not([data-wizard-step="details"]),
.workspace-drawer[data-flow-stage="plan"] [data-wizard-step]:not([data-wizard-step="plan"]),
.workspace-drawer[data-flow-stage="confirm"] [data-wizard-step]:not([data-wizard-step="confirm"]) {
  display: none;
}
.workspace-drawer[data-flow-stage="details"] .workspace-wizard-actions,
.workspace-drawer[data-flow-stage="plan"] .workspace-wizard-actions {
  display: none;
}
#projectCreateDrawer[data-flow-stage="confirm"] #uploadProjectBtn,
#projectCreateDrawer[data-flow-stage="confirm"] #refreshProjectsBtn,
#goalCreateDrawer[data-flow-stage="confirm"] #linkGoalChatBtn,
#goalCreateDrawer[data-flow-stage="confirm"] #runGoalTaskBtn,
#goalCreateDrawer[data-flow-stage="confirm"] #refreshGoalsBtn {
  display: none;
}
.workspace-drawer[data-flow-stage="start"] .workspace-flow-path { margin-bottom: 2px; }
.workspace-drawer[data-flow-stage="start"] .workspace-flow-back { display: none; }
.workspace-flow-back { justify-self: start; min-height: 32px; border: 1px solid var(--border); border-radius: 999px; background: var(--panel-soft); color: var(--muted); padding: 0 11px; font-size: 12px; font-weight: 700; }
.workspace-flow-back:hover { background: var(--accent-soft); color: var(--text); transform: translateY(-1px); }
.workspace-flow-chooser {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: linear-gradient(180deg, #fff, #fbfbfa);
  padding: 12px;
  display: grid;
  gap: 10px;
  box-shadow: 0 8px 24px rgba(17,24,39,.04);
  animation: workspaceFlowIn .18s cubic-bezier(.2,.8,.2,1) both;
}
.workspace-flow-chooser-copy { display: grid; gap: 3px; }
.workspace-flow-chooser-copy span { width: fit-content; min-height: 21px; display: inline-grid; place-items: center; border: 1px solid var(--border); border-radius: 999px; background: var(--panel-soft); color: var(--muted); padding: 0 8px; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0; }
.workspace-flow-chooser-copy strong { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace-flow-chooser-copy em { color: var(--muted); font-size: 12px; font-style: normal; line-height: 1.45; }
.workspace-flow-chooser-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.workspace-flow-chooser-btn {
  min-width: 0;
  min-height: 74px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel);
  color: var(--text);
  padding: 10px 11px;
  display: grid;
  gap: 3px;
  text-align: left;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(17,24,39,.03);
}
.workspace-flow-chooser-btn:hover { border-color: var(--border-strong); background: var(--panel-soft); transform: translateY(-1px); }
.workspace-flow-chooser-btn strong,
.workspace-flow-chooser-btn span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace-flow-chooser-btn strong { font-size: 13px; }
.workspace-flow-chooser-btn span { color: var(--muted); font-size: 11px; font-style: normal; line-height: 1.4; }
.workspace-panel.workspace-flow-select-open .workspace-launchpad:not(.workspace-flow-host),
.workspace-panel.workspace-flow-select-open .workspace-stage,
.workspace-panel.workspace-flow-select-open .workspace-guide,
.workspace-panel.workspace-flow-select-open .workspace-context-bar,
.workspace-panel.workspace-flow-select-open .workspace-run-dock,
.workspace-panel.workspace-flow-select-open .workspace-overview,
.workspace-panel.workspace-flow-select-open .workspace-section-nav,
.workspace-panel.workspace-flow-select-open .workspace-quick-start {
  display: none;
}
.workspace-panel.workspace-flow-select-open #cloudNotesSection,
.workspace-panel.workspace-flow-select-open #goalsTasksSection,
.workspace-panel.workspace-flow-select-open #activityStepsSection,
.workspace-panel.workspace-flow-select-open #activityFilesSection,
.workspace-panel.workspace-flow-select-open #activityTimelineSection,
.workspace-panel.workspace-flow-select-open #activityCapabilitiesSection,
.workspace-panel.workspace-flow-select-open #activityMemorySection,
.workspace-panel.workspace-flow-select-open #activityFoldersSection,
.workspace-panel.workspace-flow-select-open #localProfileSection,
.workspace-panel.workspace-flow-select-open #localFilesSection,
.workspace-panel.workspace-flow-select-open #localPreviewSection,
.workspace-panel.workspace-flow-select-open #localDiffSection,
.workspace-panel.workspace-flow-select-open #localTerminalSection {
  display: none !important;
}
.workspace-panel.workspace-flow-select-open[data-workspace-flow-chooser="project"] #goalFlowChooser,
.workspace-panel.workspace-flow-select-open[data-workspace-flow-chooser="goal"] #projectFlowChooser {
  display: none !important;
}
.workspace-flow-steps.vertical { grid-template-columns: 1fr; gap: 8px; }
.workspace-flow-steps.vertical span { position: relative; min-height: 64px; justify-content: start; align-items: start; border-radius: 12px; padding: 9px 10px 9px 36px; display: grid; gap: 2px; background: var(--panel); }
.workspace-flow-steps.vertical span::before { content: ''; position: absolute; left: 18px; top: 32px; bottom: -10px; width: 1px; background: var(--border); }
.workspace-flow-steps.vertical span:last-child::before { display: none; }
.workspace-flow-steps.vertical b { position: absolute; left: 9px; top: 10px; width: 20px; height: 20px; }
.workspace-flow-steps.vertical strong,
.workspace-flow-steps.vertical em { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.workspace-flow-steps.vertical strong { color: var(--text); font-size: 12px; white-space: nowrap; }
.workspace-flow-steps.vertical em { color: var(--muted); font-size: 11px; font-style: normal; line-height: 1.35; }
.workspace-wizard-main { min-width: 0; display: grid; gap: 8px; }
.workspace-wizard-panel { min-width: 0; display: grid; gap: 8px; animation: workspaceStageIn .16s cubic-bezier(.2,.8,.2,1) both; }
.workspace-wizard-card { min-width: 0; border: 1px solid var(--border); border-radius: 12px; background: var(--panel); padding: 10px; display: grid; gap: 9px; box-shadow: 0 6px 18px rgba(17,24,39,.03); }
.workspace-wizard-card > span { width: fit-content; min-height: 21px; display: inline-grid; place-items: center; border: 1px solid var(--border); border-radius: 999px; background: var(--panel-soft); color: var(--muted); padding: 0 8px; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0; }
.task-config-stack { min-width: 0; display: grid; gap: 8px; }
.task-config-group { min-width: 0; border: 1px solid var(--border); border-radius: 12px; background: var(--panel); overflow: hidden; box-shadow: 0 6px 18px rgba(17,24,39,.025); }
.task-config-group summary { list-style: none; cursor: pointer; min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; }
.task-config-group summary::-webkit-details-marker { display: none; }
.task-config-group summary::after { content: '>'; color: var(--muted); font-size: 13px; font-weight: 850; transition: transform .16s ease; }
.task-config-group[open] summary { border-bottom: 1px solid var(--border); background: var(--panel-soft); }
.task-config-group[open] summary::after { transform: rotate(90deg); }
.task-config-group summary span { min-width: 0; display: grid; gap: 2px; }
.task-config-group summary strong,
.task-config-group summary small,
.task-config-group summary em { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task-config-group summary strong { font-size: 12px; line-height: 1.25; }
.task-config-group summary small { color: var(--muted); font-size: 11px; line-height: 1.25; }
.task-config-group summary em { flex: 0 0 auto; min-height: 22px; display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 999px; background: #fff; color: var(--muted); padding: 0 8px; font-size: 10px; font-style: normal; font-weight: 850; }
.task-config-body { min-width: 0; display: grid; gap: 8px; padding: 9px; animation: workspaceStageIn .16s cubic-bezier(.2,.8,.2,1) both; }
.task-preflight-panel { min-width: 0; border: 1px solid var(--border); border-radius: 12px; background: var(--panel); padding: 10px; display: grid; gap: 9px; box-shadow: 0 6px 18px rgba(17,24,39,.03); }
.task-preflight-panel.ready { border-color: #bbf7d0; background: #fbfffd; }
.task-preflight-panel.warn { border-color: #fed7aa; background: #fff7ed; }
.task-preflight-panel.blocked { border-color: #fecaca; background: #fef2f2; }
.task-preflight-panel.missing { border-style: dashed; background: #f9fafb; }
.task-preflight-head { min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 9px; align-items: start; }
.task-preflight-head span { min-width: 52px; min-height: 24px; border: 1px solid var(--border); border-radius: 999px; background: var(--panel-soft); color: var(--muted); padding: 0 9px; display: inline-grid; place-items: center; font-size: 10px; font-weight: 850; text-transform: uppercase; }
.task-preflight-panel.ready .task-preflight-head span { border-color: #86efac; background: #dcfce7; color: #15803d; }
.task-preflight-panel.warn .task-preflight-head span { border-color: #fed7aa; background: #fffbeb; color: #b45309; }
.task-preflight-panel.blocked .task-preflight-head span { border-color: #fecaca; background: #fee2e2; color: #b91c1c; }
.task-preflight-panel.missing .task-preflight-head span { border-color: #e5e7eb; background: #fff; color: var(--muted); }
.task-preflight-head div { min-width: 0; display: grid; gap: 3px; }
.task-preflight-head strong,
.task-preflight-head em { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.task-preflight-head strong { font-size: 13px; line-height: 1.35; white-space: nowrap; }
.task-preflight-head em { color: var(--muted); font-size: 11px; line-height: 1.45; font-style: normal; }
.task-preflight-grid { min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.task-preflight-grid span { min-width: 0; border: 1px solid var(--border); border-radius: 9px; background: rgba(255,255,255,.72); padding: 7px; display: grid; gap: 3px; }
.task-preflight-grid b,
.task-preflight-grid em { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task-preflight-grid b { color: var(--muted); font-size: 10px; }
.task-preflight-grid em { color: var(--text); font-size: 11px; font-style: normal; }
.task-preflight-actions { min-width: 0; border: 1px solid var(--border); border-radius: 10px; background: rgba(255,255,255,.76); padding: 9px; display: grid; gap: 8px; }
.task-preflight-actions.ready { border-color: #bbf7d0; background: #f7fef9; }
.task-preflight-actions.warn { border-color: #fde68a; background: #fffbeb; }
.task-preflight-actions.blocked,
.task-preflight-actions.missing { border-color: #fecaca; background: #fef2f2; }
.task-preflight-actions-head { min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; align-items: start; }
.task-preflight-actions-head > span { min-height: 22px; border: 1px solid var(--border); border-radius: 999px; background: #fff; color: var(--muted); display: inline-grid; place-items: center; padding: 0 8px; font-size: 10px; font-weight: 850; text-transform: uppercase; }
.task-preflight-actions-head div { min-width: 0; display: grid; gap: 2px; }
.task-preflight-actions-head strong,
.task-preflight-actions-head em { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.task-preflight-actions-head strong { font-size: 12px; white-space: nowrap; }
.task-preflight-actions-head em { color: var(--muted); font-size: 11px; line-height: 1.45; font-style: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.task-preflight-action-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.task-preflight-action-grid button { min-width: 0; min-height: 48px; border: 1px solid var(--border); border-radius: 9px; background: #fff; color: var(--text); padding: 7px; display: grid; gap: 2px; text-align: left; }
.task-preflight-action-grid button.primary { border-color: #99f6e4; background: #f0fdfa; color: #0f766e; box-shadow: inset 3px 0 0 #0d9488; }
.task-preflight-action-grid button:hover { border-color: var(--border-strong); transform: translateY(-1px); box-shadow: 0 10px 22px rgba(17,24,39,.06); }
.task-preflight-action-grid strong,
.task-preflight-action-grid em { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.task-preflight-action-grid strong { font-size: 11px; white-space: nowrap; }
.task-preflight-action-grid em { color: var(--muted); font-size: 10px; line-height: 1.35; font-style: normal; white-space: nowrap; }
.task-preflight-hints { display: flex; flex-wrap: wrap; gap: 5px; }
.task-preflight-hints span { min-height: 22px; border: 1px solid var(--border); border-radius: 999px; background: #fff; color: var(--muted); display: inline-flex; align-items: center; padding: 0 8px; font-size: 10px; font-weight: 800; }
.task-preflight-server { min-width: 0; border: 1px solid var(--border); border-radius: 10px; background: rgba(255,255,255,.78); padding: 9px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; align-items: start; }
.task-preflight-server.ready { border-color: #bbf7d0; background: #f7fef9; }
.task-preflight-server.warn { border-color: #fde68a; background: #fffbeb; }
.task-preflight-server.blocked, .task-preflight-server.missing { border-color: #fecaca; background: #fef2f2; }
.task-preflight-server > span { min-height: 22px; border: 1px solid var(--border); border-radius: 999px; background: #fff; color: var(--muted); display: inline-grid; place-items: center; padding: 0 8px; font-size: 10px; font-weight: 850; text-transform: uppercase; }
.task-preflight-server > div { min-width: 0; display: grid; gap: 2px; }
.task-preflight-server strong,
.task-preflight-server em { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.task-preflight-server strong { font-size: 12px; white-space: nowrap; }
.task-preflight-server em { color: var(--muted); font-size: 11px; line-height: 1.45; font-style: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.task-preflight-server-grid { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.task-preflight-server-grid small { min-width: 0; border: 1px solid var(--border); border-radius: 8px; background: #fff; padding: 6px; display: grid; gap: 2px; }
.task-preflight-server-grid small.ready { border-color: #bbf7d0; }
.task-preflight-server-grid small.warn { border-color: #fde68a; }
.task-preflight-server-grid small.blocked, .task-preflight-server-grid small.missing { border-color: #fecaca; }
.task-preflight-server-grid b,
.task-preflight-server-grid em { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task-preflight-server-grid b { color: var(--muted); font-size: 10px; }
.task-preflight-server-grid em { color: var(--text); font-size: 10px; font-style: normal; }
.task-preflight-server-next { grid-column: 1 / -1; min-width: 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.task-preflight-server-next b,
.task-preflight-server-next span { min-height: 22px; border: 1px solid var(--border); border-radius: 999px; background: #fff; padding: 0 8px; display: inline-flex; align-items: center; color: var(--muted); font-size: 10px; font-weight: 800; }
.task-preflight-server-next b { color: var(--text); }
.task-run-outcome {
  min-width: 0;
  border: 1px solid #bfdbfe;
  border-radius: 11px;
  background: linear-gradient(180deg, #fff, #f3f8ff);
  padding: 9px;
  display: grid;
  gap: 8px;
}
.task-run-outcome-head {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 3px 8px;
  align-items: center;
}
.task-run-outcome-head span {
  min-height: 22px;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  padding: 0 8px;
  display: inline-grid;
  place-items: center;
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}
.task-run-outcome-head strong,
.task-run-outcome-head em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.task-run-outcome-head strong { font-size: 12px; line-height: 1.25; white-space: nowrap; }
.task-run-outcome-head em { grid-column: 1 / -1; color: var(--muted); font-size: 11px; line-height: 1.45; font-style: normal; }
.task-run-outcome-grid {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}
.task-run-outcome-grid span {
  position: relative;
  min-width: 0;
  min-height: 66px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255,255,255,.78);
  padding: 8px 8px 8px 34px;
  display: grid;
  align-content: start;
  gap: 2px;
}
.task-run-outcome-grid b {
  position: absolute;
  left: 8px;
  top: 8px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  display: grid;
  place-items: center;
  font-size: 9px;
  font-weight: 850;
}
.task-run-outcome-grid strong,
.task-run-outcome-grid em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.task-run-outcome-grid strong { color: var(--text); font-size: 11px; line-height: 1.25; white-space: nowrap; }
.task-run-outcome-grid em { color: var(--muted); font-size: 10px; line-height: 1.35; font-style: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.task-confirm-row { min-height: 38px; grid-template-columns: 18px minmax(0, 1fr); align-items: center; border: 1px solid var(--border); border-radius: 9px; background: var(--panel-soft); padding: 8px 9px; color: var(--text) !important; font-size: 12px !important; line-height: 1.35; }
.task-confirm-row input { width: 16px; height: 16px; margin: 0; }
.workspace-review-card { min-height: 170px; align-content: start; background: linear-gradient(180deg, #fff, #fbfbfa); }
.workspace-review-card strong { min-width: 0; font-size: 18px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace-review-card em { color: var(--muted); font-size: 12px; font-style: normal; line-height: 1.5; overflow-wrap: anywhere; }
.workspace-wizard-hints { display: grid; gap: 6px; }
.workspace-wizard-hints span { min-width: 0; border: 1px solid var(--border); border-radius: 10px; background: var(--panel-soft); color: var(--muted); padding: 8px 9px; font-size: 11px; line-height: 1.45; }
.workspace-step-actions { display: flex; justify-content: flex-end; gap: 8px; }
.workspace-step-actions button { min-width: 96px; min-height: 36px; border: 1px solid var(--accent); border-radius: 10px; background: var(--accent); color: #fff; padding: 0 12px; font-size: 12px; font-weight: 750; }
.workspace-step-actions .secondary-btn,
.workspace-step-actions button.secondary-btn { border-color: var(--border); background: var(--panel-soft); color: var(--text); }
.workspace-step-actions button:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(17,24,39,.08); }
.workspace-wizard-actions { position: sticky; bottom: -10px; z-index: 2; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; border-top: 1px solid var(--border); background: rgba(255,255,255,.94); backdrop-filter: blur(12px); padding: 10px 0 0; }
.workspace-wizard-actions button { min-width: 0; min-height: 36px; border: 1px solid var(--border); border-radius: 10px; background: var(--panel-soft); color: var(--text); padding: 0 9px; font-size: 12px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace-wizard-actions button:first-child { background: var(--panel-soft); border-color: var(--border); color: var(--text); }
.workspace-wizard-actions button:nth-child(2) { background: var(--accent); border-color: var(--accent); color: #fff; }
.workspace-wizard-actions button:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(17,24,39,.08); }
.agent-steps, .recent-files, .tool-timeline, .workspace-tree { display: grid; gap: 7px; }
.agent-step, .recent-file, .timeline-item { border: 1px solid var(--border); background: var(--panel); border-radius: 10px; padding: 9px 10px; min-width: 0; }
.agent-step strong, .recent-file strong, .timeline-item strong { display: block; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.agent-step span, .recent-file span, .timeline-item span { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.agent-step.done { border-color: #bbf7d0; background: #f0fdf4; }
.agent-step.completed { border-color: #bbf7d0; background: #f0fdf4; }
.agent-step.in_progress { border-color: #bfdbfe; background: #eff6ff; }
.agent-step.pending { border-color: var(--border); background: var(--panel); }
.agent-step.error { border-color: #fecaca; background: #fef2f2; }
.timeline-item button, .recent-file button, .secondary-inline { margin-top: 7px; min-height: 28px; border: 1px solid var(--border); border-radius: 8px; background: var(--panel-soft); color: var(--text); padding: 0 8px; font-size: 12px; }
.capability-panel { display: grid; gap: 9px; }
.capability-hero {
  position: relative;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: linear-gradient(180deg, #fff, #fbfbfa);
  padding: 11px 12px;
  display: grid;
  gap: 5px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(17,24,39,.04);
}
.capability-hero::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 3px; background: #7c3aed; }
.capability-hero span { width: fit-content; min-height: 21px; display: inline-grid; place-items: center; border: 1px solid var(--border); border-radius: 999px; background: var(--panel-soft); color: var(--muted); padding: 0 8px; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0; }
.capability-hero strong { min-width: 0; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.capability-hero em { color: var(--muted); font-size: 12px; font-style: normal; line-height: 1.45; }
.capability-hero button { justify-self: start; min-height: 31px; border: 1px solid var(--border); border-radius: 999px; background: var(--accent); color: #fff; padding: 0 11px; font-size: 12px; font-weight: 750; }
.capability-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.capability-stats span { min-width: 0; min-height: 48px; border: 1px solid var(--border); border-radius: 10px; background: var(--panel); display: grid; place-items: center; gap: 1px; padding: 6px; }
.capability-stats b { color: var(--text); font-size: 15px; }
.capability-stats em { color: var(--muted); font-size: 10px; font-style: normal; font-weight: 750; white-space: nowrap; }
.capability-note { border: 1px solid #fed7aa; border-radius: 10px; background: #fff7ed; color: #c2410c; padding: 8px 9px; font-size: 11px; line-height: 1.45; }
.capability-domain-switcher { min-width: 0; border: 1px solid var(--border); border-radius: 12px; background: #fff; padding: 10px; display: grid; gap: 9px; box-shadow: 0 8px 22px rgba(17,24,39,.04); }
.capability-domain-copy { min-width: 0; display: grid; gap: 3px; }
.capability-domain-copy span { width: fit-content; min-height: 21px; border: 1px solid var(--border); border-radius: 999px; background: var(--panel-soft); color: var(--muted); display: inline-grid; place-items: center; padding: 0 8px; font-size: 10px; font-weight: 850; text-transform: uppercase; }
.capability-domain-copy strong,
.capability-domain-copy em { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.capability-domain-copy strong { font-size: 14px; white-space: nowrap; }
.capability-domain-copy em { color: var(--muted); font-size: 12px; line-height: 1.45; font-style: normal; }
.capability-domain-rail { min-width: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; border: 1px solid var(--border); border-radius: 11px; background: var(--panel-soft); padding: 4px; }
.capability-domain-rail button { min-width: 0; min-height: 38px; border: 1px solid transparent; border-radius: 9px; background: transparent; color: var(--text); padding: 5px 6px; display: grid; place-items: center; gap: 1px; }
.capability-domain-rail button:hover { border-color: var(--border); background: rgba(255,255,255,.75); transform: none; box-shadow: none; }
.capability-domain-rail button.active { border-color: var(--border); background: #fff; box-shadow: 0 6px 16px rgba(17,24,39,.05); }
.capability-domain-rail button.ready.active { border-color: #bbf7d0; }
.capability-domain-rail button.missing.active { border-color: #fecaca; }
.capability-domain-rail strong,
.capability-domain-rail em { min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.capability-domain-rail strong { font-size: 11px; font-weight: 850; }
.capability-domain-rail em { color: var(--muted); font-size: 9px; font-style: normal; font-weight: 800; }
.capability-focus-panel { min-width: 0; border: 1px solid var(--border); border-radius: 12px; background: #fff; padding: 10px; display: grid; gap: 9px; box-shadow: 0 8px 22px rgba(17,24,39,.04); }
.capability-focus-head { min-width: 0; display: grid; gap: 4px; }
.capability-focus-head span { width: fit-content; min-height: 21px; border: 1px solid #bfdbfe; border-radius: 999px; background: #eff6ff; color: #1d4ed8; display: inline-grid; place-items: center; padding: 0 8px; font-size: 10px; font-weight: 850; text-transform: uppercase; }
.capability-focus-head strong,
.capability-focus-head em { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.capability-focus-head strong { font-size: 14px; white-space: nowrap; }
.capability-focus-head em { color: var(--muted); font-size: 12px; line-height: 1.45; font-style: normal; }
.capability-focus-stack { min-width: 0; display: grid; gap: 9px; }
.capability-more-panel { min-width: 0; border: 1px dashed var(--border); border-radius: 12px; background: var(--panel-soft); padding: 8px 10px; }
.capability-more-panel summary { min-height: 34px; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--text); list-style: none; }
.capability-more-panel summary::-webkit-details-marker { display: none; }
.capability-more-panel summary strong { min-width: 0; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.capability-more-panel summary span { flex: 0 0 auto; min-height: 21px; border: 1px solid var(--border); border-radius: 999px; background: #fff; color: var(--muted); display: inline-grid; place-items: center; padding: 0 8px; font-size: 10px; font-weight: 800; }
.capability-more-stack { margin-top: 8px; display: grid; gap: 9px; }
.tool-readiness-panel { min-width: 0; border: 1px solid var(--border); border-radius: 12px; background: linear-gradient(180deg, #fff, #fbfbfa); padding: 10px; display: grid; gap: 9px; box-shadow: 0 8px 24px rgba(17,24,39,.045); }
.tool-readiness-panel.ready { box-shadow: inset 3px 0 0 #16a34a, 0 8px 24px rgba(17,24,39,.045); }
.tool-readiness-panel.gated { box-shadow: inset 3px 0 0 #2563eb, 0 8px 24px rgba(17,24,39,.045); }
.tool-readiness-panel.partial { box-shadow: inset 3px 0 0 #f59e0b, 0 8px 24px rgba(17,24,39,.045); }
.tool-readiness-panel.missing { box-shadow: inset 3px 0 0 #ef4444, 0 8px 24px rgba(17,24,39,.045); }
.tool-readiness-head { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: start; }
.tool-readiness-head > div:first-child { min-width: 0; display: grid; gap: 4px; }
.tool-readiness-head span { width: fit-content; min-height: 21px; border: 1px solid var(--border); border-radius: 999px; background: var(--panel-soft); color: var(--muted); display: inline-grid; place-items: center; padding: 0 8px; font-size: 10px; font-weight: 850; text-transform: uppercase; }
.tool-readiness-head strong,
.tool-readiness-head em { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.tool-readiness-head > div:first-child strong { font-size: 14px; white-space: nowrap; }
.tool-readiness-head em { color: var(--muted); font-size: 12px; font-style: normal; line-height: 1.45; }
.tool-readiness-score { min-width: 58px; min-height: 58px; border: 1px solid var(--border); border-radius: 12px; background: var(--panel-soft); display: grid; place-items: center; align-content: center; gap: 1px; }
.tool-readiness-score strong { font-size: 20px; line-height: 1; }
.tool-readiness-score span { color: var(--muted); font-size: 10px; font-weight: 850; text-transform: uppercase; }
.tool-readiness-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.tool-readiness-stats span { min-width: 0; min-height: 44px; border: 1px solid var(--border); border-radius: 9px; background: var(--panel); padding: 6px; display: grid; place-items: center; gap: 1px; }
.tool-readiness-stats b { font-size: 14px; }
.tool-readiness-stats em { color: var(--muted); font-size: 10px; font-style: normal; font-weight: 800; white-space: nowrap; }
.tool-readiness-grid { min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.tool-readiness-card { min-width: 0; min-height: 136px; border: 1px solid var(--border); border-radius: 10px; background: #fff; padding: 8px; display: grid; grid-template-rows: auto auto 1fr auto auto; gap: 5px; }
.tool-readiness-card.ready { border-color: #bbf7d0; background: #fbfffd; }
.tool-readiness-card.gated { border-color: #bfdbfe; background: #f8fbff; }
.tool-readiness-card.partial { border-color: #fed7aa; background: #fffaf5; }
.tool-readiness-card.missing { border-color: #fecaca; background: #fff7f7; }
.tool-readiness-card:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(17,24,39,.06); }
.tool-readiness-card-top { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.tool-readiness-card-top span,
.tool-readiness-card-top em { min-height: 20px; border: 1px solid var(--border); border-radius: 999px; background: var(--panel-soft); color: var(--muted); display: inline-flex; align-items: center; padding: 0 7px; font-size: 10px; font-weight: 850; font-style: normal; white-space: nowrap; }
.tool-readiness-card.ready .tool-readiness-card-top em { border-color: #86efac; background: #dcfce7; color: #15803d; }
.tool-readiness-card.gated .tool-readiness-card-top em { border-color: #bfdbfe; background: #eff6ff; color: #1d4ed8; }
.tool-readiness-card.partial .tool-readiness-card-top em { border-color: #fed7aa; background: #fff7ed; color: #c2410c; }
.tool-readiness-card.missing .tool-readiness-card-top em { border-color: #fecaca; background: #fee2e2; color: #b91c1c; }
.tool-readiness-card strong,
.tool-readiness-card p,
.tool-readiness-card small { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.tool-readiness-card strong { font-size: 12px; white-space: nowrap; }
.tool-readiness-card p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.tool-readiness-card small { color: var(--muted-2); font-size: 10px; font-weight: 800; white-space: nowrap; }
.tool-readiness-card button { min-height: 30px; border: 1px solid var(--border); border-radius: 9px; background: var(--panel-soft); color: var(--text); padding: 0 8px; font-size: 11px; font-weight: 850; }
.tool-readiness-card.missing button,
.tool-readiness-card.gated button { background: var(--accent); border-color: var(--accent); color: #fff; }
.toolchain-playbook { min-width: 0; border: 1px solid var(--border); border-radius: 12px; background: linear-gradient(180deg, #fff, #fbfbfa); padding: 10px; display: grid; gap: 9px; box-shadow: 0 8px 22px rgba(17,24,39,.04); }
.toolchain-head { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: start; }
.toolchain-head > div { min-width: 0; display: grid; gap: 4px; }
.toolchain-head span { width: fit-content; min-height: 21px; border: 1px solid var(--border); border-radius: 999px; background: var(--panel-soft); color: var(--muted); display: inline-grid; place-items: center; padding: 0 8px; font-size: 10px; font-weight: 850; text-transform: uppercase; }
.toolchain-head strong,
.toolchain-head em { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.toolchain-head strong { font-size: 14px; white-space: nowrap; }
.toolchain-head em { color: var(--muted); font-size: 12px; line-height: 1.45; font-style: normal; }
.toolchain-head button { flex: 0 0 auto; min-height: 31px; border: 1px solid #111827; border-radius: 9px; background: #111827; color: #fff; padding: 0 10px; font-size: 11px; font-weight: 850; }
.toolchain-scene-lens { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.toolchain-scene-lens span { min-width: 0; min-height: 42px; border: 1px solid var(--border); border-radius: 10px; background: var(--panel-soft); padding: 6px 8px; display: grid; gap: 2px; align-content: center; }
.toolchain-scene-lens b,
.toolchain-scene-lens em { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.toolchain-scene-lens b { color: var(--muted-2); font-size: 9px; font-weight: 850; text-transform: uppercase; }
.toolchain-scene-lens em { color: var(--text); font-size: 11px; font-style: normal; font-weight: 850; }
.toolchain-switcher { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.toolchain-switcher button { min-width: 0; min-height: 72px; border: 1px solid var(--border); border-radius: 10px; background: #fff; color: var(--text); padding: 8px; text-align: left; display: grid; grid-template-rows: auto 1fr auto; gap: 3px; box-shadow: 0 5px 16px rgba(17,24,39,.025); }
.toolchain-switcher button:hover { border-color: var(--border-strong); transform: translateY(-1px); box-shadow: 0 10px 24px rgba(17,24,39,.06); }
.toolchain-switcher button.active { border-color: #111827; box-shadow: inset 0 -2px 0 #111827, 0 8px 22px rgba(17,24,39,.06); }
.toolchain-switcher button.ready { background: #fbfffd; }
.toolchain-switcher button.gated { background: #f8fbff; }
.toolchain-switcher button.missing { border-style: dashed; background: #f9fafb; }
.toolchain-switcher span { width: fit-content; min-height: 20px; border: 1px solid var(--border); border-radius: 999px; background: var(--panel-soft); color: var(--muted); display: inline-grid; place-items: center; padding: 0 7px; font-size: 10px; font-weight: 850; text-transform: uppercase; }
.toolchain-switcher strong,
.toolchain-switcher em { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.toolchain-switcher strong { font-size: 12px; }
.toolchain-switcher em { color: var(--muted); font-size: 10px; font-style: normal; font-weight: 800; }
.toolchain-more-scenes { min-width: 0; border: 1px solid var(--border); border-radius: 10px; background: #fff; }
.toolchain-more-scenes summary { min-height: 36px; cursor: pointer; list-style: none; padding: 0 9px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.toolchain-more-scenes summary::-webkit-details-marker { display: none; }
.toolchain-more-scenes summary::after { content: '+'; width: 22px; height: 22px; border: 1px solid var(--border); border-radius: 8px; color: var(--muted); display: grid; place-items: center; font-weight: 900; justify-self: end; }
.toolchain-more-scenes[open] summary::after { content: '-'; }
.toolchain-more-scenes summary strong,
.toolchain-more-scenes summary span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.toolchain-more-scenes summary strong { font-size: 12px; }
.toolchain-more-scenes summary span { color: var(--muted); font-size: 11px; }
.toolchain-more-grid { border-top: 1px solid var(--border); padding: 7px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.toolchain-more-grid .active { border-color: #111827; box-shadow: inset 0 -2px 0 #111827, 0 8px 22px rgba(17,24,39,.06); }
.toolchain-detail { min-width: 0; border: 1px solid var(--border); border-radius: 12px; background: #fff; padding: 10px; display: grid; gap: 10px; box-shadow: inset 3px 0 0 #f59e0b; }
.toolchain-detail.ready { box-shadow: inset 3px 0 0 #16a34a; }
.toolchain-detail.gated { box-shadow: inset 3px 0 0 #2563eb; }
.toolchain-detail.missing { border-style: dashed; box-shadow: inset 3px 0 0 #9ca3af; }
.toolchain-detail-copy { min-width: 0; display: grid; gap: 4px; }
.toolchain-detail-copy span { width: fit-content; min-height: 21px; border: 1px solid var(--border); border-radius: 999px; background: var(--panel-soft); color: var(--muted); display: inline-grid; place-items: center; padding: 0 8px; font-size: 10px; font-weight: 850; text-transform: uppercase; }
.toolchain-detail-copy strong,
.toolchain-detail-copy em,
.toolchain-detail-copy small { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.toolchain-detail-copy strong { font-size: 14px; white-space: nowrap; }
.toolchain-detail-copy em { color: var(--muted); font-size: 12px; line-height: 1.45; font-style: normal; }
.toolchain-detail-copy small { color: var(--muted-2); font-size: 11px; font-weight: 800; white-space: nowrap; }
.toolchain-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.toolchain-steps span { min-width: 0; min-height: 64px; border: 1px solid var(--border); border-radius: 10px; background: var(--panel-soft); padding: 8px; display: grid; grid-template-columns: 25px minmax(0, 1fr); grid-template-rows: auto auto; gap: 2px 7px; align-items: center; }
.toolchain-steps span.ready { border-color: #bbf7d0; background: #f0fdf4; }
.toolchain-steps span.gated,
.toolchain-steps span.partial { border-color: #bfdbfe; background: #eff6ff; }
.toolchain-steps span.missing { border-style: dashed; color: var(--muted); }
.toolchain-steps b { grid-row: 1 / span 2; width: 25px; height: 25px; border: 1px solid var(--border); border-radius: 8px; background: #fff; color: var(--muted); display: grid; place-items: center; font-size: 10px; }
.toolchain-steps strong,
.toolchain-steps em { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.toolchain-steps strong { font-size: 11px; }
.toolchain-steps em { color: var(--muted); font-size: 10px; font-style: normal; }
.toolchain-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.toolchain-actions button { min-width: 0; min-height: 32px; border: 1px solid var(--border); border-radius: 9px; background: var(--panel-soft); color: var(--text); padding: 0 8px; font-size: 11px; font-weight: 850; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.toolchain-actions button.primary { border-color: var(--accent); background: var(--accent); color: #fff; }
.tool-center-panel { min-width: 0; border: 1px solid var(--border); border-radius: 12px; background: var(--panel); padding: 10px; display: grid; gap: 9px; box-shadow: 0 8px 22px rgba(17,24,39,.04); }
.tool-center-head { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: start; }
.tool-center-head > div:first-child { min-width: 0; display: grid; gap: 4px; }
.tool-center-head span { width: fit-content; min-height: 21px; border: 1px solid var(--border); border-radius: 999px; background: var(--panel-soft); color: var(--muted); display: inline-grid; place-items: center; padding: 0 8px; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.tool-center-head strong { min-width: 0; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tool-center-head em { color: var(--muted); font-size: 12px; font-style: normal; line-height: 1.45; }
.tool-center-stats { display: grid; grid-template-columns: repeat(4, 46px); gap: 5px; }
.tool-center-stats span { min-width: 0; min-height: 42px; border: 1px solid var(--border); border-radius: 9px; background: var(--panel-soft); display: grid; place-items: center; gap: 1px; padding: 5px; }
.tool-center-stats b { font-size: 13px; }
.tool-center-stats em { color: var(--muted); font-size: 9px; font-style: normal; font-weight: 800; white-space: nowrap; }
.tool-center-controls { display: grid; gap: 8px; }
.tool-center-controls input { width: 100%; min-height: 36px; border: 1px solid var(--border); border-radius: 10px; background: var(--panel-soft); color: var(--text); outline: none; padding: 0 10px; font-size: 12px; }
.tool-center-controls input:focus { border-color: #aab1bd; box-shadow: 0 0 0 3px rgba(17, 24, 39, .07); }
.tool-center-shell { min-width: 0; display: grid; grid-template-columns: 138px minmax(0, 1fr); gap: 8px; align-items: start; }
.tool-center-categories { min-width: 0; border: 1px solid var(--border); border-radius: 11px; background: var(--panel-soft); padding: 5px; display: grid; gap: 5px; }
.tool-center-categories button { min-width: 0; min-height: 36px; border: 1px solid transparent; border-radius: 9px; background: transparent; color: var(--muted); display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px; padding: 0 7px; text-align: left; }
.tool-center-categories button:hover { border-color: var(--border); background: rgba(255,255,255,.75); transform: none; box-shadow: none; color: var(--text); }
.tool-center-categories button.active { border-color: var(--border); background: #fff; color: var(--text); box-shadow: 0 6px 16px rgba(17,24,39,.05); }
.tool-center-categories strong { font-size: 11px; }
.tool-center-categories em { min-width: 18px; min-height: 18px; border-radius: 999px; background: var(--panel-soft); color: var(--muted); display: grid; place-items: center; font-style: normal; font-size: 10px; font-weight: 800; }
.tool-center-categories button.active em { background: #111827; color: #fff; }
.tool-center-current { min-width: 0; border: 1px solid var(--border); border-radius: 11px; background: #fff; padding: 9px; display: grid; gap: 8px; box-shadow: inset 3px 0 0 #7c3aed, 0 6px 18px rgba(17,24,39,.025); }
.tool-center-current-head { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: start; }
.tool-center-current-head > div { min-width: 0; display: grid; gap: 3px; }
.tool-center-current-head span { width: fit-content; min-height: 20px; border: 1px solid #ddd6fe; border-radius: 999px; background: #f5f3ff; color: #6d28d9; display: inline-grid; place-items: center; padding: 0 7px; font-size: 10px; font-weight: 850; }
.tool-center-current-head strong,
.tool-center-current-head em { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.tool-center-current-head strong { font-size: 13px; white-space: normal; line-height: 1.25; }
.tool-center-current-head em { color: var(--muted); font-size: 11px; font-style: normal; line-height: 1.45; }
.tool-center-current-head > b { min-width: 38px; min-height: 38px; border: 1px solid var(--border); border-radius: 10px; background: var(--panel-soft); display: grid; place-items: center; font-size: 16px; }
.tool-center-next { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.tool-center-next span { min-width: 0; min-height: 42px; border: 1px solid var(--border); border-radius: 9px; background: var(--panel-soft); padding: 6px 7px; display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 6px; align-items: center; }
.tool-center-next b { width: 24px; height: 24px; border: 1px solid var(--border); border-radius: 8px; background: #fff; color: var(--muted); display: grid; place-items: center; font-size: 10px; }
.tool-center-next em { min-width: 0; color: var(--text); font-size: 11px; font-style: normal; font-weight: 800; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tool-center-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.tool-center-card { min-width: 0; min-height: 144px; border: 1px solid var(--border); border-radius: 10px; background: #fff; padding: 9px; display: grid; grid-template-rows: auto auto 1fr auto auto; gap: 6px; box-shadow: 0 6px 18px rgba(17,24,39,.03); }
.tool-center-card.ready { box-shadow: inset 3px 0 0 #16a34a, 0 6px 18px rgba(17,24,39,.03); }
.tool-center-card.gated { box-shadow: inset 3px 0 0 #2563eb, 0 6px 18px rgba(17,24,39,.03); }
.tool-center-card.missing { border-style: dashed; background: #f9fafb; box-shadow: inset 3px 0 0 #d1d5db; }
.tool-center-card:hover { border-color: var(--border-strong); transform: translateY(-1px); box-shadow: 0 12px 26px rgba(17,24,39,.07); }
.tool-center-card-head { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 7px; }
.tool-center-card-head span,
.tool-center-card-head em,
.tool-center-badges small { min-height: 20px; border: 1px solid var(--border); border-radius: 999px; background: var(--panel-soft); color: var(--muted); display: inline-flex; align-items: center; padding: 0 7px; font-size: 10px; font-weight: 800; font-style: normal; white-space: nowrap; }
.tool-center-card-head em { flex: 0 0 auto; }
.tool-center-card > strong,
.tool-center-card p { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.tool-center-card > strong { font-size: 12px; line-height: 1.3; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.tool-center-card p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.tool-center-next-step { min-width: 0; border: 1px solid var(--border); border-radius: 9px; background: var(--panel-soft); padding: 7px; display: grid; gap: 2px; }
.tool-center-next-step b,
.tool-center-next-step span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tool-center-next-step b { color: var(--text); font-size: 10px; font-weight: 850; }
.tool-center-next-step span { color: var(--muted); font-size: 10px; }
.tool-center-badges { min-width: 0; display: flex; flex-wrap: wrap; gap: 5px; }
.tool-center-badges small { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.tool-center-badges .risk-high { border-color: #fed7aa; background: #fff7ed; color: #c2410c; }
.tool-center-badges .risk-medium { border-color: #bfdbfe; background: #eff6ff; color: #1d4ed8; }
.tool-center-badges .risk-low { border-color: #bbf7d0; background: #f0fdf4; color: #15803d; }
.tool-center-card button { min-width: 0; min-height: 31px; border: 1px solid var(--border); border-radius: 9px; background: var(--accent); color: #fff; padding: 0 8px; font-size: 11px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tool-center-card.missing button { background: var(--panel); color: var(--text); }
.tool-center-more-tools { min-width: 0; border: 1px dashed var(--border); border-radius: 10px; background: var(--panel-soft); padding: 7px 8px; }
.tool-center-more-tools summary { min-height: 31px; cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tool-center-more-tools summary::-webkit-details-marker { display: none; }
.tool-center-more-tools summary strong { min-width: 0; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tool-center-more-tools summary span { flex: 0 0 auto; min-height: 20px; border: 1px solid var(--border); border-radius: 999px; background: #fff; color: var(--muted); display: inline-grid; place-items: center; padding: 0 7px; font-size: 10px; font-weight: 800; }
.tool-center-more-tools .tool-center-grid { margin-top: 7px; }
.tool-center-empty { border: 1px dashed var(--border); border-radius: 10px; background: var(--panel-soft); padding: 11px; display: grid; gap: 3px; }
.tool-center-empty strong { font-size: 13px; }
.tool-center-empty span { color: var(--muted); font-size: 12px; }
.tool-catalog { min-width: 0; display: grid; gap: 9px; }
.tool-catalog-head {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #111827;
  color: #fff;
  padding: 11px 12px;
  display: grid;
  gap: 4px;
  box-shadow: 0 8px 22px rgba(17,24,39,.08);
}
.tool-catalog-head span { width: fit-content; min-height: 21px; display: inline-grid; place-items: center; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; background: rgba(255,255,255,.1); color: rgba(255,255,255,.72); padding: 0 8px; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.tool-catalog-head strong { min-width: 0; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tool-catalog-head em { color: rgba(255,255,255,.68); font-size: 12px; line-height: 1.45; font-style: normal; }
.tool-catalog-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.tool-catalog-card {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: linear-gradient(180deg, #fff, #fbfbfa);
  padding: 10px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 9px;
  box-shadow: 0 6px 18px rgba(17,24,39,.035);
}
.tool-catalog-card.ready { border-color: #bbf7d0; background: #fbfffd; }
.tool-catalog-card.partial { border-color: #bfdbfe; background: #f8fbff; }
.tool-catalog-card.missing { border-style: dashed; color: var(--muted); }
.tool-catalog-step { width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--border); background: var(--panel-soft); color: var(--muted); display: grid; place-items: center; font-size: 11px; font-weight: 850; }
.tool-catalog-card.ready .tool-catalog-step { border-color: #86efac; background: #dcfce7; color: #15803d; }
.tool-catalog-card.partial .tool-catalog-step { border-color: #bfdbfe; background: #eff6ff; color: #1d4ed8; }
.tool-catalog-card.missing .tool-catalog-step { border-color: #e5e7eb; background: #f9fafb; }
.tool-catalog-copy { min-width: 0; display: grid; gap: 3px; }
.tool-catalog-copy strong,
.tool-catalog-copy em,
.tool-catalog-copy small { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.tool-catalog-copy strong { font-size: 13px; white-space: nowrap; }
.tool-catalog-copy em { color: var(--muted); font-size: 11px; line-height: 1.45; font-style: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.tool-catalog-copy small { color: var(--muted-2); font-size: 10px; font-weight: 800; white-space: nowrap; }
.tool-catalog-actions { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.tool-catalog-actions button { min-width: 0; min-height: 31px; border: 1px solid var(--border); border-radius: 9px; background: var(--panel); color: var(--text); padding: 0 8px; font-size: 11px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tool-catalog-actions button:first-child { background: var(--accent); border-color: var(--accent); color: #fff; }
.tool-catalog-actions button:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(17,24,39,.08); }
.capability-groups { display: grid; gap: 8px; }
.capability-group { min-width: 0; border: 1px solid var(--border); border-radius: 12px; background: var(--panel); overflow: hidden; }
.capability-group summary { list-style: none; cursor: pointer; min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 11px; }
.capability-group summary::-webkit-details-marker { display: none; }
.capability-group summary::after { content: '▾'; color: var(--muted); transition: transform .15s ease; }
.capability-group[open] summary { border-bottom: 1px solid var(--border); background: var(--panel-soft); }
.capability-group[open] summary::after { transform: rotate(180deg); }
.capability-group summary strong { font-size: 12px; }
.capability-group summary span { color: var(--muted); font-size: 11px; margin-left: auto; }
.capability-tool-list { display: grid; gap: 7px; padding: 8px; }
.capability-tool { min-width: 0; border: 1px solid var(--border); border-radius: 10px; background: #fff; padding: 9px; display: grid; gap: 6px; box-shadow: 0 4px 14px rgba(17,24,39,.025); }
.capability-tool.high { border-color: #fed7aa; background: #fffaf5; }
.capability-tool.medium { border-color: #bfdbfe; background: #f8fbff; }
.capability-tool.low { border-color: #bbf7d0; background: #fbfffd; }
.capability-tool div:first-child { min-width: 0; display: grid; gap: 2px; }
.capability-tool strong,
.capability-tool small,
.capability-tool em { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.capability-tool strong { font-size: 12px; }
.capability-tool small { color: var(--muted); font-size: 11px; line-height: 1.35; }
.capability-tool em { color: var(--muted-2); font-size: 10px; font-style: normal; font-weight: 700; }
.capability-tool-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.capability-tool-tags span { min-height: 22px; border: 1px solid var(--border); border-radius: 999px; background: var(--panel-soft); color: var(--muted); display: inline-flex; align-items: center; padding: 0 7px; font-size: 10px; font-weight: 750; }
.runtime-panel { min-width: 0; border: 1px solid var(--border); border-radius: 12px; background: var(--panel); padding: 10px; display: grid; gap: 9px; box-shadow: 0 6px 18px rgba(17,24,39,.03); }
.runtime-panel.failed { border-color: #fecaca; background: #fff7f7; }
.runtime-panel.loading { border-style: dashed; }
.runtime-head { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.runtime-head div { min-width: 0; display: grid; gap: 4px; }
.runtime-head span { width: fit-content; min-height: 21px; display: inline-grid; place-items: center; border: 1px solid var(--border); border-radius: 999px; background: var(--panel-soft); color: var(--muted); padding: 0 8px; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.runtime-head strong { min-width: 0; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.runtime-head em { color: var(--muted); font-size: 12px; font-style: normal; line-height: 1.45; }
.runtime-head button { flex: 0 0 auto; min-height: 31px; border: 1px solid var(--border); border-radius: 9px; background: var(--panel-soft); color: var(--text); padding: 0 10px; font-size: 11px; font-weight: 800; }
.runtime-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.runtime-meta span { min-width: 0; border: 1px solid var(--border); border-radius: 9px; background: var(--panel-soft); padding: 7px; display: grid; gap: 2px; }
.runtime-meta b,
.runtime-meta em { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.runtime-meta b { font-size: 10px; color: var(--muted); }
.runtime-meta em { font-size: 11px; color: var(--text); font-style: normal; }
.runtime-section { min-width: 0; border: 1px solid var(--border); border-radius: 12px; background: #fff; padding: 10px; display: grid; gap: 9px; }
.runtime-section.compact { background: #fbfbfa; }
.runtime-section-head { min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 3px 8px; align-items: center; }
.runtime-section-head span { min-height: 21px; border: 1px solid #ccfbf1; border-radius: 999px; background: #f0fdfa; color: #0f766e; display: inline-grid; place-items: center; padding: 0 8px; font-size: 10px; font-weight: 850; text-transform: uppercase; }
.runtime-section-head strong,
.runtime-section-head em { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.runtime-section-head strong { font-size: 13px; white-space: nowrap; }
.runtime-section-head em { grid-column: 1 / -1; color: var(--muted); font-size: 11px; font-style: normal; line-height: 1.45; }
.runtime-surface-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; }
.runtime-surface { min-width: 0; min-height: 142px; border: 1px solid var(--border); border-radius: 10px; background: #fff; padding: 8px; display: grid; grid-template-rows: auto auto 1fr auto auto; gap: 4px; box-shadow: 0 6px 16px rgba(17,24,39,.03); }
.runtime-surface.ready { border-color: #bbf7d0; background: #f7fef9; }
.runtime-surface.partial { border-color: #fde68a; background: #fffdf2; }
.runtime-surface.missing { border-style: dashed; background: #f9fafb; }
.runtime-surface.gated { border-color: #ddd6fe; background: #faf5ff; }
.runtime-surface span { width: fit-content; min-height: 19px; border: 1px solid var(--border); border-radius: 999px; background: #fff; color: var(--muted); display: inline-grid; place-items: center; padding: 0 7px; font-size: 9px; font-weight: 850; }
.runtime-surface.ready span { border-color: #bbf7d0; color: #15803d; }
.runtime-surface.partial span { border-color: #fde68a; color: #92400e; }
.runtime-surface.gated span { border-color: #ddd6fe; color: #6d28d9; }
.runtime-surface strong,
.runtime-surface em,
.runtime-surface small { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.runtime-surface strong { font-size: 12px; white-space: nowrap; }
.runtime-surface em { color: var(--muted); font-size: 10px; line-height: 1.35; font-style: normal; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.runtime-surface small { color: #64748b; font-size: 10px; font-weight: 750; white-space: nowrap; }
.runtime-surface button { min-height: 28px; border: 1px solid var(--border); border-radius: 8px; background: #fff; color: var(--text); padding: 0 8px; font-size: 11px; font-weight: 850; }
.runtime-surface.ready button { border-color: #99f6e4; background: #f0fdfa; color: #0f766e; }
.runtime-code-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
.runtime-code-grid span { min-width: 0; min-height: 74px; border: 1px solid var(--border); border-radius: 10px; background: #fff; padding: 8px; display: grid; grid-template-rows: auto 1fr auto; gap: 3px; }
.runtime-code-grid span.ready { border-color: #bbf7d0; background: #f7fef9; }
.runtime-code-grid span.missing { border-style: dashed; background: #f9fafb; }
.runtime-code-grid b,
.runtime-code-grid em,
.runtime-code-grid small { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.runtime-code-grid b { font-size: 12px; }
.runtime-code-grid em { color: var(--muted); font-size: 10px; line-height: 1.35; font-style: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.runtime-code-grid small { color: #0f766e; font-size: 10px; font-weight: 850; white-space: nowrap; }
.runtime-health { min-width: 0; border: 1px solid var(--border); border-radius: 10px; background: #f8fafc; padding: 8px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.runtime-health span { min-width: 0; min-height: 44px; border: 1px solid var(--border); border-radius: 9px; background: #fff; display: grid; place-items: center; gap: 1px; padding: 5px; }
.runtime-health span.warn { border-color: #fed7aa; background: #fff7ed; }
.runtime-health b { color: var(--text); font-size: 14px; }
.runtime-health em { color: var(--muted); font-size: 10px; font-style: normal; font-weight: 800; }
.runtime-health p { grid-column: 1 / -1; margin: 0; color: #c2410c; font-size: 11px; line-height: 1.45; }
.runtime-sandbox-card { min-width: 0; border: 1px solid #ccfbf1; border-radius: 12px; background: linear-gradient(180deg, #f0fdfa, #fff); padding: 9px; display: grid; gap: 8px; box-shadow: inset 0 1px 0 rgba(255,255,255,.88); }
.runtime-sandbox-card.partial { border-color: #fde68a; background: linear-gradient(180deg, #fffbeb, #fff); }
.runtime-sandbox-card.missing { border-color: #fecaca; background: linear-gradient(180deg, #fff7f7, #fff); }
.runtime-sandbox-head { min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; align-items: start; }
.runtime-sandbox-head > span { min-height: 22px; display: inline-grid; place-items: center; border: 1px solid #99f6e4; border-radius: 999px; background: #fff; color: #0f766e; padding: 0 8px; font-size: 10px; font-weight: 850; text-transform: uppercase; }
.runtime-sandbox-card.partial .runtime-sandbox-head > span { border-color: #fde68a; color: #92400e; }
.runtime-sandbox-card.missing .runtime-sandbox-head > span { border-color: #fecaca; color: #b91c1c; }
.runtime-sandbox-head div { min-width: 0; display: grid; gap: 2px; }
.runtime-sandbox-head strong,
.runtime-sandbox-head em { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.runtime-sandbox-head strong { font-size: 12px; white-space: nowrap; }
.runtime-sandbox-head em { color: var(--muted); font-size: 11px; font-style: normal; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.runtime-sandbox-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.runtime-sandbox-grid span { min-width: 0; min-height: 44px; border: 1px solid #e2e8f0; border-radius: 9px; background: #fff; display: grid; place-items: center; gap: 1px; padding: 5px; }
.runtime-sandbox-grid span.ready { border-color: #bbf7d0; background: #f0fdf4; }
.runtime-sandbox-grid span.partial { border-color: #fde68a; background: #fffbeb; }
.runtime-sandbox-grid span.missing { border-color: #fecaca; background: #fef2f2; }
.runtime-sandbox-grid b { max-width: 100%; color: var(--text); font-size: 12px; line-height: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.runtime-sandbox-grid em { color: var(--muted); font-size: 10px; font-style: normal; font-weight: 800; white-space: nowrap; }
.runtime-sandbox-meta { display: grid; gap: 5px; }
.runtime-sandbox-meta span { min-width: 0; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 8px; align-items: center; border: 1px solid #e2e8f0; border-radius: 8px; background: rgba(255,255,255,.78); padding: 6px 8px; }
.runtime-sandbox-meta b { color: #64748b; font-size: 10px; font-weight: 850; }
.runtime-sandbox-meta em { min-width: 0; color: var(--text); font-size: 11px; font-style: normal; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.runtime-sandbox-script { max-height: 96px; margin: 0; overflow: auto; border: 1px solid #e2e8f0; border-radius: 9px; background: #0f172a; color: #d1fae5; padding: 8px; font-family: Consolas, "SFMono-Regular", monospace; font-size: 10px; line-height: 1.45; white-space: pre-wrap; }
.runtime-observability { min-width: 0; border: 1px solid #dbeafe; border-radius: 12px; background: linear-gradient(180deg, #f8fbff, #fff); padding: 9px; display: grid; gap: 8px; box-shadow: inset 0 1px 0 rgba(255,255,255,.86); }
.runtime-observability.partial { border-color: #fde68a; background: linear-gradient(180deg, #fffbeb, #fff); }
.runtime-observability.warn { border-color: #fed7aa; background: linear-gradient(180deg, #fff7ed, #fff); }
.runtime-observability.missing { border-color: #fecaca; background: linear-gradient(180deg, #fef2f2, #fff); }
.runtime-observability-head { min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; align-items: start; }
.runtime-observability-head > span { min-height: 22px; display: inline-grid; place-items: center; border: 1px solid #bfdbfe; border-radius: 999px; background: #eff6ff; color: #1d4ed8; padding: 0 8px; font-size: 10px; font-weight: 850; text-transform: uppercase; }
.runtime-observability-head div { min-width: 0; display: grid; gap: 2px; }
.runtime-observability-head strong,
.runtime-observability-head em { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.runtime-observability-head strong { font-size: 12px; white-space: nowrap; }
.runtime-observability-head em { color: var(--muted); font-size: 11px; font-style: normal; line-height: 1.4; white-space: nowrap; }
.runtime-observability-head button { min-height: 28px; border: 1px solid #dbeafe; border-radius: 8px; background: #fff; color: #1d4ed8; padding: 0 9px; font-size: 11px; font-weight: 800; transition: background .18s ease, border-color .18s ease, transform .18s ease; }
.runtime-observability-head button:hover { border-color: #93c5fd; background: #eff6ff; transform: translateY(-1px); }
.runtime-observability-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.runtime-observability-grid span { min-width: 0; min-height: 44px; border: 1px solid #e2e8f0; border-radius: 9px; background: #fff; display: grid; place-items: center; gap: 1px; padding: 5px; }
.runtime-observability-grid span.warn { border-color: #fed7aa; background: #fff7ed; }
.runtime-observability-grid span.danger { border-color: #fecaca; background: #fef2f2; }
.runtime-observability-grid b { color: var(--text); font-size: 14px; line-height: 1; }
.runtime-observability-grid em { color: var(--muted); font-size: 10px; font-style: normal; font-weight: 800; white-space: nowrap; }
.runtime-observability-meta { display: grid; gap: 5px; }
.runtime-observability-meta span { min-width: 0; display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 8px; align-items: center; border: 1px solid #e2e8f0; border-radius: 8px; background: rgba(255,255,255,.78); padding: 6px 8px; }
.runtime-observability-meta b { color: #64748b; font-size: 10px; font-weight: 850; }
.runtime-observability-meta em { min-width: 0; color: var(--text); font-size: 11px; font-style: normal; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.runtime-action-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.runtime-action-strip button { min-width: 0; min-height: 64px; border: 1px solid var(--border); border-radius: 10px; background: #fff; color: var(--text); padding: 8px; text-align: left; display: grid; grid-template-rows: auto auto 1fr; gap: 2px; }
.runtime-action-strip button:hover { border-color: #99f6e4; background: #f0fdfa; transform: translateY(-1px); }
.runtime-action-strip span { width: fit-content; min-height: 19px; border-radius: 999px; background: #e0f2fe; color: #0369a1; display: inline-grid; place-items: center; padding: 0 7px; font-size: 9px; font-weight: 850; text-transform: uppercase; }
.runtime-action-strip strong,
.runtime-action-strip em { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.runtime-action-strip strong { font-size: 12px; white-space: nowrap; }
.runtime-action-strip em { color: var(--muted); font-size: 10px; line-height: 1.35; font-style: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.runtime-stacks { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.runtime-stacks span { min-width: 0; border: 1px solid var(--border); border-radius: 9px; background: var(--panel-soft); padding: 7px; display: grid; gap: 2px; }
.runtime-stacks span.ready { border-color: #bbf7d0; background: #f0fdf4; }
.runtime-stacks span.partial { border-color: #fed7aa; background: #fff7ed; }
.runtime-stacks span.missing { border-color: #e5e7eb; background: #f9fafb; color: var(--muted); }
.runtime-stacks b,
.runtime-stacks em { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.runtime-stacks b { font-size: 11px; }
.runtime-stacks em { color: var(--muted); font-size: 10px; font-style: normal; }
.runtime-container { min-width: 0; border: 1px solid var(--border); border-radius: 10px; background: var(--panel-soft); padding: 9px; display: grid; gap: 3px; }
.runtime-container.ready { border-color: #bfdbfe; background: #eff6ff; }
.runtime-container.missing { border-style: dashed; }
.runtime-container span { width: fit-content; min-height: 20px; display: inline-grid; place-items: center; border: 1px solid var(--border); border-radius: 999px; background: #fff; color: var(--muted); padding: 0 8px; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.runtime-container strong,
.runtime-container em { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.runtime-container strong { font-size: 12px; white-space: nowrap; }
.runtime-container em { color: var(--muted); font-size: 11px; font-style: normal; line-height: 1.45; }
.runtime-gaps { border: 1px solid #fed7aa; border-radius: 10px; background: #fff7ed; padding: 9px; display: grid; gap: 6px; }
.runtime-gaps > strong { font-size: 12px; color: #9a3412; }
.runtime-gaps span { min-width: 0; display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 8px; align-items: baseline; }
.runtime-gaps b,
.runtime-gaps em { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.runtime-gaps b { color: #9a3412; font-size: 11px; }
.runtime-gaps em { color: #7c2d12; font-size: 11px; font-style: normal; }
.runtime-recommendations { display: grid; gap: 5px; }
.runtime-recommendations span { min-width: 0; border: 1px solid var(--border); border-radius: 9px; background: #fff; color: var(--muted); padding: 7px 8px; font-size: 11px; line-height: 1.45; }
.runtime-provisioning { border: 1px solid #fed7aa; border-radius: 11px; background: #fff7ed; padding: 9px; display: grid; gap: 8px; }
.runtime-provisioning-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; align-items: start; }
.runtime-provisioning-head > span { min-height: 22px; border: 1px solid #fed7aa; border-radius: 999px; background: #fff; color: #9a3412; padding: 0 8px; display: inline-grid; place-items: center; font-size: 10px; font-weight: 850; text-transform: uppercase; }
.runtime-provisioning-head div { min-width: 0; display: grid; gap: 2px; }
.runtime-provisioning-head strong,
.runtime-provisioning-head em { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.runtime-provisioning-head strong { color: #9a3412; font-size: 12px; white-space: nowrap; }
.runtime-provisioning-head em { color: #7c2d12; font-size: 11px; font-style: normal; line-height: 1.45; }
.runtime-provisioning-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.runtime-provisioning-meta span { min-width: 0; min-height: 38px; border: 1px solid #fed7aa; border-radius: 9px; background: rgba(255,255,255,.76); padding: 6px 7px; display: grid; gap: 2px; }
.runtime-provisioning-meta b,
.runtime-provisioning-meta em { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.runtime-provisioning-meta b { color: #9a3412; font-size: 10px; }
.runtime-provisioning-meta em { color: #7c2d12; font-size: 10px; font-style: normal; }
.runtime-provisioning-grid { display: grid; gap: 7px; }
.runtime-provision-card { min-width: 0; border: 1px solid #fed7aa; border-radius: 10px; background: #fff; padding: 8px; display: grid; gap: 5px; }
.runtime-provision-card span { width: fit-content; min-height: 20px; border: 1px solid var(--border); border-radius: 999px; background: var(--panel-soft); color: var(--muted); padding: 0 7px; display: inline-grid; place-items: center; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.runtime-provision-card strong { font-size: 12px; }
.runtime-provision-card em { color: var(--muted); font-size: 11px; font-style: normal; line-height: 1.45; }
.runtime-provision-card pre { max-height: 126px; overflow: auto; margin: 0; border: 1px solid var(--border); border-radius: 8px; background: #111827; color: #e5e7eb; padding: 8px; font-family: Consolas, "SFMono-Regular", monospace; font-size: 10px; line-height: 1.45; white-space: pre-wrap; word-break: break-word; }
.runtime-provision-card div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.runtime-provision-card button { min-height: 30px; border: 1px solid var(--border); border-radius: 8px; background: var(--panel-soft); color: var(--text); padding: 0 8px; font-size: 11px; font-weight: 800; }
.runtime-provision-card button.primary { border-color: #bfdbfe; background: #eff6ff; color: #1d4ed8; }
.runtime-tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.runtime-tools span { min-width: 0; border: 1px solid var(--border); border-radius: 9px; background: #fff; padding: 7px; display: grid; gap: 2px; }
.runtime-tools span.available { border-color: #bbf7d0; background: #fbfffd; }
.runtime-tools span.missing { border-color: #e5e7eb; background: #f9fafb; color: var(--muted); }
.runtime-tools b,
.runtime-tools em { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.runtime-tools b { font-size: 11px; }
.runtime-tools em { color: var(--muted); font-size: 10px; font-style: normal; }
.runtime-note { border: 1px solid var(--border); border-radius: 9px; background: var(--panel-soft); color: var(--muted); padding: 8px; font-size: 11px; line-height: 1.45; }
.runtime-note.ready { border-color: #bbf7d0; background: #f0fdf4; color: #15803d; }
.project-commands-panel { min-width: 0; border: 1px solid var(--border); border-radius: 12px; background: var(--panel); padding: 10px; display: grid; gap: 9px; box-shadow: 0 6px 18px rgba(17,24,39,.03); }
.project-commands-panel.loading { border-style: dashed; }
.project-commands-panel.failed { border-color: #fecaca; background: #fff7f7; }
.project-commands-head { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.project-commands-head div { min-width: 0; display: grid; gap: 4px; }
.project-commands-head span { width: fit-content; min-height: 21px; display: inline-grid; place-items: center; border: 1px solid var(--border); border-radius: 999px; background: var(--panel-soft); color: var(--muted); padding: 0 8px; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.project-commands-head strong { min-width: 0; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project-commands-head em { color: var(--muted); font-size: 12px; font-style: normal; line-height: 1.45; }
.project-commands-head button { flex: 0 0 auto; min-height: 31px; border: 1px solid var(--border); border-radius: 9px; background: var(--panel-soft); color: var(--text); padding: 0 10px; font-size: 11px; font-weight: 800; }
.project-commands-head button:disabled { opacity: .55; cursor: not-allowed; }
.project-command-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.project-command-card { min-width: 0; min-height: 96px; border: 1px solid var(--border); border-radius: 10px; background: #fff; color: var(--text); padding: 9px; display: grid; grid-template-rows: auto auto 1fr auto; gap: 4px; text-align: left; }
.project-command-card:hover { border-color: var(--border-strong); background: var(--panel-soft); transform: translateY(-1px); box-shadow: 0 10px 22px rgba(17,24,39,.06); }
.project-command-card.script { box-shadow: inset 3px 0 0 #2563eb; }
.project-command-card.prompt { box-shadow: inset 3px 0 0 #7c3aed; }
.project-command-card span { width: fit-content; min-height: 20px; display: inline-grid; place-items: center; border: 1px solid var(--border); border-radius: 999px; background: var(--panel-soft); color: var(--muted); padding: 0 7px; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.project-command-card strong,
.project-command-card em,
.project-command-card small { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.project-command-card strong { font-size: 12px; white-space: nowrap; }
.project-command-card em { color: var(--muted); font-size: 11px; line-height: 1.4; font-style: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.project-command-card small { color: var(--muted-2); font-size: 10px; font-weight: 750; white-space: nowrap; }
.project-command-empty { border: 1px dashed var(--border); border-radius: 10px; background: var(--panel-soft); color: var(--muted); padding: 9px; font-size: 11px; line-height: 1.45; }
.project-plugins-panel { min-width: 0; border: 1px solid var(--border); border-radius: 12px; background: var(--panel); padding: 10px; display: grid; gap: 9px; box-shadow: 0 6px 18px rgba(17,24,39,.03); }
.project-plugins-panel.loading { border-style: dashed; }
.project-plugins-panel.failed { border-color: #fecaca; background: #fff7f7; }
.project-plugins-head { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.project-plugins-head div { min-width: 0; display: grid; gap: 4px; }
.project-plugins-head span { width: fit-content; min-height: 21px; display: inline-grid; place-items: center; border: 1px solid var(--border); border-radius: 999px; background: var(--panel-soft); color: var(--muted); padding: 0 8px; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.project-plugins-head strong { min-width: 0; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project-plugins-head em { color: var(--muted); font-size: 12px; font-style: normal; line-height: 1.45; }
.project-plugins-actions { flex: 0 0 auto; display: flex; align-items: center; gap: 6px; }
.project-plugins-actions button { min-height: 31px; border: 1px solid var(--border); border-radius: 9px; background: var(--panel-soft); color: var(--text); padding: 0 10px; font-size: 11px; font-weight: 800; }
.project-plugins-actions button:first-child { background: var(--accent); border-color: var(--accent); color: #fff; }
.project-plugins-actions button:disabled { opacity: .55; cursor: not-allowed; }
.project-plugin-status-row,
.task-record-grid { min-width: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.project-plugin-status-row span,
.task-record-grid span { min-width: 0; min-height: 46px; border: 1px solid var(--border); border-radius: 10px; background: var(--panel-soft); padding: 7px 8px; display: grid; align-content: center; gap: 2px; }
.project-plugin-status-row b,
.task-record-grid b,
.project-plugin-status-row em,
.task-record-grid em { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-style: normal; }
.project-plugin-status-row b,
.task-record-grid b { color: var(--text); font-size: 12px; }
.project-plugin-status-row em,
.task-record-grid em { color: var(--muted); font-size: 10px; }
.project-plugins-panel.ready .project-plugin-status-row span:first-child { border-color: #bbf7d0; background: #f0fdf4; }
.project-plugins-panel.gated .project-plugin-status-row span:first-child { border-color: #fed7aa; background: #fff7ed; }
.project-plugins-panel.missing .project-plugin-status-row span:first-child { border-color: #fecaca; background: #fef2f2; }
.hidden-run-tool { display: none !important; }
.project-memory-section { border-left: 3px solid #0f766e; }
.project-memory-list { min-width: 0; display: grid; gap: 8px; }
.project-memory-head {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: linear-gradient(180deg, #fff, #f8fffc);
  padding: 10px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}
.project-memory-head div { min-width: 0; display: grid; gap: 3px; }
.project-memory-head span { width: fit-content; min-height: 20px; border: 1px solid #a7f3d0; border-radius: 999px; background: #ecfdf5; color: #047857; display: inline-grid; place-items: center; padding: 0 8px; font-size: 10px; font-weight: 850; text-transform: uppercase; letter-spacing: 0; }
.project-memory-head strong,
.project-memory-head em { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-style: normal; }
.project-memory-head strong { color: var(--text); font-size: 13px; }
.project-memory-head em { color: var(--muted); font-size: 11px; }
.project-memory-head > div:last-child { display: flex; flex-wrap: wrap; justify-content: end; gap: 6px; }
.project-memory-head button,
.project-memory-item button {
  min-height: 30px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--panel-soft);
  color: var(--text);
  padding: 0 10px;
  font-size: 11px;
  font-weight: 800;
}
.project-memory-head button:hover,
.project-memory-item button:hover { border-color: var(--border-strong); background: #fff; }
.project-memory-items { min-width: 0; display: grid; gap: 6px; }
.project-memory-item {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--panel);
  padding: 9px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
}
.project-memory-item.disabled { opacity: .62; background: var(--panel-soft); }
.project-memory-item > div:first-child { min-width: 0; display: grid; gap: 4px; }
.project-memory-item strong {
  min-width: 0;
  color: var(--text);
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.project-memory-item small,
.project-memory-item em { min-width: 0; color: var(--muted); font-size: 10px; font-style: normal; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project-memory-item > div:last-child { display: flex; flex-wrap: wrap; justify-content: end; gap: 5px; }
.project-memory-item button:last-child { color: #991b1b; background: #fff7f7; }
.project-memory-empty {
  min-height: 58px;
  border: 1px dashed var(--border);
  border-radius: 10px;
  background: var(--panel-soft);
  color: var(--muted);
  padding: 10px;
  display: grid;
  align-content: center;
  gap: 3px;
}
.project-memory-empty strong { color: var(--text); font-size: 12px; }
.project-memory-empty span { font-size: 11px; line-height: 1.45; }
.task-record-summary { min-width: 0; border: 1px solid var(--border); border-radius: 12px; background: var(--panel); padding: 10px; display: grid; gap: 9px; box-shadow: 0 6px 18px rgba(17,24,39,.03); }
.task-record-summary > div:first-child { min-width: 0; display: grid; gap: 4px; }
.task-record-summary > div:first-child > span { width: fit-content; min-height: 21px; display: inline-grid; place-items: center; border: 1px solid var(--border); border-radius: 999px; background: var(--panel-soft); color: var(--muted); padding: 0 8px; font-size: 10px; font-weight: 800; }
.task-record-summary strong,
.task-record-summary em { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.task-record-summary strong { color: var(--text); font-size: 14px; white-space: nowrap; }
.task-record-summary em { color: var(--muted); font-size: 12px; line-height: 1.45; font-style: normal; }
.task-record-summary button { min-height: 34px; border: 1px solid var(--accent); border-radius: 9px; background: var(--accent); color: #fff; padding: 0 11px; font-size: 12px; font-weight: 800; }
.project-plugin-list { display: grid; gap: 8px; }
.project-plugin-card { min-width: 0; border: 1px solid var(--border); border-radius: 11px; background: #fff; padding: 9px; display: grid; gap: 8px; box-shadow: inset 3px 0 0 #0f766e; }
.project-plugin-title { min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 8px; }
.project-plugin-title > span { min-height: 20px; border: 1px solid var(--border); border-radius: 999px; background: var(--panel-soft); color: var(--muted); display: inline-grid; place-items: center; padding: 0 7px; font-size: 10px; font-weight: 800; }
.project-plugin-title div { min-width: 0; display: grid; gap: 3px; }
.project-plugin-title strong,
.project-plugin-title em,
.project-plugin-card > small { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.project-plugin-title strong { font-size: 13px; white-space: nowrap; }
.project-plugin-title em { color: var(--muted); font-size: 11px; line-height: 1.4; font-style: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.project-plugin-card > small { color: var(--muted-2); font-size: 10px; font-weight: 750; white-space: nowrap; }
.project-plugin-recipes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.project-plugin-recipe { min-width: 0; min-height: 90px; border: 1px solid var(--border); border-radius: 10px; background: #fbfbfa; color: var(--text); padding: 8px; text-align: left; display: grid; grid-template-rows: auto auto 1fr auto; gap: 4px; }
.project-plugin-recipe:hover { border-color: var(--border-strong); background: var(--panel-soft); transform: translateY(-1px); box-shadow: 0 10px 22px rgba(17,24,39,.06); }
.project-plugin-recipe.needs-bridge { border-style: dashed; background: #f9fafb; }
.project-plugin-recipe span { width: fit-content; min-height: 20px; border: 1px solid var(--border); border-radius: 999px; background: #fff; color: var(--muted); display: inline-grid; place-items: center; padding: 0 7px; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.project-plugin-recipe strong,
.project-plugin-recipe em,
.project-plugin-recipe small { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.project-plugin-recipe strong { font-size: 12px; white-space: nowrap; }
.project-plugin-recipe em { color: var(--muted); font-size: 11px; line-height: 1.4; font-style: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.project-plugin-recipe small { color: var(--muted-2); font-size: 10px; font-weight: 750; white-space: nowrap; }
.project-plugin-tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.project-plugin-tool { min-width: 0; border: 1px solid var(--border); border-radius: 9px; background: var(--panel-soft); padding: 7px; display: grid; gap: 2px; }
.project-plugin-tool.mcp { background: #f8fafc; }
.project-plugin-tool.mcp.configured { border-color: #bfdbfe; background: #eff6ff; }
.project-plugin-tool.mcp.needs_auth { border-color: #fed7aa; background: #fff7ed; }
.project-plugin-tool.mcp.failed { border-color: #fecaca; background: #fef2f2; }
.project-plugin-tool.disabled { opacity: .65; border-style: dashed; }
.project-plugin-tool b,
.project-plugin-tool em { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project-plugin-tool b { font-size: 11px; }
.project-plugin-tool em { color: var(--muted); font-size: 10px; font-style: normal; }
.project-plugin-empty { border: 1px dashed var(--border); border-radius: 10px; background: var(--panel-soft); color: var(--muted); padding: 9px; font-size: 11px; line-height: 1.45; }
.project-mcp-matrix { min-width: 0; border: 1px solid #bfdbfe; border-radius: 11px; background: #f8fbff; padding: 9px; display: grid; gap: 8px; box-shadow: inset 3px 0 0 #2563eb; }
.project-mcp-head { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: start; }
.project-mcp-head div { min-width: 0; display: grid; gap: 3px; }
.project-mcp-head span { width: fit-content; min-height: 20px; border: 1px solid #bfdbfe; border-radius: 999px; background: #eff6ff; color: #1d4ed8; display: inline-grid; place-items: center; padding: 0 7px; font-size: 10px; font-weight: 850; }
.project-mcp-head strong,
.project-mcp-head em,
.project-mcp-head small { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.project-mcp-head strong { font-size: 13px; white-space: nowrap; }
.project-mcp-head em { color: var(--muted); font-size: 11px; font-style: normal; line-height: 1.45; }
.project-mcp-head small { align-self: center; max-width: 180px; color: #1d4ed8; font-size: 10px; line-height: 1.35; }
.project-mcp-grid { min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.project-mcp-server { min-width: 0; border: 1px solid var(--border); border-radius: 10px; background: #fff; padding: 8px; display: grid; gap: 5px; }
.project-mcp-server.configured { border-color: #bfdbfe; }
.project-mcp-server.needs_auth { border-color: #fed7aa; background: #fffaf5; }
.project-mcp-server.failed { border-color: #fecaca; background: #fff7f7; }
.project-mcp-server.disabled { border-style: dashed; opacity: .76; }
.project-mcp-server-top { min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px; align-items: center; }
.project-mcp-server-top span { min-height: 20px; border: 1px solid var(--border); border-radius: 999px; background: var(--panel-soft); color: var(--muted); display: inline-grid; place-items: center; padding: 0 7px; font-size: 10px; font-weight: 850; white-space: nowrap; }
.project-mcp-server.configured .project-mcp-server-top span { border-color: #bfdbfe; background: #eff6ff; color: #1d4ed8; }
.project-mcp-server.needs_auth .project-mcp-server-top span { border-color: #fed7aa; background: #fff7ed; color: #c2410c; }
.project-mcp-server.failed .project-mcp-server-top span { border-color: #fecaca; background: #fee2e2; color: #b91c1c; }
.project-mcp-server b,
.project-mcp-server em,
.project-mcp-server code { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project-mcp-server b { font-size: 12px; }
.project-mcp-server em { color: var(--muted); font-size: 10px; line-height: 1.35; font-style: normal; }
.project-mcp-tags { min-width: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.project-mcp-tags small { min-height: 20px; border: 1px solid var(--border); border-radius: 999px; background: var(--panel-soft); color: var(--muted); display: inline-flex; align-items: center; padding: 0 6px; font-size: 9px; font-weight: 800; }
.project-mcp-server code { border: 1px solid var(--border); border-radius: 7px; background: var(--panel-soft); color: var(--muted); padding: 5px 6px; font-size: 10px; font-family: Consolas, "SFMono-Regular", monospace; }
.project-mcp-action { min-width: 0; border: 1px solid var(--border); border-radius: 9px; background: rgba(255,255,255,.82); padding: 7px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 7px; align-items: center; }
.project-mcp-action strong,
.project-mcp-action em { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project-mcp-action strong { font-size: 11px; }
.project-mcp-action em { grid-column: 1 / 2; color: var(--muted); font-size: 10px; font-style: normal; }
.project-mcp-action button { grid-row: 1 / 3; grid-column: 2 / 3; min-height: 30px; border: 1px solid var(--border); border-radius: 8px; background: var(--accent); color: #fff; padding: 0 8px; font-size: 10px; font-weight: 850; white-space: nowrap; }
.automation-recipes { display: grid; gap: 9px; }
.automation-recipes-head {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel);
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.automation-recipes-head div { min-width: 0; display: grid; gap: 4px; }
.automation-recipes-head span { width: fit-content; min-height: 21px; display: inline-grid; place-items: center; border: 1px solid var(--border); border-radius: 999px; background: var(--panel-soft); color: var(--muted); padding: 0 8px; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0; }
.automation-recipes-head strong { min-width: 0; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.automation-recipes-head em { color: var(--muted); font-size: 12px; font-style: normal; line-height: 1.45; }
.automation-recipes-head button { flex: 0 0 auto; min-height: 31px; border: 1px solid var(--border-strong); border-radius: 9px; background: #111827; color: #fff; padding: 0 10px; font-size: 11px; font-weight: 800; }
.automation-recipes-head button:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(17,24,39,.14); }
.automation-recipes-meta { border: 1px solid var(--border); border-radius: 9px; background: var(--panel-soft); color: var(--muted); padding: 7px 9px; font-size: 11px; line-height: 1.4; }
.automation-builder { min-width: 0; border: 1px solid var(--border-strong); border-radius: 12px; background: linear-gradient(180deg, #fff, #fbfbfa); padding: 10px; display: grid; gap: 10px; box-shadow: 0 8px 24px rgba(17,24,39,.055); }
.automation-builder-head { min-width: 0; display: grid; gap: 4px; }
.automation-builder-head span { width: fit-content; min-height: 21px; border: 1px solid var(--border); border-radius: 999px; background: var(--panel-soft); color: var(--muted); display: inline-grid; place-items: center; padding: 0 8px; font-size: 10px; font-weight: 850; text-transform: uppercase; }
.automation-builder-head strong,
.automation-builder-head em { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.automation-builder-head strong { font-size: 14px; white-space: nowrap; }
.automation-builder-head em { color: var(--muted); font-size: 12px; font-style: normal; line-height: 1.45; }
.automation-builder-stepbar { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.automation-builder-stepbar span { min-width: 0; min-height: 36px; border: 1px solid var(--border); border-radius: 9px; background: var(--panel-soft); color: var(--muted); display: grid; grid-template-columns: 22px minmax(0, 1fr); align-items: center; gap: 5px; padding: 5px 7px; }
.automation-builder-stepbar b { width: 22px; height: 22px; border-radius: 999px; display: grid; place-items: center; background: #fff; border: 1px solid var(--border); font-size: 10px; }
.automation-builder-stepbar em { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; font-style: normal; font-weight: 800; }
.automation-builder-stepbar span.active { border-color: #bfdbfe; background: #eff6ff; color: #1d4ed8; }
.automation-builder-stepbar span.active b { border-color: #2563eb; background: #2563eb; color: #fff; }
.automation-builder-stepbar span.done { border-color: #bbf7d0; background: #f0fdf4; color: #15803d; }
.automation-builder-primary-choice { display: grid; gap: 8px; }
.automation-builder-choice-head { min-width: 0; border: 1px solid #ccfbf1; border-radius: 10px; background: #f0fdfa; padding: 8px 9px; display: grid; gap: 2px; }
.automation-builder-choice-head strong,
.automation-builder-choice-head em { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.automation-builder-choice-head strong { color: #0f766e; font-size: 12px; white-space: nowrap; }
.automation-builder-choice-head em { color: #475569; font-size: 11px; line-height: 1.45; font-style: normal; }
.automation-builder-options { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
.automation-builder-visible-options { grid-template-columns: repeat(auto-fit, minmax(132px, 1fr)); }
.automation-builder-options button,
.automation-builder-primary-choice button { min-width: 0; min-height: 106px; border: 1px solid var(--border); border-radius: 10px; background: #fff; color: var(--text); padding: 9px; text-align: left; display: grid; grid-template-rows: auto auto 1fr; gap: 4px; transition: border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease; }
.automation-builder-options button:hover,
.automation-builder-primary-choice button:hover { border-color: #99f6e4; background: #f0fdfa; transform: translateY(-1px); }
.automation-builder-options button.active,
.automation-builder-primary-choice button.active { border-color: #0f766e; box-shadow: inset 3px 0 0 #0d9488, 0 8px 20px rgba(13,148,136,.08); background: linear-gradient(180deg, #f0fdfa, #fff); }
.automation-builder-options button.primary-choice,
.automation-builder-primary-choice button.primary-choice { border-color: #0f766e; }
.automation-builder-options span,
.automation-builder-primary-choice span { width: fit-content; min-height: 20px; border: 1px solid var(--border); border-radius: 999px; background: var(--panel-soft); color: var(--muted); display: inline-grid; place-items: center; padding: 0 7px; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.automation-builder-options button.active span,
.automation-builder-primary-choice button.active span { border-color: #99f6e4; background: #ccfbf1; color: #0f766e; }
.automation-builder-options strong,
.automation-builder-options em,
.automation-builder-primary-choice strong,
.automation-builder-primary-choice em { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.automation-builder-options strong,
.automation-builder-primary-choice strong { font-size: 12px; white-space: nowrap; }
.automation-builder-options em,
.automation-builder-primary-choice em { color: var(--muted); font-size: 11px; line-height: 1.4; font-style: normal; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.automation-builder-form { display: grid; gap: 8px; }
.automation-builder-form label { min-width: 0; display: grid; gap: 5px; color: var(--muted); font-size: 11px; font-weight: 800; }
.automation-builder-form input,
.automation-builder-form textarea,
.automation-builder-form select { min-width: 0; width: 100%; border: 1px solid var(--border); border-radius: 9px; background: #fff; color: var(--text); outline: none; padding: 8px 9px; font-size: 12px; }
.automation-builder-form input { min-height: 34px; }
.automation-builder-form select { min-height: 34px; font-weight: 750; }
.automation-builder-form textarea { min-height: 92px; resize: vertical; line-height: 1.45; }
.automation-builder-form input:focus,
.automation-builder-form textarea:focus,
.automation-builder-form select:focus { border-color: #aab1bd; box-shadow: 0 0 0 3px rgba(17,24,39,.07); }
.automation-builder-runtime { border: 1px solid #dbeafe; border-radius: 10px; background: #f8fbff; padding: 9px; display: grid; gap: 8px; }
.automation-builder-runtime-head { min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 7px; align-items: center; }
.automation-builder-runtime-head span { min-height: 20px; border: 1px solid #bfdbfe; border-radius: 999px; background: #eff6ff; color: #1d4ed8; display: inline-grid; place-items: center; padding: 0 7px; font-size: 10px; font-weight: 850; text-transform: uppercase; }
.automation-builder-runtime-head strong { min-width: 0; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.automation-builder-runtime-head em { grid-column: 1 / -1; min-width: 0; color: var(--muted); font-size: 11px; font-style: normal; line-height: 1.45; }
.automation-builder-runtime-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
.automation-builder-runtime-image { margin-top: 0; }
.automation-builder-confirm { border: 1px solid var(--border); border-radius: 10px; background: #fff; padding: 10px; display: grid; gap: 5px; }
.automation-builder-confirm span { width: fit-content; min-height: 21px; border: 1px solid var(--border); border-radius: 999px; background: var(--panel-soft); color: var(--muted); display: inline-grid; place-items: center; padding: 0 8px; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.automation-builder-confirm strong,
.automation-builder-confirm em,
.automation-builder-confirm small { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.automation-builder-confirm strong { font-size: 13px; white-space: nowrap; }
.automation-builder-confirm em { color: var(--muted); font-size: 12px; line-height: 1.45; font-style: normal; white-space: nowrap; }
.automation-builder-confirm small { color: var(--muted-2); font-size: 11px; line-height: 1.4; }
.automation-builder-confirm-meta { display: flex; flex-wrap: wrap; gap: 5px; }
.automation-builder-confirm-meta b { min-height: 22px; border: 1px solid var(--border); border-radius: 999px; background: var(--panel-soft); color: var(--muted); display: inline-flex; align-items: center; padding: 0 8px; font-size: 10px; font-weight: 850; }
.automation-builder-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.automation-builder-actions button { min-width: 0; min-height: 32px; border: 1px solid var(--border); border-radius: 9px; background: var(--panel); color: var(--text); padding: 0 9px; font-size: 11px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.automation-builder-actions button.primary { background: #111827; border-color: #111827; color: #fff; }
.automation-guide-modal { width: min(900px, calc(100vw - 28px)); }
.automation-guide-shell { min-width: 0; display: grid; gap: 12px; }
.automation-guide-hero { position: relative; min-width: 0; border: 1px solid #ccfbf1; border-radius: 12px; background: linear-gradient(180deg, #f0fdfa, #fff); padding: 12px 13px 12px 16px; display: grid; gap: 4px; overflow: hidden; }
.automation-guide-hero::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 3px; background: #0d9488; }
.automation-guide-hero.web::before { background: #0369a1; }
.automation-guide-hero.computer::before { background: #9333ea; }
.automation-guide-hero.prompt::before { background: #475569; }
.automation-guide-hero span { width: fit-content; min-height: 22px; border: 1px solid #99f6e4; border-radius: 999px; background: #fff; color: #0f766e; display: inline-grid; place-items: center; padding: 0 8px; font-size: 10px; font-weight: 850; text-transform: uppercase; }
.automation-guide-hero strong,
.automation-guide-hero em { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.automation-guide-hero strong { font-size: 17px; white-space: nowrap; }
.automation-guide-hero em { color: #475569; font-size: 12px; line-height: 1.45; font-style: normal; }
.automation-guide-route { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
.automation-guide-route span { position: relative; min-width: 0; min-height: 72px; border: 1px solid var(--border); border-radius: 10px; background: #fff; padding: 8px 8px 8px 34px; display: grid; gap: 2px; align-content: start; }
.automation-guide-route span.active { border-color: #99f6e4; background: #f0fdfa; }
.automation-guide-route b { position: absolute; left: 8px; top: 8px; width: 19px; height: 19px; border-radius: 999px; background: var(--panel-soft); color: var(--muted); display: grid; place-items: center; font-size: 10px; }
.automation-guide-route span.active b { background: #0d9488; color: #fff; }
.automation-guide-route strong,
.automation-guide-route em { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.automation-guide-route strong { font-size: 11px; white-space: nowrap; }
.automation-guide-route em { color: var(--muted); font-size: 10px; line-height: 1.35; font-style: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.automation-builder.modal-builder { border-color: #ccfbf1; box-shadow: none; }
.automation-guide-footer { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.automation-guide-footer button { min-height: 34px; border: 1px solid var(--border); border-radius: 9px; background: #fff; color: var(--text); padding: 0 10px; font-size: 12px; font-weight: 850; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.automation-guide-footer button:first-child { border-color: #99f6e4; background: #f0fdfa; color: #0f766e; }
.automation-recipe-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.automation-recipe-wrap { min-width: 0; display: grid; gap: 6px; }
.automation-recipe-wrap.custom { border: 1px solid var(--border); border-radius: 12px; background: #fff; padding: 5px; }
.automation-recipe {
  min-width: 0;
  min-height: 122px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: linear-gradient(180deg, #fff, #fbfbfa);
  color: var(--text);
  padding: 10px;
  text-align: left;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 5px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(17,24,39,.035);
}
.automation-recipe:hover { border-color: var(--border-strong); background: var(--panel-soft); transform: translateY(-1px); box-shadow: 0 12px 26px rgba(17,24,39,.07); }
.automation-recipe.needs-bridge { border-style: dashed; color: var(--muted); }
.automation-recipe[data-flow="true"],
.tool-center-card.workflow { border-color: #bfdbfe; background: linear-gradient(180deg, #fff, #f8fbff); box-shadow: inset 3px 0 0 #2563eb, 0 6px 18px rgba(37,99,235,.05); }
.automation-recipe[data-flow="true"] span,
.tool-center-card.workflow .tool-center-card-head span { border-color: #bfdbfe; background: #eff6ff; color: #1d4ed8; }
.automation-recipe span { width: fit-content; min-height: 20px; display: inline-grid; place-items: center; border: 1px solid var(--border); border-radius: 999px; background: var(--panel-soft); color: var(--muted); padding: 0 8px; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.automation-recipe strong,
.automation-recipe em,
.automation-recipe small { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.automation-recipe strong { font-size: 13px; white-space: nowrap; }
.automation-recipe em { color: var(--muted); font-size: 11px; font-style: normal; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.automation-recipe small { color: var(--muted-2); font-size: 10px; font-weight: 750; white-space: nowrap; }
.automation-recipe-wrap.custom .automation-recipe { min-height: 104px; border-radius: 9px; box-shadow: none; }
.automation-recipe-delete { min-height: 26px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--muted-2); padding: 0 8px; justify-self: end; font-size: 10px; font-weight: 800; }
.automation-recipe-delete:hover { border-color: #fecaca; background: #fff1f2; color: #be123c; }
.project-profile { border: 1px solid var(--border); background: var(--panel); border-radius: 10px; padding: 10px; display: grid; gap: 8px; }
.project-profile.empty-list { display: block; background: transparent; border: 0; }
.project-profile strong { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project-profile span { color: var(--muted); font-size: 12px; line-height: 1.45; overflow-wrap: anywhere; }
.project-profile span + strong { margin-top: 4px; }
.chat-context-status { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 30px; padding: 6px 9px; border: 1px solid var(--border); border-radius: 8px; background: color-mix(in srgb, var(--panel) 88%, #eef7f3 12%); color: var(--text); font-size: 12px; }
.chat-context-status strong { font-size: 12px; font-weight: 750; white-space: nowrap; }
.chat-context-status span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.chat-context-status.healthy strong { color: #14715d; }
.chat-context-status.compacted strong { color: #335f99; }
.chat-context-status.large strong, .chat-context-status.warning strong { color: #a15b12; }
.chat-context-status.idle { color: var(--muted); background: transparent; }
.compact-form { gap: 8px; }
.project-list, .project-files { display: grid; gap: 6px; }
.project-space-file-tree.project-files,
.project-files.project-space-file-tree { gap: 4px; }
.resource-toolbar {
  display: grid;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel);
  padding: 9px;
  box-shadow: 0 6px 18px rgba(17,24,39,.03);
}
.resource-search { display: grid; gap: 5px; color: var(--muted); font-size: 11px; font-weight: 700; }
.resource-search input { min-width: 0; width: 100%; min-height: 34px; border: 1px solid var(--border); border-radius: 9px; background: var(--panel-soft); color: var(--text); outline: none; padding: 0 10px; font-size: 12px; }
.resource-search input:focus { border-color: #aab1bd; box-shadow: 0 0 0 3px rgba(17, 24, 39, .07); background: #fff; }
.resource-segments { display: grid; grid-template-columns: repeat(auto-fit, minmax(72px, 1fr)); gap: 6px; }
.resource-segments button { min-width: 0; min-height: 31px; border: 1px solid var(--border); border-radius: 999px; background: var(--panel-soft); color: var(--muted); padding: 0 9px; font-size: 11px; font-weight: 750; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.resource-segments button:hover { border-color: var(--border-strong); color: var(--text); transform: translateY(-1px); }
.resource-segments button.active { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 7px 18px rgba(17,24,39,.09); }
.resource-empty { position: relative; min-width: 0; border: 1px dashed var(--border-strong); border-radius: 12px; background: linear-gradient(180deg, #fff, #fbfbfa); padding: 12px; display: grid; gap: 8px; overflow: hidden; }
.resource-empty::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--border-strong); }
.resource-empty.project::before { background: #111827; }
.resource-empty.goal::before { background: #7c3aed; }
.resource-empty.task::before { background: #2563eb; }
.resource-empty.note::before { background: #15803d; }
.resource-empty.file::before { background: #0f766e; }
.resource-empty.tool::before { background: #7c3aed; }
.resource-empty span { width: fit-content; min-height: 22px; display: inline-grid; place-items: center; border: 1px solid var(--border); border-radius: 999px; background: var(--panel-soft); color: var(--muted); padding: 0 8px; font-size: 11px; font-weight: 750; }
.resource-empty strong { font-size: 13px; }
.resource-empty p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.resource-empty-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.resource-empty-actions button { min-width: 0; min-height: 32px; border: 1px solid var(--border); border-radius: 9px; background: var(--panel); color: var(--text); padding: 0 8px; font-size: 12px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.resource-empty-actions button.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.resource-empty-actions button:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(17,24,39,.07); }
.project-item, .project-file { width: 100%; border: 1px solid var(--border); background: var(--panel); border-radius: 10px; padding: 10px; text-align: left; display: grid; gap: 4px; color: var(--text); box-shadow: 0 6px 18px rgba(17,24,39,.035); }
.project-item:hover, .project-file:hover { border-color: var(--border-strong); background: #fbfbfa; transform: translateY(-1px); }
.project-item.active { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--accent); }
.cloud-file-browser { gap: 7px; }
.cloud-file-browser-head {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: linear-gradient(180deg, #fff, #fbfbfa);
  padding: 10px 11px;
}
.cloud-file-browser-head div { min-width: 0; display: grid; gap: 3px; }
.cloud-file-browser-head span { width: fit-content; min-height: 20px; display: inline-grid; place-items: center; border: 1px solid var(--border); border-radius: 999px; background: var(--panel-soft); color: var(--muted); padding: 0 8px; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0; }
.cloud-file-browser-head strong { min-width: 0; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cloud-file-browser-head em { color: var(--muted); font-size: 11px; font-style: normal; font-weight: 700; }
.cloud-file-browser-head button { min-height: 30px; border: 1px solid var(--border); border-radius: 999px; background: var(--panel-soft); color: var(--text); padding: 0 10px; font-size: 11px; font-weight: 750; }
.cloud-file-browser-head button:hover { background: var(--accent-soft); }
.cloud-file-row {
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 4px 7px;
  border-radius: 7px;
  box-shadow: none;
}
.cloud-file-row.directory { background: #fafaf9; }
.cloud-file-row div { min-width: 0; display: grid; grid-template-columns: minmax(0, auto) minmax(0, 1fr); gap: 2px 6px; align-items: baseline; }
.cloud-file-row strong { min-width: 0; font-size: 11.5px; line-height: 1.15; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cloud-file-row small { min-width: 0; color: var(--muted); font-size: 9.5px; line-height: 1.15; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cloud-file-row em,
.cloud-file-row b { flex: 0 0 auto; min-height: 18px; display: inline-grid; place-items: center; border-radius: 999px; padding: 0 6px; font-size: 9px; font-weight: 750; white-space: nowrap; }
.cloud-file-row em { border: 1px solid var(--border); background: var(--panel-soft); color: var(--muted); }
.cloud-file-row b { border: 1px solid var(--border); background: var(--panel); color: var(--text); }
.cloud-file-row:hover b { background: var(--accent-soft); }
.cloud-file-icon {
  width: 26px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--panel-soft);
  color: var(--muted);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .02em;
}
.cloud-file-row.directory .cloud-file-icon { background: #ecfdf5; border-color: #a7f3d0; color: #047857; }
.cloud-file-row.file .cloud-file-icon { background: #eff6ff; border-color: #bfdbfe; color: #1d4ed8; }
.cloud-file-row.directory b { background: #ecfdf5; color: #047857; }
.cloud-file-row.file b { background: #eff6ff; color: #1d4ed8; }
.resource-card { position: relative; gap: 9px; padding: 11px; overflow: hidden; }
.resource-card::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 3px; background: #111827; opacity: .9; }
.resource-card.project-resource-card::before { background: #0f766e; }
.resource-card.goal-resource-card::before { background: #2563eb; }
.resource-card-top { min-width: 0; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 9px; align-items: center; }
.resource-card-top > div { min-width: 0; display: grid; gap: 3px; }
.resource-card-top strong, .resource-card-top small { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.resource-card-top strong { font-size: 13px; }
.resource-card-top small { color: var(--muted); font-size: 11px; font-weight: 500; }
.resource-card-icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; border: 1px solid var(--border); background: var(--panel-soft); color: var(--muted); font-size: 12px; font-weight: 850; }
.resource-card-icon.project { background: #ecfdf5; border-color: #a7f3d0; color: #047857; }
.resource-card-icon.goal { background: #eff6ff; border-color: #bfdbfe; color: #1d4ed8; }
.resource-card-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.resource-card-meta span { min-width: 0; min-height: 27px; border: 1px solid var(--border); border-radius: 999px; background: var(--panel-soft); color: var(--muted); display: inline-grid; place-items: center; padding: 0 7px; font-size: 10px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.resource-card-foot { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.resource-card-foot b { flex: 0 0 auto; min-height: 27px; display: inline-grid; place-items: center; border-radius: 999px; background: var(--panel-soft); color: var(--text); padding: 0 9px; font-size: 11px; font-weight: 750; }
.project-resource-card .resource-card-foot b { background: #ecfdf5; color: #047857; }
.goal-resource-card .resource-card-foot b { background: #eff6ff; color: #1d4ed8; }
.resource-card-foot small { min-width: 0; color: var(--muted); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.resource-card.active .resource-card-meta span { background: rgba(255,255,255,.68); border-color: rgba(17,24,39,.12); color: var(--text); }
.project-item-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
.project-item-head strong { min-width: 0; }
.project-item-badge { flex: 0 0 auto; min-height: 22px; display: inline-grid; place-items: center; border: 1px solid var(--border); border-radius: 999px; padding: 0 8px; color: var(--muted); background: var(--panel-soft); font-size: 11px; font-style: normal; font-weight: 650; }
.project-item.active .project-item-badge { border-color: var(--accent); background: var(--accent); color: #fff; }
.project-item-badge.running, .project-item-badge.queued, .project-item-badge.active { border-color: #bfdbfe; background: #eff6ff; color: #1d4ed8; }
.project-item-badge.succeeded, .project-item-badge.done { border-color: #bbf7d0; background: #f0fdf4; color: #15803d; }
.project-item-badge.failed, .project-item-badge.error { border-color: #fecaca; background: #fef2f2; color: #b91c1c; }
.project-item-badge.paused, .project-item-badge.canceled, .project-item-badge.abandoned { border-color: #fed7aa; background: #fff7ed; color: #c2410c; }
.project-item-progress { height: 5px; overflow: hidden; border-radius: 999px; background: var(--panel-soft); }
.project-item-progress span { display: block; height: 100%; border-radius: inherit; background: var(--accent); transition: width .24s ease; }
.project-item strong, .project-file { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project-item span, .project-item small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project-file.directory { color: var(--muted); }
.project-item small { font-size: 11px; }
.project-note { cursor: pointer; }
.project-note pre { margin: 0; white-space: pre-wrap; line-height: 1.45; color: var(--muted); font-size: 12px; }
.project-item.is-active-task { border-color: #93c5fd; background: #eff6ff; }
.project-item.is-done { border-color: #bbf7d0; background: #f0fdf4; }
.project-item.is-paused { border-color: #fed7aa; background: #fff7ed; }
.project-item.is-error { border-color: #fecaca; background: #fef2f2; }
#taskList.project-files { gap: 3px; }
#taskList .project-item {
  min-height: 32px;
  grid-template-columns: minmax(0, 1fr) 34px 20px;
  gap: 2px 6px;
  padding: 5px 7px;
  border-radius: 8px;
  box-shadow: none;
  overflow: hidden;
}
#taskList .project-item:hover { transform: none; }
#taskList .project-item.active { box-shadow: inset 2px 0 0 var(--accent); }
#taskList .project-item-head { display: contents; }
#taskList .project-item-head strong {
  grid-column: 1;
  font-size: 11px;
  line-height: 1.15;
  font-weight: 750;
}
#taskList .project-item-badge {
  grid-column: 2;
  width: 34px;
  min-height: 17px;
  padding: 0 5px;
  font-size: 9px;
  font-weight: 750;
  justify-self: start;
}
#taskList .task-row-detail-btn {
  grid-column: 3;
  width: 19px;
  height: 19px;
  min-height: 19px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  padding: 0;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
}
#taskList .task-row-detail-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}
#taskList .project-item > span,
#taskList .task-isolation-chips { display: none; }
#taskList .project-item-progress {
  grid-column: 1;
  height: 3px;
  align-self: center;
}
#taskList .project-item small {
  grid-column: 2;
  align-self: center;
  text-align: right;
  font-size: 9px;
  line-height: 1;
}
#goalsTasksSection > #taskDetail { display: none !important; }
.task-detail-modal { width: min(900px, calc(100vw - 28px)); background: linear-gradient(180deg, #fff, #f8fafc); }
.task-detail-modal header { border-bottom: 1px solid #e2e8f0; padding-bottom: 10px; }
.task-detail-modal-title { min-width: 0; display: grid; gap: 3px; }
.task-detail-modal-title span { width: fit-content; min-height: 20px; display: inline-grid; place-items: center; border: 1px solid #fed7aa; border-radius: 999px; background: #fff7ed; color: #c2410c; padding: 0 8px; font-size: 10px; font-weight: 900; text-transform: uppercase; }
.task-detail-modal-title h2 { margin: 0; font-size: 17px; }
.task-detail-modal-body { display: grid; gap: 10px; }
.task-detail-modal-body.task-detail { box-shadow: none; }
.workspace-block .stack-form textarea { min-height: 92px; }
.code-run-card { border-color: #bbf7d0; background: #f7fef9; }
.code-run-head { display: grid; grid-template-columns: minmax(0, 1fr) 132px; gap: 8px; align-items: start; }
.code-run-head div { min-width: 0; display: grid; gap: 3px; }
.code-run-head strong,
.code-run-head em { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.code-run-head strong { font-size: 13px; white-space: nowrap; }
.code-run-head em { color: var(--muted); font-size: 11px; font-style: normal; line-height: 1.45; }
.code-run-head select { min-width: 0; min-height: 34px; border: 1px solid #a7f3d0; border-radius: 9px; background: #fff; color: var(--text); padding: 0 8px; font-size: 12px; font-weight: 750; }
.code-run-templates { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.code-run-templates button { min-width: 0; min-height: 30px; border: 1px solid #bbf7d0; border-radius: 9px; background: #fff; color: #047857; padding: 0 8px; font-size: 11px; font-weight: 850; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.code-run-templates button:hover { background: #ecfdf5; border-color: #34d399; }
.code-run-runtime-panel { min-width: 0; border: 1px solid #bbf7d0; border-radius: 12px; background: #f7fef9; padding: 9px; display: grid; gap: 8px; }
.code-run-runtime-panel.missing { border-color: #fed7aa; background: #fff7ed; }
.code-run-runtime-head { min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; align-items: start; }
.code-run-runtime-head > span { min-height: 22px; border: 1px solid #bbf7d0; border-radius: 999px; background: #fff; color: #047857; display: inline-grid; place-items: center; padding: 0 8px; font-size: 10px; font-weight: 850; text-transform: uppercase; }
.code-run-runtime-panel.missing .code-run-runtime-head > span { border-color: #fed7aa; color: #b45309; }
.code-run-runtime-head div { min-width: 0; display: grid; gap: 2px; }
.code-run-runtime-head strong,
.code-run-runtime-head em { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.code-run-runtime-head strong { font-size: 12px; white-space: nowrap; }
.code-run-runtime-head em { color: var(--muted); font-size: 11px; line-height: 1.45; font-style: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.code-run-runtime-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.code-run-runtime-grid button { min-width: 0; min-height: 48px; border: 1px solid var(--border); border-radius: 9px; background: #fff; color: var(--text); padding: 7px; display: grid; gap: 2px; text-align: left; }
.code-run-runtime-grid button.ready { border-color: #bbf7d0; }
.code-run-runtime-grid button.missing { border-color: #fed7aa; background: #fffbeb; }
.code-run-runtime-grid button.active { border-color: #0d9488; background: #f0fdfa; box-shadow: inset 3px 0 0 #0d9488; }
.code-run-runtime-grid button:hover { transform: translateY(-1px); border-color: #34d399; box-shadow: 0 10px 22px rgba(17,24,39,.06); }
.code-run-runtime-grid b,
.code-run-runtime-grid em { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.code-run-runtime-grid b { font-size: 11px; }
.code-run-runtime-grid em { color: var(--muted); font-size: 10px; line-height: 1.35; font-style: normal; }
.code-run-runtime-route { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.code-run-runtime-route span { min-width: 0; min-height: 42px; border: 1px solid var(--border); border-radius: 9px; background: #fff; padding: 7px; display: grid; gap: 2px; }
.code-run-runtime-route b,
.code-run-runtime-route em { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.code-run-runtime-route b { color: var(--muted); font-size: 10px; }
.code-run-runtime-route em { color: var(--text); font-size: 11px; font-style: normal; }
.code-run-card textarea { min-height: 132px; font-family: Consolas, "SFMono-Regular", monospace; font-size: 12px; line-height: 1.5; tab-size: 2; }
.task-detail { display: grid; gap: 10px; border: 1px solid var(--border); border-radius: 12px; padding: 10px; background: var(--panel); box-shadow: 0 6px 18px rgba(17,24,39,.035); }
.goal-detail { margin-top: 6px; }
.task-detail-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.task-detail-head strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task-detail-head small, .task-detail-meta span { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task-detail-meta { display: grid; gap: 4px; }
.task-isolation-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 2px; }
.task-isolation-chips span { min-height: 20px; display: inline-flex; align-items: center; border: 1px solid #dbe4f0; border-radius: 999px; background: #fff; color: #64748b; padding: 0 7px; font-size: 10px; font-weight: 800; }
.task-isolation-chips span.strong { border-color: #99f6e4; background: #ecfdf5; color: #0f766e; }
.task-isolation-chips span.warn { border-color: #fde68a; background: #fffbeb; color: #a16207; }
.task-isolation-snapshot { display: grid; gap: 8px; border: 1px solid var(--border); border-radius: 10px; background: var(--panel-soft); padding: 9px; }
.task-isolation-snapshot.ready { border-color: #bbf7d0; background: #f0fdf4; }
.task-isolation-snapshot.warn { border-color: #fde68a; background: #fffbeb; }
.task-isolation-snapshot.missing { border-color: #e5e7eb; background: #f8fafc; }
.task-isolation-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; align-items: start; }
.task-isolation-head > span { min-height: 22px; display: inline-grid; place-items: center; border: 1px solid var(--border); border-radius: 999px; background: #fff; color: #475569; padding: 0 8px; font-size: 10px; font-weight: 850; text-transform: uppercase; }
.task-isolation-head div { min-width: 0; display: grid; gap: 2px; }
.task-isolation-head strong,
.task-isolation-head em { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.task-isolation-head strong { color: var(--text); font-size: 12px; white-space: nowrap; }
.task-isolation-head em { color: var(--muted); font-size: 11px; font-style: normal; line-height: 1.45; white-space: nowrap; }
.task-isolation-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.task-isolation-grid span { min-width: 0; min-height: 42px; border: 1px solid var(--border); border-radius: 9px; background: rgba(255,255,255,.72); padding: 7px 8px; display: grid; gap: 2px; }
.task-isolation-grid span.ready { border-color: #bbf7d0; }
.task-isolation-grid span.warn { border-color: #fde68a; }
.task-isolation-grid span.missing { border-color: #e5e7eb; }
.task-isolation-grid b,
.task-isolation-grid em { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task-isolation-grid b { color: var(--text); font-size: 11px; }
.task-isolation-grid em { color: var(--muted); font-size: 10px; font-style: normal; line-height: 1.35; }
.task-detail-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.task-detail-actions button { min-height: 34px; border: 1px solid var(--border); border-radius: 10px; background: var(--panel-soft); color: var(--text); }
.task-detail-actions-compact { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: -2px; }
.task-detail-actions-four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.task-detail-actions-single { grid-template-columns: 1fr; margin-top: -2px; }
.task-preflight-snapshot { display: grid; gap: 8px; border: 1px solid var(--border); border-radius: 10px; background: var(--panel-soft); padding: 9px; }
.task-preflight-snapshot.ready { border-color: #bbf7d0; background: #f0fdf4; }
.task-preflight-snapshot.warn { border-color: #fde68a; background: #fffbeb; }
.task-preflight-snapshot.blocked, .task-preflight-snapshot.missing { border-color: #fecaca; background: #fef2f2; }
.task-preflight-snapshot-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; align-items: start; }
.task-preflight-snapshot-head > span { min-height: 22px; display: inline-grid; place-items: center; border: 1px solid var(--border); border-radius: 999px; background: #fff; color: var(--muted); padding: 0 8px; font-size: 10px; font-weight: 850; text-transform: uppercase; }
.task-preflight-snapshot-head div { min-width: 0; display: grid; gap: 2px; }
.task-preflight-snapshot-head strong,
.task-preflight-snapshot-head em { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.task-preflight-snapshot-head strong { font-size: 12px; white-space: nowrap; }
.task-preflight-snapshot-head em { color: var(--muted); font-size: 11px; font-style: normal; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.task-preflight-mini-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.task-preflight-mini-grid span,
.task-retention-bar span { min-width: 0; min-height: 44px; border: 1px solid var(--border); border-radius: 9px; background: rgba(255,255,255,.72); padding: 7px 8px; display: grid; gap: 2px; }
.task-preflight-mini-grid span.ready { border-color: #bbf7d0; }
.task-preflight-mini-grid span.warn { border-color: #fde68a; }
.task-preflight-mini-grid span.blocked,
.task-preflight-mini-grid span.missing { border-color: #fecaca; }
.task-preflight-mini-grid b,
.task-retention-bar b { color: var(--text); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task-preflight-mini-grid em,
.task-retention-bar em { color: var(--muted); font-size: 10px; font-style: normal; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task-preflight-decision { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.task-preflight-decision span { min-width: 0; min-height: 42px; border: 1px solid var(--border); border-radius: 9px; background: rgba(255,255,255,.72); padding: 7px 8px; display: grid; gap: 2px; }
.task-preflight-decision span.reason { border-color: #fed7aa; background: #fff7ed; }
.task-preflight-decision b,
.task-preflight-decision em { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task-preflight-decision b { color: var(--text); font-size: 11px; }
.task-preflight-decision em { color: var(--muted); font-size: 10px; font-style: normal; line-height: 1.35; }
.task-provision-snapshot { display: grid; gap: 8px; border: 1px solid #bfdbfe; border-radius: 10px; background: #eff6ff; padding: 9px; }
.task-provision-snapshot.ready { border-color: #bbf7d0; background: #f0fdf4; }
.task-provision-snapshot.warn { border-color: #fde68a; background: #fffbeb; }
.task-provision-snapshot.blocked, .task-provision-snapshot.missing { border-color: #fecaca; background: #fef2f2; }
.task-provision-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; align-items: start; }
.task-provision-head > span { min-height: 22px; display: inline-grid; place-items: center; border: 1px solid #bfdbfe; border-radius: 999px; background: #fff; color: #1d4ed8; padding: 0 8px; font-size: 10px; font-weight: 850; text-transform: uppercase; }
.task-provision-head div { min-width: 0; display: grid; gap: 2px; }
.task-provision-head strong,
.task-provision-head em { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.task-provision-head strong { color: #1e40af; font-size: 12px; white-space: nowrap; }
.task-provision-head em { color: #1d4ed8; font-size: 11px; font-style: normal; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.task-provision-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.task-provision-grid span { min-width: 0; min-height: 44px; border: 1px solid rgba(147,197,253,.7); border-radius: 9px; background: rgba(255,255,255,.72); padding: 7px 8px; display: grid; gap: 2px; }
.task-provision-grid b,
.task-provision-grid em { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task-provision-grid b { color: var(--text); font-size: 11px; }
.task-provision-grid em { color: var(--muted); font-size: 10px; font-style: normal; line-height: 1.35; }
.task-provision-actions { display: grid; grid-template-columns: 1fr; }
.task-provision-actions button { min-height: 31px; border: 1px solid #bfdbfe; border-radius: 9px; background: #fff; color: #1d4ed8; font-size: 11px; font-weight: 800; }
.task-retention-bar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) auto; gap: 6px; align-items: stretch; }
.task-retention-bar button { min-width: 112px; min-height: 44px; border: 1px solid rgba(15,118,110,.3); border-radius: 9px; background: var(--select-bg); color: var(--accent); padding: 0 10px; font-size: 11px; font-weight: 850; }
.task-retention-bar button:hover { border-color: var(--accent); background: var(--select-bg-strong); box-shadow: 0 10px 22px rgba(15,118,110,.1); }
.task-log-toolbar { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.task-log-toolbar button { min-width: 0; min-height: 30px; border: 1px solid var(--border); border-radius: 999px; background: var(--panel-soft); color: var(--muted); padding: 0 8px; display: inline-flex; align-items: center; justify-content: center; gap: 5px; font-size: 11px; font-weight: 750; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task-log-toolbar button.active { border-color: var(--accent); background: var(--accent); color: #fff; }
.task-log-toolbar span { min-width: 18px; min-height: 18px; border-radius: 999px; display: inline-grid; place-items: center; background: rgba(255,255,255,.72); color: inherit; font-size: 10px; }
.task-detail-logs { display: grid; gap: 8px; max-height: 220px; overflow: auto; }
.task-detail-logs div { border: 1px solid var(--border); border-radius: 8px; padding: 8px 9px; background: var(--bg); }
.task-detail-logs div.stdout { border-color: #bbf7d0; background: #f0fdf4; }
.task-detail-logs div.stderr { border-color: #fecaca; background: #fef2f2; }
.task-detail-logs div.control { border-color: #bfdbfe; background: #eff6ff; }
.task-detail-logs div.note { border-color: #fde68a; background: #fffbeb; }
.task-detail-logs em { font-style: normal; color: var(--muted); font-size: 11px; }
.task-detail-logs span { display: block; font-size: 12px; font-weight: 700; margin: 2px 0 4px; }
.task-detail-logs pre { margin: 0; white-space: pre-wrap; word-break: break-word; font-size: 12px; line-height: 1.45; }
.goal-detail .task-detail-logs { max-height: 180px; }
.goal-detail-stack { min-width: 0; display: grid; gap: 8px; }
.goal-detail-group {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel);
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(17,24,39,.025);
}
.goal-detail-group summary {
  list-style: none;
  cursor: pointer;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
}
.goal-detail-group summary::-webkit-details-marker { display: none; }
.goal-detail-group summary::after { content: '>'; color: var(--muted); font-size: 13px; font-weight: 850; transition: transform .16s ease; }
.goal-detail-group[open] summary { border-bottom: 1px solid var(--border); background: var(--panel-soft); }
.goal-detail-group[open] summary::after { transform: rotate(90deg); }
.goal-detail-group summary span { min-width: 0; display: grid; gap: 2px; }
.goal-detail-group summary strong,
.goal-detail-group summary small,
.goal-detail-group summary em { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.goal-detail-group summary strong { font-size: 12px; line-height: 1.25; }
.goal-detail-group summary small { color: var(--muted); font-size: 11px; line-height: 1.25; }
.goal-detail-group summary em {
  flex: 0 0 auto;
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  padding: 0 8px;
  font-size: 10px;
  font-style: normal;
  font-weight: 850;
}
.goal-detail-group-body { min-width: 0; display: grid; gap: 8px; padding: 9px; animation: workspaceStageIn .16s cubic-bezier(.2,.8,.2,1) both; }
.goal-detail-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: linear-gradient(180deg, #fff, #fbfbfa);
  padding: 12px;
  overflow: hidden;
}
.goal-detail-hero::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 3px; background: #2563eb; }
.goal-detail-hero.done::before,
.goal-detail-hero.succeeded::before { background: #16a34a; }
.goal-detail-hero.paused::before { background: #f97316; }
.goal-detail-hero.live { border-color: #bfdbfe; background: #eff6ff; }
.goal-detail-copy { min-width: 0; display: grid; gap: 4px; }
.goal-detail-copy span { width: fit-content; min-height: 21px; display: inline-grid; place-items: center; border: 1px solid var(--border); border-radius: 999px; background: var(--panel-soft); color: var(--muted); padding: 0 8px; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0; }
.goal-detail-copy strong,
.goal-detail-copy em { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.goal-detail-copy strong { font-size: 15px; white-space: nowrap; }
.goal-detail-copy em { color: var(--muted); font-size: 12px; font-style: normal; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.goal-detail-score { min-width: 66px; display: grid; justify-items: end; align-content: center; gap: 2px; }
.goal-detail-score strong { font-size: 20px; line-height: 1; }
.goal-detail-score span { color: var(--muted); font-size: 11px; font-weight: 700; }
.goal-detail-progress { grid-column: 1 / -1; height: 5px; border-radius: 999px; overflow: hidden; background: var(--panel-soft); }
.goal-detail-progress i { display: block; height: 100%; border-radius: inherit; background: var(--accent); transition: width .24s ease; }
.goal-detail-hero.live .goal-detail-progress i { background: #2563eb; }
.goal-detail-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.goal-detail-stats span { min-width: 0; min-height: 48px; border: 1px solid var(--border); border-radius: 10px; background: var(--panel-soft); padding: 7px 8px; display: grid; gap: 3px; }
.goal-detail-stats b,
.goal-detail-stats em { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.goal-detail-stats b { color: var(--muted); font-size: 10px; font-weight: 800; }
.goal-detail-stats em { color: var(--text); font-size: 12px; font-style: normal; font-weight: 700; }
.goal-roadmap-panel { border: 1px solid #bfdbfe; border-radius: 11px; background: #eff6ff; padding: 9px; display: grid; gap: 8px; }
.goal-roadmap-head { min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; align-items: start; }
.goal-roadmap-head > span { min-height: 22px; display: inline-grid; place-items: center; border: 1px solid #bfdbfe; border-radius: 999px; background: #fff; color: #1d4ed8; padding: 0 8px; font-size: 10px; font-weight: 850; text-transform: uppercase; }
.goal-roadmap-head div { min-width: 0; display: grid; gap: 2px; }
.goal-roadmap-head strong,
.goal-roadmap-head em { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.goal-roadmap-head strong { color: #1e40af; font-size: 12px; white-space: nowrap; }
.goal-roadmap-head em { color: #1d4ed8; font-size: 11px; font-style: normal; white-space: nowrap; }
.goal-roadmap-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.goal-roadmap-grid span { min-width: 0; min-height: 44px; border: 1px solid rgba(147,197,253,.7); border-radius: 9px; background: rgba(255,255,255,.72); padding: 7px 8px; display: grid; gap: 2px; }
.goal-roadmap-grid b,
.goal-roadmap-grid em { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.goal-roadmap-grid b { color: var(--muted); font-size: 10px; font-weight: 800; }
.goal-roadmap-grid em { color: var(--text); font-size: 11px; font-style: normal; font-weight: 750; }
.goal-plan-timeline { display: grid; gap: 7px; max-height: 260px; overflow: auto; padding-right: 2px; }
.goal-plan-step { position: relative; min-width: 0; display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 8px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg); padding: 8px 9px; align-items: center; }
.goal-plan-step span { width: 30px; height: 30px; border-radius: 999px; display: grid; place-items: center; background: var(--panel-soft); color: var(--muted); font-size: 10px; font-weight: 850; }
.goal-plan-step div { min-width: 0; display: grid; gap: 3px; }
.goal-plan-step strong,
.goal-plan-step em { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.goal-plan-step strong { font-size: 12px; white-space: nowrap; }
.goal-plan-step em { color: var(--muted); font-size: 11px; font-style: normal; white-space: nowrap; }
.goal-plan-step.completed,
.goal-plan-step.done { border-color: #bbf7d0; background: #f0fdf4; }
.goal-plan-step.completed span,
.goal-plan-step.done span { background: #22c55e; color: #fff; }
.goal-plan-step.running,
.goal-plan-step.in_progress { border-color: #bfdbfe; background: #eff6ff; }
.goal-plan-step.running span,
.goal-plan-step.in_progress span { background: #2563eb; color: #fff; }
.goal-plan-step.failed,
.goal-plan-step.error { border-color: #fecaca; background: #fef2f2; }
.goal-plan-step.failed span,
.goal-plan-step.error span { background: #ef4444; color: #fff; }
.goal-plan-step-actions { display: grid !important; grid-template-columns: repeat(2, minmax(52px, 1fr)); gap: 5px; }
.goal-plan-step-actions button { min-height: 28px; border: 1px solid var(--border); border-radius: 8px; background: #fff; color: var(--text); padding: 0 7px; font-size: 11px; font-weight: 800; }
.goal-plan-step-actions button:disabled { opacity: .5; cursor: not-allowed; }
.goal-execution-history { display: grid; gap: 7px; max-height: 320px; overflow: auto; padding-right: 2px; }
.goal-execution-item { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; border: 1px solid var(--border); border-radius: 10px; background: var(--bg); padding: 8px 9px; }
.goal-execution-item.succeeded,
.goal-execution-item.done { border-color: #bbf7d0; background: #f0fdf4; }
.goal-execution-item.failed,
.goal-execution-item.error { border-color: #fecaca; background: #fef2f2; }
.goal-execution-item.running,
.goal-execution-item.queued { border-color: #bfdbfe; background: #eff6ff; }
.goal-execution-item-main { min-width: 0; display: grid; gap: 3px; }
.goal-execution-item-head { min-width: 0; display: flex; align-items: center; gap: 7px; }
.goal-execution-item-head strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.goal-execution-item-head em { flex: 0 0 auto; color: var(--muted); font-size: 10px; font-style: normal; font-weight: 800; }
.goal-execution-item-main > span,
.goal-execution-item-main > small,
.goal-execution-item-main > p { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.goal-execution-item-main > span { color: var(--muted); font-size: 11px; }
.goal-execution-item-main > small { color: var(--muted); font-size: 10px; }
.goal-execution-item-main > p { margin: 1px 0 0; color: var(--text); font-size: 11px; }
.goal-execution-open { min-height: 28px; border: 1px solid var(--border); border-radius: 8px; background: #fff; color: var(--text); padding: 0 8px; font-size: 11px; font-weight: 800; white-space: nowrap; }
.goal-execution-open:hover { border-color: var(--accent); background: var(--accent-soft); }
.profile-tags, .preset-commands { display: flex; flex-wrap: wrap; gap: 6px; }
.profile-tags em { min-height: 24px; border: 1px solid var(--border); border-radius: 999px; background: var(--panel-soft); color: var(--muted); display: inline-flex; align-items: center; padding: 0 8px; font-size: 11px; font-style: normal; }
.preset-commands:empty { display: none; }
.preset-commands button { min-height: 28px; border: 1px solid var(--border); border-radius: 8px; background: var(--panel); color: var(--text); padding: 0 8px; font-size: 12px; }
.preset-commands button:hover { background: var(--accent-soft); }
.tree-item { width: 100%; min-height: 30px; border: 0; border-radius: 8px; background: transparent; color: var(--text); display: grid; grid-template-columns: 16px minmax(0, 1fr); align-items: center; gap: 5px; padding: 0 8px 0 calc(8px + (var(--depth, 0) * 14px)); text-align: left; }
.tree-item:hover { background: var(--accent-soft); }
.tree-item span { color: var(--muted); font-size: 11px; }
.tree-item strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 600; }
.tree-item.directory strong { color: var(--text); }
.tree-item.file strong { color: var(--muted); font-weight: 500; }
.file-preview, .diff-preview { min-width: 0; }
.file-preview-head { display: grid; gap: 3px; margin-bottom: 8px; }
.file-preview-head strong { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-preview-head span { color: var(--muted); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.diff-file-summary { display: grid; gap: 6px; margin-bottom: 8px; }
.diff-file-summary:empty { display: none; }
.diff-file-item { border: 1px solid var(--border); border-radius: 9px; background: var(--panel); padding: 7px 8px; display: grid; gap: 3px; }
.diff-file-item strong { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.diff-file-item span { color: var(--muted); font-size: 11px; }
.file-preview pre { max-height: 280px; margin: 0; overflow: auto; border: 1px solid var(--border); border-radius: 10px; background: #0f172a; color: #e5e7eb; padding: 10px; font-family: Consolas, "SFMono-Regular", monospace; font-size: 12px; line-height: 1.55; white-space: pre; }
.diff-preview pre { max-height: 260px; margin: 0; overflow: auto; border: 1px solid var(--border); border-radius: 10px; background: #0f172a; color: #e5e7eb; padding: 10px; font-family: Consolas, "SFMono-Regular", monospace; font-size: 12px; line-height: 1.55; white-space: pre; }
.file-preview-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(88px, 1fr)); gap: 8px; margin-top: 8px; }
.file-preview-actions button { min-height: 32px; border: 1px solid var(--border); border-radius: 9px; background: var(--panel); color: var(--text); padding: 0 8px; font-size: 12px; }
.file-preview-actions button:hover { background: var(--accent-soft); }
.terminal-runner { display: grid; gap: 8px; }
.terminal-command { display: grid; grid-template-columns: minmax(0, 1fr) 64px; gap: 8px; }
.terminal-command input { min-width: 0; min-height: 36px; border: 1px solid var(--border); border-radius: 9px; background: var(--panel); color: var(--text); outline: none; padding: 0 10px; font-size: 12px; }
.terminal-command input:focus { border-color: #aab1bd; box-shadow: 0 0 0 3px rgba(17, 24, 39, .07); }
.terminal-command button { min-height: 36px; border: 1px solid var(--border); border-radius: 9px; background: var(--panel); color: var(--text); font-size: 12px; }
.terminal-command button:hover { background: var(--accent-soft); }
.terminal-runner pre { max-height: 220px; margin: 0; overflow: auto; border: 1px solid var(--border); border-radius: 10px; background: #0f172a; color: #e5e7eb; padding: 10px; font-family: Consolas, "SFMono-Regular", monospace; font-size: 12px; line-height: 1.55; white-space: pre-wrap; }
.terminal-runner .secondary-inline { justify-self: start; margin-top: 0; }

.modal-backdrop[hidden], .modal[hidden], .workspace-flow-backdrop[hidden] { display: none !important; }
.modal-backdrop { position: fixed; inset: 0; background: rgba(17, 24, 39, .34); backdrop-filter: blur(8px); z-index: 20; animation: fadeIn .14s ease both; }
.modal { position: fixed; z-index: 21; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(460px, calc(100vw - 28px)); max-height: min(86vh, 760px); overflow: auto; background: rgba(255,255,255,.98); border-radius: 16px; box-shadow: var(--shadow); border: 1px solid rgba(229,231,235,.9); padding: 16px; animation: modalIn .16s cubic-bezier(.2,.8,.2,1) both; }
.modal.wide { width: min(820px, calc(100vw - 28px)); }
.modal header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.modal h2 { margin: 0; font-size: 18px; }
.modal-close { width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--border); background: var(--panel); }
.modal-note { margin: -4px 0 12px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.stack-form { display: grid; gap: 12px; }
.stack-form label { color: var(--muted); font-size: 13px; display: grid; gap: 6px; }
.stack-form input, .stack-form textarea, .stack-form select, .bridge-card select { width: 100%; min-height: 40px; border: 1px solid var(--border); border-radius: 10px; padding: 0 11px; outline: none; color: var(--text); background: var(--panel); }
.stack-form textarea { min-height: 112px; resize: vertical; padding: 10px 11px; line-height: 1.5; }
.split-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.modal-actions { margin-top: 14px; }
.account-box p { color: var(--muted); }
.account-modal { width: min(480px, calc(100vw - 28px)); padding: 22px; }
.account-modal header { align-items: flex-start; margin-bottom: 20px; }
.account-modal .modal-heading { display: grid; gap: 4px; }
.account-modal .modal-heading > span { color: var(--muted-2); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.account-modal .modal-heading h2 { font-size: 21px; letter-spacing: -.01em; }
.account-modal .modal-close { flex: 0 0 34px; color: var(--muted); font-size: 22px; line-height: 1; }
.account-modal .modal-close:hover { border-color: var(--border-strong); background: var(--panel-soft); color: var(--text); }
.account-intro { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 12px; align-items: center; margin-bottom: 20px; padding: 13px 14px; border: 1px solid var(--border); border-radius: 12px; background: linear-gradient(180deg, #fbfbfc, #f5f6f8); }
.account-intro-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: #111827; color: #fff; }
.account-intro-icon svg { width: 21px; height: 21px; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.account-intro strong { display: block; color: var(--text); font-size: 13px; font-weight: 750; }
.account-intro p { margin: 4px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.account-modal .stack-form { gap: 14px; }
.account-modal .stack-form label { color: var(--text); font-size: 12px; font-weight: 650; }
.account-modal .stack-form input { min-height: 44px; border-radius: 10px; padding: 0 12px; }
.account-modal .stack-form input::placeholder { color: var(--muted-2); }
.account-modal .split-actions { margin-top: 4px; }
.account-modal .split-actions button { min-height: 42px; }
.account-modal .account-box { display: grid; gap: 12px; }
.account-modal .account-box > p { margin: 0; padding: 12px 13px; border: 1px solid var(--border); border-radius: 10px; background: var(--panel-soft); font-size: 13px; }
.account-modal .account-box .stack-form { gap: 10px; }
.account-modal .account-box > button { min-height: 40px; }
.account-modal .account-box > .secondary-btn { margin-top: 2px; }
.prompt-variable-fields { max-height: 46vh; overflow: auto; padding-right: 2px; }
.prompt-variable-fields label strong { color: var(--text); font-size: 13px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prompt-template-list { margin-top: 14px; display: grid; gap: 8px; max-height: 280px; overflow: auto; }
.prompt-template-item { border: 1px solid var(--border); border-radius: 10px; background: var(--panel-soft); padding: 10px; display: grid; gap: 7px; }
.prompt-template-item strong { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prompt-template-item span { color: var(--muted); font-size: 12px; line-height: 1.45; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.prompt-template-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.prompt-template-actions button { min-height: 30px; border: 1px solid var(--border); border-radius: 8px; background: var(--panel); color: var(--text); padding: 0 9px; font-size: 12px; }
.prompt-template-actions button:hover { background: var(--accent-soft); }
.bridge-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.bridge-card { border: 1px solid var(--border); background: var(--panel-soft); border-radius: 14px; padding: 14px; display: grid; gap: 10px; align-content: start; }
.bridge-card p { margin: 0; color: var(--muted); line-height: 1.55; font-size: 13px; }
.agent-capabilities { margin-top: 14px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.agent-capabilities span { min-height: 34px; border: 1px solid var(--border); border-radius: 10px; background: var(--panel); display: grid; place-items: center; color: var(--muted); font-size: 12px; font-weight: 650; }
.tool-list { margin-top: 14px; display: flex; gap: 8px; flex-wrap: wrap; color: var(--muted); }
.tool-list:empty { display: none; }
.tool-list .tool-chip { margin: 0; }
.tool-chip { border: 1px solid var(--border); background: var(--panel); border-radius: 999px; padding: 6px 10px; font-size: 12px; color: var(--muted); }
.toast-host { position: fixed; right: 18px; bottom: 18px; z-index: 30; display: grid; gap: 8px; }
.toast { max-width: 360px; border-radius: 12px; background: #111827; color: #fff; padding: 11px 13px; box-shadow: 0 12px 30px rgba(15, 23, 42, .18); font-size: 13px; }
.toast.error { background: #991b1b; }

.chat-folder-tabs { display: none !important; }

.new-chat-choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.new-chat-choice { min-width: 0; border: 1px solid var(--border); border-radius: 12px; background: var(--panel-soft); color: var(--text); padding: 12px; text-align: left; display: grid; gap: 5px; transition: background .18s ease, border-color .18s ease, box-shadow .18s ease; }
.new-chat-choice span { width: fit-content; min-height: 20px; display: inline-grid; place-items: center; border: 1px solid var(--border); border-radius: 999px; padding: 0 8px; color: var(--muted); font-size: 10px; font-weight: 800; }
.new-chat-choice strong { font-size: 14px; }
.new-chat-choice em { color: var(--muted); font-size: 12px; font-style: normal; }
.new-chat-choice:hover { border-color: var(--border-strong); background: #fff; }
.new-chat-choice.active { border-color: #0f766e; background: #ecfdf5; box-shadow: inset 0 0 0 1px rgba(15,118,110,.18); }
.new-chat-choice.active span { border-color: #99f6e4; background: #fff; color: #0f766e; }
.new-chat-form { margin-top: 4px; }

.new-project-modal { width: min(520px, calc(100vw - 28px)); padding: 18px; }
.new-project-hero { border: 1px solid #99f6e4; border-radius: 14px; background: linear-gradient(180deg, #f0fdfa, #fff); padding: 14px; display: grid; gap: 5px; margin-bottom: 12px; }
.new-project-hero span { width: fit-content; min-height: 22px; display: inline-grid; place-items: center; border: 1px solid #99f6e4; border-radius: 999px; background: #fff; color: #0f766e; padding: 0 9px; font-size: 10px; font-weight: 850; text-transform: uppercase; }
.new-project-hero strong { font-size: 16px; }
.new-project-hero em { color: var(--muted); font-size: 12px; font-style: normal; line-height: 1.45; }
.new-project-form input { min-height: 44px; border-radius: 12px; font-size: 14px; }
.new-project-form textarea { min-height: 86px; border-radius: 12px; }
.new-project-modal .modal-actions { grid-template-columns: minmax(0, 1fr) 132px; align-items: center; }
.new-project-modal .modal-actions button { min-width: 0; min-height: 44px; border-radius: 11px; white-space: nowrap; font-weight: 800; }
.new-project-modal .modal-actions button:first-child { background: var(--accent); border-color: var(--accent); color: #fff; }
.new-project-modal .modal-actions .secondary-btn { background: #fff; border: 1px solid var(--border); color: var(--text); }

.project-upload-modal { width: min(640px, calc(100vw - 28px)); padding: 18px; background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.98)); }
.project-upload-input { position: fixed; left: -10000px; top: auto; width: 1px; height: 1px; opacity: .001; pointer-events: none; }
.project-upload-hero { margin-top: 10px; border: 1px solid rgba(15,118,110,.18); border-radius: 16px; background: linear-gradient(180deg, #fbfffe, #f2fbf8); padding: 14px; display: grid; gap: 6px; box-shadow: inset 0 1px 0 rgba(255,255,255,.88); }
.project-upload-hero span { width: fit-content; min-height: 22px; display: inline-grid; place-items: center; border: 1px solid #99f6e4; border-radius: 999px; background: #fff; color: #0f766e; padding: 0 9px; font-size: 10px; font-weight: 850; text-transform: uppercase; }
.project-upload-hero strong { font-size: 17px; color: var(--text); }
.project-upload-hero em { color: var(--muted); font-size: 12px; font-style: normal; line-height: 1.45; }
.project-upload-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.project-upload-options button { min-width: 0; min-height: 132px; border: 1px solid #dbe4f0; border-radius: 14px; background: linear-gradient(180deg, #fff, #f8fafc); color: var(--text); padding: 14px; text-align: left; display: grid; align-content: start; gap: 7px; box-shadow: 0 1px 0 rgba(255,255,255,.9) inset; transition: border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease; }
.project-upload-options button:hover { border-color: rgba(15,118,110,.55); background: linear-gradient(180deg, #fbfffe, #eefaf6); box-shadow: 0 14px 32px rgba(15,118,110,.11); transform: translateY(-1px); }
.project-upload-options button:focus-visible { box-shadow: var(--focus-ring), 0 14px 32px rgba(15,118,110,.10); }
.project-upload-options button:disabled { opacity: .58; cursor: wait; box-shadow: none; }
.project-upload-options span { width: fit-content; min-height: 22px; display: inline-grid; place-items: center; border: 1px solid #bfdbfe; border-radius: 999px; background: #eff6ff; color: #1d4ed8; padding: 0 9px; font-size: 10px; font-weight: 850; text-transform: uppercase; }
.project-upload-options strong { font-size: 15px; }
.project-upload-options em { color: var(--muted); font-size: 12px; font-style: normal; line-height: 1.45; }
.project-upload-progress { margin-top: 12px; border: 1px solid #dbe4f0; border-radius: 16px; background: rgba(255,255,255,.92); padding: 13px; display: grid; gap: 11px; box-shadow: 0 12px 34px rgba(15, 23, 42, .06); }
.project-upload-progress-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.project-upload-progress-head strong { min-width: 0; font-size: 13px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project-upload-progress-head span { flex: 0 0 auto; min-width: 46px; text-align: right; color: #0f766e; font-size: 12px; font-weight: 850; }
.project-upload-meter { height: 9px; border-radius: 999px; background: #e5e7eb; overflow: hidden; }
.project-upload-meter span { display: block; width: 0%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #0f766e, #14b8a6); transition: width .18s ease; position: relative; overflow: hidden; }
.project-upload-meter span::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.48), transparent); animation: progressSheen 1.8s var(--ease-standard) infinite; }
.project-upload-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.project-upload-stats span { min-width: 0; border: 1px solid #eef2f7; border-radius: 12px; background: #f8fafc; padding: 9px 10px; display: grid; gap: 2px; }
.project-upload-stats b { color: var(--text); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project-upload-stats em { color: var(--muted); font-size: 11px; font-style: normal; }
.project-upload-current { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.45; overflow-wrap: anywhere; }
.project-upload-result { border: 1px solid #e2e8f0; border-radius: 12px; background: #f8fafc; padding: 9px 10px; color: var(--muted); font-size: 12px; line-height: 1.45; max-height: 120px; overflow: auto; }
.project-upload-result strong { color: var(--text); }
.project-upload-review { margin-top: 12px; border: 1px solid rgba(15,118,110,.2); border-radius: 16px; background: linear-gradient(180deg, #ffffff, #f5fbf9); padding: 13px; display: grid; gap: 12px; box-shadow: 0 16px 38px rgba(15, 23, 42, .08); }
.project-upload-review[hidden] { display: none !important; }
.project-upload-review-head { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.project-upload-review-head > div { min-width: 0; display: grid; gap: 3px; }
.project-upload-review-head span { width: fit-content; min-height: 20px; display: inline-grid; place-items: center; border: 1px solid #99f6e4; border-radius: 999px; background: #ecfdf5; color: #0f766e; padding: 0 8px; font-size: 9.5px; font-weight: 850; text-transform: uppercase; }
.project-upload-review-head strong { color: var(--text); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project-upload-review-head em { color: var(--muted); font-size: 12px; font-style: normal; line-height: 1.45; }
.project-upload-review-head b { flex: 0 0 auto; border: 1px solid #dbe4f0; border-radius: 999px; background: #fff; color: #0f766e; padding: 4px 9px; font-size: 11px; }
.project-upload-review-list { max-height: 154px; overflow: auto; display: grid; gap: 4px; padding-right: 2px; scrollbar-width: thin; }
.project-upload-review-list span { min-width: 0; min-height: 32px; border: 1px solid #e2e8f0; border-radius: 10px; background: rgba(255,255,255,.86); padding: 6px 8px; display: grid; gap: 1px; }
.project-upload-review-list span.warn { border-color: #fed7aa; background: #fff7ed; }
.project-upload-review-list span.muted { background: #f8fafc; }
.project-upload-review-list strong { min-width: 0; color: #0f172a; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project-upload-review-list em { min-width: 0; color: #64748b; font-size: 10.5px; font-style: normal; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project-upload-review-actions { display: grid; grid-template-columns: minmax(0, 1fr) 128px; gap: 10px; }
.project-upload-review-actions button { min-height: 40px; border-radius: 11px; font-weight: 850; }
.project-upload-review-actions button:first-child { border-color: #0f766e; background: #0f766e; color: #fff; box-shadow: 0 12px 26px rgba(15,118,110,.16); }
.project-upload-review-actions .secondary-btn { background: #fff; color: #334155; border-color: #dbe4f0; }
.project-upload-note { margin-top: 12px; border: 1px solid #ccfbf1; border-radius: 12px; background: #f0fdfa; padding: 11px; display: grid; gap: 3px; }
.project-upload-note strong { font-size: 13px; }
.project-upload-note span { color: var(--muted); font-size: 12px; }
@media (max-width: 560px) {
  .project-upload-options,
  .project-upload-stats,
  .project-upload-review-actions { grid-template-columns: 1fr; }
}

.project-space-file-tree { background: #f8fafc; border-radius: 10px; overflow: hidden; border: 1px solid #dbe4f0; }
#projectFilesSection .resource-toolbar { border: 1px solid #dbe4f0; border-radius: 9px; background: #fbfdff; padding: 6px; gap: 6px; box-shadow: inset 0 1px 0 rgba(255,255,255,.86); }
#projectFilesSection .resource-search { min-height: 30px; border-radius: 7px; background: #fff; }
#projectFilesSection .resource-search input { min-height: 30px; font-size: 12px; }
#projectFilesSection .resource-segments { min-height: 30px; border-radius: 7px; background: #f1f5f9; padding: 2px; gap: 2px; }
#projectFilesSection .resource-segments button { min-height: 24px; border-radius: 6px; padding: 0 8px; font-size: 11px; }
.project-space-file-tree .cloud-file-browser-head { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px; border: 0; border-bottom: 1px solid #dbe4f0; background: linear-gradient(180deg, #fbfdff, #f5f8fb); padding: 7px 7px 6px; box-shadow: inset 0 1px 0 rgba(255,255,255,.92); }
.project-space-file-tree .cloud-file-browser-head > div:first-child { display: grid; gap: 1px; min-width: 0; }
.project-space-file-tree .cloud-file-browser-head > div:first-child > span:first-child { color: #64748b; font-size: 9px; font-weight: 860; letter-spacing: .08em; text-transform: uppercase; }
.project-space-file-tree .cloud-file-browser-head strong { color: #0f172a; font-size: 12px; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project-space-file-tree .cloud-file-browser-head small { min-width: 0; color: #64748b; font-size: 10.5px; font-weight: 640; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-tree-status-line { display: flex; align-items: center; gap: 5px; }
.file-scope-pill { width: fit-content; min-height: 17px; display: inline-grid; place-items: center; border: 1px solid rgba(15,118,110,.16); border-radius: 999px; background: #ecfdf5; color: #0f766e; padding: 0 6px; font-size: 9px; font-weight: 850; line-height: 1; }
.file-scope-pill.chat-workspace { border-color: rgba(37,99,235,.18); background: #eff6ff; color: #1d4ed8; }
.file-tree-count { min-height: 20px; display: inline-grid; place-items: center; border: 1px solid #e2e8f0; border-radius: 999px; background: #fff; color: #64748b; padding: 0 7px; font-size: 10px; font-style: normal; font-weight: 780; white-space: nowrap; }
.file-tree-actions { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) repeat(5, 26px); align-items: center; gap: 4px; padding-top: 5px; min-width: 0; }
.file-tree-actions button {
  min-width: 0;
  min-height: 26px;
  border-radius: 6px;
  padding: 0 7px;
  font-size: 10.5px;
  font-weight: 760;
  border: 1px solid #dbe4f0;
  background: #fff;
  color: #334155;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.project-space-file-tree .cloud-file-browser-head .file-tree-actions button { grid-column: auto; justify-self: stretch; }
.file-tree-actions button svg,
.file-tree-row-actions button svg,
.file-tree-disclosure svg,
.file-tree-icon svg { width: 12px; height: 12px; display: block; }
.file-tree-actions button:not(.primary) { width: 26px; padding: 0; }
.file-tree-actions button.primary { width: auto; margin-right: 2px; background: #0f766e; border-color: #0f766e; color: #fff; box-shadow: 0 6px 14px rgba(15,118,110,.14); }
.file-tree-actions button:hover { transform: translateY(-1px); border-color: #94a3b8; background: #f8fafc; }
.file-tree-actions button.primary:hover { background: #115e59; border-color: #115e59; box-shadow: 0 10px 22px rgba(15,118,110,.18); }
.file-tree-actions button:focus-visible,
.project-file-tree-row:focus-visible,
.file-tree-row-actions button:focus-visible,
.file-tree-disclosure:focus-visible { outline: 2px solid rgba(20,184,166,.45); outline-offset: 2px; }
.project-file-tree { --tree-bg: #fbfdff; --tree-bg-alt: #f7fafc; --tree-line: rgba(148,163,184,.24); --tree-selected-line: #0f766e; border: 0; border-radius: 0; background: var(--tree-bg); overflow: auto; box-shadow: none; font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; scrollbar-width: thin; scrollbar-color: #cbd5e1 transparent; }
.project-space-file-tree > .project-file-tree:not(.empty-tree):not(.project-file-tree-skeleton) { max-height: min(46vh, 420px); overscroll-behavior: contain; }
.project-file-tree::-webkit-scrollbar { width: 8px; height: 8px; }
.project-file-tree::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 999px; border: 2px solid #fbfdff; }
.project-file-tree::-webkit-scrollbar-track { background: transparent; }
.project-file-tree.empty-tree { min-height: 118px; display: grid; place-items: center; background: linear-gradient(180deg, #fbfdff, #f8fafc); font-family: inherit; }
.file-tree-empty { color: var(--muted); display: grid; gap: 5px; text-align: center; padding: 18px; }
.file-tree-empty strong { color: var(--text); font-size: 13px; }
.file-tree-empty span { font-size: 12px; line-height: 1.45; }
.project-file-tree-skeleton { padding: 4px 0; background: #fbfdff; }
.project-file-tree-skeleton span { min-height: 23px; display: block; border-bottom: 1px solid rgba(226,232,240,.52); background: linear-gradient(90deg, rgba(241,245,249,.72), rgba(248,250,252,.96), rgba(241,245,249,.72)); background-size: 180% 100%; animation: progressSheen 1.2s ease-in-out infinite; }
.project-file-tree-skeleton span:nth-child(1) { width: 62%; margin-left: 6px; }
.project-file-tree-skeleton span:nth-child(2) { width: 78%; margin-left: 20px; }
.project-file-tree-skeleton span:nth-child(3) { width: 54%; margin-left: 20px; }
.project-file-tree-skeleton span:nth-child(4) { width: 70%; margin-left: 34px; }
.project-file-tree-skeleton span:nth-child(5) { width: 48%; margin-left: 6px; border-bottom: 0; }
.project-file-tree-row {
  --depth: 0;
  min-width: 0;
  min-height: 18px;
  display: grid;
  grid-template-columns: 11px 15px minmax(42px, 1fr) auto;
  align-items: center;
  gap: 2px;
  padding: 0 36px 0 calc(4px + var(--depth) * 10px);
  border-bottom: 1px solid rgba(226,232,240,.18);
  color: var(--text);
  cursor: default;
  position: relative;
  transition: background .14s ease, box-shadow .14s ease, color .14s ease;
}
.project-file-tree-row:nth-child(even) { background: rgba(248,250,252,.26); }
.project-file-tree-row::before {
  content: "";
  position: absolute;
  left: calc(9px + max(var(--depth), 1) * 10px - 10px);
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--tree-line);
  opacity: calc(var(--depth) * .32);
  pointer-events: none;
}
.project-file-tree-row::after {
  content: "";
  position: absolute;
  left: calc(9px + max(var(--depth), 1) * 10px - 10px);
  top: 50%;
  width: 7px;
  height: 1px;
  background: var(--tree-line);
  opacity: calc(var(--depth) * .30);
  pointer-events: none;
}
.project-file-tree-row:last-child { border-bottom: 0; }
.project-file-tree-row:hover { background: #edf7f5; }
.project-file-tree-row:hover::before,
.project-file-tree-row:hover::after { background: rgba(15,118,110,.36); }
.project-file-tree-row.selected { background: #dff3ef; box-shadow: inset 2px 0 0 var(--tree-selected-line), inset 0 0 0 1px rgba(15,118,110,.10); }
.project-file-tree-row.selected::before,
.project-file-tree-row.selected::after { background: rgba(15,118,110,.45); }
.project-file-tree-row:active { background: #d4eee8; }
.project-file-tree-row.changed { color: #0f172a; }
.file-tree-disclosure { width: 11px; height: 18px; border: 0; border-radius: 4px; background: transparent; color: #64748b; line-height: 1; display: grid; place-items: center; padding: 0; }
.file-tree-disclosure:hover { background: rgba(15,118,110,.08); color: #0f766e; }
.file-tree-icon { width: 15px; height: 18px; display: grid; place-items: center; color: #64748b; }
.file-tree-icon.folder { color: #0f766e; }
.file-tree-icon.code { color: #2563eb; }
.file-tree-icon.doc { color: #475569; }
.file-tree-icon.media { color: #7c3aed; }
.file-tree-icon.style { color: #0891b2; }
.file-tree-main { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); line-height: 1; }
.file-tree-name-line { min-width: 0; display: flex; align-items: baseline; gap: 5px; overflow: hidden; }
.file-tree-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10.5px; font-weight: 590; letter-spacing: 0; }
.project-file-tree-row.directory .file-tree-name { font-weight: 690; }
.project-file-tree-row.file:hover .file-tree-name,
.project-file-tree-row.selected .file-tree-name { color: #0f172a; }
.file-tree-meta { flex: 0 0 auto; max-width: 62px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #94a3b8; font-size: 9px; font-weight: 720; letter-spacing: 0; }
.project-file-tree-row:hover .file-tree-meta,
.project-file-tree-row.selected .file-tree-meta { color: #64748b; }
.project-file-tree-row em { min-height: 14px; display: inline-grid; place-items: center; border: 1px solid transparent; border-radius: 5px; background: transparent; color: #64748b; padding: 0 3px; font-size: 8.5px; font-style: normal; font-weight: 760; white-space: nowrap; }
.project-file-tree-row em.idle { width: 0; min-width: 0; padding: 0; overflow: hidden; }
.project-file-tree-row.changed em { border-color: #bfdbfe; background: #eff6ff; color: #1d4ed8; box-shadow: 0 1px 0 rgba(255,255,255,.9) inset; }
.file-tree-row-actions { position: absolute; z-index: var(--z-dropdown); right: 3px; top: 50%; transform: translateY(-50%); display: flex; justify-content: end; gap: 1px; opacity: 0; pointer-events: none; transition: opacity .14s ease; }
.project-file-tree-row:hover .file-tree-row-actions,
.project-file-tree-row.selected .file-tree-row-actions { opacity: 1; pointer-events: auto; }
.file-tree-row-actions button { width: 17px; min-width: 17px; min-height: 17px; border: 1px solid rgba(203,213,225,.72); border-radius: 4px; background: rgba(255,255,255,.94); color: #475569; padding: 0; display: grid; place-items: center; backdrop-filter: blur(6px); box-shadow: 0 3px 8px rgba(15,23,42,.05); }
.file-tree-row-actions button:hover { border-color: #94a3b8; background: #fff; color: #0f172a; transform: translateY(-1px); }
.file-tree-row-actions button[data-project-file-inline="delete"]:hover { border-color: #fecaca; background: #fef2f2; color: #b42318; }

.project-file-editor-modal { width: min(1040px, calc(100vw - 28px)); background: linear-gradient(180deg, #ffffff, #f8fafc); box-shadow: 0 30px 90px rgba(15,23,42,.22); }
.project-file-editor-modal header { border-bottom: 1px solid #e2e8f0; padding-bottom: 10px; }
.project-file-editor-title { min-width: 0; display: grid; gap: 3px; }
.project-file-editor-title h2 { margin: 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 16px; letter-spacing: 0; }
.project-file-editor-title span { color: #64748b; font-size: 11px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project-file-editor-toolbar { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; padding: 6px; border: 1px solid #dbe4f0; border-radius: 9px; background: linear-gradient(180deg, #fbfdff, #f1f5f9); box-shadow: inset 0 1px 0 rgba(255,255,255,.92); }
.project-file-editor-toolbar button { min-height: 30px; border: 1px solid #dbe4f0; border-radius: 7px; background: #fff; color: var(--text); padding: 0 9px; font-size: 11.5px; font-weight: 760; box-shadow: 0 1px 0 rgba(255,255,255,.9) inset; transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease, opacity .18s ease; }
.project-file-editor-toolbar button:hover { border-color: #94a3b8; background: #f8fafc; }
.project-file-editor-toolbar button:focus-visible { outline: 2px solid rgba(37,99,235,.36); outline-offset: 2px; }
.project-file-editor-toolbar button:disabled { opacity: .58; cursor: wait; transform: none; }
.project-file-editor-toolbar button:first-child { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 7px 16px rgba(15,118,110,.14); }
.project-file-editor-toolbar button:first-child:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
#projectFileEditorInput { width: 100%; min-height: min(58vh, 580px); resize: vertical; border: 1px solid #1e293b; border-radius: 10px 10px 0 0; background: linear-gradient(90deg, rgba(148,163,184,.07) 0 42px, transparent 42px), radial-gradient(circle at 100% 0%, rgba(37,99,235,.10), transparent 26%), var(--surface-code); color: #e5e7eb; padding: 14px 14px 14px 54px; font-family: Consolas, "SFMono-Regular", monospace; font-size: 12px; line-height: 1.58; outline: none; box-shadow: inset 0 1px 0 rgba(255,255,255,.04); tab-size: 2; }
#projectFileEditorInput:focus { border-color: #38bdf8; box-shadow: 0 0 0 3px rgba(56,189,248,.18), inset 0 1px 0 rgba(255,255,255,.05); }
.project-file-image-viewer { margin-top: 12px; border: 1px solid #dbe4f0; border-radius: 16px; background: linear-gradient(180deg, #0f172a, #111827); overflow: hidden; box-shadow: inset 0 1px 0 rgba(255,255,255,.06); }
.project-file-image-viewer[hidden] { display: none !important; }
.project-file-image-stage { min-height: min(56vh, 520px); max-height: min(62vh, 620px); display: grid; place-items: center; padding: 16px; background-image: linear-gradient(45deg, rgba(255,255,255,.045) 25%, transparent 25%), linear-gradient(-45deg, rgba(255,255,255,.045) 25%, transparent 25%), linear-gradient(45deg, transparent 75%, rgba(255,255,255,.045) 75%), linear-gradient(-45deg, transparent 75%, rgba(255,255,255,.045) 75%); background-size: 18px 18px; background-position: 0 0, 0 9px, 9px -9px, -9px 0; }
.project-file-image-stage img { display: block; max-width: 100%; max-height: min(54vh, 560px); object-fit: contain; border-radius: 8px; box-shadow: 0 18px 60px rgba(0,0,0,.28); background: rgba(255,255,255,.04); }
.project-file-image-meta { min-height: 38px; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; padding: 9px 10px; border-top: 1px solid rgba(255,255,255,.08); color: #cbd5e1; font-size: 11px; }
.project-file-image-meta span { min-width: 0; border: 1px solid rgba(255,255,255,.12); border-radius: 999px; background: rgba(255,255,255,.06); padding: 3px 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project-file-editor-status { min-height: 32px; margin-top: -1px; border: 1px solid #1e293b; border-radius: 0 0 12px 12px; background: var(--surface-code-2); color: #94a3b8; padding: 0 10px; display: flex; align-items: center; gap: 12px; overflow: hidden; font-size: 11px; font-weight: 650; }
.project-file-editor-status span { min-width: 0; flex: 0 0 auto; white-space: nowrap; }
.project-file-editor-status span:first-child { max-width: 140px; color: #cbd5e1; overflow: hidden; text-overflow: ellipsis; }
.project-file-editor-status strong { margin-left: auto; min-height: 22px; display: inline-grid; place-items: center; border: 1px solid rgba(45, 212, 191, .24); border-radius: 999px; background: rgba(20, 184, 166, .12); color: #99f6e4; padding: 0 9px; font-size: 10px; font-weight: 850; white-space: nowrap; }
.project-file-editor-status.dirty strong { border-color: rgba(251, 191, 36, .32); background: rgba(251, 191, 36, .13); color: #fde68a; }
.project-file-editor-status.saving strong { border-color: rgba(96,165,250,.32); background: rgba(37,99,235,.14); color: #bfdbfe; }
.project-file-snapshots { margin-top: 10px; border: 1px solid #dbe4f0; border-radius: 10px; background: #fbfdff; padding: 8px; display: grid; gap: 6px; }
.project-file-snapshots-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 0 2px 3px; }
.project-file-snapshots-head span { color: #64748b; font-size: 9px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.project-file-snapshots-head strong { color: #0f172a; font-size: 11px; font-weight: 780; }
.project-file-snapshots button { min-width: 0; border: 1px solid #e2e8f0; border-radius: 8px; background: #fff; padding: 7px; text-align: left; display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 7px; align-items: center; color: var(--text); box-shadow: 0 1px 0 rgba(255,255,255,.9) inset; transition: background .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.project-file-snapshots button:hover { border-color: rgba(15,118,110,.45); background: #f0fdfa; box-shadow: 0 8px 18px rgba(15,118,110,.08); transform: translateY(-1px); }
.project-file-snapshots button i { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 999px; background: #e0f2fe; color: #0369a1; font-size: 10px; font-style: normal; font-weight: 850; }
.project-file-snapshots button span { min-width: 0; display: grid; gap: 2px; color: inherit; }
.project-file-snapshots button strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.project-file-snapshots button em { color: #64748b; font-size: 10.5px; font-style: normal; }
.project-file-snapshots-empty,
.project-file-snapshots-loading { min-height: 38px; display: grid; place-items: center; color: #64748b; font-size: 11.5px; }

.project-file-action-modal { width: min(520px, calc(100vw - 28px)); background: linear-gradient(180deg, #fff, #f8fafc); }
.project-file-action-title { min-width: 0; display: grid; gap: 3px; }
.project-file-action-title span { color: #2563eb; font-size: 10px; font-weight: 850; text-transform: uppercase; letter-spacing: .06em; }
.project-file-action-title h2 { margin: 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project-file-action-title em { color: var(--muted); font-size: 12px; font-style: normal; line-height: 1.45; }
.project-file-action-body { display: grid; gap: 12px; }
.project-file-action-body label { display: grid; gap: 7px; color: var(--muted); font-size: 12px; font-weight: 750; }
.project-file-action-body input { width: 100%; min-height: 42px; border: 1px solid #dbe4f0; border-radius: 9px; background: #fbfdff; color: var(--text); padding: 0 12px; font-size: 13px; outline: none; transition: border-color .18s ease, box-shadow .18s ease, background .18s ease; }
.project-file-action-body input:focus { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,.14); background: #fff; }
.project-file-action-body input:disabled { background: #f8fafc; color: #64748b; cursor: not-allowed; }
.project-file-action-preview { border: 1px solid #e2e8f0; border-radius: 10px; background: linear-gradient(180deg, #fff, #f8fafc); padding: 8px; display: grid; gap: 6px; transition: border-color .18s var(--ease-standard), background .18s var(--ease-standard), box-shadow .18s var(--ease-standard); }
.project-file-action-preview.invalid { border-color: #fecaca; background: #fff7f7; box-shadow: 0 0 0 3px rgba(220,38,38,.06); }
.project-file-action-preview.warn { border-color: #fed7aa; background: #fffaf3; }
.project-file-action-preview-status { min-width: 0; min-height: 30px; display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 8px; align-items: center; border: 1px solid #ccfbf1; border-radius: 8px; background: #f0fdfa; padding: 6px 8px; }
.project-file-action-preview-status.warn { border-color: #fed7aa; background: #fff7ed; }
.project-file-action-preview-status.invalid { border-color: #fecaca; background: #fef2f2; }
.project-file-action-preview-status b { color: #0f766e; font-size: 11px; font-weight: 850; }
.project-file-action-preview-status.warn b { color: #b45309; }
.project-file-action-preview-status.invalid b { color: #b91c1c; }
.project-file-action-preview-status em { min-width: 0; color: #334155; font-size: 12px; font-style: normal; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project-file-action-preview span { min-width: 0; display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 8px; align-items: center; }
.project-file-action-preview b { color: #475569; font-size: 11px; }
.project-file-action-preview em { min-width: 0; color: #0f172a; font-size: 12px; font-style: normal; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project-file-action-modal .modal-actions button.danger { border-color: #dc2626; background: #dc2626; color: #fff; box-shadow: 0 8px 18px rgba(220,38,38,.13); }
.project-file-action-modal .modal-actions button:disabled { opacity: .55; cursor: wait; }
@media (max-width: 720px) {
  .project-file-tree-row { grid-template-columns: 11px 15px minmax(64px, 1fr) auto; min-height: 20px; padding-right: 52px; }
  .file-tree-row-actions { right: 5px; opacity: 1; pointer-events: auto; }
  .file-tree-meta { max-width: 58px; }
  .project-file-action-preview span { grid-template-columns: 1fr; gap: 2px; }
}

/* AI-native motion layer: small, consistent, and disabled under reduced motion. */
.message-row,
.workspace-stage,
.workspace-view,
.workspace-mode-summary,
.workspace-entry-primary,
.workspace-drawer[open],
.modal,
.project-upload-progress,
.project-file-tree,
.edited-files-card {
  animation-duration: var(--motion-base);
  animation-timing-function: var(--ease-out);
}

.message-row {
  animation: messageIn var(--motion-slow) var(--ease-out) both;
}

.message-row.user {
  animation-name: messageInUser;
}

.message-row.assistant .message-body,
.message-row.tool .message-body,
.message-row.user .message-body,
.edited-files-card,
.project-upload-progress,
.project-file-action-preview {
  transition: border-color var(--motion-base) var(--ease-standard), box-shadow var(--motion-base) var(--ease-standard), background var(--motion-base) var(--ease-standard);
}

.message-row:hover .message-body,
.edited-files-card:hover,
.project-upload-progress:hover,
.project-file-action-preview:hover {
  box-shadow: 0 10px 26px rgba(16, 32, 29, .07);
}

.project-space-item,
.chat-item,
.workspace-tabs button,
.workspace-section-nav button,
.workspace-quick-grid button,
.workspace-flow-guide-option,
.project-file-tree-row,
.file-tree-actions button,
.file-tree-row-actions button,
.run-status-chip {
  transition: background var(--motion-base) var(--ease-standard), border-color var(--motion-base) var(--ease-standard), color var(--motion-base) var(--ease-standard), box-shadow var(--motion-base) var(--ease-standard), transform var(--motion-fast) var(--ease-standard), opacity var(--motion-fast) var(--ease-standard);
}

.project-space-item:hover,
.chat-item:hover,
.workspace-tabs button:hover,
.workspace-section-nav button:hover,
.workspace-quick-grid button:hover,
.workspace-flow-guide-option:hover {
  transform: translateY(-1px);
}

.project-space-item.active,
.chat-item.active,
.workspace-tabs button.active {
  box-shadow: inset 3px 0 0 var(--accent), 0 8px 22px rgba(15, 118, 110, .10);
}

.workspace-panel,
.modal {
  will-change: transform, opacity;
}

.modal {
  box-shadow: 0 26px 80px rgba(16, 32, 29, .18), 0 0 0 1px rgba(255, 255, 255, .88) inset;
}

.modal-backdrop,
.workspace-flow-backdrop {
  transition: opacity var(--motion-base) var(--ease-standard), backdrop-filter var(--motion-base) var(--ease-standard);
}

.run-status-chip.running i b,
.run-status-chip.queued i b {
  position: relative;
  overflow: hidden;
}

.run-status-chip.running i b::after,
.run-status-chip.queued i b::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.52), transparent);
  animation: progressSheen 1.8s var(--ease-standard) infinite;
}

.edited-files-card { margin-top: 12px; border: 1px solid #bfdbfe; border-radius: 12px; background: linear-gradient(180deg, #f8fbff, #fff); padding: 10px; display: grid; gap: 9px; }
.edited-files-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.edited-files-head div { min-width: 0; display: grid; gap: 2px; }
.edited-files-head span { color: #1d4ed8; font-size: 10px; font-weight: 850; text-transform: uppercase; letter-spacing: 0; }
.edited-files-head strong { font-size: 13px; }
.edited-files-head em, .edited-file-row em { color: #047857; font-style: normal; font-size: 11px; font-weight: 800; white-space: nowrap; }
.edited-files-list { display: grid; gap: 5px; }
.edited-file-row { min-width: 0; min-height: 28px; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; align-items: center; border: 1px solid var(--border); border-radius: 9px; background: #fff; padding: 5px 7px; }
.edited-file-row strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.edited-file-row span { color: var(--muted); font-size: 11px; }
.edited-files-more { color: var(--muted); font-size: 12px; }
.edited-files-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.edited-files-actions button { min-height: 30px; border: 1px solid var(--border); border-radius: 9px; background: var(--panel); color: var(--text); padding: 0 10px; font-size: 12px; font-weight: 700; }
.edited-files-actions button:first-child { background: #eff6ff; border-color: #bfdbfe; color: #1d4ed8; }
.edited-files-actions button:disabled { opacity: .45; cursor: not-allowed; }

/* Calm selection system: stronger differences for choices without harsh saturation. */
input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--accent);
}

.brand-mark,
.welcome-logo,
.account-pill span,
.message-row.user .avatar {
  background: linear-gradient(135deg, #0f766e, #155e75);
}

.sidebar,
.workspace-tabs {
  background: rgba(248, 251, 250, .96);
}

.workspace-panel {
  border-left-color: rgba(183, 203, 198, .9);
  background: rgba(248, 251, 250, .93);
}

.workspace,
.workspace-flow-guide,
.workspace-flow-chooser,
.workspace-drawer,
.workspace-mode-summary,
.workspace-recent-group.primary,
.workspace-recent-group,
.welcome-more-actions,
.welcome-recent-group,
.tool-card,
.tool-stack-card,
.workspace-wizard-card,
.task-config-group,
.bridge-card {
  border-color: var(--border);
}

.search-box input:focus,
.composer textarea:focus,
.stack-form input:focus,
.stack-form textarea:focus,
.stack-form select:focus,
.bridge-card select:focus,
.agent-mode-select:focus,
.project-path input:focus,
.folder-actions input:focus {
  border-color: var(--select-border);
  box-shadow: 0 0 0 3px var(--accent-ring);
}

.new-chat,
#sendBtn,
.stack-form button,
.primary-link,
.workspace-command-actions button:first-child,
.workspace-mode-summary-actions button.primary,
.workspace-flow-recommendation button {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 10px 26px rgba(15, 118, 110, .16);
}

.new-chat:hover,
#sendBtn:hover,
.stack-form button:hover,
.primary-link:hover,
.workspace-command-actions button:first-child:hover,
.workspace-mode-summary-actions button.primary:hover,
.workspace-flow-recommendation button:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.chat-folder-tab.active,
.workspace-tabs button.active,
.workspace-head-actions .icon-btn.active,
.workspace-flow-stepbar span.current,
.workspace-flow-guide-path span.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 10px 24px rgba(15, 118, 110, .18);
}

.chat-item:hover,
.chat-item.active,
.side-action:hover,
.account-pill:hover,
.ghost-btn:hover,
.icon-btn:hover,
.quick-action-item.active,
.quick-action-pin:hover,
.quick-actions-menu button:hover,
.followup-chips button:hover,
.workspace-drawer summary:hover,
.workspace-flow-back:hover,
.workspace-flow-guide-back:hover,
.folder-actions button:hover,
.prompt-template-actions button:hover {
  background: var(--select-bg);
}

.chat-item.active,
.welcome-recent-group button.active,
.workspace-section-nav button.active,
.workspace-section-nav button.selected,
.workspace-quick-grid button.primary,
.workspace-mode-path span.current,
.workspace-flow-steps span.current,
.workspace-flow-lens span.current,
.workspace-flow-guide-option.primary-choice,
.workspace-flow-guide-option.final,
.workspace-flow-chooser-btn:focus-visible,
.workspace-flow-launcher:focus-visible {
  border-color: var(--select-border);
  background: linear-gradient(180deg, #ffffff, var(--select-bg));
  color: var(--text);
  box-shadow: inset 3px 0 0 var(--select-border), 0 10px 26px rgba(15, 118, 110, .12);
}

.workspace-section-nav button.selected {
  background: linear-gradient(180deg, #0f766e, #0b5f59);
  color: #fff;
}

.workspace-section-nav button.selected em,
.workspace-section-nav button.selected span {
  color: #fff;
}

.workspace-flow-guide-option:hover,
.workspace-flow-launcher:hover,
.workspace-flow-chooser-btn:hover,
.workspace-quick-grid button:hover,
.workspace-section-nav button:hover,
.welcome-action:hover,
.welcome-recent-group button:hover,
.prompt-grid button:hover,
.panel-actions button:hover {
  border-color: var(--border-strong);
  background: var(--panel-tint);
  box-shadow: 0 12px 26px rgba(16, 32, 29, .08);
}

.workspace-flow-guide-option.primary-choice:hover,
.workspace-flow-guide-option.final:hover,
.workspace-quick-grid button.primary:hover,
.workspace-section-nav button.active:hover,
.workspace-flow-chooser-btn:focus-visible:hover,
.workspace-flow-launcher:focus-visible:hover {
  border-color: var(--select-border);
  background: linear-gradient(180deg, #ffffff, var(--select-bg-strong));
}

.welcome-action {
  background: linear-gradient(180deg, #ffffff, var(--panel-tint));
}

.welcome-action.primary {
  background: linear-gradient(135deg, #0f766e, #155e75);
  border-color: #0f766e;
  box-shadow: 0 16px 36px rgba(15, 118, 110, .18);
}

.welcome-action.project,
.workspace-flow-hero.project-flow,
.workspace-flow-recommendation.project {
  border-color: rgba(15, 118, 110, .28);
  background: linear-gradient(180deg, #ffffff, #e9f7f3);
}

.welcome-action.goal,
.workspace-flow-hero.goal-flow,
.workspace-flow-recommendation.goal {
  border-color: rgba(37, 99, 235, .26);
  background: linear-gradient(180deg, #ffffff, var(--info-soft));
}

.welcome-action.task,
.workspace-flow-hero.task-flow {
  border-color: rgba(124, 58, 237, .24);
  background: linear-gradient(180deg, #ffffff, var(--violet-soft));
}

.welcome-action.tools {
  border-color: rgba(8, 145, 178, .24);
  background: linear-gradient(180deg, #ffffff, #e6f7fb);
}

.welcome-action.automation {
  border-color: rgba(13, 148, 136, .26);
  background: linear-gradient(180deg, #ffffff, #ecfdf5);
}

.welcome-action.web {
  border-color: rgba(3, 105, 161, .24);
  background: linear-gradient(180deg, #ffffff, #e0f2fe);
}

.welcome-action.computer {
  border-color: rgba(147, 51, 234, .22);
  background: linear-gradient(180deg, #ffffff, #f5f3ff);
}

.welcome-action.build {
  border-color: rgba(180, 83, 9, .24);
  background: linear-gradient(180deg, #ffffff, var(--warning-soft));
}

.welcome-action.plan {
  border-color: rgba(71, 85, 105, .22);
  background: linear-gradient(180deg, #ffffff, #eef2f7);
}

.welcome-action.note {
  border-color: rgba(21, 128, 61, .22);
  background: linear-gradient(180deg, #ffffff, var(--success-soft));
}

.welcome-primary-action .welcome-action.primary,
.welcome-action.primary.project,
.welcome-action.primary.goal,
.welcome-action.primary.task,
.welcome-action.primary.tools,
.welcome-action.primary.automation,
.welcome-action.primary.web,
.welcome-action.primary.computer,
.welcome-action.primary.build,
.welcome-action.primary.plan,
.welcome-action.primary.note {
  background: linear-gradient(180deg, #ffffff 0%, #e5f5f1 100%);
  border-color: rgba(15, 118, 110, .46);
  color: var(--text);
  box-shadow: inset 4px 0 0 var(--accent), 0 16px 36px rgba(15, 118, 110, .14);
}

.welcome-primary-action .welcome-action.primary strong,
.welcome-primary-action .welcome-action.primary em,
.welcome-primary-action .welcome-action.primary small,
.welcome-primary-action .welcome-action.primary span,
.welcome-action.primary.project strong,
.welcome-action.primary.project em,
.welcome-action.primary.project small,
.welcome-action.primary.project span {
  color: #fff;
}

.welcome-primary-action .welcome-action.primary span {
  border-color: rgba(15, 118, 110, .28);
  background: #dff4ef;
}

.welcome-primary-action > button.welcome-action.primary,
.welcome-primary-action > button.welcome-action.primary.project,
.welcome-primary-action > button.welcome-action.primary.goal,
.welcome-primary-action > button.welcome-action.primary.task,
.welcome-primary-action > button.welcome-action.primary.tools,
.welcome-primary-action > button.welcome-action.primary.build,
.welcome-primary-action > button.welcome-action.primary.plan,
.welcome-primary-action > button.welcome-action.primary.note {
  background: linear-gradient(180deg, #ffffff 0%, #e5f5f1 100%);
  border-color: rgba(15, 118, 110, .46);
  color: var(--text);
  box-shadow: inset 4px 0 0 var(--accent), 0 16px 36px rgba(15, 118, 110, .14);
}

.welcome-primary-action > button.welcome-action.primary span,
.welcome-primary-action > button.welcome-action.primary strong,
.welcome-primary-action > button.welcome-action.primary em,
.welcome-primary-action > button.welcome-action.primary small,
.welcome-primary-action > button.welcome-action.primary .welcome-action-result b,
.welcome-primary-action > button.welcome-action.primary .welcome-action-result i {
  color: var(--text);
}

.welcome-primary-action > button.welcome-action.primary .welcome-action-result {
  border-color: rgba(15, 118, 110, .22);
  background: rgba(255,255,255,.82);
  color: var(--text);
}

.welcome-action.project::before,
.workspace-flow-hero.project-flow::before,
.workspace-flow-recommendation.project::after,
.workspace-flow-guide-head.project::before {
  background: #0f766e;
}

.welcome-action.goal::before,
.workspace-flow-hero.goal-flow::before,
.workspace-flow-recommendation.goal::after,
.workspace-flow-guide-head.goal::before {
  background: var(--info);
}

.welcome-action.task::before,
.workspace-flow-hero.task-flow::before,
.workspace-flow-guide-head.task::before {
  background: var(--violet);
}

.welcome-action.live,
.welcome-status span.live,
.welcome-recent-group button.live,
.workspace-tabs button.has-live-task .workspace-tab-badge,
.workspace-section-nav button.live,
.workspace-quick-grid button.live,
.workspace-mode-summary.live .workspace-mode-summary-state b,
.workspace-mode-bar button.live em {
  border-color: #9cc3ff;
  background: var(--info-soft);
  color: #1d4ed8;
}

.workspace-flow-steps span.done,
.workspace-flow-lens span.done,
.task-preflight-panel.ready,
.workspace-mode-summary.ready .workspace-mode-summary-state b,
.workspace-mode-bar button.ready em {
  border-color: #a7e8bd;
  background: var(--success-soft);
  color: var(--success);
}

.task-preflight-panel.warn,
.workspace-flow-guide-option.runtime-missing {
  border-color: #f3c37c;
  background: var(--warning-soft);
  color: var(--warning);
}

.task-preflight-panel.blocked,
.workspace-mode-summary.gated .workspace-mode-summary-state b,
.workspace-mode-bar button.gated em,
#stopGenerateBtn,
.danger-btn {
  border-color: #f5b2aa !important;
  background: var(--danger-soft) !important;
  color: var(--danger) !important;
}

.workspace-mode-switcher {
  background: #eaf1ef;
}

.workspace-mode-bar button:hover,
.workspace-mode-more summary:hover,
.workspace-mode-more[open] summary,
.workspace-mode-more-menu button.compact:hover {
  border-color: var(--border-strong);
  background: #ffffff;
}

.workspace-mode-bar button.active,
.workspace-mode-more-menu button.compact.active {
  border-color: var(--select-border);
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(15, 118, 110, .16), 0 8px 20px rgba(15, 118, 110, .10);
}

.workspace-mode-bar button.active::after {
  background: var(--select-border);
  height: 3px;
}

.workspace-mode-bar button.local.active::after { background: #0f766e; }
.workspace-mode-bar button.projects.active::after { background: var(--info); }
.workspace-mode-bar button.goals.active::after { background: var(--success); }
.workspace-mode-bar button.run.active::after { background: #ea580c; }
.workspace-mode-bar button.capabilities.active::after { background: var(--violet); }

.workspace-mode-summary.local,
.workspace-mode-summary.resources { border-left-color: #0f766e; }
.workspace-mode-summary.projects { border-left-color: var(--info); }
.workspace-mode-summary.goals { border-left-color: var(--success); }
.workspace-mode-summary.run { border-left-color: #ea580c; }
.workspace-mode-summary.capabilities { border-left-color: var(--violet); }

.workspace-flow-stepbar span.current b,
.workspace-flow-steps span.current b,
.workspace-flow-lens span.current b,
.workspace-mode-path span.current b,
.workspace-quick-grid button.primary span {
  background: var(--accent);
  color: #fff;
}

.workspace-flow-summary-grid span,
.workspace-flow-lens span,
.workspace-mode-path span,
.workspace-flow-launcher,
.workspace-flow-chooser-btn,
.workspace-flow-guide-option,
.workspace-section-nav button,
.workspace-quick-grid button,
.prompt-grid button,
.followup-chips button,
.tool-chip,
.agent-capabilities span {
  background: #ffffff;
}

.workspace-flow-more[open] > summary,
.welcome-more-actions[open] > summary,
.task-config-group[open] summary,
.tool-stack-entry[open] summary,
.workspace-drawer[open] summary {
  background: var(--select-bg);
}

.workspace-flow-more-choices,
.workspace-flow-chooser .workspace-flow-more:not([open]) {
  background: #f3f8f6;
  border-color: #cddbd7;
}

.workspace-flow-more-choices[open],
.workspace-flow-more[open] {
  border-color: var(--border-strong);
}

.workspace-flow-guide-option b,
.workspace-flow-launcher span,
.workspace-flow-chooser-copy span,
.workspace-flow-recommendation span,
.workspace-flow-hero span,
.welcome-kicker,
.welcome-action span,
.workspace-wizard-card > span,
.workspace-mode-summary-copy span,
.workspace-quick-head span,
.workspace-section-picker summary span,
.workspace-flow-guide-head span {
  border-color: #cddbd7;
  background: #eef5f3;
  color: #48635d;
}

.workspace-flow-guide-option.primary-choice b,
.workspace-flow-guide-option.final b,
.workspace-section-nav button.active span,
.workspace-quick-grid button.primary span {
  border-color: var(--select-border);
  background: var(--accent);
  color: #fff;
}

.workspace-flow-guide-options-more .workspace-flow-guide-option:not(.primary-choice):nth-child(3n+1),
.workspace-flow-visible-options .workspace-flow-guide-option:not(.primary-choice):nth-child(3n+1),
.workspace-flow-chooser-actions .workspace-flow-chooser-btn:nth-child(3n+1),
.workspace-flow-launchers .workspace-flow-launcher:nth-child(3n+1) {
  border-color: rgba(37, 99, 235, .24);
  background: linear-gradient(180deg, #ffffff, var(--info-soft));
}

.workspace-flow-guide-options-more .workspace-flow-guide-option:not(.primary-choice):nth-child(3n+2),
.workspace-flow-visible-options .workspace-flow-guide-option:not(.primary-choice):nth-child(3n+2),
.workspace-flow-chooser-actions .workspace-flow-chooser-btn:nth-child(3n+2),
.workspace-flow-launchers .workspace-flow-launcher:nth-child(3n+2) {
  border-color: rgba(124, 58, 237, .22);
  background: linear-gradient(180deg, #ffffff, var(--violet-soft));
}

.workspace-flow-guide-options-more .workspace-flow-guide-option:not(.primary-choice):nth-child(3n),
.workspace-flow-visible-options .workspace-flow-guide-option:not(.primary-choice):nth-child(3n),
.workspace-flow-chooser-actions .workspace-flow-chooser-btn:nth-child(3n),
.workspace-flow-launchers .workspace-flow-launcher:nth-child(3n) {
  border-color: rgba(180, 83, 9, .22);
  background: linear-gradient(180deg, #ffffff, var(--warning-soft));
}

.workspace-flow-guide-options-more .workspace-flow-guide-option:not(.primary-choice):hover,
.workspace-flow-visible-options .workspace-flow-guide-option:not(.primary-choice):hover,
.workspace-flow-chooser-actions .workspace-flow-chooser-btn:hover,
.workspace-flow-launchers .workspace-flow-launcher:hover {
  border-color: var(--border-strong);
  background: linear-gradient(180deg, #ffffff, var(--select-bg));
}

.workspace-flow-backdrop {
  background: rgba(16, 32, 29, .42);
}

.toast {
  background: #10201d;
}

.toast.error {
  background: var(--danger);
}

@keyframes fadeIn {
  from { opacity: 0; }
}

@keyframes modalIn {
  from { opacity: 0; transform: translate(-50%, calc(-50% + 10px)) scale(.985); }
}

@keyframes popoverIn {
  from { opacity: 0; transform: translateY(4px) scale(.98); }
}

@keyframes workspaceViewIn {
  from { opacity: 0; }
}

@keyframes workspaceStageIn {
  from { opacity: 0; transform: translateY(6px) scale(.99); }
}

@keyframes workspaceFlowIn {
  from { opacity: 0; transform: translateY(8px) scale(.985); }
}

@keyframes workspacePanelIn {
  from { opacity: .72; transform: translateX(10px); }
}

@keyframes messageIn {
  from { opacity: 0; transform: translateY(8px) scale(.992); }
}

@keyframes messageInUser {
  from { opacity: 0; transform: translateY(6px) translateX(6px) scale(.994); }
}

@keyframes compactFadeIn {
  from { opacity: 0; transform: translateY(3px); }
}

@keyframes progressSheen {
  from { transform: translateX(-120%); }
  to { transform: translateX(120%); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

@media (max-width: 1180px) and (min-width: 901px) {
  .app-shell.workspace-open { grid-template-columns: 292px minmax(0, 1fr) minmax(300px, 340px); }
  .app-shell.workspace-open.workspace-wide { grid-template-columns: 292px minmax(0, 1fr) minmax(430px, 48vw); }
}

.app-shell.workspace-open.workspace-wide .workspace-launch-card { min-height: 142px; }

@media (max-width: 900px) {
  body { overflow: hidden; }
  .app-shell, .app-shell.workspace-open, .app-shell.workspace-open.workspace-wide { grid-template-columns: 1fr; }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: min(86vw, 320px); z-index: 15; transform: translateX(-105%); transition: transform .18s ease; box-shadow: var(--shadow); }
  .sidebar.open { transform: translateX(0); }
  .workspace-panel { position: fixed; inset: 0 0 0 auto; width: min(94vw, 420px); z-index: 19; transform: translateX(105%); transition: transform .18s ease; box-shadow: var(--shadow); backdrop-filter: none; }
  .workspace-panel.open { transform: none !important; }
  .workspace-panel.collapsed { display: flex; transform: translateX(105%); }
  .mobile-only { display: inline-grid; place-items: center; }
  .topbar { padding: 0 12px; }
  .messages { padding: 18px 14px; }
  .message-row { grid-template-columns: 30px minmax(0, 1fr); gap: 10px; margin-bottom: 18px; }
  .agent-run-transcript { margin-bottom: 14px; }
  .agent-run-summary { min-height: 38px; }
  .agent-run-body { padding-top: 14px; }
  .agent-run-body .tool-stack-card.compact-transcript .tool-stack-head { width: 100%; }
  .message-row.assistant.agent-final-result { grid-template-columns: minmax(0, 1fr); }
  .avatar { width: 30px; height: 30px; border-radius: 9px; }
  .composer-wrap { padding: 10px 12px 14px; }
  .welcome { align-self: start; padding-top: 18px; }
  .welcome-hero { grid-template-columns: 52px minmax(0, 1fr); gap: 12px; }
  .welcome-logo { width: 48px; height: 48px; border-radius: 13px; }
  .welcome-status { grid-template-columns: 1fr; }
  .welcome-launcher { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 14px; }
  .welcome-action { min-height: 128px; padding: 12px; }
  .welcome-launcher-head { align-items: start; flex-direction: column; }
  .welcome-agent-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .welcome-action-preview { grid-template-columns: 1fr; }
  .welcome-action-preview span { min-height: 58px; }
  .welcome-recent-grid { grid-template-columns: 1fr; }
  .welcome-recent-group { padding: 11px; }
  .prompt-grid, .bridge-grid, .agent-capabilities { grid-template-columns: 1fr; }
  .prompt-grid.compact { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .prompt-grid.compact button { min-height: 34px; padding: 0 8px; }
  .quick-actions-menu { right: 0; width: min(362px, calc(100vw - 28px)); max-height: min(72vh, 640px); }
  .quick-action-categories { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quick-action-row { grid-template-columns: 1fr; }
  .quick-action-route { grid-template-columns: 1fr; }
  .quick-action-pin { min-height: 32px; width: 100%; }
  .workspace-tabs { top: -12px; }
  .workspace-mode-switcher { display: flex; overflow-x: auto; }
  .workspace-mode-bar button { min-height: 34px; }
  .workspace-mode-bar button.overview { grid-column: auto; }
  .workspace-mode-summary { grid-template-columns: 1fr; }
  .workspace-mode-path { grid-template-columns: 1fr; }
  .workspace-mode-path span::after { display: none; }
  .welcome-project-start,
  .welcome-project-form,
  .welcome-project-map { grid-template-columns: 1fr; }
  .welcome-project-form button { width: 100%; }
  .workspace-mode-summary-actions { justify-content: start; }
  .workspace-mode-summary-state { justify-items: start; }
  .workspace-mode-summary-state small { max-width: 100%; text-align: left; }
  .workspace-entry-grid { grid-template-columns: 1fr; }
  .workspace-entry-head { grid-template-columns: 1fr; }
  .workspace-entry-head em { grid-column: 1; }
  .workspace-launchpad-grid { grid-template-columns: 1fr; }
  .workspace-create-switcher { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .workspace-create-layer-title { grid-template-columns: auto minmax(0, 1fr); }
  .workspace-create-layer-title em { grid-column: 2; text-align: left; }
  .workspace-create-lens,
  .workspace-create-more-grid,
  .workspace-create-source-grid,
  .workspace-create-more-actions div { grid-template-columns: 1fr; }
  .workspace-create-funnel { grid-template-columns: 1fr; }
  .workspace-create-funnel span::after { display: none; }
  .workspace-create-steps,
  .workspace-create-actions { grid-template-columns: 1fr; }
  .workspace-capability-strip { grid-template-columns: 1fr; }
  .workspace-orbit { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .workspace-orbit i { display: none; }
  .workspace-launch-card { min-height: 108px; }
  .workspace-progress-drawer summary { grid-template-columns: 1fr; }
  .workspace-progress-guide { grid-template-columns: 1fr; }
  .workspace-guide-rail { grid-template-columns: 1fr; }
  .workspace-quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cloud-file-browser-head { grid-template-columns: minmax(0, 1fr) auto; }
  .cloud-file-browser-head button { grid-column: 1 / -1; justify-self: start; }
  .cloud-file-row { grid-template-columns: 32px minmax(0, 1fr); }
  .cloud-file-row em,
  .cloud-file-row b { display: none; }
  .workspace-stage-actions { grid-template-columns: 1fr; }
  .workspace-stage-status b { max-width: 180px; }
  .workspace-wizard-body { grid-template-columns: 1fr; }
  .workspace-flow-steps.vertical { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .workspace-flow-steps.vertical span { min-height: 48px; padding: 8px 8px 8px 34px; }
  .workspace-flow-steps.vertical span::before { display: none; }
  .workspace-flow-steps.vertical b { top: 8px; }
  .workspace-wizard-hints { display: none; }
  .workspace-flow-stepbar { grid-template-columns: 1fr; }
  .agent-guide-state,
  .agent-guide-state-grid { grid-template-columns: 1fr; }
  .workspace-flow-chooser-actions { grid-template-columns: 1fr; }
  .workspace-flow-lens { grid-template-columns: 1fr; }
  .workspace-flow-guide-options,
  .workspace-flow-guide-options-more { grid-template-columns: 1fr; }
  .workspace-flow-guide-option { min-height: 92px; }
  .code-run-head { grid-template-columns: 1fr; }
  .code-run-templates { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .code-run-runtime-grid,
  .code-run-runtime-route { grid-template-columns: 1fr; }
  .task-preflight-grid { grid-template-columns: 1fr; }
  .task-preflight-action-grid,
  .task-preflight-decision,
  .task-preflight-server-grid { grid-template-columns: 1fr; }
  .capability-domain-rail { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tool-center-head { grid-template-columns: 1fr; }
  .tool-center-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tool-center-shell { grid-template-columns: 1fr; }
  .tool-center-categories { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tool-center-next { grid-template-columns: 1fr; }
  .tool-center-grid { grid-template-columns: 1fr; }
  .tool-readiness-head { grid-template-columns: 1fr; }
  .tool-readiness-score { min-height: 48px; justify-items: start; padding: 7px 9px; }
  .tool-readiness-stats,
  .tool-readiness-grid { grid-template-columns: 1fr; }
  .toolchain-head { grid-template-columns: 1fr; }
  .toolchain-head button { width: 100%; }
  .toolchain-scene-lens,
  .toolchain-more-grid,
  .toolchain-switcher,
  .toolchain-steps,
  .toolchain-actions { grid-template-columns: 1fr; }
  .tool-catalog-grid { grid-template-columns: 1fr; }
  .runtime-head { align-items: stretch; flex-direction: column; }
  .runtime-head button { width: 100%; }
  .project-commands-head { align-items: stretch; flex-direction: column; }
  .project-commands-head button { width: 100%; }
  .project-command-grid { grid-template-columns: 1fr; }
  .project-plugins-head { align-items: stretch; flex-direction: column; }
  .project-plugins-actions { width: 100%; display: grid; grid-template-columns: 1fr; }
  .project-plugins-actions button { width: 100%; }
  .project-mcp-head { grid-template-columns: 1fr; }
  .project-mcp-head small { max-width: none; }
  .project-mcp-grid { grid-template-columns: 1fr; }
  .project-mcp-action { grid-template-columns: 1fr; }
  .project-mcp-action em,
  .project-mcp-action button { grid-column: 1; grid-row: auto; }
  .project-plugin-recipes,
  .project-plugin-tools { grid-template-columns: 1fr; }
  .runtime-meta,
  .runtime-surface-grid,
  .runtime-code-grid,
  .runtime-health,
  .runtime-sandbox-grid,
  .runtime-observability-grid,
  .runtime-action-strip,
  .runtime-stacks,
  .runtime-tools,
  .runtime-provisioning-meta { grid-template-columns: 1fr; }
  .runtime-sandbox-head,
  .runtime-sandbox-meta span,
  .runtime-observability-head,
  .runtime-observability-meta span { grid-template-columns: 1fr; }
  .runtime-provision-card div { grid-template-columns: 1fr; }
  .runtime-gaps span { grid-template-columns: 1fr; gap: 2px; }
  .task-detail-actions,
  .task-detail-actions-four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .task-run-outcome-grid { grid-template-columns: 1fr; }
  .task-preflight-mini-grid,
  .task-isolation-grid,
  .task-provision-grid,
  .goal-roadmap-grid,
  .task-retention-bar { grid-template-columns: 1fr; }
  .goal-plan-step { grid-template-columns: 30px minmax(0, 1fr); }
  .goal-plan-step-actions { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .task-log-toolbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .automation-recipes-head { align-items: stretch; flex-direction: column; }
  .automation-recipes-head button { width: 100%; }
  .automation-builder-stepbar,
  .automation-builder-options,
  .automation-builder-runtime-grid,
  .automation-builder-actions { grid-template-columns: 1fr; }
  .automation-guide-route,
  .automation-guide-footer { grid-template-columns: 1fr; }
  .automation-guide-hero strong { white-space: normal; }
  .automation-recipe-grid { grid-template-columns: 1fr; }
  .workspace-flow-launchers { grid-template-columns: 1fr; }
  .workspace-wizard-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .workspace-section-nav { grid-template-columns: 1fr; margin-inline: -1px; }
  .workspace-section-options { min-width: 0; }
  .workspace-section-nav button { min-width: 0; }
  .workspace-context-item { min-height: 54px; }
  .workspace-drawer[open] { position: fixed; z-index: 30; top: 58px; left: 12px; right: 12px; width: auto; max-height: calc(100vh - 82px); }
  .workspace-focus-strip { grid-template-columns: repeat(2, 1fr); }
  .workspace-run-lens,
  .workspace-run-scenes,
  .workspace-local-lens,
  .workspace-local-scenes,
  .workspace-project-lens,
  .workspace-project-scenes,
  .workspace-goal-lens,
  .workspace-goal-scenes,
  .workspace-capability-lens,
  .workspace-capability-scenes { grid-template-columns: 1fr; }
  .split-actions { grid-template-columns: 1fr; }
  .modal { width: min(94vw, 560px); max-height: 88vh; }
  .account-modal { width: min(94vw, 480px); padding: 18px; }
  .welcome h1 { font-size: 28px; }
  .top-actions { gap: 6px; }
  .ghost-btn { display: none; }
  .workspace-panel .project-list,
  .workspace-panel .project-files,
  .workspace-panel .agent-steps,
  .workspace-panel .recent-files,
  .workspace-panel .tool-timeline {
    gap: 5px;
  }
}

[hidden] { display: none !important; }

/* Durable Agent user-input dock */
.agent-input-request-dock{width:min(820px,calc(100% - 32px));margin:0 auto 10px;flex:0 0 auto}.agent-input-request-card{border:1px solid color-mix(in srgb,var(--accent,#5b8cff) 42%,var(--border));border-radius:18px;background:color-mix(in srgb,var(--surface,#fff) 94%,var(--accent,#5b8cff) 6%);box-shadow:0 18px 48px rgba(21,35,68,.12);padding:16px}.agent-input-request-card>header,.agent-input-request-card>footer{display:flex;align-items:center;justify-content:space-between;gap:12px}.agent-input-request-card>header div{display:grid;gap:3px}.agent-input-request-card>header span,.agent-input-header{font-size:10px;font-weight:800;letter-spacing:.16em;color:var(--accent,#5b8cff)}.agent-input-request-card>header strong{font-size:14px}.agent-input-request-card>header em{font-style:normal;font-size:12px;color:var(--muted,#6b7280)}.agent-input-progress{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin:12px 0}.agent-input-progress i{height:3px;border-radius:99px;background:var(--border)}.agent-input-progress i.active{background:var(--accent,#5b8cff)}.agent-input-request-card section{display:grid;gap:10px}.agent-input-request-card h3{margin:0;font-size:16px;line-height:1.45}.agent-input-options{display:grid;gap:8px}.agent-input-option{display:flex;align-items:flex-start;gap:10px;width:100%;padding:11px 12px;text-align:left;border:1px solid var(--border);border-radius:12px;background:var(--surface,#fff);color:inherit}.agent-input-option:hover,.agent-input-option.selected{border-color:var(--accent,#5b8cff);background:color-mix(in srgb,var(--surface,#fff) 90%,var(--accent,#5b8cff) 10%)}.agent-input-option-mark{width:16px;height:16px;margin-top:2px;border:1.5px solid var(--muted,#6b7280);border-radius:50%;box-shadow:inset 0 0 0 3px var(--surface,#fff)}.agent-input-option.selected .agent-input-option-mark{background:var(--accent,#5b8cff);border-color:var(--accent,#5b8cff)}.agent-input-option>span:last-child{display:grid;gap:2px}.agent-input-option strong{font-size:13px}.agent-input-option em{font-style:normal;font-size:12px;line-height:1.4;color:var(--muted,#6b7280)}.agent-input-custom{display:grid;gap:6px;font-size:12px;font-weight:700}.agent-input-custom textarea{resize:vertical;min-height:58px;border-radius:12px}.agent-input-request-card>footer{margin-top:14px}.agent-input-request-card>footer>div{display:flex;gap:8px}.agent-input-request-card>p{margin:10px 0 0;text-align:right;font-size:11px;color:var(--muted,#6b7280)}
@media (max-width:520px){.agent-input-request-dock{width:calc(100% - 20px);margin-bottom:8px}.agent-input-request-card{padding:13px;border-radius:15px}.agent-input-request-card>header,.agent-input-request-card>footer{align-items:stretch}.agent-input-request-card>footer{display:grid;grid-template-columns:1fr}.agent-input-request-card>footer>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.agent-input-request-card>footer>button,.agent-input-request-card>footer>div button{width:100%}.agent-input-request-card>p{text-align:left}}
