/* Double Dot Home Detailers · app styles
   Linen ground, teal and terracotta, Fraunces headings, Jost text, Caveat notes. */

@font-face { font-family: 'Jost'; font-weight: 400; font-display: swap; src: url('../fonts/jost-400.woff2') format('woff2'); }
@font-face { font-family: 'Jost'; font-weight: 500; font-display: swap; src: url('../fonts/jost-500.woff2') format('woff2'); }
@font-face { font-family: 'Jost'; font-weight: 600; font-display: swap; src: url('../fonts/jost-600.woff2') format('woff2'); }
@font-face { font-family: 'Fraunces'; font-weight: 500; font-display: swap; src: url('../fonts/fraunces-500.woff2') format('woff2'); }
@font-face { font-family: 'Fraunces'; font-weight: 600; font-display: swap; src: url('../fonts/fraunces-600.woff2') format('woff2'); }
@font-face { font-family: 'Caveat'; font-weight: 700; font-display: swap; src: url('../fonts/caveat-700.woff2') format('woff2'); }

:root {
  --bg: #F5EFE6; --card: #FFFCF7; --ink: #22201C; --muted: #5E574D; --muted-2: #4F4A42;
  --teal: #164B47; --teal-2: #2C6B66; --sage: #DCE7E1; --peach: #F6DCCB; --butter: #F1E5C8; --sand: #E9E0D2; --sand-2: #EFE7DA;
  --terra: #A84F2C; --terra-ink: #8A3F22; --terra-dot: #C8643C; --gold-ink: #6B5214;
  --line: #D9CDBB; --field: #978A75; --dark: #22201C; --dark-2: #4A4640; --on-dark: #FFFCF7; --on-dark-2: #CFC6B8;
  --display: 'Fraunces', Georgia, serif; --body: 'Jost', system-ui, -apple-system, 'Segoe UI', sans-serif; --script: 'Caveat', cursive;
  --shadow: 0 6px 18px rgba(70, 50, 30, .07); --float: 0 12px 30px rgba(34, 32, 28, .25);
  --r: 22px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--teal); }
svg { flex: none; }
:focus-visible { outline: 3px solid var(--terra-dot); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Layout ---------- */
.app { max-width: 480px; margin: 0 auto; min-height: 100dvh; display: flex; flex-direction: column; position: relative; }
.screen { flex: 1; display: flex; flex-direction: column; gap: 14px; padding: 8px 18px 130px; outline: none; }
.screen.no-bar { padding-bottom: 40px; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.stack-s { display: flex; flex-direction: column; gap: 6px; }
.row { display: flex; align-items: center; gap: 10px; }
.row.gap { gap: 10px; }
.row.between { justify-content: space-between; }
.row.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.center { text-align: center; }
.loading { color: var(--muted); padding: 40px 0; text-align: center; }

/* ---------- Header ---------- */
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 18px 18px 8px; gap: 10px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); }
.logo { width: 42px; height: 32px; }
.brand-name { display: flex; flex-direction: column; line-height: 1; }
.brand-name b { font-family: var(--script); font-weight: 700; font-size: 27px; color: var(--teal); }
.brand-name small { font-size: 9px; font-weight: 600; letter-spacing: 2.6px; }
.icon-btn { width: 46px; height: 46px; border-radius: 50%; background: var(--sage); display: inline-flex; align-items: center; justify-content: center; border: none; cursor: pointer; text-decoration: none; color: var(--teal); flex: none; }
.icon-btn svg, .btn svg, .nav a svg, .ico svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn.light { background: var(--card); }
.icon-btn.sm { width: 44px; height: 44px; }

