/* stabme.ink — walk-in board. Black and white with a purpose: color only where it carries live state.
   One system for every page (public board, client status, artist app, owner admin, embed). */
@import url('https://fonts.googleapis.com/css2?family=Inter+Tight:wght@600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg: #FFFFFF; --sur: #FFFFFF; --sur2: #F6F6F6; --sur3: #EEEEEE; --line: #E2E2E2; --line2: #C9C9C9;
  --ink: #000000; --ink2: #3D3D3D; --muted: #6B6B6B; --dim: #A6A6A6;
  --btn: #000000; --btn-ink: #FFFFFF; --btn-hover: #2A2A2A; --btn2: #EEEEEE; --btn2-ink: #000000; --btn2-hover: #E2E2E2;
  --free: #047A40; --free-bg: #E6F5EC; --busy: #B26B00; --busy-bg: #FFF4D6; --in: #276EF1; --in-bg: #EAF1FE; --off: #A6A6A6; --danger: #E11900; --danger-bg: #FDECEA;
  --display: 'Inter Tight', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --r: 8px; --r2: 12px; --r3: 16px; --maxw: 1120px; --gutter: 20px;
  --shadow: 0 10px 40px rgba(0, 0, 0, .16);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000; --sur: #000000; --sur2: #141414; --sur3: #1F1F1F; --line: #292929; --line2: #3D3D3D;
    --ink: #FFFFFF; --ink2: #D6D6D6; --muted: #A6A6A6; --dim: #6B6B6B;
    --btn: #FFFFFF; --btn-ink: #000000; --btn-hover: #E2E2E2; --btn2: #292929; --btn2-ink: #FFFFFF; --btn2-hover: #3D3D3D;
    --free: #3DDC97; --free-bg: #0B2A1C; --busy: #FFC043; --busy-bg: #2E2410; --in: #7FAEFF; --in-bg: #0F1F3D; --off: #6B6B6B; --danger: #FF6B5B; --danger-bg: #3A1410;
    --shadow: 0 10px 40px rgba(0, 0, 0, .6);
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
body.sheet-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.1; letter-spacing: -.02em; margin: 0 0 .35em; }
h1 { font-size: clamp(2rem, 6vw, 3.25rem); letter-spacing: -.03em; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); }
h3 { font-size: 1.125rem; font-weight: 600; letter-spacing: -.01em; }
p { margin: 0 0 .8em; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 32px 0; }
.kicker { color: var(--muted); font: 600 .78rem/1.2 var(--sans); letter-spacing: .06em; text-transform: uppercase; margin: 0 0 10px; }
.lede { color: var(--ink2); font-size: 1.125rem; line-height: 1.45; max-width: 58ch; margin: 0 0 18px; }
.muted { color: var(--muted); } .small { font-size: .875rem; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.narrow { max-width: 640px; }
.wrap--shop { max-width: 820px; }

/* header */
.top { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 16px; min-height: 60px; }
.brand { font-family: var(--display); font-weight: 800; font-size: 1.35rem; letter-spacing: -.03em; color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand i { width: 10px; height: 10px; border-radius: 50%; background: var(--ink); }
.top nav { margin-left: auto; display: flex; gap: 2px; }
.top nav a { color: var(--ink); text-decoration: none; padding: 8px 12px; border-radius: 999px; font-weight: 600; font-size: .9rem; }
.top nav a:hover { background: var(--sur3); }
.top nav a[aria-current="page"] { background: var(--btn); color: var(--btn-ink); }
@media (max-width: 760px) {
  .top .wrap { flex-wrap: wrap; row-gap: 0; padding-bottom: 8px; }
  .top nav { margin-left: 0; width: 100%; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; gap: 6px; }
  .top nav::-webkit-scrollbar { display: none; }
  .top nav a { white-space: nowrap; font-size: .85rem; padding: 7px 12px; background: var(--sur2); }
}

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--btn); color: var(--btn-ink); border: 0; padding: 0 20px; min-height: 48px; border-radius: var(--r); font: 600 1rem var(--sans); letter-spacing: 0; cursor: pointer; text-decoration: none; transition: background .15s, transform .08s; -webkit-tap-highlight-color: transparent; }
.btn:hover { background: var(--btn-hover); color: var(--btn-ink); text-decoration: none; }
.btn:active { transform: scale(.985); }
.btn--ghost { background: var(--btn2); color: var(--btn2-ink); }
.btn--ghost:hover { background: var(--btn2-hover); color: var(--btn2-ink); }
.btn--good { background: var(--btn); color: var(--btn-ink); }
.btn--sm { min-height: 40px; padding: 0 14px; font-size: .9rem; }
.btn--lg { min-height: 56px; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .4; pointer-events: none; }
.btn--link { background: none; border: 0; color: var(--ink); font: 600 .9rem var(--sans); cursor: pointer; padding: 6px 2px; text-decoration: underline; text-underline-offset: 3px; }

