/* The app's own layout: the shell (aurora, glass bar, floating tab bar), the lists of characters, the form, the character page, the batch page and the settings. The glass itself
   (blur, saturation, the lit edge) comes from the Libreria grafica's variables (--bf, --glass-*): every glass surface here is the same recipe, `glass()` below. */

/* The shell is as tall as the VISIBLE area (--app-h) and starts where it starts (--app-top). js/viewport.js writes both from innerHeight and
   visualViewport, not from Telegram's --tg-viewport-height: on iOS the keyboard shrinks the window or overlays it, and this follows either. */
#app { position: fixed; left: 0; right: 0; top: var(--app-top, 0px); height: var(--app-h, 100%); display: flex; flex-direction: column; background: var(--bg); overflow: hidden; }
.aurora { position: absolute; inset: 0; z-index: 0; pointer-events: none; }              /* still, not drifting: a background that never stops moving is a drain in a chat app */
#view { position: relative; z-index: 1; flex: 1; min-height: 0; display: flex; flex-direction: column; }
.screen { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; }
/* A screen arriving. animation-fill-mode is "backwards" on purpose: a finished animation of transform kept by "forwards"/"both" would stay the containing
   block of position: fixed children (verified in Chrome and WebKit). The root screens only fade. */
.screen.push { animation: push var(--d3) var(--ease) backwards; }
.screen.fade { animation: fade var(--d2) var(--ease) backwards; }
@keyframes push { from { opacity: 0; transform: translateX(28px); } }
@keyframes fade { from { opacity: 0; } }

/* ---- the glass bar on top: the content scrolls under it */
.bar { position: absolute; z-index: 4; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: var(--s2); min-height: calc(var(--bar-h) + var(--sat));
  padding: var(--sat) calc(var(--sar) + var(--s3)) 0 calc(var(--sal) + var(--s4));
  background: rgb(var(--glass-rgb) / calc(var(--glass-alpha) * .85 + var(--lite, 0) * (1 - var(--glass-alpha) * .85))); -webkit-backdrop-filter: var(--bf); backdrop-filter: var(--bf);
  border-bottom: 1px solid var(--glass-line); box-shadow: 0 1px 0 var(--glass-edge); }
