:root {
  --bg: #f6f3f0; --card: #fff; --ink: #24201f; --muted: #7a716c; --line: #e4ddd7;
  --accent: #6d3b4f; --accent-ink: #fff; --accent-soft: #f3e8ec;
  --ok: #2e7d5b; --warn: #b4690e; --bad: #b3261e; --bad-soft: #fbeceb; --warn-soft: #fdf3e2; --ok-soft: #e7f4ee;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body { font: 16px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; color: var(--ink); background: var(--bg); }
h1, h2, h3 { margin: 0 0 12px; line-height: 1.2; }
h1 { font-size: 28px; } h2 { font-size: 20px; } h3 { font-size: 16px; }
[hidden] { display: none !important; }
.muted { color: var(--muted); } .error { color: var(--bad); } .right { text-align: right; } .nowrap { white-space: nowrap; }
button, input, select, textarea { font: inherit; color: inherit; }
input, select, textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.btn { display: inline-block; border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 10px 16px; cursor: pointer; font-weight: 600; text-decoration: none; color: var(--ink); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.danger { color: var(--bad); }
.btn.big { padding: 18px 22px; font-size: 20px; width: 100%; border-radius: 14px; }
.btn.small { padding: 6px 10px; font-size: 14px; }
.btn:disabled { opacity: .45; cursor: default; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }

/* login */
body.login { display: flex; align-items: center; justify-content: center; padding: 20px; }
.login-card { width: 100%; max-width: 380px; }
.login-card input { margin: 8px 0 14px; font-size: 20px; }

/* top bar */
.bar { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px; background: var(--accent); color: #fff; }
.brand { font-size: 20px; font-weight: 700; }
.pill { border: 0; border-radius: 999px; padding: 10px 18px; font-weight: 600; background: #fff; color: var(--accent); margin-left: 10px; cursor: pointer; }
.pill.ghost { background: rgba(255,255,255,.18); color: #fff; }
.pill.on { background: #c9f0dc; color: #14573b; }

/* tablet */
body.tablet main { padding: 24px; max-width: 1200px; margin: 0 auto; }
.step { color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; font-size: 13px; margin-bottom: 4px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); grid-gap: 14px; }
.tile { border: 1px solid var(--line); background: #fff; border-radius: 16px; padding: 26px 14px; font-size: 22px; font-weight: 600; cursor: pointer; text-align: center; }
.tile:active, .shade:active, .row-btn:active { background: var(--accent-soft); }
.tile small { display: block; font-size: 14px; font-weight: 400; color: var(--muted); margin-top: 4px; }
.search { font-size: 22px; padding: 16px 18px; margin-bottom: 14px; }
.rows .row-btn { display: flex; justify-content: space-between; align-items: center; width: 100%; text-align: left; border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 16px 18px; margin-bottom: 8px; font-size: 20px; cursor: pointer; }
.row-btn.new { border-style: dashed; border-color: var(--accent); color: var(--accent); font-weight: 600; }
.row-btn small { color: var(--muted); font-size: 14px; }
.sub-actions { margin-top: 26px; text-align: center; }
.mix { display: grid; grid-template-columns: 1.25fr 1fr; grid-gap: 20px; align-items: start; }
@media (max-width: 760px) { .mix { grid-template-columns: 1fr; } }
.chips { margin: 0 -4px 10px; }
.chip { display: inline-block; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 10px 16px; margin: 4px; cursor: pointer; font-weight: 600; }
.chip.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.shades { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); grid-gap: 10px; max-height: 52vh; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 2px; }
.shade { border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 14px 8px; font-size: 18px; font-weight: 600; cursor: pointer; text-align: center; }
.shade small { display: block; font-size: 12px; font-weight: 400; color: var(--muted); }
.bowl-line { display: flex; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.bowl-line .what { flex: 1; font-weight: 600; }
.bowl-line .g { font-size: 20px; font-weight: 700; margin: 0 12px; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; background: #fff; cursor: pointer; }
.bowl-line .x { border: 0; background: none; color: var(--bad); font-size: 26px; padding: 0 6px; cursor: pointer; }
.total { display: flex; justify-content: space-between; font-size: 22px; font-weight: 700; padding: 14px 0; }
.last { background: var(--accent-soft); border-radius: 12px; padding: 14px; margin-bottom: 14px; }
.last ul { margin: 6px 0 10px; padding-left: 18px; }
.done { text-align: center; padding: 50px 20px; }
.done .tick { font-size: 80px; line-height: 1; color: var(--ok); }

/* overlay */
.overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(30,20,24,.55); display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 10; }
.sheet { background: #fff; border-radius: 20px; padding: 24px; width: 100%; max-width: 440px; text-align: center; max-height: 96vh; overflow-y: auto; }
.sheet.wide { max-width: 620px; text-align: left; }
.readout { font-size: 64px; font-weight: 700; margin: 10px 0 16px; font-variant-numeric: tabular-nums; }
.readout.dim { color: var(--muted); }
.keys { display: grid; grid-template-columns: repeat(3, 1fr); grid-gap: 10px; margin-bottom: 14px; }
.key { border: 1px solid var(--line); background: #faf8f6; border-radius: 12px; padding: 16px 0; font-size: 26px; font-weight: 600; cursor: pointer; }
.key:active { background: var(--accent-soft); }
.sheet .actions { display: flex; }
.sheet .actions .btn { flex: 1; margin: 0 5px; padding: 16px; font-size: 18px; }
.linkish { background: none; border: 0; color: var(--accent); text-decoration: underline; margin-top: 14px; cursor: pointer; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: #24201f; color: #fff; padding: 14px 22px; border-radius: 12px; z-index: 20; max-width: 90%; }

/* admin */
body.admin { display: flex; min-height: 100%; }
.side { width: 210px; background: #2b2226; color: #fff; padding: 18px 12px; flex-shrink: 0; }
.side .brand { padding: 0 10px 16px; }
.side a { display: block; color: #d9cfd3; text-decoration: none; padding: 10px 12px; border-radius: 8px; margin-bottom: 2px; font-weight: 600; }
.side a.on { background: var(--accent); color: #fff; }
.side a .badge { float: right; }
.content { flex: 1; padding: 26px; min-width: 0; }
@media (max-width: 800px) { body.admin { display: block; } .side { width: auto; } .side a { display: inline-block; } }
.head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.head h1 { margin: 0; }
.head .tools > * { margin-left: 8px; width: auto; display: inline-block; vertical-align: middle; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); grid-gap: 14px; margin-bottom: 20px; }
.stat .n { font-size: 30px; font-weight: 700; } .stat .l { color: var(--muted); font-size: 14px; }
table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: #faf7f5; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
tr.off td { color: var(--muted); }
.badge { display: inline-block; border-radius: 999px; padding: 2px 10px; font-size: 13px; font-weight: 600; background: #eee; }
.badge.ok { background: var(--ok-soft); color: var(--ok); } .badge.warn { background: var(--warn-soft); color: var(--warn); } .badge.bad { background: var(--bad-soft); color: var(--bad); }
.notice { border-radius: 12px; padding: 12px 16px; margin-bottom: 16px; background: var(--warn-soft); color: #6b3f06; }
.notice.bad { background: var(--bad-soft); color: var(--bad); }
.field { margin-bottom: 14px; } .field label { display: block; font-weight: 600; margin-bottom: 4px; } .field .hint { color: var(--muted); font-size: 13px; margin-top: 3px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; grid-gap: 0 16px; }
.section { margin-bottom: 26px; }
.table-wrap { overflow-x: auto; }

/* admin: insights */
.side { display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; align-self: flex-start; }
.nav-label { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #a58f98; padding: 14px 12px 4px; }
.nav-foot { margin-top: auto; padding-top: 18px; }
@media (max-width: 800px) { .side { display: block; position: static; height: auto; } .nav-label { display: none; } .nav-foot { display: inline; } }
.stat .l { font-weight: 600; } .stat .n { margin: 2px 0; font-variant-numeric: tabular-nums; } .stat .s { color: var(--muted); font-size: 14px; }
.stat.link { text-decoration: none; color: inherit; display: block; } .stat.link:hover { border-color: var(--accent); }
.delta { font-size: 13px; font-weight: 600; margin-top: 8px; } .delta.good { color: var(--ok); } .delta.poor { color: var(--bad); } .delta .muted { font-weight: 400; }
.cols { display: grid; grid-template-columns: 1fr 1fr; grid-gap: 14px; margin-bottom: 20px; align-items: start; }
@media (max-width: 1000px) { .cols { grid-template-columns: 1fr; } }
.card-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.card-head h2 { margin: 0; } .card-head select { width: auto; padding: 8px 10px; }
.avatar { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 13px; flex-shrink: 0; vertical-align: middle; margin-right: 6px; }
.rank { display: flex; align-items: center; padding: 8px 6px; border-radius: 10px; text-decoration: none; color: inherit; }
.rank:hover, .brand-row:hover { background: #faf7f5; }
.rank-main { flex: 1; min-width: 0; }
.rank-top { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 5px; } .rank-top b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.track { display: block; height: 8px; border-radius: 4px; background: #efe9e5; overflow: hidden; }
.fill { display: block; height: 100%; border-radius: 4px; background: var(--accent); }
.brand-row { display: block; width: 100%; text-align: left; border: 1px solid transparent; background: none; border-radius: 10px; padding: 10px; cursor: pointer; }
.brand-row.on { border-color: var(--accent); background: var(--accent-soft); }
.tabs { display: inline-flex; background: #efe9e5; border-radius: 10px; padding: 3px; }
.tab { border: 0; background: none; border-radius: 8px; padding: 6px 12px; font-weight: 600; cursor: pointer; color: var(--muted); } .tab.on { background: #fff; color: var(--ink); }
.chart-wrap { position: relative; }
.chart { display: block; width: 100%; height: auto; touch-action: pan-y; }
.chart .grid { stroke: var(--line); stroke-width: 1; } .chart .tick { font-size: 12px; fill: var(--muted); }
.chart .line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.chart .area { fill: var(--accent); opacity: .08; } .chart .cross { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 3 3; }
.chart .dot { fill: var(--accent); stroke: #fff; stroke-width: 2; }
.tip { position: absolute; transform: translate(-50%, calc(-100% - 12px)); background: var(--ink); color: #fff; padding: 6px 10px; border-radius: 8px; font-size: 13px; pointer-events: none; white-space: nowrap; text-align: center; }
tr.click { cursor: pointer; } tr.click:hover td { background: #faf7f5; } tr.click:focus { outline: 2px solid var(--accent); outline-offset: -2px; }
.overlay.side-right { justify-content: flex-end; align-items: stretch; padding: 0; }
.drawer { background: #fff; width: 100%; max-width: 420px; overflow-y: auto; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; background: #faf7f5; border-bottom: 1px solid var(--line); font-weight: 600; }
.drawer-head .x { border: 0; background: none; font-size: 26px; line-height: 1; cursor: pointer; color: var(--muted); }
.drawer-body { padding: 20px; }
.kv { display: grid; grid-template-columns: auto 1fr; grid-gap: 8px 16px; margin: 0 0 16px; } .kv dt { color: var(--muted); } .kv dd { margin: 0; text-align: right; font-weight: 600; }
table.plain { border: 0; border-radius: 0; margin-bottom: 16px; } table.plain th { background: none; padding-left: 0; } table.plain td { padding-left: 0; } table.plain .num { padding-right: 0; }

/* admin: sleeker sidebar */
.side { width: 228px; background: #241c20; padding: 20px 12px 14px; }
.side .brand { padding: 0 10px 10px; font-size: 18px; letter-spacing: -.01em; }
.side a { display: flex; align-items: center; gap: 11px; padding: 8px 10px; margin-bottom: 1px; font-size: 14.5px; font-weight: 500; color: #cdbfc5; border-radius: 9px; transition: background .12s, color .12s; }
.side a:hover { background: rgba(255,255,255,.06); color: #fff; }
.side a.on { background: var(--accent); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.08) inset; }
.side a svg { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; opacity: .85; }
.nav-label { font-size: 10.5px; letter-spacing: .1em; color: #8f7a83; padding: 16px 10px 5px; }
.nav-foot { border-top: 1px solid rgba(255,255,255,.08); padding-top: 10px; }
@media (max-width: 800px) { .side { width: auto; padding: 12px; } .side a { display: inline-flex; } .nav-foot { border: 0; } }
.content { padding: 28px 32px; max-width: 1500px; }
h1 { letter-spacing: -.02em; } h2 { letter-spacing: -.01em; }
.card { box-shadow: 0 1px 2px rgba(36,32,31,.04); }

/* services and allowances */
h3.cat { margin: 22px 0 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-size: 13px; }
.allow { border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; background: var(--ok-soft); color: #14573b; }
.allow.over { background: var(--warn-soft); color: #6b3f06; }

/* front desk */
.fd-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; margin-bottom: 10px; }
.fd-row.quiet { background: transparent; }
.fd-who { flex: 1; min-width: 200px; font-size: 20px; } .fd-who small { display: block; font-size: 14px; color: var(--muted); margin-top: 2px; }
.fd-amt { font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; } .fd-amt.muted { font-size: 16px; font-weight: 400; }
.fd-row.quiet .fd-amt { color: var(--muted); }
.fd-act .btn { padding: 12px 16px; } .fd-state { font-weight: 600; color: var(--ok); margin-right: 6px; }

/* match staff to Xero */
.match { max-height: 60vh; overflow-y: auto; margin-bottom: 16px; }
.match-row { display: grid; grid-template-columns: minmax(150px, 1fr) minmax(200px, 1.4fr) 110px; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.match-row select { padding: 9px 10px; }
@media (max-width: 640px) { .match-row { grid-template-columns: 1fr; } }

/* keypad: fixed-height readout so the keys never move */
.readout { height: 90px; line-height: 90px; margin: 6px 0 14px; overflow: hidden; white-space: nowrap; }
.readout.pin { letter-spacing: .18em; }
/* colour swatches */
.sw { display: inline-block; width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(36,32,31,.18); vertical-align: -4px; margin-right: 8px; flex-shrink: 0; }
.sw.none { background: repeating-linear-gradient(45deg, #eee, #eee 3px, #fff 3px, #fff 6px); }
.swl { display: flex; align-items: flex-start; } .swl .sw { margin-top: 2px; vertical-align: baseline; }
.shade .sw { display: block; width: 26px; height: 26px; margin: 0 auto 6px; }
.bowl-line .sw { width: 22px; height: 22px; margin-right: 10px; }
.last ul { list-style: none; padding-left: 0; } .last li { margin: 4px 0; }

/* mixing screen: fills the tablet, only the shade grid and the bowl list scroll */
@media (min-width: 761px) {
  body.tablet { height: 100vh; height: 100dvh; display: flex; flex-direction: column; }
  body.tablet main { flex: 1; width: 100%; }
  body.tablet main.mixing { min-height: 0; overflow: hidden; display: flex; flex-direction: column; padding: 14px 20px 16px; max-width: none; }
  main.mixing .mix { flex: 1; min-height: 0; grid-template-columns: minmax(0, 1.5fr) minmax(320px, 1fr); align-items: stretch; }
  main.mixing .picker, main.mixing .mix > .card { min-height: 0; display: flex; flex-direction: column; }
  main.mixing .shades { flex: 1; min-height: 0; max-height: none; align-content: start; }
  main.mixing .bowl-scroll { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; margin: -4px -6px 8px; padding: 4px 6px; }
  main.mixing .card { padding: 16px 18px; }
}
.picker .search { font-size: 18px; padding: 12px 14px; margin-bottom: 10px; }
.tabs-row { display: flex; gap: 8px; overflow-x: auto; -webkit-overflow-scrolling: touch; padding: 2px 2px 10px; scrollbar-width: none; flex-shrink: 0; }
.tabs-row::-webkit-scrollbar { display: none; }
.tabs-row .chip { margin: 0; white-space: nowrap; flex-shrink: 0; }
.tabs-row.sub { flex-wrap: wrap; overflow: visible; padding-bottom: 12px; }
.chip.small { padding: 7px 13px; font-size: 14px; background: transparent; }
.chip.small.on { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); }
.shades { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); grid-gap: 8px; }
.shade { padding: 10px 6px; font-size: 17px; }
.lvl { grid-column: 1 / -1; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 8px 2px 0; }
.lvl:first-child { padding-top: 0; }

/* wordmark */
.brand { letter-spacing: -.02em; }
.brand small { font-size: 13px; font-weight: 500; opacity: .75; letter-spacing: 0; }
.side .brand { font-size: 24px; } .side .brand small { display: block; margin-top: 2px; color: #a58f98; opacity: 1; }
.bar .brand { font-size: 24px; } .bar .brand small { margin-left: 10px; }
.wordmark { font-size: 44px; letter-spacing: -.03em; margin-bottom: 6px; color: var(--accent); }
.wordmark small { display: block; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 2px; }

/* logo */
.brand img { display: block; }
.bar .brand { display: flex; align-items: center; }
.wordmark img { display: block; } .wordmark .login-mark { margin-bottom: 14px; } .wordmark small { margin-top: 8px; }

/* sign in / sign up */
.login-card .tabs.auth-tabs { display: flex; margin: 6px 0 18px; }
.auth-tabs .tab { flex: 1; padding: 10px 12px; font-size: 15px; }
.auth-form .muted { margin-top: 0; }
.lbl { display: block; font-weight: 600; font-size: 15px; margin-top: 4px; }
.login-card input[type=text], .login-card input[type=email], .login-card input[type=password], .login-card input:not([type]) { margin: 6px 0 12px; font-size: 18px; }
.login-card .hint { color: var(--muted); font-size: 13px; margin: -6px 0 12px; }
.login-card .btn.big { margin-top: 6px; }
.auth-foot { text-align: center; margin: 16px 0 0; font-size: 15px; }
.auth-foot a, .check a { color: var(--accent); }
.signup-card { max-width: 460px; }
.signup-title { font-size: 22px; margin: 4px 0 4px; }
.strength { height: 5px; border-radius: 3px; background: #efe9e5; overflow: hidden; margin: -4px 0 6px; }
.strength span { display: block; height: 100%; width: 0; background: var(--bad); transition: width .2s, background .2s; }
.strength .s1 { background: var(--warn); } .strength .s2 { background: #5f9a6e; } .strength .s3 { background: var(--ok); }
.choice { display: flex; gap: 8px; margin: 8px 0 16px; }
.choice label { flex: 1; cursor: pointer; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span { display: block; text-align: center; border: 1px solid var(--line); border-radius: 10px; padding: 11px 6px; font-weight: 600; background: #fff; }
.choice input:checked + span { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 1px; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 14px; font-size: 15px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; flex-shrink: 0; accent-color: var(--accent); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.btn .tare-loader { width: 22px; height: 22px; vertical-align: -5px; margin-right: 6px; filter: brightness(0) invert(1); }

/* back office: trial, paused, set-up */
.trial-tag { display: block; margin-top: 8px; font-size: 12px; font-weight: 600; letter-spacing: .01em; color: #e8cfa9; }
#nav-setup { margin: 4px 0 2px; background: rgba(217,168,108,.14); color: #f1dcbd; }
#nav-setup.on { background: var(--accent); color: #fff; }
.paused { max-width: 520px; margin: 60px auto; text-align: center; padding: 36px 28px; }
.paused img { margin-bottom: 14px; }
.checklist .track { margin: 0 0 6px; }
.check-list { list-style: none; margin: 8px 0 4px; padding: 0; }
.check-list li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.check-list li:last-child { border-bottom: 0; }
.check-list .what { flex: 1; min-width: 0; } .check-list .what small { display: block; color: var(--muted); font-size: 13px; }
.stepno { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--line); color: var(--muted); font-size: 13px; font-weight: 700; flex-shrink: 0; background: #fff; }
.check-list li.is-done .stepno, .wiz-step.is-done .stepno { background: var(--ok-soft); border-color: var(--ok-soft); color: var(--ok); }
.check-list li.is-done .what b { color: var(--muted); font-weight: 600; }
.wizard { display: grid; grid-template-columns: 240px minmax(0, 720px); gap: 20px; align-items: start; }
@media (max-width: 900px) { .wizard { grid-template-columns: 1fr; } .wiz-steps { display: flex; overflow-x: auto; gap: 6px; } .wiz-step span:last-child { white-space: nowrap; } }
.wiz-steps { display: flex; flex-direction: column; gap: 4px; }
.wiz-step { display: flex; align-items: center; gap: 10px; border: 0; background: none; padding: 8px 10px; border-radius: 10px; text-align: left; cursor: pointer; font-weight: 600; color: var(--muted); }
.wiz-step:hover { background: #efe9e5; }
.wiz-step.on { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(36,32,31,.06); }
.wiz-step.on .stepno { border-color: var(--accent); color: var(--accent); }
.wiz-step.skipped .stepno { border-style: dashed; }
.wiz-card { padding: 26px 28px; }
.wiz-card h1 { margin-bottom: 14px; }
.wiz-card p { margin: 0 0 14px; }
.wiz-actions { display: flex; align-items: center; gap: 8px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.wiz-actions .grow { flex: 1; }
.wiz-rows { display: grid; gap: 8px; margin-bottom: 4px; }
.wiz-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 8px; }
.code-box { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; align-items: baseline; background: var(--accent-soft); border-radius: 12px; padding: 16px 18px; margin: 0 0 14px; }
.code-box b { font-size: 22px; letter-spacing: .04em; font-variant-numeric: tabular-nums; word-break: break-all; }
.howto { margin: 0 0 14px; padding-left: 22px; } .howto li { margin: 6px 0; }
.team h3 { margin: 22px 0 10px; }
.team-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.team-grid h3 { margin-top: 4px; }
@media (max-width: 800px) { .team-grid { grid-template-columns: 1fr; } }
.team-add { margin-top: 12px; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.plan { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.plan.on { border-color: var(--accent); background: var(--accent-soft); }
.plan b { display: block; } .plan .price { display: block; font-size: 26px; font-weight: 700; margin: 4px 0 2px; } .plan small { display: block; color: var(--muted); font-size: 13px; }

/* platform owner page */
body.owner { min-height: 100%; }
.owner-main { padding: 28px 32px; max-width: 1500px; }
.owner-logo { vertical-align: -6px; margin-right: 8px; }
.owner-table td { vertical-align: middle; }
.owner-actions .acts { display: flex; flex-wrap: wrap; gap: 6px; min-width: 250px; }
.owner-salon { min-width: 220px; }
form.inline { display: inline-flex; gap: 6px; align-items: center; margin: 0; }
form.inline input[type=date] { width: auto; padding: 5px 8px; font-size: 14px; }
/* tall sign-up cards must scroll, not be clipped at the top */
body.login { height: auto; min-height: 100%; align-items: flex-start; }
body.login > .login-card { margin: auto; }
