/* trulysos — one look for the whole product: "Studio Floor" (D-014, D-015, D-019, D-020).
   Calm layout, safety-yellow accent with black text, Figtree, prominent 2px borders, rounded corners.
   Every class name from the earlier ordering stylesheet is kept, so no page logic changes.
   Fonts: Figtree and Barlow Condensed are requested from Google Fonts by each page <head>
   (self-hosting is checklist 13.22). The system font is the fallback. */
:root {
  --bg: #FCFCFA;
  --bg-alt: #F3F4F2;
  --surface: #FFFFFF;
  --surface-sunken: #FAFAF8;
  --ink: #14171A;
  --ink-soft: #687077;
  --line: #C9CDC9;            /* the prominent 2px borders */
  --line-soft: #DFE2DF;       /* dividers inside lists and tables */
  --line-strong: #14171A;
  --accent: #FFC400;
  --accent-ink: #14171A;
  --accent-soft-bg: #FFF1C2;
  --accent-soft-ink: #8A5A00;
  --progress-bg: #FFFFFF;
  --progress-ink: #687077;
  --ready-bg: #E2F4ED;
  --ready-ink: #0F7A5C;
  --danger-bg: #FBE8E6;
  --danger-ink: #B42318;
  --shadow: none;
  --radius: 16px;
  --radius-s: 12px;
  --font-ui: "Figtree", system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-num: "Barlow Condensed", "Figtree", system-ui, sans-serif;
  --font-mono: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif; /* data uses tabular figures, not monospace */
}

/* Deliberately single-theme: always the light palette above, whatever the visitor's dark-mode setting. */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-ui); font-size: 15px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums;
}
a { color: inherit; }
img, svg { max-width: 100%; }
button, input, textarea, select { font-family: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 2px;
}

/* ---------- page shell ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 14px 28px; background: var(--bg); border-bottom: 2px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 11px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent); color: var(--accent-ink); border: 2px solid var(--ink); font-weight: 800; font-size: 1.05rem; line-height: 1;
}
.brand-word { font-weight: 700; font-size: 1.1rem; letter-spacing: -0.01em; color: var(--ink); }
.brand-word span { color: inherit; }
.topbar nav { display: flex; gap: 4px; align-items: center; }
.topbar nav a {
  text-decoration: none; font-size: 0.9rem; font-weight: 500; padding: 7px 14px; border-radius: 99px; color: var(--ink-soft);
  border: 2px solid transparent;
}
.topbar nav a:hover { color: var(--ink); background: var(--bg-alt); }
.topbar nav a.cta { background: var(--accent); color: var(--accent-ink); border-color: var(--ink); font-weight: 700; }
.topbar nav a.cta:hover { background: #F0B800; }

.page { max-width: 540px; margin: 0 auto; padding: 28px 20px 60px; }
.page-wide { max-width: 780px; margin: 0 auto; padding: 28px 20px 60px; }
.page-admin { max-width: 1040px; margin: 0 auto; padding: 28px 20px 60px; }

.eyebrow {
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--ink-soft); margin: 0 0 8px;
}
h1 { font-size: 1.85rem; line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 8px; text-wrap: balance; font-weight: 700; }
h2 { font-size: 1.2rem; margin: 0 0 6px; font-weight: 700; }
p.lead { color: var(--ink-soft); font-size: 1.02rem; line-height: 1.55; margin: 0 0 20px; }

/* ---------- shared UI kit ---------- */
.app-header { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.back-arrow { font-size: 1.15rem; color: var(--ink-soft); text-decoration: none; }
.app-title { font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em; }
.app-title small { display: block; font-weight: 500; font-size: 0.8rem; color: var(--ink-soft); }

.search-box {
  display: flex; align-items: center; gap: 8px; background: var(--surface); border: 2px solid var(--line);
  border-radius: var(--radius-s); padding: 11px 14px; font-size: 0.95rem; margin-bottom: 14px; width: 100%;
}
.search-box:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px var(--accent); }
.search-box input { border: none; background: none; flex: 1; font-size: 0.95rem; color: var(--ink); outline: none; }
.search-box input::placeholder { color: var(--ink-soft); }

