@font-face {
  font-family: 'Bricolage Grotesque';
  src: url(/fonts/bricolage-latin.woff2) format('woff2');
  font-weight: 200 800;
  font-display: swap;
}

@font-face {
  font-family: 'Geist';
  src: url(/fonts/geist-latin.woff2) format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: 'Geist Mono';
  src: url(/fonts/geist-mono-latin.woff2) format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #f6f6f3;
  --card: #ffffff;
  --sunken: #f0f0ec;
  --ink: #131316;
  --ink-2: #3b3b42;
  --muted: #6c6c74;
  --faint: #9a9aa1;
  --line: #e4e4de;
  --line-2: #eeeee9;
  --line-strong: #d3d3cc;
  /* The one functional accent: recording, live, failed, refunded. */
  --rec: #ff4433;
  --rec-ink: #c42a1c;
  --rec-soft: #ffe6e2;
  --rec-wash: #fff4f2;
  --shadow-sm: 0 1px 2px rgb(19 19 22 / 0.06);
  --shadow: 0 1px 2px rgb(19 19 22 / 0.05), 0 10px 30px -12px rgb(19 19 22 / 0.16);
  --shadow-lg: 0 2px 4px rgb(19 19 22 / 0.05), 0 30px 60px -24px rgb(19 19 22 / 0.3);
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 22px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --display: 'Bricolage Grotesque', 'Geist', system-ui, sans-serif;
  --sans: 'Geist', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --gut: clamp(16px, 4vw, 40px);
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

img,
video,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.05;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

button,
input {
  font: inherit;
  color: inherit;
}

::selection {
  background: var(--ink);
  color: var(--bg);
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.mono,
.num {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings:
    'tnum' 1,
    'zero' 1;
}

.i {
  width: 1em;
  height: 1em;
  flex: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
}

.skip:focus {
  top: 0.75rem;
}

.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding-inline: var(--gut);
}

/* Buttons */

.btn {
  --btn-bg: var(--card);
  --btn-ink: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0 1.15rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-ink);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition:
    transform 160ms var(--ease-out),
    background-color 150ms ease,
    border-color 150ms ease;
  user-select: none;
}

.btn:active:not(:disabled) {
  transform: scale(0.97);
}

.btn .i {
  transition: transform 200ms var(--ease-out);
}

.btn-ink {
  --btn-bg: var(--ink);
  --btn-ink: var(--bg);
  border-color: var(--ink);
}

.btn-sm {
  min-height: 2.25rem;
  padding: 0 0.95rem;
  font-size: 0.875rem;
}

.btn-lg {
  min-height: 3.5rem;
  padding: 0 1.5rem;
  font-size: 1.05rem;
}

.btn-block {
  width: 100%;
}

.btn:disabled {
  cursor: not-allowed;
  --btn-bg: var(--sunken);
  --btn-ink: var(--faint);
  border-color: var(--line);
  box-shadow: none;
}

.btn .cost {
  padding-left: 0.7rem;
  margin-left: 0.15rem;
  border-left: 1px solid color-mix(in oklab, currentColor 30%, transparent);
  font: 500 0.85rem var(--mono);
  opacity: 0.75;
}

@media (hover: hover) and (pointer: fine) {
  .btn:hover:not(:disabled) {
    border-color: var(--ink);
  }
  .btn-ink:hover:not(:disabled) {
    --btn-bg: color-mix(in oklab, var(--ink) 86%, var(--bg));
  }
  .btn:hover:not(:disabled) .i {
    transform: translateX(2px);
  }
}

.linkbtn {
  padding: 0.25rem;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 0.875rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  border-radius: 4px;
}

@media (hover: hover) and (pointer: fine) {
  .linkbtn:hover {
    color: var(--ink);
  }
}

.copy {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex: none;
  min-height: 1.9rem;
  padding: 0 0.7rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink-2);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform 160ms var(--ease-out),
    border-color 150ms ease,
    color 150ms ease;
}

.copy svg {
  width: 0.85rem;
  height: 0.85rem;
}

.copy:active {
  transform: scale(0.96);
}

.copy[data-copied] {
  border-color: var(--ink);
  color: var(--ink);
}

@media (hover: hover) and (pointer: fine) {
  .copy:hover {
    border-color: var(--ink);
    color: var(--ink);
  }
}

/* Pills, REC dot and the crop-mark frame, as on the landing page */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.8rem 0.3rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-2);
  box-shadow: var(--shadow-sm);
}

.rec {
  width: 0.5rem;
  height: 0.5rem;
  flex: none;
  border-radius: 50%;
  background: var(--rec);
  box-shadow: 0 0 0 3px var(--rec-soft);
}