.bar.has-back { padding-left: calc(var(--sal) + var(--s2)); }
.bar h1 { flex: 1; min-width: 0; font-size: var(--t-title); font-weight: 800; letter-spacing: -.01em; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar .acts { display: flex; align-items: center; gap: var(--s1); flex: none; }

.scroll { position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.page { width: 100%; max-width: var(--column); margin: 0 auto; display: grid; gap: var(--s4); align-content: start;
  padding: calc(var(--bar-h) + var(--sat) + var(--s4)) calc(var(--sar) + var(--s4)) calc(var(--s8) + var(--sab)) calc(var(--sal) + var(--s4)); }
#app.has-tabs .page { padding-bottom: calc(var(--tab-h) + var(--s8) + var(--sab) + var(--s4)); }

/* ---- the floating tab bar: Personaggi, Preferiti, Impostazioni. A pill, narrower than the screen and off its edges. */
.tabs { position: absolute; z-index: 6; left: 50%; bottom: calc(var(--sab) + 10px); transform: translateX(-50%); width: min(var(--tab-w), calc(100% - 2 * max(26px, 7vw))); }
.tabs .ds-seg { --n: 3; --glass-alpha: .66; padding: 5px; border-radius: 999px; }
.tabs .ds-seg::before { top: 5px; bottom: 5px; left: 5px; width: calc((100% - 10px) / var(--n)); border-radius: 999px; background: rgb(var(--accent-rgb) / .22);
  box-shadow: inset 0 1px 0 var(--glass-hi), 0 0 0 1px rgb(var(--accent-rgb) / .35), 0 0 calc(18px * var(--glow, 1)) rgb(var(--accent-rgb) / .25); }
.tabs .ds-seg > button { flex-direction: column; gap: 2px; min-height: 52px; padding: 6px 4px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .01em; }
.tabs .ds-seg > button[aria-pressed="true"] { color: var(--accent); }
.tabs .badge-dot { position: absolute; top: 6px; left: calc(50% + 8px); width: 9px; height: 9px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 0 2px var(--glass-solid); }
#app:not(.has-tabs) .tabs, html[data-kb] .tabs { display: none; }
html[data-kb] .add-fab { display: none; }

/* ---- glass surfaces, one recipe */
.panel { position: relative; padding: var(--s4); border-radius: var(--r-l); display: grid; gap: var(--s3); min-width: 0;
  background: rgb(var(--glass-rgb) / calc(var(--glass-alpha) + var(--lite, 0) * (1 - var(--glass-alpha)))); -webkit-backdrop-filter: var(--bf); backdrop-filter: var(--bf);
  border: 1px solid var(--glass-line); box-shadow: var(--shadow-1), inset 0 1px 0 var(--glass-hi); }
.panel.flush { padding: 0; gap: 0; overflow: hidden; }
.panel-title { font-size: var(--t-meta); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.lab { font-size: var(--t-sm); font-weight: 800; }
.panel-title + .setting { border-top: 0; padding-top: 0; }
.hint { font-size: var(--t-meta); color: var(--muted); line-height: 1.45; overflow-wrap: anywhere; }
.row { display: flex; align-items: center; gap: var(--s3); min-width: 0; }
.row.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.stack { display: grid; gap: var(--s2); }

/* ---- pills: the small tags on a card and in the detail */
.pills { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.pill { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 9px; border-radius: 99px; font: 700 11.5px/1 var(--font); letter-spacing: .01em; white-space: nowrap; color: var(--text); background: var(--pill-bg); }
.pill.accent { color: var(--accent); background: var(--accent-soft); }
.pill.big { height: 32px; padding: 0 14px; font-size: 14px; gap: 6px; cursor: pointer; box-shadow: inset 0 0 0 1px var(--line-2); }
.pill.big:active { transform: scale(.96); }
.pill.warn { color: var(--danger); background: var(--danger-soft); }

/* ---- Personaggi and Preferiti */
.toolbar { display: flex; gap: var(--s2); align-items: center; }
.search { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 14px; border-radius: 999px; color: var(--muted);
  background: rgb(var(--glass-rgb) / calc(var(--glass-alpha) + var(--lite, 0) * (1 - var(--glass-alpha)))); -webkit-backdrop-filter: var(--bf); backdrop-filter: var(--bf); box-shadow: inset 0 0 0 1px var(--glass-line), inset 0 1px 0 var(--glass-hi); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); font: 500 16px/1.2 var(--font); }
.search input::placeholder { color: var(--faint); }
.search:focus-within { box-shadow: inset 0 0 0 1.5px var(--accent), 0 0 calc(20px * var(--glow, 1)) rgb(var(--accent-rgb) / .22); }
.filter-btn { position: relative; width: 46px; height: 46px; flex: none; border-radius: 50%; display: grid; place-items: center; color: var(--text);
  background: rgb(var(--glass-rgb) / calc(var(--glass-alpha) + var(--lite, 0) * (1 - var(--glass-alpha)))); -webkit-backdrop-filter: var(--bf); backdrop-filter: var(--bf); box-shadow: inset 0 0 0 1px var(--glass-line), inset 0 1px 0 var(--glass-hi); }
.filter-btn[aria-pressed="true"] { color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent), 0 0 calc(16px * var(--glow, 1)) rgb(var(--accent-rgb) / .25); }
.filter-btn .count { position: absolute; top: -3px; right: -3px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px; display: grid; place-items: center; font: 800 11px/1 var(--font);
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--on-accent); }
.active-filters { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--s4) * -1); padding: 2px var(--s4); }
.active-filters::-webkit-scrollbar { display: none; }
.active-filters .ds-chip { height: 32px; padding: 0 8px 0 12px; font-size: 13px; }
.active-filters .ds-chip svg { opacity: .8; }
.total-line { display: flex; align-items: center; justify-content: space-between; min-height: 28px; font-size: var(--t-meta); font-weight: 600; color: var(--muted); }

.batch-strip { display: grid; gap: var(--s2); }
.batch-card { display: flex; align-items: center; gap: var(--s3); width: 100%; padding: 12px 14px; border-radius: var(--r-l); text-align: left; position: relative; overflow: hidden;
  background: rgb(var(--glass-rgb) / calc(var(--glass-alpha) + var(--lite, 0) * (1 - var(--glass-alpha)))); -webkit-backdrop-filter: var(--bf); backdrop-filter: var(--bf);
  border: 1px solid var(--glass-line); box-shadow: var(--shadow-1), inset 0 1px 0 var(--glass-hi); transition: transform var(--d1) var(--ease); }