.shop-card {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 2px solid var(--line);
  border-radius: var(--radius); margin-bottom: 12px; background: var(--surface); text-decoration: none; color: inherit;
}
.shop-card:hover { border-color: var(--ink); box-shadow: 0 4px 0 var(--accent); }
.shop-thumb {
  width: 48px; height: 48px; border-radius: 13px; flex-shrink: 0; display: flex; align-items: center;
  justify-content: center; font-size: 1.15rem; font-weight: 800; background: var(--accent); border: 2px solid var(--ink); overflow: hidden;
}
.shop-thumb.t2, .item-thumb.t2 { background: #CFE9DE; } .shop-thumb.t3, .item-thumb.t3 { background: #DBE5FB; } .shop-thumb.t4, .item-thumb.t4 { background: #F6DCD6; }
.shop-thumb img { width: 100%; height: 100%; object-fit: cover; }
.shop-info { flex: 1; min-width: 0; }
.shop-name { font-weight: 700; font-size: 1rem; }
.shop-meta { font-size: 0.8rem; color: var(--ink-soft); margin-top: 2px; }
.tag { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; padding: 3px 10px; border-radius: 99px; border: 1.5px solid; flex-shrink: 0; background: var(--surface); }
.tag.open { border-color: #A9D9C7; color: var(--ready-ink); background: var(--ready-bg); }
.tag.closed { border-color: var(--line); color: var(--ink-soft); }

.item-row { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line-soft); }
.item-row:last-child { border-bottom: none; }
.item-thumb { width: 46px; height: 46px; border-radius: 13px; flex-shrink: 0; background: var(--accent); border: 2px solid var(--ink); overflow: hidden; display: flex; align-items: center; justify-content: center; font-size: 1.05rem; font-weight: 800; }
.item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.item-name { font-weight: 600; font-size: 0.95rem; flex: 1; }
.item-price { font-size: 0.9rem; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.stepper { display: flex; align-items: center; gap: 10px; }
.stepper button {
  width: 36px; height: 36px; border-radius: 11px; border: 2px solid var(--line); background: var(--surface);
  color: var(--ink); font-size: 1.1rem; font-weight: 700; line-height: 1; cursor: pointer;
}
.stepper button:last-of-type { background: var(--accent); border-color: var(--ink); }
.stepper span { font-weight: 700; font-size: 0.95rem; min-width: 18px; text-align: center; }

.cart-bar {
  position: sticky; bottom: 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--ink); color: #fff; border-radius: var(--radius); padding: 15px 18px; font-size: 0.95rem; font-weight: 600;
  margin-top: 18px; box-shadow: var(--shadow); text-decoration: none;
}
.cart-bar b { color: var(--accent); font-variant-numeric: tabular-nums; }

.field { margin-bottom: 14px; }
.field label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--ink-soft); margin-bottom: 5px; }
.field label .optional { font-weight: 400; }
.field input, .field textarea, .field select {
  width: 100%; border: 2px solid var(--line); border-radius: var(--radius-s); padding: 11px 13px; font-size: 1rem;
  font-family: var(--font-ui); background: var(--surface); color: var(--ink); resize: none;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px var(--accent); }
.mode-tabs { display: flex; gap: 8px; margin-bottom: 8px; }
.mode-tabs button {
  flex: 1; font-size: 0.82rem; font-weight: 600; padding: 8px 10px; border-radius: 99px;
  border: 2px solid var(--line); background: var(--surface); color: var(--ink-soft); cursor: pointer;
}
.mode-tabs button.active { background: var(--accent); color: var(--accent-ink); border-color: var(--ink); font-weight: 700; }