.framed {
  position: relative;
  display: inline-block;
  padding: 0.02em 0.2em 0.06em;
  margin-inline: -0.02em;
  --c: var(--rec);
  --l: 0.3em;
  --t: 0.065em;
  background:
    linear-gradient(var(--c) 0 0) top left / var(--l) var(--t),
    linear-gradient(var(--c) 0 0) top left / var(--t) var(--l),
    linear-gradient(var(--c) 0 0) top right / var(--l) var(--t),
    linear-gradient(var(--c) 0 0) top right / var(--t) var(--l),
    linear-gradient(var(--c) 0 0) bottom left / var(--l) var(--t),
    linear-gradient(var(--c) 0 0) bottom left / var(--t) var(--l),
    linear-gradient(var(--c) 0 0) bottom right / var(--l) var(--t),
    linear-gradient(var(--c) 0 0) bottom right / var(--t) var(--l);
  background-repeat: no-repeat;
  white-space: nowrap;
}

/* Status chips: ink when settled, red only while something is live or went wrong */

.st {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font: 500 0.78rem var(--mono);
  color: var(--ink-2);
  white-space: nowrap;
}

.st i {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--line-strong);
  flex: none;
}

.st-done i {
  background: var(--ink);
}

.st-live {
  color: var(--ink);
}

.st-live i {
  background: var(--rec);
  box-shadow: 0 0 0 3px var(--rec-soft);
  animation: blink 1.6s ease-in-out infinite;
}

.st-fail {
  color: var(--rec-ink);
}

.st-fail i {
  background: transparent;
  box-shadow: inset 0 0 0 2px var(--rec);
}

@keyframes blink {
  50% {
    opacity: 0.35;
  }
}

/* Top bar */

.banner {
  padding: 0.65rem var(--gut);
  background: var(--ink);
  color: var(--bg);
  font-size: 0.92rem;
  text-align: center;
}

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  padding-top: env(safe-area-inset-top, 0px);
  background: color-mix(in oklab, var(--bg) 85%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid color-mix(in oklab, var(--line) 70%, transparent);
}

.top-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 4rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  border-radius: 8px;
}

.brand .mark {
  flex: none;
  width: 1.75rem;
  height: 1.75rem;
}

.acct {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-left: auto;
  min-width: 0;
}

.bal {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  padding: 0.5rem 0.85rem 0.45rem;
  line-height: 1.15;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--muted);
  font-size: 0.85rem;
  white-space: nowrap;
}

.bal b {
  font: 600 0.95rem var(--mono);
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.bal.is-low b {
  color: var(--rec-ink);
}

.who {
  max-width: 14rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font: 400 0.8rem var(--mono);
  margin-left: 0.4rem;
}

@media (max-width: 760px) {
  .who {
    display: none;
  }
}

.acct .linkbtn {
  white-space: nowrap;
}

@media (max-width: 440px) {
  .brand span {
    display: none;
  }
  .top-inner {
    gap: 0.75rem;
  }
  /* On the narrowest phones whole items move to a second row instead of breaking mid-label. */
  .acct {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.25rem 0.35rem;
  }
  .acct .bal {
    padding-inline: 0.65rem;
  }
  .acct .btn-sm {
    padding-inline: 0.75rem;
  }
  .acct .linkbtn {
    padding-inline: 0.15rem;
  }
}

main {
  padding-block: clamp(1.75rem, 4vw, 3rem) 5rem;
}

/* Views: body[data-view] decides which [data-for] blocks show */

[data-for] {
  display: none;
}

body[data-view='signin'] [data-for~='signin'],
body[data-view='compose'] [data-for~='compose'],
body[data-view='job'] [data-for~='job'] {
  display: revert;
}

body[data-view='compose'] .shell[data-for],
body[data-view='job'] .shell[data-for] {
  display: grid;
}

body[data-view='signin'] .signin[data-for] {
  display: grid;
}

body:not([data-view='compose']):not([data-view='job']) .acct {
  display: none;
}

/* Cards and shell */

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow-sm);
}

.shell {
  grid-template-columns: minmax(0, 1fr) 19rem;
  gap: 1.5rem 3rem;
  align-items: start;
}

.col {
  min-width: 0;
}

.rail {
  position: sticky;
  top: 6rem;
  display: grid;
  gap: 1.75rem;
}

@media (max-width: 1120px) {
  .shell {
    grid-template-columns: minmax(0, 1fr);
  }
  .rail {
    position: static;
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  }
}

.page-h {
  margin-bottom: 1.5rem;
}

.page-h h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.page-h p {
  margin-top: 0.6rem;
  max-width: 34rem;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Agent margin */

.margin {
  position: relative;
  padding-left: 1rem;
  border-left: 1px solid var(--line-strong);
  font-size: 0.8rem;
  color: var(--muted);
}

.margin-h {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
  font: 600 0.7rem var(--sans);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--faint);
}

