/* Holy Shift's own stylesheet, copied verbatim from the app
 * (src/styles/brand.css + app.css) with the @font-face blocks removed.
 * These mock screens are rendered in isolated iframes so the real UI can
 * be shown at any size without colliding with the tools page's styles.
 * Regenerate rather than hand-edit if the app's styling changes. */

/* Holy Shift — brand primitives.
 *
 * Every value here comes from the brand system canvas or is measured off the
 * screen mockups. If something looks off, check it against those before
 * changing it here.
 *
 * Fonts are bundled rather than fetched: the app runs offline by design, and
 * the window's CSP blocks outside requests anyway.
 */

:root {
  --vermilion: oklch(0.63 0.22 30);
  --apricot: oklch(0.86 0.11 55);
  --cream: #fbf3e6;
  --ink: #1c1210;

  /* Supporting values, all lifted from the mockups. */
  --ink-deep: #0d0908;
  --ink-raised: #261a17;
  --ink-line: #3a2a26;
  --ink-muted: #b6a79b;
  --ink-soft: #6b5b54;

  --cream-card: #fff9ef;
  --cream-line: #e3d9c7;
  --cream-bar: #d8c9b6;
  --cream-dim: #e4d9cb;

  --on-cream: #1c1210;
  --on-cream-2: #4a3c36;
  --on-cream-3: #7d6d63;

  --display: "Anton", "Arial Narrow", Impact, sans-serif;
  --ui: "Space Grotesk", "Segoe UI", system-ui, sans-serif;

  --titlebar-h: 44px;
  --sidebar-w: 236px;
  --radius-card: 12px;
  --radius-control: 8px;

  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--ui);
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  /* This is a window, not a document: nothing here should be selectable or
   * draggable except where explicitly re-enabled. */
  user-select: none;
  cursor: default;
}

button {
  font-family: inherit;
  cursor: pointer;
}

button:focus-visible,
[tabindex]:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--apricot);
  outline-offset: 2px;
}

/* ---------------------------------------------------------------- display */

.display {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0;
  line-height: 1;
  font-weight: 400;
}

/* The 46px page heading both mockups open with. */
.page-title {
  font-family: var(--display);
  font-size: 46px;
  line-height: 1;
  text-transform: uppercase;
  color: var(--vermilion);
  margin: 0;
}

[data-theme="dark"] .page-title {
  color: var(--apricot);
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

[data-theme="light"] .eyebrow {
  color: var(--on-cream-2);
}

/* ------------------------------------------------------------- censor tile */

/* The brand's one reusable device: on the cap line, open at the foot so the
 * counter bleeds out, tilted −4°, never a closed box. Size is driven by
 * font-size so it scales with whatever it sits in. */
.tile {
  display: inline-block;
  font-family: var(--display);
  line-height: 0.8;
  padding: 0.16em 0.3em 0;
  border-radius: 0.24em;
  transform: rotate(-4deg);
  background: var(--ink);
  color: var(--cream);
  white-space: nowrap;
}

.tile--apricot {
  background: var(--apricot);
  color: var(--ink);
}

.tile--vermilion {
  background: var(--vermilion);
  color: var(--cream);
}

/* The logo mark: the tile dropping over the F of SHIFT. */
.mark {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  background: var(--vermilion);
  color: var(--apricot);
  font-family: var(--display);
  line-height: 0.8;
}

.mark > span {
  display: block;
  /* Anton's cap height sits low in its box; this re-centres it optically. */
  margin-top: -0.06em;
}

.mark--apricot {
  background: var(--apricot);
  color: var(--vermilion);
}

/* ----------------------------------------------------------------- cards */

.card {
  background: var(--ink-raised);
  border-radius: var(--radius-card);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

[data-theme="light"] .card {
  background: var(--cream-card);
  border: 1px solid var(--cream-line);
  color: var(--on-cream);
}

.card__figure {
  font-family: var(--display);
  font-size: 36px;
  line-height: 1;
}

/* --------------------------------------------------------------- controls */

.btn {
  border: none;
  border-radius: var(--radius-control);
  background: var(--ink);
  color: var(--cream);
  padding: 14px 24px;
  font-family: var(--display);
  font-size: 17px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: filter 120ms ease;
}

.btn:hover:not(:disabled) {
  filter: brightness(1.25);
}

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

[data-theme="dark"] .btn {
  background: var(--vermilion);
}

.btn--primary {
  background: var(--vermilion);
  color: var(--cream);
}

.btn--small {
  font-family: var(--ui);
  font-size: 14px;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  padding: 11px 16px;
}

/* Pill toggles: the Week / Month / All time row. */
.pill {
  border: 1px solid var(--ink-soft);
  border-radius: 999px;
  background: transparent;
  padding: 9px 18px;
  font-size: 14px;
  color: var(--cream-dim);
}

.pill[aria-pressed="true"] {
  border-color: var(--cream);
  color: var(--cream);
  font-weight: 700;
}

[data-theme="light"] .pill {
  border-color: var(--cream-bar);
  color: var(--on-cream-2);
}

[data-theme="light"] .pill[aria-pressed="true"] {
  border-color: var(--on-cream);
  color: var(--on-cream);
}

.switch {
  position: relative;
  width: 44px;
  height: 24px;
  border: none;
  border-radius: 999px;
  background: var(--ink-line);
  padding: 0;
  flex: none;
  transition: background 140ms ease;
}

.switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--cream);
  transition: transform 140ms ease;
}

