/* Jost is served from the existing local font. */
@font-face {
  font-family: 'Jost';
  src: url('../../assets/fonts/Jost-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
}
body {
  margin: 0;
}
html,
body,
#home-mount {
  height: 100%;
  overflow: hidden;
}
html {
  background: var(--page-bg, #FDF1E9);
}
sc-for,
sc-if {
  display: contents;
}

/* ---------- tokens: one warm palette. --pk slides it from Maple (0%) to Rose (100%); light and dark ---------- */
.home {
  --m-bg: #FDF1E7;
  --r-bg: #FBF1F1;
  --m-surface: #F8E3D2;
  --r-surface: #F6E4E5;
  --m-surface2: #F3D7C1;
  --r-surface2: #F1D9DB;
  --m-panel: #FFF9F3;
  --r-panel: #FFF9F8;
  --m-tint: #FBE1CE;
  --r-tint: #F9E1E6;
  --m-ink: #38231A;
  --r-ink: #33212A;
  --m-ink2: #7A5B4A;
  --r-ink2: #765A63;
  --m-line: #EFD6C2;
  --r-line: #EBD3D6;
  --m-lineS: #CFA587;
  --r-lineS: #C9A3AC;
  --m-accent: #A84212;
  --r-accent: #B4365C;
  --m-onacc: #FFFFFF;
  --r-onacc: #FFFFFF;
  --m-mid: #DE9466;
  --r-mid: #D98AA2;
}
.home.th-dark {
  --m-bg: #2A1F17;
  --r-bg: #2A1E20;
  --m-surface: #36281E;
  --r-surface: #36282B;
  --m-surface2: #403024;
  --r-surface2: #403034;
  --m-panel: #31241B;
  --r-panel: #312326;
  --m-tint: #57341B;
  --r-tint: #552B3A;
  --m-ink: #F6E8DA;
  --r-ink: #F4E6E7;
  --m-ink2: #C4AA95;
  --r-ink2: #C3A8AF;
  --m-line: #48372B;
  --r-line: #48363B;
  --m-lineS: #7C5E49;
  --r-lineS: #7B5C65;
  --m-accent: #F29A62;
  --r-accent: #F28BA8;
  --m-onacc: #2B1406;
  --r-onacc: #2A0F18;
  --m-mid: #A66034;
  --r-mid: #A7566E;
}
.home {
  --pk: 20%;
  --icon: #96776A;
  --open-fill: #F5DBCB;
  --open-hot: #F0D3C2;
  --open-ink: #9A3A24;
  --block-number: #9A7C6E;
  --card-fill: var(--surface);
  --bg: color-mix(in oklab,var(--r-bg) var(--pk),var(--m-bg));
  --surface: color-mix(in oklab,var(--r-surface) var(--pk),var(--m-surface));
  --surface2: color-mix(in oklab,var(--r-surface2) var(--pk),var(--m-surface2));
  --panel: color-mix(in oklab,var(--r-panel) var(--pk),var(--m-panel));
  --tint: color-mix(in oklab,var(--r-tint) var(--pk),var(--m-tint));
  --ink: color-mix(in oklab,var(--r-ink) var(--pk),var(--m-ink));
  --ink2: color-mix(in oklab,var(--r-ink2) var(--pk),var(--m-ink2));
  --line: color-mix(in oklab,var(--r-line) var(--pk),var(--m-line));
  --lineS: color-mix(in oklab,var(--r-lineS) var(--pk),var(--m-lineS));
  --accent: color-mix(in oklab,var(--r-accent) var(--pk),var(--m-accent));
  --onacc: color-mix(in oklab,var(--r-onacc) var(--pk),var(--m-onacc));
  --mid: color-mix(in oklab,var(--r-mid) var(--pk),var(--m-mid));
  --tipbg: var(--ink);
  --tipink: var(--bg);
}
.home.th-dark {
  --icon: #A38777;
  --open-fill: #513D33;
  --open-hot: #60493D;
  --open-ink: #F9BFA6;
  --block-number: #AA8E7F;
}
.home.pk-0 {
  --pk: 0%;
}
.home.pk-5 {
  --pk: 5%;
}
.home.pk-10 {
  --pk: 10%;
}
.home.pk-15 {
  --pk: 15%;
}
.home.pk-20 {
  --pk: 20%;
}
.home.pk-25 {
  --pk: 25%;
}
.home.pk-30 {
  --pk: 30%;
}
.home.pk-35 {
  --pk: 35%;
}
.home.pk-40 {
  --pk: 40%;
}
.home.pk-45 {
  --pk: 45%;
}
.home.pk-50 {
  --pk: 50%;
}
.home.pk-55 {
  --pk: 55%;
}
.home.pk-60 {
  --pk: 60%;
}
.home.pk-65 {
  --pk: 65%;
}
.home.pk-70 {
  --pk: 70%;
}
.home.pk-75 {
  --pk: 75%;
}
.home.pk-80 {
  --pk: 80%;
}
.home.pk-85 {
  --pk: 85%;
}
.home.pk-90 {
  --pk: 90%;
}
.home.pk-95 {
  --pk: 95%;
}
.home.pk-100 {
  --pk: 100%;
}
.home.sd-0 {
  --slide: 0ms;
}
.home.sd-20 {
  --slide: 20ms;
}
.home.sd-40 {
  --slide: 40ms;
}
.home.sd-60 {
  --slide: 60ms;
}
.home.sd-80 {
  --slide: 80ms;
}
.home.sd-100 {
  --slide: 100ms;
}
.home.sd-120 {
  --slide: 120ms;
}
.home.sd-140 {
  --slide: 140ms;
}
.home.sd-160 {
  --slide: 160ms;
}
.home.sd-180 {
  --slide: 180ms;
}
.home.sd-200 {
  --slide: 200ms;
}
.home.sd-220 {
  --slide: 220ms;
}
.home.sd-240 {
  --slide: 240ms;
}
.home.sd-260 {
  --slide: 260ms;
}
.home.sd-280 {
  --slide: 280ms;
}
.home.sd-300 {
  --slide: 300ms;
}
.home.sd-320 {
  --slide: 320ms;
}
.home.sd-340 {
  --slide: 340ms;
}
.home.sd-360 {
  --slide: 360ms;
}
.home.sd-380 {
  --slide: 380ms;
}
.home.sd-400 {
  --slide: 400ms;
}
.home.sd-420 {
  --slide: 420ms;
}
.home.sd-440 {
  --slide: 440ms;
}
.home.sd-460 {
  --slide: 460ms;
}
.home.sd-480 {
  --slide: 480ms;
}
.home.sd-500 {
  --slide: 500ms;
}
.home.sd-520 {
  --slide: 520ms;
}
.home.sd-540 {
  --slide: 540ms;
}
.home.sd-560 {
  --slide: 560ms;
}
.home.sd-580 {
  --slide: 580ms;
}
.home.sd-600 {
  --slide: 600ms;
}
.home.sx-0 {
  --sx: 0px;
}
.home.sx-10 {
  --sx: 10px;
}
.home.sx-20 {
  --sx: 20px;
}
.home.sx-30 {
  --sx: 30px;
}
.home.sx-40 {
  --sx: 40px;
}
.home.sx-50 {
  --sx: 50px;
}
.home.sx-60 {
  --sx: 60px;
}
.home.sx-70 {
  --sx: 70px;
}
.home.sx-80 {
  --sx: 80px;
}
.home.sx-90 {
  --sx: 90px;
}
.home.sx-100 {
  --sx: 100px;
}
.home.sx-110 {
  --sx: 110px;
}
.home.sx-120 {
  --sx: 120px;
}
.home.sx-130 {
  --sx: 130px;
}
.home.sx-140 {
  --sx: 140px;
}
.home.sx-150 {
  --sx: 150px;
}
.home.sx-160 {
  --sx: 160px;
}
.home.sx-170 {
  --sx: 170px;
}
.home.sx-180 {
  --sx: 180px;
}
.home.sx-190 {
  --sx: 190px;
}
.home.sx-200 {
  --sx: 200px;
}

/* ---------- base ---------- */
.home {
  container-type: inline-size;
  height: 100dvh;
  min-height: 0;
  box-sizing: border-box;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Jost','Futura','Century Gothic','Avenir Next',system-ui,sans-serif;
  font-size: 17px;
  line-height: 1.5;
  overflow: visible;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
.home * {
  box-sizing: border-box;
}
.home button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  text-align: left;
}
.home button:focus-visible,
.home input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.wrap {
  --time-w: 60px;
  --dot-col: 28px;
  --col: 540px;
  --ppm: .9px;
  width: 100%;
  max-width: 816px;
  margin: 0 auto;
  padding: 36px 28px 72px;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior-y: contain;
}
.home-header {
  position: relative;
  z-index: 70;
  flex: none;
  width: 100%;
  max-width: 816px;
  height: 72px;
  margin: 0 auto;
  padding: 26px 28px 6px;
}
.home .home-header .nav { margin-bottom: 0; }
.home-content { flex: 1 1 0; min-height: 0; overflow: hidden; }
.home-content > .wrap { height: 100%; }
.home[data-conversation-top] .wrap { padding-top: 0; padding-bottom: 0; visibility: hidden; }
.home[data-conversation-top] .home-header { cursor: pointer; }
.sp-compact .wrap {
  --ppm: .72px;
}
.lbl {
  font-size: 13px;
  line-height: 20px;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--ink2);
  font-weight: 500;
}
.home .link {
  color: var(--accent);
  font-weight: 500;
}
.home .link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* instant tooltips: no delay, right under the thing the pointer is on */
.has-tip {
  position: relative;
}
.tip {
  display: none;
  position: absolute;
  left: 0;
  top: calc(100% + 6px);
  z-index: 30;
  width: max-content;
  max-width: min(380px,76cqw);
  background: var(--tipbg);
  color: var(--tipink);
  font-size: 14px;
  line-height: 1.4;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  text-decoration: none;
  white-space: normal;
  text-align: left;
  padding: 6px 10px;
  border-radius: 8px;
  pointer-events: none;
}
.tip.path {
  font-family: ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  font-size: 12.5px;
  overflow-wrap: anywhere;
  max-width: min(560px,76cqw);
}
.tip.tip-r {
  left: auto;
  right: 0;
}
.has-tip:hover .tip,
.has-tip:focus-visible .tip {
  display: block;
}

/* ---------- top: views, goal, heading ---------- */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 -14px 32px;
}
.tabs {
  display: flex;
  gap: 4px;
}
.home .tab {
  padding: 6px 14px;
  min-height: 40px;
  border-radius: 999px;
  font-size: 16.5px;
  color: var(--ink2);
}
.home .tab:hover {
  color: var(--ink);
}
.home .tab.on {
  background: var(--surface);
  color: var(--ink);
  font-weight: 500;
}
.nav {
  position: relative;
}
.navr {
  display: flex;
  align-items: center;
  gap: 2px;
}
.home .gear {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-content: center;
  color: var(--ink2);
}
.home .gear:hover,
.home .gear.on {
  background: var(--surface);
  color: var(--ink);
}
.settings {
  position: absolute;
  right: 8px;
  top: calc(100% + 4px);
  z-index: 35;
  width: min(330px,calc(100% - 16px));
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 10px 30px rgba(40,20,10,.12);
}
.srow {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.seg {
  display: flex;
  gap: 2px;
  background: var(--surface);
  border-radius: 10px;
  padding: 3px;
}
.home .segb {
  flex: 1;
  text-align: center;
  min-height: 32px;
  border-radius: 8px;
  font-size: 15.5px;
  color: var(--ink2);
}
.home .segb:hover {
  color: var(--ink);
}
.home .segb.on {
  background: var(--panel);
  color: var(--ink);
  font-weight: 500;
  box-shadow: 0 0 0 1px var(--line);
}
.rangerow {
  display: flex;
  gap: 12px;
  align-items: center;
}
.home .range {
  flex: 1;
  accent-color: var(--accent);
  margin: 0;
  height: 24px;
}
.rval {
  width: 44px;
  text-align: right;
  color: var(--ink2);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}
.pdots {
  display: flex;
  gap: 5px;
  align-items: center;
}
.pd {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--line);
}
.pd.on {
  background: var(--accent);
}
.goal {
  font-size: 16px;
  color: var(--ink2);
  margin: 0 0 4px;
}
.h1 {
  font-size: 34px;
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -.01em;
  margin: 0 0 26px;
}
.sp-compact .nav {
  margin-bottom: 26px;
}
.sp-compact .h1 {
  margin-bottom: 20px;
}

/* ---------- the day: one timeline ---------- */
.day {
  position: relative;
}
.item {
  --tp: 12px;
  --lh: 28px;
  --doty: calc(var(--tp) + var(--lh) / 2);
  --railx: calc(var(--time-w) + var(--dot-col) / 2 - 1px);
  --rail: var(--line);
}
.item.k-small {
  --tp: 5px;
  --lh: 24px;
}
.sp-compact .item {
  --tp: 8px;
}
.sp-compact .item.k-small {
  --tp: 3px;
}
.home .row {
  display: grid;
  grid-template-columns: var(--time-w) var(--dot-col) minmax(0,1fr);
  align-items: start;
  width: 100%;
}
.time {
  position: relative;
  padding: var(--tp) 0;
  line-height: var(--lh);
  font-size: 15.5px;
  color: var(--ink2);
  font-variant-numeric: tabular-nums;
}
.dotc {
  height: calc(var(--tp) * 2 + var(--lh));
  display: flex;
  align-items: center;
  justify-content: center;
}
.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 2px solid var(--lineS);
  background: var(--bg);
}
.tile {
  padding: var(--tp) 12px;
  line-height: var(--lh);
  border-radius: 10px;
  display: flex;
  flex-wrap: wrap;
  column-gap: 14px;
  justify-content: space-between;
  align-items: baseline;
  position: relative;
  min-width: 0;
}
.title {
  font-size: 20px;
  font-weight: 500;
  flex: 0 1 auto;
  min-width: 0;
  text-wrap: pretty;
}
.k-small .title {
  font-size: 16.5px;
  font-weight: 400;
  color: var(--ink2);
}
.extra {
  font-size: 15px;
  color: var(--ink2);
  margin-left: 8px;
}
.nowtag {
  position: absolute;
  left: 0;
  top: calc(var(--tp) + 21px);
  font-size: 12.5px;
  line-height: 14px;
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--accent);
}
.k-small.is-now .row {
  padding-bottom: 8px;
}
.row:hover .tile {
  background: var(--surface);
}
.is-past .title {
  color: var(--ink2);
}
.k-small .row:hover .tile {
  background: none;
}
.home .dotbtn {
  cursor: pointer;
}
.dotbtn:hover .dot {
  box-shadow: 0 0 0 4px var(--tint);
}
.k-small.is-done .dot,
.k-small.is-done.is-past .dot,
.k-small.is-done.is-now .dot {
  width: 14px;
  height: 14px;
  background: var(--accent);
  box-shadow: none;
  display: grid;
  place-content: center;
}
.k-small.is-done .dot::after {
  content: "";
  width: 3px;
  height: 7px;
  border: solid var(--onacc);
  border-width: 0 1.5px 1.5px 0;
  transform: translateY(-1px) rotate(45deg);
}
.dotbtn .tip {
  left: 50%;
  top: calc(100% - 2px);
}
.is-now .time {
  color: var(--accent);
  font-weight: 600;
}
.is-open .tile,
.is-open .row:hover .tile {
  background: var(--surface);
  box-shadow: inset 0 0 0 1.5px var(--lineS);
}

/* the rail: a spine with a node per item; the walked part is colored */
.t-rail .row {
  background: linear-gradient(var(--rail),var(--rail)) no-repeat var(--railx) 0
    / 2px 100%;
}
.t-rail .item.is-past {
  --rail: var(--mid);
}
.t-rail .is-now .row {
  background: linear-gradient(to bottom,var(--mid) 0,var(--mid)
    var(--doty),var(--line) var(--doty),var(--line) 100%) no-repeat var(--railx)
    0 / 2px 100%;
}
.t-rail .first .row {
  background-position: var(--railx) var(--doty);
  background-size: 2px calc(100% - var(--doty));
}
.t-rail .last .row {
  background-size: 2px var(--doty);
}
.t-rail .detail {
  background: linear-gradient(var(--rail),var(--rail)) no-repeat var(--railx) 0
    / 2px 100%;
}
.t-rail .is-now .detail {
  background: linear-gradient(var(--line),var(--line)) no-repeat var(--railx) 0
    / 2px 100%;
}
.t-rail .last .detail {
  background: none;
}
.is-past .dot {
  background: var(--mid);
  border-color: var(--mid);
}
.is-now .dot {
  width: 13px;
  height: 13px;
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 5px var(--tint);
}
.k-small .dot {
  width: 6px;
  height: 6px;
  border: 0;
  background: var(--lineS);
}
.k-small.is-past .dot {
  background: var(--mid);
}
.k-small.is-now .dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--tint);
}