.margin pre {
  margin: 0 0 0.6rem;
  white-space: pre-wrap;
  word-break: break-word;
  font: 400 0.76rem/1.6 var(--mono);
  color: var(--ink-2);
}

.margin pre .c {
  color: var(--ink);
  font-weight: 600;
}

.margin pre .k {
  color: var(--muted);
}

.margin pre .r {
  color: var(--faint);
}

.margin-h .copy {
  margin: -0.4rem 0 -0.4rem auto;
  letter-spacing: 0;
  text-transform: none;
}

.margin p .mono {
  color: var(--ink-2);
  word-break: break-all;
}

.rail-job > * + * {
  margin-top: 1.75rem;
}

/* Sign in */

.signin {
  /* Wide enough for "Continue to AdCamera" on one line at the largest heading size. */
  max-width: 34rem;
  margin: clamp(1rem, 7vh, 4.5rem) auto 0;
  gap: 2rem;
}

.signin-card {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
}

.signin h1 {
  margin-top: 1.25rem;
  font-size: clamp(2rem, 6vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.02;
}

.signin .lede {
  margin: 0.9rem 0 1.75rem;
  color: var(--muted);
}

.field-label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.input {
  width: 100%;
  min-height: 3rem;
  padding: 0 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--card);
  font-size: 1rem;
  outline: none;
  transition: border-color 150ms ease;
}

.input:focus {
  border-color: var(--ink);
}

.keyrow {
  display: flex;
  gap: 0.5rem;
}

.keyrow .btn {
  min-height: 3rem;
}

@media (max-width: 440px) {
  .keyrow {
    flex-direction: column;
  }
}

.form-msg {
  font-size: 0.875rem;
  color: var(--rec-ink);
}

.form-msg:not(:empty) {
  margin-top: 0.6rem;
}

.signin .alt {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line-2);
  font-size: 0.9rem;
  color: var(--muted);
}

.signin .alt a {
  color: var(--ink);
  font-weight: 600;
}

.signin .notice {
  margin-bottom: 1.25rem;
}

.signin .g {
  width: 1.1rem;
  height: 1.1rem;
  flex: none;
}

.or {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.25rem 0;
  font: 500 0.72rem var(--mono);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--faint);
}

.or::before,
.or::after {
  content: '';
  flex: 1;
  border-top: 1px solid var(--line-2);
}

.addr {
  /* Kept whole on its own line when it fits; past that, it breaks before the @, and mid-word only if one half is still too wide. */
  display: inline-block;
  max-width: 100%;
  color: var(--ink);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.devnote {
  padding: 0.75rem 1rem;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-sm);
  font: 400 0.8rem/1.5 var(--mono);
  color: var(--ink-2);
}

.acct form {
  display: contents;
}

/* Order form */

.notice {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid color-mix(in oklab, var(--rec) 30%, var(--line));
  border-radius: var(--r-sm);
  background: var(--rec-wash);
  font-size: 0.92rem;
}

.notice .rec {
  transform: translateY(-0.05rem);
}

.notice b {
  font-family: var(--mono);
  font-weight: 600;
}

.order {
  overflow: hidden;
}

.order-link {
  padding: 1.5rem 1.75rem 1.4rem;
  border-bottom: 1px solid var(--line);
}

.urlbar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--card);
  box-shadow: var(--shadow-sm);
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease;
}

.urlbar:focus-within {
  border-color: var(--ink);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--ink) 8%, transparent);
}

.urlbar.is-invalid {
  border-color: var(--rec);
}

.urlbar-icon {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  flex: none;
  border-radius: 50%;
  background: var(--sunken);
  color: var(--muted);
}

.urlbar-icon svg {
  width: 1rem;
  height: 1rem;
}

.urlbar input {
  flex: 1;
  min-width: 0;
  height: 2.6rem;
  padding-right: 0.75rem;
  border: 0;
  background: none;
  font-size: 1.05rem;
  outline: none;
}

.urlbar input::placeholder {
  color: var(--faint);
}

.order-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 19rem;
}

.order-opts {
  display: grid;
  gap: 1.75rem;
  padding: 1.6rem 1.75rem 1.9rem;
  min-width: 0;
}

fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

legend {
  padding: 0;
  font-size: 0.9rem;
  font-weight: 600;
}

.hint {
  margin: 0.15rem 0 0.75rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.seg {
  display: inline-grid;
  grid-template-columns: repeat(6, 3rem);
  padding: 0.25rem;
  gap: 0.15rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--sunken);
}

.seg label {
  position: relative;
}

