/* Calendar surfaces and controls use the shared Wayonara design tokens. */
.wy-date-field{display:grid;gap:8px;position:relative;min-width:0;font-size:14px;font-weight:600}
.wy-date-input{position:absolute!important;width:1px!important;height:1px!important;min-height:0!important;padding:0!important;opacity:0;pointer-events:none;overflow:hidden}
.planning-main .wy-date-trigger{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:56px;padding:14px 16px;text-align:start;color:var(--muted);background:var(--bg);border:1px solid #59647a;border-radius:var(--radius-button);cursor:pointer;transition:border-color var(--motion-fast),background var(--motion-fast)}
.wy-date-trigger.has-date{color:var(--ink)}
.wy-date-trigger svg{flex:none;color:var(--accent)}
.wy-date-trigger[aria-invalid=true]{border-color:var(--accent)}
.wy-date-trigger:disabled{opacity:.5;cursor:default}
.wy-date-value{overflow-wrap:anywhere}
.wy-calendar{box-sizing:border-box;width:min(440px,calc(100% - 32px));max-width:440px;height:fit-content;max-height:calc(100dvh - 32px);margin:auto;padding:26px;color:var(--ink);background:linear-gradient(155deg,var(--surface-elevated),var(--surface) 65%);border:1px solid var(--stroke-strong);border-radius:var(--radius-sheet);box-shadow:0 32px 100px #02040c80;overflow:auto;overscroll-behavior:contain;color-scheme:dark}
.wy-calendar[open]{display:block}
.wy-calendar::backdrop{background:#050916b8;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}
.wy-calendar *{box-sizing:border-box}
.wy-calendar button{font:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}
.wy-calendar button:focus-visible{outline:2px solid var(--accent-info);outline-offset:2px}
.wy-calendar button:disabled{opacity:.28;cursor:default}
.wy-calendar-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding-bottom:24px}
.wy-calendar-label{color:var(--muted);font-size:13px;font-weight:600;line-height:1.5;margin:0 0 6px}
.wy-calendar h2{font-size:clamp(22px,5vw,28px);font-weight:700;line-height:1.2;letter-spacing:-.025em;margin:0}
.wy-calendar-close,.wy-calendar-previous,.wy-calendar-next{display:inline-flex;align-items:center;justify-content:center;flex:none;width:44px;height:44px;min-height:44px;padding:0;border:1px solid var(--stroke-strong);border-radius:14px;background:#f5f7ff08;color:var(--ink);font-size:28px!important;line-height:1}
.wy-calendar-navigation{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:20px}
.wy-calendar-navigation h3{font-size:18px;font-weight:650;line-height:1.35;margin:0;text-transform:capitalize}
.wy-calendar-navigation>div{display:flex;gap:8px}
[dir=rtl] .wy-calendar-previous span,[dir=rtl] .wy-calendar-next span{transform:rotate(180deg)}
.wy-calendar-weekdays,.wy-calendar-week{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:0}
.wy-calendar-weekdays{margin-bottom:10px;color:var(--muted);font-size:12px;font-weight:600;text-align:center}
.wy-calendar-weekdays span{overflow:hidden;text-overflow:ellipsis}
.wy-calendar-grid{display:grid;gap:4px}
.wy-calendar-week{min-height:48px}
.wy-calendar-week>div{display:flex;justify-content:center;align-items:center;min-width:0;border-radius:0}
.wy-calendar-day{display:flex;align-items:center;justify-content:center;width:100%;height:48px;padding:0;color:var(--ink);background:transparent;border:1px solid transparent;border-radius:14px;font-size:16px!important;font-weight:600;line-height:1;transition:background var(--motion-fast),color var(--motion-fast)}
.wy-calendar-day[aria-current=date]{border-color:var(--accent);color:var(--accent)}
.wy-calendar-week .is-in-range{background:#ff4fa318}
.wy-calendar-week .is-range-start{border-start-start-radius:14px;border-end-start-radius:14px}
.wy-calendar-week .is-range-end{border-start-end-radius:14px;border-end-end-radius:14px}
.wy-calendar-day.is-selected{color:var(--bg-deep);background:var(--accent);border-color:var(--accent);box-shadow:0 4px 16px #ff4fa324}
.wy-calendar-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:22px 0 0;padding-top:16px;border-top:1px solid var(--stroke)}
.wy-calendar-footer button{min-height:44px;padding:8px 14px;color:var(--accent);background:#ff4fa310;border:1px solid #ff4fa326;border-radius:14px;font-size:14px;font-weight:650}
.wy-calendar-footer .wy-calendar-clear{color:var(--muted);background:transparent;border-color:var(--stroke-strong)}
.wy-calendar [hidden]{display:none}
@media(hover:hover){.wy-date-trigger:hover{border-color:var(--accent);background:var(--surface)}.wy-calendar-day:not(:disabled):not(.is-selected):hover{background:#8fa7ff22}.wy-calendar-close:hover,.wy-calendar-previous:not(:disabled):hover,.wy-calendar-next:not(:disabled):hover{background:#8fa7ff22}.wy-calendar-footer button:not(:disabled):hover{border-color:var(--accent)}}
@media(max-width:600px){.wy-calendar{width:100%;max-width:none;max-height:calc(100dvh - 16px);margin:auto 0 0;padding:24px max(16px,calc((100% - 400px)/2)) max(20px,env(safe-area-inset-bottom));border-radius:var(--radius-sheet) var(--radius-sheet) 0 0;border-bottom:0}.wy-calendar::before{content:"";display:block;width:36px;height:4px;margin:-10px auto 20px;border-radius:4px;background:var(--stroke-strong)}.wy-calendar-day{height:48px}.wy-calendar-heading{padding-bottom:22px}.date-fields .wy-date-field{grid-column:auto}.wy-date-trigger{font-size:14px!important}}
@media(prefers-reduced-motion:reduce){.wy-date-trigger,.wy-calendar-day{transition:none}}
