.home-board{--hb-text:#303236;--hb-muted:#94979d;--hb-line:#eceef0;--hb-paper:#fff;--hb-name:160px;--hb-day:34px;grid-column:1/-1;width:100%;min-width:0;color:var(--hb-text);font-family:inherit;text-align:left}
.home-board button,.home-board-overlay button,.home-board input,.home-board-overlay input,.home-board-overlay select,.home-board-overlay textarea{font:inherit}
.home-board button,.home-board-overlay button{cursor:pointer;-webkit-tap-highlight-color:transparent}
.home-board button:disabled,.home-board-overlay button:disabled{cursor:default}
.home-board svg,.home-board-overlay svg{display:block;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.home-board button:focus-visible,.home-board-overlay :is(button,input,select,textarea):focus-visible{outline:2px solid #777f88;outline-offset:3px}
.hb-section{padding:26px 0 28px;border-bottom:1px solid var(--hb-line);min-width:0}
.hb-section:first-child{padding-top:5px}.hb-section:last-of-type{border-bottom:0;padding-bottom:12px}
.hb-section-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:0 0 22px}
.hb-eyebrow{font-size:10px;letter-spacing:.13em;font-weight:600;color:#989ba0;margin:0 0 7px;line-height:1.4}
.hb-section h2,.hb-dialog h2{font-size:18px;font-weight:650;letter-spacing:-.035em;line-height:1.5;margin:0;color:#303236}
.hb-add,.hb-primary,.hb-secondary{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:36px;padding:7px 12px;border:1px solid #e0e2e5;border-radius:6px;background:#fff;color:#41454a;font-size:12px!important;white-space:nowrap}
.hb-add:hover,.hb-secondary:hover{background:#f6f7f8}.hb-add svg{width:14px;height:14px}
.hb-heading-actions,.hb-date-nav{display:flex;align-items:center;gap:3px}.hb-date-nav{border:1px solid #e8eaec;border-radius:6px;padding:1px}
.hb-icon-button{width:32px;height:32px;display:inline-flex;align-items:center;justify-content:center;padding:0;border:0;border-radius:5px;background:transparent;color:#727780;flex:none}
.hb-icon-button:hover,.hb-today-button:hover{background:#f2f3f4}.hb-today-button{height:30px;border:0;background:transparent;padding:0 9px;color:#686d74;font-size:11px!important;border-radius:4px}
.hb-text-button{min-height:34px;padding:5px 9px;color:#888d94;border:0;background:transparent;font-size:12px!important}.hb-text-button:hover{color:#34383d}
.hb-timeline-toolbar{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px;gap:10px}.hb-timeline-toolbar p{font-size:12px;font-weight:550;color:#666b72;letter-spacing:.02em;margin:0}.hb-timeline-toolbar p span{padding:0 5px;color:#bcc0c5}
.hb-timeline-scroll{overflow:auto;max-width:100%;overscroll-behavior-x:contain;scrollbar-width:thin;scrollbar-color:#dedfe2 transparent;border:1px solid var(--hb-line);border-radius:7px;background:#fff;isolation:isolate}
.hb-timeline{width:calc(var(--hb-name) + var(--hb-days)*var(--hb-day));min-width:100%}.hb-timeline-head,.hb-project-row{display:flex;position:relative;min-width:max-content}
.hb-project-name{width:var(--hb-name);flex:0 0 var(--hb-name);position:sticky;left:0;z-index:3;background:#fff;border-right:1px solid var(--hb-line);box-sizing:border-box}.hb-timeline-key{display:flex;align-items:center;padding:0 14px;color:#a0a4aa;font-size:10px;font-weight:500}
.hb-date-cells,.hb-project-cells{display:grid;grid-template-columns:repeat(var(--hb-days),var(--hb-day));flex:1}
.hb-date{height:57px;position:relative;text-align:center;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:4px;border-right:1px solid #f2f3f5;box-sizing:border-box;color:#858a91}.hb-date small{font-size:9px;font-weight:400}.hb-date b{font-size:11px;font-weight:500;line-height:1.3}.hb-date em{position:absolute;bottom:2px;font-size:8px;font-style:normal;color:#a2a7ad}.hb-date.is-today{color:#30353b;background:#f1f2f3}.hb-date.is-today b{font-weight:750}.hb-date.is-weekend:not(.is-today){background:#fafafb;color:#acb0b5}
.hb-project-row{border-top:1px solid var(--hb-line);min-height:58px}.hb-project-label{display:flex;flex-direction:column;justify-content:center;width:100%;height:100%;min-height:58px;gap:5px;background:transparent;border:0;padding:9px 14px;text-align:left;color:#44494f}.hb-project-label:hover{background:#f8f9fa}.hb-project-label strong{font-size:12px;font-weight:550;line-height:1.4;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.hb-project-label small{font-size:9px;color:#a0a5ab;line-height:1.4;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hb-project-cell{position:relative;display:block;min-width:0;height:58px;border:0;border-right:1px solid #f3f4f5;padding:0;background:#fff;box-sizing:border-box}.hb-project-cell.is-today{background:#f8f9fa}.hb-project-day{touch-action:pan-x pan-y;user-select:none;-webkit-user-select:none}.hb-project-day:before{content:"";position:absolute;left:0;right:0;top:10px;bottom:10px;border-top:1px solid #dce0e4;border-bottom:1px solid #dce0e4;background:#fbfbfc;pointer-events:none}.hb-project-day.is-start:before{left:2px;border-left:1px solid #dce0e4;border-radius:5px 0 0 5px}.hb-project-day.is-end:before{right:2px;border-right:1px solid #dce0e4;border-radius:0 5px 5px 0}.hb-project-day.is-start.is-end:before{border-radius:5px}
.hb-project-day:after{content:"";position:absolute;left:0;right:0;top:11px;bottom:11px;background:var(--hb-ink);opacity:0;pointer-events:none;transition:opacity .15s ease;clip-path:inset(0)}.hb-project-day.has-ink:after,.hb-project-day.is-preview-paint:after{opacity:.23}.hb-project-day.is-preview-paint:after{opacity:.38}.hb-project-day.is-preview-erase:after{opacity:.04}.hb-project-day:disabled:before{background:#fafafb}.hb-project-day:not(:disabled):hover:before{background:#f0f2f4}.hb-project-day:focus-visible{outline-offset:-3px;z-index:2}.hb-today-dot{position:absolute;left:50%;top:4px;width:3px;height:3px;border-radius:50%;background:#777f88;transform:translateX(-50%);z-index:1}
.hb-hint{font-size:10px;color:#a0a5ac;line-height:1.7;margin:11px 0 0}.hb-project-empty{border:1px dashed #e4e6e9;border-radius:7px;padding:34px 20px;text-align:center}.hb-empty-line{display:block;height:9px;width:100px;border:1px solid #dee2e6;border-radius:4px;margin:0 auto 19px;background:linear-gradient(90deg,#dfe3e7 38%,transparent 38%)}.hb-project-empty p{font-size:13px;color:#6c727a;margin:0 0 6px}.hb-project-empty>span:last-child{font-size:11px;color:#a1a6ad}
.hb-routines .hb-section-heading{margin-bottom:15px}.hb-collapse svg{transition:transform .18s ease}.hb-collapse.is-expanded svg{transform:rotate(180deg)}.hb-routine-summary{display:flex;justify-content:space-between;color:#a0a5ad;font-size:10px;line-height:1.7;margin-bottom:9px}.hb-routine-summary>span:first-child{color:#7c828a}.hb-routine-summary b{font-weight:650;color:#494f57;margin-left:5px}.hb-muted{color:#b0b4ba}.hb-summary-progress{height:3px;background:#f0f1f3;border-radius:3px;overflow:hidden;margin-bottom:19px}.hb-summary-progress i,.hb-week-progress i{display:block;height:100%;background:#626b76;border-radius:inherit;transition:width .2s ease}
.hb-week-scroll{overflow-x:auto;scrollbar-width:thin;scrollbar-color:#dedfe2 transparent;overscroll-behavior-x:contain;padding-bottom:5px}.hb-week-scroll[hidden]{display:none}.hb-week{display:grid;grid-template-columns:repeat(7,minmax(120px,1fr));gap:8px;min-width:880px}.hb-week-card{border:1px solid #e9ebee;border-radius:6px;background:#fff;padding:12px 10px 15px;min-height:166px;box-sizing:border-box}.hb-week-card.is-today{border-color:#b8bec6;background:#fdfdfe}.hb-week-card>header{display:flex;justify-content:space-between;align-items:center;gap:4px;margin-bottom:9px}.hb-week-date{display:flex;align-items:baseline;gap:6px;border:0;background:transparent;padding:0;color:#8a9098;min-height:25px}.hb-week-date span{font-size:10px}.hb-week-date b{font-size:14px;font-weight:500;color:#747b84}.hb-week-date small{font-size:8px;color:#626b76}.hb-week-card.is-today .hb-week-date b{color:#303740;font-weight:700}.hb-week-count{font-size:9px;color:#adb3bb}.hb-week-progress{height:2px;background:#f0f2f4;margin-bottom:11px;border-radius:2px}.hb-week-card ul{list-style:none;margin:0;padding:0;display:grid;gap:8px}.hb-routine-item{display:flex;align-items:flex-start;gap:6px;width:100%;border:0;background:transparent;padding:3px 0;text-align:left;color:#737b85}.hb-checkbox{width:13px;height:13px;flex:0 0 13px;border:1px solid #d4d9df;border-radius:3px;margin-top:2px;box-sizing:border-box;background:#fff}.hb-checkbox svg{width:11px;height:11px;stroke-width:2}.hb-routine-item.is-done .hb-checkbox{background:#68717c;border-color:#68717c;color:#fff}.hb-routine-copy{display:flex;flex-direction:column;gap:3px;min-width:0;font-size:10px;line-height:1.6;overflow-wrap:anywhere}.hb-routine-copy small{font-size:9px;color:#a2a9b1}.hb-routine-item.is-done .hb-routine-copy>span{color:#acb2b9;text-decoration:line-through;text-decoration-color:#d5d9de}.hb-routine-item:disabled{opacity:.6}.hb-week-empty{font-size:10px;color:#bcc1c7;margin:17px 0}.hb-week-card.is-unavailable{background:#fafbfc;opacity:.65}
.hb-recorded{font-size:11px;color:#a0a6ae}.hb-recorded b{font-weight:600;color:#717983;margin-right:3px}.hb-recent-grid{display:grid;grid-template-columns:repeat(30,minmax(0,1fr));gap:5px}.hb-recent-day{display:flex;flex-direction:column;gap:7px;align-items:center;min-width:0;padding:0;border:0;background:transparent;color:#adb3bc}.hb-heat{display:block;width:100%;aspect-ratio:1;max-height:30px;border-radius:3px;border:1px solid rgba(60,70,85,.035);box-sizing:border-box}.hb-recent-day small{font-size:8px;line-height:1.4}.hb-recent-day.is-today small{font-weight:750;color:#555f6c}.hb-recent-day:not(:disabled):hover .hb-heat{outline:1px solid #9ca5b0;outline-offset:2px}.hb-level-0{background:#f1f3f5}.hb-level-1{background:#dfe3e8}.hb-level-2{background:#c2cad4}.hb-level-3{background:#929eac}.hb-level-4{background:#626f80}.hb-recent-day:disabled{opacity:.45}.hb-recent-footer{display:flex;align-items:center;justify-content:space-between;margin-top:15px;gap:12px;font-size:9px;color:#a9afb7}.hb-recent-footer>div{display:flex;align-items:center;gap:4px}.hb-recent-footer i{width:8px;height:8px;border-radius:2px}.hb-recent-footer>div span:first-child{margin-right:3px}.hb-recent-footer>div span:last-child{margin-left:3px}.hb-status{font-size:12px;color:#747a83;line-height:1.6;margin:12px 0 0}.hb-status:empty{display:none}
.home-legacy-details{grid-column:1/-1;border-top:1px solid #eceef0;padding:0;color:#858c95;font-size:12px;min-width:0}.home-legacy-details>summary{padding:17px 3px;cursor:pointer;list-style-position:inside}.home-legacy-details[open]>summary{color:#525b67}.home-statistics{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:28px;padding:8px 0 20px}.home-legacy-details .home-today{margin-top:8px}
.hb-modal-open{overflow:hidden}.home-board-overlay{position:fixed;inset:0;z-index:1600;background:rgba(35,40,48,.2);backdrop-filter:blur(2px);display:flex;align-items:center;justify-content:center;padding:24px;box-sizing:border-box;overscroll-behavior:contain}.hb-dialog{width:460px;max-width:100%;max-height:min(760px,calc(100dvh - 48px));overflow:auto;background:#fff;border:1px solid #e9ebed;border-radius:12px;padding:24px;box-shadow:0 14px 50px rgba(30,40,52,.12);box-sizing:border-box;color:#454c55}.hb-dialog>header{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:23px}.hb-dialog h2{font-size:19px}.hb-dialog form{display:grid;gap:17px}.hb-field{display:flex;flex-direction:column;gap:7px;min-width:0}.hb-field>span{font-size:11px;color:#9299a2}.hb-field input,.hb-field select,.hb-field textarea{width:100%;min-width:0;box-sizing:border-box;min-height:39px;border:1px solid #e2e5e9;border-radius:5px;padding:9px 10px;background:#fff;color:#515b67;font-size:12px;line-height:1.5;-webkit-appearance:none}.hb-field textarea{resize:vertical;min-height:84px}.hb-field input::placeholder,.hb-field textarea::placeholder{color:#b6bdc6}.hb-field input[readonly]{background:#f7f8fa;color:#8c96a2}.hb-field select{padding-right:25px;background-image:linear-gradient(45deg,transparent 50%,#a2aab4 50%),linear-gradient(135deg,#a2aab4 50%,transparent 50%);background-position:calc(100% - 13px) 17px,calc(100% - 9px) 17px;background-size:4px 4px;background-repeat:no-repeat}.hb-form-pair{display:grid;grid-template-columns:1fr 1fr;gap:12px}.hb-form-note{font-size:10px;color:#a0a8b3;line-height:1.7;margin:-7px 0 0}.hb-modal-error{font-size:12px;color:#976767;margin:0;line-height:1.6}.hb-modal-error:empty{display:none}.hb-dialog footer{display:flex;justify-content:flex-end;gap:7px;padding-top:6px}.hb-primary{background:#454e5a;border-color:#454e5a;color:#fff;min-width:66px}.hb-primary:hover{background:#343d49}.hb-primary:disabled{opacity:.6}
.hb-erase-trace{position:fixed;z-index:1400;display:block;pointer-events:none;opacity:.23;clip-path:inset(0);animation:hb-ink-unwind .26s cubic-bezier(.25,.6,.35,1) forwards}
.hb-routine-item{touch-action:pan-x pan-y;user-select:none;-webkit-user-select:none}
.hb-routine-copy{flex:1 1 0;min-width:0}
.hb-routine-badge{position:relative;display:inline-block;align-self:flex-start;width:fit-content;max-width:100%;box-sizing:border-box;padding:0 3px;margin-left:-3px;isolation:isolate}
.hb-routine-badge>span{position:relative;z-index:1}
.hb-routine-badge:before{content:"";position:absolute;inset:2px 0;border-radius:2px;background:var(--hb-routine-ink,#69717b);opacity:.23;transform:scaleX(0);transform-origin:left center;z-index:0}
.hb-routine-item.is-done .hb-routine-badge:before{transform:scaleX(1)}
.hb-routine-item.is-done .hb-routine-copy>span{color:#69727d;text-decoration:none}
.hb-routine-item.is-holding .hb-routine-badge:before,.hb-routine-badge.is-filling:before{animation:hb-badge-fill var(--hb-hold-ms,320ms) linear both}
.hb-routine-item.is-holding.is-done .hb-routine-badge:before,.hb-routine-badge.is-unfilling:before{animation:hb-badge-unfill var(--hb-hold-ms,320ms) linear both}
.hb-routine-badge.is-filling:before,.hb-routine-badge.is-unfilling:before{animation-delay:var(--hb-motion-delay,0ms)}
@keyframes hb-badge-fill{from{transform:scaleX(0)}to{transform:scaleX(1)}}
@keyframes hb-badge-unfill{from{transform:scaleX(1)}to{transform:scaleX(0)}}
@keyframes hb-ink-unwind{to{clip-path:inset(0 100% 0 0);opacity:0}}
@media(min-width:1100px){.home-board{--hb-day:37px;--hb-name:175px}.hb-week{min-width:0;grid-template-columns:repeat(7,minmax(0,1fr))}}
@media(max-width:700px){.home-board{--hb-name:126px;--hb-day:34px}.hb-section{padding:23px 0}.hb-section h2{font-size:16px}.hb-section-heading{margin-bottom:17px}.hb-eyebrow{font-size:9px;margin-bottom:5px}.hb-add{font-size:11px!important;padding:6px 9px;min-height:34px}.hb-project-label{padding:9px 10px}.hb-project-label strong{font-size:11px}.hb-project-label small{font-size:8px}.hb-timeline-key{padding-left:10px}.hb-hint{font-size:9px}.hb-week{grid-template-columns:repeat(7,142px);min-width:max-content;gap:7px}.hb-week-card{padding:12px;min-height:174px}.hb-routine-copy{font-size:11px}.hb-week-date small{font-size:9px}.hb-recent-grid{grid-template-columns:repeat(15,minmax(0,1fr));gap:13px 7px}.hb-recent-day small{font-size:9px}.hb-heat{max-height:32px}.home-statistics{grid-template-columns:1fr;gap:18px}.home-board-overlay{padding:16px;align-items:center}.hb-dialog{padding:20px;max-height:calc(100dvh - 32px);border-radius:10px}.hb-field input,.hb-field select,.hb-field textarea{font-size:16px}.hb-field input[type=date]{font-size:13px;min-height:43px}.hb-field select{font-size:13px;min-height:43px;background-position:calc(100% - 13px) 19px,calc(100% - 9px) 19px}.hb-form-pair{gap:9px}}
@media(prefers-reduced-motion:reduce){.home-board *,.home-board-overlay *,.hb-erase-trace{animation:none!important;transition:none!important}.hb-erase-trace{display:none}}

/* A horizontal planner page: the grid is the primary way to add a period. */
.home-board{--hb-day:34px;--hb-period-ink:var(--accent,#d66976)}
.hb-section{padding:30px 0 34px}.hb-section-heading{margin-bottom:18px}.hb-section h2{font-size:18px;font-weight:600}
.hb-project-add{width:28px;height:28px;color:#a0a09b}.hb-project-add svg{width:15px;height:15px}
.hb-timeline-toolbar{margin-bottom:8px;align-items:center}.hb-project-tools{display:flex;align-items:center;gap:3px}.hb-tool{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:29px;padding:5px 8px;border:0;border-radius:14px;background:transparent;color:#979792;font-size:11px!important;white-space:nowrap}.hb-tool svg{width:13px;height:13px}.hb-tool:hover{background:#f6f6f4;color:#686863}.hb-tool.is-active{background:#f1f1ef;color:#45453f}.hb-range-label{padding:0 7px;font-size:11px;color:#8d8d86}.hb-date-nav{border:0;padding:0;gap:1px}.hb-date-nav .hb-icon-button{height:28px;width:24px}.hb-date-nav svg{width:15px;height:15px}.hb-today-button{height:28px;font-size:11px!important;padding:0 5px;color:#8b8b85}
.hb-timeline-scroll{border:0;border-top:1px solid #e9e9e6;border-bottom:1px solid #e9e9e6;border-radius:0;background:transparent;padding-bottom:5px}
.hb-timeline{position:relative;width:calc(var(--hb-days)*var(--hb-day));min-width:100%}.hb-timeline-head,.hb-project-row{min-width:0;width:100%}.hb-date-cells,.hb-project-cells{grid-template-columns:repeat(var(--hb-days),minmax(var(--hb-day),1fr));width:100%;flex:none}
.hb-date{height:47px;gap:4px;border:0;border-bottom:1px solid #e9e9e6;color:#9b9c96}.hb-date small{font-size:9px}.hb-date b{font-size:10px;font-weight:400}.hb-date.is-today{background:#f7f5f4;color:#4c4a47}.hb-date.is-today b{font-weight:650}.hb-date.is-weekend:not(.is-today){background:#fafaf9}.hb-date.is-today:after{content:"";position:absolute;left:50%;bottom:-2px;width:4px;height:4px;border-radius:50%;background:var(--hb-period-ink);z-index:4}
.hb-project-row{height:44px;min-height:44px;border-top:0;border-bottom:1px solid #f3f3f0}.hb-project-cells{height:44px}.hb-project-cell,.hb-create-cell{position:relative;height:44px;min-width:0;padding:0;border:0;border-right:1px solid #f2f2ef;background:transparent;box-sizing:border-box}.hb-project-cell.is-weekend,.hb-create-cell.is-weekend{background:#fafaf9}.hb-project-cell.is-today,.hb-create-cell.is-today{background:#fbf7f7;border-left:1px solid rgba(199,119,132,.4)}
.hb-project-bar{position:absolute;left:calc(var(--hb-bar-start)*(100%/var(--hb-days)) + 2px);top:7px;width:calc(var(--hb-bar-length)*(100%/var(--hb-days)) - 4px);height:30px;display:flex;align-items:center;gap:8px;padding:0 9px;min-width:0;overflow:hidden;isolation:isolate;border:1px solid #e0e0dc;border-radius:4px;box-shadow:0 1px 2px rgba(40,40,35,.035);background:transparent;color:#51514a;touch-action:pan-x pan-y;user-select:none;-webkit-user-select:none;text-align:left;transition:box-shadow .16s}
.hb-project-bar:before{content:"";position:absolute;inset:0;background:var(--hb-ink,#8c8c84);opacity:.1;z-index:-1;transform-origin:var(--hb-fill-origin,left) center}.hb-project-bar strong{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:11px;font-weight:550;min-width:0}.hb-project-bar small{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:9px;color:#999a91;margin-left:auto;flex:none;max-width:42%}.hb-project-bar:hover{box-shadow:0 1px 4px rgba(40,40,35,.09)}.hb-project-bar:focus-visible{outline-offset:2px}.hb-project-bar.continues-before{border-left:0;border-radius:0 4px 4px 0}.hb-project-bar.continues-after{border-right:0;border-radius:4px 0 0 4px}.hb-project-bar.continues-before.continues-after{border-radius:0}.hb-project-bar.is-moving{transform:translateX(calc(var(--hb-shift)*1px));opacity:.85;box-shadow:0 3px 12px rgba(60,60,50,.1);cursor:grabbing}.hb-project-bar.is-holding{box-shadow:0 0 0 2px #ececea}.hb-project-bar.is-new-fill:before{animation:hb-period-fill 320ms linear both;animation-delay:var(--hb-motion-delay,0ms);opacity:.22}.hb-project-offscreen{position:absolute;inset:0 auto 0 9px;display:flex;align-items:center;gap:10px;border:0;background:transparent;color:#93938b;font-size:10px!important}.hb-project-offscreen small{font-size:9px;color:#b1b1aa}
.hb-mode-timeline .hb-project-day{pointer-events:none}.hb-mode-timeline .hb-project-day:before{display:none}.hb-mode-timeline .hb-project-day:after{top:8px;bottom:8px;opacity:0}.hb-mode-timeline .hb-project-day.has-ink:after{opacity:.17}
.hb-mode-paint .hb-project-bar,.hb-mode-erase .hb-project-bar{pointer-events:none;border-color:transparent;box-shadow:none}.hb-mode-paint .hb-project-bar:before,.hb-mode-erase .hb-project-bar:before{background:transparent}.hb-project-day:before{top:7px;bottom:7px;background:#fcfcfa;border-color:#e5e5e0}.hb-project-day:after{top:8px;bottom:8px;transform-origin:var(--hb-fill-origin,left) center}.hb-project-day.is-filling:after{animation:hb-period-fill var(--hb-fill-ms,320ms) linear both;animation-delay:var(--hb-motion-delay,0ms)}.hb-project-day.has-ink:after{opacity:.23}.hb-project-day.is-preview-paint:after{opacity:.33}.hb-project-day.is-preview-erase:after{opacity:.03}.hb-today-dot{display:none}
.hb-create-cell{touch-action:pan-x pan-y;user-select:none;-webkit-user-select:none;cursor:crosshair}.hb-create-cell:before{content:"";position:absolute;left:0;right:0;top:7px;bottom:7px;background:var(--hb-period-ink);opacity:0;pointer-events:none}@media(hover:hover) and (pointer:fine){.hb-create-cell:hover:before{opacity:.045}}.hb-create-cell.is-holding:before{opacity:.13;animation:hb-period-fill 320ms linear both;transform-origin:left center}.hb-create-cell.is-preview-create:before{opacity:.26}.hb-create-cell.preview-start:before{left:2px;border-radius:4px 0 0 4px}.hb-create-cell.preview-end:before{right:2px;border-radius:0 4px 4px 0}.hb-create-cell.preview-start.preview-end:before{border-radius:4px}.hb-mode-paint .hb-empty-row,.hb-mode-erase .hb-empty-row{display:none}.hb-empty-guide{position:absolute;left:10px;top:15px;pointer-events:none;font-size:10px;color:#b2b1aa;line-height:1.4;background:rgba(255,255,255,.8);padding-right:6px}.hb-empty-row:has(.is-preview-create) .hb-empty-guide,.hb-empty-row:has(.is-holding) .hb-empty-guide{opacity:0}.hb-hint{color:#adada6;font-size:10px;margin-top:10px;line-height:1.7}
.hb-routines .hb-section-heading{margin-bottom:14px}.hb-routines .hb-heading-actions{gap:1px}.hb-routines .hb-tool{padding:5px 7px}.hb-routines .hb-text-button{padding:5px 6px;font-size:11px!important}
.hb-erase-trace{animation-duration:320ms}.hb-ink-fleck{position:fixed;z-index:1401;width:3px;height:3px;border-radius:50%;pointer-events:none;opacity:.5;animation:hb-fleck-out 320ms ease-out both}
@keyframes hb-period-fill{from{transform:scaleX(0)}to{transform:scaleX(1)}}
@keyframes hb-fleck-out{to{transform:translate(var(--hb-fleck-x),var(--hb-fleck-y)) scale(.3);opacity:0}}
@media(min-width:1100px){.home-board{--hb-day:35px}.hb-project-bar strong{font-size:12px}.hb-project-row,.hb-project-cells,.hb-project-cell,.hb-create-cell{height:44px}}
@media(max-width:700px){.home-board{--hb-day:34px}.hb-section{padding:26px 0 30px}.hb-section h2{font-size:16px}.hb-section-heading{margin-bottom:15px}.hb-project-tools{gap:0}.hb-tool{font-size:10px!important;gap:4px;padding:5px 7px}.hb-tool svg{width:12px;height:12px}.hb-range-label{font-size:10px;padding:0 3px}.hb-timeline-toolbar{gap:5px}.hb-project-bar{padding:0 7px}.hb-project-bar strong{font-size:10px}.hb-project-bar small{font-size:8px}.hb-hint{font-size:9px}.hb-heading-actions .hb-text-button{font-size:10px!important}}
@media(prefers-reduced-motion:reduce){.hb-ink-fleck{display:none}.hb-project-bar.is-new-fill:before{animation:none;transform:none}.hb-project-day.is-filling:after{animation:none;transform:none}}

/* The overview compresses one month; editing uses larger, discrete day cells. */
#calView>.st .hb-section{padding:22px 0;border-bottom:1px solid var(--shell-line,#e5e5e5)}
#calView>.st .hb-section:last-of-type{border-bottom:0;padding-bottom:6px}
#calView>.st .hb-section-heading{gap:10px;margin:0 0 9px;min-height:26px}
#calView>.st .hb-section h2{font:550 15px/1.4 var(--home-font,Pretendard,sans-serif);letter-spacing:-.025em;white-space:nowrap;margin:0;color:var(--shell-text,#27292c)}
#calView>.st .hb-section h2:before{content:none}
.hb-heading-rule{height:1px;background:var(--shell-line,#e5e5e5);flex:1}
#calView>.st .hb-heading-actions{gap:2px}
#calView>.st .hb-tool{font-size:11px!important;min-height:29px;padding:4px 7px;border-radius:7px}
#calView>.st .hb-tool.is-active{background:var(--shell-soft,#f3f3f1);color:var(--shell-text,#27292c)}
#calView>.st .hb-zoom{min-height:28px;padding:4px 5px}
#calView>.st .hb-project-add{width:24px;height:28px}
#calView>.st .hb-timeline-toolbar{margin:0 0 6px;min-height:28px;gap:8px;flex-wrap:wrap}
#calView>.st .hb-overview .hb-timeline-toolbar{justify-content:flex-end;min-height:24px}
#calView>.st .hb-range-label{font-size:11px;padding-left:0}
#calView>.st .hb-date-nav{margin-left:auto}
#calView>.st .hb-timeline-scroll{border:0;background:transparent;padding:0;overflow:auto;max-width:100%;scrollbar-width:thin}
#calView>.st .hb-timeline{width:100%;min-width:0}
#calView>.st :is(.hb-date-cells,.hb-project-cells){display:grid;grid-template-columns:repeat(var(--hb-days),minmax(0,1fr));width:100%;min-width:0}
#calView>.st :is(.hb-timeline-head,.hb-project-row){width:100%;min-width:0}
#calView>.st .hb-date{height:24px;display:flex;justify-content:flex-start;padding-top:0;gap:0;border:0;background:transparent!important;color:var(--shell-muted,#84888d)}
#calView>.st .hb-date b{font-size:11px;font-weight:400}
#calView>.st .hb-date.is-today{color:var(--accent,#de7786)}
#calView>.st .hb-date.is-today:after{display:none}
#calView>.st .hb-project-row{height:38px;min-height:38px;border-bottom:1px solid var(--shell-line,#e5e5e5)}
#calView>.st :is(.hb-project-cells,.hb-project-cell,.hb-create-cell){height:38px}
#calView>.st .hb-project-row:first-of-type{border-top:1px solid var(--shell-line,#e5e5e5)}
#calView>.st :is(.hb-project-cell,.hb-create-cell){border-right:1px solid color-mix(in srgb,var(--shell-line,#e5e5e5) 55%,transparent);background:transparent}
#calView>.st :is(.hb-project-cell.is-weekend,.hb-create-cell.is-weekend){background:color-mix(in srgb,var(--shell-soft,#f3f3f1) 45%,transparent)}
#calView>.st :is(.hb-project-cell.is-today,.hb-create-cell.is-today){background:transparent;border-left:1px solid color-mix(in srgb,var(--accent,#de7786) 55%,transparent)}
#calView>.st .hb-project-bar{top:6px;height:26px;padding:0 6px;border:1px solid color-mix(in srgb,var(--hb-ink,#8c8c84) 35%,var(--shell-line,#e5e5e5));border-radius:5px;box-shadow:none;color:var(--shell-text,#27292c);gap:6px}
#calView>.st .hb-project-bar:before{opacity:.12}
#calView>.st .hb-project-bar strong{font-size:12px;font-weight:400}
#calView>.st .hb-project-bar small{display:none}
#calView>.st .hb-project-day:before{top:6px;bottom:6px;background:var(--shell-surface,#fff)}
#calView>.st .hb-project-day:after{top:7px;bottom:7px}
#calView>.st .hb-project-day.has-ink:after{opacity:.26}
#calView>.st .hb-mode-timeline .hb-project-day:before{display:none}
#calView>.st .hb-mode-timeline .hb-project-day:after{top:7px;bottom:7px}
#calView>.st .hb-mode-paint .hb-project-bar,#calView>.st .hb-mode-erase .hb-project-bar{border-color:transparent;box-shadow:none}
#calView>.st .hb-project-bar.is-moving{box-shadow:0 3px 10px rgb(40 40 40 / 8%)}
#calView>.st .hb-project-bar.is-holding{box-shadow:0 0 0 1px var(--shell-muted,#84888d)}
#calView>.st .hb-project-bar.is-new-fill:before{opacity:.25}
#calView>.st .hb-empty-row,#calView>.st .hb-empty-row :is(.hb-project-cells,.hb-create-cell){height:30px;min-height:30px}
#calView>.st .hb-empty-guide{left:7px;top:8px;font-size:11px;line-height:1.4;color:var(--shell-muted,#84888d);background:color-mix(in srgb,var(--shell-surface,#fff) 88%,transparent)}
#calView>.st .hb-hint{font-size:11px;line-height:1.5;color:var(--shell-muted,#84888d);margin-top:8px}
#calView>.st .hb-expanded .hb-project-row,#calView>.st .hb-expanded :is(.hb-project-cells,.hb-project-cell,.hb-create-cell){height:44px;min-height:44px}
#calView>.st .hb-expanded .hb-project-bar{height:30px;top:7px}
#calView>.st .hb-expanded .hb-empty-row,#calView>.st .hb-expanded .hb-empty-row :is(.hb-project-cells,.hb-create-cell){height:32px;min-height:32px}
.hb-agenda-row{display:flex;align-items:center;gap:12px;min-height:39px;width:100%;border:0;border-bottom:1px solid var(--shell-line,#e5e5e5);background:transparent;color:var(--shell-text,#27292c);text-align:left;padding:4px 0}
.hb-agenda-date{width:50px;flex:none;color:var(--shell-muted,#84888d);font-size:11px;white-space:nowrap}
.hb-agenda-title{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:13px}
.hb-agenda-time{font-size:12px;color:var(--shell-muted,#84888d);flex:none;white-space:nowrap}
.hb-quiet-empty{margin:0;padding:8px 0 6px;color:var(--shell-muted,#84888d);font-size:12px}
@media(max-width:700px){#calView>.st .hb-section{padding:20px 0}#calView>.st .hb-section-heading{gap:8px}#calView>.st .hb-timeline-toolbar{gap:4px}#calView>.st .hb-project-tools{gap:0}#calView>.st .hb-project-tools .hb-tool{padding-left:5px;padding-right:5px}#calView>.st .hb-expanded .hb-range-label{display:none}}

/* One gesture: hold an empty date to fill, hold its ink to erase. Only the grip moves a period. */
#calView>.st .hb-overview .hb-timeline-scroll{overflow:hidden}
#calView>.st .hb-expanded .hb-timeline{min-width:calc(var(--hb-days)*28px)}
#calView>.st .hb-mode-direct .hb-project-day{pointer-events:auto;-webkit-touch-callout:none}
#calView>.st .hb-mode-direct .hb-project-day:before{display:none}
#calView>.st .hb-expanded .hb-project-bar{pointer-events:none;padding-right:28px}
.hb-project-handle{position:absolute;right:0;top:0;bottom:0;width:25px;display:grid;place-items:center;padding:0;border:0;border-left:1px solid color-mix(in srgb,var(--hb-ink) 20%,transparent);background:transparent;color:var(--shell-muted,#84888d);pointer-events:auto;touch-action:pan-x pan-y;-webkit-touch-callout:none;cursor:grab}
.hb-project-handle svg{width:12px;height:18px;stroke-width:2.4;stroke-linecap:round}
.hb-project-handle.is-holding,.hb-project-handle.is-hold-ready{background:color-mix(in srgb,var(--hb-ink) 12%,transparent);cursor:grabbing}
#calView>.st .hb-expanded .hb-project-bar.has-external-grip{overflow:visible;padding-right:3px}
.hb-project-bar.has-external-grip strong{max-width:100%}
.hb-project-bar.has-external-grip .hb-project-handle{right:-26px;border-left:0}
.hb-project-bar.has-external-grip.grip-before .hb-project-handle{right:auto;left:-26px}
#calView>.st .hb-project-day.is-holding:after{opacity:.26;animation:hb-period-fill 320ms linear both}
#calView>.st .hb-project-day.is-holding.is-erase-hold:after{animation:hb-project-unfill 320ms linear both}
#calView>.st .hb-project-day.is-preview-paint:after{opacity:.3}
#calView>.st .hb-project-day.is-preview-erase:after{opacity:.035}
.hb-create-cell.is-hold-ready:before{opacity:.26}
.hb-project-draft{margin-top:12px;padding:10px 0 0;border-top:1px solid var(--shell-line,#e5e5e5);animation:hb-draft-in .18s ease-out}
.hb-draft-writing{display:flex;align-items:center;gap:6px}
#calView>.st .hb-project-draft-input{flex:1;min-width:0;min-height:38px;padding:4px 2px;border:0;border-bottom:1px solid var(--shell-line,#e5e5e5);border-radius:0;background:transparent;color:var(--shell-text,#27292c);font:400 16px/1.5 var(--home-font,Pretendard,sans-serif);outline-offset:3px}
.hb-project-draft-input::placeholder{color:var(--shell-muted,#84888d)}
.hb-draft-save{display:grid;place-items:center;flex:none;width:31px;height:31px;border:0;border-radius:50%;background:var(--shell-text,#27292c);color:var(--shell-surface,#fff)}
.hb-draft-save svg{width:18px;height:18px}
.hb-draft-dates{display:flex;align-items:center;gap:8px;margin-top:8px;color:var(--shell-muted,#84888d)}
.hb-draft-dates .hb-field{display:flex;align-items:center;gap:5px;min-width:0;flex:1;margin:0}
.hb-draft-dates .hb-field span{margin:0;white-space:nowrap;font-size:10px}
#calView>.st .hb-draft-dates .hb-field input{min-width:0;width:100%;min-height:32px;padding:4px 0;background:transparent;border:0;font-size:12px;color:var(--shell-text,#27292c)}
.hb-draft-error{margin:4px 0 0;font-size:11px;color:var(--accent,#de7786)}
.hb-draft-error:empty{display:none}
@keyframes hb-project-unfill{from{transform:scaleX(1)}to{transform:scaleX(0)}}
@keyframes hb-draft-in{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){.hb-project-draft{animation:none}#calView>.st .hb-project-day.is-holding:after{animation:none}.hb-project-day.is-holding.is-erase-hold:after{transform:none}}

/* A project is a dated plan. The pale period stays visible; elapsed days fill by the calendar. */
#calView>.st .hb-project-bar{background:color-mix(in srgb,var(--hb-ink) 12%,var(--shell-surface,#fff));border-color:color-mix(in srgb,var(--hb-ink) 28%,var(--shell-line,#e5e5e5));border-radius:8px;cursor:pointer}
#calView>.st .hb-project-bar:before{inset:0 auto 0 0;width:var(--hb-elapsed,0%);background:var(--hb-ink);opacity:.32;transform:none;pointer-events:none}
#calView>.st .hb-project-bar.is-new-fill:before{animation:none}
#calView>.st .hb-project-bar strong{position:relative;z-index:1;font-weight:550}
#calView>.st .hb-overview .hb-timeline-scroll{overflow:hidden}
#calView>.st .hb-projects .hb-section-heading{margin-bottom:12px}

/* The quick entry stays an inline pill, with optional period and classification below it. */
body .home-board-overlay{align-items:flex-end;justify-content:center;padding:12px 12px calc(78px + env(safe-area-inset-bottom));background:transparent;backdrop-filter:none}
body .home-board-overlay .hb-project-pill{width:min(550px,100%);max-width:100%;max-height:calc(100dvh - 100px);overflow:auto;padding:7px;border:1px solid color-mix(in srgb,var(--accent,#de7786) 13%,#e7e7e7);border-radius:999px;background:var(--shell-surface,#fff);box-shadow:0 7px 29px rgba(36,38,40,.17);color:var(--shell-text,#27292c)}
body .home-board-overlay .hb-project-pill:has(.hb-pill-details:not([hidden])){border-radius:24px}
body .home-board-overlay .hb-project-pill:has(.hb-extra-settings:not([hidden])){border-radius:24px}
body .home-board-overlay .hb-project-pill:has(.hb-icon-chooser:not([hidden])){border-radius:24px}
body .home-board-overlay .hb-project-pill form{display:block;margin:0}
.hb-visually-hidden{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.hb-pill-row{display:flex;align-items:center;gap:6px;min-width:0;width:100%}
.hb-pill-kind{display:grid;place-items:center;flex:0 0 auto;min-width:47px;height:38px;padding:0 8px;border-radius:999px;background:color-mix(in srgb,var(--accent,#de7786) 35%,#fff);color:var(--shell-text,#27292c);font-size:12px;font-weight:600;white-space:nowrap;box-sizing:border-box}
body .home-board-overlay .hb-pill-icon-trigger{width:32px;min-width:32px;flex-basis:32px;height:32px;grid-template-rows:1fr;gap:0;padding:0;border:0;cursor:pointer}
.hb-pill-icon-trigger span{display:grid;place-items:center;line-height:20px}
.hb-pill-icon-trigger .hb-project-icon{width:21px;height:21px}
.hb-pill-icon-trigger[aria-expanded="true"]{box-shadow:0 0 0 2px color-mix(in srgb,var(--accent,#de7786) 45%,transparent)}
.hb-icon-chooser{display:block;margin:7px 4px 2px;padding:8px 0 2px;border-top:1px solid var(--shell-line,#e5e5e5)}
.hb-icon-chooser[hidden]{display:none!important}
.hb-icon-grid{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:4px;max-height:224px;overflow-y:auto;overscroll-behavior:contain}
body .home-board-overlay .hb-icon-option{display:grid;place-items:center;min-width:0;height:38px;padding:3px;border:0;border-radius:9px;background:transparent;color:var(--shell-muted,#84888d);cursor:pointer}
.hb-icon-option .hb-project-icon{width:23px;height:23px}
body .home-board-overlay .hb-icon-option:hover,body .home-board-overlay .hb-icon-option:focus-visible{background:var(--shell-soft,#f8f8f6)}
body .home-board-overlay .hb-icon-option[aria-pressed="true"]{background:color-mix(in srgb,var(--accent,#de7786) 20%,var(--shell-surface,#fff));color:var(--accent,#de7786)}
.hb-project-bar-icon{display:grid;place-items:center;flex:none;color:inherit}
.hb-project-bar-icon .hb-project-icon{width:14px;height:14px}
body .home-board-overlay .hb-pill-title{flex:1 1 80px;min-width:0;width:0;height:40px;padding:0 4px;border:0;border-radius:0;outline:none!important;background:transparent;color:var(--shell-text,#27292c);font-size:16px;line-height:40px;box-shadow:none}
.hb-pill-title::placeholder{color:var(--shell-muted,#84888d)}
body .home-board-overlay .hb-pill-range{flex:0 0 auto;max-width:92px;min-width:0;min-height:32px;padding:0 5px;border:0;border-left:1px solid var(--shell-line,#e5e5e5);border-radius:0;background:transparent;color:var(--shell-muted,#84888d);font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-variant-numeric:tabular-nums}
body .home-board-overlay .hb-pill-delete{display:grid;place-items:center;flex:0 0 30px;width:30px;height:32px;padding:0;border:0;border-radius:50%;background:transparent;color:var(--shell-text,#27292c)}
.hb-pill-delete svg{width:16px;height:16px}
body .home-board-overlay .hb-pill-more{display:grid;place-items:center;flex:0 0 32px;width:32px;height:32px;padding:0;border:0;border-radius:50%;background:transparent;color:var(--shell-text,#27292c);cursor:pointer}
.hb-pill-more svg{width:16px;height:16px;fill:currentColor;stroke:none}
body .home-board-overlay .hb-pill-more[aria-expanded="true"]{background:var(--shell-soft,#f4f4f3);color:var(--accent,#de7786)}
body .home-board-overlay .hb-pill-save{display:grid;place-items:center;flex:0 0 38px;width:38px;height:38px;margin-left:0;padding:0;border:0;border-radius:50%;background:var(--shell-text,#27292c);color:var(--shell-surface,#fff)}
.hb-pill-save svg{width:20px;height:20px;stroke-width:2.2}
.hb-pill-details{display:grid;gap:8px;padding:8px 8px 6px;border-top:1px solid var(--shell-line,#e5e5e5);margin-top:6px}
.hb-pill-details[hidden]{display:none!important}
.hb-project-pill .hb-field{gap:4px}
.hb-project-pill .hb-field>span{font-size:11px;color:var(--shell-muted,#84888d)}
body .home-board-overlay .hb-project-pill :is(.hb-pill-details,.hb-extra-settings) :is(input,select,textarea){border-radius:12px;background:var(--shell-soft,#f8f8f6);color:var(--shell-text,#27292c)}
.hb-project-pill .hb-modal-error:not(:empty){padding:3px 9px 7px}
@media(max-width:390px){.hb-pill-row{gap:3px}.hb-pill-kind{min-width:42px;padding:0 6px}.hb-pill-range{max-width:78px!important;font-size:10px!important}.hb-pill-delete{flex-basis:27px!important;width:27px!important}.hb-pill-save{flex-basis:35px!important;width:35px!important;height:35px!important}}

/* Several plans can share a line when their dates do not overlap. */
#calView>.st .hb-timeline.has-today:after{content:"";position:absolute;top:24px;bottom:0;left:var(--hb-today-left);border-left:1px dotted color-mix(in srgb,var(--accent,#de7786) 74%,transparent);pointer-events:none;z-index:3}
#calView>.st .hb-project-bar.is-new-fill:after{content:"";position:absolute;inset:0;background:var(--hb-ink);opacity:0;transform-origin:left center;pointer-events:none;animation:hb-plan-sweep 320ms linear both;animation-delay:var(--hb-motion-delay,0ms)}
@keyframes hb-plan-sweep{0%{transform:scaleX(0);opacity:.22}80%{transform:scaleX(1);opacity:.22}100%{transform:scaleX(1);opacity:0}}

/* The period editor opens inside the same writing pill. Its columns snap like a time wheel. */
.hb-project-pill .hb-date-tabs{display:flex;gap:5px;min-width:0}
body .home-board-overlay .hb-date-tab{display:flex;align-items:center;justify-content:center;gap:5px;flex:1;min-width:0;height:34px;padding:0 8px;border:0;border-radius:999px;background:var(--shell-soft,#f4f4f3);color:var(--shell-muted,#84888d);font-size:11px}
body .home-board-overlay .hb-date-tab b{font-weight:650;font-variant-numeric:tabular-nums}
body .home-board-overlay .hb-date-tab.is-active{background:color-mix(in srgb,var(--accent,#de7786) 20%,var(--shell-surface,#fff));color:var(--shell-text,#27292c)}
body .home-board-overlay .hb-date-tab:disabled{opacity:.42;cursor:default}
.hb-project-pill .hb-date-wheel{--hb-wheel-step:40px;position:relative;display:grid;grid-template-columns:1.3fr 1fr 1fr;height:calc(var(--hb-wheel-step)*3);min-width:0;overflow:hidden;isolation:isolate}
.hb-project-pill .hb-date-wheel:before{content:"";position:absolute;top:var(--hb-wheel-step);left:0;right:0;height:var(--hb-wheel-step);border-radius:999px;background:var(--shell-soft,#f4f4f3);z-index:0;pointer-events:none}
.hb-project-pill .hb-wheel-column{position:relative;z-index:1;height:calc(var(--hb-wheel-step)*3);min-width:0;box-sizing:border-box;overflow-y:auto;overflow-x:hidden;padding:var(--hb-wheel-step) 0;scroll-snap-type:y mandatory;scrollbar-width:none;overscroll-behavior:contain;touch-action:pan-y;-webkit-overflow-scrolling:touch;mask-image:linear-gradient(to bottom,transparent,#000 25%,#000 75%,transparent)}
.hb-project-pill .hb-wheel-column::-webkit-scrollbar{display:none}
body .home-board-overlay .hb-wheel-option{display:flex;align-items:center;justify-content:center;width:100%;height:var(--hb-wheel-step);min-height:var(--hb-wheel-step);padding:0 2px;border:0;background:transparent;color:var(--shell-muted,#84888d);font-size:17px;font-weight:400;font-variant-numeric:tabular-nums;scroll-snap-align:center;white-space:nowrap}
body .home-board-overlay .hb-wheel-option.is-selected{color:var(--shell-text,#27292c);font-size:19px;font-weight:600}
.hb-project-pill .hb-date-hint{margin:0 0 2px;text-align:center;color:var(--shell-muted,#84888d);font-size:10px;line-height:1.5}
.hb-project-pill .hb-extra-settings{margin-top:6px;border-top:1px solid var(--shell-line,#e5e5e5);padding:0 8px 6px}
.hb-project-pill .hb-extra-settings[hidden]{display:none!important}
.hb-project-pill .hb-pill-more:focus-visible{outline:2px solid var(--accent,#de7786);outline-offset:1px}
.hb-project-pill .hb-extra-fields{display:grid;gap:10px;padding:9px 2px 2px}
@media(prefers-reduced-motion:reduce){#calView>.st .hb-project-bar.is-new-fill:after{animation:none}}

/* Project editing stays beside the touched date, and the selected bar keeps its resize circles. */
body .home-board-overlay.is-anchored{display:block;padding:0;pointer-events:none;overflow:visible;background:transparent;backdrop-filter:none}
body .home-board-overlay.is-anchored .hb-project-pill{position:fixed;left:0;top:0;margin:0;pointer-events:auto;max-width:calc(100vw - 16px);transform:none}
#calView>.st .hb-project-bar.is-selected{z-index:8;overflow:visible;box-shadow:0 0 0 1px var(--hb-ink),0 5px 13px rgb(38 38 38 / 10%)}
#calView>.st .hb-project-bar{touch-action:pan-x pan-y}
#calView>.st .hb-project-bar.is-selected{touch-action:pan-y}
#calView>.st .hb-project-bar.is-moving{z-index:9;will-change:transform}
#calView>.st .hb-project-bar.is-moving.is-settling{transition:transform .16s cubic-bezier(.2,.7,.25,1),box-shadow .16s}
.hb-project-resize-handle{position:absolute;top:50%;z-index:9;width:28px;height:28px;box-sizing:border-box;border:0;border-radius:50%;background:transparent;transform:translateY(-50%);touch-action:none;cursor:ew-resize}
.hb-project-resize-handle:after{content:"";position:absolute;top:50%;left:50%;width:16px;height:16px;box-sizing:border-box;border:3px solid var(--hb-ink,var(--accent,#de7786));border-radius:50%;background:var(--shell-surface,#fff);box-shadow:0 1px 6px rgb(37 37 37 / 16%);transform:translate(-50%,-50%)}
.hb-project-resize-handle.is-start{left:-14px}.hb-project-resize-handle.is-end{right:-14px}
.hb-project-resize-handle.is-linked{opacity:.48;cursor:default}
#calView>.st .hb-project-bar.is-resizing{transition:none;z-index:9}

/* Keep a legible day width and let the continuous date axis move under one finger.
   The header and all project lanes share this single scroll surface. */
#calView>.st .hb-overview{--hb-day:18px}
#calView>.st .hb-overview .hb-section-heading{margin-bottom:6px}
#calView>.st .hb-overview .hb-timeline-scroll{overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;touch-action:pan-x pan-y;scroll-behavior:auto;scroll-snap-type:none}
#calView>.st .hb-overview .hb-timeline{width:calc(var(--hb-days)*var(--hb-day));min-width:100%}
#calView>.st .hb-overview :is(.hb-date-cells,.hb-project-cells){grid-template-columns:repeat(var(--hb-days),minmax(var(--hb-day),1fr))}
#calView>.st .hb-overview .hb-date{height:16px;justify-content:center;align-items:center;gap:0}
#calView>.st .hb-overview .hb-date.is-month-start{flex-direction:row}
#calView>.st .hb-overview .hb-date.is-month-start{border-left:1px solid color-mix(in srgb,var(--accent,#de7786) 45%,var(--shell-line,#e5e5e5));background:color-mix(in srgb,var(--accent,#de7786) 5%,transparent)!important}
#calView>.st .hb-overview .hb-date.is-month-start small{position:absolute;top:3px;left:2px;z-index:3;white-space:nowrap;padding:0 2px;background:var(--shell-surface,#fff);font-size:8px;line-height:1.2;color:var(--accent,#de7786)}
#calView>.st .hb-overview .hb-date.is-month-start b{display:none}
#calView>.st .hb-overview .hb-date.is-year-start small{font-weight:700;color:var(--shell-text,#27292c)}
#calView>.st .hb-overview :is(.hb-project-row,.hb-project-cells,.hb-create-cell){height:38px;min-height:38px}
#calView>.st .hb-overview .hb-project-bar{top:6px;height:26px}
#calView>.st .hb-overview .hb-empty-row,#calView>.st .hb-overview .hb-empty-row :is(.hb-project-cells,.hb-create-cell){height:38px;min-height:38px}
#calView>.st .hb-overview .hb-create-cell{touch-action:pan-x pan-y}
#calView>.st .hb-project-visible-month,#calView>.st .hb-routine-range{flex:none;color:var(--shell-muted,#84888d);font-size:10px;white-space:nowrap;font-variant-numeric:tabular-nums}
#calView>.st .hb-project-today{height:28px;min-width:49px;padding:0 9px;border:0;border-radius:999px;background:var(--shell-soft,#f3f3f1);color:var(--shell-text,#27292c);font-size:11px;font-weight:550;white-space:nowrap}

/* The existing lane itself is the drawing surface; a fully covered date window needs another row. */
#calView>.st .hb-project-row:has(.hb-project-bar) .hb-create-cell:not(:disabled){cursor:crosshair}
#calView>.st .hb-project-row:has(.hb-project-bar) .hb-create-cell:disabled{pointer-events:none}
#calView>.st .hb-empty-row,#calView>.st .hb-empty-row :is(.hb-project-cells,.hb-create-cell){height:38px;min-height:38px}
#calView>.st .hb-empty-row .hb-empty-guide{top:12px}
.hb-project-row .hb-create-cell.is-preview-create:before{opacity:0!important;animation:none!important}
.hb-project-row .hb-create-cell.is-draft-selected{border-right-color:transparent}
.hb-project-row .hb-create-cell.is-draft-selected:before{top:6px;bottom:6px;left:-1px;right:-1px;background:var(--hb-period-ink);opacity:.24;animation:none}
.hb-project-row .hb-create-cell.is-draft-selected.draft-start:before{left:2px;border-radius:7px 0 0 7px}
.hb-project-row .hb-create-cell.is-draft-selected.draft-end:before{right:2px;border-radius:0 7px 7px 0}
.hb-project-row .hb-create-cell.is-draft-selected.draft-start.draft-end:before{border-radius:7px}
.hb-project-preview{position:absolute;left:calc(var(--hb-preview-start)*(100%/var(--hb-days)) + 2px);top:6px;width:max(4px,calc(var(--hb-preview-length)*(100%/var(--hb-days)) - 4px));height:26px;border-radius:7px;background:color-mix(in srgb,var(--hb-period-ink) 32%,transparent);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--hb-period-ink) 50%,transparent);pointer-events:none;z-index:6;transition:left .09s linear,width .09s linear;animation:hb-preview-stroke .28s ease-out both}
.hb-project-preview.is-reverse{animation-name:hb-preview-stroke-reverse}
/* An overlapping draft remains legible above the bar it was drawn across. */
#calView>.st .hb-project-row:has(.hb-project-bar.is-hold-ready) .hb-project-bar.is-selected{z-index:5}
#calView>.st .hb-project-row:has(.hb-create-cell.is-draft-selected) .hb-project-cells{position:relative;z-index:7;pointer-events:none}
#calView>.st .hb-project-bar.is-hold-ready{box-shadow:0 0 0 2px color-mix(in srgb,var(--hb-period-ink) 65%,transparent)}
#calView>.st .hb-project-bar{-webkit-touch-callout:none}
@keyframes hb-preview-stroke{from{opacity:.45;clip-path:inset(0 92% 0 0)}to{opacity:1;clip-path:inset(0)}}
@keyframes hb-preview-stroke-reverse{from{opacity:.45;clip-path:inset(0 0 0 92%)}to{opacity:1;clip-path:inset(0)}}
@media(prefers-reduced-motion:reduce){.hb-project-preview{animation:none;transition:none}}

/* Project and routine view controls share one size and selected-state treatment. */
#calView>.st .hb-view-button{display:inline-flex;align-items:center;justify-content:center;flex:none;width:36px;height:32px;padding:4px;border:0;border-radius:999px;background:transparent;color:var(--shell-muted,#84888d)}
#calView>.st .hb-view-button svg{width:24px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
#calView>.st .hb-view-button[aria-pressed="true"],#calView>.st .hb-view-button:hover{background:color-mix(in srgb,var(--accent,#de7786) 12%,var(--shell-surface,#fff));color:var(--shell-text,#27292c)}
#calView>.st .hb-view-button:focus-visible{outline:2px solid var(--accent,#de7786);outline-offset:2px}
#calView>.st .hb-projects.is-overview-fit .hb-date b{font-size:9px;line-height:1}
#calView>.st .hb-projects.is-compact .hb-date b{display:none}
#calView>.st .hb-projects.is-compact .hb-date.is-month-start small{top:3px;left:3px;font-size:9px}
#calView>.st .hb-projects.is-year-overview .hb-date.is-after-year-start small{display:none}
/* Once day numbers disappear, keep only month/year boundaries in the lanes.
   The transparent date buttons remain in place for hold-to-create at every scale. */
#calView>.st .hb-projects.is-compact .hb-create-cell{border-right:0;border-left:0;background:transparent}
#calView>.st .hb-projects.is-compact .hb-create-cell[data-hb-date$="-01"]{box-shadow:inset 1px 0 color-mix(in srgb,var(--accent,#de7786) 45%,var(--shell-line,#e5e5e5))}
#calView>.st .hb-projects.is-compact .hb-create-cell[data-hb-date$="-01-01"]{box-shadow:inset 1px 0 color-mix(in srgb,var(--accent,#de7786) 72%,var(--shell-line,#e5e5e5))}
#calView>.st .hb-projects.is-compact .hb-timeline.has-today:after{display:none}
#calView>.st .hb-projects.is-compact .hb-project-resize-handle:after{width:12px;height:12px;border-width:2px}
#calView>.st .hb-projects.is-compact .hb-empty-guide{display:none}
#calView>.st .hb-projects.is-compact .hb-project-bar{left:calc(var(--hb-bar-start)*(100%/var(--hb-days)));width:calc(var(--hb-bar-length)*(100%/var(--hb-days)));min-width:2px;padding:0 3px;border-radius:3px;touch-action:pan-x pan-y}
#calView>.st .hb-projects.is-compact .hb-project-bar.is-selected{touch-action:pan-y}
#calView>.st .hb-projects.is-compact .hb-project-bar-icon{display:none}
#calView>.st .hb-projects.is-compact .hb-project-bar strong{font-size:10px}

/* Projects use the same planned stroke selected for the timetable. The
   elapsed portion stays one continuous highlighter stroke at its shared density. */
html body[data-plan] #calView>.st .hb-project-bar{background:none;border-color:transparent;border-style:solid}
html body[data-plan="outline"] #calView>.st .hb-project-bar{background:color-mix(in srgb,var(--hb-ink) 5%,transparent);border-color:color-mix(in srgb,var(--hb-ink) 70%,transparent)}
html body[data-plan="clear"] #calView>.st .hb-project-bar{border-color:color-mix(in srgb,var(--hb-ink) 70%,transparent)}
html body[data-plan="dash"] #calView>.st .hb-project-bar{border-style:dashed;border-color:color-mix(in srgb,var(--hb-ink) 75%,transparent)}
html body[data-plan="hatch"] #calView>.st .hb-project-bar{background:repeating-linear-gradient(135deg,color-mix(in srgb,var(--hb-ink) 40%,transparent) 0 2px,transparent 2px 6px)}
html body[data-plan="pale"] #calView>.st .hb-project-bar{background:color-mix(in srgb,var(--hb-ink) 10%,transparent)}
html body[data-plan="under"] #calView>.st .hb-project-bar{background:linear-gradient(transparent calc(100% - 2px),color-mix(in srgb,var(--hb-ink) 45%,transparent) calc(100% - 2px));border-radius:0}
html body[data-plan] #calView>.st .hb-project-bar:before{background:color-mix(in srgb,var(--hb-ink) var(--pen-a,26%),transparent);opacity:1}

/* The icon column stays beside the shared date surface as that surface pans. */
.hb-project-chart{display:grid;grid-template-columns:32px minmax(0,1fr);align-items:start;min-width:0}
.hb-project-gutter{min-width:0;color:var(--shell-muted,#84888d)}
.hb-project-gutter-head{height:16px}
.hb-project-gutter-row{height:38px;box-sizing:border-box;border-top:1px solid var(--shell-line,#e5e5e5);border-bottom:1px solid var(--shell-line,#e5e5e5)}
.hb-project-row-icon{display:grid;place-items:center;width:100%;height:100%;padding:0;border:0;background:transparent;color:inherit;touch-action:pan-y;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
.hb-project-row-icon .hb-project-icon{width:20px;height:20px}
.hb-project-row-icon:focus-visible{outline:2px solid var(--accent,#de7786);outline-offset:-3px;border-radius:6px}
#calView>.st .hb-overview .hb-project-row{box-sizing:border-box}
/* Short spaces between separate home cards replace the single large paper.
   The date axis, record rows and controls keep their existing dimensions. */
html body #calView>.st{padding:0;background:transparent;border:0;border-radius:0;box-shadow:none}
html body #calView>.st .home-board{display:flex;flex-direction:column;gap:12px}
html body #calView>.st .home-board>.hb-section:is(.hb-projects,.hb-routines,.hb-upcoming){box-sizing:border-box;margin:0;padding:16px;border:1px solid color-mix(in srgb,var(--shell-line,#e5e5e5) 80%,transparent);border-radius:16px;background:var(--shell-surface,#fff)}
html body #calView>.st .home-board>:is(.hb-routines,.hb-upcoming)>.hb-section-heading{margin-bottom:7px}

/* 프로젝트 알약: 형광펜 색 점 · 고르는 줄 (2도·다채롭게일 때) */
.hb-pill-pen{flex:0 0 auto;display:grid;place-items:center;width:30px;height:38px;padding:0;border:0;background:none;cursor:pointer}
.hb-pill-pen i{display:block;width:15px;height:15px;border-radius:50%;box-shadow:0 0 0 2px #fff,0 0 0 3px rgba(0,0,0,.12)}
.hb-pen-chooser{display:flex;flex-wrap:wrap;gap:8px;margin:7px 4px 2px;padding:10px 2px 4px;border-top:1px solid var(--shell-line,#e5e5e5)}
.hb-pen-chooser[hidden]{display:none}
.hb-pen-option{display:grid;place-items:center;width:32px;height:32px;padding:0;border:0;border-radius:50%;background:none;cursor:pointer}
.hb-pen-option i{display:block;width:22px;height:22px;border-radius:50%;background:var(--pen-dot)}
.hb-pen-option[aria-pressed="true"] i{box-shadow:0 0 0 2px #fff,0 0 0 4px var(--pen-dot)}
/* 10/14 프로젝트 6줄 넘으면 펼치기 */
.hb-project-fold-wrap{display:flex;justify-content:center;margin:4px 0 0}
.hb-project-fold-wrap .hb-project-fold{display:block;min-height:32px;margin:0 auto;padding:4px 12px;border:0;border-radius:999px;background:transparent;color:var(--shell-muted,#84888d);font-size:11px;cursor:pointer}
/* 10/16 '펼치기 · N개 더'를 눈에 띄는 단추로 (사용자 "펼치기도 정확하게 안내해 줘") — 테두리 알약 + 아래 화살표, 펼친 뒤엔 '접기' + 위 화살표 */
#calView>.st :is(.htb-week .htb-row-fold,.hb-project-fold-wrap .hb-project-fold){display:flex;width:fit-content;align-items:center;gap:6px;min-height:32px;margin:8px auto 2px;padding:5px 14px;border:1px solid var(--shell-line,#e2e4e7);border-radius:999px;background:var(--shell-surface,#fff);color:var(--shell-text,#3a3f47);font-size:12px;font-weight:600;cursor:pointer}
#calView>.st :is(.htb-week .htb-row-fold,.hb-project-fold-wrap .hb-project-fold)::after{content:"";width:6px;height:6px;margin-top:-3px;border-right:1.6px solid currentColor;border-bottom:1.6px solid currentColor;transform:rotate(45deg)}
#calView>.st :is(.htb-week .htb-row-fold,.hb-project-fold-wrap .hb-project-fold)[aria-expanded="true"]::after{margin-top:3px;transform:rotate(-135deg)}

/* 10/17 시즌이 비었을 때 안내 글: 날짜 축 안에서 같이 움직이지 않게 보이는 왼쪽에 고정 (줄 맨 앞 폭 0 칸이 sticky, 글은 그 안에 absolute) */
.hb-empty-row>.hb-empty-pin{position:sticky;left:0;order:-1;flex:none;width:0;align-self:stretch;z-index:3;pointer-events:none}
/* 10/17 다가오는 일정: 월간처럼 앞에 색 띠 · 제목 → 날짜 → 시간 */
.hb-agenda-bar{flex:none;width:4px;height:16px;border-radius:2px}
.hb-agenda-row .hb-agenda-date{width:auto;min-width:50px;text-align:right}
.hb-agenda-row .hb-agenda-time{min-width:38px;text-align:right}