.seg input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.seg span {
  display: grid;
  place-items: center;
  height: 2.5rem;
  border-radius: 999px;
  font: 500 0.95rem var(--mono);
  color: var(--ink-2);
  pointer-events: none;
  transition:
    background-color 150ms ease,
    color 150ms ease;
}

.seg input:checked + span {
  background: var(--card);
  color: var(--ink);
  font-weight: 600;
  box-shadow:
    0 1px 2px rgb(19 19 22 / 0.1),
    0 0 0 1px var(--line);
}

.seg input:focus-visible + span {
  outline: 2px solid var(--ink);
  outline-offset: 1px;
}

@media (hover: hover) and (pointer: fine) {
  .seg input:not(:checked):hover + span {
    color: var(--ink);
  }
}

.sizes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
}

.size {
  position: relative;
  display: grid;
  grid-template-columns: 1.5rem minmax(0, 1fr);
  gap: 0.1rem 0.75rem;
  align-items: center;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  cursor: pointer;
  transition:
    border-color 150ms ease,
    background-color 150ms ease,
    transform 160ms var(--ease-out);
}

.size:active {
  transform: scale(0.98);
}

.size input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.size .glyph {
  grid-row: span 2;
  justify-self: center;
  height: 1.6rem;
  aspect-ratio: var(--ar);
  border: 1.5px solid var(--faint);
  border-radius: 3px;
  transition:
    border-color 150ms ease,
    background-color 150ms ease;
}

.size b {
  font: 600 0.95rem var(--mono);
}

.size small {
  font-size: 0.78rem;
  line-height: 1.3;
  color: var(--muted);
}

.size:has(input:checked) {
  border-color: var(--ink);
}

.size:has(input:checked) {
  background: #fbfbf9;
}

.size:has(input:checked) .glyph {
  border-color: var(--ink);
  background: var(--line);
}

.size:has(input:focus-visible) {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

@media (hover: hover) and (pointer: fine) {
  .size:hover {
    border-color: var(--ink-2);
  }
}

@media (max-width: 600px) {
  .size {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.35rem;
    align-content: start;
    padding: 0.75rem;
  }
  .size .glyph {
    grid-row: auto;
    justify-self: start;
    height: 1.35rem;
  }
}

.switch {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  cursor: pointer;
}

.switch input {
  appearance: none;
  position: relative;
  flex: none;
  width: 2.4rem;
  height: 1.4rem;
  margin: 0;
  border-radius: 999px;
  background: var(--line-strong);
  cursor: pointer;
  transition: background-color 180ms ease;
}

.switch input::after {
  content: '';
  position: absolute;
  top: 0.2rem;
  left: 0.2rem;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: var(--card);
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.2);
  transition: transform 180ms var(--ease-out);
}

.switch input:checked {
  background: var(--ink);
}

.switch input:checked::after {
  transform: translateX(1rem);
}

.switch:has(input:disabled),
.switch input:disabled {
  cursor: not-allowed;
}

.switch:has(input:disabled) {
  opacity: 0.55;
}

.switch b {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
}

.switch small {
  font-size: 0.82rem;
  color: var(--muted);
}

/* The order summary: a short ledger ending in the one primary action */

.summary {
  display: flex;
  flex-direction: column;
  padding: 1.6rem 1.5rem 1.5rem;
  border-left: 1px solid var(--line);
  background: #fbfbf9;
}

.sum-h {
  margin-bottom: 0.4rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--faint);
}

.sum {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sum li {
  display: grid;
  grid-template-columns: 1.6rem minmax(0, 1fr) auto;
  gap: 0 0.5rem;
  align-items: baseline;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line-2);
  font-size: 0.9rem;
}

.sum .n {
  font: 400 0.72rem var(--mono);
  color: var(--faint);
}

.sum small {
  grid-column: 2;
  font: 400 0.74rem var(--mono);
  color: var(--muted);
}

.sum .v {
  grid-column: 3;
  grid-row: 1 / span 2;
  align-self: center;
  font: 500 0.92rem var(--mono);
  font-variant-numeric: tabular-nums;
}

.sum li.is-off {
  color: var(--faint);
}

.sum li.is-off small {
  color: var(--faint);
}

.sum-tot {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.9rem 0 0.35rem;
  font-weight: 600;
}

.sum-tot .num {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 500;
}

.sum-tot b {
  font: 700 1.6rem var(--mono);
  letter-spacing: -0.03em;
  color: var(--ink);
}

