/* Practice Desk — brand from sahityapooja.com (Lora / Manrope, Deep Plum on Lavender Mist) */

@font-face { font-family: "Lora"; src: url("fonts/lora-latin-var.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Lora"; src: url("fonts/lora-latin-italic-var.woff2") format("woff2"); font-weight: 400 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("fonts/manrope-latin-var.woff2") format("woff2"); font-weight: 400 800; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; src: url("fonts/manrope-latin-ext-var.woff2") format("woff2"); font-weight: 400 800; font-display: swap; unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --plum: #4A4063; --plum-dark: #3A3350; --night: #2F2942;
  --lavender: #B3A8D9; --periwinkle: #9A9AD6; --blush: #F5C3C4; --mist: #EBE7F5; --white: #fff;
  --text: var(--plum); --text-soft: #675D82; --line: #D9D2EC; --line-soft: #EBE7F5;
  --green: #5C9A6C; --yellow: #E2C04F; --amber: #E08A45; --red: #B83E57;
  --green-bg: #E3EFE5; --green-fg: #2F5A3B; --red-bg: #F7DDE2; --red-fg: #7D2335;
  --amber-fg: #9A3A1A; --amber-bg: #FCE6D4; --rose-bg: #FCEFF0; --rose-fg: #7A3F4A;
  --serif: "Lora", Georgia, serif; --sans: "Manrope", -apple-system, "Segoe UI", sans-serif;
  --radius: 20px; --shadow: 0 4px 24px rgba(74, 64, 99, .08);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--mist); color: var(--text); font: 15px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--plum); }
