:root {
    --appt-navy: #0b1f3a;
    --appt-navy-2: #14385f;
    --appt-blue: #1f6fb2;
    --appt-orange: #f27a1a;
    --appt-maroon: #7a1f35;
    --appt-ink: #172235;
    --appt-muted: #64748b;
    --appt-canvas: #f4f7fb;
    --appt-border: #dbe3ec;
    --appt-sidebar: 268px;
}

html { scroll-behavior: smooth; }
body {
    min-height: 100vh;
    color: var(--appt-ink);
    background: var(--appt-canvas);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: var(--appt-blue); }
.text-navy { color: var(--appt-navy) !important; }
.text-orange { color: var(--appt-orange) !important; }
.bg-navy { background-color: var(--appt-navy) !important; }
.brand-wordmark {
    color: inherit;
    font-size: 1.28rem;
    font-weight: 800;
    letter-spacing: -.035em;
    text-decoration: none;
}
.brand-dot { color: var(--appt-orange); }
.btn-primary {
    --bs-btn-bg: var(--appt-orange);
    --bs-btn-border-color: var(--appt-orange);
    --bs-btn-hover-bg: #d96710;
    --bs-btn-hover-border-color: #d96710;
    --bs-btn-active-bg: #c85e0b;
    --bs-btn-active-border-color: #c85e0b;
}
.btn-outline-primary {
    --bs-btn-color: var(--appt-blue);
    --bs-btn-border-color: var(--appt-blue);
    --bs-btn-hover-bg: var(--appt-blue);
    --bs-btn-hover-border-color: var(--appt-blue);
}
.form-control, .form-select {
    border-color: #cfd9e5;
    min-height: 44px;
}
.form-control:focus, .form-select:focus {
    border-color: var(--appt-blue);
    box-shadow: 0 0 0 .22rem rgba(31, 111, 178, .14);
}
.form-label { color: #334155; font-size: .89rem; font-weight: 650; }
.form-hint { color: var(--appt-muted); font-size: .78rem; }
.card {
    border-color: rgba(15, 39, 66, .09);
    box-shadow: 0 8px 28px rgba(15, 39, 66, .055);
}
.table { --bs-table-bg: transparent; }
.table > :not(caption) > * > * { border-bottom-color: #e7edf4; padding: .82rem .72rem; }
.table thead th {
    color: #64748b;
    font-size: .72rem;
    font-weight: 750;
    letter-spacing: .055em;
    text-transform: uppercase;
    white-space: nowrap;
}
.table-link { color: var(--appt-navy); font-weight: 700; text-decoration: none; }
.table-link:hover { color: var(--appt-blue); }
.badge { font-weight: 650; letter-spacing: .015em; }
.app-shell { min-height: 100vh; }
.impersonation-banner {
    align-items: center;
    background: #3b1730;
    color: white;
    display: flex;
    font-size: .85rem;
    gap: 1rem;
    justify-content: space-between;
    padding: .7rem clamp(1rem, 3vw, 2rem);
    position: relative;
    z-index: 1050;
}
.app-sidebar {
    background: linear-gradient(180deg, var(--appt-navy), #08182d);
    color: white;
    width: var(--appt-sidebar);
    min-height: 100vh;
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1035;
    overflow-y: auto;
}
.sidebar-head { border-bottom: 1px solid rgba(255,255,255,.1); }
.sidebar-role {
    color: rgba(255,255,255,.55);
    font-size: .68rem;
    font-weight: 750;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.sidebar-nav .nav-link {
    align-items: center;
    border-radius: .7rem;
    color: rgba(255,255,255,.7);
    display: flex;
    font-size: .91rem;
    font-weight: 570;
    gap: .78rem;
    margin-bottom: .2rem;
    padding: .7rem .82rem;
}
.sidebar-nav .nav-link i { font-size: 1.06rem; width: 1.25rem; }
.sidebar-nav .nav-link:hover { background: rgba(255,255,255,.07); color: white; }
.sidebar-nav .nav-link.active {
    background: linear-gradient(90deg, rgba(242,122,26,.95), rgba(242,122,26,.78));
    box-shadow: 0 8px 20px rgba(242,122,26,.18);
    color: white;
}
.sidebar-section {
    color: rgba(255,255,255,.38);
    font-size: .65rem;
    font-weight: 750;
    letter-spacing: .1em;
    margin: 1.35rem .82rem .45rem;
    text-transform: uppercase;
}
.app-main { margin-left: var(--appt-sidebar); min-height: 100vh; }
.app-topbar {
    align-items: center;
    backdrop-filter: blur(14px);
    background: rgba(255,255,255,.92);
    border-bottom: 1px solid var(--appt-border);
    display: flex;
    height: 72px;
    justify-content: space-between;
    padding: 0 clamp(1rem, 3vw, 2.25rem);
    position: sticky;
    top: 0;
    z-index: 1025;
}
.app-content { padding: clamp(1rem, 3vw, 2.25rem); }
.page-kicker {
    color: var(--appt-orange);
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.page-title { color: var(--appt-navy); font-size: clamp(1.55rem, 2vw, 2rem); font-weight: 780; letter-spacing: -.03em; }
.metric-card { border: 0; min-height: 130px; overflow: hidden; position: relative; }
.metric-card::after {
    background: currentColor;
    border-radius: 50%;
    content: "";
    height: 110px;
    opacity: .045;
    position: absolute;
    right: -35px;
    top: -38px;
    width: 110px;
}
.metric-icon {
    align-items: center;
    background: rgba(31,111,178,.1);
    border-radius: .8rem;
    color: var(--appt-blue);
    display: flex;
    font-size: 1.2rem;
    height: 42px;
    justify-content: center;
    width: 42px;
}
.metric-value { color: var(--appt-navy); font-size: 1.85rem; font-weight: 800; letter-spacing: -.04em; }
.avatar {
    align-items: center;
    background: #e7eef7;
    border-radius: 50%;
    color: var(--appt-navy);
    display: inline-flex;
    font-size: .8rem;
    font-weight: 800;
    height: 38px;
    justify-content: center;
    width: 38px;
}
.empty-state { color: var(--appt-muted); padding: 3rem 1rem; text-align: center; }
.empty-state i { color: #afbdcd; display: block; font-size: 2rem; margin-bottom: .6rem; }
.timeline { border-left: 2px solid #dbe6f0; margin-left: .55rem; padding-left: 1.35rem; }
.timeline-item { margin-bottom: 1.15rem; position: relative; }
.timeline-item::before {
    background: var(--appt-blue);
    border: 3px solid white;
    border-radius: 50%;
    box-shadow: 0 0 0 1px #cbd8e4;
    content: "";
    height: 13px;
    left: -1.82rem;
    position: absolute;
    top: .2rem;
    width: 13px;
}
.detail-label { color: var(--appt-muted); font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.detail-value { color: var(--appt-ink); font-weight: 600; }
.sticky-actions { position: sticky; top: 92px; }
.medicine-row { background: #f8fafc; border: 1px solid #e3eaf2; border-radius: .9rem; }
.medicine-special-instructions {
    border-top: 1px solid #dfe7f0;
    margin-top: .25rem;
    padding-top: 1rem;
}
.medicine-instructions-textarea {
    line-height: 1.55;
    min-height: 132px;
    resize: vertical;
}
.medicine-suggestions {
    left: .75rem;
    max-height: 360px;
    overflow-y: auto;
    position: absolute;
    right: .75rem;
    top: calc(100% - .2rem);
    z-index: 1040;
}
.clinical-tools .form-select { min-width: 0; }
.queue-number {
    align-items: center;
    background: var(--appt-navy);
    border-radius: 50%;
    color: white;
    display: inline-flex;
    font-size: .85rem;
    font-weight: 800;
    height: 42px;
    justify-content: center;
    width: 42px;
}
.queue-number--small {
    font-size: .72rem;
    height: 32px;
    width: 32px;
}
.queue-message-preview { background: #f3f7fb; border: 1px solid #dbe6f0; line-height: 1.55; }
.queue-status-card { border-left: 4px solid var(--appt-orange); }
.queue-update-drawer {
    border-left: 4px solid var(--appt-orange);
    overflow: hidden;
}
.queue-update-drawer__toggle {
    align-items: center;
    background: white;
    border: 0;
    color: var(--appt-ink);
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    text-align: left;
    width: 100%;
}
.queue-update-drawer__toggle:hover { background: #fbfdff; }
.queue-update-drawer__toggle:focus-visible {
    box-shadow: inset 0 0 0 3px rgba(31, 111, 178, .2);
    outline: 0;
}
.queue-update-drawer__identity {
    align-items: center;
    display: flex;
    gap: .85rem;
    min-width: 0;
}
.queue-update-drawer__icon {
    align-items: center;
    background: #fff2e7;
    border-radius: 50%;
    color: var(--appt-orange);
    display: inline-flex;
    flex: 0 0 auto;
    height: 42px;
    justify-content: center;
    width: 42px;
}
.queue-update-drawer__action {
    align-items: center;
    color: var(--appt-blue);
    display: inline-flex;
    flex: 0 0 auto;
    font-size: .82rem;
    font-weight: 750;
    gap: .55rem;
}
.queue-update-drawer__chevron { transition: transform .26s ease; }
.queue-update-drawer__panel {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .28s ease;
}
.queue-update-drawer__panel-inner {
    min-height: 0;
    overflow: hidden;
}
.queue-update-drawer.is-open .queue-update-drawer__panel { grid-template-rows: 1fr; }
.queue-update-drawer.is-open .queue-update-drawer__chevron { transform: rotate(180deg); }
.admin-action-disclosure > summary { cursor: pointer; display: inline-block; list-style: none; }
.admin-action-disclosure > summary::-webkit-details-marker { display: none; }
.admin-action-disclosure[open] > summary { background: var(--appt-blue); color: white; }
.appointment-picker {
    background: #f8fafc;
    border: 1px solid #d9e3ed;
    border-radius: 1rem;
    padding: clamp(1rem, 3vw, 1.5rem);
}
.appointment-picker.is-invalid { border-color: var(--bs-danger); }
.appointment-picker--compact {
    background: #f8fafc;
    border-radius: .8rem;
    padding: .85rem;
    position: relative;
}
.compact-picker-details > summary {
    align-items: center;
    cursor: pointer;
    display: inline-flex;
    list-style: none;
}
.compact-picker-details > summary::-webkit-details-marker { display: none; }
.compact-picker-details[open] > summary { background: var(--appt-blue); color: white; }
.compact-picker-panel {
    background: white;
    border: 1px solid #d7e2ec;
    border-radius: .9rem;
    box-shadow: 0 22px 55px rgba(11,31,58,.2);
    left: 0;
    margin-top: .5rem;
    padding: 1rem;
    position: absolute;
    width: min(620px, calc(100vw - 2rem));
    z-index: 1080;
}
.appointment-picker--compact.is-open { z-index: 30; }
.sticky-actions.has-open-picker { z-index: 30; }
.appointment-picker--inline .compact-picker-panel {
    box-shadow: none;
    container-name: appointment-inline-picker;
    container-type: inline-size;
    left: auto;
    position: static;
    right: auto;
    width: 100%;
}
.appointment-picker--inline .compact-picker-panel .row > .col-sm-7,
.appointment-picker--inline .compact-picker-panel .row > .col-sm-5 {
    width: 100%;
}
@container appointment-inline-picker (min-width: 420px) {
    .appointment-picker--inline .compact-picker-panel .row > .col-sm-7 { width: 58.33333333%; }
    .appointment-picker--inline .compact-picker-panel .row > .col-sm-5 { width: 41.66666667%; }
}
[data-picker-mode="date"] .compact-picker-panel { width: min(390px, calc(100vw - 2rem)); }
.appointment-picker--inline[data-picker-mode="date"] .compact-picker-panel { width: 100%; }
.appointment-picker--align-end .compact-picker-panel { left: auto; right: 0; }
.appointment-picker--compact .appointment-calendar { gap: .2rem; }
.appointment-picker--compact .calendar-day {
    border-radius: .5rem;
    font-size: .76rem;
    min-height: 30px;
}
.appointment-picker--compact .calendar-weekday { font-size: .62rem; }
.appointment-calendar {
    display: grid;
    gap: .35rem;
    grid-template-columns: repeat(7, 1fr);
}
.calendar-weekday {
    color: var(--appt-muted);
    font-size: .7rem;
    font-weight: 750;
    padding: .25rem 0;
    text-align: center;
    text-transform: uppercase;
}
.calendar-day {
    aspect-ratio: 1;
    background: white;
    border: 1px solid transparent;
    border-radius: .65rem;
    color: var(--appt-ink);
    font-size: .85rem;
    min-height: 36px;
}
.calendar-day:hover:not(:disabled) { background: #eaf2fa; border-color: #bdd1e4; }
.calendar-day.outside-month { color: #94a3b8; }
.calendar-day.past-day { opacity: .32; }
.calendar-day.today { border-color: var(--appt-blue); }
.calendar-day.selected { background: var(--appt-orange); border-color: var(--appt-orange); color: white; font-weight: 800; }
.analog-clock {
    background: radial-gradient(circle, #fff 58%, #f2f6fa 100%);
    border: 8px solid var(--appt-navy);
    border-radius: 50%;
    box-shadow: inset 0 0 0 2px #d9e3ed, 0 10px 30px rgba(11,31,58,.12);
    height: 230px;
    position: relative;
    user-select: none;
    width: 230px;
}
.clock-number {
    --clock-angle: calc(var(--clock-index) * 30deg);
    background: transparent;
    border: 0;
    border-radius: 50%;
    color: var(--appt-navy);
    font-size: .82rem;
    font-weight: 750;
    height: 30px;
    left: calc(50% - 15px);
    padding: 0;
    position: absolute;
    top: calc(50% - 15px);
    transform: rotate(var(--clock-angle)) translateY(-86px) rotate(calc(-1 * var(--clock-angle)));
    width: 30px;
    z-index: 6;
}
.clock-number:hover, .clock-number:focus { background: #e8f1fa; outline: 2px solid rgba(31,111,178,.25); }
.clock-number.selected { background: #dcecf9; box-shadow: inset 0 0 0 1px #9fc1dd; }
.analog-clock--compact {
    border-width: 6px;
    height: 160px;
    width: 160px;
}
.analog-clock--compact .clock-number {
    font-size: .68rem;
    height: 24px;
    left: calc(50% - 12px);
    top: calc(50% - 12px);
    transform: rotate(var(--clock-angle)) translateY(-58px) rotate(calc(-1 * var(--clock-angle)));
    width: 24px;
}
.analog-clock--compact .clock-center { height: 13px; width: 13px; }
.analog-clock--compact .clock-hour-hand { height: 40px; width: 5px; }
.analog-clock--compact .clock-minute-hand { height: 53px; width: 3px; }
.clock-center {
    background: var(--appt-orange);
    border: 3px solid white;
    border-radius: 50%;
    height: 16px;
    left: 50%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    pointer-events: none;
    z-index: 7;
}
.clock-hand {
    border-radius: 999px;
    bottom: 50%;
    cursor: grab;
    left: 50%;
    position: absolute;
    touch-action: none;
    transform-origin: 50% 100%;
    transition: transform .18s ease;
}
.clock-hand::after {
    background: transparent;
    border-radius: 999px;
    content: "";
    inset: -8px -12px -4px;
    position: absolute;
}
.clock-hand:focus-visible {
    filter: drop-shadow(0 0 4px rgba(31,111,178,.85));
    outline: 0;
}
.clock-hand.is-dragging {
    cursor: grabbing;
    transition: none;
}
.analog-clock.is-dragging .clock-number { pointer-events: none; }
.clock-hour-hand { background: var(--appt-navy); height: 58px; width: 6px; z-index: 4; }
.clock-minute-hand { background: var(--appt-orange); height: 76px; width: 3px; z-index: 5; }
.clock-drag-hint { color: var(--appt-muted); font-size: .74rem; }
.clock-drag-hint--compact { font-size: .65rem; }
.minute-grid { display: grid; gap: .3rem; grid-template-columns: repeat(6, 1fr); }
.minute-grid .btn { font-size: .72rem; padding-inline: .2rem; }
.minute-grid .btn.active { background: var(--appt-blue); border-color: var(--appt-blue); color: white; }
.minute-grid--compact { gap: .2rem; grid-template-columns: repeat(4, 1fr); }
.minute-grid--compact .btn { font-size: .65rem; padding: .15rem; }
.appointment-picker-summary {
    background: #e9f3fb;
    border-radius: .65rem;
    color: var(--appt-navy);
    font-weight: 700;
    padding: .75rem 1rem;
    text-align: center;
}
.appointment-filter-card { overflow: visible; }
.appointment-filter-calendar,
.appointment-filter-options {
    border: 1px solid #d9e3ed;
    border-radius: 1rem;
    padding: clamp(1rem, 2.5vw, 1.4rem);
}
.appointment-filter-calendar {
    background: linear-gradient(145deg, #f8fbfe 0%, #f4f8fc 62%, #fff7f0 100%);
}
.appointment-filter-options { background: #f8fafc; }
.appointment-filter-calendar .appointment-picker {
    background: transparent;
    border: 0;
    padding: 0;
}
.appointment-filter-calendar .calendar-day {
    box-shadow: 0 2px 8px rgba(15,39,66,.04);
    transition: background-color .16s ease, border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.appointment-filter-calendar .calendar-day:hover:not(:disabled) {
    box-shadow: 0 5px 14px rgba(15,39,66,.1);
    transform: translateY(-1px);
}
.filter-section-icon {
    align-items: center;
    background: #e6f1fa;
    border-radius: .8rem;
    color: var(--appt-blue);
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 1.1rem;
    height: 42px;
    justify-content: center;
    width: 42px;
}
.appointment-results-table { min-width: 1050px; }
.appointment-picker--compact .appointment-picker-summary {
    font-size: .78rem;
    margin-top: .65rem !important;
    padding: .5rem .65rem;
}
.medicine-repository-search { min-width: min(100%, 720px); }
.medicine-repository-card { min-height: 520px; }
.medicine-repository-table { min-width: 1080px; }
.medicine-repository-table th { white-space: nowrap; }
.medicine-repository-table td { vertical-align: middle; }
.repository-source-reference {
    max-width: 260px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.sensitive-note { background: #fff8f1; border: 1px solid #fed7aa; color: #7c2d12; }
.public-nav {
    backdrop-filter: blur(15px);
    background: rgba(255,255,255,.91);
    border-bottom: 1px solid rgba(11,31,58,.08);
}
.hero {
    background:
        radial-gradient(circle at 80% 10%, rgba(242,122,26,.22), transparent 25%),
        radial-gradient(circle at 15% 80%, rgba(31,111,178,.25), transparent 28%),
        linear-gradient(145deg, #081a31, #12395f);
    color: white;
    overflow: hidden;
    padding: clamp(5rem, 11vw, 8.2rem) 0 clamp(4rem, 9vw, 7rem);
    position: relative;
}
.hero::after {
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 50%;
    content: "";
    height: 520px;
    position: absolute;
    right: -240px;
    top: -170px;
    width: 520px;
}
.hero h1 { font-size: clamp(2.35rem, 5.7vw, 4.65rem); font-weight: 820; letter-spacing: -.055em; line-height: 1.02; }
.hero-lead { color: rgba(255,255,255,.72); font-size: clamp(1rem, 1.7vw, 1.18rem); line-height: 1.7; max-width: 650px; }
.practice-domain-hero {
    background:
        radial-gradient(circle at 85% 10%, rgba(242,122,26,.17), transparent 26%),
        radial-gradient(circle at 10% 90%, rgba(31,111,178,.16), transparent 28%),
        linear-gradient(145deg, #f7faff, #fff9f3);
    border-bottom: 1px solid rgba(11,31,58,.08);
}
.dashboard-mock {
    background: rgba(255,255,255,.98);
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 1.2rem;
    box-shadow: 0 30px 70px rgba(0,0,0,.28);
    color: var(--appt-ink);
    transform: perspective(1100px) rotateY(-4deg) rotateX(2deg);
}
.mock-sidebar { background: var(--appt-navy); border-radius: .85rem; min-height: 360px; }
.mock-line { background: #dfe7ef; border-radius: 999px; height: 8px; }
.feature-icon {
    align-items: center;
    background: linear-gradient(145deg, rgba(31,111,178,.12), rgba(242,122,26,.12));
    border-radius: 1rem;
    color: var(--appt-blue);
    display: flex;
    font-size: 1.35rem;
    height: 52px;
    justify-content: center;
    width: 52px;
}
.section-kicker { color: var(--appt-orange); font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.section-title { color: var(--appt-navy); font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 800; letter-spacing: -.045em; }
.auth-page { background: linear-gradient(135deg, #f3f7fb 0%, #fff 50%, #fff5ec 100%); min-height: calc(100vh - 70px); }
.auth-card { border: 0; box-shadow: 0 25px 70px rgba(15,39,66,.13); }
.portal-card {
    border: 1px solid #e2e8f0;
    color: var(--appt-ink);
    min-height: 160px;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.portal-card:hover { border-color: rgba(31,111,178,.35); box-shadow: 0 15px 35px rgba(15,39,66,.1); color: var(--appt-ink); transform: translateY(-3px); }
.public-footer { background: #07182d; color: rgba(255,255,255,.66); }
.doctor-directory-hero {
    background: radial-gradient(circle at 92% 10%, rgba(242,122,26,.16), transparent 25%), linear-gradient(135deg, #edf5fc, #fff);
    border: 1px solid rgba(31,111,178,.12);
    border-radius: 1rem;
    padding: clamp(1.25rem, 3vw, 2.2rem);
}
.directory-trust-card {
    align-items: center;
    background: rgba(255,255,255,.82);
    border: 1px solid rgba(31,111,178,.14);
    border-radius: .9rem;
    display: flex;
    gap: .9rem;
    padding: 1rem;
}
.directory-trust-card > i { color: #18864b; font-size: 1.7rem; }
.directory-trust-card strong, .directory-trust-card span { display: block; }
.directory-trust-card span { color: var(--appt-muted); font-size: .8rem; }
.category-directory {
    display: grid;
    gap: .55rem;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    max-height: 310px;
    overflow-y: auto;
    padding: .1rem .25rem .1rem .1rem;
}
.category-directory-link {
    align-items: center;
    background: #f7fafc;
    border: 1px solid #dfe8f1;
    border-radius: .72rem;
    color: var(--appt-ink);
    display: flex;
    font-size: .78rem;
    font-weight: 650;
    gap: .55rem;
    min-height: 48px;
    padding: .65rem .72rem;
    text-decoration: none;
}
.category-directory-link i { color: var(--appt-blue); font-size: 1rem; }
.category-directory-link:hover, .category-directory-link.active {
    background: #e8f3fb;
    border-color: rgba(31,111,178,.4);
    color: var(--appt-navy);
}
.doctor-directory-card { transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.doctor-directory-card:hover { border-color: rgba(31,111,178,.28); box-shadow: 0 15px 35px rgba(15,39,66,.11); transform: translateY(-2px); }
.doctor-avatar {
    align-items: center;
    background: linear-gradient(145deg, #e7f2fb, #fff0e4);
    border: 1px solid rgba(31,111,178,.1);
    border-radius: 1rem;
    color: var(--appt-blue);
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 1.45rem;
    height: 54px;
    justify-content: center;
    width: 54px;
}
.doctor-avatar--large { border-radius: 1.35rem; font-size: 2.4rem; height: 92px; width: 92px; }
.doctor-avatar--small { border-radius: .65rem; font-size: 1rem; height: 38px; width: 38px; }
.doctor-speciality { color: var(--appt-blue); font-weight: 700; }
.speciality-chip {
    background: #edf4fa;
    border: 1px solid #d9e7f2;
    border-radius: 999px;
    color: #31516d;
    display: inline-block;
    font-size: .68rem;
    font-weight: 700;
    padding: .26rem .55rem;
}
.directory-meta { border-top: 1px solid #e8eef4; padding-top: .85rem; }
.directory-meta > div { align-items: flex-start; color: var(--appt-muted); display: flex; font-size: .78rem; gap: .55rem; margin-top: .35rem; }
.directory-meta i { color: var(--appt-blue); }
.doctor-profile-header { background: linear-gradient(135deg, #fff, #eef6fc); }
.profile-practice-block { background: #f7fafc; border: 1px solid #dfe8f1; border-radius: .85rem; min-width: 230px; padding: 1rem; }
.profile-practice-block span, .profile-practice-block strong, .profile-practice-block small { display: block; }
.profile-practice-block span { color: var(--appt-muted); font-size: .68rem; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.profile-practice-block strong { color: var(--appt-navy); margin: .2rem 0; }
.profile-practice-block small { color: var(--appt-muted); }
.clinic-location-card { align-items: flex-start; border-bottom: 1px solid #e8eef4; display: flex; gap: .8rem; padding: 1rem 0; }
.clinic-location-card:last-child { border-bottom: 0; }
.clinic-location-card > i { color: var(--appt-orange); font-size: 1.1rem; }
.clinic-location-card strong, .clinic-location-card span, .clinic-location-card small { display: block; }
.clinic-location-card span { color: var(--appt-muted); font-size: .8rem; margin-top: .15rem; }
.clinic-location-card small { background: #fff7ed; border-radius: .4rem; color: #8a4b15; margin-top: .45rem; padding: .35rem .5rem; }
.availability-list > div { align-items: baseline; border-bottom: 1px solid #e8eef4; display: grid; gap: .6rem; grid-template-columns: 92px 88px 1fr; padding: .65rem 0; }
.availability-list > div:last-child { border-bottom: 0; }
.availability-list span { color: var(--appt-blue); font-weight: 700; }
.availability-list small { color: var(--appt-muted); }
.booking-consent-panel { background: #f6f9fc; border: 1px solid #dbe6ef; border-radius: .85rem; padding: 1rem; }
.health-profile-textarea { min-height: 125px; resize: vertical; }
.patient-health-timeline { position: relative; }
.health-timeline-year {
    color: var(--appt-navy);
    font-size: 1.05rem;
    font-weight: 800;
    margin: 1rem 0 .6rem 5rem;
}
.health-timeline-entry { display: grid; gap: 1rem; grid-template-columns: 64px 1fr; margin-bottom: 1rem; position: relative; }
.health-timeline-entry::before { background: #dce8f2; bottom: -1.15rem; content: ""; left: 31px; position: absolute; top: 58px; width: 2px; }
.health-timeline-entry:last-child::before { display: none; }
.health-timeline-date {
    align-items: center;
    background: #e9f3fb;
    border: 1px solid #d3e5f2;
    border-radius: .75rem;
    color: var(--appt-blue);
    display: flex;
    flex-direction: column;
    height: 58px;
    justify-content: center;
    line-height: 1.05;
    position: relative;
    z-index: 1;
}
.health-timeline-date span { font-size: .7rem; font-weight: 800; text-transform: uppercase; }
.health-timeline-date strong { color: var(--appt-navy); font-size: .82rem; margin-top: .15rem; }
.health-timeline-content { background: #f8fafc; border: 1px solid #e0e8f0; border-radius: .85rem; padding: 1rem; }
.health-timeline-details { color: #435268; font-size: .88rem; line-height: 1.6; margin-top: .65rem; white-space: normal; }
.health-entry-editor { position: relative; }
.health-entry-editor > summary { list-style: none; }
.health-entry-editor > summary::-webkit-details-marker { display: none; }
.health-entry-editor-panel {
    background: white;
    border: 1px solid #dbe4ed;
    border-radius: .85rem;
    box-shadow: 0 18px 45px rgba(15,39,66,.16);
    margin-top: .55rem;
    padding: 1rem;
    position: absolute;
    right: 0;
    top: 100%;
    width: min(560px, calc(100vw - 4rem));
    z-index: 20;
}
.patient-health-timeline--compact .health-timeline-entry { grid-template-columns: 58px 1fr; }
.patient-health-timeline--compact .health-timeline-content { padding: .85rem; }
.granted-doctor-row, .doctor-access-result {
    align-items: center;
    border-bottom: 1px solid #e8eef4;
    display: flex;
    gap: .75rem;
    padding: .8rem 0;
}
.granted-doctor-row:last-child, .doctor-access-result:last-child { border-bottom: 0; }
.granted-doctor-row > i { color: #18864b; font-size: 1.15rem; }
.granted-doctor-row strong, .granted-doctor-row span, .doctor-access-result strong, .doctor-access-result span { display: block; }
.granted-doctor-row span, .doctor-access-result span { color: var(--appt-muted); font-size: .76rem; }
.shared-health-field { background: #f8fafc; border: 1px solid #e1e8ef; border-radius: .75rem; height: 100%; padding: .85rem; }
.shared-health-field > span { color: var(--appt-muted); display: block; font-size: .7rem; font-weight: 750; letter-spacing: .04em; margin-bottom: .35rem; text-transform: uppercase; }
.shared-health-field > div { font-size: .87rem; line-height: 1.55; }
.doctor-category-assignment-grid { display: grid; gap: .55rem; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); max-height: 430px; overflow-y: auto; padding: .15rem; }
.doctor-category-assignment { align-items: center; background: #f8fafc; border: 1px solid #e1e8ef; border-radius: .7rem; cursor: pointer; display: flex; gap: .65rem; padding: .65rem; }
.doctor-category-assignment > span:nth-child(2) { flex: 1; }
.doctor-category-assignment strong, .doctor-category-assignment small { display: block; }
.doctor-category-assignment small { color: var(--appt-muted); font-size: .68rem; }
.primary-category-choice { align-items: center; display: flex; flex-direction: column; gap: .1rem; }
.category-admin-icon {
    align-items: center;
    background: #e8f3fb;
    border-radius: .6rem;
    color: var(--appt-blue);
    display: inline-flex;
    height: 36px;
    justify-content: center;
    margin-right: .75rem;
    width: 36px;
}
.print-only { display: none; }

@media (max-width: 991.98px) {
    .app-sidebar { transform: translateX(-100%); transition: transform .25s ease; }
    .app-sidebar.show { transform: translateX(0); }
    .app-main { margin-left: 0; }
    .app-content { padding-bottom: 5rem; }
    .dashboard-mock { transform: none; }
    .sticky-actions { position: static; }
}

@media (max-width: 575.98px) {
    .app-topbar { height: 64px; }
    .page-title { font-size: 1.45rem; }
    .card-body { padding: 1rem; }
    .table-responsive .table { min-width: 680px; }
    .btn-mobile-block { width: 100%; }
    .impersonation-banner { align-items: stretch; flex-direction: column; }
    .analog-clock { height: 210px; width: 210px; }
    .clock-number {
        transform: rotate(var(--clock-angle)) translateY(-76px) rotate(calc(-1 * var(--clock-angle)));
    }
    .analog-clock--compact { height: 150px; width: 150px; }
    .analog-clock--compact .clock-number {
        transform: rotate(var(--clock-angle)) translateY(-54px) rotate(calc(-1 * var(--clock-angle)));
    }
    .compact-picker-panel {
        bottom: .75rem;
        left: .75rem !important;
        max-height: calc(100vh - 90px);
        overflow-y: auto;
        position: fixed;
        right: .75rem !important;
        top: 72px;
        width: auto !important;
    }
    .appointment-picker--inline .compact-picker-panel {
        bottom: auto;
        left: auto !important;
        max-height: none;
        overflow: visible;
        position: static;
        right: auto !important;
        top: auto;
        width: 100% !important;
    }
    .queue-update-drawer__toggle { align-items: flex-start; padding: .9rem 1rem; }
    .queue-update-drawer__action [data-queue-drawer-label] { display: none; }
    .queue-update-drawer__identity .small { font-size: .75rem; }
    .medicine-repository-search { min-width: 100%; }
    .category-directory { grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: 360px; }
    .doctor-avatar--large { height: 72px; width: 72px; }
    .health-entry-editor-panel { position: fixed; inset: 76px .75rem auto; max-height: calc(100vh - 92px); overflow-y: auto; width: auto; }
    .doctor-access-result { align-items: flex-start; flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
    .queue-update-drawer__panel,
    .queue-update-drawer__chevron { transition: none; }
}

@media print {
    body { background: white; }
    .no-print { display: none !important; }
    .print-only { display: block; }
    .card { box-shadow: none; }
}
