/* SkyOps — Inspection Workspace styles */

.ws {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background: var(--bg-app);
}

/* ── Header ─────────────────────────────────────── */
.ws-head {
  padding: 14px 24px 12px;
  border-bottom: 1px solid var(--border-base);
  background: var(--bg-sidebar);
  position: relative;
}
.ws-head-left {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; color: var(--fg-muted);
  margin-bottom: 8px;
}
.ws-crumb { background: transparent; border: 0; color: var(--fg-secondary); cursor: pointer; padding: 0; font-size: 11px; }
.ws-crumb:hover { color: var(--fg-primary); }
.ws-crumb-sep { color: var(--fg-disabled); }
.ws-crumb-cur { color: var(--fg-primary); font-weight: 500; }

.ws-head-main {
  display: flex; align-items: flex-start; gap: 24px;
}
.ws-head-title { flex: 1; min-width: 0; }
.ws-head-kicker {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 4px; flex-wrap: wrap;
}
.ws-head-mic { font-size: 12px; font-weight: 600; color: var(--fg-primary); }
.ws-head-cycle { font-size: 11px; color: var(--fg-muted); }
.ws-head-picker-btn {
  display: inline-flex; align-items: center; gap: 4px;
  background: transparent; border: 1px solid var(--border-base);
  color: var(--fg-secondary); font-size: 10px; padding: 2px 8px;
  border-radius: 4px; cursor: pointer; font-family: var(--font-sans);
}
.ws-head-picker-btn:hover { border-color: var(--border-elevated); color: var(--fg-primary); }

.ws-head-h1 {
  margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -0.01em;
}
.ws-head-site-name { color: var(--fg-primary); font-weight: 600; }
.ws-head-sub {
  font-size: 12px; color: var(--fg-muted); margin-top: 4px;
}

.ws-head-actions {
  display: flex; flex-direction: column; gap: 10px; align-items: flex-end;
}
.ws-head-meta {
  display: flex; gap: 18px;
}
.ws-head-meta-it {
  display: flex; flex-direction: column; gap: 2px; text-align: right;
}
.ws-head-meta-it .caps { font-size: 9px; }
.ws-head-meta-it .mono { font-size: 14px; font-weight: 600; }

.ws-head-picker-menu {
  position: absolute; top: calc(100% + 2px); left: 24px;
  min-width: 540px; background: var(--bg-elevated);
  border: 1px solid var(--border-strong); border-radius: 10px;
  z-index: 50; box-shadow: 0 20px 40px rgba(0,0,0,0.4); overflow: hidden;
}
.ws-head-picker-hd {
  padding: 10px 14px; font-size: 10px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--fg-muted);
  border-bottom: 1px solid var(--border-base); background: var(--bg-raised);
}
.ws-head-picker-it {
  display: grid; grid-template-columns: 90px 140px 100px 1fr 60px 80px;
  align-items: center; gap: 10px; padding: 10px 14px;
  background: transparent; border: 0; border-bottom: 1px solid var(--border-base);
  color: var(--fg-base); font-size: 12px; cursor: pointer; text-align: left; width: 100%;
}
.ws-head-picker-it:hover { background: var(--bg-hover); }
.ws-head-picker-it.is-on { background: color-mix(in oklab, var(--accent-primary) 8%, transparent); }
.ws-head-picker-mic { font-weight: 600; font-size: 11px; }
.ws-head-picker-cycle, .ws-head-picker-date, .ws-head-picker-meta { color: var(--fg-muted); font-size: 11px; }
.ws-head-picker-meta { text-align: right; }
.ws-head-picker-cmp {
  color: var(--accent-primary); font-size: 10px; cursor: pointer;
  text-align: right; padding: 2px 6px; border-radius: 4px;
}
.ws-head-picker-cmp:hover { background: color-mix(in oklab, var(--accent-primary) 12%, transparent); }
.ws-head-picker-new {
  display: flex; align-items: center; gap: 6px; width: 100%;
  padding: 10px 14px; background: transparent; border: 0;
  color: var(--accent-primary); font-size: 12px; cursor: pointer;
}
.ws-head-picker-new:hover { background: var(--bg-hover); }