a:hover { color: var(--plum-dark); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; margin: 0; }
h1 { font-size: clamp(26px, 4vw, 34px); }
h2 { font-size: 21px; }
h3 { font-size: 17px; }
h1 em, h2 em, h3 em, .brand em { font-style: italic; }
p { margin: 0 0 .8em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--text-soft); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.strong { font-weight: 700; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.icon { flex: 0 0 auto; }
:focus-visible { outline: 3px solid var(--periwinkle); outline-offset: 2px; }

/* ---------- Shell ---------- */
.shell { display: flex; min-height: 100vh; }
.sidebar { flex: 0 0 240px; background: var(--plum); color: #fff; padding: 26px 16px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.brand { font-family: var(--serif); font-size: 21px; font-weight: 600; color: #fff; text-decoration: none; padding: 0 12px 22px; display: block; }
.brand em { color: var(--line); }
.brand small { display: block; font: 12px var(--sans); color: var(--line); margin-top: 2px; }
.brand-dark { color: var(--plum); padding: 0 0 18px; }
.brand-dark em { color: var(--text-soft); }
.nav-link { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: var(--mist); text-decoration: none; }
.nav-link:hover { background: rgba(255,255,255,.08); color: #fff; }
.nav-link.is-active { background: rgba(255,255,255,.15); color: #fff; font-weight: 600; }
.badge { margin-left: auto; font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: var(--blush); color: var(--plum-dark); }
.sidebar-foot { margin-top: auto; border-top: 1px solid rgba(255,255,255,.18); padding: 16px 12px 0; font-size: 13px; color: var(--line); }
.sidebar-foot strong { color: #fff; }
.link-btn { background: none; border: 0; padding: 0; margin-top: 8px; font: inherit; color: #fff; text-decoration: underline; cursor: pointer; }
.main { flex: 1 1 auto; min-width: 0; padding: 32px clamp(16px, 3vw, 44px) 56px; display: flex; flex-direction: column; gap: 22px; max-width: 1400px; }
.tabbar { display: none; }

@media (max-width: 860px) {
  .sidebar { display: none; }
  .main { padding: 20px 16px 96px; gap: 16px; }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; background: #fff; border-top: 1px solid var(--line); padding: 6px 4px calc(8px + env(safe-area-inset-bottom)); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; font-weight: 600; color: var(--text-soft); text-decoration: none; padding: 6px 0; position: relative; }
  .tabbar a.is-active { color: var(--plum); font-weight: 700; }
  .tabbar .icon { width: 22px; height: 22px; }
  .tabbar .badge { position: absolute; top: 0; left: 55%; margin: 0; }
}

/* ---------- Page header ---------- */
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 16px; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-soft); margin-bottom: 4px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.back { font-size: 14px; font-weight: 600; text-decoration: none; color: var(--text-soft); display: inline-flex; align-items: center; gap: 4px; }

/* ---------- Cards / grids ---------- */
.card { background: #fff; border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow); min-width: 0; }
.card > h2 { margin-bottom: 4px; }
.card-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 12px; margin-bottom: 6px; }
.card-alert { border-top: 5px solid var(--red); }
.card-amber { border-top: 5px solid var(--amber); }
.card-soft { border-top: 5px solid var(--lavender); }
.card-rose { border-top: 5px solid var(--blush); }
.cols { display: flex; flex-wrap: wrap; gap: 22px; align-items: flex-start; }
.col-main { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.col-side { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.stat { background: #fff; border-radius: 18px; padding: 16px 18px; box-shadow: var(--shadow); text-decoration: none; display: block; }
.stat .label { font-size: 13px; color: var(--text-soft); font-weight: 500; }
.stat .value { font-family: var(--serif); font-size: 30px; font-weight: 600; line-height: 1.2; }
.stat .sub { font-size: 12px; color: var(--text-soft); }
.stat-alert .value { color: var(--red-fg); }
.stat-amber .value { color: var(--amber-fg); }
.stat-dark { background: var(--plum); color: #fff; }
.stat-dark .label, .stat-dark .sub { color: var(--line); }
.stat-lav { background: var(--line); }
.empty { color: var(--text-soft); font-size: 14px; padding: 10px 0 2px; }

/* ---------- Rows ---------- */
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 14px 0; border-top: 1px solid var(--line-soft); }
.row:first-of-type { border-top: 0; }
.card-head + .row, p + .row { border-top: 1px solid var(--line-soft); }
.row-time { flex: 0 0 96px; }
.row-time b { font-size: 16px; display: block; }
.row-main { flex: 1 1 180px; min-width: 0; }
.row-main .name { font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.row-amount { flex: 0 0 auto; text-align: right; }
.row-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.kind { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text-soft); }
.kind-nudge { color: var(--amber-fg); }
.kind-chase { color: var(--red-fg); }

/* ---------- Dots & pills ---------- */
.dot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; flex: 0 0 11px; vertical-align: middle; }
.dot-green { background: var(--green); } .dot-yellow { background: var(--yellow); } .dot-amber { background: var(--amber); } .dot-red { background: var(--red); } .dot-none { background: var(--line); }
.dot-lg { width: 16px; height: 16px; flex-basis: 16px; }
.pill { display: inline-block; padding: 4px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; background: var(--mist); color: var(--plum); }
.pill-paid, .pill-outcome-attended { background: var(--green-bg); color: var(--green-fg); }
.pill-past_deadline { background: var(--amber-bg); color: var(--amber-fg); }
.pill-overdue, .pill-outcome-no_show { background: var(--red-bg); color: var(--red-fg); }
.pill-refund_due, .pill-refunded { background: var(--rose-bg); color: var(--rose-fg); }
.pill-outcome-late_cancel { background: var(--amber-bg); color: var(--amber-fg); }
.pill-platform, .pill-waived, .pill-not_yet, .pill-outcome-cancelled_by_pooja { background: var(--mist); color: var(--text-soft); }
.pill-source { background: #fff; border: 1.5px solid var(--line); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--text-soft); align-items: center; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Buttons & forms ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: inherit; font-size: 14px; font-weight: 700; padding: 10px 18px; border-radius: 999px; border: 0; background: var(--plum); color: #fff; cursor: pointer; text-decoration: none; white-space: nowrap; min-height: 40px; }
.btn:hover { background: var(--plum-dark); color: #fff; }
.btn-sm { font-size: 13px; padding: 8px 14px; min-height: 36px; }
.btn-ghost { background: #fff; color: var(--plum); border: 1.5px solid var(--lavender); }
.btn-ghost:hover { background: var(--mist); color: var(--plum); }
.btn-soft { background: var(--green-bg); color: var(--green-fg); }
.btn-danger { background: var(--red-bg); color: var(--red-fg); }
.btn-block { width: 100%; }
form.inline { display: inline; margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chip { font: inherit; font-size: 14px; font-weight: 600; padding: 8px 15px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--plum); text-decoration: none; }
.chip.is-on { background: var(--plum); color: #fff; border-color: var(--plum); font-weight: 700; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label, .label-text { font-size: 13px; font-weight: 700; }
.field .hint { font-size: 12px; color: var(--text-soft); }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=search], input[type=date], input[type=time], input[type=datetime-local], select, textarea {
  font: inherit; font-size: 15px; color: var(--plum); background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 12px; width: 100%; min-height: 44px;
}
textarea { min-height: 120px; line-height: 1.5; }
input:focus, select:focus, textarea:focus { border-color: var(--periwinkle); outline: none; box-shadow: 0 0 0 3px rgba(154,154,214,.3); }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 16px; }
.check { display: flex; gap: 10px; align-items: center; font-size: 14px; margin-bottom: 10px; }
.check input { width: 18px; height: 18px; accent-color: var(--plum); }
.search { display: flex; align-items: center; gap: 8px; background: #fff; border: 1.5px solid var(--line); border-radius: 999px; padding: 0 14px; min-width: 220px; }
.search input { border: 0; min-height: 40px; padding: 0; box-shadow: none !important; }
.outcome-menu { position: relative; }
.outcome-menu summary { list-style: none; cursor: pointer; }
.outcome-menu summary::-webkit-details-marker { display: none; }
.outcome-menu .menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 5; background: #fff; border-radius: 14px; box-shadow: 0 8px 32px rgba(74,64,99,.2); padding: 6px; min-width: 220px; display: flex; flex-direction: column; }
.outcome-menu .menu button { font: inherit; font-size: 14px; text-align: left; background: none; border: 0; padding: 10px 12px; border-radius: 10px; color: var(--plum); cursor: pointer; }
.outcome-menu .menu button:hover { background: var(--mist); }

/* ---------- Flash ---------- */
.flash { padding: 12px 16px; border-radius: 14px; font-weight: 600; background: var(--green-bg); color: var(--green-fg); }
.flash-error { background: var(--red-bg); color: var(--red-fg); }
.flash-info { background: #fff; color: var(--plum); border: 1.5px solid var(--line); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }
table.list { width: 100%; border-collapse: collapse; font-size: 14px; }
table.list th { text-align: left; color: var(--text-soft); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; padding: 0 12px 10px; white-space: nowrap; }
table.list td { padding: 13px 12px; border-top: 1px solid var(--line-soft); vertical-align: middle; }
table.list th:first-child, table.list td:first-child { padding-left: 0; }
table.list th.right, table.list td.right { text-align: right; }
table.list a.name { font-weight: 700; text-decoration: none; }
.client-dot { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.total-row td { border-top: 2px solid var(--plum); font-weight: 700; }
.big { font-family: var(--serif); font-size: 22px; font-weight: 600; }

/* ---------- Client page ---------- */
.months { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; text-align: center; }
.months .bar { height: 40px; border-radius: 12px; }
.bar-green { background: var(--green); } .bar-yellow { background: var(--yellow); } .bar-amber { background: var(--amber); } .bar-red { background: var(--red); } .bar-none { background: var(--line-soft); }
dl.details { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 9px 16px; font-size: 14px; }
dl.details dt { color: var(--text-soft); }
dl.details dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.tally3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; text-align: center; }
.tally3 > div { border-radius: 14px; padding: 12px 6px; background: var(--mist); }
.tally3 .n { font-family: var(--serif); font-size: 26px; font-weight: 600; }

/* ---------- Money chart ---------- */
.chart { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; align-items: end; height: 220px; border-bottom: 1px solid var(--line); }
.chart .pair { display: flex; align-items: flex-end; justify-content: center; gap: 4px; height: 100%; }
.chart .b1, .chart .b2 { width: 40%; max-width: 26px; border-radius: 6px 6px 0 0; min-height: 2px; }
.chart .b1 { background: var(--line); } .chart .b2 { background: var(--plum); }
.chart-labels { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; text-align: center; margin-top: 8px; }

/* ---------- Auth ---------- */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: var(--mist); }
.auth-card { width: 100%; max-width: 420px; background: #fff; border-radius: 24px; padding: 32px 28px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 14px; }
.auth-card h1 { font-size: 26px; }
.secret { font-family: ui-monospace, Menlo, monospace; font-size: 17px; letter-spacing: .12em; background: var(--mist); border-radius: 12px; padding: 12px 14px; word-break: break-all; text-align: center; font-weight: 700; }
.codes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; font-family: ui-monospace, Menlo, monospace; font-size: 16px; }
.codes span { background: var(--mist); border-radius: 10px; padding: 8px; text-align: center; }


/* ---------- Pooja's private mode: deep plum, so it's obvious at a glance ---------- */
body.private-mode { background: var(--night); }
body.private-mode .main { color: var(--mist); }
body.private-mode .main h1, body.private-mode .main h2, body.private-mode .main h3 { color: #fff; }
body.private-mode .main a:not(.btn):not(.chip):not(.tile) { color: var(--line); }
body.private-mode .eyebrow, body.private-mode .tiny, body.private-mode .small, body.private-mode .muted, body.private-mode .empty { color: var(--lavender); }
body.private-mode .chip { background: transparent; color: var(--mist); border-color: rgba(179,168,217,.4); }
body.private-mode .chip.is-on { background: var(--blush); color: var(--plum-dark); border-color: var(--blush); }
body.private-mode .back { color: var(--lavender); }
body.private-mode .flash-info { background: rgba(255,255,255,.06); color: var(--mist); border-color: rgba(179,168,217,.3); }
body.private-mode .btn-ghost { background: transparent; color: var(--mist); border-color: var(--lavender); }
body.private-mode .btn { background: var(--blush); color: var(--plum-dark); }
body.private-mode .btn:hover { background: #F8D4D5; }
body.private-mode .btn-ghost:hover { background: rgba(255,255,255,.06); color: #fff; }
body.private-mode .btn-danger { background: var(--red-bg); color: var(--red-fg); }
body.private-mode .stat { background: rgba(255,255,255,.07); box-shadow: none; }
body.private-mode .stat .label, body.private-mode .stat .sub { color: var(--lavender); }
body.private-mode .stat .value { color: #fff; }
.private-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; }
.private-head .eyebrow { display: inline-flex; gap: 6px; align-items: center; color: var(--blush) !important; }
.private-card { background: rgba(255,255,255,.06); border: 1px solid rgba(179,168,217,.22); box-shadow: none; color: var(--mist); }
.private-card dl.details dt { color: var(--lavender); }
.private-card .field label { color: var(--mist); }
.private-card .row { border-color: rgba(179,168,217,.18); }
.private-card input, .private-card textarea, .private-card select { background: rgba(255,255,255,.95); }
.private-card textarea { min-height: 76px; resize: vertical; }
.private-card h3 { margin: 18px 0 8px; font-size: 16px; color: var(--blush) !important; }
.prow { text-decoration: none; color: inherit !important; border-radius: 10px; }
.prow:hover { background: rgba(255,255,255,.05); }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.tile { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border-radius: 16px; background: rgba(255,255,255,.07); border: 1px solid rgba(179,168,217,.22); text-decoration: none; color: #fff !important; }
.tile:hover { background: rgba(255,255,255,.11); }
.tile span { font-size: 13px; color: var(--lavender); }
.unlock { max-width: 440px; margin: 20px auto; text-align: left; }
.lock-ring { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: rgba(245,195,196,.15); color: var(--blush); margin-bottom: 12px; }
.lock-ring .icon { width: 26px; height: 26px; }
.center { text-align: center; }
.secret.recovery { font-size: 20px; letter-spacing: .08em; background: #fff; color: var(--plum); margin: 10px 0; }
.pill-tag { background: rgba(179,168,217,.22); color: inherit; }
body:not(.private-mode) .pill-tag { color: var(--plum); }
.tag-picks { gap: 8px 14px; }
.tag-pick { display: inline-flex; gap: 6px; align-items: center; font-size: 14px; }
.tag-row { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.tag-row input { max-width: 360px; }
.trend-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; }
.bar-row { display: grid; grid-template-columns: minmax(90px, 140px) 1fr 34px 54px; gap: 10px; align-items: center; margin-top: 9px; font-size: 14px; }
.bar-row b { text-align: right; }
.bar-track { height: 14px; border-radius: 7px; background: rgba(179,168,217,.18); overflow: hidden; }
.bar-fill { height: 100%; border-radius: 7px; min-width: 2px; }
.stack-chart { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 10px; align-items: end; height: 190px; margin-top: 12px; }
.stack-col { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.stack { display: flex; flex-direction: column; width: 26px; border-radius: 5px; overflow: hidden; }

/* ---------- Agreement links, review, signed record ---------- */
.seg-field { border: 0; padding: 0; margin: 0 0 16px; }
.seg-field legend { margin-bottom: 8px; padding: 0; }
.seg { align-self: flex-start; display: inline-flex; background: var(--mist); border: 1.5px solid var(--line); border-radius: 14px; padding: 4px; gap: 4px; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: inline-flex; align-items: center; height: 38px; padding: 0 16px; border-radius: 10px; font-size: 14px; font-weight: 600; }
.seg input:checked + span { background: var(--plum); color: #fff; }
.seg input:focus-visible + span { outline: 3px solid var(--periwinkle); outline-offset: 1px; }
.seg-sm span { height: 30px; padding: 0 12px; font-size: 13px; }
.note-amber { background: var(--amber-bg); color: var(--amber-fg); border-radius: 14px; padding: 12px 14px; font-size: 14px; line-height: 1.5; margin-bottom: 14px; }
.note-green { background: var(--green-bg); color: var(--green-fg); border-radius: 14px; padding: 12px 14px; font-size: 14px; font-weight: 700; display: flex; gap: 10px; align-items: center; }
.link-box { display: flex; gap: 8px; align-items: center; background: var(--mist); border: 1.5px solid var(--line); border-radius: 12px; padding: 8px 8px 8px 12px; margin-top: 14px; }
.link-box code { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.wa-bubble { overflow-wrap: anywhere; background: var(--green-bg); border-radius: 14px 14px 14px 4px; padding: 12px 14px; font-size: 14px; line-height: 1.55; margin-top: 6px; }
.placeholder { min-height: 220px; display: grid; place-items: center; text-align: center; color: var(--text-soft); font-size: 14px; border: 1.5px dashed var(--line); border-radius: 14px; padding: 20px; }
.fee-row { display: flex; gap: 8px; max-width: 320px; }
.fee-row select { flex: 0 0 96px; width: 96px; }
.choice-list { display: flex; flex-direction: column; gap: 10px; }
.choice { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 14px; border: 1.5px solid var(--line); cursor: pointer; }
.choice.is-on { border-color: var(--plum); }
.choice input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--plum); flex: 0 0 18px; }
.choice > span { display: flex; flex-direction: column; gap: 4px; }
.signature { font-family: var(--serif); font-style: italic; font-size: 18px; }
.mono { font-family: ui-monospace, Menlo, monospace; font-size: 13px; }
.text-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--plum); text-decoration: underline; cursor: pointer; }
.agreement-text { white-space: pre-wrap; font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }

/* Phone overrides: kept last so they win over the base rules above. */
@media (max-width: 860px) {
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .stat { padding: 10px 12px; border-radius: 14px; }
  .stat .label { font-size: 11px; line-height: 1.3; }
  .stat .value { font-size: 22px; }
  .stat .sub { display: none; }
  .page-head .btn { padding: 8px 14px; min-height: 38px; font-size: 13px; }
  .card { padding: 18px 16px; }
  .row-time { flex-basis: 70px; }
  .bar-row { grid-template-columns: 90px 1fr 30px 44px; font-size: 13px; }
}

@media print {
  .sidebar, .tabbar, .no-print { display: none !important; }
  body { background: #fff; }
}

/* Outcome you can tap to change */
.pill-edit { cursor: pointer; list-style: none; border: 1.5px solid transparent; }
.pill-edit:hover { border-color: var(--lavender); }
.outcome-menu .menu button[aria-current] { font-weight: 700; background: var(--mist); }
.outcome-menu .menu .menu-reset { border-top: 1px solid var(--line-soft); border-radius: 0 0 10px 10px; color: var(--text-soft); }

/* Period picker (Money, Discovery calls, Retention) */
.period { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.chip-sm { font-size: 12px; padding: 5px 11px; }
.period-custom { position: relative; }
.period-custom summary { list-style: none; cursor: pointer; }
.period-custom summary::-webkit-details-marker { display: none; }
.period-form { position: absolute; right: 0; top: calc(100% + 6px); z-index: 6; background: #fff; color: var(--plum); border-radius: 14px; box-shadow: 0 8px 32px rgba(74,64,99,.2); padding: 14px; display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; width: max-content; max-width: 90vw; }
.period-form label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 700; }
.period-form input { min-height: 38px; padding: 6px 10px; width: auto; }
@media (max-width: 860px) { .period { align-items: flex-start; } .period-form { left: 0; right: auto; } }

/* Authenticator QR code */
.qr { display: flex; justify-content: center; }
.qr svg { width: 220px; height: 220px; border-radius: 12px; border: 1.5px solid var(--line); }
.setup-steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }
