/* SalonEdge — tablet-first styles. Bootstrap is kept for the account (sign-in) pages. */

:root {
    /* Palette: warm blush background, plum ink, berry accent, champagne gold highlights. */
    --bg: #f8f3f1;
    --surface: #ffffff;
    --surface-2: #f7eeee;
    --ink: #2c1f26;
    --ink-2: #7a6870;
    --line: #eddfe1;
    --accent: #9b4a5e;
    --accent-dark: #7c3649;
    --accent-ink: #ffffff;
    --accent-soft: #f7e6ea;
    --gold: #c39a5b;
    --gold-soft: #f6ecdc;
    --plum: #3b2331;
    --plum-2: #5b3347;
    --processing: #f0dde2;
    --buffer: #efe9ea;
    --blocked: #f1ecec;
    --good: #2e7d5b;
    --good-soft: #e2f3ea;
    --warn: #9a6400;
    --warn-soft: #fcf1dc;
    --bad: #b3261e;
    --bad-soft: #fbe6e4;
    --info-soft: #e8eef8;
    --radius: 16px;
    --touch: 44px;
    --shadow: 0 1px 2px rgba(59, 35, 49, .05), 0 8px 24px rgba(59, 35, 49, .07);
    --shadow-lift: 0 2px 4px rgba(59, 35, 49, .08), 0 12px 32px rgba(59, 35, 49, .12);
    --serif: "Fraunces", "Playfair Display", Georgia, "Times New Roman", serif;
    --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

html, body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

a { color: var(--accent); }
h1:focus { outline: none; }
h1 { font-size: 1.6rem; margin: 0 0 .75rem; }
h2 { font-size: 1.2rem; margin: 0 0 .6rem; }
h3 { font-size: 1.02rem; margin: 0 0 .5rem; }
.muted { color: var(--ink-2); }
.small { font-size: .875rem; }
.nowrap { white-space: nowrap; }

/* ---------- Shell ---------- */

.shell { min-height: 100vh; display: flex; flex-direction: column; }

.topbar {
    position: sticky; top: 0; z-index: 20;
    display: flex; align-items: center; gap: 1rem;
    padding: .5rem 1rem;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
}
.brand { font-weight: 700; font-size: 1.15rem; color: var(--ink); text-decoration: none; letter-spacing: .01em; }
.brand span { color: var(--accent); }
.topnav { display: flex; gap: .25rem; flex: 1; overflow-x: auto; }
.topnav a {
    display: inline-flex; align-items: center; min-height: var(--touch);
    padding: 0 .9rem; border-radius: 999px;
    color: var(--ink-2); text-decoration: none; font-weight: 600; white-space: nowrap;
}
.topnav a.active { background: var(--accent-soft); color: var(--accent); }
.usermenu { display: flex; align-items: center; gap: .5rem; }
.usermenu form { margin: 0; }

.main { flex: 1; padding: 1rem; max-width: 1400px; width: 100%; box-sizing: border-box; margin: 0 auto; }

/* ---------- Building blocks ---------- */

.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1rem;
    box-shadow: var(--shadow);
}
.card + .card { margin-top: 1rem; }
.grid { display: grid; gap: 1rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.row { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; margin: 0; --bs-gutter-x: 0; --bs-gutter-y: 0; }
/* Bootstrap (used by the sign-in pages) makes every child of .row full width; undo that for our rows. */
.row > :not([class*="col"]) { width: auto; max-width: none; flex-shrink: 1; }
.row.between { justify-content: space-between; }
.stack > * + * { margin-top: .6rem; }
.spacer { flex: 1; }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
    min-height: var(--touch); padding: 0 1rem;
    border-radius: 10px; border: 1px solid var(--line);
    background: var(--surface); color: var(--ink);
    font: inherit; font-weight: 600; cursor: pointer; text-decoration: none;
}
.btn:hover { border-color: var(--ink-2); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.danger { color: var(--bad); border-color: #e9b8b4; }
.btn.good { background: var(--good); border-color: var(--good); color: #fff; }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.sm { min-height: 34px; padding: 0 .7rem; font-size: .9rem; }
.btn.big { min-height: 56px; font-size: 1.05rem; padding: 0 1.25rem; }

label.field { display: block; font-weight: 600; font-size: .9rem; color: var(--ink-2); }
label.field > input, label.field > select, label.field > textarea { margin-top: .25rem; }
input[type=text], input[type=tel], input[type=email], input[type=number], input[type=date], input[type=time],
input[type=search], input[type=password], select, textarea {
    width: 100%; box-sizing: border-box;
    min-height: var(--touch); padding: .5rem .7rem;
    border: 1px solid var(--line); border-radius: 10px;
    background: #fff; color: var(--ink); font: inherit;
}
textarea { min-height: 90px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
.fields { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.fields .wide { grid-column: 1 / -1; }
.check { display: inline-flex; align-items: center; gap: .5rem; min-height: var(--touch); cursor: pointer; }
.check input { width: 22px; height: 22px; accent-color: var(--accent); }

.chips { display: flex; gap: .4rem; flex-wrap: wrap; }
.chip {
    display: inline-flex; align-items: center; gap: .35rem;
    min-height: 40px; padding: 0 .85rem; border-radius: 999px;
    border: 1px solid var(--line); background: var(--surface); color: var(--ink);
    font: inherit; font-weight: 600; cursor: pointer;
}
.chip.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.chip .n { font-size: .75rem; opacity: .85; }

.badge {
    display: inline-block; padding: .15rem .55rem; border-radius: 999px;
    font-size: .78rem; font-weight: 700; background: var(--surface-2); color: var(--ink-2);
}
.badge.good { background: var(--good-soft); color: var(--good); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.bad { background: var(--bad-soft); color: var(--bad); }
.badge.info { background: var(--info-soft); color: #28527a; }
.badge.accent { background: var(--accent-soft); color: var(--accent); }

.alert { padding: .75rem 1rem; border-radius: 10px; margin: .5rem 0; }
.alert.good { background: var(--good-soft); color: var(--good); }
.alert.warn { background: var(--warn-soft); color: var(--warn); }
.alert.bad { background: var(--bad-soft); color: var(--bad); }
.alert.info { background: var(--info-soft); color: #28527a; }

.sensitive { color: var(--bad); font-weight: 700; }

table.list { width: 100%; border-collapse: collapse; }
table.list th { text-align: left; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2); padding: .5rem; border-bottom: 1px solid var(--line); }
table.list td { padding: .6rem .5rem; border-bottom: 1px solid var(--line); vertical-align: top; }
table.list tr.clickable { cursor: pointer; }
table.list tr.clickable:hover td { background: var(--surface-2); }

.tabs { display: flex; gap: .25rem; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: 1rem; }
.tabs a, .tabs button {
    min-height: var(--touch); padding: 0 1rem; border: 0; background: none;
    font: inherit; font-weight: 600; color: var(--ink-2); cursor: pointer; text-decoration: none;
    display: inline-flex; align-items: center; border-bottom: 3px solid transparent;
}
.tabs a.active, .tabs button.active { color: var(--accent); border-bottom-color: var(--accent); }

.empty { padding: 1.5rem; text-align: center; color: var(--ink-2); }

/* ---------- Drawer ---------- */

.drawer-backdrop { position: fixed; inset: 0; background: rgba(43, 35, 32, .25); z-index: 40; }
.drawer {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 41;
    width: min(520px, 100vw); overflow-y: auto;
    background: var(--surface); box-shadow: -8px 0 32px rgba(0, 0, 0, .12);
    display: flex; flex-direction: column;
}
.drawer-head { display: flex; align-items: center; gap: .5rem; padding: .75rem 1rem; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--surface); z-index: 1; }
.drawer-head h2 { margin: 0; flex: 1; }
.drawer-body { padding: 1rem; }
.drawer-body section + section { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--line); }

/* ---------- Today ---------- */

.appt-row {
    display: grid; grid-template-columns: 88px 1fr; gap: .75rem;
    padding: .75rem 0; border-bottom: 1px solid var(--line);
}
.appt-row:last-child { border-bottom: 0; }
.appt-time { font-weight: 700; font-size: 1.05rem; }
.appt-time .muted { display: block; font-weight: 400; font-size: .85rem; }
.track { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .5rem; }

/* ---------- Calendar ---------- */

.cal-toolbar { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; margin-bottom: .75rem; }
.cal-toolbar h1 { margin: 0 .5rem 0 0; font-size: 1.3rem; }
.cal {
    display: grid; background: var(--surface);
    border: 1px solid var(--line); border-radius: var(--radius);
    overflow: auto; max-height: calc(100vh - 150px);
}
.cal-head { position: sticky; top: 0; z-index: 5; background: var(--surface); border-bottom: 1px solid var(--line); }
.cal-head .day-name { padding: .5rem; text-align: center; font-weight: 700; font-size: .9rem; border-left: 1px solid var(--line); }
.cal-head .day-name.today { color: var(--accent); }
.cal-head .day-name.closed { color: var(--ink-2); font-weight: 400; }
.cal-times { position: sticky; left: 0; z-index: 4; background: var(--surface); }
.cal-times .hour { position: absolute; right: 6px; font-size: .75rem; color: var(--ink-2); transform: translateY(-50%); }
.cal-day { position: relative; border-left: 1px solid var(--line); }
.cal-day.closed { background: repeating-linear-gradient(135deg, var(--surface-2) 0 6px, var(--surface) 6px 12px); }
.cal-line { position: absolute; left: 0; right: 0; border-top: 1px solid var(--line); pointer-events: none; }
.cal-line.half { border-top-style: dashed; opacity: .6; }
.cal-closed-band { position: absolute; left: 0; right: 0; background: rgba(239, 236, 233, .75); pointer-events: none; }
.cal-slot { position: absolute; left: 0; right: 0; cursor: pointer; }
.cal-slot:hover { background: var(--accent-soft); }
.cal-now { position: absolute; left: 0; right: 0; border-top: 2px solid var(--bad); z-index: 3; pointer-events: none; }
.cal-block {
    position: absolute; left: 2px; right: 2px; z-index: 1;
    background: repeating-linear-gradient(135deg, var(--blocked) 0 6px, #e3ded9 6px 12px);
    border-radius: 6px; font-size: .78rem; color: var(--ink-2); padding: 2px 6px; cursor: pointer; overflow: hidden;
}
.cal-appt {
    position: absolute; z-index: 2; box-sizing: border-box;
    border-radius: 8px; overflow: hidden; cursor: pointer;
    border: 1px solid rgba(138, 90, 68, .35); background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
    font-size: .8rem; line-height: 1.2;
}
.cal-appt .seg { position: absolute; left: 0; right: 0; }
.cal-appt .seg.active, .cal-appt .seg.finish { background: var(--accent-soft); }
.cal-appt .seg.processing { background: repeating-linear-gradient(135deg, var(--processing) 0 5px, #f6ede7 5px 10px); }
.cal-appt .seg.buffer { background: var(--buffer); }
.cal-appt .label { position: relative; padding: 3px 6px; font-weight: 700; color: var(--ink); }
.cal-appt .label .svc { font-weight: 400; color: var(--ink-2); display: block; }
.cal-appt.requested { border-style: dashed; border-color: var(--warn); }
.cal-appt.arrived { border-color: var(--good); border-width: 2px; }
.cal-appt.inprogress { border-color: var(--accent); border-width: 2px; }
.cal-appt.completed { opacity: .65; }
.legend { display: flex; gap: 1rem; flex-wrap: wrap; font-size: .8rem; color: var(--ink-2); margin-top: .5rem; }
.legend i { display: inline-block; width: 14px; height: 14px; border-radius: 3px; vertical-align: -2px; margin-right: 4px; }

/* ---------- Public pages ---------- */

.public { min-height: 100vh; background: var(--bg); }
.public-inner { max-width: 640px; margin: 0 auto; padding: 1.25rem 1rem 3rem; }
.public-brand { font-size: 1.35rem; font-weight: 700; margin: .5rem 0 1rem; color: var(--accent); }
.auth-card { max-width: 480px; margin: 2rem auto; }

/* ---------- Template validation styles ---------- */

.valid.modified:not([type=checkbox]) { outline: 1px solid #26b050; }
.invalid { outline: 1px solid #e50000; }
.validation-message { color: #e50000; }
.blazor-error-boundary { background: var(--bad-soft); padding: 1rem; color: var(--bad); border-radius: 10px; }
.blazor-error-boundary::after { content: "Something went wrong on this part of the page. Reload to try again."; }
#blazor-error-ui {
    background: lightyellow; bottom: 0; box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none; left: 0; padding: 0.6rem 1.25rem 0.7rem 1.25rem; position: fixed; width: 100%; z-index: 1000;
}
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: 0.75rem; top: 0.5rem; }

@media (max-width: 700px) {
    .main { padding: .6rem; }
    .topbar { flex-wrap: wrap; }
    .topnav { order: 3; width: 100%; }
    .appt-row { grid-template-columns: 70px 1fr; }
}

@media print {
    .topbar, .no-print { display: none !important; }
}

/* ---------- Checkout, sales, receipts ---------- */
.money-cell { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.money-input { display: inline-flex; align-items: center; gap: .25rem; }
.money-input input { width: 7.5rem; text-align: right; }
table.list tr.grand td { font-weight: 700; font-size: 1.15rem; border-top: 2px solid var(--line); }
.tip-chips .chip { min-height: 52px; min-width: 5.5rem; font-size: 1.05rem; flex-direction: column; justify-content: center; }
.btn.wide { width: 100%; }
.pay-cash { display: grid; gap: .5rem; padding: .75rem; border: 1px solid var(--line); border-radius: 10px; }
.change-due { font-size: 1.4rem; font-weight: 700; color: var(--good); }
.stat .big-number { font-size: 1.8rem; font-weight: 700; margin: .25rem 0; font-variant-numeric: tabular-nums; }
.receipt table.list td { padding: .45rem 0; }
a.badge { text-decoration: none; }
table.list th.money-cell, table.list td.money-cell { text-align: right; }

/* ---------- Client booking page ---------- */
.svc-option {
    display: flex; align-items: center; gap: .75rem; width: 100%; text-align: left;
    min-height: 60px; padding: .6rem .9rem; border: 1px solid var(--line); border-radius: 12px;
    background: var(--surface); color: var(--ink); font: inherit; cursor: pointer;
}
.svc-option.on { border-color: var(--accent); background: var(--accent-soft); }
.svc-option .svc-check {
    flex: none; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line);
    display: inline-flex; align-items: center; justify-content: center; font-weight: 700; color: #fff;
}
.svc-option.on .svc-check { background: var(--accent); border-color: var(--accent); }
.svc-option .svc-name { flex: 1; font-weight: 600; display: flex; flex-direction: column; }
.svc-option .svc-price { font-weight: 600; white-space: nowrap; }
.day-strip { display: flex; align-items: stretch; gap: .35rem; margin-top: .75rem; overflow-x: auto; }
.day-strip .day {
    flex: 1 0 44px; display: flex; flex-direction: column; align-items: center; justify-content: center;
    min-height: 60px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface);
    color: var(--ink); font: inherit; cursor: pointer;
}
.day-strip .day .dow { font-size: .75rem; color: var(--ink-2); text-transform: uppercase; }
.day-strip .day .dom { font-size: 1.15rem; font-weight: 700; }
.day-strip .day.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.day-strip .day.on .dow { color: #fff; }
.day-strip .day.off, .day-strip .day:disabled { opacity: .4; cursor: default; }
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: .5rem; }
.slot-grid .slot {
    min-height: 48px; border: 1px solid var(--accent); border-radius: 10px; background: var(--surface);
    color: var(--accent); font: inherit; font-weight: 700; cursor: pointer;
}
.slot-grid .slot:hover { background: var(--accent-soft); }
.policy { background: var(--surface-2); border-radius: 10px; padding: .6rem .8rem; margin: .75rem 0 .25rem; }
.example { background: var(--surface-2); border-radius: 10px; padding: .6rem .8rem; margin-top: .6rem; }
.legal h2 { font-size: 1.1rem; margin-top: 1.25rem; }
.legal li { margin: .3rem 0; }
.pay-box { border: 1px solid var(--line); border-radius: 12px; padding: .75rem; margin: .75rem 0; display: grid; gap: .4rem; }
.card-container { min-height: 90px; }


/* =====================================================================
   Look & feel: header, typography, cards, buttons, tables, public pages
   ===================================================================== */

body {
    background:
        radial-gradient(1200px 500px at 100% -10%, rgba(195, 154, 91, .10), transparent 60%),
        radial-gradient(900px 500px at -10% 0%, rgba(155, 74, 94, .08), transparent 60%),
        var(--bg);
    background-attachment: fixed;
}

h1, h2, .brand, .big-number, .public-brand, .appt-time { font-family: var(--serif); }
h1 { font-weight: 600; font-size: 1.85rem; letter-spacing: -.01em; }
h2 { font-weight: 600; font-size: 1.25rem; letter-spacing: -.005em; }
h3 { font-weight: 650; font-size: .95rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); }
.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: .15rem; }

/* Header */
.topbar {
    background: linear-gradient(120deg, var(--plum) 0%, var(--plum-2) 100%);
    border-bottom: 0;
    box-shadow: 0 2px 12px rgba(59, 35, 49, .25);
    padding: .5rem 1.25rem;
}
.brand { color: #fff; font-size: 1.4rem; font-weight: 600; letter-spacing: .01em; }
.brand span { color: var(--gold); font-style: italic; }
.topnav a { color: rgba(255, 255, 255, .78); font-weight: 600; transition: background .15s, color .15s; }
.topnav a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.topnav a.active { background: rgba(255, 255, 255, .16); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); }
.usermenu .btn { color: #fff; border-color: rgba(255, 255, 255, .3); background: transparent; }
.usermenu .btn:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .5); }
.topbar .spacer + .btn { color: #fff; border-color: rgba(255, 255, 255, .3); background: transparent; }

.main { padding: 1.5rem 1.25rem 3rem; }

/* Cards */
.card { border: 1px solid rgba(237, 223, 225, .8); border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow); }
.card h2 { display: flex; align-items: center; gap: .5rem; }
.card > h2:first-child::before, .card > .row:first-child > h2::before {
    content: ""; width: 4px; height: 1.05em; border-radius: 4px;
    background: linear-gradient(180deg, var(--accent), var(--gold));
}

/* Buttons */
.btn { border-radius: 12px; transition: transform .08s, box-shadow .15s, background .15s, border-color .15s; }
.btn:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn.primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    border-color: transparent; color: #fff;
    box-shadow: 0 4px 14px rgba(155, 74, 94, .28);
}
.btn.primary:hover:not(:disabled) { color: #fff; box-shadow: 0 6px 18px rgba(155, 74, 94, .36); }
.btn.good { background: linear-gradient(135deg, #34906a, var(--good)); border-color: transparent; box-shadow: 0 4px 14px rgba(46, 125, 91, .25); }
.btn.good:hover:not(:disabled) { color: #fff; }
.btn.danger:hover:not(:disabled) { color: var(--bad); border-color: var(--bad); }
.btn.ghost:hover:not(:disabled) { background: var(--accent-soft); }

/* Inputs */
input[type=text], input[type=tel], input[type=email], input[type=number], input[type=date], input[type=time],
input[type=search], input[type=password], input[type=url], select, textarea {
    border-radius: 12px; border-color: var(--line); background: #fffdfd;
    transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(155, 74, 94, .12); }
label.field { color: var(--ink-2); font-size: .82rem; letter-spacing: .02em; }

/* Chips & badges */
.chip { border-radius: 999px; transition: background .15s, border-color .15s; }
.chip:hover { border-color: var(--accent); }
.chip.on { background: linear-gradient(135deg, var(--accent), var(--accent-dark)); border-color: transparent; }
.badge { border-radius: 999px; padding: .15rem .6rem; font-weight: 650; letter-spacing: .01em; }
.badge.accent { background: var(--accent-soft); color: var(--accent-dark); }

/* Tabs (Admin) */
.tabs { border-bottom: 1px solid var(--line); gap: .15rem; }
.tabs a, .tabs button { border-radius: 10px 10px 0 0; }
.tabs a:hover, .tabs button:hover { color: var(--accent); background: var(--accent-soft); }

/* Tables */
table.list th { font-size: .72rem; letter-spacing: .08em; color: var(--ink-2); border-bottom-color: var(--line); }
table.list td { border-bottom-color: #f3e9ea; }
table.list tr.clickable:hover td { background: var(--accent-soft); }

/* Alerts */
.alert { border-radius: 12px; border: 1px solid transparent; }
.alert.good { border-color: #c9e8d7; }
.alert.warn { border-color: #f1dcae; }
.alert.bad { border-color: #f3c7c2; }
.alert.info { border-color: #d3dff0; }

/* Today: appointment list */
.appt-row { border-radius: 12px; padding: .75rem .5rem .75rem .9rem; position: relative; border-bottom: 1px solid #f3e9ea; }
.appt-row::before {
    content: ""; position: absolute; left: 0; top: .8rem; bottom: .8rem; width: 3px; border-radius: 3px;
    background: linear-gradient(180deg, var(--accent), var(--gold));
}
.appt-time { color: var(--accent-dark); font-size: 1.15rem; }

/* Stats */
.stat { background: linear-gradient(160deg, #fff 0%, #fff 60%, var(--gold-soft) 100%); }
.stat .big-number { color: var(--plum); font-size: 2rem; }

/* Calendar */
.cal { border-radius: var(--radius); box-shadow: var(--shadow); border-color: var(--line); }
.cal-head .day-name.today { color: var(--accent); }
.cal-appt { border-radius: 10px; box-shadow: 0 1px 3px rgba(59, 35, 49, .08); }
.cal-appt .seg.active, .cal-appt .seg.finish { background: var(--accent-soft); }
.cal-appt .seg.processing { background: repeating-linear-gradient(135deg, var(--processing) 0 5px, #fbf1f3 5px 10px); }
.cal-now { border-top-color: var(--accent); }

/* Drawer */
.drawer { border-radius: 20px 0 0 20px; box-shadow: -12px 0 40px rgba(59, 35, 49, .18); }
.drawer-head { border-radius: 20px 0 0 0; }
.drawer-head h2 { font-family: var(--serif); }

/* Client-facing pages */
.public { background:
    radial-gradient(800px 400px at 50% -10%, rgba(155, 74, 94, .14), transparent 70%),
    radial-gradient(600px 300px at 100% 0%, rgba(195, 154, 91, .14), transparent 70%),
    var(--bg); }
.public-inner { padding-top: 2rem; }
.public-brand {
    text-align: center; font-size: 2rem; font-weight: 600; color: var(--plum);
    margin: .5rem 0 1.25rem; letter-spacing: .01em;
}
.public-brand::after {
    content: ""; display: block; width: 56px; height: 3px; border-radius: 3px; margin: .6rem auto 0;
    background: linear-gradient(90deg, var(--accent), var(--gold));
}
.public .card { padding: 1.5rem; }
.public h1 { font-size: 1.6rem; }
.svc-option { border-radius: 14px; transition: border-color .15s, background .15s, box-shadow .15s; }
.svc-option:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.slot-grid .slot { border-radius: 12px; transition: background .15s, color .15s; }
.slot-grid .slot:hover { background: var(--accent); color: #fff; }
.day-strip .day { border-radius: 14px; }
.day-strip .day.on { background: linear-gradient(135deg, var(--accent), var(--accent-dark)); }

/* Sign-in pages (Bootstrap) in the same colors */
.btn-primary {
    --bs-btn-bg: var(--accent); --bs-btn-border-color: var(--accent);
    --bs-btn-hover-bg: var(--accent-dark); --bs-btn-hover-border-color: var(--accent-dark);
    --bs-btn-active-bg: var(--accent-dark); --bs-btn-active-border-color: var(--accent-dark);
    border-radius: 12px;
}
.form-control:focus, .form-check-input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(155, 74, 94, .12); }
.form-check-input:checked { background-color: var(--accent); border-color: var(--accent); }
.form-floating > .form-control { border-radius: 12px; }

@media (max-width: 700px) {
    h1 { font-size: 1.5rem; }
    .main { padding: 1rem .75rem 2rem; }
    .drawer { border-radius: 0; }
}

@media print {
    body { background: #fff; }
    .card { box-shadow: none; }
}

/* Cards side by side in a grid line up at the top */
.grid > .card + .card { margin-top: 0; }
.field input, .field select, .field textarea { font-weight: 400; }

/* Nav icons (shown on phones) */
.nav-ico { display: none; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.check.consent { align-items: flex-start; }
.check.consent input { flex-shrink: 0; margin-top: .15rem; }

/* Phones: the menu becomes an app-style tab bar along the bottom */
@media (max-width: 700px) {
    .topbar { flex-wrap: nowrap; padding: .45rem .9rem; }
    .topbar .brand { flex: 1; font-size: 1.25rem; }
    .topnav {
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; width: auto; order: 0;
        display: flex; justify-content: space-around; gap: 0; overflow: visible;
        padding: .3rem .25rem calc(.3rem + env(safe-area-inset-bottom));
        background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px);
        border-top: 1px solid var(--line); box-shadow: 0 -4px 18px rgba(59, 35, 49, .08);
    }
    .topnav a {
        flex: 1; flex-direction: column; justify-content: center; gap: .1rem;
        min-height: 52px; padding: 0 .1rem; border-radius: 12px;
        color: var(--ink-2); font-size: .68rem; font-weight: 600;
    }
    .topnav a:hover { background: transparent; color: var(--accent); }
    .topnav a.active { background: transparent; box-shadow: none; color: var(--accent); }
    .topnav a.active .nav-ico { stroke-width: 2.2; }
    .nav-ico { display: block; }
    .main { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
    .usermenu .btn { padding: .25rem .6rem; }
}

/* Admin › Guide */
.eyebrow { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin: 0 0 .25rem; }
.guide-intro .chips { margin-top: .75rem; }
.guide-sub { margin: .25rem 0 1rem; }
.guide-step { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 1.5rem; align-items: center; }
.guide-step.phone { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.guide-shots { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }
.guide-shots img { max-width: 100%; height: auto; display: block; }
.guide-step.phone .guide-shots img { width: 180px; }
.guide-text h3 { font-family: var(--serif); font-size: 1.5rem; font-weight: 500; margin: 0 0 .4rem; }
.guide-text > p { color: var(--ink-2); }
.guide-points { padding-left: 1.2rem; margin: .5rem 0 1rem; display: grid; gap: .45rem; }
.guide-points li::marker { color: var(--accent); font-weight: 700; }
.sms-bubble { display: grid; gap: .2rem; background: #efe7ea; border-radius: 18px 18px 18px 6px; padding: .7rem .9rem; margin: 0 0 1rem; font-size: .92rem; max-width: 34rem; }
@media (max-width: 900px) {
    .guide-step, .guide-step.phone { grid-template-columns: 1fr; }
    .guide-step.phone .guide-shots img { width: 140px; }
}
.card .guide-text h3 { text-transform: none; letter-spacing: 0; color: var(--ink); font-size: 1.5rem; }

/* Billing */
.billing-table th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); font-weight: 700; padding-bottom: .4rem; }
.billing-table td { vertical-align: top; }
.billing-panel-row > td { background: #fbf7f6; border-radius: 12px; }
.billing-panel { padding: .5rem .25rem 1rem; display: grid; gap: .6rem; }
.billing-panel h3 { margin: .5rem 0 0; }
.copy-box { display: grid; gap: .5rem; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: .75rem; }
.copy-box code { word-break: break-all; font-size: .85rem; }
.billing-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1rem; margin: .5rem 0 1rem; }
.billing-summary .big { font-family: var(--serif); font-size: 1.35rem; color: var(--plum); }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.plan-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; display: grid; gap: .5rem; align-content: start; background: linear-gradient(170deg, #fff 0%, #fff 70%, var(--gold-soft) 100%); }
.plan-card.chosen { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(155, 74, 94, .12); }
.card .plan-card h3 { font-family: var(--serif); font-size: 1.35rem; font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--ink); margin: 0; }
.plan-price { font-family: var(--serif); font-size: 2rem; color: var(--plum); }
.billing-lock { max-width: 640px; margin: 2rem auto; text-align: center; }
.billing-lock h1 { margin: .25rem 0 .75rem; }
.billing-banner a { font-weight: 700; margin-left: .5rem; }

/* Manager PIN */
.pin-card { max-width: 440px; margin: 2rem auto; text-align: center; }
.pin-card h1 { margin: .25rem 0 .5rem; }
.pin-form { display: grid; gap: .75rem; margin: 1.25rem 0 .75rem; }
.pin-input { font-size: 2rem; letter-spacing: .5em; text-align: center; padding: .5rem; width: 100%; box-sizing: border-box; }
.se-backdrop { position: fixed; inset: 0; background: rgba(44, 31, 38, .45); z-index: 90; }
.se-modal { position: fixed; z-index: 91; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(440px, calc(100vw - 2rem));
    background: var(--surface, #fff); border-radius: var(--radius); box-shadow: 0 24px 60px rgba(44, 31, 38, .3); padding: 1.5rem; }
.pin-modal h2 { margin: .15rem 0 .5rem; }
.pin-modal .pin-input { margin-top: .5rem; }

/* Error pop-up (SafePage) */
#se-toast { position: fixed; left: 50%; bottom: 1.5rem; transform: translate(-50%, 150%); z-index: 200; max-width: min(560px, calc(100vw - 2rem));
    background: #3b2331; color: #fff; padding: .85rem 1.1rem; border-radius: 14px; box-shadow: 0 14px 40px rgba(44, 31, 38, .35);
    transition: transform .25s ease; font-size: .95rem; }
#se-toast.show { transform: translate(-50%, 0); }
@media (max-width: 700px) { #se-toast { bottom: calc(80px + env(safe-area-inset-bottom)); } }
#blazor-error-ui { background: #fff3e0; color: #5a3b00; box-shadow: 0 -2px 12px rgba(0,0,0,.15); }

/* Demo phone */
.demo-callout { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
    background: linear-gradient(120deg, #fff 0%, #fff 55%, var(--gold-soft) 100%); }
.demo-grid { display: grid; grid-template-columns: minmax(260px, 360px) 1fr; gap: 1.5rem; align-items: start; }
.demo-phone-list { display: grid; gap: .5rem; margin-top: .75rem; max-height: 60vh; overflow: auto; }
.demo-phone-item { display: grid; gap: .1rem; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 12px;
    padding: .6rem .8rem; cursor: pointer; font: inherit; color: inherit; }
.demo-phone-item.on { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(155, 74, 94, .12); }
.demo-preview { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.demo-phone-wrap { display: flex; justify-content: center; }
.demo-phone { position: relative; width: 390px; max-width: 100%; height: 760px; background: #f7f3f4; border: 14px solid #1d1419;
    border-radius: 48px; box-shadow: 0 30px 70px rgba(44, 31, 38, .3); display: flex; flex-direction: column; overflow: hidden; }
.demo-notch { position: absolute; top: 6px; left: 50%; transform: translateX(-50%); width: 110px; height: 22px; background: #1d1419;
    border-radius: 12px; z-index: 2; }
.demo-head { display: flex; align-items: center; gap: .6rem; padding: 2.4rem 1rem .7rem; background: #fff; border-bottom: 1px solid #eadfe2; }
.demo-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center;
    font-weight: 700; font-size: .85rem; }
.demo-thread { flex: 1; overflow-y: auto; padding: 1rem .8rem; display: flex; flex-direction: column; gap: .55rem; }
.demo-empty { color: var(--ink-2); text-align: center; margin-top: 2rem; }
.demo-msg { display: flex; flex-direction: column; max-width: 82%; }
.demo-msg.in { align-self: flex-start; }
.demo-msg.out { align-self: flex-end; align-items: flex-end; }
.demo-bubble { padding: .6rem .85rem; border-radius: 18px; line-height: 1.35; font-size: .95rem; white-space: pre-wrap; word-break: break-word; }
.demo-msg.in .demo-bubble { background: #e9e3e6; color: var(--ink); border-bottom-left-radius: 6px; }
.demo-msg.out .demo-bubble { background: #2f7cf6; color: #fff; border-bottom-right-radius: 6px; }
.demo-link { background: none; border: 0; padding: 0; font: inherit; color: #1a5fd6; text-decoration: underline; cursor: pointer;
    text-align: left; word-break: break-all; display: inline; }
.demo-msg.out .demo-link { color: #fff; }
.demo-time { font-size: .7rem; color: var(--ink-2); margin: .15rem .4rem 0; }
.demo-compose { display: flex; gap: .4rem; padding: .6rem; background: #fff; border-top: 1px solid #eadfe2; }
.demo-compose input { flex: 1; border-radius: 999px; padding: .5rem .9rem; }
.demo-quick { display: flex; gap: .4rem; padding: 0 .6rem .7rem; background: #fff; }
.demo-browser-bar { display: flex; align-items: center; gap: .6rem; padding: 2.4rem .8rem .5rem; background: #fff; border-bottom: 1px solid #eadfe2; }
.demo-back { background: none; border: 0; color: #2f7cf6; font: inherit; font-weight: 600; cursor: pointer; padding: 0; }
.demo-browser { flex: 1; width: 100%; border: 0; background: #fff; }
@media (max-width: 900px) { .demo-grid { grid-template-columns: 1fr; } .demo-phone { height: 680px; } }

/* ---------- Money reports ---------- */
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.row.wrap { flex-wrap: wrap; }
.money-stats { margin-bottom: 1rem; }
.big-number.neg, .money-cell.neg, .neg { color: var(--bad); }
.up { color: var(--good); font-weight: 600; }
.down { color: var(--bad); font-weight: 600; }
.meter { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; margin: .35rem 0; }
.meter > span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--gold), var(--accent)); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.money-flow tr.total td { font-weight: 700; border-top: 2px solid var(--line); }
.found { background: linear-gradient(135deg, var(--surface), var(--gold-soft)); }
.roi { margin: .75rem 0 0; padding: .6rem .8rem; border-radius: 12px; background: var(--good-soft); color: var(--good); }

.bars { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 4px; align-items: end; margin: .5rem 0; }
.bar-col { display: flex; flex-direction: column; align-items: stretch; min-width: 0; }
.bar-col .bar { height: 140px; display: flex; align-items: flex-end; justify-content: center; gap: 2px; }
.bar-col .bar > span { display: block; width: 100%; max-width: 36px; min-height: 2px; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, var(--accent), var(--plum-2)); }
.bar-col .bar.two > span { max-width: 18px; }
.bar-col .bar > span.kept { background: linear-gradient(180deg, var(--gold), #a8814a); }
.bar-col.future .bar > span { opacity: .35; }
.bar-col.today .bar-label { color: var(--accent); font-weight: 700; }
.bar-val { font-size: .68rem; color: var(--ink-2); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-height: 1em; }
.bar-label { font-size: .72rem; color: var(--ink-2); text-align: center; margin-top: 2px; }
.bar-fill { height: 4px; border-radius: 4px; background: var(--surface-2); margin-top: 3px; overflow: hidden; }
.bar-fill > span { display: block; height: 100%; background: var(--gold); }
.bars.trend .bar-col .bar { height: 160px; }
.key { display: inline-block; width: 10px; height: 10px; border-radius: 3px; vertical-align: middle; }
.key.earned { background: var(--accent); }
.key.kept { background: var(--gold); }

.day-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: .6rem; margin-bottom: 1rem; }
.day-strip > div, .day-strip > .day-money {
    background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: .6rem .8rem;
    display: flex; flex-direction: column; gap: .1rem; text-align: left; font: inherit; color: inherit; box-shadow: var(--shadow);
}
.day-strip strong { font-family: var(--serif); font-size: 1.35rem; }
.day-strip .day-money { cursor: pointer; }

/* ---------- Visit photos ---------- */
.photo-add { margin: .75rem 0; padding: .75rem; border-radius: 12px; background: var(--surface-2); }
.photo-pick { position: relative; overflow: hidden; }
.photo-pick input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; font-size: 0; }
.photo-preview { display: block; max-width: 100%; max-height: 320px; border-radius: 12px; margin-top: .75rem; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: .5rem; margin-top: .35rem; }
.photo-thumb { position: relative; padding: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface-2); aspect-ratio: 3 / 4; cursor: pointer; }
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-thumb.big { width: 110px; flex: none; }
.photo-tag { position: absolute; left: 6px; bottom: 6px; font-size: .68rem; padding: .1rem .4rem; border-radius: 99px; background: rgba(44, 31, 38, .7); color: #fff; }
.last-look { display: flex; gap: .8rem; align-items: center; margin-top: .75rem; }
.se-modal.photo-view { width: min(720px, calc(100vw - 1.5rem)); max-height: calc(100vh - 2rem); overflow: auto; }
.se-modal.photo-view img { display: block; width: 100%; max-height: calc(100vh - 9rem); object-fit: contain; border-radius: 10px; background: #111; }

/* ---------- Booking: usual services and due notes ---------- */
.usual-option {
    display: flex; align-items: center; gap: .75rem; width: 100%; padding: .9rem 1rem; border-radius: 14px; cursor: pointer; text-align: left;
    border: 2px solid var(--gold); background: linear-gradient(135deg, var(--gold-soft), var(--surface)); font: inherit; color: inherit;
}
.usual-option > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; }
.usual-star { font-size: 1.4rem; color: var(--gold); }
.usual-go { font-weight: 600; color: var(--accent); white-space: nowrap; }
.svc-due { font-size: .78rem; font-weight: 500; color: var(--ink-2); }
.svc-due.due { color: var(--accent); font-weight: 600; }
.svc-due.soon { color: var(--warn); }
@media (max-width: 700px) {
    .grid-4.money-stats { grid-template-columns: 1fr 1fr; gap: .5rem; }
    .money-stats .stat .big-number { font-size: 1.45rem; }
    .bars .bar-val { display: none; }
    .bars .bar-label { font-size: .6rem; }
    .bars { gap: 2px; }
}

/* ---------- Help ---------- */
.help-top { font-weight: 700; }
.help-q {
    display: inline-flex; align-items: center; justify-content: center; width: 1.6rem; height: 1.6rem; margin-left: .35rem;
    border-radius: 50%; border: 1.5px solid var(--accent); background: var(--surface); color: var(--accent);
    font: 700 .9rem var(--sans); cursor: pointer; vertical-align: middle;
}
.help-q:hover { background: var(--accent); color: #fff; }
.help-hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.help-search { width: 100%; box-sizing: border-box; font-size: 1.05rem; padding: .8rem 1rem; border-radius: 14px; border: 1px solid var(--line); margin-bottom: 1rem; background: var(--surface); }
.help-sections { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1rem; align-items: start; }
.help-sections .card { margin: 0; }
.help-list { list-style: none; margin: .5rem 0 0; padding: 0; }
.help-list li { padding: .45rem 0; border-top: 1px solid var(--line); display: flex; gap: .5rem; align-items: baseline; flex-wrap: wrap; }
.help-list li:first-child { border-top: 0; }
.help-list a { font-weight: 600; color: var(--ink); text-decoration: none; }
.help-list a:hover { color: var(--accent); text-decoration: underline; }
.help-article h1 { margin: .15rem 0 .5rem; }
.help-when { color: var(--ink-2); }
.help-steps { padding-left: 1.4rem; margin: 1rem 0; }
.help-steps > li { margin-bottom: 1rem; padding-left: .25rem; }
.help-steps > li::marker { font-weight: 700; color: var(--accent); }
.help-step-text { line-height: 1.55; }
.help-shot { display: block; max-width: min(100%, 760px); margin-top: .6rem; border-radius: 12px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.help-shot.phone { max-width: 260px; }
.help-article.compact .help-shot { max-width: 100%; }
.help-article.compact .help-shot.phone { max-width: 200px; }
.help-note { margin-top: .75rem; padding: .7rem .9rem; border-radius: 12px; }
.help-note.client { background: var(--gold-soft); }
.help-note.warn { background: var(--warn-soft); }
.help-note ul { margin: .35rem 0 0; padding-left: 1.2rem; }
.help-prevnext { margin: 1rem 0; gap: 1rem; }
.help-prevnext a { font-weight: 600; }
.help-drawer-item { border-bottom: 1px solid var(--line); padding: .5rem 0; }
.help-drawer-item > summary { font-weight: 700; cursor: pointer; padding: .35rem 0; }
.help-drawer-item[open] > summary { color: var(--accent); }

/* Flow diagrams: who does what, in order */
.help-flow { margin: 1rem 0; padding: .9rem; border-radius: 14px; background: var(--surface-2); }
.help-flow ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: stretch; gap: .45rem; }
.flow-box {
    display: flex; flex-direction: column; justify-content: center; gap: .15rem; min-width: 6.5rem; max-width: 11rem;
    padding: .5rem .65rem; border-radius: 12px; background: var(--surface); border: 2px solid var(--line); font-size: .88rem; line-height: 1.3;
}
.flow-who { font-size: .62rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.flow-arrow { align-self: center; color: var(--ink-2); font-weight: 700; }
.flow-box.who-you { border-color: var(--accent); }
.who-you .flow-who { color: var(--accent); }
.flow-box.who-client { border-color: var(--gold); }
.who-client .flow-who { color: #8a6526; }
.flow-box.who-app { border-color: var(--plum-2); border-style: dashed; }
.who-app .flow-who { color: var(--plum-2); }
.flow-key { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: .6rem; font-size: .75rem; color: var(--ink-2); }
.flow-key .k::before { content: ""; display: inline-block; width: .8rem; height: .8rem; border-radius: 4px; border: 2px solid; margin-right: .3rem; vertical-align: -2px; }
.flow-key .k-you::before { border-color: var(--accent); }
.flow-key .k-client::before { border-color: var(--gold); }
.flow-key .k-app::before { border-color: var(--plum-2); border-style: dashed; }
.manual-cover { margin-bottom: 1.5rem; }
.manual-toc { line-height: 1.7; }
.manual-section { margin-top: 2rem; }
.help-manual.no-pictures .help-shot { display: none; }
@media (max-width: 700px) {
    .help-top-label { display: none; }
    .flow-box { min-width: 0; max-width: 100%; flex: 1 1 40%; }
    .flow-arrow { display: none; }
}
@media print {
    .help-q, .help-top, .drawer, .drawer-backdrop, .help-prevnext, .help-search { display: none !important; }
    .help-manual .manual-topic { break-inside: avoid-page; page-break-inside: avoid; }
    .manual-section { break-before: page; }
    .help-shot { max-height: 9cm; width: auto; box-shadow: none; }
    .help-flow { background: #fff; border: 1px solid #ccc; }
    .help-note { border: 1px solid #ddd; }
    a { color: inherit; text-decoration: none; }
}
/* The "?" sits inside page headings; keep its side panel in normal text. */
h1 .drawer, h1 .drawer-backdrop { font-family: var(--sans); font-size: 1rem; font-weight: 400; letter-spacing: normal; line-height: 1.5; text-transform: none; }
h1 .drawer .drawer-head { font-family: var(--serif); font-size: 1.2rem; font-weight: 700; }
.help-drawer-item > summary { font-size: 1rem; }

/* ---------- Getting started ---------- */
.setup-card { border: 2px solid var(--gold); background: linear-gradient(135deg, var(--surface), var(--gold-soft)); }
.meter.big { height: 12px; margin: .6rem 0; }
.setup-progress { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.setup-progress .meter { flex: 1; margin: 0; }
.setup-row { display: flex; gap: .75rem; padding: .7rem 0; border-top: 1px solid var(--line); }
.setup-card .setup-row { border-top: 0; padding-bottom: 0; }
.setup-group .setup-row:first-of-type { border-top: 0; }
.setup-check {
    flex: none; width: 1.6rem; height: 1.6rem; border-radius: 50%; border: 2px solid var(--line); display: flex;
    align-items: center; justify-content: center; font-weight: 800; color: #fff; background: var(--surface);
}
.setup-row.done .setup-check { background: var(--good); border-color: var(--good); }
.setup-row.next .setup-check { border-color: var(--accent); }
.setup-row.done .setup-title { color: var(--ink-2); text-decoration: line-through; text-decoration-color: rgba(0,0,0,.25); }
.setup-body { flex: 1; min-width: 0; }
.setup-title { font-weight: 700; }
.setup-actions { margin-top: .45rem; gap: .35rem; flex-wrap: wrap; }
.linklike { background: none; border: 0; padding: 0; color: var(--accent); text-decoration: underline; cursor: pointer; font: inherit; }
.setup-row.skipped .setup-check { background: var(--ink-2); border-color: var(--ink-2); }

/* ---------- Public home page (salonedgesoftware.com) ---------- */
/* =====================================================================
   Public website (salonedgesoftware.com): home page, privacy policy, texting terms.
   Plum and champagne gold from the app's logo; Fraunces headlines, Inter text.
   ===================================================================== */
.mkt { --mkt-plum: #3b2331; --mkt-plum-deep: #2a1823; --mkt-cream: #fbf6f2; --mkt-gold: #c9a466;
    background: var(--bg); color: var(--ink); font-size: 17px; line-height: 1.6; min-height: 100vh; }
.mkt h1, .mkt h2 { font-family: var(--serif); color: inherit; }
.mkt h2::before { display: none; }
.mkt a:focus-visible, .mkt .mkt-btn:focus-visible { outline: 3px solid var(--mkt-gold); outline-offset: 3px; border-radius: 10px; }

/* Logo bar */
.mkt-bar { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    flex-wrap: wrap; padding: 1rem clamp(1rem, 4vw, 3rem); background: var(--mkt-plum); }
.mkt-logo { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; color: #fff; }
.mkt-logo img { border-radius: 10px; display: block; box-shadow: 0 0 0 1px rgba(201, 164, 102, .55); }
.mkt-word { font-family: var(--serif); font-size: 1.35rem; font-weight: 500; letter-spacing: .005em; white-space: nowrap; }
.mkt-word em { color: var(--mkt-gold); font-style: italic; }
.mkt-nav { display: flex; align-items: center; gap: .35rem 1.1rem; flex-wrap: wrap; }
.mkt-link { color: rgba(255, 255, 255, .82); text-decoration: none; font-weight: 500; font-size: .95rem; }
.mkt-link:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--mkt-gold); }

/* Buttons */
.mkt-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: .5rem 1.1rem;
    border-radius: 999px; font-weight: 600; font-size: .95rem; text-decoration: none; border: 1.5px solid transparent;
    transition: background .15s, color .15s, border-color .15s; }
.mkt-btn.big { min-height: 52px; padding: .7rem 1.6rem; font-size: 1.02rem; }
.mkt-btn.gold { background: var(--mkt-gold); color: var(--mkt-plum-deep); }
.mkt-btn.gold:hover { background: #d8b67c; }
.mkt-btn.ghost { color: #fff; border-color: rgba(255, 255, 255, .45); }
.mkt-btn.ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }

/* Hero: the one bold moment. A gold sweep (the underline from the logo) runs behind the devices,
   and the devices hang over the edge into the page below. */
.mkt-hero { position: relative; background:
    radial-gradient(900px 520px at 85% 10%, rgba(201, 164, 102, .18), transparent 65%),
    linear-gradient(160deg, var(--mkt-plum) 0%, #4a2a3c 55%, #5b3347 100%);
    color: var(--mkt-cream); padding: clamp(2rem, 6vw, 4.5rem) clamp(1rem, 4vw, 3rem) clamp(2rem, 5vw, 4rem); overflow: visible; }
.mkt-sweep { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.mkt-sweep path { fill: none; stroke: var(--mkt-gold); stroke-linecap: round; }
.mkt-sweep path:first-child { stroke-width: 2.5; opacity: .75; }
.mkt-sweep path:last-child { stroke-width: 1; opacity: .35; }
.mkt-hero-inner { position: relative; max-width: 1320px; margin: 0 auto; display: grid;
    grid-template-columns: minmax(0, 9fr) minmax(0, 15fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.mkt-hero h1 { font-size: clamp(2.4rem, 4.8vw, 3.9rem); font-weight: 450; line-height: 1.04; letter-spacing: -.02em;
    margin: 0 0 1.25rem; font-variation-settings: "opsz" 144; max-width: 12ch; }
.mkt-lead { font-size: 1.15rem; color: rgba(251, 246, 242, .86); max-width: 46ch; margin: 0 0 1.75rem; }
.mkt-cta { display: flex; flex-wrap: wrap; gap: .75rem; }
.mkt-note { margin: 1.5rem 0 0; font-size: .95rem; color: rgba(251, 246, 242, .66); max-width: 40ch; }
.mkt-hero-img { width: 100%; height: auto; display: block; margin-bottom: -12rem; position: relative;
    filter: drop-shadow(0 30px 40px rgba(20, 6, 14, .35)); animation: mkt-rise .9s cubic-bezier(.2, .7, .2, 1) both .1s; }
@keyframes mkt-rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .mkt-hero-img { animation: none; } }

/* Feature rows: picture and words side by side, alternating */
.mkt-features { max-width: 1140px; margin: 0 auto; padding: 11rem clamp(1rem, 4vw, 3rem) 2rem; }
.mkt-row { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(1.5rem, 4vw, 3.5rem);
    align-items: center; margin-bottom: clamp(3rem, 8vw, 6rem); }
.mkt-row.flip { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.mkt-row.flip > :first-child { order: 2; }
.mkt-row img { width: 100%; height: auto; display: block; }
.mkt-row h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 500; line-height: 1.15; letter-spacing: -.01em; margin: 0 0 1rem; color: var(--mkt-plum); }
.mkt-row p { margin: 0 0 .9rem; max-width: 46ch; color: #4a3a42; }
.mkt-row strong { color: var(--mkt-plum); }
.mkt-phones { display: flex; justify-content: center; gap: 0; }
.mkt-phones img { width: 44%; max-width: 230px; }
.mkt-phones img + img { margin-left: -6%; margin-top: 3.5rem; }

.mkt-extras { border-top: 1px solid var(--line); padding-top: 2.5rem; margin-bottom: 1rem; }
.mkt-extras h2 { font-size: 1.6rem; font-weight: 500; color: var(--mkt-plum); margin: 0 0 1.25rem; }
.mkt-extras ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: .9rem 2.5rem; }
.mkt-extras li { position: relative; padding-left: 1.6rem; color: #4a3a42; }
.mkt-extras li::before { content: ""; position: absolute; left: 0; top: .72em; width: .9rem; height: 2px; border-radius: 2px; background: var(--mkt-gold); }

/* Texting (carriers read this) */
.mkt-texting { max-width: 1140px; margin: 2rem auto 0; padding: 2rem clamp(1rem, 4vw, 3rem); }
.mkt-texting > * { max-width: 70ch; }
.mkt-texting h2 { font-size: 1.6rem; font-weight: 500; color: var(--mkt-plum); margin: 0 0 1rem; }
.mkt-texting p { color: #4a3a42; margin: 0 0 .9rem; }
.mkt-texting-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }

/* Closing band */
.mkt-close { margin-top: 3rem; background: linear-gradient(160deg, var(--mkt-plum) 0%, #5b3347 100%); color: var(--mkt-cream);
    padding: clamp(2.5rem, 6vw, 4rem) clamp(1rem, 4vw, 3rem); text-align: center; }
.mkt-close h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 450; margin: 0 0 .6rem; }
.mkt-close p { color: rgba(251, 246, 242, .82); margin: 0 auto 1.5rem; max-width: 46ch; }
.mkt-close .mkt-cta { justify-content: center; }

/* Footer */
.mkt-foot { background: var(--mkt-plum-deep); color: rgba(251, 246, 242, .7); padding: 2rem clamp(1rem, 4vw, 3rem); font-size: .92rem; }
.mkt-foot-inner { max-width: 1140px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; }
.mkt-foot .mkt-word { font-size: 1.1rem; }
.mkt-foot-links { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; flex: 1; }
.mkt-foot a:not(.mkt-logo) { color: rgba(251, 246, 242, .85); }
.mkt-copy { margin: 0; }

/* Privacy policy and texting terms */
.mkt-legal { max-width: 760px; margin: 0 auto; padding: 2.5rem clamp(1rem, 4vw, 2rem) 4rem; }
.mkt-legal h1 { font-size: clamp(2rem, 4vw, 2.6rem); font-weight: 500; color: var(--mkt-plum); margin: 0 0 .5rem; }
.mkt-legal h2 { font-size: 1.3rem; font-weight: 500; color: var(--mkt-plum); margin: 2rem 0 .5rem; }
.mkt-legal p, .mkt-legal li { color: #4a3a42; }

@media (max-width: 900px) {
    .mkt-hero-inner { grid-template-columns: 1fr; }
    .mkt-hero h1 { max-width: 16ch; }
    .mkt-hero-img { margin-bottom: -7rem; }
    .mkt-features { padding-top: 7rem; }
    .mkt-row, .mkt-row.flip { grid-template-columns: 1fr; }
    .mkt-row.flip > :first-child { order: 0; }
}
@media (max-width: 560px) {
    .mkt { font-size: 16px; }
    .mkt-link { display: none; }
    .mkt-bar .mkt-btn { min-height: 38px; padding: .4rem .9rem; font-size: .9rem; }
    .mkt-word { font-size: 1.15rem; }
    .mkt-hero-img { margin-bottom: -4rem; }
    .mkt-features { padding-top: 4rem; }
}
@media (max-width: 480px) {
    .topbar .brand { font-size: 1.02rem; letter-spacing: 0; white-space: nowrap; }
    .usermenu .btn.sm { padding-left: .55rem; padding-right: .55rem; }
}

/* Last look: the client's newest after-photo on her appointment */
.last-look-mini { display: flex; align-items: center; gap: .5rem; margin: .35rem 0; text-decoration: none; color: inherit; }
.last-look-mini img { width: 40px; height: 52px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); flex: none; }
.last-look-mini.big img { width: 72px; height: 96px; }
.last-look-mini.big { margin: .6rem 0; }
@media (max-width: 1280px) {
    .help-top-label { display: none; }
    .topbar .brand { font-size: 1.25rem; }
}

/* ---------- Demo mode ---------- */
.demo-banner { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; padding: .45rem 1rem; background: #fff4d6; border-bottom: 1px solid #ecd79a; color: #5b4712; font-size: .9rem; }
.demo-banner .ghost { margin-left: auto; }
.demo-tag { font-weight: 800; letter-spacing: .08em; font-size: .72rem; background: #5b4712; color: #fff4d6; padding: .15rem .45rem; border-radius: 4px; }
.demo-text { flex: 1 1 16rem; }
dl.kv { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1rem; margin: .75rem 0 1rem; }
dl.kv dt { color: var(--muted, #6b6b6b); }
dl.kv dd { margin: 0; }

/* ---------- Surveys & reviews ---------- */
.pill-tabs { display: flex; gap: .4rem; flex-wrap: wrap; margin: .25rem 0 .25rem; }
.pill-tabs a { padding: .45rem .95rem; border-radius: 999px; color: var(--muted, #6b5a62); font-weight: 600; text-decoration: none; }
.pill-tabs a:hover { background: var(--accent-soft, #f5e9ec); }
.pill-tabs a.active { background: var(--accent); color: #fff; }
.survey-tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .9rem; }
@media (max-width: 1000px) { .survey-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .survey-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.survey-tiles .big-number { font-size: 2rem; }
.tile-label { font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink, #2c1f26); }
.t-purple { color: #6d4bc8 !important; } .t-green { color: var(--good) !important; } .t-teal { color: #1f7a8c !important; } .t-amber { color: #b0731a !important; }
.survey-filters { display: grid; grid-template-columns: 1fr 220px; gap: .6rem; margin-bottom: .75rem; }
@media (max-width: 640px) { .survey-filters { grid-template-columns: 1fr; } }
.survey-comment { max-width: 280px; color: var(--body, #5a4650); }
.stars { display: inline-flex; align-items: center; gap: 1px; color: #d9cfd3; font-size: .95rem; letter-spacing: 1px; white-space: nowrap; }
.stars .on { color: #e2a52b; }
.stars-num { margin-left: .4rem; color: #6d4bc8; font-size: .9rem; }
.dist-row { margin: .55rem 0; }
.dist-row .bar { height: 10px; background: #f1eaf0; border-radius: 999px; overflow: hidden; margin-top: .3rem; }
.dist-row .bar > span { display: block; height: 100%; background: linear-gradient(90deg, #e2a52b, #f0c262); border-radius: 999px; }
.dist-row .bar.funnel > span { background: linear-gradient(90deg, #7b5bd6, #a68be8); }
.kv-table td:last-child { text-align: right; font-weight: 600; }
.qualify { display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; }
.ring { --p: 0; width: 140px; height: 140px; border-radius: 50%; display: grid; place-items: center; flex: none;
        background: conic-gradient(#7b5bd6 calc(var(--p) * 1%), #efe9f3 0); }
.ring > div { width: 104px; height: 104px; border-radius: 50%; background: #fff; display: grid; place-items: center; align-content: center; }
.ring b { font-size: 1.7rem; color: #6d4bc8; line-height: 1; } .ring span { font-size: .8rem; color: var(--muted, #6b5a62); }
.prompt-quote { border-left: 3px solid #7b5bd6; margin: .75rem 0; padding: .2rem .8rem; font-style: italic; color: var(--body, #5a4650); }
.toggle-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.toggle-row > span { display: flex; flex-direction: column; }
input.switch { appearance: none; -webkit-appearance: none; width: 46px; height: 26px; border-radius: 999px; background: #d9cfd3; position: relative; cursor: pointer; flex: none; transition: background .15s; margin: 0; }
input.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: left .15s; }
input.switch:checked { background: var(--accent); }
input.switch:checked::after { left: 23px; }
input.switch:disabled { opacity: .6; cursor: default; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem 1rem; margin: .75rem 0; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.survey-preview { background: #faf6f8; border: 1px solid var(--line); border-radius: 14px; padding: .9rem 1rem; margin-top: .75rem; display: flex; flex-direction: column; gap: .5rem; }
.follow-up-card { border-left: 4px solid var(--bad); }
/* The client's survey page */
.survey-form h1, .survey-done h1 { margin-top: 0; }
.survey-q { border: 0; padding: 0; margin: 1rem 0; }
.survey-q legend { font-weight: 600; margin-bottom: .4rem; }
.star-pick { display: flex; gap: .35rem; }
.star-pick button { font-size: 2.2rem; line-height: 1; background: none; border: 0; color: #d9cfd3; cursor: pointer; padding: .1rem; min-width: 44px; min-height: 44px; }
.star-pick button.on { color: #e2a52b; }
.review-ask { text-align: center; margin-top: 1rem; padding: 1rem; background: #fdf8ee; border-radius: 14px; }
.stars-big { font-size: 2rem; color: #e2a52b; letter-spacing: 4px; margin: 0; }
/* Printable review card */
.review-card { max-width: 420px; margin: 1.5rem auto; text-align: center; border: 2px solid var(--line); border-radius: 22px; padding: 2rem 1.5rem; background: #fff; }
.review-card h1 { font-size: 2.2rem; margin: .25rem 0 .5rem; }
.review-card .lead { font-size: 1.1rem; }
.review-card img { margin: 1rem auto; display: block; }
.survey-tiles > .card { margin: 0; }
.field > .small { display: block; font-weight: 400; letter-spacing: 0; text-transform: none; margin-top: .25rem; }
/* Calendar button that opens a date picker (Today) */
.date-jump { position: relative; display: inline-flex; }
.date-jump .btn { display: inline-flex; align-items: center; padding-left: .7rem; padding-right: .7rem; }
.date-jump input[type=date] { position: absolute; left: 0; bottom: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none; border: 0; padding: 0; }
.date-jump.open input[type=date] { position: static; opacity: 1; pointer-events: auto; width: auto; height: auto; margin-left: .35rem; }

/* Version line at the bottom of every screen */
.app-footer { text-align: center; padding: 1.25rem 1rem 1.5rem; font-size: .78rem; }
@media print { .app-footer { display: none; } }
@media (max-width: 700px) { .app-footer { padding-bottom: calc(5.5rem + env(safe-area-inset-bottom)); } }

/* =====================================================================
   Book goal (Admin › Book goal, and the card on Today)
   ===================================================================== */
.goal-presets { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .6rem; margin-top: .75rem; }
.goal-preset { position: relative; display: flex; flex-direction: column; gap: .15rem; padding: .85rem .9rem; border: 1.5px solid var(--line);
    border-radius: 14px; background: var(--surface); cursor: pointer; transition: border-color .15s, background .15s; }
.goal-preset:hover { border-color: var(--accent); }
.goal-preset.on { border-color: var(--accent); background: var(--accent-soft); }
.goal-preset input { position: absolute; opacity: 0; pointer-events: none; }
.goal-preset:has(input:focus-visible) { outline: 3px solid rgba(155, 74, 94, .35); outline-offset: 2px; }
.goal-name { font-weight: 700; }
.goal-pct { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; color: var(--accent-dark); line-height: 1.1; }
.goal-days { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: .5rem; }
.goal-days input { width: 100%; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }

.goal-weeks { display: grid; gap: .6rem; margin-top: .75rem; }
.goal-bar { position: relative; height: 10px; border-radius: 999px; background: var(--surface-2); margin-top: .3rem; overflow: visible; }
.goal-fill { position: absolute; inset: 0 auto 0 0; border-radius: 999px; background: linear-gradient(90deg, var(--accent), var(--gold)); }
.goal-fill.reached { background: linear-gradient(90deg, #34906a, var(--good)); }
.goal-mark { position: absolute; top: -4px; bottom: -4px; width: 2px; margin-left: -1px; background: var(--ink); border-radius: 2px; }
.goal-ok { color: var(--good); font-weight: 650; }
.goal-list td { vertical-align: top; }
.goal-sent { margin-top: .75rem; }
.goal-sent summary { cursor: pointer; color: var(--ink-2); }
.goal-move { display: flex; justify-content: space-between; align-items: center; gap: .75rem; flex-wrap: wrap; padding: .5rem 0; border-top: 1px solid var(--line); }
.goal-move:first-of-type { border-top: 0; }
.goal-note { margin: .9rem 0 0; padding-top: .6rem; border-top: 1px solid var(--line); font-style: italic; }
.goal-seasons { display: grid; gap: .5rem; }
.cal-appt .cal-name { color: inherit; text-decoration: underline; text-decoration-color: rgba(155, 74, 94, .45); text-underline-offset: 2px; }
.cal-appt .cal-name:hover { color: var(--accent-dark); text-decoration-color: currentColor; }

/* Clients list: the name opens the record, the phone icon dials */
.client-name { color: var(--ink); text-decoration: underline; text-decoration-color: rgba(155, 74, 94, .35); text-underline-offset: 3px; }
.client-name:hover { color: var(--accent-dark); text-decoration-color: currentColor; }
.call-link { display: inline-flex; align-items: center; gap: .45rem; color: var(--ink); text-decoration: none; padding: .35rem .55rem .35rem .4rem;
    margin: -.35rem 0 -.35rem -.4rem; border-radius: 10px; min-height: 36px; }
.call-link svg { width: 18px; height: 18px; fill: var(--accent); flex: none; }
.call-link:hover { background: var(--accent-soft); color: var(--accent-dark); }
.call-btn { display: inline-flex; align-items: center; gap: .4rem; text-decoration: none; }
.call-btn svg { width: 17px; height: 17px; fill: var(--accent); }
.slot-grid .slot.on { background: var(--accent); color: #fff; }
.change-time { border-top: 1px solid var(--line); padding-top: 1rem; }

/* ---- Client "My appointments" page (/my/{salon}) ---- */
.my-signin input[type=tel], .my-signin .code-input { font-size: 1.4rem; padding: .7rem .8rem; }
.my-signin .code-input { letter-spacing: .35em; text-align: center; }
.my-appt { border: 1px solid var(--line, #e6dcd8); border-radius: 14px; padding: .8rem .9rem; margin: .6rem 0; }
.my-appt .my-when { display: flex; justify-content: space-between; gap: .5rem; font-size: 1.1rem; }
.my-appt .btn { min-height: 44px; }
.my-visits { list-style: none; padding: 0; margin: .25rem 0 0; }
.my-visits li { padding: .35rem 0; border-bottom: 1px solid var(--line, #eee5e2); }
.my-visits li .muted { display: inline-block; min-width: 7.5rem; }
.my-install { margin-top: 1rem; }
.standalone .my-install { display: none; }
.link-btn { background: none; border: 0; padding: 0; color: var(--accent); text-decoration: underline; cursor: pointer; font: inherit; }

/* How an appointment was booked */
.booked-by { white-space: nowrap; }
.cal-block .label .booked-by, .label .booked-by { margin-right: .2rem; font-size: .85em; }
.booked-by-line { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .75rem; margin-top: .4rem; color: var(--muted, #6b5b62); }
.booked-by-line .via-chips { display: inline-flex; gap: .3rem; }
.chip.sm { padding: .15rem .55rem; font-size: .8rem; }
.on-app-badge { display: inline-block; font-size: .72rem; padding: .05rem .45rem; border-radius: 999px; background: var(--accent-soft, #f3e6ea); color: var(--accent); white-space: nowrap; vertical-align: middle; }
.app-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; }
.app-banner .meter { height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; margin-top: .4rem; max-width: 320px; }
.app-banner .meter > span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-dark, var(--accent))); }
.app-today { margin: -.25rem 0 .75rem; color: var(--muted, #6b5b62); }

/* Appointment history */
.history-list { list-style: none; padding: 0; margin: .5rem 0 0; border-left: 2px solid var(--line); }
.history-list li { position: relative; padding: .3rem 0 .45rem .8rem; font-size: .9rem; }
.history-list li::before { content: ""; position: absolute; left: -5px; top: .65rem; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.history-list li.problem::before { background: #b42318; }
.history-list li.problem .what { color: #b42318; }
.history-list .when { display: block; font-size: .75rem; color: var(--muted, #6b5b62); }
.history-list .who { margin-left: .4rem; font-size: .72rem; padding: 0 .4rem; border-radius: 999px; background: var(--line); color: var(--muted, #6b5b62); }
.history-list .detail { margin-top: .2rem; font-size: .8rem; color: var(--muted, #6b5b62); background: rgba(0,0,0,.03); border-radius: 8px; padding: .3rem .5rem; }

/* Client texts conversation */
.text-thread { display: flex; flex-direction: column; gap: .45rem; max-height: 520px; overflow-y: auto; padding: .25rem; }
.text-thread .bubble { max-width: 82%; padding: .45rem .7rem; border-radius: 14px; font-size: .9rem; overflow-wrap: anywhere; }
.text-thread .body { white-space: pre-wrap; }
.text-thread .bubble.salon { align-self: flex-end; background: var(--accent-soft, #f3e6ea); border-bottom-right-radius: 4px; }
.text-thread .bubble.client { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.text-thread .bubble.failed { border: 1px solid #b42318; }
.text-thread .meta { display: block; font-size: .7rem; color: var(--muted, #6b5b62); margin-bottom: .15rem; }
.text-thread .note { display: block; font-size: .75rem; margin-top: .2rem; color: var(--muted, #6b5b62); }
.text-thread .bubble.failed .note { color: #b42318; }
.text-thread .bubble a.appt-link { font-size: .72rem; }

/* Paused idle screen */
#se-paused { position: fixed; inset: 0; z-index: 100000; background: rgba(40, 24, 33, .55); backdrop-filter: blur(3px); display: flex; align-items: center; justify-content: center; }
#se-paused button { display: flex; flex-direction: column; align-items: center; gap: .3rem; padding: 1.4rem 2.4rem; border: 0; border-radius: 18px; background: #fff; color: var(--ink, #2a1d24); font: inherit; box-shadow: 0 12px 40px rgba(0,0,0,.25); cursor: pointer; }
#se-paused strong { font-size: 1.4rem; }
#se-paused span { color: var(--muted, #6b5b62); }
.faceid-offer { max-width: 520px; }

/* Opt-in proof page (for carrier reviewers) */
.optin-sample { border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.1rem; background: #fff; margin: .5rem 0 1.25rem; max-width: 560px; }
.optin-sample .check { display: flex; gap: .55rem; align-items: flex-start; margin-bottom: .75rem; }
.optin-sample .check input { margin-top: .25rem; }

/* Website: pricing and sign-up */
.mkt-pricing { max-width: 1140px; margin: 2rem auto 0; padding: 2rem clamp(1rem, 4vw, 3rem); border-top: 1px solid var(--line); }
.mkt-pricing h2 { font-size: 1.9rem; font-weight: 500; color: var(--mkt-plum); margin: 0 0 .75rem; }
.mkt-pricing .mkt-lead { max-width: 64ch; }
.mkt-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.mkt-plan { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 1.25rem 1.4rem; }
.mkt-plan h3 { margin: 0 0 .4rem; font-size: 1.2rem; color: var(--mkt-plum); }
.mkt-price { font-size: 2rem; font-weight: 600; color: var(--mkt-plum); }
.mkt-price span { font-size: 1rem; font-weight: 400; color: #6b5b62; }
.mkt-price-alt { color: #6b5b62; margin-bottom: .5rem; }
.mkt-steps { list-style: none; padding: 0; margin: 1.25rem 0; display: grid; gap: .6rem; max-width: 70ch; }
.mkt-steps li { padding: .7rem 1rem; background: #fff; border-radius: 12px; border: 1px solid var(--line); }
.mkt-signup { max-width: 520px; margin: 2.5rem auto 3rem; padding: 0 1rem; }
.mkt-signup h1 { font-size: 2rem; font-weight: 500; color: var(--mkt-plum); margin: 0 0 .4rem; }
.mkt-signup form { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 1.4rem; margin-top: 1rem; display: grid; gap: .85rem; }
.mkt-signup label.field input { width: 100%; }
.mkt-signup .hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.mkt-signup .agree { display: flex; gap: .5rem; align-items: flex-start; font-size: .92rem; }
.mkt-signup .agree input { margin-top: .25rem; }
.mkt-signup .error { color: #b42318; background: #fdecea; border-radius: 10px; padding: .6rem .8rem; }
.mkt-signup .fine { font-size: .85rem; color: #6b5b62; }

/* Setup welcome and texting */
.setup-welcome { max-width: 760px; }
.setup-steps { list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: .75rem; counter-reset: step; }
.setup-steps li { counter-increment: step; display: flex; gap: 1rem; align-items: center; justify-content: space-between; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 1rem 1.1rem 1rem 3.4rem; position: relative; }
.setup-steps li::before { content: counter(step); position: absolute; left: 1rem; top: 1.05rem; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: .9rem; }
.setup-steps li.done::before { content: "✓"; background: #2e7d4f; }
.setup-steps li p { margin: .2rem 0 .3rem; }
@media (max-width: 600px) { .setup-steps li { flex-direction: column; align-items: flex-start; } }
.texting-form .fields { display: grid; gap: .6rem; max-width: 560px; }
.phone-reminders { list-style: none; padding: 0; margin: 0; }
.phone-reminders li { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding: .45rem 0; border-bottom: 1px solid var(--line); }
.texting-request { border: 1px solid var(--line); border-radius: 12px; padding: .6rem .8rem; margin: .5rem 0; }
.texting-request summary { cursor: pointer; display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.texting-request .kv td:first-child { color: var(--muted, #6b5b62); white-space: nowrap; width: 7rem; }
.texting-form .field input, .texting-form .field select { display: block; width: 100%; margin-top: .2rem; }

/* Platform owner inside a business's account */
.support-bar { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; justify-content: space-between; background: #fff4d6; color: #5c4300; border-bottom: 1px solid #f0d58a; padding: .5rem clamp(.75rem, 3vw, 1.5rem); font-size: .9rem; position: sticky; top: 0; z-index: 40; }

/* Platform › Operations */
.ops-h { margin: 1.25rem 0 .5rem; }
.ops-cards .stat .big-number { font-size: 1.7rem; }
.ops-alerting { border-left: 4px solid var(--bad); background: var(--bad-soft); }
.ops-trends { gap: 1rem; }
.ops-spark { color: var(--plum); }
.ops-spark svg { width: 100%; height: 60px; display: block; margin: .25rem 0; background: var(--surface-2); border-radius: 6px; }
.ops-detail { white-space: pre-wrap; word-break: break-word; font-size: .75rem; max-height: 320px; overflow: auto; background: var(--surface-2); padding: .5rem; border-radius: 6px; }
.ops-threshold { width: 6rem; display: inline-block; margin: 0 .35rem; padding: .2rem .4rem; }
.ops-smtp { margin-top: .75rem; }
.ops-smtp summary { cursor: pointer; font-weight: 600; }
tr.clickable { cursor: pointer; }
tr.clickable:hover { background: var(--surface-2); }

/* Admin: tabs grouped under small headings; a short list while a new salon sets up */
.tab-groups { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; border-bottom: 1px solid var(--line); margin-bottom: 1rem; padding-bottom: .25rem; }
.tab-group .tabs { border-bottom: none; margin-bottom: 0; }
.tab-group-label { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); margin: 0 0 .1rem .6rem; }
.tabs .tabs-more { margin-left: auto; font-size: .9rem; }
.mkt-test-banner { background: var(--warn-soft); color: var(--ink); border: 1px solid #ecd3a4; border-radius: 12px; padding: .8rem 1rem; margin: 1rem 0 0; font-size: .95rem; }

/* Website pricing: Monthly / Yearly switch without scripts (radio buttons + :checked) */
.mkt-pricing-table { margin: 1.25rem 0; }
.mkt-pricing-table > input[type=radio] { position: absolute; opacity: 0; pointer-events: none; }
.bill-switch { display: inline-flex; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px; gap: 4px; }
.bill-switch label { padding: .5rem 1.1rem; border-radius: 999px; cursor: pointer; font-weight: 600; color: #6b5b62; }
.bill-m:checked ~ .bill-switch .lbl-m, .bill-y:checked ~ .bill-switch .lbl-y { background: var(--mkt-plum, #3b2331); color: #fff; }
.bill-m:focus-visible ~ .bill-switch .lbl-m, .bill-y:focus-visible ~ .bill-switch .lbl-y { outline: 2px solid var(--accent); outline-offset: 2px; }
.bill-save { color: var(--good); font-weight: 700; font-size: .85em; }
.bill-y:checked ~ .bill-switch .lbl-y .bill-save { color: #bfe8d2; }
.mkt-pricing-table .when-y { display: none; }
.mkt-pricing-table .when-y.only { display: block; }
.bill-y:checked ~ .mkt-plans .when-y { display: block; }
.bill-y:checked ~ .mkt-plans .when-m { display: none; }
.mkt-plan-btns { display: flex; flex-wrap: wrap; gap: .5rem; margin: .9rem 0 .4rem; }
.mkt-plan-desc { color: #6b5b62; margin: .6rem 0 0; }
.mkt-fine { font-size: .9rem; color: #6b5b62; max-width: 75ch; }
.mkt-pricing-page { border-top: none; }
.mkt-pricing-page h1 { font-size: 2.3rem; font-weight: 500; color: var(--mkt-plum, #3b2331); margin: 0 0 .5rem; }
.mkt-sub-h { font-size: 1.4rem !important; margin: 2rem 0 .75rem !important; }
.mkt-included { columns: 2 260px; padding-left: 1.2rem; line-height: 1.9; }
.mkt-faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: .75rem 1rem; margin-bottom: .5rem; }
.mkt-faq summary { cursor: pointer; font-weight: 600; }
.mkt-faq p { margin: .6rem 0 0; }

/* "How getting started works" timeline */
.timeline { list-style: none; padding: 0; margin: 1rem 0; position: relative; max-width: 760px; }
.timeline::before { content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px; background: var(--gold-soft); }
.timeline li { position: relative; padding: 0 0 1.1rem 2.1rem; display: grid; gap: .15rem; }
.timeline li::before { content: ""; position: absolute; left: 2px; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--gold); }
.timeline .tl-when { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--accent); font-weight: 700; }
.timeline span:last-child { color: var(--ink-2); }

/* Sign-up form: three short sections */
.mkt-signup-wide { max-width: 640px; }
.mkt-signup fieldset { border: none; padding: 0; margin: 0 0 .5rem; display: grid; gap: .75rem; }
.mkt-signup legend { font-weight: 700; color: var(--mkt-plum, #3b2331); font-size: 1.1rem; margin-bottom: .5rem; display: flex; align-items: center; gap: .5rem; }
.step-no { display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--gold); color: #fff; font-size: .9rem; }
.field-row { display: flex; gap: .75rem; flex-wrap: wrap; }
.field-row .grow { flex: 1 1 200px; }
.field-row .narrow { flex: 0 1 110px; }
.plan-pick { display: grid; gap: .5rem; }
.mode-pick { margin-top: .5rem; }
.plan-option { display: flex; gap: .65rem; align-items: flex-start; padding: .7rem .85rem; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; background: #fff; }
.plan-option:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.plan-option input { margin-top: .25rem; }
.plan-option span { display: grid; gap: .1rem; }
.plan-option em { font-style: normal; }

/* Get ready */
.ready-progress { display: flex; align-items: center; gap: .75rem; max-width: 420px; margin: .5rem 0 1rem; }
.ready-progress .meter { flex: 1; }
.ready-steps { list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: .6rem; max-width: 760px; }
.ready-steps li { display: flex; gap: .85rem; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: .9rem 1rem; }
.ready-steps li.done { background: var(--good-soft); border-color: #bfe2cf; }
.ready-mark { flex: none; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.ready-steps li.done .ready-mark { background: var(--good); color: #fff; }
.ready-body { display: grid; gap: .35rem; flex: 1; min-width: 0; }
.ready-body p { margin: 0; }
.ready-body .btn { justify-self: start; }
.setup-extra { margin-top: 1rem; }
.sample-bar { background: var(--plum); color: #fff; padding: .55rem 1rem; display: flex; gap: 1rem; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.sample-bar .btn { background: #fff; }
.seat-row { align-items: center; gap: .6rem; flex-wrap: wrap; }
.seat-count { font-size: 1.6rem; min-width: 2ch; text-align: center; }
.mkt-extra { font-size: .9rem; color: var(--mkt-plum, #3b2331); font-weight: 600; margin-top: .2rem; }
.team-dot { display: inline-block; width: .8rem; height: .8rem; border-radius: 50%; margin-right: .4rem; vertical-align: middle; }
.stylist-pick { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; margin: .25rem 0 .75rem; }
.stylist-pick .chip .team-dot { margin-right: .3rem; }
.appt-stylist { font-size: .72rem; font-weight: 600; opacity: .85; }
.small-h { font-size: 1rem; margin: .5rem 0 .4rem; }
