/* The sidebar and canvases share the window. The composer belongs to the active panel. */
:root{--rail-width:214px}
.workspace,.panes{background:var(--bg)}
.panes,.panes.two-panels{padding:0}
.pane{border-radius:0;box-shadow:none}
.split-divider{background:linear-gradient(to right,transparent calc(50% - .5px),var(--line) 50%,transparent calc(50% + 1px))}
.split-divider>span{height:30px}
.sidebar{padding:14px 12px 16px}
.sidebar-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:17px}
.sidebar-head .brand{padding:0 6px;gap:6px;margin:0;min-height:42px}
.sidebar-head .brand>span{display:block;font-size:23px}
.sidebar-head .icon{width:19px;height:19px}
.sidebar .nav-link{justify-content:flex-start;min-height:38px;margin:2px 0;padding:8px 11px;font-size:15px}
.sidebar .nav-link>span{display:block}
.sidebar .nav-group{display:flex;margin-top:16px;min-height:28px}
.global-search kbd{margin-left:auto;font:11px system-ui;color:var(--dim)}
.sidebar-bottom{padding-top:16px}
.sidebar .saved-link .nav-link{padding-right:55px}
.sidebar .saved-link .remove-saved,.sidebar .saved-link .make-saved-routine{display:inline-flex}
.sidebar .other-panel,.sidebar-reveal{display:none}
@media(min-width:851px){
  [data-sidebar=closed] .sidebar{visibility:hidden;transform:translateX(-100%);pointer-events:none}
  [data-sidebar=closed] .workspace{margin-left:0}
  [data-sidebar=closed] .pane:first-child .sidebar-reveal{display:inline-flex}
}
@media(max-width:850px){
  :root{--rail-width:0px}
  .sidebar{width:min(274px,84vw);padding-top:max(14px,env(safe-area-inset-top))}
  .sidebar .nav-link{min-height:44px}
  .sidebar .other-panel,.sidebar-reveal{display:inline-flex}
  .compact-pane .pane-top{padding-top:max(8px,env(safe-area-inset-top))}
}
.compact-pane .pane-top{min-height:56px;gap:5px}
.compact-pane .pane-title-group,.compact-pane .outline-tools{min-width:0}
.sidebar-reveal{width:36px;height:40px}
.calendar-bar{padding-bottom:9px}
.day-timeline .hour-row{min-height:53px;padding:6px 0;border-bottom-color:color-mix(in srgb,var(--line) 62%,transparent)}
.day-timeline .all-day{min-height:44px;padding:5px 0}
.day-timeline .hour-hit,.day-timeline .slot-add{min-height:40px}
.day-timeline .now-marker{left:70px;background:var(--now,#ca7565)}
.day-timeline .now-marker::before{content:attr(data-clock);width:auto;height:auto;left:auto;right:calc(100% + 3px);top:0;transform:translateY(-50%);border-radius:4px;background:var(--bg);padding:1px 3px;font-size:10px;font-weight:650;line-height:14px;letter-spacing:0;white-space:nowrap;color:var(--now,#ca7565)}
[data-theme=dark]{--now:#ffac97}
.composer-foot{background:var(--bg);flex:none;position:relative;z-index:6;padding:8px 20px max(14px,env(safe-area-inset-bottom))}
.omni{position:relative;display:flex;align-items:center;gap:4px;width:min(100%,720px);margin:0 auto;padding:5px 7px;background:var(--surface);border-radius:20px;box-shadow:0 0 0 1px color-mix(in srgb,var(--line) 60%,transparent),0 3px 12px rgb(0 0 0 / .08)}
.omni button{flex-shrink:0}
.omni-kind,.omni-date,.omni-chat{display:inline-flex;align-items:center;justify-content:center;gap:6px;background:transparent;min-height:42px;border-radius:13px;color:var(--muted)}
.omni-kind{padding:0 10px;color:var(--ink);font-size:14px;font-weight:540}
.omni-kind .icon,.omni-chat .icon,.omni-date .icon{width:17px;height:17px}
.omni-kind .icon:last-child{width:11px;height:11px}
.omni-chat,.omni-date{width:auto;min-width:40px;padding:0 9px}
.omni-chat span,.omni-date span{font-size:12px;white-space:nowrap}
#omni-input{flex:1 1 70px;min-width:20px;resize:none;field-sizing:content;min-height:40px;max-height:min(145px,25dvh);margin:0;padding:9px 3px;border:0;outline:0;box-shadow:none;border-radius:0;background:transparent;color:var(--ink);font:inherit;font-size:16px;line-height:22px;overflow:auto}
#omni-input::placeholder{color:var(--dim)}
.omni-send{display:grid;place-items:center;width:38px;height:38px;background:var(--ink);color:var(--bg);border-radius:50%}
.omni-send .icon{width:20px;height:20px;stroke-width:2}
.omni-send:active{transform:scale(.95)}
.omni-pop{position:absolute;bottom:calc(100% + 8px);left:0;z-index:10;min-width:190px;max-height:min(440px,50dvh);overflow:auto;padding:6px;background:var(--raised);border-radius:15px;box-shadow:0 8px 30px rgb(0 0 0 / .24)}
.type-pop button{display:flex;align-items:center;gap:10px;width:100%;padding:0 12px;min-height:40px;text-align:left;font-size:15px;border-radius:9px}
.type-pop button>.icon{width:17px;height:17px}
.type-pop button>.icon:last-child:not(:first-child){margin-left:auto}
.type-pop [aria-pressed=true],.chat-context[aria-pressed=true]{background:var(--accent-soft);color:var(--accent)}
.date-pop{left:auto;right:0;display:grid;grid-template-columns:auto auto;gap:8px;padding:14px}
.date-pop label{display:grid;gap:5px;font-size:13px;color:var(--muted)}
.date-pop input{padding:7px;min-width:0;max-width:100%;color:var(--ink);background:var(--bg);font-size:16px;border:0}
.date-pop button{min-height:40px}
.chat-surface{max-width:720px;margin:auto}
.chat-controls{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:6px;margin:0 0 20px;color:var(--muted)}
.chat-controls button,.chat-controls select{min-height:40px;padding:5px 9px;font:inherit;font-size:14px;border:0;border-radius:10px;background:var(--surface);color:var(--ink);max-width:100%}
.chat-context{display:flex;gap:6px;align-items:center}
.chat-context .icon{width:16px;height:16px}
.chat-log{display:flex;flex-direction:column;gap:20px}
.chat-turn{font-size:16px;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere}
.chat-turn.user{align-self:flex-end;max-width:85%;padding:9px 14px;border-radius:17px 17px 5px 17px;background:var(--surface)}
.chat-turn.assistant{align-self:stretch;padding:0 2px}
.chat-error{margin:14px 0;color:var(--muted);font-size:14px}
.chat-error button{min-height:40px;padding:5px 9px;color:var(--accent)}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
#toast{bottom:calc(78px + env(safe-area-inset-bottom))}
@media(hover:hover) and (pointer:fine){.omni-kind:hover,.omni-chat:hover,.omni-date:hover,.type-pop button:hover{background:var(--hover);color:var(--ink)}}
@media(max-width:580px){
 .composer-foot{padding:6px 9px max(8px,env(safe-area-inset-bottom))}
 .omni{gap:0;padding:3px 5px}
 .omni-chat span,.omni-date span{display:none}
 .omni-date:has(span){color:var(--accent)}
 .omni-kind{padding-inline:8px;gap:4px}
 .date-pop{max-width:100%}
 #toast{bottom:calc(64px + env(safe-area-inset-bottom))}
}
@media(pointer:coarse){.sidebar-reveal,.sidebar-head .icon-button,.omni-send,.omni-chat,.omni-date{min-width:44px;min-height:44px}.type-pop button{min-height:44px}
 [data-keyboard=open] body:has([data-outline-title]:focus,[data-outline-notes]:focus) .composer-foot{display:none}}
.day-timeline .time-label{font-size:13px}
.day-timeline .plan-chip>button{min-height:32px;font-size:14px;padding:5px 8px}
.day-timeline .all-day{align-items:center}
.day-timeline .all-day .time-label{padding:0}
.day-timeline .all-day>div{min-width:0}
.day-timeline .all-day .plan-chip{min-width:0;max-width:100%}
.day-timeline .now-marker::before{font-size:12px}
.day-timeline .time-slot-hit{position:absolute;inset:0 auto 0 0;width:74px;display:flex;align-items:flex-start;text-align:left;color:var(--muted);border-radius:6px}
.day-timeline .slot-clock{display:inline-flex;align-items:center;gap:3px;padding:8px 0;font-size:13px;font-variant-numeric:tabular-nums;white-space:nowrap}
.slot-clock>.icon{width:11px;height:11px;opacity:.62}
.day-timeline .hour-row{cursor:pointer}
.day-timeline .hour-items{margin-left:82px;min-width:0;min-height:32px}
.day-timeline .hour-items .plan-chip>button>time{display:inline;font-size:12px;font-variant-numeric:tabular-nums}
.day-timeline .slot-add{position:relative;align-self:flex-start;flex:none;width:30px;margin-left:-7px}
.day-timeline .all-day{max-height:min(26dvh,210px);overflow-y:auto}
.day-timeline .all-day-items{flex-direction:column;align-items:stretch;min-height:24px}
.day-timeline .all-day-items .plan-chip{width:fit-content}
.day-timeline.hour-detail{min-height:0}
.hour-detail .hour-row{min-height:72px;padding-block:12px}
.hour-detail .slot-clock{padding-block:18px;color:var(--ink);font-size:15px}
[data-route-kind=hour] .outline-back{width:36px;height:44px}
@media(hover:hover) and (pointer:fine){.time-slot-hit:hover .slot-clock{color:var(--accent)}.hour-row>.slot-add{opacity:0}.hour-row:hover>.slot-add{opacity:1}}
.hour-row:focus-within>.slot-add{opacity:1}
@media(pointer:coarse){.day-timeline .slot-add{width:40px;min-height:44px}}

.hour-items>.show-more{pointer-events:auto}
.hour-row[data-now-near-label] .slot-clock{visibility:hidden}
@container pane (max-width:500px){
 .hour-heading .outline-location{display:block}
 .hour-heading .home-date{display:block;margin:0;font-size:12px;line-height:16px}
 .hour-heading .outline-location h1{font-size:20px;line-height:26px}
}
.capture-hint{position:absolute;bottom:calc(100% + 6px);left:0;display:flex;flex-wrap:wrap;align-items:center;gap:5px 8px;max-width:100%;padding:7px 11px;border-radius:10px;background:var(--raised);color:var(--ink);box-shadow:0 3px 15px rgb(0 0 0 / .15);font-size:14px;line-height:1.4;overflow-wrap:anywhere}
.capture-hint[hidden],.omni:has(.omni-pop) .capture-hint{display:none}
.capture-hint.needs-choice{max-height:30dvh;overflow:auto}
.capture-hint button{color:var(--accent);background:var(--surface);min-height:36px;max-width:100%;padding:5px 10px;text-align:left}

.omni-date[hidden]{display:none}

.move-card{align-self:stretch;max-width:35rem;box-sizing:border-box;padding:16px 18px;background:var(--surface);border-radius:16px;overflow-wrap:anywhere}
.move-card header,.move-card dt,.move-card dd,.move-card p{margin:0}
.move-card header span{display:flex;gap:7px;align-items:center;font-size:14px;color:var(--muted)}
.move-card header .icon{width:16px;height:16px}
.move-card strong{display:block;margin-top:3px;font-size:20px;line-height:1.3}
.move-card dl{display:grid;grid-template-columns:auto 1fr;gap:7px 14px;margin:14px 0 8px;line-height:1.45;font-variant-numeric:tabular-nums}
.move-card dt,.move-card small{color:var(--muted);font-size:14px}
.move-card p{margin-top:8px}
.move-actions,.move-choices{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:14px}
.move-actions button,.move-choices button{min-height:44px}
.move-choices button{padding:6px 10px;border-radius:8px;background:var(--bg);color:var(--ink);text-align:left}

.move-slot{display:flex;flex-wrap:wrap;gap:0 8px;align-items:baseline}
.move-slot span{white-space:nowrap}
.move-card:focus{outline:none}
@container pane (max-width:440px){.move-slot{display:grid;gap:1px}.move-slot time{font-size:14px;color:var(--muted)}}

.reminder-banner{position:fixed;z-index:60;top:max(12px,env(safe-area-inset-top));right:12px;max-width:min(23rem,calc(100vw - 24px));padding:16px 18px;border-radius:16px;background:var(--surface);color:var(--ink);box-shadow:0 8px 28px #0004}
.reminder-banner[hidden]{display:none}
.reminder-banner strong,.reminder-banner small,.reminder-banner span{display:block;overflow-wrap:anywhere}
.reminder-banner small,.run-reminder strong{color:var(--muted);font-weight:500}
.reminder-banner strong{font-size:1.1rem;margin:3px 0}
.reminder-banner button{margin:10px 6px 0 0}
.run-reminder{display:flex;gap:12px;flex-wrap:wrap;align-items:baseline;font-size:1rem}
.work-answer{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:0 .5rem;width:min(100%,720px);margin:0 auto 8px;padding:14px 12px 14px 17px;border-radius:18px;background:var(--surface);box-shadow:0 3px 12px rgb(0 0 0 / .1);max-height:35dvh;overflow:auto;overflow-wrap:anywhere}
.work-answer-copy small{display:flex;align-items:center;gap:5px;color:var(--muted);font-size:.88rem;margin-bottom:4px}.work-answer-copy small .icon{width:15px;height:15px;color:var(--accent)}
.work-answer-copy strong{display:block;font-size:clamp(1.16rem,1.8vw,1.48rem);letter-spacing:-.025em;line-height:1.25;font-weight:640;font-variant-numeric:tabular-nums}
.work-answer-copy p{font-size:1rem;line-height:1.4;margin:5px 0 0}.work-answer-copy p+p{color:var(--muted);font-size:.9rem}
.work-answer>.icon-button{align-self:start;min-width:44px;min-height:44px}.work-answer-choices{display:flex;flex-wrap:wrap;gap:6px;grid-column:1/-1;margin-top:8px}.work-answer-choices button{min-height:44px}
body:has(.work-answer) #toast{top:calc(12px + env(safe-area-inset-top));bottom:auto}