.after {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 0 1.1rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.after .num {
  font-size: 0.78rem;
}

.after.is-short {
  color: var(--rec-ink);
}

.go {
  margin-top: auto;
}

.fine {
  margin-top: 0.7rem;
  text-align: center;
  font-size: 0.78rem;
  color: var(--muted);
}

@media (max-width: 820px) {
  .order-body {
    grid-template-columns: minmax(0, 1fr);
  }
  .summary {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 480px) {
  .order-link,
  .order-opts,
  .summary {
    padding-inline: 1rem;
  }
  .seg {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

/* Top up */

.topup {
  margin-top: 1rem;
  overflow: hidden;
}

.topup-h {
  padding: 1.4rem 1.5rem 0.25rem;
}

.topup-h h2,
.dialog-h h2 {
  font-size: 1.4rem;
  font-weight: 700;
}

.topup-h p,
.dialog-h p {
  margin-top: 0.35rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.packs {
  display: grid;
  gap: 0.5rem;
  padding: 1rem 1.5rem 0.5rem;
}

.pack {
  position: relative;
  display: grid;
  grid-template-columns: 1.1rem minmax(0, 1fr) auto auto;
  gap: 0.2rem 1rem;
  align-items: center;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  cursor: pointer;
  transition:
    border-color 150ms ease,
    transform 160ms var(--ease-out);
}

.pack:active {
  transform: scale(0.99);
}

.pack input {
  appearance: none;
  width: 1.1rem;
  height: 1.1rem;
  margin: 0;
  border: 1.5px solid var(--line-strong);
  border-radius: 50%;
  transition:
    border-color 150ms ease,
    border-width 150ms ease;
}

.pack input:checked {
  border: 5px solid var(--ink);
}

.pack input:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.pack:has(input:checked) {
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}

.pack-name b {
  display: block;
  font-weight: 600;
}

.pack-name span {
  font: 400 0.78rem var(--mono);
  color: var(--muted);
}

.pack-credits {
  font: 500 0.9rem var(--mono);
  color: var(--ink-2);
  text-align: right;
}

.pack-price {
  min-width: 3.5rem;
  font: 700 1.15rem var(--mono);
  letter-spacing: -0.02em;
  text-align: right;
}

@media (max-width: 480px) {
  .pack {
    grid-template-columns: 1.1rem minmax(0, 1fr) auto;
  }
  .pack-credits {
    display: none;
  }
}

.topup-f {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.5rem 1.4rem;
}

.topup-f small {
  font-size: 0.8rem;
  color: var(--muted);
}

.topup-form .form-msg {
  padding: 0 1.5rem;
}

.topup-form .form-msg:not(:empty) {
  margin: -0.5rem 0 1rem;
}

.packs .soon {
  padding: 0.5rem 0;
  color: var(--muted);
  font-size: 0.9rem;
}

dialog {
  width: min(30rem, calc(100vw - 2rem));
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--card);
  color: var(--ink);
  box-shadow: var(--shadow-lg);
  transition:
    opacity 200ms var(--ease-out),
    transform 200ms var(--ease-out),
    overlay 200ms allow-discrete,
    display 200ms allow-discrete;
}

dialog[open] {
  opacity: 1;
  transform: none;
}

@starting-style {
  dialog[open] {
    opacity: 0;
    transform: scale(0.97);
  }
}

dialog::backdrop {
  background: rgb(19 19 22 / 0.35);
}

.dialog-h {
  padding: 1.5rem 1.5rem 0;
}

dialog .topup-f {
  justify-content: flex-end;
}

/* API keys dialog */

.keys {
  display: grid;
  gap: 0.75rem;
  padding: 1.25rem 1.5rem 0;
}

.newkey {
  display: grid;
  gap: 0.5rem;
  padding: 1rem;
  border-radius: var(--r-sm);
  background: var(--sunken);
}

.newkey-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.newkey-h .field-label {
  margin: 0;
}

.newkey code {
  font: 500 0.85rem/1.5 var(--mono);
  word-break: break-all;
}

.newkey p {
  font-size: 0.8rem;
  color: var(--muted);
}

.keylist {
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
}

.keylist:empty {
  display: none;
}

.keylist li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.1rem 1rem;
  align-items: center;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--line-2);
}

.keylist li:last-child {
  border-bottom: 0;
}

.keylist .mono {
  font-size: 0.9rem;
}

.keylist small {
  font-size: 0.78rem;
  color: var(--muted);
}

.keylist .linkbtn {
  grid-row: 1 / span 2;
  grid-column: 2;
}

.keylist .soon {
  display: block;
  font-size: 0.9rem;
  color: var(--muted);
}

.keys .form-msg:not(:empty) {
  margin-top: 0;
}

/* Recent */

.recent {
  margin-top: 2.75rem;
}

.recent h2 {
  margin-bottom: 0.75rem;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.orders {
  margin: 0;
  padding: 0;
  list-style: none;
  overflow: hidden;
}

.orders:empty {
  display: none;
}

.orders a {
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr) auto 4.5rem;
  gap: 1rem;
  align-items: center;
  padding: 0.7rem 1.1rem;
  border-bottom: 1px solid var(--line-2);
  text-decoration: none;
  transition: background-color 150ms ease;
}

.orders li:last-child a {
  border-bottom: 0;
}

.orders a:focus-visible {
  outline-offset: -3px;
}

@media (hover: hover) and (pointer: fine) {
  .orders a:hover {
    background: #fbfbf9;
  }
}

.orders .thumb {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 8px;
  overflow: hidden;
  background: var(--sunken);
  display: grid;
  place-items: center;
}

.orders .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.orders .thumb svg {
  width: 1.1rem;
  height: 1.1rem;
  color: var(--faint);
}

.orders b {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
  font-size: 0.95rem;
}

.orders .m {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font: 400 0.75rem var(--mono);
  color: var(--muted);
}

.orders .cr {
  font: 500 0.85rem var(--mono);
  text-align: right;
}

@media (max-width: 560px) {
  .orders a {
    grid-template-columns: 2.75rem minmax(0, 1fr) auto;
    padding-inline: 0.85rem;
  }
  /* Product names run long; two lines beat an ellipsis after three words. */
  .orders b {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    white-space: normal;
    line-height: 1.3;
  }
  .orders .cr {
    display: none;
  }
}

.orders .soon {
  padding: 1rem 1.1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.recent .more {
  display: flex;
  margin: 0.75rem auto 0;
}

.empty-recent {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem 1.4rem;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r);
  color: var(--muted);
  font-size: 0.9rem;
}

.empty-recent b {
  display: block;
  color: var(--ink);
  font-weight: 600;
}

.empty-recent .first {
  margin-top: 0.6rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--line-2);
}

/* The top-up panel already shows the packs. */
.col:has(#topup:not([hidden])) .empty-recent .first {
  display: none;
}

.empty-recent .linkbtn {
  padding: 0;
  color: var(--ink);
  font-size: inherit;
  font-weight: 600;
}

@media (max-width: 480px) {
  .empty-recent {
    align-items: flex-start;
    padding: 1.1rem 1rem;
  }
  .ghosts i {
    height: 2rem;
  }
}

.ghosts {
  display: flex;
  align-items: flex-end;
  gap: 0.3rem;
  flex: none;
}

.ghosts i {
  height: 2.6rem;
  aspect-ratio: var(--ar);
  border: 1.5px solid var(--line-strong);
  border-radius: 4px;
  background: var(--card);
}

/* Job: header, ledger, meter */

.back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  color: var(--muted);
  text-decoration: none;
  border-radius: 6px;
}

