
@font-face { font-family: "Roboto"; src: url("/app/fonts/roboto-3a2403810c.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Roboto Mono"; src: url("/app/fonts/roboto-mono-3a2403810c.woff2") format("woff2"); font-weight: 100 700; font-style: normal; font-display: swap; }

* {
  scrollbar-width: thin;
  scrollbar-color: var(--muted) var(--surface-2);
}
/* Older Safari versions use the pseudo-elements instead of the standard properties. */
@supports not (scrollbar-color: auto) {
  ::-webkit-scrollbar { width: 10px; height: 10px; }
  ::-webkit-scrollbar-track, ::-webkit-scrollbar-corner { background: var(--surface-2); }
  ::-webkit-scrollbar-thumb {
    background: var(--muted); border: 2px solid var(--surface-2); border-radius: 999px;
  }
  ::-webkit-scrollbar-thumb:hover { background: var(--ink); }
}
@media (forced-colors: active) {
  * { scrollbar-color: auto; scrollbar-width: auto; }
  ::-webkit-scrollbar, ::-webkit-scrollbar-track, ::-webkit-scrollbar-corner,
  ::-webkit-scrollbar-thumb, ::-webkit-scrollbar-thumb:hover { all: revert; }
}

.collection-pagination { display:flex; align-items:center; justify-content:space-between; gap:12px; padding-top:16px; font-size:12.5px; color:var(--muted); }
.collection-pagination[hidden] { display:none; }
@media(max-width:860px) { .collection-pagination { flex-direction:column; align-items:flex-start; gap:8px; } .dashboard-app .collection-pagination button, .dashboard-app .collection-pagination a { min-width:44px; min-height:44px; } }
.collection-pagination > div { display:flex; flex-wrap:wrap; gap:5px; }
.collection-pagination button, .collection-pagination a { text-decoration:none; display:inline-flex; align-items:center; justify-content:center; width:34px; height:34px; border-radius:9px; border:1px solid var(--line-2); background:var(--surface); color:var(--ink); cursor:pointer; font:inherit; }
.collection-pagination button:disabled { opacity:.45; cursor:default; }
.collection-pagination [aria-current="page"] { background:var(--sel); border-color:var(--brand); color:var(--brand-ink,var(--brand)); }
.collection-page-previous svg { transform:rotate(180deg); }

* { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 15px/1.55 "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif; }
/* A link keeps a faint underline (its cue is never colour alone) that darkens on hover. */
a { color: var(--brand); text-decoration-color: color-mix(in srgb, currentColor 30%, transparent); text-underline-offset: 3px; }
a:hover { color: var(--brand-ink); text-decoration-color: currentColor; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.skip { position: absolute; left: 1rem; top: 0; transform: translateY(-120%); background: var(--surface); padding: .5rem 1rem; z-index: 10; }
.skip:focus { transform: none; }
/* Visually hidden, still read aloud. Clipped to nothing so it can never widen the page. */
.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
code, pre, .mono { font-family: "Roboto Mono", ui-monospace, Menlo, Consolas, monospace; }
h1 { font-size: 1.65rem; line-height: 1.25; letter-spacing: -.02em; margin: 0 0 .35rem; }
h2 { font-size: 1.1rem; margin: 0 0 .75rem; }
h3 { font-size: 1rem; margin: 0 0 .5rem; }
p { margin: 0 0 .75rem; }
.muted { color: var(--muted); }
.ink { color: var(--ink); }
.small { font-size: .82rem; }
.quiet { color: var(--muted); font-size: .92rem; margin: -.5rem .25rem 1.25rem; }
.quiet-link { color: var(--muted); font-size: .85rem; }
.cell-line { display: block; }
.prewrap { white-space: pre-wrap; overflow-wrap: anywhere; }
.blk { margin: .5rem 0 .9rem; }
.blk-h { margin: 0 0 .15rem; font-size: .95rem; }
.blk-lead { margin: 0 0 .4rem; color: var(--muted); }
.blk-check { margin: 0 0 .6rem; padding-left: .6rem; border-left: 2px solid var(--line); }
.blk-check .chip { color: var(--ink); white-space: normal; overflow-wrap: anywhere; }
.blk-check p { margin: .25rem 0; }
.blk-check ul { margin: .25rem 0; padding-left: 1.2rem; }
code.path { font-size: .85em; overflow-wrap: anywhere; word-break: break-all; }
pre.raw { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 18rem; overflow: auto; padding: .6rem .75rem; border-radius: 8px; background: var(--log-bg); color: var(--log-ink); font-size: .8rem; }
.top { background: var(--surface); border-bottom: 1px solid var(--line); }
.top-inner { max-width: 76rem; margin: 0 auto; padding: .6rem 1rem; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.mark { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; color: var(--ink); text-decoration: none; }
.mark svg { width: 36px; height: 36px; flex: none; }
.tabs { display: flex; gap: .25rem; flex-wrap: wrap; flex: 1 1 auto; min-width: 0; padding: .25rem 0; }
.tabs a { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; text-decoration: none; color: var(--ink); padding: .45rem .9rem; border-radius: 999px; font-weight: 500; }
.tabs .tab-ico { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.tabs a:hover { background: var(--surface-2); color: var(--ink); }
.tabs a[aria-current="page"] { background: var(--tab-current-bg); color: var(--tab-current-ink); box-shadow: inset 0 0 0 1px var(--tab-current-ring); }
.nav-attention { display: inline-block; width: 7px; height: 7px; margin-left: .4em; border-radius: 50%; background: var(--attn-dot); vertical-align: middle; }
.badge { display: inline-block; min-width: 1.4em; padding: 0 .4em; margin-left: .35em; border-radius: 999px; background: var(--attn-dot); color: var(--on-amber); font-size: .8em; text-align: center; }
.menus { display: flex; gap: .5rem; align-items: center; }
.usage-breakdown { margin-top: .35rem; font-size: .9rem; }
.usage-breakdown > summary { cursor: pointer; color: var(--muted); }
.usage-split { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .2rem 1rem; margin: .4rem 0 0; }
.usage-split dt { color: var(--muted); overflow-wrap: anywhere; }
.usage-split dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
details.menu { position: relative; }
/* A button shape even closed, so the chevron is not the only sign it opens something; the border and
   background strengthen on hover, focus and while open. */
details.menu > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: .35rem; padding: .35rem .75rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--muted); font-size: .9rem; }
details.menu > summary .menu-label { text-align: right; }
details.menu > summary:hover { border-color: var(--brand); color: var(--ink); background: var(--surface-2); }
details.menu > summary:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
details.menu[open] > summary { border-color: var(--line-2); color: var(--ink); background: var(--surface-2); }
details.menu > summary::-webkit-details-marker { display: none; }
details.menu > summary .small { display: block; font-size: .78rem; color: var(--muted); }
/* The chevron: the one cue, besides the border, that this plain text opens a dropdown; it turns up
   while the dropdown is open. */
details.menu > summary .chev { width: 14px; height: 14px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
details.menu[open] > summary .chev { transform: rotate(180deg); }
.menu-body { position: absolute; right: 0; top: calc(100% + .35rem); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: .5rem; min-width: 14rem; z-index: 5; }
.menu-body a, .menu-body button { display: block; width: 100%; text-align: left; padding: .55rem .7rem; border-radius: 8px; line-height: 1.3; }
.menu-body a:hover, .menu-body button:hover { background: var(--surface-2); }
.menu-body ul { list-style: none; margin: 0; padding: 0; }
/* The repository switcher: the current one in bold with a check mark, mirroring the theme choice's. */
.menu-body ul a[aria-current="page"] { font-weight: 700; color: var(--ink); }
.menu-body ul a[aria-current="page"]::after { content: "\2713"; content: "\2713" / ""; float: right; color: var(--brand); }
/* The theme choice: a menu item per theme, the current one in bold with a check mark. */
.theme-choice { margin: .35rem 0; padding: .35rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.theme-choice fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.theme-choice legend { padding: 0 .6rem .15rem; font-size: .78rem; color: var(--muted); }
.menu-body .theme-choice button { font: inherit; color: var(--ink); background: none; border: 0; cursor: pointer; }
.menu-body .theme-choice button:hover { background: var(--surface-2); }
.menu-body .theme-choice button[aria-pressed="true"] { font-weight: 700; }
.menu-body .theme-choice button[aria-pressed="true"]::after { content: "\2713"; content: "\2713" / ""; float: right; color: var(--brand); }
main.wrap { max-width: 76rem; margin: 0 auto; padding: 1.5rem 1rem 4rem; }
.lede { color: var(--muted); font-size: 1.02rem; margin-bottom: 1.25rem; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 1.15rem 1.25rem; margin-bottom: 1.25rem; }
.card.danger { background: var(--crit-bg); border-color: var(--crit-line); }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: 1rem; margin-bottom: 1.25rem; }
.tile { display: flex; flex-direction: column; gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; }
.tile .label { color: var(--muted); font-size: .87rem; }
.tile .num { font-size: 1.9rem; line-height: 1.15; font-weight: 700; letter-spacing: -.02em; display: block; }
.tile.tone-brand .num { color: var(--brand); }
.tile.tone-amber .num { color: var(--attn); }
.tile.tone-green .num { color: var(--ok); }
.pill { display: inline-block; padding: .1rem .6rem; border-radius: 999px; font-size: .8rem; font-weight: 600; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); white-space: nowrap; }
.pill.amber { background: var(--attn-bg); border-color: var(--attn-line); color: var(--attn); }
.pill.green { background: var(--ok-bg); border-color: transparent; color: var(--ok); }
.pill.red { background: var(--crit-bg); border-color: var(--crit-line); color: var(--crit); }
.pill.brand { background: transparent; border-color: var(--brand); color: var(--brand); }
/* Subtask progress: a ring filled by the share done and "3 / 5", in a quiet pill; green when all are done. */
.chip { display: inline-flex; align-items: center; gap: .3rem; vertical-align: middle; padding: .1rem .55rem .1rem .4rem; border-radius: 999px; border: 1px solid var(--line); font-size: .8rem; font-weight: 600; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.chip .ring { display: block; flex: none; width: 14px; height: 14px; }
.chip .ring circle { fill: none; stroke-width: 2.5; }
.chip .ring-trk { stroke: var(--line); }
.chip .ring-fill { stroke: var(--brand); }
.chip.complete { color: var(--ok); }
.chip.complete .ring-fill { stroke: var(--ok); }
/* The phase rail: dots on a line, the label under each. */
.rail { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); list-style: none; margin: .5rem 0 .75rem; padding: 0; max-width: 30rem; font-size: .75rem; line-height: 1.3; }
.rail.rail-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 22.5rem; }
.rail.rail-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 15rem; }
.rail li { position: relative; display: flex; flex-direction: column; align-items: center; gap: .2rem; min-width: 0; color: var(--muted); text-align: center; }
.rail li + li::before { content: ""; position: absolute; top: 9px; left: calc(-50% + 14px); right: calc(50% + 14px); height: 3px; border-radius: 3px; background: var(--line); }
.rail li.done + li::before { background: var(--ok); }
.rail .dot { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line-2); background: var(--surface); font-size: 11px; font-weight: 800; line-height: 1; }
.rail .lbl { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rail .sub { display: block; max-width: 100%; line-height: 1.15; overflow-wrap: anywhere; }
.rail li.done .dot { background: var(--ok); border-color: var(--ok); color: var(--on-green); }
.rail li.done .lbl { color: var(--ink); font-weight: 500; }
/* Where the ticket is now: brand blue with a halo that breathes while the pipeline works. */
.rail li.current .dot { background: var(--brand); border-color: var(--brand); color: var(--on-brand); box-shadow: 0 0 0 5px var(--brand-halo); }
.rail li.current .lbl { color: var(--ink); font-weight: 700; }
/* Needs a person, or a warning (including a setup or budget stop): amber with a "!", dark enough on
   the amber fill to hold the 4.5:1 text contrast this stylesheet targets; its halo holds still, so it
   never reads as "running". */
.rail li.waiting .dot { background: var(--attn-dot); border-color: var(--attn-dot); color: var(--on-amber); box-shadow: 0 0 0 5px var(--amber-halo); }
.rail li.waiting .lbl, .rail li.waiting .sub { color: var(--attn); font-weight: 700; }
.rail li.queued .dot { border-style: dashed; }
.rail li.queued .lbl { color: var(--ink); font-weight: 600; }
.rail li.stopped .dot { background: var(--attn-dot); border-color: var(--attn-dot); color: var(--on-amber); box-shadow: 0 0 0 5px var(--amber-halo); }
.rail li.stopped .lbl { color: var(--attn); font-weight: 700; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; vertical-align: middle; font: inherit; font-weight: 600; padding: .5rem 1rem; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; text-decoration: none; }
.btn > svg { display: block; flex: none; }
.btn:hover { border-color: var(--brand); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.btn.primary:hover { background: var(--brand-ink); border-color: var(--brand-ink); color: var(--on-brand); }
.btn.danger { color: var(--crit); border-color: var(--crit-line); }
.btn.small { padding: .3rem .75rem; font-size: .88rem; border-radius: 10px; }
/* The design's row action: a small outlined pill in the brand colour. */
.btn.outline { border-radius: 999px; border-color: var(--line-2); background: var(--surface); color: var(--brand); font-weight: 500; }
.btn.outline:hover { border-color: var(--brand); color: var(--brand-ink); }
.btn.pill { border-radius: 999px; }
.btn.outline.small, .btn.pill.small { padding: .32rem .9rem; font-size: .87rem; border-radius: 999px; }
/* A status tile: a tinted rounded square holding a glyph, before a row or a page header. */
.stile { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); color: var(--muted); font-weight: 800; font-size: 14px; line-height: 1; }
.stile svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.stile.lg { width: 40px; height: 40px; border-radius: 11px; }
.stile.amber { border-color: var(--attn-line); background: var(--attn-bg); color: var(--attn-dot); }
.stile.red { border-color: var(--crit-line); background: var(--crit-bg); color: var(--crit); }
.stile.brand { border-color: var(--info-line); background: var(--sel); color: var(--brand); }
.stile.green { border-color: var(--ok-line); background: var(--ok-bg); color: var(--ok); }
.btn[disabled], .btn[disabled]:hover { background: var(--surface-2); border-color: var(--line); border-style: dashed; color: var(--muted); cursor: not-allowed; }
summary.btn { list-style: none; }
summary.btn::-webkit-details-marker { display: none; }
.linkish { background: none; border: 0; font: inherit; color: var(--brand); cursor: pointer; padding: 0; }
label { font-weight: 600; display: block; margin-bottom: .25rem; }
input[type=text], input[type=email], input[type=search], input[type=password], input[type=number], input[type=datetime-local], select, textarea { font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--field-line); border-radius: 12px; padding: .5rem .75rem; width: 100%; max-width: 32rem; }
textarea { min-height: 6rem; max-width: 100%; }
textarea[rows] { min-height: 0; }
/* Every dropdown is drawn by the page, not the browser: a native select ignores most of its styling
   (Safari keeps its own rounded box and arrow), so dropdowns looked unlike the buttons beside them.
   The chevron is a theme token so it follows light and dark. */
