/* The workbench: panels docked beside the conversation, under the header.
 *
 * It slides open by width, while its contents keep their own width, so the
 * panel is revealed rather than squeezed. Code panes are dark in both themes.
 */

#workbench {
  position: relative;
  width: 0;
  flex: none;
  overflow: hidden;
  background: var(--bg);
  /* No border while closed: a closed panel takes no room at all. */
  border-left: 0 solid transparent;
  transition: width var(--dur-slow) var(--ease-out), border-color var(--dur-slow) var(--ease);
}
#app.bench-open #workbench { width: var(--workbench-w); border-left-color: var(--border); border-left-width: 1px; }
#app.bench-dragging #workbench { transition: none; }
#app[data-view="home"] #workbench { width: 0; border-left-width: 0; }

#workbench-resize { position: relative; width: 0; z-index: 6; }
#workbench-resize::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -3px;
  width: 6px;
  cursor: col-resize;
}
#app:not(.bench-open) #workbench-resize,
#app[data-view="home"] #workbench-resize { display: none; }

.bench-inner {
  display: flex;
  flex-direction: column;
  width: var(--workbench-w);
  height: 100%;
}

/* ---- tabs ---------------------------------------------------------------- */
.bench-head {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 44px;
  padding: 0 8px 0 10px;
  border-bottom: 1px solid var(--border);
  flex: none;
}
.bench-tabs { display: flex; align-items: center; gap: 2px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.bench-tabs::-webkit-scrollbar { display: none; }
.bench-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 6px 0 9px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text3);
  font-size: 13px;
  font-weight: 550;
  white-space: nowrap;
  flex: none;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.bench-tab .icon { width: 14px; height: 14px; }
.bench-tab.compact { padding: 0 8px; gap: 5px; }
.bench-tab.compact .label,
.bench-tab.compact .tab-close { display: none; }
.bench-tab:hover { color: var(--text); background: var(--surface-hover); }
.bench-tab.on { color: var(--text); background: var(--selection-strong); }
.bench-tab .count {
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--surface-hover);
  color: var(--text2);
  font-size: 11px;
  font-weight: 600;
  display: inline-grid;
  place-items: center;
  font-variant-numeric: tabular-nums;
}
.bench-tab.on .count { background: var(--accent-wash); color: var(--accent-ink); }
.bench-tab .tab-close {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  color: var(--text3);
  opacity: 0;
  transition: opacity var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.bench-tab .tab-close .icon { width: 12px; height: 12px; }
.bench-tab:hover .tab-close, .bench-tab.on .tab-close { opacity: 1; }
.bench-tab .tab-close:hover { background: var(--surface-pressed); color: var(--text); }

.bench-body { flex: 1; min-height: 0; position: relative; }

/* ---- the header toggles --------------------------------------------------- */
.bench-toggles {
  display: flex;
  align-items: center;
  gap: 1px;
  padding-left: 8px;
  margin-left: 4px;
  border-left: 1px solid var(--border);
  flex: none;
}
.header-tools:empty + .bench-toggles { margin-left: auto; border-left: 0; }
#app[data-view="home"] .bench-toggles { display: none; }
.bench-toggle { position: relative; width: 32px; height: 32px; }
.bench-toggle .icon { width: 17px; height: 17px; }
.bench-toggle.on { color: var(--text); background: var(--surface-hover); }
.bench-toggle.current { color: var(--accent-ink); }
.bench-toggle .badge-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text3);
  box-shadow: 0 0 0 2px var(--bg);
}
.bench-toggle .badge-dot.fresh { background: var(--accent); }
.bench-toggle.flash { animation: toggle-flash 1.2s var(--ease-out); }
@keyframes toggle-flash {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent); background: var(--accent-wash); }
  70% { box-shadow: 0 0 0 10px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

/* ---- panels ------------------------------------------------------------- */
.panel {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  padding: 14px 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.panel.entering { animation: rise-in var(--dur-slow) var(--ease-out) both; }
.bench-empty { flex: 1; padding-top: 12vh; justify-content: flex-start; }
.bench-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text3);
}
.panel-bar { display: flex; gap: 8px; }