.back svg {
  width: 0.9rem;
  height: 0.9rem;
  transform: scaleX(-1);
}

@media (hover: hover) and (pointer: fine) {
  .back:hover {
    color: var(--ink);
  }
}

.jhead {
  margin-bottom: 1.5rem;
}

.jhead-text {
  min-width: 0;
}

/* The summary and the actions share a row under the title, so a long product name gets the full width. */
.jhead-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-top: 0.9rem;
}

.jhead-row .summary-text {
  flex: 1 1 22rem;
}

.jhead .eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1rem;
  margin-bottom: 0.7rem;
  font: 400 0.78rem var(--mono);
  color: var(--muted);
}

.jtitle {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.jtitle > div {
  min-width: 0;
}

/* Store photos come on white or on their own backdrop; contain keeps the whole product in frame. */
.pimg {
  flex: none;
  width: 4.5rem;
  height: 4.5rem;
  padding: 0.3rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.pimg img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 9px;
}

.pmeta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.15rem 0.9rem;
  margin-top: 0.55rem;
  font-size: 0.85rem;
  color: var(--ink-2);
}

.pmeta .num {
  font-size: 0.8rem;
}

@media (max-width: 520px) {
  .jtitle {
    align-items: flex-start;
    gap: 0.8rem;
  }
  .pimg {
    width: 3.5rem;
    height: 3.5rem;
    margin-top: 0.15rem;
    border-radius: 11px;
  }
}

/* Focus lands on the title so screen readers announce the pack; it isn't a control, so no ring. */
.jhead h1:focus {
  outline: none;
}

.jhead h1 {
  font-size: clamp(2rem, 3.6vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
}

.jhead .src {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: top;
  font: 400 0.8rem var(--mono);
  color: var(--muted);
}

.jhead .summary-text {
  max-width: 44rem;
  color: var(--ink-2);
  font-size: 0.95rem;
}

.jhead-acts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-left: auto;
}

@media (max-width: 520px) {
  .jhead-acts {
    width: 100%;
  }
  .jhead-acts .btn {
    flex: 1;
  }
}

