:root{font-family:Inter,"Apple SD Gothic Neo","Malgun Gothic",sans-serif;color:#343c46;background:#f2f1ed;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,textarea{font:inherit}button,a,input,textarea{outline-offset:4px}button{cursor:pointer;border:1px solid #dce0e5;background:transparent;border-radius:7px;color:inherit;padding:8px 12px}button:hover{background:#edf1f6}button:disabled{cursor:wait;opacity:.6}a{color:inherit;text-decoration:none}header{max-width:1280px;margin:auto;padding:32px 30px;display:flex;align-items:center;justify-content:space-between}header>a:last-child{font-size:13px;color:#727980}.brand{font-family:Georgia,serif;font-size:29px}.brand span{display:block;font-family:system-ui;font-size:11px;letter-spacing:2px;color:#92979b;margin-top:8px}main{max-width:1280px;margin:10px auto 60px;display:grid;grid-template-columns:.85fr 1.15fr;padding:0 30px;gap:24px;align-items:start}.paper{background:#fffefa;border:1px solid #e3e1da;border-radius:12px;padding:36px;box-shadow:0 8px 30px #323a4410}.eyebrow{color:#788cab;font-size:11px;letter-spacing:2.5px;font-weight:700}h1{font-size:27px;line-height:1.6;font-weight:500;margin:25px 0 48px}h2{font-size:21px;font-weight:500}h3{font-size:16px;font-weight:600}.month-nav{display:flex;align-items:center;justify-content:space-between}.month-nav button{border:0}.weekdays,#calendar{display:grid;grid-template-columns:repeat(7,1fr);gap:5px}.weekdays{text-align:center;color:#8e959f;font-size:12px;padding:20px 0 10px}#calendar button{border:0;aspect-ratio:1;padding:0;font-size:14px}#calendar button.selected{background:#7084a5;color:white}#calendar button.is-today{box-shadow:inset 0 0 0 1px #7084a5}.today{width:100%;margin-top:24px;font-size:13px}.hint{font-size:12px;line-height:1.8;color:#92979b;margin-top:30px}.daily-heading{display:flex;align-items:center;justify-content:space-between;border-bottom:3px solid #8b9cb8;padding-bottom:12px;gap:12px}input[type=date]{border:1px solid #e0e3e7;background:transparent;padding:8px;border-radius:5px;font-size:12px;color:#687488;max-width:150px}#status{font-size:12px;color:#6a7c94;min-height:18px}fieldset{border:0;margin:0;padding:0;min-width:0}.daily section{margin-bottom:28px}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}.section-heading span,.save-row span{font-size:11px;color:#92979b}.item{display:flex;gap:10px;align-items:center;border-bottom:1px solid #e8e8e3;min-height:44px}.item input[type=text]{width:100%;min-width:0;border:0;background:transparent;padding:12px 0;font-size:14px;color:inherit}.item input[type=checkbox]{accent-color:#7084a5;width:17px;height:17px}.item:has(input:checked) input[type=text]{text-decoration:line-through;color:#a2a7ad}.item button{border:0;color:#8b939d}.add{border:0;font-size:12px;color:#7185a4;padding-left:0;margin-top:10px}textarea{width:100%;min-height:165px;resize:vertical;border:0;border-bottom:1px solid #e5e7e8;line-height:32px;background:repeating-linear-gradient(transparent,transparent 31px,#e8e8e3 31px,#e8e8e3 32px);color:inherit;font-size:14px;padding:0}textarea::placeholder{color:#a3a7ad}.save-row{display:flex;align-items:center;justify-content:space-between;gap:12px}.primary{background:#7084a5;color:white;border-color:#7084a5;font-size:13px;padding:12px 18px}.primary:hover{background:#5d7295}@media(max-width:800px){main{grid-template-columns:1fr;padding:0 16px}.paper{padding:24px}header{padding:24px}h1{font-size:22px;margin-bottom:24px}#calendar button{aspect-ratio:auto;min-height:38px}.daily-heading{flex-wrap:wrap}.section-heading span{max-width:150px;text-align:right}}
/* Weekly planner: each half-hour has a 28px interaction target. */
[hidden]{display:none!important}main{max-width:1560px;grid-template-columns:minmax(620px,1.25fr) minmax(360px,1fr)}header{max-width:1560px}.schedule{padding:24px;min-width:0}.schedule-title,.week-footer{display:flex;justify-content:space-between;align-items:center;gap:12px}.schedule-title button{font-size:12px}.schedule .hint{margin:12px 0 18px}.schedule .month-nav h2{font-size:17px}.week-scroll{max-height:680px;overflow:auto;border:1px solid #dce1e8;border-radius:6px;padding-bottom:14px;overscroll-behavior:contain}#week-grid{display:grid;grid-template-columns:48px repeat(7,minmax(64px,1fr));min-width:510px}.week-corner,.week-day{position:sticky;top:0;z-index:3;background:#f5f6f8;border:0;border-bottom:1px solid #dce1e8;border-radius:0;padding:12px 2px;text-align:center;font-size:12px}.week-corner{color:#8a94a3}.time-axis{position:relative;height:1232px;font-size:10px;color:#7c8799;background:#fafaf7}.time-axis span{position:absolute;right:5px;transform:translateY(-50%)}.time-axis span:first-child{transform:none}.day-column{height:1232px;position:relative;border-left:1px solid #dce1e8}.time-slot{display:block;height:28px;width:100%;padding:0;border:0;border-bottom:1px dashed #e4e7eb;border-radius:0}.time-slot:nth-child(even){border-bottom:1px solid #d5dce6}.time-slot:hover{background:#edf1f8}.time-block{position:absolute;left:2px;right:2px;background:#dfe8f4;border:1px solid #9badc9;border-radius:4px;z-index:1;min-height:28px;display:flex;align-items:center;overflow:hidden}.time-block input{width:100%;min-width:0;padding:0 15px 0 3px;border:0;background:transparent;color:#3f526e;font-size:11px;height:18px;outline-offset:0}.delete-block{position:absolute;right:0;top:50%;transform:translateY(-50%);border:0;padding:0;width:15px;height:18px;font-size:13px;color:#657a99}.resize-handle{position:absolute;left:0;right:0;height:6px;min-height:0;padding:0;border:0;border-radius:0;cursor:ns-resize;touch-action:none;background:#a7b9d380}.resize-handle.start{top:0}.resize-handle.end{bottom:0}.resize-handle:hover,.resize-handle:focus{background:#718aaf}.week-footer{margin-top:18px}.week-footer button{font-size:12px}#week-status{font-size:12px;color:#6a7c94;min-height:18px}@media(max-width:1100px){main{grid-template-columns:1fr}.daily{min-width:0}.week-scroll{max-height:600px}}@media(max-width:600px){.schedule{padding:16px}.schedule .month-nav h2{font-size:14px}.week-scroll{max-height:560px}}
/* Monthly dates keep five compact event rectangles without changing row height. */
#calendar{gap:0;border-top:1px solid #dde2e9;border-left:1px solid #dde2e9;grid-template-columns:repeat(7,minmax(0,1fr))}.month-day,.month-empty{height:172px;min-width:0;padding:5px;border-right:1px solid #dde2e9;border-bottom:1px solid #dde2e9}.month-empty{background:#f6f6f2}.month-day.selected{background:#f0f4fa;box-shadow:inset 0 0 0 1px #8c9fbb}.month-day-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:6px}#calendar .month-date,#calendar .month-add{aspect-ratio:auto;min-height:26px;height:26px;width:26px;border-radius:4px;font-size:12px}#calendar .month-date.is-today{background:#7084a5;color:white}#calendar .month-add{color:#7a8da9;font-size:17px}#calendar .month-event{display:block;aspect-ratio:auto;width:100%;height:22px;min-height:22px;margin:0 0 4px;padding:3px 5px;border-radius:3px;background:#dfe7f3;color:#506784;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:11px;line-height:16px}#calendar .month-event:hover{background:#cddbeb}#month-status{font-size:12px;color:#6a7c94}#month-dialog{width:min(420px,calc(100% - 32px));border:1px solid #dce0e5;border-radius:12px;background:#fffefa;color:#343c46;padding:28px;box-shadow:0 18px 60px #25304b30}#month-dialog::backdrop{background:#26334b55}.month-input-row{display:flex;gap:8px;margin-bottom:10px}.month-input-row input{width:100%;min-width:0;border:1px solid #dce0e5;background:white;border-radius:5px;padding:10px;font:inherit}.month-input-row button{border:0}.month-dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:20px}#month-dialog-status{font-size:12px;color:#6a7c94}#month-dialog .hint{margin-top:0}@media(max-width:600px){.month-day,.month-empty{padding:3px;height:164px}#calendar .month-date,#calendar .month-add{width:20px;font-size:11px}#calendar .month-event{font-size:10px;padding:3px 2px}}
/* Compact overview, with the complete early/late hours still scrollable. */
header{padding-top:18px;padding-bottom:18px}main{margin-top:0;margin-bottom:20px}.schedule,.daily{padding:20px}.schedule-title .eyebrow{margin:6px 0}.month-nav h2{margin:10px 0}.schedule .hint{margin:6px 0 10px;font-size:11px}.week-scroll{max-height:none;padding-bottom:12px}.week-corner,.week-day{height:32px;padding:6px 2px}.time-axis,.day-column{height:calc(var(--slot-height,14px) * 44)}.time-slot{height:var(--slot-height,14px)}.time-block{min-height:var(--slot-height,14px)}.time-block input{font-size:10px;height:100%;line-height:1}.resize-handle{height:3px}.delete-block{height:12px;line-height:12px;font-size:11px}.week-footer{margin-top:10px}#week-status,#month-status{margin:7px 0;font-size:11px}.weekdays{padding:8px 0}.month-day,.month-empty{height:calc(clamp(420px,calc(100dvh - 275px),660px) / var(--month-rows,6));min-height:70px;padding:3px}.month-day-heading{margin-bottom:2px}#calendar .month-date,#calendar .month-add{height:20px;min-height:20px;width:22px;font-size:11px}#calendar .month-event{height:17px;min-height:17px;line-height:13px;margin-bottom:2px;padding:2px 4px;font-size:10px}#calendar .month-more{display:block;width:100%;height:16px;min-height:16px;aspect-ratio:auto;border-radius:0;text-align:left;padding:0 2px;line-height:16px;font-size:9px;color:#7184a0}.today{margin-top:4px;padding:5px;font-size:11px}.daily-heading{padding-bottom:6px}.daily-heading h2{margin:8px 0}.daily section{margin-bottom:14px}.daily h3{margin:12px 0}.daily .add{margin-top:3px;padding-top:5px;padding-bottom:5px}#todos{min-height:264px;background:repeating-linear-gradient(to bottom,transparent 0,transparent 43px,#e3e5e5 43px,#e3e5e5 44px)}#todos .item{height:44px;background:#fffefa}#memo{min-height:96px}.save-row{flex-wrap:wrap}.save-row #status{flex:1;min-width:160px;margin:0;font-size:11px}.save-row #status:empty{display:none}.save-row .primary{margin-left:auto}.week-scroll{scrollbar-width:thin}@media(max-height:760px){.month-day,.month-empty{height:calc(max(420px,calc(100dvh - 250px)) / var(--month-rows,6))}header{padding-top:12px;padding-bottom:12px}.brand span{margin-top:3px}.schedule,.daily{padding:16px}}@media(max-width:600px){.month-day,.month-empty{padding:2px}#calendar .month-event{font-size:9px;padding:2px}.schedule,.daily{padding:14px}#todos{min-height:264px}}
