/* Coaching Platform styles — "Moshe Leimzider" look (cream, obsidian, gold). Mobile first.
   Colours: change the variables below. --brand comes from Settings → Brand color (buttons, active states). */
@font-face { font-family: "Playfair Display"; src: url(/static/fonts/playfair.woff2) format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Playfair Display"; src: url(/static/fonts/playfair-italic.woff2) format("woff2"); font-weight: 400 700; font-style: italic; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url(/static/fonts/dm-sans.woff2) format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }
:root {
  --brand: #1A1A1A; --ink: #1A1A1A; --ink-2: #3b3833; --muted: #6e685e; --line: #e8e2d7; --line-2: #d8cfbf;
  --bg: #F8F6F1; --card: #fff; --soft: #f3efe6; --gold: #C4A882; --gold-deep: #8a6a3c; --gold-soft: #efe6d6;
  --obsidian: #1A1A1A; --cream: #F8F6F1;
  --ok: #3f7a52; --warn: #a3621f; --err: #a8322a;
  --radius: 14px; --r-sm: 8px;
  --shadow: 0 1px 2px rgba(26,26,26,.04), 0 10px 30px -18px rgba(26,26,26,.25);
  --shadow-lift: 0 2px 4px rgba(26,26,26,.05), 0 18px 40px -20px rgba(26,26,26,.35);
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --side-w: 264px; --ease: cubic-bezier(.2,.7,.2,1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body { margin: 0; font: 400 16px/1.55 var(--sans); color: var(--ink); background: var(--bg); padding-bottom: calc(84px + env(safe-area-inset-bottom)); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.guest { padding-bottom: 32px; }
a { color: var(--ink); text-decoration-color: var(--gold); text-underline-offset: 3px; text-decoration-thickness: 1px; transition: color .2s; }
a:hover { color: var(--gold-deep); }
h1, h2, h3, h4, .stat strong, .when strong, .day strong, .next-up .date strong { font-variant-numeric: lining-nums tabular-nums; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; color: var(--ink); letter-spacing: -.005em; }
h1 { font-size: 1.85rem; line-height: 1.2; margin: .6rem 0 .9rem; }
h2 { font-size: 1.28rem; line-height: 1.3; margin: 1.9rem 0 .75rem; }
h3 { font-size: 1.05rem; line-height: 1.35; margin: 0; }
h4 { font-size: 1rem; }
@media (min-width: 1024px) { h1 { font-size: 2.3rem; } h2 { font-size: 1.4rem; } }
p { margin: .3rem 0; }
::selection { background: var(--gold-soft); }
.muted { color: var(--muted); } .small { font-size: .87rem; } .big { font-size: 1.15rem; font-weight: 600; } .right { text-align: right; }
.kicker, .door-kicker { text-transform: uppercase; letter-spacing: .18em; font-size: .7rem; font-weight: 600; color: var(--gold-deep); margin: 0 0 6px; font-family: var(--sans); }

/* ---------- header (phone + tablet) ---------- */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; padding: 8px 16px; padding-top: calc(8px + env(safe-area-inset-top)); background: rgba(248,246,241,.9); -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.top::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold) 50%, transparent); opacity: .55; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-weight: 600; font-size: 1.05rem; color: var(--ink); text-decoration: none; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.logo { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--obsidian); color: var(--gold); display: grid; place-items: center; font-weight: 600; font-family: var(--serif); }
.brand-logo { display: block; height: 38px; width: auto; max-width: 56vw; object-fit: contain; }
.top form { margin: 0; }
.top-user { display: flex; align-items: center; gap: 10px; flex: none; }
.top-links { display: flex; gap: 6px; flex: none; }
.top-links .link { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 600; text-decoration: none; color: var(--ink); padding: 10px 8px; }
.top-links .link:hover { color: var(--gold-deep); }
@media (max-width: 380px) { .brand-logo { height: 28px; max-width: 44vw; } .top-links .link { font-size: .7rem; letter-spacing: .06em; padding: 10px 4px; } }
.demo-bar { background: var(--gold-soft); color: #5e4724; font-size: .82rem; text-align: center; padding: 7px 12px; border-bottom: 1px solid #e3d4ba; }

/* ---------- desktop sidebar ---------- */
.side { display: none; }
@media (min-width: 1024px) {
  body.app { padding: 0 0 0 var(--side-w); background: linear-gradient(90deg, var(--obsidian) var(--side-w), var(--bg) var(--side-w)); }
  body.app .top, body.app .tabbar { display: none; }
  .side { display: flex; flex-direction: column; position: fixed; inset: 0 auto 0 0; width: var(--side-w); z-index: 30; padding: 26px 16px 18px; background: var(--obsidian); color: #e9e4da; overflow-y: auto;
    background-image: radial-gradient(120% 60% at 0% 0%, rgba(196,168,130,.16), transparent 60%), radial-gradient(90% 50% at 100% 100%, rgba(196,168,130,.10), transparent 60%); }
  .side::after { content: ""; position: absolute; top: 0; bottom: 0; right: 0; width: 1px; background: linear-gradient(transparent, rgba(196,168,130,.55), transparent); }
  .side-brand { display: block; padding: 4px 10px 22px; margin-bottom: 14px; border-bottom: 1px solid rgba(196,168,130,.28); text-decoration: none; }
  .side-brand img { display: block; width: 100%; max-width: 228px; height: auto; }
  .side-name { font-family: var(--serif); font-size: 1.2rem; color: var(--cream); }
  .side-label { text-transform: uppercase; letter-spacing: .2em; font-size: .64rem; color: rgba(196,168,130,.85); margin: 14px 12px 8px; font-weight: 600; }
  .side-nav { display: grid; gap: 2px; }
  .side-nav a { position: relative; display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 10px 12px; border-radius: 10px; color: rgba(248,246,241,.72); text-decoration: none; font-size: .95rem; font-weight: 500; transition: background .2s, color .2s; }
  .side-nav a svg { flex: none; opacity: .85; }
  .side-nav a:hover { background: rgba(248,246,241,.06); color: var(--cream); }
  .side-nav a.on { background: linear-gradient(90deg, rgba(196,168,130,.22), rgba(196,168,130,.06)); color: var(--cream); }
  .side-nav a.on::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 3px; background: var(--gold); }
  .side-nav a.on svg { color: var(--gold); opacity: 1; }
  .side-count { margin-left: auto; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 99px; background: var(--gold); color: var(--obsidian); font-size: .72rem; display: grid; place-items: center; }
  .side-foot { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 14px 10px 10px; border-top: 1px solid rgba(196,168,130,.28); }
  .side-foot .avatar { background: var(--gold); color: var(--obsidian); }
  .side-foot .grow strong { display: block; color: var(--cream); font-size: .92rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .side-foot .grow span { display: block; color: rgba(248,246,241,.55); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; }
  .side-foot form { margin: 0; }
  .side-out { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; border: 1px solid rgba(196,168,130,.35); background: transparent; color: var(--cream); cursor: pointer; transition: background .2s, border-color .2s; }
  .side-out:hover { background: rgba(196,168,130,.18); border-color: var(--gold); }
  .side-site { display: flex; align-items: center; gap: 8px; padding: 8px 10px 0; color: rgba(248,246,241,.5); font-size: .78rem; text-decoration: none; }
  .side-site:hover { color: var(--gold); }
}

/* ---------- page ---------- */
main { max-width: 760px; margin: 0 auto; padding: 14px 16px 28px; overflow-wrap: break-word; animation: rise .35s var(--ease) both; }
main.wide { max-width: 1120px; }
@media (min-width: 1024px) { main { padding: 36px 44px 56px; max-width: 980px; } main.wide { max-width: 1200px; } }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.card + .card, .card + form, form + .card, details + details, .list + .card, .list + details { margin-top: 12px; }
.card.narrow { max-width: 460px; margin: 24px auto; }
.card.center { text-align: center; margin-top: 40px; padding: 32px 22px; }
.list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.list > *, .week > *, .stats > * { min-width: 0; }
.list > * + * { margin-top: 0 !important; }
a.tap { display: flex; align-items: center; gap: 14px; text-decoration: none; color: inherit; transition: transform .2s var(--ease), box-shadow .2s, border-color .2s; }
a.tap.block, a.tap:has(> .bar) { display: block; }
a.tap:hover { border-color: var(--line-2); box-shadow: var(--shadow-lift); transform: translateY(-1px); }
a.tap:active { transform: scale(.99); }
.row { display: flex; gap: 10px; flex-wrap: wrap; } .row-between { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.row-between form { margin: 0; }
.grow { flex: 1; min-width: 0; } .grow h3 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 1.9rem 0 .75rem; }
.section-head h1, .section-head h2 { margin: 0; }
.section-head > a.small { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 600; text-decoration: none; color: var(--gold-deep); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: var(--r-sm); border: 1px solid var(--brand); background: var(--brand); color: var(--cream); font: 600 .8rem/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: transform .15s var(--ease), box-shadow .2s, background .2s, border-color .2s, color .2s; text-align: center; }
.btn:hover { color: var(--cream); box-shadow: 0 10px 22px -12px rgba(26,26,26,.6); transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn.small { min-height: 44px; padding: 8px 16px; font-size: .74rem; }
.btn.ghost { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn.ghost:hover { border-color: var(--gold); color: var(--ink); box-shadow: 0 8px 18px -14px rgba(26,26,26,.5); }
.btn.gold { background: var(--gold); border-color: var(--gold); color: var(--obsidian); }
.btn.gold:hover { background: #cfb690; color: var(--obsidian); }
.btn.danger { background: var(--err); border-color: var(--err); color: #fff; }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible, button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
button.link { white-space: nowrap; flex: none; background: none; border: 0; padding: 8px 4px; min-height: 36px; color: var(--ink); font: inherit; font-size: .9rem; cursor: pointer; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.top-user button.link { font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 600; text-decoration: none; min-height: 44px; padding: 8px 4px; }
.stack { display: grid; gap: 14px; }

/* ---------- forms ---------- */
label { display: grid; gap: 6px; font-size: .88rem; font-weight: 600; color: var(--ink-2); }
label.check { display: flex; align-items: center; gap: 10px; font-weight: 400; min-height: 44px; }
input, select, textarea { width: 100%; min-width: 0; font: inherit; font-weight: 400; color: var(--ink); padding: 12px 14px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: #fff; min-height: 48px; transition: border-color .2s, box-shadow .2s; }
input:hover, select:hover, textarea:hover { border-color: #c6b9a3; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(196,168,130,.22); }
select { appearance: none; -webkit-appearance: none; padding-right: 40px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%238a6a3c' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 14px center; }
input[type=checkbox] { width: 22px; height: 22px; min-height: 0; accent-color: var(--brand); }
input[type=radio] { width: 20px; height: 20px; min-height: 0; accent-color: var(--brand); }
input[type=range] { padding: 0; accent-color: var(--brand); border: 0; box-shadow: none; }
input[type=color] { padding: 4px; height: 48px; }
input[type=file] { padding: 10px; background: var(--soft); border-style: dashed; }
textarea { resize: vertical; line-height: 1.5; }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; } .two.tight { gap: 6px; }
@media (max-width: 420px) { .two:not(.tight) { grid-template-columns: 1fr; } }
details > summary { cursor: pointer; font-weight: 600; padding: 4px 0; min-height: 36px; list-style-position: inside; }
details.card > summary { color: var(--ink); }
details.card > summary::marker { color: var(--gold); }
details[open] > summary { margin-bottom: 12px; }

/* ---------- messages ---------- */
.flash { display: flex; align-items: flex-start; gap: 10px; border-radius: 12px; padding: 13px 16px; margin: 4px 0 16px; background: #eef4ec; color: #24492f; border: 1px solid #cfe0cf; animation: rise .35s var(--ease) both; }
.flash svg { flex: none; margin-top: 2px; }
.flash.err { background: #fbefec; color: #7a221b; border-color: #efcdc7; }
.note { background: var(--gold-soft); border: 1px solid #e6d8bf; border-radius: 12px; padding: 13px 16px; margin: 12px 0; font-size: .93rem; color: #4a3b22; }
.note a { color: #4a3b22; }
.note.ok { background: #eef4ec; border-color: #cfe0cf; color: #24492f; }

/* ---------- badges ---------- */
.badge { display: inline-block; font-size: .66rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; background: var(--soft); color: #5b554b; white-space: nowrap; vertical-align: middle; border: 1px solid transparent; }
.b-confirmed, .b-paid, .b-active, .b-achieved { background: #eaf2e9; color: #2f6340; border-color: #d3e4d2; }
.b-requested, .b-pending_payment, .b-unpaid, .b-lead, .b-pending { background: #f8eedb; color: #85561a; border-color: #ecd9b4; }
.b-declined { background: #f0ecf5; color: #5b3f80; }
.b-cancelled, .b-no_show, .b-failed, .b-dropped { background: #f8e8e5; color: #8f2b22; }
.b-completed, .b-past, .b-paused { background: #eeece8; color: #57524a; }
.b-credit { background: #ebeef6; color: #33467e; }
.badges { display: flex; flex-direction: column; gap: 4px; align-items: flex-end; }

/* ---------- public landing hero ---------- */
.hero { position: relative; overflow: hidden; margin: 8px 0 10px; padding: 30px 22px 24px; border-radius: 20px; color: var(--cream); background: var(--obsidian);
  background-image: radial-gradient(120% 90% at 100% 0%, rgba(196,168,130,.32), transparent 55%), linear-gradient(160deg, #22201c, #141414); }
.hero::before { content: ""; position: absolute; right: -70px; top: -70px; width: 230px; height: 230px; border-radius: 50%; border: 1px solid rgba(196,168,130,.35); pointer-events: none; }
.hero h1 { position: relative; font-size: 2.1rem; color: var(--cream); margin-top: 0; } .hero p { position: relative; color: rgba(248,246,241,.72); font-size: 1.05rem; margin-bottom: 20px; }
.hero .row { position: relative; } .hero .btn { background: var(--gold); border-color: var(--gold); color: var(--obsidian); } .hero .btn.ghost { background: transparent; color: var(--cream); border-color: rgba(248,246,241,.35); }
@media (min-width: 1024px) { .hero { padding: 48px 44px 40px; } .hero h1 { font-size: 2.8rem; max-width: 760px; } }

/* ---------- dashboard hero ---------- */
.dash-hero { position: relative; overflow: hidden; border-radius: 20px; padding: 22px 18px 18px; margin: 6px 0 18px; color: var(--cream); background: var(--obsidian);
  background-image: radial-gradient(120% 90% at 100% 0%, rgba(196,168,130,.32), transparent 55%), radial-gradient(80% 80% at 0% 100%, rgba(196,168,130,.14), transparent 60%), linear-gradient(160deg, #22201c, #141414); box-shadow: 0 24px 50px -30px rgba(26,26,26,.75); animation: rise .45s var(--ease) both; }
.dash-hero::before { content: ""; position: absolute; right: -70px; top: -70px; width: 230px; height: 230px; border-radius: 50%; border: 1px solid rgba(196,168,130,.35); box-shadow: 0 0 0 26px rgba(196,168,130,.05), 0 0 0 27px rgba(196,168,130,.2); pointer-events: none; }
.dash-hero .kicker { color: var(--gold); }
.dash-hero h1 { color: var(--cream); margin: 0 0 6px; font-size: 2rem; position: relative; }
.dash-hero h1 em { font-style: italic; color: var(--gold); font-weight: 500; }
.dash-hero .sub { color: rgba(248,246,241,.72); margin: 0 0 16px; font-size: .95rem; max-width: 520px; position: relative; }
.dash-hero .hero-actions { display: flex; flex-wrap: wrap; gap: 10px; position: relative; }
.dash-hero .hero-actions .btn { flex: 1 1 auto; padding-left: 14px; padding-right: 14px; white-space: nowrap; letter-spacing: .09em; }
@media (min-width: 640px) { .dash-hero .hero-actions .btn { flex: 0 0 auto; padding-left: 22px; padding-right: 22px; } }
.dash-hero .btn.ghost { background: transparent; color: var(--cream); border-color: rgba(248,246,241,.35); }
.dash-hero .btn.ghost:hover { border-color: var(--gold); color: var(--cream); }
.next-up { position: relative; display: flex; align-items: center; gap: 14px; padding: 14px; margin: 0 0 16px; border-radius: 14px; background: rgba(248,246,241,.07); border: 1px solid rgba(196,168,130,.3); color: var(--cream); text-decoration: none; transition: background .2s, border-color .2s; }
a.next-up:hover { background: rgba(248,246,241,.11); border-color: var(--gold); color: var(--cream); }
.next-up .date { flex: none; width: 58px; padding: 6px 0; border-radius: 10px; background: var(--gold); color: var(--obsidian); text-align: center; line-height: 1.1; }
.next-up .date strong { display: block; font-family: var(--serif); font-size: 1.45rem; }
.next-up .date span { font-size: .66rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 700; }
.next-up .grow strong { display: block; font-family: var(--serif); font-size: 1.08rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.next-up .grow span { display: block; font-size: .86rem; color: rgba(248,246,241,.7); }
.next-up .lbl-up { font-size: .64rem; text-transform: uppercase; letter-spacing: .18em; color: var(--gold); font-weight: 600; }
.next-up.none .date { background: transparent; border: 1px dashed rgba(196,168,130,.6); color: var(--gold); display: grid; place-items: center; height: 58px; }
@media (min-width: 1024px) { .dash-hero { padding: 34px 34px 28px; } .dash-hero h1 { font-size: 2.6rem; } .dash-hero::before { width: 320px; height: 320px; right: -80px; top: -110px; } }

/* stats */
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 10px 0; }
@media (min-width: 640px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; } }
.stats.small3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat { position: relative; display: block; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 14px 13px; text-decoration: none; color: inherit; box-shadow: var(--shadow); transition: transform .2s var(--ease), box-shadow .2s, border-color .2s; overflow: hidden; }
a.stat:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); border-color: var(--line-2); color: inherit; }
.stat strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 639px) { .stat strong { font-size: 1.45rem !important; } }
.stat .stat-ic { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--gold-soft); color: var(--gold-deep); }
.stat:has(.stat-ic) { padding-top: 18px; padding-right: 50px; }
.stat strong { display: block; font-family: var(--serif); font-size: 1.7rem; font-weight: 600; line-height: 1.15; }
.stat span { display: block; font-size: .7rem; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; font-weight: 600; margin-top: 2px; }
.stat .stat-ic + strong { margin-top: 0; }
.stat.warn strong { color: var(--warn); }
.stat::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 0; height: 2px; background: linear-gradient(90deg, var(--gold), transparent); opacity: 0; transition: opacity .2s; }
a.stat:hover::after { opacity: 1; }

/* quick actions */
.quick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 10px 0; }
@media (min-width: 640px) { .quick { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; } }
.quick a { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 12px 14px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 600; font-size: .92rem; line-height: 1.25; box-shadow: var(--shadow); transition: transform .2s var(--ease), box-shadow .2s, border-color .2s; }
.quick a:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); border-color: var(--gold); color: var(--ink); }
.quick a .q-ic { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--obsidian); color: var(--gold); }
.quick a small { display: block; font-weight: 400; color: var(--muted); font-size: .78rem; }
@media (max-width: 639px) { .quick a { min-height: 60px; padding: 10px 12px; gap: 10px; font-size: .88rem; } .quick a small { display: none; } .quick a .q-ic { width: 36px; height: 36px; } }

/* two-column dashboard on wide screens */
.dash-grid { display: grid; gap: 0 28px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1180px) { .dash-grid { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); } .dash-grid > div > :first-child { margin-top: 1.4rem; } }
.panel-title { display: flex; align-items: center; gap: 10px; }
.panel-title svg { color: var(--gold-deep); }

/* ---------- sessions, booking ---------- */
.stype { display: flex; justify-content: space-between; align-items: center; gap: 14px; border-left: 3px solid var(--c, var(--gold)); }
details.stype { display: block; }
.stype .meta { display: grid; justify-items: end; gap: 3px; text-align: right; white-space: nowrap; }
.stype .meta strong { font-family: var(--serif); font-size: 1.1rem; }
.stype .meta span { color: var(--muted); font-size: .82rem; }
.appt { border-left: 3px solid var(--c, var(--gold)); }
.when { flex: none; width: 56px; display: grid; justify-items: center; line-height: 1.1; padding: 6px 0; border-radius: 10px; background: var(--soft); }
.when strong { font-family: var(--serif); font-size: 1.4rem; font-weight: 600; } .when span { font-size: .66rem; color: var(--gold-deep); text-transform: uppercase; letter-spacing: .12em; font-weight: 700; }
.when.time { width: 82px; } .when.time strong { font-family: var(--sans); font-size: .95rem; font-weight: 700; white-space: nowrap; }
.when.time span { letter-spacing: .04em; text-transform: none; font-weight: 500; color: var(--muted); font-size: .74rem; }
.days { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 12px; scroll-snap-type: x mandatory; }
.day { flex: none; width: 66px; min-height: 70px; scroll-snap-align: start; display: grid; justify-items: center; align-content: center; padding: 8px 0; border-radius: 12px; border: 1px solid var(--line); background: #fff; text-decoration: none; color: var(--ink); line-height: 1.2; transition: border-color .2s, transform .15s; }
.day:hover { border-color: var(--gold); }
.day span { font-size: .66rem; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; } .day strong { font-family: var(--serif); font-size: 1.4rem; }
.day.on { background: var(--obsidian); border-color: var(--obsidian); color: var(--cream); } .day.on span { color: var(--gold); }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 8px; }
.slot { display: grid; place-items: center; min-height: 50px; border-radius: 10px; border: 1px solid var(--line-2); color: var(--ink); background: #fff; font-weight: 600; text-decoration: none; transition: background .2s, color .2s, border-color .2s, transform .15s; }
.slot:hover { background: var(--obsidian); border-color: var(--obsidian); color: var(--cream); transform: translateY(-1px); }
h2.step { margin-top: 1.3rem; }
.back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin: 0 0 2px; text-decoration: none; font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 600; color: var(--gold-deep); }
.summary h1, .summary h3 { margin-top: 0; }
.quote { font-family: var(--serif); font-style: italic; color: var(--ink-2); border-left: 2px solid var(--gold); padding-left: 12px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; } .actions form { margin: 0; }
.pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.bar { height: 8px; background: var(--soft); border-radius: 99px; overflow: hidden; margin: 10px 0 4px; } .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-deep), var(--gold)); border-radius: 99px; transition: width .6s var(--ease); }
.avatar { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--obsidian); color: var(--gold); display: grid; place-items: center; font-family: var(--serif); font-weight: 600; font-size: .95rem; letter-spacing: .02em; }
.avatar.sm { width: 36px; height: 36px; font-size: .8rem; }
.avatar.big { width: 64px; height: 64px; font-size: 1.3rem; box-shadow: 0 0 0 3px var(--bg), 0 0 0 4px var(--gold); }
.client-head { display: flex; align-items: center; gap: 16px; } .client-head h1 { margin: 0; }
.tabs, .chips, .days { scrollbar-width: none; } .tabs::-webkit-scrollbar, .chips::-webkit-scrollbar, .days::-webkit-scrollbar { display: none; }
.tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--line); margin: 16px 0 14px; }
.tabs a { padding: 12px 12px; min-height: 44px; text-decoration: none; color: var(--muted); font-weight: 600; white-space: nowrap; border-bottom: 2px solid transparent; font-size: .9rem; transition: color .2s, border-color .2s; }
.tabs a:hover { color: var(--ink); }
.tabs a.on { color: var(--ink); border-bottom-color: var(--gold); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 12px; }
.chip { flex: none; display: inline-flex; align-items: center; min-height: 40px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; text-decoration: none; color: var(--ink); font-size: .86rem; cursor: pointer; font: inherit; font-size: .86rem; transition: border-color .2s, background .2s; }
.chip:hover { border-color: var(--gold); }
.chip.on { background: var(--obsidian); color: var(--cream); border-color: var(--obsidian); }
.search { display: flex; gap: 8px; } .search input { flex: 1; }

/* ---------- empty states ---------- */
.empty { text-align: center; padding: 28px 18px 26px; color: var(--muted); border: 1px dashed var(--line-2); border-radius: var(--radius); background: linear-gradient(180deg, #fff, rgba(255,255,255,.55)); }
.empty .empty-ic { display: grid; place-items: center; width: 60px; height: 60px; margin: 0 auto 12px; border-radius: 50%; color: var(--gold-deep); background: var(--gold-soft); box-shadow: 0 0 0 6px rgba(196,168,130,.12); }
.empty p { max-width: 380px; margin: 0 auto; color: var(--ink-2); font-size: .95rem; }
.empty .btn { margin-top: 14px; }
.card .empty { border: 0; background: none; padding: 14px 6px 6px; }
.note-item.ai { border-color: #ddd3ec; background: #fcfbff; }

/* ---------- calendar ---------- */
.weeknav { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 10px 0; }
.week { display: grid; gap: 16px; }
@media (min-width: 960px) { .week { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; } .week .appt .when { width: auto; background: none; padding: 0; justify-items: start; } .week .appt { flex-direction: column; align-items: flex-start; gap: 4px; padding: 10px; } .week .badges { align-items: flex-start; } .week .appt .grow { width: 100%; } .week .appt h3 { font-size: .95rem; } }
.daycol h3 { font-family: var(--sans); font-size: .72rem; color: var(--muted); margin-bottom: 8px; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.daycol.today h3 { color: var(--gold-deep); border-bottom-color: var(--gold); }
.hour-row { display: grid; grid-template-columns: 100px 1fr; gap: 10px; align-items: start; padding: 8px 0; border-bottom: 1px solid var(--line); }
.hour-row > div { display: grid; gap: 6px; } .hour-row strong { padding-top: 12px; font-size: .9rem; }
.hour-row .more input { opacity: .65; }

/* ---------- phone tab bar ---------- */
.tabbar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 25; display: flex; justify-content: space-around; background: rgba(255,255,255,.96); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); box-shadow: 0 -10px 30px -22px rgba(26,26,26,.4); }
.tabbar a { position: relative; flex: 1; min-width: 0; display: grid; justify-items: center; gap: 3px; min-height: 52px; padding: 7px 0 4px; color: #8a847a; text-decoration: none; font-size: .68rem; font-weight: 600; letter-spacing: .02em; transition: color .2s; }
.tabbar a span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tabbar a::before { content: ""; position: absolute; top: -6px; left: 50%; width: 0; height: 2px; background: var(--gold); border-radius: 2px; transform: translateX(-50%); transition: width .25s var(--ease); }
.tabbar a.on { color: var(--ink); } .tabbar a.on::before { width: 28px; } .tabbar a.on svg { color: var(--gold-deep); }
@media (min-width: 640px) and (max-width: 1023px) { .tabbar a { font-size: .74rem; } }

.grow p.one { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inline-badges { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
[id] { scroll-margin-top: 80px; }
@media (max-width: 520px) { .hour-row { grid-template-columns: minmax(0, 1fr); gap: 6px; } .hour-row strong { padding-top: 4px; } }
input[type=time] { padding-left: 8px; padding-right: 6px; }
.card .row-between .badge { white-space: normal; text-align: right; }

/* ---------- client tabs, to-do, checklists, forms, agreements, metrics, reminders ---------- */
.grid-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; overflow: visible; border-bottom: 0; }
@media (min-width: 420px) { .grid-tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 640px) { .grid-tabs { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.grid-tabs a { position: relative; display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 6px 4px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-size: .8rem; text-align: center; white-space: normal; line-height: 1.15; }
.grid-tabs a.on { background: var(--obsidian); border-color: var(--obsidian); color: var(--cream); }
.dot { position: absolute; top: -7px; right: -5px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 99px; background: var(--gold); color: var(--obsidian); font-size: .66rem; font-weight: 800; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--bg); }
.nav-dot { position: absolute; top: 2px; left: 50%; margin-left: 6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--gold); color: var(--obsidian); font-size: .64rem; font-weight: 800; display: grid; place-items: center; box-shadow: 0 0 0 2px #fff; }
a.apps-card .nav-dot { position: static; margin: 0; }
.count { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 99px; background: var(--gold-soft); color: var(--gold-deep); font: 700 .76rem var(--sans); vertical-align: middle; }
.badge.s-sent { background: #f8eedb; color: #85561a; } .badge.s-viewed { background: #e9eef8; color: #2d4f8f; }
.badge.s-signed { background: #eaf2e9; color: #2f6340; } .badge.s-late { background: #f8e8e5; color: #8f2b22; } .badge.s-void { background: #eee; color: #666; }
.late { color: var(--err); font-weight: 600; }
.item h3 { white-space: normal; }
.mt { margin-top: 14px; } .center { text-align: center; } .self-end { align-self: end; padding-bottom: 10px; }
ul.plain, ol.plain { margin: 6px 0; padding-left: 20px; } ul.plain li, ol.plain li { margin: 4px 0; }
ul.plain li::marker, ol.plain li::marker { color: var(--gold-deep); }
.clamp { max-height: 220px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }

/* checklist */
.checklist { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.checklist form { margin: 0; }
.tick { width: 100%; display: flex; align-items: flex-start; gap: 12px; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 13px 14px; font: inherit; color: var(--ink); cursor: pointer; min-height: 50px; transition: border-color .2s, background .2s; }
.tick:hover { border-color: var(--gold); }
.tick .box { flex: none; width: 24px; height: 24px; border-radius: 7px; border: 1.5px solid var(--line-2); display: grid; place-items: center; font-weight: 800; color: var(--obsidian); transition: background .2s, border-color .2s; }
.tick.on { background: #faf8f3; } .tick.on .box { background: var(--gold); border-color: var(--gold); }
.tick.on .grow { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line-2); }
.tick small { display: block; text-decoration: none; font-size: .75rem; color: var(--muted); }

/* questionnaires */
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; } legend { padding: 0; margin-bottom: 8px; font-size: .9rem; font-weight: 600; color: var(--ink-2); }
.q-choice { display: grid; gap: 8px; } .q-choice label.check { padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; transition: border-color .2s; }
.q-choice label.check:hover { border-color: var(--gold); }
.q-choice label.check:has(input:checked) { border-color: var(--gold); background: #fbf8f2; }
.q-choice input, .check input { width: 20px; min-height: 20px; height: 20px; flex: none; accent-color: var(--brand); }
.req { color: var(--err); }
.scale { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 4px; }
.scale label, .yesno label { display: block; position: relative; }
.scale input, .yesno input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.scale span, .yesno span { display: grid; place-items: center; min-height: 44px; border: 1px solid var(--line-2); border-radius: 8px; background: #fff; font-weight: 700; cursor: pointer; transition: background .2s, border-color .2s, color .2s; }
.scale input:checked + span, .yesno input:checked + span { background: var(--obsidian); border-color: var(--obsidian); color: var(--gold); }
.scale input:focus-visible + span, .yesno input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.scale-ends { display: flex; justify-content: space-between; margin-top: 4px; }
.yesno { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.answers .ans + .ans { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 12px; }
.scale-read { position: relative; height: 28px; background: var(--soft); border-radius: 8px; overflow: hidden; } .scale-read i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, rgba(196,168,130,.45), rgba(196,168,130,.75)); }
.scale-read b { position: relative; padding-left: 10px; line-height: 28px; }
.frow { display: grid; gap: 8px; background: #fcfbf8; } .frow + .frow { margin-top: 8px; } .frow-tools .btn { min-height: 40px; padding: 4px 12px; }
.danger-text { color: var(--err) !important; }

/* agreements */
.doc h2 { margin-top: 0; } .doc .pre { font-size: .97rem; line-height: 1.7; }
.sigpad { display: block; width: 100%; height: 170px; margin-top: 6px; border: 1.5px dashed var(--line-2); border-radius: 12px; background: #fff linear-gradient(transparent 76%, #e4ddd0 76%, #e4ddd0 77%, transparent 77%); touch-action: none; cursor: crosshair; }
.sigpad.has-ink { border-style: solid; border-color: var(--gold); }
.lbl { font-size: .88rem; font-weight: 600; color: var(--ink-2); }
.consent { align-items: flex-start; font-weight: 400; font-size: .88rem; } .consent input { margin-top: 2px; }
.sig-img { display: block; max-width: 100%; height: auto; max-height: 120px; background: #fff; border-bottom: 1px solid #333; margin: 8px 0; }
.signed-box { border-color: #cfe0cf; background: #f6faf5; }
.steps3 { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 0; margin: 6px 0 16px; counter-reset: st; }
.steps3 li { position: relative; text-align: center; padding: 11px 4px; border-radius: 10px; background: #fff; border: 1px solid var(--line); color: var(--muted); font-size: .76rem; line-height: 1.3; }
.steps3 li b { display: block; font-size: .88rem; color: var(--ink-2); }
.steps3 li.on { background: var(--obsidian); border-color: var(--obsidian); color: rgba(248,246,241,.75); } .steps3 li.on b { color: var(--gold); }
table.audit { width: 100%; border-collapse: collapse; font-size: .8rem; margin: 8px 0; table-layout: fixed; }
.audit th, .audit td { text-align: left; vertical-align: top; padding: 7px 6px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.audit th { font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.audit small, .ua { color: var(--muted); font-size: .72rem; } .mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .75rem; }
body.print-doc { padding: 0; background: #fff; }
.bar-top { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #fff; }
.doc-page { max-width: 760px; } .doc-text { font-size: .97rem; line-height: 1.7; margin: 18px 0; }
.sig-block, .audit-block { border-top: 2px solid var(--ink); margin-top: 24px; padding-top: 6px; }
@media print { .noprint, .tabbar, .top, .demo-bar, .side { display: none !important; } body, body.app { padding: 0; background: #fff; } main { max-width: none; padding: 0; animation: none; } .card { box-shadow: none; } }

/* metrics */
.chart { display: block; width: 100%; height: auto; margin: 10px 0 4px; overflow: visible; }
.delta.up { color: var(--ok); } .delta.down { color: var(--err); }
.entry { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) auto; gap: 6px; margin: 6px 0; }
.entry input, .entry select { min-height: 44px; padding: 6px 10px; }
.metric details summary { color: var(--muted); }

/* to-do + reminders */
.todo-item { display: flex; align-items: center; gap: 14px; } .todo-ic { flex: none; width: 42px; height: 42px; border-radius: 12px; background: var(--soft); display: grid; place-items: center; font-size: 1.15rem; }
.todo-item.is-late, .reminder.is-late { border-color: #efcdc7; background: #fffaf9; }
.todo-item.k-agreement .todo-ic { background: var(--gold-soft); } .todo-item.k-form .todo-ic { background: #eef0f6; }
.chev { color: var(--gold); font-size: 1.6rem; line-height: 1; }
.reminder.is-done { opacity: .6; } .reminder h3 { white-space: normal; }
.note-secs { display: grid; gap: 8px; } .note-secs h4 { margin: 0; font-family: var(--sans); font-size: .7rem; text-transform: uppercase; letter-spacing: .14em; color: var(--gold-deep); }
.waiting { margin-top: 12px; }
.inline-form { gap: 6px; align-items: center; } .inline-form input { width: auto; min-height: 44px; padding: 6px 10px; }

/* demo login */
.demo-card { border-color: #e6d8bf; background: #fffcf6; } .demo-card h2 { margin: 0 0 12px; font-size: 1.1rem; }
.demo-login { margin: 0 0 8px; }
.demo-btn { width: 100%; display: grid; gap: 2px; text-align: left; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: #fff; color: var(--ink); font: inherit; cursor: pointer; min-height: 58px; transition: border-color .2s; }
.demo-btn:hover { border-color: var(--gold); }
.demo-btn strong { color: var(--ink); font-size: 1.02rem; } .demo-btn span { font-size: .82rem; color: var(--muted); }
.pw { position: relative; display: block; } .pw input { padding-right: 70px; } .pw button { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; text-decoration: none; color: var(--gold-deep); font-weight: 700; }

[hidden] { display: none !important; }

/* exercise message thread, file links, sign-up notice */
.thread { display: flex; flex-direction: column; gap: .5rem; margin-bottom: .75rem; }
.thread .msg { padding: .65rem .9rem; border-radius: 16px 16px 16px 4px; max-width: 88%; background: var(--soft); }
.thread .msg.mine { align-self: flex-end; border-radius: 16px 16px 4px 16px; background: var(--obsidian); color: var(--cream); }
.thread .msg.mine .muted { color: rgba(248,246,241,.6); }
.thread .msg p { margin: 0 0 .2rem; }
.file-link { display: inline-flex; flex-wrap: wrap; gap: .25rem .75rem; align-items: baseline; }
.signup-note .mt, .log-past { margin-top: .5rem; }
.log-past summary { cursor: pointer; color: var(--muted); }

/* ---------- sign-in doors, applications ---------- */
.door-coach .door-kicker { color: var(--gold-deep); }
.login-door h1, .register h1, .become-coach h1 { margin-top: 0; }
a.other-door { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; min-height: 64px; background: transparent; border: 1px solid var(--line-2); box-shadow: none; }
a.other-door:hover { background: #fff; border-color: var(--gold); }
a.other-door > span[aria-hidden], a.apps-card > span[aria-hidden], a.apply-status > span[aria-hidden] { color: var(--gold-deep); font-size: 1.2rem; }
a.other-door strong, a.apps-card strong, a.apply-status strong { display: block; color: var(--ink); font-family: var(--serif); font-weight: 600; font-size: 1.02rem; }
a.other-door .small, a.apps-card .small, a.apply-status .small { display: block; }
.google-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; background: #fff; color: #1f1f1f; border: 1px solid var(--line-2); min-height: 50px; text-transform: none; letter-spacing: 0; font-size: .95rem; }
.google-btn:hover { color: #1f1f1f; border-color: var(--gold); }
.google-btn .g-logo { flex: none; }
.or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .16em; margin: 12px 0; }
.or::before, .or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
fieldset.checks { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px 12px; margin: 0; background: #fcfbf8; }
fieldset.checks legend { font-size: .9rem; padding: 0 4px; }
label.check input { width: 20px; height: 20px; flex: none; margin: 0; }
.apply-steps { margin-top: 6px; }
dl.answers { margin: 0; }
dl.answers dt { font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; color: var(--gold-deep); margin-top: 16px; }
dl.answers dt:first-child { margin-top: 0; }
dl.answers dd { margin: 4px 0 0; color: var(--ink); }
input.copy { width: 100%; margin-top: 8px; font-size: .85rem; background: var(--soft); }
a.apps-card, a.apply-status { margin: 12px 0; }
a.apps-card .q-ic, a.apply-status .q-ic { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--obsidian); color: var(--gold); }
a.apply-status.todo { border-color: #e6d8bf; background: linear-gradient(120deg, #fffdf9, var(--gold-soft)); }
.assessments-soon { margin-top: 16px; }
.assessments-soon h2, .discovery h2 { margin: 0; }
.apply-steps li.on { background: var(--obsidian); color: rgba(248,246,241,.8); }
.become-coach > p.muted, .register > p.muted { margin-bottom: 14px; }
.page-logo { display: none; }

/* ---------- sign-in / registration shell ---------- */
body.auth { padding: 0; background: var(--bg); }
.auth-shell { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1fr); }
.auth-side { position: relative; overflow: hidden; color: var(--cream); background: var(--obsidian);
  background-image: radial-gradient(110% 70% at 100% 0%, rgba(196,168,130,.30), transparent 58%), radial-gradient(90% 60% at 0% 100%, rgba(196,168,130,.14), transparent 60%), linear-gradient(165deg, #23201b, #121212);
  padding: calc(22px + env(safe-area-inset-top)) 22px 64px; display: flex; flex-direction: column; gap: 18px; }
.auth-side::before { content: ""; position: absolute; right: -90px; top: -90px; width: 260px; height: 260px; border-radius: 50%; border: 1px solid rgba(196,168,130,.35); box-shadow: 0 0 0 30px rgba(196,168,130,.04), 0 0 0 31px rgba(196,168,130,.18); pointer-events: none; }
.auth-logo { position: relative; display: block; max-width: 220px; text-decoration: none; color: var(--cream); font-family: var(--serif); font-size: 1.2rem; }
.auth-logo img, .auth-logo .brand-logo { display: block; width: 100%; height: auto; max-width: none; }
.auth-pitch { position: relative; }
.auth-pitch .kicker { color: var(--gold); }
.auth-pitch h2 { color: var(--cream); font-size: 1.55rem; line-height: 1.25; margin: 0; font-weight: 500; }
.auth-tag { display: none; color: rgba(248,246,241,.7); margin-top: 12px; font-size: 1.02rem; }
.card form.stack + p, .card form.stack + p.small { margin-top: 16px; }
.auth-points { display: none; list-style: none; padding: 0; margin: 26px 0 0; gap: 14px; }
.auth-points li { display: flex; align-items: center; gap: 12px; color: rgba(248,246,241,.82); font-size: .95rem; }
.auth-points li span { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(196,168,130,.5); color: var(--gold); }
.auth-back { display: none; position: relative; color: rgba(248,246,241,.55); font-size: .8rem; text-decoration: none; letter-spacing: .06em; }
.auth-back:hover { color: var(--gold); }
.auth-main { position: relative; padding: 0 16px 28px; margin-top: -44px; display: flex; flex-direction: column; align-items: center; animation: rise .45s var(--ease) both; }
.auth-main > * { width: 100%; max-width: 460px; }
.auth-main .card.narrow { margin: 0 auto 14px; padding: 24px 20px; box-shadow: 0 24px 48px -28px rgba(26,26,26,.45), 0 1px 2px rgba(26,26,26,.05); }
.auth-main .card.narrow + .card.narrow { margin-top: 0; }
.auth-main a.other-door.card.narrow { padding: 14px 18px; box-shadow: none; }
.auth-main .card h1 { font-size: 1.7rem; }
.auth-main .flash { margin: 0 auto 12px; }
.auth-foot { text-align: center; color: var(--muted); font-size: .74rem; letter-spacing: .08em; margin-top: 10px; }
@media (min-width: 900px) {
  .auth-shell { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
  .auth-side { position: sticky; top: 0; height: 100vh; height: 100dvh; padding: 48px 52px; justify-content: space-between; }
  .auth-side::before { width: 420px; height: 420px; right: -140px; top: -140px; }
  .auth-logo { max-width: 260px; }
  .auth-pitch h2 { font-size: 2.35rem; }
  .auth-points { display: grid; }
  .auth-tag { display: block; }
  .auth-back { display: block; }
  .auth-main { margin-top: 0; justify-content: center; padding: 56px 40px; min-height: 100vh; min-height: 100dvh; }
  .auth-main .card.narrow { padding: 32px 34px; }
}
@media (min-width: 1280px) { .auth-pitch h2 { font-size: 2.7rem; max-width: 520px; } }

/* client home uses the wide page: keep long lists comfortable */
@media (min-width: 1024px) { body.role-client main.wide { max-width: 1040px; } }

/* Memberships */
.note.err { background: #f8e8e5; border-color: #ecc9c3; color: #7a2a20; }
.plan-incl { margin: .45rem 0 0; padding-left: 1.1rem; } .plan-incl li { margin: 2px 0; }
.card.stype.on { outline: 2px solid var(--gold-deep, #a07a3c); }
.card.plan h2 { margin: 0 0 .2rem; } .card.plan h3 { margin: .6rem 0 0; }
.member form.row { align-items: center; } .member select { max-width: 100%; }
.b-past_due { background: #f8e8e5; color: #8f2b22; }

/* Emails tab: the conversation with a client (received on the left, sent on the right) */
.mail-thread { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.mail { background: #fff; border: 1px solid #e7e1d6; border-radius: 14px; padding: 12px 14px; max-width: 88%; }
.mail p { margin: 0 0 6px; }
.mail-in { align-self: flex-start; border-top-left-radius: 4px; }
.mail-out { align-self: flex-end; background: #f3f5f9; border-color: #dde2ec; border-top-right-radius: 4px; }
.mail-new { border-color: var(--gold-deep, #b08d57); box-shadow: 0 0 0 2px rgba(176,141,87,.15); }
.mail .btn { margin-top: 6px; }
.new-mail-badge { white-space: nowrap; }
a.note.new-mail, .note.new-mail { display: block; text-decoration: none; }
form.inline { display: inline-block; margin: 0 0 8px; }
@media (max-width: 600px) { .mail { max-width: 96%; } }

/* Phone app: chat, install banner, app card */
.chat { display: flex; flex-direction: column; gap: 8px; margin: 12px 0; max-height: 60vh; overflow-y: auto; padding: 4px; }
.msg { max-width: 82%; padding: 9px 13px; border-radius: 16px; background: #fff; border: 1px solid #e7e1d6; }
.msg-them { align-self: flex-start; border-bottom-left-radius: 4px; }
.msg-me { align-self: flex-end; background: var(--brand, #1a1a2e); color: #fff; border-color: transparent; border-bottom-right-radius: 4px; }
.msg-meta { display: block; font-size: .72rem; opacity: .7; margin-top: 3px; }
.chat-form { display: flex; gap: 8px; align-items: flex-end; position: sticky; bottom: calc(70px + env(safe-area-inset-bottom)); background: var(--bg, #F8F6F1); padding: 6px 0; }
.chat-form textarea { flex: 1; min-height: 44px; }
.install-banner { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid #e7e1d6; border-radius: 12px; padding: 10px 14px; margin: 10px 0; font-size: .92rem; }
.install-banner[hidden], [data-install-ready][hidden] { display: none; }
.app-card .howto summary { cursor: pointer; font-weight: 600; font-size: .92rem; }
.app-card ol { margin: 6px 0 4px 1.2em; padding: 0; }

/* Pipeline board */
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(210px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 8px; }
.board-col { background: #f3f0ea; border-radius: 14px; padding: 10px; min-height: 120px; }
.board-col h3 { font-size: .85rem; margin: 2px 4px 8px; text-transform: uppercase; letter-spacing: .06em; }
.board-card { display: flex; align-items: center; gap: 8px; padding: 9px 10px; margin-bottom: 8px; }
.board-card .one { display: block; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.badge.stage { font-size: .7rem; }
.allowance { margin: 6px 0; }

.sig-preview { background: #fff; border: 1px dashed #ddd; border-radius: 10px; padding: 4px 14px 12px; overflow-x: auto; }
/* Discount codes */
.code-form { align-items: flex-end; } .code-form .grow { flex: 1 1 200px; margin: 0; } .code-form input { text-transform: uppercase; }
.code-text { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 1.1em; letter-spacing: .04em; }
.code-row code { word-break: break-all; }

/* Privacy policy, terms and the "I agree" tick */
.legal-text { max-width: 760px; margin-inline: auto; }
.legal-text h2 { font-size: 1.1rem; margin-top: 22px; }
.legal-text p, .legal-text li { line-height: 1.6; }
.legal-text ul { padding-left: 20px; margin: 8px 0; }
label.check.consent { align-items: flex-start; font-size: .9rem; }
label.check.consent input { margin-top: 3px; flex: none; }
.consent-note { margin: 8px 0 0; text-align: center; }
.auth-foot a { color: inherit; }

/* Taxes */
.tax-note { display: block; }

/* Repeating homework and tracker reminders */
.remind-form { gap: 8px; align-items: flex-end; flex-wrap: wrap; margin: 6px 0; }
.remind-form label { flex: 1 1 200px; }

/* Language switch */
.lang-foot { text-align: center; margin: 28px 0 8px; }
.lang-switch a { color: var(--muted); margin: 0 6px; }
.auth-foot .lang-switch a { margin: 0; color: inherit; }

/* Package / session cards on phones: text on top, price and button underneath (no squeezed column). */
@media (max-width: 600px) {
  .stype:not(details) { flex-direction: column; align-items: stretch; }
  .stype .meta { justify-items: start; text-align: left; white-space: normal; }
}