.plan-progress { display: flex; align-items: center; gap: 10px; }
.plan-progress .bar { flex: 1; height: 5px; border-radius: 999px; background: var(--surface-hover); overflow: hidden; }
.plan-progress .bar span { display: block; height: 100%; border-radius: inherit; background: var(--accent); transition: width 600ms var(--ease-out); }
.plan-progress .label { font-size: 12px; color: var(--text3); font-variant-numeric: tabular-nums; }

.plan-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 2px; }
.plan-step { display: flex; align-items: flex-start; gap: 10px; padding: 6px 4px; font-size: 13.5px; line-height: 1.45; }
.plan-step .mark {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  flex: none;
  border-radius: 50%;
  border: 1.5px solid var(--border-strong);
}
.plan-step.done .mark { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.plan-step.done .mark .icon { width: 11px; height: 11px; }
.plan-step.done .title { color: var(--text3); text-decoration: line-through; text-decoration-color: var(--border-strong); }
.plan-step.active .mark { border-color: var(--accent); }
.plan-step.active .title { font-weight: 600; }
.spinner-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: pulse 1.1s ease-in-out infinite; }

/* Changes */
.panel.changes { padding: 0; gap: 0; }
.change-list { padding: 8px; display: flex; flex-direction: column; gap: 1px; flex: none; max-height: 42%; overflow-y: auto; border-bottom: 1px solid var(--border); }
.change-list .bench-empty { padding: 12vh 16px; }
.change-row {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 32px;
  padding: 0 4px 0 8px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  transition: background var(--dur-fast) var(--ease);
}
.change-row:hover { background: var(--surface-hover); }
.change-row.on { background: var(--selection-strong); }
.change-row .verb {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  font-size: 10.5px;
  font-weight: 750;
  flex: none;
  color: #fff;
  background: var(--tile-navy);
}
.change-row .verb.new { background: var(--tile-teal); }
.change-row .verb.del { background: var(--tile-oxblood); }
.change-row .path { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; direction: rtl; text-align: left; font-family: var(--font-mono); font-size: 12px; }
.change-row .delta { display: flex; gap: 6px; font-size: 11.5px; font-variant-numeric: tabular-nums; }
.change-row .add { color: var(--added); }
.change-row .del { color: var(--removed); }
.change-row .ibtn { opacity: 0; }
.change-row:hover .ibtn { opacity: 1; }
.viewer-wrap { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 10px; gap: 8px; }
.viewer-head { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text2); padding: 0 4px; }
.viewer-head .icon { width: 14px; height: 14px; }
.viewer-head .path { font-family: var(--font-mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.viewer-wrap > .viewer { flex: 1; min-height: 0; padding: 8px 0; }

/* Terminal */
.panel.terminal { padding: 10px; gap: 8px; }
.background-jobs { display: flex; flex-direction: column; gap: 4px; }
.background-jobs:empty { display: none; }
.job {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 6px 6px 10px;
  border: 1px solid var(--border);
  border-radius: 9px;
  font-size: 12px;
}
.job .command { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--tile-teal); flex: none; animation: pulse 1.2s ease-in-out infinite; }
.term-pane { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.term-log { flex: 1; min-height: 0; overflow-y: auto; padding: 12px 14px; white-space: pre-wrap; word-break: break-word; }
.term-entry { line-height: 1.55; }
.term-entry.heading { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--code-border); }
.term-entry.command { color: var(--tile-gold); }
.term-entry.command::before { content: "$ "; opacity: 0.6; }
.term-entry.error, .term-entry.stderr { color: color-mix(in srgb, var(--danger) 60%, var(--code-fg)); }
.term-entry.status { color: color-mix(in srgb, var(--code-fg) 50%, transparent); font-style: italic; }
.term-hint { color: color-mix(in srgb, var(--code-fg) 40%, transparent); }
.term-line {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 6px 0 14px;
  border-top: 1px solid var(--code-border);
  flex: none;
}
.term-line .sigil { color: var(--tile-gold); font-weight: 700; }
.term-input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; color: var(--code-fg); font-family: var(--font-mono); font-size: 12.5px; }
.term-input::placeholder { color: color-mix(in srgb, var(--code-fg) 35%, transparent); }
.term-line .ibtn { color: color-mix(in srgb, var(--code-fg) 55%, transparent); }
.term-line .ibtn:hover { background: color-mix(in srgb, var(--code-fg) 10%, transparent); color: var(--code-fg); }
.term-pane.running .sigil { animation: pulse 1.1s ease-in-out infinite; }