.batch-card:active { transform: scale(.985); }
.batch-card .spin { width: 40px; height: 40px; flex: none; border-radius: 14px; display: grid; place-items: center; color: var(--accent); background: var(--accent-soft); }
.batch-card .spin.run svg { animation: breathe 1.8s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .55; transform: scale(.9); } }
.batch-card h3 { font-size: 15px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.batch-card p { font-size: var(--t-meta); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.batch-card .ds-progress { height: 5px; margin-top: 6px; }

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); }
@media (min-width: 560px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card { position: relative; border-radius: var(--r-l); overflow: hidden; isolation: isolate; aspect-ratio: 1; background: var(--surface-2); border: 1px solid var(--line-2); box-shadow: var(--shadow-1);
  transition: transform var(--d1) var(--ease); content-visibility: auto; contain-intrinsic-size: auto 190px; }
.card:active { transform: scale(.975); }
.card > .open { position: absolute; inset: 0; width: 100%; height: 100%; text-align: left; border-radius: inherit; }
.card .art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; background: var(--surface-2); }
.card .ph { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 6px; text-align: center; padding: 14px; color: var(--muted); font-size: var(--t-meta); font-weight: 600; }
.card .ph svg { color: var(--accent); }
.card.pending .ph { background: linear-gradient(100deg, var(--surface-2) 30%, var(--surface-3) 50%, var(--surface-2) 70%); background-size: 300% 100%; animation: ds-skel 1.8s ease-in-out infinite; }
.card.failed .ph svg { color: var(--danger); }
.card .info { position: absolute; left: 6px; right: 6px; bottom: 6px; padding: 9px 11px; border-radius: var(--r-m); min-width: 0;
  background: rgb(var(--glass-rgb) / calc(.46 + var(--lite, 0) * .44)); -webkit-backdrop-filter: var(--bf-card); backdrop-filter: var(--bf-card); border: 1px solid var(--glass-line); box-shadow: inset 0 1px 0 var(--glass-hi); }
.card .name { display: block; max-width: 100%; font-size: 14px; font-weight: 800; letter-spacing: -.005em; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card .heart { position: absolute; top: 8px; right: 8px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: rgb(12 10 18 / .42); -webkit-backdrop-filter: var(--bf-card); backdrop-filter: var(--bf-card); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .22); transition: transform var(--d2) var(--spring); }
.card .heart:active { transform: scale(.88); }
.card .heart[aria-pressed="true"] { color: #FF6B8A; background: rgb(12 10 18 / .55); }
.card .heart[aria-pressed="true"] svg { fill: currentColor; }
.card .flag { position: absolute; top: 10px; left: 10px; z-index: 2; }
.flag.review { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 9px; border-radius: 99px; font: 800 11px/1 var(--font); color: #fff; background: #B3261E; box-shadow: 0 4px 12px -4px rgb(179 38 30 / .7); }
.flag.new { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 9px; border-radius: 99px; font: 800 11px/1 var(--font); color: var(--on-accent);
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 4px 12px -4px rgb(var(--accent-rgb) / .7); }
.more { display: grid; place-items: center; min-height: 56px; }
.empty, .notice { display: grid; justify-items: center; gap: var(--s3); text-align: center; padding: var(--s8) var(--s4); }
.empty .mark { --size: 88px; border-radius: 28px; }
.empty h2, .notice h2 { font-size: var(--t-title); line-height: 1.25; }
.empty p, .notice p { color: var(--muted); max-width: 340px; overflow-wrap: anywhere; }
.add-fab { position: absolute; z-index: 5; right: calc(var(--sar) + var(--s4)); bottom: calc(var(--sab) + 10px + var(--tab-h) + 14px); min-height: var(--fab); padding: 0 var(--s6) 0 var(--s5); border-radius: var(--r-pill); box-shadow: var(--shadow), 0 12px 28px -10px rgb(var(--accent-rgb) / .7); }

/* ---- the filter sheet */
.facet { display: grid; gap: var(--s2); }
.facet-head { display: flex; align-items: baseline; justify-content: space-between; }
.facet-head h3 { font-size: var(--t-sm); font-weight: 800; }
.facet-head span { font-size: var(--t-cap); color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips .ds-chip { height: 36px; }
.chips .ds-chip small { font-size: 12px; font-weight: 700; opacity: .7; }
.chips .ds-chip[aria-pressed="false"][data-zero="true"] { opacity: .45; }

/* ---- the form: a new batch */
.field-title { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s3); }
.field-title label, .field-title .lab { font-size: var(--t-sm); font-weight: 800; }
.field-title .val { font-size: var(--t-sm); font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; }
.textarea.big { min-height: 120px; }
.suggest { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--s4) * -1); padding: 2px var(--s4); }
.suggest::-webkit-scrollbar { display: none; }
.suggest .ds-chip { flex: none; }
.count-row { display: grid; grid-template-columns: 1fr 104px; gap: var(--s3); align-items: center; }
.count-row .ds-range { margin: 0; }
.number { text-align: center; font-weight: 800; font-size: 18px; font-variant-numeric: tabular-nums; padding: 10px 6px; }
.ticks { display: flex; justify-content: space-between; font-size: 11px; font-weight: 700; color: var(--muted); padding: 0 2px; font-variant-numeric: tabular-nums; }
.seg-3 { --n: 3; } .seg-2 { --n: 2; }
.ds-seg > button small { display: block; font-size: 11px; font-weight: 600; opacity: .75; margin-top: 2px; }
.ds-seg > button { flex-direction: column; gap: 0; line-height: 1.15; }
.estimate { gap: var(--s2); }
.estimate .big { font-size: 26px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.estimate .big small { font-size: 14px; font-weight: 700; color: var(--muted); letter-spacing: 0; }
.estimate ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: var(--t-meta); color: var(--muted); }
.estimate li { display: flex; gap: 8px; align-items: flex-start; }
.estimate li svg { color: var(--accent); margin-top: 1px; }
.go { min-height: 56px; font-size: 17px; }

