/* ============================================================
   oOMF! Design v2.1 — component classes.
   Reads only the canonical tokens (tokens/oomf.tokens.css).
   Every class is oomf- namespaced (BEM). Elements: __part.
   Modifiers: --mod. States: .is-*.
   ============================================================ */

/* ---- root ---- */
.oomf-root {
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}
.oomf-root, .oomf-root *, .oomf-root *::before, .oomf-root *::after {
  box-sizing: border-box;
}
.oomf-root ::selection { background: var(--brand-100); }

/* ---- shared focus ring ---- */
.oomf-btn:focus-visible,
.oomf-iconbtn:focus-visible,
.oomf-chip:focus-visible,
.oomf-filterchip:focus-visible,
.oomf-toggle:focus-visible,
.oomf-navitem:focus-visible,
.oomf-section__back:focus-visible {
  outline: var(--focus-ring) solid var(--focus);
  outline-offset: var(--focus-ring-offset);
}

/* ---- wordmark ---- */
.oomf-wordmark {
  display: inline-flex;
  align-items: baseline;
  flex: 0 0 auto;
  flex-wrap: nowrap;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1;
  white-space: nowrap;
  color: var(--ink);
}
.oomf-wordmark__bang {
  flex: 0 0 auto;
  color: var(--wordmark-bang, var(--d-coral));
  font-style: inherit;
}
.oomf-brand-inline {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: nowrap;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  letter-spacing: 0;
  white-space: nowrap;
}
.oomf-brand-inline__bang {
  color: var(--wordmark-bang, var(--d-coral));
  font-style: inherit;
}

/* ---- button (unified: brand / secondary / ghost / code) ---- */
.oomf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.2;
  min-height: var(--control-hit);
  padding: 0 18px;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--dur-std) var(--ease),
    border-color var(--dur-std) var(--ease),
    color var(--dur-std) var(--ease),
    box-shadow var(--dur-std) var(--ease);
}
.oomf-btn--brand {
  background: var(--brand);
  color: var(--on-brand);
  box-shadow: var(--e1);
}
.oomf-btn--brand:hover:not(:disabled):not([aria-disabled='true']) { background: var(--brand-600); }
.oomf-btn--secondary {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}
.oomf-btn--secondary:hover:not(:disabled):not([aria-disabled='true']) {
  border-color: var(--brand);
  background: color-mix(in srgb, var(--brand) 10%, var(--surface));
}
.oomf-btn--ghost {
  background: transparent;
  color: var(--support);
  border-radius: var(--radius);
  padding-inline: 12px;
}
.oomf-btn--ghost:hover:not(:disabled):not([aria-disabled='true']) { background: var(--subtle); }
.oomf-btn--code {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink-muted);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  padding-inline: 12px;
  border-radius: var(--radius);
}
.oomf-btn--code:hover:not(:disabled):not([aria-disabled='true']) { border-color: var(--ink-faint); color: var(--ink); }
.oomf-btn--sm { min-height: var(--control-hit); font-size: 12.5px; padding-inline: 13px; }
.oomf-btn--code.oomf-btn--sm { min-height: var(--control-hit); font-size: 11px; padding-inline: 10px; }
.oomf-btn--fill { flex: 1; width: 100%; }
.oomf-btn:disabled,
.oomf-btn[aria-disabled='true'] {
  background: var(--subtle);
  border-color: transparent;
  color: var(--ink-faint);
  box-shadow: var(--e0);
  cursor: not-allowed;
}

/* ---- icon button ---- */
.oomf-iconbtn {
  position: relative;
  display: grid;
  place-items: center;
  width: var(--control-hit);
  height: var(--control-hit);
  flex: 0 0 var(--control-hit);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink-muted);
  cursor: pointer;
  transition: border-color var(--dur-std) var(--ease),
    color var(--dur-std) var(--ease);
}
.oomf-iconbtn > svg { display: block; }
.oomf-iconbtn:hover:not(:disabled) { border-color: var(--ink-faint); color: var(--ink); }
.oomf-iconbtn--sm { width: var(--control-hit); height: var(--control-hit); flex-basis: var(--control-hit); }
.oomf-iconbtn:disabled { cursor: not-allowed; opacity: .5; }