.ledger {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.75rem;
  padding: 0.9rem 1.4rem;
  border-bottom: 1px solid var(--line);
  background: #fbfbf9;
  font: 400 0.8rem var(--mono);
  color: var(--muted);
}

.ledger b {
  font-weight: 600;
  color: var(--ink);
}

.ledger .refund b {
  color: var(--rec-ink);
}

.ledger .grow {
  margin-left: auto;
}

@media (max-width: 520px) {
  .ledger {
    padding-inline: 1rem;
    gap: 0.35rem 1.1rem;
  }
  .ledger .grow {
    margin-left: 0;
  }
}

.jobcard {
  overflow: hidden;
}

.meter {
  padding: 1.25rem 1.4rem 1.3rem;
  border-bottom: 1px solid var(--line);
}

.meter-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.35rem 1rem;
  margin-bottom: 0.85rem;
}

.meter-top b {
  font-weight: 600;
}

.meter-top .num {
  font-size: 0.8rem;
  color: var(--muted);
}

.cells {
  display: grid;
  grid-template-columns: repeat(var(--n, 9), minmax(0, 1fr));
  gap: 4px;
}

.cell {
  height: 0.5rem;
  border-radius: 2px;
  background: var(--line-2);
  transition: background-color 300ms ease;
}

.cell[data-s='live'] {
  background: color-mix(in oklab, var(--rec) 60%, var(--card));
  animation: blink 1.6s ease-in-out infinite;
}

.cell[data-s='done'] {
  background: var(--ink);
}

.cell[data-s='failed'] {
  background: repeating-linear-gradient(-45deg, var(--rec) 0 3px, var(--rec-soft) 3px 6px);
}

.meter-note {
  margin-top: 0.85rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.items-wrap {
  overflow-x: auto;
}

.items {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.items th {
  padding: 0.7rem 0.75rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font: 500 0.7rem var(--mono);
  letter-spacing: 0.02em;
  color: var(--faint);
  text-transform: uppercase;
}

.items td {
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid var(--line-2);
  vertical-align: middle;
}

.items tr:last-child td {
  border-bottom: 0;
}

.items th:first-child,
.items td:first-child {
  padding-left: 1.4rem;
}

.items th:last-child,
.items td:last-child {
  padding-right: 1.4rem;
  text-align: right;
}

.items .n {
  width: 2.5rem;
  font: 400 0.78rem var(--mono);
  color: var(--faint);
}

.items .tn {
  width: 2.75rem;
}

.items .tn span {
  display: block;
  width: 2rem;
  height: 2rem;
  border-radius: 5px;
  overflow: hidden;
  background: var(--sunken);
}

.items .tn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.items .ang small {
  display: block;
  max-width: 34ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.8rem;
  color: var(--muted);
}

.items .ang .tbd {
  color: var(--faint);
}

.items .fmt,
.items .cr {
  font: 500 0.82rem var(--mono);
  white-space: nowrap;
}

.items .cr.is-refund {
  color: var(--rec-ink);
}

.items tr.is-refund td {
  background: var(--rec-wash);
}

@media (max-width: 600px) {
  .items .tn,
  .items .ang small {
    display: none;
  }
  .items td,
  .items th {
    padding-inline: 0.5rem;
  }
  .items th:first-child,
  .items td:first-child {
    padding-left: 1rem;
  }
  .items th:last-child,
  .items td:last-child {
    padding-right: 1rem;
  }
  .meter {
    padding-inline: 1rem;
  }
}

.jobnote {
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
  padding: 1rem 1.4rem;
  border-bottom: 1px solid var(--line);
  background: var(--rec-wash);
  font-size: 0.92rem;
}

.jobnote .rec {
  transform: translateY(-0.05rem);
}

/* Results: the ads are the hero */

.concept {
  padding: 1.75rem 1.4rem 2rem;
  border-bottom: 1px solid var(--line);
}

.concept:last-of-type {
  border-bottom: 0;
}

.c-tag {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.75rem;
  margin-bottom: 1rem;
}

.c-tag b {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.c-tag span {
  font: 400 0.75rem var(--mono);
  color: var(--faint);
}

.shots {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.shot {
  flex: var(--w) 1 0;
  min-width: 0;
  margin: 0;
}

.shot-art {
  position: relative;
  aspect-ratio: var(--ar);
  overflow: hidden;
  border-radius: 12px;
  background: var(--sunken);
}

.shot-art img,
.shot-art video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shot-art > a {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.shot-art > a:focus-visible {
  outline-offset: -3px;
}

.shot-art .dl {
  position: absolute;
  right: 0.6rem;
  bottom: 0.6rem;
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--card);
  color: var(--ink);
  box-shadow: var(--shadow);
  transition:
    transform 160ms var(--ease-out),
    opacity 150ms ease;
}

.shot-art .dl svg {
  width: 1.05rem;
  height: 1.05rem;
}

.shot-art .dl:active {
  transform: scale(0.94);
}

@media (hover: hover) and (pointer: fine) {
  .shot-art .dl {
    opacity: 0;
    transform: translateY(4px);
  }
  .shot:hover .dl,
  .shot-art .dl:focus-visible,
  .shot:focus-within .dl {
    opacity: 1;
    transform: none;
  }
}

.shot-art.is-failed {
  display: grid;
  place-items: center;
  padding: 0.6rem;
  container-type: inline-size;
  border: 1px dashed color-mix(in oklab, var(--rec) 45%, var(--line));
  background: repeating-linear-gradient(-45deg, var(--rec-wash) 0 8px, var(--card) 8px 16px);
  text-align: center;
  font: 500 0.75rem/1.5 var(--mono);
  color: var(--rec-ink);
}

.shot-art.is-failed b {
  display: block;
  margin-bottom: 0.15rem;
  font: 600 0.8rem/1.3 var(--sans);
}

/* Narrow 9:16 tiles on phones: smaller type keeps the two lines from breaking word by word. */
@container (max-width: 130px) {
  .shot-art.is-failed span {
    font-size: 0.66rem;
  }
  .shot-art.is-failed b {
    font-size: 0.7rem;
  }
}

.shot-art.is-pending {
  display: grid;
  place-items: center;
  font: 500 0.75rem var(--mono);
  color: var(--muted);
}

.shot-art.is-pending::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgb(255 255 255 / 0.55) 50%, transparent 70%) -100% 0 / 200% 100% no-repeat;
  animation: sheen 1.6s linear infinite;
}

@keyframes sheen {
  to {
    background-position: 100% 0;
  }
}

.shot figcaption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  padding-top: 0.5rem;
  font: 400 0.75rem var(--mono);
  color: var(--muted);
}

.shot figcaption a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
}