.btn {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; border: 2px solid var(--ink);
  border-radius: var(--radius-s); padding: 14px 18px; font-weight: 700; font-size: 1rem; cursor: pointer; text-decoration: none;
}
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-primary { background: var(--accent); color: var(--accent-ink); border-color: var(--ink); }
.btn-primary:hover:not(:disabled) { background: #F0B800; }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover:not(:disabled) { border-color: var(--ink); }
.btn-danger { background: var(--surface); color: var(--danger-ink); border-color: var(--danger-ink); }
.btn-inline { width: auto; padding: 9px 18px; font-size: 0.88rem; }

.upload-box {
  border: 2px dashed var(--line); border-radius: var(--radius); padding: 22px 10px; text-align: center;
  color: var(--ink-soft); font-size: 0.9rem; margin-bottom: 14px; background: var(--surface-sunken); cursor: pointer;
  position: relative; overflow: hidden;
}
.upload-box .glyph { font-size: 1.5rem; display: block; margin-bottom: 6px; }
.upload-box img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.upload-box input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

.order-summary { background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius); padding: 14px 16px; font-size: 0.9rem; margin-bottom: 16px; }
.order-summary div { display: flex; justify-content: space-between; padding: 4px 0; gap: 10px; }
.order-summary .total { font-weight: 700; border-top: 1px solid var(--line-soft); margin-top: 8px; padding-top: 10px; font-size: 1.05rem; }

.confirm-wrap { display: flex; flex-direction: column; align-items: center; text-align: center; margin-top: 30px; gap: 6px; }
.confirm-icon { width: 58px; height: 58px; border-radius: 16px; border: 2px solid var(--ready-ink); background: var(--ready-bg); color: var(--ready-ink); display: flex; align-items: center; justify-content: center; font-size: 1.75rem; margin-bottom: 8px; }
.ticket-no { font-size: 0.9rem; font-weight: 600; color: var(--ink-soft); }
.timeline { display: flex; align-items: center; gap: 4px; margin-top: 20px; width: 100%; max-width: 320px; }
.timeline .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--ready-ink); flex-shrink: 0; }
.timeline .dot.pending { background: var(--surface); border: 2px solid var(--line); }
.timeline .bar { flex: 1; height: 2px; background: var(--line); }
.timeline .bar.done { background: var(--ready-ink); }
.timeline-labels { display: flex; justify-content: space-between; font-size: 0.75rem; color: var(--ink-soft); margin-top: 6px; width: 100%; max-width: 320px; }

.pin-shop { text-align: center; margin: 10px 0 22px; }
.pin-shop b { font-size: 1.25rem; display: block; }
.pin-shop span { font-size: 0.85rem; color: var(--ink-soft); }
.pin-dots { display: flex; justify-content: center; gap: 12px; margin-bottom: 22px; }
.pin-dots i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--ink-soft); display: block; }
.pin-dots i.filled { background: var(--ink); border-color: var(--ink); }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 300px; margin: 0 auto; }
.keypad button {
  aspect-ratio: 1.25; border-radius: 16px; border: 2px solid var(--line); background: var(--surface);
  font-size: 1.5rem; font-weight: 700; font-family: var(--font-num); color: var(--ink); cursor: pointer;
}
.keypad button:active { background: var(--accent); border-color: var(--ink); }

.empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 8px; padding: 60px 10px; }
.empty-state .glyph { font-size: 2.25rem; opacity: 0.5; }
.empty-state b { font-size: 1.05rem; }
.empty-state span { font-size: 0.88rem; color: var(--ink-soft); }