.switch[aria-checked="true"] {
  background: var(--vermilion);
}

.switch[aria-checked="true"]::after {
  transform: translateX(20px);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

select,
input[type="text"] {
  font-family: var(--ui);
  font-size: 14px;
  padding: 11px 12px;
  border-radius: var(--radius-control);
  border: 1px solid var(--ink-line);
  background: var(--ink-deep);
  color: var(--cream);
  user-select: text;
}

input[type="text"] {
  cursor: text;
}

[data-theme="light"] select,
[data-theme="light"] input[type="text"] {
  background: var(--cream-card);
  border-color: var(--cream-line);
  color: var(--on-cream);
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  height: 22px;
  background: transparent;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background: var(--ink-line);
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  margin-top: -6px;
  border-radius: 50%;
  background: var(--apricot);
}

/* ------------------------------------------------------------ animations */

@keyframes hspulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.45;
  }
  50% {
    transform: scale(1.2);
    opacity: 0;
  }
}

@keyframes hsslip {
  from {
    transform: scale(0.94);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Screen layouts. The window is its own chrome (decorations are off in
 * tauri.conf.json) so the titlebar here is real UI, not decoration.
 *
 * Two grounds, following the mockups: the live session is cream, because it is
 * the screen you look at while you talk; everything else is ink.
 */

#app {
  display: flex;
  flex-direction: column;
  height: 100vh;
  background: var(--ink);
  color: var(--cream);
}

#app[data-theme="light"] {
  background: var(--cream);
  color: var(--on-cream);
}

/* ---------------------------------------------------------------- titlebar */

.titlebar {
  height: var(--titlebar-h);
  flex: none;
  background: var(--ink);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: 16px;
}

#app[data-theme="dark"] .titlebar {
  background: var(--ink-deep);
}

.titlebar__drag {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  height: 100%;
  min-width: 0;
}

/* The lockup lives in the sidebar, large. The titlebar just names the section. */
.titlebar__name {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


.titlebar__buttons {
  display: flex;
  height: var(--titlebar-h);
  flex: none;
}

.titlebar__button {
  width: 46px;
  height: 100%;
  border: none;
  background: transparent;
  color: var(--cream-dim);
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.titlebar__button:hover {
  background: rgba(251, 243, 230, 0.12);
  color: var(--cream);
}

.titlebar__button--close:hover {
  background: var(--vermilion);
  color: var(--cream);
}

/* ------------------------------------------------------------------ shell */

.shell {
  flex: 1;
  display: flex;
  min-height: 0;
}

.sidebar {
  width: var(--sidebar-w);
  flex: none;
  background: var(--ink);
  color: var(--cream);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px 0 20px;
}

#app[data-theme="dark"] .sidebar {
  background: var(--ink-deep);
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  /* On a short window the nav gives way, never the lockup or the input
   * readout below it. */
  min-height: 0;
  overflow-y: auto;
}

.nav__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 22px;
  border: none;
  background: transparent;
  color: var(--cream-dim);
  font-family: var(--ui);
  font-size: 15px;
  text-align: left;
  width: 100%;
}