.stephead { display: flex; flex-direction: column; gap: 10px; padding: 14px 18px 4px; }
.stephead .row { justify-content: space-between; }
.progress { display: flex; align-items: center; gap: 10px; }
.houses { display: flex; gap: 4px; }
.house { width: 18px; height: 18px; }
.house .on { fill: var(--teal); }
.house .off { fill: none; stroke: #9AA8A2; stroke-width: 2; }
.house.big { width: 22px; height: 22px; }
.house.big .off { stroke: var(--teal); stroke-width: 1.6; }

/* ---------- Type ---------- */
.script { font-family: var(--script); font-weight: 700; color: var(--terra-ink); font-size: 24px; line-height: 1.05; }
.script.teal { color: var(--teal); }
.script.light { color: var(--peach); }
.script.s { font-size: 21px; }
.h1 { margin: 0; font-family: var(--display); font-weight: 500; font-size: 30px; line-height: 1.1; text-wrap: balance; }
.h1.l { font-size: 33px; }
.h2 { margin: 0; font-family: var(--display); font-weight: 500; font-size: 22px; line-height: 1.15; }
.h3 { margin: 0; font-size: 17px; font-weight: 600; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 1.4px; color: var(--muted); text-transform: uppercase; }
.lede { margin: 0; font-size: 15px; color: var(--muted-2); line-height: 1.5; }
.small { font-size: 13px; }
.muted { color: var(--muted); }
.strong { font-weight: 600; }
.num { font-family: var(--display); font-weight: 600; }
.price-big { font-family: var(--display); font-weight: 600; font-size: 24px; }
.hint { font-size: 13px; color: var(--muted); font-weight: 400; }
.error-text { color: #9A2F14; font-size: 14px; font-weight: 500; margin: 0; }
p { margin: 0; }

/* ---------- Cards ---------- */
.card { background: var(--card); border-radius: var(--r); padding: 16px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 8px; }
.card.flat { box-shadow: none; }
.card.sage { background: var(--sage); box-shadow: none; }
.card.peach { background: var(--peach); box-shadow: none; }
.card.butter { background: var(--butter); box-shadow: none; }
.card.sand { background: var(--sand-2); box-shadow: none; }
.card.teal { background: var(--teal); color: var(--on-dark); box-shadow: none; }
.card.teal .muted, .card.teal .lede { color: #D6E3DF; }
.card.dashed { background: transparent; box-shadow: none; border: 1.5px dashed var(--terra-dot); }
.card.tight { padding: 12px 14px; }
a.card { text-decoration: none; color: inherit; }
.tile { border-radius: 24px; padding: 16px; display: flex; gap: 14px; align-items: center; text-decoration: none; color: inherit; border: none; text-align: left; cursor: pointer; width: 100%; }
.tile .ico { width: 52px; height: 52px; border-radius: 50%; background: var(--card); display: flex; align-items: center; justify-content: center; flex: none; }
.tile .ico svg { width: 26px; height: 26px; stroke-width: 1.7; }
.ico { color: var(--teal); }
.ico.terra { color: var(--terra-ink); }
.ico.gold { color: var(--gold-ink); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 20px; border-radius: 16px; border: none; font-weight: 600; font-size: 16px; cursor: pointer; text-decoration: none; text-align: center; }
.btn:disabled { cursor: not-allowed; opacity: 1; background: var(--dark-2) !important; color: var(--on-dark-2) !important; }
.btn-primary { background: var(--terra); color: var(--on-dark); }
.btn-teal { background: var(--teal); color: var(--on-dark); }
.btn-soft { background: var(--sage); color: var(--teal); }
.btn-light { background: var(--card); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn-ghost.on-dark { color: var(--on-dark); border-color: #6F675B; }
.btn-block { width: 100%; }
.btn-sm { min-height: 44px; padding: 0 14px; font-size: 14px; border-radius: 14px; }
.btn-link { background: none; border: none; color: var(--teal); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; min-height: 40px; padding: 0; font-size: 15px; display: inline-flex; align-items: center; }
.btn-link.terra { color: var(--terra-ink); }

/* ---------- Floating bars ---------- */
.floatbar { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(14px + env(safe-area-inset-bottom)); width: min(452px, calc(100% - 28px)); background: var(--dark); color: var(--on-dark); border-radius: 24px; padding: 10px 10px 10px 18px; display: flex; align-items: center; gap: 12px; box-shadow: var(--float); z-index: 20; }
.floatbar.solo { padding: 10px; }
.floatbar .lbl { font-size: 12px; color: var(--on-dark-2); }
.floatbar .val { font-family: var(--display); font-size: 21px; font-weight: 600; }
.floatbar .btn { min-height: 52px; }
.floatbar.two { padding: 8px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
body.kb-open .floatbar, body.kb-open .nav { position: static; transform: none; margin: 12px auto 20px; }
.nav { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(14px + env(safe-area-inset-bottom)); width: min(448px, calc(100% - 32px)); background: var(--dark); border-radius: 26px; padding: 7px; display: grid; gap: 4px; box-shadow: var(--float); z-index: 20; }
.nav a { min-height: 52px; border-radius: 20px; color: var(--sand); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 12px; font-weight: 500; text-decoration: none; }
.nav a svg { width: 20px; height: 20px; }
.nav a[aria-current="page"] { background: var(--card); color: var(--ink); font-weight: 600; }
.nav.row-icons a { flex-direction: row; gap: 6px; font-size: 14px; }

/* ---------- Choices ---------- */
.seg { background: var(--sand); border-radius: 18px; padding: 4px; display: grid; gap: 4px; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
.seg button { min-height: 46px; border-radius: 14px; border: none; background: transparent; cursor: pointer; font-weight: 600; font-size: 15px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 4px; line-height: 1.2; }
.seg button small { font-size: 12px; font-weight: 500; color: var(--muted); }
.seg button[aria-pressed="true"], .seg button[aria-checked="true"], .seg button[aria-selected="true"] { background: var(--card); box-shadow: 0 2px 8px rgba(70, 50, 30, .12); }
.choice { background: var(--card); border: none; border-radius: 24px; padding: 16px; display: flex; flex-direction: column; gap: 8px; text-align: left; cursor: pointer; box-shadow: var(--shadow); width: 100%; }
.choice[aria-pressed="true"], .choice[aria-checked="true"] { outline: 2px solid var(--teal); outline-offset: -2px; background: var(--sage); }
.choice.peachy[aria-pressed="true"] { background: var(--peach); }
.tick { width: 26px; height: 26px; border-radius: 50%; background: var(--teal); color: var(--on-dark); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.tick svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.pill { font-size: 12px; font-weight: 600; background: var(--card); padding: 5px 10px; border-radius: 10px; display: inline-block; }
.pill.sage { background: var(--sage); color: var(--teal); }
.pill.sand { background: var(--sand-2); }
.pill.peach { background: var(--peach); color: var(--terra-ink); }
.pill.butter { background: var(--butter); color: var(--gold-ink); }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; white-space: nowrap; display: inline-block; }
.chip-ok { background: var(--sage); color: var(--teal); }
.chip-warn { background: var(--butter); color: var(--gold-ink); }
.chip-info { background: var(--peach); color: var(--terra-ink); }
.chip-done { background: var(--teal); color: var(--on-dark); }
.chip-muted { background: var(--sand); color: var(--muted); }

.counter { background: var(--card); border-radius: 22px; padding: 12px 10px 10px; display: flex; flex-direction: column; align-items: center; gap: 6px; box-shadow: var(--shadow); }
.counter .val { width: 46px; text-align: center; font-family: var(--display); font-size: 34px; font-weight: 600; line-height: 1; }
.step-btn { width: 44px; height: 44px; border-radius: 50%; border: none; background: var(--sand); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; color: var(--ink); }
.step-btn.plus { background: var(--teal); color: var(--on-dark); }
.step-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.step-btn:disabled { opacity: .4; cursor: not-allowed; }
.stepper { background: var(--sage); border-radius: 999px; padding: 3px; display: flex; align-items: center; gap: 2px; flex: none; }
.stepper .step-btn { background: transparent; color: var(--teal); }
.stepper .step-btn.plus { background: var(--teal); color: var(--on-dark); }
.stepper .q { width: 24px; text-align: center; font-family: var(--display); font-size: 18px; font-weight: 600; color: var(--teal); }
.item { background: var(--card); border-radius: 18px; padding: 8px 8px 8px 16px; display: flex; align-items: center; gap: 10px; }
.item.on { background: var(--sage); }
.item .grow { display: flex; flex-direction: column; gap: 1px; }
.item .t { font-size: 15px; font-weight: 600; }
.item .s { font-size: 13px; color: var(--muted); }
.item .s b { color: var(--teal); font-weight: 600; }

/* ---------- Day and time ---------- */
.days { display: grid; grid-auto-flow: column; grid-auto-columns: 62px; gap: 6px; overflow-x: auto; padding: 2px 2px 6px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.days::-webkit-scrollbar { display: none; }
.day { scroll-snap-align: start; border: none; border-radius: 18px; background: var(--card); overflow: hidden; display: flex; flex-direction: column; padding: 0; cursor: pointer; text-align: center; }
.day .top { background: var(--sand); font-size: 11px; font-weight: 600; letter-spacing: 1px; padding: 4px 0; }
.day .d { font-family: var(--display); font-size: 24px; font-weight: 600; padding: 6px 0 2px; }
.day .m { font-size: 11px; color: var(--muted); padding-bottom: 6px; }
.day[aria-pressed="true"] { outline: 2px solid var(--teal); outline-offset: -2px; background: var(--sage); }
.day[aria-pressed="true"] .top { background: var(--teal); color: var(--on-dark); }
.day:disabled { opacity: .45; cursor: not-allowed; }
.day:disabled .m { text-decoration: line-through; }
.daybar { position: relative; height: 40px; border-radius: 12px; background: repeating-linear-gradient(90deg, var(--sand-2) 0, var(--sand-2) calc(11.11% - 2px), var(--bg) calc(11.11% - 2px), var(--bg) 11.11%); }
.daybar .blk { position: absolute; top: 4px; bottom: 4px; border-radius: 9px; }
.daybar .you { background: var(--teal); color: var(--on-dark); font-size: 12px; font-weight: 600; display: flex; align-items: center; justify-content: center; white-space: nowrap; overflow: hidden; padding: 0 4px; }
.daybar-scale { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); }
.slots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.slot { min-height: 50px; border-radius: 14px; border: none; background: var(--bg); cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 2px; }
.slot b { font-size: 15px; font-weight: 600; }
.slot small { font-size: 11px; }
.slot[aria-pressed="true"] { background: var(--sage); outline: 2px solid var(--teal); outline-offset: -2px; }
.slot:disabled { background: var(--sand-2); color: #6F675B; cursor: not-allowed; }
.slot:disabled b { text-decoration: line-through; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.input { font-size: 16px; font-weight: 400; min-height: 50px; border-radius: 16px; border: 1.5px solid var(--field); background: var(--card); padding: 0 14px; width: 100%; min-width: 0; }
textarea.input { padding: 12px 14px; min-height: 80px; resize: vertical; }
select.input { 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% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.input.ok { border-color: var(--teal); border-width: 2px; }
.input.bad { border-color: var(--terra); border-width: 2px; }
.input.code { font-size: 22px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; }
.search { position: relative; }
.search svg { position: absolute; left: 14px; top: 15px; width: 19px; height: 19px; fill: none; stroke: var(--muted); stroke-width: 2; }
.search .input { padding-left: 42px; }
.suggest { background: var(--card); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.suggest button { width: 100%; text-align: left; border: none; background: none; padding: 10px 14px; min-height: 52px; cursor: pointer; border-bottom: 1px solid var(--sand-2); display: flex; flex-direction: column; }
.suggest button small { color: var(--muted); font-size: 13px; }
.map { height: 200px; border-radius: 22px; overflow: hidden; background: #E3EBE5; }
.map-fallback { padding: 20px; font-size: 14px; color: var(--muted); }
.switch { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: transparent; border: none; cursor: pointer; padding: 6px 0; min-height: 60px; }
.switch .track { width: 48px; height: 30px; border-radius: 999px; background: #8C7E6C; display: flex; align-items: center; padding: 3px; flex: none; transition: background .15s; }
.switch .track i { width: 24px; height: 24px; border-radius: 50%; background: var(--card); transition: transform .15s; }
.switch[aria-checked="true"] .track { background: var(--teal); }
.switch[aria-checked="true"] .track i { transform: translateX(18px); }
.switch .grow { display: flex; flex-direction: column; }
.switch .grow small { color: var(--muted); font-size: 13px; }
.rows > * { border-bottom: 1px solid var(--sand-2); }
.rows > *:last-child { border-bottom: none; }
.check { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; background: transparent; border: none; padding: 6px 2px; text-align: left; cursor: pointer; font-size: 15px; }
.check .box { width: 26px; height: 26px; border-radius: 8px; border: 2px solid var(--teal); display: flex; align-items: center; justify-content: center; flex: none; color: var(--on-dark); }
.check .box svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.check[aria-checked="true"] .box { background: var(--teal); }
.check[aria-checked="true"] .box svg { opacity: 1; }
.check[aria-checked="true"] .lbl { color: var(--muted); }
.check:disabled { cursor: not-allowed; }
.check:disabled .box { border-color: #B5AB9C; }
.check.locked { color: var(--muted); }

/* ---------- Lists, timelines ---------- */
.sumline { display: flex; justify-content: space-between; gap: 10px; font-size: 15px; }
.sumline.disc { color: var(--terra-ink); font-weight: 600; }
.sumline.incl { color: var(--muted-2); font-size: 14px; }
.sumtotal { border-top: 2px dashed var(--line); padding-top: 10px; display: flex; justify-content: space-between; align-items: baseline; }
.datecard { width: 62px; height: 70px; border-radius: 16px; background: var(--card); color: var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; flex: none; }
.datecard small { font-size: 11px; font-weight: 600; letter-spacing: 1px; color: var(--terra-ink); }
.datecard b { font-family: var(--display); font-size: 24px; font-weight: 600; line-height: 1; }
.datecard.s { width: 50px; height: 54px; border-radius: 14px; }
.datecard.s b { font-size: 20px; }
.next { display: flex; gap: 14px; align-items: center; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.steps li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; }
.steps .n { width: 30px; height: 30px; border-radius: 50%; background: var(--teal); color: var(--on-dark); font-weight: 600; display: flex; align-items: center; justify-content: center; }
.steps .n.now { background: var(--terra); }
.bubble { background: var(--card); border-radius: 4px 18px 18px 18px; padding: 10px 12px; font-size: 14px; line-height: 1.45; }
.bubble.peach { background: var(--peach); }
.prog { display: flex; flex-direction: column; }
.prog .st { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; }
.prog .st .rail { display: flex; flex-direction: column; align-items: center; }
.prog .st .rail i { flex: 1; width: 2px; min-height: 14px; background: var(--line); }
.prog .st.done .rail i { background: var(--teal); }
.prog .st:last-child .rail i { background: transparent; }
.prog .st svg { width: 22px; height: 22px; }
.prog .st svg path { fill: none; stroke: #B5AB9C; stroke-width: 2; }
.prog .st.done svg path { fill: var(--teal); stroke: var(--teal); }
.prog .st.now svg path { fill: var(--terra-dot); stroke: var(--terra-dot); }
.prog .st .txt { padding-bottom: 12px; display: flex; flex-direction: column; }
.prog .st .txt b { font-weight: 500; }
.prog .st.now .txt b { font-weight: 600; }
.prog .st:not(.done):not(.now) .txt b { color: var(--muted); }
.avatars { display: flex; }
.av { width: 44px; height: 44px; border-radius: 50%; color: var(--on-dark); border: 3px solid var(--card); font-weight: 600; font-size: 14px; display: flex; align-items: center; justify-content: center; flex: none; }
.av + .av { margin-left: -12px; }
.av.s { width: 36px; height: 36px; font-size: 12px; border-width: 2px; border-color: var(--bg); }
.av.s + .av.s { margin-left: -10px; }
.av.xs { width: 24px; height: 24px; font-size: 10px; border: none; margin: 0 !important; }
.av.c0 { background: var(--teal); } .av.c1 { background: var(--terra); } .av.c2 { background: var(--gold-ink); } .av.c3 { background: var(--teal-2); }
.route { display: flex; flex-direction: column; }
.route .stop { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 10px; }
.route .when { display: flex; flex-direction: column; align-items: center; gap: 6px; padding-top: 14px; }
.route .when b { font-family: var(--display); font-size: 17px; font-weight: 600; }
.route .when i { flex: 1; border-left: 2px dashed #C9BFB0; min-height: 30px; }
.route .gap { font-size: 13px; color: var(--muted); background: repeating-linear-gradient(135deg, var(--sand-2) 0 6px, var(--bg) 6px 12px); border-radius: 14px; padding: 10px 12px; margin: 0 0 10px 64px; }
.jobcard { margin-bottom: 10px; text-decoration: none; color: inherit; }
.jobcard.next { outline: 2px solid var(--teal); outline-offset: -2px; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.stat { border-radius: 18px; padding: 10px 12px; display: flex; flex-direction: column; background: var(--card); }
.stat span { font-size: 11px; font-weight: 600; letter-spacing: 1.2px; color: var(--muted-2); }
.stat b { font-family: var(--display); font-size: 22px; font-weight: 600; }

/* ---------- Photos ---------- */
.photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.photo { position: relative; border-radius: 16px; overflow: hidden; background: var(--sand); aspect-ratio: 4 / 5; }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo .tag { position: absolute; left: 8px; top: 8px; font-size: 11px; font-weight: 600; letter-spacing: 1px; background: rgba(34, 32, 28, .78); color: var(--on-dark); padding: 3px 8px; border-radius: 999px; }
.room { background: var(--card); border-radius: 20px; padding: 10px 10px 10px 14px; display: flex; align-items: center; gap: 10px; box-shadow: var(--shadow); }
.room.done { background: var(--sage); }
.room .grow { display: flex; flex-direction: column; gap: 3px; }
.shot { width: 56px; height: 56px; border-radius: 14px; border: none; background: var(--card); color: var(--teal); cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 11px; font-weight: 600; gap: 2px; padding: 0; overflow: hidden; position: relative; outline: 1.5px solid var(--teal); outline-offset: -1.5px; }
.shot svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.shot.has span { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(22, 75, 71, .85); color: var(--on-dark); font-size: 10px; padding: 1px 0; }
.codes { display: flex; flex-wrap: wrap; gap: 4px; }
.code { font-size: 11px; font-weight: 600; background: var(--butter); color: var(--gold-ink); padding: 3px 7px; border-radius: 8px; }
.code-pick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; max-height: 50vh; overflow: auto; }
.code-pick button { min-height: 44px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--card); text-align: left; padding: 6px 10px; cursor: pointer; font-size: 13px; }
.code-pick button b { margin-right: 6px; }
.code-pick button[aria-pressed="true"] { background: var(--butter); border-color: var(--gold-ink); }
.cmp { position: relative; aspect-ratio: 4 / 5; border-radius: 18px; overflow: hidden; background: var(--dark); touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: ew-resize; }
.cmp img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.cmp .cmp-b { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.cmp-line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: var(--card); pointer-events: none; }
.cmp-knob { position: absolute; top: 50%; left: var(--pos); width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: var(--card); border: 2px solid var(--terra-dot); display: flex; align-items: center; justify-content: center; }
.cmp-knob svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.cmp-tag { position: absolute; top: 10px; font-size: 11px; font-weight: 600; letter-spacing: 1.2px; padding: 4px 8px; border-radius: 999px; pointer-events: none; }
.cmp-tag.b { left: 10px; background: rgba(34, 32, 28, .78); color: var(--on-dark); }
.cmp-tag.a { right: 10px; background: var(--teal); color: var(--on-dark); }
.roomchips { display: flex; gap: 6px; flex-wrap: wrap; }
.roomchips button { min-height: 40px; padding: 0 14px; border-radius: 999px; border: none; background: var(--card); font-size: 14px; font-weight: 600; cursor: pointer; }
.roomchips button[aria-pressed="true"] { background: var(--teal); color: var(--on-dark); }

/* ---------- Receipt ---------- */
.receipt { position: relative; background: var(--card); border-radius: 24px 24px 6px 6px; padding: 18px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; box-shadow: var(--shadow); max-width: 440px; width: 100%; font-variant-numeric: tabular-nums; }
.rc-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.rc-brand { display: flex; align-items: center; gap: 8px; }
.rc-brand .logo { width: 36px; height: 27px; }
.rc-brand > span { display: flex; flex-direction: column; line-height: 1; }
.rc-brand b { font-family: var(--script); font-size: 22px; color: var(--teal); }
.rc-brand small { font-size: 9px; font-weight: 600; letter-spacing: 2.4px; }
.rc-title { display: flex; flex-direction: column; text-align: right; }
.rc-title b { font-family: var(--display); font-size: 20px; font-weight: 600; }
.rc-title small { font-size: 12px; color: var(--muted); }
.rc-info { display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 3px 8px; margin: 0; padding: 8px 0; border-top: 1px solid var(--sand-2); border-bottom: 1px solid var(--sand-2); font-size: 13px; }
.rc-info dt { color: var(--muted); }
.rc-info dd { margin: 0; }
.rc-lines { display: flex; flex-direction: column; gap: 6px; }
.rc-line { display: flex; justify-content: space-between; gap: 10px; }
.rc-line > span:first-child { display: flex; flex-direction: column; }
.rc-line small { font-size: 12px; color: var(--muted); }
.rc-line > span:last-child { white-space: nowrap; }
.rc-total { border-top: 2px dashed var(--line); padding-top: 10px; display: flex; justify-content: space-between; align-items: baseline; }
.rc-total span { font-weight: 600; }
.rc-total b { font-family: var(--display); font-size: 24px; font-weight: 600; }
.rc-pay { font-size: 13px; color: var(--muted-2); }
.rc-pay-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.rc-stamp { flex: none; transform: rotate(-12deg); border: 2.5px solid var(--terra); color: var(--terra); border-radius: 10px; padding: 2px 12px; font-size: 18px; font-weight: 600; letter-spacing: 3px; }
.rc-records { font-size: 12px; background: var(--bg); border-radius: 10px; padding: 8px 10px; }
.rc-foot { font-size: 12px; color: var(--muted); text-align: center; }

/* ---------- Toast, dialog, banner ---------- */
.toast { position: fixed; left: 50%; bottom: 100px; transform: translateX(-50%) translateY(20px); background: var(--dark); color: var(--on-dark); padding: 12px 18px; border-radius: 14px; font-size: 15px; opacity: 0; pointer-events: none; transition: .2s; z-index: 50; max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: translateX(-50%); }
.toast.bad { background: #8E2C14; }
.dialog { border: none; border-radius: 24px; padding: 20px; max-width: min(420px, calc(100% - 32px)); width: 100%; background: var(--card); color: var(--ink); box-shadow: var(--float); }
.dialog::backdrop { background: rgba(34, 32, 28, .45); }
.dialog p { margin: 0 0 16px; font-size: 16px; line-height: 1.5; }
.dialog .row { justify-content: flex-end; flex-wrap: wrap; }
.dialog .row .btn { flex: 1; min-width: 120px; }
.demo-banner { background: var(--butter); color: var(--gold-ink); font-size: 13px; padding: 8px 14px; text-align: center; }
.empty { text-align: center; color: var(--muted); padding: 24px 10px; font-size: 15px; }
.note { background: var(--sand-2); border-radius: 16px; padding: 12px 14px; font-size: 14px; line-height: 1.5; color: var(--muted-2); }
.note.warn { background: var(--butter); color: #4A3A0F; }
.note.ok { background: var(--sage); color: var(--teal); }
.install-card { flex-direction: row; align-items: center; gap: 12px; }
.install-icon { width: 44px; height: 44px; display: inline-flex; flex: none; }
.install-icon .logo { width: 44px; height: 34px; }
.install-text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.install-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.install-steps { padding-left: 20px; margin: 0 0 16px; display: flex; flex-direction: column; gap: 10px; }

/* ---------- Owner dashboard ---------- */
body.owner { background: var(--bg); }
.adm { min-height: 100dvh; display: flex; flex-direction: column; }
.adm-top { background: var(--dark); color: var(--on-dark); padding: 12px 22px; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; position: sticky; top: 0; z-index: 10; }
.adm-top .left { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.adm-top b { font-size: 16px; }
.brandswitch { display: flex; gap: 4px; background: #34322D; border-radius: 999px; padding: 4px; }
.brandswitch a { min-height: 36px; padding: 0 14px; border-radius: 999px; color: var(--on-dark-2); display: flex; align-items: center; gap: 6px; text-decoration: none; font-size: 14px; font-weight: 600; }
.brandswitch a i { width: 8px; height: 8px; border-radius: 50%; }
.brandswitch a[aria-current="page"] { background: var(--bg); color: var(--ink); }
.adm-tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.adm-tabs a { color: var(--on-dark-2); padding: 8px 12px; border-radius: 999px; text-decoration: none; font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.adm-tabs a[aria-current="page"] { background: var(--peach); color: var(--ink); }
.adm-tabs .count { background: var(--terra); color: var(--on-dark); border-radius: 999px; font-size: 11px; padding: 1px 7px; }
.adm-main { width: 100%; max-width: 1240px; margin: 0 auto; padding: 24px 22px 60px; display: flex; flex-direction: column; gap: 18px; }
.adm-main .h1 { font-size: 34px; }
.adm-cols { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.adm-cols > .main { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.adm-cols > .side { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.adm-day { display: flex; flex-direction: column; gap: 8px; }
.bk { background: var(--card); border-radius: 18px; padding: 14px 16px; display: grid; grid-template-columns: 82px minmax(0, 1fr) auto; gap: 14px; align-items: start; box-shadow: var(--shadow); }
.bk .time b { font-family: var(--display); font-size: 18px; font-weight: 600; display: block; }
.bk .time span { font-size: 12px; color: var(--muted); }
.bk .info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.bk .actions { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.bk .links { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 4px; }
.bk .links .btn-link { min-height: 32px; font-size: 14px; }
.bk select.input { min-height: 38px; font-size: 14px; border-radius: 12px; padding: 0 30px 0 10px; width: auto; }
@media (max-width: 640px) { .bk { grid-template-columns: 1fr; } .bk .actions { align-items: flex-start; flex-direction: row; flex-wrap: wrap; } }
.table { width: 100%; border-collapse: collapse; font-size: 14px; background: var(--card); border-radius: 16px; overflow: hidden; }
.table th, .table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--sand-2); vertical-align: top; }
.table th { font-size: 12px; letter-spacing: 1px; color: var(--muted); font-weight: 600; text-transform: uppercase; background: var(--sand-2); }
.table td.r, .table th.r { text-align: right; }
.scroll-x { overflow-x: auto; border-radius: 16px; }
.msg { background: var(--card); border-radius: 18px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; box-shadow: var(--shadow); }
.msg .text { background: var(--bg); border-radius: 4px 14px 14px 14px; padding: 10px 12px; font-size: 14px; white-space: pre-wrap; }
.adm-login { max-width: 420px; margin: 60px auto; padding: 0 18px; display: flex; flex-direction: column; gap: 14px; }

/* ---------- Print ---------- */
#print-area { display: none; }
@media print {
  body.printing > *:not(#print-area) { display: none !important; }
  body.printing #print-area { display: block; }
  body.printing .receipt { box-shadow: none; border: 1px solid #ccc; margin: 0 auto 20px; break-inside: avoid; }
}
@media (min-width: 700px) {
  .app { padding-top: 10px; }
}
.switch.card, .check.card { flex-direction: row; align-items: center; }