/* an order card: the default (new) card stands out; other stages are quieter */
.order-ticket {
  border: 2px solid var(--line-strong); background: var(--surface);
  border-radius: var(--radius); padding: 16px; margin-bottom: 14px; box-shadow: 0 4px 0 var(--accent);
}
.order-ticket.neutral { border-color: var(--line); box-shadow: none; }
.order-ticket.ready { border-color: var(--ready-ink); box-shadow: none; }
.order-ticket.completed { border-color: var(--line); box-shadow: none; opacity: 0.65; }
.order-ticket.cancelled { border-color: var(--danger-ink); box-shadow: none; }
.ticket-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; gap: 8px; }
.ticket-id { font-weight: 700; font-size: 1rem; font-variant-numeric: tabular-nums; }
.pill { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; padding: 3px 11px; border-radius: 99px; background: var(--ink); color: var(--accent); border: 1.5px solid var(--ink); white-space: nowrap; }
.pill.neutral { background: var(--bg-alt); color: var(--ink-soft); border-color: var(--line); }
.pill.ready { background: var(--ready-bg); color: var(--ready-ink); border-color: #A9D9C7; }
.pill.completed { background: var(--bg-alt); color: var(--ink-soft); border-color: var(--line); }
.pill.cancelled { background: var(--danger-bg); color: var(--danger-ink); border-color: #EFB3AD; }
.ticket-items { font-size: 0.92rem; margin-bottom: 10px; }
.ticket-items div { display: flex; gap: 6px; padding: 2px 0; justify-content: space-between; }
.ticket-customer { font-size: 0.88rem; color: var(--ink-soft); margin-bottom: 10px; display: flex; justify-content: space-between; gap: 8px; }
.ticket-address { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 12px; line-height: 1.45; }
.ticket-address b { color: var(--ink); font-weight: 600; }

.done-strip { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; color: var(--ink-soft); padding: 9px 4px; border-top: 2px dashed var(--line); }
.done-strip .check { color: var(--ready-ink); font-weight: 700; }

.live-badge {
  display: inline-flex; align-items: center; gap: 6px; background: var(--ready-bg); color: var(--ready-ink);
  border: 2px solid #A9D9C7; font-size: 0.82rem; font-weight: 700; padding: 6px 14px; border-radius: 99px; margin-top: 14px;
}
.share-row {
  display: flex; align-items: center; gap: 8px; background: var(--surface); border: 2px solid var(--line);
  border-radius: var(--radius-s); padding: 10px 12px; font-size: 0.88rem; color: var(--ink-soft);
  margin-top: 18px; width: 100%;
}
.share-row span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; }
.share-row button {
  flex-shrink: 0; border: 2px solid var(--ink); background: var(--accent); color: var(--accent-ink); font-weight: 700;
  font-size: 0.8rem; padding: 7px 14px; border-radius: 10px; cursor: pointer;
}
.qr-box {
  background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius); padding: 14px 14px 12px;
  margin-top: 18px; display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.qr-box svg { display: block; fill: var(--ink); }
.qr-box span { font-size: 0.75rem; color: var(--ink-soft); }

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 0.92rem; min-width: 480px; }
.table th { text-align: left; font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-soft); padding: 0 10px 10px; font-weight: 700; border-bottom: 2px solid var(--line); }
.table td { padding: 13px 10px; border-top: 1px solid var(--line-soft); }
.table td:first-child { font-weight: 700; }
.status-toggle { display: inline-flex; align-items: center; gap: 8px; font-size: 0.82rem; font-weight: 700; cursor: pointer; border: none; background: none; padding: 0; color: var(--ink); }
.status-toggle .knob { width: 40px; height: 22px; border-radius: 999px; background: var(--accent); border: 2px solid var(--ink); position: relative; flex-shrink: 0; }
.status-toggle .knob::after { content: ""; position: absolute; right: 2px; top: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--ink); }
.status-toggle .knob.off { background: var(--bg-alt); border-color: var(--line); }
.status-toggle .knob.off::after { right: auto; left: 2px; background: #fff; border: 2px solid var(--line); }

.admin-form { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; }
.admin-form .field.full { grid-column: 1 / -1; }
.pin-generate { display: flex; gap: 8px; align-items: center; }
.pin-generate input { flex: 1; font-family: var(--font-num); font-size: 1.15rem; letter-spacing: 0.08em; }
.pin-generate button { flex-shrink: 0; padding: 11px 16px; font-size: 0.88rem; border-radius: var(--radius-s); border: 2px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 700; cursor: pointer; }

.menu-builder-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); font-size: 0.92rem; }
.menu-builder-row .icon-swatch { width: 36px; height: 36px; border-radius: 11px; background: var(--accent); border: 2px solid var(--ink); overflow: hidden; display: flex; align-items: center; justify-content: center; font-size: 0.95rem; font-weight: 800; flex-shrink: 0; }
.menu-builder-row .icon-swatch img { width: 100%; height: 100%; object-fit: cover; }
.menu-builder-row .mname { flex: 1; font-weight: 600; }
.menu-builder-row .mprice { font-weight: 700; color: var(--ink); }
.menu-builder-row .remove { color: var(--ink-soft); font-size: 0.85rem; cursor: pointer; background: none; border: none; }
.add-item-row { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.add-item-row input { flex: 1; min-width: 100px; border: 2px solid var(--line); border-radius: var(--radius-s); padding: 10px 12px; font-size: 0.88rem; background: var(--surface); color: var(--ink); }
.add-item-row button { flex-shrink: 0; padding: 10px 18px; font-size: 0.88rem; font-weight: 700; border-radius: var(--radius-s); border: 2px solid var(--ink); background: var(--accent); color: var(--accent-ink); cursor: pointer; }

.banner {
  padding: 11px 15px; border-radius: var(--radius-s); font-size: 0.9rem; margin-bottom: 14px; display: none;
  background: var(--surface); border: 2px solid var(--line);
}
.banner.show { display: block; }
.banner.error { border-color: var(--danger-ink); background: var(--danger-bg); color: var(--danger-ink); }
.banner.success { border-color: var(--ready-ink); background: var(--ready-bg); color: var(--ready-ink); }

.login-card { max-width: 400px; margin: 40px auto 0; padding: 24px 22px; background: var(--surface); border: 2px solid var(--ink); border-radius: 20px; box-shadow: 0 8px 0 rgba(20, 23, 26, 0.1); }
.identifier-tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.identifier-tabs button {
  flex: 1; padding: 9px; font-size: 0.82rem; font-weight: 600; border-radius: 99px; border: 2px solid var(--line);
  background: var(--surface); color: var(--ink-soft); cursor: pointer;
}
.identifier-tabs button.active { background: var(--accent); color: var(--accent-ink); border-color: var(--ink); font-weight: 700; }

.text-link { color: var(--ink); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; font-size: 0.9rem; }
.center { text-align: center; }
.muted { color: var(--ink-soft); font-size: 0.85rem; }
.spaced-top { margin-top: 16px; }

footer.site-footer { max-width: 780px; margin: 40px auto 0; padding: 20px; font-size: 0.85rem; color: var(--ink-soft); text-align: center; }

/* ---------- generalized order-status progress (track.html) ---------- */
.progress-steps { list-style: none; margin: 0 0 20px; padding: 0; }
.progress-step { display: flex; gap: 14px; padding-bottom: 18px; position: relative; }
.progress-step:last-child { padding-bottom: 0; }
.progress-step::before {
  content: ""; position: absolute; left: 12px; top: 28px; bottom: -2px; width: 2px; background: var(--line);
}
.progress-step:last-child::before { display: none; }
.progress-step.done::before { background: var(--ready-ink); }
.progress-dot {
  width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center;
  justify-content: center; font-size: 0.75rem; font-weight: 800; background: var(--surface);
  border: 2px solid var(--line); color: var(--ink-soft); z-index: 1;
}
.progress-step.done .progress-dot { background: var(--ready-ink); border-color: var(--ready-ink); color: #fff; }
.progress-step.current .progress-dot { background: var(--accent); border-color: var(--ink); color: var(--accent-ink); }
.progress-label { font-size: 1rem; font-weight: 600; padding-top: 2px; }
.progress-step.upcoming .progress-label { color: var(--ink-soft); font-weight: 500; }
.progress-step.current .progress-label { color: var(--ink); }

.eta-box { background: var(--surface); border: 2px solid var(--ink); box-shadow: 0 4px 0 var(--accent); border-radius: var(--radius); padding: 16px; text-align: center; margin-bottom: 22px; }
.eta-box .eta-value { font-family: var(--font-num); font-size: 2.6rem; line-height: 1.05; font-weight: 700; font-variant-numeric: tabular-nums; }
.eta-box .eta-label { font-size: 0.8rem; color: var(--ink-soft); margin-top: 2px; }

.eta-quickpick { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.eta-quickpick button {
  flex: 1; min-width: 56px; padding: 9px 6px; font-size: 0.82rem; font-weight: 700; border-radius: 99px;
  border: 2px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer;
}
.eta-quickpick button.active { background: var(--accent); color: var(--accent-ink); border-color: var(--ink); }

.rate-row { display: flex; gap: 12px; margin-top: 8px; }
.rate-row button {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 15px;
  border-radius: var(--radius-s); border: 2px solid var(--line); background: var(--surface); font-size: 1.05rem;
  font-weight: 700; cursor: pointer; color: var(--ink);
}
.rate-row button:hover { border-color: var(--ink); box-shadow: 0 3px 0 var(--accent); }
.trust-score { display: inline-flex; align-items: center; gap: 4px; font-size: 0.8rem; color: var(--ink-soft); }

.verified-badge {
  display: inline-flex; align-items: center; justify-content: center; font-size: 0.62rem; font-weight: 900;
  color: var(--accent-ink); background: var(--accent); border: 2px solid var(--ink); width: 18px; height: 18px; border-radius: 50%; padding: 0;
}

.contact-stub {
  font-size: 0.82rem; color: var(--ink-soft); border: 2px dashed var(--line); border-radius: var(--radius-s);
  padding: 9px 12px; margin-top: 8px; display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.contact-stub button {
  flex-shrink: 0; border: none; background: none; color: var(--ink); font-weight: 700;
  font-size: 0.82rem; cursor: pointer; padding: 0; text-decoration: underline;
}

.stat-row { display: flex; gap: 12px; margin-bottom: 18px; }
.stat-card { flex: 1; background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius); padding: 14px; }
.stat-card .stat-value { font-family: var(--font-num); font-size: 2rem; line-height: 1; font-weight: 700; font-variant-numeric: tabular-nums; }
.stat-card .stat-label { font-size: 0.78rem; color: var(--ink-soft); margin-top: 4px; }

.status-picker { display: flex; flex-direction: column; gap: 8px; margin-bottom: 4px; }
.status-picker label { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; font-weight: 500; color: var(--ink); }
.status-picker input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--ink); }
.preset-tabs { display: flex; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.preset-tabs button {
  padding: 8px 14px; font-size: 0.82rem; font-weight: 600; border-radius: 99px; border: 2px solid var(--line);
  background: var(--surface); color: var(--ink-soft); cursor: pointer;
}
.preset-tabs button.active { background: var(--accent); color: var(--accent-ink); border-color: var(--ink); font-weight: 700; }

/* ---------- entry forks (buy-fork, sell) ---------- */
.fork-hero { max-width: 520px; margin: 0 auto; padding: 48px 20px 20px; text-align: center; }
.fork-hero h1 { font-size: clamp(1.7rem, 4.5vw, 2.2rem); margin: 10px 0 8px; }
.fork-hero p.lead { max-width: 42ch; margin: 0 auto; }
.fork-row { display: flex; flex-direction: column; gap: 14px; max-width: 460px; margin: 26px auto 0; padding: 0 20px 60px; }
.fork-card {
  display: flex; align-items: center; gap: 16px; text-align: left; padding: 18px; border-radius: var(--radius);
  border: 2px solid var(--line); background: var(--surface); text-decoration: none; color: inherit;
}
.fork-card:hover { border-color: var(--ink); box-shadow: 0 5px 0 var(--accent); }
.fork-card .glyph { width: 54px; height: 54px; border-radius: 15px; background: var(--accent); border: 2px solid var(--ink); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; flex-shrink: 0; }
.fork-card .h { display: block; font-weight: 700; font-size: 1.1rem; margin-bottom: 3px; }
.fork-card .d { display: block; font-size: 0.88rem; color: var(--ink-soft); line-height: 1.4; }
.fork-back { max-width: 460px; margin: 0 auto; padding: 0 20px; }

/* ---------- homepage: one screen, no scrolling at normal sizes ---------- */
.has-home { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
.home { flex: 1; display: flex; flex-direction: column; }
.home-main { flex: 1; display: flex; flex-direction: column; justify-content: center; max-width: 880px; width: 100%; margin: 0 auto; padding: 8px 24px; gap: clamp(14px, 3.5vh, 30px); }
.home-hero { text-align: center; }
.home-hero h1 { font-size: clamp(2rem, 5.2vw, 3.6rem); line-height: 1.05; max-width: 15ch; margin: 0 auto; letter-spacing: -0.02em; }
.home-hero h1 em { font-style: normal; background: linear-gradient(transparent 62%, var(--accent) 62%); }
.home-hero p.lead { font-size: clamp(1rem, 1.7vw, 1.15rem); max-width: 34em; margin: clamp(10px, 2vh, 16px) auto 0; }
.doors { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.door { border: 2px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 20px; text-align: left; text-decoration: none; color: inherit; display: block; }
.door.primary { border-color: var(--ink); box-shadow: 0 5px 0 var(--accent); }
.door:hover { border-color: var(--ink); }
.door h2 { font-size: 1.25rem; margin-bottom: 4px; }
.door p { color: var(--ink-soft); margin: 0 0 14px; font-size: 0.95rem; }
.door .btn { width: auto; display: inline-flex; padding: 10px 20px; font-size: 0.95rem; }
.svc-strip { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; align-items: center; }
.svc-strip small { width: 100%; text-align: center; color: var(--ink-soft); font-size: 0.82rem; }
.svc-strip span { border: 2px solid var(--line); border-radius: 99px; padding: 5px 14px; font-size: 0.88rem; font-weight: 600; background: var(--surface); }
.home-foot { text-align: center; padding: 14px 16px 18px; font-size: 0.82rem; color: var(--ink-soft); }
.home-foot a { margin: 0 8px; }

@media (max-width: 700px) {
  .topbar { padding: 11px 16px; }
  .topbar nav a:not(.cta) { display: none; }
  .topbar nav a { padding: 7px 12px; font-size: 0.85rem; }
  h1 { font-size: 1.6rem; }
  .admin-form { grid-template-columns: 1fr; }
  .page, .page-wide, .page-admin { padding: 22px 16px 50px; }
  .home-main { padding: 6px 16px; gap: 14px; }
  .doors { grid-template-columns: 1fr; gap: 10px; }
  .door { padding: 14px 16px; display: flex; flex-direction: column; }
  .door h2 { font-size: 1.1rem; } .door p { margin-bottom: 10px; font-size: 0.88rem; }
  .door .btn { width: 100%; }
  .home-hero h1 { font-size: 2.1rem; }
  .svc-strip small { display: none; }
  .svc-strip span { padding: 4px 11px; font-size: 0.82rem; }
  .home-foot { padding: 8px 12px 12px; }
}
@media (max-width: 700px) and (max-height: 760px) {
  .home-hero h1 { font-size: 1.85rem; } .home-hero p.lead { font-size: 0.92rem; margin-top: 8px; }
  .door { padding: 10px 14px; } .door p { display: none; } .door h2 { margin-bottom: 8px; }
}
@media (max-height: 600px) { .home-hero p.lead { display: none; } .svc-strip { display: none; } }
