.home-pane .pane-top{display:flex;align-items:center}
.home-timeline-link,.home-link,.home-icon,.home-section>header,.home-section>header>div,.home-activity,.home-act-main,.home-act-buttons,.home-feed-row,.home-feed-main{display:flex;align-items:center}
.home-timeline-link{margin-left:auto;gap:7px;padding:0 11px;min-height:44px;color:var(--accent);font-size:.92rem;font-weight:550}
.home-timeline-link .icon,.home-link .icon,.home-icon .icon{width:18px;height:18px;flex:none}

.home-content{
  --home-surface:color-mix(in srgb,var(--surface) 83%,var(--line));
  --home-inset:clamp(14px,3.1cqi,22px);
  --home-radius:clamp(17px,3.6cqi,21px);
  max-width:900px;margin:0 auto;display:grid;
  gap:clamp(20px,4.8cqi,28px);padding:8px clamp(12px,2.8cqi,26px) 30px;
}
.home-section,.home-content .reflection-widget{
  background:var(--home-surface);border:0;border-radius:var(--home-radius);
  box-shadow:0 2px 8px rgb(0 0 0 / .045);
}
.home-section{padding:8px var(--home-inset) 12px}
.home-section>header .home-icon:last-child{margin-right:-6px}
.home-clock{background:linear-gradient(112deg,color-mix(in srgb,var(--personal) 9%,var(--home-surface)),var(--home-surface) 75%)}

.home-section{min-width:0}
.home-section>header{justify-content:space-between;gap:6px;min-height:44px;margin-bottom:6px}
.home-section>header h2{font-size:1.18rem;font-weight:650;letter-spacing:-.035em;margin:0}
.home-section>header>div{gap:4px}
.home-link,.home-icon{justify-content:center;color:var(--accent);gap:4px;min-height:44px}
.home-link{padding:0 7px;font-size:.9rem;font-weight:520}.home-icon{width:44px;padding:0;flex:0 0 44px}
.home-clock-rows{padding:0}.home-clock>header{margin-bottom:0}
.home-clock-rows .tr-record:last-child{border:0}.home-clock-rows .tr-row{min-height:75px}
.home-clock-rows .lib-open{background:transparent}.home-clock-rows .tr-digits strong{font-size:clamp(1.55rem,5.8cqi,2.35rem)}
.home-clock-rows .tr-play:not(.is-running){color:var(--ink);background:var(--bg)}
.home-activity,.home-feed-row{min-height:50px;gap:4px}.home-activity+.home-activity,.home-feed-row+.home-feed-row{border-top:1px solid color-mix(in srgb,var(--line) 60%,transparent)}
.home-act-main,.home-feed-main{flex:1 1 0;min-width:0;gap:11px;text-align:left;min-height:48px;padding:5px 1px}
.home-act-main>span:last-child,.home-feed-main>span:nth-child(2){display:grid;min-width:0}
.home-act-main strong,.home-feed-main strong{font-size:1rem;font-weight:560;line-height:1.28;overflow-wrap:anywhere}
.home-act-main small,.home-feed-main small{font-size:.82rem;color:var(--muted);line-height:1.35;margin-top:2px}
.home-act-main .lib-mark{width:34px;height:34px;flex:0 0 34px;display:grid;place-items:center;border-radius:10px;color:var(--lib-color,var(--area,var(--accent)));background:color-mix(in srgb,var(--lib-color,var(--area,var(--accent))) 12%,transparent)}
.home-act-main .lib-mark .icon{width:18px;height:18px}
.home-act-buttons .home-icon{color:var(--muted)}.home-act-buttons .home-icon:last-child{color:var(--area,var(--accent))}
.home-find{display:block;width:100%;margin-bottom:5px;font-size:1rem;min-height:44px}
.home-feed-group h3{margin:5px 0 1px;font-size:.82rem;color:var(--muted);font-weight:570}.home-feed-group+.home-feed-group{margin-top:17px}
.feed-mark{display:grid;place-items:center;color:var(--area,var(--accent));width:24px;flex:0 0 24px}.feed-mark svg{width:16px;height:16px}
.home-feed-main time{font-size:.82rem;font-variant-numeric:tabular-nums;white-space:nowrap;color:var(--muted);margin-left:auto}
.home-empty{color:var(--muted);font-size:.94rem;margin:.3rem 0}.home-empty strong{display:block;color:var(--ink)}.home-empty-action{width:100%;min-height:56px;background:var(--surface);color:var(--accent)}
.home-content .reflection-widget{padding:10px var(--home-inset) 12px}.home-content .mood[data-latest]{background:color-mix(in srgb,var(--raised) 76%,var(--line))}
.home-icon:focus-visible,.home-feed-main:focus-visible,.home-act-main:focus-visible,.home-link:focus-visible{outline:2px solid var(--accent);outline-offset:1px}
@container pane (max-width:400px){.home-clock-rows{padding:0}.home-clock-rows .tr-row{gap:2px}.home-act-buttons{gap:0}}
.home-feed-main .feed-note{display:block;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;color:var(--muted);max-width:100%}