/* hero: one headline, one thing to do */
.hero { padding: 40px 0 8px; }
.hero h1 span { color: var(--ink); display: inline; }
.hero .lede { margin-bottom: 20px; }
.hero--home { padding: 56px 0 24px; }
.hero--home h1 { font-size: clamp(2.4rem, 7vw, 4.25rem); max-width: 14ch; }
.go { display: grid; gap: 10px; max-width: 520px; }
.go .input, .go input { min-height: 56px; font-size: 1.05rem; }
.go .btn { min-height: 56px; }
.open { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 10px; border-radius: 999px; background: var(--sur2); font-weight: 600; font-size: .9rem; color: var(--ink); }
.open i { width: 8px; height: 8px; border-radius: 50%; background: var(--off); flex: none; }
.open--yes { background: var(--free-bg); color: var(--free); }
.open--yes i { background: var(--free); animation: pulse 2.2s ease-out infinite; }
.open small { color: inherit; opacity: .8; font: 500 .85rem var(--sans); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--free) 45%, transparent); } 100% { box-shadow: 0 0 0 10px transparent; } }

/* the board: a list you choose from (ride-sheet rows) */
.opts { display: grid; gap: 8px; }
.opt { position: relative; display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center; padding: 12px 14px; min-height: 84px; border: 2px solid transparent; border-radius: var(--r2); background: var(--sur2); color: var(--ink); text-decoration: none; text-align: left; font: inherit; width: 100%; cursor: pointer; transition: background .12s, border-color .12s; -webkit-tap-highlight-color: transparent; }
.opt:hover { background: var(--sur3); text-decoration: none; }
.opt[aria-current="true"] { border-color: var(--ink); background: var(--sur); }
.opt--static, .opt--off { cursor: default; }
.opt--static:hover, .opt--off:hover { background: var(--sur2); }
.opt--off { opacity: .55; }
.opt__avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--sur3); overflow: hidden; display: grid; place-items: center; font: 700 1.3rem var(--display); color: var(--muted); flex: none; }
.opt__avatar img { width: 100%; height: 100%; object-fit: cover; }
.opt--off .opt__avatar img { filter: grayscale(1); }
.opt__avatar--shop { border-radius: var(--r); background: var(--btn); color: var(--btn-ink); font-size: 1.1rem; }
.opt__main { min-width: 0; display: grid; gap: 2px; }
.opt__name { font-weight: 600; font-size: 1.05rem; line-height: 1.2; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.opt__sub { color: var(--muted); font-size: .875rem; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.opt__state { display: flex; align-items: flex-start; gap: 6px; font-size: .875rem; line-height: 1.3; font-weight: 500; color: var(--ink2); margin-top: 2px; }
.opt__state i { width: 8px; height: 8px; border-radius: 50%; background: var(--off); flex: none; margin-top: 5px; }
.opt--free .opt__state { color: var(--free); font-weight: 600; }
.opt--free .opt__state i { background: var(--free); animation: pulse 2.2s ease-out infinite; }
.opt--in .opt__state i { background: var(--in); }
.opt--busy .opt__state i { background: var(--busy); }
.opt__side { text-align: right; display: grid; gap: 2px; justify-items: end; }
.opt__side b { font-size: 1.05rem; font-weight: 600; white-space: nowrap; }
.opt__side small { color: var(--muted); font-size: .8rem; white-space: nowrap; }
.opt__side a { font-size: .85rem; font-weight: 600; }
.opt__note { grid-column: 2 / -1; margin: 0; color: var(--ink2); font-size: .875rem; }
.opt--wrap .opt__sub { white-space: normal; }
.opt__note::before { content: "\201C"; } .opt__note::after { content: "\201D"; }
.ok { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; border-radius: 50%; background: var(--btn); color: var(--btn-ink); font-size: 10px; font-weight: 700; line-height: 1; vertical-align: middle; }
@media (max-width: 400px) { .opt { grid-template-columns: 48px 1fr auto; gap: 10px; padding: 10px 12px; } .opt__avatar { width: 48px; height: 48px; } }

/* city board rows */
.shops { display: grid; gap: 8px; }
.shop { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: center; padding: 14px 16px; min-height: 76px; border: 2px solid transparent; border-radius: var(--r2); background: var(--sur2); color: var(--ink); text-decoration: none; transition: background .12s; }
.shop:hover { background: var(--sur3); text-decoration: none; }
.shop--closed, .shop--unclaimed { opacity: .6; }
.shop h3 { margin: 0; font-size: 1.05rem; font-weight: 600; }
.shop .where { color: var(--muted); font-size: .875rem; margin: 0; }
.shop .count { font-family: var(--display); font-weight: 700; font-size: 1.35rem; line-height: 1; text-align: right; letter-spacing: -.02em; }
.shop .count small { display: block; color: var(--muted); font: 500 .78rem var(--sans); letter-spacing: 0; margin-top: 3px; }
.shop--live .count { color: var(--free); }
.shop--unclaimed .count { color: var(--muted); font-size: .85rem; font-family: var(--sans); font-weight: 600; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.filters button, .chips button { padding: 0 14px; min-height: 36px; border-radius: 999px; border: 0; background: var(--btn2); color: var(--btn2-ink); font: 600 .85rem var(--sans); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.filters button:hover, .chips button:hover { background: var(--btn2-hover); }
.filters button[aria-pressed="true"], .chips button[aria-pressed="true"] { background: var(--btn); color: var(--btn-ink); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* panels, forms */
.panel { border: 1px solid var(--line); border-radius: var(--r3); background: var(--sur); padding: 20px; }
.panel h2 { margin: 0 0 6px; font-size: 1.4rem; }
.form { display: grid; gap: 14px; margin-top: 12px; }
.form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 560px) { .form__grid { grid-template-columns: 1fr; } }
.form label, .field { display: grid; gap: 6px; color: var(--ink); font-size: .875rem; font-weight: 600; letter-spacing: 0; }
.form input, .form select, .form textarea, .input { width: 100%; min-height: 52px; padding: 12px 14px; border: 2px solid transparent; border-radius: var(--r); background: var(--sur2); color: var(--ink); font: 500 1rem/1.35 var(--sans); }
.form input::placeholder, .form textarea::placeholder, .input::placeholder { color: var(--muted); font-weight: 400; }
.form textarea { min-height: 112px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus, .input:focus { outline: 0; border-color: var(--ink); background: var(--sur); }
.form input[type="file"] { padding: 12px; font-size: .9rem; }
.form select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 36px; }
.consent, .form .consent { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; padding: 12px 14px; border-radius: var(--r); background: var(--sur2); color: var(--ink2); font: 400 .85rem/1.5 var(--sans); }
.consent input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--ink); }
.toggle, .form .toggle { display: flex; flex-direction: row; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--r); background: var(--sur2); color: var(--ink); font: 600 .95rem var(--sans); }
.toggle input { width: 20px; height: 20px; accent-color: var(--ink); }
.form .btn { justify-self: start; }
.form .btn--block { justify-self: stretch; }
.error { color: var(--danger); font-weight: 600; font-size: .9rem; margin: 0; }
.help { color: var(--muted); font-size: .9rem; margin: 0; line-height: 1.45; }
.banner { padding: 12px 14px; border-radius: var(--r); background: var(--busy-bg); color: var(--ink); font-size: .92rem; }
.banner--ok { background: var(--free-bg); }
.target { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r2); background: var(--sur2); }
.target img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: var(--sur3); }
.target b { display: block; font-weight: 600; } .target small { color: var(--muted); }
.target button { margin-left: auto; }

