.practice-calendar-surface { width:100%; min-width:0; }
.workspace:has(.schedule-workbench) { display:flex; flex-direction:column; gap:18px; }
.workspace:has(.schedule-workbench) .dynamic-island { display:none; }
.surface-grid:has(.schedule-workbench) { display:block; flex:1; height:auto; min-height:0; overflow:hidden; }
.schedule-workbench { display:flex; flex-direction:column; height:100%; min-height:0; border:1px solid #d8e2ef; border-radius:22px; background:#fff; overflow:hidden; animation:schedule-arrive .28s ease-out both; }
.schedule-workbench-header { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:20px 24px; border-bottom:1px solid #e8edf4; }
.schedule-workbench-header h2 { margin:6px 0; font-size:24px; color:#17243d; }
.schedule-workbench-header p:not(.eyebrow),.schedule-request-panel>p { margin:0; font-size:12px; line-height:1.5; color:#62748b; }
.schedule-workbench-header .calendar-legend { display:flex; flex-wrap:wrap; gap:8px; flex-shrink:0; }
.schedule-workbench-header .calendar-legend > .context-action { width:auto; flex:0 1 auto; margin:0; white-space:normal; }
.schedule-workbench { border-color:#d6e3ee; box-shadow:0 18px 42px rgba(24,45,75,.08); background:linear-gradient(180deg,#fff 0%,#fbfcfe 100%); }
.schedule-workbench-header { padding:16px 20px; background:linear-gradient(110deg,#f5faf8 0%,#fff 64%,#f7f9fd 100%); }
.schedule-workbench-header h2 { margin:4px 0; font-size:22px; letter-spacing:-.035em; }
.schedule-workbench-header p:not(.eyebrow) { font-size:11px; }
.schedule-calendar-panel { padding:16px 18px; }
.schedule-request-panel { background:linear-gradient(180deg,#f8fafc,#f4f7fb); }
.schedule-workbench .practice-calendar-toolbar { gap:4px; padding:4px; border:1px solid #e1e8f0; border-radius:999px; background:#f4f7fa; }
.schedule-workbench .practice-calendar-toolbar button { min-height:34px; padding:7px 13px; border-color:transparent; background:transparent; color:#53647b; font-size:11px; font-weight:700; transition:background .2s ease,color .2s ease,box-shadow .2s ease; }
.schedule-workbench .practice-calendar-toolbar button[aria-pressed="true"] { border-color:#d0e8e1; color:#087b73; background:#fff; box-shadow:0 2px 8px rgba(29,63,72,.08); }
.schedule-workbench .practice-calendar-toolbar button:hover:not([aria-pressed="true"]) { background:#eaf1f5; color:#1f3e58; }
.schedule-workbench .practice-calendar-toolbar button:focus-visible { outline:2px solid #16867e; outline-offset:1px; }
.schedule-workbench-body { display:grid; grid-template-columns:minmax(0,1fr) minmax(240px,290px); flex:1; min-height:0; }
.schedule-calendar-panel { min-width:0; min-height:0; overflow:auto; padding:20px; overscroll-behavior:contain; }
.schedule-request-panel { min-height:0; overflow:auto; padding:20px; border-left:1px solid #e8edf4; background:#f8fafc; }
.schedule-request-panel h3 { margin:0 0 8px; font-size:18px; }
.schedule-request-list { display:grid; gap:10px; margin:20px 0; }
.schedule-request-list > button { display:grid; grid-template-columns:minmax(0,1fr); gap:8px; width:100%; padding:14px; border:1px solid #d8e2ef; border-radius:14px; background:#fff; color:#17243d; text-align:left; font:inherit; cursor:pointer; overflow-wrap:anywhere; }
.schedule-request-list > button strong { font-size:13px; line-height:1.4; }
.schedule-request-list > button em { justify-self:start; padding:3px 8px; border-radius:999px; background:#fff2d9; color:#805817; font-size:10px; font-style:normal; font-weight:700; text-transform:uppercase; }
.schedule-request-list > button small { color:#62748b; font-size:12px; line-height:1.5; }
.schedule-request-list > button:hover { border-color:#1676dc; background:#f6faff; }
.schedule-request-list > button:focus-visible { outline:2px solid #1676dc; outline-offset:3px; }
.schedule-request-list p { font-size:13px; line-height:1.6; color:#62748b; }
.schedule-request-panel>.context-action { display:block; width:100%; margin-top:10px; }
.schedule-workbench .practice-calendar-toolbar>div { display:flex; flex-wrap:wrap; gap:6px; margin-right:auto; }
.schedule-workbench .practice-calendar-surface>h3 { margin:18px 0 6px; font-size:22px; }
.schedule-workbench .practice-calendar-months { max-height:none; overflow:visible; }
.schedule-workbench .practice-calendar-months[data-months="1"] .practice-calendar-days button { min-height:64px; }
@keyframes schedule-arrive { from { opacity:0; transform:perspective(1200px) translate3d(0,12px,-24px); } to { opacity:1; transform:none; } }
@media(max-width:1100px) { .schedule-workbench-header { align-items:flex-start; flex-direction:column; } .schedule-workbench-body { grid-template-columns:minmax(0,1fr) 240px; } }
@media(max-width:820px) { .workspace:has(.schedule-workbench) { overflow:auto; } .surface-grid:has(.schedule-workbench) { flex:none; overflow:visible; } .schedule-workbench { height:auto; overflow:visible; } .schedule-workbench-body { display:block; } .schedule-calendar-panel,.schedule-request-panel { overflow:visible; padding:16px; } .schedule-request-panel { border-left:0; border-top:1px solid #e8edf4; } .schedule-workbench-header { padding:16px; } .schedule-workbench .practice-calendar-months[data-months="1"] .practice-calendar-days button { min-height:44px; } }
@media(max-width:820px) { .schedule-workbench-header .calendar-legend { width:100%; } .schedule-workbench-header .calendar-legend > .context-action { width:100%; min-height:44px; } }
@media(prefers-reduced-motion:reduce) { .schedule-workbench { animation:none; } }
@media(prefers-reduced-motion:reduce) { .practice-calendar-days button { transition:none; transform:none!important; } }
.surface-grid:has(.practice-calendar-card) { overflow:auto; align-content:start; grid-template-columns:repeat(12,minmax(0,1fr)); grid-template-rows:none; grid-auto-flow:row; grid-auto-rows:auto; }
.surface-grid:has(.practice-calendar-card) > .surface-card { grid-row:auto!important; grid-column:span var(--c); min-height:200px; }
.surface-grid:has(.practice-calendar-card) > .surface-card:first-child { min-height:0; }
.surface-grid:has(.practice-calendar-card) > .surface-card .card-list { flex:none; overflow:visible; }
.surface-grid:has(.practice-calendar-card).has-focus > .surface-card:not(.is-lifted) { opacity:1; filter:none; transform:none; }
.surface-card.practice-calendar-card { min-height:460px; overflow:auto; }
.practice-calendar-toolbar { display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
.practice-calendar-toolbar button { border:1px solid #d8e2ef; border-radius:20px; padding:9px 16px; background:white; color:#17243d; cursor:pointer; }
.practice-calendar-toolbar button[aria-pressed="true"] { background:#1676dc; color:white; }
.practice-calendar-surface p { font-size:13px; color:#62748b; }
.practice-calendar-months { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; max-height:48vh; overflow:auto; padding:4px; }
.practice-calendar-months[data-months="1"] { grid-template-columns:1fr; }
.practice-calendar-month { padding:16px; border:1px solid #d8e2ef; border-radius:18px; background:#fff; }
.practice-calendar-days { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:4px; }
.practice-calendar-days > small { text-align:center; color:#62748b; }
.practice-calendar-days button { min-height:38px; border:1px solid transparent; border-radius:8px; background:#f7f9fc; color:#17243d; cursor:pointer; transition:transform .24s cubic-bezier(.2,.8,.2,1),background-color .2s ease,border-color .2s ease,box-shadow .2s ease; transform:translateZ(0); }
.practice-calendar-days button small { display:block; font-size:10px; }
.practice-calendar-day-number { line-height:1; }
.practice-calendar-day-markers { display:flex; min-height:4px; justify-content:center; gap:3px; }
.practice-calendar-day-marker { width:4px; height:4px; border-radius:50%; background:#2687c5; }
.practice-calendar-day-marker.is-event { background:#8a78c5; }
.practice-calendar-days button.has-slots { background:#e2f3fc; }
.practice-calendar-days button.is-selected { border-color:#0b8279; background:#eaf7f4; box-shadow:inset 0 0 0 1px #0b8279,0 5px 14px rgba(18,80,94,.12); }
.practice-calendar-days button:hover { position:relative; z-index:1; transform:perspective(700px) translate3d(0,-2px,12px) scale(1.035); border-color:#9fcfc5; box-shadow:0 8px 20px rgba(25,44,72,.14); }
.practice-calendar-days button:active { transform:perspective(700px) translate3d(0,0,4px) scale(.99); }
.practice-calendar-days button[aria-current="date"] { border-color:#1676dc; }
.practice-calendar-days button:focus-visible,.practice-calendar-toolbar button:focus-visible { outline:2px solid #1676dc; outline-offset:2px; }
.practice-calendar-day-heading { margin:20px 0 6px; color:#17243d; font-size:16px; }
.practice-calendar-day-summary { margin:0 0 10px; color:#62748b; font-size:12px; line-height:1.5; }
.practice-calendar-day-event-list { display:grid; gap:8px; margin:10px 0 14px; }
.practice-calendar-day-event-list article { display:grid; gap:6px; padding:12px; border:1px solid #d8e2ef; border-radius:14px; background:#fff; }
.practice-calendar-day-event-list article p,.practice-calendar-day-event-list article small { margin:0; color:#62748b; font-size:12px; }
.practice-calendar-event-zone { color:#62748b; font-size:12px; }
@media(max-width:900px) { .practice-calendar-months { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:760px) { .surface-grid:has(.practice-calendar-card) { grid-template-columns:minmax(0,1fr); grid-template-rows:none; grid-auto-flow:row; grid-auto-columns:auto; overflow-x:hidden; overflow-y:auto; scroll-snap-type:none; } .surface-grid:has(.practice-calendar-card) > .surface-card { grid-column:1!important; grid-row:auto!important; width:auto; } }
@media(max-width:600px) { .practice-calendar-months { grid-template-columns:1fr; max-height:none; overflow:visible; } .surface-card.practice-calendar-card { overflow:visible; min-height:0; } }
/* Broad horizons stay readable: compact half-year, horizontal full-year deck. */
@media(min-width:901px) {
  .schedule-workbench .practice-calendar-months:is([data-months="6"],[data-months="12"]) { gap:10px; }
  .schedule-workbench .practice-calendar-months:is([data-months="6"],[data-months="12"]) .practice-calendar-month { padding:10px; border-radius:13px; }
  .schedule-workbench .practice-calendar-months:is([data-months="6"],[data-months="12"]) h4 { margin:0 0 8px; font-size:13px; }
  .schedule-workbench .practice-calendar-months:is([data-months="6"],[data-months="12"]) .practice-calendar-days { gap:2px; }
  .schedule-workbench .practice-calendar-months:is([data-months="6"],[data-months="12"]) .practice-calendar-days button { min-height:24px; padding:2px; font-size:11px; }
  .schedule-workbench .practice-calendar-months[data-months="12"] { grid-template-columns:repeat(6,minmax(220px,1fr)); grid-template-rows:repeat(2,auto); grid-auto-flow:row; overflow-x:auto; overscroll-behavior-x:contain; padding-bottom:12px; }
}
@media(min-width:901px) and (max-height:850px) {
  .schedule-workbench .practice-calendar-months[data-months="6"] { grid-template-columns:repeat(6,minmax(220px,1fr)); overflow-x:auto; padding-bottom:12px; }
  .schedule-workbench .practice-calendar-months[data-months="12"] { grid-template-columns:repeat(12,minmax(220px,1fr)); grid-template-rows:auto; }
}
.practice-calendar-months:focus-visible { outline:2px solid #1676dc; outline-offset:-2px; border-radius:12px; }
.schedule-workbench .practice-calendar-months{gap:10px;padding:2px}
.schedule-workbench .practice-calendar-month{padding:12px;border-radius:15px}
.schedule-workbench .practice-calendar-month h4{margin:0 0 9px;color:#1a2b47;font-size:14px;font-weight:750;letter-spacing:-.015em}
.schedule-workbench .practice-calendar-days{gap:3px}
.schedule-workbench .practice-calendar-days button[aria-current="date"]{border-color:#126eb4;background:#126eb4;color:#fff;font-weight:800;box-shadow:0 3px 9px rgba(18,110,180,.24)}
.schedule-workbench .practice-calendar-days button[aria-current="date"] small{color:rgba(255,255,255,.88)}
.schedule-workbench .practice-calendar-days button.has-events:not([aria-current="date"]){box-shadow:inset 0 -2px 0 #8a78c5}
.schedule-workbench .practice-calendar-days button.is-selected:not([aria-current="date"]){border-color:#087f75;background:#eaf7f4}