/* ── Stepper ────────────────────────────────────── */
.ws-stepper {
  display: flex; align-items: center; gap: 2px;
  padding: 14px 24px;
  background: var(--bg-sidebar);
  border-bottom: 1px solid var(--border-base);
  overflow-x: auto;
}
.ws-step {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  background: transparent;
  border: 1px solid var(--border-base);
  border-radius: 22px;
  color: var(--fg-muted);
  font-size: 12px;
  cursor: pointer;
  transition: 0.12s all;
  position: relative;
  white-space: nowrap;
  flex-shrink: 0;
}
.ws-step:hover:not(:disabled) { color: var(--fg-primary); border-color: var(--border-strong); }
.ws-step:disabled { cursor: not-allowed; opacity: 0.5; }
.ws-step.is-done { color: var(--sev-low); border-color: color-mix(in oklab, var(--sev-low) 36%, var(--border-base)); }
.ws-step.is-part { color: var(--fg-primary); border-color: var(--accent-primary); }
.ws-step.is-cur {
  color: var(--fg-primary);
  background: color-mix(in oklab, var(--accent-primary) 14%, transparent);
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 2px color-mix(in oklab, var(--accent-primary) 14%, transparent);
}
.ws-step.is-locked { opacity: 0.4; }
.ws-step-num {
  width: 18px; height: 18px; border-radius: 99px;
  background: var(--bg-inset); border: 1px solid var(--border-base);
  display: grid; place-items: center;
  font-size: 10px; font-weight: 600;
  color: inherit;
}
.ws-step.is-done .ws-step-num { background: var(--sev-low); color: #04101f; border-color: var(--sev-low); }
.ws-step.is-cur .ws-step-num { background: var(--accent-primary); color: #04101f; border-color: var(--accent-primary); }
.ws-step-ic { color: currentColor; display: flex; }
.ws-step-lbl { font-weight: 500; font-size: 12px; }
.ws-step-bar {
  display: block; height: 3px; width: 32px;
  background: var(--border-base); border-radius: 2px; overflow: hidden;
}
.ws-step-bar span {
  display: block; height: 100%; background: var(--accent-primary);
  transition: width 0.2s ease;
}
.ws-step-link {
  width: 16px; height: 1px;
  background: var(--border-base);
  flex-shrink: 0;
}
.ws-step-link.is-on { background: color-mix(in oklab, var(--accent-primary) 60%, transparent); }
.ws-step-link.is-done { background: color-mix(in oklab, var(--sev-low) 50%, transparent); }

/* ── Body ───────────────────────────────────────── */
.ws-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.ws-body > * {
  flex: 1;
  min-height: 0;
}

.ws-card {
  background: var(--bg-card);
  border: 1px solid var(--border-base);
  border-radius: 10px;
}
.ws-stage {
  padding: 18px 24px 28px;
}
.ws-stage-hd {
  display: flex; align-items: flex-end; gap: 16px; margin-bottom: 18px;
}
.ws-stage-hd .title h1 { margin: 0; font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.ws-stage-hd .title .kicker { color: var(--accent-primary); margin-bottom: 2px; }
.ws-stage-hd .title .sub { color: var(--fg-muted); font-size: 12px; margin-top: 3px; }
.ws-stage-hd .actions { margin-left: auto; display: flex; gap: 8px; }

/* ── Locked gate ───────────────────────────────── */
.ws-gate {
  padding: 80px 40px;
  text-align: center;
  color: var(--fg-muted);
  max-width: 520px;
  margin: 40px auto;
}
.ws-gate-ic {
  width: 52px; height: 52px; border-radius: 99px;
  background: var(--bg-inset); border: 1px solid var(--border-base);
  display: grid; place-items: center; margin: 0 auto 16px;
  color: var(--fg-muted);
}
.ws-gate h3 {
  font-size: 16px; font-weight: 600; color: var(--fg-primary);
  margin: 0 0 8px;
}
.ws-gate p {
  font-size: 13px; margin: 0 0 16px; line-height: 1.5;
}

/* ── Capture stage ─────────────────────────────── */
.cap-grid {
  display: grid; grid-template-columns: 1fr 340px; gap: 16px;
  align-items: start;
}
.cap-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.cap-side { display: flex; flex-direction: column; gap: 16px; }

.cap-drop {
  border: 2px dashed var(--border-elevated);
  border-radius: 12px;
  padding: 44px 24px 36px;
  text-align: center;
  background: var(--bg-card);
  transition: 0.15s;
}
.cap-drop:hover { border-color: var(--accent-primary); background: color-mix(in oklab, var(--accent-primary) 4%, var(--bg-card)); }
.cap-drop.is-done { border-style: solid; border-color: color-mix(in oklab, var(--sev-low) 40%, var(--border-base)); background: color-mix(in oklab, var(--sev-low) 4%, var(--bg-card)); }
.cap-drop-ic {
  width: 56px; height: 56px; border-radius: 99px;
  background: var(--bg-inset); display: grid; place-items: center;
  margin: 0 auto 12px; color: var(--accent-primary);
}
.cap-drop.is-done .cap-drop-ic { background: color-mix(in oklab, var(--sev-low) 14%, transparent); color: var(--sev-low); }
.cap-drop-h { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.cap-drop-sub { font-size: 12px; color: var(--fg-muted); margin-bottom: 16px; }
.cap-drop-actions { display: flex; gap: 10px; justify-content: center; }

.cap-sorties {
  padding: 10px 14px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px;
}
.cap-sortie {
  display: grid; grid-template-columns: 42px 16px 48px 1fr 42px;
  align-items: center; gap: 8px;
  padding: 8px 10px;
  background: var(--bg-inset); border: 1px solid var(--border-base); border-radius: 6px;
  font-size: 11px;
}
.cap-sortie.is-done .cap-sortie-ic { color: var(--sev-low); }
.cap-sortie-ic { color: var(--fg-muted); display: flex; }
.cap-sortie-n { font-weight: 600; color: var(--fg-primary); }
.cap-sortie-lbl { color: var(--fg-secondary); font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; }
.cap-sortie-frames { color: var(--fg-muted); }
.cap-sortie-dur { color: var(--fg-muted); text-align: right; }

.cap-summary { padding: 10px 14px; display: flex; flex-direction: column; gap: 0; }
.cap-summary-it {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 0; border-bottom: 1px solid var(--border-base);
}
.cap-summary-it:last-child { border-bottom: 0; }
.cap-summary-it .caps { font-size: 10px; }

.cap-qa { padding: 4px 14px 10px; display: flex; flex-direction: column; gap: 8px; }
.cap-qa-it {
  display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border-base);
}
.cap-qa-it:last-child { border-bottom: 0; }
.cap-qa-it.ok { color: var(--sev-low); }
.cap-qa-it.warn { color: var(--sev-high); }
.cap-qa-l { font-size: 12px; color: var(--fg-primary); }
.cap-qa-s { font-size: 10px; color: var(--fg-muted); }

/* ── Archive stage ─────────────────────────────── */
.arch-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 16px;
  align-items: start;
}
.arch-close .card-hd { border-bottom: 1px solid var(--border-base); }
.arch-steps { padding: 12px 16px; display: flex; flex-direction: column; gap: 0; }
.arch-step { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border-base); }
.arch-step:last-child { border-bottom: 0; }
.arch-step.is-done { color: var(--sev-low); }
.arch-step:not(.is-done) { color: var(--fg-muted); }
.arch-step-ic { color: currentColor; display: flex; flex-shrink: 0; margin-top: 2px; }
.arch-step-l { font-size: 13px; color: var(--fg-primary); font-weight: 500; }
.arch-step-s { font-size: 11px; color: var(--fg-muted); margin-top: 2px; }
.arch-cta { padding: 12px 16px; border-top: 1px solid var(--border-base); }

.arch-next { padding: 16px; }
.arch-next-h { font-size: 11px; color: var(--fg-muted); letter-spacing: 0.12em; text-transform: uppercase; }
.arch-next-date { font-size: 24px; font-weight: 700; color: var(--accent-primary); margin: 4px 0 4px; }
.arch-next-sub { font-size: 12px; color: var(--fg-secondary); margin-bottom: 14px; }
.arch-next-inherit .caps { margin-bottom: 6px; }
.arch-next-inherit ul { margin: 0; padding-left: 18px; font-size: 11px; color: var(--fg-secondary); }
.arch-next-inherit li { margin-bottom: 3px; }

.arch-intel { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.arch-intel p { margin: 0 0 6px; font-size: 12px; color: var(--fg-secondary); line-height: 1.5; }

/* ── Files stage ───────────────────────────────── */
.fx-wrap {
  display: grid;
  grid-template-columns: 220px 1fr 320px;
  gap: 16px; align-items: stretch;
}
.fx-tree {
  display: flex; flex-direction: column;
}
.fx-tree-hd {
  padding: 12px 14px; border-bottom: 1px solid var(--border-base);
  display: flex; justify-content: space-between; align-items: center;
}
.fx-tree-root { font-size: 10px; color: var(--fg-muted); }
.fx-tree-nav { padding: 8px; display: flex; flex-direction: column; gap: 1px; }
.fx-tree-it {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 10px; border-radius: 6px;
  background: transparent; border: 0; cursor: pointer;
  color: var(--fg-secondary); font-size: 12px; text-align: left;
  font-family: var(--font-sans);
}
.fx-tree-it:hover { background: var(--bg-hover); color: var(--fg-primary); }
.fx-tree-it.is-on { background: var(--bg-active); color: var(--fg-primary); }
.fx-tree-it.is-sub { padding-left: 24px; font-family: var(--font-mono); font-size: 11px; }
.fx-tree-it span:nth-child(2) { flex: 1; }
.fx-tree-count { font-size: 10px; color: var(--fg-muted); }
.fx-tree-foot { margin-top: auto; padding: 12px 14px; border-top: 1px solid var(--border-base); }
.fx-tree-foot p { margin: 4px 0 0; font-size: 11px; color: var(--fg-muted); line-height: 1.5; }

.fx-main { display: flex; flex-direction: column; min-width: 0; }
.fx-toolbar {
  padding: 10px 14px; border-bottom: 1px solid var(--border-base);
  display: flex; align-items: center; gap: 10px;
}
.fx-bc { display: flex; align-items: center; gap: 4px; font-size: 11px; color: var(--fg-secondary); }
.fx-bc-sep { color: var(--fg-disabled); margin: 0 2px; }
.fx-bc-cur { color: var(--fg-primary); font-weight: 500; }

.fx-table-wrap { flex: 1; overflow: auto; min-height: 0; }
.fx-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 12px; }
.fx-table thead th {
  text-align: left; font-weight: 500; font-size: 10px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--fg-muted); padding: 8px 12px;
  background: var(--bg-inset); border-bottom: 1px solid var(--border-base);
  position: sticky; top: 0; z-index: 2;
}
.fx-table tbody td {
  padding: 0 12px; height: 36px;
  border-bottom: 1px solid var(--border-base);
  color: var(--fg-primary); vertical-align: middle;
}
.fx-table tbody tr { cursor: pointer; transition: background 0.1s; }
.fx-table tbody tr:hover { background: var(--bg-hover); }
.fx-table tbody tr.is-sel { background: color-mix(in oklab, var(--accent-primary) 8%, transparent); }
.fx-table tbody tr.is-preview { background: var(--bg-active); }
.fx-name { display: flex; align-items: center; gap: 8px; }
.fx-name-lbl { font-size: 11px; color: var(--fg-primary); }
.fx-dl {
  background: transparent; border: 1px solid var(--border-base);
  color: var(--fg-muted); padding: 3px 7px; border-radius: 4px; cursor: pointer;
  display: inline-flex;
}
.fx-dl:hover { border-color: var(--accent-primary); color: var(--accent-primary); }