/* ---- status chip (semantic: ok / warn / err / info / neutral) ---- */
.oomf-chip {
  --status-color: var(--info);
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 5px;
  min-height: 20px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: color-mix(in srgb, var(--status-color) 76%, var(--ink));
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.1;
  white-space: nowrap;
  vertical-align: middle;
}
.oomf-chip__dot {
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 50%;
  background: var(--status-color);
}
.oomf-chip--ok { --status-color: var(--ok); }
.oomf-chip--warn { --status-color: var(--warn); }
.oomf-chip--err { --status-color: var(--err); }
.oomf-chip--info { --status-color: var(--info); }
.oomf-chip--neutral {
  --status-color: var(--ink-faint);
  color: var(--ink-muted);
}

/* ---- lifecycle badge (workflow state, distinct from semantic chip) ---- */
.oomf-lifebadge,
.oomf-lifedot {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 5px;
  min-height: 20px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
  vertical-align: middle;
}
.oomf-lifebadge > span,
.oomf-lifedot > span {
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 50%;
}
.oomf-lifebadge--ok { color: var(--ok); }
.oomf-lifebadge--warn { color: var(--warn); }
.oomf-lifebadge--err { color: var(--err); }
.oomf-lifebadge--info { color: var(--info); }
.oomf-lifebadge--support { color: var(--support); }
.oomf-lifebadge--ok > span { background: var(--ok); }
.oomf-lifebadge--warn > span { background: var(--warn); }
.oomf-lifebadge--err > span { background: var(--err); }
.oomf-lifebadge--info > span { background: var(--info); }
.oomf-lifebadge--support > span { background: var(--support); }

/* ---- lifecycle dot (labelled colored dot) ---- */
.oomf-lifedot { color: var(--ink-muted); }
.oomf-lifedot--green { color: var(--ok); }
.oomf-lifedot--green > span { background: var(--ok); }
.oomf-lifedot--amber > span { background: var(--warn); }
.oomf-lifedot--indigo, .oomf-lifedot--blue { color: var(--support); }
.oomf-lifedot--indigo > span, .oomf-lifedot--blue > span { background: var(--support); }
.oomf-lifedot--neutral > span { background: var(--ink-faint); }
.oomf-lifedot--red > span { background: var(--err); }
.oomf-lifedot--purple > span { background: var(--accent); }
.oomf-lifedot--orange > span { background: var(--brand); }

/* ---- tag (plain mono metadata) + repo / priority presets ---- */
.oomf-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 20px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink-muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0;
  line-height: 1.1;
  white-space: nowrap;
}
.oomf-tag--sm { min-height: 16px; font-size: 9.5px; }
/* RepoPill preset: accent dot + repo sizing */
.oomf-tag--repo {
  gap: 6px;
  max-width: 100%;
  min-width: 0;
  min-height: 20px;
  font-size: 11px;
  white-space: normal;
}
.oomf-tag--repo > .oomf-tag__dot {
  flex: 0 0 7px;
  width: 7px;
  height: 7px;
  border-radius: calc(var(--radius) / 2);
  background: var(--identity-accent);
}
/* PriorityBadge preset: plain priority marker; hot = brand color */
.oomf-tag--priority {
  min-height: 20px;
  font-weight: 700;
  font-size: 11px;
}
.oomf-tag--priority.is-hot {
  color: var(--brand-600);
}