.replan-dialog{width:min(440px,calc(100vw - 24px))}
.replan-dialog .lib-body{display:grid;gap:14px}
.rp-modes{display:flex;padding:4px;gap:4px;background:var(--surface);border-radius:14px}
.rp-modes button{flex:1;display:flex;justify-content:center;align-items:center;gap:7px;min-height:44px;color:var(--muted);border-radius:10px}
.rp-modes [aria-pressed=true]{color:var(--accent);background:var(--accent-soft)}
.rp-modes .icon,.replan-dialog footer .icon{width:17px;height:17px}
.replan-dialog .rp-budget{display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:12px;color:var(--ink)}
.rp-budget span:last-child{display:flex;align-items:center;gap:6px;color:var(--muted);font-variant-numeric:tabular-nums}
.replan-dialog .rp-budget input{width:5.4rem;min-height:44px;text-align:center;background:var(--surface);border-radius:10px;color:var(--ink)}
.rp-summary,.rp-hint{margin:0;font-size:.95rem;line-height:1.45;overflow-wrap:anywhere}
.rp-summary{color:var(--ink);font-weight:550}.rp-hint{margin-top:10px;color:var(--muted)}
.rp-results>div{margin-top:12px}
.replan-dialog label.rp-choice,.rp-move{display:flex;flex-direction:row;align-items:center;gap:10px;min-height:58px;padding:8px 4px;border-top:1px solid var(--line)}
.replan-dialog .rp-choice{cursor:pointer}
.replan-dialog input[type=radio]{width:18px;height:18px;min-height:0;flex:0 0 18px;accent-color:var(--accent)}
.rp-choice span,.rp-move span{min-width:0;display:grid;gap:3px}
.rp-choice strong,.rp-move strong{color:var(--ink);font-weight:600;overflow-wrap:anywhere}
.rp-choice b,.rp-times{margin-left:auto;flex:none;font-variant-numeric:tabular-nums}
.rp-choice b,.rp-move b{font-size:.88rem;font-weight:550;color:var(--accent)}
.rp-choice small,.rp-move small,.rp-times del{color:var(--muted);font-size:.85rem}
.rp-times{text-align:right}
.replan-dialog footer{flex-wrap:wrap;gap:8px}
.replan-dialog footer button{min-height:44px}.replan-dialog button[hidden]{display:none}
.replan-dialog .form-error:empty{display:none}
@media(hover:hover) and (pointer:fine){.rp-choice:hover strong{color:var(--accent)}}