/* Files */
.panel.files { gap: 8px; }
.file-tree { display: flex; flex-direction: column; }
.tree-row {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding-right: 8px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  white-space: nowrap;
  color: var(--text);
}
.tree-row span:last-child { overflow: hidden; text-overflow: ellipsis; }
.tree-row:hover { background: var(--surface-hover); }
.tree-row .icon { width: 14px; height: 14px; color: var(--text3); flex: none; }
.tree-row.dir .icon:nth-child(2) { color: var(--tile-amber); }
.tree-row .chev { width: 12px; height: 12px; transition: transform var(--dur-fast) var(--ease); }
.tree-row.dir.open .chev { transform: rotate(90deg); }

/* History */
.checkpoint { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--card); }
.checkpoint .top { display: flex; align-items: center; gap: 10px; }
.checkpoint .time { font-size: 12px; color: var(--text3); font-variant-numeric: tabular-nums; }
.checkpoint .label { flex: 1; min-width: 0; font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.checkpoint .files { display: flex; flex-wrap: wrap; gap: 4px; }
.checkpoint .file { padding: 1px 6px; border-radius: 5px; background: var(--surface-hover); color: var(--text2); font-size: 11px; }
.checkpoint .more { font-size: 11.5px; color: var(--text3); }
.checkpoint.reverted { opacity: 0.6; }

/* Cost */
.cost-total { display: flex; flex-direction: column; gap: 2px; padding: 6px 2px 4px; }
.cost-total .value { font-family: var(--display); font-size: 32px; font-weight: 520; letter-spacing: -0.02em; }
.cost-total .label { font-size: 12.5px; color: var(--text3); }
.cost-note { display: flex; gap: 8px; align-items: flex-start; padding: 8px 10px; border-radius: 9px; background: var(--accent-wash); color: var(--accent-ink); font-size: 12.5px; }
.cost-note .icon { width: 14px; height: 14px; margin-top: 2px; }
.cost-table { display: flex; flex-direction: column; }
.cost-row { display: grid; grid-template-columns: 1fr auto 76px; gap: 12px; align-items: center; padding: 7px 2px; border-bottom: 1px solid var(--border); font-size: 13px; }
.cost-row .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cost-row .tokens, .cost-row .cost { font-variant-numeric: tabular-nums; color: var(--text2); text-align: right; }

/* ---- the live brief ------------------------------------------------------ */
.panel.brief { gap: 14px; }
.live-head { display: flex; flex-direction: column; gap: 4px; }
.live-title { display: flex; align-items: center; justify-content: space-between; }
.kicker { font-size: 11px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--accent-ink); }
.live-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--text3); }
.live-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--border-strong); }
.live-badge.on { color: var(--accent-ink); }
.live-badge.on .dot { background: var(--accent); box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent); animation: live-dot 1.6s ease-out infinite; }
@keyframes live-dot {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent); }
  100% { box-shadow: 0 0 0 8px transparent; }
}
.project-name { margin: 0; font-family: var(--display); font-size: 24px; font-weight: 560; letter-spacing: -0.015em; line-height: 1.2; }
.live-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card);
  overflow: hidden;
}
.live-section { display: flex; flex-direction: column; gap: 6px; padding: 13px 15px; }
.live-section + .live-section { border-top: 1px solid var(--border); }
.live-section .label { font-size: 11px; font-weight: 650; letter-spacing: 0.07em; text-transform: uppercase; color: var(--text3); }
.live-section .value { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--text); white-space: pre-line; }
.live-list { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; line-height: 1.5; }
.live-list li::marker { color: var(--text3); }
/* What the lead just proposed arrives with a wash of amber. Scoped to the
   panel: #app.fresh is the New Chat page, and a bare .fresh faded the whole
   window in from nothing every time that page showed. */