/* ---- monogram tile ---- */
.oomf-tile {
  --tile-accent: var(--support);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--tile-accent) 12%, var(--surface));
  color: color-mix(in srgb, var(--tile-accent) 78%, var(--ink));
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 700;
  font-size: 14px;
  line-height: normal;
  letter-spacing: -0.02em;
  text-align: center;
  user-select: none;
}
.oomf-tile--sm { width: 30px; height: 30px; font-size: 13px; }
.oomf-tile--lg { width: 56px; height: 56px; font-size: 18px; border-radius: var(--radius-lg); }
.oomf-tile--brand { background: var(--ink); color: var(--bg); }
.oomf-tile--brand .oomf-tile__o { color: var(--brand); }
.oomf-tile--coral { --tile-accent: var(--d-coral); }
.oomf-tile--blue { --tile-accent: var(--d-blue); }
.oomf-tile--emerald { --tile-accent: var(--d-emerald); }
.oomf-tile--amber { --tile-accent: var(--d-amber); }
.oomf-tile--violet { --tile-accent: var(--d-violet); }
.oomf-tile--teal { --tile-accent: var(--d-teal); }
.oomf-tile--cyan { --tile-accent: var(--d-cyan); }
.oomf-tile--rose { --tile-accent: var(--d-rose); }
.oomf-tile--slate { --tile-accent: var(--d-slate); }
.oomf-tile--identity { --tile-accent: var(--identity-accent); }

/* ---- approved identity surfaces ----
   Promote a confirmed accent into --brand on the product/app scope, then
   point --identity-accent at --brand when identity surfaces should match.
   Destructive actions, status, and lifecycle stay on semantic colors. */
.oomf-identity-mark {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-width: 0;
  color: var(--identity-accent-600);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.2;
  text-transform: uppercase;
}
.oomf-identity-mark::before {
  content: "";
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  border-radius: var(--radius-xs);
  background: var(--identity-accent);
}
.oomf-identity-surface {
  border-color: color-mix(in srgb, var(--identity-accent) 26%, var(--line));
  background:
    linear-gradient(90deg, var(--identity-accent-100), transparent 38%),
    var(--surface);
}
.oomf-identity-strip {
  border-left: var(--space-1) solid var(--identity-accent);
}
.oomf-chart-series--identity,
.oomf-chart-bar--identity {
  background: var(--identity-accent);
}
.oomf-chart-line--identity {
  color: var(--identity-accent);
  stroke: currentColor;
}

/* ---- card ---- */
.oomf-card {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--e1);
  padding: var(--pad-card);
}
.oomf-card--flush { padding: 0; overflow: hidden; }
.oomf-card--interactive {
  transition: box-shadow var(--dur-std) var(--ease),
    border-color var(--dur-std) var(--ease);
}
.oomf-card--interactive:hover { box-shadow: var(--e2); }

/* ---- card grid ---- */
.oomf-cardgrid {
  --oomf-cardgrid-min: var(--card-min);
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--oomf-cardgrid-min)), 1fr));
  gap: var(--card-gap);
  min-width: 0;
}

/* ---- stat ---- */
.oomf-stat {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.oomf-stat__value {
  --stat-accent: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  line-height: 1.1;
  color: var(--stat-accent);
  overflow-wrap: anywhere;
}
.oomf-stat__label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.oomf-stat__helper {
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-muted);
  text-wrap: pretty;
}

/* ---- section header (absorbs ai ScreenHeader: back + badge) ---- */
.oomf-section {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--card-gap);
  min-width: 0;
  flex-wrap: wrap;
}
.oomf-section__text { min-width: 0; }
.oomf-section__kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 10px;
}
.oomf-section__back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  min-height: var(--control-hit);
  margin-bottom: 10px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink-muted);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}
