/* Shared geometry: option text and category changes never resize the controls. */
.calendar-first .calendar-panel{container-type:inline-size}
.calendar-first .calendar-panel .shared-month-header{display:flex;flex-direction:row;flex-wrap:wrap;align-items:start;gap:14px;padding:0}
.calendar-first .shared-month-header .month-actions{display:flex;flex:1 1 650px;width:auto;min-width:0;margin:0;gap:12px;align-items:end;justify-content:flex-end;flex-wrap:wrap}
.calendar-first .shared-month-header .benefit-selectors{display:grid;grid-auto-flow:column;grid-auto-columns:160px;gap:10px;width:auto;max-width:100%;min-width:0;align-items:start;margin-left:auto}
.calendar-first .shared-month-header .benefit-selectors .card-settings{display:contents;min-width:0;max-width:none;margin:0}
.calendar-first .shared-month-header .benefit-selectors .card-settings[hidden]{display:none}
.calendar-first .shared-month-header .calendar-filter{display:flex;flex-direction:column;align-items:stretch;justify-content:start;gap:4px;width:160px;min-width:0;max-width:100%;margin:0;font-size:12px;line-height:16px}
.calendar-first .shared-month-header .calendar-filter[hidden]{display:none}
.calendar-first .shared-month-header .calendar-filter>span{height:16px;white-space:nowrap}
.calendar-first .shared-month-header .calendar-filter select{box-sizing:border-box;width:100%;min-width:0;max-width:none;height:38px;margin:0;padding:6px 30px 6px 10px;font:inherit;line-height:20px}
.calendar-first .shared-month-header .tap-filter{display:none}
.tap-filter-backdrop{position:fixed;inset:0;z-index:999;background:#11251f55}
.tap-filter-menu{position:fixed;z-index:1000;left:0;right:0;bottom:0;max-height:min(68vh,540px);overflow:auto;background:#fff;border:1px solid #dce4e1;border-radius:20px 20px 0 0;box-shadow:0 -12px 38px #102b2533;padding:10px 12px calc(14px + env(safe-area-inset-bottom));overscroll-behavior:contain;animation:tap-filter-rise .18s ease-out}
.tap-filter-heading{position:sticky;top:-10px;z-index:1;background:#fff;color:#192f2b;font-size:17px;font-weight:800;padding:10px 12px 13px;border-bottom:1px solid #e8eeeb;margin-bottom:5px}
@keyframes tap-filter-rise{from{transform:translateY(16px);opacity:.6}to{transform:translateY(0);opacity:1}}
.tap-filter-option{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:46px;padding:10px 13px;text-align:left;border:0;border-radius:9px;background:white;color:#192f2b;font-weight:500}
.tap-filter-option:hover,.tap-filter-option:focus-visible{background:#f0f5f3}
.tap-filter-option[aria-selected="true"]{background:#e8f3ed;color:#1e433d;font-weight:700}
.tap-filter-option[aria-selected="true"]::after{content:'✓';font-size:16px;margin-left:8px}
.tap-filter-option:focus-visible{outline:2px solid #347dc4;outline-offset:-2px}
@media(prefers-reduced-motion:reduce){.tap-filter-menu{animation:none}}
.calendar-first .shared-month-header .month-controls{display:flex;gap:6px;padding:0;align-items:center;margin:0}
.calendar-first .shared-month-header .month-controls button{height:38px;min-width:34px}
.calendar-first .shared-month-header .month-controls .month-picker-button{font-size:12px;padding:0 10px}
@media(max-width:760px){
 .calendar-first .shared-month-header .month-actions{flex-direction:row;align-items:end;gap:10px}
 .calendar-first .shared-month-header .benefit-selectors{width:100%;grid-auto-flow:row;grid-auto-columns:auto;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .calendar-first .shared-month-header .calendar-filter{width:100%;font-size:12px}
 .calendar-first .shared-month-header .calendar-filter select{height:44px;padding:6px 20px 6px 8px;font-size:12px}
 .calendar-first .shared-month-header .calendar-filter select{display:none}
 .calendar-first .shared-month-header .calendar-filter .tap-filter{display:block;width:100%;min-height:44px;padding:7px 28px 7px 11px;text-align:left;border:1px solid #dce4e1;border-radius:10px;background:#fff;color:#192f2b;font-size:13px;font-weight:600;line-height:20px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;box-shadow:0 1px 3px #102b250b}
 .calendar-first .shared-month-header .calendar-filter .tap-filter[aria-expanded="true"]{border-color:#347d62;box-shadow:0 0 0 2px #347d6224}
 .calendar-first .shared-month-header .month-controls button{height:44px;min-width:44px}
}
@container (max-width:520px){
 .calendar-first .shared-month-header .benefit-selectors{width:100%;grid-auto-flow:row;grid-auto-columns:auto;grid-template-columns:repeat(2,minmax(0,1fr))}
 .calendar-first .shared-month-header .calendar-filter{width:100%}
}
@container (max-width:340px){
 .calendar-first .shared-month-header .benefit-selectors{grid-template-columns:minmax(0,1fr)}
}
