/* Scoped schedule components inherit the site's typography and semantic surfaces. */
.hours-editor,.hours-public{--hours-line:var(--ui-glass-edge,#c4cdbf);--hours-bg:var(--ui-glass-solid,#f5f6f2);--hours-ink:var(--text,#243426);color:inherit;min-width:0}
.hours-editor [hidden]{display:none!important}
.hours-editor .hours-body{margin-top:24px}
.hours-editor .hours-hint,.hours-public .hours-hint{font-size:.9rem;line-height:1.6;margin:12px 0 20px;color:inherit;opacity:.82}
.hours-days{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.hours-editor .hours-day{border:1px solid var(--hours-line);border-radius:20px;padding:20px;margin:0;min-width:0;background:var(--hours-bg)}
.hours-editor .hours-day legend{padding:0 8px;font-weight:650;font-size:1.05rem}
.hours-editor .hours-field{display:flex;flex-direction:column;gap:8px;min-width:0;margin:0}
.hours-editor .hours-field>span{font-size:.875rem}
.hours-editor :is(input[type=time],input[type=date],select){box-sizing:border-box;width:100%;min-width:0;max-width:100%;height:48px;min-height:48px;padding:10px 12px;border:1px solid var(--hours-line);border-radius:12px;background:var(--hours-bg);color:inherit;font:inherit;font-size:16px;line-height:1.3;color-scheme:light}
:root[data-theme=dark] .hours-editor :is(input[type=time],input[type=date],select){color-scheme:dark}
.hours-editor :is(button,summary){font:inherit;font-size:.875rem;line-height:1.4;min-height:44px;cursor:pointer}
.hours-editor button{padding:10px 14px;border:1px solid var(--hours-line);border-radius:14px;background:var(--hours-bg);color:inherit;white-space:normal}
.hours-editor button:disabled{opacity:.5;cursor:not-allowed}
.hours-editor :is(button,input,select,summary):focus-visible{outline:2px solid currentColor;outline-offset:3px}
.hours-editor .hours-check{display:flex;align-items:center;gap:12px;min-height:48px;cursor:pointer;line-height:1.5}
.hours-editor .hours-check input{appearance:auto;-webkit-appearance:checkbox;position:static;opacity:1;transform:none;width:22px;height:22px;min-width:22px;margin:0;accent-color:#638049}
.hours-editor>.hours-check{font-weight:650;font-size:1.05rem}
.hours-editor>.hours-check input{width:28px;height:28px}
.hours-editor .hours-intervals{margin-top:16px;display:grid;gap:12px}
.hours-editor .hours-interval{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px 12px;align-items:end;padding-bottom:16px;border-bottom:1px solid var(--hours-line)}
.hours-editor .hours-remove{grid-column:1;justify-self:start}
.hours-next{grid-column:2;align-self:center;font-size:.8rem}
.hours-copy{border-top:1px solid var(--hours-line);margin-top:16px;padding-top:8px}
.hours-copy summary{padding:12px 0}
.hours-copy-days{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 12px;margin-bottom:12px}
.hours-editor h3{margin:32px 0 12px}
.hours-exceptions{display:grid;gap:16px;margin-bottom:16px}
.hours-exception{padding:20px;border:1px solid var(--hours-line);border-radius:20px}
.hours-exception-head{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px;align-items:end;margin-bottom:20px}
.hours-error{font-weight:600;line-height:1.5}
.hours-error:empty{display:none}
.hours-public{padding:clamp(20px,4vw,40px);margin:24px 0;border:1px solid var(--hours-line);border-radius:24px;background:var(--hours-bg)}
.hours-public h2{margin-top:0}
.hours-week{margin:0}
.hours-week>div{display:grid;grid-template-columns:minmax(100px,1fr) minmax(0,2fr);gap:16px;padding:14px 0;border-bottom:1px solid var(--hours-line)}
.hours-week dt{font-weight:600}.hours-week dd{margin:0;text-align:right;overflow-wrap:anywhere;line-height:1.6;font-variant-numeric:tabular-nums}
.hours-special{margin-top:20px}.hours-special summary{min-height:44px;padding:10px 0;cursor:pointer;font-weight:600}
@media(max-width:760px){.hours-days{grid-template-columns:1fr}.hours-editor .hours-day,.hours-exception{padding:16px}.hours-week>div{gap:12px}.hours-public{border-radius:20px}}
@media(max-width:380px){.hours-exception-head{grid-template-columns:1fr}.hours-copy-days{grid-template-columns:1fr}.hours-week>div{grid-template-columns:1fr;gap:4px}.hours-week dd{text-align:left}}
.hours-days>.hours-day:last-child:nth-child(odd){grid-column:1 / -1}
.hours-editor>.hours-check input[role=switch]{appearance:none;-webkit-appearance:none;position:relative;flex:0 0 48px;width:48px;min-width:48px;height:28px;border:1px solid var(--hours-line);border-radius:999px;background:var(--hours-bg);cursor:pointer}
.hours-editor>.hours-check input[role=switch]::before{content:"";position:absolute;left:3px;top:3px;width:20px;height:20px;border-radius:50%;background:currentColor}
.hours-editor>.hours-check input[role=switch]:checked{background:#d5e4b6;color:#203326}
.hours-editor>.hours-check input[role=switch]:checked::before{left:23px}
@media(forced-colors:active){.hours-editor>.hours-check input[role=switch]{appearance:auto;-webkit-appearance:checkbox}}
.hours-editor .hours-time-input{box-sizing:border-box;width:100%;min-width:0;height:48px;padding:10px 14px;border:1px solid var(--hours-line);border-radius:14px;background:var(--hours-bg);color:inherit;font:inherit;font-size:16px;cursor:pointer;font-variant-numeric:tabular-nums}
/* The selected row is shared by both independently scrollable columns. */
.hours-time-dialog{box-sizing:border-box;width:min(400px,calc(100vw - 32px));max-height:calc(100dvh - 24px);padding:28px;border:1px solid var(--ui-glass-edge,#c4cdbf);border-radius:26px;background:var(--ui-glass-solid,#f5f6f2);color:var(--text,#243426);box-shadow:0 24px 80px #0005;overflow:auto;font:inherit}
:root[data-theme=dark] .hours-time-dialog{color:#f3f3ec}
.hours-time-dialog::backdrop{background:rgba(5,12,7,.62)}
.hours-time-dialog h2{font-size:1.125rem;margin:0 0 20px;font-weight:650;letter-spacing:normal;line-height:1.5}
.hours-wheel-columns{position:relative;display:grid;grid-template-columns:1fr 1fr;gap:24px;isolation:isolate}
.hours-wheel-columns::before{content:"";position:absolute;top:96px;height:48px;left:0;right:0;background:var(--ui-glass-selected,#e0ebd2);border-radius:10px;z-index:-1}
.hours-wheel-colon{position:absolute;left:50%;top:96px;transform:translateX(-50%);line-height:48px;font-size:26px;pointer-events:none}
.hours-wheel{box-sizing:border-box;height:240px;overflow-y:auto;overscroll-behavior-y:contain;touch-action:pan-y;scroll-snap-type:y mandatory;scrollbar-width:none;padding:96px 0;outline:none;position:relative;scroll-behavior:auto}
.hours-wheel::-webkit-scrollbar{display:none}
.hours-wheel:focus-visible{box-shadow:inset 0 0 0 2px var(--ui-glass-edge,#a1b692);border-radius:12px}
.hours-wheel-option{box-sizing:border-box;display:flex;align-items:center;justify-content:center;height:48px;min-height:48px;scroll-snap-align:center;font-size:24px;font-weight:400;line-height:1;font-variant-numeric:tabular-nums;cursor:pointer;color:inherit;user-select:none;-webkit-user-select:none}
.hours-wheel-option[data-distance="1"]{opacity:.6}.hours-wheel-option[data-distance="2"]{opacity:.28}
.hours-wheel-option[aria-selected=true]{font-weight:650;opacity:1;color:inherit}
:root[data-theme=dark] .hours-wheel-option[aria-selected=true]{color:#d5e4b6}
.hours-wheel-status{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.hours-wheel-actions{margin-top:20px}
.hours-time-dialog .hours-wheel-actions button{box-sizing:border-box;display:block;width:100%;min-height:48px;padding:12px 20px;border:0;border-radius:14px;background:#d5e4b6;color:#203326;font:inherit;font-size:16px;font-weight:650;cursor:pointer;box-shadow:none;transform:none}
.hours-time-dialog button:focus-visible{outline:2px solid currentColor;outline-offset:3px}
@media(max-width:480px){.hours-time-dialog{margin:auto auto max(12px,env(safe-area-inset-bottom));width:calc(100vw - 24px);padding:24px;border-radius:24px}.hours-time-dialog::before{content:"";display:block;width:48px;height:4px;border-radius:4px;margin:-12px auto 20px;background:currentColor;opacity:.22}}
@media(max-height:480px){.hours-time-dialog{padding:16px}.hours-time-dialog h2{margin-bottom:8px}.hours-wheel{height:144px;padding:48px 0}.hours-wheel-columns::before,.hours-wheel-colon{top:48px}.hours-wheel-actions{margin-top:8px}}

/* Date wheels mirror the approved light/dark design and the time dialog sizing. */
.hours-date-dialog h2{text-align:center}
.hours-date-labels,.hours-date-columns{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.6fr) minmax(0,1fr);gap:0}
.hours-date-labels{text-align:center;font-size:13px;margin-bottom:8px}
.hours-date-columns::before{background:#d5e4b6}
.hours-date-columns .hours-wheel-option{font-size:16px}
.hours-date-columns .hours-wheel+.hours-wheel{border-left:1px solid var(--ui-glass-edge,#c4cdbf)}
.hours-date-columns .hours-wheel-option[aria-selected=true],:root[data-theme=dark] .hours-date-columns .hours-wheel-option[aria-selected=true]{color:#203326;font-weight:650}
.hours-date-dialog{background:#f7f8f4}
:root[data-theme=dark] .hours-date-dialog{background:#17251b}