@media (hover: hover) and (pointer: fine) {
  .shot figcaption a:hover {
    text-decoration: underline;
  }
}


.copy3 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) auto;
  gap: 1.25rem 2.25rem;
  align-items: start;
  margin-top: 1.5rem;
}

.c-tag + .copy3 {
  margin-top: 0;
}

.copyrow-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 1.9rem;
  margin-bottom: 0.4rem;
  font-size: 0.75rem;
  color: var(--faint);
}

.copyrow .copy {
  border-color: transparent;
  background: var(--sunken);
  box-shadow: none;
}

.copyrow .copy[data-copied] {
  border-color: var(--ink);
  background: var(--card);
}

.copyrow .hl {
  font-family: var(--display);
  font-size: clamp(1.4rem, 2.2vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  text-wrap: balance;
}

.copyrow .pt {
  font-size: 0.95rem;
  color: var(--ink-2);
  line-height: 1.6;
}

.cta-chip {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  padding: 0 1rem;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
}

@media (max-width: 860px) {
  .copy3 {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
  }
  .copyrow + .copyrow {
    padding-top: 1rem;
    border-top: 1px solid var(--line-2);
  }
}

@media (max-width: 600px) {
  .concept {
    padding: 1.4rem 1rem 1.6rem;
  }
  .shots {
    flex-wrap: wrap;
    gap: 0.6rem;
  }
  /* On phones the square gets its own row; the tall sizes share one at equal height. */
  .shot {
    flex: 1 1 100%;
  }
  .shot[data-f='4:5'],
  .shot[data-f='9:16'] {
    flex: var(--w) 1 0;
  }
}

@media (hover: none), (pointer: coarse), (max-width: 600px) {
  .shot figcaption a {
    display: none;
  }
}

.lines {
  border-top: 1px solid var(--line);
}

.lines summary {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.lines summary::-webkit-details-marker {
  display: none;
}

.lines summary svg {
  width: 0.85rem;
  height: 0.85rem;
  color: var(--muted);
  transition: transform 200ms var(--ease-out);
}

.lines[open] summary svg {
  transform: rotate(90deg);
}

.lines summary span {
  font: 400 0.78rem var(--mono);
  color: var(--muted);
  font-weight: 400;
}

.lines summary:focus-visible {
  outline-offset: -3px;
}

.lines .items {
  border-top: 1px solid var(--line);
}

.loading,
.lost {
  padding: 3rem 1.5rem;
  text-align: center;
  color: var(--muted);
}

.lost b {
  display: block;
  margin-bottom: 0.25rem;
  font-family: var(--display);
  font-size: 1.4rem;
  color: var(--ink);
}

.lost .btn {
  margin-top: 1.25rem;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition-property: opacity, color, background-color, border-color !important;
  }
}