/* the sheet: slides up on a phone, centers on a desktop */
.sheet { position: fixed; inset: 0; z-index: 80; display: flex; align-items: flex-end; justify-content: center; }
.sheet__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .5); animation: fade .18s ease-out; }
.sheet__panel { position: relative; width: 100%; max-height: 94dvh; overflow: auto; overscroll-behavior: contain; background: var(--sur); border-radius: var(--r3) var(--r3) 0 0; padding: 6px 20px 0; animation: up .24s cubic-bezier(.2, .8, .2, 1); box-shadow: var(--shadow); }
.sheet__grip { width: 40px; height: 4px; border-radius: 2px; background: var(--line2); margin: 6px auto 12px; }
.sheet__head { display: flex; align-items: flex-start; gap: 10px; }
.sheet__head > div { flex: 1; min-width: 0; }
.sheet__head h2 { margin: 0; font-size: 1.35rem; }
.sheet__close { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--btn2); color: var(--btn2-ink); font-size: 1.1rem; cursor: pointer; display: grid; place-items: center; }
.sheet__foot { position: sticky; bottom: 0; margin: 0 -20px; padding: 12px 20px calc(16px + env(safe-area-inset-bottom)); background: linear-gradient(to top, var(--sur) 70%, transparent); }
.sheet__foot .btn { width: 100%; min-height: 56px; font-size: 1.05rem; }
@media (min-width: 760px) {
  .sheet { align-items: center; padding: 24px; }
  .sheet__panel { max-width: 560px; border-radius: var(--r3); max-height: 90vh; }
  .sheet__grip { display: none; }
  .sheet__panel { padding-top: 20px; }
}
@keyframes up { from { transform: translateY(24px); opacity: .6; } to { transform: none; opacity: 1; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* the dock: one action pinned to the bottom of the phone */
.dock { position: sticky; bottom: 0; z-index: 40; padding: 12px 0 calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(to top, var(--bg) 75%, transparent); }
.dock .btn { width: 100%; min-height: 56px; font-size: 1.05rem; }
.dock__meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: .9rem; color: var(--ink2); margin: 0 0 8px; }
.dock__meta b { color: var(--ink); }

/* three short points */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.steps article { padding: 18px; border-radius: var(--r3); background: var(--sur2); }
.steps span { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--btn); color: var(--btn-ink); font: 700 .8rem var(--sans); margin-bottom: 10px; }
.steps h3 { margin: 0 0 4px; }
.steps p { margin: 0; color: var(--ink2); font-size: .95rem; }