:is(.live-section, .bench-toggle) .fresh { animation: fresh-in 900ms var(--ease-out) both; }
.live-list li.fresh { color: var(--text); }
.live-list li.fresh::marker { color: var(--accent); }
@keyframes fresh-in {
  0% { opacity: 0; transform: translateY(4px); background: var(--accent-wash); }
  40% { opacity: 1; transform: none; background: var(--accent-wash); }
  100% { background: transparent; }
}
.skeleton { display: flex; flex-direction: column; gap: 7px; padding: 3px 0; }
.skeleton span {
  display: block;
  height: 9px;
  border-radius: 5px;
  background: linear-gradient(90deg, var(--surface-hover) 0%, var(--shimmer) 50%, var(--surface-hover) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.6s linear infinite;
}
.skeleton span.short { width: 60%; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.pack-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pack-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 10px 0 8px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--text3);
  font-size: 12.5px;
  font-weight: 550;
  transition: color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.pack-chip .tile { opacity: 0.35; transition: opacity var(--dur-fast) var(--ease), transform var(--dur) var(--ease-spring); }
.pack-chip:hover { color: var(--text); background: var(--surface-hover); }
.pack-chip.on { color: var(--text); border-color: var(--border-strong); background: var(--surface-hover); }
.pack-chip.on .tile { opacity: 1; transform: rotate(45deg) scale(1.05); }
.live-foot { display: flex; flex-direction: column; gap: 8px; }
.live-note { text-align: center; font-size: 12px; color: var(--text3); }
.btn.block .icon { width: 16px; height: 16px; }

/* The brief itself, once the project is under way. */
.brief-head .name-input {
  width: 100%;
  padding: 2px 4px;
  margin-left: -4px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  font-family: var(--display);
  font-size: 24px;
  font-weight: 560;
  letter-spacing: -0.015em;
  color: var(--text);
  transition: border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.brief-head .name-input:hover { border-color: var(--border); }
.brief-head .name-input:focus { border-color: var(--accent); outline: none; background: var(--input-bg); }
.brief-save { display: flex; justify-content: flex-end; gap: 6px; margin-top: -4px; animation: rise-in var(--dur) var(--ease-out) both; }
.goal-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; }
.goal-list li { display: flex; gap: 8px; align-items: flex-start; }
.goal-list .icon { width: 15px; height: 15px; margin-top: 2px; color: var(--text3); }
.goal-list li.done { color: var(--text3); }
.goal-list li.done .icon { color: var(--accent-ink); }
.brief-code { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.behaviour { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--text2); }

/* ---- tasks ---------------------------------------------------------------- */
.proposals {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  border-radius: 14px;
  background: var(--accent-wash);
  animation: rise-in var(--dur-slow) var(--ease-out) both;
}
.proposals-head { display: flex; align-items: center; justify-content: space-between; }
.proposals-head .label { font-size: 12.5px; font-weight: 650; color: var(--accent-ink); }
.proposal { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 11px; background: var(--raised); box-shadow: 0 1px 2px var(--shadow-soft); }
.proposal .top { display: flex; align-items: center; gap: 8px; }
.proposal .headline { font-weight: 600; font-size: 13.5px; }
.proposal .proposal-text { font-size: 13px; line-height: 1.55; color: var(--text2); white-space: pre-line; }
.proposal .proposal-actions { display: flex; justify-content: flex-end; gap: 6px; }

.task-list { display: flex; flex-direction: column; gap: 1px; }
.task { display: flex; align-items: flex-start; gap: 10px; padding: 7px 4px; border-radius: 8px; }
.task-mark {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  flex: none;
  padding: 0;
  border: 1.6px solid var(--border-strong);
  border-radius: 6px;
  background: transparent;
  color: var(--accent-text);
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease-spring);
}
.task-mark:hover { border-color: var(--accent); }
.task-mark:active { transform: scale(0.88); }
.task-mark .icon { width: 12px; height: 12px; }
.task-mark.active { border-color: var(--accent); }
.task-mark.active .inner { width: 8px; height: 8px; border-radius: 2px; background: var(--accent); }
.task-mark.done { background: var(--accent); border-color: var(--accent); }
.task .text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.task .title { font-size: 13.5px; line-height: 1.45; }
.task .detail { font-size: 12.5px; color: var(--text3); line-height: 1.45; }
.task.done .title { color: var(--text3); text-decoration: line-through; text-decoration-color: var(--border-strong); }
.task.active .title { font-weight: 600; }

