﻿/* =============================================================================
   SPECIJALISTA theme for Clarity.
   Same components as Ultrasound Expert; only the tokens below differ, plus a few
   components that only exist on Specijalista (doctor cards, call room, uploads).
   Load AFTER clarity.css.
   ========================================================================== */
:root {
  --ink: #0B1A4A;
  --ink-2: #4A5C86;
  --bg: #EAF2FC;
  --surface: #FFFFFF;
  --surface-2: #F3F7FD;
  --line: #D7E4F4;
  --line-strong: #8AA0C4;

  --brand: #2563EB;
  --primary: #2563EB;
  --primary-hover: #1D4ED8;
  --primary-tint: #E8F1FF;
  --ok: #059669;
  --ok-ink: #047857;
  --ok-tint: #ECFDF5;
  --act: #FFD166;
  --act-ink: #2B1A00;
  --focus: #2563EB;
  --shadow-1: 0 1px 2px rgba(15, 36, 80, .04), 0 8px 24px rgba(15, 36, 80, .06);
  --shadow-2: 0 2px 8px rgba(15, 36, 80, .08), 0 16px 40px rgba(15, 36, 80, .08);
  --r-sm: 10px;
  --r-md: 12px;
  --r-lg: 20px;
}
html.contrast {
  --ink: #000; --ink-2: #1A1A1A; --bg: #FFFFFF; --surface-2: #F0F0F0;
  --line: #000; --line-strong: #000;
  --primary: #1E3A8A; --primary-hover: #172554; --primary-tint: #E0E7FF;
  --ok: #065F46; --warn: #5A3500; --bad: #8F1109;
}
html.dark {
  --ink: #E8EEF9; --ink-2: #B7C4DE; --bg: #0E1730; --surface: #17233F; --surface-2: #1E2C4D;
  --line: #2C3E66; --line-strong: #4A6294;
  --primary-tint: #1E3A6E; --ok-tint: #12352A; --ok-ink: #8EE0B8;
}
body.accent-exam {
  --primary: #059669;
  --primary-hover: #047857;
  --primary-tint: #E7F8EF;
  --focus: #059669;
  --brand: #059669;
}
body.accent-exam .input:focus,
body.accent-exam .textarea:focus,
body.accent-exam .input.focus { box-shadow: 0 0 0 4px rgba(5, 150, 105, .18); }
body.accent-exam .stepper li.now .dot,
body.accent-exam .dcard.on,
body.accent-exam .choice.on,
body.accent-exam .mode.on,
body.accent-exam .chip.on,
body.accent-exam .pk-pill.on,
body.accent-exam .pk-radio.on { box-shadow: 0 0 0 3px rgba(5, 150, 105, .16); }