/* status page: the pickup card */
.status { max-width: 560px; margin: 0 auto; }
.track { list-style: none; padding: 0; margin: 0 0 22px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.track li { position: relative; padding-top: 14px; font-size: .8rem; font-weight: 600; color: var(--muted); }
.track li::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; border-radius: 2px; background: var(--sur3); }
.track li.is-done { color: var(--ink); } .track li.is-done::before { background: var(--ink); }
.track li.is-now { color: var(--ink); }
.track li.is-now::before { background: linear-gradient(90deg, var(--ink) 0 40%, var(--sur3) 40% 100%); background-size: 200% 100%; animation: slide 1.6s linear infinite; }
.status--no .track li.is-now::before { animation: none; background: var(--line2); }
@keyframes slide { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.status h1 { font-size: clamp(1.8rem, 6vw, 2.6rem); margin: 0 0 6px; }
.status .lede { font-size: 1.05rem; margin-bottom: 18px; }
.ticket { border: 1px solid var(--line); border-radius: var(--r3); background: var(--sur); overflow: hidden; }
.ticket__who { display: flex; align-items: center; gap: 14px; padding: 16px 18px; }
.ticket__who img, .ticket__who .opt__avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; background: var(--sur3); }
.ticket__who b { display: block; font-size: 1.1rem; font-weight: 600; } .ticket__who small { color: var(--muted); }
.ticket__who .ring { margin-left: auto; }
.ticket__row { display: grid; grid-template-columns: 1fr auto; gap: 4px 14px; align-items: center; padding: 14px 18px; border-top: 1px solid var(--line); }
.ticket__row .k { color: var(--muted); font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.ticket__row .v { font-size: 1.05rem; font-weight: 600; }
.ticket__row .v small { display: block; color: var(--muted); font-weight: 500; font-size: .85rem; }
.ticket__row .code { font: 700 1.6rem/1 var(--display); letter-spacing: .12em; padding: 10px 14px; border-radius: var(--r); background: var(--btn); color: var(--btn-ink); border: 0; white-space: nowrap; }
.ticket__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 14px 18px 18px; border-top: 1px solid var(--line); }
.ticket__actions .btn--wide { grid-column: 1 / -1; }
.ticket__actions .btn--link { margin-top: 6px; }
.ring { position: relative; width: 56px; height: 56px; flex: none; display: grid; place-items: center; font: 600 .82rem var(--sans); font-variant-numeric: tabular-nums; color: var(--ink); }
.ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 4; }
.ring .bg { stroke: var(--sur3); } .ring .fg { stroke: var(--ink); stroke-linecap: round; transition: stroke-dashoffset 1s linear; }
.ring--late .fg { stroke: var(--danger); }
.quote { margin: 0; padding: 14px 18px; border-top: 1px solid var(--line); background: var(--sur2); font-size: 1.05rem; }
.trail { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 4px; color: var(--muted); font-size: .875rem; }
.trail li { display: flex; gap: 8px; align-items: center; }
.trail li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--line2); flex: none; }
.trail li.is-yes { color: var(--ink); } .trail li.is-yes::before { background: var(--free); }
.trail li.is-now::before { background: var(--ink); }
.kv { display: grid; grid-template-columns: 90px 1fr; gap: 6px 12px; margin: 12px 0; font-size: .95rem; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; }
.countdown { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--ink); }
.skeleton { border-radius: var(--r); background: linear-gradient(90deg, var(--sur2) 25%, var(--sur3) 37%, var(--sur2) 63%); background-size: 400% 100%; animation: shimmer 1.4s ease infinite; min-height: 18px; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }

