/* Pragma Medical Institute — appointment portal theme (logo red #ee3239, blue #3f6db5) */
@font-face { font-family: "Mukta"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/mukta-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Mukta"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/mukta-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Mukta"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/mukta-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Mukta"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/mukta-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Mukta"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/mukta-devanagari-400-normal.woff2") format("woff2"); unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF, U+11B00-11B09; }
@font-face { font-family: "Mukta"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/mukta-devanagari-600-normal.woff2") format("woff2"); unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF, U+11B00-11B09; }
@font-face { font-family: "Mukta"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/mukta-devanagari-700-normal.woff2") format("woff2"); unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF, U+11B00-11B09; }
@font-face { font-family: "Baloo 2"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/baloo-2-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Baloo 2"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/baloo-2-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Baloo 2"; font-style: normal; font-weight: 800; font-display: swap; src: url("fonts/baloo-2-latin-800-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Baloo 2"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/baloo-2-devanagari-700-normal.woff2") format("woff2"); unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF, U+11B00-11B09; }

:root {
  --teal: #23477f;
  --teal-2: #3f6db5;
  --teal-3: #142c57;
  --aqua: #5b8fd6;
  --sky: #e6ecf7;
  --mist: #f4f6fa;
  --hot: #c8202b;
  --hot-2: #e8424a;
  --gold: #f4b63c;
  --green: #1fa855;
  --green-dark: #137a3c;
  --red: #c4321b;
  --amber: #a86a00;
  --ink: #121c2e;
  --muted: #4f5b70;
  --soft: #7f8a9c;
  --line: #d8e0ee;
  --line-2: #e9eef6;
  --white: #fff;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 18px 50px -18px rgba(35, 71, 127, .28);
  --shadow-sm: 0 6px 20px -10px rgba(35, 71, 127, .25);
  --hot-grad: linear-gradient(135deg, #c8202b 0%, #e8424a 100%);
  --teal-grad: linear-gradient(135deg, #142c57 0%, #23477f 55%, #3f6db5 100%);
  --display: "Baloo 2", "Mukta", system-ui, sans-serif;
  --body: "Mukta", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; min-width: 300px; background: var(--mist); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: var(--teal-2); text-underline-offset: 3px; }
a:hover { color: var(--hot); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); line-height: 1.15; color: var(--teal); letter-spacing: -.01em; }
p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid rgba(200, 32, 43, .45); outline-offset: 2px; }
.wrap { width: min(1200px, calc(100% - 40px)); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.center-text { text-align: center; }
.center-text .ic { display: inline-block; vertical-align: -2px; }
.req { color: var(--hot); font-weight: 700; }
.opt { color: var(--soft); font-weight: 500; font-size: .85em; }
.eyebrow { margin-bottom: 6px; color: var(--hot); font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.h2 { font-size: 1.6rem; }
.honeypot { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Icons */
.ic { width: 22px; height: 22px; flex: none; }
.ic--sm { width: 18px; height: 18px; }
.ic--xs { width: 15px; height: 15px; }
.ic--lg { width: 28px; height: 28px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border: 1.5px solid transparent; border-radius: 12px; background: var(--white); color: var(--teal); font-family: var(--body); font-size: .95rem; font-weight: 700; line-height: 1.1; text-decoration: none; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease, border-color .15s ease; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn--pill { border-radius: 999px; }
.btn--hot { background: var(--hot-grad); color: #fff; box-shadow: 0 10px 22px -10px rgba(200, 32, 43, .75); }
.btn--hot:hover { color: #fff; box-shadow: 0 14px 26px -10px rgba(200, 32, 43, .85); }
.btn--teal { background: var(--teal); color: #fff; }
.btn--teal:hover { background: var(--teal-2); color: #fff; }
.btn--line { border-color: var(--line); background: #fff; color: var(--teal); }
.btn--line:hover { border-color: var(--teal-2); color: var(--teal); }
.btn--ghost { background: var(--sky); color: var(--teal); }
.btn--ghost:hover { background: #d3dff5; color: var(--teal); }
.btn--wa { background: #e7f8ee; color: var(--green-dark); border-color: #bfe8cf; }
.btn--wa:hover { background: #d6f3e2; color: var(--green-dark); }
.btn--danger { border-color: #f2c6bd; background: #fff4f1; color: var(--red); }
.btn--block { width: 100%; }
.btn--lg { min-height: 56px; font-size: 1.08rem; }
.btn--sm { min-height: 36px; padding: 7px 12px; border-radius: 10px; font-size: .84rem; }
.btn--xs { min-height: 30px; padding: 5px 10px; border-radius: 8px; font-size: .78rem; gap: 6px; }
.btn-round { display: inline-grid; width: 46px; height: 46px; place-items: center; border-radius: 50%; text-decoration: none; transition: transform .15s ease; }
.btn-round:hover { transform: translateY(-1px); }
.btn-round--wa { border: 1.5px solid #bfe8cf; background: #e7f8ee; color: var(--green-dark); }

/* Notices */
.notice { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 18px; padding: 13px 15px; border: 1px solid #cfdaec; border-radius: var(--radius-sm); background: var(--sky); color: var(--teal); font-size: .93rem; line-height: 1.5; }
.notice .ic { margin-top: 1px; }
.notice a { color: inherit; font-weight: 700; }
.notice--success { border-color: #b9e5cb; background: #ecf9f1; color: var(--green-dark); }
.notice--error { border-color: #f3c6bc; background: #fff2ee; color: var(--red); }
.notice--warning { border-color: #f3dfb1; background: #fff8e6; color: var(--amber); }
.alert-box, .tip-box { display: flex; align-items: flex-start; gap: 11px; padding: 14px 16px; border-radius: var(--radius-sm); font-size: .93rem; line-height: 1.5; }
.alert-box { border: 1px solid #f6cbbf; border-left: 5px solid var(--hot); background: #fff4f0; color: #7a2f1d; }
.alert-box .ic { color: var(--hot); margin-top: 2px; }
.alert-box a { color: var(--hot); font-weight: 800; white-space: nowrap; }
.alert-box--top { margin-bottom: 24px; }
.tip-box { border: 1px solid #cfdaec; background: var(--sky); color: var(--muted); }
.tip-box .ic { color: var(--teal-2); margin-top: 2px; }
.tip-box strong { display: block; color: var(--teal); }
.tip-box a { font-weight: 700; }

/* ---------- Public site ---------- */
.topstrip { background: var(--teal); color: #fff; font-size: .86rem; font-weight: 600; }
.topstrip-inner { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 36px; }
.topstrip span, .topstrip a { display: inline-flex; align-items: center; gap: 7px; color: #fff; text-decoration: none; }
.topstrip .ic { color: var(--gold); }
.topstrip-right { gap: 18px !important; }
.site-head { position: sticky; top: 0; z-index: 30; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .96); backdrop-filter: saturate(1.4) blur(10px); }
.site-head-inner { display: flex; align-items: center; gap: 22px; min-height: 78px; }
.logo img { width: auto; height: 54px; }
.site-nav { display: flex; gap: 6px; margin-left: auto; }
.site-nav a { display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border-radius: 999px; color: var(--ink); font-weight: 600; text-decoration: none; }
.site-nav a:hover { background: var(--mist); color: var(--teal); }
.site-nav a.is-active { background: var(--sky); color: var(--teal); }
.head-cta { display: flex; align-items: center; gap: 10px; }

.hero { position: relative; overflow: hidden; padding: 56px 0 120px; background: var(--teal-grad); color: #fff; }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.hero::before { right: -120px; top: -160px; width: 460px; height: 460px; background: radial-gradient(circle, rgba(232, 66, 74, .35), transparent 65%); }
.hero::after { left: -140px; bottom: -220px; width: 520px; height: 520px; background: radial-gradient(circle, rgba(91, 143, 214, .28), transparent 65%); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.4fr .8fr; gap: 40px; align-items: center; }
.kicker { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 12px; padding: 6px 12px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px; background: rgba(255, 255, 255, .08); color: #ffd9cd; font-size: .85rem; font-weight: 700; }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; line-height: 1.04; }
.hero-lead { max-width: 620px; margin-top: 14px; color: #d6e1f3; font-size: 1.1rem; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 0; padding: 0; list-style: none; }
.chips li { display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 999px; background: rgba(255, 255, 255, .1); color: #fff; font-size: .9rem; font-weight: 600; }
.chips .ic { color: var(--gold); }
.hero-card { display: grid; gap: 12px; padding: 24px; border-radius: 22px; background: #fff; color: var(--ink); box-shadow: 0 30px 60px -25px rgba(0, 0, 0, .45); }
.hero-card img { width: 160px; height: auto; margin-bottom: 4px; }
.hero-card strong { display: block; color: var(--teal); font-family: var(--display); font-size: 1.25rem; }
.hero-card span { color: var(--muted); font-size: .92rem; }

.page-pad { padding: 40px 0 70px; }
.page-pad--overlap { margin-top: -86px; position: relative; z-index: 2; padding-top: 0; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.card { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.card--narrow { max-width: 860px; margin: 0 auto; padding: clamp(20px, 4vw, 40px); }
.form-card { padding: clamp(18px, 3.5vw, 36px); }
.card-head { margin-bottom: 22px; }
.card-head h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); font-weight: 800; }
.card-head p.muted { margin-top: 4px; }

.form { display: grid; gap: 20px; }
.step { display: grid; gap: 16px; min-width: 0; margin: 0; padding: 20px; border: 1px solid var(--line-2); border-radius: 16px; background: linear-gradient(180deg, #fbfcfe, #fff); }
.step-title { display: inline-flex; align-items: center; gap: 10px; padding: 0 6px; color: var(--teal); font-family: var(--display); font-size: 1.2rem; font-weight: 700; }
.step-no { display: inline-grid; width: 32px; height: 32px; place-items: center; border-radius: 10px; background: var(--hot-grad); color: #fff; font-family: var(--body); font-size: .95rem; font-weight: 800; box-shadow: 0 6px 14px -6px rgba(200, 32, 43, .7); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: flex; flex-wrap: wrap; align-items: baseline; gap: 7px 4px; color: var(--ink); font-size: .95rem; font-weight: 600; }
.field > .control, .field > input, .field > select, .field > textarea, .field > .segmented { flex: 1 1 100%; }
.field > .char-count { flex: 1 1 100%; text-align: right; }
.control { position: relative; display: block; }
.control > .ic { position: absolute; top: 50%; left: 14px; color: var(--teal-2); transform: translateY(-50%); pointer-events: none; }
.control > input, .control > select { padding-left: 44px !important; }
.field input:not([type=checkbox]):not([type=radio]), .field select, .field textarea,
.input, .toolbar input, .toolbar select, .row-form input:not([type=checkbox]), .row-form select, .row-form textarea, .stack input:not([type=checkbox]), .stack select, .stack textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid #cbd4e4; border-radius: 12px; background: #fff; color: var(--ink); font-size: 1rem; font-weight: 500; outline: 0; transition: border-color .15s ease, box-shadow .15s ease; appearance: none; -webkit-appearance: none;
}
.field select, .toolbar select, .row-form select, .stack select { padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%230b5566' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.field select:disabled { background-color: #f4f6fa; color: var(--soft); }
.field textarea, .stack textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus, .toolbar input:focus, .toolbar select:focus, .row-form input:focus, .row-form select:focus, .row-form textarea:focus, .stack input:focus, .stack select:focus, .stack textarea:focus { border-color: var(--teal-2); box-shadow: 0 0 0 4px rgba(63, 109, 181, .13); }
.field input::placeholder, .field textarea::placeholder { color: #98a3b5; }
.char-count { margin-top: -3px; color: var(--soft); font-size: .8rem; font-weight: 500; }

.doctor-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.doc { position: relative; display: block; cursor: pointer; }
.doc[hidden] { display: none; }
.dept-filter { margin: 0 0 14px; }
.doc input { position: absolute; opacity: 0; pointer-events: none; }
.doc-body { display: flex; align-items: center; gap: 13px; height: 100%; padding: 14px; border: 1.5px solid #d3dbe9; border-radius: 16px; background: #fff; transition: border-color .15s ease, box-shadow .15s ease, background .15s ease, transform .15s ease; }
.doc:hover .doc-body { border-color: #9cb1d4; transform: translateY(-1px); }
.doc-avatar { display: grid; width: 52px; height: 52px; flex: none; place-items: center; border-radius: 16px; background: var(--teal-grad); color: #fff; font-family: var(--display); font-size: 1.15rem; font-weight: 800; letter-spacing: .02em; }
.doc-avatar--any { background: var(--hot-grad); }
.doc-text { display: grid; gap: 2px; min-width: 0; }
.doc-text strong { color: var(--ink); font-size: 1.02rem; font-weight: 700; line-height: 1.25; }
.doc-text small { color: var(--muted); font-size: .82rem; line-height: 1.35; }
.doc-text em { justify-self: start; margin-top: 4px; padding: 2px 9px; border-radius: 999px; background: var(--sky); color: var(--teal); font-size: .76rem; font-style: normal; font-weight: 700; }
.doc-tick { display: grid; width: 24px; height: 24px; flex: none; margin-left: auto; place-items: center; border: 1.5px solid #c4cedf; border-radius: 50%; color: transparent; transition: all .15s ease; }
.doc input:checked + .doc-body { border-color: var(--hot); background: #fff7f4; box-shadow: 0 0 0 4px rgba(200, 32, 43, .12); }
.doc input:checked + .doc-body .doc-tick { border-color: var(--hot); background: var(--hot); color: #fff; }
.doc input:focus-visible + .doc-body { outline: 3px solid rgba(200, 32, 43, .45); outline-offset: 2px; }
.doc--any .doc-body { border-style: dashed; background: #fbfcfe; }

.segmented { display: flex; flex-wrap: wrap; gap: 8px; }
.seg { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: inline-flex; align-items: center; min-height: 44px; padding: 9px 16px; border: 1.5px solid #cbd4e4; border-radius: 999px; background: #fff; color: var(--ink); font-size: .93rem; font-weight: 600; transition: all .15s ease; }
.seg:hover span { border-color: #9cb1d4; }
.seg input:checked + span { border-color: var(--teal); background: var(--teal); color: #fff; }
.seg input:focus-visible + span { outline: 3px solid rgba(200, 32, 43, .45); outline-offset: 2px; }

.check { display: flex; align-items: flex-start; gap: 11px; color: var(--muted); font-size: .94rem; font-weight: 500; line-height: 1.5; cursor: pointer; }
.check input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--hot); }
.check .ic { display: inline-block; vertical-align: -2px; color: var(--green-dark); }
.consent { display: grid; gap: 12px; padding: 16px; border-radius: 14px; background: var(--mist); }

.side { position: sticky; top: 100px; display: grid; gap: 18px; }
.side-card { padding: 24px; }
.side-card h3 { font-size: 1.4rem; font-weight: 800; }
.steps { display: grid; gap: 14px; margin: 16px 0 0; padding: 0; list-style: none; }
.steps li { display: flex; gap: 12px; }
.steps li > span { display: grid; width: 40px; height: 40px; flex: none; place-items: center; border-radius: 12px; background: var(--sky); color: var(--teal); }
.steps strong { display: block; color: var(--ink); font-size: .98rem; }
.steps small { color: var(--muted); font-size: .86rem; }
.side-card--teal { border: 0; background: var(--teal-grad); color: #d6e1f3; }
.side-card--teal h3 { margin-bottom: 14px; color: #fff; }
.side-line { display: flex; gap: 11px; margin-top: 12px; font-size: .92rem; line-height: 1.45; }
.side-line .ic { margin-top: 2px; color: var(--gold); }
.side-line a { color: #fff; font-weight: 700; font-size: 1.02rem; text-decoration: none; }

/* Thank-you */
.receipt { display: grid; gap: 20px; }
.success-hero { display: grid; justify-items: center; gap: 10px; padding: 8px 0 6px; text-align: center; }
.success-hero h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 800; }
.success-hero p { max-width: 560px; color: var(--muted); font-size: 1.05rem; }
.success-badge { display: grid; width: 74px; height: 74px; place-items: center; border-radius: 50%; background: linear-gradient(135deg, #1fa855, #36c46f); color: #fff; box-shadow: 0 0 0 10px #e3f6eb; }
.success-badge .ic { width: 38px; height: 38px; stroke-width: 2.6; }
.receipt-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line); }
.receipt-logo { width: 160px; height: auto; }
.ref-box { padding: 10px 16px; border-radius: 14px; background: var(--sky); text-align: right; }
.ref-box small { display: block; color: var(--muted); font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.ref-box strong { color: var(--teal); font-family: var(--display); font-size: 1.5rem; font-weight: 800; letter-spacing: .02em; }
.status-line { display: flex; align-items: center; gap: 9px; padding: 12px 15px; border-radius: 12px; font-size: .97rem; }
.status-line--wait { background: #fff8e6; color: var(--amber); }
.status-line--ok { background: #ecf9f1; color: var(--green-dark); }
.status-line--bad { background: #fff2ee; color: var(--red); }
.info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 0; }
.info-grid > div { padding: 14px 16px; border: 1px solid var(--line-2); border-radius: 14px; background: #fbfcfe; }
.info-grid dt { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.info-grid dt .ic { color: var(--teal-2); }
.info-grid dd { margin: 5px 0 0; color: var(--ink); font-size: 1.04rem; font-weight: 700; }
.info-grid dd small { display: block; color: var(--soft); font-size: .8rem; font-weight: 500; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.empty-icon { display: inline-grid; width: 64px; height: 64px; margin-bottom: 12px; place-items: center; border-radius: 50%; background: #fff2ee; color: var(--hot); }
.card--narrow.center-text { display: grid; justify-items: center; gap: 10px; }

/* Footer */
.site-foot { margin-top: 10px; padding-top: 44px; background: var(--teal-3); color: #bfcfea; }
.site-foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 30px; padding-bottom: 30px; }
.foot-logo { width: 170px; height: auto; margin-bottom: 12px; padding: 8px 10px; border-radius: 14px; background: #fff; }
.site-foot h4 { margin-bottom: 12px; color: #fff; font-size: 1.15rem; }
.site-foot p { margin-top: 8px; font-size: .94rem; }
.site-foot a { display: inline-flex; align-items: center; gap: 8px; color: #e6ecf7; text-decoration: none; }
.site-foot a:hover { color: var(--gold); }
.site-foot .ic { color: var(--gold); }
.site-foot-bottom { display: flex; justify-content: space-between; gap: 12px; padding: 16px 0 22px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .85rem; }
.mobile-bar { display: none; }

/* ---------- Staff portal ---------- */
body.admin { background: #eef1f6; }
.admin-shell { display: grid; grid-template-columns: 264px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; display: flex; flex-direction: column; height: 100vh; padding: 18px 14px; background: var(--teal-grad); color: #cfdaee; }
.side-logo { display: flex; align-items: center; justify-content: center; padding: 12px; border-radius: 16px; background: #fff; }
.side-logo img { width: 160px; height: auto; }
.sidebar .side-toggle { display: none; }
.side-nav { display: grid; align-content: start; gap: 3px; margin-top: 18px; overflow-y: auto; }
.side-nav a { display: flex; align-items: center; gap: 11px; padding: 11px 12px; border-radius: 12px; color: #d6e1f3; font-weight: 600; text-decoration: none; transition: background .15s ease, color .15s ease; }
.side-nav a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.side-nav a.active { background: #fff; color: var(--teal); box-shadow: 0 8px 18px -10px rgba(0, 0, 0, .5); }
.side-nav a.active .ic { color: var(--hot); }
.side-nav .badge { margin-left: auto; padding: 1px 8px; border-radius: 999px; background: var(--hot); color: #fff; font-size: .75rem; font-weight: 800; }
.nav-label { margin: 16px 12px 4px; color: #8fa8d3; font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.side-user { display: flex; align-items: center; gap: 10px; margin-top: auto; padding: 12px; border-radius: 14px; background: rgba(255, 255, 255, .08); }
.avatar { display: grid; width: 40px; height: 40px; flex: none; place-items: center; border-radius: 12px; background: var(--hot-grad); color: #fff; font-family: var(--display); font-weight: 800; }
.side-user strong { display: block; color: #fff; font-size: .95rem; line-height: 1.2; }
.side-user small { color: #9fb4d9; font-size: .78rem; }
.side-user form { margin-left: auto; }
.icon-btn { display: inline-grid; width: 38px; height: 38px; place-items: center; border: 0; border-radius: 10px; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; }
.icon-btn:hover { background: var(--hot); }

.admin-main { min-width: 0; padding: 26px clamp(16px, 3vw, 38px) 30px; }
.topbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 22px; }
.topbar h1 { font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 800; }
.topbar p.muted { margin-top: 2px; }
.topbar-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.date-pill { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--muted); font-size: .88rem; font-weight: 600; }

.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.kpi { position: relative; display: flex; gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); text-decoration: none; color: inherit; transition: transform .15s ease, box-shadow .15s ease; }
a.kpi:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: inherit; }
.kpi-icon { display: grid; width: 50px; height: 50px; flex: none; place-items: center; border-radius: 15px; }
.kpi-icon--hot { background: #fff0ea; color: var(--hot); }
.kpi-icon--teal { background: var(--sky); color: var(--teal); }
.kpi-icon--green { background: #e6f7ee; color: var(--green-dark); }
.kpi-icon--gold { background: #fff6e0; color: var(--amber); }
.kpi small { display: block; color: var(--muted); font-size: .85rem; font-weight: 600; }
.kpi strong { display: block; color: var(--ink); font-family: var(--display); font-size: 2rem; font-weight: 800; line-height: 1.1; }
.kpi span { color: var(--soft); font-size: .8rem; }

.panel { min-width: 0; margin-bottom: 20px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
.panel-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.panel-head h2 { display: flex; align-items: center; gap: 9px; font-size: 1.3rem; font-weight: 800; }
.panel-head h2 .ic { color: var(--hot); }
.panel--soft { background: linear-gradient(135deg, #f6f8fc, #eaeff8); }
.dash-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 20px; }
.dash-grid > .panel { margin-bottom: 0; }
.dash-col { display: grid; gap: 20px; align-content: start; }

.mini-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.mini-item { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line-2); border-radius: 14px; background: #fbfcfe; }
.time-chip { display: grid; min-width: 70px; padding: 7px 8px; border-radius: 12px; background: var(--teal); color: #fff; text-align: center; line-height: 1.1; }
.time-chip b { font-family: var(--display); font-size: 1.05rem; }
.time-chip small { color: #bfcfea; font-size: .72rem; }
.mini-main { min-width: 0; flex: 1; }
.mini-main strong { display: block; color: var(--ink); }
.mini-main small { display: block; overflow: hidden; color: var(--muted); font-size: .84rem; text-overflow: ellipsis; white-space: nowrap; }
.empty { display: grid; justify-items: center; gap: 8px; padding: 26px 10px; color: var(--muted); text-align: center; }
.empty .ic { width: 40px; height: 40px; color: #9cb1d4; }

.bars { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); align-items: end; gap: 6px; height: 170px; padding-top: 10px; }
.bar { position: relative; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; }
.bar i { display: block; width: 100%; max-width: 26px; height: 4%; min-height: 4px; border-radius: 7px 7px 3px 3px; background: linear-gradient(180deg, #5b8fd6, #23477f); transition: height .5s ease; }
.bar.is-today i { background: var(--hot-grad); }
.bar b { margin-bottom: 4px; color: var(--teal); font-size: .74rem; }
.bar small { margin-top: 6px; color: var(--soft); font-size: .68rem; white-space: nowrap; }
.meter-list { display: grid; gap: 13px; margin: 0; padding: 0; list-style: none; }
.meter-list li { display: grid; gap: 6px; }
.meter-top { display: flex; justify-content: space-between; gap: 10px; font-size: .92rem; font-weight: 600; }
.meter-top b { color: var(--teal); }
.meter { height: 9px; overflow: hidden; border-radius: 999px; background: var(--sky); }
.meter i { display: block; width: 0; height: 100%; border-radius: 999px; background: var(--hot-grad); transition: width .5s ease; }
.quick-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.quick-grid .btn { justify-content: flex-start; }
.copy-row { display: flex; gap: 8px; margin-top: 12px; }
.copy-row input { flex: 1; min-width: 0; min-height: 40px; padding: 8px 12px; border: 1.5px solid #cbd4e4; border-radius: 10px; background: #f7f9fc; color: var(--muted); font-size: .85rem; }

.toolbar { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr auto; gap: 12px; align-items: end; margin-bottom: 18px; }
.toolbar label { display: grid; gap: 6px; color: var(--muted); font-size: .82rem; font-weight: 700; }
.toolbar input, .toolbar select { min-height: 44px; padding: 9px 12px; font-size: .94rem; }
.toolbar .toolbar-btns { display: flex; gap: 8px; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.tab { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--muted); font-size: .9rem; font-weight: 700; text-decoration: none; }
.tab b { padding: 0 7px; border-radius: 999px; background: var(--mist); color: var(--teal); font-size: .78rem; }
.tab.active { border-color: var(--teal); background: var(--teal); color: #fff; }
.tab.active b { background: rgba(255, 255, 255, .2); color: #fff; }

.appt-list { display: grid; gap: 14px; }
.appt { display: grid; grid-template-columns: 150px minmax(0, 1.1fr) minmax(0, 1.2fr) 250px; border: 1px solid var(--line); border-radius: 16px; background: #fff; overflow: hidden; transition: box-shadow .15s ease; }
.appt:hover { box-shadow: var(--shadow-sm); }
.appt > div { min-width: 0; padding: 16px; }
.appt-when { display: grid; align-content: start; gap: 6px; border-right: 1px solid var(--line-2); background: #f7f9fc; }
.appt-when .day { color: var(--teal); font-family: var(--display); font-size: 1.15rem; font-weight: 800; line-height: 1.15; }
.appt-when .time { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); font-weight: 700; }
.appt-when .ref { color: var(--soft); font-size: .8rem; font-weight: 600; }
.appt h3 { color: var(--ink); font-family: var(--body); font-size: 1.08rem; font-weight: 700; }
.meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 3px; color: var(--muted); font-size: .86rem; }
.meta span { display: inline-flex; align-items: center; gap: 5px; }
.meta .ic { color: var(--teal-2); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.tag { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; background: var(--sky); color: var(--teal); font-size: .76rem; font-weight: 700; }
.tag--warn { background: #fff3d6; color: var(--amber); }
.tag--hot { background: #fff0ea; color: var(--hot); }
.tag--green { background: #e6f7ee; color: var(--green-dark); }
.contact-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 11px; }
.appt-actions { display: grid; align-content: start; gap: 9px; border-left: 1px solid var(--line-2); background: #fcfdfe; }
.inline { display: flex; gap: 6px; }
.inline select { flex: 1; min-width: 0; min-height: 36px; padding: 6px 30px 6px 10px; border: 1.5px solid #cbd4e4; border-radius: 10px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230b5566' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center; color: var(--ink); font-size: .86rem; font-weight: 600; appearance: none; -webkit-appearance: none; }
.details { margin-top: 10px; }
.details summary { display: inline-flex; align-items: center; gap: 6px; color: var(--teal-2); font-size: .88rem; font-weight: 700; cursor: pointer; list-style: none; }
.details summary::-webkit-details-marker { display: none; }
.details summary::before { content: "+"; display: inline-grid; width: 18px; height: 18px; place-items: center; border-radius: 6px; background: var(--sky); font-weight: 800; }
.details[open] summary::before { content: "–"; }
.dl { display: grid; grid-template-columns: max-content 1fr; gap: 5px 14px; margin: 10px 0 0; padding: 12px; border-radius: 12px; background: var(--mist); font-size: .88rem; }
.dl dt { color: var(--muted); font-weight: 700; }
.dl dd { margin: 0; overflow-wrap: anywhere; color: var(--ink); }
.note-form { display: grid; gap: 8px; margin-top: 10px; }
.note-form textarea { width: 100%; min-height: 64px; padding: 9px 11px; border: 1.5px solid #cbd4e4; border-radius: 10px; font-size: .9rem; resize: vertical; }

.status { display: inline-flex; align-items: center; gap: 6px; justify-self: start; padding: 4px 11px; border-radius: 999px; background: #edf0f5; color: var(--muted); font-size: .78rem; font-weight: 800; white-space: nowrap; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status--pending, .status--new { background: #fff3d6; color: var(--amber); }
.status--confirmed, .status--contacted, .status--in_progress { background: var(--sky); color: var(--teal-2); }
.status--completed, .status--converted { background: #e6f7ee; color: var(--green-dark); }
.status--cancelled, .status--no_show, .status--closed { background: #fdeeea; color: var(--red); }

.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th { padding: 11px 12px; border-bottom: 1px solid var(--line); color: var(--soft); font-size: .74rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; white-space: nowrap; }
td { padding: 13px 12px; border-bottom: 1px solid var(--line-2); color: var(--ink); font-size: .93rem; vertical-align: top; }
td small { display: block; margin-top: 2px; color: var(--muted); font-size: .82rem; }
tr:last-child td { border-bottom: 0; }

.row-form { display: grid; gap: 12px; align-items: end; padding: 16px; border: 1px solid var(--line-2); border-radius: 14px; background: #fbfcfe; }
.row-form + .row-form { margin-top: 12px; }
.row-form label { display: grid; gap: 6px; color: var(--muted); font-size: .8rem; font-weight: 700; }
.row-form input:not([type=checkbox]), .row-form select { min-height: 42px; padding: 8px 12px; font-size: .93rem; }
.row-form--doctor { grid-template-columns: 70px 1.1fr 1.4fr 1.2fr auto auto auto; }
.row-form--service { grid-template-columns: 1.8fr 130px auto auto; }
.row-form--schedule { grid-template-columns: 1.3fr 1fr .8fr .8fr .7fr auto auto; }
.row-form--staff { grid-template-columns: 1fr 1.2fr .9fr 1fr 1.1fr auto; }
.toggle { display: inline-flex !important; grid-auto-flow: column; align-items: center; gap: 8px !important; min-height: 42px; color: var(--ink) !important; font-size: .9rem !important; font-weight: 600 !important; cursor: pointer; white-space: nowrap; }
.toggle input { width: 18px; height: 18px; accent-color: var(--teal); }
.assign { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; border: 0; }
.assign legend { width: 100%; margin-bottom: 6px; padding: 0; color: var(--muted); font-size: .8rem; font-weight: 700; }
.chip-check { position: relative; cursor: pointer; }
.chip-check input { position: absolute; opacity: 0; pointer-events: none; }
.chip-check span { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 1.5px solid #cbd4e4; border-radius: 999px; background: #fff; color: var(--muted); font-size: .86rem; font-weight: 700; }
.chip-check input:checked + span { border-color: var(--teal); background: var(--sky); color: var(--teal); }
.chip-check input:checked + span::before { content: "✓"; color: var(--hot); }
.chip-check input:focus-visible + span { outline: 3px solid rgba(200, 32, 43, .45); outline-offset: 2px; }
.row-form.is-off { opacity: .7; }
.section-title { display: flex; align-items: center; gap: 8px; margin: 24px 0 12px; font-size: 1.15rem; font-weight: 800; }
.section-title .ic { color: var(--hot); }
.stack { display: grid; gap: 14px; max-width: 680px; }
.stack label { display: grid; gap: 6px; color: var(--ink); font-size: .92rem; font-weight: 600; }
.stack small { color: var(--soft); font-weight: 500; }
.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.export-form { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; }
.export-form label { display: grid; gap: 6px; color: var(--muted); font-size: .8rem; font-weight: 700; }
.export-form input, .export-form select { min-height: 44px; padding: 8px 12px; border: 1.5px solid #cbd4e4; border-radius: 12px; background: #fff; font-size: .93rem; }
.week-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.day-cell { padding: 10px; border: 1px solid var(--line-2); border-radius: 12px; background: #fbfcfe; text-align: center; }
.day-cell b { display: block; color: var(--teal); font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; }
.day-cell span { display: block; margin-top: 4px; color: var(--ink); font-size: .82rem; font-weight: 600; }
.day-cell.off { background: #f6f7f8; color: var(--soft); }
.day-cell.off span { color: var(--soft); }
.day-cell button { margin-top: 6px; }
.doctor-sched + .doctor-sched { margin-top: 16px; }
.doctor-sched h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; color: var(--ink); font-family: var(--body); font-size: 1.02rem; font-weight: 700; }
.doctor-sched h3 .doc-avatar { width: 34px; height: 34px; border-radius: 10px; font-size: .85rem; }

.slip { max-width: 820px; }
.slip-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 16px; border-bottom: 1px dashed var(--line); }
.slip-head img { width: 160px; height: auto; }
.slip .info-grid { margin-top: 18px; }

.auth { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }
.auth-brand { position: relative; display: grid; align-content: center; gap: 18px; padding: 48px clamp(24px, 6vw, 80px); overflow: hidden; background: var(--teal-grad); color: #d6e1f3; }
.auth-brand::after { content: ""; position: absolute; right: -140px; bottom: -140px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(232, 66, 74, .35), transparent 65%); }
.auth-brand .side-logo { justify-self: start; padding: 14px 18px; }
.auth-brand .side-logo img { width: 200px; }
.auth-brand h2 { color: #fff; font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 800; }
.auth-brand ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.auth-brand li { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.auth-brand li .ic { color: var(--gold); }
.auth-form { display: grid; place-items: center; padding: 30px 20px; background: #fff; }
.auth-card { width: min(420px, 100%); }
.auth-card h1 { margin-bottom: 6px; font-size: 2.2rem; font-weight: 800; }
.auth-card .stack { margin-top: 22px; }

.admin-footer { padding: 18px 0 4px; color: var(--soft); font-size: .8rem; text-align: center; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .appt { grid-template-columns: 130px minmax(0, 1fr) minmax(0, 1fr); }
  .appt-actions { grid-column: 1 / -1; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); border-left: 0; border-top: 1px solid var(--line-2); }
  .row-form--doctor { grid-template-columns: 70px 1fr 1fr; }
  .row-form--schedule, .row-form--staff { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1000px) {
  .layout { grid-template-columns: 1fr; }
  .side { position: static; grid-template-columns: 1fr 1fr; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-card { display: none; }
  .dash-grid { grid-template-columns: 1fr; }
  .toolbar { grid-template-columns: 1fr 1fr; }
  .toolbar .toolbar-btns { grid-column: 1 / -1; }
  .admin-shell { grid-template-columns: 1fr; }
  .sidebar { position: sticky; top: 0; z-index: 40; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 14px; }
  .side-logo { padding: 6px 10px; border-radius: 12px; }
  .side-logo img { width: 120px; }
  .sidebar .side-toggle { display: inline-grid; margin-left: auto; }
  .side-nav { display: none; width: 100%; max-height: 70vh; margin-top: 4px; padding-bottom: 6px; }
  .sidebar.is-open .side-nav { display: grid; }
  .side-user { display: none; width: 100%; margin-top: 0; }
  .sidebar.is-open .side-user { display: flex; }
  .week-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  body { font-size: 15.5px; }
  .wrap { width: calc(100% - 24px); }
  .topstrip-inner > span:first-child { display: none; }
  .topstrip-inner { justify-content: center; }
  .hide-sm { display: none !important; }
  .site-head-inner { gap: 10px; min-height: 66px; }
  .logo img { height: 42px; }
  .site-nav { display: none; }
  .head-cta { margin-left: auto; }
  .head-cta .btn span { display: none; }
  .head-cta .btn { width: 46px; padding: 0; }
  .hero { padding: 34px 0 100px; }
  .chips li { font-size: .82rem; padding: 6px 10px; }
  .page-pad--overlap { margin-top: -74px; }
  .form-card { padding: 16px; border-radius: 16px; }
  .step { padding: 14px; }
  .grid-2, .doctor-grid, .info-grid, .settings-grid { grid-template-columns: 1fr; }
  .side { grid-template-columns: 1fr; }
  .seg span { min-height: 42px; padding: 8px 13px; font-size: .9rem; }
  .receipt-head { flex-direction: column; align-items: flex-start; }
  .ref-box { text-align: left; }
  .btn-row .btn { flex: 1 1 calc(50% - 10px); }
  .site-foot-grid { grid-template-columns: 1fr; gap: 18px; }
  .site-foot-bottom { flex-direction: column; padding-bottom: 86px; }
  .mobile-bar { position: fixed; right: 0; bottom: 0; left: 0; z-index: 50; display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgba(255, 255, 255, .97); box-shadow: 0 -10px 30px -18px rgba(35, 71, 127, .5); }
  .mobile-bar a { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 46px; border: 1.5px solid var(--line); border-radius: 999px; color: var(--teal); font-weight: 700; text-decoration: none; }
  .mobile-bar a:nth-child(2) { border-color: #bfe8cf; background: #e7f8ee; color: var(--green-dark); }
  .mobile-bar .mobile-bar-hot { border: 0; background: var(--hot-grad); color: #fff; }
  .admin-main { padding: 18px 12px 24px; }
  .kpis { gap: 10px; }
  .kpi { flex-direction: column; gap: 10px; padding: 14px; }
  .kpi-icon { width: 42px; height: 42px; border-radius: 12px; }
  .kpi strong { font-size: 1.7rem; }
  .panel { padding: 16px; }
  .bars { gap: 3px; height: 140px; }
  .bar small { font-size: .6rem; }
  .bar:nth-child(even) small { visibility: hidden; }
  .toolbar { grid-template-columns: 1fr; }
  .appt { grid-template-columns: 1fr; }
  .appt-when { grid-template-columns: 1fr auto; align-items: center; border-right: 0; border-bottom: 1px solid var(--line-2); }
  .appt-when .ref { grid-column: 1 / -1; }
  .appt-actions { grid-template-columns: 1fr; }
  .quick-grid { grid-template-columns: 1fr; }
  .row-form--doctor, .row-form--service, .row-form--schedule, .row-form--staff { grid-template-columns: 1fr 1fr; }
  .row-form--doctor label:nth-of-type(2), .row-form--doctor label:nth-of-type(3), .row-form--doctor label:nth-of-type(4), .row-form--service label:first-of-type { grid-column: 1 / -1; }
  .week-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .auth { grid-template-columns: 1fr; }
  .auth-brand { padding: 26px 20px; }
  .auth-brand h2, .auth-brand ul { display: none; }
  .resp-table thead { display: none; }
  .resp-table tr { display: block; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
  .resp-table td { display: flex; justify-content: space-between; gap: 12px; padding: 5px 2px; border: 0; text-align: right; }
  .resp-table td::before { content: attr(data-label); color: var(--soft); font-size: .78rem; font-weight: 700; text-align: left; text-transform: uppercase; }
  .topbar-actions { width: 100%; }
}
@media print {
  body { background: #fff; }
  .topstrip, .site-head, .site-foot, .mobile-bar, .no-print, .sidebar, .topbar, .hero { display: none !important; }
  .admin-shell { display: block; }
  .card, .panel { border: 0; box-shadow: none; }
  .page-pad--overlap { margin: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
.mt-4 { margin-top: 4px !important; } .mt-10 { margin-top: 10px !important; } .mt-12 { margin-top: 12px !important; } .mt-16 { margin-top: 16px !important; } .mt-18 { margin-top: 18px !important; } .mt-20 { margin-top: 20px !important; }
.pre-wrap { white-space: pre-wrap; }
.dash-grid > *, .dash-col, .dash-col > * { min-width: 0; }
@media (max-width: 1000px) { .dash-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) { .mini-item { gap: 9px; padding: 10px; } .time-chip { min-width: 60px; } .mini-item .status { display: none; } }
.mini-list, .mini-list > li, .appt-list > *, .kpis > * { min-width: 0; }
.mini-main strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
