:root{font-family:-apple-system,BlinkMacSystemFont,"Helvetica Neue",Arial,sans-serif;color:#242426;background:#fafaf9;font-synthesis:none;--muted:#8b8b90;--red:#e64d50;--green:#42ad76;--line:#e8e8e7;--blue:#007aff}*{box-sizing:border-box}body{margin:0}button,input,textarea{font:inherit}button{cursor:pointer;-webkit-tap-highlight-color:transparent}button:disabled{opacity:.4;cursor:wait}button:focus-visible{outline:3px solid #92bfff;outline-offset:4px}button{color:inherit}button,textarea,input{touch-action:manipulation}[hidden]{display:none!important}.muted{color:var(--muted);line-height:1.5}.small{font-size:13px;line-height:1.5}.eyebrow{font-size:11px;font-weight:600;letter-spacing:2px;color:var(--muted)}.calendar{max-width:1140px;margin:auto;padding:32px 48px 36px}header{height:44px;display:flex;align-items:center;justify-content:space-between}.header-actions{display:flex;align-items:center;gap:12px}.text-button{background:none;border:0;color:var(--blue);font-size:14px;padding:12px 0}.circle-button{border:0;background:transparent;width:36px;height:36px;border-radius:50%;font-size:26px;display:inline-flex;justify-content:center;align-items:center}.circle-button:hover{background:#efefed}.circle-button svg{width:19px;height:19px}.heading{display:flex;align-items:flex-end;justify-content:space-between;margin:44px 0 38px}.heading p{margin:0 0 8px;font-size:14px}.heading h1{font-size:76px;font-weight:650;letter-spacing:-4px;line-height:1;margin:0}.navigation{display:flex;gap:8px;padding-bottom:6px}.navigation button{border:1px solid var(--line);width:38px;height:38px;background:white}.months{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:42px 36px}.mini-month{padding:0;text-align:left;outline-offset:10px;border:0;background:none;min-width:0;transition:opacity .15s}.mini-month:hover{opacity:.65}.mini-month h2{font-size:17px;font-weight:600;margin:0 0 15px;letter-spacing:-.4px;color:var(--red)}.week,.days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));text-align:center;align-items:center}.week{font-size:9px;color:#a3a3a7;margin-bottom:7px;font-weight:500}.days{row-gap:5px}.day{display:flex;align-items:center;justify-content:center;position:relative;aspect-ratio:1;max-height:29px;font-size:12px;font-variant-numeric:tabular-nums;font-weight:450;border:0;background:transparent;border-radius:50%;width:100%;padding:0}.day span{border-radius:50%;width:25px;height:25px;display:flex;align-items:center;justify-content:center}.weekend{color:#9b9b9e}.day.red span,.day.green span{color:white}.red{background:var(--red)}.green{background:var(--green)}.day.red,.day.green{background:none}.day.red span{background:var(--red)}.day.green span{background:var(--green)}.day.today span{box-shadow:0 0 0 1.5px #28282a}.day.has-note:after{content:"";height:3px;width:3px;background:currentColor;border-radius:50%;position:absolute;bottom:-2px;left:calc(50% - 1.5px)}.calendar-footer{border-top:1px solid var(--line);margin-top:44px;padding-top:20px;display:flex;gap:20px;font-size:11px;color:var(--muted);align-items:center}.calendar-footer span{display:flex;align-items:center;gap:6px}.calendar-footer span:last-child{margin-left:auto}.legend-dot{width:6px;height:6px;border-radius:50%;display:inline-block}#month-view{max-width:820px;margin:0 auto}.large-grid .week{font-size:12px;margin-bottom:14px}.large-grid .days{row-gap:10px}.large-grid .day{font-size:23px;max-height:80px;min-height:48px}.large-grid .day span{width:52px;height:52px}.large-grid .day:hover{background:#f0f0ee}.large-grid .day.has-note:after{width:4px;height:4px;bottom:2px}.month-summary{margin-top:36px;border-top:1px solid var(--line);padding-top:24px}.month-summary h3{font-size:13px;font-weight:500;color:var(--muted);margin:0 0 16px}.note-row{display:flex;width:100%;align-items:center;gap:16px;background:none;border:0;border-bottom:1px solid var(--line);padding:16px 0;text-align:left}.note-row strong{font-size:18px;min-width:26px}.note-row p{margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px}.note-row .legend-dot{flex-shrink:0}.empty-month{text-align:center;font-size:14px;color:var(--muted);padding:20px}.sheet{border:0;border-radius:24px;padding:24px 30px 28px;width:calc(100% - 32px);max-width:480px;box-shadow:0 24px 100px #0002;color:#242426;max-height:90dvh;overflow:auto;background:#fff}.sheet::backdrop{background:#16161b40;backdrop-filter:blur(5px)}.sheet h2{font-size:32px;letter-spacing:-1px;font-weight:600;margin:12px 0 28px}.sheet-handle{display:none}.sheet-heading{display:flex;align-items:center;justify-content:space-between}.close-button{border:0;border-radius:50%;width:30px;height:30px;background:#f1f1f3;color:#888;font-size:23px}.field-label{font-size:13px;display:block;margin-bottom:12px;color:#77777c}.color-options{display:flex;gap:8px;margin-bottom:28px}.color-options button{border:1px solid var(--line);border-radius:14px;background:white;display:flex;flex:1;align-items:center;justify-content:center;gap:7px;font-size:12px;padding:12px 6px}.color-options button[aria-pressed=true]{border-color:#aaa;background:#f5f5f7;box-shadow:0 0 0 1px #aaa}.color-dot{width:16px;height:16px;border-radius:50%;display:inline-block}.color-dot.empty{border:1.5px solid #ccc}textarea{display:block;resize:vertical;width:100%;min-height:180px;max-height:40vh;border:0;background:#f6f6f8;padding:16px;border-radius:14px;font-size:16px;line-height:1.6;outline-color:var(--blue)}textarea::placeholder{color:#aaa}.sheet-bottom{margin-top:24px;display:flex;align-items:center;justify-content:space-between;gap:16px}.primary{background:#242426;color:white;border:0;padding:14px 22px;border-radius:12px;font-size:14px;font-weight:500}.error{color:#c33b40;font-size:13px;line-height:1.45}.error:empty{display:none}.setting-row{border-bottom:1px solid var(--line);padding:0 0 24px;margin-bottom:24px}.setting-row h3{font-size:16px;font-weight:600}.setting-row p{font-size:14px}.lock-screen{min-height:100dvh;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:40px 24px}.lock-content{text-align:center;width:100%;max-width:330px}.lock-content h1{font-size:34px;font-weight:600;letter-spacing:-1px;margin:14px 0 10px}.lock-content>.muted{font-size:15px;margin:0 0 30px}.app-icon{width:74px;height:78px;background:#fff;margin:0 auto 36px;border-radius:17px;box-shadow:0 5px 24px #0000000c;border:1px solid #e9e9e9;overflow:hidden}.app-icon span{display:block;background:#e95053;color:#fff;font-size:10px;font-weight:600;letter-spacing:1px;padding:6px}.app-icon strong{display:block;font-size:39px;line-height:49px;font-weight:400;letter-spacing:-1px}#pin-form label{display:block;font-size:13px;color:var(--muted);margin-top:16px}#pin-form input{display:block;margin:12px auto 20px;border:1px solid #ddd;background:white;border-radius:12px;padding:12px;width:100%;text-align:center;font-size:24px;letter-spacing:14px;height:56px;outline-color:var(--blue)}#pin-form .primary{width:100%;margin:4px 0 14px}.face-button{background:none;color:var(--blue);padding:12px;border:0;font-size:15px}.face-button span{font-size:23px;vertical-align:middle;padding-right:5px}.lock-footer{color:#b2b2b6;font-size:12px;margin-top:60px}.toast{position:fixed;left:50%;bottom:40px;transform:translateX(-50%);border-radius:24px;background:#242426;color:white;padding:13px 24px;font-size:14px;box-shadow:0 8px 30px #0002;z-index:10;white-space:nowrap}body.privacy #calendar,body.privacy dialog{visibility:hidden}
@media(min-width:1400px){.calendar{padding-top:48px}.months{gap:48px 46px}.heading{margin-top:52px}}
@media(max-width:850px){.months{grid-template-columns:repeat(3,minmax(0,1fr));gap:34px 26px}.calendar{padding:24px 30px}.heading h1{font-size:68px}}
@media(max-width:540px){.calendar{padding:calc(16px + env(safe-area-inset-top)) 22px calc(26px + env(safe-area-inset-bottom))}header>.eyebrow{font-size:9px;letter-spacing:1.5px}.header-actions{gap:8px}.text-button{font-size:13px}.heading{margin:32px 0 32px}.heading h1{font-size:60px;letter-spacing:-3px}.heading p{font-size:12px;margin-bottom:10px}.months{grid-template-columns:repeat(2,minmax(0,1fr));gap:32px 24px}.mini-month h2{font-size:16px;margin-bottom:12px}.week{font-size:8px}.day{font-size:11px}.day span{width:21px;height:21px}.days{row-gap:4px}.calendar-footer{flex-wrap:wrap;gap:12px 18px;font-size:10px;margin-top:32px}.calendar-footer span:last-child{margin-left:0;width:100%;margin-top:8px}.sheet{margin: auto 0 0;width:100%;max-width:none;border-radius:26px 26px 0 0;padding:12px 24px calc(24px + env(safe-area-inset-bottom));max-height:92dvh}.sheet-handle{display:block;width:36px;height:4px;background:#ddd;border-radius:4px;margin:0 auto 20px}.large-grid .day{font-size:20px;min-height:46px}.large-grid .day span{width:38px;height:38px}.large-grid .days{row-gap:14px}.sheet h2{font-size:30px}.sheet-bottom .small{max-width:140px}.navigation{gap:5px}.navigation button{width:34px;height:34px}.lock-content h1{font-size:32px}}
@media(prefers-reduced-motion:no-preference){dialog[open]{animation:appear .18s ease-out}@keyframes appear{from{opacity:0;transform:translateY(15px)}to{opacity:1;transform:translateY(0)}}}

.mini-month{align-self:start}body:has(dialog[open]){overflow:hidden}

:root{--yellow:#f4c542}
.yellow{background:var(--yellow)}
.mark-red{--mark-fill:var(--red)}
.mark-yellow{--mark-fill:var(--yellow)}
.mark-green{--mark-fill:var(--green)}
.mark-red-yellow{--mark-fill:conic-gradient(var(--red) 0deg 180deg,var(--yellow) 180deg 360deg)}
.mark-red-green{--mark-fill:conic-gradient(var(--red) 0deg 180deg,var(--green) 180deg 360deg)}
.mark-yellow-green{--mark-fill:conic-gradient(var(--yellow) 0deg 180deg,var(--green) 180deg 360deg)}
.mark-red-yellow-green{--mark-fill:conic-gradient(var(--red) 0deg 120deg,var(--yellow) 120deg 240deg,var(--green) 240deg 360deg)}
.day[class*="mark-"] span{background:var(--mark-fill);color:#202022;font-weight:600;text-shadow:0 0 2px #ffffff80}
.day.mark-red span,.day.mark-green span{color:white;text-shadow:none}
.legend-dot[class*="mark-"]{background:var(--mark-fill);width:10px;height:10px}
.marks-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}
.marks-heading .field-label{margin:0}.marks-heading .text-button{font-size:12px;padding:4px 0}
.color-options{margin-bottom:8px}.color-options button{min-height:46px;position:relative;padding:12px 8px}
.color-options button:last-child{flex:1.7}
.color-options button[aria-pressed=true]{border-color:#777;background:#f3f3f5;box-shadow:0 0 0 1px #777}
.color-options button[aria-pressed=true] .color-dot:after{content:"✓";display:block;text-align:center;line-height:16px;font-size:12px;color:#222}
.marks-help{margin:0 0 24px;font-size:12px}

/* Simplified calendar: December 2026 */
#back-nav{display:flex;align-items:center;margin-bottom:32px}
.back-button{border:0;border-radius:22px;background:#e9e9ec;color:#007aff;min-height:44px;padding:12px 20px;font-size:15px;font-weight:600;box-shadow:0 1px 2px #00000008}
.back-button:hover{background:#dedee3}
.heading{margin:0 0 42px}.calendar{padding-bottom:48px}
.navigation button{width:44px;height:44px}
#month-view{padding-bottom:16px}
@media(max-width:540px){#back-nav{margin-bottom:28px}.heading{margin:0 0 36px}.heading h1{font-size:52px;letter-spacing:-2.5px}.navigation{gap:4px}.navigation button{width:40px;height:40px}.calendar{padding-top:calc(20px + env(safe-area-inset-top))}}

.access-screen{min-height:100dvh;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;padding:32px}.access-screen h1{font-size:32px;font-weight:600;letter-spacing:-1px}.access-screen p{max-width:320px;font-size:16px}