/* artist app */
.console { max-width: 720px; margin: 0 auto; display: grid; gap: 14px; min-width: 0; }
.console > * { min-width: 0; }
.me { display: flex; align-items: center; gap: 12px; }
.me img, .me .opt__avatar { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; background: var(--sur3); }
.me > div { min-width: 0; }
.me b { display: block; font-size: 1.1rem; font-weight: 600; } .me small { color: var(--muted); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me .btn--link { margin-left: auto; white-space: nowrap; }
.states { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 14px; }
@media (max-width: 560px) { .states { grid-template-columns: repeat(2, 1fr); } }
.state { display: grid; gap: 3px; justify-items: center; padding: 14px 8px 12px; border: 2px solid transparent; border-radius: var(--r2); background: var(--sur2); color: var(--ink); cursor: pointer; font: inherit; text-align: center; min-height: 92px; -webkit-tap-highlight-color: transparent; transition: background .12s, border-color .12s; }
.state:hover { background: var(--sur3); }
.state b { font-weight: 600; font-size: .98rem; letter-spacing: -.01em; }
.state small { color: var(--muted); font-size: .75rem; }
.state i { width: 10px; height: 10px; border-radius: 50%; background: var(--off); display: block; margin-bottom: 4px; }
.state--free i { background: var(--free); } .state--in i { background: var(--in); } .state--busy i { background: var(--busy); }
.state[aria-pressed="true"] { border-color: var(--ink); background: var(--sur); }
.state--free[aria-pressed="true"] { background: var(--free-bg); border-color: var(--free); }
.state--free[aria-pressed="true"] i { animation: pulse 2.2s ease-out infinite; }
.state[disabled] { opacity: .5; cursor: default; }
.saved { color: var(--free); font-weight: 600; font-size: .85rem; }
.offer { border: 2px solid var(--ink); border-radius: var(--r3); background: var(--sur); padding: 16px 18px; display: grid; gap: 10px; }
.offer--done { border-color: var(--line); }
.offer__head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.offer__head h3 { margin: 0; font-size: 1.25rem; font-weight: 700; }
.offer__timer { margin-left: auto; font: 700 1.4rem/1 var(--display); font-variant-numeric: tabular-nums; letter-spacing: -.02em; color: var(--ink); }
.offer__timer--late { color: var(--danger); }
.offer__idea { margin: 0; font-size: 1.02rem; }
.offer__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--muted); font-size: .875rem; margin: 0; }
.offer__meta b { color: var(--ink); font-weight: 600; }
.offer__ref img { max-height: 260px; border-radius: var(--r); }
.offer__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 4px; }
.offer__actions .btn { min-height: 52px; }
.offer__reply { display: grid; gap: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.tag { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--sur3); color: var(--ink2); font: 600 .75rem var(--sans); letter-spacing: 0; }
.tag--accepted { background: var(--free-bg); color: var(--free); }
.tag--code { background: var(--btn); color: var(--btn-ink); font-family: var(--display); letter-spacing: .1em; font-size: .85rem; }
.empty { text-align: center; color: var(--muted); padding: 28px 12px; border-radius: var(--r3); background: var(--sur2); }