.oomf-section__back svg { transform: rotate(180deg); }
.oomf-section__titlerow {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.oomf-section__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
  hyphens: manual;
  overflow-wrap: normal;
  text-wrap: balance;
  word-break: normal;
}
.oomf-section--lg .oomf-section__title { font-size: 40px; letter-spacing: 0; line-height: 1.05; }
.oomf-section--md .oomf-section__title { font-size: 32px; letter-spacing: 0; line-height: 1.1; }
.oomf-section--sm .oomf-section__title { font-size: 21px; letter-spacing: 0; line-height: 1.2; }
.oomf-section__desc {
  margin: 10px 0 0;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink-muted);
  max-width: 720px;
  text-wrap: balance;
}
.oomf-section--sm .oomf-section__desc { margin-top: 6px; font-size: 13.5px; }
.oomf-section__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  flex: none;
}

/* ---- search input ---- */
.oomf-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color var(--dur-std) var(--ease),
    box-shadow var(--dur-std) var(--ease);
}
.oomf-search:focus-within {
  border-color: var(--support);
  box-shadow: 0 0 0 3px var(--support-100);
}
.oomf-search__icon {
  flex: none;
  width: 15px;
  height: 15px;
  color: var(--ink-faint);
}
.oomf-search__input {
  flex: 1 1 auto;
  min-width: 0;
  border: none;
  outline: none;
  padding: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 13.5px;
  line-height: 1.4;
}
.oomf-search__input::placeholder { color: var(--ink-faint); }

/* ---- filter chips (segmented) ---- */
.oomf-filterchips {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: var(--radius-lg);
  background: var(--subtle);
}
.oomf-filterchip {
  border: none;
  padding: 6px 13px;
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink-muted);
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.3;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--dur-std) var(--ease),
    color var(--dur-std) var(--ease);
}
.oomf-filterchip:hover { color: var(--ink); }
.oomf-filterchip--active {
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
  box-shadow: var(--e1);
}

/* ---- app header ---- */
.oomf-appheader {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  display: flex;
  align-items: center;
  gap: var(--card-gap);
  min-height: var(--shell-topbar);
  padding-inline: var(--page-x);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.oomf-appheader__brand {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: none;
  text-decoration: none;
  color: inherit;
}
.oomf-appheader__copy {
  display: grid;
  gap: 2px;
  line-height: 1.05;
}
.oomf-appheader__copy .oomf-wordmark { font-size: 15px; }
.oomf-appheader__app {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.oomf-appheader__nav {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}
.oomf-appheader__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex: none;
}

/* ---- app shell ---- */
.oomf-appshell {
  min-height: 100%;
}
.oomf-appshell__body {
  display: grid;
  min-height: calc(100vh - var(--shell-topbar));
  min-width: 0;
}
.oomf-appshell--rail .oomf-appshell__body,
.oomf-appshell--both .oomf-appshell__body {
  grid-template-columns: var(--shell-sidebar) minmax(0, 1fr);
}
.oomf-appshell--rail .oomf-appshell__body {
  min-height: 100vh;
}
.oomf-appshell__rail {
  min-width: 0;
  border-right: 1px solid var(--line);
  background: var(--surface);
  padding: var(--space-3);
  overflow: auto;
}
.oomf-appshell__main {
  min-width: 0;
  padding: var(--block-y) var(--page-x);
}
@media (max-width: 860px) {
  .oomf-appshell--rail .oomf-appshell__body,
  .oomf-appshell--both .oomf-appshell__body {
    grid-template-columns: 1fr;
  }
  .oomf-appshell__rail {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
}

/* ---- toolbar ---- */
.oomf-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
  min-width: 0;
}
.oomf-toolbar__label {
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.oomf-toolbar__filters,
.oomf-toolbar__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
  min-width: 0;
}
.oomf-toolbar__actions {
  margin-left: auto;
}

/* ---- preference toggles ----
   Single toggle button per preference: one click switches to the other mode,
   and the icon shows the mode a click switches to. */
.oomf-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--control-hit);
  width: var(--control-hit);
  min-width: var(--control-hit);
  padding: 0;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink-muted);
  font: inherit;
  cursor: pointer;
}
.oomf-toggle:hover {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
}
.oomf-toggle svg {
  width: 15px;
  height: 15px;
}