.nav__item:hover {
  color: var(--cream);
}

.nav__item[aria-current="page"] {
  background: var(--vermilion);
  color: var(--cream);
  font-weight: 700;
}

/* A running session shows in the sidebar from every screen. */
.nav__item .nav__count {
  margin-left: auto;
  font-family: var(--display);
  font-size: 17px;
  line-height: 1;
  color: var(--apricot);
}

.sidebar__foot {
  padding: 0 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: none;
}

/* Fills the sidebar's content column, so its left edge lines up with the nav
 * labels, the INPUT heading and the device name. The source SVG's viewBox is
 * cropped to the artwork — untouched it carries 61% empty margin, which is what
 * made the lockup look tiny and float away from the left edge.
 *
 * No bottom margin: the 14px flex gap alone puts it the same distance above
 * the rule as INPUT sits below it. */
.sidebar__logo {
  width: 100%;
  height: auto;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

.sidebar__rule {
  height: 1px;
  background: var(--ink-line);
}

.sidebar__device {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar__device strong {
  font-size: 14px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar__privacy {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  color: var(--cream-dim);
}

.sidebar__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--apricot);
  flex: none;
}

.view {
  flex: 1;
  min-width: 0;
  padding: 34px 40px;
  display: flex;
  flex-direction: column;
  gap: 26px;
  overflow: hidden;
}

.view--scroll {
  overflow-y: auto;
  gap: 28px;
}

.view__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex: none;
}

.view__head p {
  margin: 0;
  font-size: 15px;
  color: var(--ink-muted);
}

#app[data-theme="light"] .view__head p {
  color: var(--on-cream-2);
}

/* ----------------------------------------------------------- live session */

.live {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
}

.live__controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Seven bars, exactly as the mockup; the tallest is vermilion. */
.wave {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 38px;
  flex: none;
}

.wave span {
  width: 5px;
  height: 4px;
  border-radius: 3px;
  background: var(--cream-bar);
  transition: height 90ms linear;
}

#app[data-theme="dark"] .wave span {
  background: var(--ink-line);
}

.wave span.wave--peak {
  background: var(--vermilion);
}

.transcript {
  background: var(--cream-card);
  border: 1px solid var(--cream-line);
  border-radius: var(--radius-card);
  padding: 30px 34px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow-y: auto;
  min-height: 0;
  /* New lines arrive at the bottom, so the view should sit there. */
  justify-content: flex-end;
}

.transcript p {
  margin: 0;
  font-size: 19px;
  line-height: 1.6;
  color: var(--on-cream-3);
}

/* The two most recent lines step forward in size and contrast. */
.transcript p:nth-last-child(2) {
  color: var(--on-cream-2);
}

.transcript p.transcript__now {
  font-size: 21px;
  color: var(--on-cream);
}

.transcript .tile {
  font-size: 25px;
  vertical-align: baseline;
}

.transcript__listening {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--on-cream-2);
  flex: none;
}

.transcript__listening i {
  width: 9px;
  height: 24px;
  border-radius: 3px;
  background: var(--vermilion);
  animation: hspulse 1.6s ease-out infinite;
}

.transcript__off {
  margin: auto;
  text-align: center;
  color: var(--on-cream-3);
  font-size: 15px;
  max-width: 34ch;
  line-height: 1.6;
}

.rail {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  overflow-y: auto;
}

/* The Bleeped card. Appears on a slip, waits for a verdict. */
.bleeped {
  background: var(--vermilion);
  border-radius: var(--radius-card);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: var(--cream);
  flex: none;
  animation: hsslip 180ms ease-out;
}

.bleeped__head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.bleeped .mark {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  font-size: 33px;
}

.bleeped__title {
  font-family: var(--display);
  font-size: 30px;
  line-height: 1;
  text-transform: uppercase;
}

.bleeped__line {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
}

.bleeped__actions {
  display: flex;
  gap: 8px;
}

.bleeped__actions button {
  flex: 1;
  border-radius: var(--radius-control);
  font-family: var(--ui);
  font-size: 14px;
  font-weight: 700;
}