.replan-dialog header .rp-rules-link{width:auto;border-radius:8px;background:transparent;color:var(--accent);font-size:.88rem;margin-inline-start:auto;min-height:44px;padding-inline:8px;white-space:nowrap}
.rp-reset{justify-self:start;min-height:44px;color:var(--accent)}
.rp-record{border-top:1px solid var(--line);position:relative}
.rp-item,.rp-open,.rp-row-editor label,.rp-row-tools,.st-item,.st-date,.st-choices{display:flex;align-items:center}
.rp-open{gap:10px;width:100%;min-width:0;text-align:start;min-height:62px;padding:6px 1px}
.rp-open>span:first-child{display:grid;gap:4px;min-width:0}
.rp-open strong{font-size:1rem;font-weight:600;overflow-wrap:anywhere}
.rp-open small,.rp-open>svg,.rp-grip,.st-summary p{color:var(--muted)}
.rp-open .rp-times{display:grid;gap:3px}
.rp-open .rp-times b{font-size:.91rem;font-weight:550;color:var(--accent)}
.rp-open>svg,.rp-grip svg,.st-item svg{width:16px;height:16px;flex:none}
.rp-grip{display:grid;place-items:center;flex:0 0 29px;height:44px}
[data-rp-grip]{touch-action:none;cursor:grab;user-select:none}
.rp-lift{background:var(--surface);border-radius:10px;box-shadow:0 3px 10px #0002}
.rp-insert-before{box-shadow:inset 0 2px var(--accent)}.rp-insert-after{box-shadow:inset 0 -2px var(--accent)}
.rp-row-editor{margin:0 0 8px 29px;padding:10px 12px;border-radius:12px;background:var(--surface)}
.replan-dialog .rp-row-editor label{flex-direction:row;justify-content:space-between;gap:8px}
.rp-row-editor input[type=time]{width:auto;max-width:65%;min-height:40px;font-variant-numeric:tabular-nums}
.rp-row-tools,.st-choices{flex-wrap:wrap;gap:2px 12px}.rp-row-tools button,.st-summary button,.st-item{min-height:44px}
.st-item{width:100%;text-align:start;gap:8px;border-bottom:1px solid var(--line)}.st-item span{margin-inline-start:auto;color:var(--accent)}
.st-date{justify-content:space-between;gap:10px;padding:6px 0;border-top:1px solid var(--line);font-size:.88rem}
.st-summary{line-height:1.45}.st-summary p{margin:5px 0}
@media(hover:hover) and (pointer:fine){.rp-open:hover strong,.st-item:hover strong{color:var(--accent)}}
.home-goal+.home-goal{border-top:1px solid var(--line)}
.home-goal .tr-record{border-bottom:0}
.home-goal-foot{border-top:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:.5rem;min-height:45px}
.home-goal-foot>div{display:flex;align-items:baseline;gap:.55rem;flex-wrap:wrap}
.home-goal-foot strong,.home-goal-foot small,.rp-goal-block b{font-size:.88rem;font-variant-numeric:tabular-nums}
.home-goal-foot small,.rp-goal-block b{color:var(--muted)}
.rp-goal-name{margin:0;font-size:1.04rem}
.rp-goal-block,.rp-goal-block>span{display:flex;align-items:center;gap:.6rem}
.rp-goal-block{min-height:48px;justify-content:space-between;padding:0 .25rem;border-bottom:1px solid var(--line)}
.rp-goal-block .icon{color:var(--accent);width:18px;height:18px}
.rp-budget input[name=goalUntil]{width:auto}
.home-goal-foot small::before{content:'·';margin-right:.55rem}
.rp-modes:has([data-rp-mode=goal]) button{white-space:nowrap}
@media(max-width:500px){.rp-modes:has([data-rp-mode=goal]) .icon{display:none}}
.arrival-card{background:linear-gradient(115deg,color-mix(in srgb,var(--accent) 10%,var(--surface)),var(--home-surface) 85%)}
.arrival-card>header h2,.arrival-subhead,.arrival-face,.arrival-edit-row,.arrival-edit-row>label,.arrival-order{display:flex;align-items:center;gap:.55rem}
.arrival-card>header h2 .icon{width:1.1rem;height:1.1rem;color:var(--accent)}
.arrival-face,.arrival-subhead{justify-content:space-between}.arrival-face{padding:.2rem 0 .5rem}
.arrival-face small,.arrival-details span,.arrival-line small,.arrival-edit-row small,.arrival-flex{color:var(--muted);font-size:.88rem}
.arrival-face small,.arrival-face strong,.arrival-details span,.arrival-line small,.arrival-edit-row small{display:block}
.arrival-face strong{font-size:clamp(2rem,7.5cqi,3rem);line-height:1.15;letter-spacing:-.04em;font-variant-numeric:tabular-nums}
.arrival-details{display:grid;gap:.35rem;text-align:right}.arrival-details b{color:var(--ink);margin-left:.3rem}
.arrival-dialog{width:min(32rem,calc(100vw - 1.25rem))}.arrival-dialog .lib-body{max-height:62dvh;overflow:auto}
.arrival-inputs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.5rem}.arrival-inputs input{min-width:0;min-height:44px;padding:.5rem}
.arrival-subhead h3{font-size:1rem;margin:.8rem 0}.arrival-line{display:grid;grid-template-columns:4.7rem minmax(0,1fr) auto;align-items:baseline;gap:.45rem;padding:.55rem 0;border-bottom:1px solid var(--line);font-variant-numeric:tabular-nums}
.arrival-line time,.arrival-line b{font-size:.87rem;color:var(--muted);font-weight:500}.arrival-line strong{font-weight:550;overflow-wrap:anywhere}.arrival-line:has(time:empty){grid-template-columns:minmax(0,1fr) auto}.arrival-line time:empty{display:none}
.arrival-summary{margin:.4rem 0 .65rem;color:var(--ink);font-weight:550}.arrival-warning{color:var(--muted);border-left:3px solid var(--accent);padding:.25rem .55rem}
.arrival-edit-row{border-bottom:1px solid var(--line);min-height:52px}.arrival-edit-row>label:first-child{flex:1;min-width:0}.arrival-edit-row input[type=checkbox]{width:1.05rem;flex:none}.arrival-number input{width:3.7rem;padding:.4rem}.arrival-order{gap:0}.arrival-order button{min-width:36px}.arrival-scheduled{width:100%;text-align:left}