/* admin */
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th, .table td { text-align: left; padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { color: var(--muted); font-weight: 600; font-size: .76rem; letter-spacing: .05em; text-transform: uppercase; }
.tablewrap { overflow-x: auto; }
.hours { display: grid; gap: 6px; }
.hours div { display: grid; grid-template-columns: 44px 1fr 1fr auto; gap: 8px; align-items: center; }
@media (max-width: 560px) { .hours div { grid-template-columns: 44px 1fr 1fr; } .hours div .toggle { grid-column: 2 / -1; padding: 8px 12px; font-size: .875rem; } }
.hours div b { color: var(--muted); font-size: .8rem; }
.hours .input { min-height: 44px; padding: 8px 10px; }
code, .code, .field .code { font: 500 .85rem/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; text-transform: none; letter-spacing: 0; }
.code { display: block; padding: 12px 14px; background: var(--sur2); border-radius: var(--r); white-space: pre-wrap; word-break: break-all; color: var(--ink); text-decoration: none; }

/* footer */
footer { border-top: 1px solid var(--line); padding: 28px 0; margin-top: 40px; color: var(--muted); font-size: .875rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; }
footer a { color: var(--muted); text-decoration: none; } footer a:hover { color: var(--ink); text-decoration: underline; }
.mock { position: fixed; right: 10px; bottom: 10px; z-index: 90; padding: 6px 10px; border-radius: 999px; background: var(--btn); color: var(--btn-ink); font: 600 .72rem var(--sans); letter-spacing: .04em; text-transform: uppercase; opacity: .85; pointer-events: none; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
