.calendar-card{padding:18px 14px;border-radius:24px;background:linear-gradient(155deg,#212b34,var(--surface));border-color:#38444e}.calendar-heading{gap:10px}.calendar-heading h2{font-size:19px;line-height:1.3;font-weight:750}.calendar-heading button{height:44px;min-height:44px;border-radius:14px;background:#ffffff06;border:1px solid #44515e;color:var(--ink);font-size:23px}.calendar-heading button:active{background:#d4ff5a15;color:var(--accent)}.calendar-today-row{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:12px 0 4px}.calendar-today-row>span{font-size:11px;color:var(--muted)}#calendar-today{width:auto;min-height:40px;padding:8px 14px;margin:0;border-radius:12px;background:#d4ff5a0d;font-size:12px}.calendar-grid{gap:4px}.calendar-weekday{font-size:10px;padding:12px 0;color:#a9b6c3}.calendar-day{position:relative;min-height:50px;border-radius:13px;font-size:14px;font-weight:600;gap:5px;background:#ffffff02}.calendar-day.is-today{border:1px solid #a8d3ff88;background:#a8d3ff0a;color:#c5e2ff}.calendar-day[aria-pressed=true]{background:var(--accent);color:#141b0b;border-color:var(--accent);box-shadow:0 3px 10px #0002;font-weight:800}.calendar-marks{height:10px;gap:2px;justify-content:center}.calendar-marks i,.calendar-legend i{position:relative;display:inline-block;flex:none;margin:0;border-radius:0;width:8px;height:8px;box-sizing:border-box}.calendar-marks .calendar-workout,.calendar-legend .calendar-workout{background:#a9e45e;border-radius:2px}.calendar-workout:after{content:'';position:absolute;width:4px;height:2px;border-left:1px solid #16210b;border-bottom:1px solid #16210b;transform:rotate(-45deg);left:2px;top:2px}.calendar-marks .calendar-planned,.calendar-legend .calendar-planned{background:transparent;border:1.5px solid #cf94f3;border-radius:50%}.calendar-marks .calendar-measure,.calendar-legend .calendar-measure{background:#7bbcff;width:7px;height:3px;border-radius:1px}.calendar-marks .calendar-reminder,.calendar-legend .calendar-reminder{background:#f2bd62;width:6px;height:6px;transform:rotate(45deg);border-radius:1px}.calendar-day[aria-pressed=true] .calendar-workout{background:#243312}.calendar-day[aria-pressed=true] .calendar-workout:after{border-color:var(--accent)}.calendar-day[aria-pressed=true] .calendar-planned{border-color:#503464}.calendar-day[aria-pressed=true] .calendar-measure{background:#254c79}.calendar-day[aria-pressed=true] .calendar-reminder{background:#765014}.calendar-legend{display:grid;grid-template-columns:1fr 1fr;gap:12px 10px;border-top:1px solid var(--line);padding-top:17px;margin:18px 4px 4px;font-size:11px;color:var(--muted)}.calendar-legend span{gap:8px}.calendar-key{font-size:11px;color:var(--muted);margin:12px 4px 0}.calendar-key summary,.calendar-storage summary{cursor:pointer;min-height:36px;display:flex;align-items:center}.calendar-key summary:before,.calendar-storage summary:before{content:'+';margin-right:7px;color:#a8d3ff}.calendar-key p,.calendar-storage p{font-size:11px;line-height:1.7}.calendar-selected-heading{margin:26px 2px 12px}.calendar-selected-heading .eyebrow{font-size:10px;margin:0 0 6px}.calendar-selected-heading h2{font-size:23px;line-height:1.3}.calendar-day-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:22px 3px 10px}.calendar-day-heading h3{font-size:15px}.calendar-day-heading>span{font-size:11px;color:var(--muted)}.calendar-storage{font-size:11px;color:var(--muted);margin:0 2px 10px}.calendar-sync-note{background:#e9bd7510;border:1px solid #e9bd7540;border-radius:16px;padding:14px;margin:12px 0}.calendar-sync-note p{font-size:12px;line-height:1.6;margin:0 0 10px}.calendar-sync-note button{font-size:12px;min-height:44px}.calendar-plan-card{border:1px solid #cf94f330;border-radius:21px;padding:18px;background:linear-gradient(135deg,#cf94f309,var(--surface));margin:10px 0}.calendar-plan-card .row{align-items:flex-start;gap:10px}.calendar-plan-card h3{font-size:18px;line-height:1.4}.calendar-plan-card .schedule-status{flex-shrink:0;border-radius:8px;background:#cf94f312;color:#dfbcf7;padding:5px 8px;font-size:10px}.calendar-plan-card>.muted{font-size:12px;margin:8px 0 16px}.calendar-plan-card>.primary{min-height:50px;font-size:14px}.calendar-plan-actions{font-size:12px;margin-top:8px;color:var(--muted)}.calendar-plan-actions>summary{min-height:44px;padding:10px 0}.calendar-plan-create{border-radius:18px;border:1px dashed #596b40;background:#d4ff5a07;padding:15px 17px;margin:14px 0}.calendar-plan-create>summary{min-height:42px;color:var(--accent);font-size:14px;font-weight:650;list-style:none;display:flex;align-items:center;gap:10px;cursor:pointer}.calendar-plan-create>summary::-webkit-details-marker{display:none}.calendar-plan-create>summary>span{font-size:23px}.calendar-archived{font-size:12px;color:var(--muted);margin:18px 2px}.calendar-archived>summary{min-height:44px;cursor:pointer}.calendar-archived .calendar-plan-card{background:var(--surface);border-color:var(--line)}.calendar-finished{border-radius:21px;border-color:#d4ff5a28;background:linear-gradient(135deg,#d4ff5a08,var(--surface));padding:18px;margin:10px 0}.calendar-result-label{display:flex;justify-content:space-between;align-items:center;color:var(--accent);font-size:10px;letter-spacing:.04em;font-weight:600;margin-bottom:10px}.calendar-finished>strong{font-size:19px;margin-bottom:7px}.calendar-finished>.muted{font-size:12px;line-height:1.7}.calendar-measure-card,.calendar-reminder-card{border-radius:20px}.calendar-measure-card summary{min-height:44px;font-size:14px}.calendar-reminder-card h3{font-size:16px;margin-bottom:14px}.calendar-empty{border:1px dashed var(--line);border-radius:18px;padding:20px;margin:16px 0}.calendar-empty h3{font-size:15px}.calendar-empty p{font-size:12px;line-height:1.7;color:var(--muted);margin-bottom:0}.calendar-day:focus-visible{outline-offset:1px}.calendar-filters{border-radius:16px;padding:13px 16px}.calendar-filters>summary{min-height:30px}@media(max-width:350px){.calendar-card{padding:15px 10px}.calendar-grid{gap:2px}.calendar-heading h2{font-size:17px}.calendar-day{font-size:13px;min-height:48px}.calendar-selected-heading h2{font-size:21px}.calendar-plan-card{padding:16px}.calendar-plan-card h3{font-size:16px}}@media(prefers-reduced-motion:no-preference){.calendar-day{transition:background-color .15s ease,border-color .15s ease}}

.calendar-filters>summary:after{content:'+'}.calendar-filters[open]>summary:after{content:'−'}

.calendar-repeat-week{display:flex;align-items:center;gap:12px;width:100%;padding:16px;margin:14px 0;background:#a8d3ff0a;border:1px solid #a8d3ff25;border-radius:18px;color:var(--ink);text-align:left}.calendar-repeat-week>span:first-child{font-size:26px;color:#a8d3ff}.calendar-repeat-week>span:nth-child(2){flex:1;min-width:0}.calendar-repeat-week strong{display:block;font-size:14px}.calendar-repeat-week small{display:block;font-size:11px;color:var(--muted);margin-top:5px}.calendar-repeat-week>span:last-child{color:#a8d3ff}.calendar-repeat-dialog{padding:20px;max-width:450px}.calendar-repeat-heading{display:flex;align-items:flex-start;gap:10px;justify-content:space-between}.calendar-repeat-heading .eyebrow{font-size:9px;margin:0 0 8px}.calendar-repeat-heading h2{font-size:25px}.calendar-repeat-heading .ghost{font-size:24px;padding:5px;flex-shrink:0}.calendar-repeat-dialog #calendar-repeat-intro{font-size:13px;line-height:1.8;padding:14px;background:#a8d3ff0a;border:1px solid #a8d3ff20;border-radius:14px;color:var(--muted)}#calendar-repeat-intro>strong{color:#bddfff}.calendar-repeat-help{font-size:11px;line-height:1.7;color:var(--muted)}.calendar-repeat-items{margin:18px 0}.calendar-repeat-item{display:flex;align-items:flex-start;gap:12px;padding:16px 14px;margin:10px 0;border:1px solid var(--line);border-radius:16px;background:var(--surface);cursor:pointer}.calendar-repeat-item input{width:21px;height:21px;min-height:21px;margin:1px 0 0;flex:0 0 21px;accent-color:var(--accent)}.calendar-repeat-item>span{min-width:0}.calendar-repeat-item>span>strong{display:block;font-size:15px;line-height:1.4;color:var(--ink);overflow-wrap:anywhere}.calendar-repeat-item small{display:block;font-size:10px;line-height:1.6;color:var(--muted);margin-top:4px}.calendar-repeat-date{display:block;font-size:11px;line-height:1.7;margin:10px 0 0;color:var(--muted)}.calendar-repeat-date strong{color:#bddfff}.calendar-repeat-item.is-unavailable{background:#ffffff02;border-style:dashed;cursor:default}.calendar-repeat-item small.calendar-repeat-warning{color:#e5c185}.calendar-repeat-footer{border-top:1px solid var(--line);padding-top:12px}.calendar-repeat-footer p{font-size:11px;color:var(--muted);line-height:1.7}.calendar-repeat-footer .primary{font-size:14px}.calendar-repeat-footer .ghost{width:100%;margin-top:5px;font-size:13px}.calendar-repeat-dialog>#calendar-repeat-error{font-size:12px}.calendar-repeat-dialog>#calendar-repeat-refresh{font-size:12px;margin-bottom:12px}@media(max-width:350px){.calendar-repeat-dialog{padding:16px}.calendar-repeat-heading h2{font-size:23px}.calendar-repeat-item{gap:10px;padding:14px 12px}}

.calendar-timing-fields{padding:12px 14px;border:1px solid #a8d3ff25;background:#a8d3ff07;border-radius:15px;margin:14px 0}.calendar-timing-fields>summary{font-size:12px;min-height:36px;cursor:pointer;color:#bddfff}.calendar-timing-inputs{display:grid;grid-template-columns:1fr 1fr;gap:12px}.calendar-timing-inputs label{font-size:11px;line-height:1.5;margin:12px 0 5px}.calendar-timing-inputs input{width:100%;max-width:100%;min-width:0;min-height:48px;font-size:16px;padding:12px 8px}.calendar-timing-fields>p{font-size:10px;line-height:1.7;color:var(--muted);margin:10px 0 0}.calendar-time-caption{display:flex;align-items:center;flex-wrap:wrap;gap:6px 10px;margin:12px 0 18px;color:#aebcca;font-size:11px}.calendar-time-caption>strong{font-size:20px;color:#c2e0ff;line-height:1.3}.calendar-time-caption>span{font-size:11px;padding:5px 8px;background:#a8d3ff0b;border-radius:8px}.calendar-time-caption>small{display:block;flex-basis:100%;font-size:10px;line-height:1.6;color:var(--muted)}@media(max-width:350px){.calendar-timing-inputs{grid-template-columns:1fr;gap:0}.calendar-timing-fields{padding:10px 12px}}

/* Month changes animate only the date grid; choosing a day does not replay entry motion. */
@media(prefers-reduced-motion:no-preference){.calendar-grid.calendar-month-next{animation:calendar-month-next .22s ease-out both}.calendar-grid.calendar-month-prev{animation:calendar-month-prev .22s ease-out both}.calendar-grid.calendar-month-entry{animation:calendar-month-entry .22s ease-out both}}
@keyframes calendar-month-next{from{opacity:.4;transform:translateX(10px)}to{opacity:1;transform:none}}
@keyframes calendar-month-prev{from{opacity:.4;transform:translateX(-10px)}to{opacity:1;transform:none}}
@keyframes calendar-month-entry{from{opacity:.4}to{opacity:1}}

.calendar-reminder-fields{margin:14px 0;padding-top:12px;border-top:1px solid var(--line)}.calendar-reminder-fields p,.calendar-reminder-status{font-size:12px;line-height:1.6;color:var(--muted)}.calendar-reminder-status{border-left:3px solid var(--accent);padding:8px 12px;background:#d4ff5a08;border-radius:0 10px 10px 0}
