@font-face {
    font-family: "DM Sans";
    src: url("fonts/dm-sans-latin.woff2") format("woff2");
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
}
@font-face {
    font-family: "Source Serif 4";
    src: url("fonts/source-serif-4-latin.woff2") format("woff2");
    font-style: normal;
    font-weight: 400 650;
    font-display: swap;
}

:root {
    color-scheme: light;
    --navy: #10223c;
    --navy-deep: #0a192e;
    --ink: #172b46;
    --muted: #526379;
    --gold: #d6ab58;
    --gold-dark: #795517;
    --warm: #fbf4e6;
    --background: #f4f6f9;
    --border: #dce3ec;
    --white: #fff;
    --good: #17563c;
    --danger: #8b292e;
    --radius: 14px;
    --shadow: 0 12px 28px rgba(16, 34, 60, .055);
    --display-font: "Source Serif 4", Georgia, "Times New Roman", serif;
    font-family: "DM Sans", "Segoe UI", "Nirmala UI", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.52;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--background); }
[hidden] { display: none !important; }
a { color: #214f84; text-underline-offset: .22em; }
a:hover { color: var(--navy-deep); }
button, input, select, textarea { font: inherit; }
button, summary { cursor: pointer; }
button:disabled { cursor: default; }
:focus-visible { outline: 3px solid #296ab0; outline-offset: 3px; }
h1, h2, h3, p, dl { margin: 0; }
h2 { font-size: 1.4rem; font-weight: 780; letter-spacing: -.025em; line-height: 1.2; }
h3 { font-size: 1.04rem; }
p + p, h2 + p { margin-top: .65rem; }
small, .muted { color: var(--muted); }
code { overflow-wrap: anywhere; }
.skip { position: absolute; z-index: 10; top: .75rem; left: .75rem; background: #fff; padding: .65rem; transform: translateY(-200%); }
.skip:focus { transform: none; }
.eyebrow { color: var(--gold-dark); font-weight: 750; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; }
.button, .icon-button {
    display: inline-flex; align-items: center; justify-content: center; gap: .35rem; min-height: 44px;
    padding: .62rem 1.05rem; border: 1px solid var(--navy); border-radius: 8px;
    background: var(--navy); color: white; text-decoration: none; font-weight: 760;
    line-height: 1.28; text-align: center; transition: background-color .16s, border-color .16s;
}
.button:hover, .icon-button:hover { background: #233d60; border-color: #233d60; color: white; }
.button:disabled, .icon-button:disabled { opacity: .5; }
.button.secondary, .icon-button { background: white; border-color: #bdcadb; color: var(--ink); }
.button.secondary:hover, .icon-button:hover { background: #eef3fa; border-color: #7793b3; color: var(--ink); }
.button.small { padding: .43rem .75rem; min-height: 38px; font-size: .9rem; }
.button.danger { background: white; border-color: #d8a1a5; color: var(--danger); }
.button.danger:hover { background: #fcecef; }
.link-button { border: 0; background: none; color: #214f84; padding: .18rem .1rem; text-decoration: underline; text-underline-offset: .22em; font-weight: 650; }
.link-button:disabled { color: var(--muted); opacity: .65; }
.quiet-link { font-weight: 650; font-size: .91rem; }
.surface { min-width: 0; padding: clamp(1rem, 2.5vw, 1.7rem); background: white; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.section-head { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: .85rem; margin-bottom: 1rem; }
.section-head h2 + p { margin-top: .35rem; }
.section-head .quiet-link + h2 { margin-top: .3rem; }
.spaced { margin-top: 1rem; }
.notice { padding: .7rem .9rem; border-radius: 8px; border: 1px solid #cad8e9; background: #eef4fb; color: #26476b; overflow-wrap: anywhere; }
.notice.error { background: #fff0f1; border-color: #e8b8be; color: var(--danger); }
.notice.success { background: #edf8f1; border-color: #b2ddc2; color: var(--good); }
.brand { display: inline-flex; align-items: center; gap: .85rem; min-width: 0; color: var(--ink); text-decoration: none; }
.brand-panel { display: block; min-width: 0; }
.brand-logo { display: block; width: 100%; height: auto; object-fit: contain; }
.brand-product { display: none; font-size: .92rem; font-weight: 730; line-height: 1.2; }
.public-header .brand-panel { width: clamp(132px, 58vw, 315px); }
.public-header .quiet-link { flex-shrink: 0; }

.public-shell { width: min(1130px, calc(100% - 40px)); margin-inline: auto; }
.public-header { background: white; border-bottom: 1px solid #e3e8ef; }
.public-header-inner { min-height: 88px; padding-block: .55rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.hero { color: white; background: radial-gradient(ellipse at 86% 18%, #27466a 0, transparent 43%), linear-gradient(126deg, #101f35 0%, #10233d 72%); border-bottom: 3px solid var(--gold); }
.hero-inner { min-height: 310px; padding-block: 2.5rem; display: grid; grid-template-columns: minmax(0, 1fr) minmax(245px, .43fr); align-items: center; gap: 2rem; }
.hero .eyebrow { color: #f1ce82; }
.hero h1 { max-width: 19ch; margin-top: .55rem; font: 650 clamp(2.55rem, 6.25vw, 5.1rem)/1.04 var(--display-font); letter-spacing: -.04em; text-wrap: balance; }
.hero p:not(.eyebrow) { color: #d6e0ef; font-size: 1.02rem; margin-top: 1rem; max-width: 53ch; }
.hero-note { align-self: end; justify-self: end; width: min(100%, 285px); padding: 1rem 1.15rem; border: 1px solid #58728d; border-top: 2px solid var(--gold); border-radius: 9px; background: #ffffff0a; }
.hero-note > * { display: block; }
.hero-note strong { color: white; margin-bottom: .3rem; }
.hero-note span { color: #e0e8f4; font-size: .87rem; }
.booking-body { min-height: 471px; padding-block: 1.3rem 2.6rem; }
.booking-steps { list-style: none; display: flex; gap: .45rem; margin: 0 0 1rem; padding: 0; flex-wrap: wrap; }
.booking-steps li { display: inline-flex; align-items: center; gap: .42rem; padding: .35rem .65rem; min-height: 35px; font-size: .9rem; font-weight: 650; color: var(--muted); border: 1px solid transparent; border-radius: 24px; }
.booking-steps li span { font-size: .82rem; display: grid; place-items: center; width: 1.5rem; height: 1.5rem; background: #e4eaf2; border-radius: 50%; }
.booking-steps li[aria-current] { color: var(--navy); background: #fff; border-color: #c9a35a; font-weight: 780; }
.booking-steps li[aria-current] span { color: var(--navy); background: #efd29b; }
.booking-message { margin-bottom: 1rem; }
.booking-grid { display: grid; grid-template-columns: minmax(0, 1.22fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
.calendar-card, .slot-card { min-height: 393px; }
.month-nav { margin-block: 1.1rem .65rem; display: flex; align-items: center; justify-content: space-between; gap: .65rem; }
.icon-button { width: 39px; min-height: 38px; font-size: 1.5rem; padding: 0 0 .1em; }
.calendar-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .36rem; }
.calendar-days > span { text-align: center; }
.calendar-days[aria-hidden] { font-size: .8rem; font-weight: 650; color: var(--muted); margin-bottom: .25rem; }
.calendar-day { min-height: 39px; border: 1px solid transparent; border-radius: 7px; color: var(--ink); background: #eef3f9; font-weight: 700; }
.calendar-day:not(:disabled):hover { background: #f8ead0; border-color: #c69542; }
.calendar-day:disabled { color: #697688; background: #f7f8fa; }
.calendar-day[aria-current]:not(:disabled) { border-color: #b38537; }
.calendar-day[aria-pressed=true] { background: var(--navy) !important; color: white; border-color: var(--navy); }
.calendar-key { color: var(--muted); font-size: .83rem; margin-top: .75rem; }
.calendar-key span { display: inline-block; width: .65rem; height: .65rem; border-radius: 2px; margin-right: .3rem; background: #e2ebf6; border: 1px solid #c2d3e8; }
.slot-list { display: grid; gap: .48rem; margin: 1rem 0; }
.slot-option { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .3rem; padding: .55rem .7rem; background: white; border: 1px solid #bdcadb; color: var(--ink); border-radius: 7px; text-align: left; min-height: 44px; }
.slot-option span { color: var(--good); font-size: .82rem; }
.slot-option:disabled { color: var(--muted); background: #f6f7f9; border-color: #e3e8f0; }
.slot-option:disabled span { color: var(--muted); }
.slot-option:not(:disabled):hover, .slot-option[aria-pressed=true] { background: var(--warm); border-color: #bd8d3c; }
.slot-card > .button { width: 100%; }
.faculty-form { max-width: 860px; }
.slot-summary { margin-block: .85rem 1.25rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; padding: .78rem 1rem; border-radius: 8px; border: 1px solid #e4d5b6; background: #fff8ea; }
.slot-summary dt { color: var(--gold-dark); font-weight: 680; font-size: .85rem; }
.slot-summary dd { margin: .15rem 0 0; font-weight: 700; }
.fields, .filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .88rem 1rem; align-items: start; }
.fields > .button { justify-self: start; }
.surface > h2 + .fields, .surface > p + .fields { margin-top: .85rem; }
.field { display: grid; gap: .35rem; font-size: .94rem; font-weight: 740; min-width: 0; }
.field :is(input, select, textarea), .inline-form input {
    min-width: 0; width: 100%; min-height: 43px; padding: .55rem .64rem; border: 1px solid #b8c7d9;
    border-radius: 7px; background-color: white; color: var(--ink); font-size: 1rem; font-weight: 450;
}
.field input[type=file] { font-size: .9rem; padding: .32rem; }
.field input::file-selector-button { font: inherit; font-weight: 650; color: var(--ink); background: #eef3f9; border: 0; border-radius: 5px; padding: .37rem .55rem; margin-right: .5rem; cursor: pointer; }
.field textarea { resize: vertical; }
.field select { appearance: none; padding-right: 2rem; background-image: linear-gradient(45deg, transparent 50%, #56708d 50%), linear-gradient(135deg, #56708d 50%, transparent 50%); background-position: calc(100% - 17px) 51%, calc(100% - 12px) 51%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
.upload-field small { font-weight: 500; font-size: .83rem; }
.span-all { grid-column: 1 / -1; }
.form-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem; }
.inline-form { display: grid; gap: .5rem; margin-block: .8rem; max-width: 420px; }
.inline-form label { font-weight: 700; font-size: .93rem; }
.inline-form .button { justify-self: start; margin-top: .28rem; }
.hold-state { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .8rem; padding: 1rem; background: #f6f8fb; border: 1px solid #dbe4ef; border-radius: 9px; }
.countdown { color: var(--navy); background: #f2deba; border-radius: 8px; padding: .4rem .65rem; font-size: 1.28rem; font-weight: 750; font-variant-numeric: tabular-nums; }
.complete-state { padding: 1rem; background: #f1f6fb; border: 1px solid #d4e2f0; border-radius: 9px; }
.complete-state h3 { font-size: 1.35rem; }
.complete-state .button { margin-top: .9rem; }
.public-footer { background: white; border-top: 1px solid var(--border); color: var(--ink); font-weight: 700; font-size: .9rem; padding-block: 1rem; }
.public-footer span { color: var(--muted); font-weight: 500; margin-left: .85rem; }
.login-shell { padding-block: 3.7rem; display: grid; justify-items: center; }
.sign-in { width: min(100%, 467px); padding: 2rem; }
.sign-in h1 { font: 520 2.65rem/1.05 var(--display-font); margin-top: .45rem; }
.sign-in p:not(.eyebrow) { margin-top: .8rem; color: var(--muted); }
.sign-in a { display: inline-block; margin-top: .45rem; }

.admin-layout { min-height: 100vh; display: grid; grid-template-columns: 246px minmax(0, 1fr); }
.sidebar { display: flex; flex-direction: column; gap: 1.65rem; padding: 1.35rem .88rem 1.1rem; background: var(--navy-deep); color: white; }
.sidebar .brand { width: 100%; flex-direction: column; align-items: flex-start; gap: .68rem; color: white; }
.sidebar .brand-panel { background: white; padding: .55rem; width: 100%; max-width: 238px; border-radius: 8px; box-shadow: inset 0 0 0 1px #ffffff; }
.sidebar .brand-product { display: block; letter-spacing: .035em; padding-inline: .55rem; }
.sidebar-foot { color: #b9c9dc; }
.admin-nav { display: grid; gap: .32rem; }
.admin-nav a { padding: .67rem .65rem; color: #dbe5f3; text-decoration: none; border: 1px solid transparent; border-radius: 7px; font-size: .9rem; font-weight: 620; }
.admin-nav a:hover, .admin-nav a[aria-current] { background: #1c3555; border-color: #415b7c; color: white; }
.admin-nav a[aria-current] { box-shadow: inset 3px 0 0 var(--gold); font-weight: 760; }
.sidebar-foot { margin-top: auto; padding: .8rem .65rem 0; border-top: 1px solid #36506e; font-size: .82rem; }
.admin-main { min-width: 0; }
.admin-header { min-height: 69px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .45rem; padding: .7rem clamp(1rem, 3vw, 2.8rem); background: white; border-bottom: 1px solid var(--border); font-weight: 670; font-size: .91rem; }
.header-divider { color: #947541; margin-inline: .5rem; }
.account-name { color: var(--muted); margin-right: .8rem; }
.admin-content { padding: clamp(1rem, 3vw, 2.8rem); max-width: 1690px; margin-inline: auto; display: grid; gap: 1rem; }
.page-heading h1 { font: 650 clamp(2rem, 4vw, 3.1rem)/1.08 var(--display-font); letter-spacing: -.035em; margin-top: .22rem; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; margin-block: .2rem .8rem; }
.stat { background: white; border: 1px solid var(--border); border-top: 3px solid var(--gold); padding: .9rem 1rem; border-radius: 9px; min-width: 0; }
.stat span { color: var(--muted); display: block; font-weight: 650; font-size: .88rem; }
.stat strong { display: block; margin-top: .25rem; font-size: clamp(1.5rem, 3.1vw, 2.6rem); line-height: 1; font-variant-numeric: tabular-nums; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
.table-wrap { width: 100%; overflow-x: auto; }
table { border-collapse: collapse; width: 100%; text-align: left; font-size: .9rem; }
th, td { padding: .63rem .63rem; border-bottom: 1px solid #e4eaf2; vertical-align: top; overflow-wrap: anywhere; }
th { background: #eef3f9; color: var(--navy); font-size: .86rem; line-height: 1.27; }
td a { font-weight: 650; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #f9fbfe; }
.cell-sub { display: block; margin-top: .15rem; font-size: .79rem; }
.pill { display: inline-block; width: max-content; max-width: 100%; padding: .16rem .48rem; color: #43536b; background: #edf1f6; border: 1px solid #d8e1eb; border-radius: 15px; font-weight: 700; font-size: .77rem; }
.pill.good { color: var(--good); background: #edf8f0; border-color: #c9e6d4; }
.pill.warn { color: var(--gold-dark); background: var(--warm); border-color: #ecd7ac; }
.pill.info { color: #24528a; background: #edf5fe; border-color: #d2e2f7; }
.empty { background: #f7f9fc; border: 1px dashed #cfdae8; border-radius: 8px; padding: .9rem; color: var(--muted); }
.filters { display: flex; align-items: end; flex-wrap: wrap; margin: .7rem 0 1.1rem; gap: .6rem; }
.filters .field { flex: 1 1 140px; max-width: 250px; }
.filters .check { min-height: 38px; }
.filters .quiet-link { align-self: end; padding: .45rem .15rem; }
.pager { display: flex; align-items: center; justify-content: flex-end; gap: .6rem; margin-top: .8rem; color: var(--muted); }
.check { display: inline-flex; align-items: center; gap: .4rem; min-height: 35px; font-size: .91rem; }
.check input { width: 1.05rem; height: 1.05rem; accent-color: var(--navy); }
.checks { display: flex; flex-wrap: wrap; column-gap: .85rem; border: 1px solid var(--border); border-radius: 8px; padding: .45rem .85rem; }
.checks legend { font-weight: 700; }
.link-list { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .3rem .7rem; }
.folder-link { display: flex; flex-wrap: wrap; align-items: center; column-gap: .65rem; }
.folder-edit { min-width: 0; }
.inline-action { display: inline-block; margin-right: .45rem; }
.row-action { display: flex; align-items: center; justify-content: space-between; gap: .6rem; border-top: 1px solid var(--border); margin-top: .65rem; padding-top: .6rem; }
.form-rule { padding-top: .85rem; border-top: 1px solid var(--border); }
.template-panel { background: #f8fafe; border: 1px solid var(--border); padding: .62rem .8rem; border-radius: 8px; }
.template-panel summary { font-weight: 700; }
.template-panel[open] > .fields { margin-top: .75rem; }
.code-line { margin: .2rem 0 .9rem; }
.oauth-callback { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; column-gap: 1rem; border: 1px solid var(--border); border-radius: 8px; background: #f7f9fc; padding: .72rem .84rem; margin: .75rem 0; }
.oauth-callback .code-line { margin-bottom: 0; }
.oauth-callback > div { min-width: 0; }
.drive-setup-note { padding: .85rem 1rem; border-inline-start: 3px solid #bc913e; background: var(--warm); border-radius: 0 8px 8px 0; overflow-wrap: anywhere; }
.drive-setup-note strong { color: var(--navy); font-weight: 780; }
.drive-setup-note p { margin-top: .3rem; max-width: 72ch; }
.progress-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 .35rem; margin-top: .5rem; color: var(--ink); font-size: .88rem; }
.progress-row progress { grid-column: 1/-1; appearance: none; width: 100%; height: 8px; border: none; border-radius: 9px; background: #e8edf3; color: #bd8734; }
.progress-row progress::-webkit-progress-bar { border-radius: 9px; background: #e8edf3; }
.progress-row progress::-webkit-progress-value { border-radius: 9px; background: #bd8734; }
.progress-row progress::-moz-progress-bar { border-radius: 9px; background: #bd8734; }
.booking-id { white-space: nowrap; font-family: Consolas, "Courier New", monospace; font-size: .85rem; }
.admin-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .36rem; }
.admin-cal .weekday { color: var(--muted); text-align: center; font-size: .8rem; }
.admin-cal-day { display: grid; min-height: 55px; padding: .35rem; border: 1px solid #dce6f0; border-radius: 6px; background: #f7f9fc; color: var(--ink); text-decoration: none; }
.admin-cal-day.chosen, .admin-cal-day:hover { background: var(--warm); border-color: #d8b473; }
.admin-cal-day small { font-size: .74rem; }
@media (max-width: 1150px) {
    .admin-layout { grid-template-columns: 211px minmax(0, 1fr); }
    .content-grid { grid-template-columns: 1fr; }
}
@media (max-width: 830px) {
    .admin-layout { display: block; }
    .sidebar { gap: .75rem; padding: .65rem 1rem; }
    .sidebar .brand { flex-direction: row; align-items: center; }
    .sidebar .brand-panel { max-width: min(203px, 58%); padding: .38rem; }
    .sidebar .brand-product { padding: 0; }
    .sidebar-foot { display: none; }
    .admin-nav { display: flex; overflow: auto; padding: .12rem .03rem .25rem; }
    .admin-nav a { white-space: nowrap; padding: .45rem .62rem; }
    .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
    .public-shell { width: calc(100% - 28px); }
    .public-header-inner { min-height: 68px; }
    .hero-inner { display: block; min-height: 0; padding-block: 1.75rem; }
    .hero-note { margin-top: 1rem; width: 100%; }
    .wide-only { display: none; }
    .podl-public:is([data-booking-step="2"], [data-booking-step="3"]) .hero-inner { padding-block: 1.15rem; }
    .podl-public:is([data-booking-step="2"], [data-booking-step="3"]) .hero h1 { max-width: none; font-size: 2rem; }
    .podl-public:is([data-booking-step="2"], [data-booking-step="3"]) .hero-note,
    .podl-public:is([data-booking-step="2"], [data-booking-step="3"]) .hero p:not(.eyebrow) { display: none; }
    .booking-grid { grid-template-columns: 1fr; }
    .calendar-card, .slot-card { min-height: 0; }
    .public-footer span { display: block; margin-left: 0; }
}
@media (max-width: 435px) {
    .fields { grid-template-columns: 1fr; }
    .booking-steps { gap: .16rem; }
    .booking-steps li { padding: .28rem .3rem; gap: .2rem; font-size: .75rem; }
    .booking-steps li span { width: 1.15rem; height: 1.15rem; }
    .slot-summary { padding: .7rem; font-size: .9rem; }
    .calendar-month-heading { justify-content: center; }
    .admin-cal-day small { display: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
@media print {
    body { background: white; color: black; }
    .sidebar, .admin-header, .skip, .report-actions, .filters, .pager { display: none !important; }
    .admin-layout, .admin-content, .report-section, .table-wrap { display: block; width: 100%; max-width: none; overflow: visible; padding: 0; border: 0; box-shadow: none; }
    .report-section { margin-top: 1rem; }
    th, td { padding: .35rem; }
    th { background: #ebebeb; }
    tr { break-inside: avoid; }
}