select { appearance: none; -webkit-appearance: none; background-image: var(--select-chevron); background-repeat: no-repeat; background-position: right .75rem center; background-size: 12px 12px; padding-right: 2.1rem; cursor: pointer; line-height: 1.2; }
select:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }
textarea[disabled], input[disabled], select[disabled] { background: var(--surface-2); color: var(--muted); border-style: dashed; cursor: not-allowed; }
[aria-invalid="true"] { border-color: var(--crit); border-width: 2px; }
.field-error { color: var(--crit); font-weight: 600; font-size: .9rem; margin: .35rem 0 0; }
.check { display: flex; gap: .5rem; align-items: center; font-weight: 400; margin: .5rem 0; }
.field { margin-bottom: 1rem; }
.hint { color: var(--muted); font-size: .88rem; margin: .25rem 0 0; }
.notice { border-radius: 14px; padding: .75rem 1rem; margin-bottom: 1.25rem; border: 1px solid var(--line); background: var(--surface-2); }
.notice.ok { border-color: var(--ok); }
.notice.err { background: var(--crit-bg); border-color: var(--crit-line); color: var(--crit); }
.notice.warn { background: var(--attn-bg); border-color: var(--attn-line); color: var(--attn); }
.notice ul { margin: .25rem 0 .5rem; padding-left: 1.2rem; }
.notice p { margin: 0 0 .4rem; }
.notice p:last-child { margin-bottom: 0; }
.notice .hold-test { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; margin-top: .5rem; }
.seg { display: flex; gap: .25rem; flex-wrap: wrap; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: .25rem; margin-bottom: 1rem; width: fit-content; max-width: 100%; }
.seg a { text-decoration: none; color: var(--muted); padding: .35rem .8rem; border-radius: 999px; font-weight: 600; }
.seg a[aria-current="true"], .seg a[aria-current="page"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow), inset 0 0 0 1px var(--seg-ring); }
.seg a .count { display: inline-block; min-width: 1.5em; padding: 0 .45em; margin-left: .2em; border-radius: 999px; background: var(--line); color: var(--muted); font-size: .8em; font-weight: 600; text-align: center; font-variant-numeric: tabular-nums; }
.seg a .count.zero { opacity: .6; }
.seg a[aria-current="true"] .count, .seg a[aria-current="page"] .count { background: var(--surface-2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.rows { list-style: none; margin: 0; padding: 0; }
.rows > li { border-top: 1px solid var(--line); padding: .85rem 0; }
.rows > li:first-child { border-top: 0; }
/* Key, title and pill flow as one line of text, so a long title wraps under its own key. */
.row-meta { display: flex; gap: .35rem .75rem; flex-wrap: wrap; align-items: center; color: var(--muted); font-size: .88rem; }
/* A needs-you summary: at most three lines, so the question it asks is never cut to one. */
.origin { margin: .15rem 0 0; color: var(--muted); font-size: .85rem; font-style: italic; }
.sent { margin: .3rem 0; color: var(--brand); font-size: .9rem; font-weight: 600; }
blockquote.note { margin: .4rem 0; padding: .35rem .75rem; border-left: 3px solid var(--line); color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; }
.notice > p { margin: 0; }
.board { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
/* Each column scrolls on its own under a heading that stays put, so a long column never pushes the
   others a page-length down (on the live tenant a column ran to 13,000-43,000px). */
.board section { position: relative; min-width: 0; background: var(--surface-2); border-radius: 18px; padding: 0 .75rem .75rem; max-height: max(28rem, calc(100vh - 14rem)); max-height: max(28rem, calc(100dvh - 14rem)); overflow-y: auto; overscroll-behavior-y: contain; }
.board section > h2 { position: sticky; top: 0; z-index: 1; margin: 0 -.75rem .5rem; padding: .75rem .75rem .5rem; background: var(--surface-2); }
/* Narrower than four comfortable columns: they stay side by side in one row that scrolls sideways,
   a column at a time, instead of a 2x2 grid that put Waiting and Shipped under the first two. */
@media (max-width: 1100px) {
  .board { display: flex; gap: .75rem; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; padding-bottom: .5rem; }
  .board section { flex: 0 0 max(14.5rem, calc((100% - 2.25rem) / 4)); scroll-snap-align: start; }
}
.board .card { padding: .75rem .85rem; margin-bottom: .75rem; }
table.data { width: 100%; border-collapse: collapse; }
table.data th, table.data td { text-align: left; padding: .55rem .5rem; border-top: 1px solid var(--line); vertical-align: top; }
table.data th { color: var(--muted); font-size: .85rem; font-weight: 600; border-top: 0; }
table.data td p { margin: 0; }
@media (max-width: 640px) {
  table.data thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); }
  table.data, table.data tbody, table.data tr, table.data td { display: block; width: 100%; }
  table.data tr { border-top: 1px solid var(--line); padding: .5rem 0; }
  table.data td { border: 0; padding: .15rem 0; }
  table.data td[data-label]::before { content: attr(data-label) ": "; color: var(--muted); font-weight: 600; }
}
/* A narrow column: each label above its value, so a long label never squeezes the value. */
.step-log { margin: .35rem 0 0; }
.step-log > summary { font-size: .88rem; color: var(--brand); font-weight: 600; }
.step-log .log { max-height: 40vh; }
.log { background: var(--log-bg); color: var(--log-ink); border-radius: 14px; padding: .85rem 1rem; max-height: 55vh; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12.5px; line-height: 1.5; margin: .5rem 0; }
.actions { display: grid; gap: 1rem; margin-top: 1rem; }
.card details { margin: .25rem 0 .75rem; }
details > summary { cursor: pointer; }
.opts { display: grid; gap: .75rem; margin-top: .75rem; }
/* The secondary actions under the primary: a rule, a plain heading, then each option one click away. */
.actions > .opts { margin-top: 0; padding-top: .75rem; border-top: 1px solid var(--line); }
.opts-h { margin: 0; font-size: .85rem; font-weight: 600; color: var(--muted); }
.card .opt { margin: 0; }
.opt .hint { margin-top: .25rem; }
details.opt > form > .hint:first-of-type { margin: 0 0 .6rem; }
details.opt > form { margin-top: .6rem; padding: .75rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
/* An option's title opens its form: a plain heading with the disclosure marker, not a button. */
details.opt > summary.opt-title { font-weight: 600; color: var(--ink); padding: .2rem 0; }
details.opt > summary.opt-title.danger { color: var(--crit); }
details.opt > summary.opt-title > svg { display: inline-block; vertical-align: -.15em; margin-right: .4em; }
/* Status icons (inline SVG): shape carries the state, a token colours it, so both themes hold. */
.ico { width: 16px; height: 16px; flex: none; margin-top: .2rem; }
.tone-green { color: var(--ok); }
.tone-red { color: var(--crit); }
.tone-amber { color: var(--attn-dot); }
.tone-brand { color: var(--brand); }
.tone-muted { color: var(--muted); }
.tone-line { color: var(--field-line); }
.hostci { margin: 0 0 1.25rem; color: var(--muted); font-size: .85rem; }
.hostci > summary { cursor: pointer; }
.hostci ul { list-style: none; margin: .4rem 0 0; padding: 0; }
.hostci li { display: flex; align-items: center; gap: .5rem; padding: .15rem 0; overflow-wrap: anywhere; }
.hostci a { color: var(--muted); }
.hdot { display: inline-block; width: .5rem; height: .5rem; border-radius: 50%; background: currentColor; flex: none; }
.h-count { margin-left: .35rem; color: var(--muted); font-size: .9rem; font-weight: 600; }
/* The side column's subtasks and checks: compact rows, icon then text that wraps, never cut. */
.st-intro { margin: -.35rem 0 .5rem; }
.subtasks, .checklist { list-style: none; margin: 0; padding: 0; }
.subtasks > li, .checklist > li { display: flex; gap: .6rem; align-items: flex-start; border-top: 1px solid var(--line); }
.subtasks > li { padding: .55rem 0; }
.checklist > li { padding: .35rem 0; font-size: .92rem; }
.st-body { min-width: 0; }
.st-title { display: block; overflow-wrap: anywhere; }
.st-meta { display: block; color: var(--muted); font-size: .85rem; }
.card details.st-detail { margin: .2rem 0 0; font-size: .85rem; }
.st-detail p { margin: .25rem 0 0; }
.checks-sum { display: flex; gap: .6rem; align-items: flex-start; font-weight: 600; margin: 0 0 .5rem; }
.checks-sum .ico { width: 20px; height: 20px; margin-top: .1rem; }
.card details.evidence-checks, .evidence details.evidence-checks { width: 100%; margin: 0; }
.evidence-checks > summary { display: flex; gap: 12px; align-items: flex-start; list-style: none; }
.evidence-checks > .checklist { display: flex; flex-direction: column; gap: 6px; padding-top: 6px; }
.evidence .evidence-checks > .checklist > li { gap: 12px; padding: 0; border: 0; font-size: inherit; line-height: inherit; }
.tk-page .evidence-checks > summary, .tk-page .evidence .evidence-checks > .checklist > li { gap: 8px; }
.evidence-checks > summary::-webkit-details-marker { display: none; }
.evidence-checks > summary > span:last-child { margin-left: auto; }
.evidence-checks[open] > summary > span:last-child { transform: rotate(90deg); }
.evidence-checks > summary:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.ck-note { color: var(--muted); font-size: .82rem; }
.card details.checks-more { margin: 0; border-top: 1px solid var(--line); }
details.checks-more > summary { padding: .4rem 0; color: var(--brand); font-weight: 600; font-size: .92rem; }
.view-only { margin: 1rem 0 0; font-weight: 600; }
.inline-form { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: 0 0 .5rem; }
.inline-form select { width: auto; }
.inline-form .check { margin: 0; }
.add-person { display: flex; flex-wrap: wrap; gap: .25rem 1rem; align-items: flex-end; }
.add-person .grow { flex: 0 1 24rem; }
.add-person .field { margin-bottom: .5rem; }
/* Setup's settings: a switch per rule (a checkbox drawn as one, its On/Off said beside it), an amount
   with its unit, and a Save under each card that has one. */
.w0 { width: 2%; } .w5 { width: 5%; } .w10 { width: 10%; } .w15 { width: 15%; } .w20 { width: 20%; } .w25 { width: 25%; } .w30 { width: 30%; } .w35 { width: 35%; } .w40 { width: 40%; } .w45 { width: 45%; } .w50 { width: 50%; } .w55 { width: 55%; } .w60 { width: 60%; } .w65 { width: 65%; } .w70 { width: 70%; } .w75 { width: 75%; } .w80 { width: 80%; } .w85 { width: 85%; } .w90 { width: 90%; } .w95 { width: 95%; } .w100 { width: 100%; }
.center { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.auth { width: 100%; max-width: 26rem; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); padding: 2rem 1.75rem; }
.auth .mark { margin-bottom: 1.25rem; }
/* The public website's header brand: the mark is the D of "Dutopilot", the word follows it. */
.auth .mark.mark-brand { gap: 1px; }
.auth .mark.mark-brand > svg { width: 42px; height: 32px; }
.brand-word { font-family: var(--display); font-weight: 700; font-size: 26px; line-height: 1; letter-spacing: -0.01em; color: var(--ink); white-space: nowrap; }
.brand-d { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.auth input[type=email], .auth input[type=text] { max-width: none; }
/* letter-spacing also trails the last digit; the same indent on the left keeps the code centred. */
.otp { font-size: 1.6rem; letter-spacing: .4em; text-indent: .4em; text-align: center; font-family: "Roboto Mono", ui-monospace, Menlo, Consolas, monospace; }
.stack > * + * { margin-top: .75rem; }
.picker { list-style: none; padding: 0; margin: 0; }
.picker li a { display: block; padding: .75rem 1rem; border: 1px solid var(--line); border-radius: 14px; margin-bottom: .5rem; text-decoration: none; color: var(--ink); }
.picker li a:hover { border-color: var(--brand); }
.empty { color: var(--muted); padding: .5rem 0; }
.empty-card { border: 1px dashed var(--line-2); box-shadow: none; border-radius: 20px; padding: 48px 24px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.empty-card h2 { margin: 0; font-size: 18px; font-weight: 700; }
.empty-card p { margin: 0; max-width: 420px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.empty-card .btn { margin-top: 6px; }
@media (max-width: 480px) {
  .top-inner { gap: .5rem; }
  .menus { width: 100%; justify-content: space-between; order: 2; }
  .tabs { order: 3; flex: 1 1 100%; }
  .tabs a { padding: .35rem .7rem; }
  h1 { font-size: 1.35rem; }
  .card { padding: 1rem; border-radius: 16px; }
  .seg { border-radius: 16px; }
  .seg a { border-radius: 12px; }
  .menu-body { right: auto; left: 0; }
  details.menu:last-child .menu-body { left: auto; right: 0; }
}
@media (forced-colors: active) {
  .rail .dot { border: 2px solid CanvasText; }
  .btn[disabled] { border-color: GrayText; color: GrayText; }
}
/* The placeholder a page shows while the next one loads in place, and the content's arrival. */
main:focus { outline: none; }
.sk-line { height: .8rem; margin: .6rem 0; border-radius: 6px; background: linear-gradient(90deg, var(--line) 25%, var(--surface-2) 37%, var(--line) 63%); background-size: 400% 100%; }
.sk-title { height: 1.7rem; width: 38%; margin-top: .4rem; }
.sk-short { width: 62%; }
@media (prefers-reduced-motion: no-preference) {
  .btn, .tabs a, .seg a, details.menu > summary { transition: background-color .15s ease, border-color .15s ease, color .15s ease; }
  details.menu > summary .chev { transition: transform .15s ease; }
  .sk-line { animation: sk-shimmer 1.4s linear infinite; }
  .rail li.current .dot { animation: halo 1.8s ease-in-out infinite; }
}
@keyframes halo { 0%, 100% { box-shadow: 0 0 0 4px var(--brand-halo); } 50% { box-shadow: 0 0 0 9px transparent; } }
@keyframes sk-shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }

progress { display: block; width: 100%; height: 6px; border: 0; border-radius: 99px; overflow: hidden; appearance: none; background: var(--line); }
progress::-webkit-progress-bar { background: var(--line); border-radius: 99px; }
progress::-webkit-progress-value { background: var(--grad, var(--brand)); border-radius: 99px; }
progress::-moz-progress-bar { background: var(--grad, var(--brand)); border-radius: 99px; }

.sidebar-usage { display:flex; flex-direction:column; gap:10px; text-decoration:none; background:var(--surface); width: 100%; min-width: 0; border: 1px solid var(--line); border-radius: 12px; padding: 12px; color: var(--text, var(--ink)); font-size: 12px; }
.sidebar-usage-heading { display: flex; align-items: center; gap: 6px; }
.sidebar-usage-heading svg { width: 15px; height: 15px; color: var(--brand); flex: none; }
.sidebar-usage-heading strong { font-size: 12px; font-weight: 600; }
.sidebar-usage-heading > span { margin-left: auto; color: var(--muted); font-size: 10px; white-space: nowrap; }
.sidebar-usage .usage-breakdown { margin-top: 8px; font-size: 11px; }
@media (min-width: 861px) { html[data-sidebar="mini"] .sidebar-usage { display:flex; flex-direction:column; gap:10px; text-decoration:none; background:var(--surface); display: none; } }
@media (min-width: 861px) { .dashboard-app .top .menus { width: 100%; } }
.sidebar-account-usage { display:flex; flex-direction:column; gap:4px; }
.sidebar-account-usage > span:first-child { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:4px 6px; }
.sidebar-account-usage b { font-weight:400; min-width:0; overflow-wrap:anywhere; }
.sidebar-account-usage > span:first-child > span { white-space:nowrap; color:var(--muted); }

.ov-first header{display:flex;flex-direction:column;gap:6px;margin-bottom:20px}.ov-first .eyebrow{font-size:11.5px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}.ov-first header h1,.ov-first header p{margin:0}.ov-guide-card{max-width:640px;border:1px solid var(--line);border-radius:12px;background:var(--surface);padding:16px;display:flex;flex-direction:column;gap:12px;box-sizing:border-box}.ov-guide-head{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.ov-guide-head h2{flex:1;margin:0;font:600 15px/1.35 var(--body)}.ov-guide-head>span{color:var(--muted)}.ov-guide-meter{height:6px;border-radius:6px;background:var(--sunken);overflow:hidden}.ov-guide-meter>span{display:block;width:0;height:100%;border-radius:6px;background:var(--grad)}.ov-guide-meter[data-complete="0"]>span{width:0.0%}.ov-guide-meter[data-complete="1"]>span{width:12.5%}.ov-guide-meter[data-complete="2"]>span{width:25.0%}.ov-guide-meter[data-complete="3"]>span{width:37.5%}.ov-guide-meter[data-complete="4"]>span{width:50.0%}.ov-guide-meter[data-complete="5"]>span{width:62.5%}.ov-guide-meter[data-complete="6"]>span{width:75.0%}.ov-guide-meter[data-complete="7"]>span{width:87.5%}.ov-guide-meter[data-complete="8"]>span{width:100.0%}.ov-guide-card ol{list-style:none;margin:0;padding:0}.ov-guide-card li{display:flex;gap:12px;align-items:flex-start;padding:10px 0;border-top:1px solid var(--line)}.ov-guide-card li:first-child{border-top:0}.ov-guide-dot{width:22px;height:22px;flex:none;border-radius:50%;display:grid;place-items:center;border:1.5px solid var(--line-2);box-sizing:border-box;font-size:11px;font-weight:700}.ov-guide-dot.done{background:var(--ok);border-color:var(--ok);color:var(--on-green)}.ov-guide-card b{font-weight:600;color:var(--ink)}.ov-guide-card b.done{font-weight:400;color:var(--muted)}.ov-guide-detail{display:block;color:var(--muted)}.ov-guide-foot{margin:16px 0 0;font-size:12.5px;color:var(--muted)}

@media (min-width: 641px) { main.wrap:has(> .ov) { max-width: 1200px; padding: 28px 28px 64px; } }

/* Getting started (SPEC §6 "Onboarding"): a column up to 760px, an eyebrow over the heading, one card of
   numbered steps (a done step's circle is filled with a check), a primary small action per step to do. */
.ob { display: flex; flex-direction: column; gap: 20px; max-width: 760px; }
.ob-head { display: flex; flex-direction: column; gap: 6px; }
.ob .eyebrow { margin: 0; font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }
.ob h1 { margin: 0; font-size: 28px; font-weight: 700; letter-spacing: -.3px; }
.ob-steps { list-style: none; margin: 0; padding: 0; overflow: hidden; border-radius: 20px; border-color: var(--line); box-shadow: none; }
.ob-step { display: grid; grid-template-columns: auto 1fr auto; column-gap: 16px; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.ob-step:last-child { border-bottom: 0; }
.ob-num { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--line-2); background: var(--surface-2); color: var(--ink); font-size: 14px; font-weight: 700; }
.ob-num.optional { border-style: dashed; color: var(--muted); }
.ob-num.done { background: var(--ok); border-color: var(--ok); }
.ob-num.done svg { width: 13px; height: 13px; fill: none; stroke: var(--on-green); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.ob-text { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ob-text strong { font-size: 16px; }
.ob-text span { font-size: 13px; color: var(--muted); line-height: 1.45; }
.ob-step.is-done .ob-text strong { color: var(--muted); }
.ob-action { padding: 9px 16px; font-size: 13px; font-weight: 500; white-space: nowrap; }
.ob-foot { margin: 0; font-size: 13px; color: var(--muted); }
/* On a phone the button goes under its text, so the text keeps the row's width. */
@media (max-width: 640px) { .ob-step { grid-template-columns: auto 1fr; row-gap: 12px; align-items: start; padding: 16px 18px; } .ob-action { grid-column: 2; justify-self: start; } .ob h1 { font-size: 24px; } }
.ov { display: flex; flex-direction: column; gap: 22px; }
.ov-head { display: flex; flex-direction: column; gap: 4px; }
.ov-head h1 { font-size: 26px; letter-spacing: -.3px; margin: 0; }
.ov-head .lede { font-size: 14px; margin: 0; }
.ov .tiles { margin: 0; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.ov-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 20px; align-items: start; }
.ov-cols .card { margin: 0; box-shadow: none; border-color: var(--line); }
.ov .see-all { display: block; font-size: 14px; font-weight: 500; text-decoration: none; }
.ov .see-all:hover { text-decoration: underline; }

/* Needs you: the amber header strip, then one compact row per ticket. The title's link covers the row. */

/* The right column: running tickets as cards, then Recently shipped and the monthly cost. */
.ov-side { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.run-list { display: flex; flex-direction: column; gap: 14px; }
.run-cards { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.run-none { padding: 16px 20px; }
.run-none .empty { margin: 0; padding: 0; font-size: 14px; }
.run-list > .see-all { padding: 0 4px; }
.ship-card{ padding: 6px 20px; }
.ship-card h2{ margin: 0; padding: 10px 0; font-size: 13px; font-weight: 500; color: var(--muted); }
.ship-card > .empty { margin: 0; padding: 4px 0 14px; font-size: 14px; }
.ship-rows { list-style: none; margin: 0; padding: 0; }
.ship-rows li { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 10px 0; border-top: 1px solid var(--line); }
.ship-mark { flex: none; width: 14px; height: 14px; fill: none; stroke: var(--ok); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ship-mark.none { stroke: var(--muted); }
.ship-title { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 500; color: var(--ink); text-decoration: none; }
.ship-title:hover { color: var(--brand-ink); text-decoration: underline; }

@media (max-width: 640px) {
  .ov { gap: 18px; }
  .ov-head h1 { font-size: 22px; }
  .ov .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .ov-cols { gap: 16px; }
  .ship-card{ padding: 4px 16px; }
  .ship-rows li { flex-wrap: wrap; row-gap: 2px; }
}

/* The exported overview: full-width decision workspace, then compact activity rows. */
main.wrap:has(> .ov), .shell-content:has(.ov) { max-width: none; }
.ov { gap: 20px; }
.ov > section:has(.pipe-wrap), .ov > .tiles { margin-bottom: 8px; }
.ov > .ov-cols { margin-top: 12px; }
.ov-head { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.ov-head > div { display: grid; gap: 6px; }
.ov-head h1 { font: 600 24px/1.25 var(--display, "Poppins", sans-serif); letter-spacing: -.01em; }
.ov-head .eyebrow { margin: 0; font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ov-head .lede { max-width: 72ch; }
.ov .section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.ov h2 { font-size: 15px; font-weight: 600; margin: 0; }
.ov-hint { font-size: 12.5px; }
.ov .pipe-wrap { container-type: inline-size; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.ov .pipe-scroll { overflow-x: auto; }
.ov .tone-attn { color: var(--attn, var(--attn)); }
.ov .tone-crit { color: var(--crit, var(--crit)); }
.ov .tone-info { color: var(--info, var(--brand)); }
.ov .ptrack { position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: var(--line); }
.ov .tone-attn .ptrack { background: var(--attn-dot, var(--attn-dot)); }
.ov .tone-crit .ptrack { background: var(--crit, var(--crit)); }
.ov .tone-info .ptrack { background: var(--grad, var(--brand)); }
.ov .pstage-done { flex: 1.2 1 0; background: var(--surface-2, var(--surface-2)); }
.ov .pstage-done .pstage-sub { font-weight: 500; }
.ov .capacity { display: flex; align-items: center; gap: 6px 14px; flex-wrap: wrap; padding: 10px 16px; border-top: 1px solid var(--line); background: var(--surface-2, var(--surface-2)); color: var(--text, var(--ink)); font-size: 13px; text-decoration: none; }
.ov .capacity a { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.ov .notice { margin: 0; display: flex; gap: 12px; justify-content: space-between; align-items: center; flex-wrap: wrap; padding: 12px 14px; border-radius: 10px; }
.ov-notice-icon { flex: none; width: 18px; height: 18px; align-self: flex-start; margin-top: 3px; }
.ov .notice > div { flex: 1 1 240px; }
.ov .notice p { margin: 4px 0 0; }
.ov-inbox-list { padding: 6px; margin: 0; list-style: none; max-height: 640px; overflow-y: auto; }
.ov-inbox-row { display: flex; align-items: center; gap: 12px; padding: 10px; min-width: 0; border: 1px solid transparent; border-radius: 9px; color: var(--text, var(--ink)); text-decoration: none; }
.ov-inbox-row:hover { background: var(--hover, var(--surface-2)); }
.ov-inbox-row[aria-current="true"] { background: var(--sel, var(--sel)); border-color: var(--line); }
.ov-inbox-row .stile { flex: none; width: 26px; height: 26px; border-radius: 8px; font-size: 13px; }
.ov-row-body { flex: 1; min-width: 0; display: grid; gap: 1px; }
.ov-row-title { display: flex; gap: 8px; align-items: baseline; min-width: 0; }
.ov-row-title .lead { display: inline-flex; flex: none; align-items: center; gap: 4px; white-space: nowrap; }
.ov-row-title .key { flex: none; white-space: nowrap; font: 11.5px var(--mono, monospace); color: var(--muted); }
.ov-row-title strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; font-weight: 600; }
.ov-row-sub { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ov-priority { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; font-size: 12px; font-weight: 600; color: var(--muted); }
.ov-priority.priority-high { color: var(--attn, var(--attn)); }
.ov-priority.priority-urgent, .ov-priority.priority-front { color: var(--crit, var(--crit)); }
.ov-row-time { flex: none; min-width: 72px; text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); font-size: 12px; }
.ov-inbox-detail .pn { border: 0; box-shadow: none; background: transparent; }
.ov-inbox-detail .dc-head { padding: 0 0 16px; background: transparent; }
.ov-inbox-detail .dc-body { padding: 0; }
.ov-inbox-detail .pn-close { display: none; }
.ov-inbox-detail .pn-foot { padding: 16px 0 0; margin: 0; }
.ov-inbox-detail h2 { font-size: 18px; }
.ov-inbox-detail .dc-head .stile { display: none; }
.ov-inbox-detail .dc-head .pn-end { margin-left: auto; }
.ov-inbox-zero { padding: 20px; }
.ov-decisions-empty{padding:16px;border-radius:12px}.ov-empty-content{display:flex;flex-direction:column;align-items:center;gap:10px;padding:40px 16px;text-align:center}.ov-empty-icon{width:44px;height:44px;border-radius:12px;display:grid;place-items:center;color:var(--muted);background:var(--sunken)}.ov-empty-content h3{margin:0;font:600 15px/1.35 var(--body);color:var(--ink)}.ov-empty-content p{margin:0;max-width:52ch}
.ov-cols { grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 28px 36px; align-items: start; }
.ov .run-list { padding: 0; }
.ov .run-cards { gap: 0; }
.ov .ship-card { padding: 0; }
.ov .ship-card h2 { color: var(--ink); font-size: 15px; padding: 0 0 10px; }
.ov .ship-rows li { border: 0; padding: 10px; border-radius: 9px; flex-wrap: wrap; row-gap: 2px; }
.ov .ship-rows li:hover { background: var(--hover, var(--surface-2)); }
@media (max-width: 1100px) {
  .ov-inbox-list { max-height: none; }

}
@media (max-width: 860px) {
  main.wrap:has(> .ov), .shell-content:has(.ov) { padding: 18px 16px 32px; }
  .ov { gap: 20px; }
  .ov-head h1 { font-size: 24px; }
  .ov-row-title { flex-direction: column; gap: 0; }
  .ov-row-title strong, .ov-row-sub { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .ov-inbox-row { align-items: flex-start; padding: 10px 8px; }
  .ov-row-time { min-width: 0; padding-top: 2px; }
}


.ov-affected { margin-top: 8px; }
@media (max-width: 860px) {
  .ov-affected > summary { min-height: 44px; padding: 10px 0; box-sizing: border-box; }
  .ov-affected li a { display: flex; align-items: center; min-height: 44px; }
}
.ov-affected ul { margin: 8px 0 0; padding-left: 20px; }
.ov-affected li { padding: 4px 0; overflow-wrap: anywhere; }
.ov .pstage .value, .ov-health strong { color: var(--ink); }
.ov-decision-header { display: none; }
.ov-inbox-detail .ov-decision-header { display: grid; gap: 12px; padding-bottom: 12px; }
.ov-inbox-detail .dc-head { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); padding: 0; border: 0; }
.ov-inbox-detail .ov-decision-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 11.5px; color: var(--muted); }
.ov-decision-meta .key { font: 11.5px var(--mono, monospace); }
.ov-decision-meta a { margin-left: auto; color: var(--text, var(--ink)); text-decoration: none; font-size: 12.5px; }
.ov-decision-size { padding: 2px 6px; border: 1px solid var(--line); border-radius: 5px; }
.ov-inbox-detail .ov-decision-owner { margin: 0; font-size: 12.5px; color: var(--attn, var(--attn)); }
.ov-inbox-detail .ov-decision-header h2 { font: 600 18px/1.35 var(--body, sans-serif); }
.ov-inbox-detail .dc-why p { font-size: 13px; line-height: 1.55; margin-bottom: 8px; }
.ov-inbox-detail .dc-why p:first-child { font-size: 14px; }
.ov-inbox-detail .dc-why p:first-child strong { font-weight: 400; }
.ov-inbox-detail .evidence { border: 0; border-radius: 0; }
.ov-inbox-detail .evidence li { padding: 6px 0; border: 0; font-size: 12.5px; }
.ov-inbox-detail .dc-buttons .btn { border-radius: 7px; padding: 7px 12px; font-size: 13px; min-width: 0; flex: 0 1 auto; }
.ov-inbox-detail .dc-body .btn { border-radius: 7px; }
.ov-inbox-detail .pn-foot { display: none; }
.ov-inbox-page #setup-fixes { scroll-margin-top: 24px; }

.ov-inbox-list > li { padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.ov-inbox-list > li:last-child { border-bottom: 0; }
.ov .ov-view-all { display: inline-flex; align-items: center; gap: 6px; color: var(--brand); white-space: nowrap; font-size: 13px; font-weight: 500; text-decoration: none; }
.ov a.ov-view-all:hover{ color: var(--brand-ink); text-decoration: none; }
.ov .ship-card .section-head h2 { padding: 0; }
.changes-context { margin: 0 0 32px; padding: 0 0 24px; border-bottom: 1px solid var(--line); }
.changes-context h3 { margin: 0 0 10px; font-size: 15px; line-height: 1.45; }
.changes-context p { margin: 8px 0; font-size: 13px; line-height: 1.55; }
.changes-context ul { margin: 8px 0; padding-left: 18px; font-size: 13px; }
.changes-context li + li { margin-top: 6px; }
.changes-context a, .changes-context summary { font-size: 12.5px; }
.ov-inbox-detail pre { overflow-x: auto; font: 11.5px/1.6 var(--mono, monospace); white-space: pre; }

.ov-admin .ov-work-item { padding: 0; border: 0; border-radius: 0; }
.ov-admin .ship-rows .ov-work-item { padding: 0; border-radius: 0; }
.ov-admin .ov-work-item + .ov-work-item { border-top: 1px solid var(--line); }
.ov-work-row { display: flex; flex: 1 1 100%; width: 100%; align-items: flex-start; gap: 12px; padding: 10px 4px; color: var(--ink); text-decoration: none; border-radius: 9px; min-width: 0; box-sizing: border-box; }
.ov-work-row:hover { background: var(--hover, var(--surface-2)); }
.ov-work-icon { margin-top: 2px; width: 20px; height: 20px; flex: none; color: var(--info, var(--brand)); }
.ov-work-icon svg { width: 20px; height: 20px; }
.ov-work-completed .ov-work-icon { color: var(--ok, var(--ok)); }
.ov-work-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.ov-work-key > .key { font: 500 12px var(--mono); color: var(--muted); }
.ov-work-row .chip { height: 18px; padding: 0 7px 0 5px; gap: 4px; line-height: 1; font-size: 11.5px; }
.ov-work-key { display: flex; align-items: center; gap: 8px; width: 100%; }
.ov-work-priority { margin-left: auto; }
.ov-work-body > strong { font-size: 14px; font-weight: 600; line-height: 1.5; white-space: normal; }
.ov-work-sub { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.ov-work-sub > span:first-child { display: flex; align-items: flex-start; }
.ov-work-time { flex: none; font-size: 12px; font-variant-numeric: tabular-nums; }
@media(max-width:640px) { .ov-work-row { align-items: start; } .ov-work-sub { flex-wrap: wrap; gap: 3px 12px; } }


.ticket-content-link { display: block; color: inherit; text-decoration: none; border-radius: 8px; padding: 8px; margin: -8px; }
.ticket-content-link:hover { color: inherit; background: var(--surface-2); }
.ticket-content-link:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
[data-ticket-surface]:hover { border-color: var(--line-2); }

.tk-title { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.tk-title > div { flex: 1 1 20rem; min-width: 0; }
.tk-title h1 { margin: 0 0 2px; }
.tk-title .lede { margin: 0; font-size: 14px; }
.tk-switch { display: flex; gap: 2px; padding: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; }
.tk-switch a { padding: 7px 16px; border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--ink); text-decoration: none; }
.tk-switch a:hover { background: var(--surface-2); }
.tk-switch a[aria-current="true"] { background: var(--brand); color: var(--on-brand); }
.tk-filters { display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; margin-bottom: 22px; }
.tk-search { position: relative; display: flex; flex: 0 1 240px; min-width: 180px; }
.tk-search input[type=search] { width: 100%; max-width: none; padding: 8px 38px 8px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; }
.tk-search input[type=search]::placeholder { color: var(--muted); }
.tk-search button { position: absolute; right: 3px; top: 50%; transform: translateY(-50%); display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--muted); cursor: pointer; }
.tk-search button:hover { background: var(--surface-2); color: var(--ink); }
.tk-search svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
/* Scoped so this row's pills never wrap, and overrides the single-ticket page's unscoped .tk-pills
   (flex: none; align-self: center; justify-content: flex-end; gap: 6px; max-width: 40%), which
   otherwise still cascades in here after it (equal specificity, later in the sheet) and was why
   Shipped wrapped right-aligned under Waiting on desktop, and why the phone column layout -- which
   stretches .tk-filters's children -- left the pills nav sized to its own content instead of the
   row's width. align-self and gap must be restated here even though this rule's own values match
   the base .tk-pills rule, since a property this selector never declares falls through to
   whichever same-specificity rule declared it last, not to the one with this row's more specific
   selector. The padding + matching negative margin give the focus ring room inside the
   side-scrolling clip box without changing the pills' visual position. */
.tk-filters .tab-track { flex: 0 1 auto; align-self: center; }
.tk-groups { display: flex; flex-direction: column; gap: 26px; }
.tk-group { display: flex; flex-direction: column; gap: 10px; }
.tk-group[hidden] { display: none; }
.board { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.board > section[hidden] { display: none; }
.board[data-filtered] { grid-template-columns: minmax(0, 1fr); }
.tk-group-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 0 2px; }
.tk-group-h h2 { margin: 0; font-size: 15px; font-weight: 700; }
.tk-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.tk-group.needs-you .tk-dot { background: var(--attn-dot); }
.tk-group.running .tk-dot { background: var(--brand); }
.tk-group.waiting .tk-dot { background: var(--line-2); }
.tk-group.shipped .tk-dot { background: var(--ok); }
.tk-n { display: none; font-family: var(--mono, "Roboto Mono", monospace); font-size: 12px; color: var(--muted); }
.tk-note { margin: 0; font-size: 13px; color: var(--muted); }
/* Under a group listing part of its tickets: the link to the rest. */
.tk-more { margin: 2px 2px 0; font-size: 14px; }
.tk-more a { font-weight: 600; }
.tk-rows { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.priority-chip { font-size: 12px; font-weight: 600; white-space: nowrap; vertical-align: middle; }
.priority-chip.priority-front, .priority-chip.priority-urgent { background: var(--crit-bg); color: var(--crit); border-color: var(--crit-line); }
.priority-chip.priority-high { background: var(--attn-bg); color: var(--attn); border-color: var(--attn-line); }
.priority-chip.priority-normal { background: var(--sel); color: var(--brand); border-color: var(--info-line); }
.priority-chip.priority-low { background: var(--ok-bg); color: var(--ok); border-color: var(--ok-line); }
.size-chip { font-size: 12px; font-weight: 500; }
.size-chip.size-small { background: var(--ok-bg); color: var(--ok); border-color: transparent; }
.tk-empty { border: 1px dashed var(--line-2); box-shadow: none; padding: 36px 24px; text-align: center; }
.tk-empty .empty { padding: 0; }
/* A hot tab with nothing in it, shown by the tab script (client-script.ts) without a fetch: the
   same quiet wording an empty group reads on a fresh page, just not a dashed empty-state card. */
.tk-groups > .empty { padding: 18px 2px; }
.tk-groups > .empty > p { margin: 0 0 6px; }
.tk-empty p:last-child { margin-bottom: 0; }
.tk-status { margin: -12px 0 14px; font-size: 13px; }
.tk-status:empty { display: none; }
.tk-status .btn { margin-left: 8px; }
.tk-results[aria-busy="true"] { opacity: .6; transition: opacity .15s; }
@media (max-width: 860px) {
  /* Narrow: the rail goes under the content, still in the row. */
}
@media (max-width: 640px) {
  .tk-groups { gap: 22px; }
  .tk-group { gap: 8px; }
  .tk-note { display: none; }
  .tk-n { display: inline; }
  .tk-rows { border-radius: 16px; }
  /* Search on its own full-width line, then the pills as their own side-scrolling strip
     (same pattern as the board's phone strip in ../mobile-css.ts). */
  .tk-filters { flex-direction: column; align-items: stretch; }
  .tk-search { flex: 1 1 100%; }
  .tk-search input[type=search] { font-size: 16px; }
  .tk-pills a { min-height: 40px; display: inline-flex; align-items: center; gap: .3em; }
  .tk-pills .count::before { content: "·"; margin-right: .3em; }
  /* No dot separators on a phone: a wrapped line would start with one. */
  .tk-switch a { min-height: 40px; display: inline-flex; align-items: center; }
}
.ticket-preview-modal-layout { display: block; }
.ticket-preview-modal-layout > .ticket-preview-detail { display: none; }
/* Compact native ticket links and a separate read-only preview. */
.ticket-master-detail { position: relative; }
.ticket-master-detail .tk-groups { gap: 0; }
.ticket-master-detail .tk-group-h { display: none; }
.ticket-master-detail .tk-note { display: none; }
.ticket-master-detail .tk-rows { border: 0; border-radius: 0; }
.ticket-compact { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; column-gap: 10px; row-gap: 3px; padding: 12px 16px; border-top: 1px solid var(--line); list-style: none; }
.ticket-compact .ticket-content-link { padding: 0; margin: 0; }
.ticket-compact-title { display: flex; flex-direction: column; gap: 3px; align-items: flex-start; }
.ticket-compact-key { display: flex; align-items: center; gap: 8px; align-self: stretch; min-width: 0; }
.ticket-compact > .stile { width: 26px; height: 26px; margin-top: 2px; }
.ticket-compact-actions { grid-column: 3; grid-row: 1; display: flex; flex-direction: column; align-items: flex-end; margin: 0; } .ticket-compact-progress, .ticket-compact > .sent, .ticket-queue-note { grid-column: 2 / -1; font-size: 11px; }
.ticket-compact-title .key { flex: none; font: 11px var(--mono, monospace); color: var(--muted); }
.ticket-compact-title strong { font-size: 13px; }
.ticket-compact-summary { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ticket-compact-actions .btn { padding: 3px 8px; }
.ticket-compact-progress { margin-top: 3px; }
.ticket-compact:has(.ticket-content-link[aria-current]) { background: var(--sel); box-shadow: inset 0 0 0 1px var(--line); }
.ticket-content-link[aria-current] { font-weight: 700; text-decoration: underline; }
.ticket-preview-detail pre { overflow: auto; font-size: 12px; }
.ticket-preview-detail h2, .ticket-preview-detail h3 { font-size: 16px; }
.ticket-table-wrap { position: relative; max-width: 100%; overflow-x: auto; }
.ticket-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.ticket-table th, .ticket-table td { padding: 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.ticket-table th { white-space: nowrap; color: var(--muted); }
.phase-board { grid-template-columns: repeat(6, minmax(220px, 1fr)); overflow-x: auto; }
.phase-board .card { padding: 14px; }

@media (max-width: 640px) { .tk-filters { flex-wrap: wrap; } .ticket-compact-title { flex-wrap: wrap; } .ticket-compact-summary { white-space: normal; } }

/* Updated artifact collection controls and native link surfaces. */
.tk-title { align-items: flex-end; gap: 16px; margin-bottom: 20px; }
.tk-title h1 { margin-bottom: 6px; }
.tk-filters { flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px; }
.tk-search { flex: 1 1 240px; max-width: 340px; }
.tk-search input[type=search] { height: var(--touch-target, 36px); border-radius: 9px; }
.tk-filters .tab-track { flex: 0 1 auto; align-self: center; }
.tk-filters .tk-switch { flex: none; margin-left: auto; padding: 3px; gap: 2px; border: 0; border-radius: 10px; background: var(--sunken, var(--surface-2)); }
.tk-filters .tk-switch a { display: inline-flex; align-items: center; justify-content: center; height: 28px; min-height: 28px; padding: 0 10px; border-radius: 7px; font-size: 12.5px; color: var(--muted); }
.tk-filters .tk-switch a[aria-current="true"] { color: var(--ink); background: var(--surface); box-shadow: 0 1px 2px color-mix(in srgb, var(--shadow-ink) 10%, transparent); }
.ticket-master-detail > div { flex: 1 1 420px; min-width: 0; padding: 6px; }
.ticket-master-detail.ticket-preview-modal-layout { display: block; border: 0; overflow: visible; background: transparent; }
.ticket-preview-modal-layout > div { padding: 0; }
.ticket-compact { grid-template-columns: 24px minmax(0, 1fr) auto; gap: 1px 12px; padding: 10px; border: 0; border-radius: 9px; }
.ticket-compact:hover { background: var(--hover, var(--surface-2)); }
.ticket-compact > .stile { width: 24px; height: 24px; }
.ticket-compact .ticket-content-link:hover { background: transparent; }
.ticket-compact-title { gap: 1px; }
.ticket-compact-title .key { font-size: 12px; }
.ticket-compact-title strong { font-size: 14px; font-weight: 600; }
.ticket-compact-summary { font-size: 13px; margin-top: 1px; white-space: normal; }
.ticket-compact-progress { display: flex; align-items: center; gap: 6px; font-size: 12.5px; margin-top: 4px; }
.ticket-compact-progress > .ticket-compact-summary { min-width: 0; flex: 1; margin: 0; }
.ticket-compact-progress > .muted { margin-left: auto; font-size: 12px; white-space: nowrap; }
.ticket-compact:has(.ticket-content-link[aria-current]) { background: var(--sel, var(--sel)); box-shadow: inset 0 0 0 1px var(--line); }
.ticket-compact .ticket-content-link[aria-current] { font-weight: inherit; text-decoration: none; }
.ticket-phase-label { font-size: 12.5px; font-weight: 500; }
.ticket-table-wrap { border: 1px solid var(--line); border-radius: 12px; }
.ticket-table { min-width: 760px; }
.ticket-table th { padding: 9px 14px; background: var(--surface-2); font-size: 12px; font-weight: 600; }
.ticket-table td { padding: 10px 14px; vertical-align: middle; font-size: 13.5px; white-space: nowrap; }
.ticket-table td:first-child { max-width: 360px; }
.ticket-table a { text-decoration: none; }
.ticket-table .priority-chip { border: 0; background: transparent; padding: 0; }
.ticket-table td:first-child .key { font-weight: 400; white-space: nowrap; }
.ticket-table td:first-child a { display: flex; align-items: baseline; gap: 8px; color: var(--ink); font-weight: 600; }
.ticket-table td:first-child .title { overflow: hidden; text-overflow: ellipsis; }
.ticket-table td:last-child, .ticket-table th:last-child { text-align: right; }
.ticket-table tr:last-child td { border-bottom: 0; }
.ticket-table tbody tr:hover td { background: var(--hover, var(--surface-2)); }
.board.phase-board { display: grid; grid-template-columns: repeat(6, minmax(200px, 1fr)); gap: 16px; overflow-x: auto; padding: 0 0 8px; margin: 0; scroll-snap-type: none; }
.board.phase-board > section { overflow-x: hidden; display: flex; flex-direction: column; gap: 10px; min-width: 0; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.board.phase-board > section > h2 { display: flex; align-items: center; gap: 8px; padding: 4px 4px 6px; margin: 0; font-size: 13px; font-weight: 600; }
.ticket-board-card { min-width: 0; overflow-wrap: anywhere; display: flex; flex-direction: column; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 9px; padding: 14px; }
.ticket-board-card:hover { border-color: var(--line-2); }
.ticket-board-top { display: flex; align-items: center; gap: 6px; }
.ticket-board-top .stile { width: 20px; height: 20px; flex: none; }
.collection-priority { display: inline-flex; align-items: center; gap: 5px; margin-left: auto; flex: none; font-size: 12.5px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.collection-priority.priority-urgent, .collection-priority.priority-front { color: var(--crit); }
.collection-priority.priority-high { color: var(--attn); }
.collection-priority svg { flex: none; }
.ticket-board-top .key { white-space: nowrap; flex: none; }
.ticket-board-top .chip { min-width: 0; flex-shrink: 1; font-size: 11px; padding-inline: 4px; }
.ticket-board-card .ticket-content-link { min-width: 0; padding: 0; margin: 0; }
.ticket-board-card .title { font-size: 14px; font-weight: 600; }
.ticket-board-card .ticket-compact-summary { margin-top: 6px; font-size: 12.5px; }
.ticket-board-card .ticket-queue-note { margin: 0; }
@media (max-width: 860px) {
  .tk-filters { flex-direction: row; align-items: center; }
  .tk-search { max-width: none; flex-basis: 100%; }
  .tk-filters .tk-pills { flex-basis: 100%; flex-wrap: nowrap; }
  .tk-filters .tk-switch { margin-left: auto; }
  .ticket-compact { padding: 10px 8px; }
}
/* Artifact 4: one lifecycle strip and a separate header view switch. */
.tk-title .tk-switch { flex: none; margin-left: auto; display: inline-flex; padding: 3px; gap: 2px; border: 0; border-radius: 10px; background: var(--sunken, var(--surface-2)); }
.tk-title .tk-switch a { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 28px; min-height: 28px; padding: 0 10px; border-radius: 7px; color: var(--muted); font-size: 12.5px; }
.tk-title .tk-switch a[aria-current=true] { color: var(--ink); background: var(--surface); box-shadow: 0 1px 2px color-mix(in srgb, var(--shadow-ink) 10%, transparent); }
.tk-search input[type=search] { padding-left: calc(var(--touch-target, 25px) + 9px); padding-right: 10px; }
.tk-search button { left: 6px; right: auto; width: var(--touch-target, 25px); height: var(--touch-target, 30px); border-radius: 7px; }
.tk-filters .tk-lifecycle-filters { flex: 0 1 auto; flex-wrap: nowrap; width: fit-content; max-width: 100%; scrollbar-width: none; }
.tk-lifecycle-filters::-webkit-scrollbar { display: none; }
.tk-filters .tk-lifecycle-filters a { flex: none; }
.tk-filter-sep { flex: none; width: 1px; align-self: stretch; margin: 6px 4px; background: var(--line-2); }
.tk-filter-next { flex: none; display: inline-flex; align-items: center; margin: 0 -3px; color: var(--muted); opacity: .6; }
.tk-lifecycle-filters[data-fade=r] { mask-image: linear-gradient(to right, var(--mask-ink) calc(100% - 28px), transparent); }
.tk-lifecycle-filters[data-fade=l] { mask-image: linear-gradient(to right, transparent, var(--mask-ink) 28px); }
.tk-lifecycle-filters[data-fade=lr] { mask-image: linear-gradient(to right, transparent, var(--mask-ink) 28px, var(--mask-ink) calc(100% - 28px), transparent); }
@media (max-width: 860px) { .tk-filters .tk-lifecycle-filters { flex-basis: 100%; width: 100%; } }


.ticket-first-empty{display:flex;flex-direction:column;align-items:center;gap:10px;padding:40px 16px;text-align:center}.ticket-first-icon{width:44px;height:44px;border-radius:12px;display:grid;place-items:center;color:var(--muted);background:var(--sunken)}.ticket-first-empty h2{margin:0;font:600 15px/1.35 var(--body);color:var(--ink)}.ticket-first-empty p{margin:0;max-width:52ch;color:var(--muted)}

.ticket-master-detail .rows>li.ticket-compact{grid-template-columns:22px minmax(0,1fr);padding:10px;column-gap:12px;align-items:start;border:0;background:transparent;box-shadow:none}.ticket-compact-actions:empty{display:none}.ticket-compact:has(.ticket-compact-actions:not(:empty)){grid-template-columns:22px minmax(0,1fr) auto}.ticket-compact-key .collection-priority{line-height:18px}
.ticket-compact>.stile,.ticket-board-top .stile{width:22px;height:22px;border:0;border-radius:50%;flex:none}
.ticket-compact>.stile svg,.ticket-board-top .stile svg{width:13px;height:13px}
.ticket-master-detail .rows>li.ticket-compact:hover{background:var(--hover)}.ticket-master-detail .rows>li.ticket-compact:has(.ticket-content-link[aria-current]){background:var(--sel);box-shadow:inset 0 0 0 1px var(--line-2)}
.ticket-compact-title{gap:0}.ticket-compact-title strong{color:var(--ink)}.ticket-compact-progress{align-items:baseline;gap:12px;margin-top:1px}
.ticket-sub-what{display:flex;align-items:center;gap:8px;flex:1;min-width:0}
.ticket-sub-what .ticket-compact-summary{font-size:13px;line-height:19.5px;margin:0;white-space:normal}
.ticket-compact-progress>.muted{font-size:12px;line-height:18px}
.ticket-master-detail .ticket-compact .chip,.ticket-table .chip,.ticket-board-top .chip{height:18px;line-height:1;padding:0 7px 0 5px;font-size:11.5px;gap:4px;border-radius:99px;border-color:var(--line-2);white-space:nowrap}
.ticket-master-detail .ticket-compact .chip .ring,.ticket-table .chip .ring,.ticket-board-top .chip .ring{width:13px;height:13px}
.ticket-table th,.board.phase-board>section,.ticket-preview-detail{background:var(--surface-2)}
.ticket-table td .pill{display:inline-flex;align-items:center;gap:6px;height:22px;min-height:22px;padding:0 8px;border:0;font-size:12px;line-height:18px;vertical-align:baseline}
.ticket-table td .pill:before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor;flex:none}
.ticket-table td .collection-priority{font-weight:600;font-size:12px;gap:5px;margin:0}.ticket-table td:first-child .title{white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere;min-width:24ch;max-width:60ch}
.board.phase-board{grid-template-columns:repeat(6,minmax(min(300px,100%),1fr));align-items:start;overflow-x:auto;scrollbar-width:auto;scrollbar-color:auto}
.board.phase-board>section{overflow-y:auto;scrollbar-gutter:stable;scrollbar-width:auto;scrollbar-color:auto}
.board.phase-board::-webkit-scrollbar{height:12px}
.board.phase-board>section::-webkit-scrollbar{width:12px}
.board.phase-board::-webkit-scrollbar-track,.board.phase-board>section::-webkit-scrollbar-track{background:var(--surface-2)}
.board.phase-board::-webkit-scrollbar-thumb,.board.phase-board>section::-webkit-scrollbar-thumb{background:var(--muted);border:3px solid var(--surface-2);border-radius:8px}
.board-scroll-hint{margin:0 0 10px;font-size:12.5px;color:var(--muted)}
.ticket-board-card .title{display:block;line-height:21px;color:var(--ink)}
.ticket-board-top .key,.ticket-table td:first-child .key{font:500 12px var(--mono);color:var(--muted)}
.ticket-table .pill.brand{background:var(--info-bg);color:var(--info)}
.ticket-deploying{display:inline-block;color:var(--info);font-weight:500}
@media(prefers-reduced-motion:no-preference){.ticket-deploying{animation:ticket-deployment-progress 1.8s ease-in-out infinite}}
@keyframes ticket-deployment-progress{50%{opacity:.55;transform:translateY(-1px)}}
.ticket-phase { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.ticket-table td:has([data-state="current"]) .ticket-phase-label{color:var(--info)}
.ticket-table td:has([data-state="waiting"]) .ticket-phase-label{color:var(--attn)}
.ticket-table td:has([data-state="stopped"]) .ticket-phase-label{color:var(--attn)}
.ticket-table td:has(.mini-phase-rail.deploy-failed [data-state="stopped"]) .ticket-phase-label{color:var(--crit)}.ticket-board-card .ticket-compact-summary{font-size:12.5px;line-height:18.75px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
.ticket-preview-detail .inline-preview-top{gap:8px;align-items:center;flex-wrap:wrap}.ticket-preview-meta{display:flex;align-items:center;gap:6px;flex:1;min-width:0;flex-wrap:wrap}.ticket-preview-meta .collection-priority{margin:0}.ticket-preview-meta .key{font-size:12px}.ticket-preview-meta .ov-decision-size{font-size:11.5px;white-space:nowrap}.ticket-preview-meta .chip{font-size:11.5px}.ticket-preview-detail .inline-preview-top>a{margin-left:auto;white-space:nowrap}
.ticket-preview-detail .ticket-peek-headline{font-size:14px;line-height:21px}
@media(max-width:860px){
.ticket-compact{padding:10px}
.ticket-master-detail .ticket-compact:has(.ticket-compact-actions:not(:empty)){grid-template-columns:22px minmax(0,1fr)}
.ticket-master-detail .ticket-compact-actions{grid-column:2;grid-row:2;align-items:flex-start}
.ticket-compact-progress{flex-wrap:wrap;gap:4px 12px}
.ticket-sub-what{flex:1 1 200px}
}
@media(max-width:860px){.ticket-sub-what .ticket-compact-summary{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}}

.ticket-page-previous{transform:rotate(180deg)}.ticket-pagination{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;margin-top:12px;font-size:12.5px;color:var(--muted)}.ticket-pagination>div{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.ticket-page-button{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;min-width:34px;height:34px;border:1px solid var(--line-2);border-radius:9px;color:var(--ink);background:var(--surface);text-decoration:none;font:600 13px/1 var(--body);padding:0 8px}.ticket-page-button:hover{background:var(--hover)}.ticket-page-button[aria-current]{background:var(--sel);border-color:var(--brand);color:var(--brand-ink,var(--brand))}.ticket-page-button:disabled{opacity:.45;cursor:default}
@media(max-width:860px){.dashboard-app .ticket-page-button{min-width:44px;min-height:44px}}

.flat-stop-choices{margin:14px 0;padding:0;border:0;min-width:0}.flat-stop-options{display:flex;flex-direction:column;gap:6px}.flat-stop-choice{display:flex;align-items:flex-start;gap:12px;padding:11px 12px;border:1px solid var(--line);border-radius:10px;background:var(--surface);cursor:pointer}.flat-stop-choice:has(input:checked){border-color:var(--brand);background:var(--sel)}.flat-stop-copy{flex:1;min-width:0;font-size:14px;line-height:21px}.flat-stop-copy strong{font-weight:600;color:var(--ink)}.flat-stop-description{display:block;color:var(--muted);margin-top:2px}.flat-stop-recommended{display:inline-block;margin-left:6px;padding:1px 7px;border-radius:99px;font-size:11px;font-weight:600;color:var(--ok);background:var(--ok-bg)}.flat-stop-mark{position:relative;display:grid;place-items:center;margin-top:1px;width:20px;height:20px;flex:none}.flat-stop-mark input{appearance:none;margin:0;width:20px;height:20px;border:1.5px solid var(--line-2);border-radius:50%;background:transparent;cursor:pointer}.flat-stop-mark input:checked{background:var(--brand);border-color:var(--brand)}.flat-stop-mark svg{position:absolute;pointer-events:none;color:var(--on-brand);opacity:0}.flat-stop-mark:has(input:checked) svg{opacity:1}.flat-stop-other{display:none;margin:14px 0}.flat-stop-choices:has(input[value=""]:checked) .flat-stop-other{display:block}.flat-stop-choices>[data-flat-confirm]{margin-top:14px}

.stop-question { min-width: 0; margin: 0 0 1rem; padding: 1rem; border: 1px solid var(--line); border-radius: 12px; }
.stop-question legend { font-weight: 700; padding: 0 .25rem; overflow-wrap: anywhere; }
.stop-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px; margin: .75rem 0; }
.stop-option { min-width: 0; padding: .75rem; border: 1px solid var(--line); border-radius: 10px; overflow-wrap: anywhere; }
.stop-option-label { display: flex; align-items: flex-start; gap: .5rem; margin: 0; }
.stop-option .hint { display: block; margin: .5rem 0 0; }
.stop-option:has(input:checked) { border-color: var(--brand); background: var(--sel); }
.stop-preview { max-width: 100%; overflow: auto; padding: .75rem; background: var(--surface-2); font-size: 12px; white-space: pre; }
.crumb { margin: 0 0 1rem; color: var(--muted); font-size: 13px; }
.crumb .mono { color: var(--ink); }
.tk-cols { display: flex; flex-wrap: wrap; gap: 22px; align-items: flex-start; }
.tk-col { flex: 2 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.tk-side { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.tk-col > .card, .tk-side > .card, .tk-side > details.card { margin: 0; }
.tk-side .quiet { margin: 0 .25rem; }
.tk-side .hostci { margin: 0; }

/* The ticket's card: a tinted header, then the body. */
.tk-head { display: flex; align-items: center; gap: 14px; padding: 0; margin: 0 0 28px; background: transparent; border: 0; }
.tk-id { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.tk-head h1 { margin: 0; font-size: 24px; line-height: 1.25; letter-spacing: -.5px; font-weight: 650; overflow-wrap: anywhere; }
.tk-head h1 .key { font-family: var(--mono, "Roboto Mono", monospace); font-weight: 400; color: var(--muted); margin-right: 4px; }
.tk-sub { margin: 0; color: var(--muted); font-size: 14px; }
.tk-head .size-why { margin: 4px 0 0; padding-left: 18px; font-size: 13px; color: var(--muted); }
.tk-head .origin { margin: 0; }
.tk-pills { flex: none; align-self: center; display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 6px; max-width: 40%; }
.tk-pills .pill { padding: 7px 15px; font-size: 14px; font-weight: 700; border-color: transparent; }
.tk-pills .pill.brand { background: var(--sel); color: var(--brand); }
.tk-pills .pill:not(.amber):not(.green):not(.brand):not(.red) { background: var(--surface-2); border-color: var(--line); }

/* Updated artifact: page-level title and progress, above the two-column detail. */
.tk-id { gap: 8px; }
.tk-key-row, .tk-progress-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.tk-progress-row .tk-pills { max-width: none; }
.tk-progress-row .pill { padding: 3px 8px; font-size: 12px; font-weight: 500; }
.tk-recorded-progress { width: 180px; max-width: 100%; }
.tk-cols { gap: 28px; }
.tk-col { gap: 28px; }
.tk-timeline-section { min-width: 0; }

/* The live log, at the top of the body while a step runs. */ .tl-top h2 { margin: 0; font-size: 15px; }

/* "What happened": a vertical line of status dots, newest on top. */
.tl-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin: 0 0 20px; }
.tl-top .seg { margin: 0; }
.tl-upcoming { display: flex; align-items: center; gap: 18px; margin: 0 0 22px; color: var(--muted); font-size: 13px; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline > li { position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: 18px; padding-bottom: 22px; }
.timeline > li:not(:last-child)::before { content: ""; position: absolute; left: 13px; top: 34px; bottom: 6px; width: 2px; border-radius: 2px; background: var(--line); }
/* Two settled, done steps in a row: the line between them reads as progress, not a plain divider.
   The line is this li's own ::before (it reaches down to the next li), so "between two done steps"
   needs this li done AND its next sibling done. */
.timeline > li:is(.passed, .st-done):has(+ li:is(.passed, .st-done))::before { background: var(--ok); }
.tl-dot { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; color: var(--surface); font-size: 14px; font-weight: 700; line-height: 1; }
.tl-dot svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.tl-dot.d-passed { background: var(--ok); }
.tl-dot.d-failed { background: var(--crit); box-shadow: 0 0 0 6px var(--red-halo); }
.tl-dot.d-running { background: var(--brand); box-shadow: 0 0 0 6px var(--brand-halo); }
.tl-dot.d-waiting { background: var(--attn-dot); color: var(--on-amber); box-shadow: 0 0 0 6px var(--amber-halo); }
.tl-dot.d-stopped { background: var(--attn-dot); color: var(--on-amber); }
.tl-dot.d-todo { background: var(--surface); box-shadow: inset 0 0 0 2px var(--line-2); }
.tl-dot.d-muted { background: var(--line-2); }
.tl-c { min-width: 0; display: flex; flex-direction: column; gap: 4px; padding-top: 2px; }
.tl-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.tl-head strong { font-size: 16px; line-height: 1.35; overflow-wrap: anywhere; }
.tl-end { margin-left: auto; display: inline-flex; flex-wrap: wrap; gap: 0 8px; color: var(--muted); font-size: 13px; white-space: nowrap; }
.tl-dur { font-family: var(--mono, "Roboto Mono", monospace); }
.tl-state { font-weight: 600; }
.timeline li.failed > .tl-c .tl-state, .timeline li.error > .tl-c .tl-state { color: var(--crit); }
.timeline li.running > .tl-c .tl-state { color: var(--brand); }
.tl-text { margin: 0; font-size: 14px; line-height: 1.55; }
.tl-c .row-meta { display: block; font-size: 13px; }
/* A subtask, or the line folding earlier attempts: one disclosure on the line, opening in place. */
.timeline > li > details { min-width: 0; margin: 0; padding-top: 3px; }
.timeline > li > details > summary { padding: 0; }
.tl-name { font-size: 16px; overflow-wrap: anywhere; }
.tl-meta { display: block; margin-top: 2px; color: var(--muted); font-size: 13px; }
.timeline li.tl-more > details > summary { color: var(--brand); font-weight: 600; font-size: 14px; }
/* The steps inside: the same line, smaller. */
.timeline .timeline { margin-top: 14px; }
.timeline .timeline > li { grid-template-columns: 18px minmax(0, 1fr); column-gap: 12px; padding-bottom: 14px; }
.timeline .timeline > li:not(:last-child)::before { left: 8px; top: 24px; bottom: 4px; }
.timeline .timeline .tl-dot { width: 18px; height: 18px; font-size: 11px; box-shadow: none; }
.timeline .timeline .tl-dot.d-todo { box-shadow: inset 0 0 0 2px var(--line-2); }
.timeline .timeline .tl-dot svg { width: 9px; height: 9px; }
.timeline .timeline .tl-c { padding-top: 0; }
.timeline .timeline .tl-head strong { font-size: 14px; }
.tl-earlier-h { margin: 4px 0 0; color: var(--muted); font-size: 13px; font-weight: 600; }
.timeline.tl-earlier { margin-top: 8px; }
/* The steps passed, as a bar under the line. */

/* The side column: facts as label / value rows, the amber card, the two link buttons. */
.card.tk-facts { padding: 6px 18px; border-color: var(--line); }
.tk-facts dl { margin: 0; }
.tk-facts dl > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.tk-facts dl > div:last-child { border-bottom: 0; }
.tk-facts dt { flex: none; color: var(--muted); }
.tk-facts dd { margin: 0; min-width: 0; font-weight: 500; text-align: right; overflow-wrap: anywhere; }
.tk-links { display: flex; gap: 8px; }
.tk-links .btn { flex: 1 1 0; min-width: 0; padding: 10px; text-align: center; font-size: 13px; }

/* The decision, with the slide-over panel's look: a tinted header, the why, the evidence, the buttons. */
.card.decision { padding: 0; overflow: hidden; border-color: var(--attn-line); border-radius: 22px; }
.dc-head { display: flex; align-items: center; gap: 14px; padding: 16px 24px; background: var(--attn-bg); border-bottom: 1px solid var(--attn-line); }
.dc-head h2 { margin: 0; font-size: 18px; }
.card.decision.dc-gate { border-color: var(--line); }
.dc-gate .dc-head { background: var(--surface-2); border-bottom-color: var(--line); }
.card.decision.dc-failed { border-color: var(--crit-line); }
.dc-failed .dc-head { background: var(--crit-bg); border-bottom-color: var(--crit-line); }
.dc-body { display: flex; flex-direction: column; gap: 16px; padding: 22px 24px 24px; }
.dc-body > * { margin: 0; }
.dc-why p:first-child { font-size: 16px; line-height: 1.5; }
.dc-why > :last-child { margin-bottom: 0; }
.evidence { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.evidence li { display: flex; align-items: center; gap: 12px; padding: 11px 16px; border-bottom: 1px solid var(--line); font-size: 14px; }
.evidence li:last-child { border-bottom: 0; }
.evidence .ico { margin-top: 0; }
.ev-text { flex: 1 1 auto; min-width: 0; }
.ev-val { flex: none; color: var(--muted); font-size: 12px; font-family: var(--mono, "Roboto Mono", monospace); }
.decision .actions { margin-top: 0; }
.dc-body .btn { border-radius: 999px; }
.decision textarea { max-width: none; min-height: 90px; resize: vertical; }
.dc-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.dc-buttons .btn { padding: 12px 22px; border-radius: 999px; font-size: 15px; text-align: center; }
.dc-buttons .btn.primary { flex: 1.4 1 200px; font-weight: 700; }
.dc-buttons .btn.primary:only-child { flex: 0 1 auto; min-width: 220px; }
.dc-buttons .btn.outline { flex: 1 1 160px; font-weight: 500; }
details.dc-note { margin: 0 0 .5rem; }
details.dc-note > summary { color: var(--brand); font-weight: 500; font-size: 14px; }
details.dc-note[open] > summary { margin-bottom: .5rem; }
.decision .actions > .opts { border-top-color: var(--line); }
.decision .view-only { margin: 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); font-size: 13px; line-height: 1.45; }

@media (prefers-reduced-motion: no-preference) {
  .tl-dot.d-running { animation: halo 1.8s ease-in-out infinite; }
}
@keyframes tl-shimmer { from { background-position: 200% 0; } to { background-position: 0 0; } }
/* Narrower than the two columns: one column, with the decision waiting on the person and the
   actions above the ticket card, not under its timeline (~2,100px down on a tablet). The two column
   wrappers are plain divs, so dissolving them changes no semantics. */
@media (max-width: 1023px) {
  .tk-cols { flex-direction: column; flex-wrap: nowrap; align-items: stretch; }
  .tk-col, .tk-side { display: contents; }
  .tk-col > *, .tk-side > * { order: 2; }
  .tk-col > #tk-needs, .tk-side > #tk-side { order: 1; }
  #tk-needs:empty, #tk-side:empty { display: none; }
  #tk-needs > .card, #tk-side > .card { margin: 0; }
}
@media (max-width: 640px) {
  .tk-head { flex-wrap: wrap; padding: 0; }
  .tk-id { flex-basis: calc(100% - 54px); }
  .tk-pills { max-width: none; justify-content: flex-start; }
  .dc-head { padding: 14px 16px; }
  .dc-body { padding: 18px 16px 20px; }
  .dc-buttons .btn, .dc-buttons .btn.primary:only-child { flex: 1 1 100%; min-width: 0; }
  .tl-end { margin-left: 0; }
}
@media (forced-colors: active) {
  .tl-dot { border: 2px solid CanvasText; }
}
/* Full ticket detail follows the updated artifact without changing embedded previews. */
.tk-page .crumb { margin-bottom: 16px; font-size: 12.5px; }
.tk-page .tk-head { margin-bottom: 20px; align-items: flex-end; }
.tk-page .tk-id { gap: 6px; }
.tk-page .tk-head h1 { font: 600 24px/1.25 var(--display); letter-spacing: -.01em; }
.tk-page .tk-key-row { gap: 8px; }
.tk-page .tk-progress-row { gap: 12px; }
.tk-page .tk-recorded-progress { flex: 1 1 160px; width: auto; max-width: 360px; }
.tk-page .tk-recorded-progress::-webkit-progress-bar { height: 6px; box-shadow: none; }
.tk-page .tk-recorded-progress::-webkit-progress-value { height: 6px; }
.tk-page .tk-progress-row .pill { border-radius: 99px; padding: 3px 8px; font-size: 12px; font-weight: 500; }
.tk-page .tk-sub { font-size: 13px; line-height: 1.5; }
.tk-page .tk-cols { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 28px; align-items: start; }
.tk-page .tk-col { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.tk-page .tk-side { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.tk-page .tk-side > [id] { display: flex; flex-direction: column; gap: 14px; }
.tk-page .tk-side > [id]:empty { display: none; }
.tk-page .tk-side .card { margin: 0; }
.tk-page .tk-col > *, .tk-page .tk-side > * { order: initial; }
.tk-page .tk-col > #tk-needs, .tk-page .tk-side > #tk-side { order: initial; }
.tk-page .card { padding: 16px; border: 1px solid var(--line); border-radius: 12px; box-shadow: none; }
.tk-page .card h2 { margin: 0 0 12px; font: 600 15px/1.35 var(--body); }
.tk-page .tk-facts dl > div { padding: 8px 0; border-color: var(--line); gap: 16px; font-size: 13px; }
.tk-page .tk-facts dd { font-weight: 400; color: var(--ink); font-variant-numeric: tabular-nums; }
.tk-page .tk-links { margin-top: 14px; flex-wrap: wrap; gap: 8px; }
.tk-page .tk-links .btn { flex: 0 1 auto; min-height: var(--touch-target, 28px); padding: 4px 10px; font-size: 12.5px; }
.tk-page .tk-key-row .collection-priority { margin-left: 0; }
.tk-page .tk-key-row .priority-chip { background: transparent; border: 0; padding: 0; font-size: 12.5px; font-weight: 600; }
.tk-page details.card > summary { font-size: 12.5px; font-weight: 500; color: var(--muted); }
.tk-page details.card[open] > summary { margin-bottom: 14px; }
.tk-page .card.decision { padding: 0; overflow: hidden; }
.tk-page .dc-head { padding: 16px 16px 0; border: 0; background: transparent; flex-direction: column; align-items: flex-start; gap: 14px; }
.tk-page .dc-head .stile { display: none; }
.tk-page .dc-owner { display: inline-flex; align-items: center; gap: 7px; margin: 0 0 8px; font-size: 12.5px; font-weight: 600; color: var(--attn); }
.tk-page .dc-head h2 { margin: 0; font: 600 18px/1.3 var(--display); }
.tk-page .dc-body { padding: 14px 16px 16px; gap: 14px; }
.tk-page .dc-buttons { gap: 10px; margin-top: 0; }
.tk-page .dc-body .btn, .tk-page .dc-buttons .btn, .tk-page .dc-buttons .btn.primary:only-child { flex: 0 1 auto; min-width: 0; min-height: var(--touch-target, 34px); padding: 7px 13px; border-radius: 9px; font-size: 13px; font-weight: 600; }
.tk-page .evidence { display: flex; flex-direction: column; gap: 6px; border: 0; border-radius: 0; padding: 0; }
.tk-page .evidence li { align-items: flex-start; gap: 8px; padding: 0; border: 0; font-size: 13px; line-height: 22px; }
.tk-page .evidence .ico { flex: none; margin-top: 0; }
.tk-page .dc-why { font-size: 13px; line-height: 1.6; }
.tk-page .tl-top { margin-bottom: 16px; }
.tk-page .timeline > li { grid-template-columns: 24px minmax(0,1fr); column-gap: 14px; padding-bottom: 22px; }
.tk-page .timeline > li:not(:last-child)::before { left: 11px; top: 26px; bottom: 2px; background: var(--line); }
.tk-page .timeline > li:is(.passed, .st-done):has(+ li:is(.passed, .st-done))::before { background: var(--line); }
.tk-page .tl-dot { width: 24px; height: 24px; border: 1.5px solid var(--line); box-shadow: none; }
.tk-page .tl-dot.d-passed { background: var(--ok-bg); color: var(--ok); border-color: var(--ok-line); }
.tk-page .tl-dot.d-running { background: var(--sel); color: var(--brand); border-color: var(--info-line); }
.tk-page .tl-dot.d-waiting, .tk-page .tl-dot.d-stopped { background: var(--attn-bg); color: var(--attn); border-color: var(--attn-line); }
.tk-page .tl-dot.d-failed { background: var(--crit-bg); color: var(--crit); border-color: var(--crit-line); }
.tk-page .tl-head strong { font-size: 14px; font-weight: 600; }
.tk-page .tl-end { font-size: 12.5px; }
.tk-page .tl-c { padding-top: 1px; gap: 6px; }
.tk-page .timeline > li > details { padding-top: 1px; }
.tk-page .timeline > li > details > summary { position: relative; display: grid; align-items: start; list-style: none; }
.tk-page .timeline > li > details > summary::-webkit-details-marker { display: none; }
.tk-page .timeline > li > details > summary::before { content: ''; position: absolute; left: -12px; top: 6px; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); }
.tk-page .timeline > li > details[open] > summary::before { transform: rotate(45deg); }
.tk-page .tl-name { font-size: 14px; line-height: 1.35; font-weight: 600; }
.tk-page .tl-name strong { font-weight: inherit; }
.tk-page .tl-meta { margin-top: 6px; }
.tk-page .checks-sum, .tk-page details.checks-more > summary { font-size: 14px; font-weight: 400; line-height: 1.5; }
.tk-page .checks-sum .ico { margin-top: 0; flex: none; }
.tk-page .checklist > li { gap: .6rem; padding-block: 8px; font-size: 14px; line-height: 1.5; }
.tk-page .tl-upcoming { gap: 14px; margin-bottom: 0; font-size: 12.5px; }
.tk-page .tk-priority-segment button { display: inline-flex; align-items: center; justify-content: center; gap: 4px; }
.tk-page .tk-priority-segment .collection-priority { margin: 0; }
.tk-page .tk-priority-segment button:disabled { cursor: not-allowed; opacity: .5; }
.tk-page .tk-management details.opt:has(form[data-inline-confirm]) > summary { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: var(--touch-target, 34px); padding: 0 13px; border: 1px solid var(--crit-line); border-radius: 9px; color: var(--crit); font-size: 13px; font-weight: 600; list-style: none; }
.tk-page .tk-management details.opt:has(form[data-inline-confirm]) > summary::-webkit-details-marker { display: none; }
.tk-page .tk-management details.opt:has(form[data-inline-confirm])[open] { padding: 12px 14px; background: var(--crit-bg); border: 1px solid var(--crit-line); border-radius: 10px; }
.tk-page .tk-management details.opt:has(form[data-inline-confirm])[open] > summary { border: 0; padding: 0; justify-content: flex-start; }

@media (max-width: 1240px) {
  .tk-page .tk-cols { grid-template-columns: minmax(0,1fr); }
  .tk-page .tk-col, .tk-page .tk-side { display: flex; }
}
@media (max-width: 860px) {
  .tk-page .tk-head h1 { font-size: 21px; }
  .tk-page .tk-col, .tk-page .tk-side { display: flex; }
  .tk-page .dc-buttons .btn { min-height: 44px; }
  .tk-page .tl-end { margin-left: auto; }
}

.ticket-actor-line{display:flex;align-items:flex-start;gap:8px;font-size:13px}.ticket-actor{display:inline-flex;align-items:center;gap:7px;white-space:nowrap}.ticket-actor-avatar{width:22px;height:22px;display:grid;place-items:center;border-radius:50%;background:var(--surface-2);color:var(--ink);font-size:10px;font-weight:700;flex:none}.ticket-actor-line>span:nth-child(2){flex:1;min-width:0}.ticket-actor-time{font-size:12.5px;color:var(--muted);white-space:nowrap}.ticket-actor-history .rows>li{padding:8px 0;border:0}.ticket-actor-history h2{font-size:13.5px}.ticket-actor-history .pill{margin:4px 0 0 29px}
.tk-page .tk-priority-segment .tab-track { width: 100%; }
.tk-page .tk-priority-segment .tab-track :is(button,label) { flex: 1 0 auto; min-width: max-content; gap: 5px; padding-inline: 4px; }
@media (max-width: 360px) {
  .tk-page .tk-priority-segment .tab-track :is(button,label) { gap: 4px; padding-inline: 1px; }
}
.decision-technical { margin-bottom: 16px; }

:root.pn-open { overflow: hidden; }
.pn-overlay { position: fixed; inset: 0; z-index: 50; display: flex; justify-content: flex-end; background: var(--scrim); }
:root[data-theme="dark"] .pn-overlay { background: var(--scrim); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .pn-overlay { background: var(--scrim); }
}
.pn-sheet { width: min(540px, 100%); height: 100%; overflow-y: auto; overscroll-behavior: contain; background: var(--surface); box-shadow: -20px 0 50px color-mix(in srgb, var(--shadow-ink) 25%, transparent); outline: none; }
.pn { display: flex; flex-direction: column; min-height: 100%; }
.pn .dc-head { padding: 18px 24px; }
.pn-id { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.pn-id h2 { margin: 0; font-size: 18px; line-height: 1.3; font-weight: 700; overflow-wrap: anywhere; }
.pn-id h2:focus { outline: none; }
.pn-id .key { font-family: var(--mono, "Roboto Mono", monospace); font-weight: 400; color: var(--muted); margin-right: 6px; }
.pn-sub { margin: 0; color: var(--muted); font-size: 14px; }
.pn-end { flex: none; align-self: flex-start; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; margin: -4px -6px 0 0; }
.pn-close { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--muted); font: inherit; font-size: 22px; line-height: 1; cursor: pointer; }
.pn-close:hover { background: var(--line); color: var(--ink); }
.pn-end .pill { padding: 4px 11px; font-size: 12px; font-weight: 700; }
.pn .dc-body > .notice { margin: 0; }
.pn-foot { margin: 0; padding: 0 24px 24px; font-size: 14px; font-weight: 500; }
.pn-foot a { text-decoration: none; }
.pn-foot a:hover { text-decoration: underline; }
.pn-loading { padding: 22px 24px; }
@media (prefers-reduced-motion: no-preference) {
  .pn-overlay { animation: pn-fade .2s ease-out; }
  .pn-sheet { animation: pn-slide .32s cubic-bezier(.2, .8, .2, 1); }
}
@keyframes pn-fade { from { opacity: 0; } }
@keyframes pn-slide { from { transform: translateX(100%); } }
@media (forced-colors: active) {
  .pn-sheet { border-left: 2px solid CanvasText; }
}

.seo-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; margin-bottom: 18px; }
.seo-head h1 { margin: 0; overflow-wrap: anywhere; }
.seo-head .lede { flex-basis: 100%; margin: 0; color: var(--text); font-size: 14px; }
.seo-title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; min-width: 0; }
.seo-as-of { color: var(--muted); font-size: 13px; }
.seo-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.seo-pills { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.seo-pills a { padding: 4px 11px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); color: var(--text); font-size: 13px; text-decoration: none; }
.seo-pills a:hover { color: var(--ink); border-color: var(--muted); }
.seo-pills a[aria-current] { border-color: var(--brand); background: var(--sel); color: var(--ink); font-weight: 600; }
.seo-chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border: 1px solid transparent; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.seo-chip.good { background: var(--ok-bg); border-color: var(--ok-line); color: var(--ok); }
.seo-chip.attention { background: var(--attn-bg); border-color: var(--attn-line); color: var(--attn); }
.seo-chip.failing { background: var(--crit-bg); border-color: var(--crit-line); color: var(--crit); }
.seo-chip.neutral { background: var(--neutral-bg); border-color: var(--neutral-line); color: var(--neutral); }
.seo-card { margin-bottom: 18px; padding: 20px 22px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.seo-card-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-bottom: 14px; }
.seo-card-head h2 { margin: 0; font-size: 19px; overflow-wrap: anywhere; }
.seo-card-head a { color: var(--ink); text-decoration: none; }
.seo-card-head a:hover { text-decoration: underline; }
.seo-card-head .seo-as-of { margin-left: auto; }
.seo-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.seo-tile { display: block; min-width: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); color: var(--ink); text-decoration: none; }
a.seo-tile:hover { border-color: var(--muted); color: var(--ink); }
.seo-tile[aria-current] { border-color: var(--brand); box-shadow: inset 0 -3px 0 var(--brand); }
.seo-tile-label { display: block; color: var(--muted); font-size: 13px; }
.seo-tile-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.seo-tile-value { font-size: 28px; line-height: 1.25; font-weight: 700; font-variant-numeric: tabular-nums; }
.seo-tile-note { display: block; color: var(--muted); font-size: 12.5px; }
.seo-tile-source { display: block; margin-top: 6px; color: var(--muted); font-size: 11.5px; }
.seo-source { margin: 6px 0 0; color: var(--muted); font-size: 12.5px; }
.seo-card h2.seo-section + .seo-source { margin: 0 0 10px; }
.seo-foot .seo-source { display: block; margin-top: 2px; }
.seo-tile.stale .seo-tile-value { color: var(--muted); font-weight: 500; }
.seo-delta { font-size: 13px; font-weight: 600; white-space: nowrap; }
.seo-delta.better { color: var(--ok); }
.seo-delta.worse { color: var(--crit); }
.seo-delta.same { color: var(--muted); }
.seo-spark { display: block; margin-top: 6px; fill: none; stroke: var(--brand); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.seo-spark.stale { stroke: var(--muted); stroke-dasharray: 3 3; }
.seo-look { margin: 14px 0 0; padding: 0; list-style: none; }
.seo-look li { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 16px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; }
.seo-look a { flex: none; font-size: 13.5px; }
.seo-look-title { margin: 16px 0 0; font-size: 13px; font-weight: 600; color: var(--muted); }
.seo-calm { margin: 14px 0 0; color: var(--muted); font-size: 14px; }
.seo-fix { margin: 8px 0 0; color: var(--text); font-size: 14px; }
.seo-open { margin: 12px 0 0; font-size: 14px; font-weight: 600; }
.seo-foot { color: var(--muted); font-size: 13px; }
.seo-see-all { margin: 8px 0 0; font-size: 13.5px; }
.seo-sort { display: none; }
.dashboard-app .seo-tabs.tab-track { margin-bottom: 16px; max-width: 100%; flex-wrap: wrap; }
.seo-tiles { margin-bottom: 14px; }
.seo-panels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.seo-panels > .seo-card { margin-bottom: 0; }
.seo-panels { margin-bottom: 18px; }
.seo-card h2.seo-section { margin: 0 0 4px; font-size: 16px; }
.seo-sub { margin: 0 0 10px; color: var(--muted); font-size: 13px; }
.seo-top { width: 100%; border-collapse: collapse; font-size: 14px; }
.seo-top td { padding: 6px 0; border-top: 1px solid var(--line); vertical-align: middle; }
.seo-top tr:first-child td { border-top: 0; }
.seo-top .seo-name { max-width: 0; width: 46%; padding-right: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seo-top .seo-fill { width: 32%; padding-right: 12px; }
.seo-top .seo-num, .seo-table .seo-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.seo-top .seo-num + .seo-num { padding-left: 10px; }
.seo-table-box { overflow-x: auto; }
.seo-table { width: 100%; }
.seo-table th { position: sticky; top: 0; background: var(--surface); }
.seo-table th a { color: inherit; }
.seo-table th[aria-sort] a { font-weight: 700; color: var(--ink); }
.seo-table th.seo-num { text-align: right; }
.seo-table td.seo-name { overflow-wrap: anywhere; }
.seo-table .seo-bar { min-width: 70px; }
.seo-table .seo-bar-cell { vertical-align: middle; }
.seo-up { color: var(--ok); }
.seo-down { color: var(--crit); }
.seo-muted, .seo-muted a, .seo-muted .seo-up, .seo-muted .seo-down { color: var(--muted); }
.seo-bar { display: block; }
.seo-bar-track { fill: var(--sunken); }
.seo-bar-fill { fill: var(--brand); }
.seo-muted .seo-bar-fill { fill: var(--muted); }
.seo-chart { margin: 14px 0 0; }
.seo-chart > svg { display: block; overflow: visible; }
.seo-grid { stroke: var(--line); stroke-width: 1; }
.seo-tick { fill: var(--muted); font-size: 12px; }
.seo-line { fill: none; stroke: var(--brand); stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round; }
.seo-line-before { fill: none; stroke: var(--muted); stroke-width: 1.5; stroke-dasharray: 5 5; stroke-linecap: round; }
.seo-area { fill: color-mix(in srgb, var(--brand) 12%, transparent); stroke: none; }
.seo-gap { fill: var(--sunken); }
.seo-dot { fill: var(--brand); stroke: var(--surface); stroke-width: 2; }
.seo-end { fill: var(--ink); font-size: 13px; font-weight: 600; paint-order: stroke; stroke: var(--surface); stroke-width: 4px; }
.seo-end-before { fill: var(--muted); font-size: 12px; paint-order: stroke; stroke: var(--surface); stroke-width: 4px; }
.seo-chart.stale .seo-line { stroke: var(--muted); stroke-dasharray: 4 4; }
.seo-chart.stale .seo-area { fill: var(--sunken); }
.seo-chart.stale .seo-dot { fill: var(--muted); }
.seo-hit { fill: transparent; }
.seo-hit:hover { fill: color-mix(in srgb, var(--brand) 8%, transparent); }
.seo-chart-data { margin-top: 6px; font-size: 13px; color: var(--muted); }
.seo-chart-data table { margin-top: 8px; }
.seo-stack { margin: 8px 0 12px; }
.seo-stack svg { display: block; border-radius: 6px; }
.seo-stack ul { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 8px 0 0; padding: 0; list-style: none; font-size: 14px; }
.seo-part.ok { fill: var(--ok); }
.seo-part.warn { fill: var(--attn-dot); }
.seo-part.bad { fill: var(--crit); }
.seo-key { display: inline-block; width: 10px; height: 10px; margin-right: 6px; border-radius: 3px; }
.seo-key.ok { background: var(--ok); }
.seo-key.warn { background: var(--attn-dot); }
.seo-key.bad { background: var(--crit); }
.seo-parts { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; padding: 0; list-style: none; }
.seo-parts li { margin: 0; }
.seo-parts a { text-decoration: none; }
.seo-parts a:hover { text-decoration: underline; }
.seo-why { margin: 0 0 10px; color: var(--text); font-size: 14px; }
.seo-could-not { margin: 0 0 12px; padding: 10px 12px; border-radius: 8px; background: var(--neutral-bg); color: var(--text); font-size: 14px; }
.seo-card h3 { margin: 14px 0 6px; font-size: 14px; }
.seo-keep { scroll-margin-top: 70px; }
@media (max-width: 860px) {
  .seo-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .seo-panels { grid-template-columns: minmax(0, 1fr); }
  .seo-card { padding: 16px; }
  .seo-card-head .seo-as-of { margin-left: 0; flex-basis: 100%; }
  .seo-tile-value { font-size: 24px; }
  .seo-look li { flex-direction: column; }
  .seo-sort { display: inline-flex; margin: 8px 0; }
  .seo-table td.seo-num { display: inline-block; width: auto; margin-right: 14px; text-align: left; }
  .seo-table .seo-bar-cell { display: none; }
}
@media (forced-colors: active) {
  .seo-line, .seo-spark { stroke: CanvasText; }
  .seo-bar-fill, .seo-dot { fill: CanvasText; }
}

.ss-repo, .ss-updated { margin: 0 0 4px; color: var(--muted); font-size: 13px; }
.ss-summary { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0 8px; color: var(--ink); font-size: 16px; font-weight: 600; line-height: 1.4; }
.ss-dot { flex: none; width: 10px; height: 10px; margin-top: 6px; border-radius: 99px; background: var(--neutral); }
.ss-dot.ss-ok { background: var(--ok); }
.ss-dot.ss-attn { background: var(--attn-dot); }
.ss-dot.ss-unknown { background: transparent; box-shadow: inset 0 0 0 2px var(--neutral); }
ul.service-status { list-style: none; margin: 0; padding: 0; }
ul.service-status > li { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; padding: 12px 0; border-top: 1px solid var(--line); }
.ss-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ss-name { color: var(--ink); font-weight: 600; text-align: left; }
.ss-text { color: var(--muted); font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; }
.ss-pill { flex: none; padding: 2px 9px; border: 1px solid transparent; border-radius: 99px; font-size: 12px; font-weight: 600; line-height: 1.5; white-space: nowrap; }
.ss-pill.ss-flowing { background: var(--ok-bg); border-color: var(--ok-line); color: var(--ok); }
.ss-pill.ss-degraded { background: var(--attn-bg); border-color: var(--attn-line); color: var(--attn); }
.ss-pill.ss-idle { background: var(--neutral-bg); border-color: var(--neutral-line); color: var(--neutral); }
.ss-pill.ss-unknown { background: transparent; border-color: var(--line-2); color: var(--muted); }

.runs-artifact .lede { margin-bottom: 20px; }
.run-health { container-type: inline-size; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.run-pipe-scroll { overflow-x: auto; }
.run-stage-sub, .run-stage-today { font-size: 12px; color: var(--muted); }
.run-stage-word-attn { color: var(--attn); }
.run-stage-word-paused { color: var(--attn); }
.run-stage-word-crit { color: var(--crit); }
.run-stage-word-neutral { color: var(--muted); }
.run-stage-today b { color: var(--crit); font-weight: 600; }
.run-capacity { padding: 10px 14px; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 12px 12px; background: var(--surface-2); }
.run-health:has(+ .run-capacity) { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.run-capacity .notice { padding: 0; border: 0; margin: 0; background: none; font-size: 12px; }
.run-capacity .run-capacity-summary > details > div > * + * { margin-top: 8px; }
.run-capacity-summary{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;font-size:12px;min-height:24px}.run-capacity-summary>strong{font-weight:600}.run-capacity-summary>details{margin-left:auto}.run-capacity-summary>details>div{padding-top:10px;max-width:60ch}.run-capacity-summary>details p{margin:6px 0}
.runs-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 28px 0 16px; }
.runs-controls .seg { margin: 0; }
.run-view { margin-left: auto !important; }
.run-view button, .run-view a { text-decoration:none; display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 8px; padding: 6px 10px; background: transparent; color: var(--muted); font-size: 13px; cursor: pointer; }
.runs-artifact .runs-controls .run-view [aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px color-mix(in srgb, var(--shadow-ink) 10%, transparent); }
.runs-artifact .run-list { flex: 1 1 420px; min-width: 0; list-style: none; margin: 0; padding: 6px; min-width: 0; }
.run-row { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px; border: 0; border-radius: 9px; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.run-row:hover { background: var(--hover); }
.run-row[aria-pressed="true"] { background: var(--sel); box-shadow: inset 0 0 0 1px var(--line-2); }
.run-row-body { flex: 1; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.run-row-title { display: flex; align-items: baseline; gap: 8px; color: var(--ink); font-weight: 600; }
.run-row-sub { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.run-row-trail { min-width: 72px; font-size: 12px; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.run-status-icon { width: 22px; height: 22px; display: grid; place-items: center; flex: none; border: 0; border-radius: 50%; background: var(--neutral-bg); color: var(--neutral); font-size: 14px; }
.run-pill { display: inline-flex; gap: 6px; align-items: center; border: 0; height: 22px; border-radius: 99px; padding: 0 8px; background: var(--neutral-bg); color: var(--neutral); white-space: nowrap; font-size: 12px; font-weight: 600; }
.runs-artifact .tone-info { color: var(--info); border-color: var(--info-line); background: var(--info-bg); }
.runs-artifact .tone-ok { color: var(--ok); border-color: var(--ok-line); background: var(--ok-bg); }
.runs-artifact .tone-crit { color: var(--crit); border-color: var(--crit-line); background: var(--crit-bg); }
.runs-artifact .tone-attn { color: var(--attn); border-color: var(--attn-line); background: var(--attn-bg); }
.run-live-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.run-detail-stack { display: flex; flex-direction: column; gap: 14px; }
.run-detail-stack p, .run-detail-stack h2 { margin: 0; }
.run-detail-stack h2 { font: 600 19px/1.25 var(--display); }
.run-detail-head h2 { line-height: 1.2; }
.run-detail-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.run-detail-head > .key { margin-right: auto; }
.runs-kv { display: grid; grid-template-columns: auto minmax(0,1fr); margin: 0; }
.runs-kv dt, .runs-kv dd { padding: 8px 0; border-bottom: 1px solid var(--line); }
.runs-kv dt { color: var(--muted); }
.runs-kv dd { padding-left: 16px; margin: 0; text-align: right; color: var(--ink); overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.runs-kv > :nth-last-child(-n+2) { border-bottom: 0; }
.run-detail-stack .step-log { margin: 0; }
.run-detail-stack .log { max-height: 320px; margin: 0; font: 12.5px/1.6 var(--mono); background: var(--sunken); color: var(--ink); border: 0; border-radius: 8px; padding: 10px 12px; }
.run-ticket-row { align-items: flex-start; }
.run-ticket-sub { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; flex-wrap: wrap; }
.run-ticket-sub > span:first-child { flex: 1; }
.runs-empty-icon { display: grid; place-items: center; width: 44px; height: 44px; margin: 0; border-radius: 12px; color: var(--neutral); background: var(--neutral-bg); }
.runs-empty { display:flex; flex-direction:column; align-items:center; gap:10px; text-align:center; padding:40px 16px; color:var(--muted); }
.runs-empty h2 { margin:0; font:600 15px/1.35 var(--body); color:var(--ink); }
.runs-empty p { margin:0; max-width:52ch; }
.runs-artifact > .runs-empty-heading { margin-bottom:20px; }
.runs-artifact [hidden] { display: none !important; }


.runs-artifact .lede { font-size: 14px; line-height: 1.5; color: var(--text); }
.runs-artifact [data-run-attempt-controls] { min-width: 0; max-width: 100%; }
.runs-artifact [data-state-nav] { display: flex; flex-wrap: nowrap; overflow-x: auto; width: fit-content; max-width: 100%; min-height: auto; }
.runs-artifact .run-list > li { margin: 0; padding: 0; border: 0; }
.runs-artifact .run-list { display: block; }
.run-detail-stack .hint { font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.run-detail-stack .step-log summary { font-size: 12.5px; font-weight: 500; color: var(--muted); }
.runs-artifact .run-detail-stack .btn.primary { height: auto; min-height: var(--touch-target, 34px); padding: 0 13px; }
.run-detail-stack details[open] > summary { margin-bottom: 8px; }
.run-detail-stack .mono { font-size: 12.5px; }

.run-ticket-row > .stile { width: 22px; height: 22px; margin-top: 2px; border: 0; border-radius: 50%; }
.run-ticket-row > .stile svg { width: 13px; height: 13px; }
.run-ticket-what { display: flex; align-items: flex-start; gap: normal; min-width: 0; }
.run-ticket-updated { margin-left: auto; white-space: nowrap; font-size: 12px; }
.run-ticket-sub { align-items: baseline; }
.runs-kv .tone-info, .runs-kv .tone-ok, .runs-kv .tone-crit, .runs-kv .tone-attn { background: transparent; font-weight: 600; }

.runs-artifact .key { font: 500 12px var(--mono); color: var(--muted); }
.runs-artifact .chip { display: inline-flex; align-items: center; flex: none; gap: 4px; height: 18px; line-height: 1; padding: 0 7px 0 5px; border-color: var(--line-2); font-size: 11.5px; color: var(--text); }
.runs-artifact .chip .ring { width: 13px; height: 13px; margin: 0; }

.runs-artifact [data-state-nav] { scrollbar-width: none; }
.runs-artifact [data-state-nav]::-webkit-scrollbar { display: none; }
.runs-artifact [data-state-nav][data-fade="r"] { mask-image: linear-gradient(to right, var(--mask-ink) calc(100% - 28px), transparent); }
.runs-artifact [data-state-nav][data-fade="l"] { mask-image: linear-gradient(to right, transparent, var(--mask-ink) 28px); }
.runs-artifact [data-state-nav][data-fade="lr"] { mask-image: linear-gradient(to right, transparent, var(--mask-ink) 28px, var(--mask-ink) calc(100% - 28px), transparent); }

.run-ticket-row .collection-priority { font-size: 12px; }
.run-ticket-row .run-row-title { display: block; align-items: normal; gap: normal; }
@keyframes run-sheet-in { from { transform: translateX(20px); opacity: .5; } }

@media (prefers-reduced-motion: no-preference) { .run-pill.tone-info .run-live-dot { animation: run-status-ping 1.8s ease-out infinite; } }
@keyframes run-status-ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--info) 60%, transparent); } 70% { box-shadow: 0 0 0 5px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }


.activity-artifact .act-head { display: flex; flex-direction: column; gap: 6px; margin-bottom: 20px; }
.activity-artifact .act-head h1, .activity-artifact .act-head .lede { margin: 0; }
.activity-artifact .act-head .lede { font-size: 14px; line-height: 1.5; color: var(--text); }
.activity-artifact .act-history { display:flex; align-items:center; flex-wrap:wrap; gap:12px; margin-top:12px; }
.act-filter-wrap { margin-bottom: 12px; }
.activity-artifact .act-filters { display: flex; flex-wrap: nowrap; gap: 2px; width: fit-content; max-width: 100%; overflow-x: auto; padding: 3px; margin: 0; border-radius: 10px; background: var(--sunken); scrollbar-width: none; }
.activity-artifact .act-filters::-webkit-scrollbar { display: none; }
.activity-artifact .act-filters button { display: inline-flex; align-items: center; flex: none; gap: 7px; height: var(--touch-target, 30px); min-height: var(--touch-target, 30px); padding: 0 11px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); font: 500 13px/1 var(--body); white-space: nowrap; cursor: pointer; }
.activity-artifact .act-filters button:hover { color: var(--ink); }
.activity-artifact .act-filters button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px color-mix(in srgb, var(--shadow-ink) 8%, transparent); }
.activity-artifact .act-filters .count { padding: 0; margin: 0; border: 0; border-radius: 0; background: none; box-shadow: none; color: var(--muted); font-size: 11.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.activity-artifact .act-list { list-style: none; margin: 0; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.activity-artifact .act-row { display: flex; flex-wrap: wrap; gap: 4px 14px; padding: 11px 4px; margin: 0; align-items: flex-start; }
.activity-artifact .act-row + .act-row { border-top: 1px solid var(--line); }
.activity-artifact .act-row[hidden] { display: none; }
.activity-artifact .act-row[data-activity-first] { border-top: 0; }
.act-when { flex:none; width:110px; white-space:pre; font-size:12px; line-height:20px; padding-top:1px; color: var(--muted); font-variant-numeric: tabular-nums; }
.act-who { flex:none; width:100px; min-width:0; display: inline-flex; align-items: center; gap: 7px; font-weight: 600; color: var(--ink); }
.act-name { min-width: 0; white-space: normal; overflow-wrap: anywhere; }
.act-avatar { width: 22px; height: 22px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 10px; font-weight: 700; background: var(--neutral-bg); color: var(--neutral); }
.act-avatar.ap { background: var(--brand); color: var(--on-brand); }
.act-avatar.you { background: var(--ink); color: var(--surface); }
.act-what { flex:1 1 260px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.activity-artifact .act-ref { display: inline-block; border: 0; background: none; padding: 0; font: inherit; color: var(--muted); text-align: left; cursor: pointer; text-decoration: none; }
.activity-artifact .act-ref:hover { color: var(--ink); text-decoration: underline; }
.act-text { overflow-wrap: anywhere; }
.act-text::first-letter { text-transform: uppercase; }
.act-key { font: 500 12px var(--mono); color: var(--muted); }
.act-times { color: var(--muted); font-size: 12.5px; }
.act-detail { color: var(--muted); font-size: 12.5px; overflow-wrap: anywhere; }
.activity-artifact .act-empty { text-align: center; padding: 40px 16px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.activity-artifact .act-empty h2 { font:600 15px/1.35 var(--body); color:var(--ink); }
.activity-artifact .act-empty h2, .activity-artifact .act-empty p { margin: 0; }
.activity-artifact .act-empty p { max-width: 52ch; color: var(--muted); }
.act-empty-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; color: var(--neutral); background: var(--neutral-bg); }
.act-filters[data-fade="r"] { mask-image: linear-gradient(to right, var(--mask-ink) calc(100% - 28px), transparent); }
.act-filters[data-fade="l"] { mask-image: linear-gradient(to right, transparent, var(--mask-ink) 28px); }
.act-filters[data-fade="lr"] { mask-image: linear-gradient(to right, transparent, var(--mask-ink) 28px, var(--mask-ink) calc(100% - 28px), transparent); }

.setup-card { border-color: var(--line); border-radius: 22px; padding: 26px 30px 30px; }
/* A section's heading and its one line sit above its values, which take the card's whole width: a
   column of its own beside them stood mostly empty beside a long list. */
.setup-sec + .setup-sec { border-top: 1px solid var(--line); margin-top: 28px; padding-top: 28px; }
.setup-about { margin-bottom: 16px; }
.setup-about h2 { font-size: 15px; font-weight: 700; margin: 0 0 4px; }
.setup-about p { color: var(--muted); font-size: 13px; line-height: 1.4; margin: 0; max-width: 72ch; }
.setup-body { min-width: 0; }
.setup-body > .empty { padding: 0; margin: 0; font-size: 14px; }

.connections > li { flex-wrap: wrap; }
.connection-main { flex: 1 1 220px; min-width: 0; }
.connection-main strong { font-size: 14px; }
.connection-destination { display: block; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.connections .pill { flex: none; }
.connection-link { font-size: 13px; }
.connection-entry { margin: 12px 0 0; }

.setup-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.setup-list > li { display: flex; align-items: center; gap: 14px; padding: 13px 18px; border-top: 1px solid var(--line); }
.setup-list > li:first-child { border-top: 0; }
.setup-list .hint { font-size: 13px; line-height: 1.4; margin: 2px 0 0; }

.gate { background: var(--surface); }
.gate:not(.on) { background: color-mix(in srgb, var(--surface-2) 55%, var(--surface)); }
.gate .stile { width: 34px; height: 34px; border-radius: 9px; }
.gate .stile svg { width: 15px; height: 15px; stroke-width: 1.6; }
.gate:not(.on) .stile { border-color: var(--line); }
/* A switch moved but not saved yet lights its shield already, without a script. */
.gate-main { flex: 1 1 auto; min-width: 0; }
.gate-main strong { font-size: 14px; }
.gate-main label { display: inline; margin: 0; font-weight: inherit; }
.gate-state { flex: none; }

.person { flex-wrap: wrap; }
/* The role dropdown matches the "Change role" button beside it: the same height, outline and pill. */
.quiet-danger { background: none; border: 0; padding: 4px 2px; font: inherit; font-size: 13px; font-weight: 500; color: var(--crit); cursor: pointer; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; }
.quiet-danger:hover { text-decoration-color: currentColor; }
/* The save bar at the foot of a settings tab, kept in view while the tab scrolls; it lights up once
   something on the page is changed and not saved (client-setup.ts). */
.save-bar { position: sticky; bottom: 14px; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 26px -10px -10px; padding: 12px 14px 12px 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: 0 6px 18px color-mix(in srgb, var(--shadow-ink) 10%, transparent); }
.save-bar[data-dirty] { border-color: var(--info-line); background: var(--sel); }
.save-state { margin: 0; color: var(--muted); font-size: 13.5px; }
.save-bar[data-dirty] .save-state { color: var(--ink); font-weight: 600; }
.save-bar .btn:disabled { opacity: .55; cursor: default; }
/* A tab holding an unsaved change: a brand dot beside its name. */
.setup-tabs a[data-unsaved]::after { content: ''; display: inline-block; width: 7px; height: 7px; margin-left: .4em; border-radius: 50%; background: var(--brand); vertical-align: middle; }
/* A list value (check names) as chips. */
.chips { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 6px 0 0; padding: 0; }
.chip { padding: 3px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2); font-size: 12.5px; overflow-wrap: anywhere; }
/* The tabs under the lede: the shared segmented control (.seg), with a dot on one that needs an admin. */
.setup-tabs { margin: 0 0 1rem; }
.setup-card[hidden] { display: none; }
.setup-tabs .tab-attention { display: inline-block; width: 7px; height: 7px; margin-left: .35em; border-radius: 50%; background: var(--attn-dot); vertical-align: middle; }
@media (max-width: 640px) {
  .setup-card { padding: 20px 16px 22px; border-radius: 18px; }
  .setup-sec + .setup-sec { margin-top: 22px; padding-top: 22px; }
  .setup-list > li { padding: 12px 14px; gap: 12px; }
  .gate .stile { display: none; }
  /* As wide as its longest role, so the dropdown, Change role and Remove share one row. */
  /* Above the phone's bottom tab bar (mobile-css.ts), not behind it. */
  .save-bar { bottom: calc(var(--tabbar-h, 0px) + env(safe-area-inset-bottom) + 10px); margin: 22px -6px -6px; padding: 10px 10px 10px 14px; }
}
/* The OpenCode model provider field is an OpenCode account's own, so it shows only while the form's
   Provider dropdown reads OpenCode (the form holds both selects). Where the browser lacks :has() the
   field stays visible, and the server still refuses an account with a provider it cannot bring. */
form:has(#acc-provider):not(:has(#acc-runner option[value=opencode]:checked)) .field:has(#acc-provider) { display: none; }
form:has(#acc-omp-provider):not(:has(#acc-runner option[value=omp]:checked)) .field:has(#acc-omp-provider) { display: none; }

/* How the accounts are used: a bordered box like the steps one below, each choice its radio beside its
   name with what it means under the name, then Save clear of the box and the limits line clear of Save. */
.account-limits { margin: 16px 0 0; }

/* Account forms override the gate row's inline labels without changing other setup sections. */
.ai-account-list { display: grid; gap: 20px; border: 0; border-radius: 0; overflow: visible; margin: 18px 0 24px; }
.setup-list.ai-account-list > .ai-account { padding: 20px; border: 1px solid var(--line-2); border-radius: 16px; box-shadow: 0 3px 10px color-mix(in srgb, var(--shadow-ink) 8%, transparent); }
.account-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; overflow-wrap: anywhere; }
.account-heading .pill { white-space: normal; }
/* "Edit" and "Add an account" are buttons that open their forms below them. */ .acct-add { margin-top: 12px; } .acct-add > summary { list-style: none; display: inline-flex; } .acct-add > summary::-webkit-details-marker { display: none; }
.acct-add { margin: 0 0 18px; }
.acct-add > form { margin-top: 14px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 16px; }
.account-toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 12px; }
.account-toolbar form { margin: 0; }
.account-controls { display: grid; gap: 20px; margin-top: 18px; }
.account-controls form { display: grid; justify-items: start; gap: 10px; margin: 0; }
.account-controls .field { width: 100%; min-width: 0; }
.ai-account .field > label { display: block; margin-bottom: 6px; font-weight: 500; }
.ai-account .field input { box-sizing: border-box; max-width: 100%; }
.ai-account .choice { display: inline-flex; align-items: center; gap: 8px; }
.ai-account .choice input { flex: none; margin: 0; }
.account-stages { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px 16px; box-sizing: border-box; width: 100%; min-width: 0; margin: 0; padding: 14px 16px 16px; border: 1px solid var(--line); border-radius: 12px; }
.account-stages legend { padding: 0 6px; font-weight: 500; }
.account-pacing { display: grid; gap: 10px; min-width: 0; margin: 12px 0; padding: 14px; border: 1px solid var(--line); border-radius: 12px; }
.account-pacing legend { font-weight: 500; overflow-wrap: anywhere; }
.ai-account .account-pacing .choice { display: flex; white-space: normal; }
.account-stages .hint { grid-column: 1 / -1; }
.ai-account .field .hint { margin-top: 6px; }
.account-remove { border-top: 1px solid var(--line); padding-top: 18px; }
@media (max-width: 640px) {
  .setup-list.ai-account-list > .ai-account { padding: 16px; }
  .account-stages { grid-template-columns: 1fr; }
}

/* "Steps at once" is a small number, not a sentence: a short field reads as the dial it is. */
.acct-slots input[type=number] { max-width: 7rem; }
.acct-slots .hint { max-width: 24rem; }

/* The one-time code a ChatGPT device sign-in shows: the one thing on the page to copy, so it
   stands out at a glance and is easy to hit exactly, in the dashboard's mono face. */
.device-code { font-size: 1.5rem; font-weight: 600; letter-spacing: .12em; margin: .5rem 0 .75rem; }

/* Each runner's own credential hint, only while its option is picked (the same :has() pattern as
   the OpenCode model provider field); a browser without :has() keeps all three, each naming its
   runner, which still reads. */
form:has(#acc-runner) .hint.cred { display: none; }
form:has(#acc-runner option[value=claude-code]:checked) .cred-claude { display: block; }
form:has(#acc-runner option[value=codex]:checked) .cred-codex { display: block; }
form:has(#acc-runner option[value=opencode]:checked) .cred-opencode { display: block; }
form:has(#acc-runner option[value=omp]:checked) .cred-omp { display: block; }
.signin-hint { display: none; }
form:has(#acc-runner option[value=chatgpt]:checked) .signin-hint { display: block; }
form:has(#acc-runner option[value=chatgpt]:checked) .account-credential { display: none; }
.copilot-hint { display: none; }
form:has(#acc-runner option[value=github-copilot]:checked) .copilot-hint { display: block; }
form:has(#acc-runner option[value=github-copilot]:checked) .account-credential { display: none; }
form:has(#acc-runner):not(:has(#acc-runner option[value=claude-code]:checked)) .claude-seat { display: none; }

.guided-onboarding .setup-list { margin-bottom: 16px; }
.guided-onboarding .onboarding-advanced { margin: 16px 0; }
.guided-onboarding .onboarding-advanced > summary { color: var(--brand); font-weight: 600; padding: 4px 0; }
.guided-onboarding .onboarding-advanced[open] > summary { margin-bottom: 8px; }
.onboarding-welcome { overflow-wrap: anywhere; }
.onboarding-welcome > h1, .onboarding-welcome > p { margin-bottom: 0; }
@media (max-width: 640px) { .onboarding-welcome .btn { width: 100%; }
  .guided-onboarding .ob-head h1 { font-size: 24px; }
}

/* The wizard: the steps down the left, one step's card on the right, Back and Continue under it. */
@media (min-width: 641px) { main.wrap:has(> .wz) { max-width: 1120px; } }
.ob.wz { max-width: none; gap: 24px; }
.wz .ob-head { margin: 0; }
.wz .ob-head h1 { margin: 8px 0 0; font: 600 24px/1.25 var(--display); letter-spacing: -.01em; }
.wz-of { margin: 0; color: var(--muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.wz .lede { font-size: 14px; line-height: 1.5; color: var(--text); max-width: 72ch; }
.wz-grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 32px; align-items: start; }
.wz-rail { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 6px; }
.wz-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.wz-link { display: flex; gap: 10px; align-items: center; min-height: 44px; padding: 10px; border-radius: 9px; color: var(--text); text-decoration: none; }
.wz-link:hover { background: var(--sel); }
.wz-link.is-current { background: var(--sel); color: var(--ink); }
.wz-link .ob-num { width: 22px; height: 22px; font-size: 12px; }
.wz-link.is-current .ob-num { border-color: var(--line-2); background: transparent; color: var(--ink); }
.wz-text { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.wz-text strong { font-size: 14px; font-weight: 400; line-height: 1.4; }
.wz-link.is-current .wz-text strong { font-weight: 600; }
.wz-link.is-todo { color: var(--muted); }
.wz-link.is-todo .ob-num { background: transparent; color: var(--muted); }
.wz-link:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.wz-card { margin: 0; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.wz-card :is(input[type=text], input[type=email], input[type=password], input[type=number], textarea) { max-width: none; }
.wz-card > .lede { margin: 0 0 12px; }
.wz-card h2 { margin: 18px 0 6px; font: 600 15px/1.35 var(--body); }
.wz-card h3 { margin: 16px 0 4px; font: 600 13.5px/1.35 var(--body); }
.wz-card > .stack, .wz-card .wz-action { margin-top: 12px; }
.wz-empty { margin: 4px 0; padding: 20px; border: 1px dashed var(--line-2); border-radius: 12px; background: var(--surface-2); }
.wz-empty h2 { margin: 0 0 10px; }
.wz-empty p { margin: 0 0 12px; color: var(--muted); }
.wz-empty .wz-action { margin-top: 0; }
.wz-ok, .wz-warn, .wz-wait { margin: 8px 0; padding: 12px 14px; border-radius: 12px; border: 1px solid; font-size: 14px; }
.wz-ok { background: var(--ok-bg); border-color: var(--ok-line); }
.wz-warn { background: var(--crit-bg); border-color: var(--crit-line); }
.wz-wait { background: var(--attn-bg); border-color: var(--attn-line); }
.wz-needs { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.wz-needs li { display: flex; align-items: baseline; gap: 10px; }
.wz-needs li::before { content: "\2192"; color: var(--muted); }

.wz-review { margin: 8px 0 4px; }
.wz-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.wz-action:has(> .btn + .btn) { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
/* An action that posts (the AI step's Undo) is a form: its button lines up with Back and Continue. */
.wz-foot form { display: contents; }
.wz-foot .btn.primary::after, .wz-action .btn.primary::after { content: '\2192'; }
.wz .btn:disabled { border-style: solid; opacity: .45; cursor: not-allowed; }
.wz-safeguards-line { margin: 16px 0 0; }
/* Choices as cards: ticket sources, ways to connect an AI account. */
.wz-choices { margin: 8px 0 4px; padding: 0; border: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.wz-choices > legend { margin-bottom: 8px; font: 600 15px/1.35 var(--body); }
.wz-choice { display: flex; gap: 12px; align-items: flex-start; min-width: 0; margin: 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; font-weight: 400; cursor: pointer; }
.wz-choice:has(input:checked) { border-color: var(--brand); background: var(--sel); }
.wz-choice input { flex: 0 0 auto; margin-top: 4px; }
.wz-choice > span { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; overflow-wrap: anywhere; }
.wz-choice strong { font-weight: 600; }
.wz-choice > span > span:not(.pill) { font-size: 13px; color: var(--muted); }
.wz-choice .pill { align-self: flex-start; max-width: 100%; white-space: normal; line-height: 1.4; border-color: transparent; background: var(--ok-bg); color: var(--ok); }
.wz-sources { list-style: none; margin: 4px 0 8px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.wz-source { display: grid; grid-template-rows: subgrid; grid-row: span 3; align-items: start; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; }
.wz-source.is-on { border-color: var(--info-line); background: var(--sel); }
.wz-source > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: subgrid; grid-row: span 2; align-items: start; gap: 12px 10px; min-width: 0; }
.wz-source > div > .pill { justify-self: start; }
.wz-source > div > span:not(.pill) { grid-column: 1 / -1; align-self: start; overflow-wrap: anywhere; font-size: 13px; color: var(--muted); }
.wz-label-chip { padding: 2px 8px; border-radius: 6px; background: var(--line); }
.wz-methods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 8px 0; }
.wz-method { display: contents; }
.wz-method::details-content { display: contents; }
.wz-method[open] > summary { border-color: var(--brand); background: var(--sel); box-shadow: inset 0 0 0 1px var(--brand); }
.wz-method > summary { grid-row: 1; position: relative; display: flex; flex-direction: column; gap: 4px; padding: 14px 14px 14px 36px; border: 1px solid var(--line-2); border-radius: 10px; cursor: pointer; list-style: none; }
.wz-method > summary::before { content: ''; position: absolute; top: 18px; left: 14px; width: 12px; height: 12px; border: 2px solid var(--line-2); border-radius: 50%; }
.wz-method[open] > summary::before { background: var(--brand); border-color: var(--brand); box-shadow: inset 0 0 0 2px var(--surface); }
.wz-method > summary::-webkit-details-marker { display: none; }
.wz-method > summary > span:not(.pill) { grid-column: 1; font-size: 13px; color: var(--muted); }
.wz-method > summary > .pill { align-self: flex-start; }
.wz-method-body { grid-row: 2; grid-column: 1 / -1; padding: 8px 0 0; }
.wz-method:not([open]) > .wz-method-body { display: none; }
.wz-method-body ol { margin: 6px 0 0; padding-left: 20px; }
.wz-ok > p, .wz-warn > p, .wz-wait > p { margin: 4px 0 0; }
.wz-card .wz-activation { margin: 0 0 8px; padding: 16px 18px; }
.wz-card .wz-activation > h2 { margin: 0 0 6px; font: 600 18px/1.3 var(--display); }
.wz-facts { margin: 12px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.wz-facts > div { min-width: 0; }
.wz-facts dt { color: var(--muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.wz-facts dd { margin: 4px 0 0; overflow-wrap: anywhere; }
@media (max-width: 640px) { .wz-facts { grid-template-columns: minmax(0, 1fr); } }
.wz-handover { margin: 8px 0; padding-left: 22px; display: flex; flex-direction: column; gap: 14px; }
.wz-handover > li > p { margin: 4px 0 0; }
.wz-checks { margin: 6px 0 0; padding-left: 18px; font-size: 14px; }
.wz-invite { margin-top: 24px; padding-top: 4px; border-top: 1px solid var(--line); }
.wz-invite h2 .hint { font-weight: 400; }
@media (max-width: 900px) {
  .wz-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .wz-rail { position: static; }
}
@media (max-width: 640px) {
  .wz-methods { display: flex; flex-direction: column; }
  .wz-method { display: block; }
  .wz-choices, .wz-sources { grid-template-columns: minmax(0, 1fr); }
  .wz-foot .btn { flex: 1; text-align: center; }
  /* Too narrow for three: the AI step's Undo takes its own row under Back and Continue. */
  .wz-foot form .btn { flex: 1 0 100%; order: 1; }
}



.notification-toasts { position:fixed; z-index:58; right:20px; bottom:20px; display:flex; flex-direction:column; gap:10px; width:min(380px,calc(100vw - 32px)); }
.notification-toast { display:flex; gap:12px; align-items:flex-start; padding:14px 8px 14px 14px; border-radius:14px; background:var(--surface-2); border:1px solid var(--line-2); box-shadow:var(--shadow-pop); }
.notification-toast-content { flex:1; display:flex; flex-direction:column; gap:4px; min-width:0; }
.notification-toast-heading { display:flex; align-items:center; gap:8px; color:var(--ink); }
.notification-toast-icon { width:22px; height:22px; flex:none; border-radius:50%; display:grid; place-items:center; color:var(--attn); background:var(--attn-bg); }
.notification-toast-content > span { color:var(--muted); font-size:13px; }
.notification-toast-actions { display:flex; align-items:center; gap:8px; margin-top:8px; }
.notification-toasts .notification-toast .notification-toast-actions > :is(button,a) { display:inline-flex; align-items:center; gap:7px; height:28px; min-height:28px; padding:0 9px; border-radius:7px; border:0; background:transparent; color:var(--text); font:600 12.5px/1 var(--body); cursor:pointer; text-decoration:none; }
.notification-toasts .notification-toast .notification-toast-actions > .primary { background:var(--brand); color:var(--on-brand); }
.notification-toast-dismiss { width:28px; height:28px; margin-top:-4px; display:grid; place-items:center; border:0; border-radius:9px; background:transparent; color:var(--muted); cursor:pointer; }
@media (max-width:860px) {
  .notification-toasts .notification-toast .notification-toast-actions > :is(button,a),
  .notification-toast-dismiss { min-width:44px; min-height:44px; height:44px; }
  .notification-toast-dismiss { flex:none; }
}

.top-inner { padding-left: max(1rem, env(safe-area-inset-left)); padding-right: max(1rem, env(safe-area-inset-right)); }
main.wrap { padding-left: max(1rem, env(safe-area-inset-left)); padding-right: max(1rem, env(safe-area-inset-right)); }
.center { padding: max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left)); }
/* The header's menus sit at the row's right end, and their panels anchor to the menus, not to their
   own button: when the header wraps, a panel under the left-hand (repository) button would otherwise
   open past the screen's left edge (left -71px at 768px wide). */
.menus { margin-left: auto; position: relative; }
details.menu { position: static; }
.menu-body { max-width: calc(100vw - 2rem); }
/* Up to where the mark, five tabs and two menus fit one row (~1040px with typical names), the header
   is two tidy rows, the mark and the menus, then the tabs, instead of the menus wrapping under the
   tabs wherever they happen to fall. */
@media (min-width: 641px) and (max-width: 1100px) {
  .top-inner { row-gap: .35rem; }
  .menus { order: 1; }
  .tabs { order: 2; flex: 1 1 100%; }
}
@media (max-width: 640px) {
  :root { --tabbar-h: 4rem; --top-h: 3.75rem; }
  html { scroll-padding-top: calc(var(--top-h) + env(safe-area-inset-top) + .5rem); scroll-padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + .5rem); }
  .skip { z-index: 30; }
  /* The header: one sticky row, the mark (its name kept for screen readers) and the two menus. */
  .top { position: sticky; top: 0; z-index: 15; padding-top: env(safe-area-inset-top); }
  .top-inner { flex-wrap: nowrap; gap: .5rem; padding-top: .45rem; padding-bottom: .45rem; }
  .top .mark { flex: none; min-width: 44px; min-height: 44px; }
  .top .mark > span { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
  .menus { order: 0; width: auto; min-width: 0; margin-left: auto; justify-content: flex-end; position: relative; }
  /* Panels anchor to this row, not their own button, so the left-hand (repository) menu's panel can't run off-screen left. */
  details.menu { min-width: 0; position: static; }
  details.menu > summary { max-width: 11rem; min-height: 44px; padding: .5rem .75rem; line-height: 1.6rem; }
  details.menu > summary .menu-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  details.menu > summary .chev { flex: none; }
  details.menu > summary .small { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); }
  .menu-body { left: auto; right: 0; max-width: calc(100vw - 2rem); max-height: calc(100vh - var(--top-h) - var(--tabbar-h) - 2rem); overflow: auto; }
  .menu-body a, .menu-body button { min-height: 44px; }
  /* The bottom tab bar: the same nav, fixed to the bottom, clear of the home bar. */
  .tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; order: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 0; margin: 0;
    padding: .375rem max(.375rem, env(safe-area-inset-right)) calc(.375rem + env(safe-area-inset-bottom)) max(.375rem, env(safe-area-inset-left));
    background: var(--surface); border-top: 1px solid var(--line); }
  @supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
    .tabs { background: color-mix(in srgb, var(--surface) 92%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
  }
  .tabs a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-width: 0; min-height: 3.25rem; padding: .25rem .125rem; border-radius: 12px; color: var(--muted); font-size: .72rem; font-weight: 600; line-height: 1.2; }
  .tabs a:hover { background: transparent; color: var(--ink); }
  .tabs .tab-ico { display: block; width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .tabs .tab-label { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tabs a[aria-current="page"] { background: transparent; box-shadow: none; color: var(--brand); font-weight: 700; }
  .tabs a[aria-current="page"] .tab-ico { stroke-width: 2.2; }
  .tabs a[aria-current="page"]::before { content: ""; position: absolute; top: -.375rem; left: 50%; width: 1.5rem; height: 3px; margin-left: -.75rem; border-radius: 0 0 3px 3px; background: var(--brand); }
  .tabs .badge { position: absolute; top: .1rem; left: calc(50% + .3rem); min-width: 1.3rem; margin: 0; padding: 0 .3rem; border: 2px solid var(--surface); font-size: .7rem; font-weight: 700; line-height: 1.05rem; }
  /* Typing: the bar steps aside so the field and the keyboard have the screen. */
  body:has(:is(input[type=text], input[type=email], input[type=search], input[type=password], textarea):focus) .tabs { display: none; }
  main.wrap { padding-top: 1.1rem; padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 2rem); }
  /* A full finger's height for everything tapped; 16px fields so a phone does not zoom on focus. */
  .btn, .seg a { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; text-align: center; }
  /* !important: a page's own field rules (Setup's people and settings fields at 13-14px) are more
     specific than this one and would otherwise win, and any field under 16px zooms the page on iOS. */
  :is(input[type=text], input[type=email], input[type=search], input[type=number], input[type=password], input[type=url], input[type=tel], input:not([type])):not(.otp), select, textarea { font-size: 16px !important; }
  input[type=text], input[type=email], input[type=search], input[type=password], select { min-height: 44px; }
  /* A decision waiting on the person is one wide button. */
  /* The board: a column at a time, side by side, swiped. */
  .board { display: flex; gap: .75rem; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; margin: 0 -1rem; padding: 0 1rem .5rem; scroll-padding: 0 1rem; }
  .board section { flex: 0 0 min(84%, 18rem); scroll-snap-align: start; }
  /* A run is a card: its phone layout lives with the page's styles (css/runs.ts). */
}
@media (max-width: 640px) and (forced-colors: active) {
  .tabs { border-top-color: CanvasText; }
  .tabs a[aria-current="page"]::before { forced-color-adjust: none; background: Highlight; }
}

.mini-phase-rail { display: inline-flex; gap: 3px; width: 56px; flex: none; vertical-align: middle; }
.mini-phase-rail i { flex: 1; height: 4px; border-radius: 4px; background: var(--line); }
.mini-phase-rail [data-state="done"] { background: var(--brand); }
.mini-phase-rail [data-state="current"] { background: var(--grad); }
.mini-phase-rail [data-state="waiting"], .mini-phase-rail [data-state="stopped"] { background: var(--attn-dot); }
.mini-phase-rail [data-state="queued"] { background: var(--line-2); }
.mini-phase-rail.deploy-failed [data-state="stopped"] { background: var(--crit); }
.ov-work-sub .mini-phase-rail { margin: 8px 8px 0 0; }


.master-detail-wrap { container-type: inline-size; min-width: 0; }
.master-detail { display: grid; grid-template-columns: minmax(0,1fr) minmax(360px,440px); gap: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); overflow: clip; min-width: 0; }
.master-detail-list { min-width: 0; }
.master-detail-pane { min-width: 0; border-left: 1px solid var(--line); padding: 20px; background: var(--surface-2); max-height: var(--detail-max-height, none); overflow: auto; }
.ov-inbox { --detail-max-height: 640px; }
@container (max-width: 780px) {
 .master-detail { grid-template-columns: minmax(0,1fr); }
 .master-detail-pane { border-left: 0; border-top: 1px solid var(--line); }
}

.custom-select{position:relative;min-width:0;max-width:100%}.custom-select>select[hidden]{display:none!important}
.custom-select-trigger{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:36px;border:1px solid var(--line-2);border-radius:8px;padding:8px 12px;background:var(--surface);color:var(--ink);text-align:left;font:inherit;cursor:pointer}.custom-select-trigger:after{content:"";width:6px;height:6px;border-right:1.5px solid var(--muted);border-bottom:1.5px solid var(--muted);transform:rotate(45deg);flex:none}.custom-select-trigger:disabled{opacity:.55;cursor:default}.custom-select-trigger[aria-invalid=true]{border-color:var(--crit)}
.custom-select-options{position:absolute;top:calc(100% + 4px);left:0;z-index:30;width:100%;min-width:180px;max-height:280px;overflow:auto;box-sizing:border-box;padding:4px;border:1px solid var(--line-2);border-radius:8px;background:var(--surface);box-shadow:0 8px 24px color-mix(in srgb,var(--shadow-ink) 12%,transparent)}.custom-select-options[hidden]{display:none}
.custom-select-option{display:block;width:100%;min-height:36px;border:0;border-radius:5px;padding:8px 10px;background:transparent;color:var(--ink);text-align:left;font:inherit;white-space:normal;overflow-wrap:anywhere;cursor:pointer}.custom-select-option:hover,.custom-select-option:focus-visible{background:var(--hover)}.custom-select-option[aria-selected=true]{background:var(--sel);font-weight:600}.custom-select-option:disabled{opacity:.5;cursor:default}
@media(max-width:860px){.custom-select-trigger,.custom-select-option{min-height:44px}}


.pipe-wrap, .run-health { container-type: inline-size; }
.run-health { --stage-min-width: 820px; }
.stage-strip { display: flex; min-width: var(--stage-min-width, 760px); }
.stage-tile { flex: 1 1 0; min-width: 0; position: relative; display: flex; flex-direction: column; gap: 4px; padding: 12px 16px 14px 22px; color: var(--text); text-decoration: none; }
.stage-tile:first-child { padding-left: 16px; }
.stage-tile:hover { background: var(--hover); color: var(--ink); }
.stage-tile + .stage-tile { border-left: 1px solid var(--line); }
.stage-tile + .stage-tile::before { content: ''; position: absolute; left: -7px; top: calc(50% - 6px); width: 12px; height: 12px; z-index: 1; pointer-events: none; background: var(--surface); border-top: 1px solid var(--line); border-right: 1px solid var(--line); transform: rotate(45deg); }
.stage-tile:hover + .stage-tile::before { background: var(--hover); }
.stage-head { display: flex; align-items: baseline; gap: 8px; font-weight: 600; }
.stage-head .value { font: 600 22px/1.1 var(--display); font-variant-numeric: tabular-nums; }
.stage-head .label { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.stage-sub { display: flex; flex-direction: column; gap: 2px; min-height: 18px; font-size: 12px; font-weight: 600; color: var(--muted); }
@container (max-width: 640px) {
 .stage-strip { min-width: 0; flex-direction: column; }
 .stage-tile { padding: 12px 16px; }
 .stage-tile + .stage-tile { border-left: 0; border-top: 1px solid var(--line); }
 .stage-tile + .stage-tile::before { content: none; }
}


.dashboard-app .tab-track { display: flex; min-width: 0; justify-content: flex-start; gap: 2px; flex-wrap: nowrap; align-items: center; overflow-x: auto; scrollbar-width: none; padding: 3px; border: 0; border-radius: 10px; background: var(--sunken); width: fit-content; max-width: 100%; }
.dashboard-app .tab-track::-webkit-scrollbar { display: none; }
.dashboard-app .tab-track :is(a,button,label) { display: inline-flex; flex: none; align-items: center; justify-content: center; gap: 7px; height: 30px; min-height: 30px; padding: 0 11px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); font-size: 13px; font-weight: 500; white-space: nowrap; text-decoration: none; transition: none; }
.dashboard-app .tab-track :is(a,button,label):hover { color: var(--ink); }
.dashboard-app .tab-track :is([aria-current],[aria-pressed="true"],label:has(input:checked)) { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.dashboard-app .tab-track :is(a,button,label):focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.dashboard-app .tab-track :is(a,button,label) .count { padding: 0; margin: 0; min-width: 0; min-height: 0; border: 0; border-radius: 0; background: none; box-shadow: none; color: var(--muted); opacity: 1; font-size: 11.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.dashboard-app .tab-track .count::before { content: none; }
@media (max-width: 860px) { .dashboard-app .tab-track :is(a,button,label) { min-height: 44px; } }


@font-face { font-family: "Inter"; src: url("/app/fonts/inter-3a2403810c.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("/app/fonts/poppins-medium-3a2403810c.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("/app/fonts/poppins-semibold-3a2403810c.woff2") format("woff2"); font-weight: 600 700; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/app/fonts/jetbrains-mono-3a2403810c.woff2") format("woff2"); font-weight: 400 500; font-display: swap; }

:root {  --canvas: #f3f3f5; --surface: #ffffff; --surface-2: #f8f8f9; --sunken: #efeff1; --hover: #f2f2f4;
  --ink: #111214; --text: #3c3e44; --muted: #6b6e77; --line: #e7e7ea; --line-2: #d7d7dc;
  --brand: #1c68c5; --brand-ink: #185aae; --on-brand: #ffffff; --sel: #edf3fc;
  --grad: linear-gradient(118deg, #00c2dc, #1f6fd1 75%);
  --attn: #8a5200; --attn-bg: #fdf3e2; --attn-line: #efd29f; --attn-dot: #e29a2b;
  --crit: #b4261d; --crit-bg: #fcecea; --crit-line: #f0c3be;
  --ok: #18744f; --ok-bg: #e5f4ec; --ok-line: #bfe2cf;
  --info: #1f6fd1; --info-bg: #eaf2fd; --info-line: #c7dbf6;
  --neutral: #55585f; --neutral-bg: #f0f0f2; --neutral-line: #dcdce0;
  --shadow: 0 1px 2px rgba(17,18,20,.05), 0 6px 20px rgba(17,18,20,.05);
  --shadow-pop: 0 16px 48px rgba(17,18,20,.18); --scrim: rgba(10,10,12,.4);
  --display: "Poppins", system-ui, sans-serif; --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  color-scheme: light; --shadow-ink: #000000; --mask-ink: #000000; --switch-thumb: #ffffff; --log-bg: #09090a; --log-ink: #f3f3f4; --field-line: #85858d;
  --on-green: #ffffff; --on-amber: #1b1000;
  --select-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5 6 7.5 9 4.5' fill='none' stroke='%236b6e77' stroke-width='1.6'/%3E%3C/svg%3E");

  --tab-current-bg: var(--sel); --tab-current-ink: var(--ink); --tab-current-ring: var(--brand);
  --seg-ring: var(--field-line); --brand-halo: color-mix(in srgb, var(--brand) 24%, transparent);
  --amber-halo: color-mix(in srgb, var(--attn-dot) 24%, transparent); --red-halo: color-mix(in srgb, var(--crit) 20%, transparent);
}
:root[data-theme="dark"] {  --canvas: #09090a; --surface: #121214; --surface-2: #17171a; --sunken: #1c1c1f; --hover: #1d1d21;
  --ink: #f3f3f4; --text: #c6c6cb; --muted: #8c8c94; --line: #242428; --line-2: #313136;
  --brand: #3d8bff; --brand-ink: #8dbbff; --on-brand: #09090a; --sel: #212126;
  --grad: linear-gradient(118deg, #18c9de, #3d8bff 75%);
  --attn: #f0b14d; --attn-bg: #261d0e; --attn-line: #4a3816; --attn-dot: #e8a239;
  --crit: #ff7b71; --crit-bg: #2a1414; --crit-line: #532624; --ok: #50c98d; --ok-bg: #0f2219; --ok-line: #1f4532;
  --info: #6ea8ff; --info-bg: #1a1d24; --info-line: #2c3442; --neutral: #a3a3aa; --neutral-bg: #1f1f23; --neutral-line: #2f2f35;
  --shadow: 0 0 0 1px rgba(255,255,255,.02), 0 8px 24px rgba(0,0,0,.35);
  --shadow-pop: 0 20px 60px rgba(0,0,0,.6); --scrim: rgba(0,0,0,.6);
  color-scheme: dark; --shadow-ink: #000000; --mask-ink: #000000; --switch-thumb: #ffffff; --log-bg: #09090a; --log-ink: #f3f3f4; --field-line: #686871;
  --on-green: #09090a; --on-amber: #1b1000;
  --select-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5 6 7.5 9 4.5' fill='none' stroke='%238c8c94' stroke-width='1.6'/%3E%3C/svg%3E");

  --tab-current-bg: var(--sel); --tab-current-ink: var(--ink); --tab-current-ring: var(--brand);
  --seg-ring: var(--field-line); --brand-halo: color-mix(in srgb, var(--brand) 24%, transparent);
  --amber-halo: color-mix(in srgb, var(--attn-dot) 24%, transparent); --red-halo: color-mix(in srgb, var(--crit) 20%, transparent);
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {  --canvas: #09090a; --surface: #121214; --surface-2: #17171a; --sunken: #1c1c1f; --hover: #1d1d21;
  --ink: #f3f3f4; --text: #c6c6cb; --muted: #8c8c94; --line: #242428; --line-2: #313136;
  --brand: #3d8bff; --brand-ink: #8dbbff; --on-brand: #09090a; --sel: #212126;
  --grad: linear-gradient(118deg, #18c9de, #3d8bff 75%);
  --attn: #f0b14d; --attn-bg: #261d0e; --attn-line: #4a3816; --attn-dot: #e8a239;
  --crit: #ff7b71; --crit-bg: #2a1414; --crit-line: #532624; --ok: #50c98d; --ok-bg: #0f2219; --ok-line: #1f4532;
  --info: #6ea8ff; --info-bg: #1a1d24; --info-line: #2c3442; --neutral: #a3a3aa; --neutral-bg: #1f1f23; --neutral-line: #2f2f35;
  --shadow: 0 0 0 1px rgba(255,255,255,.02), 0 8px 24px rgba(0,0,0,.35);
  --shadow-pop: 0 20px 60px rgba(0,0,0,.6); --scrim: rgba(0,0,0,.6);
  color-scheme: dark; --shadow-ink: #000000; --mask-ink: #000000; --switch-thumb: #ffffff; --log-bg: #09090a; --log-ink: #f3f3f4; --field-line: #686871;
  --on-green: #09090a; --on-amber: #1b1000;
  --select-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5 6 7.5 9 4.5' fill='none' stroke='%238c8c94' stroke-width='1.6'/%3E%3C/svg%3E");

  --tab-current-bg: var(--sel); --tab-current-ink: var(--ink); --tab-current-ring: var(--brand);
  --seg-ring: var(--field-line); --brand-halo: color-mix(in srgb, var(--brand) 24%, transparent);
  --amber-halo: color-mix(in srgb, var(--attn-dot) 24%, transparent); --red-halo: color-mix(in srgb, var(--crit) 20%, transparent);
} }

.reference-logo-dark { display: none; }
:root[data-theme="dark"] .reference-logo-light { display: none; }
:root[data-theme="dark"] .reference-logo-dark { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .reference-logo-light { display: none; } :root:not([data-theme="light"]) .reference-logo-dark { display: block; } }
body { background: var(--canvas); color: var(--text); font: 14px/1.5 var(--body); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
h1 { font: 600 24px/1.25 var(--display); letter-spacing: -.01em; color: var(--ink); }
h2 { font: 600 15px/1.35 var(--body); color: var(--ink); }
h3 { font: 600 13.5px/1.35 var(--body); color: var(--ink); }
code, pre, .mono, .key { font-family: var(--mono); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
.dashboard-app { --side: 236px; display: grid; grid-template-columns: var(--side) minmax(0,1fr); gap: 12px; min-height: 100vh; padding: 12px 16px 12px 12px; }
html[data-sidebar="mini"] .dashboard-app { --side: 60px; }
.dashboard-app > .top { position: sticky; top: 12px; height: calc(100vh - 24px); z-index: 35; border: 0; background: transparent; min-width: 0; }
.dashboard-app .top-inner { display: flex; flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 2px; padding: 0; margin: 0; height: 100%; max-width: none; }
.shell-brand { display: flex; align-items: center; padding: 6px 6px 16px 8px; min-height: 74px; gap: 8px; }
.shell-brand .mark { display: flex; min-width: 0; gap: 10px; font: 600 15px/1.1 var(--display); color: var(--ink); text-decoration: none; }
.shell-brand .mark > svg { width: 30px; height: 23px; flex: none; }
.shell-brand .mark > span { white-space: nowrap; overflow: hidden; }
.shell-icon { display: inline-grid; place-items: center; width: 32px; height: 32px; padding: 7px; flex: none; border: 0; border-radius: 7px; background: transparent; color: var(--muted); cursor: pointer; }
.shell-icon:hover { background: var(--hover); color: var(--ink); }
.shell-icon svg, .shell-search svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.shell-collapse { margin-left: auto; }
.dashboard-app .top .tabs { display: flex; flex-direction: column; flex: none; gap: 2px; padding: 0; order: 0; }
.dashboard-app .top .tabs a { transition:none; position: relative; height: 38px; display: flex; gap: 11px; align-items: center; border-radius: 9px; padding: 0 11px; font-size: 14px; font-weight: 500; color: var(--text); }
.dashboard-app .top .tabs a:hover { background: var(--hover); }
.dashboard-app .top .tabs a[aria-current="page"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.dashboard-app .top .tabs .tab-ico { stroke-width: 1.8; display: block; width: 18px; height: 18px; color: var(--muted); }
.dashboard-app .top .tabs a[aria-current="page"] .tab-ico { color: var(--brand); }
.dashboard-app .tabs .badge { margin-left: auto; background: var(--attn-dot); color: var(--on-amber); min-width: 20px; height: 20px; display: grid; place-items: center; padding: 0 6px; border-radius: 99px; font: 700 11.5px var(--body); }
.dashboard-app .tabs .nav-attention { margin-left: auto; width: 7px; height: 7px; background: var(--attn-dot); }
.dashboard-app .menus { display: flex; flex-direction: column; align-items: stretch; width: 100%; margin: auto 0 0; gap: 4px; order: 0; }
.dashboard-app details.menu { position: relative; }
.dashboard-app details.menu > summary { border: 0; display: flex; gap: 10px; align-items: center; padding: 10px 8px; background: transparent; border-radius: 9px; min-height: 48px; }
.dashboard-app details.menu > summary:hover { background: var(--hover); }
.dashboard-app details.menu > summary .menu-label { font-size: 13px; font-weight: 600; color: var(--ink); min-width: 0; text-align: left; }
.dashboard-app .menu-label .small { display: block; font-size: 11.5px; font-weight: 400; color: var(--muted); }
.dashboard-app details.menu > summary .chev { margin-left: auto; transform: none; width: 15px; height: 15px; stroke-width: 1.8; }
.dashboard-app details.menu[open] > summary .chev { transform: rotate(0); }
.dashboard-app .menu-body { top: auto; bottom: calc(100% + 6px); left: 0; right: auto; width: 260px; max-width: calc(100vw - 32px); border-radius: 12px; box-shadow: var(--shadow-pop); z-index: 50; }
.shell-avatar { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--sunken); color: var(--ink); font-weight: 600; font-size: 12px; }
.person-avatar { border-radius: 50%; background: var(--ink); color: var(--surface); }
.shell-loading { display:flex; flex-direction:column; gap:16px; }
.shell-loading p { margin:0; }
.shell-loading-eyebrow,.shell-loading-title,.shell-loading-tile,.shell-loading-row { border-radius:8px; background:var(--sunken); }
.shell-loading-eyebrow { height:12px; width:200px; }
.shell-loading-title { height:28px; width:min(380px,100%); }
.shell-loading-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:10px; }
.shell-loading-tile { height:76px; }
.shell-loading-row { height:52px; }
.shell-column { flex:999 1 560px; min-width:0; display:flex; flex-direction:column; gap:12px; }
.shell-offline { display:flex; gap:12px; align-items:flex-start; flex-wrap:wrap; padding:12px 14px; border-radius:10px; background:var(--attn-bg); border:1px solid var(--attn-line); color:var(--ink); }
.shell-offline[hidden] { display:none; }
.shell-offline > svg { flex:none; margin-top:2px; color:var(--attn); }
.shell-offline > div { flex:1 1 240px; display:flex; flex-direction:column; gap:3px; min-width:0; }
.shell-offline b { font-weight:600; }
.shell-offline > button { display:inline-flex; align-items:center; gap:7px; height:28px; padding:0 9px; border-radius:7px; border:1px solid var(--line-2); background:var(--surface); color:var(--ink); font:600 12.5px/1 var(--body); white-space:nowrap; cursor:pointer; }
.shell-surface { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); min-height: calc(100vh - 24px); }
.dashboard-app main.wrap { max-width: none; margin: 0; padding: 0; }
.shell-toolbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; height: 54px; padding: 0 16px 0 20px; background: var(--surface); border-bottom: 1px solid var(--line); border-radius: 14px 14px 0 0; }
.shell-crumb { display:flex; align-items:center; gap:6px; min-width:0; font-weight:500; color:var(--muted); overflow:hidden; white-space:nowrap; }
.shell-crumb > span { color:var(--ink); overflow:hidden; text-overflow:ellipsis; }
.shell-crumb > svg { flex:none; }
.shell-crumb > a { padding:2px 4px; border-radius:6px; color:var(--muted); text-decoration:none; flex:none; }
.shell-toolbar-space { flex: 1; }
.shell-search { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); background: var(--surface-2); text-decoration: none; min-width: 240px; }
.shell-search kbd { margin-left: auto; font: 11px var(--mono); border: 1px solid var(--line); border-radius: 4px; padding: 0 3px; }
.shell-content { padding: 24px 28px 40px; }
.shell-menu, .shell-scrim, .mobile-bottom { display: none; }
html[data-sidebar="mini"] .shell-brand { flex-direction: column; padding: 6px 0 12px; gap: 10px; }
html[data-sidebar="mini"] .shell-collapse { margin: 0; }
html[data-sidebar="mini"] .top .tab-label, html[data-sidebar="mini"] .shell-brand .mark > span, html[data-sidebar="mini"] .top .menu-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
html[data-sidebar="mini"] .top .chev { display: none; }
html[data-sidebar="mini"] .top .tabs a:hover::after, html[data-sidebar="mini"] .top .tabs a:focus-visible::after { content: attr(aria-label); position: absolute; left: calc(100% + 10px); top: 50%; transform: translateY(-50%); background: var(--ink); color: var(--surface); padding: 4px 8px; border-radius: 6px; font-size: 12px; white-space: nowrap; z-index: 60; }
html[data-sidebar="mini"] .top .tabs a { justify-content: center; padding: 0; }
html[data-sidebar="mini"] .top .tabs .badge { position: absolute; top: 3px; right: 6px; min-width: 16px; height: 16px; padding: 0 4px; font-size: 10px; }
html[data-sidebar="mini"] .top .nav-attention { position: absolute; top: 8px; right: 12px; }
html[data-sidebar="mini"] .top details.menu > summary { justify-content: center; }
.dashboard-app .btn, .entry-app .btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: var(--touch-target, 34px); padding: 5px 13px; border-radius: 9px; font-size: 13px; font-weight: 600; box-shadow: none; }
.dashboard-app summary, .entry-app summary { min-height: var(--touch-target, 0px); min-width: var(--touch-target, 0px); box-sizing: border-box; align-content: center; }
.dashboard-app .btn.outline, .entry-app .btn.outline { color: var(--ink); background: var(--surface); border-color: var(--line-2); }
.dashboard-app .btn.outline:hover, .entry-app .btn.outline:hover { color: var(--ink); background: var(--hover); border-color: var(--line-2); }
@media (min-width: 861px) { .dashboard-app .btn.small, .dashboard-app .btn.outline.small, .entry-app .btn.small, .entry-app .btn.outline.small { min-height: 28px; padding: 3px 9px; font-size: 12.5px; border-radius: 7px; } }
:is(.dashboard-app, .entry-app) :is(input[type=text], input[type=email], input[type=search], input[type=password], input[type=number], input[type=datetime-local], select, textarea) { border-color: var(--line-2); border-radius: 9px; }
:is(.dashboard-app, .entry-app) :is(input, select, textarea):focus-visible { border-color: var(--brand); }
.dashboard-app .btn.primary, .entry-app .btn.primary { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.dashboard-app .card, .entry-app .card { border-radius: 12px; box-shadow: none; }
@media (max-width: 860px) {
  .dashboard-app, html[data-sidebar="mini"] .dashboard-app { --touch-target: 44px; display: block; padding: 0 0 calc(68px + env(safe-area-inset-bottom, 0px)); }
  .dashboard-app > .top { position: fixed; top: 0; left: 0; height: 100dvh; width: min(300px,86vw); z-index: 45; background: var(--canvas); padding: calc(12px + env(safe-area-inset-top,0px)) 10px 12px; transform: translateX(-105%); }
  html:not([data-shell-ready]) .dashboard-app > .top { position: relative; transform: none; width: 100%; height: auto; }
  html[data-drawer="open"] .dashboard-app > .top { transform: none; }
  .dashboard-app .top .tabs { position: static; display: flex; padding: 0; border: 0; background: transparent; }
  .dashboard-app .top .tabs a { flex-direction: row; justify-content: flex-start; min-height: 44px; font-size: 14px; }
  .dashboard-app .top .tabs a::before { display: none; }
  html[data-sidebar="mini"] .top .tab-label, html[data-sidebar="mini"] .shell-brand .mark > span, html[data-sidebar="mini"] .top .menu-label { display: block; position: static; width: auto; height: auto; overflow: visible; clip-path: none; }
  html[data-sidebar="mini"] .shell-brand { flex-direction: row; padding: 6px 6px 16px 8px; }
  .dashboard-app .shell-collapse { display: none; }
  .shell-surface { border: 0; border-radius: 0; box-shadow: none; min-height: 100dvh; }
  .shell-toolbar { top: env(safe-area-inset-top,0px); border-radius: 0; height: 52px; padding: 0 max(8px, env(safe-area-inset-right,0px)) 0 max(8px,env(safe-area-inset-left,0px)); }
  .shell-menu { display: inline-grid; }
  .shell-search { min-width: 0; width: 34px; padding: 7px; border-color: transparent; background: transparent; }
  .shell-search span, .shell-search kbd{ display: none; }
  .dashboard-app :is(.account-segments button,.setup-save-toast button,.setup-link,.connection-link,.delivery-choice > summary,.delivery-rule-actions button,.delivery-picker-chip,.setup-presets button,.setup-chip-toggle) { min-height:44px; min-width:44px; }
  .dashboard-app :is(.setup-link,.connection-link) { display:inline-flex; align-items:center; }
  .dashboard-app .shell-toolbar :is(.shell-icon, .shell-search) { min-width: 44px; min-height: 44px; }
  .shell-content { padding: 18px max(16px,env(safe-area-inset-right,0px)) 32px max(16px,env(safe-area-inset-left,0px)); }
  .shell-scrim:not([hidden]) { display: block; position: fixed; inset: 0; z-index: 40; background: var(--scrim); border: 0; }
  .dashboard-app .mobile-bottom { position: fixed; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0,1fr); left: 0; right: 0; bottom: 0; z-index: 30; gap: 0; margin: 0; border-top: 1px solid var(--line); background: var(--surface); padding: 6px 8px calc(6px + env(safe-area-inset-bottom,0px)); }
  .dashboard-app .mobile-bottom a { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 4px 0; min-height: 44px; font-size: 11px; font-weight: 500; color: var(--muted); border-radius: 0; }
  .dashboard-app .mobile-bottom a[aria-current="page"] { color: var(--brand-ink); background: transparent; box-shadow: none; }
  .dashboard-app .mobile-bottom a::before { display: none; }
  .dashboard-app .mobile-bottom .tab-ico { stroke-width: 1.8; width: 20px; height: 20px; display: block; }
  .dashboard-app .mobile-bottom .badge { position: absolute; top: 0; left: calc(50% + 6px); min-width: 16px; height: 16px; padding: 0 4px; margin: 0; font-size: 10px; }
  .dashboard-app .mobile-bottom .nav-attention { position: absolute; top: 1px; left: calc(50% + 8px); }
  .dashboard-app .top details.menu > summary { max-width: none; }
  .dashboard-app .top .menu-label .small { position: static; width: auto; height: auto; clip: auto; }
}
.command-palette { position: fixed; top: 12vh; margin: 0 auto; width: min(600px,calc(100vw - 32px)); max-height: 70vh; padding: 0; border: 1px solid var(--line-2); border-radius: 14px; color: var(--text); background: var(--surface); box-shadow: var(--shadow-pop); }
.command-palette::backdrop { background: var(--scrim); }
.command-search-row { display: flex; align-items: center; gap: 10px; padding: 0 16px; color:var(--muted); border-bottom: 1px solid var(--line); }
.command-search-row input { flex:1; min-width:0; height:52px; border:0; outline:none; padding:0; background:transparent; color:var(--ink); font:15px/1.5 var(--body); }
.command-escape { font:500 11px var(--mono); padding:1px 5px; border-radius:5px; border:1px solid var(--line-2); color:var(--muted); background:var(--surface); }
.command-status { padding: 10px 16px 4px; margin: 0; font-size: 12px; color: var(--muted); }
.command-results { padding: 6px; max-height: 360px; overflow-y: auto; }
.command-result { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; color: var(--ink); text-decoration: none; }
.command-result > .command-title { flex: 1; min-width: 0; }
.command-key { font:500 12px var(--mono); color: var(--muted); flex: none; }
.command-group { margin:0; padding: 8px 10px 4px; font: 600 11px var(--body); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.command-result > svg { flex:none; color:var(--muted); }
.command-result:hover, .command-result:focus-visible, .command-result[aria-selected="true"] { background:var(--sel); }
/* Expanded usage can overflow at any height; fixed flyouts escape the scrolling rail. */
.dashboard-app .top-inner { overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; }
.dashboard-app .top-inner > * { flex-shrink: 0; }
.dashboard-app .menu-body { position: fixed; left: calc(var(--side) + 24px); bottom: 12px; top: auto; max-height: calc(100dvh - 24px); overflow-y: auto; }
@media (max-width: 860px) {
  .dashboard-app .menu-body { left: 12px; max-width: calc(100vw - 24px); }
}
@media (prefers-reduced-motion: no-preference) { .dashboard-app { transition: grid-template-columns .2s ease; } .dashboard-app > .top { transition: transform .2s; } }
.shell-search svg { width: 16px; height: 16px; }
.theme-choice button, .menu-body .linkish { display: inline-flex; align-items: center; gap: 6px; }
.dashboard-app .mobile-bottom a[aria-current="page"] .tab-ico { stroke-width: 1.8; }

/* Keep navigation stationary while the main column owns page scrolling. */
html:has(.dashboard-app), body:has(.dashboard-app) { height:100%; overflow:hidden; background:var(--canvas); }
.dashboard-app, html[data-sidebar="mini"] .dashboard-app { background:var(--canvas); display:flex; flex-wrap:nowrap; align-items:stretch; gap:12px; padding:12px 16px 12px 12px; height:100dvh; min-height:0; overflow:hidden; box-sizing:border-box; }
.dashboard-app > .top { position:relative; top:auto; left:auto; flex:0 0 236px; max-width:236px; width:auto; height:100%; min-height:0; padding:0; transform:none; background:transparent; }
.dashboard-app .top-inner { min-height:0; height:100%; overflow-y:auto; overflow-x:hidden; overscroll-behavior:contain; }
.dashboard-app .shell-column { position:relative; min-height:0; overflow-y:auto; overflow-x:hidden; overscroll-behavior:contain; scrollbar-gutter:stable; }
.dashboard-app .shell-surface { flex:0 0 auto; min-width:0; min-height:100%; border:1px solid var(--line); border-radius:14px; box-shadow:var(--shadow); }
html[data-sidebar="mini"] .dashboard-app > .top { flex:0 0 60px; max-width:60px; }
.dashboard-app .shell-menu,.dashboard-app .shell-scrim { display:none; }
.dashboard-app .shell-collapse { display:inline-grid; }
@media (min-width: 861px) { .dashboard-app .shell-toolbar { position:relative; top:auto; flex-wrap:wrap; height:auto; min-height:54px; padding:10px 16px 10px 20px; border-radius:14px 14px 0 0; } }
@media (min-width: 861px) { .dashboard-app .shell-content { padding:24px 28px 56px; } }
.dashboard-app .shell-search { width:auto; min-width:240px; border:1px solid var(--line); background:var(--surface-2); padding:7px 10px; }
@media (min-width: 861px) { .dashboard-app .shell-search span,.dashboard-app .shell-search kbd{ display:initial; } }


html:not([data-sidebar="mini"]) .dashboard-app .top .mark > span { position:static; width:auto; height:auto; margin:0; clip:auto; clip-path:none; }
.dashboard-app .top .mark { min-height:0; }
.dashboard-app .top .menu-label .small { position:static; width:auto; height:auto; margin:0; overflow:visible; clip:auto; clip-path:none; }
html:not([data-sidebar="mini"]) .dashboard-app .top .tabs .badge { position:static; top:auto; left:auto; margin-left:auto; border:0; }
html[data-sidebar="mini"] .dashboard-app .top .tab-label,html[data-sidebar="mini"] .dashboard-app .shell-brand .mark > span,html[data-sidebar="mini"] .dashboard-app .top .menu-label { display:none; }
html[data-sidebar="mini"] .dashboard-app .shell-brand { flex-direction:column; }
.dashboard-app .shell-search { border-radius:9px; height:34px; min-height:34px; box-sizing:border-box; padding:0 8px 0 10px; }
@media (min-width: 861px) { .dashboard-app .shell-toolbar button { min-height:34px; } }
@media (min-width: 861px) { .shell-toolbar:not(:has([data-update-status])) .shell-toolbar-space { min-width:38px; } }
.dashboard-app .menu-body { width:300px; box-sizing:border-box; padding:6px; }
.dashboard-app .menu-body a,.dashboard-app .menu-body .linkish { text-decoration:none; color:var(--ink); border-radius:8px; font:400 14px/1.5 var(--body); }
.dashboard-app .menu-body .shell-menu-action,.dashboard-app .menu-body .linkish { display:flex; align-items:center; gap:10px; width:100%; box-sizing:border-box; padding:8px 10px; }
.shell-menu-heading { padding:8px 10px 4px; font-size:11px; font-weight:600; color:var(--muted); letter-spacing:.05em; text-transform:uppercase; }
.dashboard-app .menu-body ul { padding:0; margin:0; list-style:none; }
.dashboard-app .menu-body .shell-repo-option { display:flex; align-items:center; gap:10px; padding:8px 10px; }
.shell-repo-option > span:nth-child(2) { flex:1; }
.shell-repo-option small { display:block; font-size:12px; color:var(--muted); }
.shell-repo-mark { width:28px; height:28px; flex:none; border-radius:8px; display:grid; place-items:center; background:var(--neutral-bg); font-size:12px; font-weight:700; }
.dashboard-app .menu-body > p { padding:8px 10px; margin:0; }
.dashboard-app .menu-body .shell-repo-option[aria-current=page]::after { content:none; }

@media (max-width:860px) {
  .dashboard-app, html[data-sidebar="mini"] .dashboard-app { padding:0 0 calc(68px + env(safe-area-inset-bottom,0px)); gap:0; }
  .dashboard-app > .top, html[data-sidebar="mini"] .dashboard-app > .top { position:fixed; top:0; left:0; width:min(300px,86vw); max-width:none; height:100dvh; padding:12px 10px; background:var(--canvas); transform:translateX(-105%); }
  html[data-drawer="open"] .dashboard-app > .top { transform:none; }
  .dashboard-app .shell-menu { display:inline-grid; }
  .dashboard-app .shell-scrim:not([hidden]) { display:block; }
  .dashboard-app .shell-collapse { display:none; }
  .dashboard-app .shell-column { flex:1 1 0; }
  .dashboard-app .shell-surface { border:0; border-radius:0; }
  .dashboard-app .shell-search { min-width:0; width:34px; }
  .dashboard-app .shell-search span,.dashboard-app .shell-search kbd { display:none; }
}

.entry-app .mark { gap: 10px; font: 600 15px/1.1 var(--display); }
.entry-app .mark > svg { width: 30px; height: 23px; }
.entry-app .mark > span { min-width: 0; }
.entry-app .center { padding: 24px 16px; }
.entry-app .auth { max-width: 440px; padding: 28px; border-radius: 12px; box-shadow: none; }
.entry-app .auth .mark { margin-bottom: 28px; }
.entry-app .auth h1 { margin-bottom: 12px; }
.entry-app .auth p { overflow-wrap: anywhere; }
.entry-app .auth .stack { margin-top: 20px; }
.entry-app .auth .btn { width: 100%; }
.entry-app .auth .setup-list { border-radius: 10px; }
.entry-app .auth .setup-list > li { padding: 12px; }
.entry-surface { margin: 0 16px 16px; min-height: calc(100dvh - 88px); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.entry-app .entry-surface > .guided-start { max-width: 1040px; margin: 0 auto; padding: 40px 28px 56px; }
.entry-top { border: 0; background: transparent; }
.entry-top-inner { min-height: 72px; padding: 16px 24px; display: flex; align-items: center; }
.entry-footer { display: flex; justify-content: flex-end; margin-top: 32px; }
.entry-footer .linkish { min-height: 32px; color: var(--muted); font-size: 12px; }
.entry-app :is(input, select, textarea) { accent-color: var(--brand); }
@media (max-width: 860px) {
  .entry-app { --touch-target: 44px; }
  .entry-surface { margin: 0 8px 8px; min-height: calc(100dvh - 80px); }
  .entry-app .entry-surface > .guided-start { padding: 24px 16px 40px; }
  .entry-top-inner { padding: 16px; }
  .entry-footer .linkish { min-height: 44px; }
  .entry-app .check { min-height: 44px; }
  .entry-app .auth { padding: 24px; }
  .entry-app :is(input[type=text], input[type=email], input[type=password], input[type=number], select, textarea) { font-size: 16px; min-height: 44px; }
}

.ov-inbox-detail .dc-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }
.ov-inbox-detail form + form { margin-top: 12px; }
.ov-inbox-page .ov-inbox-list { min-width: 0; padding: 6px; max-height: none; overflow: visible; }
.ov-inbox-page .ov-inbox-list > li { padding: 0; border: 0; }
.ov-inbox-page .ov-inbox-row[aria-current="true"] { box-shadow: inset 0 0 0 1px var(--line-2); }
.ov-inbox-page .ov-inbox-row { padding: 10px; gap: 12px; border: 0; border-radius: 9px; }
.ov-inbox-page .ov-row-body { gap: 1px; }
.ov-inbox-page .ov-inbox-row { align-items: flex-start; }
.ov-inbox-page .ov-row-title { flex-direction: column; align-items: stretch; gap: 0; }
.ov-inbox-page .ov-row-title .lead { display: flex; align-items: center; align-self: stretch; gap: 8px; }
.decision-key-aside { margin-left: auto; display: inline-flex; align-items: center; }
.decision-sub-line { display: flex; align-items: baseline; gap: 12px; }
.decision-sub-line > .ov-row-sub { flex: 1; min-width: 0; }
.ov-inbox-page .ov-row-time { white-space: nowrap; font-size: 12px; }
.ov-inbox-page .ov-hint { margin: 0 0 10px; font-size: 12px; }
.ov-inbox-page .ov-row-title .key { font-size: 12px; }
.ov-inbox-page .ov-row-title strong { color: var(--ink); font-size: 14px; display: block; overflow: visible; white-space: normal; -webkit-line-clamp: unset; }
.ov-inbox-page .ov-row-sub { display: flex; align-items: center; gap: 8px; overflow: visible; white-space: normal; -webkit-line-clamp: unset; }
.decision-preview-frame { min-width: 0; background: var(--surface-2,var(--surface-2)); }
.ov-inbox-page .ov-inbox-detail { position: static; max-height: none; overflow: visible; min-width: 0; }

html[data-shell-ready] .send-back-note > summary { display: none; }
.send-back-note[open] { margin: 16px 0; }
html[data-shell-ready] .actions:has(> .send-back-note[open]) > [data-decision-primary], html[data-shell-ready] .actions:has(> .send-back-note[open]) > .opts { display: none; }
.send-back-note .dc-buttons { justify-content: flex-start; }

.decision-summary { margin: 0 0 14px; font-size: 14px; line-height: 1.5; }
.decision-technical { margin-top: 14px; }
.decision-technical > summary { cursor: pointer; color: var(--muted); font-size: 12.5px; font-weight: 500; }
.decision-technical > .dc-why { margin-top: 8px; }
.inline-preview-top > a { grid-column: 2; align-self: start; white-space: nowrap; height: 28px; padding: 0 9px; border-color: transparent; background: transparent; color: var(--text); }
.inline-preview-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 8px; margin-bottom: 16px; }
.inline-preview-decision { min-width: 0; }
.inline-decision .ov-decision-owner { display: flex; align-items: center; gap: 7px; margin: 0 0 10px; font-size: 12.5px; font-weight: 600; color: var(--attn); }
.inline-decision h2 { font: 600 18px/1.3 var(--display); margin: 0 0 14px; }
.inline-preview-decision h2 { margin: 0 0 12px; font-size: 18px; }
.inline-preview-decision .ov-decision-header { margin-bottom: 16px; }
.inline-preview-decision .ov-decision-header h2 { margin-bottom: 8px; }
.inline-preview-decision .dc-why p:first-child { font-size: 14px; font-weight: 400; }
.inline-preview-decision .decision-main { padding: 0; }
.inline-preview-changes { border-top: 1px solid var(--line); padding-top: 24px; margin-top: 28px; min-width: 0; }
.inline-preview-changes h2 { font-size: 18px; }
.inline-preview-changes .changes-context { margin-bottom: 24px; }
.ticket-peek { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.ticket-peek-headline { margin: 0; }
.ticket-peek-facts { width: 100%; margin: 0; }
.ticket-peek-facts > div { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.ticket-peek-facts > div:last-child { border-bottom: 0; }
.ticket-peek-facts dt { color: var(--muted); }
.ticket-peek-facts dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
.inline-preview-changes pre { max-width: 100%; overflow: auto; }

.setup-environment .notice { display:flex; align-items:flex-start; gap:8px; line-height:1.5; }
.setup-environment .notice > svg { flex:none; margin-top:2px; }
.setup-environment .notice > span { min-width:0; overflow-wrap:anywhere; }
.setup-artifact .setup-art-head { display: flex; flex-direction: column; gap: 6px; margin-bottom: 20px; }
.setup-artifact .setup-art-head h1, .setup-artifact .setup-art-head p { margin: 0; }
.setup-artifact .lede { font-size: 14px; line-height: 1.5; color: var(--text); max-width: 72ch; }
.setup-artifact .setup-art-panel[hidden] { display: none; }
.setup-artifact .setup-art-panel { margin: 0; }
.setup-art-stack { display: flex; flex-direction: column; gap: 28px; max-width: 860px; }
.setup-art-stack.setup-general { max-width: 960px; }
.setup-artifact h2 { font: 600 15px/1.35 var(--body); color: var(--ink); margin: 0; }
.setup-artifact .setup-art-section > h2 { margin-bottom: 6px; }
.setup-artifact .setup-general .setup-art-section > h2 { margin-bottom: 10px; }
.setup-box { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: 16px; }
.setup-box:has(> .setup-kv), .setup-box:has(> p), .setup-spend { padding: 16px; }
.setup-setting { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; }
.setup-setting + .setup-setting { border-top: 1px solid var(--line); }
.setup-setting-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; max-width: 64ch; }
.setup-setting-copy > b { color: var(--ink); font-weight: 600; }
.setup-setting-copy > span { font-size: inherit; }
.setup-setting-actions { display: flex; align-items: center; gap: 10px; flex-wrap: nowrap; flex: none; }
.setup-locked { display: inline-flex; gap: 5px; align-items: center; color: var(--muted); font-size: 12px; }
.setup-artifact .setup-switch { appearance: none; box-sizing: border-box; width: calc(16px + var(--touch-target, 20px)); height: var(--touch-target, 20px); min-height: 0; padding: 1px 6px; border: calc((var(--touch-target, 20px) - 20px) / 2) solid transparent; border-radius: 99px; background: var(--line-2); background-clip: padding-box; position: relative; cursor: pointer; margin: 0; flex: none; }
.setup-artifact .setup-switch:before { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--switch-thumb); box-shadow: 0 1px 2px color-mix(in srgb, var(--shadow-ink) 15%, transparent); }
.setup-artifact .setup-switch:checked { background-color: var(--brand); }
.setup-artifact .setup-switch:checked:before { transform: translateX(16px); }
.setup-artifact .setup-switch:disabled { opacity: .45; cursor: not-allowed; }
.setup-kv { display: grid; grid-template-columns: auto minmax(0,1fr); margin: 0; }
.setup-kv dt,.setup-kv dd { padding: 8px 0; border-bottom: 1px solid var(--line); }
.setup-kv dt { color: var(--muted); }
.setup-kv dd { padding-left: 16px; margin: 0; color: var(--ink); text-align: right; overflow-wrap: anywhere; }
.setup-kv > :nth-last-child(-n+2) { border-bottom: 0; }
.setup-health { display: grid; grid-template-columns: repeat(auto-fit,minmax(170px,1fr)); gap: 8px; background: transparent; border: 0; border-radius: 0; overflow: hidden; }
.setup-health-cell { border: 1px solid var(--line); border-radius: 10px; display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; min-width: 0; color: var(--text); text-decoration: none; background: var(--surface); }

.setup-health-cell:hover { background: var(--hover); }
.setup-health-cell .label { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--muted); }
.setup-health-cell .label:before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.setup-health-cell[data-health=attention] .label:before { background:var(--attn); }
.setup-health-cell b { color: var(--ink); font-size: 15px; font-weight: 600; }
.setup-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.setup-section-head form { margin: 0; }
.setup-section-head .hint { display: none; }
.setup-general .setup-list { border: 0; border-radius: 0; margin: 0; }
.setup-general .setup-list > li { padding: 14px 0; margin: 0; border-color: var(--line); }
.setup-general .connection-main { display: flex; flex-direction: column; gap: 4px; }
.setup-general .connection-main strong { font-size: 14px; font-weight: 600; }
.setup-general .connection-destination { font-size: 13px; }
.setup-guide { border: 1px solid var(--line); background: var(--surface-2); border-radius: 10px; padding: 12px 14px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.setup-guide > div { display: flex; flex-direction: column; gap: 3px; }
.setup-guide b { color: var(--ink); }
.setup-link { color: var(--brand-ink); font-weight: 500; text-decoration: none; }
.setup-link:hover { text-decoration: underline; }
.setup-artifact .hint { font-size: 12.5px; line-height: 1.5; color: var(--muted); margin: 0; }
.setup-presets { display: flex; padding: 3px; gap: 2px; border-radius: 10px; background: var(--sunken); margin: 10px 0; }
.setup-presets button { display: inline-flex; align-items: center; justify-content: center; gap: 4px; flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; border: 0; background: transparent; color: var(--muted); border-radius: 7px; height: 28px; padding: 0 6px; font-size: 12.5px; font-weight: 500; }
.setup-presets button[aria-pressed=true] { color: var(--ink); background: var(--surface); box-shadow: 0 1px 2px color-mix(in srgb, var(--shadow-ink) 10%, transparent); }
.setup-chip-set { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.setup-box:has(> .setup-chip-set) { display: flex; flex-direction: column; gap: 12px; }
.setup-box:has(> .setup-chip-set) > p { margin: 0; }
.setup-art-section:has(.setup-chip-set) > h2 { margin-bottom: 10px; }
.setup-rule-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.setup-chip-toggle { display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 11px; border: 1px solid var(--line-2); border-radius: 99px; font-size: 12.5px; font-weight: 500; cursor: pointer; color: var(--text); background: var(--surface); }
.setup-chip-toggle:has(input:checked) { color: var(--ink); border-color: color-mix(in srgb,var(--brand) 55%,var(--line-2)); background: var(--sel); font-weight: 600; }
.setup-chip-toggle input[type=checkbox] { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.setup-chip-toggle:has(input:focus-visible) { outline: 2px solid var(--brand); outline-offset: 2px; }
.setup-chip-toggle:has(input:disabled) { cursor: not-allowed; opacity: .45; }
.setup-stepper { display: inline-flex; align-items: stretch; border: 1px solid var(--line-2); border-radius: 9px; height: calc(var(--touch-target, 32px) + 2px); overflow: hidden; background: var(--surface); }
.setup-stepper button { display: grid; place-items: center; width: var(--touch-target, 32px); height: var(--touch-target, 32px); border: 0; background: transparent; color: var(--muted); }
.setup-stepper button:hover { background: var(--hover); color: var(--ink); }
.setup-artifact .setup-stepper input { width: 58px; padding: 0 8px; border: 0; border-inline: 1px solid var(--line); background: transparent; border-radius: 0; text-align: center; font: 600 13px/1.5 var(--body); min-height: 0; height: var(--touch-target, 32px); }
.setup-stepper > span { font-size: 13px; margin-right: 7px; }
.setup-money { display: inline-flex; align-items: center; gap: 6px; font-size: inherit; color: var(--muted); }
.setup-artifact .setup-money input { width: 120px; height: 36px; min-height: 0; border: 1px solid var(--line-2); border-radius: 9px; background: var(--surface); padding: 0 11px; font: 14px/21px var(--body); font-size: 14px !important; color: var(--text); }
.setup-spend { display: flex; flex-direction: column; gap: 10px; }
.setup-spend .setup-section-head { margin: 0; }
.setup-save-toast { position: fixed; right: 24px; bottom: 24px; z-index: 80; padding: 12px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-pop); display: flex; align-items: center; gap: 12px; max-width: min(520px,calc(100vw - 32px)); }
.setup-save-toast[hidden] { display: none; }
.setup-save-toast button { border: 0; background: transparent; color: var(--brand-ink); cursor: pointer; }
.setup-tabs[data-fade=r] { mask-image: linear-gradient(to right,var(--mask-ink) calc(100% - 28px),transparent); }
.setup-tabs[data-fade=l] { mask-image: linear-gradient(to right,transparent,var(--mask-ink) 28px); }
.setup-tabs[data-fade=lr] { mask-image: linear-gradient(to right,transparent,var(--mask-ink) 28px,var(--mask-ink) calc(100% - 28px),transparent); }
@media (max-width: 860px) {
 .setup-artifact .setup-art-head h1 { font-size: 24px; }
 .setup-artifact .setup-tabs { width: 100%; }


 .setup-setting { flex-wrap: wrap; }
 .setup-save-toast button,.setup-artifact .seg button,.delivery-picker-chip,.delivery-choice > summary { min-height:44px; min-width:44px; }

 .setup-section-head { flex-wrap: wrap; }
 .setup-save-toast { bottom: 80px; right: 16px; }
}
.setup-chip-check { display: none; }
.setup-chip-toggle:has(input:checked) .setup-chip-check { display: block; }

.delivery-rule-row { display:flex; align-items:center; flex-wrap:wrap; gap:10px; padding:12px 0; border-top:1px solid var(--line); }
.delivery-rule-row:first-child { border-top:0; }
.delivery-rule-row code { flex:1; min-width:120px; overflow-wrap:anywhere; font:12.5px var(--mono); }
[data-delivery-rule-form] { display:flex; flex-wrap:wrap; gap:8px; align-items:center; margin:0; }
[data-delivery-rule-form] input[name=match] { flex:1; min-width:180px; height:34px; border:1px solid var(--line-2); border-radius:9px; padding:0 11px; }
[data-rule-add] > summary { width:fit-content; }
[data-rule-add][open] > summary { margin-bottom:12px; }
.delivery-choice { position:relative; }
.delivery-choice summary { list-style:none; cursor:pointer; }
.delivery-choice-items { position:absolute; top:calc(100% + 6px); right:0; z-index:25; min-width:220px; padding:6px; border:1px solid var(--line-2); border-radius:12px; background:var(--surface); box-shadow:var(--shadow-pop); }
.delivery-choice-items button { min-height:var(--touch-target, 0px); width:100%; border:0; padding:9px 10px; border-radius:7px; text-align:left; background:transparent; color:var(--ink); font:13px var(--body); }
.delivery-choice-items button:hover,.delivery-choice-items button[aria-pressed=true] { background:var(--hover); }
.setup-rule-chips form { margin:0; }
.delivery-chip-add { position:relative; }
.delivery-chip-add > summary { list-style:none; }
.delivery-chip-add > form { position:absolute; top:calc(100% + 6px); left:0; z-index:25; min-width:240px; padding:12px; background:var(--surface); border:1px solid var(--line-2); border-radius:12px; box-shadow:var(--shadow-pop); }
.delivery-chip-add label { display:grid; gap:6px; font-size:12px; }
[data-delivery-rule-form] [hidden] { display:none !important; }
.setup-setting > [data-delivery-rule-form] { flex-shrink:0; justify-content:flex-end; }
.delivery-sensitive { display:grid; grid-template-columns:minmax(0,1fr) auto; column-gap:14px; row-gap:4px; }
.delivery-sensitive > [data-delivery-rule-form] { display:contents; }
.delivery-sensitive .setup-switch { grid-column:2; grid-row:1 / span 2; align-self:center; }
.delivery-sensitive .delivery-choice { grid-column:1; grid-row:2; justify-self:start; }
.delivery-sensitive .delivery-choice-items { left:0; right:auto; min-width:min(220px,calc(100vw - 64px)); max-width:calc(100vw - 64px); box-sizing:border-box; }
.delivery-sensitive .delivery-choice > summary { border:0; padding:0; min-height:var(--touch-target, 0px); font-size:12.5px; gap:4px; color:var(--muted); background:none; font-weight:400; }
.setup-operational > summary { cursor:pointer; font-size:13px; margin-bottom:12px; }
.setup-box > section { padding-top:14px; border-top:1px solid var(--line); }
.setup-box > section > .setup-box { border:0; padding:0; }
.delivery-tests-toggle { width:100%; }
.delivery-test-folders[hidden],[data-deployment-options][hidden] { display:none; }
.delivery-folder-search { display:grid; gap:6px; }
.delivery-test-folders { border-top:1px solid var(--line); padding-top:14px; }
.delivery-test-folders > b { font-size:13px; }
.delivery-test-folders > p { font-size:13px; margin:4px 0 10px; }
.setup-section-head [data-rule-add] { position:relative; }
.setup-section-head [data-rule-add] > form { position:absolute; top:calc(100% + 6px); right:0; width: min(440px, calc(100vw - 80px)); z-index:25; padding:14px; background:var(--surface); border:1px solid var(--line-2); border-radius:12px; box-shadow:var(--shadow-pop); }
.delivery-rule-row { justify-content:space-between; gap:16px; padding:14px 0; }
.delivery-rule-match,.delivery-rule-actions { display:flex; align-items:center; gap:8px; }
.delivery-rule-match { flex-wrap:wrap; min-width:0; color:var(--muted); }
.delivery-rule-match code { color:var(--ink); }
.delivery-rule-actions { margin-left:auto; }
.delivery-rule-actions button { width:34px; height:34px; padding:0; display:grid; place-items:center; border:0; background:none; color:var(--muted); }
.delivery-rule-pill { display:inline-flex; align-items:center; gap:6px; height:22px; padding:0 8px; border-radius:99px; font-size:12px; font-weight:600; white-space:nowrap; background:var(--hover); color:var(--muted); }
.delivery-rule-pill i { width:6px; height:6px; border-radius:50%; background:currentColor; }
.delivery-rule-pill[data-action=ask-before-merge],.delivery-rule-pill[data-action=security-review] { background:var(--attn-bg); color:var(--attn); }
.delivery-rule-pill[data-action=skip-plan-approval] { background:var(--info-bg); color:var(--info); }
[data-rule-draft] { padding:14px 0; border-top:1px solid var(--line); }
[data-rule-draft][hidden] { display:none !important; }
[data-rule-draft] input[name=match] { height:36px; }
[data-rule-draft] .delivery-choice summary { height:36px; }
.delivery-picker-chip { display:inline-flex; align-items:center; gap:5px; height:30px; padding:0 11px; border-radius:99px; border:1px solid var(--line-2); background:var(--surface); color:var(--muted); font:400 12.5px/1 var(--mono); cursor:pointer; }
.delivery-picker-chip[aria-pressed=true] { border-color:var(--info-line); background:var(--info-bg); color:var(--ink); }
.delivery-picker-chip:disabled { cursor:default; opacity:1; }
.delivery-picker-chip.missing { color:var(--crit); background:var(--crit-bg); border-color:var(--crit-line); }
.delivery-folder-count { font:500 11px/1 var(--body); color:var(--muted); }

.setup-ai-artifact { display: flex; flex-direction: column; gap: 20px; max-width: 960px; }
.setup-ai-artifact .account-list-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.setup-ai-artifact h2, .setup-ai-artifact h3 { margin: 0; }
.setup-ai-artifact .acct-add { margin: 0; }
.setup-ai-artifact .account-routing { padding: 16px; }
.setup-ai-artifact .account-routing > p { margin: 2px 0 12px; }
.setup-ai-artifact .account-group { display: flex; flex-direction: column; gap: 8px; }
.setup-ai-artifact .account-group-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.setup-ai-artifact .account-group-number { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); font-size: 12px; font-weight: 700; }
.setup-ai-artifact .ai-account-list { display: block; margin: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); overflow: hidden; }
.setup-ai-artifact .setup-list.ai-account-list > .ai-account { display: block; padding: 14px 16px; border: 0; border-radius: 0; box-shadow: none; }
.setup-ai-artifact .ai-account + .ai-account { border-top: 1px solid var(--line) !important; }
.setup-ai-artifact .ai-account:hover { background: var(--hover, var(--surface-2)); }
.setup-ai-artifact .account-row-info { flex: 1; min-width: 0; }
.setup-ai-artifact .account-heading { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.setup-ai-artifact .account-row-info > p { margin: 5px 0 0; }
.setup-ai-artifact .account-usage-summary { width: 200px; flex: none; }
.setup-ai-artifact .account-usage { margin: 0; }.account-usage-summary .account-usage-window{display:block;margin:4px 0;font-size:12px;color:var(--muted)}.account-usage-summary progress{margin-top:4px}.account-usage-summary .account-usage{display:block;margin-top:4px;font-size:12px}
.account-editor { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.account-editor h2 { margin: 0; font: 600 20px/1.3 var(--display, inherit); }
.account-editor > p { margin: -16px 0 0; }
.account-editor .account-section, .account-editor .account-controls > form, .account-editor .account-remove { display: flex; flex-direction: column; gap: 10px; padding-top: 18px; border-top: 1px solid var(--line); }
.account-editor .account-controls { display: flex; flex-direction: column; gap: 20px; }
.account-editor .account-toolbar { display: flex; gap: 8px; flex-wrap: wrap; }
.account-editor .field, .account-editor fieldset { min-width: 0; }
.account-editor input:not([type=hidden]):not([type=radio]):not([type=checkbox]), .account-editor select { max-width: 100%; }
.account-editor .account-stages { display: flex; flex-wrap: wrap; gap: 8px; }
.account-editor .account-stages .choice { display: inline-flex; align-items: center; gap: 6px; padding: 6px 9px; border: 1px solid var(--line); border-radius: 8px; }
.account-editor .account-stages .choice:has(:checked) { background: var(--sel); border-color: var(--info-line); }
.account-editor .account-stages .hint { flex-basis: 100%; }
.account-editor .choice { display: flex; align-items: center; gap: 8px; }
.account-editor .hint { font-size: 12.5px; }
.account-editor form > button { align-self: flex-start; }
.setup-ai-dialog { position: fixed; inset: 0 0 0 auto; margin: 0; width: min(540px, 100%); height: 100dvh; max-height: 100dvh; max-width: 100%; box-sizing: border-box; border: 0; border-left: 1px solid var(--line); padding: 16px 22px 20px; background: var(--surface); color: var(--ink); overflow-y: auto; }
.setup-ai-dialog[open] { display: flex; flex-direction: column; }
.setup-ai-dialog > .account-editor { flex: 1; }
.account-editor input:not([type=hidden]):not([type=radio]):not([type=checkbox]), .account-editor select { min-height: 36px; height: 36px; border-radius: 9px; padding: 7px 10px; font-size: 14px; }
.setup-ai-dialog::backdrop { background: var(--scrim); }
.setup-ai-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.setup-ai-dialog-foot { position: sticky; bottom: -20px; margin: 20px -22px -20px; padding: 12px 22px; display: flex; align-items: center; gap: 8px; background: var(--surface); border-top: 1px solid var(--line); }
.setup-ai-dialog-foot [role=status] { flex: 1; font-size: 12.5px; }
.setup-ai-dialog [data-account-save] > button[type=submit] { display: none; }
.account-segments { display: flex; padding: 3px; gap: 2px; border-radius: 10px; background: var(--sunken, var(--surface-2)); max-width: 100%; }
.account-segments button { flex: 1 1 auto; min-width: 0; height: 28px; padding: 0 6px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); font-size: 12.5px; font-weight: 500; white-space: nowrap; }
.account-segments button[aria-pressed=true] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px color-mix(in srgb, var(--shadow-ink) 10%, transparent); }
.account-control-label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.account-editor [hidden], .setup-ai-artifact [hidden] { display: none !important; }
.account-editor form[data-account-method=api] .claude-seat { display: none; }
.setup-ai-artifact .account-routing { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.setup-ai-artifact .account-routing-copy { flex: 1 1 320px; }
.setup-ai-artifact .account-routing-copy p { margin: 2px 0 0; }
.setup-ai-artifact .account-mode-form { margin: 0; }
.setup-ai-artifact .ai-account .gate-main { position: relative; }
.setup-ai-artifact .account-heading strong { font-weight: 600; color: var(--ink); }
.setup-ai-artifact .account-heading .pill { font-size: 11.5px; font-weight: 500; padding: 2px 7px; }
.account-editor .opt { margin: 0; }
.account-editor fieldset { border: 0; padding: 0; margin: 0; }
.account-editor legend { font-size: 13px; font-weight: 600; padding: 0; margin-bottom: 10px; }
.account-editor h3 { font-size: 13px; font-weight: 600; margin: 0; }
.account-editor .account-section > p { margin: 0; }
.account-editor .account-stages .choice { font-size: 13px; font-weight: 500; }
.account-editor .account-stages input[type=checkbox] { position: absolute; opacity: 0; width: 1px; height: 1px; }
.account-editor .account-stages .choice:focus-within { outline: 2px solid var(--brand); outline-offset: 2px; }
.account-editor .acct-slots input[type=number] { width: 80px; }
.account-editor .btn, .setup-ai-dialog-foot .btn { min-height: 34px; border-radius: 9px; padding: 0 11px; font-size: 13px; }
.setup-ai-dialog .setup-ai-dialog-head .btn { display: grid; place-items: center; width: 34px; height: 34px; min-height: 34px; padding: 0; border: 1px solid transparent; border-radius: 9px; background: transparent; color: var(--muted); }
.setup-ai-artifact .account-routing-copy { flex: 1 1 320px; }
.setup-ai-artifact .account-routing-copy h3 { font-size: 14px; font-weight: 600; }
.setup-ai-artifact .account-mode-form { flex: none; }
.setup-ai-artifact .account-mode-form .account-segments button { flex: none; padding: 0 10px; }
.setup-ai-artifact .setup-list.ai-account-list > .ai-account { display: flex; align-items: center; gap: 4px; padding: 0 12px 0 0; overflow: visible; }
.setup-ai-artifact .ai-account-list { overflow: visible; }
.setup-ai-artifact .ai-account .gate-main { flex: 1; min-width: 0; padding: 14px 10px 14px 16px; }
.setup-ai-artifact .account-row-groups + .gate-main { padding-left: 4px; }
.setup-ai-artifact .setup-list.ai-account-list > .ai-account:first-child { border-radius: 11px 11px 0 0; }
.setup-ai-artifact .setup-list.ai-account-list > .ai-account:last-child { border-radius: 0 0 11px 11px; }
.setup-ai-artifact .setup-list.ai-account-list > .ai-account:only-child { border-radius: 11px; }
.account-row-groups { position: relative; flex: none; }
.account-row-groups > summary { display: grid; place-items: center; width: 24px; height: 40px; margin-left: 6px; border-radius: 6px; color: var(--muted); font-size: 20px; cursor: pointer; list-style: none; }
.account-row-groups > summary::-webkit-details-marker { display: none; }
.account-row-groups > summary { cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
.setup-ai-artifact .setup-list.ai-account-list > .ai-account.account-dragging { position: relative; z-index: 30; border-radius: 11px; background: var(--surface); box-shadow: var(--shadow); opacity: .9; }
.account-dragging .account-row-groups > summary { cursor: grabbing; }
.setup-ai-artifact .account-group-new { display: none; padding: 16px; border: 1px dashed var(--line-2); border-radius: 12px; color: var(--muted); text-align: center; }
.setup-ai-artifact[data-account-dragging] .account-group-new { display: block; }
.setup-ai-artifact [data-account-drop] .ai-account-list, .setup-ai-artifact .account-group-new[data-account-drop] { outline: 2px solid var(--accent, var(--ink)); outline-offset: 1px; }
.account-row-groups > form { position: absolute; z-index: 20; top: 100%; left: 6px; min-width: 250px; padding: 6px; margin: 0; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); box-shadow: var(--shadow); }
.account-row-groups button { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; width: 100%; padding: 8px 10px; border: 0; border-radius: 7px; color: var(--ink); background: transparent; text-align: left; }
.account-row-groups button:hover, .account-row-groups button[aria-pressed=true] { background: var(--surface-2); }
.setup-ai-artifact [data-account-group-guidance] { flex-basis: 100%; margin: 0; }
@media (max-width: 860px) {
  .setup-ai-artifact .account-usage-summary { width: 100%; }
  .setup-ai-dialog { padding-inline: 16px; }
  .setup-ai-dialog-foot { margin-inline: -16px; padding-inline: 16px; }
}
.account-row-groups button { position: relative; padding-left: 32px; }
.account-menu-check { position: absolute; left: 10px; top: 10px; }

.account-row-link { display:flex; align-items:center; gap:14px; min-width:0; flex:1; color:var(--ink); text-decoration:none; padding:14px 12px; }
.account-row-link:hover { background:var(--hover); }
.account-row-link .account-row-info { flex:1; display:flex; flex-direction:column; gap:5px; }
.account-row-link .account-usage-summary { width:200px; flex:none; }
.account-full-page { max-width:860px; margin:0; display:flex; flex-direction:column; gap:18px; }
.account-back { display:inline-flex; gap:7px; align-items:center; align-self:flex-start; color:var(--muted); text-decoration:none; }
.account-back svg { transform:rotate(180deg); }
.account-page-head { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.account-page-head h1 { margin:0; font:600 24px/1.25 var(--display); }
.account-page-head p { flex-basis:100%; margin:0; color:var(--muted); }
.account-full-page .account-editor { padding:0; overflow:visible; }
.account-full-page .account-editor > h2,.account-full-page .account-editor > p.muted { display:none; }
.account-full-page .account-controls { display:flex; flex-direction:column; gap:18px; }
.account-full-page form { margin:0; max-width:none; }
.account-full-page form[data-account-save] > button[type=submit] { display:none; }
.account-full-page input:not([type=checkbox]):not([type=radio]):not([type=hidden]) { height:36px; border:1px solid var(--line-2); border-radius:9px; padding:0 11px; font:14px/1.5 Inter,system-ui,sans-serif; background:var(--surface); color:var(--ink); }
.account-full-page label,.account-full-page legend { font-size:13px; font-weight:600; color:var(--ink); }
.account-full-page #account-name { display:block; width:100%; margin-top:6px; box-sizing:border-box; }
.account-page-section { display:flex; flex-direction:column; gap:12px; padding-top:18px; border-top:1px solid var(--line); }
.account-page-section h3 { font-size:13.5px; margin:0; }
.account-page-section .card { padding:16px; border-radius:12px; }
.account-budget-row { display:flex; gap:16px; align-items:center; justify-content:space-between; flex-wrap:wrap; padding:14px 0; border-top:1px solid var(--line); }
.account-budget-row:first-child { border-top:0; }
.account-budget-row > div { flex:1 1 260px; }
.account-budget-row p { margin:2px 0 0; }
.account-budget-row input { width:120px; box-sizing:border-box; }
.account-full-page .account-stages { display:flex; gap:6px; flex-wrap:wrap; }
.account-full-page .account-stages legend { width:100%; margin-bottom:8px; }
.account-full-page .account-stages .choice,.account-any-step { display:inline-flex; align-items:center; gap:5px; margin:0; min-height:30px; padding:0 10px; border:1px solid var(--line-2); border-radius:7px; background:var(--surface); }
.account-full-page .account-stages .choice:has(:checked),.account-full-page .account-any-step[aria-pressed=true] { border-color:var(--brand); background:var(--sel); }
.account-full-page .account-stages .hint { flex-basis:100%; }
.account-slot-stepper { display:inline-flex; align-items:center; border:1px solid var(--line-2); border-radius:9px; overflow:hidden; height:34px; }
.account-slot-stepper button { height:34px; width:32px; border:0; background:var(--surface); color:var(--muted); display:grid; place-items:center; }
.account-full-page .account-slot-stepper input { width:58px; border:0; border-inline:1px solid var(--line); border-radius:0; padding:0; text-align:center; appearance:textfield; }
.account-slot-stepper input::-webkit-inner-spin-button { display:none; }
.account-page-footer { display:flex; align-items:center; gap:8px; justify-content:flex-end; border-top:1px solid var(--line); padding-top:16px; }
.account-page-footer [role=status] { margin-right:auto; color:var(--muted); }
@media(max-width:700px) { .account-row-link { flex-wrap:wrap; } .account-row-link .account-usage-summary { width:100%; } .account-full-page { max-width:none; } }

.account-pacing-line { display:flex; gap:16px; align-items:center; justify-content:space-between; }
.account-pacing-switch { width:36px; height:20px; border:0; border-radius:99px; padding:2px; background:var(--line-2); }
.account-pacing-switch::after { content:""; display:block; width:16px; height:16px; border-radius:50%; background:var(--switch-thumb); box-shadow:0 1px 2px color-mix(in srgb, var(--shadow-ink) 27%, transparent); }
.account-pacing-switch[aria-checked=true] { background:var(--brand); }
.account-pacing-switch[aria-checked=true]::after { transform:translateX(16px); }
.account-page-footer .btn { white-space:nowrap; flex:none; }
.account-full-page .account-slot-stepper input { min-width:0; box-shadow:none; border-radius:0; }
.account-full-page .account-stages .choice,.account-full-page .account-any-step { border-radius:99px; font-size:12.5px; font-weight:400; }
.account-full-page .account-stages input { position:absolute; opacity:0; width:1px; height:1px; }
.account-full-page .account-stages .choice:focus-within { outline:2px solid var(--brand); outline-offset:2px; }
.account-full-page .account-stages .choice { text-transform:none; }
.account-full-page .acct-slots { display:grid; grid-template-columns:minmax(0,1fr) auto; column-gap:16px; row-gap:2px; margin:0; }
.account-full-page .acct-slots > label { grid-column:1; grid-row:1; }
.account-full-page .acct-slots > .hint { grid-column:1; grid-row:2; margin:0; }
.account-full-page .acct-slots > .account-slot-stepper { grid-column:2; grid-row:1 / span 2; align-self:center; }
.account-full-page .account-page-section form { display:grid; gap:12px; }
.account-budget-row > .account-slot-stepper { flex:0 0 auto; }
.account-budget-row:first-of-type { border-top:0; }
.account-full-page .account-removal-row { display:flex; align-items:center; justify-content:space-between; gap:16px; border-top:1px solid var(--line); padding-top:20px; }
.account-removal-row p { margin:2px 0 0; font-size:12.5px; }
.account-removal-row .account-remove { margin:0; padding:0; border:0; }
.account-removal-row .account-remove > summary { width:auto; color:var(--crit); }
.account-page-footer button:disabled { opacity:.45; }
.account-full-page .account-back { color:var(--info); }
.account-usage-window { display:grid; gap:7px; font-size:12.5px; color:var(--muted); }
.account-usage-window > div { display:flex; flex-wrap:wrap; justify-content:space-between; gap:8px; }
.setup-ai-dialog-head > strong { font-size:11.5px; font-weight:600; letter-spacing:.06em; text-transform:uppercase; color:var(--muted); }
.setup-ai-dialog .btn.outline { color:var(--ink); }
.setup-ai-dialog-foot button:disabled { opacity:.45; }
.account-editor .account-seat-row { display:flex; align-items:center; justify-content:space-between; gap:16px; margin:14px 0; }
.account-seat-row > span { display:grid; gap:2px; font-size:14px; }
.account-seat-row strong { font-size:13px; font-weight:600; }
.account-seat-row input { appearance:none; width:36px; height:20px; flex:none; border:0; padding:2px; border-radius:99px; background:var(--line-2); cursor:pointer; }
.account-seat-row input::after { content:''; display:block; width:16px; height:16px; border-radius:50%; background:var(--switch-thumb); box-shadow:0 1px 2px color-mix(in srgb, var(--shadow-ink) 27%, transparent); transition:transform .15s; }
.account-seat-row input:checked { background:var(--info); }
.account-seat-row input:checked::after { transform:translateX(16px); }
.account-full-page .acct-slots .account-slot-stepper input { width:58px; }
.account-full-page .account-replace { margin:0; }
.account-full-page .account-controls > .account-section { position:relative; }
.account-full-page .account-section:has(> .account-replace) { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:10px 16px; }
.account-full-page .account-section:has(> .account-replace) > h3 { grid-column:1 / -1; }
.account-full-page .account-section:has(> .account-replace) > p { grid-column:1; align-self:center; }
.account-full-page .account-section:has(> .account-replace) > .account-replace { grid-column:2; }
.account-full-page .account-replace[open] { grid-column:1 / -1 !important; }
/* Dialogs are mounted outside the app shell, so phone targets must also be scoped here. */
@media (max-width: 860px) {
  .setup-ai-dialog button, .setup-ai-dialog .btn, .account-full-page button,
  .account-full-page .btn, .account-back, .account-segments button,
  .account-editor .account-stages .choice, .account-any-step,
  .account-row-groups > summary, .account-row-groups button,
  .account-editor summary, .account-full-page summary {
    min-width:44px; min-height:44px; box-sizing:border-box;
  }
  .setup-ai-dialog .setup-ai-dialog-head .btn { width:44px; height:44px; min-height:44px; }
  .account-slot-stepper { height:46px; }
  .account-slot-stepper button { width:44px; height:44px; }
  .account-editor input:not([type=hidden]):not([type=radio]):not([type=checkbox]),
  .account-full-page input:not([type=hidden]):not([type=radio]):not([type=checkbox]),
  .account-editor select { min-height:44px; height:44px; }
  .account-pacing-switch { width:60px; height:44px; min-width:60px; border:12px solid transparent; background-clip:padding-box; }
  .account-editor summary, .account-full-page summary { display:flex; align-items:center; }
  .account-editor .btn { min-height:44px; }
}

.setup-people-artifact{display:grid;gap:24px;max-width:900px}
.setup-people-artifact .sp-list{list-style:none;margin:0;padding:0 16px}
.sp-person{display:flex;align-items:center;gap:12px;padding:12px 0;flex-wrap:wrap}
.sp-person+.sp-person{border-top:1px solid var(--line)}
.sp-avatar{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;font-size:12px;font-weight:700;background:var(--neutral-bg,var(--surface));color:var(--muted);flex:none}
.sp-person-main{display:grid;gap:1px;flex:1 1 220px;min-width:0}.sp-person-main>div{display:flex;align-items:center;gap:6px}.sp-person-main strong{font-size:14px;line-height:21px}.sp-person-main .chip{font-size:11px;line-height:16px;padding:1px 5px;margin:0}.sp-person-main .hint{margin:0;font-size:12.5px;line-height:18.75px;overflow-wrap:anywhere}
.sp-controls,.sp-invite-row{display:flex;align-items:center;gap:8px}.sp-controls{flex-wrap:nowrap}.sp-lock{font-size:11px;color:var(--muted)}
.sp-role{position:relative}.setup-people-artifact .sp-role,.setup-people-artifact .sp-remove{margin:0}.sp-role>summary,.sp-static{box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;gap:8px;width:auto;height:var(--touch-target,36px);min-height:var(--touch-target,36px);padding:0 10px 0 11px;font-size:13px;font-weight:500;border:1px solid var(--line-2);border-radius:9px;background:var(--surface);list-style:none}.sp-role>summary{cursor:pointer;gap:7px}.sp-role>summary::-webkit-details-marker,.sp-remove>summary::-webkit-details-marker{display:none}
.sp-menu{position:absolute;right:0;top:calc(100% + 6px);z-index:50;width:300px;max-width:calc(100vw - 48px);padding:6px;border:1px solid var(--line);border-radius:12px;background:var(--surface);box-shadow:var(--shadow-pop);display:flex;flex-direction:column;gap:2px}
.sp-choice{min-height:var(--touch-target,0px);display:flex;align-items:flex-start;gap:10px;width:100%;padding:8px 10px;border:0;border-radius:8px;background:transparent;color:var(--ink);text-align:left;font:inherit;cursor:pointer}.sp-choice:hover,.sp-choice:focus-visible{background:var(--neutral-bg,var(--bg))}.sp-choice>span:last-child{display:grid;gap:1px}.sp-choice strong{font-size:14px;line-height:21px;font-weight:400}.sp-choice .hint{font-size:12.5px;line-height:1.5}.sp-choice-check{width:16px;flex:none}.sp-choice input{accent-color:var(--ink)}.sp-choice:has(input) .sp-choice-check{visibility:hidden}.sp-choice:has(input:checked) .sp-choice-check{visibility:visible}.sp-choice input{position:absolute;opacity:0;width:1px;height:1px}.sp-choice:focus-within{outline:2px solid var(--brand);outline-offset:-2px}
.sp-remove>summary{display:grid;place-items:center;width:var(--touch-target,34px);height:var(--touch-target,34px);list-style:none;cursor:pointer;border-radius:9px;color:var(--muted)}.sp-remove[open]>summary{margin-left:auto}.sp-remove form{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:12px}.sp-controls:has(.sp-remove[open])>.sp-role{display:none}
.setup-people-artifact .sp-invite{display:grid;gap:10px;background:var(--surface-2,var(--surface));padding:16px;margin:0}.sp-invite-row{gap:10px;align-items:flex-start;flex-wrap:wrap}.sp-email{flex:1 1 240px;display:grid;gap:5px}.setup-people-artifact .sp-email input{font-size:14px;line-height:21px;width:100%;max-width:none;box-sizing:border-box;height:var(--touch-target,36px);min-height:var(--touch-target,36px);padding:0 11px}.sp-invite .sp-role>summary{width:auto}.sp-static{background:var(--surface-2,var(--surface))}.sp-lock{display:inline-flex;align-items:center;gap:4px}.setup-people-artifact .sp-invite button[type=submit]{height:var(--touch-target,34px);min-height:var(--touch-target,34px);padding:0 13px}.sp-invite button[type=submit] svg{width:15px;height:15px}.sp-invite p{margin:0}.sp-error{color:var(--crit);font-size:12px}.sp-error:empty{display:none}
@media(max-width:860px){.sp-person,.sp-invite-row{position:relative}.sp-role{position:static}.sp-menu{left:0;right:0;width:auto;max-width:100%}}
@media(max-width:640px){.sp-controls{margin-left:44px}.sp-invite-row{align-items:stretch}.sp-email{flex-basis:100%}}
.sp-choice-check svg { width: 15px; height: 15px; }
.sp-lock { display: inline-flex; align-items: center; gap: 4px; }

.setup-environment{display:flex;flex-direction:column;gap:24px;max-width:860px}
.setup-environment .env-state{display:flex;align-items:center;gap:12px;padding:16px}
.setup-environment .env-state p{margin:2px 0 0}
.setup-environment .env-state-icon{display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:var(--surface-2);color:var(--muted);flex:none}
.setup-environment .passed .env-state-icon{color:var(--ok);background:var(--ok-bg)}
.setup-environment .running .env-state-icon{color:var(--brand);background:var(--sel)}
.setup-environment .section-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px;gap:12px}
.setup-environment h2,.setup-environment h3{margin:0;font-size:15px}
.setup-environment [data-environment-form]{display:flex;flex-direction:column;gap:14px}.setup-environment .field{margin:0}.setup-environment .field label{display:block;margin-bottom:7px;font-weight:500}
.setup-environment textarea{font-size:12.5px!important;box-sizing:border-box;width:100%;resize:vertical;min-height:40px;height:40px;padding:9px 11px;background:var(--surface);border:1px solid var(--line);border-radius:9px;color:var(--ink);font:12.5px/20px var(--mono,monospace)}
.setup-environment .env-setting{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 0}
.setup-environment .env-setting small{display:block;color:var(--muted);margin-top:4px}.setup-environment .env-setting input{appearance:none;position:relative;width:36px;height:20px;flex:none;margin:0;border:0;border-radius:99px;background:var(--line-2,var(--line))}.setup-environment .env-setting input::after{content:"";position:absolute;top:2px;left:2px;width:16px;height:16px;border-radius:50%;background:var(--switch-thumb);box-shadow:0 1px 2px color-mix(in srgb, var(--shadow-ink) 27%, transparent);transition:transform .15s}.setup-environment .env-setting input:checked{background:var(--brand)}.setup-environment .env-setting input:checked::after{transform:translateX(16px)}.setup-environment .env-setting input:disabled{opacity:.45}.setup-environment .env-setting input:focus-visible{outline:2px solid var(--brand);outline-offset:3px}
.setup-environment .env-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:0}.setup-environment .env-allowance{margin-left:auto}
.setup-environment .env-results{margin-top:16px}
.setup-environment .env-recheck{margin:14px 0}.setup-environment .env-log{list-style:none;display:flex;flex-direction:column;gap:8px;padding:0;margin:12px 0 0}.setup-environment .env-log li{display:flex;flex-wrap:wrap;gap:10px;align-items:center;padding:0}
.setup-environment .env-log pre{width:100%;max-height:240px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;margin:0;color:var(--muted)}
.setup-environment .env-result{display:inline-flex;align-items:center;gap:4px;font-size:12px;color:var(--muted)}.setup-environment .env-result.success{color:var(--ok)}.setup-environment .env-result.failure{color:var(--crit)}
.setup-environment .cred-intro{margin:0 0 14px}
.setup-environment .cred-options{display:flex;flex-direction:column;gap:10px}
.setup-environment .cred-option{border:1px solid var(--line);border-radius:12px;background:var(--surface)}
.setup-environment .cred-option>summary{display:flex;align-items:center;gap:10px;padding:12px 14px;cursor:pointer;list-style:none;font-weight:500;border-radius:12px}
.setup-environment .cred-option>summary::-webkit-details-marker{display:none}
.setup-environment .cred-option>summary>svg:first-child{color:var(--muted);flex:none}.setup-environment .cred-option>summary>svg:last-child{margin-left:auto;color:var(--muted);flex:none}
.setup-environment .cred-option[open]>summary>svg:last-child{transform:rotate(180deg)}
.setup-environment .cred-needed{flex:none;font-size:12px;font-weight:500;color:var(--brand);background:var(--sel);border-radius:999px;padding:2px 8px}
.setup-environment .cred-option>summary:focus{outline:none}.setup-environment .cred-option>summary:focus-visible{outline:2px solid var(--brand);outline-offset:-2px}
.setup-environment .cred-form{display:flex;flex-direction:column;gap:14px;padding:4px 14px 14px;border-top:1px solid var(--line);padding-top:14px}
.setup-environment .cred-input{box-sizing:border-box;width:100%;max-width:none;height:40px;padding:9px 11px;background:var(--surface);border:1px solid var(--line);border-radius:9px;color:var(--ink);font-family:inherit;font-size:13px;line-height:20px}
.setup-environment .cred-input:focus{outline:none;border-color:var(--brand);box-shadow:0 0 0 3px var(--sel)}
.setup-environment .cred-saved-list{list-style:none;margin:0 0 12px;padding:0;display:flex;flex-direction:column;gap:8px}
.setup-environment .cred-saved{display:flex;align-items:center;gap:12px;padding:12px 14px;border:1px solid var(--line);border-radius:12px}
.setup-environment .cred-saved-icon{display:grid;place-items:center;width:22px;height:22px;border-radius:50%;color:var(--ok);background:var(--ok-bg);flex:none}
.setup-environment .cred-saved-main{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}
@media(max-width:640px){.setup-environment .env-allowance{width:100%;margin:0}.setup-environment .env-setting{flex-wrap:wrap}.setup-environment .env-setting>span{flex-basis:100%}}

.setup-guide-page > header { display:flex; flex-direction:column; gap:6px; margin-bottom:20px; }
.setup-guide-page h1 { margin:0; font:600 24px/1.25 var(--display); letter-spacing:-.01em; }
.guide-columns { display:flex; flex-wrap:wrap; gap:32px; align-items:flex-start; }
.guide-columns > ol { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:2px; flex:1 1 240px; max-width:240px; min-width:0; }
.guide-columns > ol a { display:flex; gap:10px; align-items:center; padding:8px 10px; border-radius:8px; text-decoration:none; color:var(--text); font:400 14px/1.5 var(--body); }
.guide-columns > ol a[aria-current=step] { background:var(--sel); color:var(--ink); font-weight:600; }
.guide-step-dot { width:22px; height:22px; flex:none; display:grid; place-items:center; border:1.5px solid var(--line-2); border-radius:50%; font-size:11px; font-weight:700; box-sizing:border-box; }
.guide-step-dot.done { background:var(--ok); border-color:var(--ok); color:var(--surface); }
.guide-content { flex:999 1 320px; min-width:0; max-width:620px; display:flex; flex-direction:column; gap:16px; }
.guide-content p { margin:0; max-width:72ch; }
.guide-content ul { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:6px; }
.guide-content li { display:flex; gap:8px; align-items:flex-start; }
.guide-content li svg { flex:none; margin-top:2px; color:var(--ok); }
.guide-content li .guide-pending { color:var(--muted); }
.guide-content pre { font:12.5px/1.6 var(--mono); background:var(--neutral-bg); color:var(--ink); padding:10px 12px; border-radius:8px; overflow-x:auto; white-space:pre; margin:0; }
.guide-navigation { display:flex; gap:8px; flex-wrap:wrap; align-items:center; }
.guide-configure { display:inline-flex; align-items:center; gap:7px; }
.shell-guide-label { padding:16px 11px 6px; font-size:11px; font-weight:600; letter-spacing:.06em; text-transform:uppercase; color:var(--muted); }
.shell-guide-link { display:flex; gap:11px; align-items:center; height:38px; padding:0 11px; border-radius:9px; text-decoration:none; color:var(--text); font-size:14px; font-weight:500; }
.shell-guide-link[aria-current=page] { background:var(--surface); color:var(--ink); box-shadow:var(--shadow); }
html[data-sidebar=mini] .shell-guide-label,html[data-sidebar=mini] .shell-guide-link span { display:none; }
html[data-sidebar=mini] .shell-guide-link { justify-content:center; padding:0; }
.setup-guide-page > header > .eyebrow { font-size:11.5px; line-height:1.5; font-weight:600; letter-spacing:.06em; text-transform:uppercase; color:var(--muted); margin:0; }
.guide-navigation button:disabled { opacity:.45; border-style:solid; cursor:default; }

.ticket-master-detail .stile svg,.ov-inbox-row .stile svg,.tk-page .stile svg,.pn .stile svg{width:13px;height:13px;stroke-width:2.2;fill:none;stroke:currentColor}
.ov-inbox-row .stile{width:22px;height:22px;border-radius:50%;border:0;margin-top:2px}
.ov-work-icon{display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:var(--info-bg,var(--sel))}
.ov-work-completed .ov-work-icon{background:var(--ok-bg,var(--ok-bg))}
.ov-work-icon svg,.ov-work-icon .ship-mark{width:13px;height:13px;stroke-width:2.2;stroke:currentColor;fill:none}
.ov-work-icon .ship-mark.none{color:var(--muted)}
.tk-page .tl-dot svg,.tk-page .timeline .timeline .tl-dot svg{width:12px;height:12px;stroke-width:2.6}
.tk-page .ico,.decision .ico{width:22px;height:22px;padding:4.5px;border-radius:50%;box-sizing:border-box;stroke-width:2.2}
.tk-page .ico.tone-green,.decision .ico.tone-green{background:var(--ok-bg);color:var(--ok)}
.tk-page .ico.tone-red,.decision .ico.tone-red{background:var(--crit-bg);color:var(--crit)}
.tk-page .ico.tone-amber,.decision .ico.tone-amber{background:var(--attn-bg);color:var(--attn)}
.tk-page .ico.tone-brand,.decision .ico.tone-brand{background:var(--info-bg);color:var(--info)}
.ov-view-all svg,.capacity svg,.see-all svg,.ov-decision-meta a svg,.pn-foot a svg,.changes-plan>a svg{vertical-align:middle;flex:none}
.tk-switch svg{width:14px;height:14px}.tk-search button svg{width:15px;height:15px;stroke-width:1.8}
