/* SUPERvise site, laid out like a set of repositories: bordered boxes, rows of files, labels and
   rendered documents. Plain system type, monospace for names and numbers. Light and dark follow the
   device. */
:root {
  --bg: #ffffff; --canvas: #f6f8fa; --line: #d1d9e0; --text: #1f2328; --muted: #59636e;
  --link: #0b6b74; --accent: #1f6f78; --on-accent: #ffffff; --hover: #f0f3f6;
  --ok: #1a7f37; --bad: #cf222e; --work: #9a6700; --idle: #6e7781; --warm: #9a6700; --label-l: 34%; --label-bg: 94%;
  --tile-l: 38%; --tile-bg: 93%; --device: #0b1114; --device-screen: #10262a; --device-text: #f0f6fc; --device-muted: #9fb1b4; --device-accent: #5fe0d0; --device-amber: #ffc857; --device-ok: #7fe3a2;
  --sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1117; --canvas: #151b23; --line: #3d444d; --text: #f0f6fc; --muted: #9198a1;
    --link: #5fd4c6; --accent: #23808a; --on-accent: #ffffff; --hover: #1c232c;
    --ok: #3fb950; --bad: #f85149; --work: #d29922; --idle: #9198a1; --warm: #e3b341; --label-l: 72%; --label-bg: 18%;
    --tile-l: 70%; --tile-bg: 17%;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.5 var(--sans); }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p, dl, dd { margin: 0; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
main:focus { outline: none; }
.skip { position: absolute; left: 8px; top: -60px; padding: 8px 12px; background: var(--canvas); border: 1px solid var(--line); border-radius: 6px; z-index: 30; }
.skip:focus { top: 8px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.mono { font-family: var(--mono); }
.link { color: var(--link); }
.link:hover, .crumb a:hover, .section-title a:hover { text-decoration: underline; }
.icon { flex: none; width: 16px; height: 16px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* header */
.top { background: var(--canvas); border-bottom: 1px solid var(--line); }
.top-in { max-width: 1216px; margin: 0 auto; padding: 12px 16px 0; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 16px; }
.brand img { border-radius: 6px; }
.search { flex: 1; min-width: 180px; max-width: 420px; display: flex; align-items: center; gap: 8px; padding: 0 8px; height: 32px; background: var(--bg); border: 1px solid var(--line); border-radius: 6px; }
.search:focus-within { border-color: var(--link); box-shadow: 0 0 0 2px color-mix(in srgb, var(--link) 30%, transparent); }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; font-size: 14px; }
.search input::placeholder { color: var(--muted); }
kbd { font: 11px var(--mono); color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 0 5px; }
.top nav { flex: 0 0 100%; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin: 0 -8px; }
.top nav::-webkit-scrollbar { display: none; }
.top nav a { padding: 8px 10px 10px; border-bottom: 2px solid transparent; white-space: nowrap; }
.top nav a:hover { color: var(--link); }
.top nav a[aria-current] { font-weight: 600; border-bottom-color: #f78166; }

/* page */
main { max-width: 1216px; margin: 0 auto; padding: 24px 16px 56px; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 296px; gap: 24px; align-items: start; }
aside { display: grid; gap: 16px; }
aside .box + .box { margin-top: 0; }
@media (max-width: 860px) { .layout { grid-template-columns: 1fr; gap: 16px; } .layout > aside { display: contents; } .layout > aside > :first-child { order: -1; } }
.page-title { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 600; margin-bottom: 16px; }
.section-title { font-size: 16px; font-weight: 600; margin: 28px 0 10px; display: flex; align-items: center; gap: 8px; }
.section-title:first-child { margin-top: 0; }
.section-title a { color: var(--link); font-family: var(--mono); }
.section-title .link { font-weight: 400; font-family: var(--sans); }
.note { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding: 12px 16px; background: var(--canvas); border: 1px solid var(--line); border-radius: 6px; color: var(--muted); }

.org { display: flex; gap: 16px; align-items: center; padding-bottom: 24px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.org img { border-radius: 12px; flex: none; }
.org h1 { font-size: 24px; font-weight: 600; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.org p { margin-top: 4px; max-width: 60ch; }

.crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 18px; margin-bottom: 6px; }
.crumb a { color: var(--link); }
.crumb span { color: var(--muted); }
.crumb strong { font-weight: 600; }
.about { color: var(--muted); margin-bottom: 16px; }

.repo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.repo-card { display: flex; flex-direction: column; gap: 8px; padding: 16px; border: 1px solid var(--line); border-radius: 6px; transition: border-color .15s, background .15s; }
.repo-card:hover { border-color: var(--link); background: var(--canvas); }
.repo-name { display: flex; align-items: center; gap: 8px; color: var(--link); font-weight: 600; font-family: var(--mono); }
.repo-card p { color: var(--muted); font-size: 13px; }
.repo-foot { margin-top: auto; display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: hsl(var(--hue) 55% 50%); }

/* boxes and rows */
.box { border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.box + .box, .box + .row.next, .filters + .box { margin-top: 16px; }
.box-head, .box-head > span { display: flex; align-items: center; gap: 8px; }
.box-head { justify-content: space-between; gap: 12px; padding: 10px 16px; background: var(--canvas); border-bottom: 1px solid var(--line); font-weight: 600; }
.pad { padding: 16px; }
.pad.foot { padding-top: 0; }
.pad > * + * { margin-top: 10px; }
.row { display: flex; align-items: center; gap: 12px; padding: 10px 16px; }
.row + .row { border-top: 1px solid var(--line); }
a.row:hover, .issue > summary:hover { background: var(--hover); }
.name { flex: none; font-family: var(--mono); font-size: 13px; color: var(--text); }
a.row:hover .name, a.row:hover .msg.strong { color: var(--link); text-decoration: underline; }
.msg { flex: 1; min-width: 0; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg.strong, .msg strong { color: var(--text); font-weight: 600; }
.meta { flex: none; display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.count { font-family: var(--mono); padding: 0 6px; border: 1px solid var(--line); border-radius: 10px; }
.count.done { color: var(--ok); border-color: var(--ok); }
.row.next { border: 1px solid var(--line); border-radius: 6px; }
@media (max-width: 640px) {
  .row.file { flex-wrap: wrap; gap: 2px 12px; }
  .row.file .msg { flex: 0 0 100%; order: 3; padding-left: 28px; white-space: normal; }
  .row.file .name { flex: 1; }
  .row.file .msg.strong, .row.file .msg:has(strong) { flex: 1; order: 0; padding-left: 0; }
}

.label { display: inline-block; flex: none; padding: 0 8px; border-radius: 12px; font-size: 12px; font-weight: 500; line-height: 20px; white-space: nowrap;
  color: hsl(var(--hue, 180) 60% var(--label-l)); background: hsl(var(--hue, 180) 60% var(--label-bg)); border: 1px solid hsl(var(--hue, 180) 50% var(--label-l) / .35); }
.label.ok { color: var(--ok); background: transparent; border-color: var(--ok); }
.label.pick[aria-current] { color: var(--on-accent); background: var(--accent); border-color: var(--accent); }
.label b { font-weight: 600; opacity: .8; }
.labels { display: flex; flex-wrap: wrap; gap: 6px; }
.filters { display: grid; gap: 12px; }
.filters .search { max-width: none; flex: none; }

.issue { display: block; padding: 0; }
.issue > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 10px 16px; }
.issue > summary::-webkit-details-marker { display: none; }
.issue .msg { color: var(--text); font-weight: 600; white-space: normal; }
.issue[open] > summary .icon { stroke: var(--link); }
.answer { padding: 4px 16px 16px 44px; color: var(--muted); }
.answer p + p { margin-top: 8px; }
@media (max-width: 640px) { .issue .label { display: none; } .answer { padding-left: 16px; } }
.empty { padding: 32px 16px; text-align: center; display: grid; gap: 8px; }

/* buttons */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 32px; padding: 5px 16px; border: 1px solid var(--line); border-radius: 6px; background: var(--canvas); font-weight: 500; }
.button:hover { background: var(--hover); border-color: var(--muted); }
.button.primary { width: 100%; min-height: 40px; background: var(--accent); border-color: transparent; color: var(--on-accent); font-weight: 600; }
.button.primary:hover { filter: brightness(1.1); }
.button.primary .icon { stroke: currentColor; }
.button.small { min-height: 28px; padding: 3px 12px; font-size: 12px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.release-line { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 16px; }
.kv > div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; margin: 0; }
.kv > div + div { border-top: 1px solid var(--line); }
.kv dt { color: var(--muted); }
.kv dd { font-family: var(--mono); font-size: 13px; text-align: right; }
.kv b { font-weight: 600; }
code { display: block; padding: 10px 12px; border-radius: 6px; background: var(--canvas); border: 1px solid var(--line); font: 12px/1.5 var(--mono); overflow-wrap: anywhere; }
.verify-result { font-weight: 600; }
.verify-result:empty { display: none; }
.verify-result.ok { color: var(--ok); }
.verify-result.bad { color: var(--bad); }

/* documents */
.tabs { display: flex; gap: 4px; margin-bottom: 16px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-bottom: 2px solid transparent; font-family: var(--mono); font-size: 13px; white-space: nowrap; }
.tabs a[aria-current] { font-weight: 600; border-bottom-color: #f78166; }
.progress { height: 3px; background: var(--line); }
.progress span { display: block; height: 100%; background: var(--ok); transition: width .3s; }
.prose { padding: 24px 32px 32px; font-size: 16px; max-width: 860px; }
.prose h1 { font-size: 28px; font-weight: 600; line-height: 1.25; padding-bottom: 8px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.prose h2 { font-size: 20px; font-weight: 600; margin: 28px 0 12px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.prose p + p, .prose ul + p { margin-top: 12px; }
.prose ul { margin: 12px 0 0; padding-left: 24px; }
.prose h2 + ul { margin-top: 0; }
.prose li + li { margin-top: 6px; }
.prose .lead { color: var(--muted); margin-bottom: 20px; }
.prose.legal { font-size: 15px; }
.prose.legal h2 { font-size: 17px; border: 0; padding: 0; }
.tasks { list-style: none; margin: 0; padding: 0; }
.tasks li { padding: 14px 0; }
.tasks li + li { border-top: 1px solid var(--line); }
.tasks label { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.tasks input { width: 16px; height: 16px; margin: 0; accent-color: var(--ok); }
.task-title { font-weight: 600; }
.is-done .task-title { color: var(--muted); text-decoration: line-through; }
.task-body { padding: 6px 0 0 26px; color: var(--muted); font-size: 15px; }
.task-body p + p, .task-body p + a { margin-top: 8px; }
.task-body a { display: inline-block; }
@media (max-width: 640px) { .prose { padding: 16px; } .prose h1 { font-size: 22px; } }

/* footer */
.bottom { max-width: 1216px; margin: 0 auto; padding: 24px 16px 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.bottom nav { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-bottom: 12px; }
.bottom nav a { color: var(--link); }
.bottom nav a:hover { text-decoration: underline; }
.bottom p { max-width: 90ch; }

#toast { position: fixed; left: 50%; bottom: 24px; z-index: 40; transform: translate(-50%, 12px); background: var(--text); color: var(--bg); padding: 8px 16px; border-radius: 6px; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ================================================================ studio layer
   Status has one visual language everywhere: a pill (dot + word), a five-step stage bar, and the
   module's own hue on its icon tile. */
.link { display: inline-flex; align-items: center; gap: 6px; }
.warm { color: var(--warm); }
.narrow { max-width: 560px; }
.gap-top { margin-top: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 1px 8px; border: 1px solid var(--line); border-radius: 12px; font-size: 12px; color: var(--muted); }
.chip .icon { width: 12px; height: 12px; }

.tile { flex: none; display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; background: hsl(var(--hue) 55% var(--tile-bg)); }
.tile .icon { width: 20px; height: 20px; stroke: hsl(var(--hue) 60% var(--tile-l)); }
.tile.lg { width: 48px; height: 48px; border-radius: 12px; }
.tile.lg .icon { width: 26px; height: 26px; }
.tile.sm { width: 28px; height: 28px; border-radius: 7px; }
.tile.sm .icon { width: 16px; height: 16px; }
.tile.plain { background: transparent; border: 1px dashed var(--line); }
.tile.plain .icon { stroke: var(--muted); }

.pill { display: inline-flex; align-items: center; gap: 6px; padding: 1px 9px 1px 7px; border-radius: 12px; border: 1px solid currentColor; font-size: 12px; font-weight: 500; line-height: 20px; white-space: nowrap; }
.pill i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill.ok { color: var(--ok); }
.pill.work { color: var(--work); }
.pill.idle { color: var(--idle); border-style: dashed; }
.pill.idle i { background: transparent; box-shadow: inset 0 0 0 1.5px currentColor; }
.pill.live i { animation: beat 1.8s ease-out infinite; }
.pill.work i { animation: blink 1.2s ease-in-out infinite; }
@keyframes beat { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 60%, transparent); } 100% { box-shadow: 0 0 0 7px transparent; } }
@keyframes blink { 50% { opacity: .3; } }

.stages { list-style: none; display: flex; gap: 3px; margin: 0 0 0 auto; padding: 0; }
.stages li { display: grid; gap: 6px; }
.stages i { display: block; width: 14px; height: 4px; border-radius: 2px; background: var(--line); }
.stages .past i { background: var(--ok); }
.stages .now i { background: var(--work); animation: blink 1.2s ease-in-out infinite; }
.stages li:last-child.now i { background: var(--ok); animation: none; }
.stages.big { margin: 0; gap: 6px; }
.stages.big li { flex: 1; font-size: 12px; color: var(--muted); }
.stages.big i { width: auto; height: 6px; border-radius: 3px; }
.stages.big .now { color: var(--text); font-weight: 600; }

/* studio header */
.studio { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-bottom: 20px; }
.studio img { border-radius: 12px; }
.studio h1 { font-size: 26px; font-weight: 600; line-height: 1.2; }
.studio p { color: var(--muted); }
.tally { list-style: none; display: flex; gap: 20px; margin: 0 0 0 auto; padding: 0; }
.tally li { display: grid; font-size: 12px; color: var(--muted); }
.tally b { font: 600 24px/1.1 var(--mono); }
.tally .ok b { color: var(--ok); }
.tally .work b { color: var(--work); }
.tally .idle b { color: var(--idle); }
@media (max-width: 640px) { .tally { margin: 0; flex: 0 0 100%; justify-content: space-between; padding: 12px 16px; border: 1px solid var(--line); border-radius: 6px; } }

/* featured module */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px; padding: 28px 32px; margin-bottom: 24px; border: 1px solid var(--line); border-radius: 10px;
  background: radial-gradient(90% 140% at 100% 50%, hsl(var(--hue) 50% var(--tile-bg)), transparent 70%), var(--canvas); overflow: hidden; }
.feature-copy { display: grid; gap: 12px; justify-items: start; }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.feature .card-top { justify-content: flex-start; }
.feature h2 { font-size: 32px; font-weight: 600; line-height: 1.1; letter-spacing: -0.01em; }
.feature p { max-width: 44ch; }
.feature-copy > p:not(.muted) { font-size: 16px; }
.facts { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 4px 0; padding: 0; }
.facts li { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; }
.facts .icon { stroke: var(--link); }
.feature .button.primary { width: auto; padding-inline: 20px; }
.button .icon { stroke: currentColor; }
@media (max-width: 760px) { .feature { grid-template-columns: 1fr; padding: 20px; } .feature .demo { zoom: .82; } .feature .button { flex: 1; } .feature .actions { width: 100%; } }

/* modules */
.module-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.module-card { display: flex; flex-direction: column; gap: 6px; padding: 14px; border: 1px solid var(--line); border-radius: 8px; transition: border-color .15s, transform .15s, box-shadow .15s; }
.module-card:hover { border-color: hsl(var(--hue, 180) 50% var(--tile-l)); transform: translateY(-2px); box-shadow: 0 6px 18px rgb(0 0 0 / .12); }
.module-card strong { font-size: 16px; margin-top: 6px; }
.module-card p { color: var(--muted); font-size: 13px; }
.module-card .card-foot { margin-top: auto; padding-top: 10px; display: flex; align-items: center; gap: 6px; }
.module-card.slot { border-style: dashed; }
.module-card.building { background: repeating-linear-gradient(135deg, transparent 0 10px, color-mix(in srgb, var(--work) 7%, transparent) 10px 20px); background-size: 28.3px 28.3px; animation: build 1.6s linear infinite; }
@keyframes build { to { background-position: 28.3px 0; } }
.peek { font: 600 14px var(--mono); }
.peek em { font-style: normal; color: var(--warm); margin-left: 6px; }

/* board */
.board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.col { display: grid; gap: 8px; align-content: start; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--canvas); }
.col header { display: flex; align-items: center; gap: 8px; font-weight: 600; padding: 2px 4px 4px; }
.col header i { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--idle); }
.col.done header i { border-color: var(--ok); background: var(--ok); }
.col.building header i { border-color: var(--work); border-right-color: transparent; animation: spin 1.2s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.col header b { margin-left: auto; font: 500 12px var(--mono); color: var(--muted); padding: 0 7px; border: 1px solid var(--line); border-radius: 10px; }
.ticket { display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); }
a.ticket:hover { border-color: var(--link); }
.ticket > span:nth-child(2) { display: grid; min-width: 0; }
.ticket small { color: var(--muted); }
@media (max-width: 700px) { .board { grid-template-columns: 1fr; } }

/* activity */
.day h3 { font: 500 12px var(--mono); color: var(--muted); padding: 14px 0 6px 40px; }
.day:first-child h3 { padding-top: 0; }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 13px; top: 4px; bottom: 4px; width: 2px; background: var(--line); }
.timeline li > * { position: relative; display: flex; align-items: center; gap: 12px; padding: 6px 8px 6px 0; border-radius: 6px; }
.timeline a:hover { background: var(--hover); }
.timeline a:hover .what { color: var(--link); }
.badge { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--canvas); border: 1px solid var(--line); box-shadow: 0 0 0 3px var(--bg); }
.badge .icon { width: 14px; height: 14px; }
.badge.t-release { background: var(--ok); border-color: var(--ok); }
.badge.t-release .icon { stroke: var(--bg); }
.badge.t-start .icon { stroke: var(--work); }
.badge.t-pay .icon { stroke: var(--warm); }
.badge.t-site .icon { stroke: var(--link); }
.what { flex: 1; min-width: 0; font-weight: 500; }
.who { flex: none; font: 500 12px var(--mono); color: var(--muted); }
.who[style] { color: hsl(var(--hue) 60% var(--tile-l)); }
.feed .day { animation: rise .5s ease-out both; }
.feed .day:nth-child(2) { animation-delay: .06s; }
.feed .day:nth-child(3) { animation-delay: .12s; }
@keyframes rise { from { transform: translateY(8px); opacity: .4; } }

/* module pages */
.module-head { display: flex; align-items: center; gap: 16px; margin: 4px 0 20px; }
.module-head h1 { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 24px; font-weight: 600; }
.module-head p { color: var(--muted); }
.rates-panel { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 12px; margin-bottom: 12px; }
.rate { display: grid; gap: 2px; align-content: start; padding: 16px; border: 1px solid var(--line); border-radius: 8px; }
.rate > span { font-size: 12px; color: var(--muted); }
.rate b { font: 600 28px/1.2 var(--mono); font-variant-numeric: tabular-nums; }
.rate small { color: var(--muted); font-family: var(--mono); }
.rate.main { background: var(--canvas); }
@media (max-width: 760px) { .rates-panel { grid-template-columns: 1fr 1fr; } .rate b { font-size: 22px; } }
.gapbar { height: 4px; margin: 8px 16px 14px; border-radius: 2px; background: color-mix(in srgb, var(--warm) 45%, transparent); overflow: hidden; }
.rate .gapbar { margin: 8px 0 0; }
.gapbar span { display: block; height: 100%; width: var(--share, 100%); background: var(--link); border-radius: 2px; transition: width 1s ease-out; }
.box .kv.pad { padding-bottom: 4px; }

/* SUPERvise repositories */
.tabs a .icon { width: 14px; height: 14px; }
.tabs:not(.files) a { font-family: var(--sans); font-size: 14px; }
.repo-card { flex-direction: row; align-items: center; gap: 12px; padding: 12px; }
.repo-text { display: grid; min-width: 0; flex: 1; }
.repo-foot { margin: 0; flex: none; font: 500 12px var(--mono); }
.repo-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.row.next .icon { margin-left: auto; }

/* the demonstration phone: a device, so it keeps its own dark screen in both themes */
.demo { margin: 0; display: grid; justify-items: center; gap: 8px; }
.demo figcaption { font: 500 10px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.phone { position: relative; width: 190px; height: 372px; border-radius: 32px; background: var(--device); border: 2px solid color-mix(in srgb, var(--device-text) 22%, transparent); box-shadow: 0 24px 50px rgb(0 0 0 / .28), inset 0 0 0 5px var(--device); overflow: hidden; color: var(--device-text); }
.notch { position: absolute; top: 12px; left: 50%; width: 52px; height: 6px; margin-left: -26px; border-radius: 3px; background: color-mix(in srgb, var(--device-text) 16%, transparent); z-index: 2; }
.screen { position: absolute; inset: 7px; border-radius: 25px; padding: 44px 14px 34px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; background: linear-gradient(180deg, var(--device-screen), var(--device)); opacity: 0; transform: scale(.95); transition: opacity .4s, transform .4s; }
.screen strong { font-size: 14px; margin-top: 14px; }
.screen > span { font-size: 11px; color: var(--device-muted); }
.phone[data-state="0"] [data-s="0"], .phone[data-state="1"] [data-s="1"], .phone[data-state="2"] [data-s="2"], .phone[data-state="3"] [data-s="3"], .phone[data-state="4"] [data-s="4"] { opacity: 1; transform: none; }
.phone[data-state="1"] { animation: buzz .5s linear 3; }
@keyframes buzz { 25% { transform: translateX(-2px) rotate(-.5deg); } 75% { transform: translateX(2px) rotate(.5deg); } }
.radar { position: relative; width: 96px; height: 96px; display: grid; place-items: center; }
.radar i { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--device-accent); opacity: 0; animation: ping 2.4s ease-out infinite; }
.radar i:nth-child(2) { animation-delay: .8s; }
.radar i:nth-child(3) { animation-delay: 1.6s; }
.radar b { width: 18px; height: 18px; border-radius: 50%; background: var(--device-accent); box-shadow: 0 0 24px var(--device-accent); }
@keyframes ping { 0% { transform: scale(.2); opacity: .9; } 100% { transform: scale(1); opacity: 0; } }
.orb { width: 88px; height: 88px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--device-accent) 16%, transparent); color: var(--device-accent); font-size: 44px; font-weight: 700; }
.orb svg { width: 44px; height: 44px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.orb.amber { color: var(--device-amber); background: color-mix(in srgb, var(--device-amber) 16%, transparent); }
.orb.ok { color: var(--device-ok); background: color-mix(in srgb, var(--device-ok) 16%, transparent); transform: scale(.4); transition: transform .6s cubic-bezier(.3, 1.8, .5, 1); }
.phone[data-state="4"] .orb.ok { transform: none; }
.phone[data-state="1"] .orb.amber svg { transform-origin: 50% 10%; animation: ring .35s ease-in-out infinite alternate; }
@keyframes ring { from { transform: rotate(-16deg); } to { transform: rotate(16deg); } }
.phone[data-state="3"] .orb { animation: breathe 1.4s ease-in-out infinite; }
@keyframes breathe { 50% { box-shadow: 0 0 0 12px color-mix(in srgb, var(--device-accent) 10%, transparent); } }
.ticks { list-style: none; margin: 0; padding: 0; width: 100%; display: grid; gap: 6px; }
.ticks li { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 10px; background: color-mix(in srgb, var(--device-text) 7%, transparent); font-size: 11px; text-align: left; }
.ticks li::before { content: "✓"; flex: none; width: 16px; height: 16px; border-radius: 50%; display: grid; place-items: center; font-size: 10px; font-weight: 700; background: color-mix(in srgb, var(--device-text) 14%, transparent); color: transparent; transition: background .3s, color .3s; }
.phone[data-state="2"] .ticks li::before { background: var(--device-accent); color: var(--device); }
.phone[data-state="2"] .ticks li:nth-child(1)::before { transition-delay: .3s; }
.phone[data-state="2"] .ticks li:nth-child(2)::before { transition-delay: .8s; }
.phone[data-state="2"] .ticks li:nth-child(3)::before { transition-delay: 1.3s; }
.phone[data-state="2"] .ticks li:nth-child(4)::before { transition-delay: 1.8s; }
.phone-dots { position: absolute; bottom: 16px; left: 0; right: 0; display: flex; justify-content: center; gap: 5px; z-index: 2; }
.phone-dots i { width: 5px; height: 5px; border-radius: 50%; background: color-mix(in srgb, var(--device-text) 24%, transparent); transition: background .3s, transform .3s; }
.phone[data-state="0"] [data-d="0"], .phone[data-state="1"] [data-d="1"], .phone[data-state="2"] [data-d="2"], .phone[data-state="3"] [data-d="3"], .phone[data-state="4"] [data-d="4"] { background: var(--device-accent); transform: scale(1.4); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; } }