/* ---------- an opened block ---------- */
.detail {
  padding: 4px 0 24px calc(var(--time-w) + var(--dot-col) + 12px);
}
.dhead {
  display: none;
}
.what {
  font-size: 18px;
  line-height: 1.5;
  margin: 6px 0 14px;
  text-wrap: pretty;
}
.donewhen {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 12px;
  align-items: baseline;
  margin: 0 0 12px;
}
.steps {
  display: flex;
  flex-direction: column;
  margin: 0 0 10px;
}
.step {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 6px 0;
}
label.step {
  cursor: pointer;
}
.home .cb {
  appearance: none;
  -webkit-appearance: none;
  flex: none;
  width: 20px;
  height: 20px;
  margin: 3px 0 0;
  border: 1.5px solid var(--ink2);
  border-radius: 6px;
  background: var(--bg);
  display: grid;
  place-content: center;
  cursor: pointer;
}
.home .cb:checked {
  background: var(--accent);
  border-color: var(--accent);
}
.home .cb:checked::after {
  content: "";
  width: 5px;
  height: 10px;
  border: solid var(--onacc);
  border-width: 0 2px 2px 0;
  transform: translateY(-1px) rotate(45deg);
}
.steptext {
  flex: 1;
  min-width: 0;
  text-wrap: pretty;
}
.home .shead {
  display: flex;
  gap: 10px;
  align-items: baseline;
  justify-content: space-between;
  width: 100%;
  text-wrap: pretty;
}
.home .shead:hover .sheadtext {
  text-decoration: underline;
  text-decoration-color: var(--lineS);
  text-underline-offset: 3px;
}
.schev {
  flex: none;
  width: 7px;
  height: 7px;
  border: solid var(--ink2);
  border-width: 0 1.5px 1.5px 0;
  transform: translateY(-3px) rotate(45deg);
}
.step.open .schev {
  transform: translateY(1px) rotate(-135deg);
}
.step.open .sheadtext {
  font-weight: 500;
}
.srest {
  color: var(--ink);
  margin-top: 3px;
  text-wrap: pretty;
}
.step.done .sheadtext,
.step.done .steptext {
  color: var(--ink2);
}
.step.done .srest {
  color: var(--ink2);
}
.tag {
  display: inline-block;
  font-size: 13px;
  line-height: 19px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid var(--lineS);
  color: var(--ink2);
  margin-left: 8px;
  vertical-align: 1px;
  text-decoration: none;
}
.note {
  color: var(--ink2);
  margin: 0 0 12px;
}
.dfoot {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
  align-items: center;
  margin-top: 8px;
}
.ctx {
  margin-top: 14px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cfront {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.kv {
  display: grid;
  grid-template-columns: 128px minmax(0,1fr);
  gap: 2px 16px;
  align-items: baseline;
}
.qs {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.files {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.file {
  text-wrap: pretty;
}
.home .flink {
  display: inline;
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb,var(--accent) 38%,transparent);
  text-underline-offset: 3px;
}
.home .flink:hover {
  text-decoration-color: var(--accent);
}
.fdesc {
  color: var(--ink2);
}

.pager {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  margin-top: 26px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.home .pbtn {
  color: var(--ink2);
  min-height: 32px;
  text-wrap: pretty;
}
.home .pbtn:hover {
  color: var(--ink);
}
.pnext {
  margin-left: auto;
  text-align: right;
}

/* ---------- a block's own page: the timeline is out of view until you go back ---------- */
.home .back {
  color: var(--ink2);
  font-size: 16px;
  min-height: 32px;
  margin: 0 0 6px;
}
.home .back:hover {
  color: var(--ink);
}
.v-block .row {
  display: none;
}
.v-block .detail,
.v-block.t-rail .detail,
.v-block.t-rail .last .detail {
  padding: 0;
  background: none;
  border: 0;
  max-width: 680px;
}
.v-block .dhead {
  display: block;
  margin-bottom: 10px;
}
.v-block .dclose {
  display: none;
}
.v-block .dwhen {
  font-size: 16px;
  color: var(--ink2);
}
.v-block .dtitle {
  font-size: 30px;
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -.01em;
  margin: 2px 0 0;
  text-wrap: pretty;
}
.nav-fwd.a0 .v-anim,
.nav-fwd.a0.v-block .detail {
  animation: slideinA var(--slide,0s) ease-out;
}
.nav-fwd.a1 .v-anim,
.nav-fwd.a1.v-block .detail {
  animation: slideinB var(--slide,0s) ease-out;
}
.nav-back.a0 .v-anim,
.nav-back.a0.v-block .detail {
  animation: slidebackA var(--slide,0s) ease-out;
}
.nav-back.a1 .v-anim,
.nav-back.a1.v-block .detail {
  animation: slidebackB var(--slide,0s) ease-out;
}
@keyframes slideinA {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes slideinB {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes slidebackA {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes slidebackB {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.home .addnote {
  color: var(--ink2);
  min-height: 32px;
  margin-top: 2px;
}
.home .addnote:hover {
  color: var(--ink);
}
.notes {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}
.noteadd {
  display: flex;
  gap: 8px;
  align-items: flex-end;
}
.home .padtext {
  flex: 1;
  min-width: 0;
  font: inherit;
  font-size: 16.5px;
  line-height: 1.45;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--lineS);
  border-radius: 12px;
  padding: 8px 12px;
  resize: vertical;
  min-height: 44px;
}
.home .padtext.tall {
  min-height: 104px;
  width: 100%;
}
.home .padtext::placeholder {
  color: var(--ink2);
  opacity: 1;
}
.home .padtext:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.home .nadd {
  flex: none;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 500;
}
.home .nadd:hover {
  background: var(--surface2);
}
.home .sentbtn {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  min-height: 32px;
  color: var(--ink2);
  align-self: flex-start;
}
.home .sentbtn:hover {
  color: var(--ink);
}
.sentbtn .schev {
  transform: translateY(-2px) rotate(45deg);
}
.sentbtn.on .schev {
  transform: translateY(2px) rotate(-135deg);
}
.sent {
  display: flex;
  flex-direction: column;
}
.pnote {
  display: flex;
  gap: 12px;
  align-items: baseline;
  padding: 6px 0;
  border-top: 1px solid var(--line);
}
.ptext {
  flex: 1;
  min-width: 0;
  white-space: pre-wrap;
  text-wrap: pretty;
}
.pmeta {
  flex: none;
  font-size: 13.5px;
  color: var(--ink2);
}
.padhint {
  font-size: 13.5px;
  color: var(--ink2);
}
.fact .notes {
  margin-top: 4px;
}

/* ---------- quiet things under the timeline ---------- */
.below {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
}
.shelf {
  display: flex;
  gap: 4px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin: 0 -12px;
}
.home .chip {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  min-height: 38px;
  padding: 4px 12px;
  border-radius: 10px;
  font-size: 15.5px;
  color: var(--ink2);
  white-space: nowrap;
}
.home .chip:hover {
  background: var(--surface);
  color: var(--ink);
}
.home .chip.on {
  background: var(--surface);
  color: var(--ink);
  border-radius: 10px 10px 0 0;
}
.home .chip.on .tip {
  display: none;
}
.sname {
  font-weight: 500;
  color: var(--ink);
}
.iwait {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}
.iwork {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid var(--ink2);
  border-right-color: transparent;
  flex: none;
  transform: rotate(-45deg);
}
.inum {
  margin-left: -3px;
}
.spanel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px;
  margin: 0 -12px;
  background: var(--surface);
  border-radius: 12px;
  font-size: 16.5px;
}
.spanel.first {
  border-top-left-radius: 0;
}
.spanel .step {
  padding: 3px 0;
}
.inbox-entry + .inbox-entry {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.sitem {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.sstate {
  flex: none;
  width: 76px;
  font-size: 13px;
  line-height: 25px;
  letter-spacing: .07em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink2);
}
.sstate.wait {
  color: var(--accent);
}
.sbody {
  flex: 1;
  min-width: 0;
  text-wrap: pretty;
}
.sdim {
  color: var(--ink2);
}
.home .cmd {
  display: inline;
  font-family: ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  font-size: 13.5px;
  background: var(--bg);
  padding: 2px 7px;
  border-radius: 6px;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.home .cmd:hover {
  background: var(--panel);
}

/* ---------- fronts ---------- */
.sub {
  color: var(--ink2);
  margin: -20px 0 30px;
}
.fronts {
  max-width: 760px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.ghead {
  display: inline-block;
  padding-bottom: 6px;
}
.grule {
  border-top: 1px solid var(--line);
  margin-bottom: 4px;
}
.home .frow {
  display: grid;
  grid-template-columns: minmax(0,250px) minmax(0,1fr);
  gap: 2px 24px;
  align-items: baseline;
  width: calc(100% + 24px);
  margin: 0 -12px;
  padding: 11px 12px;
  border-radius: 10px;
}
.home .frow:hover {
  background: var(--surface);
}
.fitem.is-open .frow {
  background: var(--surface);
  box-shadow: inset 0 0 0 1.5px var(--lineS);
}
.fname {
  font-size: 20px;
  line-height: 28px;
  font-weight: 500;
}
.fnext {
  color: var(--ink2);
  font-size: 16.5px;
  text-wrap: pretty;
}
.fdetail {
  padding: 12px 0 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 660px;
}
.fdetail .what {
  margin: 0 0 4px;
}
.sp-compact .frow {
  padding-top: 7px;
  padding-bottom: 7px;
}
.sp-compact .fronts {
  gap: 22px;
}

/* ---------- one front's page ---------- */
.lede {
  font-size: 20px;
  line-height: 1.45;
  max-width: 700px;
  margin: -16px 0 36px;
  text-wrap: pretty;
}
.fcat {
  margin: 0 0 2px;
}
.fgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(min(360px,100%),1fr));
  gap: 40px 64px;
  max-width: 1040px;
}
.fcol {
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-width: 0;
}
.fact {
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-wrap: pretty;
}
.deeper {
  display: flex;
  flex-direction: column;
}
.drow {
  padding: 9px 0;
  border-top: 1px solid var(--line);
  text-wrap: pretty;
}
.q {
  position: relative;
  padding-left: 16px;
  text-wrap: pretty;
}
.q::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .68em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--lineS);
}

/* ---------- view scrolling ---------- */
.has-sessions .wrap {
  overflow-x: visible;
}
body:has(.home[data-conversation-moving], .home[data-conversation-dragging], .session-tab-lifted) .scry-tooltip { visibility: hidden; }
.views {
  min-width: 0;
}
.home .wrap,
.home .days-scroll,
.home .session-scroll {
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: var(--lineS) transparent;
}
.home ::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
.home ::-webkit-scrollbar-track {
  background: transparent;
}
.home ::-webkit-scrollbar-thumb {
  background: var(--lineS);
  border-radius: 999px;
}
.v-days .wrap {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  overflow-y: hidden;
  padding: 16px 56px 36px;
}
.v-days .nav {
  flex: none;
}
.v-days .views {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}
.home .days-view {
  display: flex;
  flex-direction: column;
  flex: 1 1 0;
  min-height: 0;
  max-height: 100%;
}
.home .days-view > .h1 {
  flex: none;
}
.home .days-frame {
  display: flex;
  flex-direction: column;
  flex: 0 1 auto;
  min-height: 0;
}
.home .days-scroll {
  min-height: 0;
  max-height: 100%;
}
/* ---------- a quiet status line (prototype only: says what a link would open) ---------- */
.toastwrap {
  position: sticky;
  bottom: 22px;
  height: 0;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  pointer-events: none;
  z-index: 40;
}
.toast {
  background: var(--tipbg);
  color: var(--tipink);
  font-size: 14.5px;
  line-height: 1.4;
  padding: 9px 14px;
  border-radius: 10px;
  max-width: min(560px,88cqw);
  overflow-wrap: anywhere;
}

/* ---------- wide: the opened block sits beside the timeline, which never moves ---------- */
@container (min-width:900px) {
  .wrap {
    padding: 34px 56px 52px;
  }
  .det-beside .wrap {
    max-width: 1232px;
    margin-left: 0;
  }
  .det-beside.v-day .day {
    display: grid;
    grid-template-columns: var(--col) minmax(0,1fr);
    column-gap: 56px;
    grid-template-rows: repeat(12,auto) minmax(0,1fr);
  }
  .det-beside.v-day .timeline,
  .det-beside.v-day .item.is-open {
    display: contents;
  }
  .det-beside.v-day .item,
  .det-beside.v-day .is-open .row,
  .det-beside.v-day .below {
    grid-column: 1;
  }
  .det-beside.v-day .detail,
  .det-beside.v-day.t-rail .last .detail {
    grid-column: 2;
    grid-row: 1 / -1;
    align-self: start;
    padding: 26px 32px 30px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 18px;
  }
  .det-beside.v-day.t-rail .item .detail {
    background: var(--panel);
  }
  .det-beside.v-day .dhead {
    display: flex;
    gap: 16px;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 4px;
  }
  .dwhen {
    font-size: 15px;
    color: var(--ink2);
  }
  .dtitle {
    font-size: 24px;
    line-height: 1.25;
    font-weight: 500;
    margin: 2px 0 0;
    text-wrap: pretty;
  }
  .home .dclose {
    flex: none;
    width: 36px;
    height: 36px;
    margin: -6px -10px 0 0;
    border-radius: 50%;
    display: grid;
    place-content: center;
    font-size: 22px;
    line-height: 1;
    color: var(--ink2);
  }
  .home .dclose:hover {
    background: var(--surface);
    color: var(--ink);
  }
}

/* ---------- narrow: the column you park in a corner of the monitor ---------- */
@container (max-width:600px) {
  .home .wrap {
    --time-w: 52px;
    --dot-col: 24px;
    padding: 20px 22px 44px;
  }
  .home .chip {
    padding: 4px 10px;
    gap: 6px;
  }
  .home .nav {
    margin-bottom: 22px;
  }
  .pdots {
    display: none;
  }
  .home .h1 {
    font-size: 28px;
    margin-bottom: 18px;
  }
  .home .frow {
    grid-template-columns: minmax(0,1fr);
    padding: 9px 12px;
  }
  .kv {
    grid-template-columns: minmax(0,1fr);
  }
  .sub {
    margin-top: -12px;
    margin-bottom: 22px;
  }
  .lede {
    font-size: 19px;
    margin-top: -8px;
    margin-bottom: 26px;
  }
  .home .sitem {
    flex-wrap: wrap;
    gap: 0 12px;
  }
  .home .sstate {
    width: 100%;
  }
  .home .dtitle {
    font-size: 26px;
  }
}
/* ---------- phone: touch-sized targets ---------- */
@container (max-width:430px) {
  .home .tab {
    min-height: 44px;
    padding: 8px 16px;
  }
  .home .wrap .item.k-block {
    --tp: 11px;
  }
  .home .wrap .item.k-small {
    --tp: 10px;
  }
  .title {
    font-size: 19px;
  }
  .home .step {
    padding: 10px 0;
  }
  .home .chip,
  .home .pbtn,
  .home .back {
    min-height: 44px;
  }
  .home .chip {
    padding: 4px 8px;
    font-size: 15px;
  }
  .home .shelf {
    gap: 0;
    justify-content: space-between;
  }
  .home .frow {
    padding: 12px;
  }
}

/* Live content uses the prototype's shape with consumer-owned Markdown styles. */
.home {
  --slide: 240ms;
  --sx: 48px;
}
.contents {
  display: contents;
}
.md {
  min-width: 0;
  overflow-wrap: anywhere;
}
.md > :first-child {
  margin-top: 0;
}
.md > :last-child {
  margin-bottom: 0;
}
.md p {
  margin: 0 0 10px;
}
.md ul,
.md ol {
  margin: 4px 0 12px;
  padding-left: 21px;
}
.md li {
  margin: 4px 0;
}
.md li ul,
.md li ol {
  margin-bottom: 4px;
}
.md h1,
.md h2,
.md h3,
.md h4,
.md h5,
.md h6 {
  font-size: 19px;
  line-height: 1.4;
  font-weight: 500;
  margin: 20px 0 7px;
}
.md blockquote {
  border-left: 2px solid var(--lineS);
  margin: 10px 0;
  padding-left: 14px;
  color: var(--ink2);
}
.md .font-bold {
  font-weight: 600;
}
.md .italic {
  font-style: italic;
}
.md code,
.md pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .82em;
}
.md .inline-code {
  border-radius: 5px;
  padding: 1px 4px;
  background: var(--surface);
}
.md pre {
  white-space: pre-wrap;
  padding: 10px 12px;
  background: var(--surface);
  border-radius: 8px;
}
.md table {
  border-collapse: collapse;
  font-size: 15px;
}
.md th,
.md td {
  border-bottom: 1px solid var(--line);
  text-align: left;
  padding: 6px 10px;
  vertical-align: top;
}
.md .scry-markdown-table-scroll {
  max-width: 100%;
  overflow-x: auto;
}
.md-inline {
  display: inline;
}
.md-inline p {
  display: inline;
}
.home a:focus-visible,
.home summary:focus-visible,
.home [tabindex]:focus-visible,
.home textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.home a {
  color: var(--accent);
}
.home a.invalid-link {
  color: var(--ink2);
}
.home button:disabled,
.home input:disabled {
  cursor: wait;
  opacity: .65;
}
.home .step-expand {
  flex: none;
  min-width: 22px;
  min-height: 26px;
  display: grid;
  place-content: center;
}
.sheadtext[role=button] {
  cursor: pointer;
  flex: 1;
}
.notes-fact {
  margin: 16px 0 4px;
}
.notes-fact .padtext.tall {
  min-height: 86px;
}
.note-state {
  display: flex;
  gap: 12px;
  align-items: baseline;
  min-height: 20px;
  font-size: 13.5px;
}
.authored-section {
  margin-top: 18px;
}
.authored-section summary {
  cursor: pointer;
  min-height: 32px;
}
.authored-section .md {
  padding-top: 5px;
}
.front-today {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.front-today .md {
  color: var(--ink2);
}
.deeper .md > ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}
.deeper .md > ul > li {
  border-top: 1px solid var(--line);
  padding: 9px 0;
  margin: 0;
}
/* ---------- folding rows and their shared cards ---------- */
.home .ic {
  color: var(--icon);
  stroke-width: 1.45;
}
.home .gear.on .ic {
  color: var(--ink);
}
.schev {
  border-color: var(--icon);
}
.k-block .dot {
  border-radius: 3px;
}
.k-block.is-now .dot {
  border-radius: 4px;
}
.nums .k-block .dot {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border-width: 1.5px;
  display: grid;
  place-content: center;
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
  color: var(--block-number);
  font-variant-numeric: tabular-nums;
}
.nums .k-block.is-past .dot {
  background: var(--tint);
  border-color: var(--mid);
}
.nums .k-block.is-now .dot {
  color: var(--onacc);
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--tint);
}
.block-card {
  position: relative;
  min-width: 0;
  padding: 0 12px;
  border-radius: 10px;
}
.home .bhead {
  display: flex;
  width: 100%;
  padding: var(--tp) 0;
  line-height: var(--lh);
}
.block-titleline {
  display: block;
  min-width: 0;
  padding-right: 84px;
}
.item.is-open .block-card {
  background: var(--card-fill);
  box-shadow: inset 0 0 0 1.5px var(--lineS);
  padding-bottom: 14px;
  margin-bottom: 10px;
}
.home.t-rail .block-card .detail {
  background: none;
  padding: 2px 0 0;
}
.block-card .notes-fact {
  margin-top: 16px;
  margin-bottom: 0;
}
.block-card .note-state:has(.padhint:empty) {
  display: none;
}
.block-card .what {
  margin-top: 0;
}
.block-duration {
  color: var(--ink2);
  font-size: 15px;
  margin-bottom: 12px;
}
.ncnt {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  font-size: 15px;
  font-weight: 400;
  color: var(--ink2);
  margin-left: 10px;
  vertical-align: baseline;
  white-space: nowrap;
}
.ncnt .ic {
  transform: translateY(2.5px);
}
.home .openp {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 9px 0 11px;
  border-radius: 999px;
  color: var(--accent);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  z-index: 2;
}
.block-card > .openp,
.block-card > .row-value {
  position: absolute;
  right: 10px;
  top: calc(var(--tp) + var(--lh) / 2 - 15px);
}
.row-value {
  height: 30px;
  display: inline-flex;
  align-items: center;
  font-size: 15px;
  color: var(--ink2);
  white-space: nowrap;
}
.home .item.is-open .block-card > .openp,
.home .fitem.is-open > .openp,
.home .ri.is-open .openp,
.home .block-card:focus-within > .openp,
.home .fitem:focus-within > .openp,
.home .ri:focus-within .openp {
  opacity: 1;
  pointer-events: auto;
}
.item.is-open .block-card > .row-value,
.block-card:focus-within > .row-value,
.ri.is-open .row-value,
.ri:focus-within .has-page .row-value {
  visibility: hidden;
}
.fitem {
  position: relative;
}
.home .frow {
  grid-template-columns: minmax(0,1fr);
}
.home .fmain {
  width: 100%;
  padding-right: 84px;
  min-width: 0;
}
.fitem > .openp {
  position: absolute;
  right: 2px;
  top: 10px;
}
.fitem.is-open {
  background: var(--card-fill);
  box-shadow: inset 0 0 0 1.5px var(--lineS);
  border-radius: 10px;
  margin: 0 -12px;
  padding: 0 12px 14px;
}
.home .fitem.is-open .frow {
  background: none;
  box-shadow: none;
}
.fitem.is-open > .openp {
  right: 10px;
}
.fitem.is-open .fdetail {
  padding: 2px 0 0;
}
.front-page .fgrid {
  display: block;
  max-width: 700px;
}
.front-page .notes-fact {
  margin: 0;
}
.fold-section {
  min-width: 0;
}
.home .foldrow {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
}
.go-deeper {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.foldrow .lblr {
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--ink2);
}
.foldrow .sp {
  flex: 1;
}
.fold-chevron {
  width: 7px;
  height: 7px;
  margin-right: 5px;
  border: solid var(--icon);
  border-width: 0 1.45px 1.45px 0;
  transform: translateY(-2px) rotate(45deg);
}
.fold-section.is-open > .foldrow .fold-chevron {
  transform: translateY(2px) rotate(-135deg);
}
.roadmap {
  display: flex;
  flex-direction: column;
  margin-top: 4px;
}
.ri {
  position: relative;
}
.ri:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 2px;
  top: 31px;
  height: 20px;
  width: 4px;
  background: radial-gradient(circle at center,var(--lineS) .9px,transparent
    1.4px) 0 0 / 4px 7px repeat-y;
}
.ri.is-open {
  background: var(--card-fill);
  box-shadow: inset 0 0 0 1.5px var(--lineS);
  border-radius: 10px;
  margin: 2px -12px;
  padding: 0 12px 16px;
}
.ri.is-open::after {
  display: none;
}
.rrow {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 10px 6px 12px;
  margin: 0 -12px;
  border-radius: 10px;
}
.home .rmain {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
  min-height: 32px;
}
.rrow.has-value .rmain {
  padding-right: 84px;
}
.rrow > .row-value {
  position: absolute;
  right: 10px;
  top: 7px;
}
.rrow .openp {
  position: absolute;
  right: 10px;
  top: 7px;
}
.rdot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lineS);
  flex: none;
}
.ri.cur .rdot {
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--tint);
}
.rt {
  font-size: 18.5px;
  line-height: 26px;
  min-width: 0;
  text-wrap: pretty;
}
.ri.cur .rt {
  font-weight: 500;
}
.rmnow {
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--accent);
}
.rbody {
  padding: 2px 0 0 20px;
  font-size: 16.5px;
  text-wrap: pretty;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.go-deeper > .deeper {
  padding-bottom: 12px;
}
@media (hover: hover) {
  .block-card:hover,
  .ri:not(.is-open):hover .rrow {
    background: var(--surface);
  }
  .home .block-card:hover > .openp,
  .home .fitem:hover > .openp,
  .home .ri:hover .openp {
    opacity: 1;
    pointer-events: auto;
  }
  .home .item:not(.is-open) .block-card:hover > .openp,
  .home .fitem:not(.is-open):hover > .openp,
  .home .ri:not(.is-open):hover .openp {
    background: var(--open-fill);
  }
  .home .item:not(.is-open) .block-card:hover > .openp:hover,
  .home .fitem:not(.is-open):hover > .openp:hover,
  .home .ri:not(.is-open):hover .openp:hover,
  .home .openp:hover {
    background: var(--open-hot);
    color: var(--open-ink);
  }
  .block-card:hover > .row-value,
  .ri:hover .has-page .row-value {
    visibility: hidden;
  }
}
@container (max-width: 430px) {
  .home .openp {
    height: 44px;
    padding: 0 4px 0 14px;
  }
  .block-card > .openp {
    top: calc(var(--tp) + var(--lh) / 2 - 22px);
  }
  .fitem > .openp {
    top: 5px;
  }
  .rrow .openp {
    top: 0;
  }
}
.error-line {
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: var(--accent);
  padding: 10px 0 18px;
  font-size: 15px;
  overflow-wrap: anywhere;
}
.empty-state {
  color: var(--ink2);
  padding: 12px 0 22px;
}
@container (max-width: 430px) {
  .home .nav {
    gap: 6px;
  }
  .home .gear {
    width: 36px;
  }
  .home .step-expand {
    min-width: 30px;
    min-height: 32px;
  }
}

/* ---------- filed entries and header capture ---------- */
.home {
  --month-ink: #866758;
}
.home.th-dark {
  --month-ink: #B49889;
}
.capture-pop {
  position: absolute;
  right: 4px;
  top: 46px;
  z-index: 35;
  width: min(372px, calc(100cqw - 44px));
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 10px 30px rgb(40 20 10 / 12%);
}
.home .field {
  font: inherit;
  font-size: 16.5px;
  line-height: 1.45;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--lineS);
  border-radius: 12px;
  padding: 8px 12px;
  min-height: 44px;
  width: 100%;
  min-width: 0;
  resize: vertical;
  display: block;
}
.home .field::placeholder {
  color: var(--ink2);
  opacity: 1;
}
.nentry {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 2px 0 12px;
}
.capture-pop .nentry {
  margin-bottom: 0;
}
.logrow {
  display: flex;
  gap: 8px;
  align-items: center;
}
.logrow .sp {
  flex: 1;
}
.home .nadd {
  flex: none;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 500;
  font-size: 16px;
}
.home .nadd.pri {
  background: var(--accent);
  color: var(--onacc);
}
.home button:disabled {
  cursor: default;
  opacity: .55;
}
.home .trash {
  min-width: 30px;
  min-height: 38px;
  color: var(--icon);
  display: grid;
  place-content: center;
}
.folds2 {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 14px;
}
.nfrow {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
}
.home .entry-fold {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  flex: none;
}
.entry-triangle {
  width: 0;
  height: 0;
  border-left: 6px solid var(--icon);
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  margin-left: 2px;
}
.entry-section.is-open .entry-triangle,
.push-routine-fold details[open] .entry-triangle {
  transform: rotate(90deg);
}
.ncount {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: .04em;
}
.home .nicb {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-content: center;
  color: var(--icon);
  flex: none;
  opacity: 0;
  pointer-events: none;
}
.entry-section.is-open .nicb,
.nfrow:focus-within .nicb {
  opacity: 1;
  pointer-events: auto;
}
.home .nicb.on,
.home .nicb:hover {
  background: var(--surface);
}
.nprev {
  font-size: 15.5px;
  color: var(--ink2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex: 1;
  margin-left: 6px;
}
.entry-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 10px 0;
}
.filed-entry {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  column-gap: 12px;
  font-size: 16.5px;
  text-wrap: pretty;
}
.entry-time {
  font-size: 15px;
  color: var(--ink2);
  font-variant-numeric: tabular-nums;
}
.editable-text {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.editable-text > .md,
.editable-editor {
  flex: 1;
  min-width: 0;
}
.home .editable-trigger {
  flex: none;
  color: var(--ink2);
  font-size: 13px;
  opacity: 0;
  margin-left: auto;
}
.editable-text:hover .editable-trigger,
.editable-text:focus-within .editable-trigger {
  opacity: 1;
}
.editable-text:focus-visible {
  outline: 1px solid var(--ink2);
  outline-offset: 3px;
  border-radius: 3px;
}
.editable-editor {
  display: block;
}
.editable-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.editable-editor .field {
  display: block;
  width: 100%;
  box-sizing: border-box;
  resize: vertical;
}
@media (hover: none) {
  .home .editable-trigger { opacity: 1; }
}
.home .log-plan-title {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 28px;
  font-weight: 500;
}
.fold-chevron.up {
  transform: translateY(2px) rotate(-135deg);
}
.original-plan {
  margin-top: 8px;
  padding: 10px 12px;
  background: var(--surface);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.original-block {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 12px;
  font-size: 15.5px;
}
.original-block .link {
  color: var(--ink2);
  font-weight: 400;
}

/* ---------- named buckets, explicit slots, and time editing ---------- */
.bucket-day .timeline .item.last:not(.k-stop) .row,
.has-stop .timeline .item.last:not(.k-stop) .row {
  background-size: 2px 100%;
}
.picker-content {
  padding: var(--tp) 12px 22px;
  min-width: 0;
}
.home .picker-title {
  font-size: 20px;
  line-height: 28px;
  font-weight: 500;
}
.next-picker:not(.is-now) .picker-title {
  color: var(--ink2);
}
.picker-body {
  margin-top: 16px;
}
.buckets {
  width: 100%;
}
.buckets .contents {
  display: contents;
}
.buckets .segb {
  min-width: 0;
  text-wrap: pretty;
}
.candidates {
  display: flex;
  flex-direction: column;
  margin: 8px -12px 0;
}
.candidate {
  padding: 9px 12px;
  border-radius: 10px;
  position: relative;
}
.candidate.is-open {
  background: var(--card-fill);
  box-shadow: inset 0 0 0 1.5px var(--lineS);
  padding-bottom: 14px;
  margin: 2px 0;
}
.candidate-head {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.home .candidate-title {
  min-height: 30px;
  flex: 1;
  min-width: 0;
  padding-right: 84px;
  font-size: 18px;
  font-weight: 500;
  line-height: 26px;
}
.candidate-duration {
  position: absolute;
  right: 0;
  top: 3px;
  font-size: 15px;
  color: var(--ink2);
  white-space: nowrap;
}
.candidate .openp {
  position: absolute;
  right: -2px;
  top: 0;
}
.candidate.is-open .row-value {
  visibility: hidden;
}
.candidate-why {
  font-size: 16.5px;
  line-height: 25px;
  color: var(--ink2);
  text-wrap: pretty;
}
.candidate-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
  font-size: 16.5px;
}
.candidate-body .nadd {
  align-self: flex-end;
  min-height: 40px;
  padding: 0 22px;
}
.k-slot .dot {
  width: 11px;
  height: 11px;
  border-radius: 3px;
  border: 1.5px dashed var(--lineS);
  background: var(--bg);
}
.k-slot .title {
  color: var(--ink2);
}
.k-fixed .title,
.k-fixed .time {
  color: var(--ink);
}
.k-small.k-fixed .dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--ink2);
  transform: rotate(45deg);
}
.k-stop .dot {
  width: 14px;
  height: 3px;
  border-radius: 2px;
  border: 0;
  background: var(--lineS);
}
.k-stop .title {
  color: var(--ink);
  font-weight: 500;
}
.k-stop .time {
  color: var(--ink);
}
.mobile-time {
  display: none;
}
.home .timebutton {
  color: inherit;
  font: inherit;
}
.time-editor {
  position: relative;
  z-index: 8;
}
.home .timefield {
  font: inherit;
  width: 58px;
  padding: 2px 6px;
  margin: -3px -7px;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--accent);
  border-radius: 8px;
  font-variant-numeric: tabular-nums;
}
.time-pop {
  position: absolute;
  left: -7px;
  top: 35px;
  width: max-content;
  max-width: min(360px, 80cqw);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  color: var(--ink);
  font-size: 15px;
  font-weight: 400;
  line-height: 24px;
  box-shadow: 0 10px 30px rgb(40 20 10 / 12%);
}
.move-following {
  display: flex;
  align-items: center;
  gap: 10px;
}
.time-error {
  flex-basis: 100%;
  white-space: normal;
  color: var(--accent);
}
.home .time-cancel {
  font-size: 14px;
}