.fx-selbar {
  padding: 10px 14px; border-top: 1px solid var(--border-elevated);
  background: var(--bg-elevated);
  display: flex; align-items: center; gap: 10px;
}

.fx-preview { display: flex; flex-direction: column; }
.fx-preview-empty {
  padding: 40px 20px; text-align: center; color: var(--fg-muted);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.fx-preview-empty p { margin: 0; font-size: 12px; line-height: 1.5; }
.fx-preview-empty p.sec { font-size: 11px; }

.fx-prev-hd {
  padding: 10px 14px; border-bottom: 1px solid var(--border-base);
  display: flex; align-items: center; gap: 8px;
}
.fx-prev-name { font-size: 11px; color: var(--fg-primary); word-break: break-all; }
.fx-prev-body { padding: 14px; }
.fx-prev-meta {
  padding: 0 14px 14px; display: flex; flex-direction: column; gap: 0;
}
.fx-prev-kv {
  display: flex; justify-content: space-between; align-items: center;
  padding: 6px 0; border-bottom: 1px solid var(--border-base);
}
.fx-prev-kv:last-child { border-bottom: 0; }
.fx-prev-kv .caps { font-size: 10px; }
.fx-prev-kv .mono { font-size: 11px; }
.fx-prev-actions {
  padding: 10px 14px; border-top: 1px solid var(--border-base);
  display: flex; gap: 6px; flex-wrap: wrap;
}

/* ── Calendar ──────────────────────────────────── */
.sc { display: flex; flex-direction: column; gap: 14px; }
.sc-head {
  display: flex; align-items: center; justify-content: space-between;
}
.sc-head-nav { display: flex; align-items: center; gap: 10px; }
.sc-head-title { margin: 0; font-size: 16px; font-weight: 600; min-width: 140px; text-align: center; }
.sc-head-actions { display: flex; align-items: center; gap: 10px; }

.sc-legend {
  display: flex; flex-wrap: wrap; gap: 14px;
  font-size: 11px; color: var(--fg-secondary);
}
.sc-legend-it { display: inline-flex; align-items: center; gap: 6px; }
.sc-dot { width: 8px; height: 8px; border-radius: 99px; display: inline-block; flex-shrink: 0; }
.sc-dot.is-past { background: var(--sev-low); }
.sc-dot.is-current { background: var(--accent-primary); box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent-primary) 30%, transparent); }
.sc-dot.is-scheduled { background: var(--accent-mission); }
.sc-dot.is-recommended { background: var(--fg-muted); border: 1px dashed var(--fg-secondary); }
.sc-dot.is-weather-block { background: var(--sev-critical); }
.sc-dot.is-weather-warn { background: var(--sev-medium); }