/* ---- the character page */
.hero { position: relative; border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 1; background: var(--surface-2); border: 1px solid var(--glass-line); box-shadow: var(--shadow-2, var(--shadow)); isolation: isolate; }
.hero > button.open { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero .ph { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 8px; text-align: center; padding: 20px; color: var(--muted); font-weight: 600; }
.hero .ph svg { color: var(--accent); }
.hero .corner { position: absolute; z-index: 2; display: flex; gap: 8px; }
.hero .corner.tl { top: 12px; left: 12px; } .hero .corner.tr { top: 12px; right: 12px; } .hero .corner.br { right: 12px; bottom: 12px; }
.versions { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--s4) * -1); padding: 4px var(--s4) 6px; scroll-snap-type: x proximity; }
.versions::-webkit-scrollbar { display: none; }
.ver { position: relative; flex: none; width: 76px; height: 76px; border-radius: 16px; overflow: hidden; border: 2px solid transparent; background: var(--surface-2); scroll-snap-align: start; box-shadow: var(--shadow-1); }
.ver[aria-current="true"] { border-color: var(--accent); box-shadow: 0 0 0 3px rgb(var(--accent-rgb) / .22), var(--shadow-1); }
.ver img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ver .ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--accent); background: var(--surface-2); }
.ver .ph.run { animation: ds-skel 1.8s ease-in-out infinite; background: linear-gradient(100deg, var(--surface-2) 30%, var(--surface-3) 50%, var(--surface-2) 70%); background-size: 300% 100%; }
.ver .tag { position: absolute; left: 4px; bottom: 4px; display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px; font: 800 10px/1 var(--font);
  background: rgb(12 10 18 / .62); color: #fff; }
.ver .tag.review { left: auto; right: 4px; top: 4px; bottom: auto; background: #B3261E; color: #fff; }
.ver .tag.draft { left: auto; right: 4px; min-width: 0; padding: 0 6px; background: rgb(12 10 18 / .62); color: var(--text); -webkit-backdrop-filter: var(--bf-card); backdrop-filter: var(--bf-card); }
.ver .tag.star { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--on-accent); }
.ver .dot { position: absolute; right: 5px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 0 2px rgb(12 10 18 / .5); }
.title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s3); }
.title-row h2 { font-size: 26px; line-height: 1.15; font-weight: 800; letter-spacing: -.02em; overflow-wrap: anywhere; }
.desc { font-size: var(--t-body); line-height: 1.55; color: var(--text); opacity: .92; overflow-wrap: anywhere; }
.btn-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); }
.btn-grid .wide { grid-column: 1 / -1; }
.prompt { margin: 0; font: 400 13px/1.55 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; color: var(--muted); max-height: 260px; overflow: auto; }
.kv { display: grid; gap: var(--s2); margin: 0; font-size: var(--t-sm); }
.kv > div { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s4); }
.kv dt { color: var(--muted); flex: none; }
.kv dd { margin: 0; min-width: 0; text-align: right; overflow-wrap: anywhere; font-weight: 600; }
details.fold summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; min-height: 36px; font-weight: 800; font-size: var(--t-sm); }
details.fold summary::-webkit-details-marker { display: none; }
details.fold summary svg { transition: transform var(--d2) var(--ease); color: var(--muted); }
details.fold[open] summary svg { transform: rotate(90deg); }
details.fold > :not(summary) { margin-top: var(--s2); }

