.page-schedule .page-content > .wrapper { max-width: 1160px; }
.schedule { --schedule-paper: #fdfbf6; margin: 1rem auto 3rem; }
.schedule *, .schedule *::before, .schedule *::after { box-sizing: border-box; }
.schedule [hidden] { display: none !important; }
.schedule h1, .schedule h2, .schedule h3, .schedule p { text-align: left; }
.schedule-intro { max-width: 700px; margin-bottom: 2.8rem; }
.schedule .schedule-eyebrow { color: var(--gold-edge, #856322); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 .7rem; }
.schedule .schedule-intro h1 { font-size: clamp(2rem, 4vw, 3.1rem); font-weight: 500; line-height: 1.15; margin: 0 0 1.1rem; letter-spacing: -.035em; }
.schedule-intro > p:last-child { font-size: 1.05rem; line-height: 1.7; color: var(--ink-mute, #666); margin: 0; max-width: 640px; }
.schedule-layout { display: grid; grid-template-columns: 265px minmax(0, 1fr); border-top: 2px solid var(--ink, #1d1d1f); }
.schedule-about { padding: 2rem 2rem 0 0; }
.schedule .schedule-about h2 { font-size: 1.6rem; line-height: 1.25; font-weight: 500; margin: 0 0 1.7rem; }
.schedule-facts { margin: 0 0 1.5rem; }
.schedule-facts > div { margin-bottom: .85rem; }
.schedule-facts dt { font-size: .72rem; color: var(--ink-mute, #666); }
.schedule-facts dd { margin: 0; font-size: .93rem; line-height: 1.5; }
.schedule-hours { padding-top: 1.2rem; border-top: 1px solid var(--rule-hair, #ddd); }
.schedule .schedule-hours h3 { margin: 0; font-size: .93rem; font-weight: 600; }
.schedule .schedule-hours p { margin: .8rem 0; font-size: .85rem; line-height: 1.7; }
.schedule-hours strong { font-weight: 500; color: var(--ink-mute, #666); }
.schedule .schedule-note { font-size: .8rem; color: var(--ink-mute, #666); line-height: 1.6; }
.schedule-about > .schedule-note { margin: 1.5rem 0 1rem; }
.schedule .schedule-contact { font-size: .82rem; text-underline-offset: 3px; }
.schedule-booking { border-left: 1px solid var(--rule-hair, #ddd); background: var(--schedule-paper); }
.schedule-picker, .schedule-details { padding: 1.8rem 2rem; }
.schedule-details { border-top: 1px solid var(--rule-hair, #ddd); }
.schedule .schedule-section-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.schedule .schedule-picker h2, .schedule .schedule-details > h2 { font-size: 1.25rem; font-weight: 500; line-height: 1.4; margin: 0; }
.schedule-step { font-size: .75rem; color: var(--gold-edge, #856322); margin-right: .75rem; vertical-align: middle; }
.schedule fieldset { min-width: 0; border: 0; padding: 0; margin: 0; }
.schedule .schedule-format { display: flex; gap: .65rem; flex-wrap: wrap; margin: 1.5rem 0; }
.schedule-format legend { float: left; width: 100%; font-size: .85rem; margin-bottom: .6rem; }
.schedule-format label { display: inline-flex; align-items: center; gap: .45rem; cursor: pointer; font-size: .9rem; border: 1px solid var(--rule-hair, #ddd); padding: .5rem 1rem; border-radius: 3px; }
.schedule-format label:has(input:checked) { background: #f1eadb; border-color: var(--gold-edge, #856322); }
.schedule input[type=radio] { width: 14px; height: 14px; accent-color: var(--gold-edge, #856322); margin: 0; }
.schedule button { font: inherit; cursor: pointer; border-radius: 3px; box-shadow: none; transition: background .12s; }
.schedule button:disabled { cursor: default; }
.schedule button:focus-visible, .schedule input:focus-visible, .schedule textarea:focus-visible { outline: 2px solid var(--gold-edge, #856322); outline-offset: 3px; }
.schedule .schedule-text-button { color: var(--ink-mute, #666); background: none; border: 0; text-decoration: underline; text-underline-offset: 3px; font-size: .8rem; padding: .4rem .1rem; }
.schedule .schedule-text-button:hover { color: var(--gold-edge, #856322); }
.schedule-calendar-and-times { display: grid; grid-template-columns: minmax(0, 1fr) 156px; gap: 1.8rem; }
.schedule-month-nav { display: flex; align-items: center; justify-content: space-between; gap: .4rem; min-height: 40px; margin: 0 0 .7rem; }
.schedule .schedule-month-nav h3 { font-size: 1.05rem; margin: 0; font-weight: 500; }
.schedule-month-nav > div { display: flex; gap: .3rem; }
.schedule-month-nav button { width: 32px; height: 34px; border: 1px solid var(--rule-hair, #ddd); background: transparent; font-size: 1.3rem; line-height: 1; padding: 0; color: var(--ink, #1d1d1f); }
.schedule-month-nav button:disabled { opacity: .25; }
.schedule-month-nav button:not(:disabled):hover { background: #f1eadb; }
.schedule-weekdays, .schedule-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.schedule-weekdays { font-size: .72rem; color: var(--ink-mute, #666); text-align: center; margin-bottom: .4rem; }
.schedule-days button { border: 1px solid transparent; position: relative; background: #f1eadb; color: #5c4212; min-height: 40px; font-size: .9rem; line-height: 1.2; padding: .5rem .1rem; font-variant-numeric: tabular-nums; }
.schedule-days button:not(:disabled):hover { background: #e7dbbd; }
.schedule-days button:disabled { background: transparent; color: #97928a; }
.schedule-days button[aria-current=date]::after { content: ''; display: block; position: absolute; bottom: 4px; left: calc(50% - 2px); width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.schedule-days button[aria-pressed=true] { background: var(--ink, #1d1d1f); color: #fff; }
.schedule-days button[aria-pressed=true]:hover { background: #353126; }
.schedule .schedule-calendar-key { margin: 1rem 0 0; color: var(--ink-mute, #666); font-size: .7rem; }
.schedule-calendar-key span { display: inline-block; width: 9px; height: 9px; margin-right: .4rem; background: #ede0c0; border: 1px solid #b5995a; border-radius: 2px; }
.schedule-time-picker { border-left: 1px solid var(--rule-faint, #eee); padding-left: 1.3rem; }
.schedule .schedule-time-picker h3 { font-size: .9rem; font-weight: 500; margin: .4rem 0 0; line-height: 1.4; }
.schedule .schedule-muted { color: var(--ink-mute, #666); font-size: .78rem; }
.schedule-time-picker > p { margin: .25rem 0 .8rem; }
#time-slots { display: grid; gap: .5rem; max-height: 285px; overflow: auto; padding: 4px; margin: -4px; }
.schedule-slot { min-height: 40px; background: transparent; border: 1px solid #c2b38e; color: #71531d; padding: .4rem .3rem; font-size: .88rem !important; }
.schedule-slot:hover { background: #f1eadb; }
.schedule-slot[aria-pressed=true] { background: var(--ink, #1d1d1f); border-color: var(--ink, #1d1d1f); color: white; }
.schedule .schedule-overlap-note { margin: 1.2rem 0 0; font-size: .72rem; }
.schedule .schedule-selection { font-size: .88rem; margin: .8rem 0 1.4rem; color: var(--gold-edge, #856322); }
.schedule-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
#request-form label, .schedule-admin label { display: block; font-size: .85rem; line-height: 1.5; margin-bottom: 1rem; }
.schedule input:not([type=radio]), .schedule textarea, .schedule select { display: block; width: 100%; font: inherit; font-size: 1rem; line-height: 1.4; color: var(--ink, #1d1d1f); border: 1px solid #c5bfb2; border-radius: 3px; background: #fffefb; padding: .65rem .75rem; margin: .4rem 0 0; box-shadow: none; }
.schedule textarea { resize: vertical; min-height: 90px; }
.schedule input::placeholder, .schedule textarea::placeholder { color: #868075; opacity: 1; font-size: .86rem; }
.schedule-field-help { display: block; margin-top: .3rem; font-size: .7rem; color: var(--ink-mute, #666); }
.schedule-optional { color: var(--ink-mute, #666); font-size: .75rem; }
.schedule fieldset:disabled { opacity: .45; }
.schedule-honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.schedule-submit-row { display: flex; gap: 1.3rem; align-items: center; margin-top: 1.4rem; }
.schedule .schedule-primary { background: var(--ink, #1d1d1f); color: #fff; border: 1px solid var(--ink, #1d1d1f); padding: .75rem 1.2rem; font-size: .9rem; white-space: nowrap; }
.schedule .schedule-primary:hover { background: #3d382e; }
.schedule-primary span { margin-left: 1.3rem; }
.schedule-submit-row p { font-size: .74rem; line-height: 1.6; color: var(--ink-mute, #666); margin: 0; max-width: 200px; }
.schedule .schedule-error { background: #f9ece5; border-left: 3px solid #9c4b27; color: #783c20; font-size: .88rem; padding: .85rem 1rem; }
.schedule .schedule-status { font-size: .9rem; }
.schedule-success { padding: 1.5rem; border: 1px solid #9caa86; background: #f1f3e9; margin-top: 1rem; }
.schedule .schedule-success h3 { font-size: 1.6rem; font-weight: 500; margin: 0 0 1rem; }
.schedule-success p { font-size: .92rem; line-height: 1.6; }
.schedule #request-reference { overflow-wrap: anywhere; font-size: .72rem; }
.schedule-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; }

/* The professor's private request queue uses the same visual language. */
.schedule-admin { max-width: 900px; margin: 1rem auto 3rem; }
.schedule-admin .schedule-intro { max-width: none; }
.schedule-admin-toolbar { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; margin-bottom: 1.4rem; }
.schedule-admin-toolbar h2 { flex: 1; margin: 0; font-size: 1.4rem; }
.schedule-admin-login { max-width: 420px; background: var(--schedule-paper); border: 1px solid var(--rule-hair, #ddd); padding: 1.5rem; }
.schedule-admin-settings { border-block: 1px solid var(--rule-hair, #ddd); padding: 1rem 0; margin-bottom: 2rem; }
.schedule-admin-settings summary { cursor: pointer; font-size: 1rem; }
.schedule-admin-settings form { margin-top: 1.5rem; }
.schedule-admin-filters { display: flex; gap: .5rem; margin-bottom: 1.2rem; flex-wrap: wrap; }
.schedule-admin-filters button { padding: .4rem .9rem; color: var(--ink, #1d1d1f); border: 1px solid var(--rule-hair, #ddd); background: transparent; font-size: .85rem; }
.schedule-admin-filters button[aria-pressed=true] { color: #fff; background: var(--ink, #1d1d1f); }
.schedule-request-card { padding: 1.5rem; background: var(--schedule-paper); border: 1px solid var(--rule-hair, #ddd); margin-bottom: 1rem; overflow-wrap: anywhere; }
.schedule .schedule-request-card h3 { margin: 0; font-size: 1.2rem; font-weight: 500; }
.schedule-request-card p { margin: .5rem 0; font-size: .88rem; }
.schedule-request-card .schedule-request-status { color: var(--gold-edge, #856322); text-transform: uppercase; letter-spacing: .08em; font-size: .7rem; }
.schedule-request-card .schedule-request-topic { white-space: pre-wrap; }
.schedule-card-actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin-top: 1rem; }
.schedule-request-card label { margin-top: 1rem; }
.schedule-admin button:disabled { opacity: .45; }

@media (max-width: 1000px) {
  .schedule-layout { grid-template-columns: 225px minmax(0, 1fr); }
  .schedule-about { padding-right: 1.3rem; }
  .schedule-picker, .schedule-details { padding: 1.5rem; }
  .schedule-calendar-and-times { grid-template-columns: minmax(0, 1fr) 130px; gap: 1rem; }
  .schedule-time-picker { padding-left: 1rem; }
}
@media (max-width: 760px) {
  .schedule { margin-top: .5rem; }
  .schedule-intro { margin-bottom: 1.8rem; }
  .schedule-layout { grid-template-columns: 1fr; }
  .schedule-about { padding: 1.5rem 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 1.5rem; }
  .schedule-about > .schedule-eyebrow { grid-column: 1 / -1; }
  .schedule .schedule-about h2 { font-size: 1.45rem; margin-bottom: 1rem; }
  .schedule-facts { grid-column: 1; margin: 0; }
  .schedule-hours { grid-column: 2; grid-row: 2 / span 2; padding: 0; border: 0; }
  .schedule-about > .schedule-note, .schedule-contact { grid-column: 1 / -1; }
  .schedule-booking { border: 1px solid var(--rule-hair, #ddd); }
  .schedule-calendar-and-times { grid-template-columns: minmax(0, 1fr) 140px; }
}
@media (max-width: 480px) {
  .schedule-picker, .schedule-details { padding: 1.2rem 1rem; }
  .schedule-calendar-and-times { grid-template-columns: 1fr; gap: 1.5rem; }
  .schedule-days button { min-height: 42px; }
  .schedule-time-picker { border-left: 0; border-top: 1px solid var(--rule-faint, #eee); padding: .9rem 0 0; }
  #time-slots { grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: none; }
  .schedule-form-row { grid-template-columns: 1fr; gap: 0; }
  .schedule-submit-row { flex-direction: column; align-items: stretch; gap: .7rem; }
  .schedule-submit-row p { max-width: none; }
  .schedule-about { column-gap: 1rem; }
  .schedule .schedule-hours p { font-size: .8rem; }
}
