*,*:before,*:after{box-sizing:border-box}*{margin:0}html{interpolate-size:allow-keywords}body{line-height:1.5;-webkit-font-smoothing:antialiased}img,picture,video,canvas,svg{display:block;max-width:100%}input,button,textarea,select{font:inherit}p{overflow-wrap:break-word;text-wrap:pretty}h1,h2,h3,h4,h5,h6{overflow-wrap:break-word;text-wrap:balance}#root,#app{isolation:isolate}:root{font-family:-apple-system,BlinkMacSystemFont,SF Pro Text,SF Pro Display,system-ui,Segoe UI,Roboto,Helvetica Neue,sans-serif;color-scheme:light dark;--primary: #0071e3;--primary-strong: #0058b9;--accent: #ff3b30;--bg: #ffffff;--surface: #ffffff;--surface-muted: #f5f5f7;--hairline: #e7e7ec;--border: #e7e7ec;--border-strong: #d2d2d7;--text: #1d1d1f;--text-muted: #86868b;--text-faint: #b8b8be;--selected-bg: #f0f0f3;--shadow-lg: 0 16px 44px rgba(0, 0, 0, .16);--radius: 14px;--radius-sm: 9px}@media(prefers-color-scheme:dark){:root{--primary: #0a84ff;--primary-strong: #409cff;--accent: #ff453a;--bg: #000000;--surface: #1c1c1e;--surface-muted: #2c2c2e;--hairline: #2c2c2e;--border: #38383a;--border-strong: #48484a;--text: #f5f5f7;--text-muted: #98989d;--text-faint: #636366;--selected-bg: #2c2c2e;--shadow-lg: 0 16px 44px rgba(0, 0, 0, .7)}}body{min-height:100dvh;background:var(--bg);color:var(--text);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;letter-spacing:-.011em}#app{max-width:1040px;margin-inline:auto;padding:clamp(1rem,2.5vw,2.25rem)}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.app-nav{margin-bottom:1.5rem}.app-brand{display:inline-flex;align-items:center;gap:.45rem;font-size:1.05rem;font-weight:600;letter-spacing:-.02em;color:var(--text);text-decoration:none}.app-brand-mark{font-size:1.25rem}.btn{font-weight:500;font-size:.9rem;border:1px solid transparent;border-radius:var(--radius-sm);padding:.45rem .85rem;cursor:pointer;background:transparent;color:var(--primary);transition:background-color .15s ease,border-color .15s ease,opacity .1s ease}.btn:active{opacity:.6}.btn:focus-visible{outline:2px solid var(--primary);outline-offset:2px}.btn-primary{background:var(--primary);color:#fff;font-weight:600}.btn-primary:hover{background:var(--primary-strong)}.btn-ghost{background:var(--surface);border-color:var(--border-strong);color:var(--text)}.btn-ghost:hover{background:var(--surface-muted)}.btn-danger{background:transparent;border-color:transparent;color:var(--accent)}.btn-danger:hover{background:color-mix(in srgb,var(--accent) 12%,transparent)}.segmented{display:inline-flex;border:1px solid var(--border-strong);border-radius:var(--radius-sm);overflow:hidden;background:var(--surface)}.segmented .btn-step{width:2.2rem;height:2rem;padding:0;font-size:1.15rem;line-height:1;border-radius:0;border:none;color:var(--primary);display:grid;place-items:center}.segmented .btn-step:hover{background:var(--surface-muted)}.segmented .btn-step+.btn-step{border-left:1px solid var(--border-strong)}.btn-today{padding:.35rem .85rem;height:2rem;font-size:.875rem}.calendar-header{display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap;margin-bottom:1.25rem}.calendar-title-group{display:flex;align-items:baseline;gap:.9rem}.calendar-title{font-size:clamp(1.5rem,3vw,1.9rem);font-weight:700;letter-spacing:-.03em}.calendar-year{color:var(--text-muted);font-weight:400}.calendar-nav{display:flex;align-items:center;gap:.6rem}.calendar-layout{display:grid;grid-template-columns:minmax(0,1.95fr) minmax(0,1fr);gap:1.75rem;align-items:start}@media(max-width:820px){.calendar-layout{grid-template-columns:1fr;gap:1.25rem}}.calendar-grid-wrap{background:var(--surface);border:1px solid var(--hairline);border-radius:var(--radius);overflow:hidden}.weekday-row{display:grid;grid-template-columns:repeat(7,1fr);border-bottom:1px solid var(--hairline)}.weekday-cell{padding:.65rem .5rem;text-align:center;font-size:.7rem;font-weight:600;text-transform:uppercase;letter-spacing:.04em;color:var(--text-muted)}.weekday-short{display:none}.day-grid{display:grid;grid-template-columns:repeat(7,1fr);grid-auto-rows:minmax(108px,1fr)}.day-cell{position:relative;display:flex;flex-direction:column;gap:.3rem;align-items:stretch;text-align:left;padding:.4rem .45rem .5rem;border:none;border-right:1px solid var(--hairline);border-bottom:1px solid var(--hairline);background:var(--surface);color:var(--text);cursor:pointer;font:inherit;transition:background-color .12s ease}.day-cell:nth-child(7n){border-right:none}.day-cell:nth-last-child(-n+7){border-bottom:none}.day-cell:hover{background:var(--surface-muted)}.day-cell[data-outside=true],.day-cell[data-outside=true] .day-number{color:var(--text-faint)}.day-cell[data-selected=true]{background:var(--selected-bg)}.day-cell:focus-visible{outline:none;box-shadow:inset 0 0 0 2px var(--primary);z-index:2}.day-number{font-size:.85rem;font-weight:500;color:var(--text);width:1.55rem;height:1.55rem;padding:0;box-sizing:border-box;display:grid;place-items:center;border-radius:50%;font-variant-numeric:tabular-nums}.day-cell[data-today=true] .day-number{background:var(--accent);color:#fff;font-weight:600}.day-holiday{font-size:.66rem;font-weight:500;color:var(--accent);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding-inline:.1rem}.day-events{display:flex;flex-direction:column;gap:.16rem;min-width:0}.event-chip{display:flex;align-items:center;gap:.32rem;font-size:.7rem;padding:.06rem .15rem;border-radius:5px;color:var(--text);min-width:0}.chip-dot{width:6px;height:6px;border-radius:50%;background:var(--chip);flex-shrink:0}.chip-time{font-variant-numeric:tabular-nums;color:var(--text-muted);flex-shrink:0}.chip-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:500}.event-more{font-size:.66rem;font-weight:500;color:var(--text-muted);padding-left:.55rem}.day-panel{background:var(--surface);position:sticky;top:1rem;padding-top:.15rem}.day-panel-header{display:flex;align-items:flex-start;justify-content:space-between;gap:.75rem;padding-bottom:.9rem;margin-bottom:1rem;border-bottom:1px solid var(--hairline)}.day-panel-date{font-size:1.15rem;font-weight:600;letter-spacing:-.02em}.day-panel-holiday{margin-top:.25rem;font-size:.85rem;font-weight:500;color:var(--accent)}.day-panel-header .btn-primary{flex-shrink:0;white-space:nowrap}.empty-state{text-align:center;padding:2.5rem 1rem;color:var(--text-muted)}.empty-title{font-weight:600;font-size:.95rem;color:var(--text);margin-bottom:.3rem}.empty-hint{font-size:.85rem;max-width:30ch;margin-inline:auto}.event-list{list-style:none;display:flex;flex-direction:column}.event-item{width:100%;display:flex;gap:.8rem;text-align:left;padding:.7rem .25rem;border:none;border-bottom:1px solid var(--hairline);background:transparent;cursor:pointer;font:inherit;color:var(--text);border-radius:6px;transition:background-color .15s ease}.event-list li:last-child .event-item{border-bottom:none}.event-item:hover{background:var(--surface-muted)}.event-item:focus-visible{outline:2px solid var(--primary);outline-offset:2px}.event-item-bar{width:3px;border-radius:3px;background:var(--chip);flex-shrink:0}.event-item-body{display:flex;flex-direction:column;gap:.12rem;min-width:0}.event-item-title{font-weight:500}.event-item-time{font-size:.82rem;color:var(--text-muted);font-variant-numeric:tabular-nums}.event-item-notes{font-size:.82rem;color:var(--text-muted)}.modal-overlay{position:fixed;inset:0;background:#00000047;backdrop-filter:blur(20px) saturate(180%);-webkit-backdrop-filter:blur(20px) saturate(180%);display:grid;place-items:center;padding:1rem;z-index:100;animation:fade-in .15s ease}.modal{width:min(440px,100%);max-height:90dvh;overflow-y:auto;background:var(--surface);border:1px solid var(--hairline);border-radius:var(--radius);box-shadow:var(--shadow-lg);padding:1.5rem;animation:pop-in .16s ease}.modal-title{font-size:1.3rem;font-weight:600;letter-spacing:-.02em}.modal-subtitle{color:var(--text-muted);font-size:.88rem;margin-top:.15rem;margin-bottom:1.25rem}.event-form{display:flex;flex-direction:column;gap:.9rem}.field{display:flex;flex-direction:column;gap:.35rem;font-size:.78rem;font-weight:600;letter-spacing:.01em;color:var(--text-muted);border:none;padding:0;min-width:0}.field input,.field textarea{font-size:.95rem;font-weight:400;letter-spacing:-.01em;color:var(--text);background:var(--surface-muted);border:1px solid transparent;border-radius:var(--radius-sm);padding:.6rem .75rem;width:100%}.field input:focus,.field textarea:focus{outline:none;background:var(--surface);border-color:var(--primary);box-shadow:0 0 0 3px color-mix(in srgb,var(--primary) 20%,transparent)}.field input[aria-invalid=true]{border-color:var(--accent)}.field textarea{resize:vertical;min-height:3rem}.field-row{display:grid;grid-template-columns:1fr 1fr;gap:.9rem}.color-field{flex-direction:column}.color-field legend{padding:0;margin-bottom:.4rem}.color-swatches{display:flex;gap:.6rem;flex-wrap:wrap}.color-swatch{--size: 1.8rem;width:var(--size);height:var(--size);border-radius:50%;background:var(--swatch);cursor:pointer;display:grid;place-items:center;box-shadow:0 0 0 2px var(--surface),0 0 0 2px var(--border);transition:box-shadow .12s ease,transform .12s ease}.color-swatch:hover{transform:scale(1.08)}.color-swatch[data-selected=true]{box-shadow:0 0 0 2px var(--surface),0 0 0 4px var(--swatch)}.color-swatch input{position:absolute;opacity:0;width:1px;height:1px}.color-swatch:focus-within{box-shadow:0 0 0 2px var(--surface),0 0 0 4px var(--swatch)}.form-error{color:var(--accent);font-size:.85rem;font-weight:500}.modal-actions{display:flex;align-items:center;justify-content:space-between;gap:.5rem;margin-top:.5rem}.modal-actions-end{display:flex;gap:.5rem;margin-left:auto}@keyframes fade-in{0%{opacity:0}}@keyframes pop-in{0%{opacity:0;transform:translateY(8px) scale(.98)}}@media(prefers-reduced-motion:reduce){.modal-overlay,.modal{animation:none}}@media(max-width:560px){.weekday-full{display:none}.weekday-short{display:inline}.day-grid{grid-auto-rows:minmax(82px,1fr)}.chip-time,.chip-title{display:none}.day-events{flex-direction:row;flex-wrap:wrap;gap:.25rem}}
