/* Feathers Practice Manager. Mobile first; brand blue (logo / website). */
:root {
  /* Brand: the Feathers logo blue, same tokens as the main website. */
  --teal: #004ec3;
  --teal-2: #004ec3;
  --teal-3: #003a99;
  --teal-4: #002066;
  --gold: #ffb020;
  --ink: #0b1f45;
  --body: #333a52;
  --muted: #5d6680;
  --line: #d6e2f3;
  --bg: #f4f8fd;
  --card: #ffffff;
  --tint: #e8f1ff;
  --ok: #1d7a4e;
  --ok-bg: #e3f4ea;
  --warn: #8a5a00;
  --warn-bg: #fdf1d8;
  --due: #b2400f;
  --due-bg: #fde7dd;
  --info: #004ec3;
  --info-bg: #e8f1ff;
  --err: #a3201b;
  --err-bg: #fde4e2;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(0, 32, 102, .06), 0 4px 14px rgba(0, 32, 102, .07);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Tamil", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
[hidden] { display: none !important; }
body { margin: 0; font: 16px/1.5 var(--font); color: var(--body); background: var(--bg); }
a { color: var(--teal-2); text-underline-offset: 2px; }
a:hover { color: var(--teal-3); }
h1, h2, h3 { color: var(--ink); line-height: 1.25; margin: 0 0 .6em; }
h1 { font-size: 1.45rem; }
h2 { font-size: 1.15rem; }
h3 { font-size: 1rem; }
p { margin: 0 0 .8em; }
small, .small { font-size: .85rem; }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--gold); color: #000; padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* top bar */
.top { background: #fff; color: var(--ink); position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--line); box-shadow: 0 1px 6px rgba(0, 32, 102, .06); }
.top__in { display: flex; align-items: center; gap: 10px; padding: 8px 16px; min-height: 56px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--teal-4); text-decoration: none; }
.brand:hover { color: var(--teal-4); }
.brand__mark { display: block; height: 36px; width: auto; flex: none; }
.brand__t { display: flex; flex-direction: column; line-height: 1.05; font-family: Georgia, "Times New Roman", serif; letter-spacing: .14em; font-size: 1.05rem; color: #004ec3; }
.brand__t small { font-family: var(--font); letter-spacing: 0; font-weight: 600; font-size: .72rem; color: var(--teal-4); }
.top__out { margin-left: auto; }
.top .btn--ghost { color: var(--teal-4); border-color: var(--line); background: #fff; }
.navbtn { background: transparent; border: 0; width: 44px; height: 44px; display: grid; place-items: center; cursor: pointer; border-radius: 8px; }
.navbtn__bars, .navbtn__bars::before, .navbtn__bars::after { display: block; width: 22px; height: 2px; background: var(--teal-4); border-radius: 2px; position: relative; content: ""; }
.navbtn__bars::before { position: absolute; top: -7px; }
.navbtn__bars::after { position: absolute; top: 7px; }

/* layout */
.shell { display: block; }
.main { padding: 16px; max-width: 1180px; margin: 0 auto; }
.nav { display: none; background: var(--teal-4); }
.nav.is-open { display: block; }
.nav ul { list-style: none; margin: 0; padding: 6px 8px; }
.nav a { display: block; color: #e3ecff; text-decoration: none; padding: 11px 12px; border-radius: 8px; font-weight: 500; }
.nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.nav a[aria-current="page"] { background: var(--teal); color: #fff; box-shadow: inset 3px 0 0 #a8e2ff; }
.nav__who { color: #b7c8ec; font-size: .8rem; padding: 4px 20px 14px; margin: 0; }
@media (min-width: 960px) {
  .navbtn { display: none; }
  .app .shell { display: grid; grid-template-columns: 230px 1fr; min-height: calc(100vh - 56px); }
  .nav { display: block; position: sticky; top: 56px; height: calc(100vh - 56px); overflow-y: auto; }
  .main { padding: 24px 28px; width: 100%; }
}

/* page head */
.ph { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 14px; }
.ph h1 { margin: 0; flex: 1 1 auto; }
.ph__act { display: flex; flex-wrap: wrap; gap: 8px; }

/* cards */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; margin-bottom: 16px; border: 1px solid var(--line); }
.card > h2:first-child { margin-top: 0; }
.card__h { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.card__h h2 { margin: 0; }
.grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid--2 { grid-template-columns: 1fr 1fr; } .grid--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px) { .grid--4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 640px) and (max-width: 959px) { .grid--4 { grid-template-columns: 1fr 1fr; } }

/* stat tiles */
.stats { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; margin-bottom: 16px; }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; text-decoration: none; color: inherit; display: block; box-shadow: var(--shadow); }
a.stat:hover { border-color: var(--teal); }
.stat__k { font-size: .8rem; color: var(--muted); display: block; }
.stat__v { font-size: 1.35rem; font-weight: 700; color: var(--ink); display: block; font-variant-numeric: tabular-nums; }
.stat__s { font-size: .78rem; color: var(--muted); display: block; }
.stat--hi { background: linear-gradient(-69deg, #004ec3 0%, #002066 100%); border-color: #002066; }
.stat--hi .stat__k, .stat--hi .stat__s { color: #d6e4ff; }
.stat--hi .stat__v { color: #fff; }
.stat--due .stat__v { color: var(--due); }
.stat--gold { border-left: 4px solid #004ec3; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 10px 16px; border-radius: 10px; border: 1px solid var(--teal-2); background: var(--teal-2); color: #fff; font: 600 .95rem/1.2 var(--font); text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--teal-3); color: #fff; }
.btn--ghost { background: #fff; color: var(--teal-3); border-color: var(--line); }
.btn--ghost:hover { background: var(--tint); color: var(--teal-4); }
.btn--gold { background: var(--teal-4); border-color: var(--teal-4); color: #fff; }
.btn--gold:hover { background: #001447; color: #fff; }
.btn--danger { background: #fff; color: var(--err); border-color: #e9b6b2; }
.btn--danger:hover { background: var(--err-bg); color: var(--err); }
.btn--sm { min-height: 36px; padding: 6px 12px; font-size: .85rem; }
.btn--big { width: 100%; min-height: 50px; font-size: 1.02rem; }
.btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }

/* forms */
.form { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .form--2 { grid-template-columns: 1fr 1fr; } .form--2 .fld--wide, .form--2 .fs, .form--2 .form__end, .form--2 .note, .form--2 h2 { grid-column: 1 / -1; } }
.fld { display: flex; flex-direction: column; gap: 5px; }
.fld label, .fs legend { font-weight: 600; color: var(--ink); font-size: .93rem; }
.req { color: var(--due); }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], input[type=date], input[type=datetime-local], input[type=search], input[type=month], input[type=time], select, textarea {
  width: 100%; font: 16px/1.4 var(--font); color: var(--ink); background: #fff; border: 1px solid #b6c6e0; border-radius: 10px; padding: 11px 12px; min-height: 46px;
}
textarea { min-height: 90px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--teal); outline: 3px solid rgba(0,78,195,.22); outline-offset: 0; }
[aria-invalid="true"] { border-color: var(--err) !important; background: #fffafa; }
.help { color: var(--muted); }
.err { color: var(--err); font-weight: 600; }
.fs { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px 14px; margin: 0; display: grid; gap: 12px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.check input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--teal-2); flex: 0 0 auto; }
.form__end { display: flex; gap: 10px; flex-wrap: wrap; }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.inline { display: inline; }

/* notes */
.note { border-radius: 10px; padding: 11px 14px; margin-bottom: 14px; border: 1px solid transparent; }
.note ul { margin: 6px 0 0; padding-left: 20px; }
.note--ok { background: var(--ok-bg); color: var(--ok); border-color: #b9e2c8; }
.note--error { background: var(--err-bg); color: var(--err); border-color: #f2bdb8; }
.note--info { background: var(--info-bg); color: var(--info); border-color: #bcdbeb; }
.note--warn { background: var(--warn-bg); color: var(--warn); border-color: #f0d8a4; }
.note a { color: inherit; }

/* badges, chips */
.badge { display: inline-block; padding: 2px 9px; border-radius: 99px; font-size: .78rem; font-weight: 600; background: var(--tint); color: var(--teal-3); white-space: nowrap; }
.badge--ok { background: var(--ok-bg); color: var(--ok); }
.badge--warn { background: var(--warn-bg); color: var(--warn); }
.badge--due { background: var(--due-bg); color: var(--due); }
.badge--info { background: var(--info-bg); color: var(--info); }
.badge--muted { background: #eceeee; color: #4f5a58; }
.chip { display: inline-flex; align-items: center; min-height: 36px; padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line); background: #fff; color: var(--teal-3); text-decoration: none; font-size: .88rem; font-weight: 600; }
.chip--on { background: var(--teal-2); border-color: var(--teal-2); color: #fff; }
.chip:hover { border-color: var(--teal); }
.amt-due { color: var(--due); font-weight: 700; }
.amt-ok { color: var(--ok); font-weight: 700; }

/* period picker */
.period { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: flex-end; margin-bottom: 14px; }
.period__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.period__custom { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; }
.period__custom label { display: flex; flex-direction: column; font-size: .8rem; color: var(--muted); }
.period__custom input { min-height: 38px; padding: 6px 8px; width: auto; }

/* filters */
.filters { display: grid; gap: 10px; grid-template-columns: 1fr; margin-bottom: 14px; }
@media (min-width: 720px) { .filters { grid-template-columns: 2fr repeat(3, 1fr) auto; align-items: end; } }
.filters .fld label { font-size: .8rem; }

/* tables: rows become cards on phones */
.tw { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: .93rem; }
.tbl th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); font-weight: 700; padding: 8px 10px; border-bottom: 2px solid var(--line); }
.tbl td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl tfoot td { font-weight: 700; border-top: 2px solid var(--line); }
.tbl a.rowlink { font-weight: 600; text-decoration: none; }
.tbl a.rowlink:hover { text-decoration: underline; }
@media (max-width: 719px) {
  .tbl--cards thead { display: none; }
  .tbl--cards tr { display: block; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 10px; padding: 6px 10px; background: #fff; }
  .tbl--cards td { display: flex; justify-content: space-between; gap: 12px; border: 0; padding: 5px 0; text-align: right; }
  .tbl--cards td::before { content: attr(data-l); font-weight: 600; color: var(--muted); font-size: .82rem; text-align: left; }
  .tbl--cards td.num { text-align: right; }
  .tbl--cards td:first-child { font-size: 1rem; }
  .tbl--cards tfoot tr { background: var(--tint); }
}

/* key/value lists */
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 0; }
.kv dt { color: var(--muted); font-size: .88rem; }
.kv dd { margin: 0; color: var(--ink); word-break: break-word; }
@media (max-width: 480px) { .kv { grid-template-columns: 1fr; } .kv dt { margin-top: 6px; } }
.pre { white-space: pre-wrap; }

/* timeline */
.tl { list-style: none; margin: 0; padding: 0; }
.tl > li { border-left: 3px solid var(--teal); padding: 4px 0 14px 14px; position: relative; }
.tl > li::before { content: ""; position: absolute; left: -7px; top: 8px; width: 11px; height: 11px; border-radius: 50%; background: #fff; border: 3px solid var(--teal); }
.tl__h { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-weight: 700; color: var(--ink); }
.tl__d { color: var(--muted); font-size: .85rem; font-weight: 500; }
.private { background: #fff8e6; border: 1px dashed #e0a325; border-radius: 8px; padding: 8px 10px; }

/* empty / pager */
.empty { text-align: center; padding: 28px 12px; color: var(--muted); }
.pager { display: flex; justify-content: center; gap: 12px; align-items: center; margin-top: 12px; }

/* charts */
.chartbox { margin: 0 0 16px; }
.chartbox figcaption { font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.chart { width: 100%; height: auto; display: block; }
.chart__grid { stroke: #e3eaf5; stroke-width: 1; }
.chart__ax { font-size: 10px; fill: var(--muted); }
.chart__lab { font-size: 10px; fill: var(--muted); }
.chart__bar.s1, .sw.s1 { fill: var(--teal-2); background: var(--teal-2); }
.chart__bar.s2, .sw.s2 { fill: #f08a24; background: #f08a24; }
.chart__bar.s3, .sw.s3 { fill: #8fb8f2; background: #8fb8f2; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .85rem; margin: 6px 0; }
.legend__i { display: inline-flex; align-items: center; gap: 6px; }
.sw { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.chart__data summary { cursor: pointer; color: var(--teal-2); font-size: .88rem; padding: 4px 0; }
.share { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.share li { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; }
.share__k { color: var(--ink); font-weight: 600; font-size: .92rem; }
.share__v { font-variant-numeric: tabular-nums; font-weight: 600; }
.share__v small { color: var(--muted); font-weight: 500; }
.share__bar { grid-column: 1 / -1; width: 100%; height: 6px; }
.share__bg { fill: #e3eaf5; }
.share__fg { fill: var(--teal); }
progress { width: 100%; height: 12px; accent-color: var(--teal); border-radius: 6px; }
progress::-webkit-progress-bar { background: #e3eaf5; border-radius: 6px; }
progress::-webkit-progress-value { background: var(--teal); border-radius: 6px; }
progress::-moz-progress-bar { background: var(--teal); border-radius: 6px; }

/* public pages */
.pub .main { max-width: 760px; }
.auth { max-width: 460px; margin: 24px auto; }
.lead { font-size: 1.05rem; color: var(--body); }
.privacy { background: var(--tint); border-radius: 10px; padding: 12px 14px; font-size: .92rem; }
.privacy h2 { font-size: 1rem; }
.privacy ul { margin: 0 0 8px; padding-left: 20px; }

.formula { font-size: .88rem; color: var(--muted); }
.formula code { background: var(--tint); padding: 1px 5px; border-radius: 4px; color: var(--teal-4); }
.danger-zone { border-color: #f2bdb8; }

@media print {
  .top, .nav, .ph__act, .period, .filters, .btn, .pager { display: none !important; }
  body { background: #fff; }
  .card { box-shadow: none; }
}

/* ---------- easy mode: grouped menu, phone bottom bar, big actions ---------- */
.nav__g { margin: 14px 20px 2px; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: #8fa6d6; font-weight: 700; }
.nav ul + .nav__g { margin-top: 8px; }
.tabbar { display: none; }
@media (max-width: 959px) {
  .app .main { padding-bottom: 90px; }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -2px 10px rgba(0, 32, 102, .08); padding-bottom: env(safe-area-inset-bottom); }
  .tabbar a, .tabbar button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 2px 9px; font: 600 .72rem/1.1 var(--font); color: var(--muted); text-decoration: none; background: none; border: 0; cursor: pointer; }
  .tabbar svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .tabbar [aria-current="page"] { color: var(--teal-2); }
  .navbtn { display: none; }
  .nav.is-open { position: fixed; inset: 56px 0 64px 0; overflow-y: auto; z-index: 25; }
}
.quick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
@media (min-width: 760px) { .quick { grid-template-columns: repeat(3, 1fr); } }
.quick a { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 12px 14px; border-radius: 14px; background: #fff; border: 1px solid var(--line); color: var(--teal-4); font-weight: 700; text-decoration: none; box-shadow: var(--shadow); }
.quick a:hover { border-color: var(--teal-2); }
.quick a:first-child { background: var(--teal-2); color: #fff; border-color: var(--teal-2); }
.quick svg { width: 28px; height: 28px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
details.more { border: 1px dashed var(--line); border-radius: var(--radius); padding: 4px 14px; grid-column: 1 / -1; }
details.more > summary { cursor: pointer; padding: 10px 0; font-weight: 700; color: var(--teal-2); }
details.more[open] > summary { margin-bottom: 8px; }
details.more > .form { margin-bottom: 12px; }
/* mic */
.mic { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.mic__btn { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 14px; border-radius: 99px; border: 1px solid var(--teal-2); background: #fff; color: var(--teal-2); font: 700 .88rem/1 var(--font); cursor: pointer; }
.mic__btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.mic__btn.is-on { background: #c62828; border-color: #c62828; color: #fff; }
.mic__lang { min-height: 40px; padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line); background: var(--tint); color: var(--teal-4); font: 700 .85rem/1 var(--font); cursor: pointer; }
.mic__st { font-size: .8rem; color: var(--muted); }

/* closing & client feedback */
.fbk { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 12px; }
.linkbox input { font-size: .9rem; background: var(--tint); }
.stars-v { color: #e0a325; font-size: 1.2rem; letter-spacing: 2px; }
.stars { display: grid; gap: 8px; }
.stars .check span { font-size: 1rem; }

/* session mode: big tap-friendly choice */
.seg-fs { border: 0; padding: 0; }
.seg { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (min-width: 640px) { .seg { grid-template-columns: repeat(4, 1fr); } }
.seg__opt { position: relative; }
.seg__opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg__opt span { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 8px; border: 1px solid #b6c6e0; border-radius: 10px; background: #fff; font-weight: 600; color: var(--teal-4); text-align: center; }
.seg__opt input:checked + span { background: var(--teal-2); border-color: var(--teal-2); color: #fff; }
.seg__opt input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }

/* session result colours */
.seg__opt--satisfied input:checked + span { background: var(--ok); border-color: var(--ok); }
.seg__opt--next input:checked + span { background: var(--teal-2); border-color: var(--teal-2); }
.seg__opt--not_satisfied input:checked + span { background: #b7791f; border-color: #b7791f; }
.seg__opt--not_cooperating input:checked + span { background: var(--due); border-color: var(--due); }
.seg__opt { display: flex; }
.seg__opt span { flex: 1; }

/* BDI calculator (26 Oct 2026) */
.bdi-grid { display: grid; gap: 14px; }
@media (min-width: 760px) { .bdi-grid { grid-template-columns: repeat(2, 1fr); } }
.bdi-item legend { font-weight: 700; margin-bottom: 6px; }
.bdi-item .seg { grid-template-columns: repeat(4, 1fr); }
.bdi-live { position: sticky; bottom: 0; background: #fff; border-top: 1px solid #dfe5f2; padding: 12px 0; margin: 8px 0; font-size: 1.05rem; z-index: 2; }
.bdi-total { font-size: 1.2rem; }
.bdi-total strong { font-size: 2.4rem; }

/* career reports (26 Oct 2026) */
.btn--wa { background: #1fa855; border-color: #1fa855; color: #fff; }
.btn--wa:hover { background: #178a45; color: #fff; }
form.inline { display: inline; margin: 0; }
.narrow { max-width: 560px; margin: 40px auto; }
.keybig { font: 800 1.9rem/1.2 ui-monospace, Consolas, monospace; letter-spacing: .06em; color: var(--teal-4); margin: 6px 0 10px; }
#newkey { scroll-margin-top: 76px; }

/* ---------- client bill (28 Oct 2026): one A4 page, no app chrome when printed ----------
   Hierarchy: name + BILL box, then the practice details as labelled cells that
   never break mid-item, then who it is for, then the table with aligned figures. */
.bill { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 28px; max-width: 840px; color: var(--ink); }
.bill p, .bill dl, .bill dd { margin: 0; }
.bill .nw { white-space: nowrap; }
.bill__time { white-space: nowrap; }
.bill__durm { display: none; }
.bill__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.bill__brand { display: flex; align-items: center; gap: 12px; }
.bill__brand img { flex: none; }
.bill__org { font-size: 1.45rem; font-weight: 800; color: var(--teal); letter-spacing: -.01em; line-height: 1.2; }
.bill__meta { flex: none; min-width: 210px; padding: 10px 14px; border-radius: 10px; background: var(--tint); }
.bill__t { font-size: 1.25rem; font-weight: 800; letter-spacing: .16em; color: var(--teal); margin-bottom: 4px !important; }
.bill__meta dl { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; font-size: .84rem; }
.bill__meta dt { color: var(--muted); }
.bill__meta dd { font-weight: 600; font-variant-numeric: tabular-nums; }
.bill__contact { display: grid; grid-template-columns: repeat(4, minmax(0, auto)); justify-content: space-between; gap: 10px 20px; margin-top: 16px !important; padding: 12px 0 14px; border-top: 1px solid var(--line); border-bottom: 3px solid var(--teal); }
.bill__c dt { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.bill__c dd { font-size: .86rem; white-space: nowrap; }
.bill__c--wide { grid-column: 1 / -1; }
.bill__c--wide dd { white-space: normal; }
.bill__to { margin: 18px 0 14px; }
.bill__k { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.bill__name { font-size: 1.05rem; font-weight: 700; }
.bill__tbl { width: 100%; border-collapse: collapse; font-size: .9rem; font-variant-numeric: tabular-nums; }
.bill__tbl th { text-align: left; background: var(--tint); color: var(--teal-4); padding: 8px 10px; font-size: .78rem; white-space: nowrap; }
.bill__tbl td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.bill__tbl .num { text-align: right; white-space: nowrap; }
.bill__tbl tfoot td { border-bottom: 0; padding: 5px 10px; }
.bill__tbl tfoot tr:first-child td { padding-top: 12px; border-top: 2px solid var(--line); }
.bill__tbl tfoot td:nth-last-child(2) { text-align: right; font-weight: 600; color: var(--muted); white-space: nowrap; }
.bill__due td { font-size: 1.05rem; font-weight: 800; color: var(--teal-4); }
.bill__pays { margin-top: 16px; font-size: .86rem; }
.bill__pays ul { margin: 4px 0 0; padding-left: 18px; }
.bill__paid { margin-top: 12px !important; font-weight: 700; color: var(--ok); }
.bill__foot { margin-top: 26px; padding-top: 12px; border-top: 1px solid var(--line); font-size: .8rem; color: var(--muted); }
.bill__sign { margin-top: 18px !important; text-align: right; font-weight: 700; color: var(--ink); font-size: .92rem; }
.bill__sign span { font-weight: 500; color: var(--muted); font-size: .8rem; }
@media (max-width: 760px) {
  .bill__contact { grid-template-columns: 1fr 1fr; justify-content: stretch; }
  .bill__c dd { white-space: normal; overflow-wrap: anywhere; }
}
@media (max-width: 560px) {
  .bill { padding: 16px; }
  .bill__head { flex-direction: column; }
  .bill__meta { width: 100%; }
  .bill__org { font-size: 1.25rem; }
  .bill__tbl { font-size: .82rem; }
  .bill__tbl th, .bill__tbl td { padding: 6px 4px; }
  .bill__tbl th:first-child, .bill__tbl td:first-child { display: none; }
  .bill__tbl th { white-space: normal; }
  .bill__time { white-space: normal; }
  .bill .nw { white-space: normal; }
  .bill__contact { grid-template-columns: 1fr; gap: 8px; }
  .bill__c dd { white-space: normal; overflow-wrap: normal; }
  .bill__tbl { font-size: .78rem; }
  .bill__tbl .num { white-space: nowrap; }
  .bill__tbl thead th:nth-child(5), .bill__tbl tbody td:nth-child(5) { display: none; }
  .bill__durm { display: block; color: var(--muted); }
  .bill__tbl tfoot td[colspan] { white-space: normal; }
}
@media print {
  @page { size: A4; margin: 14mm; }
  .bill-tools, .tabbar, .skip, .main > .note, .ph { display: none !important; }
  .shell, .main { display: block !important; padding: 0 !important; margin: 0 !important; max-width: none !important; }
  .bill { border: 0; padding: 0; max-width: none; }
  .bill__head { flex-direction: row; }
  .bill__meta { width: auto; }
  .bill__contact { grid-template-columns: repeat(4, minmax(0, auto)); justify-content: space-between; }
  .bill__c dd { white-space: nowrap; }
  .bill__c--wide dd { white-space: normal; }
  .bill__meta, .bill__tbl th { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .bill__tbl th:first-child, .bill__tbl td:first-child, .bill__tbl thead th:nth-child(5), .bill__tbl tbody td:nth-child(5) { display: table-cell; }
  .bill__durm { display: none; }
}
/* session form: check-in and check-out side by side, as one wide row */
.times { margin: 0; padding: 0; gap: 12px; grid-template-columns: 1fr 1fr; }
.times .help { grid-column: 1 / -1; }

/* partner coaches (30 Oct 2026) */
.coach__logo { width: 36px; height: 36px; object-fit: contain; border-radius: 8px; vertical-align: middle; margin-right: 6px; background: #fff; }
.coach__n { width: 90px; }
.coach__note { width: 190px; }

/* Student Success Kit pages (3 Nov 2026): read on the website, printed-document look */
.kitbar { height: 8px; background: #e3ebf7; border-radius: 99px; overflow: hidden; margin: 4px 0 14px; }
.kitbar i { display: block; height: 100%; background: var(--teal); border-radius: 99px; }
.kitdoc { line-height: 1.6; }
.kitdoc h2 { color: var(--teal-4); margin: 22px 0 8px; display: flex; align-items: center; gap: 8px; }
.kitdoc h2 .n { display: inline-flex; width: 24px; height: 24px; border-radius: 50%; background: var(--teal); color: #fff; font-size: .85rem; align-items: center; justify-content: center; flex: none; }
.kitdoc h3 { margin: 14px 0 4px; }
.kitdoc .sub { color: var(--muted, #5b6670); }
.kitdoc .box { background: #eef4fd; border-left: 4px solid var(--teal); border-radius: 8px; padding: 10px 14px; margin: 10px 0; }
.kitdoc table { width: 100%; border-collapse: collapse; margin: 6px 0 12px; font-size: .92rem; }
.kitdoc th, .kitdoc td { border: 1px solid #d6dde6; padding: 7px 9px; text-align: left; vertical-align: top; }
.kitdoc th { background: var(--teal); color: #fff; }
.kitdoc .tablewrap, .kitdoc table { display: block; overflow-x: auto; }
.kitdoc .q { border-bottom: 1px solid #e3e8ef; padding: 10px 0; }
.kitdoc .q b.n { color: var(--teal-4); }
.kitdoc .q .tip, .kitdoc .small, .kitdoc .end { color: #5b6670; font-size: .88rem; }
.kitdoc .prompt { border: 1px dashed var(--teal); border-radius: 8px; padding: 9px 12px; margin: 8px 0; background: #fff; }
.kitdoc .prompt b { color: var(--teal-4); display: block; margin-bottom: 3px; }
.kitdoc .prompt code, .kitdoc code { font-family: ui-monospace, Consolas, monospace; font-size: .9rem; white-space: pre-wrap; }
.kitdoc span.prompt { display: block; font-family: ui-monospace, Consolas, monospace; font-size: .9rem; }
.kitdoc ul.tick { list-style: none; padding: 0; columns: auto !important; }
.kitdoc ul.tick li { padding-left: 24px; position: relative; margin-bottom: 6px; }
.kitdoc ul.tick li::before { content: ""; position: absolute; left: 0; top: 5px; width: 12px; height: 12px; border: 2px solid var(--teal); border-radius: 3px; }
.kitdoc .lines, .kitdoc .field { display: none; }   /* write-in lines belong to the printed worksheet */
.kitdoc td.w { height: auto; }
.kitdoc .resume { border: 1px solid #d6dde6; border-radius: 10px; padding: 16px; margin: 8px 0 18px; background: #fff; }
.kitdoc .resume .rn { font-size: 1.3rem; font-weight: 800; text-align: center; margin: 0; }
.kitdoc .resume .rl { text-align: center; color: #5b6670; margin: 0 0 4px; font-size: .9rem; }
.kitdoc .resume h3 { color: var(--teal-4); border-bottom: 2px solid var(--teal); padding-bottom: 2px; text-transform: uppercase; font-size: .9rem; letter-spacing: .03em; }
.kitnav { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 18px; }

.steps { padding-left: 1.2rem; }
.steps > li { margin: 0 0 .9rem; }
.steps > li > .btn { margin: .2rem 0 .3rem; }
.revq { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.revq li { border: 1px solid var(--line, #dde3ee); border-radius: 10px; padding: .6rem; }
.revq img { display: block; width: 100%; max-height: 320px; object-fit: contain; background: #f5f7fb; border-radius: 6px; margin-bottom: .5rem; }