@media(max-width:500px){
  .arrival-inputs{grid-template-columns:minmax(0,1.25fr) minmax(0,1.25fr) minmax(0,.85fr)}
  .arrival-inputs input[type=time]::-webkit-calendar-picker-indicator{display:none}
  .arrival-inputs input[type=time]{text-align:left}
}
.arrival-card>header h2{min-width:0;overflow-wrap:anywhere}.arrival-card>header .home-link{flex-shrink:0}
.arrival-next{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid var(--line);margin-top:8px;padding:12px 0 1px}
.arrival-next div{min-width:0}.arrival-next small,.arrival-next>span,.arrival-check-row small{font-size:.875rem;color:var(--muted)}
.arrival-next small,.arrival-next strong{display:block}.arrival-next strong{font-size:1rem;line-height:1.35;font-weight:600;overflow-wrap:anywhere}.arrival-next>span{white-space:nowrap;font-variant-numeric:tabular-nums}
.arrival-list{list-style:none;margin:.6rem 0 0;padding:0}.arrival-list li+li{border-top:1px solid color-mix(in srgb,var(--line) 65%,transparent)}
.arrival-check-row{display:flex;align-items:center;gap:.72rem;width:100%;min-height:46px;padding:.45rem .25rem;text-align:start;border-radius:8px}
.arrival-task-name{flex:1;min-width:0;overflow-wrap:anywhere}.arrival-check-row small{white-space:nowrap;font-variant-numeric:tabular-nums}
.arrival-check-row[aria-checked=true] .arrival-task-name{color:var(--muted);text-decoration:line-through}
.arrival-card footer{display:flex;justify-content:flex-end;border-top:1px solid var(--line)}

/* Today uses the activity library's row geometry and card details. */
.home-activities .library-row{padding:0;gap:4px;min-height:60px;border-radius:0}
.home-activities .lib-open{min-height:60px;padding:8px 0;gap:11px;touch-action:pan-y;cursor:grab}
.home-activities .lib-open:active{cursor:grabbing}
.home-activities .lib-open strong{font-size:1.04rem;font-weight:570;line-height:1.3}
.home-activities .lib-open small{font-size:.86rem;line-height:1.45;margin-top:3px}
.home-activities .home-act-category{color:var(--area,var(--muted))}
.home-activities .lib-mark{width:34px;height:34px;flex:0 0 34px;background:color-mix(in srgb,var(--lib-color,var(--area,var(--accent))) 15%,var(--bg))}
.home-activities .home-act-buttons{flex:none;gap:0}
.home-activities .home-act-main:focus-visible{border-radius:8px}
@container pane (max-width:400px){.home-activities .lib-open{gap:9px}.home-activities .lib-mark{width:30px;height:32px;flex-basis:30px}}