.sc-weekdays {
  display: grid; grid-template-columns: repeat(7, 1fr);
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--fg-muted); border-bottom: 1px solid var(--border-base);
}
.sc-weekdays > div { padding: 8px 10px; }

.sc-grid {
  display: grid; grid-template-columns: repeat(7, 1fr);
  border-bottom: 1px solid var(--border-base);
}
.sc-cell {
  min-height: 100px; padding: 6px 8px;
  border-right: 1px solid var(--border-base); border-top: 1px solid var(--border-base);
  display: flex; flex-direction: column; gap: 4px;
}
.sc-cell.is-empty { background: var(--bg-inset); }
.sc-cell.is-today { background: color-mix(in oklab, var(--accent-primary) 6%, transparent); }
.sc-cell-hd { display: flex; justify-content: space-between; align-items: center; }
.sc-cell-day { font-size: 12px; font-weight: 500; color: var(--fg-primary); }
.sc-cell-today-tag {
  font-size: 9px; color: var(--accent-primary); letter-spacing: 0.08em;
  text-transform: uppercase; font-weight: 600;
}
.sc-cell-ev { display: flex; flex-direction: column; gap: 3px; }

.sc-ev {
  display: flex; align-items: center; gap: 5px;
  padding: 3px 6px; border-radius: 4px;
  background: var(--bg-inset); border: 1px solid var(--border-base);
  font-size: 10px; cursor: pointer; text-align: left;
  font-family: var(--font-sans); color: var(--fg-primary);
}
.sc-ev:hover { border-color: var(--border-elevated); }
.sc-ev-lbl { font-family: var(--font-mono); font-weight: 600; font-size: 9px; }
.sc-ev-sub { color: var(--fg-muted); font-size: 9px; margin-left: auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-ev-past { border-color: color-mix(in oklab, var(--sev-low) 30%, var(--border-base)); }
.sc-ev-current { border-color: var(--accent-primary); background: color-mix(in oklab, var(--accent-primary) 10%, var(--bg-inset)); }
.sc-ev-scheduled { border-color: color-mix(in oklab, var(--accent-mission) 40%, var(--border-base)); }
.sc-ev-recommended { border-style: dashed; }
.sc-ev-weather-block {
  background: color-mix(in oklab, var(--sev-critical) 8%, var(--bg-inset));
  border-color: color-mix(in oklab, var(--sev-critical) 30%, var(--border-base));
  color: var(--sev-critical);
}
.sc-ev-weather-warn {
  background: color-mix(in oklab, var(--sev-medium) 8%, var(--bg-inset));
  border-color: color-mix(in oklab, var(--sev-medium) 30%, var(--border-base));
  color: var(--sev-medium);
}

/* Timeline view */
.sc-tl { display: grid; grid-template-columns: repeat(6, 1fr); }
.sc-tl-col { padding: 0; border-right: 1px solid var(--border-base); min-height: 240px; }
.sc-tl-col:last-child { border-right: 0; }
.sc-tl-hd {
  padding: 10px; font-size: 11px; font-weight: 600;
  border-bottom: 1px solid var(--border-base);
  background: var(--bg-inset); color: var(--fg-muted);
  text-transform: uppercase; letter-spacing: 0.1em;
}
.sc-tl-lane { padding: 10px; display: flex; flex-direction: column; gap: 6px; }
.sc-tl-ev {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 8px; border-radius: 4px;
  background: var(--bg-inset); border: 1px solid var(--border-base);
  font-size: 11px;
}

/* List pills */
.sc-pill-past { color: var(--sev-low); }
.sc-pill-current { color: var(--accent-primary); }
.sc-pill-scheduled { color: var(--accent-mission); }
.sc-pill-recommended { color: var(--fg-muted); }
.sc-pill-weather-block { color: var(--sev-critical); }
.sc-pill-weather-warn { color: var(--sev-medium); }

/* ── Responsive ──────────────────────────────── */
@media (max-width: 1400px) {
  .fx-wrap { grid-template-columns: 200px 1fr 280px; }
}
@media (max-width: 1200px) {
  .fx-wrap { grid-template-columns: 1fr; }
  .arch-grid { grid-template-columns: 1fr; }
  .cap-grid { grid-template-columns: 1fr; }
  .ws-head-main { flex-direction: column; align-items: flex-start; }
  .ws-head-actions { align-items: flex-start; width: 100%; }
  .ws-head-meta { width: 100%; justify-content: space-between; }
}

/* Portfolio hub */
.ph{display:flex;flex-direction:column;min-height:100%}
.ph-bar{display:flex;align-items:center;gap:20px;padding:12px 24px;border-bottom:1px solid var(--border-base);background:var(--bg-sidebar);position:sticky;top:0;z-index:20}
.ph-title{font-size:15px;font-weight:700;letter-spacing:-.01em}
.ph-tabs{display:flex;gap:4px}
.ph-tabs button{display:flex;flex-direction:column;align-items:flex-start;gap:1px;padding:7px 14px;border:1px solid transparent;border-radius:8px;background:transparent;color:var(--fg-secondary);cursor:pointer;font-family:var(--font-sans);text-align:left}
.ph-tabs button span{font-size:12.5px;font-weight:600}
.ph-tabs button em{font-style:normal;font-size:10px;color:var(--fg-muted)}
.ph-tabs button:hover{background:var(--bg-hover);color:var(--fg-primary)}
.ph-tabs button.on{background:var(--bg-active);border-color:var(--border-elevated);color:var(--fg-primary)}
.ph-tabs button.on span{color:var(--accent-primary)}
@media (max-width:1100px){.ph-tabs button em{display:none}}

/* Embedded legacy pages: compact their own headers under the workspace header */
.ws-body .page{padding-top:16px}
.ws-body .page-head{margin-bottom:12px}
.ws-body .page-head .title .kicker{display:none}
.ws-body .page-head .title h1{font-size:16px}
.ws-body .page-head .title .sub{font-size:11px}

.ws-partial{display:flex;align-items:center;gap:12px;margin:14px 24px 0;padding:9px 14px;border:1px solid color-mix(in oklab,var(--accent-primary) 35%,var(--border-base));background:color-mix(in oklab,var(--accent-primary) 7%,transparent);border-radius:8px;font-size:12px;color:var(--fg-secondary)}
.ws-partial b{color:var(--accent-primary)}
.ws-partial-bar{width:90px;height:5px;border-radius:99px;background:var(--bg-inset);overflow:hidden;flex-shrink:0}
.ws-partial-bar span{display:block;height:100%;background:var(--accent-primary)}