.bleeped__yes {
  border: none;
  padding: 11px;
  background: var(--cream);
  color: var(--vermilion);
}

.bleeped__no {
  border: 2px solid var(--cream);
  background: transparent;
  padding: 9px;
  color: var(--cream);
}

.bleeped__no:hover {
  background: rgba(251, 243, 230, 0.16);
}

.counter {
  flex: none;
}

.counter__figure {
  font-family: var(--display);
  font-size: 74px;
  line-height: 0.9;
  color: var(--vermilion);
}

.counter__note {
  font-size: 15px;
  color: var(--on-cream-2);
}

.hits {
  gap: 12px !important;
  padding: 20px 24px !important;
  flex: none;
}

.hits__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.hits__row .tile {
  font-size: 22px;
  background: var(--apricot);
  color: var(--ink);
}

.hits__row b {
  font-size: 16px;
  font-weight: 700;
}

.empty {
  font-size: 15px;
  color: var(--on-cream-3);
}

#app[data-theme="dark"] .empty {
  color: var(--ink-muted);
}

/* --------------------------------------------------------------- history */

.chart {
  background: var(--ink-raised);
  border-radius: var(--radius-card);
  padding: 30px 34px;
  flex: none;
}

.chart__bars {
  display: flex;
  align-items: flex-end;
  gap: 20px;
  height: 210px;
}

.chart__day {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  height: 100%;
  justify-content: flex-end;
}

.chart__bar {
  width: 100%;
  background: var(--apricot);
  border-radius: 8px;
  min-height: 4px;
  transition: height 200ms ease;
}

.chart__day--today .chart__bar {
  background: var(--vermilion);
}

.chart__label {
  font-size: 13px;
  font-weight: 700;
  color: var(--cream-dim);
  flex: none;
}

.chart__day--today .chart__label {
  color: var(--cream);
}

/* A month's worth of bars needs to breathe less than a week's. */
.chart__bars--dense {
  gap: 5px;
}

.chart__bars--dense .chart__label {
  font-size: 10px;
  font-weight: 400;
  color: var(--ink-muted);
}

.history__split {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 28px;
}

.sessions {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow-y: auto;
  min-height: 0;
}

.sessions > .eyebrow {
  padding-bottom: 12px;
  flex: none;
}

.session {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 0;
  border-top: 1px solid var(--ink-line);
  flex: none;
}

.session__count {
  font-family: var(--display);
  font-size: 30px;
  line-height: 1;
  color: var(--vermilion);
  width: 48px;
  flex: none;
}

.session__count--clean {
  color: var(--ink-soft);
}

.session__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.session__body strong {
  font-size: 16px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.session__body span {
  font-size: 14px;
  color: var(--ink-muted);
}

.session__actions {
  display: flex;
  gap: 4px;
  flex: none;
}

.session__actions button {
  border: none;
  background: transparent;
  color: var(--cream-dim);
  font-family: var(--ui);
  font-size: 14px;
  padding: 6px 8px;
  border-radius: 6px;
}

.session__actions button:hover {
  background: var(--ink-line);
  color: var(--cream);
}

.stats {
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
  min-height: 0;
}

.stats .card__figure--apricot {
  color: var(--apricot);
}

/* ------------------------------------------------------------- word list */

.words {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.tier {
  background: var(--ink-raised);
  border-radius: var(--radius-card);
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tier__head {
  display: flex;
  align-items: center;
  gap: 16px;
}

.tier__head h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 24px;
  line-height: 1;
  text-transform: uppercase;
}

.tier__head p {
  margin: 0;
  font-size: 13px;
  color: var(--ink-muted);
  flex: 1;
}

.tier__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--ink-line);
  border-radius: 999px;
  background: transparent;
  padding: 5px 8px 5px 12px;
  color: var(--cream);
  font-family: var(--ui);
  font-size: 13px;
}

.chip .tile {
  font-size: 15px;
  background: var(--apricot);
  color: var(--ink);
}

.chip[data-off="true"] {
  opacity: 0.38;
}

.chip[data-off="true"] .tile {
  background: var(--ink-line);
  color: var(--cream-dim);
}

