.calendar-widget{position:relative}.calendar-enhanced [data-calendar-value]{position:absolute;width:1px!important;height:1px!important;min-height:0!important;padding:0!important;opacity:0;clip:rect(0,0,0,0);pointer-events:none}.calendar-trigger{box-sizing:border-box;width:100%;min-height:48px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;background:var(--ef-field);color:var(--ef-ink);border:1px solid var(--ef-line);border-radius:10px;font:inherit;font-size:16px;text-align:left;cursor:pointer}.calendar-trigger svg{width:24px;height:24px;flex:0 0 24px}.calendar-error{color:#a33228;font-size:13px;line-height:1.5;margin:8px 0 0}html[data-theme=dark] .calendar-error{color:#ffb4a6}.calendar-dialog{--cal-bg:#fffef9;--cal-ink:#1b3826;--cal-line:#aab99f;--cal-soft:#eef3e7;--cal-selected:#cdddba;--cal-focus:#b57618;box-sizing:border-box;width:min(420px,calc(100vw - 24px));max-height:calc(100vh - 24px);padding:20px;margin:auto;border:1px solid var(--cal-line);border-radius:18px;background:var(--cal-bg);color:var(--cal-ink);font:15px/1.5 system-ui,sans-serif;box-shadow:0 16px 48px #0003;overflow:auto}.calendar-dialog::backdrop{background:#07110bcc}html[data-theme=dark] .calendar-dialog{--cal-bg:#18271e;--cal-ink:#ecf0e7;--cal-line:#62725d;--cal-soft:#21362a;--cal-selected:#ccdeb4;--cal-focus:#efb35c}.calendar-dialog [hidden],.calendar-dialog[hidden],.calendar-widget [hidden]{display:none!important}.calendar-top,.calendar-month-nav,.calendar-actions{display:flex;align-items:center;justify-content:space-between;gap:12px}.calendar-top h3,.calendar-month-nav h4{font:600 18px/1.3 system-ui,sans-serif;margin:0}.calendar-month-nav{margin:12px 0 8px}.calendar-month-nav h4{text-transform:capitalize}.calendar-dialog button,.calendar-dialog select{font:inherit;color:inherit;cursor:pointer}.calendar-icon-button{display:grid;place-items:center;width:44px;height:44px;flex:0 0 44px;border:0;border-radius:10px;background:transparent;font-size:24px!important}.calendar-icon-button svg{width:24px;height:24px}.calendar-week{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:2px}.calendar-week>[role=columnheader]{text-align:center;font-size:12px;padding:8px 0;color:var(--cal-ink)}.calendar-day{width:100%;min-height:44px;border:0;border-radius:9px;background:transparent}.calendar-other{color:#566a56}html[data-theme=dark] .calendar-other{color:#afc0b0}.calendar-day.is-selected{background:var(--cal-selected);color:#183322;font-weight:700}.calendar-day:hover,.calendar-icon-button:hover{background:var(--cal-soft)}.calendar-day.is-selected:hover{background:var(--cal-selected)}.calendar-dialog :focus-visible{outline:3px solid var(--cal-focus);outline-offset:1px}.calendar-clock{border:0;margin:16px 0 0;padding:0}.calendar-clock legend{font-weight:600;margin-bottom:8px}.calendar-clock>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.calendar-clock label{font-size:13px}.calendar-clock select{box-sizing:border-box;display:block;width:100%;min-height:48px;margin-top:4px;padding:10px 14px;background:var(--cal-soft);border:1px solid var(--cal-line);border-radius:10px;font-size:16px}.calendar-note{font-size:13px;line-height:1.6;margin:16px 0}.calendar-actions button{min-height:48px;padding:10px 18px;border:1px solid var(--cal-line);border-radius:10px;background:transparent}.calendar-actions [data-calendar-apply]{background:var(--cal-selected);color:#183322;font-weight:600}.calendar-actions button:disabled{opacity:.5;cursor:not-allowed}@media(max-width:400px){.calendar-dialog{padding:16px}.calendar-month-nav h4{font-size:16px}}@media(prefers-reduced-motion:reduce){.calendar-dialog *{transition:none!important;scroll-behavior:auto!important}}

.calendar-shortcuts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-top:12px}.calendar-shortcuts button{min-height:44px;border:1px solid var(--cal-line);border-radius:9px;background:var(--cal-soft);font-size:12px;padding:6px 3px}.calendar-actions{flex-wrap:wrap;gap:8px}.calendar-actions button{padding-inline:12px}

.calendar-dialog[open]{display:flex;flex-direction:column;overflow:hidden;max-height:calc(100dvh - 24px)}.calendar-top{flex:0 0 auto}.calendar-body{min-height:0;overflow:auto;overscroll-behavior:contain;flex:1 1 auto}.calendar-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;flex:0 0 auto;padding-top:12px;background:var(--cal-bg)}.calendar-actions button{min-width:0;width:100%;padding-inline:6px;font-size:14px;white-space:nowrap}

.calendar-shortcuts button{min-width:0;white-space:normal;overflow-wrap:anywhere;line-height:1.3}
