:root {
  --bg: #f6f5f2;
  --surface: #fcfcfb;
  --card: #ffffff;
  --ink: #0b0b0b;
  --ink-2: #52514e;
  --ink-3: #8a8983;
  --line: #e7e5df;
  --series: #2a78d6;
  --critical: #d03b3b;
  --good: #0a7d0a;
  --star: #f59e0b;
  --accent: #c2410c;
  --radius: 14px;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); line-height: 1.45; }
a { color: var(--series); }
.muted { color: var(--ink-2); font-weight: 400; }
.small { font-size: 13px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.btn { display: inline-block; border: 1px solid var(--line); background: var(--card); color: var(--ink);
  padding: 9px 14px; border-radius: 10px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; }
.btn:hover { border-color: var(--ink-3); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; width: 100%; padding: 14px; font-size: 17px; }
.btn.small { padding: 5px 10px; font-size: 13px; }
.btn.link { border: none; background: none; color: var(--ink-3); padding: 4px 6px; }
.btn.link:hover { color: var(--critical); }
input[type=text], input:not([type]), input[type=number], input[type=tel], textarea, select {
  font: inherit; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: #fff; width: 100%; }
textarea { resize: vertical; }

/* ---------- customer pages ---------- */
body.customer { background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 12%, #fff) 0, var(--bg) 260px); min-height: 100vh; }
.card { max-width: 440px; margin: 0 auto; padding: 28px 22px 40px; }
.brand { text-align: center; margin-bottom: 18px; }
.logo { width: 64px; height: 64px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 30px;
  font-weight: 700; display: grid; place-items: center; margin: 0 auto 10px; }
.brand h1 { margin: 0; font-size: 24px; }
.brand p { margin: 4px 0 0; }
.stars { border: 0; padding: 0; margin: 10px 0 0; display: flex; flex-direction: row-reverse; justify-content: center; gap: 4px; }
.stars input { position: absolute; opacity: 0; pointer-events: none; }
.stars label { font-size: 48px; line-height: 1; color: #d6d3d1; cursor: pointer; padding: 2px; transition: transform .1s; }
.stars label:active { transform: scale(1.15); }
.stars input:checked ~ label, .stars label:hover, .stars label:hover ~ label { color: var(--star); }
.stars input:focus-visible + label { outline: 2px solid var(--accent); border-radius: 6px; }
.stars-hint { text-align: center; margin: 4px 0 18px; color: var(--ink-2); min-height: 1.4em; font-weight: 600; }
.q { display: block; font-weight: 600; margin: 16px 0 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip input { position: absolute; opacity: 0; }
.chip span { display: inline-block; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; cursor: pointer; font-size: 15px; }
.chip input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
details { margin: 14px 0 20px; }
details summary { cursor: pointer; color: var(--ink-2); margin-bottom: 8px; }
.fine { text-align: center; color: var(--ink-3); font-size: 13px; margin-top: 18px; }
.center { text-align: center; }
.check { width: 64px; height: 64px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 34px; display: grid; place-items: center; margin: 30px auto 12px; }
.google-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-top: 24px; }
.btn.google { background: #fff; border: 1.5px solid #1a73e8; color: #1a73e8; width: 100%; padding: 13px; font-size: 16px; margin-top: 6px; }
.copied { color: var(--good); font-size: 13px; min-height: 1.2em; margin: 8px 0 0; }

/* ---------- owner dashboard ---------- */
.top { background: var(--card); border-bottom: 1px solid var(--line); }
.top .in { max-width: 1180px; margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.top h1 { font-size: 19px; margin: 0; }
.top .sp { flex: 1; }
.top nav { display: flex; gap: 8px; flex-wrap: wrap; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 20px; }
.filters { display: flex; gap: 6px; align-items: center; margin-bottom: 16px; }
.filters a { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; color: var(--ink-2); background: var(--card); font-size: 14px; }
.filters a.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.tile .lbl { color: var(--ink-2); font-size: 13px; }
.tile .num { font-size: 30px; font-weight: 700; letter-spacing: -0.02em; margin-top: 2px; }
.tile .sub { color: var(--ink-2); font-size: 13px; }
.up { color: var(--good); } .down { color: var(--critical); }
.grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 16px; align-items: start; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 16px; }
.panel h2 { font-size: 16px; margin: 0 0 4px; }
.panel .hint { color: var(--ink-2); font-size: 13px; margin: 0 0 12px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-weight: 600; color: var(--ink-2); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; padding: 6px 8px; border-bottom: 1px solid var(--line); }
td { padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
td.n { text-align: right; font-variant-numeric: tabular-nums; }
th.n { text-align: right; }
.kw { font-weight: 600; }
.addkw { display: flex; gap: 8px; margin-top: 12px; }
.addkw input { flex: 1; }
/* mini weekly bar chart (single series) */
.spark { display: flex; align-items: flex-end; gap: 2px; height: 30px; width: 92px; }
.spark span { flex: 1; background: var(--series); border-radius: 3px 3px 0 0; min-height: 2px; position: relative; }
.spark span.zero { background: var(--line); }
.spark span:hover { filter: brightness(1.15); outline: 2px solid var(--surface); }
/* rating distribution */
.dist { display: grid; grid-template-columns: 36px 1fr 34px; gap: 6px 8px; align-items: center; font-size: 14px; }
.dist .bar { height: 14px; background: var(--line); border-radius: 0 4px 4px 0; overflow: hidden; }
.dist .bar i { display: block; height: 100%; background: var(--series); border-radius: 0 4px 4px 0; }
.dist .bar:hover i { filter: brightness(1.15); }
.dist .c { text-align: right; color: var(--ink-2); font-variant-numeric: tabular-nums; }
/* suggestions */
.sugg { border: 1px dashed var(--ink-3); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; }
.sugg .head { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.sugg .phrase { font-weight: 700; font-size: 16px; }
.sugg .ex { color: var(--ink-2); font-size: 13px; margin: 6px 0 10px; font-style: italic; }
.sugg form { display: inline; }
.tag { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-2); background: var(--surface); white-space: nowrap; }
.tag.complaint { color: var(--critical); border-color: color-mix(in srgb, var(--critical) 40%, #fff); }
.tag.praise { color: var(--good); border-color: color-mix(in srgb, var(--good) 40%, #fff); }
/* feedback feed */
.fb { padding: 11px 0; border-bottom: 1px solid var(--line); }
.fb:last-child { border-bottom: 0; }
.fb .meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 13px; color: var(--ink-2); }
.fb .st { color: var(--star); letter-spacing: 1px; font-size: 15px; }
.fb .st .off { color: #dedbd4; }
.fb p { margin: 4px 0 0; }
.flag { color: var(--critical); font-weight: 600; font-size: 12px; }
.feed { max-height: 720px; overflow: auto; }
details.settings summary { font-weight: 600; color: var(--ink); }
.form-row { display: grid; grid-template-columns: 160px 1fr; gap: 8px; align-items: center; margin: 8px 0; font-size: 14px; }
.empty { color: var(--ink-3); font-size: 14px; padding: 8px 0; }

/* ---------- report ---------- */
.report { max-width: 820px; margin: 0 auto; padding: 32px 24px; background: #fff; min-height: 100vh; }
.report h1 { margin: 0; font-size: 26px; }
.report h2 { font-size: 17px; margin: 28px 0 8px; border-bottom: 2px solid var(--ink); padding-bottom: 4px; }
.report .tiles { grid-template-columns: repeat(4, 1fr); }
.quote { border-left: 3px solid var(--line); padding: 2px 0 2px 12px; margin: 8px 0; color: var(--ink-2); }

/* ---------- stand ---------- */
.stand-card { width: 4in; margin: 30px auto; background: #fff; border-radius: 22px; border: 1px solid var(--line);
  padding: 30px 26px; text-align: center; box-shadow: 0 8px 30px rgba(0,0,0,.08); }
.stand-card .logo { width: 56px; height: 56px; font-size: 26px; }
.stand-card h1 { margin: 6px 0 2px; font-size: 22px; }
.stand-card .big { font-size: 26px; font-weight: 800; margin: 14px 0 4px; line-height: 1.15; }
.stand-card img { width: 2.3in; height: 2.3in; display: block; margin: 14px auto 6px; image-rendering: pixelated; }
.nfc { display: inline-flex; gap: 8px; align-items: center; font-weight: 700; color: var(--accent); }
.howto { max-width: 640px; margin: 0 auto 40px; padding: 0 20px; font-size: 14px; color: var(--ink-2); }
.howto code { background: #fff; border: 1px solid var(--line); padding: 2px 6px; border-radius: 6px; word-break: break-all; }

@media (max-width: 900px) {
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .grid { grid-template-columns: 1fr; }
}
@media print {
  .no-print { display: none !important; }
  body { background: #fff; }
  .stand-card { box-shadow: none; }
}
.pager { display: flex; gap: 10px; align-items: center; justify-content: center; margin: -4px 0 16px; }

/* ---------- v2: admin, hub, bill splitter ---------- */
[hidden] { display: none !important; }
.brandmark { font-weight: 800; font-size: 18px; color: var(--ink); text-decoration: none; }
.notice { background: #eef6ee; border: 1px solid #cfe6cf; color: #145214; padding: 10px 14px; border-radius: 10px; font-size: 14px; }
.error { color: var(--critical); font-weight: 600; }
.rest-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0;
  border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); flex-wrap: wrap; }
.rest-row:last-child { border-bottom: 0; }
.rest-row:hover .kw { text-decoration: underline; }
.feat-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.tag.on { color: var(--ink); border-color: var(--ink-3); }
.switch-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); cursor: pointer; font-size: 15px; }
.switch-row:last-child { border-bottom: 0; }
.switch-row input { position: absolute; opacity: 0; }
.switch { width: 42px; height: 24px; border-radius: 999px; background: #d6d3d1; position: relative; flex: none; transition: background .15s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: left .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.switch-row input:checked + .switch { background: var(--good); }
.switch-row input:checked + .switch::after { left: 21px; }
.switch-row input:focus-visible + .switch { outline: 2px solid var(--series); outline-offset: 2px; }
.social-row { display: grid; grid-template-columns: 150px 1fr 150px; gap: 8px; margin-bottom: 8px; }
.savebar { position: sticky; bottom: 0; padding: 12px 0 16px; background: linear-gradient(transparent, var(--bg) 30%); margin-bottom: 8px; }
.panel.danger h2 { color: var(--critical); }
.form-row code { font-size: 13px; word-break: break-all; }

.skip { display: block; text-align: center; margin-top: 16px; color: var(--ink-2); font-weight: 600; text-decoration: none; padding: 8px; }
.skip:hover { color: var(--ink); }
.tiles-col { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.tile-link { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; text-decoration: none; color: var(--ink); }
a.tile-link:hover { border-color: var(--ink-3); }
.tile-link .ico { font-size: 26px; width: 34px; text-align: center; flex: none; }
.tile-link .arrow { margin-left: auto; font-size: 26px; color: var(--ink-3); }
.tile-link .grow { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.wifi-row { display: flex; gap: 10px; align-items: baseline; }
.wifi-row .muted { width: 64px; flex: none; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 15px; word-break: break-all; }
.section-h { font-size: 16px; margin: 22px 0 10px; }
.socials { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.btn.social { display: flex; flex-direction: column; align-items: center; gap: 0; padding: 12px 8px; text-align: center; }

.split-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.split-head h1 { font-size: 22px; margin: 0; flex: 1; }
.back { font-size: 22px; text-decoration: none; color: var(--ink); padding: 4px 8px 4px 0; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); background: #e9e7e1; border-radius: 12px; padding: 4px; gap: 4px; margin-bottom: 12px; }
.seg button { border: 0; background: none; font: inherit; font-weight: 600; padding: 10px 4px; border-radius: 9px; cursor: pointer; color: var(--ink-2); }
.seg button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.sbox { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 12px; }
.sbox > .section-h:first-child { margin-top: 0; }
.person { display: inline-flex; align-items: center; gap: 4px; background: var(--accent); color: #fff; border-radius: 999px; padding: 6px 6px 6px 12px; font-weight: 600; }
.person button { border: 0; background: rgba(255,255,255,.25); color: #fff; width: 22px; height: 22px; border-radius: 50%; cursor: pointer; font-size: 14px; line-height: 1; }
.item { border-bottom: 1px solid var(--line); padding: 10px 0; }
.item-top { display: grid; grid-template-columns: 1fr 92px 30px; gap: 8px; align-items: center; }
.item-top input { padding: 9px 10px; }
.who { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.pchip { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 14px; cursor: pointer; color: var(--ink); }
.pchip.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.pchip.all { border-style: dashed; color: var(--ink-2); }
.add-item { width: 100%; margin-top: 10px; border-style: dashed; }
.tips { gap: 6px; }
.tipcustom { display: inline-flex; align-items: center; gap: 2px; padding: 2px 10px 2px 4px; }
.tipcustom input { width: 52px; border: 0; padding: 4px; background: transparent; color: inherit; }
.tipcustom.on input::placeholder { color: #fff; }
.sbox .form-row { grid-template-columns: 130px 1fr; }
.owe { padding: 9px 0; border-bottom: 1px solid var(--line); }
.owe-top { display: flex; justify-content: space-between; font-size: 16px; }
.owe.total { border-bottom: 0; border-top: 2px solid var(--ink); margin-top: 4px; }
.warn { color: var(--critical); font-weight: 600; font-size: 14px; }
.stepper { display: inline-flex; align-items: center; gap: 14px; }
.stepper button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: #fff; font-size: 20px; cursor: pointer; }
.stepper span { font-size: 20px; font-weight: 700; min-width: 24px; text-align: center; }
.each { text-align: center; margin-bottom: 6px; }
.big-money { font-size: 40px; font-weight: 800; letter-spacing: -0.02em; }
.wheel { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 4px 0 16px; min-height: 40px; }
.wname { padding: 10px 16px; border-radius: 12px; border: 2px solid var(--line); font-weight: 700; font-size: 17px; transition: background .05s; }
.wname.hit { background: var(--accent); border-color: var(--accent); color: #fff; }
.wname.won { background: var(--accent); border-color: var(--ink); color: #fff; transform: scale(1.12); }
.winner { font-size: 26px; font-weight: 800; min-height: 1.3em; margin: 16px 0 0; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.share-row { text-align: center; margin: 4px 0 20px; }
.share-row .btn { width: 100%; padding: 13px; }
@media (max-width: 560px) { .social-row { grid-template-columns: 1fr; } .form-row { grid-template-columns: 1fr; } }
.tiprow { margin-top: 12px; }
.tiplabel { display: block; margin-bottom: 8px; }
.wifi-row { flex-direction: column; gap: 0; margin-top: 4px; }
.wifi-row .muted { width: auto; }
.tile-link.wifi { align-items: flex-start; }
.tile-link.wifi .btn { align-self: center; }

/* ---------- step 1: owner dashboard ---------- */
input[type=password], input[type=email] { font: inherit; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: #fff; width: 100%; }
.code-input { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 22px !important; letter-spacing: .12em; text-transform: uppercase; text-align: center; }
.code-show { font-size: 18px !important; letter-spacing: .1em; font-weight: 700; }
.logo.sm { width: 38px; height: 38px; font-size: 18px; margin: 0; }
.top .tabs { display: flex; gap: 4px; padding-top: 0; padding-bottom: 0; }
.tabs a { padding: 10px 14px; text-decoration: none; color: var(--ink-2); font-weight: 600; border-bottom: 2px solid transparent; }
.tabs a.on { color: var(--ink); border-bottom-color: var(--accent); }
.badge { display: inline-block; min-width: 20px; padding: 1px 6px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 12px; text-align: center; }
.inbox-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.inbox-head .filters { margin: 0; flex-wrap: wrap; }
.msg { padding: 14px 0; border-bottom: 1px solid var(--line); }
.msg:last-child { border-bottom: 0; }
.msg p { margin: 6px 0; }
.msg .meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 13px; color: var(--ink-2); }
.msg.unread p { font-weight: 600; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); display: inline-block; }
.kind { font-weight: 700; color: var(--ink); }
.followup { margin-top: 6px; font-size: 14px; background: #fff7e6; border: 1px solid #f6dfae; border-radius: 8px; padding: 6px 10px; display: inline-block; }
.msg-actions { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.linkbox { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; background: var(--bg); border-radius: 10px; padding: 10px 12px; }
.linkbox code { flex: 1; min-width: 200px; word-break: break-all; }
.qr-row { display: flex; gap: 16px; align-items: center; margin-top: 16px; flex-wrap: wrap; }
.feat-list { list-style: none; padding: 0; margin: 0; }
.feat-list li { padding: 8px 0; border-bottom: 1px solid var(--line); display: flex; gap: 10px; align-items: baseline; }
.feat-list li:last-child { border-bottom: 0; }
.feat-list .yes { color: var(--good); font-weight: 700; width: 16px; }
.feat-list .no { color: var(--ink-3); width: 16px; }
.feat-list .muted { margin-left: auto; }
.st { color: var(--star); letter-spacing: 1px; font-size: 15px; }
.st .off { color: #dedbd4; }

/* ---------- step 2: per-client design (variables come from design_css) ---------- */
body.customer { background: var(--page-bg, var(--bg)); font-family: var(--font, inherit); }
body.customer input, body.customer textarea, body.customer button, body.customer select { font-family: inherit; }
body.customer .btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent, #fff);
  border-radius: var(--btn-radius, 10px); padding: var(--btn-pad, 14px); font-size: var(--btn-fs, 17px); }
body.customer .btn.google { border-radius: var(--btn-radius, 10px); padding: var(--btn-pad, 13px); font-size: var(--btn-fs, 16px); }
body.customer .btn.social { border-radius: var(--tile-radius, 14px); }
body.customer .tile-link { border-radius: var(--tile-radius, 14px); padding: var(--btn-pad, 14px 16px); font-size: var(--btn-fs, 16px); }
body.customer .tile-link .tl { display: flex; flex-direction: column; }
body.customer .chip span { border-radius: var(--btn-radius, 999px); }
body.customer .chip input:checked + span, body.customer .pchip.on, body.customer .person,
body.customer .wname.hit, body.customer .wname.won { color: var(--on-accent, #fff); }
body.customer .logo, body.customer .check { color: var(--on-accent, #fff); }
body.customer .google-box, body.customer .sbox { border-radius: var(--tile-radius, 14px); }
.logo-img { width: 76px; height: 76px; object-fit: contain; border-radius: 16px; display: block; margin: 0 auto 10px; background: #fff; }
/* grid layout: two tiles per row; Wi-Fi and social links stay full width */
body.layout-grid .tiles-col { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
body.layout-grid .tile-link:not(.wifi) { flex-direction: column; align-items: flex-start; gap: 8px; }
body.layout-grid .tile-link .arrow { display: none; }
body.layout-grid .tile-link.wifi, body.layout-grid .socials-block { grid-column: 1 / -1; }
.socials-block .section-h { margin-top: 10px; }

/* ---------- step 2: owner editor ---------- */
.editor { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.preview { position: sticky; top: 12px; }
.preview iframe { width: 340px; height: 640px; border: 1px solid var(--line); border-radius: 26px; background: #fff; }
.preview .hint { text-align: center; }
.opt-row { display: flex; gap: 6px; flex-wrap: wrap; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; }
.opt span { display: inline-block; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; cursor: pointer; font-size: 14px; }
.opt input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.opt input:focus-visible + span { outline: 2px solid var(--series); outline-offset: 2px; }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.swatch input { position: absolute; opacity: 0; }
.swatch span { display: block; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); cursor: pointer; }
.swatch input:checked + span { outline: 3px solid var(--ink); outline-offset: 2px; }
.field { margin: 14px 0; }
.field > label, .field > .lbl { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.logo-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.logo-row img { width: 64px; height: 64px; object-fit: contain; border-radius: 12px; border: 1px solid var(--line); background: #fff; }
.order-list { list-style: none; padding: 0; margin: 0; }
.order-list li { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.order-list li:last-child { border-bottom: 0; }
.order-list .name { flex: 1; }
.order-list .off { color: var(--ink-3); font-size: 13px; }
.text-group { margin-bottom: 18px; }
.text-group summary { font-weight: 700; font-size: 16px; cursor: pointer; padding: 6px 0; }
.text-row { display: grid; grid-template-columns: 200px 1fr; gap: 10px; align-items: center; padding: 6px 0; }
.text-row label { font-size: 14px; color: var(--ink-2); }
.text-row input.changed { border-color: var(--accent); background: #fffaf5; }
@media (max-width: 900px) {
  .editor { grid-template-columns: 1fr; }
  .preview { position: static; }
  .preview iframe { width: 100%; max-width: 360px; display: block; margin: 0 auto; }
  .text-row { grid-template-columns: 1fr; gap: 4px; }
}
.kinds { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 10px; border-bottom: 1px solid var(--line); }
.kinds a { padding: 8px 12px; text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: 15px; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.kinds a.on { color: var(--ink); border-bottom-color: var(--ink); }
.tag.paused { color: #8a1f1f; border-color: #f3c9c9; background: #fdeeee; font-size: 13px; vertical-align: middle; }
.paused-panel { border-color: #f3c9c9; background: #fffafa; }
.switch-row .muted { font-weight: 400; }

/* ---------- step 3: today's special ---------- */
.specials { margin: 4px 0 16px; }
.specials-label { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); margin-bottom: 6px; }
.special-card { display: flex; gap: 12px; align-items: center; background: #fff; border: 2px solid var(--accent);
  border-radius: var(--tile-radius, 14px); padding: 10px 12px; margin-bottom: 8px; overflow: hidden; }
.special-card img { width: 76px; height: 76px; object-fit: cover; border-radius: calc(var(--tile-radius, 14px) / 1.6); flex: none; }
.special-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.special-text strong { font-size: calc(var(--btn-fs, 16px) + 1px); line-height: 1.25; }
.special-text span { color: var(--ink-2); font-size: 14px; }
.special-row { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.special-row:last-child { border-bottom: 0; }
.special-row img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; flex: none; }
.special-row .grow { flex: 1; min-width: 0; }
.special-row .msg-actions form { display: inline; }
.tag.st-showing { color: var(--good); border-color: color-mix(in srgb, var(--good) 40%, #fff); }
.tag.st-paused, .tag.st-ended { color: var(--ink-3); }
.sched-box { margin-top: 10px; background: var(--bg); border-radius: 10px; padding: 10px 12px; }
input[type=date] { font: inherit; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; background: #fff; }

/* ---------- step 4: hours and location ---------- */
.hours-card { align-items: flex-start; }
.hours-card .grow { gap: 4px; }
.hours-card .is-open { color: var(--good); }
.hours-card .is-closed { color: var(--critical); }
.closure-note { color: #8a5a00; }
.addr { color: var(--ink-2); margin-top: 2px; }
.week summary { cursor: pointer; color: var(--ink-2); font-size: 14px; margin-top: 2px; }
.week .wk { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; padding: 3px 0; color: var(--ink-2); }
.week .wk.today { color: var(--ink); font-weight: 700; }
.hours-btns { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.hours-btns .btn { border-radius: var(--btn-radius, 10px); }
body.layout-grid .tile-link.hours-card { grid-column: 1 / -1; flex-direction: row; }
/* owner hours editor */
.day-row { display: grid; grid-template-columns: 1fr auto; gap: 8px 10px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.day-row .shifts { grid-column: 1 / -1; }
.day-name { font-weight: 600; padding-top: 8px; }
.shifts { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.shifts.is-closed { opacity: .35; pointer-events: none; }
.shift { display: flex; gap: 8px; align-items: center; flex-wrap: nowrap; }
.shift[hidden], .add-shift[hidden] { display: none; }
input[type=time] { width: 128px; min-width: 0; flex: 0 0 auto; font: inherit; border: 1px solid var(--line); border-radius: 10px; padding: 7px 8px; background: #fff; }
.closure-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.closure-form { margin-top: 14px; background: var(--bg); border-radius: 12px; padding: 12px 14px; }
@media (max-width: 380px) { input[type=time] { width: 112px; } }

/* ===== v5: iPhone-style glass + motion for admin and log-in pages ===== */
body:not(.customer):not(.plain) {
  background:
    radial-gradient(900px 620px at -5% -10%, rgba(126,170,255,.38), transparent 60%),
    radial-gradient(760px 560px at 105% 5%, rgba(255,150,190,.3), transparent 60%),
    radial-gradient(900px 700px at 60% 110%, rgba(120,230,190,.3), transparent 60%), #f3f3f7;
  background-attachment: fixed; min-height: 100vh;
}
body:not(.customer):not(.plain) .top {
  position: sticky; top: 8px; z-index: 20; margin: 8px auto 0; max-width: 1160px; border-radius: 20px;
  background: rgba(255,255,255,.55); border: 1px solid rgba(255,255,255,.85);
  -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%);
  box-shadow: 0 1px 2px rgba(20,20,50,.04), 0 6px 18px rgba(20,20,50,.06);
}
body:not(.customer):not(.plain) .panel, body:not(.customer):not(.plain) .tile {
  background: rgba(255,255,255,.55); border: 1px solid rgba(255,255,255,.85); border-radius: 22px;
  -webkit-backdrop-filter: blur(26px) saturate(180%); backdrop-filter: blur(26px) saturate(180%);
  box-shadow: 0 1px 2px rgba(20,20,50,.04), 0 10px 30px rgba(20,20,50,.07), inset 0 1px 0 rgba(255,255,255,.8);
  animation: gIn .45s cubic-bezier(.2,.8,.2,1) both;
}
body:not(.customer):not(.plain) .panel:nth-of-type(2) { animation-delay: .05s }
body:not(.customer):not(.plain) .panel:nth-of-type(3) { animation-delay: .1s }
body:not(.customer):not(.plain) .panel:nth-of-type(n+4) { animation-delay: .15s }
@keyframes gIn { from { opacity: 0; transform: translateY(10px) } to { opacity: 1; transform: none } }
body:not(.customer):not(.plain) input, body:not(.customer):not(.plain) select, body:not(.customer):not(.plain) textarea {
  background: rgba(255,255,255,.75); border: 1px solid rgba(20,20,40,.1); border-radius: 12px;
  transition: box-shadow .2s, border-color .2s;
}
body:not(.customer):not(.plain) input:focus, body:not(.customer):not(.plain) select:focus, body:not(.customer):not(.plain) textarea:focus {
  outline: none; border-color: rgba(42,120,214,.6); box-shadow: 0 0 0 4px rgba(42,120,214,.15);
}
body:not(.customer):not(.plain) .btn {
  border-radius: 12px; background: rgba(255,255,255,.7); border: 1px solid rgba(20,20,40,.1);
  transition: transform .2s cubic-bezier(.3,1.45,.5,1), box-shadow .2s ease, background .2s ease;
}
body:not(.customer):not(.plain) .btn.primary { background: var(--accent); border-color: transparent; box-shadow: 0 6px 18px rgba(194,65,12,.3) }
body:not(.customer):not(.plain) .btn.link { background: none; border: none }
@media (hover: hover) {
  body:not(.customer):not(.plain) .btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(20,20,50,.12) }
  body:not(.customer):not(.plain) .rest-row { transition: transform .25s cubic-bezier(.3,1.45,.5,1), background .2s }
  body:not(.customer):not(.plain) .rest-row:hover { transform: translateX(4px); background: rgba(255,255,255,.45); border-radius: 12px }
}
body:not(.customer):not(.plain) .btn:active { transform: scale(.96); transition-duration: .08s }
@media (prefers-color-scheme: dark) {
  body:not(.customer):not(.plain) { --ink: #f1efe8; --ink-2: #b4b2a9; --ink-3: #888780; --line: rgba(255,255,255,.12); --surface: rgba(255,255,255,.06); --card: rgba(255,255,255,.06);
    color: var(--ink);
    background: radial-gradient(900px 620px at -5% -10%, rgba(70,100,255,.35), transparent 60%),
      radial-gradient(760px 560px at 105% 5%, rgba(220,60,140,.25), transparent 60%),
      radial-gradient(900px 700px at 60% 110%, rgba(30,180,140,.22), transparent 60%), #0f1016; background-attachment: fixed; }
  body:not(.customer):not(.plain) .top, body:not(.customer):not(.plain) .panel, body:not(.customer):not(.plain) .tile { background: rgba(40,42,54,.5); border-color: rgba(255,255,255,.12); box-shadow: 0 10px 30px rgba(0,0,0,.35) }
  body:not(.customer):not(.plain) input, body:not(.customer):not(.plain) select, body:not(.customer):not(.plain) textarea, body:not(.customer):not(.plain) .btn { background: rgba(255,255,255,.07); color: var(--ink); border-color: rgba(255,255,255,.14) }
  body:not(.customer):not(.plain) .rest-row:hover { background: rgba(255,255,255,.06) }
}
@media (prefers-reduced-motion: reduce) { body:not(.customer):not(.plain) * { animation: none !important; transition: none !important } }

/* ===== v6: log-in pages ===== */
body.authpage .top{display:none}
.auth{max-width:1080px;margin:0 auto;padding:6vh 20px 20px;display:grid;grid-template-columns:1.15fr .85fr;gap:28px;align-items:center;min-height:86vh}
.auth.solo{grid-template-columns:minmax(0,440px);justify-content:center}
.auth-brand{display:flex;align-items:center;gap:10px;font-weight:700;font-size:22px;letter-spacing:-.01em}
.auth-brand em{font-style:normal;font-size:12px;font-weight:600;padding:2px 8px;border-radius:999px;background:rgba(214,51,108,.12);color:#c2255c}
.auth-brand.sm{font-size:18px}.auth-logo{width:42px;height:42px;flex:0 0 auto;filter:drop-shadow(0 6px 14px rgba(214,51,108,.3))}
.auth-brand.sm .auth-logo{width:34px;height:34px}
.auth-hero h1{font-size:44px;line-height:1.05;letter-spacing:-.03em;margin:22px 0 12px;font-weight:750}
.auth-lead{font-size:17px;line-height:1.5;color:var(--ink-2);max-width:520px;margin:0 0 18px}
.auth-points{list-style:none;padding:0;margin:0;display:grid;gap:10px;max-width:520px}
.auth-points li{display:flex;gap:12px;align-items:flex-start;padding:12px 14px;border-radius:16px;background:rgba(255,255,255,.5);border:1px solid rgba(255,255,255,.8);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);font-size:14px;line-height:1.4;animation:gIn .5s cubic-bezier(.2,.8,.2,1) both}
.auth-points li:nth-child(2){animation-delay:.08s}.auth-points li:nth-child(3){animation-delay:.16s}
.auth-points li>span{font-size:20px;line-height:1}.auth-points b{font-weight:650}
.auth-card{position:relative}
.auth-cardin{padding:28px;border-radius:26px;background:rgba(255,255,255,.62);border:1px solid rgba(255,255,255,.9);-webkit-backdrop-filter:blur(28px) saturate(180%);backdrop-filter:blur(28px) saturate(180%);box-shadow:0 2px 6px rgba(20,20,50,.05),0 24px 60px rgba(20,20,50,.14),inset 0 1px 0 rgba(255,255,255,.9);animation:gIn .55s cubic-bezier(.2,.8,.2,1) both}
.auth-cardin h2{font-size:24px;margin:18px 0 4px;letter-spacing:-.01em}
.auth-cardin .muted{margin:0 0 16px}
.auth-cardin .code-input{font-size:22px;letter-spacing:.12em;text-align:center;height:54px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace}
.auth-go{width:100%;height:48px;margin-top:14px;font-size:16px;border-radius:14px!important;display:flex;align-items:center;justify-content:center;gap:8px}
.auth-go span{transition:transform .2s cubic-bezier(.3,1.45,.5,1)}.auth-go:hover span{transform:translateX(4px)}
.auth-secure{display:flex;gap:6px;align-items:center;font-size:12px;color:var(--ink-2);margin:14px 0 0}
.auth-foot{text-align:center;font-size:12px;color:var(--ink-3);padding:10px 0 24px}
@media (max-width:860px){.auth{grid-template-columns:1fr;padding-top:3vh;gap:18px;min-height:0}.auth-hero h1{font-size:32px;margin-top:16px}.auth-lead{font-size:15px}.auth-card{order:-1}.auth-hero .auth-brand{display:none}}
@media (prefers-color-scheme:dark){
  .auth-points li,.auth-cardin{background:rgba(40,42,54,.55);border-color:rgba(255,255,255,.12)}
  .auth-brand em{background:rgba(250,162,193,.15);color:#faa2c1}
}
