:root {
  --navy: #003274;
  --navy-deep: #001c45;
  --royal: #0b63dc;
  --blue: #176be8;
  --sky: #8dbbfa;
  --ice: #eaf3ff;
  --paper: #f5f8fc;
  --white: #ffffff;
  --ink: #071a33;
  --muted: #60718a;
  --line: #d9e3f1;
  --success: #17724e;
  --danger: #b42318;
  --warning: #8a5b00;
  --shadow: 0 28px 80px rgba(0, 40, 95, 0.16);
  --shadow-soft: 0 14px 42px rgba(0, 50, 116, 0.10);
  --radius: 28px;
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--paper); }
body { margin: 0; min-width: 320px; min-height: 100vh; color: var(--ink); background: radial-gradient(circle at 82% 4%, rgba(141, 187, 250, .24), transparent 26rem), linear-gradient(180deg, #f9fbff 0%, var(--paper) 100%); }
button, input, textarea, select { font: inherit; }
a { color: inherit; }
svg { display: block; }
[hidden] { display: none !important; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 1000; top: 12px; left: 12px; padding: 11px 15px; border-radius: 10px; color: var(--navy); background: #fff; transform: translateY(-160%); transition: transform .16s ease; font-weight: 800; box-shadow: var(--shadow-soft); }
.skip-link:focus { transform: translateY(0); }

.site-header { width: 100%; border-bottom: 1px solid rgba(0, 50, 116, .09); background: rgba(255, 255, 255, .88); backdrop-filter: blur(18px); }
.site-header__inner, .site-footer__inner { width: min(1440px, calc(100% - 56px)); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.site-header__inner { min-height: 96px; }
.brand { display: inline-flex; align-items: center; width: 184px; text-decoration: none; }
.brand img { width: 100%; height: auto; display: block; }
.header-actions { display: flex; align-items: center; gap: 10px; font-size: .86rem; font-weight: 750; }
.header-actions a { padding: 11px 15px; border-radius: 999px; color: var(--navy); text-decoration: none; }
.header-actions a:hover { background: var(--ice); }
.header-actions a:first-child { border: 1px solid rgba(0, 50, 116, .15); background: #fff; }

.booking-shell { position: relative; width: min(1220px, calc(100% - 48px)); min-height: 650px; margin: 42px auto 0; display: grid; grid-template-columns: minmax(330px, .92fr) minmax(350px, 1fr) minmax(350px, 1fr); overflow: hidden; border: 1px solid rgba(0, 50, 116, .12); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.meeting-panel, .calendar-panel, .times-panel { min-width: 0; padding: 36px 34px; }
.meeting-panel { position: relative; overflow: hidden; color: #fff; background: linear-gradient(150deg, var(--navy-deep) 0%, var(--navy) 65%, #064aa8 100%); }
.meeting-panel__glow { position: absolute; width: 330px; height: 330px; right: -150px; bottom: -160px; border-radius: 50%; background: rgba(141, 187, 250, .20); filter: blur(4px); pointer-events: none; }
.calendar-panel, .times-panel { background: rgba(255, 255, 255, .98); }
.times-panel { border-left: 1px solid var(--line); }

.host-row { position: relative; display: flex; align-items: center; gap: 12px; margin-bottom: 46px; }
.host-row > div { display: grid; gap: 2px; }
.host-label { color: rgba(255,255,255,.58); font-size: .71rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.host-row strong { font-size: .95rem; }
.organizer-avatar { display: inline-grid; place-items: center; width: 46px; height: 46px; flex: 0 0 auto; border: 1px solid rgba(255,255,255,.24); border-radius: 50%; color: var(--navy-deep); background: var(--sky); font-size: .83rem; font-weight: 900; box-shadow: 0 12px 26px rgba(0,0,0,.12); }
.meeting-kicker, .panel-eyebrow, .form-eyebrow, .eyebrow { margin: 0 0 10px; font-size: .72rem; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }
.meeting-kicker { color: var(--sky); }
h1, h2, h3 { margin-top: 0; letter-spacing: -.035em; }
.meeting-panel h1 { position: relative; max-width: 330px; margin-bottom: 20px; font-size: clamp(2.25rem, 4vw, 3.7rem); line-height: .98; }
.meeting-description { position: relative; margin: 0 0 16px; color: rgba(255,255,255,.78); font-size: .99rem; line-height: 1.65; }
.change-note { position: relative; margin: 0 0 38px; color: rgba(255,255,255,.55); font-size: .82rem; line-height: 1.55; }

.meeting-facts { position: relative; display: grid; gap: 13px; margin: 0; padding: 0; list-style: none; }
.meeting-facts li { display: flex; align-items: center; gap: 11px; color: rgba(255,255,255,.88); font-size: .88rem; }
.fact-icon { display: grid; place-items: center; width: 36px; height: 36px; flex: 0 0 auto; border: 1px solid rgba(255,255,255,.16); border-radius: 12px; background: rgba(255,255,255,.08); }
.meeting-facts svg, .privacy-note svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.timezone-row { align-items: flex-start !important; }
.timezone-label { flex: 1; min-width: 0; padding-top: 8px; }
.timezone-label select, .time-format-label select { width: 100%; border: 0; background: transparent; color: inherit; padding: 0 20px 0 0; outline: none; cursor: pointer; }
.timezone-label select { max-width: 245px; color: rgba(255,255,255,.88); }
.timezone-label select option { color: var(--ink); background: #fff; }
.timezone-label select:focus, .time-format-label select:focus { outline: 3px solid rgba(141,187,250,.45); outline-offset: 4px; border-radius: 4px; }

.privacy-note { position: relative; display: flex; gap: 11px; margin-top: 38px; padding: 16px; border: 1px solid rgba(255,255,255,.13); border-radius: 16px; background: rgba(255,255,255,.07); color: var(--sky); }
.privacy-note p { margin: 0; color: rgba(255,255,255,.68); font-size: .76rem; line-height: 1.52; }

.scheduler-columns { grid-column: 2 / 4; display: grid; grid-template-columns: minmax(350px, 1fr) minmax(350px, 1fr); min-width: 0; }
.panel-heading, .times-heading { min-height: 52px; display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.panel-eyebrow, .form-eyebrow, .eyebrow { color: var(--royal); }
.panel-heading h2, .times-heading h2 { margin: 0; color: var(--navy); font-size: 1.28rem; }
.month-controls { display: flex; gap: 7px; }
.icon-button, .back-button, .primary, .secondary, .slot-button, .date-button { border: 0; cursor: pointer; transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .12s ease, opacity .15s ease, box-shadow .15s ease; }
.icon-button { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--navy); }
.icon-button svg, .back-button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-button:hover:not(:disabled) { border-color: var(--sky); background: var(--ice); color: var(--royal); }
.icon-button:disabled { cursor: not-allowed; opacity: .32; }

.weekday-row, .month-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.weekday-row { margin: 28px 0 15px; color: #8290a4; font-size: .72rem; font-weight: 850; text-align: center; }
.month-grid { row-gap: 12px; }
.date-button { position: relative; width: 39px; height: 39px; justify-self: center; display: grid; place-items: center; border: 1px solid transparent; border-radius: 50%; background: transparent; color: #63738a; font-size: .86rem; }
.date-button:hover:not(:disabled) { background: var(--ice); color: var(--navy); }
.date-button.has-slots { color: var(--royal); background: rgba(23,107,232,.08); font-weight: 750; }
.date-button.is-today { color: #fff; background: var(--royal); font-weight: 850; }
.date-button[aria-pressed="true"] { border-color: var(--royal); color: #fff; background: var(--navy); box-shadow: 0 8px 22px rgba(0,50,116,.20); }
.date-button.is-today[aria-pressed="true"] { color: #fff; background: var(--navy); }
.date-button.outside-month { visibility: hidden; pointer-events: none; }
.date-button:disabled { cursor: not-allowed; opacity: .28; }
.calendar-note { margin: 30px 0 0; padding-top: 20px; border-top: 1px solid var(--line); color: #8290a4; font-size: .72rem; line-height: 1.5; }

.times-heading { margin-bottom: 24px; }
.time-format-label { width: 72px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 12px; color: var(--navy); background: #fff; font-size: .78rem; font-weight: 800; }
.slot-list { display: grid; gap: 11px; max-height: 490px; padding-right: 4px; overflow-y: auto; }
.slot-button { width: 100%; min-height: 46px; padding: 11px 14px; border: 1px solid #cfdced; border-radius: 13px; background: #fff; color: var(--navy); box-shadow: 0 4px 14px rgba(0,50,116,.06); font-size: .88rem; font-weight: 800; }
.slot-button:hover, .slot-button[aria-pressed="true"] { border-color: var(--royal); color: #fff; background: var(--royal); transform: translateY(-1px); box-shadow: 0 10px 24px rgba(23,107,232,.20); }

.empty-state { min-height: 450px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.empty-illustration { width: 145px; height: auto; margin-bottom: 13px; }
.empty-leaf { fill: var(--sky); }.empty-stem { fill: none; stroke: var(--sky); stroke-width: 3; stroke-linecap: round; }.calendar-shadow { fill: var(--navy); opacity: .92; }.calendar-body { fill: var(--royal); }.calendar-top { fill: var(--blue); }.calendar-dots rect { fill: #bcd7ff; }.pencil { fill: var(--sky); }.pencil-tip { fill: #3e7bd0; }
.empty-state h3 { margin: 0; color: var(--navy); }.empty-state p { max-width: 300px; margin: 10px 0 18px; color: var(--muted); font-size: .88rem; line-height: 1.55; }

.primary, .secondary, .button-link { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; border-radius: 999px; padding: 11px 19px; font-weight: 850; text-decoration: none; }
.primary { color: #fff; background: var(--royal); box-shadow: 0 12px 28px rgba(23,107,232,.18); }
.primary:hover:not(:disabled) { background: var(--navy); transform: translateY(-1px); }
.primary:disabled { cursor: wait; opacity: .58; }
.primary.compact { min-height: 40px; padding: 9px 16px; font-size: .8rem; }
.secondary { border: 1px solid var(--line); color: var(--navy); background: #fff; }
.secondary:hover { border-color: var(--sky); background: var(--ice); }
.danger { background: var(--danger); }.danger:hover:not(:disabled) { background: #8d1b13; }

.booking-form { padding-top: 1px; }
.back-button { display: inline-flex; align-items: center; gap: 5px; margin: 0 0 21px -5px; padding: 5px; color: var(--royal); background: transparent; font-size: .8rem; font-weight: 800; }
.booking-form h2 { margin-bottom: 0; color: var(--navy); font-size: 1.45rem; }
.selected-time-summary { margin: 8px 0 21px; color: var(--muted); font-size: .85rem; line-height: 1.45; }
.booking-form > label:not(.consent-row) { display: grid; gap: 7px; margin-bottom: 13px; color: var(--ink); font-size: .78rem; font-weight: 800; }
input, textarea { width: 100%; border: 1px solid #cbd8e8; border-radius: 13px; color: var(--ink); background: #fff; padding: 11px 12px; outline: none; }
input:focus, textarea:focus { border-color: var(--royal); box-shadow: 0 0 0 4px rgba(23,107,232,.11); }
textarea { min-height: 104px; resize: vertical; }
.consent-row { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; margin: 17px 0; color: var(--muted); font-size: .72rem; line-height: 1.5; }
.consent-row input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--royal); }
.consent-row a { color: var(--royal); font-weight: 800; }
.booking-submit { width: 100%; border-radius: 14px; }
.status { min-height: 1.2em; margin: 11px 0 0; color: var(--danger); font-size: .78rem; line-height: 1.45; }

.state-panel { grid-column: 2 / 4; min-height: 650px; display: grid; place-items: center; align-content: center; gap: 12px; text-align: center; background: #fff; }
.state-panel p { max-width: 360px; margin: 0; color: var(--muted); }
.spinner { width: 38px; height: 38px; border: 3px solid var(--line); border-top-color: var(--royal); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.error-icon { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; color: var(--danger); background: #fff0ee; font-weight: 900; }
.error-state h2 { margin: 0; color: var(--navy); }

.confirmation { min-height: 520px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.confirmation-icon { width: 62px; height: 62px; display: grid; place-items: center; margin-bottom: 20px; border-radius: 50%; color: var(--success); background: #e7f7ef; font-size: 1.6rem; font-weight: 900; }
.confirmation h2 { margin-bottom: 5px; color: var(--navy); font-size: 1.65rem; }.confirmation p { max-width: 330px; color: var(--muted); line-height: 1.55; }.confirmation-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 13px; }

.site-footer { padding: 28px 0 34px; }
.site-footer__inner { justify-content: center; flex-wrap: wrap; gap: 10px 18px; color: #738197; font-size: .75rem; }
.site-footer a { color: var(--navy); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

.simple-page { width: min(820px, calc(100% - 36px)); margin: 0 auto; padding: 52px 0 70px; }
.simple-page > .brand { margin-bottom: 24px; }
.simple-card { padding: clamp(28px, 5vw, 54px); border: 1px solid rgba(0,50,116,.12); border-radius: 28px; background: #fff; box-shadow: var(--shadow-soft); }
.simple-card h1 { max-width: 680px; color: var(--navy); font-size: clamp(2.1rem, 5vw, 4rem); line-height: 1; }
.simple-card p, .simple-card li { color: var(--muted); line-height: 1.72; }
.simple-card h2 { margin: 32px 0 10px; color: var(--navy); font-size: 1.25rem; }
.simple-card a:not(.button-link) { color: var(--royal); }
.legal-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.admin-list { margin: 28px 0; }.admin-list div { display: grid; grid-template-columns: 165px 1fr; gap: 20px; padding: 15px 0; border-top: 1px solid var(--line); }.admin-list dt { color: var(--muted); }.admin-list dd { margin: 0; font-weight: 750; overflow-wrap: anywhere; }.pill { display: inline-flex; align-items: center; border-radius: 999px; padding: 7px 11px; color: var(--navy); background: var(--ice); font-size: .8rem; font-weight: 800; }.pill.good { color: var(--success); background: #e7f7ef; }.pill.warning { color: var(--warning); background: #fff4d6; }.admin-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }.admin-actions form { margin: 0; }.small-note { font-size: .82rem; }

@media (max-width: 1050px) {
  .booking-shell { grid-template-columns: 1fr; }
  .meeting-panel { grid-column: 1; }
  .scheduler-columns, .state-panel { grid-column: 1; }
  .scheduler-columns { grid-template-columns: minmax(340px, 1fr) minmax(340px, 1fr); }
  .meeting-panel { display: grid; grid-template-columns: 1fr 1fr; column-gap: 46px; align-items: start; }
  .host-row, .meeting-kicker, .meeting-panel h1, .meeting-description, .change-note { grid-column: 1; }
  .meeting-facts, .privacy-note { grid-column: 2; }
  .meeting-facts { grid-row: 1 / span 5; margin-top: 12px; }
  .privacy-note { margin-top: 25px; }
  .state-panel { min-height: 430px; }
}

@media (max-width: 760px) {
  .site-header__inner, .site-footer__inner, .booking-shell { width: min(100% - 24px, 1220px); }
  .site-header__inner { min-height: 78px; }
  .brand { width: 153px; }
  .header-actions a:first-child { display: none; }
  .booking-shell { margin-top: 20px; border-radius: 20px; }
  .meeting-panel { display: block; }
  .scheduler-columns { grid-template-columns: 1fr; }
  .times-panel { border-top: 1px solid var(--line); border-left: 0; }
  .meeting-panel, .calendar-panel, .times-panel { padding: 30px 24px; }
  .host-row { margin-bottom: 36px; }
  .meeting-panel h1 { max-width: 520px; }
  .state-panel { min-height: 420px; padding: 30px 22px; }
  .site-footer__inner { gap: 8px 14px; }
}

@media (max-width: 440px) {
  .header-actions a { padding: 8px 10px; }
  .booking-shell { width: calc(100% - 16px); }
  .meeting-panel, .calendar-panel, .times-panel { padding: 27px 19px; }
  .meeting-panel h1 { font-size: 2.45rem; }
  .date-button { width: 36px; height: 36px; }
  .month-grid { row-gap: 8px; }
  .simple-card { padding: 28px 21px; }
  .admin-list div { grid-template-columns: 1fr; gap: 5px; }
  .legal-actions, .confirmation-actions { display: grid; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Multi-calendar administration */
.admin-shell { width: min(1240px, calc(100% - 48px)); margin: 0 auto; padding: 42px 0 72px; }
.admin-header { display: grid; grid-template-columns: 190px minmax(0, 1fr) auto; align-items: center; gap: 34px; margin-bottom: 28px; padding: 26px 30px; border: 1px solid rgba(0,50,116,.12); border-radius: 24px; background: rgba(255,255,255,.92); box-shadow: var(--shadow-soft); }
.admin-header .brand { width: 176px; }
.admin-header h1 { margin: 0 0 8px; color: var(--navy); font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1; }
.admin-header p { max-width: 720px; margin: 0; color: var(--muted); line-height: 1.55; }
.admin-header .eyebrow { margin-bottom: 8px; }
.admin-notice { margin: 0 0 22px; padding: 15px 18px; border: 1px solid var(--line); border-radius: 14px; background: #fff; font-weight: 750; }
.admin-notice.success { border-color: #b7e3ce; color: var(--success); background: #edf9f3; }
.admin-notice.error { border-color: #f0c4bf; color: var(--danger); background: #fff3f1; }
.admin-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 22px; }
.admin-metrics article { min-height: 126px; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; padding: 22px; border: 1px solid rgba(0,50,116,.11); border-radius: 20px; background: #fff; box-shadow: 0 10px 28px rgba(0,50,116,.07); }
.admin-metrics span { color: var(--muted); font-size: .78rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.admin-metrics strong { color: var(--navy); font-size: clamp(1.45rem, 3vw, 2.35rem); line-height: 1.08; overflow-wrap: anywhere; }
.admin-card { margin-top: 22px; padding: clamp(24px, 4vw, 38px); border: 1px solid rgba(0,50,116,.12); border-radius: 24px; background: #fff; box-shadow: var(--shadow-soft); }
.admin-section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 25px; }
.admin-section-heading h2 { margin: 0 0 7px; color: var(--navy); font-size: clamp(1.55rem, 3vw, 2.2rem); }
.admin-section-heading p { max-width: 760px; margin: 0; color: var(--muted); line-height: 1.55; }
.provider-button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; padding: 11px 16px; border: 1px solid var(--line); border-radius: 13px; text-decoration: none; font-size: .86rem; font-weight: 850; white-space: nowrap; }
.provider-button.google { color: var(--navy); background: #fff; }
.provider-button.microsoft { color: #fff; border-color: var(--navy); background: var(--navy); }
.provider-button:hover { transform: translateY(-1px); box-shadow: 0 9px 22px rgba(0,50,116,.13); }
.account-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.account-card { padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(180deg, #fff, #f9fbff); }
.account-card__top { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.account-card__top > div { min-width: 0; display: grid; gap: 3px; }
.account-card__top strong { color: var(--navy); overflow-wrap: anywhere; }
.account-card__top > div span { color: var(--muted); font-size: .78rem; }
.provider-mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; font-weight: 900; }
.provider-mark.google { color: var(--royal); background: var(--ice); }
.provider-mark.microsoft { color: #fff; background: var(--navy); }
.account-card > p { margin: 14px 0 0; color: var(--muted); font-size: .8rem; }
.account-error { padding: 10px 12px; border-radius: 10px; color: var(--danger) !important; background: #fff1ef; overflow-wrap: anywhere; }
.account-card__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-top: 17px; }
.account-card__actions form { margin: 0; }
.text-button { border: 0; background: transparent; cursor: pointer; font-weight: 800; }
.danger-text { color: var(--danger); }
.admin-empty { grid-column: 1 / -1; padding: 30px; border: 1px dashed #b8c9df; border-radius: 18px; text-align: center; background: var(--paper); }
.admin-empty h3 { margin: 0; color: var(--navy); }
.admin-empty p { max-width: 600px; margin: 9px auto 0; color: var(--muted); }
.calendar-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 17px; }
.calendar-table { width: 100%; min-width: 780px; border-collapse: collapse; }
.calendar-table th, .calendar-table td { padding: 16px 18px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.calendar-table tr:last-child td { border-bottom: 0; }
.calendar-table th { color: #718199; background: #f7faff; font-size: .72rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.calendar-table td strong { color: var(--navy); }
.calendar-table td small { display: block; margin-top: 4px; color: var(--muted); overflow-wrap: anywhere; }
.mini-pill { display: inline-flex; margin-left: 8px; padding: 3px 7px; border-radius: 999px; color: var(--royal); background: var(--ice); font-size: .66rem; font-weight: 850; text-transform: uppercase; }
.provider-inline { display: inline-flex; padding: 5px 8px; border-radius: 8px; font-size: .74rem; font-weight: 850; }
.provider-inline.google { color: var(--royal); background: var(--ice); }
.provider-inline.microsoft { color: #fff; background: var(--navy); }
.toggle-control, .radio-control { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.toggle-control input, .radio-control input { position: absolute; opacity: 0; pointer-events: none; }
.toggle-control span { position: relative; width: 43px; height: 24px; border-radius: 999px; background: #cbd7e6; transition: .16s ease; }
.toggle-control span::after { content: ''; position: absolute; width: 18px; height: 18px; top: 3px; left: 3px; border-radius: 50%; background: #fff; box-shadow: 0 2px 7px rgba(0,0,0,.18); transition: .16s ease; }
.toggle-control input:checked + span { background: var(--royal); }
.toggle-control input:checked + span::after { transform: translateX(19px); }
.radio-control span { width: 20px; height: 20px; display: grid; place-items: center; border: 2px solid #b9c8dc; border-radius: 50%; }
.radio-control span::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--royal); transform: scale(0); transition: .14s ease; }
.radio-control input:checked + span { border-color: var(--royal); }
.radio-control input:checked + span::after { transform: scale(1); }
.toggle-control em, .radio-control em { color: var(--muted); font-size: .76rem; font-style: normal; font-weight: 800; }
.toggle-control input:focus-visible + span, .radio-control input:focus-visible + span { outline: 3px solid rgba(23,107,232,.28); outline-offset: 3px; }
.toggle-control input:disabled + span, .radio-control input:disabled + span { opacity: .4; }
.admin-save-row { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin-top: 20px; }
.admin-save-row p { max-width: 760px; margin: 0; color: var(--muted); font-size: .82rem; line-height: 1.55; }
.admin-assurance { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; color: #fff; background: linear-gradient(140deg, var(--navy-deep), var(--navy)); }
.admin-assurance div { display: grid; gap: 7px; padding: 10px; }
.admin-assurance strong { color: var(--sky); }
.admin-assurance span { color: rgba(255,255,255,.72); font-size: .84rem; line-height: 1.5; }

@media (max-width: 980px) {
  .admin-header { grid-template-columns: 160px 1fr; }
  .admin-header > .button-link { grid-column: 2; justify-self: start; }
  .admin-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-section-heading { display: grid; }
  .admin-assurance { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .admin-shell { width: min(100% - 20px, 1240px); padding-top: 18px; }
  .admin-header { grid-template-columns: 1fr; padding: 24px 20px; }
  .admin-header > .button-link { grid-column: 1; }
  .admin-metrics, .account-grid { grid-template-columns: 1fr; }
  .admin-card { padding: 23px 17px; }
  .admin-actions, .admin-save-row { display: grid; align-items: stretch; }
  .provider-button, .admin-save-row .primary { width: 100%; }
  .account-card__top { grid-template-columns: 42px minmax(0, 1fr); }
  .account-card__top .pill { grid-column: 2; justify-self: start; }
}
