/* CotrievalAI portal. Tokens shared with the site: one neutral grey family, black buttons, one accent (green) only for
   live and done states. Shape scale: controls 8 px, cards and options 12 px, image stages 16 px, chips and pills round.
   Type: the system grotesk; the system mono for machine data (IDs, keys, addresses). */
:root {
  color-scheme: light dark;
  --bg: #FFFFFF; --bg-2: #F6F6F5; --fill: #EEEEEC; --fill-2: #E2E2E0;
  --line: #E7E7E5; --line-strong: #CBCBC8;
  --ink: #111111; --ink-2: #474745; --muted: #6E6E6B; --on-ink: #FFFFFF;
  --accent: #0E8A4A; --danger: #B42318; --shadow: 0 1px 2px rgba(0,0,0,.05), 0 8px 24px rgba(0,0,0,.06);
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --r-control: 8px; --r-card: 12px; --r-stage: 16px;
  --head: 104px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000; --bg-2: #0E0E0E; --fill: #1A1A1A; --fill-2: #262626;
    --line: #222222; --line-strong: #383838;
    --ink: #F2F2F0; --ink-2: #C2C2BF; --muted: #8F8F8B; --on-ink: #000000;
    --accent: #3DD68C; --danger: #FF8A80; --shadow: 0 0 0 1px #222222;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--bg); }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--ink); font: 400 15px/1.45 var(--sans); -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums; }
img, svg { display: block; }
p, h1, h2, h3, ol, ul, dl, dd { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.vh { position: absolute !important; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -48px; z-index: 50; background: var(--ink); color: var(--on-ink); padding: 10px 14px; border-radius: var(--r-control); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
.mono { font-family: var(--mono); }
[hidden] { display: none !important; }

/* Header: brand and account on the first row, the product's places on the second (Laravel Cloud, Clerk) */
.head { position: sticky; top: 0; z-index: 30; background: var(--bg); border-bottom: 1px solid var(--line); }
.head-row { display: flex; align-items: center; gap: 16px; height: 56px; padding: 0 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 16px; letter-spacing: -.02em; }
.brand img { width: 28px; height: 28px; }
.head-end { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.head-link { display: inline-flex; align-items: center; height: 32px; padding: 0 10px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--ink-2); text-decoration: none; }
.head-link:hover { color: var(--ink); background: var(--fill); }
.avatar { width: 32px; height: 32px; margin-left: 6px; border-radius: 50%; border: 0; background: var(--ink); color: var(--on-ink); font-weight: 600; font-size: 13px; cursor: pointer; display: grid; place-items: center; }
.tabs { display: flex; gap: 4px; height: 48px; padding: 0 16px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { position: relative; display: inline-flex; align-items: center; padding: 0 10px; text-decoration: none; font-size: 14px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.tabs a[aria-current="page"]::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: 0; height: 2px; background: var(--ink); border-radius: 2px; }

/* Account menu: anchored to the avatar, keyboard navigable */
.menu { position: absolute; right: 16px; top: 52px; z-index: 40; min-width: 240px; padding: 6px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: 0 12px 40px rgba(0,0,0,.14); }
.menu-who { padding: 10px 10px 8px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.menu-who strong { display: block; font-weight: 600; font-size: 14px; }
.menu-who span { font-size: 13px; color: var(--muted); word-break: break-all; }
.menu a, .menu button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 8px 10px; border: 0; border-radius: 6px; background: none; text-decoration: none; font-size: 14px; text-align: left; cursor: pointer; }
.menu a:hover, .menu button:hover, .menu a:focus-visible, .menu button:focus-visible { background: var(--fill); outline: none; }
.menu hr { border: 0; border-top: 1px solid var(--line); margin: 6px 0; }

main { flex: 1; }
.page { padding: 32px 24px 64px; }
.col { max-width: 640px; margin: 0 auto; }
.col-wide { max-width: 1040px; margin: 0 auto; }
.h-xl { font-size: 30px; line-height: 1.1; font-weight: 600; letter-spacing: -.03em; }
.h { font-size: 20px; line-height: 1.2; font-weight: 600; letter-spacing: -.02em; }
.h-s { font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.sub { color: var(--muted); font-size: 15px; margin-top: 6px; text-wrap: pretty; }
.label { font: 500 12px/1.3 var(--mono); letter-spacing: .02em; color: var(--muted); }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: var(--r-control); border: 0; font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer; white-space: nowrap; transition: opacity .15s ease, background-color .15s ease; }
.btn:disabled { opacity: .45; cursor: default; }
.btn-primary { background: var(--ink); color: var(--on-ink); }
.btn-primary:hover:not(:disabled) { opacity: .86; }
.btn-quiet { background: var(--fill); color: var(--ink); }
.btn-quiet:hover:not(:disabled) { background: var(--fill-2); }
.btn-line { background: var(--bg); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn-line:hover:not(:disabled) { background: var(--bg-2); }
.btn-danger { background: var(--fill); color: var(--danger); }
.btn-block { width: 100%; }
.btn-sm { min-height: 34px; padding: 0 14px; font-size: 14px; }
.btn-icon { min-height: 32px; width: 32px; padding: 0; border-radius: 999px; background: var(--fill); }
.btn-icon svg { width: 15px; height: 15px; }
.back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 18px; padding: 6px 12px 6px 8px; border: 0; border-radius: 999px; background: var(--fill); font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: none; }
.back svg { width: 14px; height: 14px; }
.chip { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 999px; background: var(--fill); font-size: 12px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.chip svg { width: 12px; height: 12px; }
.chip.live { background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); }
.chip.live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip.muted { color: var(--muted); }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-card); padding: 20px; }
.note { padding: 12px 14px; border-radius: var(--r-control); background: var(--bg-2); font-size: 14px; color: var(--ink-2); }

/* Sign-in (Heidi, Descript): one centred card */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 48px 16px; background: var(--bg-2); }
.auth-card { width: min(420px, 100%); padding: 32px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-stage); box-shadow: var(--shadow); }
.auth-card .logo { width: 44px; height: 44px; margin-bottom: 20px; }
.auth-card .h { margin-bottom: 6px; }
.auth-form { display: grid; gap: 12px; margin-top: 24px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.input { width: 100%; height: 44px; padding: 0 12px; border-radius: var(--r-control); border: 1px solid var(--line-strong); background: var(--bg); font-size: 16px; }
.input:focus { outline: 2px solid var(--ink); outline-offset: -1px; border-color: transparent; }
.input.code { font-family: var(--mono); font-size: 24px; letter-spacing: .4em; text-align: center; height: 56px; }
.err { color: var(--danger); font-size: 14px; }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; }
.or::before, .or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.google svg { width: 18px; height: 18px; }
.fine { font-size: 12.5px; color: var(--muted); margin-top: 18px; text-align: center; }
.linkish { border: 0; background: none; padding: 0; font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.turnstile { min-height: 65px; }

/* Overview */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 8px 0 32px; }
.stat { padding: 18px 0; }
.stat + .stat { padding-left: 20px; border-left: 1px solid var(--line); }
.stat .n { font-size: 26px; font-weight: 600; letter-spacing: -.02em; margin-top: 4px; }
.section { margin-top: 36px; }
.section > .h-s { margin-bottom: 12px; }
.live-card { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 16px; align-items: center; }
.live-card .thumb { width: 120px; }

