body{margin:0;min-height:100vh;color:var(--strong);font-family:'IBM Plex Sans',system-ui,sans-serif}
.theme-dark{--bg:#0D0E0F;--line:#1C1F22;--ctl-line:#2A2E33;--ctl-hover:#4A5057;--strong:#ECE9E2;--meta:#7A8087;--colhdr:#6E737A;--value:#D9DCDF;--thought:#ECE9E2;--self:#F0B35B;--other:#8DB3E8;--notable:#9AA0A6;--hands:#B7BCC2;--hot-bg:rgba(240,179,91,.13);--hot-fg:#F6C47E;--dot:#F0B35B}
.theme-light{--bg:#F6F8F7;--line:#D9DEDB;--ctl-line:#C3C9C5;--ctl-hover:#5E655E;--strong:#101312;--meta:#4F5652;--colhdr:#59605B;--value:#1C201E;--thought:#101312;--self:#B33D00;--other:#1D4C8F;--notable:#4F5652;--hands:#2E3431;--hot-bg:rgba(179,61,0,.11);--hot-fg:#8F3000;--dot:#D24A00}
.theme-light{background-image:radial-gradient(rgba(16,19,18,.09) 1px,transparent 1.2px);background-size:16px 16px}
body{background:var(--bg,#0D0E0F)}
a{color:var(--other)}a:hover{color:var(--strong)}

.bar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px;padding:18px 32px;border-bottom:1px solid var(--line)}
.meta{display:flex;align-items:center;gap:22px;flex-wrap:wrap;font-family:'IBM Plex Mono',monospace;font-size:12px;letter-spacing:.14em;color:var(--meta)}
.brand{color:var(--strong);font-weight:500;letter-spacing:.3em}
#clock{font-size:22px;color:var(--strong);font-variant-numeric:tabular-nums;letter-spacing:0}
.controls{display:flex;gap:8px;flex-wrap:wrap}
.ctl{font-family:'IBM Plex Mono',monospace;font-size:12px;letter-spacing:.1em;color:var(--hands);background:transparent;border:1px solid var(--ctl-line);border-radius:4px;padding:0 14px;height:44px;cursor:pointer}
.ctl:hover{border-color:var(--ctl-hover);color:var(--strong)}
main{display:grid;grid-template-columns:minmax(0,740px) minmax(0,280px);grid-template-areas:"self action" "self situation" "self body" "self world";grid-template-rows:auto auto auto 1fr;column-gap:56px;row-gap:20px;padding:40px;max-width:1156px;box-sizing:border-box;margin:0 auto}
.self{grid-area:self;min-width:0}
.k,summary{font-family:'IBM Plex Mono',monospace;font-size:11px;font-weight:400;letter-spacing:.16em;color:var(--colhdr)}
h1.k{margin:0 0 24px}
.feed{display:flex;flex-direction:column;gap:22px;height:60vh;overflow-y:auto;overflow-wrap:anywhere;scrollbar-width:thin;scrollbar-color:var(--ctl-line) transparent}
.head{font-size:22px;line-height:1.5;display:flex;gap:14px;align-items:baseline;flex-shrink:0}
.h-thought .txt{color:var(--thought)}
.h-self .txt{color:var(--self)}
.h-other .txt,.h-other .lbl{color:var(--other)}
.h-dream{color:var(--other);opacity:.85}
.h-tweet{font-family:'IBM Plex Mono',monospace;font-size:15px;color:var(--meta)}
.h-tweet .txt{color:var(--value)}
.background{opacity:.55;font-size:16px}
.lbl{font-family:'IBM Plex Mono',monospace;font-size:12px;font-weight:500;letter-spacing:.12em;flex:none;min-width:56px}
.cursor{display:inline-block;width:.55em;height:1.05em;margin-left:2px;vertical-align:-.15em;background:var(--thought);animation:blink 1s steps(1) infinite}
@keyframes blink{50%{opacity:0}}
.cell{min-width:0;padding:0 0 20px;border-bottom:1px solid var(--line)}
.cell .k{margin-bottom:10px}
.cell .v{font-family:'IBM Plex Mono',monospace;font-size:13.5px;line-height:1.6;color:var(--value);overflow-wrap:anywhere}
.action{grid-area:action}
.situation{grid-area:situation}
#action{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.body-panel{grid-area:body}
.world-panel{grid-area:world}
details{min-width:0;align-self:start;border-bottom:1px solid var(--line)}
summary{padding:0 0 18px;min-height:26px;cursor:pointer;display:flex;align-items:center;justify-content:space-between;list-style:none}
summary::-webkit-details-marker{display:none}
summary::after{content:"+";font-size:18px;color:var(--meta)}
details[open]>summary::after{content:"−"}
summary:hover{color:var(--strong)}
.secondary-feed{display:flex;flex-direction:column;gap:16px;max-height:36vh;overflow-y:auto;overflow-wrap:anywhere;padding:0 0 20px;font-family:'IBM Plex Mono',monospace;font-size:13px;line-height:1.6;color:var(--hands);scrollbar-width:thin}
.world-background{color:var(--notable)}
footer{padding:12px 32px;display:flex;gap:20px;align-items:center;font-family:'IBM Plex Mono',monospace;font-size:11px;color:var(--meta)}
#seek{flex:1;min-width:0;accent-color:var(--dot)}
:focus-visible{outline:2px solid var(--other);outline-offset:3px}
@media(max-width:767px){
.bar{padding:14px 16px}.meta{gap:14px}.controls{gap:6px}.ctl{padding:0 10px}
main{padding:24px 16px;grid-template-columns:minmax(0,1fr);grid-template-rows:none;grid-template-areas:"situation" "action" "self" "body" "world";gap:18px}
.cell{padding-bottom:14px}.cell .k{margin-bottom:6px}
h1.k{margin-bottom:18px}.head{font-size:18px;flex-direction:column;gap:2px}.feed{height:48vh}.secondary-feed{max-height:40vh}
footer{padding:12px 16px}
}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
.h-dream{font-style:italic;padding-left:18px;border-left:2px solid var(--other);background:var(--hot-bg)}
.h-dream .lbl{font-style:normal;font-size:10px;text-transform:uppercase}
.playhead-marker{font:11px 'IBM Plex Mono',monospace;color:var(--hot-fg);border-top:1px solid var(--dot);padding-top:8px;letter-spacing:.12em}
.upcoming{opacity:.65}.recording-gap{font-size:14px;color:var(--meta)}
.feed{position:relative}.head .txt{min-width:0;overflow-wrap:anywhere}
.jump{color:var(--strong);border-color:var(--other);min-width:130px}
.day-labels{display:flex;justify-content:space-between;flex-basis:100%;margin-left:90px}
footer:has(.day-labels){flex-wrap:wrap}
@media(max-width:767px){.jump{flex:1;min-width:140px}.controls{width:100%}#day-select{max-width:100%}.day-labels{margin-left:0}.meta{letter-spacing:.08em}.lbl{min-width:0}}

.multi-day #live-indicator{color:#e34b4b;font-weight:500}
#slogan{white-space:nowrap}
.bio{margin:0;padding:10px 32px 0;font-family:'IBM Plex Mono',monospace;font-size:12px;letter-spacing:.14em;line-height:1.6;color:var(--meta);overflow-wrap:anywhere}
.bio[hidden],#slogan[hidden]{display:none}
@media(max-width:767px){.bio{padding:10px 16px 0;letter-spacing:.08em}}
.multi-day #now.away{background:var(--hot-bg);color:var(--hot-fg)}
.multi-day #back-to-playhead{margin-top:12px;min-width:44px;min-height:44px;font-size:22px;color:var(--hot-fg)}
.multi-day .jump{min-width:100px}
@media(max-width:767px){.multi-day .jump{flex:1 1 0;min-width:96px;padding:0 6px;letter-spacing:0;font-size:11px}}

.multi-day .jump-controls{display:flex;gap:8px}
@media(max-width:767px){.multi-day .jump-controls{flex-basis:100%;gap:6px}}

.feed-spacer{flex:none;width:100%}

#activity{font-family:'IBM Plex Mono',monospace;font-size:11px;letter-spacing:.1em;min-width:170px;color:var(--hands)}
footer{position:relative}
input#seek{flex:1}
#bands{position:absolute;left:0;right:0;bottom:3px;height:4px;margin:0 32px;pointer-events:none}
#bands i{position:absolute;top:0;bottom:0;background:var(--ctl-line);opacity:.8}
#bands i[data-k="Sleeping"]{background:#5b6b9a}#bands i[data-k="Driving the cab"]{background:#c79a2b}
#bands i[data-k="Working at the restaurant"]{background:#c4552b}#bands i[data-k="Running"]{background:#3f9a6a}
@media(max-width:767px){#activity{min-width:0;font-size:10px}#bands{margin:0 16px}}

/* Layout anchoring must not compete with the multi-day playhead or reader. */
.multi-day #feed{overflow-anchor:none}

/* Multi-day reading uses the complete content width on desktop and phones. */
.multi-day main{grid-template-columns:minmax(0,1fr);grid-template-areas:"self";grid-template-rows:auto;gap:0}
.multi-day .action,.multi-day .situation,.multi-day .body-panel,.multi-day .world-panel{display:none}
