:root{--bg:#f5f5ef;--card:#fffefa;--ink:#1c2b26;--muted:#78847d;--line:#e5e9df;--dark:#17251e;--lime:#bff16d;--green:#427c56;--hour:72px;--sidebar:306px;--start:6;--top-height:66px}*{box-sizing:border-box}html,body{margin:0;height:100%}body{font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:var(--bg);color:var(--ink);font-size:14px;-webkit-font-smoothing:antialiased}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.4;cursor:not-allowed}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,.palette-card:focus-visible,.event-block:focus-visible{outline:3px solid #85b99a;outline-offset:2px}svg{display:block}input,select,textarea{outline:none}input:focus,select:focus,textarea:focus{border-color:#7aad74!important;box-shadow:0 0 0 3px #72b98126}.app{display:grid;grid-template-columns:var(--sidebar) minmax(0,1fr);min-height:100vh}.sidebar{background:var(--dark);color:#eef3e8;display:flex;flex-direction:column;position:sticky;top:0;height:100vh;min-height:610px;z-index:40}.s-head{padding:27px 24px 20px}.brand{display:flex;align-items:center;gap:10px;font-weight:900;letter-spacing:.17em;font-size:18px}.brand-mark{width:35px;height:35px;border-radius:11px;background:var(--lime);color:#1b3523;display:grid;place-items:center;font-size:22px;line-height:1;letter-spacing:0}.brand-sub{margin-top:15px;font-size:13px;color:#b0bcb0;line-height:1.55;max-width:230px}.s-section{padding:15px 17px 12px;overflow:hidden;display:flex;flex-direction:column;min-height:0;flex:1}.s-heading{display:flex;justify-content:space-between;align-items:center;padding:0 6px}.eyebrow{font-weight:850;font-size:10px;letter-spacing:.16em;color:#9daa9d;text-transform:uppercase}.btn-add{border:1px solid #526655;background:#304433;color:#eaf5dd;border-radius:10px;width:31px;height:31px;font-size:22px;display:grid;place-items:center;line-height:1}.btn-add:hover{background:#426848}.s-hint{margin:10px 6px 14px;color:#9cae9c;font-size:12px}.palette{overflow:auto;padding:0 4px 10px;scrollbar-width:thin;scrollbar-color:#566859 transparent}.palette-card{position:relative;background:#24362b;border:1px solid #3b4b3d;border-radius:14px;margin-bottom:9px;padding:13px 11px;display:flex;align-items:center;gap:11px;user-select:none;cursor:grab;touch-action:pan-y;transition:background .14s,border-color .14s}.palette-card:hover{background:#2c4233;border-color:#6c8770}.palette-card:active{cursor:grabbing}.palette-card .grip{font-size:17px;line-height:1;color:#8ba28f;touch-action:none;cursor:grab;width:12px;flex-shrink:0}.palette-symbol{height:35px;width:35px;flex:none;border-radius:11px;display:grid;place-items:center;font-size:17px;color:#1a3424}.palette-mid{min-width:0;flex:1}.palette-name{font-size:13px;font-weight:720;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.palette-small{font-size:11px;color:#a9b9ab;margin-top:3px}.edit-template{border:0;background:transparent;color:#b6c7bb;padding:7px;border-radius:8px;font-size:17px;line-height:1;opacity:.75}.edit-template:hover{background:#3e5744;opacity:1}.mini-track{height:3px;background:#435446;border-radius:5px;margin-top:9px;overflow:hidden}.mini-fill{height:100%;border-radius:5px}.s-foot{padding:16px 20px 18px;border-top:1px solid #334639;background:#1c2d23}.s-foot-row{display:flex;align-items:baseline;justify-content:space-between}.s-foot-row strong{font-size:24px;letter-spacing:-.06em}.s-foot-row span{color:#b7c1b2;font-size:12px}.s-foot .muted-line{font-size:11px;color:#a9b4a7;margin-top:5px}.s-footer-actions{display:flex;gap:8px;margin-top:15px}.s-footer-actions button{border:1px solid #405646;border-radius:9px;background:#2a3e30;color:#d1dacd;padding:8px 10px;font-size:12px;flex:1}.s-footer-actions button:hover{background:#35543a}.content{min-width:0;display:flex;flex-direction:column}.topbar{padding:26px 30px 19px;background:var(--bg);display:flex;align-items:flex-end;justify-content:space-between;gap:18px;flex-wrap:wrap}.top-eyebrow{font-size:10px;text-transform:uppercase;letter-spacing:.19em;font-weight:900;color:var(--green);margin:0 0 6px}.topbar h1{font-size:clamp(23px,2.2vw,33px);line-height:1.2;letter-spacing:-.052em;font-weight:790;margin:0}.topbar p{margin:7px 0 0;color:#78867b;font-size:12px}.top-controls{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.nav-week{display:flex;background:white;border:1px solid var(--line);border-radius:12px;box-shadow:0 3px 12px #1d36200a;align-items:center;overflow:hidden;height:40px}.nav-week button{height:100%;width:37px;border:0;background:transparent;color:#42594a;font-weight:700;font-size:20px}.nav-week button:hover{background:#f1f5ec}.week-title{font-size:12px;font-weight:800;min-width:130px;text-align:center}.btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;border:1px solid #dbe4d7;background:#fffefa;border-radius:11px;padding:10px 12px;font-weight:720;font-size:12px;color:#34483b;min-height:40px;white-space:nowrap}.btn:hover{background:#f0f6ed}.btn.primary{background:#1e3428;color:#fff;border-color:#1e3428}.btn.primary:hover{background:#32543c}.btn.soft{background:#e9f1e3}.btn.icon{min-width:40px;padding:9px;font-size:20px}.stats{display:flex;gap:9px;padding:0 30px 17px;flex-wrap:wrap}.stat{background:#fffefa;border:1px solid var(--line);border-radius:12px;min-height:54px;padding:8px 14px;display:flex;align-items:center;gap:11px;flex:1;min-width:143px}.stat-dot{width:30px;height:30px;display:grid;place-items:center;border-radius:9px;font-size:16px;background:#e9f4da}.stat-info strong{font-size:15px;letter-spacing:-.025em}.stat-info small{color:#899489;display:block;font-size:11px;margin-top:1px}.stat-tip{margin-left:auto;font-size:10px;color:#879688;white-space:nowrap}.main-card{padding:0 20px 20px 30px;min-height:0;flex:1}.calendar-card{height:calc(100vh - 207px);min-height:520px;max-height:910px;background:#fff;border:1px solid #e0e5dc;border-radius:18px;box-shadow:0 10px 40px #243a2111;overflow:hidden;display:flex;flex-direction:column}.calendar-top{padding:12px 15px;border-bottom:1px solid #e9eee7;display:flex;justify-content:space-between;gap:12px;align-items:center;min-height:51px;flex-wrap:wrap}.calendar-top .c-hint{color:#77877b;font-size:12px}.c-legend{display:flex;align-items:center;gap:9px}.c-legend span{font-size:10px;color:#94a096}.c-legend .pill{display:inline-flex;align-items:center;gap:5px;color:#56705a;border:1px solid #e6eee5;background:#f7faf5;padding:5px 9px;border-radius:20px;font-size:10px}.scroll-wrap{flex:1;overflow:auto;position:relative;scrollbar-color:#ced8c9 transparent;scrollbar-width:thin;overscroll-behavior:contain}.calendar-sheet{min-width:910px;--day-cols:7}.calendar-header,.calendar-body{display:grid;grid-template-columns:57px repeat(7,minmax(122px,1fr))}.calendar-header{height:67px;background:#fff;position:sticky;top:0;z-index:20;border-bottom:1px solid #e8ece5}.day-head{border-left:1px solid #edf0e9;padding:10px 9px 8px;text-align:center;cursor:pointer;display:flex;flex-direction:column;align-items:center;gap:1px}.day-head:hover{background:#f7faf5}.day-head.active{background:#f0f7e9}.day-head.today .day-number{background:#203728;color:#fff}.day-name{font-size:10px;letter-spacing:.09em;font-weight:800;color:#829185}.day-number{font-size:17px;font-weight:820;letter-spacing:-.04em;width:29px;height:29px;border-radius:50%;display:grid;place-items:center}.day-meta{font-size:10px;color:#a0aaa0}.clock-head{background:#fff;display:grid;place-items:center;color:#b6c1b7;font-size:15px}.calendar-body{position:relative}.clock-lane{position:relative;background:#fff;border-right:1px solid #e8ece6}.clock-label{position:absolute;right:10px;transform:translateY(-50%);font-size:10px;font-weight:600;color:#a2ada2;font-variant-numeric:tabular-nums}.day-lane{position:relative;border-left:1px solid #edf1ea;background:repeating-linear-gradient(to bottom,#fff 0px,#fff calc(var(--hour)/2 - 1px),#f1f4ed calc(var(--hour)/2 - 1px),#f1f4ed calc(var(--hour)/2),#fff calc(var(--hour)/2),#fff calc(var(--hour) - 1px),#e5ebe3 calc(var(--hour) - 1px),#e5ebe3 var(--hour));min-height:100%}.day-lane.weekend{background:repeating-linear-gradient(to bottom,#fbfdf9 0px,#fbfdf9 calc(var(--hour)/2 - 1px),#f0f3eb calc(var(--hour)/2 - 1px),#f0f3eb calc(var(--hour)/2),#fbfdf9 calc(var(--hour)/2),#fbfdf9 calc(var(--hour) - 1px),#e5ebe3 calc(var(--hour) - 1px),#e5ebe3 var(--hour))}.day-lane.is-target{box-shadow:inset 0 0 0 2px #8cc777;background-color:#f7fdf2}.event-block{position:absolute;z-index:2;border-radius:10px;border:1px solid color-mix(in srgb,var(--cat) 63%,white);border-left:4px solid var(--cat);background:color-mix(in srgb,var(--cat) 19%,white);color:#1b3527;box-shadow:0 3px 6px #16381a12;overflow:hidden;cursor:grab;touch-action:none;user-select:none;min-width:28px;display:flex;flex-direction:column;padding:7px 6px 8px 8px;transition:box-shadow .15s}.event-block:hover{z-index:10;box-shadow:0 5px 14px #24362027}.event-block.dragging{opacity:.4}.event-block.small{padding:4px 5px 5px 6px}.event-block.tiny{padding:3px 5px}.event-time{font-size:10px;line-height:1.2;font-weight:830;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;opacity:.75;letter-spacing:.005em}.event-title{font-size:12px;font-weight:760;line-height:1.25;overflow:hidden;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;margin-top:3px;overflow-wrap:anywhere}.event-block.small .event-title{font-size:11px;-webkit-line-clamp:1;margin-top:1px}.event-block.tiny .event-title{font-size:10px;margin-top:0;-webkit-line-clamp:1}.event-desc{font-size:10px;color:#4d6e56;margin-top:5px;opacity:.8}.resize-handle{position:absolute;bottom:0;left:0;right:0;height:14px;z-index:3;cursor:ns-resize;touch-action:none;display:flex;align-items:flex-end;justify-content:center;padding-bottom:4px}.resize-handle:after{content:'';height:3px;width:29px;max-width:70%;border-radius:3px;background:color-mix(in srgb,var(--cat) 72%,#354b37);opacity:.65}.event-block:hover .resize-handle:after{height:4px;opacity:1}.drop-indicator{position:absolute;z-index:15;border-radius:9px;border:2px dashed var(--cat);background:color-mix(in srgb,var(--cat) 22%,#fff);color:#173425;padding:7px 8px;font-size:11px;font-weight:800;pointer-events:none;box-shadow:0 6px 18px #0001}.drag-preview{position:fixed;z-index:9999;pointer-events:none;background:#fffefa;border:2px solid var(--dragColor);color:#24362b;border-radius:11px;padding:10px 13px;box-shadow:0 18px 35px #14231740;width:173px;font-size:12px;font-weight:850;transform:rotate(-2deg);line-height:1.4}.drag-preview .sub{font-size:11px;color:#6f8071;font-weight:600;margin-top:3px}.empty-week{background:#f6faee;padding:10px 18px;text-align:center;font-size:12px;color:#648267;border-bottom:1px solid #e2eddf}.bottom-guidance{padding:14px 31px 18px;color:#96a296;font-size:12px;display:flex;justify-content:space-between;gap:12px}.mobile-day-strip{display:none}.toast-stack{position:fixed;bottom:22px;right:22px;z-index:120;display:grid;gap:8px}.toast{background:#1d3727;color:#fff;padding:13px 16px;border-radius:12px;box-shadow:0 10px 30px #1b2c2040;font-size:13px;max-width:350px;display:flex;gap:13px;align-items:center}.toast button{background:#c6f18a;border:0;border-radius:7px;font-size:11px;font-weight:800;padding:6px 9px;color:#1c3c27}.veil{position:fixed;inset:0;background:#0e2117a1;z-index:100;display:flex;align-items:center;justify-content:center;padding:16px}.modal{width:100%;max-width:520px;max-height:min(92vh,820px);overflow:auto;border-radius:21px;background:#fffefa;box-shadow:0 30px 90px #0005}.modal-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:23px 25px 14px}.modal-kicker{text-transform:uppercase;font-size:10px;letter-spacing:.16em;color:var(--green);font-weight:900}.modal-head h2{margin:6px 0 0;font-size:23px;letter-spacing:-.04em;line-height:1.25}.close{background:#f2f3ed;border:0;border-radius:9px;font-size:20px;width:31px;height:31px;display:grid;place-items:center;color:#526356}.modal-body{padding:8px 25px 23px}.field{display:flex;flex-direction:column;gap:7px;margin-bottom:15px}.field label{font-size:11px;text-transform:uppercase;letter-spacing:.07em;font-weight:900;color:#627468}.field input,.field select,.field textarea{width:100%;background:#fff;border:1px solid #dce5da;border-radius:10px;padding:11px 12px;min-height:42px;color:#193126}.field textarea{min-height:75px;resize:vertical}.two-col{display:grid;grid-template-columns:1fr 1fr;gap:12px}.color-choices{display:flex;align-items:center;flex-wrap:wrap;gap:9px}.swatch{width:29px;height:29px;border-radius:9px;border:2px solid transparent;outline:2px solid transparent;outline-offset:2px}.swatch.active{outline-color:#274b30}.color-input{width:34px!important;height:31px!important;padding:2px!important;border:1px solid #dbe5d9!important;min-height:0!important;cursor:pointer}.modal-actions{display:flex;gap:9px;justify-content:flex-end;margin-top:19px;flex-wrap:wrap}.modal-actions .danger{margin-right:auto;color:#b45247;border-color:#f1d6cf;background:#fff7f5}.modal-help{background:#f0f7eb;padding:11px 13px;border-radius:10px;color:#5c795d;font-size:12px;line-height:1.5;margin:8px 0 17px}.menu-anchor{position:relative}.dropdown{position:absolute;z-index:70;top:calc(100% + 7px);right:0;min-width:233px;padding:6px;background:white;border:1px solid #dce3d7;border-radius:12px;box-shadow:0 18px 40px #18302022}.dropdown button{display:block;width:100%;text-align:left;padding:10px;border:0;background:white;color:#304737;font-size:12px;border-radius:8px}.dropdown button:hover{background:#edf5e9}.dropdown button.danger{color:#bd5745}.mobile-fab{display:none}.time-hint{display:none}.quick-option{display:flex;align-items:center;gap:9px;padding:10px 8px;min-width:0;border:1px solid #e4eadd;background:#fff;border-radius:11px;color:#283f2b}.quick-option:hover{border-color:#b1d2a4;background:#f4faf1}.quick-option .palette-symbol{width:30px;height:30px;font-size:14px;border-radius:9px}.quick-option b{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block}.color-reset{font-size:12px;background:#f0f4eb;color:#567254;padding:7px 10px;border:0;border-radius:8px}.clock-lane,.day-lane{height:100%}.dragging-ui{cursor:grabbing!important}.shortcut{color:#c4cfc3;font-size:10px;letter-spacing:0;margin:10px 5px 0;line-height:1.55} .mobile-library-toggle{display:none}.selected-event .event-block{box-shadow:0 0 0 2px #153822}
@media(max-width:1180px){:root{--sidebar:280px}.topbar{padding:21px 20px 17px}.stats{padding:0 20px 12px}.main-card{padding:0 12px 12px 20px}.calendar-sheet{min-width:900px}.bottom-guidance{padding:13px 22px}.stat{min-width:120px}}
@media(max-width:760px){:root{--hour:72px}.app{display:block}.sidebar{position:static;height:auto;min-height:0;padding:0;display:block}.s-head{padding:15px 17px 9px;display:flex;align-items:center;justify-content:space-between;gap:16px}.brand{font-size:17px}.brand-mark{width:30px;height:30px}.brand-sub{display:none}.s-section{padding:0 12px 12px;display:none}.sidebar.library-open .s-section{display:block}.s-heading{padding:10px 4px}.s-hint{margin:4px 4px 10px}.palette{display:flex;gap:8px;overflow:auto;padding:0 2px 6px}.palette-card{flex:0 0 220px;margin-bottom:0;touch-action:pan-x}.s-foot{display:none}.mobile-library-toggle{display:inline-flex;align-items:center;justify-content:center;gap:6px;background:#2c4334;color:#e0eddd;border:1px solid #415c46;border-radius:9px;padding:8px 11px;font-weight:750;font-size:12px}.topbar{padding:19px 15px 12px;gap:14px}.topbar h1{font-size:26px}.topbar p{font-size:11px}.top-controls{width:100%;justify-content:space-between;gap:7px}.nav-week{flex:1;min-width:0}.week-title{flex:1;min-width:0;font-size:11px}.top-controls .btn{padding:9px 10px}.stats{padding:0 12px 10px;display:grid;grid-template-columns:1fr 1fr;gap:6px}.stat{padding:7px 10px;min-height:48px;min-width:0;gap:8px}.stat-info strong{font-size:13px}.stat-info small{font-size:10px}.stat-dot{height:26px;width:26px;font-size:13px}.stat-tip{display:none}.main-card{padding:0 9px 9px}.calendar-card{border-radius:13px;height:calc(100dvh - 264px);min-height:420px;max-height:none}.calendar-top{padding:10px 12px;min-height:42px}.calendar-top .c-hint{font-size:11px}.c-legend{display:none}.mobile-day-strip{display:flex;align-items:stretch;justify-content:space-between;padding:7px;gap:3px;background:#fffefa;border-bottom:1px solid #e9eee6}.mobile-day-strip button{border:0;background:transparent;flex:1;padding:6px 2px;border-radius:9px;color:#69796a;display:flex;flex-direction:column;align-items:center;gap:3px}.mobile-day-strip button.selected{background:#e6f3dc;color:#1c4c30}.mobile-day-strip button.today .mday-num{border:1px solid #8aab87}.mday-name{font-size:10px;font-weight:800}.mday-num{font-size:15px;font-weight:900;border-radius:20px;width:25px;height:25px;display:grid;place-items:center}.mday-blocks{width:5px;height:5px;border-radius:10px;background:#c9d9c8}.mday-blocks.has{background:#74a877}.calendar-sheet{min-width:0}.calendar-header,.calendar-body{grid-template-columns:49px 1fr}.calendar-header{display:none}.clock-head{display:none}.day-lane{border-left:1px solid #e5eee2}.day-lane:not(.mobile-selected){display:none}.clock-label{right:7px}.bottom-guidance{padding:10px 14px 22px;font-size:11px}.bottom-guidance span:last-child{display:none}.mobile-fab{display:flex;align-items:center;gap:8px;position:fixed;bottom:15px;right:15px;z-index:37;border:0;background:#1e3c27;color:#fff;box-shadow:0 9px 26px #11281555;padding:13px 17px;border-radius:14px;font-weight:800}.mobile-fab b{font-size:21px;line-height:.8}.toast-stack{right:12px;bottom:78px;left:12px}.toast{max-width:none}.two-col{grid-template-columns:1fr 1fr}.modal-head{padding:19px 18px 11px}.modal-body{padding:8px 18px 18px}.modal-head h2{font-size:20px}}
@media(max-width:380px){.stats{grid-template-columns:1fr 1fr}.topbar p{display:none}.topbar{padding-top:14px}.calendar-card{height:calc(100dvh - 245px)}.btn{font-size:11px}.topbar h1{font-size:23px}.palette-card{flex-basis:190px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

/* Distinguish the following calendar date in the 06:00–06:00 planner. */
.clock-label small{font-size:9px;color:#719079;padding-left:3px;font-weight:800}

/* Calendario: S toggles a compact, chronological stack without changing event times. */
.calendar-view-tools{margin-left:auto;display:flex;gap:10px;align-items:center}
.compact-toggle{flex:none;display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid #cddfc8;border-radius:10px;background:#f3f8ed;color:#2d5134;padding:6px 11px 6px 7px;font-size:11px;font-weight:800;min-height:36px;box-shadow:0 2px 8px #203d200a}
.compact-toggle:hover{background:#e5f3df;border-color:#9cbe97}
.compact-toggle-letter{display:grid;place-items:center;border-radius:7px;width:26px;height:26px;background:#2c4935;color:#fff;font-size:14px;font-weight:900;line-height:1}
.compact-toggle[aria-pressed="true"]{background:#dff1d3;border-color:#8cae84;color:#254930}
.compact-toggle[aria-pressed="true"] .compact-toggle-letter{background:#bbed77;color:#22462c}
.compact-toggle:focus-visible{outline:3px solid #80bc8f;outline-offset:3px}
.calendar-card.compact-active{height:auto;min-height:0;max-height:none}
.calendar-card.compact-active .scroll-wrap{flex:0 1 auto;max-height:min(72vh,840px);overflow:auto}
.calendar-card.compact-active .c-legend{display:none}
.calendar-sheet.compact .calendar-body{height:auto!important;align-items:stretch}
.calendar-sheet.compact .clock-lane{height:auto;min-height:0;background:#fafbf8}
.calendar-sheet.compact .day-lane{position:relative;display:flex;flex-direction:column;align-items:stretch;gap:0;height:auto;min-height:0;padding:8px 6px 15px;background:#fafcf8;border-left:1px solid #e6ece3}
.calendar-sheet.compact .day-lane.weekend{background:#f6f9f4}
.calendar-sheet.compact .event-block{position:relative;display:flex;flex-direction:column;align-items:stretch;flex:none;top:auto;left:auto;width:100%;min-height:0;padding:7px 7px 8px 9px;border-radius:6px;cursor:pointer;touch-action:manipulation;overflow:hidden}
.calendar-sheet.compact .event-block .event-time{font-size:10px;font-weight:850;opacity:.85;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
.calendar-sheet.compact .event-block .event-title{margin-top:5px;font-size:12px;line-height:1.27;-webkit-line-clamp:unset;display:block;overflow-wrap:anywhere}
.calendar-sheet.compact .compact-duration{font-size:10px;color:#59735e;margin-top:5px;font-weight:700}
/* Preserve the same vertical time scale as the hourly grid, even for 15-minute tasks. */
.calendar-sheet.compact .event-block.small{padding:3px 6px 3px 7px}
.calendar-sheet.compact .event-block.small .event-title{font-size:11px;line-height:1.15;margin-top:3px}
.calendar-sheet.compact .event-block.small .compact-duration{display:none}
.calendar-sheet.compact .event-block.tiny{flex-direction:row;align-items:center;gap:5px;padding:1px 4px 1px 5px;border-radius:3px}
.calendar-sheet.compact .event-block.tiny .event-time{flex:none;font-size:9px;line-height:1.05}
.calendar-sheet.compact .event-block.tiny .event-title{flex:1;min-width:0;margin-top:0;font-size:10px;line-height:1.05;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
.calendar-sheet.compact .compact-empty{font-size:11px;color:#9ba99c;text-align:center;padding:17px 2px;font-weight:600}
@media(max-width:760px){
 .calendar-view-tools{margin-left:auto}
 .compact-toggle{padding:5px;min-width:36px;min-height:36px}
 .compact-toggle #compact-toggle-label{display:none}
 .calendar-sheet.compact .calendar-body{grid-template-columns:minmax(0,1fr)}
 .calendar-sheet.compact .clock-lane{display:none}
 .calendar-sheet.compact .day-lane:not(.mobile-selected){display:none}
 .calendar-sheet.compact .day-lane{padding:10px;gap:0;min-height:0}
 .calendar-sheet.compact .event-block{min-height:0;padding:7px 10px 8px}
 .calendar-card.compact-active .scroll-wrap{max-height:min(64vh,850px)}
}

/* Annual calendar — calm 12-month overview that opens the selected week. */
[hidden]{display:none!important}
.calendar-mode-switch{display:inline-flex;align-items:center;gap:3px;padding:4px;background:#e7ece3;border:1px solid #dce5d8;border-radius:12px;height:40px}
.calendar-mode-switch button{border:0;background:transparent;border-radius:9px;padding:7px 13px;color:#66806b;font-size:12px;font-weight:800}
.calendar-mode-switch button.active{background:#fff;color:#23432d;box-shadow:0 2px 8px #26402d18}
.calendar-mode-switch button:hover:not(.active){background:#f4f8f1}
.calendar-card.annual-active{height:auto;max-height:none;min-height:520px;overflow:visible}
.calendar-card.annual-active .calendar-top{border-bottom:0}
.annual-view{padding:6px 22px 28px}
.year-summary{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:20px 20px 23px;border-radius:16px;background:#eef5e9;margin-bottom:18px}
.year-kicker{font-size:10px;color:#568159;font-weight:900;letter-spacing:.12em}
.year-summary h2{font-size:27px;color:#203c2b;margin:4px 0 4px;letter-spacing:-.045em}
.year-summary p{font-size:12px;color:#708774;margin:0}
.year-summary-count{border-left:1px solid #cddfcb;min-width:150px;text-align:center;padding:0 10px;display:flex;flex-direction:column}
.year-summary-count strong{font-size:29px;letter-spacing:-.06em;color:#234a30;line-height:1.2}
.year-summary-count span{font-size:11px;color:#729077}
.year-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.year-month{border:1px solid #e6ebe2;background:#fffefa;border-radius:14px;padding:16px;min-width:0}
.year-month-head{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin-bottom:13px}
.year-month-head h3{font-size:15px;text-transform:capitalize;letter-spacing:-.03em;color:#223d2b;margin:0}
.year-month-head span{color:#899a8a;font-size:10px;white-space:nowrap}
.year-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px;text-align:center}
.year-days>b{color:#9ba99c;font-size:9px;font-weight:850;padding:3px 0 8px}
.year-pad{min-height:31px}
.year-day{position:relative;border:0;background:transparent;border-radius:9px;min-width:0;min-height:31px;display:flex;align-items:center;justify-content:center;color:#607261;font-size:11px;font-weight:650}
.year-day:hover{background:#e4f1dc;color:#20442c}
.year-day.has-events{background:#edf7e7;color:#2c5b35;font-weight:850}
.year-day.has-events:hover{background:#d1eebf}
.year-day.is-today{box-shadow:inset 0 0 0 2px #2e5c3a;font-weight:950}
.year-dot{position:absolute;bottom:2px;width:4px;height:4px;background:#6fa96f;border-radius:50%}
.year-dot.intensity-2{width:7px;background:#4d9156}
.year-dot.intensity-3,.year-dot.intensity-4{width:11px;height:4px;background:#245c35}
.recurrence-scope{display:flex;gap:5px;padding:4px;background:#eff3ed;border-radius:11px;margin:0 0 16px}
.recurrence-scope button{flex:1;border:0;background:transparent;border-radius:9px;padding:9px;color:#607663;font-size:12px;font-weight:800}
.recurrence-scope button.active{color:#244b2d;background:white;box-shadow:0 2px 7px #102d1716}
.recurrence-panel{padding:13px 13px 8px;background:#f7faf5;border:1px solid #e1eadd;border-radius:12px;margin:0 0 13px}
.recurrence-panel .field{margin-bottom:11px}
.repeat-days{display:flex;gap:6px;flex-wrap:wrap}
.repeat-day{position:relative;cursor:pointer}
.repeat-day input{position:absolute;opacity:0;width:1px;height:1px;pointer-events:none}
.repeat-day span{display:grid;place-items:center;width:34px;height:34px;border-radius:9px;border:1px solid #cddfc8;background:white;font-size:12px;font-weight:850;color:#778979}
.repeat-day input:checked+span{background:#30593b;color:white;border-color:#30593b}
.repeat-day input:focus-visible+span{outline:3px solid #7aba87;outline-offset:2px}
.recurrence-footnote{font-size:11px;color:#819184;margin:6px 0}
@media(max-width:1130px){.year-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){
 .calendar-mode-switch{height:38px}
 .calendar-mode-switch button{padding:7px 10px;font-size:11px}
 .top-controls #new-event{padding:8px 10px;font-size:11px}
 .calendar-card.annual-active{min-height:0;height:auto;max-height:none}
 .annual-view{padding:2px 10px 15px}
 .year-summary{margin:7px 0 12px;padding:15px;gap:9px}
 .year-summary h2{font-size:20px}
 .year-summary-count{min-width:75px}
 .year-summary-count strong{font-size:23px}
 .year-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .year-month{padding:10px 7px;border-radius:11px}
 .year-month-head{display:block;margin-bottom:7px}
 .year-month-head h3{font-size:13px}
 .year-month-head span{font-size:9px}
 .year-days{gap:1px}
 .year-day{font-size:10px;min-height:27px;border-radius:6px}
 .year-pad{min-height:27px}
 .year-days>b{font-size:8px;padding-bottom:4px}
}
@media(max-width:420px){.year-grid{grid-template-columns:1fr}.year-month{padding:14px}.year-day{min-height:36px}.year-pad{min-height:36px}}