/* ---- empty state ---- */
.oomf-empty {
  display: grid;
  justify-items: center;
  gap: var(--space-2);
  min-width: 0;
  padding: calc(var(--section-y) * .75) var(--pad-card);
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-muted);
  text-align: center;
}
.oomf-empty__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  background: var(--brand-100);
  color: var(--brand-600);
}
.oomf-empty h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.15;
}
.oomf-empty p {
  margin: 0;
  max-width: var(--readable);
  color: var(--ink-muted);
  line-height: 1.55;
  text-wrap: pretty;
}
.oomf-empty__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-2);
}

/* ---- inline status + banners ---- */
.oomf-inline-status {
  display: inline-flex;
  vertical-align: middle;
}
.oomf-banner {
  --banner-color: var(--info);
  --banner-bg: var(--info-bg);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: var(--space-3);
  min-width: 0;
  padding: var(--space-3);
  border: 1px solid color-mix(in srgb, var(--banner-color) 24%, var(--line));
  border-radius: var(--radius-lg);
  background: var(--banner-bg);
  color: var(--ink);
}
.oomf-banner--ok { --banner-color: var(--ok); --banner-bg: var(--ok-bg); }
.oomf-banner--warn { --banner-color: var(--warn); --banner-bg: var(--warn-bg); }
.oomf-banner--err { --banner-color: var(--err); --banner-bg: var(--err-bg); }
.oomf-banner--info { --banner-color: var(--info); --banner-bg: var(--info-bg); }
.oomf-banner--neutral {
  --banner-color: var(--ink-faint);
  --banner-bg: var(--subtle);
}
.oomf-banner__dot {
  width: 9px;
  height: 9px;
  margin-top: 6px;
  border-radius: var(--radius-pill);
  background: var(--banner-color);
}
.oomf-banner__copy {
  min-width: 0;
}
.oomf-banner__copy strong {
  display: block;
  font-weight: 800;
}
.oomf-banner__copy p {
  margin: 3px 0 0;
  color: var(--ink-muted);
  line-height: 1.45;
  text-wrap: balance;
}
.oomf-banner__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: var(--space-2);
}
@media (max-width: 620px) {
  .oomf-banner {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .oomf-banner__actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

/* ---- side nav ---- */
.oomf-navgroup { margin-bottom: 14px; }
.oomf-navlabel {
  margin: 14px 0 6px;
  padding-left: 10px;
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.oomf-navitem {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: var(--control-hit);
  margin-bottom: 2px;
  padding: 9px 11px;
  border-radius: var(--radius);
  color: var(--ink-muted);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background var(--dur-std) var(--ease),
    color var(--dur-std) var(--ease);
}
.oomf-navitem:hover, .oomf-navitem--active {
  background: var(--brand-100);
  color: var(--brand-600);
}
.oomf-navitem--active { font-weight: 700; }
.oomf-navitem--identity:hover,
.oomf-navitem--identity.oomf-navitem--active {
  background: var(--identity-accent-100);
  color: var(--identity-accent-600);
}
.oomf-navitem--identity.oomf-navitem--active {
  box-shadow: inset var(--space-1) 0 0 var(--identity-accent);
}
.oomf-navitem--disabled { cursor: default; opacity: .48; }
.oomf-navitem--disabled:hover {
  background: transparent;
  color: var(--ink-muted);
}
.oomf-navitem--disabled svg:last-child {
  width: 13px;
  height: 13px;
  margin-left: auto;
  color: var(--ink-faint);
}

/* ---- next action bar ---- */
.oomf-nextaction {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--brand-100);
  border-radius: var(--radius);
  background: var(--brand-100);
}
.oomf-nextaction__label {
  display: block;
  color: var(--brand-600);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.oomf-nextaction__text {
  margin: 3px 0 0;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.4;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}

/* ---- lifecycle: vertical progress list ---- */
.oomf-lifelist {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.oomf-lifelist li {
  position: relative;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  min-width: 0;
  padding: 0 0 14px;
}
.oomf-lifelist li::before {
  position: absolute;
  top: 30px;
  bottom: 0;
  left: 14px;
  width: 2px;
  background: var(--line);
  content: "";
}
.oomf-lifelist li:last-child { padding-bottom: 0; }
.oomf-lifelist li:last-child::before { content: none; }
.oomf-lifelist__marker {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--subtle);
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
}
.oomf-lifelist strong {
  display: block;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.25;
}
.oomf-lifelist small {
  display: block;
  margin-top: 2px;
  color: var(--ink-muted);
  font-size: 12px;
  line-height: 1.3;
}
.oomf-lifelist .is-done .oomf-lifelist__marker {
  border-color: var(--brand);
  background: var(--brand);
  color: var(--on-brand);
}
.oomf-lifelist .is-done::before { background: var(--brand); }
.oomf-lifelist .is-current .oomf-lifelist__marker {
  border: 2px solid var(--brand);
  background: var(--surface);
  color: var(--brand);
}
.oomf-lifelist .is-blocked .oomf-lifelist__marker {
  border-color: var(--err);
  background: var(--err-bg);
  color: var(--err);
}

/* ---- lifecycle: horizontal spine ---- */
.oomf-spine {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  align-self: center;
  overflow: hidden;
}
.oomf-spine__step {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 34px 1fr;
  grid-template-rows: auto auto auto;
  align-items: center;
  min-width: 0;
  text-align: center;
}
.oomf-spine__line { height: 2px; background: var(--line); }
.oomf-spine__step:first-child .oomf-spine__line--left,
.oomf-spine__step:last-child .oomf-spine__line--right { background: transparent; }
.oomf-spine__circle {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--subtle);
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
}
.oomf-spine__step strong {
  grid-column: 1 / -1;
  margin-top: 9px;
  color: var(--ink);
  font-size: 13px;
}
.oomf-spine__step small {
  grid-column: 1 / -1;
  margin-top: 2px;
  color: var(--ink-muted);
  font-size: 12px;
  line-height: 1.25;
}
.oomf-spine__step.is-done .oomf-spine__circle {
  border-color: var(--brand);
  background: var(--brand);
  color: var(--on-brand);
}
.oomf-spine__step.is-done .oomf-spine__line--left,
.oomf-spine__step.is-done .oomf-spine__line--right,
.oomf-spine__step.is-current .oomf-spine__line--left,
.oomf-spine__step.is-blocked .oomf-spine__line--left {
  background: var(--brand);
}
.oomf-spine__step.is-current .oomf-spine__circle {
  border: 2px solid var(--brand);
  background: var(--surface);
  color: var(--brand);
}
.oomf-spine__step.is-blocked .oomf-spine__circle {
  border-color: var(--err);
  background: var(--err-bg);
  color: var(--err);
}

/* ---- lifecycle: compact dots ---- */
.oomf-dots {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  margin: 10px 0;
}
.oomf-dots__stage {
  display: flex;
  align-items: center;
  min-width: 0;
}
.oomf-dots__stage::after {
  height: 2px;
  flex: 1;
  background: var(--line);
  content: "";
}
.oomf-dots__stage:last-child::after { content: none; }
.oomf-dots__stage > span {
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--subtle);
}
.oomf-dots__stage.is-done > span,
.oomf-dots__stage.is-done::after {
  border-color: var(--brand);
  background: var(--brand);
}
.oomf-dots__stage.is-current > span {
  border: 2px solid var(--brand);
  background: var(--surface);
}
.oomf-dots__stage.is-blocked > span {
  border-color: var(--err);
  background: var(--err);
}

/* ---- content section / list / diff ---- */
.oomf-content { margin-bottom: 16px; }
.oomf-content h3 {
  margin: 0 0 8px;
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.oomf-content p {
  margin: 0;
  color: var(--ink-muted);
  line-height: 1.5;
  text-wrap: pretty;
}
.oomf-list { display: grid; gap: 8px; }
.oomf-list__item {
  display: flex;
  gap: 9px;
  color: var(--ink-muted);
  line-height: 1.45;
}
.oomf-list__item > span {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  margin-top: 7px;
  border-radius: var(--radius-pill);
  background: var(--ink-faint);
}
.oomf-list__item--green > span { background: var(--ok); }
.oomf-list__item--indigo > span { background: var(--brand); }
.oomf-list__item p {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}
.oomf-diff { display: grid; gap: 6px; }
.oomf-diff > span {
  color: var(--ink-faint);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}
.oomf-diff p {
  margin: 0;
  padding: 7px 9px;
  border-left: 3px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-muted);
  overflow-wrap: anywhere;
  text-wrap: pretty;
}
.oomf-diff--added p { border-left-color: var(--ok); }
.oomf-diff--removed p { border-left-color: var(--err); }
.oomf-diff small { color: var(--ink-faint); }

/* ---- setting row ---- */
.oomf-setting {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 58px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-muted);
}
.oomf-setting strong { display: block; font-weight: 800; }
.oomf-setting span {
  display: block;
  margin: 4px 0 0;
  color: var(--ink-muted);
  line-height: 1.45;
  text-wrap: pretty;
}