/* ---------- Timeline: authored dates, pinned month, and scroll fade ---------- */
.days-frame {
  position: relative;
}
.days-scroll {
  overflow-y: auto;
  overflow-x: visible;
  padding-inline-end: 14px;
  max-height: calc(100dvh - 220px);
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

/* Daily stays quiet until an authored wake time makes a reminder relevant. */
.daily-marker {
  display: inline-flex;
  width: 14px;
  height: 14px;
  align-items: center;
  justify-content: center;
  visibility: hidden;
}
.home .daily-marker .ic {
  color: inherit;
}
.daily-complete .daily-marker,
.daily-amber .daily-marker,
.daily-orange .daily-marker,
.daily-red .daily-marker {
  visibility: visible;
}
.daily-complete .daily-marker { color: var(--ink2); }
.daily-amber .daily-marker { color: #A1781D; }
.daily-orange .daily-marker { color: #B85C26; }
.daily-red .daily-marker { color: #B54338; }
.th-dark .daily-amber .daily-marker { color: #DAB65A; }
.th-dark .daily-orange .daily-marker { color: #EEA36E; }
.th-dark .daily-red .daily-marker { color: #EF9183; }
.days-view {
  --time-w: 56px;
  --dot-col: 24px;
}
.days-rail {
  padding-top: 0;
  padding-bottom: 20px;
}
.day-divider {
  min-height: 40px;
  padding-top: 16px;
  position: relative;
}
.day-divider:first-child {
  padding-top: 0;
  min-height: 28px;
}
.day-month,
.pinned-month {
  position: relative;
  z-index: 3;
  width: max-content;
  background: var(--bg);
  padding-right: 8px;
  font-size: 15px;
  line-height: 24px;
  font-weight: 500;
  color: var(--month-ink);
  white-space: nowrap;
}
.pinned-month {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: auto;
  height: min(28px, 100%);
  overflow: hidden;
  z-index: 5;
}
.days-fade {
  position: absolute;
  top: min(28px, 100%);
  left: 0;
  right: 0;
  height: clamp(0px, calc(100% - 28px), 48px);
  z-index: 4;
  background: linear-gradient(var(--bg), transparent);
  opacity: 0;
  pointer-events: none;
}
.days-frame.has-above .days-fade {
  opacity: 1;
}
.day-date {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  width: 51px;
}
.day-date .weekday {
  font-size: 13.5px;
  font-weight: 400;
}
.day-card {
  position: relative;
  min-width: 0;
  padding: 0 12px 12px;
  border-radius: 10px;
}
.home .day-head {
  display: block;
  min-width: 0;
  width: 100%;
  text-wrap: pretty;
  padding: var(--tp) 84px 0 0;
  line-height: var(--lh);
}
.day-card > .openp {
  position: absolute;
  right: 8px;
  top: calc(var(--tp) + var(--lh) / 2 - 15px);
}
.day-summary,
.day-calendar {
  color: var(--ink2);
  font-size: 16.5px;
  line-height: 25px;
}
.day-item .dot {
  border-radius: 50%;
}
.day-item.is-open .day-card {
  background: var(--card-fill);
  box-shadow: inset 0 0 0 1.5px var(--lineS);
}
.day-item.later .row {
  background: none;
  position: relative;
}
.day-item.later .row::before {
  content: "";
  position: absolute;
  left: calc(var(--railx) - 1px);
  top: 0;
  bottom: 0;
  width: 4px;
  background: radial-gradient(circle at center, var(--lineS) 1.1px, transparent
    1.6px) 0 0 / 4px 9px repeat-y;
}
.day-item.later .dotc {
  position: relative;
  z-index: 1;
}
.day-blocks {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 16.5px;
}
.day-block-line {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 10px;
}
.day-habits {
  display: flex;
  flex-direction: column;
  gap: 3px;
  color: var(--ink2);
}
@media (hover: hover) {
  .nfrow:hover .nicb {
    opacity: 1;
    pointer-events: auto;
  }
  .candidate:hover {
    background: var(--surface);
  }
  .home .candidate:hover .openp,
  .home .day-card:hover .openp {
    opacity: 1;
    pointer-events: auto;
  }
  .home .candidate:not(.is-open):hover .openp,
  .home .day-item:not(.is-open) .day-card:hover .openp {
    background: var(--open-fill);
  }
  .home .candidate .openp:hover,
  .home .day-card .openp:hover {
    background: var(--open-hot);
    color: var(--open-ink);
  }
  .candidate.has-page:hover .row-value {
    visibility: hidden;
  }
  .day-item:not(.is-open) .day-card:hover {
    background: var(--surface);
  }
}
.home .candidate.is-open .openp,
.home .day-item.is-open .openp,
.home .candidate:focus-within .openp,
.home .day-card:focus-within .openp {
  opacity: 1;
  pointer-events: auto;
}
.candidate.has-page:focus-within .row-value {
  visibility: hidden;
}
@container (max-width: 430px) {
  .desktop-time {
    display: none;
  }
  .mobile-time {
    display: inline;
  }
  .home .tabs {
    gap: 2px;
  }
  .home .tab {
    padding: 8px 11px;
  }
  .home .nicb {
    opacity: 1;
    pointer-events: auto;
  }
  .candidate .openp {
    top: -7px;
  }
  .day-card > .openp {
    top: calc(var(--tp) + var(--lh) / 2 - 22px);
  }
  .nentry .nadd {
    padding: 0 12px;
    font-size: 15px;
  }
}
.action-error {
  color: var(--accent);
  font-size: 15px;
}

/* ---------- pushes ---------- */
.push-strip-timeline {
  flex: none;
  min-height: 0;
  max-height: 58%;
  overflow-y: auto;
  scrollbar-gutter: stable;
  padding: 0 14px 6px 0;
  border-bottom: 1px solid var(--line);
  margin: 0 0 9px;
}
.home .days-view:has(.push-strip) > .h1 {
  margin-bottom: 10px;
}
.day-view:has(.push-strip) > .h1 {
  margin-bottom: 12px;
}
.push-strip-today {
  margin-bottom: 12px;
}
.push-disclosure {
  display: grid;
  grid-template-columns: var(--time-w) var(--dot-col) minmax(0, 1fr);
  align-items: start;
}
.push-disclosure.divider {
  display: block;
  grid-column: 3;
  padding-bottom: 3px;
}
.push-kind {
  grid-column: 1 / 3;
  padding: 9px 0;
}
.push-disclosure.divider .push-kind {
  display: none;
}
.push-fold {
  grid-column: 3;
  min-width: 0;
}
.push-disclosure.is-open .push-fold {
  margin: 4px 0;
  border-radius: 10px;
  background: var(--card-fill);
  box-shadow: inset 0 0 0 1.5px var(--lineS);
}
.push-fold-header {
  display: flex;
  gap: 8px;
  align-items: baseline;
}
.home .push-toggle {
  display: flex;
  flex: 1;
  min-width: 0;
  align-items: baseline;
  gap: 10px;
  padding: 4px 0 4px 12px;
  line-height: 26px;
}
.push-disclosure.is-open .push-toggle {
  padding-top: 7px;
  padding-bottom: 2px;
}
.push-title {
  min-width: 0;
  font-size: 18px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.is-open .push-title {
  white-space: normal;
  overflow-wrap: anywhere;
}
.push-disclosure.secondary .push-title,
.push-disclosure.is-upcoming .push-title,
.push-disclosure.divider:not(.is-open) .push-title {
  color: var(--month-ink);
}
.push-disclosure.secondary:not(.is-open) .push-title {
  font-size: 16.5px;
  font-weight: 400;
}
.push-toggle:hover .push-title {
  color: var(--accent);
}
.push-timing {
  margin-left: auto;
  flex: none;
  white-space: nowrap;
  color: var(--ink2);
  font-size: 14.5px;
}
.push-disclosure.is-open .push-timing,
.push-disclosure.is-open .push-divider-kind,
.push-disclosure.is-open .push-divider-rule,
.push-disclosure:not(.divider) .push-divider-kind,
.push-disclosure:not(.divider) .push-divider-rule {
  display: none;
}
.push-disclosure.divider:not(.is-open) .push-title {
  font-size: 15.5px;
}
.push-divider-kind {
  flex: none;
}
.push-divider-rule,
.timeline-push-end-rule {
  flex: 1;
  min-width: 8px;
  height: 1px;
  align-self: center;
  background: var(--line);
}
.home .push-open {
  flex: none;
  padding: 4px 12px 4px 3px;
  font-size: 15.5px;
  white-space: nowrap;
}
.push-card {
  padding: 0 12px 12px;
  font-size: 16.5px;
  line-height: 25px;
}
.push-meta,
.push-milestone-date,
.push-item-detail {
  color: var(--ink2);
}
.push-meta {
  margin-top: 2px;
}
.push-group {
  margin-top: 12px;
}
.push-group > h2 {
  margin: 0 0 3px;
}
.push-list {
  padding: 0;
  margin: 0;
  list-style: none;
}
.push-list > li {
  position: relative;
  padding-left: 14px;
}
.push-list > li::before {
  content: "";
  position: absolute;
  left: 1px;
  top: .66em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--mid);
}
.push-card-dates:not(:empty) {
  margin-top: 10px;
}
.push-milestone-line {
  display: flex;
  align-items: baseline;
  gap: 9px;
  font-size: 16.5px;
  line-height: 25px;
}
.push-milestone-date {
  white-space: nowrap;
}
.push-marker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 9px;
  height: 9px;
  flex: none;
  color: var(--accent);
}
.dotc .push-marker {
  width: 12px;
  height: 12px;
}
.push-marker::before {
  content: "";
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  border: 1.5px solid currentColor;
  border-radius: 2px;
  background: var(--bg);
  transform: rotate(45deg);
}
.dotc .push-marker::before {
  border-width: 2px;
  border-radius: 3px;
}
.push-marker.final::before {
  background: var(--accent);
}
.push-marker.task {
  color: var(--lineS);
}
.push-marker.task::before {
  transform: none;
}
.push-marker .tip {
  display: block;
  visibility: hidden;
  top: auto;
  bottom: calc(100% + 5px);
  left: -8px;
}
@media (hover: hover) {
  .push-marker:hover .tip {
    visibility: visible;
    transition: visibility 0s 100ms;
  }
}
.push-dated-row .dotc {
  position: relative;
}
.push-dated-row .push-item,
.push-undated-row .push-item {
  min-width: 0;
  padding: var(--tp) 12px;
}
.push-dated-row.is-final .push-item {
  background: var(--tint);
  border-radius: 10px;
}
.push-dated-row.is-final .time,
.push-dated-row.is-now .time {
  color: var(--accent);
  font-weight: 600;
}
.push-item-head {
  display: flex;
  gap: 10px;
  align-items: baseline;
}
.push-item-title {
  font-size: 18px;
  line-height: 26px;
  font-weight: 500;
  text-wrap: pretty;
  overflow-wrap: anywhere;
}
.days-rail .push-item-title {
  font-size: 20px;
}
.push-item-detail {
  font-size: 16.5px;
  line-height: 25px;
  text-wrap: pretty;
}
.timeline-push-message {
  grid-column: 3;
  min-width: 0;
  padding: 4px 12px;
  color: var(--ink2);
  font-size: 15.5px;
}
.timeline-push-end .timeline-push-message {
  display: flex;
  gap: 10px;
  align-items: baseline;
  padding-block: 8px;
  font-size: 14px;
  color: var(--month-ink);
}
.timeline-push-end .time {
  padding-block: 8px;
  line-height: 21px;
}
.timeline-push-end-label,
.timeline-push-end .timeline-push-message > :last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.timeline-push-end .timeline-push-message > :last-child {
  max-width: 50%;
}
.timeline-push-gap {
  --railx: calc(var(--time-w) + var(--dot-col) / 2 - 2px);
}
.t-rail .timeline-push-gap .row {
  background: radial-gradient(circle, var(--lineS) 1.1px, transparent 1.6px)
    repeat-y var(--railx) 0 / 4px 9px;
}
.t-rail .days-rail .push-dated-row:last-child .row,
.t-rail .push-page-dates .push-dated-row:last-child .row {
  background-size: 2px var(--doty);
}
.push-page > .h1 {
  margin-bottom: 8px;
  font-size: 30px;
}
.push-page > .md {
  font-size: 18px;
}
.push-page > .push-meta {
  font-size: 16.5px;
}
.push-page > .push-group,
.push-page .notes-fact,
.push-page .push-file {
  margin-top: 24px;
}
.push-page .push-list > li {
  line-height: 26px;
}
.push-list > .push-routine-fold {
  padding-left: 0;
}
.push-list > .push-routine-fold::before {
  content: none;
}
.push-routine-fold > details {
  border-radius: 10px;
  margin-inline: -8px;
  padding-inline: 8px;
}
.home .push-routine-fold .foldrow {
  min-height: 34px;
  gap: 8px;
  cursor: pointer;
  padding: 3px 10px 3px 1px;
}
.push-routine-fold summary::-webkit-details-marker {
  display: none;
}
.push-routine-fold .entry-triangle {
  flex: none;
  margin-left: 0;
  border-left-width: 5px;
  border-left-color: var(--mid);
  border-block-width: 3px;
}
.push-routine-fold details[open] > summary {
  font-weight: 500;
}
.push-routine-fold .push-item-detail {
  padding: 0 10px 8px 14px;
}
@media (hover: hover) {
  .push-routine-fold details:not([open]):hover {
    background: var(--surface);
  }
}
@media (prefers-reduced-motion: no-preference) {
  .push-routine-fold .entry-triangle {
    transition: transform 140ms ease;
  }
}
.push-page-dates > h2 {
  margin-bottom: 6px;
}
.home .push-undated-row {
  background: none;
}
.push-undated-row .dotc {
  grid-column: 2;
}

@container (max-width: 600px) {
  .home.v-days .wrap {
    padding: 16px 18px 24px;
  }
  .push-disclosure.divider .push-divider-rule {
    display: none;
  }
  .home .push-disclosure.divider:not(.is-open) .push-toggle {
    gap: 7px;
  }
}
@container (max-width: 430px) {
  .home .days-view {
    --time-w: 51px;
    --dot-col: 22px;
  }
  .push-strip-timeline,
  .days-scroll {
    padding-inline-end: 4px;
  }
  .home .push-toggle,
  .home .push-open,
  .home .push-routine-fold .foldrow {
    min-height: 44px;
  }
  .home .push-toggle {
    align-items: center;
  }
  .push-fold-header {
    align-items: center;
    gap: 4px;
  }
  .push-kind {
    padding-block: 12px;
  }
  .push-title,
  .push-disclosure.divider:not(.is-open) .push-title {
    font-size: 16.5px;
  }
  .push-timing {
    font-size: 13.5px;
  }
}

/* ---------- checked-in conversations ---------- */
.session-strip {
  --session-band: color-mix(in oklab, var(--panel) 45%, var(--bg));
  /* Ian has not tuned these pulse values yet. */
  --session-pulse-duration: 2.4s;
  --session-glow-size: 3px;
  --session-glow-strength: 45%;
  position: relative;
  flex: none;
  min-width: 0;
  border-top: 1px solid var(--line);
  background: var(--session-band);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.session-bar {
  position: relative;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}
.session-inner {
  display: flex;
  align-items: center;
  gap: 2px;
  width: max-content;
  min-width: min(816px, 100%);
  max-width: 100%;
  margin: 0 auto;
  padding: 6px 10px 6px 12px;
}
.session-bar::before,
.session-bar::after { content: ""; position: absolute; left: 0; right: 0; height: 3px; z-index: 1; }
.session-bar::before { top: -2px; }
.session-bar::after { bottom: -2px; }
.home:not([data-conversation-card]) .session-bar:not([data-tab-dragging]):hover::before,
.home:not([data-conversation-card]) .session-bar:not([data-tab-dragging]):hover::after,
[data-conversation-dragging] .session-bar::before,
[data-conversation-dragging] .session-bar::after { background: var(--lineS); }
[data-conversation-dragging],
[data-conversation-dragging] * { cursor: row-resize !important; user-select: none; -webkit-user-select: none; }
[data-conversation-press] .conversation-frame { pointer-events: none; }
.session-tabs {
  display: flex;
  gap: 2px;
  flex: 1;
  min-width: 0;
}
.session-scroll {
  --session-fade-width: min(56px, 50%);
  --session-fade-left: 0px;
  --session-fade-right: 0px;
  display: flex;
  position: relative;
  gap: 2px;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  padding: 6px 0 6px 6px;
  margin: -6px 0 -6px -6px;
}
.session-scroll.has-clipped-left { --session-fade-left: var(--session-fade-width); }
.session-scroll.has-clipped-right { --session-fade-right: var(--session-fade-width); }
.session-scroll:is(.has-clipped-left, .has-clipped-right) {
  mask-image: linear-gradient(
    to right,
    transparent,
    #000 var(--session-fade-left),
    #000 calc(100% - var(--session-fade-right)),
    transparent
  );
}
.home .session-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  min-height: 38px;
  max-width: 180px;
  padding: 0 12px 0 10px;
  border-radius: 10px;
  color: var(--ink2);
  font-size: 15.5px;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.home .session-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.home .session-tab:hover { color: var(--ink); }
.home .session-tab[aria-selected="true"] {
  background: var(--surface);
  color: var(--ink);
  font-weight: 500;
}
.home .session-tab[data-session-status="waiting"] {
  color: var(--ink);
  font-weight: 500;
}
.home .session-tab[data-session-placeholder="true"] { padding-left: 12px; }
.session-tab-item { display: flex; align-items: center; flex: none; }
.session-controls {
  position: relative;
  display: flex;
  flex: none;
  gap: 2px;
  min-width: 106px;
  justify-content: flex-end;
}
.home .session-new,
.home .session-overflow {
  flex: none;
  min-height: 38px;
  border-radius: 10px;
  color: var(--ink2);
}
.home .session-new {
  width: 38px;
  display: grid;
  place-items: center;
}
.home .session-overflow { display: inline-flex; align-items: center; gap: 7px; padding: 0 10px; font-size: 15px; font-variant-numeric: tabular-nums; }
.home .session-new:hover,
.home .session-overflow:hover,
.home .session-overflow[aria-expanded="true"] { background: var(--surface); color: var(--ink); }
.home:has([data-tab-dragging]),
.home:has([data-tab-dragging]) * { cursor: grabbing !important; }
[data-tab-dragging] .session-scroll .session-tab-item { transition: translate var(--tab-settle); }
.session-tab-item[data-tab-lifted] > .session-tab { opacity: 0; }
.home .session-tab-lifted {
  position: absolute;
  z-index: 3;
  margin: 0;
  pointer-events: none;
  background: var(--panel);
  color: var(--ink);
  box-shadow: 0 0 0 1px var(--line), 0 8px 20px rgb(40 20 10 / 17%);
  transition: scale 140ms, opacity 140ms;
}
.home .session-tab-lifted[aria-selected="true"] { background: var(--panel); }
[data-tab-standby-hot] .session-tab-lifted { scale: .94; opacity: .9; }
.session-drag-slot,
.session-standby-well {
  position: absolute;
  pointer-events: none;
  border: 1.5px dashed var(--lineS);
  border-radius: 10px;
}
.session-drag-slot {
  opacity: .75;
  transition: left var(--tab-settle), opacity 140ms;
}
[data-tab-standby-hot] .session-drag-slot { opacity: 0; }
.session-controls > button { transition: opacity 140ms; }
.session-standby-well {
  z-index: 2;
  inset: 0;
  display: grid;
  align-items: center;
  justify-items: end;
  padding-right: 24px;
  color: var(--ink2);
  font-size: 15px;
  opacity: 0;
  transition: opacity 140ms, left 140ms, background-color 140ms, border-color 140ms;
}
[data-tab-standby] .session-controls > button { opacity: 0; pointer-events: none; }
[data-tab-standby] .session-standby-well { opacity: 1; }
[data-tab-standby-hot] .session-standby-well {
  left: -44px;
  border-style: solid;
  border-color: var(--accent);
  background: var(--tint);
  color: var(--accent);
  font-weight: 500;
}
@media (prefers-reduced-motion: reduce) {
  [data-tab-dragging] .session-scroll .session-tab-item,
  .session-drag-slot,
  .session-standby-well,
  .session-controls > button,
  .home .session-tab-lifted { transition: none; }
}
.session-label { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.session-status-slot { width: 16px; height: 16px; display: grid; place-items: center; flex: none; }
.session-mark { display: block; flex: none; }
.session-mark[hidden] { display: none; }
.session-mark.status-working { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.session-mark.status-idle { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--icon); opacity: .5; }
.session-mark.status-unknown { width: 10px; height: 10px; border-radius: 50%; border: 1.5px dashed var(--icon); }
.session-mark.status-closed { color: var(--icon); font-size: 13px; font-weight: 600; line-height: 16px; }
.session-mark.status-waiting {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--onacc);
  font: 700 13px/16px 'Jost', sans-serif;
  text-align: center;
  box-shadow: 0 0 0 4px var(--tint);
  animation: session-needs-you var(--session-pulse-duration) ease-in-out infinite;
}
@keyframes session-needs-you {
  0%, 100% { box-shadow: 0 0 0 4px var(--tint), 0 0 0 0 transparent; }
  50% { box-shadow: 0 0 0 4px var(--tint), 0 0 9px var(--session-glow-size) color-mix(in srgb, var(--accent) var(--session-glow-strength), transparent); }
}
@media (prefers-reduced-motion: reduce) {
  .session-mark.status-waiting { animation: none; }
}
.session-list-icon { width: 16px; height: 12px; border-block: 1.5px solid var(--icon); position: relative; }
.session-list-icon::after { content: ""; position: absolute; top: 4px; left: 0; right: 0; border-top: 1.5px solid var(--icon); }
.session-list {
  position: absolute;
  bottom: calc(100% + 6px);
  right: var(--session-list-right, 10px);
  z-index: 80;
  width: min(400px, calc(100vw - 20px));
  max-height: min(70dvh, 600px);
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 10px 30px #28140a1f;
}
.th-dark .session-list { box-shadow: 0 10px 30px #0006; }
.session-strip.is-open .session-list {
  top: 50px;
  bottom: auto;
  max-height: min(70dvh, calc(var(--conversation-height, 48dvh) - 12px));
}
.session-list-grab { display: none; }
.session-list-heading { display: flex; align-items: center; justify-content: space-between; padding: 6px 12px 6px 22px; flex: none; }
.session-list-rows { display: flex; flex-direction: column; padding: 0 10px 14px; overflow-y: auto; min-height: 0; }
.session-standby-group { flex: none; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 5px; }
.session-standby-group .session-list-heading { padding-left: 12px; }
.session-list-restore { display: block; text-align: right; color: var(--accent); }
.home .session-list-row { display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; column-gap: 12px; align-items: center; min-height: 60px; padding: 8px 12px; border-radius: 12px; width: 100%; flex: none; font: inherit; color: inherit; text-decoration: none; cursor: pointer; }
.home .session-list-row:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.home .session-list-row[aria-current="true"] { background: var(--surface); }
.home .session-list-row:hover { background: var(--surface); }
.session-list-text { display: flex; flex-direction: column; min-width: 0; text-align: left; }
.session-list-label { font-size: 17px; line-height: 24px; }
[aria-current="true"] .session-list-label,
[data-session-status="waiting"] .session-list-label { font-weight: 500; }
.session-list-description { font-size: 14.5px; line-height: 20px; color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
[data-session-status="waiting"] .session-list-description { color: var(--accent); }
.home-session-tooltip { white-space: pre-line; }
.session-list-agents { display: block; text-align: right; }
.session-list-age { font-size: 13.5px; color: var(--ink2); font-variant-numeric: tabular-nums; white-space: nowrap; align-self: start; padding-top: 3px; }
@media (max-width: 430px) {
  .session-controls { min-width: 112px; }
  .session-scroll { container-type: inline-size; }
  .home .session-scroll .session-tab { max-width: min(180px, 100cqi); }
  .home .session-new { min-height: 44px; width: 44px; }
  .home .session-overflow { display: inline-flex; min-height: 44px; }
  .home .session-tab { min-height: 44px; }
  .session-inner { padding: 4px 8px 4px 12px; }
  .session-list,
  .session-strip.is-open .session-list { position: fixed; inset: auto 0 0; width: 100%; max-height: 75dvh; border: 0; border-radius: 18px 18px 0 0; background: var(--session-band); box-shadow: 0 -1px 0 var(--line), 0 -14px 44px #28140a24; padding-bottom: env(safe-area-inset-bottom, 0px); }
  .th-dark .session-list { box-shadow: 0 -1px 0 var(--line), 0 -14px 44px #0006; }
  .session-list-grab { display: block; width: 36px; height: 4px; border-radius: 2px; background: var(--lineS); opacity: .7; margin: 8px auto 2px; flex: none; }
  .session-list-rows { padding-bottom: 26px; }
}
.session-error {
  display: flex;
  align-items: baseline;
  gap: 12px;
  max-width: 816px;
  margin: 0 auto;
  padding: 0 28px 7px;
  font-size: 14px;
  color: var(--ink2);
}
.session-conversation {
  display: flex;
  flex-direction: column;
  height: var(--conversation-height, min(48dvh, 540px));
  min-height: 0;
  overflow: hidden;
  transition: height var(--conversation-snap, 0ms) cubic-bezier(.2,.8,.2,1);
  border-top: 1px solid var(--line);
}
.conversation-frame[hidden] {
  display: none;
}
.session-conversation[hidden] { height: 0; border-top-width: 0; }
.conversation-pages {
  flex: 1;
  min-height: 0;
  background: var(--session-band);
}
.conversation-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: var(--session-band);
}
/* Worldview's module applies its compact palette before the load event. */
.conversation-frame[data-loading] { visibility: hidden; }
  [data-conversation-card] .session-strip.is-open {
    position: fixed;
    inset: max(64px, 12dvh) 0 0;
    z-index: 60;
    display: flex;
    flex-direction: column;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -12px 48px #0002;
  }
  [data-conversation-card] .session-strip.is-open .session-conversation {
    flex: 1;
    min-height: 0;
    height: auto;
    max-height: none;
  }
  [data-conversation-card] .session-strip.is-open .session-inner {
    flex: none;
    box-sizing: border-box;
  }
  [data-conversation-card] .session-conversation[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) {
  .session-conversation { transition: none; }
}
@media (max-width: 430px) {
  .home-header { padding-left: 22px; padding-right: 22px; }
}
/* scry appends its shared tooltip to body, outside the Home palette scope. */
.scry-tooltip {
  --tooltip-max-w: 320px;
  position: fixed;
  pointer-events: none;
  z-index: 90;
  max-width: min(var(--tooltip-max-w), calc(100vw - 16px));
  padding: 9px 13px;
  border-radius: 10px;
  font: 15px/1.4 'Jost', 'Futura', 'Century Gothic', 'Avenir Next', system-ui, sans-serif;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  background: var(--home-tipbg, #38231A);
  color: var(--home-tipink, #FDF1E7);
  box-shadow: 0 4px 18px rgba(40, 20, 10, .12);
}
@container (max-width: 430px) {
  .session-error {
    padding: 0 22px 7px;
  }
}

/* ---------- host dev tools ---------- */
.home .home-dev-tools {
  --dev-tools-top: 80px;
  position: fixed;
  top: var(--dev-tools-top);
  right: 12px;
  z-index: 65;
  width: 260px;
  max-width: calc(100vw - 24px);
  max-height: calc(100dvh - var(--dev-tools-top) - 12px);
  overflow: auto;
  border: 1px solid var(--lineS);
  border-radius: 12px;
  background: var(--bg);
  color: var(--ink);
  box-shadow: 0 8px 28px #0002;
  font-size: 13px;
}
.home .home-dev-tools[hidden] { display: none; }
.home-dev-tools .floating-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 38px;
  padding: 8px 44px 8px 12px;
  background: var(--surface);
  cursor: pointer;
  font-weight: 600;
}
.home-dev-tools .floating-panel__header > [aria-hidden] { display: none; }
.home-dev-tools .floating-panel__header:focus-visible,
.home-dev-tools .home-dev-tools__close:focus-visible { outline: 2px solid var(--accent); outline-offset: -3px; }
.home-dev-tools .home-dev-tools__close {
  position: absolute;
  top: 1px;
  right: 1px;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 8px;
  color: var(--ink2);
  font-size: 22px;
  line-height: 1;
}
.home-dev-tools .home-dev-tools__close:hover { background: var(--surface2); color: var(--ink); }
.settings-footer { margin-top: 8px; padding-top: 9px; border-top: 1px solid var(--line); }
.home .settings-dev-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 5px 0; color: var(--ink2); font-size: 12px; text-align: left; }
.settings-dev-tools:hover { color: var(--accent); }
.settings-dev-tools__shortcut { font-size: 10px; white-space: nowrap; }
.home-dev-tools .floating-panel__body { padding: 0 12px 12px; }
.home-dev-tools .floating-panel__body[hidden] { display: none; }
.home-dev-tools__section { display: flex; flex-direction: column; gap: 10px; }
.home-dev-tools__section-head { display: flex; align-items: center; justify-content: space-between; }
.home-dev-tools__section-head h2 { margin: 0; font-size: 13px; font-weight: 600; }
.home-dev-tools .home-dev-tools__reset { padding: 4px 8px; border: 1px solid var(--line); border-radius: 6px; font-size: 12px; }
.home-dev-tools .label { display: flex; flex-direction: column; gap: 4px; }
.home-dev-tools .label-text { color: var(--ink2); font-size: 12px; }
.home-dev-tools .input-scrub {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  min-height: 32px;
  padding: 5px 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  font-variant-numeric: tabular-nums;
  cursor: ew-resize;
  user-select: none;
}
.home-dev-tools .input-scrub:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.home-dev-tools .scrub-fill { position: absolute; inset: 0 auto 0 0; background: var(--accent); opacity: .15; pointer-events: none; }
.home-dev-tools .input-scrub > span { position: relative; }
.home-dev-tools .input-scrub > span:last-child { margin-left: auto; color: var(--ink2); }
.home-dev-tools .input-scrub > input {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  padding: 5px 8px;
  border: 0;
  background: var(--surface);
  color: inherit;
  font: inherit;
}
.home-dev-tools .hidden { display: none !important; }
.home-dev-tools__more { padding-top: 2px; }
.home-dev-tools__more > summary { margin-bottom: 8px; color: var(--ink2); cursor: pointer; }
.home-dev-tools__more .form-control + .form-control { margin-top: 8px; }
.home-dev-tools__hint { color: var(--ink2); font-size: 11px; line-height: 1.4; }
.home[data-conversation-card] .home-dev-tools {
  --dev-tools-top: calc(max(64px, 12dvh) + 68px);
}
.home[data-conversation-card]:has(.session-overflow[aria-expanded="true"]) .session-strip.is-open {
  z-index: 80;
}
@media (max-height: 400px) {
  .home:not([data-conversation-card]) .home-dev-tools { --dev-tools-top: 76px; }
}
@media (pointer: coarse) {
  .home-dev-tools .floating-panel__header,
  .home-dev-tools .input-scrub,
  .home-dev-tools .home-dev-tools__reset { min-height: 44px; }
  .home-dev-tools .home-dev-tools__close { top: 0; right: 0; width: 44px; height: 44px; }
}