/* ---- the picture viewer */
.viewer { position: fixed; inset: 0; z-index: 60; display: grid; background: rgb(5 3 10 / .94); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); opacity: 0; transition: opacity var(--d2) var(--ease); touch-action: manipulation; }
.viewer.on { opacity: 1; }
.viewer img { width: 100%; height: 100%; object-fit: contain; padding: calc(var(--sat) + 56px) 0 calc(var(--sab) + 84px); }
.viewer .top { position: absolute; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; padding: calc(var(--sat) + 10px) 12px 0; }
.viewer .bottom { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; gap: 10px; padding: 0 12px calc(var(--sab) + 14px); }

/* ---- the batch page */
.steps { display: grid; gap: var(--s4); }
.step { display: grid; grid-template-columns: 40px 1fr; gap: 4px var(--s3); align-items: center; }
.step .ico { width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center; background: var(--pill-bg); color: var(--muted); grid-row: 1 / span 2; }
.step.run .ico { background: var(--accent-soft); color: var(--accent); }
.step.run .ico svg { animation: breathe 1.8s ease-in-out infinite; }
.step.ok .ico { background: rgb(16 185 129 / .16); color: var(--ok, #34D399); }
.step.bad .ico { background: var(--danger-soft); color: var(--danger); }
.step h3 { font-size: var(--t-sm); font-weight: 800; line-height: 1.2; }
.step .meta { font-size: var(--t-meta); color: var(--muted); }
.step .ds-progress { grid-column: 2; height: 7px; }
.api-list { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; font-size: var(--t-meta); color: var(--muted); }
.api-list li { display: flex; justify-content: space-between; gap: var(--s3); }
.mini-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.mini { position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--surface-2); border: 1px solid var(--line-2); }
.mini img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mini .ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); }
.mini .ph.run { animation: ds-skel 1.8s ease-in-out infinite; background: linear-gradient(100deg, var(--surface-2) 30%, var(--surface-3) 50%, var(--surface-2) 70%); background-size: 300% 100%; }
.mini .ph.bad { color: var(--danger); }

/* ---- settings */
.setting { display: grid; gap: var(--s2); padding: var(--s3) 0; border-top: 1px solid var(--line); }
.setting:first-of-type { border-top: 0; padding-top: 0; }
.setting .lab { font-size: var(--t-sm); font-weight: 700; }
.setting .row .grow { display: grid; gap: 2px; }
.status-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; background: var(--faint); }
.status-dot.ok { background: #34D399; box-shadow: 0 0 10px rgb(52 211 153 / .6); }
.status-dot.bad { background: var(--danger); }
.login-code { font: 800 34px/1 var(--mono); letter-spacing: .08em; text-align: center; padding: 18px 8px; border-radius: var(--r-m); background: var(--accent-soft); color: var(--accent); user-select: all; -webkit-user-select: all; }
.steps-list { margin: 0; padding-left: 20px; display: grid; gap: var(--s2); color: var(--text); font-size: var(--t-sm); line-height: 1.45; }
.build { text-align: center; font-size: var(--t-cap); color: var(--muted); }
.build code { font-family: var(--mono); }
.seg-wide { width: 100%; }

html[data-kb] .build { display: none; }

@media (prefers-reduced-motion: reduce) { .batch-card .spin.run svg, .step.run .ico svg { animation: none; } }
.list-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.list-actions[hidden] { display: none; }
.panel.review { border-color: rgb(255 90 90 / .45); }
.qa-issues { margin: 0 0 12px; padding: 0 0 0 18px; display: grid; gap: 6px; font-size: var(--t-body); }