/* The unmasked form, shown only when the word list's reveal toggle is on.
 * Plain type rather than a tile — the tile means "censored", so wearing one
 * while showing the word in full would contradict itself. */
.chip__plain {
  font-family: var(--display);
  font-size: 15px;
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--cream);
  padding: 3px 2px 0;
}

.chip[data-off="true"] .chip__plain {
  color: var(--cream-dim);
}

.chip__x {
  border: none;
  background: transparent;
  color: var(--ink-muted);
  font-size: 15px;
  line-height: 1;
  padding: 2px 4px;
  border-radius: 50%;
}

.chip__x:hover {
  color: var(--cream);
  background: var(--vermilion);
}

.adder {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.adder input[type="text"] {
  flex: 1;
  min-width: 160px;
}

.allowed {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.allowed .chip {
  font-size: 14px;
  padding: 7px 8px 7px 14px;
}

/* --------------------------------------------------------------- settings */

.settings {
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-width: 820px;
}

.group {
  background: var(--ink-raised);
  border-radius: var(--radius-card);
  padding: 26px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.group > h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 24px;
  line-height: 1;
  text-transform: uppercase;
}

.row {
  display: flex;
  align-items: center;
  gap: 18px;
}

.row__label {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.row__label strong {
  font-size: 15px;
  font-weight: 700;
}

.row__label span {
  font-size: 13px;
  color: var(--ink-muted);
}

.row input[type="range"] {
  width: 200px;
  flex: none;
}

.row select {
  min-width: 220px;
  flex: none;
}

.row__value {
  width: 48px;
  text-align: right;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  color: var(--cream-dim);
  flex: none;
}

.sounds {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(214px, 1fr));
  gap: 10px;
}

.sound {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  text-align: left;
  border: 1px solid var(--ink-line);
  border-radius: var(--radius-control);
  background: transparent;
  padding: 14px 16px;
  color: var(--cream);
}

.sound:hover {
  border-color: var(--cream-dim);
}

.sound[aria-pressed="true"] {
  border-color: var(--vermilion);
  background: rgba(241, 59, 41, 0.14);
}

.sound strong {
  font-size: 15px;
  font-weight: 700;
}

.sound span {
  font-size: 13px;
  color: var(--ink-muted);
}

.models {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.model {
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--ink-line);
  border-radius: var(--radius-control);
  padding: 14px 16px;
}

.model[data-selected="true"] {
  border-color: var(--vermilion);
}

.model__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.model__body strong {
  font-size: 15px;
}

.model__body span {
  font-size: 13px;
  color: var(--ink-muted);
}

.progress {
  height: 6px;
  border-radius: 999px;
  background: var(--ink-line);
  overflow: hidden;
  margin-top: 8px;
}

.progress i {
  display: block;
  height: 100%;
  background: var(--apricot);
  transition: width 200ms ease;
}

.danger {
  color: var(--vermilion);
}

/* A destructive .btn would otherwise inherit the dark theme's vermilion fill
 * and then paint vermilion text on top of it — an invisible button. Outline
 * it instead, and fill only on hover, where the text flips to cream. */
.btn.danger,
.btn.danger:hover:not(:disabled) {
  background: transparent;
  color: var(--vermilion);
  border: 1px solid var(--vermilion);
}

.btn.danger:hover:not(:disabled) {
  background: var(--vermilion);
  color: var(--cream);
  filter: none;
}

.note {
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-muted);
  margin: 0;
}

.note code {
  user-select: text;
  font-size: 12px;
  color: var(--cream-dim);
}

/* --------------------------------------------------------------- overlays */

/* First run: no model yet, so the live screen leads with the download. */
.gate {
  margin: auto;
  max-width: 460px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
  text-align: left;
}

.gate h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 40px;
  line-height: 1;
  text-transform: uppercase;
  color: var(--vermilion);
}

.gate p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--on-cream-2);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  max-width: 560px;
  background: var(--ink);
  color: var(--cream);
  border: 1px solid var(--vermilion);
  border-radius: var(--radius-control);
  padding: 12px 18px;
  font-size: 14px;
  line-height: 1.5;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  z-index: 50;
  animation: hsslip 160ms ease-out;
}

.session-start {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.session-start input[type="text"] {
  min-width: 260px;
  font-size: 15px;
}