/* ---- avatar ---- */
.oomf-avatar {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: var(--surface);
  font-size: 12px;
  font-weight: 800;
}
.oomf-avatar--sm { width: 24px; height: 24px; flex-basis: 24px; font-size: 10px; }
.oomf-avatar--blue, .oomf-avatar--indigo { background: var(--support); }
.oomf-avatar--green { background: var(--ok); }
.oomf-avatar--purple { background: var(--accent); }
.oomf-avatar--neutral { background: var(--ink); }
.oomf-avatar--red { background: var(--err); }
.oomf-avatar--amber { background: var(--warn); }
.oomf-avatar--orange { background: var(--brand); }
.oomf-avatars { display: inline-flex; }
.oomf-avatars .oomf-avatar { border: 2px solid var(--surface); }
.oomf-avatars .oomf-avatar + .oomf-avatar { margin-left: -7px; }

/* ============================================================
   Documented structural utilities (kept from oomf-ai, renamed).
   Use these for layout glue; everything else comes from tokens.
   ============================================================ */
.oomf-panel {
  flex: 0 0 auto;
  max-width: 100%;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--e1);
}
.oomf-panel h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  hyphens: manual;
  overflow-wrap: normal;
  text-wrap: balance;
  word-break: normal;
}
.oomf-heading-cascade {
  display: inline-grid;
  gap: 0.03em;
  max-width: min(100%, var(--readable));
  letter-spacing: 0;
  text-wrap: balance;
}
.oomf-heading-cascade__line {
  display: block;
  font-weight: 600;
}
.oomf-heading-cascade__line:nth-child(2) {
  font-weight: 700;
}
.oomf-heading-cascade__line:nth-child(n + 3) {
  font-weight: 800;
}
@media (max-width: 700px) {
  .oomf-section--lg .oomf-section__title { font-size: 32px; line-height: 1.08; }
  .oomf-section--md .oomf-section__title { font-size: 26px; line-height: 1.12; }
  .oomf-section--sm .oomf-section__title { font-size: 20px; line-height: 1.2; }
  .oomf-heading-cascade { gap: 0.02em; }
}
.oomf-kicker {
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.oomf-kicker span { color: var(--ink-muted); }
.oomf-task-key {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-muted);
}
.oomf-version-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 24px;
  padding: 2px 8px;
  border: 1px solid var(--support-100);
  border-radius: var(--radius);
  background: var(--support-100);
  color: var(--support);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
}
