:root{color-scheme:light;--background:#FAFAF8;--foreground:#2C2C2C;--card:#fff;--muted:#f1f1ec;--muted-foreground:#64655f;--border:#e3e4dd;--primary:#FF6B7A;--primary-foreground:#2C2C2C;--accent:#8BC34A;--family-soft:#eff5e7;--personal-soft:#fff0f1;--family-ink:#3c5d1c;--personal-ink:#8d3240;--ring:#535c48;--destructive:#a42632;--radius:14px;--font-sans:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
*{box-sizing:border-box}body{margin:0;background:var(--background);color:var(--foreground);font-family:var(--font-sans);font-size:14px;line-height:1.5}button,input,select,textarea{font:inherit;color:inherit}button{cursor:pointer}button:disabled{cursor:wait;opacity:.55}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid var(--ring);outline-offset:3px}button{border:0;background:transparent;border-radius:9px;padding:10px 14px}input,textarea,select{background:var(--card);border:1px solid var(--border);border-radius:8px;padding:10px 12px;max-width:100%}input,textarea{width:100%}textarea{resize:vertical}input[type=checkbox]{width:19px;height:19px;accent-color:var(--foreground)}select{cursor:pointer}h1,h2,h3,p{margin:0}h1{font-size:26px;font-weight:550;letter-spacing:-.8px}h2{font-size:15px;font-weight:600}h3{font-size:20px;font-weight:550}button:hover{background:var(--muted)}[hidden]{display:none!important}.primary{background:var(--primary);color:var(--primary-foreground);font-weight:600}.primary:hover{background:#f45d6d}.secondary{border:1px solid var(--border);background:var(--card)}.quiet{color:var(--muted-foreground)}.muted,.form-hint{color:var(--muted-foreground)}.icon-button{font-size:23px;line-height:1;min-width:42px;min-height:42px}.danger{background:var(--destructive);color:#fff}.danger-text{color:var(--destructive)}.app-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:24px 28px 18px;border-bottom:1px solid var(--border)}.brand{display:flex;gap:12px;align-items:center}.brand strong{display:block;font-size:21px;font-weight:650;letter-spacing:-.5px}.brand span:not(.brand-icon){display:block;font-size:12px;color:var(--muted-foreground)}.brand-icon{display:grid;place-items:center;background:var(--primary);border-radius:12px;width:42px;height:42px;font-size:24px;font-weight:650;color:var(--primary-foreground)}.header-actions{display:flex;gap:6px}.local-notice{background:var(--muted);color:var(--muted-foreground);padding:7px 28px;font-size:12px}.app-layout{display:grid;grid-template-columns:210px minmax(0,1fr)}.sidebar{padding:28px 18px;border-right:1px solid var(--border);display:flex;flex-direction:column;gap:18px}.create{width:100%;text-align:left;padding:12px 16px}.create span{font-size:21px;margin-right:7px;vertical-align:-1px}.sidebar h2{font-size:12px;letter-spacing:.5px;color:var(--muted-foreground);margin-top:10px}.filter-list{display:grid;gap:4px}.filter{text-align:left;display:flex;align-items:center;gap:10px}.filter.active{background:var(--muted);font-weight:600}.calendar-dot{height:10px;width:10px;flex:none;border-radius:3px;display:inline-block}.calendar-dot.family,.event-dots .family{background:var(--accent)}.calendar-dot.personal,.event-dots .personal{background:var(--primary)}.calendar-dot.both{background:var(--foreground)}.sidebar-note{font-size:12px;color:var(--muted-foreground);line-height:1.7;padding:0 10px}.sidebar-bottom{padding:50px 10px 10px;margin-top:auto}.sidebar-bottom span{display:block;font-weight:650;letter-spacing:.8px}.sidebar-bottom small{color:var(--muted-foreground)}.calendar-main{min-width:0;padding:24px 28px}.calendar-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px}.month-navigation{display:flex;align-items:center;gap:6px;min-width:0}.month-navigation h1{white-space:nowrap}.today-button{border:1px solid var(--border);margin-left:9px;padding:7px 12px;background:var(--card)}.view-controls select{padding:7px 12px}.search-row{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:18px}.search-row input{max-width:290px;font-size:13px;padding:8px 12px}.timezone{font-size:12px;color:var(--muted-foreground);white-space:nowrap}.weekday-row,.month-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}.weekday-row{color:var(--muted-foreground);font-size:12px;text-align:center;padding-bottom:10px}.month-grid{border-left:1px solid var(--border);border-top:1px solid var(--border);background:var(--card)}.day-cell{min-height:111px;border-right:1px solid var(--border);border-bottom:1px solid var(--border);padding:6px 4px;min-width:0}.day-cell.outside{background:var(--background);color:var(--muted-foreground)}.day-cell.selected{background:color-mix(in srgb,var(--accent) 8%,var(--card))}.day-number{display:flex;align-items:center;justify-content:center;margin:0 auto 5px;border-radius:50%;width:30px;height:30px;padding:0;font-size:12px}.day-number.current{background:var(--foreground);color:var(--card)}.day-number[aria-pressed=true]:not(.current){box-shadow:0 0 0 1px var(--accent)}.event-chip{display:block;border-radius:4px;font-size:11px;line-height:1.4;padding:3px 5px;margin:2px 0;width:100%;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.event-chip span{overflow:hidden;text-overflow:ellipsis;display:block}.event-chip.family{background:var(--family-soft);color:var(--family-ink);border-left:3px solid var(--accent)}.event-chip.personal{background:var(--personal-soft);color:var(--personal-ink);border-left:3px solid var(--primary)}.event-chip:hover{filter:brightness(.96)}.more{font-size:11px;padding:2px 5px;color:var(--muted-foreground)}.event-dots{display:none}.agenda-heading{display:flex;justify-content:space-between;align-items:center;margin-top:20px;margin-bottom:8px}.empty{padding:22px 0;color:var(--muted-foreground);font-size:13px}.event-list{display:grid;gap:4px}.event-row{display:flex;align-items:center;gap:12px;text-align:left;padding:12px 9px;width:100%;border-bottom:1px solid var(--border);border-radius:0}.event-row-main{display:grid;gap:3px;min-width:0;flex:1;overflow-wrap:anywhere}.event-row-main strong{font-size:14px;font-weight:550}.event-row-main>span,.event-calendar{font-size:12px;color:var(--muted-foreground)}.event-calendar{white-space:nowrap}.calendar-footer{display:flex;justify-content:space-between;gap:10px;color:var(--muted-foreground);font-size:11px;border-top:1px solid var(--border);margin-top:26px;padding-top:12px}.status{margin:0 28px 16px;color:var(--family-ink);font-size:13px}.status:empty{margin:0}.schedule{min-height:380px}.schedule h2{padding:18px 0 6px}.week-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));border-top:1px solid var(--border);min-height:420px}.week-column{border-right:1px solid var(--border);padding:12px 7px;min-width:0}.week-column h2{font-size:13px;text-align:center}.week-column .event-row{display:block;margin-top:12px;background:var(--muted);border-radius:7px;padding:9px}.week-column .event-row-main strong{font-size:12px}.week-column .event-calendar{display:none}.week-column .calendar-dot{margin-bottom:4px}.week-column .event-row-main>span{font-size:11px}.week-column .empty{text-align:center;font-size:11px}.wall .app-layout{display:block}.wall .calendar-main{padding:20px 28px}.wall .day-cell{min-height:140px;padding:9px}.wall .day-number{font-size:18px}.wall .event-chip{font-size:14px;white-space:normal}.wall .event-chip span{white-space:normal;overflow-wrap:anywhere}.wall .calendar-toolbar{justify-content:center}.wall h1{font-size:34px}.wall-clock{font-size:24px}.wall-upcoming{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.wall-upcoming strong,.wall-upcoming span{display:block}.wall-upcoming strong{font-size:17px}.wall-upcoming span{color:var(--muted-foreground);font-size:13px;margin-top:6px}dialog{padding:0;border:1px solid var(--border);border-radius:16px;max-width:min(540px,calc(100% - 28px));width:540px;max-height:90%;background:var(--card);color:var(--foreground);box-shadow:0 22px 90px #0003}dialog::backdrop{background:#14181166}.dialog-header{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--border);padding:13px 20px}.dialog-header h2{font-size:18px}.dialog-body{padding:20px 24px;display:grid;gap:16px}.dialog-body>label{display:grid;gap:6px;font-size:13px;font-weight:550}.dialog-body input,.dialog-body textarea,.dialog-body select{font-size:16px;font-weight:400}.dialog-body label small{font-weight:400;color:var(--muted-foreground)}.dialog-body .check{display:flex;align-items:center;gap:9px}.form-pair{display:grid;grid-template-columns:1fr 1fr;gap:14px}.form-pair>label{display:grid;gap:6px;font-size:13px;font-weight:550;min-width:0}.form-hint{font-size:12px;line-height:1.6}.dialog-footer{display:flex;justify-content:flex-end;gap:10px;padding:16px 24px;border-top:1px solid var(--border)}.dialog-footer.split{justify-content:space-between}.dialog-footer.wrapping{flex-wrap:wrap}.error{color:var(--destructive);font-size:13px}.error:empty{display:none}.detail-calendar{color:var(--muted-foreground);font-size:12px}.event-detail h3{font-size:26px;overflow-wrap:anywhere}.event-detail .notes{white-space:pre-wrap;overflow-wrap:anywhere}.event-detail>button{justify-self:start}.settings-actions{display:flex;flex-wrap:wrap;gap:10px}.file-label{padding:10px 14px;border-radius:9px;cursor:pointer}.file-label input{display:block;font-size:12px;width:210px;margin-top:6px}.startup-error{max-width:600px;margin:60px auto;padding:24px}.startup-error p{margin-top:16px}.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}
@media(min-width:1500px){.calendar-main{padding:30px 40px}.day-cell{min-height:145px}.event-chip{font-size:13px}.wall .day-cell{min-height:170px}.wall .event-chip{font-size:17px}.wall h1{font-size:42px}}
@media(max-width:1050px){.app-layout{grid-template-columns:170px minmax(0,1fr)}.sidebar{padding:20px 12px}.calendar-main{padding:20px 18px}.app-header{padding:20px}.create{padding:11px;font-size:13px}h1{font-size:23px}.calendar-toolbar{gap:7px}.month-navigation{gap:2px}.calendar-toolbar .icon-button{min-width:33px;padding:6px}.calendar-toolbar .today-button{margin-left:4px}.day-cell{min-height:100px}.week-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.week-column{min-height:180px}}
@media(max-width:760px){.app-layout{display:block}.app-header{padding:18px 18px 14px}.brand strong{font-size:19px}.brand span:not(.brand-icon){font-size:11px}.header-actions{gap:0}.header-actions button{padding:8px;font-size:12px}.local-notice{padding:7px 18px}.sidebar{border:0;padding:14px 18px 0;display:block}.sidebar h2,.sidebar-note,.sidebar-bottom{display:none}.sidebar-actions{float:right}.create{width:auto;font-size:12px;padding:8px 12px}.create span{font-size:16px;margin-right:2px}.filter-list{display:flex;gap:2px;flex-wrap:wrap;padding-right:130px}.filter{font-size:12px;padding:10px 9px;gap:6px}.calendar-dot{height:8px;width:8px}.calendar-main{padding:20px 18px}.calendar-toolbar{margin-bottom:15px}.month-navigation h1{font-size:23px}.day-cell{min-height:98px}.event-chip{font-size:11px}.search-row input{max-width:240px}.wall .calendar-main{padding:16px}.wall .day-cell{min-height:110px;padding:4px}.wall .event-chip{font-size:12px}.wall .app-header{padding:18px}.wall h1{font-size:28px}.wall-upcoming strong{font-size:14px}.wall-upcoming span{font-size:12px}.wall-clock{font-size:19px}}
@media(max-width:520px){.brand span:not(.brand-icon){display:none}.brand-icon{width:34px;height:34px;font-size:20px;border-radius:10px}.brand{gap:8px}.brand strong{font-size:19px}.app-header{padding:15px}.local-notice{font-size:11px;padding:7px 15px}.sidebar{padding:14px 12px 0}.filter-list{padding-right:0;gap:1px;clear:both;padding-top:12px}.sidebar-actions{float:none}.create{width:100%;font-size:14px;text-align:center}.create span{font-size:20px}.filter{flex:1;justify-content:center;font-size:12px;min-height:44px}.calendar-main{padding:16px 12px}.month-navigation h1{font-size:20px}.calendar-toolbar .icon-button{min-width:30px;padding:4px}.today-button{font-size:12px;padding:6px 8px}.view-controls select{font-size:12px;padding:8px 6px}.calendar-toolbar{gap:3px}.month-navigation{gap:0}.search-row input{max-width:none;font-size:13px;min-width:0}.timezone{display:none}.day-cell{min-height:60px;padding:4px 1px}.day-number{width:38px;height:36px;font-size:13px;margin-bottom:3px}.cell-events{display:none}.event-dots{display:flex;justify-content:center;gap:3px;min-height:7px}.event-dots i{width:5px;height:5px;border-radius:50%}.weekday-row{font-size:11px;padding-bottom:7px}.agenda-heading{margin-top:22px}.agenda-heading h2{font-size:14px}.agenda-heading button{font-size:12px}.event-calendar{font-size:10px}.event-row{gap:8px;padding:12px 5px}.event-row-main strong{font-size:14px}.event-row-main>span{font-size:12px}.calendar-footer{font-size:10px}.week-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.week-column{min-height:140px}.week-column .event-row-main strong{font-size:14px}.week-column .event-row-main>span{font-size:12px}.form-pair{gap:10px}.dialog-body{padding:18px}.dialog-footer{padding:14px 18px}.dialog-header{padding:12px 18px}.wall .cell-events{display:block}.wall .event-dots{display:none}.wall .day-number{font-size:12px;width:26px;height:26px}.wall .event-chip{font-size:10px;padding:2px}.wall .day-cell{min-height:110px}.wall-upcoming{grid-template-columns:1fr}.wall .brand strong{font-size:17px}}
.account-card{max-width:440px;margin:8vh auto;padding:30px;background:var(--card);border:1px solid var(--border);border-radius:16px;display:grid;gap:20px}.account-card h1{white-space:normal;line-height:1.25}.account-card form,.account-card label{display:grid;gap:10px}.account-card form{gap:20px}.account-card input{font-size:16px}.account-card a{color:var(--foreground);text-underline-offset:3px}.account-actions{display:flex;gap:8px;flex-wrap:wrap}.account-actions.vertical{display:grid}.token-list{list-style:none;padding:0;display:grid;gap:10px}.token-list li{display:flex;align-items:center;justify-content:space-between;gap:12px}.token-list span{font-size:12px}.account-card [role=status]:empty,.account-card [role=alert]:empty{display:none}@media(max-width:520px){.account-card{margin:24px 12px;padding:24px}.token-list li{align-items:flex-start}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
@media(max-width:375px){.calendar-toolbar{flex-wrap:wrap}.view-controls{margin-left:auto}.month-navigation{flex:1}.month-navigation h1{font-size:18px}.event-calendar{white-space:normal;max-width:65px}.header-actions button{font-size:11px;padding:7px}}