.topbar, .pub-top { background: var(--surface); border-bottom: 1px solid var(--line); }
.nav a { border-width: 0; }
.nav a[aria-current="page"] { background: var(--primary-tint); color: var(--primary); border-color: transparent; }
.nav a:hover, .btn.secondary:hover { background: var(--primary-tint); }
.btn { border-radius: 12px; }
button.linkbtn, a.linkbtn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 4px 0;
  min-height: 32px;
  font-family: inherit;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.2;
  color: var(--primary);
  cursor: pointer;
  text-decoration: none;
}
button.linkbtn:hover, a.linkbtn:hover { text-decoration: underline; background: transparent; }
.btn.lg { border-radius: 12px; }
.btn.secondary { background: var(--surface); color: var(--primary); border: 1.5px solid var(--primary); }
.btn.ghost { color: var(--primary); }
.btn.danger { border: 1.5px solid var(--bad); }
.btn.ok { background: var(--ok); border-color: var(--ok); }
.btn.pk-wait, button.btn.pk-wait:disabled { background: var(--surface-2); color: var(--ink-2); border: 1.5px solid var(--line-strong); cursor: default; opacity: 1; }
.input, .textarea { border: 1.5px solid var(--line); border-radius: 12px; }
.input:focus, .textarea:focus, .input.focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(37, 99, 235, .18); }
.card, .dcard, .mode, .choice, .file, .srow, .drop, .state, .sizebox, .how .step, .compare .box {
  border-width: 1.5px; border-color: var(--line);
}
.card { border-radius: 20px; box-shadow: var(--shadow-1); }
.hero { border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-1); }
.decide, .dialog { border-radius: 20px; }
.dialog { border: 1px solid var(--line); }
.band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pub-foot { background: var(--ink); }
.textsize span.on, .lang span.on { background: var(--primary); color: #fff; }
.help-fab { background: var(--primary); color: #fff; box-shadow: var(--shadow-2); }
.help-fab .i { color: #fff; }
.sticky-actions { background: color-mix(in srgb, var(--surface) 96%, transparent); border-top: 1px solid var(--line); }
.card.tint, .pill.blue { border-color: #BFDBFE; background: var(--primary-tint); }
.notice.info { background: var(--primary-tint); border-color: #BFDBFE; }
.notice.ok { background: var(--ok-tint); border-color: #A7F3D0; }
.status.ok { background: var(--ok-tint); color: var(--ok-ink); border-color: #A7F3D0; }
.status.live { background: var(--primary); }
.cal-day.free { border-width: 2px; }
.cal-day.sel, .slot.sel { box-shadow: 0 0 0 4px rgba(37, 99, 235, .2); }
.slot { border-width: 2px; border-radius: 12px; }
.stepper li.now .dot { box-shadow: 0 0 0 6px rgba(37, 99, 235, .18); }
.choice.on, .dcard.on, .mode.on, .sizebox.on, .snav a.on {
  border-color: var(--primary); background: var(--primary-tint);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .16);
}
.chip.on { background: var(--surface); color: var(--primary); border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37, 99, 235, .16); }
:focus-visible { outline-color: var(--focus); }

/* Package density. The top bar sets its own 18px size, so it stays as it is. */
:root { --tap: 44px; }
.page, .auth-wrap, #wizard, #sent, .pub-foot, .band .in {
  font-size: 15px; font-weight: 400;
}
.page h1, .auth-card h1, #wizard h1, #sent h1 { font-size: 28px; font-weight: 650; }
.page h2, #wizard h2 { font-size: 20px; font-weight: 650; }
.page h3, .card h3, .dcard h3, .choice h3 { font-size: 16px; font-weight: 650; }
.page h4, .mode h4 { font-size: 15px; font-weight: 650; }
.page .btn, .auth-wrap .btn, .sticky-actions .btn, .page .chip, .page .chip-btn, .page .input, .page .textarea, .page .tab {
  min-height: 44px; font-size: 15px; font-weight: 600; padding-top: 0; padding-bottom: 0;
}
.page .btn, .auth-wrap .btn, .sticky-actions .btn { padding-left: 16px; padding-right: 16px; }
.page .btn.lg, .sticky-actions .btn.lg, .auth-wrap .btn.lg { min-height: 48px; font-size: 15px; font-weight: 600; padding-left: 18px; padding-right: 18px; }
.page .input, .page .textarea { font-weight: 400; padding: 10px 14px; }
.tile.hot, .tile.hot p, .tile.hot .go { background: var(--surface); color: var(--ink); border-color: var(--line); }
.tile.hot p { color: var(--ink-2); }
.tile.hot .go { color: var(--primary); font-weight: 600; }
.tile.hot .big-ic { background: var(--primary-tint); color: var(--primary); }
.page .tile { min-height: 0; padding: 18px; }
.page .tile .big-ic { width: 44px; height: 44px; border-radius: 12px; font-size: 1.2rem; }
.dcard, .choice, .mode, .card { padding: 16px 18px; }
.dcard.on, .choice.on, .mode.on { background: var(--surface); border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37, 99, 235, .14); }
.stepper li { font-weight: 500; font-size: 13px; }
.stepper .dot { width: 28px; height: 28px; font-size: 13px; }
.notice.act { border-width: 1px; }

.pk-home { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 22px; align-items: start; }
.pk-home .notice.pk-alert { background: var(--surface); border: 1px solid var(--line); color: var(--ink); }
.pk-home .notice.pk-alert .i,
.pk-home .notice.pk-alert b { color: var(--ink); }
.pk-services { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 16px 0 22px; }
.pk-service { position: relative; display: flex; flex-direction: column; gap: 8px; min-height: 0; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; text-decoration: none; color: var(--ink); }
.pk-service.on { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37, 99, 235, .14); }
.pk-service.doc { border-color: #059669; box-shadow: 0 0 0 3px rgba(5, 150, 105, .16); }
.pk-side { display: flex; flex-direction: column; gap: 14px; }
.pk-service.avail { border-color: #D97706; box-shadow: 0 0 0 3px rgba(217, 119, 6, .16); }
.pk-service.avail .go { color: #D97706; }
.pk-exam-btn { background: #059669; border-color: #059669; }
.pk-exam-btn:hover { background: #047857; border-color: #047857; }
.pk-service .ic-bubble { width: 40px; height: 40px; border-radius: 12px; background: var(--primary-tint); color: var(--primary); display: flex; align-items: center; justify-content: center; }
.pk-service .ic-bubble.avail { background: #FFF6E0; color: #D97706; }
.pk-service p { color: var(--ink-2); font-weight: 400; font-size: 14px; }
.pk-service-h { display: flex; align-items: center; gap: 12px; }
.pk-service-h h3 { margin: 0; }
.pk-services:has(.pk-service-plain) { align-items: start; }
.pk-service.pk-service-plain { gap: 0; }
.pk-service.pk-service-plain .go { margin-top: 0; }
.pk-home-block { margin-top: 4px; }
.pk-home-block + .pk-home-block { margin-top: 22px; }
.pk-home-block h2 { margin: 0 0 10px; }
.pk-feed { max-height: 380px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding-right: 2px; }
.pk-cardlist { display: flex; flex-direction: column; gap: 10px; }
.pk-cardlist .pk-next h3 { margin: 6px 0 0; }
.pk-feed-more { display: none; }
.pk-feed-sentinel { height: 1px; flex: none; }
.pk-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pk-stat { display: flex; flex-direction: column; justify-content: center; gap: 4px; min-height: 72px; padding: 10px 12px; border-radius: 12px; background: #E8F1FF; }
.pk-service.doc .pk-stat { background: #E7F8EF; }
.pk-stat b { font-size: 28px; font-weight: 700; line-height: 1; letter-spacing: -.03em; color: #2563EB; }
.pk-service.doc .pk-stat b { color: #059669; }
.pk-stat > span { font-size: 13px; font-weight: 650; line-height: 1.25; color: var(--ink); }
.pk-service .go { color: var(--primary); font-weight: 600; margin-top: auto; }
.pk-how ol { margin: 12px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; }
.pk-how li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; }
.pk-how .n { width: 28px; height: 28px; border-radius: 50%; background: var(--primary-tint); color: var(--primary); font-weight: 650; display: flex; align-items: center; justify-content: center; font-size: 13px; }
.pk-how p { color: var(--ink-2); font-size: 13px; font-weight: 400; }
.pk-next { display: flex; gap: 16px; align-items: center; }
.pk-next > .datebox { flex: 0 0 72px; width: 72px; max-width: 72px; }
.pk-next > div:not(.acts):not(.datebox) { min-width: 0; flex: 1 1 auto; }
.pk-next h3 { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pk-next .acts { margin-left: auto; display: flex; flex-direction: column; gap: 8px; flex: none; }
.pk-next .acts .btn { flex: none; min-height: 40px; padding: 0 18px; font-size: 15px; }
.pk-next.pk-exam { border-color: #A7F3D0; }
.pk-next.pk-exam .datebox { border-color: #A7F3D0; background: #fff; }
.pk-next.pk-exam .datebox .mo { background: #E7F8EF; color: #059669; }
.pk-next.pk-exam .status { background: #E7F8EF; color: #047857; border-color: transparent; }
.pk-sent { max-width: 720px; margin: 28px auto 0; text-align: center; }
.pk-sent .clock { width: 64px; height: 64px; border-radius: 50%; background: var(--ok-tint); color: var(--ok); display: flex; align-items: center; justify-content: center; font-size: 1.6rem; margin: 0 auto 12px; }
.pk-sent .status { display: inline-flex; margin-top: 8px; }
#wizard .pk-rev-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .82fr); column-gap: 18px; row-gap: 16px; align-items: stretch; }
#wizard .pk-rev-main { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
#wizard .pk-rev-side { grid-column: 2; grid-row: 1 / span 2; min-width: 0; align-self: start; }
#wizard #review-back { grid-column: 1; grid-row: 2; justify-self: start; align-self: end; margin-bottom: 16px; }
#wizard .pk-rev-card, #wizard .pk-pay { border-radius: 16px; padding: 18px 20px; }
#wizard .pk-pay { height: auto; display: flex; flex-direction: column; }
#wizard .pk-rev-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
#wizard .pk-rev-h h3, #wizard .pk-pay > h3 { margin: 0; font-size: 16px; font-weight: 650; }
#wizard .pk-edit { color: var(--primary); font-size: 14px; font-weight: 600; }
#wizard .pk-edit .i { font-size: 13px; }
#wizard .pk-meet { display: flex; align-items: center; gap: 14px; }
#wizard .pk-meet b { display: block; font-size: 16px; font-weight: 650; }
#wizard .pk-meet span span, #wizard .pk-meet > span > span { display: block; color: var(--ink-2); font-size: 14px; font-weight: 400; }
#wizard .pk-rev-meta { display: grid; grid-template-columns: 1.25fr .9fr .85fr; gap: 12px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
#wizard .pk-rev-meta > div { display: flex; gap: 10px; align-items: flex-start; min-width: 0; font-weight: 650; font-size: 14px; }
#wizard .pk-rev-meta .i { color: var(--ink-2); margin-top: 2px; }
#wizard .pk-rev-meta small { display: block; font-weight: 400; color: var(--ink-2); font-size: 13px; }
#wizard .pk-fileline, #wizard .pk-qline { display: flex; gap: 12px; align-items: flex-start; }
#wizard .pk-bubble { width: 36px; height: 36px; border-radius: 10px; background: var(--surface-2); color: var(--ink-2); display: flex; align-items: center; justify-content: center; flex: none; }
#wizard .pk-fileline b, #wizard .pk-qline p { margin: 0; font-size: 14px; font-weight: 650; }
#wizard .pk-fileline small, #wizard .pk-qline p { display: block; color: var(--ink-2); font-weight: 400; font-size: 14px; line-height: 1.45; }
#wizard .pk-pay-row { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin-top: 16px; }
#wizard .pk-pay-row b { font-weight: 650; }
#wizard .pk-pay-row small { display: block; color: var(--ink-2); font-weight: 400; font-size: 13px; margin-top: 2px; }
#wizard .pk-pay-row > b { white-space: nowrap; }
#wizard .pk-pay-total { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); font-weight: 650; font-size: 16px; }
#wizard .pk-pay-note { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; padding: 12px 14px; background: var(--primary-tint); border-radius: 12px; color: var(--ink); font-size: 14px; line-height: 1.45; }
#wizard .pk-pay-note .i { color: var(--primary); margin-top: 2px; }
#wizard .pk-pay-note p { margin: 0; }
#wizard .pk-agree { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; font-size: 14px; font-weight: 500; cursor: pointer; }
#wizard .pk-agree input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--primary); flex: none; }
#wizard .pk-agree a, #wizard .pk-privacy a { color: var(--primary); font-weight: 600; }
#wizard .pk-agree .i, #wizard .pk-privacy .i { font-size: 12px; color: var(--primary); }
#wizard .pk-agree.err { color: var(--bad); }
#wizard .pk-privacy { display: flex; gap: 8px; align-items: flex-start; margin: 12px 0 18px; color: var(--ink-2); font-size: 13px; line-height: 1.45; }
#wizard .pk-privacy > .i { color: var(--ink-2); margin-top: 2px; }
#wizard .pk-pay-go { width: 100%; margin-top: 4px; justify-content: center; }
#wizard .pk-pay-go:disabled { opacity: .45; cursor: not-allowed; }
#wizard .pk-docprofile { display: flex; flex-direction: column; gap: 14px; }
#wizard .pk-prof-head { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 22px; align-items: start; padding: 22px; }
#wizard .pk-prof-who { display: flex; gap: 18px; align-items: flex-start; min-width: 0; }
#wizard .pk-prof-who .face { width: 108px; height: 108px; border: 0; box-shadow: none; }
#wizard .pk-prof-head h2 { margin: 0; font-size: 26px; font-weight: 650; letter-spacing: -.02em; }
#wizard .pk-prof-spec { margin: 2px 0 0; color: var(--ink-2); font-size: 15px; }
#wizard .pk-prof-ways { display: flex; flex-wrap: wrap; margin-top: 16px; }
#wizard .pk-prof-ways .way { display: flex; gap: 10px; align-items: flex-start; padding: 0 16px; border-left: 1px solid var(--line); }
#wizard .pk-prof-ways .way:first-child { padding-left: 0; border-left: 0; }
#wizard .pk-prof-ways .bubble { width: 36px; height: 36px; border-radius: 10px; background: var(--primary-tint); color: var(--primary); display: flex; align-items: center; justify-content: center; flex: none; }
#wizard .pk-prof-ways b { display: block; font-size: 14px; font-weight: 650; }
#wizard .pk-prof-ways .way > span > span { display: block; color: var(--ink-2); font-size: 12.5px; font-weight: 400; }
#wizard .pk-prof-side { display: flex; flex-direction: column; gap: 10px; }
#wizard .pk-prof-side .btn { width: 100%; justify-content: center; min-height: 46px; }
#wizard .pk-prof-verified { display: flex; gap: 10px; align-items: flex-start; background: var(--ok-tint); color: var(--ok-ink); border-radius: 14px; padding: 12px 14px; }
#wizard .pk-prof-verified > .i { color: var(--ok); font-size: 18px; margin-top: 1px; }
#wizard .pk-prof-verified b { display: block; font-size: 14px; }
#wizard .pk-prof-verified span { display: block; font-size: 13px; font-weight: 400; line-height: 1.4; }
#wizard .pk-prof-grid { display: grid; grid-template-columns: 1.1fr 1fr .95fr; gap: 14px; align-items: stretch; }
#wizard .pk-prof-grid .card { padding: 18px; }
#wizard .pk-prof-grid h3 { margin: 0 0 10px; font-size: 16px; font-weight: 650; }
#wizard .pk-prof-grid p { margin: 0; color: var(--ink-2); font-size: 14px; line-height: 1.5; }
#wizard .pk-prof-chips { display: flex; flex-wrap: wrap; gap: 8px; }
#wizard .pk-prof-chips span { background: var(--primary-tint); color: var(--primary); border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 650; }
#wizard .pk-svc { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: transparent; border: 0; border-top: 1px solid var(--line); padding: 12px 0; font: inherit; color: inherit; cursor: default; text-decoration: none; }
#wizard .pk-prof-services .pk-svc:first-of-type { border-top: 0; padding-top: 0; }
#wizard .pk-svc .bubble { width: 40px; height: 40px; border-radius: 12px; background: var(--primary-tint); color: var(--primary); display: flex; align-items: center; justify-content: center; flex: none; }
#wizard .pk-svc .bubble.doc { background: var(--ok-tint); color: var(--ok); }
#wizard .pk-svc .tx { min-width: 0; }
#wizard .pk-svc b { display: block; font-size: 14px; font-weight: 650; }
#wizard .pk-svc small { display: block; color: var(--ink-2); font-size: 12.5px; font-weight: 400; }
#wizard .pk-svc .price { margin-left: auto; font-weight: 650; white-space: nowrap; }
#wizard .pk-svc .chev { color: var(--ink-2); font-size: 12px; }
.pk-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; text-align: left; margin: 18px 0; }
.pk-pills { display: flex; gap: 8px; overflow: auto; padding-bottom: 6px; }
.pk-pill { flex: none; min-width: 88px; height: 64px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); font-weight: 650; color: var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; font-family: inherit; }
.pk-pill small { font-weight: 500; color: var(--ink-2); }
.pk-pill.on { border-color: var(--primary); color: var(--primary); box-shadow: 0 0 0 3px rgba(37, 99, 235, .16); }
.pk-pill.on small { color: var(--primary); }
.pk-docs { width: 100%; border-collapse: collapse; }
.pk-docs th, .pk-docs td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); font-weight: 400; }
.pk-docs th { color: var(--ink-2); font-size: 13px; font-weight: 600; }
.pk-split { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
@media (max-width: 900px) {
  .pk-home, .pk-services, .pk-split, .pk-facts { grid-template-columns: 1fr; }
  .pk-next { flex-wrap: wrap; }
  .pk-next > div:not(.acts):not(.datebox) { flex: 1 1 0; }
  .pk-next .acts { flex: 1 1 100%; margin-left: 0; width: 100%; }
}

/* ---- logo (inline SVG mark + wordmark) ---- */
.logo svg { width: 46px; height: 46px; flex: none; }
.logo { font-size: 1.3rem; letter-spacing: -.01em; }
.logo small { letter-spacing: 0; font-size: .8rem; }

/* ---- status: "needs your decision" ---- */
.status.act { background: var(--act); color: var(--act-ink); border-color: #B9850A; }
.notice.act { background: #FFF3D0; border: 1px solid #E0A100; color: var(--act-ink); }
.notice.act .i { color: #8A5A00; }
.notice.bad { background: var(--bad-tint); border-color: #E59A95; color: var(--bad-ink); }
.notice.bad .i { color: var(--bad); }
.nav .count.act { background: var(--act); color: var(--act-ink); }

/* ---- face avatars: crop of a photo (no files to edit) ---- */
.face { display: inline-block; border-radius: 50%; flex: none; overflow: hidden; background-repeat: no-repeat; background-size: cover; background-position: center; background-color: var(--surface-2); border: 3px solid var(--surface); box-shadow: 0 0 0 2px var(--line); }
.face.init { display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; background: var(--primary); }

/* ---- public pages ---- */
.pub-top { background: var(--surface); border-bottom: 2px solid var(--line); }
.pub-top .in { max-width: 1320px; margin: 0 auto; padding: 14px 32px; display: flex; align-items: center; gap: 22px; min-height: 90px; }
.pub-top nav { display: flex; gap: 6px; margin-left: auto; align-items: center; }
.pub-top nav a:not(.btn) { padding: 0 18px; height: 56px; display: flex; align-items: center; font-weight: 700; color: var(--ink); text-decoration: none; border-radius: var(--r-md); font-size: 1.05rem; }
.pub-lang { position: relative; }
.pub-lang summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font-weight: 700; font-size: .95rem; }
.pub-lang summary::-webkit-details-marker { display: none; }
.pub-lang summary .i { font-size: .7rem; color: var(--ink-2); }
.pub-lang .flag { width: 22px; height: 15px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(11, 26, 74, .15); flex: none; }
.pub-lang-menu { position: absolute; left: 0; top: calc(100% + 8px); min-width: 180px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 6px; box-shadow: var(--shadow-1); z-index: 20; }
.pub-lang-menu button, .pub-lang-menu a { width: 100%; display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px; border: 0; border-radius: 10px; background: transparent; color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; text-align: left; text-decoration: none; }
.pub-lang-menu button[aria-selected="true"], .pub-lang-menu a[aria-selected="true"] { background: var(--primary-tint); color: var(--primary); }
.pub-lang-menu button:hover, .pub-lang-menu a:hover { background: var(--surface-2); }
.lang { display: inline-flex; border: 2px solid var(--line-strong); border-radius: var(--r-md); overflow: hidden; height: 52px; font-weight: 800; }
.lang span { display: flex; align-items: center; padding: 0 14px; } .lang span.on { background: var(--primary); color: #fff; }
.hero-l { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; max-width: 1320px; margin: 0 auto; padding: 56px 32px 64px; }
.hero-l h1 { font-size: 3.5rem; line-height: 1.06; letter-spacing: -.025em; }
.hero-l .lead { font-size: 1.4rem; line-height: 1.5; color: var(--ink-2); margin-top: 20px; max-width: 640px; }
.hero-l .ctas { display: flex; gap: 16px; margin-top: 34px; flex-wrap: wrap; }
.hero-l .photo { border-radius: 32px; overflow: hidden; box-shadow: var(--shadow-2); aspect-ratio: 4 / 3.3; background-size: cover; background-position: 70% 30%; position: relative; border: 3px solid var(--surface); }
.hero-l .photo .float { position: absolute; left: 20px; bottom: 20px; right: 20px; background: color-mix(in srgb, var(--surface) 96%, transparent); color: var(--ink); border-radius: 18px; padding: 16px 20px; display: flex; gap: 14px; align-items: center; box-shadow: var(--shadow-1); font-weight: 700; }
.trust { display: flex; gap: 30px; margin-top: 34px; flex-wrap: wrap; }
.trust span { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; font-size: 1.1rem; }
.trust .i { width: 44px; height: 44px; line-height: 44px; border-radius: 50%; background: var(--primary-tint); color: var(--primary); font-size: 1.15rem; }
.band { background: var(--surface); border-top: 2px solid var(--line); border-bottom: 2px solid var(--line); }
.band .in { max-width: 1320px; margin: 0 auto; padding: 56px 32px; }
.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 34px; }
.how .step { background: var(--bg); border: 2px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.how .step .img { height: 210px; background-size: cover; background-position: center; position: relative; }
.how .step .n { position: absolute; left: 18px; top: 18px; width: 54px; height: 54px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 800; font-size: 1.6rem; display: flex; align-items: center; justify-content: center; border: 4px solid var(--surface); }
.how .step .tx { padding: 22px 26px 26px; }
.how .step h3 { font-size: 1.5rem; margin-bottom: 6px; }
.how .step p { color: var(--ink-2); font-size: 1.08rem; }
.pub-foot { background: #0B1A4A; color: #fff; }
.pub-foot .in { max-width: 1320px; margin: 0 auto; padding: 34px 32px; display: flex; gap: 30px; align-items: center; font-size: 1rem; }
.pub-foot a { color: #fff; font-weight: 700; }
.emerg, .sp-emerg { display: flex; gap: 12px; align-items: flex-start; background: var(--surface); border: 1px solid #D7E4F5; color: var(--ink); border-radius: 16px; padding: 14px 16px; font-weight: 400; }
.emerg-ic { width: 28px; height: 28px; border-radius: 50%; background: #FFF4E0; color: #E08A00; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; flex: none; }
.emerg b, .sp-emerg b { display: block; font-weight: 650; color: var(--ink); }
.emerg p, .sp-emerg p { margin: 2px 0 0; color: var(--ink-2); font-size: 14px; font-weight: 400; line-height: 1.45; }

/* ---- auth ---- */
.auth { display: grid; grid-template-columns: 5fr 6fr; min-height: 900px; }
.auth .side-l { background: var(--primary); color: #fff; padding: 56px 56px; display: flex; flex-direction: column; gap: 22px; position: relative; overflow: hidden; }
.auth .side-l h2 { font-size: 2.3rem; line-height: 1.15; }
.auth .side-l .pt { display: flex; gap: 16px; align-items: flex-start; font-size: 1.2rem; }
.auth .side-l .pt .i { width: 52px; height: 52px; line-height: 52px; border-radius: 50%; background: rgba(255,255,255,.16); font-size: 1.3rem; color: #fff; }
.auth .side-l .pt b { display: block; font-size: 1.25rem; }
.auth .side-l .photo { margin-top: 20px; border-radius: 26px; height: 300px; background-size: cover; background-position: center; border: 3px solid rgba(255,255,255,.5); }
.auth .side-r { padding: 44px 64px; display: flex; flex-direction: column; justify-content: center; }
.auth .formcard { max-width: 620px; width: 100%; margin: 0 auto; }
.auth.login { grid-template-columns: 1fr; }
.pwrules { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 22px; font-size: 1rem; color: var(--ink-2); margin-top: 4px; }
.pwrules span { display: inline-flex; gap: 10px; align-items: center; } .pwrules .i { color: var(--ok); font-size: 1.05rem; }
.pwrules .no .i { color: var(--ink-2); }
.input-wrap { position: relative; } .input-wrap .reveal { position: absolute; right: 8px; top: 8px; height: 44px; padding: 0 14px; border-radius: 10px; border: 2px solid var(--line-strong); background: var(--surface); font-weight: 700; display: flex; align-items: center; gap: 8px; font-size: .95rem; }
.input-wrap .input { padding-right: 150px; }
.emailchip { display: flex; align-items: center; gap: 14px; background: var(--surface-2); border-radius: var(--r-md); padding: 14px 18px; font-weight: 700; font-size: 1.1rem; }
.emailchip a { margin-left: auto; font-size: 1rem; }

/* ---- decision cards ("needs you") ---- */
.decide { background: #FFF8E1; border: 3px solid #E0A100; border-radius: var(--r-lg); padding: 24px 28px; display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; }
.decide + .decide { margin-top: 14px; }
.decide h3 { font-size: 1.3rem; margin-bottom: 4px; }
.decide .was { text-decoration: line-through; color: var(--ink-2); }
.decide .acts { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.section-h { display: flex; align-items: center; gap: 14px; margin: 0 0 14px; }
.section-h h2 { font-size: 1.5rem; } .section-h .n { background: var(--act); color: var(--act-ink); border-radius: 15px; min-width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; padding: 0 9px; }

/* ---- doctor cards ---- */
.dgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.dcard { display: grid; grid-template-columns: 92px 1fr; gap: 20px; align-items: center; padding: 20px 22px; border: 3px solid var(--line); border-radius: var(--r-lg); background: var(--surface); position: relative; }
.dcard .face { width: 92px; height: 92px; }
.dcard h3 { font-size: 1.3rem; } .dcard .spec { color: var(--primary-hover); font-weight: 700; font-size: 1.02rem; margin-top: 2px; }
.dcard .next { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: .98rem; color: var(--ink-2); }
.dcard .next b { color: var(--ink); }
.dcard.on { border-color: var(--primary); background: var(--primary-tint); box-shadow: 0 0 0 4px rgba(37, 99, 235, .16); }
.dcard .tick { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; }
.dcard .sel-lab { margin-top: 10px; }
.search { position: relative; } .search .i { position: absolute; left: 20px; top: 18px; font-size: 1.3rem; color: var(--ink-2); } .search .input { padding-left: 58px; }
.chips { display: flex; gap: 10px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 50px; padding: 0 20px; border-radius: var(--r-pill); border: 2px solid var(--line-strong); background: var(--surface); font-weight: 700; font-size: 1.02rem; }
.chip.on { background: var(--primary-tint); color: var(--primary); border-color: var(--primary); }
.doc-sum { display: flex; gap: 16px; align-items: center; }
.doc-sum .face { width: 72px; height: 72px; }

/* ---- how-to-talk options ---- */
.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.mode { border: 3px solid var(--line); border-radius: var(--r-lg); background: var(--surface); padding: 20px 20px 22px; display: flex; flex-direction: column; gap: 8px; position: relative; }
.mode .big-ic { width: 60px; height: 60px; border-radius: 18px; background: var(--primary-tint); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 1.6rem; }
.mode h4 { font-size: 1.2rem; } .mode p { color: var(--ink-2); font-size: 1rem; line-height: 1.4; }
.mode.on { border-color: var(--primary); background: var(--primary-tint); box-shadow: 0 0 0 4px rgba(37, 99, 235, .16); }
.mode.on .big-ic { background: var(--primary); color: #fff; }
.mode .tick { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; }
.mode .radio-o { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--line-strong); background: var(--surface); }

/* ---- uploads ---- */
.drop { border: 3px dashed var(--line-strong); border-radius: var(--r-lg); background: var(--surface); padding: 22px; display: flex; align-items: center; gap: 22px; }
.drop .big-ic { width: 64px; height: 64px; border-radius: 50%; background: var(--primary-tint); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 1.6rem; flex: none; }
.flist { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.file { display: flex; align-items: center; gap: 16px; padding: 12px 16px; border: 2px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.file .ft { width: 46px; height: 46px; border-radius: 12px; background: var(--primary-tint); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; flex: none; }
.file .nm { font-weight: 700; } .file .sz { color: var(--ink-2); font-size: .95rem; }
.file .btn { min-height: 48px; padding: 0 18px; font-size: 1rem; margin-left: auto; }
.counter { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ok-ink); font-size: 1rem; }

/* ---- details ---- */
.detail-grid { display: grid; grid-template-columns: 1fr 440px; gap: 28px; align-items: start; }
.bigstate { display: flex; flex-direction: column; gap: 14px; }
.bigstate .btn { width: 100%; }
.compare { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: stretch; margin: 18px 0; }
.compare .box { border: 3px solid var(--line); border-radius: var(--r-md); padding: 16px 18px; background: var(--surface); }
.compare .box.new { border-color: var(--ok); background: var(--ok-tint); }
.compare .box.old { background: var(--surface-2); }
.compare .box .lab { font-size: .9rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-2); }
.compare .box .big { font-size: 1.35rem; font-weight: 800; margin-top: 4px; }
.compare .box.old .big { text-decoration: line-through; color: var(--ink-2); }
.compare .arr { display: flex; align-items: center; color: var(--ink-2); font-size: 1.6rem; }
.quote { border-left: 6px solid var(--primary); background: var(--surface); padding: 14px 20px; border-radius: 0 var(--r-md) var(--r-md) 0; font-size: 1.1rem; }

/* ---- dialog ---- */
.scrim { position: absolute; inset: 0; background: rgba(16,38,45,.62); z-index: 40; display: flex; align-items: flex-start; justify-content: center; padding-top: 150px; }
.dialog { width: 720px; max-width: 94%; background: var(--surface); border-radius: 28px; padding: 36px 40px; box-shadow: var(--shadow-2); border: 3px solid var(--ink); }
.dialog h2 { font-size: 1.8rem; }
.dialog .acts { display: flex; gap: 14px; margin-top: 26px; }
.dialog .acts .btn { flex: 1; }
.dialog .x { float: right; }

/* ---- account ---- */
.srow { display: flex; align-items: center; gap: 22px; padding: 22px 26px; border: 2px solid var(--line); background: var(--surface); border-radius: var(--r-lg); margin-bottom: 14px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow-1); }
.srow .big-ic { width: 62px; height: 62px; border-radius: 18px; background: var(--primary-tint); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 1.6rem; flex: none; }
.srow h3 { font-size: 1.3rem; } .srow p { color: var(--ink-2); font-size: 1.02rem; margin-top: 2px; }
.srow .go { margin-left: auto; display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--primary); font-size: 1.05rem; }
.setrow { display: flex; align-items: center; gap: 20px; padding: 20px 0; border-bottom: 2px solid var(--line); }
.setrow:last-child { border-bottom: 0; }
.setrow .ic { width: 52px; height: 52px; border-radius: 14px; background: var(--primary-tint); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; flex: none; }
.setrow .tx { flex: 1; } .setrow .tx b { font-size: 1.15rem; display: block; } .setrow .tx span { color: var(--ink-2); font-size: 1rem; }
.sw-on, .sw-off { display: inline-flex; align-items: center; gap: 12px; border-radius: var(--r-pill); height: 56px; padding: 0 22px 0 8px; font-weight: 800; font-size: 1.05rem; border: 3px solid; min-width: 170px; }
.sw-on { background: var(--ok-tint); border-color: var(--ok); color: var(--ok-ink); }
.sw-off { background: var(--surface-2); border-color: var(--line-strong); color: var(--ink-2); padding: 0 8px 0 22px; justify-content: flex-end; flex-direction: row-reverse; }
.sw-on .knob, .sw-off .knob { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1rem; color: #fff; }
.sw-on .knob { background: var(--ok); } .sw-off .knob { background: var(--line-strong); }
.sizes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.sizebox { border: 3px solid var(--line); border-radius: var(--r-lg); padding: 20px; text-align: center; background: var(--surface); position: relative; }
.sizebox .a { font-weight: 800; line-height: 1; margin-bottom: 8px; }
.sizebox.on { border-color: var(--primary); background: var(--primary-tint); box-shadow: 0 0 0 4px rgba(37, 99, 235, .16); }
.sizebox .tick { position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: .9rem; }
.avatar-big { width: 150px; height: 150px; font-size: 3.4rem; }

/* ---- room (chat + call): the library keeps working, only the frame changes ---- */
.room { display: flex; flex-direction: column; background: #0E1A1F; color: #fff; }
.room-top { height: 84px; background: #0E1A1F; display: flex; align-items: center; gap: 20px; padding: 0 28px; border-bottom: 2px solid #26363D; flex: none; }
.room-top .btn { min-height: 52px; background: transparent; color: #fff; border-color: #8CA3AA; padding: 0 20px; font-size: 1.02rem; }
.room-top .who { display: flex; align-items: center; gap: 14px; } .room-top .who b { font-size: 1.2rem; display: block; line-height: 1.2; } .room-top .who span { color: #B7C7CC; font-size: .98rem; }
.room-top .face { width: 54px; height: 54px; border-color: #0E1A1F; box-shadow: 0 0 0 2px #4A5D64; }
.room-top .grow { flex: 1; }
.sig { display: inline-flex; gap: 10px; align-items: center; font-weight: 700; background: rgba(255,255,255,.1); padding: 10px 16px; border-radius: 999px; }
.sig .i { color: #7BE0A0; }
.live-tag { background: #D6336C; color: #fff; padding: 8px 16px; border-radius: 999px; font-weight: 800; letter-spacing: .04em; display: inline-flex; gap: 8px; align-items: center; }
.room-main { display: grid; grid-template-columns: 1fr 440px; flex: 1; min-height: 0; }
.room-main.advice { grid-template-columns: 400px 1fr; }
.stage { position: relative; background: #07110F; display: flex; flex-direction: column; overflow: hidden; }
.stage .video { flex: 1; background-size: cover; background-position: 50% 20%; position: relative; }
.stage .self { position: absolute; right: 24px; top: 24px; width: 230px; height: 150px; border-radius: 18px; background: #26363D; border: 3px solid var(--surface); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; font-weight: 700; }
.stage .self .face { width: 62px; height: 62px; }
.stage .nameplate { position: absolute; left: 24px; bottom: 24px; background: rgba(0,0,0,.65); padding: 10px 18px; border-radius: 12px; font-weight: 700; font-size: 1.1rem; }
.ctrls { display: flex; justify-content: center; gap: 14px; padding: 18px 20px 22px; background: #0E1A1F; border-top: 2px solid #26363D; }
.ctl { width: 132px; height: 92px; border-radius: 18px; border: 2px solid #8CA3AA; background: #1B2B31; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; font-weight: 700; font-size: 1.02rem; }
.ctl .i { font-size: 1.7rem; }
.ctl.on { background: #fff; color: var(--ink); border-color: #fff; }
.ctl.off { background: #3A1A1A; border-color: #E59A95; }
.ctl.end { background: var(--bad); border-color: #F6B2AD; width: 190px; }
.chatpanel { background: var(--surface); color: var(--ink); display: flex; flex-direction: column; min-height: 0; border-left: 2px solid #26363D; }
.chatpanel .hd { padding: 18px 24px; border-bottom: 2px solid var(--line); display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 1.15rem; }
.chatpanel .msgs { flex: 1; padding: 22px 24px; display: flex; flex-direction: column; gap: 16px; overflow: hidden; background: var(--bg); }
.msg { max-width: 86%; display: flex; flex-direction: column; gap: 4px; }
.msg .b { padding: 14px 18px; border-radius: 20px; font-size: 1.08rem; line-height: 1.45; border: 2px solid var(--line); background: var(--surface); border-bottom-left-radius: 6px; }
.msg .t { font-size: .9rem; color: var(--ink-2); padding: 0 6px; }
.msg.mine { align-self: flex-end; align-items: flex-end; }
.msg.mine .b { background: var(--primary); border-color: var(--primary); color: #fff; border-bottom-left-radius: 20px; border-bottom-right-radius: 6px; }
.msg .nm { font-weight: 800; font-size: .95rem; padding: 0 6px; }
.sysmsg { align-self: center; background: var(--surface-2); border-radius: 999px; padding: 8px 18px; font-weight: 700; font-size: .98rem; color: var(--ink-2); text-align: center; }
.composer { border-top: 2px solid var(--line); padding: 16px 20px 20px; background: var(--surface); display: flex; flex-direction: column; gap: 12px; }
.composer .box { min-height: 74px; border: 2px solid var(--line-strong); border-radius: var(--r-md); padding: 14px 18px; font-size: 1.12rem; color: var(--ink-2); background: var(--surface); }
.composer .row .btn { min-height: 56px; padding: 0 22px; font-size: 1.05rem; }
.infopanel { background: var(--surface); color: var(--ink); padding: 26px 24px; display: flex; flex-direction: column; gap: 18px; border-right: 2px solid var(--line); }
.attach-bub { display: flex; align-items: center; gap: 12px; margin-top: 8px; padding: 10px 14px; border-radius: 14px; background: rgba(255,255,255,.18); font-weight: 700; font-size: 1rem; }
.msg:not(.mine) .attach-bub { background: var(--primary-tint); color: var(--primary-hover); }
.waitcam { flex: 1; display: flex; align-items: center; justify-content: center; background: radial-gradient(circle at 50% 40%, #1C3138, #07110F); position: relative; }
.waitcam .panel { width: 640px; background: var(--surface); color: var(--ink); border-radius: 28px; padding: 34px 38px; }
.checkrow { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-top: 2px solid var(--line); font-weight: 700; font-size: 1.12rem; }
.checkrow:first-of-type { border-top: 0; }
.checkrow .i { color: var(--ok); font-size: 1.5rem; }
.meter { margin-left: auto; display: flex; gap: 4px; align-items: flex-end; height: 26px; } .meter i { width: 8px; background: var(--ok); border-radius: 3px; } .meter i.off { background: var(--line); }

/* ---- error / empty states ---- */
.states { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.state { background: var(--surface); border: 2px solid var(--line); border-radius: var(--r-lg); padding: 26px; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow-1); }
.state .tag { align-self: flex-start; font-weight: 800; font-size: .9rem; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-2); }
.state .illu { width: 74px; height: 74px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2rem; background: var(--primary-tint); color: var(--primary); }
.state .illu.bad { background: var(--bad-tint); color: var(--bad); } .state .illu.wait { background: var(--warn-tint); color: var(--warn); }
.state h3 { font-size: 1.3rem; } .state ol { margin: 0; padding-left: 24px; line-height: 1.6; }
.input.err { border-color: var(--bad); border-width: 3px; }
.err-msg { display: flex; gap: 10px; align-items: flex-start; color: var(--bad-ink); font-weight: 700; font-size: 1rem; }

/* ---- email mockups ---- */
.mailwrap { background: #EEF1F2; padding: 40px 0; display: flex; justify-content: center; }
.mail { width: 680px; background: var(--surface); border-radius: 20px; overflow: hidden; border: 2px solid var(--line); box-shadow: var(--shadow-1); }
.mail .mh { padding: 26px 40px 10px; display: flex; align-items: center; gap: 12px; }
.mail .mb { padding: 10px 40px 34px; font-size: 1.15rem; line-height: 1.6; }
.mail .mb h1 { font-size: 2rem; margin: 8px 0 14px; }
.mail .eyebrow { display: inline-block; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; background: var(--act); color: var(--act-ink); padding: 5px 14px; border-radius: 999px; font-size: .95rem; }
.mail .kv { margin: 18px 0; border: 2px solid var(--line); border-radius: 16px; overflow: hidden; }
.mail .kv div { display: flex; gap: 14px; padding: 14px 18px; border-top: 2px solid var(--line); } .mail .kv div:first-child { border-top: 0; }
.mail .kv span { width: 130px; color: var(--ink-2); font-weight: 700; flex: none; }
.mail .mf { background: var(--bg); padding: 20px 40px; color: var(--ink-2); font-size: 1rem; line-height: 1.5; }
.mail-head { background: var(--surface); border: 2px solid var(--line); border-radius: 16px; padding: 14px 20px; max-width: 680px; margin: 0 auto 18px; font-size: 1rem; color: var(--ink-2); }

/* ---- mobile additions ---- */
.m-app .hero-l, .m-app .dgrid { display: block; }
.m-app .dcard { grid-template-columns: 72px 1fr; padding: 16px; gap: 14px; margin-bottom: 12px; } .m-app .dcard .face { width: 72px; height: 72px; }
.m-app .decide { grid-template-columns: 1fr; gap: 12px; padding: 20px; } .m-app .decide .acts { justify-content: stretch; } .m-app .decide .acts .btn { flex: 1; padding: 0 16px; }
.m-app .modes { grid-template-columns: 1fr; gap: 12px; }
.m-app .mode { flex-direction: row; align-items: center; gap: 16px; padding: 16px; } .m-app .mode .big-ic { flex: none; } .m-app .mode .tick, .m-app .mode .radio-o { top: 50%; margin-top: -17px; }
.m-app .crow { grid-template-columns: 1fr; gap: 12px; padding: 18px; } .m-app .crow .acts { flex-wrap: wrap; } .m-app .crow .acts .btn { flex: 1; padding: 0 16px; }
.m-app .tiles { grid-template-columns: 1fr; gap: 14px; } .m-app .tile { min-height: 0; }
.m-app .tabs { flex-wrap: nowrap; overflow: hidden; gap: 8px; } .m-app .tab { padding: 0 16px; height: 54px; font-size: 1rem; flex: none; }
.m-app .sumrow { flex-wrap: wrap; gap: 4px 12px; } .m-app .sumrow .k { width: 100%; }
.m-app .ctl { width: 92px; height: 82px; font-size: .9rem; } .m-app .ctl.end { width: 100%; }
.m-app .srow { padding: 18px; gap: 16px; } .m-app .srow .big-ic { width: 54px; height: 54px; }
.m-stage { background: #07110F; color: #fff; position: relative; }
.m-top .back-m { display: flex; align-items: center; gap: 8px; font-weight: 800; color: var(--primary); text-decoration: none; font-size: 1.05rem; }
.m-bar { background: var(--surface); border-bottom: 2px solid var(--line); padding: 12px 18px; display: flex; align-items: center; gap: 12px; min-height: 68px; }

.pin.r-out { top: 0; right: -52px; } .pin.r-in { top: 50%; right: 12px; margin-top: -19px; }
.hero-l { grid-template-columns: 1.25fr 1fr; }
.hero-l .ctas .btn.lg { padding: 0 28px; }
.trust { gap: 20px 26px; }

.sticky-actions ~ .help-fab { bottom: 120px; }
.modes.stack { grid-template-columns: 1fr; gap: 12px; } .modes.stack .mode { flex-direction: row; align-items: center; gap: 16px; padding: 16px 18px; } .modes.stack .mode .big-ic { flex: none; width: 54px; height: 54px; } .modes.stack .mode .tick, .modes.stack .mode .radio-o { top: 50%; margin-top: -17px; } .modes.stack .mode h4 { margin: 0; }
.modes.stack .mode { padding-right: 60px; }
.chatpanel .msgs > * { flex: none; } .composer .row { gap: 10px; } .composer .row .btn { padding: 0 16px; }
.acc-grid { display: grid; grid-template-columns: 300px 1fr; gap: 32px; align-items: start; } .snav { display: flex; flex-direction: column; gap: 8px; position: sticky; top: 20px; } .snav a { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--r-md); border: 2px solid transparent; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 1.1rem; } .snav a .i { width: 26px; text-align: center; color: var(--primary); } .snav a.on { background: var(--primary-tint); border-color: var(--primary); color: var(--primary-hover); } .snav a:hover { background: var(--surface-2); }

.pin.t-up { top: -50px; right: 12px; } .m-app .compare .arr { display: none; }
.m-top .me .face { display: flex; } .m-app .pin.tl-out { left: -6px; }
.infopanel .file { flex-wrap: wrap; } .infopanel .file .btn { width: 100%; }

/* Package cards win over the larger Clarity sizes above. */
.page .card, .page .crow, .page .dcard, .page .choice, .page .mode, .page .file {
  border-width: 1px; border-radius: 16px;
}
.page .datebox, .page .datebox.sm {
  width: 72px; border: 1px solid var(--line); border-radius: 12px;
}
.page .datebox .mo, .page .datebox.sm .mo {
  background: var(--primary-tint); color: var(--primary); font-weight: 600; font-size: 11px;
}
.page .pk-next.pk-exam .datebox,
.page .pk-next.pk-exam .datebox.sm {
  border-color: #A7F3D0;
  background: #fff;
}
.page .pk-next.pk-exam .datebox .mo,
.page .pk-next.pk-exam .datebox.sm .mo {
  background: #E7F8EF;
  color: #059669;
}
.page .pk-next.pk-exam .datebox .w,
.page .pk-next.pk-exam .datebox.sm .w { color: #64748B; }
.page .datebox .d, .page .datebox.sm .d { font-size: 22px; font-weight: 650; }
.page .datebox .w, .page .datebox.sm .w { font-size: 12px; font-weight: 500; }
.page .crow { padding: 14px 16px; gap: 14px; box-shadow: none; }
.page .detail-grid { grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; }
.page .file { padding: 10px 12px; gap: 12px; }
.page .setrow { padding: 12px 0; gap: 12px; border-bottom-width: 1px; }
.page .setrow .tx b { font-size: 15px; }
.page .setrow .tx span { font-size: 13px; }
.page .snav a { padding: 10px 12px; font-size: 15px; font-weight: 500; border-width: 1px; }
.page .acc-grid { grid-template-columns: 240px minmax(0, 1fr); gap: 18px; }
.pk-profile { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr); gap: 18px; align-items: start; }
.pk-profile-col { display: flex; flex-direction: column; gap: 16px; }
.pk-profile .card h2 { font-size: 18px; font-weight: 700; margin: 0 0 2px; }
.pk-profile .lead { color: var(--ink-2); font-size: 14px; margin: 0 0 16px; }
.pk-profile .fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.pk-profile .field.pk-span { grid-column: 1 / -1; }
.pk-profile .field label { display: block; font-size: 13px; font-weight: 650; margin-bottom: 6px; }
.pk-profile .field .input, .pk-profile .field select.input { width: 100%; height: 44px; border-radius: 10px; }
.pk-keywords { display: flex; flex-direction: column; gap: 8px; }
.pk-keys { display: flex; flex-direction: column; gap: 8px; max-height: 148px; overflow-y: auto; scrollbar-width: thin; }
.pk-keys[hidden], .pk-key-edit[hidden], .pk-key-plus[hidden] { display: none; }
.pk-key, .pk-key-plus, .pk-key-edit { box-sizing: border-box; display: flex; align-items: center; min-height: 44px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); }
.pk-key { padding: 0 6px 0 14px; gap: 8px; }
.pk-key span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pk-key-x, .pk-key-ok { box-sizing: border-box; width: 32px; height: 32px; border: 0; border-radius: 8px; background: transparent; color: var(--ink-2); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex: none; }
.pk-key-ok { color: #2563EB; }
.pk-key-x:hover, .pk-key-ok:hover, .pk-key-plus:hover { background: var(--surface-2); color: var(--ink); }
.pk-key-plus { width: 100%; justify-content: center; padding: 0; font: inherit; cursor: pointer; }
.pk-key-edit { padding: 0 6px 0 0; }
.pk-profile .pk-key-edit .input { flex: 1; width: auto; min-width: 0; height: 40px; min-height: 0; border: 0; border-radius: 12px; background: transparent; box-shadow: none; }
.pk-profile .pk-key-edit .input:focus { border: 0; box-shadow: none; }
.pk-key-edit:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(37, 99, 235, .18); }
.pk-professions .pk-keys { max-height: 220px; }
.pk-professions .pk-key { padding: 0 6px 0 8px; }
.pk-professions .pk-key:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(37, 99, 235, .18); }
.pk-prof-select { flex: 1; min-width: 0; height: 40px; border: 0; background: transparent; color: inherit; font: inherit; padding: 0 4px; outline: none; }
#profession-choices { display: none; }
.pk-profile .note { margin: 12px 0 0; color: var(--ink-2); font-size: 13px; line-height: 1.45; }
.pk-who-photo { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.pk-who-photo .face { width: 72px; height: 72px; border-radius: 50%; font-size: 22px; background-size: cover; background-position: center; }
.pk-bill { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.pk-profile .pk-save { width: 100%; min-height: 48px; border-radius: 12px; justify-content: center; }
.pk-save-row { display: flex; align-items: center; gap: 12px; }
.pk-profile .pk-save-row .pk-save { flex: 1; width: auto; min-width: 0; }
.pk-saved { flex: none; width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; color: #16A34A; font-size: 26px; line-height: 1; }
.pk-saved .i { font-weight: 900; width: auto; }
.pk-saved[hidden] { display: none !important; }
.pk-saved-txt { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
html.dark .pk-saved { color: #4ADE80; }
.pk-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.pk-line .tx b { display: block; }
.pk-line .tx span, .pk-bookcheck small { color: var(--ink-2); font-size: 13px; font-weight: 400; }
.pk-bookcheck { display: flex; gap: 12px; align-items: flex-start; }
.pk-bookcheck + .pk-bookcheck { margin-top: 14px; }
.pk-bookcheck input { width: 18px; height: 18px; margin-top: 3px; accent-color: #2563EB; }
.pk-bookcheck b { display: block; }
.pk-docpanel { padding: 0; }
.pk-docpanel summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; font-weight: 700; font-size: 18px; }
.pk-docpanel summary::-webkit-details-marker { display: none; }
.pk-docpanel summary .i { color: var(--ink-2); transition: transform .15s ease; }
.pk-docpanel[open] summary .i { transform: rotate(180deg); }
.pk-docpanel-body { padding: 0 20px 18px; }
.pk-docline { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.pk-docline[hidden], .pk-docpages[hidden] { display: none; }
.pk-docline div { flex: 1; }
.pk-docline b, .pk-docline span { display: block; }
.pk-docline span { color: var(--ink-2); font-size: 13px; font-weight: 400; }
.pk-docpages { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.pk-docpages .btn { min-height: 36px; padding: 0 12px; }
.pk-access { max-width: 880px; margin: 0 auto; }
.pk-access .page-head { margin-bottom: 14px; }
.pk-access .page-head h1 { font-size: 1.7rem; }
.pk-access-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(220px, .75fr); gap: 14px; align-items: start; }
.pk-access-col { display: flex; flex-direction: column; gap: 12px; }
.pk-access .card { padding: 14px 16px; border-radius: 16px; }
.pk-access .card h2 { font-size: 15px; margin: 0 0 10px; }
.pk-access .sizes { grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pk-access .sizebox { padding: 10px 8px; border-width: 1.5px; border-radius: 12px; }
.pk-access .sizebox .a { font-size: 1.15rem; margin-bottom: 2px; }
.pk-access .sizebox[data-text="lg"] .a { font-size: 1.4rem; }
.pk-access .sizebox[data-text="xl"] .a { font-size: 1.65rem; }
.pk-access .sizebox b { font-size: 13px; }
.pk-access .sizebox .tick { width: 20px; height: 20px; top: 6px; right: 6px; font-size: .7rem; }
.pk-access .setrow { padding: 0; gap: 10px; border: 0; }
.pk-access .setrow .ic { width: 34px; height: 34px; border-radius: 10px; font-size: .95rem; }
.pk-access .setrow .tx b { font-size: 15px; }
.pk-access .setrow .tx span { font-size: 13px; }
.pk-access .sw-on, .pk-access .sw-off { height: 34px; font-size: 13px; border-width: 1px; }
.pk-access .sw-on .knob, .pk-access .sw-off .knob { width: 24px; height: 24px; font-size: .75rem; }
.pk-langrow { display: flex; gap: 8px; }
.pk-lang { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; }
.pk-lang.on { border-color: var(--primary); background: var(--primary-tint); color: var(--primary); }
.pk-lang .flag { width: 20px; height: 14px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(11, 26, 74, .15); }
.pk-access-note { font-size: 13px; }
.pk-access-actions { display: flex; justify-content: center; gap: 10px; }
.pk-access-actions[hidden] { display: none; }
.pk-access-actions .btn { min-height: 40px; }
.pk-preview-card {
    --ink: #0B1A4A; --ink-2: #3E5278; --surface: #fff; --surface-2: #E9EFF5; --line: #D7E4F5;
    --ok: #146235; --ok-ink: #0E4A28; --ok-tint: #E0F3E7;
    border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: var(--surface-2); color: var(--ink); font-size: 15px;
}
.pk-preview-card.pk-size-lg, .pk-preview-card.pk-size-lg .status { font-size: 18px; }
.pk-preview-card.pk-size-xl, .pk-preview-card.pk-size-xl .status { font-size: 21px; }
.pk-preview-card .status { font-size: 0.92em; }
.pk-preview-card.pk-dark {
    --ink: #E8EEF9; --ink-2: #B7C4DE; --surface: #17233F; --surface-2: #1E2C4D; --line: #2C3E66;
    --ok-tint: #12352A; --ok-ink: #8EE0B8;
}
.pk-preview-card b { display: block; margin-top: 8px; }
.pk-preview-card p { margin-top: 4px; color: var(--ink-2); font-size: 0.86em; }
.pk-preview-msg { margin-top: 10px; padding: 8px 10px; border-radius: 10px; background: var(--surface); color: var(--ink); font-size: 0.86em; }
@media (max-width: 800px) { .pk-access-grid { grid-template-columns: 1fr; } }
.pk-stop { padding: 0; border-color: #E8B4B0; }
.pk-stop summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; color: #A8221B; font-weight: 700; font-size: 16px; line-height: 1.3; }
.pk-stop summary::-webkit-details-marker { display: none; }
.pk-stop summary .i { color: #A8221B; transition: transform .15s ease; }
.pk-stop[open] summary .i { transform: rotate(180deg); }
.pk-stop-body { padding: 0 20px 8px; }
.pk-stop .pk-line .btn { border-radius: 999px; min-height: 40px; padding: 0 18px; flex: none; }
@media (max-width: 900px) {
  .pk-profile, .pk-profile .fields { grid-template-columns: 1fr; }
}
.page .sw-on, .page .sw-off { height: 40px; font-size: 14px; font-weight: 600; border-width: 1px; min-width: 0; padding: 0 12px 0 6px; }
.pk-banner { display: flex; align-items: center; gap: 16px; margin-top: 16px; padding: 14px 16px; border-radius: 16px; background: var(--primary-tint); border: 1px solid #BFDBFE; }
.pk-banner p { margin: 0; color: var(--ink-2); font-size: 14px; }
.pk-banner .btn { margin-left: auto; flex: none; }
.auth .btn.ok.lg, .auth-wrap .btn.lg { min-height: 48px; font-size: 15px; font-weight: 650; }
.pk-login { width: 460px; max-width: 100%; margin: 36px auto; padding: 28px; }
.pk-login h1, .pk-login .lead { text-align: center; }
.pk-login .lead { color: var(--ink-2); font-size: 15px; font-weight: 400; margin-bottom: 16px; }
.pk-login .field { margin-bottom: 12px; }
.pk-login .check { gap: 8px; padding: 8px 10px; font-size: 14px; font-weight: 400; border-width: 1px; }
.pk-login .check .box { width: 18px; height: 18px; border-width: 1.5px; border-radius: 5px; font-size: 11px; }
.pk-login .input-wrap .input { padding-right: 108px; }
.pk-login .reveal-btn, .auth .reveal-btn { top: 50%; right: 6px; transform: translateY(-50%); height: 30px; padding: 0 8px; border: 0; border-radius: 8px; background: transparent; color: var(--ink-2); font-weight: 500; font-size: 13px; gap: 5px; }
.pk-login .reveal-btn:hover, .auth .reveal-btn:hover { background: var(--primary-tint); color: var(--primary); }
.pk-login .reveal-btn .i, .auth .reveal-btn .i { font-size: 13px; font-weight: 400; width: auto; }
.pk-login input[type="password"]::-ms-reveal,
.pk-login input[type="password"]::-ms-clear,
.auth input[type="password"]::-ms-reveal,
.auth input[type="password"]::-ms-clear,
.input-wrap input[type="password"]::-ms-reveal,
.input-wrap input[type="password"]::-ms-clear { display: none; }
.auth .input-wrap .input { padding-right: 108px; }
.pk-forgot { display: block; text-align: right; margin-top: 6px; font-size: 14px; }
.pk-or { display: flex; align-items: center; gap: 10px; color: var(--ink-2); font-size: 13px; margin: 16px 0; }
.pk-or::before, .pk-or::after { content: ""; height: 1px; background: var(--line); flex: 1; }
.btn.line { background: var(--surface); color: var(--primary); border: 1px solid var(--primary); }
.pk-reg { font-size: 15px; }
.pk-reg h1 { font-size: 28px; }
.pk-reg .input, .pk-reg .btn { min-height: 44px; font-size: 15px; }
.pk-reg .check, .auth .check { font-size: 15px; font-weight: 400; border-width: 1px; }
.pk-reg .btn.lg { min-height: 48px; }

/* Booking step matches the package needs screen. */
body:has(#wizard) .sp-help-fab, body:has(#advice) .sp-help-fab { display: none; }
body:has(#wizard) .page, body:has(#advice) .page { max-width: 1184px; padding-bottom: 16px; }
body:has(#wizard) .sticky-actions, body:has(#advice) .sticky-actions { position: static; background: transparent; border: 0; box-shadow: none; padding: 0 32px 32px; }
body:has(#wizard) .sticky-actions .in, body:has(#advice) .sticky-actions .in { max-width: 1120px; }
body:has(#wizard) .sticky-actions .note, body:has(#advice) .sticky-actions .note { display: none; }
#wizard, #advice { max-width: 1120px; margin: 0 auto; }
#wizard .stepper { display: flex; gap: 0; margin: 4px 0 22px; }
#wizard .stepper li { flex: 1; flex-direction: row; align-items: center; justify-content: flex-start; gap: 8px; font-size: 14px; font-weight: 500; text-align: left; }
#wizard .stepper li::before { content: none; }
#wizard .stepper li::after { content: ""; flex: 1 1 auto; height: 1px; margin-right: 10px; background: var(--line); min-width: 12px; }
#wizard .stepper li.done::after { background: var(--primary); }
#wizard .stepper li:last-child::after { content: none; }
#wizard .stepper .dot { width: 26px; height: 26px; border-width: 1px; font-size: 13px; font-weight: 650; box-shadow: none; }
#wizard .stepper li.now .dot { background: var(--primary); color: #fff; border-color: var(--primary); box-shadow: none; }
#wizard h2 { font-size: 28px; font-weight: 650; letter-spacing: -.02em; margin-bottom: 14px; }
.pk-need { display: flex; flex-direction: column; gap: 16px; }
.pk-svc, .pk-sum-svc { display: flex; align-items: center; gap: 12px; }
.pk-svc b, .pk-sum-svc b { display: block; font-weight: 650; }
.pk-svc span, .pk-sum-svc span { display: block; color: var(--ink-2); font-size: 13px; font-weight: 400; }
.pk-svc .bubble, .pk-sum-svc .bubble { width: 40px; height: 40px; border-radius: 12px; background: var(--primary-tint); color: var(--primary); display: flex; align-items: center; justify-content: center; flex: none; }
.pk-svc a { margin-left: auto; font-weight: 600; }
.pk-countbox { position: relative; }
.pk-countbox .textarea { min-height: 96px; padding-bottom: 26px; }
.pk-countbox span { position: absolute; right: 12px; bottom: 8px; color: var(--ink-2); font-size: 12px; }
.pk-two { display: grid; grid-template-columns: 1fr 1.3fr; gap: 14px; }
.pk-need .lab { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.pk-radios, .pk-when { display: flex; flex-wrap: wrap; gap: 8px; }
.pk-radio { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 500; font-size: 15px; cursor: pointer; }
.pk-radio .rad { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid #8AA0C4; flex: none; }
.pk-radio.on { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37, 99, 235, .12); }
.pk-radio.on .rad { border: 5px solid var(--primary); }
.pk-sum-h { display: flex; justify-content: space-between; margin-bottom: 12px; }
.pk-sum-svc { background: var(--primary-tint); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; }
.pk-sum-row { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); font-size: 14px; }
.pk-sum-row span { display: flex; align-items: center; gap: 8px; color: var(--ink-2); }
.pk-sum-row b { font-weight: 650; }
button.cal-day.sel { background: var(--surface); color: var(--primary); box-shadow: inset 0 0 0 2px var(--primary); }
.dcard.on { background: var(--surface); }
#wizard .pk-title { font-size: 28px; font-weight: 650; margin-bottom: 14px; }
.pk-docbar { display: flex; gap: 10px; align-items: end; }
#wizard #doctor-block { margin-top: 16px; }
.pk-docbar .search { flex: 1.3; min-width: 180px; }
.pk-docbar .pk-filter { flex: 1; min-width: 160px; }
.pk-docbar .search .i { left: 14px; top: 50%; transform: translateY(-50%); font-size: 14px; }
.pk-docbar .search .input { padding-left: 38px; }
.pk-filter { display: flex; flex-direction: column; gap: 4px; color: var(--ink-2); font-size: 13px; font-weight: 600; }
.pk-filter .input, .pk-docbar .input { min-height: 44px; }
.pk-dropselect { position: relative; }
.pk-dropselect-btn { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; cursor: pointer; padding-right: 32px; }
.pk-dropselect-btn .i { position: static; color: var(--primary); font-size: 14px; }
.pk-dropselect-btn::after { content: ""; position: absolute; right: 14px; top: 50%; width: 7px; height: 7px; border-right: 1.5px solid var(--ink-2); border-bottom: 1.5px solid var(--ink-2); transform: translateY(-70%) rotate(45deg); }
.pk-dropselect-menu { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 6px); display: flex; flex-direction: column; gap: 2px; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-2); }
.pk-dropselect-menu[hidden] { display: none; }
.pk-dropselect-menu button { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; color: var(--ink); font: inherit; font-weight: 600; text-align: left; cursor: pointer; }
.pk-dropselect-menu button .i { color: var(--primary); font-size: 14px; }
.pk-dropselect-menu button:hover, .pk-dropselect-menu button.on { background: var(--primary-tint); color: var(--primary); }
#wizard .pk-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 12px 0; align-items: stretch; position: relative; z-index: 3; }
#wizard .choice-wrap { position: relative; display: flex; min-width: 0; }
#wizard .choice-wrap .choice { width: 100%; height: 100%; padding-right: 44px; }
#wizard .pk-choice .choice { min-height: 56px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); display: flex; align-items: center; gap: 10px; font-weight: 500; text-align: left; }
#wizard .pk-choice .radio { width: 18px; height: 18px; margin-top: 0; border-radius: 50%; border: 1.5px solid #8AA0C4; flex: none; }
#wizard .pk-choice .choice.on { background: var(--primary-tint); border-color: var(--primary); box-shadow: none; }
#wizard .pk-choice .choice.on .radio { border: 5px solid var(--primary); }
#wizard .pk-info { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); z-index: 2; }
#wizard .pk-info-btn { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--primary); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
#wizard .pk-info-btn:hover, #wizard .pk-info.open .pk-info-btn { background: var(--primary-tint); border-color: var(--primary); }
#wizard .pk-tip { display: none; position: absolute; right: 0; top: calc(100% + 10px); width: min(280px, 70vw); padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-2); color: var(--ink); font-size: 13px; font-weight: 500; line-height: 1.45; text-align: left; z-index: 8; }
#wizard .pk-tip::before { content: ""; position: absolute; right: 8px; top: -6px; width: 10px; height: 10px; background: var(--surface); border-left: 1px solid var(--line); border-top: 1px solid var(--line); transform: rotate(45deg); }
#wizard .pk-info.up .pk-tip { top: auto; bottom: calc(100% + 10px); }
#wizard .pk-info.up .pk-tip::before { top: auto; bottom: -6px; border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
#wizard .pk-info:hover .pk-tip, #wizard .pk-info:focus-within .pk-tip, #wizard .pk-info.open .pk-tip { display: block; }
#wizard .pk-dcard, #advice .pk-dcard { display: flex; gap: 14px; align-items: flex-start; padding: 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); text-align: left; cursor: pointer; position: relative; font: inherit; color: inherit; }
#wizard .pk-dcard {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 14px; row-gap: 12px;
    padding: 16px; border-radius: 18px; box-shadow: var(--shadow-1);
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
#wizard .pk-dcard:hover { border-color: var(--line-strong); box-shadow: var(--shadow-2); }
#wizard .pk-dtop { display: flex; gap: 12px; align-items: center; min-width: 0; }
#wizard .pk-face { position: relative; flex: none; display: inline-flex; }
#wizard .pk-dbody { min-width: 0; }
#wizard .pk-dcard.on, #wizard .pk-dcard.on:hover { background: var(--surface); border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary), var(--shadow-1); }
#wizard .pk-dcard .face { width: 52px; height: 52px; border-radius: 50%; border: 0; box-shadow: none; flex: none; }
#wizard .pk-dcard h3 { font-size: 16px; font-weight: 650; margin: 0; line-height: 1.25; }
#wizard .pk-dcard .spec, #wizard .pk-dcard .pk-dmeta { color: var(--ink-2); font-size: 13px; font-weight: 500; }
#wizard .pk-dcard .spec { margin-top: 2px; }
#wizard .pk-dmeta { display: flex; gap: 10px; margin-top: 4px; }
#wizard .pk-dcard .next {
    grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 10px;
    margin: 0; padding: 10px 12px; border: 0; border-radius: 12px; background: var(--surface-2); font-size: 13px;
}
#wizard .pk-dcard.on .next { background: var(--surface-2); }
#wizard .pk-offer { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 8px; font-size: 13px; }
#wizard .pk-offer .bit { display: inline-flex; align-items: baseline; gap: 4px; min-width: 0; }
#wizard .pk-offer .k { color: var(--ink-2); font-weight: 500; }
#wizard .pk-offer b { font-weight: 650; color: var(--ink); }
#wizard .pk-dcard .next .k { color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; font-weight: 500; }
#wizard .pk-dcard .next .k .i { color: var(--primary); }
#wizard .pk-dcard .next b { font-weight: 700; color: var(--ink); }
#wizard .pk-dacts { grid-column: 1 / -1; display: flex; gap: 10px; align-items: center; justify-content: space-between; width: 100%; margin: 0; }
#wizard .pk-dacts .btn { min-height: 38px; padding: 0 16px; font-size: 14px; margin-left: auto; border-radius: 12px; }
#wizard .pk-dcard .tick {
    position: absolute; right: -2px; bottom: -2px; top: auto; left: auto; width: 20px; height: 20px; border-radius: 50%;
    background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 10px;
    border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--primary);
}
#wizard .pk-dcard.on .tick { border-color: var(--surface); }
#wizard .dgrid, #advice .dgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
#wizard #doctor-grid.pk-dscroll { overflow-y: auto; overscroll-behavior: contain; padding-right: 4px; }
.page .crow:has(.datebox) { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; align-items: center; }
.page .crow:not(:has(.datebox)) { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.page .crow h3 { font-size: 16px; font-weight: 650; margin: 2px 0; }
.page .crow .meta, .page .crow .status { font-size: 13px; font-weight: 500; }
#wizard .pk-card-offer {
    grid-column: 2; grid-row: 1; display: flex; flex-direction: column; align-items: flex-end; justify-content: center;
    gap: 2px; margin: 0; min-width: 0; text-align: right;
}
#wizard .pk-card-offer b { font-size: 16px; font-weight: 700; letter-spacing: -.02em; white-space: nowrap; color: var(--ink); }
#wizard .pk-card-offer span { font-size: 12px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
#wizard .pk-card-offer.pk-card-reply { max-width: 150px; }
#wizard .pk-card-offer.pk-card-reply b,
#wizard .pk-card-offer.pk-card-reply span { white-space: normal; line-height: 1.25; }
#wizard .pk-card-offer.pk-card-reply b { font-size: 14px; }
#wizard .pk-time-sub { margin: -6px 0 14px; color: var(--ink-2); font-size: 15px; }
#wizard .pk-time-card { display: flex; flex-direction: column; gap: 12px; }
#wizard .pk-time-label { font-weight: 650; font-size: 15px; }
#wizard #time-groups { display: flex; flex-direction: column; gap: 16px; width: 100%; }
#wizard .pk-time-group { display: block; width: 100%; }
#wizard .pk-time-group .pk-time-label { margin-bottom: 8px; font-size: 13px; color: var(--ink-2); }
#wizard .pk-time-group .slots { width: 100%; }
#wizard .pk-time-group .muted { margin: 0; }
#wizard .pk-time-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
#wizard .pk-time-head h3 { margin: 0; font-size: 15px; font-weight: 650; }
#wizard .pk-tz { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--ink-2); font-size: 13px; }
#wizard .slot-group h4 { font-size: 14px; margin: 0 0 8px; }
#wizard .slot-group.mt-l { margin-top: 12px; }
#wizard .pk-pills, #wizard .slots { scrollbar-width: thin; scrollbar-color: #c5d4ea transparent; }
#wizard .pk-pills::-webkit-scrollbar, #wizard .slots::-webkit-scrollbar { width: 6px; height: 6px; }
#wizard .pk-pills::-webkit-scrollbar-thumb, #wizard .slots::-webkit-scrollbar-thumb { background: #c5d4ea; border-radius: 99px; }
#wizard .pk-pills, #wizard .slots { display: flex; flex-wrap: nowrap; gap: 8px; max-height: none; overflow-x: auto; overflow-y: hidden; padding-bottom: 6px; }
#wizard .slots button.slot { width: auto; flex: none; min-width: 88px; height: 44px; min-height: 44px; padding: 0 14px; font-size: 15px; }
#wizard .slot { min-height: 40px; min-width: 88px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); font-weight: 500; }
#wizard .slot.sel { background: var(--primary-tint); color: var(--primary); box-shadow: inset 0 0 0 2px var(--primary); }
#wizard .pk-pill { width: auto; flex: none; min-width: 88px; min-height: 64px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); font-weight: 650; }
#wizard .pk-pill.on { background: var(--primary-tint); border-color: var(--primary); box-shadow: inset 0 0 0 2px var(--primary); color: var(--primary); }
#wizard .cal-head { margin-bottom: 8px; }
#wizard .cal-head h3 { margin: 0; font-size: 18px; font-weight: 650; }
#wizard .cal-dow { font-size: 13px; font-weight: 650; padding-bottom: 2px; }
#wizard .cal-grid { gap: 6px; }
#wizard .cal-day { height: 46px; font-size: 14px; font-weight: 650; flex-direction: column; line-height: 1.1; gap: 1px; }
#wizard .cal-day.free::after { content: none; }
#wizard .cal-day.today small { position: static; font-size: 9px; line-height: 1; letter-spacing: .02em; }
#wizard button.cal-day.sel { background: var(--primary-tint); color: var(--primary); box-shadow: inset 0 0 0 2px var(--primary); }
#wizard .cal-legend { gap: 14px; margin-top: 10px; font-size: 13px; color: var(--ink-2); }
#wizard .cal-legend .sw { width: 16px; height: 16px; border-radius: 5px; }
#wizard .sw.free { border: 2px solid var(--primary); background: var(--surface); }
#wizard .sw.none { background: var(--surface-2); border: 1px solid var(--line); }
#wizard .cal-nav .chip-btn { height: 36px; padding: 0 12px; font-size: 14px; }
#wizard .pk-time-head h3 { display: flex; align-items: baseline; gap: 8px; }
#wizard .pk-time-head h3 .muted { font-weight: 500; font-size: 13px; }
#wizard #propose-btn { margin-top: 12px; }
.pk-book .pk-title { font-size: 28px; font-weight: 650; margin: 0 0 14px; }
.pk-book .pk-time-card { display: flex; flex-direction: column; gap: 12px; }
.pk-book .pk-time-label { font-weight: 650; font-size: 15px; }
.pk-book #time-groups { display: flex; flex-direction: column; gap: 16px; width: 100%; }
.pk-book .pk-time-group { display: block; width: 100%; }
.pk-book .pk-time-group .pk-time-label { margin-bottom: 8px; font-size: 13px; color: var(--ink-2); font-weight: 650; }
.pk-book .pk-time-group .slots { width: 100%; }
.pk-book .pk-time-group .muted { margin: 0; }
.pk-book .pk-time-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pk-book .pk-time-head h3 { margin: 0; font-size: 15px; font-weight: 650; display: flex; align-items: baseline; gap: 8px; }
.pk-book .pk-time-head h3 .muted { font-weight: 500; font-size: 13px; }
.pk-book .pk-tz { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--ink-2); font-size: 13px; }
.pk-book .pk-pills, .pk-book .slots { display: flex; flex-wrap: nowrap; gap: 8px; max-height: none; overflow-x: auto; overflow-y: hidden; padding-bottom: 6px; scrollbar-width: thin; scrollbar-color: #c5d4ea transparent; }
.pk-book .slots button.slot { width: auto; flex: none; min-width: 88px; height: 44px; min-height: 44px; padding: 0 14px; font-size: 15px; }
.pk-book .slot { min-height: 40px; min-width: 88px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); font-family: inherit; font-weight: 500; color: var(--ink); }
.pk-book .card > .notice.info { margin: 0 0 12px; }
.pk-book .pk-sum-note p { overflow-wrap: anywhere; }
.pk-book .slot.sel { background: var(--primary-tint); color: var(--primary); box-shadow: inset 0 0 0 2px var(--primary); }
.pk-book .pk-pill { width: auto; flex: none; min-width: 88px; min-height: 64px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); font-weight: 650; }
.pk-book .pk-pill.on { background: var(--primary-tint); border-color: var(--primary); box-shadow: inset 0 0 0 2px var(--primary); color: var(--primary); }
.pk-book .cal-head { margin-bottom: 8px; }
.pk-book .cal-head h3 { margin: 0; font-size: 18px; font-weight: 650; }
.pk-book .cal-dow { font-size: 13px; font-weight: 650; padding-bottom: 2px; }
.pk-book .cal-grid { gap: 6px; }
.pk-book .cal-day { height: 46px; font-size: 14px; font-weight: 650; flex-direction: column; line-height: 1.1; gap: 1px; }
.pk-book .cal-day.free::after { content: none; }
.pk-book .cal-day.today small { position: static; font-size: 9px; line-height: 1; letter-spacing: .02em; }
.pk-book button.cal-day.sel { background: var(--primary-tint); color: var(--primary); box-shadow: inset 0 0 0 2px var(--primary); }
.pk-book .cal-legend { gap: 14px; margin-top: 10px; font-size: 13px; color: var(--ink-2); }
.pk-book .cal-legend .sw { width: 16px; height: 16px; border-radius: 5px; }
.pk-book .sw.free { border: 2px solid var(--primary); background: var(--surface); }
.pk-book .sw.none { background: var(--surface-2); border: 1px solid var(--line); }
.pk-book .cal-nav .chip-btn { height: 36px; padding: 0 12px; font-size: 14px; }
.pk-book .pk-sum-who { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.pk-book .pk-sum-who b { display: block; font-weight: 650; }
.pk-book .pk-sum-who > div span { display: block; color: var(--ink-2); font-size: 13px; font-weight: 400; }
.pk-book .pk-sum-who .face { width: 44px; height: 44px; flex: none; overflow: hidden; background-size: cover; background-position: center; }
.pk-book .pk-sum-note p { margin: 6px 0 0; font-weight: 650; color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; }
.pk-book .pk-sum-hint { display: flex; gap: 8px; align-items: flex-start; margin: 0; padding: 12px 0; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 14px; }
.pk-book .pk-sum-row b { text-align: right; }
.pk-book .pk-sum-note { padding: 12px 0; border-top: 1px solid var(--line); }
.pk-book .pk-sum-note span { display: flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: 14px; }
.pk-book .pk-sum-note p { margin: 6px 0 0; white-space: pre-wrap; }
.pk-book .pk-reason { margin-top: 14px; }
.pk-book .pk-reason .lab { display: block; margin-bottom: 8px; font-weight: 650; font-size: 14px; }
.pk-book .pk-reason .lab .muted { font-weight: 500; }
.pk-book .pk-reason .textarea { width: 100%; min-height: 96px; }
.pk-book .pk-save-stack { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.pk-book .pk-save-stack .btn { width: 100%; justify-content: center; }
.pk-book .notice { margin-top: 12px; }
#wizard .pk-sum-who { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
#wizard .pk-sum-who b { display: block; font-weight: 650; }
#wizard .pk-sum-who > div span { display: block; color: var(--ink-2); font-size: 13px; font-weight: 400; }
#wizard .pk-sum-who .face { width: 44px; height: 44px; flex: none; overflow: hidden; }
#wizard .pk-sum-who .face.init { color: transparent; font-size: 0; }
#wizard .pk-lead { margin: -8px 0 16px; color: var(--ink-2); font-size: 15px; }
#wizard #panel-details .card { border-radius: 16px; }
#wizard .pk-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; align-items: start; }
#wizard .pk-fields.pk-fields-stack { grid-template-columns: 1fr; }
#wizard .pk-fields .lab { display: block; margin-bottom: 8px; font-weight: 650; font-size: 14px; }
#wizard .pk-comms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
#wizard .pk-comm { display: flex; flex-direction: row; align-items: center; gap: 10px; min-height: 56px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
#wizard .pk-comm .i { color: var(--primary); font-size: 16px; }
#wizard .pk-comm b { font-size: 15px; font-weight: 650; }
#wizard .pk-comm.on { border-color: var(--primary); background: var(--primary-tint); box-shadow: 0 0 0 3px rgba(37, 99, 235, .14); }
#wizard .pk-fields .field label { display: block; margin-bottom: 6px; font-weight: 650; font-size: 14px; }
#wizard .pk-fields .req { color: #dc2626; }
#wizard .pk-fields .textarea { min-height: 118px; }
#wizard .pk-fields .pk-countbox .textarea { padding-bottom: 28px; }
#wizard .pk-fields .input { min-height: 44px; }
#wizard .pk-pair { display: grid; grid-template-columns: minmax(180px, .8fr) minmax(0, 1.2fr); gap: 16px 18px; align-items: start; }
#wizard .pk-pair:has(> .field.hidden) { grid-template-columns: 1fr; }
#wizard .pk-pair select.input { width: 100%; min-height: 56px; }
#file-warn { display: block; margin: 8px 0 0; padding: 8px 10px; font-size: 12.5px; line-height: 1.35; border-width: 1px; border-radius: 10px; }
#wizard .pk-docs-card > h3 { margin-bottom: 6px; font-size: 16px; }
#wizard .pk-docs-card > .muted { margin-bottom: 14px; font-size: 13px; line-height: 1.45; }
#wizard .pk-drop { flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px; min-height: 168px; padding: 22px 16px; border-width: 1.5px; border-radius: 14px; background: #f7faff; cursor: pointer; }
#wizard .pk-drop .big-ic { width: 42px; height: 42px; border-radius: 12px; background: transparent; color: var(--primary); font-size: 1.35rem; }
#wizard .pk-drop-link { background: none; border: 0; padding: 0; color: var(--primary); font: inherit; font-weight: 650; font-size: 15px; cursor: pointer; }
#wizard #file-list { margin-top: 12px; }
#wizard #file-list .file { border-width: 1px; border-radius: 12px; padding: 10px 12px; min-width: 0; }
#wizard #file-list .file > div { min-width: 0; flex: 1; }
#wizard #file-list .file .ft { width: 36px; height: 36px; border-radius: 10px; font-size: 15px; }
#wizard #file-list .file .nm { font-size: 14px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#wizard #file-list .file .sz { display: flex; align-items: center; gap: 6px; color: var(--ok); font-size: 13px; font-weight: 600; }
#wizard .pk-file-x { margin-left: auto; width: 32px; height: 32px; border: 0; border-radius: 8px; background: transparent; color: var(--ink-2); cursor: pointer; flex: none; }
#wizard .pk-file-x:hover { background: var(--surface-2); }
.pk-row { display: grid; grid-template-columns: 48px minmax(140px, 200px) minmax(0, 1fr) auto auto; gap: 14px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; margin-bottom: 10px; }
.pk-row .face { width: 48px; height: 48px; border-radius: 50%; background-size: cover; background-position: center; font-size: 16px; }
.pk-who b, .pk-what b { display: block; font-weight: 650; font-size: 15px; }
.pk-who span, .pk-row .meta { color: var(--ink-2); font-size: 13px; font-weight: 400; }
.pk-row .meta { display: flex; flex-wrap: wrap; gap: 8px 12px; margin-top: 2px; }
.pk-row .status { justify-self: end; }
.pk-row .btn { min-height: 40px; }
.pk-cons-head { align-items: center; margin-bottom: 28px; }
.pk-cons-head h1 { margin: 0; }
.pk-req, #req-list { margin: 0 0 28px; }
#req-list .section-h { margin: 0 0 10px; }
#req-list .section-h h2 { font-size: 16px; font-weight: 650; }
#req-list .section-h .n { min-width: 22px; height: 22px; border-radius: 11px; font-size: 12px; padding: 0 6px; }
.pk-req .section-h { margin: 0 0 10px; }
.pk-req .section-h h2 { font-size: 16px; font-weight: 650; }
.pk-cons-bar { display: flex; align-items: flex-end; gap: 16px; margin: 18px 0 16px; }
.pk-cons-bar .tabs { flex: 1; margin: 0; min-width: 0; }
.pk-cons-search { position: relative; width: 180px; margin: 0; flex: none; }
.pk-cons-search .i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-size: 14px; color: var(--ink-2); }
.pk-cons-search .input { height: 42px; padding-left: 38px; border-radius: 12px; }
.pk-cons-tools { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; flex: none; }
.pk-cons-filter { position: relative; }
.pk-filter-btn { display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 14px; border: 0; border-radius: 12px; background: var(--surface); color: var(--primary); box-shadow: inset 0 0 0 1.5px var(--primary); font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; }
.pk-filter-btn .i { font-size: 14px; }
.pk-filter-menu { position: absolute; top: calc(100% + 6px); right: 0; z-index: 20; width: 260px; max-width: calc(100vw - 32px); max-height: min(70vh, 480px); overflow: auto; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: 0 12px 32px rgba(15, 23, 42, .12); }
.pk-filter-menu p { margin: 8px 4px 4px; color: var(--ink-2); font-size: 12px; font-weight: 700; }
.pk-filter-menu p:first-child { margin-top: 0; }
.pk-filter-menu button { display: block; width: 100%; text-align: left; min-height: 36px; margin: 2px 0; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; }
.pk-filter-menu button.on, .pk-filter-menu button:hover { background: var(--primary-tint); color: var(--primary); }
.pk-filter-menu button[data-state] { display: flex; align-items: center; gap: 8px; }
.pk-filter-menu button[data-state]::before { content: ""; width: 16px; height: 16px; border-radius: 4px; border: 1.5px solid var(--line-strong); flex: none; background: var(--surface); }
.pk-filter-menu button[data-state].on::before { content: "\2713"; background: var(--primary); border-color: var(--primary); color: #fff; font-size: 11px; line-height: 14px; text-align: center; font-weight: 700; }
.pk-filter-menu button.pk-filter-clear { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); border-radius: 0; text-align: center; color: var(--ink-2); }
.pk-viewtoggle { display: flex; margin: 0 0 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); flex: none; }
.pk-viewtoggle button { display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 14px; border: 0; background: transparent; color: var(--ink-2); font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; }
.pk-viewtoggle button .i { font-size: 14px; }
.pk-viewtoggle button.on { color: var(--primary); box-shadow: inset 0 0 0 1.5px var(--primary); border-radius: 11px; background: var(--surface); }
.pk-docbubble { width: 48px; height: 48px; border-radius: 14px; background: #E7F8EF; color: #059669; display: flex; align-items: center; justify-content: center; font-size: 20px; }
#cons-list .pk-row, #req-list .pk-row, #cal-day-list .pk-row { grid-template-columns: 52px minmax(170px, 230px) minmax(220px, 1fr) auto auto; gap: 18px; padding: 16px 18px; border-radius: 18px; margin-bottom: 12px; }
#cons-list .meta span, #req-list .meta span, #cal-day-list .meta span { display: inline-flex; align-items: center; gap: 6px; }
#cons-list .meta .i, #req-list .meta .i, #cal-day-list .meta .i { font-size: 13px; }
#cons-list .meta .pk-bar, #req-list .meta .pk-bar, #cal-day-list .meta .pk-bar { width: 1px; height: 16px; background: var(--line); padding: 0; }
#cons-list .status.pk-soft, #req-list .status.pk-soft, #cal-day-list .status.pk-soft { border: 0; border-radius: 999px; padding: 6px 12px; font-weight: 650; gap: 6px; white-space: nowrap; }
#cons-list .status.ok, #req-list .status.ok, #cal-day-list .status.ok { background: #E7F8EF; color: #059669; }
#cons-list .status.review, #cons-list .status.wait, #req-list .status.review, #req-list .status.wait, #cal-day-list .status.review, #cal-day-list .status.wait { background: #F1F5F9; color: #475569; }
#cons-list .status.done, #req-list .status.done, #cal-day-list .status.done { background: #F1F5F9; color: #64748B; }
#cons-list .status.live, #req-list .status.live, #cal-day-list .status.live { background: var(--primary-tint); color: var(--primary); }
#cons-list .pk-exam .status, .pk-feed .pk-exam .status { background: #E7F8EF; color: #047857; border-color: transparent; }
#cons-list .pk-rowgo, #req-list .pk-rowgo, #cal-day-list .pk-rowgo { border-radius: 12px; font-weight: 650; gap: 8px; white-space: nowrap; }
#cons-list .pk-rowgo .i, #req-list .pk-rowgo .i, #cal-day-list .pk-rowgo .i { font-size: 11px; }
#cal-day-list { margin-top: 14px; }
.pk-cal-empty { margin: 4px 2px 0; }
.pk-month { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px 18px 14px; }
.pk-month-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.pk-month-head b { font-size: 18px; font-weight: 700; }
.pk-month-head button { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; color: var(--ink); }
.pk-month-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.pk-month-grid > span { text-align: center; color: var(--ink-2); font-size: 12px; font-weight: 650; padding: 4px 0 8px; }
.pk-month-grid .day { position: relative; height: 44px; border: 0; border-radius: 12px; background: transparent; font: inherit; font-weight: 650; cursor: pointer; color: var(--ink); }
.pk-month-grid .day.has { background: var(--primary-tint); color: var(--primary); }
.pk-month-grid .day.on { box-shadow: inset 0 0 0 2px var(--primary); }
.pk-month-grid .day i { position: absolute; left: 50%; bottom: 6px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--primary); }
@media (max-width: 980px) {
  .pk-cons-bar { flex-wrap: wrap; align-items: stretch; }
  .pk-cons-bar .tabs { flex: 1 1 100%; }
  .pk-cons-tools { flex: 1 1 100%; min-width: 0; }
  .pk-cons-search { flex: 1 1 auto; width: auto; min-width: 0; }
  .pk-cons-filter { flex: none; }
  .pk-viewtoggle { flex: 1 1 auto; }
  .pk-viewtoggle button { flex: 1; justify-content: center; }
}
.pk-docline { display: flex; align-items: center; gap: 14px; }
.pk-docline .face { width: 64px; height: 64px; border-radius: 50%; background-size: cover; background-position: center; flex: none; }
.pk-docline h2 { font-size: 20px; font-weight: 650; margin: 0; }
.pk-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 14px; color: var(--ink-2); font-size: 14px; }
.pk-join h3 { font-size: 18px; font-weight: 650; margin-bottom: 8px; }
@media (max-width: 800px) {
  .pk-row, #cons-list .pk-row, #req-list .pk-row, #cal-day-list .pk-row { grid-template-columns: 48px minmax(0, 1fr); }
  .pk-row .pk-what, .pk-row .status, .pk-row .btn { grid-column: 2; }
  #wizard .pk-fields, #wizard .pk-pair { grid-template-columns: 1fr; }
}
#wizard .sumrow .linkbtn { margin-left: auto; }
@media (max-width: 800px) {
  #wizard .dgrid, #advice .dgrid, .pk-split, .pk-two, .pk-docbar, #wizard .pk-choice, #wizard .pk-rev-layout, #wizard .pk-prof-head, #wizard .pk-prof-grid { grid-template-columns: 1fr; }
  .pk-docbar { flex-direction: column; align-items: stretch; }
  .pk-docbar .search, .pk-docbar .pk-filter { width: 100%; min-width: 0; }
  #wizard .pk-rev-main, #wizard .pk-rev-side, #wizard #review-back { grid-column: 1; grid-row: auto; }
  #wizard #review-back { margin-bottom: 0; }
  #wizard .pk-rev-meta { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .auth { display: block; min-height: 0; }
  .auth .side-l { padding: 28px 22px; }
  .auth .side-l .photo { display: none; }
  .auth .side-r { padding: 28px 18px 44px; }
}
.page .tabs { gap: 4px; border-bottom: 1px solid var(--line); margin: 8px 0 16px; }
.page .tab { height: 44px; padding: 0 14px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: transparent; color: var(--ink-2); font-weight: 600; font-size: 15px; box-shadow: none; }
.page .tab .i { font-size: 14px; }
.page .tab .n { background: transparent; min-width: 0; height: auto; padding: 0 0 0 6px; border-radius: 0; font-size: 13px; font-weight: 600; color: inherit; }
.page .tab.on, .page .tab.on .n { background: transparent; color: var(--primary); border-color: transparent; }
.page .tab.on { border-bottom-color: var(--primary); }
.page .status { border-width: 1px; font-weight: 600; font-size: 13px; padding: 4px 10px; }
.page .status.done { border-color: var(--line); background: var(--surface-2); }
.pk-head-acts .linkbtn { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; font-size: 15px; color: var(--primary); text-decoration: none; cursor: pointer; }
.pk-head-acts .btn { min-height: 44px; padding: 0 16px; font-size: 15px; }
.face.init { color: transparent; background: var(--primary-tint); font-weight: 650; border: 0; box-shadow: none; position: relative; container-type: inline-size; }
.face.init::before { content: "\f007"; font-family: "UE Icons"; font-weight: 900; font-size: 42cqw; line-height: 1; color: var(--primary); position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.face.init:has(.i) { color: var(--primary); }
.face.init:has(.i)::before { content: none; }
#wizard .pk-dacts .linkbtn { background: none; border: 0; padding: 0; min-height: 0; color: var(--primary); font-weight: 600; font-size: 14px; cursor: pointer; }
#wizard .pk-dmeta { color: var(--ink-2); }
.pk-service .ic-bubble.doc { background: #E7F8EF; color: #059669; }
.pk-file { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink); }
.pk-file .i { width: 32px; height: 32px; border-radius: 8px; background: var(--primary-tint); color: var(--primary); display: inline-flex; align-items: center; justify-content: center; flex: none; font-size: 14px; }
.pk-docs .btn, .pk-row .btn.secondary { min-height: 36px; padding: 0 12px; font-size: 14px; font-weight: 600; border-width: 1px; border-radius: 10px; }

/* Request sent */
#sent { max-width: 720px; margin: 24px auto 48px; }
#sent .pk-sent { margin: 0; padding: 28px 28px 22px; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-1); }
#sent h1 { margin: 0; font-size: 28px; letter-spacing: -.02em; }
#sent .status.wait { display: inline-flex; margin-top: 14px; background: #FFF4D8; color: #8A5A00; border: 0; border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 650; }
#sent-copy { max-width: none; margin: 14px 0 0; color: var(--ink-2); font-size: 15px; line-height: 1.5; text-align: left; }
#sent .pk-sent-rows { margin-top: 18px; }
#sent .pk-sent-row { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 16px; align-items: start; padding: 14px 0; border-top: 1px solid var(--line); }
#sent .pk-sent-row > span { color: var(--ink-2); font-size: 14px; padding-top: 2px; }
#sent .pk-sent-row b { display: block; font-size: 15px; font-weight: 650; line-height: 1.35; }
#sent .pk-sent-row small { display: block; margin-top: 2px; color: var(--ink-2); font-size: 13px; font-weight: 400; line-height: 1.45; }
#sent .pk-sent-files { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
#sent .pk-sent-files a { display: inline-flex; align-items: center; gap: 8px; color: var(--primary); font-weight: 650; text-decoration: none; }
#sent .pk-sent-acts { display: flex; flex-direction: column; align-items: stretch; gap: 10px; margin-top: 8px; }
#sent .pk-sent-acts .btn { width: 100%; justify-content: center; }
#sent .pk-sent-acts .linkbtn { align-self: center; background: none; border: 0; padding: 0; color: var(--primary); font: inherit; font-weight: 650; font-size: 15px; cursor: pointer; }
#sent .pk-sent-note { margin: 2px 0 0; color: var(--ink-2); font-size: 13px; text-align: center; line-height: 1.45; }

/* Confirmed consultation */
.pk-booked-head { margin-bottom: 16px; align-items: flex-start; }
.pk-booked-head h1 { margin: 0; font-size: 30px; letter-spacing: -.02em; }
.pk-booked-head p { margin: 6px 0 0; font-size: 15px; color: var(--ink-2); }
.pk-booked { display: flex; flex-direction: column; gap: 16px; }
.pk-booked-top, .pk-booked-bot { display: grid; gap: 16px; align-items: stretch; }
.pk-booked-top { grid-template-columns: minmax(0, 1.55fr) minmax(280px, .75fr); }
.pk-booked-bot { grid-template-columns: 1fr 1fr; }
.pk-visit, .pk-joinbox, .pk-prep { padding: 20px 22px; }
.pk-visit-who { display: flex; align-items: center; gap: 16px; }
.pk-visit-who .face { width: 72px; height: 72px; border-radius: 50%; background-size: cover; background-position: center; flex: none; }
.pk-visit-who h2 { margin: 0; font-size: 22px; font-weight: 650; }
.pk-visit-who .status { margin-left: auto; align-self: flex-start; }
.pk-visit .status.ok, .pk-visit .status.live { border: 0; border-radius: 999px; padding: 6px 12px; font-weight: 650; gap: 6px; }
.pk-visit .status.ok { background: #E7F8EF; color: #059669; }
.pk-visit .status.live { background: var(--primary-tint); color: var(--primary); }
.pk-visit-meta { display: grid; grid-template-columns: 1.15fr .85fr 1fr; gap: 12px; margin-top: 18px; align-items: center; }
.pk-visit-meta > div { display: flex; gap: 10px; align-items: flex-start; min-width: 0; }
.pk-visit-meta .i { color: var(--ink-2); margin-top: 3px; }
.pk-visit-meta b { display: block; font-size: 15px; font-weight: 650; }
.pk-visit-meta span { display: block; color: var(--ink-2); font-size: 13px; font-weight: 400; }
.pk-visit-pay { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.pk-visit-pay > div { display: flex; gap: 12px; align-items: flex-start; min-width: 0; }
.pk-visit-pay > div + div { border-left: 1px solid var(--line); padding-left: 16px; }
.pk-visit-pay > div > .i { color: var(--ink-2); margin-top: 2px; }
.pk-visit-pay .k { display: block; color: var(--ink-2); font-size: 13px; font-weight: 500; }
.pk-visit-pay b { display: block; font-size: 15px; font-weight: 650; }
.pk-visit-pay .linkbtn { padding: 0; min-height: 0; font-size: 15px; }
.pk-receipt-note { margin: 12px 0 0; color: var(--ink-2); font-size: 13px; }
.pk-joinbox { display: flex; flex-direction: column; }
.pk-joinbox h3 { margin: 0; font-size: 18px; font-weight: 650; }
.pk-soon { background: #E7F8EF; border-radius: 14px; padding: 14px 16px; margin: 14px 0 16px; }
.pk-soon b { display: block; font-size: 18px; font-weight: 650; }
.pk-soon span { display: block; color: var(--ink-2); font-size: 14px; font-weight: 400; margin-top: 2px; }
.pk-joinbox > .btn,
.pk-joinbox > a.btn { width: 100%; }
.pk-joinbox > .btn + .btn,
.pk-joinbox > .btn + a.btn,
.pk-joinbox > a.btn + .btn,
.pk-joinbox > a.btn + a.btn { margin-top: 10px; }
.pk-visit .status.done { border: 0; border-radius: 999px; padding: 6px 12px; font-weight: 650; gap: 6px; background: var(--surface-2); color: var(--ink-2); }
.pk-joinbox .btn:disabled { opacity: .55; }
.pk-join-links { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 14px 0 10px; }
.pk-join-links .linkbtn { display: inline-flex; align-items: center; gap: 6px; color: var(--primary); font-weight: 650; font-size: 15px; text-decoration: none; }
.pk-join-links .sep { width: 1px; height: 16px; background: var(--line-strong); }
.pk-join-links .danger { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 0; color: var(--bad); font: inherit; font-weight: 650; font-size: 15px; cursor: pointer; }
.pk-admit { display: flex; gap: 8px; align-items: flex-start; color: var(--ink-2); font-size: 14px; }
.pk-admit .i { color: var(--primary); margin-top: 1px; }
.pk-prep h3 { margin: 0 0 4px; font-size: 18px; font-weight: 650; }
.pk-prep > p { margin: 0; color: var(--ink-2); font-size: 14px; line-height: 1.45; }
.pk-prep > p.pk-reason { margin-top: 12px; color: var(--ink); font-size: 15px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.pk-prep h3.pk-reason-next { margin-top: 22px; }
.pk-dev { display: flex; align-items: center; gap: 16px; margin-top: 16px; }
.pk-dev-rows { flex: 1; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.pk-dev-row { display: flex; align-items: center; gap: 10px; }
.pk-dev-row .mark { width: 22px; height: 22px; border-radius: 50%; background: var(--surface-2); color: transparent; display: flex; align-items: center; justify-content: center; font-size: 11px; flex: none; }
.pk-dev-row.ok .mark { background: #E7F8EF; color: #059669; }
.pk-dev-row.bad .mark { background: var(--bad-tint); color: var(--bad); }
.pk-dev-row .kind { color: var(--ink-2); }
.pk-dev-row .tx b { display: block; font-size: 15px; font-weight: 650; }
.pk-dev-row .tx span { display: block; color: var(--ink-2); font-size: 13px; font-weight: 400; }
.pk-dev .btn { flex: none; }
.page-head.pk-past h1 { font-size: 26px; }
.pk-past .pk-visit-who .face { width: 52px; height: 52px; }
.pk-past .pk-visit-who h2 { font-size: 18px; }
.pk-past .pk-visit, .pk-past .pk-joinbox, .pk-past .pk-prep { padding: 16px 18px; }
.pk-past .pk-joinbox { gap: 10px; }
.pk-past .pk-joinbox .btn, .pk-past .pk-joinbox .btn.lg { min-height: 42px; font-size: 15px; }
.pk-past .pk-visit-meta { margin-top: 14px; }
.pk-past .pk-visit-pay { margin-top: 12px; padding-top: 12px; }
.pk-docrow { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-top: 12px; min-width: 0; }
.pk-docrow .pk-docopen { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1; color: inherit; text-decoration: none; }
.pk-docrow .pk-docopen:hover b { text-decoration: underline; }
.pk-docdown { flex: none; margin-left: auto; color: var(--primary); font-weight: 650; font-size: 13px; text-decoration: none; }
dialog.pk-transcript {
    width: min(760px, calc(100vw - 48px)); max-height: min(80vh, calc(100vh - 48px));
    margin: auto; padding: 0; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); color: var(--ink);
    box-shadow: var(--shadow-2);
}
dialog.pk-transcript::backdrop { background: rgba(11, 26, 74, .35); }
.pk-transcript-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.pk-transcript-h h2 { margin: 0; font-size: 22px; font-weight: 700; }
.pk-transcript-x { width: 32px; height: 32px; border: 0; border-radius: 8px; background: transparent; color: var(--ink-2); cursor: pointer; }
.pk-transcript-x:hover { background: var(--surface-2); }
.pk-transcript-body { max-height: calc(80vh - 72px); overflow: auto; padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 14px; }
.pk-transcript article { display: flex; flex-direction: row; align-items: flex-start; gap: 8px; max-width: 100%; }
.pk-transcript article.mine { flex-direction: row-reverse; }
.pk-transcript article .face { width: 36px; height: 36px; border: 0; box-shadow: none; background-size: cover; background-position: center; font-size: 12px; flex: none; }
.pk-transcript article .face.init { color: #fff; background: var(--primary); }
.pk-transcript article .face.init::before { content: none; }
.pk-transcript-msg { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; max-width: calc(100% - 44px); }
.pk-transcript article.mine .pk-transcript-msg { align-items: flex-end; }
.pk-transcript header { display: flex; gap: 8px; font-size: 12px; color: var(--ink-2); }
.pk-transcript article.mine header { flex-direction: row-reverse; }
.pk-transcript header b { color: var(--ink); font-weight: 650; }
.pk-transcript article p { margin: 0; max-width: 100%; padding: 8px 12px; border-radius: 12px; background: #F7F8FA; color: var(--ink); font-size: 14px; line-height: 1.4; }
.pk-transcript article.mine p { background: #2563EB; color: #fff; }
.pk-transcript article a { font-size: 13px; font-weight: 650; color: var(--primary); }
.pk-docrow .ic { width: 36px; height: 36px; border-radius: 10px; background: var(--surface-2); color: var(--ink-2); display: flex; align-items: center; justify-content: center; flex: none; }
.pk-docrow .tx { min-width: 0; flex: 1; }
.pk-docrow .tx b, .pk-docrow .tx span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pk-docrow .tx b { font-size: 14px; font-weight: 650; }
.pk-docrow .tx span { color: var(--ink-2); font-size: 13px; font-weight: 400; }
.pk-docrow .pk-more, .pk-docdown { flex: none; }
.pk-ask { position: relative; }
.pk-ask > summary {
    list-style: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
    min-height: 44px; padding: 0 14px; border-radius: 12px; border: 1.5px solid var(--line);
    background: var(--surface); color: var(--ink); font: inherit; font-weight: 650; font-size: 15px;
}
.pk-ask > summary::-webkit-details-marker { display: none; }
.pk-ask > summary:hover { background: var(--surface-2); }
.pk-join-links .pk-ask > summary {
    min-height: 0; padding: 0; border: 0; border-radius: 0; background: none;
    color: var(--primary); gap: 6px;
}
.pk-join-links .pk-ask > summary:hover { background: none; }
.pk-ask > div {
    position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; width: 280px; padding: 14px;
    background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-1);
}
.pk-ask p { margin: 0 0 12px; font-size: 14px; line-height: 1.4; }
.pk-ask .btn { width: 100%; }
.pk-reschedule h3 { margin: 18px 0 10px; }
.pk-reschedule h3:first-child { margin-top: 0; }
.pk-reschedule-now { display: flex; flex-direction: column; gap: 4px; margin: 0; }
.pk-reschedule .pk-days, .pk-reschedule .slots { display: flex; flex-wrap: wrap; gap: 8px; }
.pk-reschedule .slot { min-height: 44px; min-width: 88px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); font: inherit; font-weight: 650; cursor: pointer; }
.pk-reschedule .slot.sel { background: var(--primary-tint); color: var(--primary); box-shadow: inset 0 0 0 2px var(--primary); }
.pk-reschedule-acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.pk-more { position: relative; margin-left: auto; }
.pk-more summary { list-style: none; cursor: pointer; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 8px; color: var(--ink-2); }
.pk-more summary::-webkit-details-marker { display: none; }
.pk-more summary:hover { background: var(--surface-2); }
.pk-more div { position: absolute; right: 0; top: 36px; z-index: 3; min-width: 140px; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-1); display: flex; flex-direction: column; }
.pk-more a { padding: 8px 10px; border-radius: 8px; color: var(--ink); font-weight: 600; font-size: 14px; text-decoration: none; }
.pk-more a:hover { background: var(--primary-tint); }
.pk-adddoc { width: 100%; min-height: 48px; margin-top: 12px; border: 1.5px dashed #B9C9E4; border-radius: 12px; background: var(--surface); color: var(--primary); font: inherit; font-weight: 650; font-size: 15px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; }
.pk-adddoc:hover { background: var(--primary-tint); }
.pk-review .page-head { align-items: center; margin-bottom: 8px; }
.pk-review-decide { display: flex; gap: 10px; flex: none; }
.pk-review-wait { margin: 12px 0 0; }
.pk-review .page-head p { margin: 6px 0 0; max-width: 460px; text-align: right; color: var(--ink-2); }
.pk-review-top { display: grid; grid-template-columns: minmax(220px, 1.4fr) minmax(180px, .8fr) auto; gap: 18px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; margin-top: 16px; }
.pk-review-top .face { width: 64px; height: 64px; }
.pk-review-top h2 { margin: 0; font-size: 18px; }
.pk-review-state, .pk-review-pay { display: flex; align-items: center; gap: 12px; }
.pk-review-state > .i, .pk-review-pay > .i { width: 42px; height: 42px; border-radius: 12px; background: #E7F8EF; color: #059669; display: flex; align-items: center; justify-content: center; }
.pk-review-state b, .pk-review-pay b { display: block; }
.pk-review-state span, .pk-review-pay span { display: block; color: var(--ink-2); font-size: 13px; }
.pk-review-pay em { margin-left: 8px; background: #E7F8EF; color: #059669; border-radius: 999px; padding: 4px 10px; font-style: normal; font-weight: 700; font-size: 13px; }
.pk-steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 22px 0; padding: 0; }
.pk-steps li { position: relative; text-align: center; padding: 0 8px; }
.pk-steps .dot { width: 28px; height: 28px; border-radius: 50%; margin: 0 auto 8px; display: flex; align-items: center; justify-content: center; background: var(--surface); border: 2px solid #D7E4F4; color: #8AA0C4; position: relative; z-index: 1; }
.pk-steps .done .dot { background: #059669; border-color: #059669; color: #fff; }
.pk-steps .now .dot { background: #059669; border-color: #059669; color: #fff; }
.pk-steps .now .dot i { width: 8px; height: 8px; border-radius: 50%; background: var(--surface); }
.pk-steps li:not(:last-child)::after { content: ""; position: absolute; top: 13px; left: calc(50% + 18px); right: calc(-50% + 18px); height: 3px; background: #E2E8F0; }
.pk-steps .done:not(:last-child)::after { background: #059669; }
.pk-steps b, .pk-steps span { display: block; }
.pk-steps span { color: var(--ink-2); font-size: 13px; }
.pk-review-grid { display: grid; grid-template-columns: minmax(240px, .68fr) minmax(0, 1.45fr); gap: 16px; align-items: start; }
.pk-review-grid > *, .pk-booked-bot > * { min-width: 0; }
.pk-review-h, .pk-review-file, .pk-review-thread article, .pk-review-compose { display: flex; align-items: center; gap: 12px; }
.pk-review-h { justify-content: space-between; margin-bottom: 12px; }
.pk-review-h h2, .pk-review-chat > h2 { margin: 0; font-size: 18px; }
.pk-review-chat > h2 { margin-bottom: 12px; }
.pk-review-file { padding: 12px 0; border-top: 1px solid var(--line); min-width: 0; }
.pk-review-file .i { width: 36px; height: 36px; border-radius: 10px; background: var(--surface-2); color: var(--ink-2); display: flex; align-items: center; justify-content: center; flex: none; }
.pk-review-file > div { flex: 1; min-width: 0; }
.pk-review-file b, .pk-review-file span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pk-review-file span { color: var(--ink-2); font-size: 13px; }
.pk-review-file > a { flex: none; }
.pk-review-thread { display: flex; flex-direction: column; gap: 14px; max-height: 360px; overflow-y: auto; overflow-anchor: none; }
.pk-review-thread article { align-items: flex-start; }
.pk-review-thread article > div { min-width: 0; }
.pk-review-thread article .face { width: 36px; height: 36px; font-size: 12px; background-size: cover; background-position: center; }
.pk-review-thread header { display: flex; gap: 8px; align-items: baseline; }
.pk-review-thread time, .pk-review-thread .muted { color: var(--ink-2); font-size: 13px; }
.pk-review-thread p { margin: 4px 0 0; background: #F4F7FB; border-radius: 12px; padding: 10px 12px; }
.pk-review-links { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin-top: 8px; }
.pk-review-links a { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); font-weight: 650; text-decoration: none; }
.pk-review-links a .i { flex: none; }
.pk-review-thread article.mine { flex-direction: row-reverse; justify-content: flex-start; }
.pk-review-thread article.mine header { justify-content: flex-end; }
.pk-review-thread article.mine header time { order: 1; }
.pk-review-thread article.mine header b { order: 2; }
.pk-review-thread article.mine p { background: #E7F8EF; }
.pk-review-thread article.mine .pk-review-links { align-items: flex-end; }
.pk-review-compose { margin-top: 14px; }
.pk-review-compose .input { flex: 1; height: 44px; }
@media (max-width: 900px) {
  .pk-review-top, .pk-review-grid { grid-template-columns: 1fr; }
  .pk-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 18px; }
  .pk-steps li:nth-child(2)::after { display: none; }
}
@media (max-width: 700px) {
  #wizard .pk-comms { grid-template-columns: 1fr; }
}
.pk-avail-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.pk-avail-head h1 { margin: 0; }
.pk-avail-head p { margin: 6px 0 0; color: var(--ink-2); }
.pk-avail-save { display: flex; align-items: center; gap: 12px; }
#avail-status { font-size: 14px; font-weight: 650; }
#avail-status.ok { color: var(--ok); }
#avail-status.bad { color: #A8221B; }
.pk-avail-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .85fr); gap: 18px; align-items: start; }
.pk-avail-main, .pk-avail-side { display: flex; flex-direction: column; gap: 16px; }
.pk-offer-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pk-offer-card h2 { font-size: 16px; }
.pk-offer-card .ic-bubble { width: 40px; height: 40px; border-radius: 12px; background: var(--primary-tint); color: var(--primary); display: flex; align-items: center; justify-content: center; }
.pk-offer-card.exam .ic-bubble { background: #E7F8EF; color: #059669; }
.pk-check { display: flex; align-items: center; gap: 8px; margin-top: 4px; color: var(--ink); font-weight: 650; font-size: 14px; }
.pk-check input { width: 18px; height: 18px; accent-color: #2563EB; }
.pk-offer-card.exam .pk-check input { accent-color: #059669; }
.pk-avail .pk-comms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.pk-avail .pk-comm { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 8px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); font: inherit; cursor: pointer; }
.pk-avail .pk-comm .i { color: var(--primary); }
.pk-avail .pk-comm b { font-size: 14px; font-weight: 650; }
.pk-avail .pk-comm.on { border-color: var(--primary); background: var(--primary-tint); box-shadow: 0 0 0 3px rgba(37, 99, 235, .14); }
.pk-avail-card h2 { margin: 0 0 6px; font-size: 18px; }
.pk-offer-card h2 { font-size: 16px; }
.pk-day { display: flex; flex-direction: column; gap: 8px; min-height: 56px; padding: 12px 0; border-top: 1px solid var(--line); }
.pk-day-top { display: flex; align-items: center; gap: 12px; }
.pk-dayname { width: 42px; font-weight: 700; }
.pk-ranges { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.pk-off { color: var(--ink-2); }
.pk-day:has(input:checked) .pk-off { display: none; }
.pk-day:not(:has(input:checked)) .pk-ranges,
.pk-day:not(:has(input:checked)) .pk-add { display: none; }
.pk-range { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 12px; padding: 6px 6px 6px 10px; background: var(--surface); }
.pk-time { width: 148px; min-width: 148px; height: 40px; border: 1px solid var(--line); border-radius: 10px; padding: 0 8px; background: var(--surface); font: inherit; color: var(--ink); }
.pk-date, .pk-select { height: 42px; width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; font: inherit; color: var(--ink); background: var(--surface); }
.pk-date { width: 168px; }
.pk-day .pk-add { width: auto; height: 36px; margin-left: auto; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font: inherit; font-size: 14px; font-weight: 650; color: var(--ink); }
.pk-switch { position: relative; display: inline-block; width: 42px; height: 24px; flex: none; }
.pk-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.pk-switch span { position: absolute; inset: 0; background: #D5DEEC; border-radius: 999px; cursor: pointer; }
.pk-switch span:before { content: ""; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: transform .15s; }
.pk-switch input:checked + span { background: #2563EB; }
.pk-switch.exam input:checked + span { background: #059669; }
.pk-switch input:checked + span:before { transform: translateX(18px); }
.pk-add, .pk-x { width: 28px; height: 28px; border: 0; background: transparent; color: var(--ink-2); font-size: 20px; line-height: 1; cursor: pointer; }
.pk-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 8px; }
.pk-fields label { display: flex; flex-direction: column; gap: 6px; font-weight: 650; font-size: 14px; }
.pk-price-card h3 { margin: 16px 0 0; font-size: 15px; }
.pk-price-note { margin: 4px 0 0; color: var(--ink-2); font-size: 13px; font-weight: 500; }
.pk-price-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; margin-top: 12px; }
.pk-price-pair h3 { margin: 0 0 6px; font-size: 14px; }
.pk-price-line { display: flex; align-items: center; gap: 6px; width: fit-content; max-width: 100%; margin-top: 8px; }
.pk-price-pair .pk-price-line { width: 100%; margin-top: 0; }
.pk-price-card .pk-price-line > .pk-select { width: 72px; height: 36px; flex: none; padding: 0 8px; }
.pk-price-card .pk-price-line > select.pk-select { width: 76px; }
.pk-price-pair .pk-price-line > .pk-select { width: auto; flex: 1 1 0; min-width: 0; }
.pk-price-pair .pk-price-line > select.pk-select { width: 72px; flex: 0 0 72px; }
.pk-price-card .pk-fields.pk-compact { display: flex; flex-wrap: nowrap; align-items: flex-end; gap: 8px; width: fit-content; max-width: 100%; }
.pk-price-card .pk-fields.pk-compact .pk-select { width: 128px; flex: none; }
.pk-response { align-items: end; }
.pk-type { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.pk-avail-card .pk-type:first-of-type { border-top: 0; padding-top: 6px; }
.pk-type b, .pk-type span { display: block; }
.pk-type span { color: var(--ink-2); font-weight: 400; font-size: 14px; }
.pk-ex { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.pk-ex:first-child { border-top: 0; }
.pk-ex-edit { flex-wrap: nowrap; align-items: flex-end; }
.pk-ex-edit > label { flex: 1 1 0; min-width: 0; }
.pk-ex-edit label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 650; color: var(--ink-2); }
.pk-ex-edit .pk-date,
.pk-ex-edit .pk-time { width: 100%; min-width: 0; }
.pk-ex-edit.is-whole .pk-ex-time { display: none; }
.pk-ex-whole { flex: 0 0 auto !important; flex-direction: column !important; align-items: center; justify-content: flex-end; gap: 6px; min-height: 0; margin-top: 0; color: var(--ink); white-space: nowrap; }
.pk-ex-edit .pk-x { flex: none; margin-bottom: 7px; }
@media (max-width: 640px) {
  .pk-ex-edit { flex-wrap: wrap; }
  .pk-ex-edit > label { flex: 1 1 140px; }
}
.pk-ex-mid { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.pk-ex-when { font-weight: 650; }
.pk-tag { border: 0; background: #F1F5F9; color: #475569; border-radius: 999px; padding: 6px 12px; font: inherit; font-weight: 650; cursor: pointer; }
.pk-link { border: 0; background: transparent; color: var(--ink-2); font: inherit; font-weight: 650; cursor: pointer; }
.pk-add-date { width: 100%; margin-top: 8px; height: 42px; border: 1px dashed var(--line-strong); border-radius: 12px; background: var(--surface); font: inherit; font-weight: 650; cursor: pointer; color: var(--ink); }
.pk-avail-foot { margin: 0 4px; color: var(--ink-2); font-size: 14px; }
@media (max-width: 980px) {
  .pk-avail-grid, .pk-fields, .pk-offer-row, .pk-avail .pk-comms { grid-template-columns: 1fr; }
  .pk-price-card .pk-price-line,
  .pk-price-card .pk-fields.pk-compact { display: flex; flex-wrap: nowrap; }
  .pk-avail-head { flex-wrap: wrap; }
}
.pk-report { max-width: 920px; margin: 0 auto; }
.pk-report-chrome { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.pk-report-back { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; }
#reports-list .meta { display: flex; flex-wrap: wrap; gap: 8px 12px; margin-top: 6px; color: var(--ink-2); font-size: 13px; font-weight: 500; }
#reports-list .meta span { display: inline-flex; align-items: center; gap: 6px; }
#reports-list .meta .i { font-size: 13px; }
#reports-list .pk-report-note { margin: 8px 0 0; color: var(--ink-2); font-size: 14px; line-height: 1.45; }
.pk-report .notice { margin-bottom: 14px; }
.pk-report .sheet { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-2); overflow: hidden; }
.pk-report .band { height: 8px; background: #2563EB; }
.pk-report .pad { padding: 28px 36px 24px; }
.pk-report .head { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; }
.pk-report .brand { display: flex; align-items: center; gap: 12px; }
.pk-report .brand svg { width: 46px; height: 46px; flex: none; }
.pk-report .brand strong { display: block; font-size: 18px; font-weight: 700; }
.pk-report .brand span { display: block; color: var(--ink-2); font-size: 13px; font-weight: 600; }
.pk-report .meta { text-align: right; }
.pk-report .meta .no { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.pk-report .meta .date { margin-top: 2px; font-size: 14px; font-weight: 650; }
.pk-report .pill { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 4px 10px; border-radius: 999px; background: #E8F1FF; color: #1D4ED8; font-size: 13px; font-weight: 700; }
.pk-report .pill i { width: 8px; height: 8px; border-radius: 50%; background: #2563EB; }
.pk-report h1 { margin: 26px 0 6px; font-size: 28px; line-height: 1.2; font-weight: 700; }
.pk-report .lead { margin: 0 0 22px; color: var(--ink-2); font-size: 15px; }
.pk-report .who { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 22px; }
.pk-report .who article, .pk-report .block { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.pk-report .who article { padding: 14px 16px; }
.pk-report .k { display: block; margin-bottom: 4px; color: var(--ink-2); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.pk-report .who b { display: block; font-size: 17px; font-weight: 700; }
.pk-report .who small { display: block; margin-top: 2px; color: var(--ink-2); font-size: 14px; }
.pk-report .dates { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: -6px 0 22px; color: var(--ink-2); font-size: 14px; }
.pk-report .dates b { color: var(--ink); font-weight: 700; }
.pk-report h2 { margin: 0 0 8px; font-size: 16px; font-weight: 700; }
.pk-report .block { padding: 16px 18px; margin-bottom: 14px; }
.pk-report .quote, .pk-report .prose p, .pk-report .close p, .pk-report .next p { margin: 0; font-size: 15.5px; white-space: pre-wrap; }
.pk-report .split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.pk-report .close { background: #E8F1FF; border-color: transparent; }
.pk-report .close h2, .pk-report .next h2 { color: #1D4ED8; }
.pk-report .next { background: #E8F1FF; border-color: transparent; }
.pk-report textarea { width: 100%; min-height: 140px; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font: inherit; color: var(--ink); background: var(--surface); resize: vertical; }
.pk-report .limit { margin-bottom: 22px; padding: 12px 14px; border-radius: 12px; background: #F4F7FB; color: var(--ink-2); font-size: 13.5px; }
.pk-report .sign { display: flex; justify-content: space-between; gap: 24px; align-items: flex-end; padding-top: 8px; }
.pk-report .who-doc b { display: block; font-size: 16px; }
.pk-report .who-doc span { color: var(--ink-2); font-size: 14px; }
.pk-report .line { width: 220px; border-top: 1.5px solid var(--ink); padding-top: 6px; text-align: right; font-size: 13px; color: var(--ink-2); }
.pk-report .foot { display: flex; justify-content: space-between; gap: 16px; margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 12.5px; }
@media (max-width: 720px) {
  .pk-report .pad { padding: 22px 18px 18px; }
  .pk-report .head, .pk-report-chrome, .pk-report .sign, .pk-report .foot { flex-direction: column; align-items: flex-start; }
  .pk-report .meta, .pk-report .line { text-align: left; }
  .pk-report .who, .pk-report .split { grid-template-columns: 1fr; }
  .pk-report h1 { font-size: 24px; }
}
@media print {
  @page { size: A4 portrait; margin: 8mm; }
  .sp-topbar, .pk-report-chrome, .pk-report .notice, .sp-help-fab, .sp-help-dialog { display: none !important; }
  html, body, .app, .page { display: block !important; min-height: 0 !important; height: auto !important; background: #fff !important; }
  .page { padding: 0 !important; margin: 0 !important; }
  .pk-report, .pk-report form, .pk-report .sheet, .pk-report .pad { max-width: none; margin: 0; height: auto; min-height: 0; overflow: visible; }
  .pk-report .sheet { border: 0; border-radius: 0; box-shadow: none; }
  .pk-report .pad { padding: 8px 16px 4px; }
  .pk-report h1 { margin: 10px 0 2px; }
  .pk-report .lead { margin-bottom: 8px; }
  .pk-report .who { margin-bottom: 8px; }
  .pk-report .who article { padding: 8px 12px; }
  .pk-report .dates { margin-bottom: 8px; }
  .pk-report .block { padding: 8px 12px; margin-bottom: 8px; }
  .pk-report .split { margin-bottom: 8px; }
  .pk-report .limit { margin-bottom: 8px; padding: 8px 10px; }
  .pk-report .sign {
    display: block; padding-top: 2px; overflow: hidden;
    break-inside: avoid; page-break-inside: avoid;
  }
  .pk-report .who-doc { float: left; }
  .pk-report .line { float: right; }
  .pk-report .foot {
    display: block; margin-top: 10px; padding-top: 8px; overflow: hidden;
    break-inside: avoid; page-break-inside: avoid;
  }
  .pk-report .foot span:first-child { float: left; }
  .pk-report .foot span:last-child { float: right; }
  .pk-report, .pk-report .band, .pk-report .pill, .pk-report .close, .pk-report .next, .pk-report .limit, .pk-report .brand svg { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
@media (max-width: 900px) {
  .pk-booked-top, .pk-booked-bot, .pk-visit-meta, .pk-visit-pay { grid-template-columns: 1fr; }
  #sent .pk-sent-row { grid-template-columns: 1fr; gap: 4px; }
  .pk-visit-pay > div + div { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 12px; }
  .pk-dev { flex-direction: column; align-items: stretch; }
}
.pk-admin-counts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 18px 0 22px; }
.pk-admin-counts a { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; color: inherit; }
.pk-admin-counts b { display: block; font-size: 28px; line-height: 1.1; }
.pk-admin-counts span { color: var(--ink-2); font-size: 14px; }
@media (max-width: 800px) {
  .pk-admin-counts { grid-template-columns: 1fr 1fr; }
}
html.dark { color-scheme: dark; }
html.dark .pk-service .ic-bubble.avail { background: #3A2A12; color: #F5C16C; }
html.dark .pk-stat { background: var(--primary-tint); }
html.dark .pk-service.doc .pk-stat { background: #12352A; }
html.dark .notice.act, html.dark .decide { background: #3A2E14; color: #F5D48A; border-color: #8A6A20; }
html.dark .notice.act, html.dark .decide, html.dark .decide b, html.dark .decide p { color: #F5D48A; }
html.dark .emerg-ic { background: #3A2A12; color: #F5C16C; }
html.dark .pk-steps .dot { border-color: var(--line); color: var(--ink-2); }
html.dark .pk-review-thread p, html.dark .pk-report .limit { background: var(--surface-2); }
html.dark .pk-report .close, html.dark .pk-report .next, html.dark .pk-report .pill { background: var(--primary-tint); color: var(--ink); }
html.dark .pk-report .close h2, html.dark .pk-report .next h2 { color: var(--ink); }
html.dark .pk-switch span { background: #3A4C72; }
html.dark .pk-adddoc { border-color: var(--line-strong); }
html.dark #sent .status.wait { background: #3A2E14; color: #F5D48A; }
html.dark .pk-stop { border-color: #6B3030; }
html.dark .pk-stop summary, html.dark .pk-stop summary .i { color: #F0A8A4; }
html.dark .notice.info, html.dark .card.tint, html.dark .pill.blue, html.dark .pk-banner,
html.dark .notice.ok, html.dark .status.ok { border-color: var(--line); }
html.dark body.accent-exam { --primary-tint: #12352A; }
html.dark .input, html.dark .textarea, html.dark select, html.dark .pk-time, html.dark .pk-date, html.dark .pk-select { color-scheme: dark; }

/* Phone layout. These rules sit last so they win over the desktop grids. */
@media (max-width: 900px) {
  .app, .hero-l, .band, .band .in, .pub-top, .pub-top .in, .pub-foot, .pub-foot .in { min-width: 0; max-width: 100%; }
  .hero-l { display: block; width: 100%; padding: 24px 16px 32px; }
  .hero-l .photo { width: 100%; max-width: 100%; margin-top: 18px; }
  .hero-l .photo .float { left: 12px; right: 12px; }
  .hero-l .photo .float > div { min-width: 0; overflow-wrap: anywhere; }
  .how, .sp-split, .states, .dgrid, .modes, .sizes, .detail-grid, .page .detail-grid,
  .acc-grid, .page .acc-grid,   .room-main, .room-main.advice, .compare, .auth {
    grid-template-columns: 1fr;
  }
  .auth { display: flex; flex-direction: column; min-height: 0; }
  .auth .side-r { order: -1; }
  .decide { grid-template-columns: 1fr; }
  .pk-report .pad { padding: 22px 16px 18px; }
  .pk-avail-grid, .pk-avail-main, .pk-avail-side, .pk-avail-card, .pk-day, .pk-ranges { min-width: 0; max-width: 100%; }
  #wizard .pk-time, .pk-book .pk-time { width: 0; min-width: 0; flex: 1 1 0; }
  .pk-avail .pk-range { display: flex; width: 100%; max-width: 100%; box-sizing: border-box; flex-wrap: nowrap; }
  .pk-avail .pk-time { width: auto; min-width: 0; flex: 1 1 0; height: 44px; padding: 0 2px 0 8px; font-size: 16px; }
  .pk-avail .pk-ex-edit { flex-wrap: wrap; }
  .pk-avail .pk-ex-edit > label { flex: 1 1 100%; }
  .pk-avail .pk-ex-edit .pk-time,
  .pk-avail .pk-ex-edit .pk-date { width: 100%; min-width: 0; flex: none; height: 44px; font-size: 16px; }
  .pk-date { width: 100%; max-width: 100%; }
  .page, .page > *, .detail-grid, .page .detail-grid, .pk-split, .pk-booked, .pk-booked-top, .pk-booked-bot, .card, .pk-prep { min-width: 0; max-width: 100%; }
  .pk-docrow .tx b, .pk-docrow .tx span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  #wizard .pk-split > *, #wizard .pk-time-card, #wizard .pk-pills, #wizard .slots,
  .pk-book .pk-split > *, .pk-book .pk-time-card, .pk-book .pk-pills, .pk-book .slots {
    min-width: 0; max-width: 100%;
  }
  #wizard .pk-pills, #wizard .slots, .pk-book .pk-pills, .pk-book .slots { width: 100%; }
  #wizard .pk-pill, .pk-book .pk-pill { min-width: 68px; height: 54px; min-height: 54px; padding: 0 8px; font-size: 13px; }
  #wizard .slot, #wizard .slots button.slot, .pk-book .slot, .pk-book .slots button.slot {
    min-width: 68px; width: auto; height: 40px; min-height: 40px; padding: 0 10px; font-size: 14px;
  }
  #wizard, #stepper-wrap, #wizard .stepper { width: 100%; max-width: 100%; min-width: 0; }
  #wizard .stepper { overflow: hidden; }
  #wizard .stepper li { min-width: 0; flex: 1 1 0; gap: 4px; font-size: 12px; overflow: hidden; }
  #wizard .stepper li::after { min-width: 0; flex: 0 1 14px; margin-right: 6px; }
  #wizard .stepper .dot { width: 22px; height: 22px; min-width: 22px; flex: none; font-size: 11px; }
  .sp-split .card > .btn {
    display: flex; box-sizing: border-box; width: 100%; max-width: 100%; height: auto; min-height: 48px;
    padding: 10px 14px; white-space: normal; line-height: 1.25;
  }
  .sp-split .card > .btn > span { min-width: 0; text-align: center; }
}

/* Front page on a phone: smaller header and hero buttons. Desktop is not touched. */
@media (max-width: 640px) {
  .pub-top .in { padding: 10px 14px; gap: 8px; }
  .pub-top .logo { font-size: 1.05rem; gap: 8px; min-width: 0; }
  .pub-top .logo svg { width: 34px; height: 34px; }
  .pub-top nav { flex-wrap: wrap; gap: 6px 8px; align-items: center; margin-left: 0; width: 100%; }
  .pub-top nav a:not(.btn) { height: 34px; padding: 0 8px; font-size: .85rem; }
  .pub-lang summary { height: 34px; padding: 0 10px; font-size: .85rem; gap: 6px; }
  .pub-lang .flag { width: 18px; height: 12px; }
  .pub-top nav .btn { flex: 1 1 auto; min-width: 0; min-height: 36px; padding: 0 12px; font-size: .88rem; border-width: 1.5px; margin-left: 0 !important; }
  .hero-l { padding: 18px 14px 26px; }
  .hero-l h1 { font-size: 1.9rem; }
  .hero-l .lead { font-size: 1rem; margin-top: 12px; }
  .hero-l .ctas { gap: 8px; margin-top: 20px; }
  .hero-l .ctas .btn, .hero-l .ctas .btn.lg { flex: 1 1 100%; min-height: 44px; padding: 0 16px; font-size: .95rem; gap: 8px; }
}
