:root{--bg:#f7f4ed;--ink:#37382f;--muted:#8b887e;--line:#e4dfd4;--weekend:#eee9df;--surface:#fcfaf5;--accent:#b8824c;--badge:.35;--shadow:0 24px 100px #342d241e;--sans:Arial,Helvetica,sans-serif;--serif:Georgia,'Times New Roman',serif;color-scheme:light}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--serif);-webkit-font-smoothing:antialiased}button,input,select,textarea{font:inherit;color:inherit}button{cursor:pointer}button,a,input,select,textarea,summary{-webkit-tap-highlight-color:transparent}button{border:0;background:none}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:2px solid var(--accent);outline-offset:3px}button:disabled{opacity:.5;cursor:wait}.app{height:100dvh;min-height:540px;display:grid;grid-template-rows:clamp(72px,9.5vh,142px) 1fr clamp(47px,6vh,90px);padding:0 clamp(16px,1.5vw,60px);transition:background .3s}.header{display:flex;align-items:center;justify-content:space-between;gap:16px;position:relative}.identity,.header-actions{display:flex;align-items:center}.identity{gap:clamp(8px,.8vw,30px)}.sun{width:clamp(30px,2.5vw,80px);height:auto}.wordmark{font-size:clamp(28px,2.45vw,80px);letter-spacing:-1.4px}.divider{width:1px;height:clamp(30px,3.5vh,65px);background:var(--line);margin:0 .3vw}h1{font-weight:400;font-size:clamp(29px,2.8vw,96px);margin:0;white-space:nowrap;letter-spacing:-1px}.icon{display:inline-grid;place-items:center;flex-shrink:0;width:clamp(32px,2.5vw,70px);height:clamp(32px,2.5vw,70px);padding:7px;border-radius:50%;color:var(--muted)}.icon svg{width:clamp(17px,1.2vw,36px);height:clamp(17px,1.2vw,36px);stroke-width:1.5}.icon:hover{color:var(--ink);background:var(--weekend)}.period-arrow{width:22px;padding:3px;opacity:0;transition:opacity .2s}.identity:hover .period-arrow,.period-arrow:focus-visible{opacity:1}.today-label{font-size:clamp(14px,1.13vw,35px);position:absolute;left:50%;transform:translateX(-50%);white-space:nowrap}.today-label:hover{color:var(--accent)}.header-actions{gap:clamp(4px,.4vw,18px)}.segments{display:flex;background:var(--weekend);border:1px solid var(--line);border-radius:10px;padding:3px;margin-right:clamp(2px,.5vw,20px)}.segments button{padding:clamp(7px,.65vh,18px) clamp(10px,1.05vw,37px);border-radius:7px;font-size:clamp(12px,.9vw,28px)}.segments button[aria-pressed=true]{background:var(--surface);box-shadow:0 1px 3px #342d2420}.avatar{border-radius:50%;background:#d9d1c2;color:#6e685c;width:clamp(30px,2.25vw,70px);height:clamp(30px,2.25vw,70px);font-size:clamp(12px,.9vw,28px);margin-left:.3vw}#calendar{min-height:0;border-top:1px solid var(--line);border-left:1px solid var(--line);overflow:auto;position:relative}.annual{height:100%;display:grid;grid-template-rows:repeat(12,minmax(0,1fr));min-width:1000px}.month-row{display:grid;grid-template-columns:clamp(65px,5.1vw,190px) 1fr;min-height:0;border-bottom:1px solid var(--line)}.month-name{display:flex;align-items:center;justify-content:flex-start;padding-left:clamp(12px,1.1vw,40px);letter-spacing:1.5px;font-size:clamp(15px,1.13vw,36px);border-right:1px solid var(--line);font-weight:400}.month-name:hover{color:var(--accent);background:var(--weekend)}.days-track{position:relative;display:grid;grid-template-columns:repeat(31,minmax(0,1fr));min-height:0;isolation:isolate}.day-cell{grid-row:1;border-right:1px solid var(--line);position:relative;min-width:0;padding:0;z-index:2;display:flex;align-items:flex-start;justify-content:center;background:transparent}.day-cell.weekend{background:var(--weekend);z-index:0}.day-cell.has-event{background:transparent;z-index:2}.day-cell.invalid{background:repeating-linear-gradient(135deg,transparent,transparent 5px,var(--weekend) 5px,var(--weekend) 6px);opacity:.35;pointer-events:none}.day-number{font-size:clamp(10px,.67vw,24px);font-variant-numeric:tabular-nums;line-height:1.35;padding:1px 4px;margin-top:clamp(3px,.45vh,10px);border-radius:4px;min-width:20px;color:var(--ink)}.has-event .day-number{background:rgba(255,253,246,var(--badge));color:#292a25;text-shadow:0 0 4px #ffffff35}.day-cell.today:after{content:'';position:absolute;inset:0;border:1.5px solid var(--accent);pointer-events:none;z-index:5}.day-cell.today .day-number:after{content:'';position:absolute;left:50%;top:clamp(22px,2.4vh,55px);transform:translateX(-50%);width:5px;height:5px;background:var(--accent);border-radius:50%}.day-cell:hover{box-shadow:inset 0 0 0 1px #a59c88;z-index:4}.day-cell:focus-visible{outline:2px solid var(--accent);outline-offset:-3px;z-index:6;background:#b8824c15}.event-band{grid-row:1;position:relative;z-index:1;margin:2px 1px;border-radius:5px;overflow:hidden;background:var(--event-color);min-width:0;pointer-events:none}.event-band img{width:100%;height:100%;object-fit:cover;object-position:center 48%;position:absolute;inset:0;transition:opacity 1.8s ease}.event-band img.next{opacity:0}.event-band img.next.visible{opacity:1}.event-band.photo:after{content:'';position:absolute;inset:35% 0 0;background:linear-gradient(transparent,#11180e80)}.event-label{position:absolute;bottom:clamp(5px,.65vh,16px);left:clamp(7px,.6vw,20px);right:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.1;font-size:clamp(11px,.88vw,28px);font-weight:400;color:#302e27;z-index:1}.photo .event-label{color:#fff;text-shadow:0 1px 4px #0005}.event-band.single .event-label{left:3px;right:3px;font-size:clamp(8px,.62vw,21px);text-align:center}.event-band.overlap{z-index:3;align-self:end;height:23%;min-height:13px;margin-bottom:3px;border-radius:3px;box-shadow:0 0 0 1px var(--bg)}.event-band.overlap .event-label{font-size:clamp(8px,.56vw,18px);bottom:2px;left:3px}.footer{display:flex;align-items:center;justify-content:space-between;gap:14px}.legend,.footer-actions{display:flex;align-items:center;gap:clamp(12px,1.1vw,38px)}.legend button{display:flex;align-items:center;gap:clamp(7px,.55vw,18px);font-size:clamp(11px,.8vw,26px);padding:7px 0;white-space:nowrap}.legend button[aria-pressed=false]{opacity:.35}.color-dot{display:inline-block;width:clamp(11px,1vw,32px);height:clamp(11px,1vw,32px);border-radius:50%;background:var(--color)}.text-button{color:var(--muted);font-size:13px;padding:8px 0}.text-button:hover{color:var(--accent)}.footer .text-button,.status,.remote-hint{font-size:clamp(10px,.74vw,24px)}.status{display:flex;align-items:center;gap:7px;color:var(--muted);white-space:nowrap}.status-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:#a4ac95}.footer-divider{height:20px;width:1px;background:var(--line)}.remote-hint{color:var(--muted);white-space:nowrap}.remote-hint span{padding:0 5px}.quarter{height:100%;grid-template-rows:repeat(3,minmax(0,1fr))}.quarter .event-label{font-size:clamp(13px,1vw,32px);white-space:normal}.quarter .day-number{font-size:clamp(11px,.8vw,28px)}.month-view{height:100%;min-width:600px;display:grid;grid-template-rows:35px 1fr}.weekday-head{display:grid;grid-template-columns:repeat(7,1fr)}.weekday-head span{font-family:var(--sans);font-size:10px;letter-spacing:1.6px;color:var(--muted);text-transform:uppercase;padding:10px 15px;border-right:1px solid var(--line);border-bottom:1px solid var(--line)}.month-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));grid-auto-rows:minmax(0,1fr)}.month-day{position:relative;min-height:0;border-right:1px solid var(--line);border-bottom:1px solid var(--line);overflow:hidden;display:flex;flex-direction:column;text-align:left;padding:clamp(7px,1vw,26px);gap:4px}.month-day.weekend{background:var(--weekend)}.month-day.blank{opacity:.4;background:var(--weekend)}.month-day.today{box-shadow:inset 0 0 0 1.5px var(--accent)}.month-day .day-number{position:relative;z-index:2;align-self:flex-start;padding:2px 6px;font-size:clamp(13px,1.1vw,30px);margin:0}.month-day.has-photo .day-number{background:rgba(255,253,246,var(--badge));color:#242820}.month-photo{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.month-day.has-photo:after{content:'';position:absolute;inset:20% 0 0;background:linear-gradient(transparent,#101810a0)}.month-events{display:flex;flex-direction:column;gap:4px;z-index:1;margin-top:auto;position:relative}.month-event{font-size:clamp(10px,.85vw,26px);padding:4px 7px;background:var(--event-color);border-radius:4px;color:#302e27;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.has-photo .month-event:first-child{color:white;background:transparent;padding-left:0;text-shadow:0 1px 3px #0006}.more-count{font-family:var(--sans);font-size:10px;color:var(--muted)}.has-photo .more-count{color:white}.agenda{max-width:1100px;margin:auto;padding:30px 40px;min-height:100%}.agenda-month{font-size:24px;font-weight:400;margin:25px 0 15px}.agenda-item{display:grid;grid-template-columns:90px 1fr 120px;gap:20px;align-items:center;text-align:left;width:100%;padding:18px 0;border-top:1px solid var(--line)}.agenda-item:hover{color:var(--accent)}.agenda-date{font-family:var(--sans);color:var(--muted);font-size:12px}.agenda-item img{width:120px;height:60px;object-fit:cover;border-radius:5px}.agenda-name{font-size:19px}.agenda-category{font-family:var(--sans);font-size:10px;margin-top:7px;color:var(--muted);display:flex;align-items:center;gap:6px}.agenda-category .color-dot{width:7px;height:7px}.empty-state{padding:50px 25px;color:var(--muted);text-align:center;line-height:1.7}dialog{border:1px solid var(--line);border-radius:16px;background:var(--surface);color:var(--ink);padding:30px;width:460px;max-width:calc(100vw - 28px);max-height:92dvh;box-shadow:var(--shadow);font-family:var(--sans);font-size:14px}dialog::backdrop{background:#2b2b242f;backdrop-filter:blur(4px)}dialog h2{font-family:var(--serif);font-weight:400;font-size:30px;letter-spacing:-.5px;margin:5px 0}.panel-header{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:24px}.panel-header .icon{width:32px;height:32px}.eyebrow{font:9px var(--sans);letter-spacing:1.9px;color:var(--accent);margin:0}.quiet{color:var(--muted);line-height:1.65}.small{font-size:11px}.side-dialog{margin:0 0 0 auto;height:100dvh;max-height:100dvh;border-radius:0;width:430px;padding:32px;max-width:100vw}.side-dialog .quiet.small{text-align:center;margin-top:25px}label{display:flex;flex-direction:column;gap:8px;margin:17px 0;font-size:12px;line-height:1.4}input:not([type=checkbox]):not([type=color]):not([type=range]),select,textarea{width:100%;border:1px solid var(--line);border-radius:6px;background:var(--bg);padding:11px 12px;font:13px var(--sans);color:var(--ink)}input::placeholder,textarea::placeholder{color:#aaa69b}textarea{resize:vertical}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:14px}.form-row label{margin-bottom:0}input[type=range]{accent-color:var(--accent);width:100%;cursor:pointer}input[type=checkbox]{accent-color:var(--accent);width:17px;height:17px}.toggle-row{display:flex;flex-direction:row;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);padding-bottom:14px}.button{padding:12px 18px;border-radius:6px;font:12px var(--sans);display:inline-flex;justify-content:center;align-items:center;text-decoration:none}.button.primary{color:#fff;background:#5d6653}.button.primary:hover{background:#48523f}.button.secondary{border:1px solid var(--line);background:var(--bg)}.full{width:100%}.event-dialog{width:530px}.dialog-footer{display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--line);padding-top:18px;margin-top:20px}.danger{color:#9c645b}.memory-section{border-top:1px solid var(--line);padding-top:20px;margin-top:20px}.section-title{font-size:12px;font-weight:600;display:flex;justify-content:space-between;align-items:center}.upload-area{border:1px dashed #c9c1b0;align-items:center;padding:15px;cursor:pointer;border-radius:6px;background:var(--bg)}.upload-area input,.import-label input{position:absolute;opacity:0;width:1px!important;height:1px;overflow:hidden}.photo-preview{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}.photo-tile{position:relative;height:68px;border-radius:5px;overflow:hidden}.photo-tile img{width:100%;height:100%;object-fit:cover}.photo-tile button{position:absolute;top:2px;right:2px;color:#fff;background:#0007;border-radius:50%;width:20px;height:20px}.album-label{font-size:11px}.top-space{margin-top:25px}.category-color-row{display:flex;align-items:center;justify-content:space-between;margin:16px 0;font-size:12px}.category-color-row input{width:35px;height:27px;padding:0;border:0;border-radius:5px;background:transparent;cursor:pointer}.settings-bottom{display:flex;gap:8px;margin-top:24px}.import-label{margin:0;cursor:pointer}.connection-card{display:flex;align-items:center;gap:16px;border-bottom:1px solid var(--line);padding-bottom:15px}.connection-card p{margin:5px 0 0}.google-mark{font:28px var(--sans);color:#6c7d92}details{line-height:1.6;margin:15px 0}summary{cursor:pointer;font-size:12px}details ol{padding-left:20px}details li{margin:9px 0}code{word-break:break-all;font-size:10px}.notice{background:var(--weekend);padding:12px;border-radius:6px;line-height:1.7;color:var(--muted)}.account-local{display:flex;align-items:center;gap:9px;margin-top:25px;padding-top:20px;border-top:1px solid var(--line);font-size:12px}.account-local .quiet{margin-left:auto}.google-calendar-row{display:grid;grid-template-columns:24px 1fr 110px;align-items:center;gap:8px;padding:10px 0;border-bottom:1px solid var(--line)}.google-calendar-row label{margin:0;font-size:12px}.google-calendar-row select{padding:7px;font-size:11px}.error{color:#a85d50;line-height:1.6}#google-actions{margin-top:15px}.toast{position:fixed;bottom:75px;left:50%;transform:translate(-50%,15px);padding:12px 22px;background:#414a3a;color:#fff;border-radius:7px;font:12px var(--sans);opacity:0;transition:.2s;z-index:20;pointer-events:none;max-width:90vw;text-align:center}.toast.show{opacity:1;transform:translate(-50%,0)}.day-event-card{border:1px solid var(--line);border-radius:9px;overflow:hidden;margin:0 0 16px}.day-event-card>img{width:100%;height:170px;object-fit:cover}.day-event-content{padding:18px}.day-event-content h3{font:23px var(--serif);margin:7px 0}.day-event-content p{white-space:pre-wrap}.day-event-actions{display:flex;gap:15px;align-items:center}.day-event-actions a{font-size:11px;color:var(--accent);text-decoration:none}.quiet-display .header-actions,.quiet-display .footer-actions,.quiet-display .period-arrow{opacity:0;transition:opacity .5s}.quiet-display .header-actions:focus-within,.quiet-display .footer-actions:focus-within{opacity:1}.theme-evening{--bg:#252922;--ink:#e7e2d6;--muted:#a4a799;--line:#3d4238;--weekend:#30352b;--surface:#2e3429;--accent:#cda36c;color-scheme:dark}.theme-evening .avatar{background:#515845;color:#ece7db}.theme-porcelain{--bg:#fbfbf8;--surface:#fff;--weekend:#f0f1ed;--line:#e1e4dc}.theme-evening .month-day.has-photo .day-number{color:#242820}.reduced-motion *{transition:none!important;animation:none!important}@media(prefers-reduced-motion:reduce){*{transition:none!important}}@media(min-width:2500px){dialog{width:650px;font-size:18px;padding:40px}dialog h2{font-size:40px}label{font-size:17px}.small{font-size:15px}.button{font-size:16px}input:not([type=checkbox]):not([type=color]):not([type=range]),select,textarea{font-size:17px}.side-dialog{width:650px}.event-dialog{width:700px}.day-event-card>img{height:260px}}@media(max-width:1250px){.today-label{position:static;transform:none;font-size:12px}.segments button{padding:7px 10px}.header{gap:8px}.remote-hint{display:none}.footer-divider{display:none}.wordmark{font-size:27px}.identity{gap:6px}.period-arrow{opacity:.65;width:16px}.sun{width:28px}h1{font-size:29px}.footer .text-button{font-size:11px}}@media(max-width:800px){.app{padding:0 12px;grid-template-rows:104px 1fr 75px;min-height:620px}.header{flex-wrap:wrap;align-content:center;gap:10px}.identity{gap:8px}.wordmark{font-size:28px}.header-actions{width:100%;justify-content:space-between}.today-label{position:absolute;right:0;top:19px}.segments{margin-right:auto}.segments button{padding:7px 13px;font-size:12px}.header-actions .icon{height:28px;width:28px}.avatar{width:27px;height:27px}.footer{flex-direction:column;gap:0;justify-content:center}.legend{width:100%;justify-content:space-between;gap:10px}.legend button{font-size:11px}.footer-actions{width:100%;justify-content:space-between;gap:10px}.status{font-size:10px}.annual{min-width:1050px}.month-row{grid-template-columns:60px 1fr}.month-name{position:sticky;left:0;background:var(--bg);z-index:8;font-size:14px;padding-left:10px}.month-view{min-width:0;grid-template-rows:30px 1fr}.weekday-head span{font-size:8px;letter-spacing:0;padding:10px 0;text-align:center}.month-day{padding:4px;min-height:75px}.month-day .day-number{font-size:11px;padding:2px 3px}.month-event{font-size:9px;padding:3px}.agenda{padding:10px 15px}.agenda-item{grid-template-columns:65px 1fr 70px;gap:10px}.agenda-item img{width:70px;height:50px}.agenda-name{font-size:16px}.agenda-date{font-size:10px}dialog{padding:22px}.side-dialog{padding:25px}.day-event-card>img{height:180px}}

/* Readable controls and resilient focus without changing the annual composition. */
:root{--muted:#706e64}
.period-arrow{opacity:.75;width:28px;min-height:32px}
.identity:hover .period-arrow,.period-arrow:focus-visible{opacity:1}
textarea:focus-visible,.upload-area:focus-within,.import-label:focus-within{outline:2px solid var(--accent);outline-offset:3px}
.day-cell:focus-visible,.month-day:focus-visible{outline:3px solid var(--accent);outline-offset:-3px;z-index:6}
.footer .text-button,.status,.remote-hint{font-size:clamp(12px,.74vw,24px)}
.legend button{font-size:clamp(12px,.8vw,26px)}
.event-label{font-size:clamp(12px,.88vw,28px)}
.event-band.single .event-label{font-size:clamp(10px,.62vw,21px)}
.event-band.overlap .event-label{font-size:clamp(10px,.56vw,18px)}
dialog .small{font-size:12px}dialog label,dialog .button,dialog .text-button{font-size:13px}
dialog .eyebrow{font-size:10px}.day-event-actions a{font-size:12px}
.upload-area,.import-label{position:relative}
@media(min-width:1800px){dialog{font-size:16px}dialog .small{font-size:14px}dialog label,dialog .button,dialog .text-button{font-size:15px}dialog input:not([type=checkbox]):not([type=color]):not([type=range]),dialog select,dialog textarea{font-size:16px}.panel-header .icon{width:40px;height:40px}}
@media(max-width:800px){
.app{grid-template-rows:auto minmax(0,1fr) 82px}
.header{display:grid;grid-template-columns:minmax(0,1fr);gap:7px;padding:12px 0}
.identity{min-width:0;gap:6px}.identity h1{font-size:clamp(22px,5.6vw,29px)}
.today-label{position:static;transform:none;justify-self:start;font-size:12px;text-align:left;padding:0 2px}
.header-actions{width:100%;gap:5px}.header-actions .icon,.avatar{width:32px;height:32px}
.period-arrow{width:26px;min-width:26px;opacity:.75}
.legend{gap:6px;flex-wrap:wrap}.legend button{font-size:12px}
.footer .text-button,.status{font-size:12px}
.month-event{font-size:11px}.weekday-head span{font-size:10px}
.agenda-date{font-size:12px}.agenda-category{font-size:11px}
}
@media(max-width:420px){
.wordmark{font-size:24px}.sun{width:24px}.identity{gap:4px}.divider{margin:0 2px}
.segments{padding:2px;margin-right:auto}.segments button{padding:8px 8px;font-size:12px}
.header-actions{gap:2px}.header-actions .icon,.avatar{width:30px;height:30px}
.agenda-item{grid-template-columns:60px minmax(0,1fr);gap:10px}.agenda-item img{grid-column:2;width:100%;height:90px}
.form-row{grid-template-columns:minmax(0,1fr)}.day-event-actions{flex-wrap:wrap;gap:6px 15px}
.google-calendar-row{grid-template-columns:24px minmax(0,1fr)}.google-calendar-row select{grid-column:2}
.account-local{flex-wrap:wrap}.account-local .quiet{margin-left:15px}
}
.event-count{position:absolute;right:3px;top:36%;padding:2px 4px;border-radius:4px;background:rgba(255,253,246,.78);color:#383b31;font:clamp(10px,.62vw,21px) var(--sans);line-height:1.1}

[hidden]{display:none!important}
/* Soft, restrained motion: no delayed input and no movement for reduced motion. */
:root{--liquid-ease:cubic-bezier(.22,1,.36,1)}
button,.button,.upload-area{transition:background-color 220ms ease,color 220ms ease,box-shadow 260ms ease,scale 320ms var(--liquid-ease),opacity 220ms ease}
button:active,.button:active{scale:.96}
.day-cell:active,.month-day:active{scale:1;box-shadow:inset 0 0 0 2px var(--accent);background-color:#b8824c18}
.day-cell .day-number,.month-day .day-number{transition:scale 320ms var(--liquid-ease),background-color 220ms ease}
.day-cell:active .day-number,.month-day:active .day-number{scale:.86}
.calendar-outgoing{position:absolute!important;right:0;height:100%;pointer-events:none!important;z-index:9;transform-origin:center;overflow:hidden}
dialog::backdrop{animation:backdrop-arrive 320ms ease both}
dialog.is-closing::backdrop{animation:backdrop-leave 200ms ease both}
dialog.is-closing{pointer-events:none}
@keyframes backdrop-arrive{from{background-color:transparent;backdrop-filter:blur(0)}to{background-color:#2b2b242f;backdrop-filter:blur(4px)}}
@keyframes backdrop-leave{from{background-color:#2b2b242f;backdrop-filter:blur(4px)}to{background-color:transparent;backdrop-filter:blur(0)}}
.reduced-motion button:active,.reduced-motion .button:active,.reduced-motion .day-number{scale:1!important}
.reduced-motion dialog::backdrop{animation:none!important}
@media(prefers-reduced-motion:reduce){button,.button,.upload-area,.day-number{transition:none!important;scale:1!important}dialog::backdrop{animation:none!important}}

/* A multi-day event is one continuous image; retain its outside boundary. */
.day-cell.event-interior{border-right-color:transparent}

#account{width:auto;min-width:44px;padding:0 12px;border-radius:24px;white-space:nowrap}.account-close{float:right}#google-signin{margin:20px 0}#google-calendars{margin:20px 0}