/* Products and the picker */
.runs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.run { display: flex; flex-direction: column; text-decoration: none; border-radius: var(--r-stage); border: 1px solid var(--line); overflow: hidden; background: var(--bg); transition: border-color .15s ease; }
.run:hover { border-color: var(--line-strong); }
.run-media { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.run-media img { width: 100%; height: 100%; object-fit: cover; }
.run-media .readout { position: absolute; right: 12px; bottom: 12px; }
@media (prefers-reduced-motion: no-preference) { .run-media img { transition: transform .5s cubic-bezier(.2,.8,.2,1); } .run:hover .run-media img { transform: scale(1.03); } }
.run-body { display: grid; gap: 6px; padding: 18px 20px 20px; }
.run-name { display: flex; align-items: center; gap: 8px; font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
.run-sub { color: var(--ink-2); font-size: 14.5px; }
.run-meta { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 14px; }
.run-meta span:first-child { color: var(--muted); }
.run-meta strong { font-weight: 600; }
.readout { display: grid; gap: 2px; padding: 8px 10px; border-radius: 8px; background: rgba(0,0,0,.72); color: #E8E8E6; font: 500 11px/1.35 var(--mono); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.readout b { color: #fff; font-weight: 600; }
.readout .ok { color: #3DD68C; }

.opts { display: grid; gap: 4px; margin-top: 20px; }
.opt { display: grid; grid-template-columns: 104px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 10px 14px 10px 10px; border-radius: var(--r-card); border: 2px solid transparent; cursor: pointer; }
.opt:hover { background: var(--bg-2); }
.opt[aria-checked="true"] { border-color: var(--ink); background: var(--bg); }
.thumb { width: 104px; aspect-ratio: 3 / 2; border-radius: 8px; overflow: hidden; background: #000; flex: none; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.opt-name { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.opt-l2 { font-size: 14px; margin-top: 2px; }
.opt-l3 { font-size: 13px; color: var(--muted); margin-top: 2px; }
.opt-price { text-align: right; }
.opt-price .p { font-size: 17px; font-weight: 600; }
.opt-price .u { font-size: 13px; color: var(--muted); }
.choosebar { position: sticky; bottom: 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 16px; padding: 12px 12px 12px 16px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow); }
.hours { display: flex; align-items: center; gap: 12px; }
.stepper { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 999px; background: var(--fill); }
.stepper button { width: 32px; height: 32px; border: 0; border-radius: 999px; background: transparent; cursor: pointer; display: grid; place-items: center; }
.stepper button:hover:not(:disabled) { background: var(--bg); }
.stepper button:disabled { opacity: .35; cursor: default; }
.stepper svg { width: 14px; height: 14px; }
.stepper output { min-width: 64px; text-align: center; font-weight: 600; font-size: 15px; }
.hours .cap { font-size: 13px; color: var(--muted); }
.hours .cap strong { display: block; color: var(--ink); font-size: 14px; font-weight: 600; }

/* A booking: status on the left, the machine on the right (it takes the place of Uber's map) */
.trip { display: grid; grid-template-columns: 420px minmax(0, 1fr); gap: 24px; max-width: 1200px; margin: 0 auto; align-items: start; }
.cards { display: grid; gap: 16px; }
.machine-stage { position: sticky; top: calc(var(--head) + 24px); border-radius: var(--r-stage); overflow: hidden; background: #000; aspect-ratio: 3 / 2.15; }
.machine-stage picture, .machine-stage img { width: 100%; height: 100%; }
.machine-stage img { object-fit: cover; }
.eta { position: absolute; left: 20px; top: 20px; display: grid; place-items: center; min-width: 64px; padding: 9px 10px 8px; background: #fff; color: #000; border-radius: 6px; line-height: 1; text-align: center; }
.eta b { font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.eta small { font: 700 10px/1 var(--sans); letter-spacing: .08em; margin-top: 4px; }
.eta.live { background: var(--accent); color: #000; padding: 10px 12px; }
.eta.live b { font-size: 16px; }
.machine-stage .readout { position: absolute; right: 20px; top: 20px; max-width: 60%; }
.stage-cap { position: absolute; left: 20px; right: 20px; bottom: 18px; display: flex; justify-content: space-between; gap: 12px; color: #fff; font-size: 13px; }
.stage-cap span:last-child { color: rgba(255,255,255,.62); font-family: var(--mono); font-size: 12px; }
.progress { height: 3px; background: var(--fill); border-radius: 3px; overflow: hidden; margin: 16px 0 4px; }
.progress i { display: block; height: 100%; background: var(--ink); transition: width .6s ease; }
.steps { display: grid; gap: 2px; margin-top: 12px; }
.step { display: grid; grid-template-columns: 20px 1fr auto; gap: 12px; align-items: center; padding: 8px 0; font-size: 14px; color: var(--muted); }
.step .t { font-family: var(--mono); font-size: 12px; }
.step.done { color: var(--ink); }
.step.now { color: var(--ink); font-weight: 600; }
.step svg { width: 18px; height: 18px; }
.step.done svg { color: var(--accent); }
@media (prefers-reduced-motion: no-preference) { .step.now svg { animation: spin 1s linear infinite; } }
@keyframes spin { to { transform: rotate(360deg); } }
.mrow { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.mname { font-weight: 600; font-size: 16px; }
.msub { font-size: 13px; color: var(--muted); margin-top: 2px; }
.plate { font-family: var(--mono); font-size: 13px; font-weight: 600; padding: 6px 8px; border-radius: 6px; background: var(--fill); letter-spacing: .04em; }
.rows { display: grid; margin-top: 8px; }
.rows div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 14px; }
.rows dt { color: var(--ink-2); }
.rows dd { font-weight: 600; text-align: right; }
.rows .total dd { font-size: 17px; }
.access { display: grid; gap: 8px; margin-top: 16px; }
.kv { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 12px; background: var(--fill); border-radius: var(--r-control); }
.kv .v { font-family: var(--mono); font-size: 13px; word-break: break-all; margin-top: 2px; }
.kv-actions { display: flex; gap: 6px; }
.code { margin: 0; padding: 12px; background: var(--fill); border-radius: var(--r-control); font: 12.5px/1.55 var(--mono); white-space: pre-wrap; word-break: break-all; }
.seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--fill); margin-top: 8px; }
.seg button { border: 0; background: none; padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--bg); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.checks { margin-top: 14px; padding: 12px; border-radius: var(--r-control); background: #0B0B0B; color: #E6E6E4; font: 12px/1.6 var(--mono); white-space: pre-wrap; word-break: break-word; }
.checks .k { color: #8F8F8B; }
.checks .ok { color: #3DD68C; }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.check-ic { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--fill); margin-bottom: 14px; }
.check-ic svg { width: 20px; height: 20px; color: var(--accent); }

/* Tables (fal, Grok billing): hairlines, no boxes inside boxes */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-card); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font: 500 12px/1.3 var(--mono); color: var(--muted); padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--bg-2); white-space: nowrap; }
td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; }
tbody tr.link { cursor: pointer; }
tbody tr.link:hover td { background: var(--bg-2); }
.empty { padding: 40px 20px; text-align: center; }
.empty .h-s { margin-bottom: 6px; }
.empty .btn { margin-top: 16px; }

/* Settings (grouped rows: title and one grey line left, control right) */
.group { border: 1px solid var(--line); border-radius: var(--r-card); }
.group + .group { margin-top: 20px; }
.group-title { padding: 14px 20px 0; }
.srow { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 20px; }
.srow + .srow { border-top: 1px solid var(--line); }
.srow .t { font-weight: 600; font-size: 14.5px; }
.srow .d { font-size: 13.5px; color: var(--muted); margin-top: 2px; }
.srow .input { width: 260px; }
.danger .t { color: var(--danger); }

/* Dialogs */
dialog { width: min(480px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 0; border-radius: var(--r-card); background: var(--bg); color: var(--ink); box-shadow: 0 12px 48px rgba(0,0,0,.24); }
dialog::backdrop { background: rgba(0,0,0,.45); }
.dlg-media { position: relative; aspect-ratio: 2 / 1; background: #000; }
.dlg-media img { width: 100%; height: 100%; object-fit: cover; }
.dlg-close { position: absolute; right: 12px; top: 12px; background: rgba(255,255,255,.92); color: #000; }
.dlg-body { padding: 20px; display: grid; gap: 14px; }
.mind h3 { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.mind li { display: grid; grid-template-columns: 20px 1fr; gap: 12px; padding: 7px 0; font-size: 13.5px; color: var(--ink-2); }
.mind li svg { width: 16px; height: 16px; color: var(--ink); margin-top: 2px; }
.dlg-foot { position: sticky; bottom: 0; padding: 16px 20px 20px; background: var(--bg); border-top: 1px solid var(--line); display: grid; gap: 8px; }

.foot { border-top: 1px solid var(--line); padding: 18px 24px; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--muted); }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); }
.foot span { margin-left: auto; }

.toast { position: fixed; left: 50%; bottom: 24px; z-index: 60; transform: translate(-50%, 16px); opacity: 0; pointer-events: none; padding: 12px 16px; border-radius: var(--r-control); background: var(--ink); color: var(--on-ink); font-size: 14px; font-weight: 500; transition: opacity .2s ease, transform .2s ease; max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.skeleton { height: 120px; border-radius: var(--r-card); background: linear-gradient(90deg, var(--bg-2), var(--fill), var(--bg-2)); background-size: 200% 100%; }
@media (prefers-reduced-motion: no-preference) { .skeleton { animation: shimmer 1.4s linear infinite; } }
@keyframes shimmer { to { background-position: -200% 0; } }

@media (max-width: 960px) {
  .trip { grid-template-columns: 1fr; max-width: 640px; }
  .machine-stage { position: relative; top: 0; order: -1; aspect-ratio: 3 / 1.9; }
}
@media (max-width: 720px) {
  :root { --head: 100px; }
  body { font-size: 16px; }
  .head-row { padding: 0 16px; height: 52px; }
  .head-link.hide-s { display: none; }
  .tabs { padding: 0 8px; }
  .page { padding: 24px 16px 40px; }
  .h-xl { font-size: 26px; }
  .runs, .grid-2 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .stat + .stat { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .opt { grid-template-columns: 84px minmax(0, 1fr) auto; gap: 12px; padding: 8px 10px 8px 8px; }
  .thumb { width: 84px; }
  .opt[aria-checked="false"] .opt-l3 { display: none; }
  .choosebar { flex-direction: column; align-items: stretch; bottom: 0; margin: 16px -16px -40px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-radius: 0; border-left: 0; border-right: 0; border-bottom: 0; }
  .hours { justify-content: space-between; }
  .card { padding: 16px; }
  .eta { left: 14px; top: 14px; }
  .machine-stage .readout { right: 14px; top: 14px; }
  .stage-cap { left: 14px; right: 14px; bottom: 12px; }
  .live-card { grid-template-columns: 84px minmax(0, 1fr); }
  .live-card .thumb { width: 84px; }
  .live-card .btn { grid-column: 1 / -1; }
  .srow { flex-direction: column; align-items: stretch; }
  .srow .input { width: 100%; }
  .auth-card { padding: 24px; }
  .page-head { flex-direction: column; align-items: stretch; }
}

/* Live booking: add hours, the ending-soon notice, the ComfyUI guide and the GLM chat */
.actions-col { display: grid; gap: 8px; margin-top: 16px; }
.actions-col .btn svg { width: 16px; height: 16px; }
.note.warn { background: color-mix(in srgb, #F5A524 16%, var(--bg)); color: var(--ink); }
kbd { font: 600 12px/1 var(--mono); padding: 2px 6px; border-radius: 5px; background: var(--fill); border: 1px solid var(--line); }
.wf { display: grid; gap: 2px; margin-top: 12px; counter-reset: wf; }
.wf li { display: flex; align-items: baseline; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 500; }
.wf li:last-child { border-bottom: 0; }
.wf li span { flex: none; width: 20px; height: 20px; display: inline-grid; place-items: center; border-radius: 50%; background: var(--fill); font: 600 11px/1 var(--mono); }
.wf li em { font-style: normal; font-weight: 400; color: var(--muted); font-size: 13px; margin-left: auto; }
.chat-log { display: grid; gap: 10px; align-content: start; max-height: 420px; min-height: 120px; overflow-y: auto; margin-top: 12px; padding: 12px; border-radius: var(--r-control); background: var(--bg-2); }
.msg { max-width: 92%; padding: 9px 12px; border-radius: 12px; font-size: 14px; line-height: 1.5; white-space: pre-wrap; word-break: break-word; }
.msg.user { justify-self: end; background: var(--ink); color: var(--on-ink); }
.msg.assistant { justify-self: start; background: var(--bg); border: 1px solid var(--line); }
.msg .err { margin-top: 6px; }
.think { margin-bottom: 6px; color: var(--muted); font-size: 12.5px; }
.think summary { cursor: pointer; font-weight: 600; }
.think p { margin-top: 4px; max-height: 160px; overflow-y: auto; }
.chat-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; margin-top: 10px; align-items: end; }
.chat-form textarea { resize: vertical; min-height: 44px; height: auto; padding: 10px 12px; line-height: 1.4; }