/* ---- memory and activity -------------------------------------------------- */
.fact { display: flex; align-items: flex-start; gap: 8px; padding: 9px 8px 9px 12px; border: 1px solid var(--border); border-radius: 11px; background: var(--card); font-size: 13px; line-height: 1.5; }
.fact .fact-text { flex: 1; min-width: 0; }
.fact.pinned { border-color: color-mix(in srgb, var(--accent) 35%, var(--border)); }

.notice { display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--card); animation: rise-in var(--dur) var(--ease-out) both; }
.notice.question { border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); }
.notice .top { display: flex; align-items: flex-start; gap: 9px; }
.notice .top > .icon { width: 16px; height: 16px; margin-top: 2px; color: var(--accent-ink); }
.notice .notice-text { flex: 1; font-size: 13.5px; line-height: 1.5; }
.notice .dismiss { margin: -4px -4px 0 0; }
.notice .detail { font-size: 12.5px; color: var(--text3); white-space: pre-line; }
.notice .options { display: flex; flex-wrap: wrap; gap: 6px; }
.job-row { display: flex; align-items: center; gap: 9px; padding: 8px 6px 8px 10px; border-radius: 9px; font-size: 13px; }
.job-row:hover { background: var(--surface-hover); }
.job-row .title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.job-row .state { font-size: 11.5px; color: var(--text3); }
.job-row > .icon { width: 14px; height: 14px; color: var(--text3); }

/* Git */
.git-where { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--card); }
.git-where > .icon { width: 15px; height: 15px; color: var(--text3); flex: none; }
.git-where .name { font-family: var(--font-mono); font-size: 12.5px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.git-where .state { flex: 1; font-size: 12px; color: var(--text3); }
.git-where .state.dirty { color: var(--accent-ink); }
.git-hint { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; line-height: 1.5; color: var(--text2); }
.git-hint.done .icon { width: 14px; height: 14px; margin-top: 2px; color: var(--accent); flex: none; }
.git-session { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 12px; background: var(--card); overflow: hidden; }
.git-session .top { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.git-session .top .icon { width: 15px; height: 15px; color: var(--accent); flex: none; }
.git-session .top .name { font-family: var(--font-mono); font-size: 12.5px; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.git-session .top .from { margin-left: auto; font-size: 12px; color: var(--text3); white-space: nowrap; }
.git-session .away { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: var(--accent-wash); color: var(--accent-ink); font-size: 12.5px; }
.git-session .away span { flex: 1; }
.git-commits { display: flex; flex-direction: column; padding: 4px 0; max-height: 280px; overflow-y: auto; }
.git-commits .git-hint { padding: 6px 12px; }
.git-commit { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: baseline; padding: 5px 12px; font-size: 12.5px; }
.git-commit:hover { background: var(--surface-hover); }
.git-commit:focus-visible { outline: var(--focus-ring) solid var(--accent); outline-offset: -2px; }
.git-commit .sha { font-family: var(--font-mono); font-size: 11.5px; color: var(--accent-ink); }
.git-commit .subject { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.git-commit .when { font-size: 11.5px; color: var(--text3); white-space: nowrap; }
.git-session .actions { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-top: 1px solid var(--border); }
.git-session .actions .spacer { flex: 1; }
.btn.git-discard:hover:not(:disabled) { color: var(--danger); }
.git-mode-hint { margin-top: -4px; }
