@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/fraunces-latin-600-normal.woff2) format("woff2");
}

:root {
  --bg: #FCFCFB;
  --wash: #F9F9F7;
  --ink: #2E2C27;
  --soft: #6B6A63;
  --grey: #B4B3A8;
  --hair: #E4E3DC;
  --edge: #E1E1DF;
  --clay: #C6613F;
  --clay-h: #AE5133;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: "Fraunces", Georgia, serif;
  --nav: 56px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg);
  color: var(--soft);
  font: 15px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- shared type ---------- */
.daydate { font-size: 12.5px; letter-spacing: .02em; margin: 0 0 10px; color: var(--soft); }
.head { font-family: var(--serif); font-weight: 600; font-size: 40px; line-height: 1.16; letter-spacing: -.01em; color: var(--ink); margin: 0 0 26px; }
.sec { font-size: 13px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--ink); margin: 0 0 16px; }
.quiet { font-size: 13px; color: var(--grey); }
.textlink { font-size: 13px; color: var(--soft); text-decoration: underline; text-decoration-color: #C9C8BF; text-underline-offset: 3px; }
.textlink:hover { color: var(--ink); }
.btn {
  display: inline-block; background: var(--clay); border: 1px solid var(--clay); border-radius: 8px;
  padding: 9px 16px; font: 500 13px var(--sans); color: var(--bg); text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--clay-h); border-color: var(--clay-h); }
.gl { width: 13px; height: 13px; vertical-align: -1px; margin-right: 7px; color: var(--grey); flex: none; }

/* ---------- sign in ---------- */
.signin { min-height: 100%; display: flex; align-items: center; justify-content: center; padding: 24px 16px; background: var(--wash); }
.signin form { width: 100%; max-width: 380px; }
.signin .head { font-size: 32px; margin-bottom: 18px; }
.signin p { margin: 0 0 22px; }
.field {
  display: block; width: 100%; border: 0; border-bottom: 1px solid var(--hair); background: transparent;
  font: 15px var(--sans); color: var(--ink); padding: 8px 0; margin-bottom: 20px; border-radius: 0;
}
.field:focus { outline: none; border-bottom-color: var(--grey); }
.field::placeholder { color: var(--grey); }

/* ---------- app frame ---------- */
.app { height: 100%; display: flex; flex-direction: column; }
.panes {
  flex: 1; display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.panes::-webkit-scrollbar { display: none; }
.pane {
  flex: 0 0 100%; width: 100%; height: 100%; overflow-y: auto; scroll-snap-align: start;
  padding-bottom: calc(var(--nav) + env(safe-area-inset-bottom, 0px) + 24px);
}

.nav {
  position: fixed; left: 0; right: 0; bottom: 0; height: calc(var(--nav) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  display: flex; justify-content: center; gap: 40px; align-items: center;
  background: rgba(252, 252, 251, .94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid var(--hair); z-index: 10;
}
.nav button { font-size: 14px; color: var(--grey); padding: 8px 2px; border-bottom: 1px solid transparent; }
.nav button[aria-current="true"] { color: var(--ink); font-weight: 600; border-bottom-color: var(--ink); }
.nav .navlink { font-size: 14px; color: var(--grey); padding: 8px 2px; text-decoration: none; border-bottom: 1px solid transparent; }
.nav .navlink:hover { color: var(--soft); }
@media (max-width: 640px) { .nav { gap: clamp(8px, 3vw, 30px); } }
@media (max-width: 420px) { .nav { gap: clamp(7px, 2.4vw, 30px); } .nav button, .nav .navlink { font-size: 12.5px; } }
/* Phone: the menu has more items than fit, so it scrolls sideways (swipe it). Centred while it fits. */
@media (max-width: 979px) {
  .nav { justify-content: flex-start; overflow-x: auto; overflow-y: hidden; padding-left: 16px; padding-right: 16px;
         scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; touch-action: pan-x; }
  .nav::-webkit-scrollbar { display: none; }
  .nav > * { flex: none; white-space: nowrap; }
  .nav > :first-child { margin-left: auto; }
  .nav > :last-child { margin-right: auto; padding-right: 16px; }
  .nav button, .nav .navlink { padding: 12px 4px; }
  /* soft fade at the edges says "there's more, swipe" */
  .nav { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 30px), transparent 100%);
                 mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 30px), transparent 100%); }
}

.wrap { max-width: 860px; margin: 0 auto; padding: 40px 28px 44px; }
.band-top { background: var(--wash); border-bottom: 1px solid var(--edge); }
.toprow { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.offline { font-size: 12.5px; color: var(--grey); margin: -4px 0 14px; }

/* ---------- NOW ---------- */
.pane[data-pane="now"] { background: var(--wash); }
.now { min-height: 100%; display: flex; flex-direction: column; background: var(--wash); }
.now .wrap { flex: 1; display: flex; flex-direction: column; justify-content: center; width: 100%; max-width: 640px; padding-top: 32px; }
.now-kicker { font-size: 12.5px; letter-spacing: .09em; text-transform: uppercase; color: var(--soft); margin: 0 0 14px; display: flex; align-items: center; gap: 8px; }
.now-kicker .gl { width: 16px; height: 16px; margin: 0; color: var(--ink); }
.now-title { font-family: var(--serif); font-weight: 600; font-size: 36px; line-height: 1.18; color: var(--ink); margin: 0 0 14px; letter-spacing: -.01em; }
.now-sub { margin: 0 0 22px; font-size: 15px; }
.now-sub a { text-decoration: underline; text-decoration-color: #C9C8BF; text-underline-offset: 2px; }
.now-carry { font-size: 13px; color: var(--grey); margin: 10px 0 0; }
.now-then { border-top: 1px solid var(--hair); margin-top: 34px; padding-top: 16px; font-size: 13.5px; }
.now-then b { font-weight: 600; color: var(--ink); }
.now-ctl { display: flex; gap: 28px; align-items: center; margin-top: 30px; font-size: 14px; }
.now-ctl button { color: var(--soft); }
.now-ctl button:hover { color: var(--ink); }
.now-ctl .pos { margin-left: auto; color: var(--grey); font-variant-numeric: tabular-nums; }
.now-empty { font-family: var(--serif); font-weight: 600; font-size: 30px; color: var(--ink); line-height: 1.2; }

/* ---------- TODAY ---------- */
.terrain { display: block; width: 100%; height: auto; margin: 0 0 6px; }
.acts { display: flex; margin-top: 14px; }
.act { flex: 1; padding: 0 22px; border-left: 1px solid var(--hair); }
.act:first-child { padding-left: 0; border-left: 0; }
.act:last-child { padding-right: 0; }
.act .t { display: block; font-weight: 700; color: var(--ink); font-size: 13px; letter-spacing: .01em; margin-bottom: 5px; }
.act p { margin: 0; font-size: 13.5px; line-height: 1.5; }
.readaloud { font-size: 13px; color: var(--soft); white-space: nowrap; }
.readaloud:hover { color: var(--ink); }

.mapblock { margin: 0 0 38px; }
.map-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.map-scroll svg { min-width: 780px; width: 100%; height: auto; display: block; }
figure { margin: 0; }
figcaption { font-size: 13.5px; margin-top: 8px; line-height: 1.5; }

.blk { margin-bottom: 34px; }
ol.items { list-style: none; margin: 0 0 10px; padding: 0; }
ol.items li { display: flex; gap: 14px; padding: 6px 10px 18px; margin: 0 -10px; border-radius: 6px; }
ol.items li .num { font-size: 12.5px; color: var(--grey); min-width: 16px; padding-top: 2px; font-variant-numeric: tabular-nums; }
ol.items li.sel { background: var(--wash); box-shadow: inset 2px 0 0 var(--ink); }
.body { flex: 1; min-width: 0; }
.ttl { font-size: 15.5px; font-weight: 700; color: var(--ink); line-height: 1.35; margin: 0 0 3px; text-decoration: none; display: block; }
a.ttl:hover { text-decoration: underline; text-decoration-color: var(--hair); text-underline-offset: 3px; }
.sen { margin: 0; font-size: 14px; }
.sen a { text-decoration: underline; text-decoration-color: #C9C8BF; text-underline-offset: 2px; }
.mynote { margin: 7px 0 0; font-size: 13.5px; color: var(--ink); }
.mynote::before { content: "Note — "; color: var(--grey); }
li.closed .ttl, li.closed .sen, li.closed .mynote { color: var(--grey); text-decoration: line-through; text-decoration-color: var(--grey); }
li.closed .sen a { text-decoration: line-through; }
li.closed .mynote::before { content: ""; }
.itemtools { display: flex; gap: 22px; margin-top: 10px; font-size: 13px; }
.itemtools button { color: var(--soft); }
.itemtools button:hover { color: var(--ink); }

textarea.note, textarea.big, input.miss {
  display: block; width: 100%; border: 0; border-bottom: 1px solid var(--hair); background: transparent;
  font: 14px/1.5 var(--sans); color: var(--ink); padding: 6px 0; resize: none; border-radius: 0;
}
textarea.big { min-height: 74px; font-size: 14.5px; resize: vertical; }
input.miss { font-size: 15px; padding: 8px 0; }
textarea:focus, input:focus { outline: none; border-bottom-color: var(--grey); }
textarea::placeholder, input::placeholder { color: var(--grey); }
.saved { font-size: 11.5px; color: var(--grey); height: 14px; margin-top: 3px; }

.writeins { border-top: 1px solid var(--hair); padding-top: 26px; margin-top: 4px; }
.prior { font-size: 13.5px; margin: 0 0 8px; }
.calm { font-size: 15px; margin: 0 0 34px; }

/* evening */
.carry { font-size: 13.5px; color: var(--grey); margin: 2px 0 10px; }
.choices { display: flex; gap: 26px; font-size: 14px; }
.choices button { color: var(--grey); padding-bottom: 1px; border-bottom: 1px solid transparent; }
.choices button:hover { color: var(--soft); }
.choices button[aria-pressed="true"] { color: var(--ink); font-weight: 600; border-bottom-color: var(--ink); }
.opens { border-left: 1px solid var(--hair); padding: 2px 0 2px 16px; margin: 34px 0 0; font-size: 14px; }

/* changes / send to claude */
.changes { border-top: 1px solid var(--hair); padding-top: 26px; margin-top: 34px; }
.changes ul { list-style: none; margin: 0 0 16px; padding: 0; }
.changes li { font-size: 13.5px; padding: 3px 0; }
.changes li::before { content: "\00b7"; color: var(--grey); margin-right: 9px; }
.changes .row { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }

/* ---------- CAPTURE ---------- */
.capture .wrap { max-width: 640px; padding-top: 56px; }
ul.added { list-style: none; margin: 14px 0 0; padding: 0; }
ul.added li { font-size: 14px; padding: 5px 0; }
ul.added li::before { content: "\00b7"; color: var(--grey); margin-right: 9px; }
ul.added li .quiet { margin-left: 8px; }

/* ---------- desktop editor ---------- */
.aside { display: none; }
.kbd { font-size: 12px; color: var(--grey); line-height: 1.9; }
.kbd b { display: inline-block; min-width: 14px; color: var(--soft); font-weight: 600; }
.focusbar { display: none; }

@media (min-width: 980px) {
  /* desktop: the menu becomes a top bar instead of disappearing */
  .nav { position: static; order: -1; height: 48px; padding: 0; justify-content: flex-start; gap: 32px; padding-left: 28px;
         border-top: 0; border-bottom: 1px solid var(--hair); z-index: 30; flex: 0 0 auto; }
  .panes { min-height: 0; }
  .panes { display: grid; grid-template-columns: minmax(0, 1fr) 380px; overflow: hidden; scroll-snap-type: none; }
  .pane { height: 100%; padding-bottom: 0; }
  .pane[data-pane="now"], .pane[data-pane="capture"] { display: none; }
  .aside { display: block; height: 100%; overflow-y: auto; border-left: 1px solid var(--edge); background: var(--bg); }
  .aside .inner { padding: 36px 28px 40px; }
  .focusbar { display: inline; }
  body.focus .pane[data-pane="now"] { display: block; position: fixed; inset: 48px 0 0 0; z-index: 20; }
  .ed-title { width: 100%; border: 0; border-bottom: 1px solid var(--hair); font: 700 17px/1.35 var(--sans); color: var(--ink); padding: 4px 0 8px; background: transparent; resize: none; }
  .ed-row { margin: 22px 0 0; }
  .ed-label { font-size: 11.5px; letter-spacing: .09em; text-transform: uppercase; color: var(--grey); margin: 0 0 8px; }
  .places { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13.5px; }
  .places button { color: var(--grey); display: inline-flex; align-items: center; padding: 2px 0; border-bottom: 1px solid transparent; }
  .places button .gl { margin-right: 5px; }
  .places button[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--ink); }
  .places button[aria-pressed="true"] .gl { color: var(--ink); }
  .ed-links { display: flex; gap: 20px; flex-wrap: wrap; }
  .aside hr { border: 0; border-top: 1px solid var(--hair); margin: 28px 0; }
}

@media (max-width: 640px) {
  .wrap { padding: 30px 16px 34px; }
  .head { font-size: 30px; }
  .now-title { font-size: 30px; }
  .acts { display: block; }
  .act { padding: 16px 0 0; border-left: 0; border-top: 1px solid var(--hair); margin-top: 16px; }
  .act:first-child { border-top: 0; margin-top: 0; padding-top: 0; }
  .choices { gap: 18px; }
}

@media (prefers-reduced-motion: no-preference) {
  .panes { scroll-behavior: smooth; }
}

/* ---------- areas ---------- */
:root { --cpa: #B4552F; --med: #3E7A57; --per: #8C6A1F; --mon: #2F5F8C; }
.a-cpa { --ac: var(--cpa); } .a-med { --ac: var(--med); } .a-per { --ac: var(--per); } .a-mon { --ac: var(--mon); }
.itemmeta { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; font-size: 12px; }
.area { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ac); }
.area .gl { width: 14px; height: 14px; margin: 0; color: var(--ac); }
.mail-chip { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--soft); text-decoration: none; border: 1px solid currentColor; border-radius: 999px; padding: 1px 7px 1px 5px; opacity: .8; }
.mail-chip:hover { opacity: 1; }
.mail-chip .gl { width: 13px; height: 13px; margin: 0; }
.now-kicker .area .gl { width: 16px; height: 16px; color: var(--ac); }
.areas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 0 0 26px; }
.areatile {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 10px 9px;
  border: 1px solid var(--hair); border-radius: 10px; background: var(--bg); text-align: left; min-width: 0;
}
.areatile .gl { width: 18px; height: 18px; margin: 0 0 4px; color: var(--ac); }
.areatile .an { font-size: 12px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.areatile .ac { font-size: 20px; line-height: 1.1; font-family: var(--serif); font-weight: 600; color: var(--ac); font-variant-numeric: tabular-nums; }
.areatile.empty { opacity: .55; }
.areatile.empty .ac { color: var(--grey); }
.areatile[aria-pressed="true"] { border-color: var(--ac); box-shadow: inset 0 0 0 1px var(--ac); background: var(--wash); }

/* ---------- AI recommendation ---------- */
.rec { background: var(--bg); border-top: 1px solid var(--hair); padding: 30px 0 40px; }
.rec .wrap { max-width: 640px; }
.rec-sec { display: flex; align-items: center; gap: 8px; }
.rec-sec .gl { width: 16px; height: 16px; margin: 0; color: var(--clay); }
.rec-card { border: 1px solid var(--hair); border-radius: 12px; padding: 18px 18px 20px; margin: 0 0 30px; background: var(--wash); }
.rec-title { font-family: var(--serif); font-weight: 600; font-size: 22px; line-height: 1.25; color: var(--ink); margin: 2px 0 8px; }
.rec-why { margin: 0 0 14px; }
.rec-generic { background: transparent; border-style: dashed; }

.rec-badge { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; margin: 0 0 12px; }
.rb-yes { background: #E3EFE7; color: #2F6A47; }
.rb-partly { background: #F4E9DC; color: #8A5524; }
.rb-no { background: #ECEBE6; color: var(--soft); }
.rec-split { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 0 0 16px; font-size: 14px; }
.rec-split dt { font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); padding-top: 2px; }
.rec-split dd { margin: 0; }
.rec-card .row { display: flex; gap: 18px; align-items: center; }

/* ---------- mind map ---------- */
.mm { position: relative; display: grid; grid-template-columns: minmax(90px, 30%) 1fr; column-gap: 34px; align-items: center; }
.mm-lines { position: absolute; left: 0; top: 0; pointer-events: none; overflow: visible; }
.mm-center {
  position: relative; background: var(--ink); color: var(--bg); border-radius: 12px; padding: 12px 12px;
  font-family: var(--serif); font-weight: 600; font-size: 15px; line-height: 1.25; text-align: center;
}
.mm-branches { display: flex; flex-direction: column; gap: 14px; }
.mm-branch { position: relative; }
.mm-node {
  display: inline-block; position: relative; border: 1.5px solid var(--ink); border-radius: 999px;
  padding: 3px 12px; font-size: 13px; font-weight: 600; color: var(--ink); background: var(--bg);
}
.mm-leaves { list-style: none; margin: 6px 0 0 14px; padding: 0 0 0 12px; border-left: 1.5px solid var(--hair); font-size: 13px; line-height: 1.4; }
.mm-leaves li { padding: 2px 0; }
@media (max-width: 420px) { .mm { column-gap: 22px; grid-template-columns: minmax(80px, 32%) 1fr; } .mm-center { font-size: 14px; } }
/* let the recommendation peek under the Now card so it is discoverable */
.pane[data-pane="now"] .now.has-rec { min-height: calc(100% - 64px); }
.rec.in-aside { border-top: 0; padding: 0; background: none; }
.rec.in-aside .wrap { padding: 0; }
.rec.in-aside .rec-title { font-size: 19px; }
.signin-row { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }

/* refresh: stale-day banner and New badges */
.stale { border: 1px solid var(--hair); border-left: 3px solid var(--clay); border-radius: 8px; padding: 12px 14px; margin: 0 0 22px; background: var(--wash); }
.stale p { margin: 0 0 10px; font-size: 14px; color: var(--ink); }
.stale .row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.newbadge { display: inline-block; margin-left: 8px; padding: 1px 7px; border-radius: 999px; background: var(--clay); color: var(--bg); font-size: 10.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; vertical-align: 1px; }
.newbadge.upd { background: transparent; color: var(--clay); box-shadow: inset 0 0 0 1px var(--clay); }

/* fresh planets: new or updated since the last look — a ripple and a glint until he goes there */
.sky .star .fresh-ring, .sky .star .glint { pointer-events: none; }
.sky .star .fresh-ring { stroke-width: 1.2; opacity: 0; transform-box: fill-box; transform-origin: center; }
.sky .star .glint { fill: var(--starlight); transform-box: fill-box; transform-origin: center; filter: drop-shadow(0 0 3px rgba(244, 239, 228, .85)); }
.sky .star.fresh .star-l { fill-opacity: .95; }
.sky .star.fresh .halo { opacity: .2; }
.sky .star.dim .fresh-ring, .sky .star.dim .glint, .sky .star:not(.fresh) .fresh-ring, .sky .star:not(.fresh) .glint { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .sky .star.fresh .fresh-ring { animation: fresh-ripple 2.4s ease-out infinite; }
  .sky .star.fresh .fresh-ring.r2 { animation-delay: 1.2s; }
  .sky .star.fresh .glint { animation: fresh-glint 1.8s ease-in-out infinite; }
}
@media (prefers-reduced-motion: reduce) {
  .sky .star.fresh .fresh-ring:not(.r2) { opacity: .6; transform: scale(1.5); }
}
@keyframes fresh-ripple { 0% { opacity: .85; transform: scale(.7); } 100% { opacity: 0; transform: scale(2.6); } }
@keyframes fresh-glint { 0%, 100% { opacity: .35; transform: scale(.55) rotate(0deg); } 50% { opacity: 1; transform: scale(1.1) rotate(45deg); } }
.sky-fresh-box { position: absolute; left: 12px; bottom: 12px; z-index: 2; display: flex; align-items: center; gap: 10px; max-width: calc(100% - 70px); }
.sky.full .sky-fresh-box { bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
.sky-fresh { color: #F7D9A8; border-color: rgba(247, 217, 168, .5); flex: none; }
.sky-stamp { font: 500 11px var(--sans); color: var(--starlight); opacity: .42; letter-spacing: .02em; white-space: nowrap; font-variant-numeric: tabular-nums; cursor: default; }
.daydate .stamp { display: block; margin-top: 3px; font-size: 11.5px; font-variant-numeric: tabular-nums; }
.sky-fresh[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) { .sky-fresh:not([hidden]) { animation: fresh-pill 2.4s ease-in-out infinite; } }
@keyframes fresh-pill { 0%, 100% { box-shadow: 0 0 0 0 rgba(247, 217, 168, 0); } 50% { box-shadow: 0 0 12px 1px rgba(247, 217, 168, .35); } }

/* ---------- NOW: the sky ---------- */
/* A night window over the drive: each place is a constellation, each open thing a star. */
:root { --night: #1C1B18; --night-2: #2B2924; --starlight: #F4EFE4; }
.now.skyview .wrap { justify-content: flex-start; padding-top: 22px; }
.sky {
  position: relative; margin: 16px 16px 0; height: clamp(240px, 42vh, 470px); border-radius: 18px; overflow: hidden;
  background: radial-gradient(120% 95% at 50% 38%, var(--night-2) 0%, var(--night) 62%, #141310 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .04), 0 1px 2px rgba(46, 44, 39, .08);
  touch-action: none; user-select: none; cursor: grab; -webkit-user-select: none; flex: none;
}
.sky-svg { display: block; width: 100%; height: 100%; }
.sky .dust circle { fill: var(--starlight); }
.sky .road { fill: none; stroke: var(--starlight); stroke-opacity: .1; stroke-width: 1.1; stroke-dasharray: 2 6; stroke-linecap: round; }
.sky .cline { stroke: var(--starlight); stroke-opacity: .2; stroke-width: .8; }
.sky .cline.faint { stroke-opacity: .07; }
.sky .pl { color: var(--starlight); opacity: .3; }
.sky .pl.live { opacity: .62; }
.sky .pl text { font: 600 8.5px var(--sans); letter-spacing: 1.7px; fill: var(--starlight); text-anchor: middle; }
.sky .pl .ghost { fill: var(--starlight); }
.sky .star { cursor: pointer; outline: none; }
.sky .star-b { transform-box: fill-box; transform-origin: center; transform: scale(.42); transition: transform .7s cubic-bezier(.2, .75, .2, 1); }
.sky .star .halo, .sky .star .halo2 { opacity: 0; transition: opacity .6s; }
.sky .star .orbit { stroke-width: 1; stroke-opacity: .55; }
.sky .star:hover .halo { opacity: .14; }
.sky .star.on .star-b { transform: scale(1); }
.sky .star.on .halo { opacity: .2; }
.sky .star.on .halo2 { opacity: .08; animation: sky-breathe 3.4s ease-in-out infinite; }
.sky .star-l { font: 500 8.5px var(--sans); fill: var(--starlight); fill-opacity: .66; text-anchor: middle; transition: opacity .45s; pointer-events: none; }
.sky .star.on .star-l { opacity: 0; }
.sky .star.dim { pointer-events: none; }
.sky .star.dim .star-b { transform: scale(.24); }
.sky .star.dim .core { opacity: .32; }
.sky .star:focus-visible .core { stroke: #fff; stroke-width: 2.5; }
.sky .trail { fill: none; stroke-width: 1.3; stroke-linecap: round; stroke-opacity: .7;
  transition: stroke-dashoffset .8s cubic-bezier(.65, 0, .35, 1), stroke-opacity .55s; }
.sky .trail.gone { stroke-opacity: 0; }
.sky .tw { animation: sky-twinkle 4.5s ease-in-out infinite alternate; }
.sky-hint {
  position: absolute; left: 0; right: 0; bottom: 12px; margin: 0; text-align: center; pointer-events: none;
  font-size: 12px; letter-spacing: .02em; color: rgba(244, 239, 228, .55); transition: opacity .6s;
}
.sky-hint.gone { opacity: 0; }
/* diving in: the bright star fills the window, then the window gives way to the card */
.sky.diving { transition: opacity .32s .26s; opacity: 0; }
.sky.rising { opacity: 0; }
.sky { transition: opacity .35s; }
@keyframes sky-breathe { 0%, 100% { opacity: .07; } 50% { opacity: .17; } }
@keyframes sky-twinkle { from { opacity: .25; } to { opacity: 1; } }

.now-card { transition: opacity .26s, transform .26s; }
.now-card.swap { opacity: 0; transform: translateY(6px); }
.now.skyview .now-title { font-size: 28px; margin-bottom: 10px; cursor: pointer; }
.now-gist { margin: 0 0 4px; font-size: 15px; }
.now-open { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 18px; }
.now-claude { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--soft); }
.now-claude .gl { margin: 0; color: var(--clay); width: 14px; height: 14px; }
.now-ctl button[disabled] { color: var(--hair); cursor: default; }
.now.skyview .now-ctl { margin-top: 26px; }

.now.drilled .wrap { justify-content: flex-start; padding-top: 26px; }
.now-up { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--soft); margin: 0 0 30px; padding: 6px 0; }
.now-up:hover { color: var(--ink); }
.now-where { font-size: 11.5px; letter-spacing: .09em; text-transform: uppercase; color: var(--grey); margin: 22px 0 8px; }
.now.drilled .now-ctl .btn { color: var(--bg); }
.now.drilled .now-ctl .btn:hover { color: var(--bg); }

@media (min-width: 980px) {
  .sky { height: 56vh; margin: 20px 28px 0; }
  .now.skyview .now-title { font-size: 32px; }
}
@media (max-width: 640px) {
  .now.skyview .now-title { font-size: 24px; }
  .now.skyview .wrap { padding-top: 18px; }
}
@media (prefers-reduced-motion: no-preference) {
  .now.drilled .wrap, .rec.drilled .wrap { animation: now-surface .45s ease-out both; }
  @keyframes now-surface { from { opacity: 0; transform: scale(.985); } }
}
@media (prefers-reduced-motion: reduce) {
  .sky .star-b, .sky .trail, .sky .star .halo, .now-card, .sky, .sky.diving { transition: none; }
  .sky .tw, .sky .star.on .halo2 { animation: none; }
}

.sky:active { cursor: grabbing; }
.sky-home {
  position: absolute; right: 12px; bottom: 12px; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(244,239,228,.28); background: rgba(10,14,28,.55); color: var(--starlight);
  font-size: 18px; line-height: 1; display: grid; place-items: center; cursor: pointer;
  opacity: 0; pointer-events: none; transition: opacity .25s ease;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.sky.away .sky-home { opacity: 1; pointer-events: auto; }

/* ---------- OUTBOX ---------- */
.outbox .wrap { max-width: 760px; }
.ob-tally { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13.5px; margin: -10px 0 26px; font-variant-numeric: tabular-nums; }
.ob-tally b { color: var(--ink); font-weight: 600; }
.ob-err { font-size: 14px; color: var(--clay-h); margin: 0 0 20px; }
.ob-msg { font-size: 13.5px; color: var(--ink); margin: 0 0 20px; }
.ob-sec { border-top: 1px solid var(--hair); padding-top: 22px; margin-bottom: 30px; }
.ob-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.ob-head .sec { margin: 0; }
.ob-count { font-size: 13px; color: var(--grey); font-variant-numeric: tabular-nums; }
.ob-blurb { margin: 4px 0 14px; }
ul.ob-list { list-style: none; margin: 0; padding: 0; }
ul.ob-list li { display: flex; gap: 12px; padding: 10px 0 14px; }
ul.ob-list li + li { border-top: 1px solid var(--hair); }
ul.ob-list input[type="checkbox"] { width: 17px; height: 17px; margin: 3px 0 0; flex: none; accent-color: var(--ink); }
.ob-name { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.ob-name a { text-decoration: none; }
.ob-name a:hover { text-decoration: underline; text-decoration-color: var(--hair); text-underline-offset: 3px; }
.ob-chip { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--grey); }
.ob-what { white-space: pre-wrap; overflow-wrap: anywhere; }
.ob-done { color: var(--ink); }
ul.ob-list li.closed .ttl, ul.ob-list li.closed .sen { color: var(--grey); text-decoration: line-through; text-decoration-color: var(--grey); }
ul.ob-list li.ob-empty { display: block; padding: 4px 0 8px; }
.ob-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; padding: 14px 0 0; border-top: 1px solid var(--hair); margin-top: 4px; }
.ob-bar > .quiet { margin-right: auto; font-variant-numeric: tabular-nums; }
.ob-bar button[disabled], .itemtools button[disabled] { opacity: .45; cursor: default; }
.ob-bar .ob-confirm { color: var(--clay-h); text-decoration-color: var(--clay); font-weight: 600; }
.btn.ob-off { opacity: .4; cursor: default; }
.ob-gaps summary { cursor: pointer; list-style: none; }
.ob-gaps summary::-webkit-details-marker { display: none; }
.ob-gaps summary .ob-head .sec::after { content: "  +"; color: var(--grey); }
.ob-gaps details[open] summary .ob-head .sec::after { content: "  –"; }
textarea.ob-fallback { display: block; width: 100%; margin-top: 10px; font: 13px/1.5 ui-monospace, Menlo, monospace; color: var(--ink); background: var(--wash); border: 1px solid var(--hair); border-radius: 6px; padding: 8px; }
.ob-sec button:focus-visible, .ob-sec a:focus-visible, .ob-sec input:focus-visible, .ob-gaps summary:focus-visible { outline: 2px solid var(--grey); outline-offset: 2px; }
@media (min-width: 980px) {
  .pane[data-pane="outbox"] { display: none; }
  body.outboxview .pane[data-pane="outbox"] { display: block; position: fixed; inset: 48px 0 0 0; z-index: 20; background: var(--bg); }
}
/* ---------- EVENTS ---------- */
.events .wrap { max-width: 760px; }
.ev-sky { position: relative; height: 230px; margin: -8px 0 18px; border-radius: 18px; background: #14161C; overflow: hidden; }
.ev-sky-deco { position: absolute; inset: 0; width: 100%; height: 100%; }
.ev-mote { fill: #F4EFE4; fill-opacity: .45; }
.ev-ring { fill: none; stroke: #F4EFE4; stroke-opacity: .07; stroke-width: .3; stroke-dasharray: .8 2; vector-effect: non-scaling-stroke; }
.ev-all, .ev-sun { font: inherit; cursor: pointer; transition: transform .25s ease, opacity .25s ease; }
.ev-all { position: absolute; left: 50%; top: 47%; transform: translate(-50%, -50%); width: 60px; height: 60px; border-radius: 50%; border: 1px solid rgba(244,239,228,.32); background: rgba(244,239,228,.07); color: #F4EFE4; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; font-size: 11px; letter-spacing: .1em; }
.ev-all span { opacity: .7; font-variant-numeric: tabular-nums; }
.ev-all.on { box-shadow: 0 0 22px rgba(244,239,228,.22); }
.ev-all:not(.on) { opacity: .55; }
.ev-sun { position: absolute; transform: translate(-50%, -30%); min-width: 84px; min-height: 44px; padding: 4px; border: 0; background: transparent; display: flex; flex-direction: column; align-items: center; gap: 4px; color: #F4EFE4; }
.ev-sun:hover { transform: translate(-50%, -30%) scale(1.05); }
.ev-sun.dim { opacity: .35; }
.ev-orb { display: block; width: var(--r); height: var(--r); border-radius: 50%; background: radial-gradient(circle at 35% 35%, #FFF8E8, var(--c) 55%); box-shadow: 0 0 18px color-mix(in srgb, var(--c) 45%, transparent); }
.ev-sun.loose .ev-orb { background: color-mix(in srgb, var(--c) 18%, transparent); border: 2px dashed var(--c); }
.ev-sun.on .ev-orb { box-shadow: 0 0 0 6px color-mix(in srgb, var(--c) 22%, transparent), 0 0 28px var(--c); }
.ev-sun-l { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.ev-sun-n { font-size: 10.5px; color: rgba(244,239,228,.62); font-variant-numeric: tabular-nums; }
.ev-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 14px; margin: 0 0 6px; }
.ev-toggle { display: inline-flex; border: 1px solid var(--hair); border-radius: 999px; padding: 3px; }
.ev-tog { font: inherit; font-size: 13px; border: 0; border-radius: 999px; padding: 7px 13px; min-height: 34px; background: transparent; color: var(--soft); cursor: pointer; }
.ev-tog.on { background: var(--ink); color: var(--bg); font-weight: 600; }
.ev-group { padding-top: 16px; }
.ev-h { display: flex; align-items: center; gap: 8px; margin: 0 0 2px; padding-bottom: 6px; border-bottom: 1px solid var(--hair); font: 600 13px var(--sans); color: var(--ink); letter-spacing: .02em; }
.ev-h .quiet { font-weight: 400; }
ul.ev-list { list-style: none; margin: 0; padding: 0; }
.ev-row { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--hair); }
.ev-dot { flex: none; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--c); margin-top: 6px; }
.ev-h .ev-dot { margin-top: 0; }
.ev-dot.loose { background: transparent; border: 1.5px dashed var(--c); }
.ev-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ev-body .ttl { margin: 0; font-size: 15px; }
.ev-meta, .ev-note { font-size: 13px; color: var(--soft); }
.ev-note { font-style: normal; color: var(--clay-h); }
.ev-loose { align-self: flex-start; margin-top: 3px; font-size: 11px; color: #3F6E6B; border: 1px dashed #6FC3C0; border-radius: 999px; padding: 1px 8px; }
.ev-when { flex: none; font-size: 12.5px; color: var(--soft); white-space: nowrap; padding-top: 2px; font-variant-numeric: tabular-nums; }
.ev-sun:focus-visible, .ev-all:focus-visible, .ev-tog:focus-visible { outline: 2px solid var(--grey); outline-offset: 2px; }
@media (min-width: 980px) {
  .pane[data-pane="events"] { display: none; }
  body.eventsview .pane[data-pane="events"] { display: block; position: fixed; inset: 48px 0 0 0; z-index: 20; background: var(--bg); }
}
@media (max-width: 640px) and (min-width: 421px) {
  .nav { gap: 22px; }
}

/* ---------- NOW: sorting the sky ---------- */
.sky .lay-drive { transition: opacity .7s ease; }
.sky:not(.m-drive) .lay-drive { opacity: 0; }
.sky .lay-mode.fresh { animation: lay-in .9s .35s ease-out both; }
@keyframes lay-in { from { opacity: 0; } to { opacity: 1; } }
.sky .star.gone { opacity: 0; pointer-events: none; }
.sky .star { transition: opacity .6s ease; }
.sky .star.dim .star-l, .sky .star.dim .star-t { opacity: 0; }
.sky .star-t { font: 500 8.5px var(--sans); fill: var(--starlight); fill-opacity: .42; text-anchor: middle; pointer-events: none; font-variant-numeric: tabular-nums; }
.sky .star.on .star-t { opacity: 0; }
.sky:not(.m-timeline) .star-t { display: none; }
/* timeline */
.sky .tl-axis { stroke: var(--starlight); stroke-opacity: .28; stroke-width: 1.2; stroke-linecap: round; }
.sky .tl-tick { stroke: var(--starlight); stroke-opacity: .3; stroke-width: 1; }
.sky .tl-hour { font: 600 8px var(--sans); letter-spacing: .6px; fill: var(--starlight); fill-opacity: .42; text-anchor: middle; }
.sky .tl-now { stroke: #E8997A; stroke-width: 1.4; stroke-opacity: .8; }
.sky .tl-hour.tl-home { fill: #7FC8C2; fill-opacity: .55; font-weight: 500; }
.sky .tl-zone { font: 600 7px var(--sans); letter-spacing: .8px; fill: var(--starlight); fill-opacity: .42; text-anchor: end; text-transform: uppercase; }
.sky .tl-zone.tl-home { fill: #7FC8C2; fill-opacity: .6; }
.sky .tl-nowl { font: 600 7.5px var(--sans); letter-spacing: 1px; fill: #E8997A; fill-opacity: .85; text-anchor: middle; text-transform: uppercase; }
.sky .tl-thread { stroke-width: .8; stroke-opacity: .22; stroke-dasharray: 1.5 3.5; }
.sky .tl-block { opacity: .55; }
/* by area: suns and their orbits */
.sky .orb-ring { fill: none; stroke-opacity: .16; stroke-width: .9; stroke-dasharray: 2 5; }
.sky .sun { pointer-events: none; }
.sky .sun-glow { opacity: .05; }
.sky .sun-halo { opacity: .12; }
.sky .sun-core { opacity: .9; }
@media (prefers-reduced-motion: no-preference) { .sky .sun-halo { animation: sun-pulse 5s ease-in-out infinite; transform-box: fill-box; transform-origin: center; } }
@keyframes sun-pulse { 0%, 100% { transform: scale(1); opacity: .1; } 50% { transform: scale(1.12); opacity: .16; } }
.sky .sun-l { font: 700 8px var(--sans); letter-spacing: 1px; fill: var(--night); text-anchor: middle; }
.sky .sun-n { font: 500 8px var(--sans); letter-spacing: .5px; fill: var(--starlight); fill-opacity: .55; text-anchor: middle; }

/* the Sort control, top left of the sky */
.sky-sort { position: absolute; left: 12px; top: 12px; z-index: 2; }
.sky-sort-b {
  font: 500 12.5px var(--sans); color: var(--starlight); padding: 7px 12px; border-radius: 999px;
  background: rgba(10, 14, 28, .42); border: 1px solid rgba(244, 239, 228, .2);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.sky-sort-b:hover, .sky-sort-b[aria-expanded="true"] { border-color: rgba(244, 239, 228, .45); }
.sky-menu {
  position: absolute; left: 0; top: calc(100% + 6px); min-width: 228px; padding: 6px; border-radius: 12px;
  background: rgba(24, 23, 20, .92); border: 1px solid rgba(244, 239, 228, .14); box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); display: flex; flex-direction: column;
}
.sky-menu button { text-align: left; padding: 9px 10px 9px 28px; border-radius: 8px; color: var(--starlight); font-size: 14px; position: relative; }
.sky-menu button:hover { background: rgba(244, 239, 228, .07); }
.sky-menu button[aria-checked="true"]::before { content: ""; position: absolute; left: 11px; top: 15px; width: 7px; height: 7px; border-radius: 50%; background: #E8997A; }
.sky-menu-sub { display: block; font-size: 11.5px; color: rgba(244, 239, 228, .5); margin-top: 1px; }
.sky-menu .sky-menu-set { border-top: 1px solid rgba(244, 239, 228, .1); border-radius: 0 0 8px 8px; margin-top: 4px; padding-top: 11px; font-size: 13px; color: rgba(244, 239, 228, .72); }
.sky-sort-b:focus-visible, .sky-menu button:focus-visible, .pomo button:focus-visible { outline: 2px solid rgba(244, 239, 228, .7); outline-offset: 2px; }

/* the focus timer, top right, barely there until it runs */
.pomo { position: relative; display: flex; flex-direction: column; align-items: center; gap: 1px; opacity: .5; transition: opacity .3s; }
.pomo:hover, .pomo.focus, .pomo.break { opacity: .92; }
.pomo.paused { opacity: .7; }
.pomo-main { position: relative; width: 50px; height: 50px; display: grid; place-items: center; border-radius: 50%; background: rgba(10, 14, 28, .28); }
.pomo-ring { position: absolute; inset: 3px; width: 44px; height: 44px; }
.pomo-track { fill: none; stroke: rgba(244, 239, 228, .16); stroke-width: 1.6; }
.pomo-arc { fill: none; stroke: #E8997A; stroke-width: 1.8; stroke-linecap: round; transition: stroke-dashoffset 1s linear; }
.pomo.break .pomo-arc { stroke: #8CC9A2; }
.pomo-time { position: relative; font: 600 11px var(--sans); color: var(--starlight); font-variant-numeric: tabular-nums; }
.pomo-lab { font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: rgba(244, 239, 228, .62); }
.pomo-reset { position: absolute; right: -4px; top: -2px; width: 18px; height: 18px; border-radius: 50%; font-size: 12px; line-height: 1; color: rgba(244, 239, 228, .75); background: rgba(10, 14, 28, .6); }

/* sort settings sheet */
.sheet { position: fixed; inset: 0; z-index: 50; background: var(--bg); overflow-y: auto; padding-bottom: env(safe-area-inset-bottom, 0px); }
.sheet .wrap { max-width: 640px; }
.sheet .sec { margin-top: 30px; }
.set-note { margin: -8px 0 14px; }
.opt-list { display: flex; flex-direction: column; gap: 2px; }
.opt { display: flex; gap: 12px; align-items: flex-start; padding: 9px 0; cursor: pointer; }
.opt input { margin: 4px 0 0; accent-color: var(--ink); width: 16px; height: 16px; flex: none; }
.opt b { display: block; color: var(--ink); font-weight: 600; font-size: 15px; }
.opt-sub { display: block; font-size: 13px; color: var(--soft); }
.set-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 8px 0; }
.set-row label { min-width: 170px; color: var(--ink); font-size: 14.5px; }
.set-in { font: 14px var(--sans); color: var(--ink); background: var(--wash); border: 1px solid var(--hair); border-radius: 8px; padding: 6px 8px; }
ul.set-items { list-style: none; margin: 0; padding: 0; }
ul.set-items li { padding: 12px 0; border-top: 1px solid var(--hair); display: flex; flex-direction: column; gap: 8px; }
.set-ttl { color: var(--ink); font-weight: 600; font-size: 14.5px; }
.set-ctl { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
.effort { display: inline-flex; border: 1px solid var(--hair); border-radius: 8px; overflow: hidden; }
.effort button { font-size: 13px; padding: 6px 12px; color: var(--soft); }
.effort button + button { border-left: 1px solid var(--hair); }
.effort button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.effort button[aria-pressed="true"].guess { background: var(--hair); color: var(--ink); }
.set-foot { display: flex; gap: 22px; align-items: center; margin-top: 28px; }
@media (min-width: 980px) { .sky .sky-tools, .sky .sky-sort { top: 14px; } }

/* ---------- NOW: full-screen sky with a floating card ---------- */
.sky-sort { display: flex; gap: 8px; align-items: flex-start; }
.sky-full-b { min-width: 34px; text-align: center; }
.sky.full {
  position: fixed; inset: 0; margin: 0; height: auto; border-radius: 0; z-index: 60;
  padding: env(safe-area-inset-top, 0px) 0 env(safe-area-inset-bottom, 0px);
}
.sky.full .sky-sort { top: calc(12px + env(safe-area-inset-top, 0px)); }
.sky.full .sky-tools { top: calc(10px + env(safe-area-inset-top, 0px)); }
.sky.full .sky-home { bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
body.skyfull { overflow: hidden; }
.sky-modal {
  position: absolute; z-index: 3; left: 12px; right: 12px; bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  max-height: 62%; overflow-y: auto; padding: 22px 22px 16px; border-radius: 16px;
  background: rgba(252, 252, 251, .95); color: var(--soft); cursor: auto; user-select: text; -webkit-user-select: text;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .06);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  opacity: 0; transform: translateY(14px) scale(.98); transition: opacity .28s ease, transform .32s cubic-bezier(.2, .75, .2, 1);
}
.sky-modal.in { opacity: 1; transform: none; }
.sky-modal.in.swap { opacity: 0; transform: translateY(6px); }
.sky-modal .now-title { font-size: 24px; margin: 0 0 8px; cursor: pointer; }
.sky-modal .now-kicker { margin-bottom: 10px; padding-right: 26px; }
.sky-modal .now-open { margin-top: 14px; }
.sky-modal .sky-modal-nav { margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--hair); }
.sky-modal-x { position: absolute; right: 12px; top: 10px; width: 30px; height: 30px; border-radius: 50%; font-size: 20px; line-height: 1; color: var(--soft); }
.sky-modal-x:hover { background: var(--wash); color: var(--ink); }
@media (min-width: 980px) {
  .sky.full { height: auto; }
  .sky-modal { left: auto; right: 28px; bottom: auto; top: 50%; width: 400px; max-height: 76%; transform: translateY(calc(-50% + 14px)) scale(.98); }
  .sky-modal.in { transform: translateY(-50%); }
  .sky-modal.in.swap { transform: translateY(calc(-50% + 6px)); }
  .sky-modal .now-title { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) { .sky-modal { transition: none; } }

/* ---------- NOW: a sun's own card (By area) ---------- */
.sky .sun.tap { pointer-events: auto; cursor: pointer; outline: none; }
.sky .sun.tap .sun-glow { transition: opacity .3s; }
.sky .sun.tap:hover .sun-glow, .sky .sun.tap:focus-visible .sun-glow { opacity: .14; }
.sky .sun.tap:focus-visible .sun-core { stroke: var(--starlight); stroke-width: 2; }
.sky .sun.scoped .sun-glow { opacity: .2; }
.sky .sun.scoped .sun-n { fill-opacity: .9; }
.sky.sun-scope .sun.tap:not(.scoped) { opacity: .4; }
.sky.sun-scope .star { transition: opacity .4s; }
.sky.sun-scope .star.out-scope:not(.gone) { opacity: .18; }
.sun-head { display: flex; align-items: center; gap: 7px; margin: 0 0 10px; padding-right: 30px; font: 600 11px var(--sans); letter-spacing: 1.2px; text-transform: uppercase; color: var(--ink); }
.sun-head .quiet { font-weight: 500; letter-spacing: .4px; text-transform: none; }
.sun-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 14px; }
.sun-acts .choices { gap: 18px; }
.sun-list { list-style: none; margin: 16px 0 0; padding: 12px 0 0; border-top: 1px solid var(--hair); display: grid; gap: 2px; }
.sun-list li { min-width: 0; }
.sun-list button { box-sizing: border-box; min-width: 0; display: flex; align-items: baseline; gap: 8px; width: 100%; text-align: left; padding: 6px 8px; border-radius: 8px; font-size: 13.5px; color: var(--soft); }
.sun-list button:hover { background: rgba(46, 44, 39, .05); color: var(--ink); }
.sun-list li.on button { background: rgba(46, 44, 39, .08); color: var(--ink); font-weight: 600; }
.sun-list-t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sun-list-s { flex: none; font-size: 11px; color: var(--grey); font-weight: 500; }
.sun-list-s.new { color: var(--clay, #C6613F); }
.sun-all { margin-top: 10px; font-size: 12.5px; }

/* ---------- NOW: Breathe, Break and the focus timer, top right ---------- */
.sky-tools { position: absolute; right: 12px; top: 10px; z-index: 2; display: flex; align-items: flex-start; gap: 10px; }
.sky-tool { display: flex; flex-direction: column; align-items: center; gap: 1px; opacity: .45; transition: opacity .3s; }
.sky-tool:hover, .sky-tool:focus-visible { opacity: .9; }
.sky-tool-i { width: 38px; height: 38px; margin: 6px 0 6px; border-radius: 50%; display: grid; place-items: center; color: var(--starlight); background: rgba(10, 14, 28, .28); border: 1px solid rgba(244, 239, 228, .12); }
.sky-tool:focus-visible { outline: none; }
.sky-tool:focus-visible .sky-tool-i { outline: 2px solid rgba(244, 239, 228, .7); outline-offset: 2px; }
@media (max-width: 420px) { .sky-tools { gap: 4px; } .sky-tool-i { width: 34px; height: 34px; } }

/* the veil: frosted glass over the universe */
.veil {
  position: absolute; inset: 0; z-index: 5; overflow: hidden; display: flex; align-items: center; justify-content: center;
  padding: 56px 20px calc(28px + env(safe-area-inset-bottom, 0px)); color: var(--starlight); cursor: auto; user-select: none;
  background: radial-gradient(120% 90% at 50% 40%, rgba(43, 41, 36, .42), rgba(14, 13, 11, .68));
  -webkit-backdrop-filter: blur(26px) saturate(1.35); backdrop-filter: blur(26px) saturate(1.35);
  opacity: 0; transition: opacity .42s ease;
}
.veil.in { opacity: 1; }
.veil-motes { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.veil-motes circle { fill: var(--starlight); opacity: 0; animation: mote 20s linear infinite; }
@keyframes mote { 0% { opacity: 0; transform: translateY(0); } 20% { opacity: .5; } 80% { opacity: .35; } 100% { opacity: 0; transform: translateY(-38px); } }
.veil-x { position: absolute; top: calc(10px + env(safe-area-inset-top, 0px)); right: 12px; width: 38px; height: 38px; border-radius: 50%; font-size: 22px; line-height: 1;
  color: var(--starlight); background: rgba(244, 239, 228, .08); border: 1px solid rgba(244, 239, 228, .16); z-index: 2; }
.veil-x:hover { background: rgba(244, 239, 228, .16); }
.veil { container-type: size; }
.veil-body { position: relative; width: 100%; max-width: 560px; display: flex; flex-direction: column; align-items: center; text-align: center; max-height: 100%; overflow: visible; }
.veil-body.scroll { overflow-y: auto; scrollbar-width: none; }
.veil-body.scroll::-webkit-scrollbar { display: none; }
.veil-kicker { margin: 0 0 8px; font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; color: rgba(244, 239, 228, .6); }
.veil-title { margin: 0 0 10px; font: 600 30px/1.18 var(--serif); letter-spacing: -.01em; color: var(--starlight); }
.veil-sub { margin: 0 0 18px; font-size: 14.5px; color: rgba(244, 239, 228, .72); max-width: 42ch; }
.veil-foot { margin: 16px 0 0; font-size: 12px; color: rgba(244, 239, 228, .45); }
.veil-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 8px; }
.veil-btn { font: 500 14px var(--sans); padding: 10px 18px; border-radius: 999px; color: var(--night); background: var(--starlight); }
.veil-btn:hover { background: #fff; }
.veil-btn.ghost { color: var(--starlight); background: rgba(244, 239, 228, .08); border: 1px solid rgba(244, 239, 228, .22); }
.veil-btn.ghost:hover { background: rgba(244, 239, 228, .16); }
.veil button:focus-visible { outline: 2px solid rgba(244, 239, 228, .75); outline-offset: 3px; }

/* break */
.break-wrap { position: relative; width: min(260px, 60cqw, 46cqh); aspect-ratio: 1; margin: 10px 0 16px; }
.break-dial { width: 100%; height: 100%; }
.break-track { fill: none; stroke: rgba(244, 239, 228, .12); stroke-width: 1.5; }
.break-arc { fill: none; stroke: #8CC9A2; stroke-width: 2; stroke-linecap: round; stroke-opacity: .85; }
.break-moon { fill: var(--starlight); filter: drop-shadow(0 0 6px rgba(244, 239, 228, .8)); }
.veil-time { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; font: 600 44px var(--serif); color: var(--starlight); font-variant-numeric: tabular-nums; }
.veil-nudge { min-height: 3.2em; margin: 0; max-width: 34ch; font-size: 17px; line-height: 1.5; color: rgba(244, 239, 228, .9); opacity: 0; transform: translateY(6px); transition: opacity .6s, transform .6s; }
.veil-nudge.show { opacity: 1; transform: none; }

/* breathe: choosing */
.breath-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; width: 100%; margin: 10px 0 12px; }
.breath-card { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 16px 10px 14px; border-radius: 14px; color: var(--starlight);
  background: rgba(244, 239, 228, .05); border: 1px solid rgba(244, 239, 228, .12); transition: background .25s, border-color .25s; }
.breath-card:hover { background: rgba(244, 239, 228, .09); }
.breath-card[aria-checked="true"] { border-color: var(--tint); background: rgba(244, 239, 228, .1); }
.breath-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--tint); box-shadow: 0 0 14px var(--tint); margin-bottom: 6px; }
.breath-card b { font-size: 15px; font-weight: 600; }
.breath-hint { font-size: 12px; color: rgba(244, 239, 228, .6); line-height: 1.35; }
.breath-pat { margin-top: 4px; white-space: nowrap; font-size: 11px; letter-spacing: .08em; color: rgba(244, 239, 228, .5); font-variant-numeric: tabular-nums; }
.breath-about { margin-bottom: 12px; }
.breath-lens { display: inline-flex; border: 1px solid rgba(244, 239, 228, .18); border-radius: 999px; overflow: hidden; margin-bottom: 14px; }
.breath-lens button { font-size: 13px; padding: 7px 14px; color: rgba(244, 239, 228, .7); }
.breath-lens button + button { border-left: 1px solid rgba(244, 239, 228, .14); }
.breath-lens button[aria-checked="true"] { background: rgba(244, 239, 228, .14); color: var(--starlight); }
@media (max-width: 520px) { .breath-cards { grid-template-columns: 1fr; } .breath-card { flex-direction: row; justify-content: flex-start; gap: 10px; padding: 12px 14px; text-align: left; } .breath-dot { margin: 0; } .breath-pat { margin: 0 0 0 auto; } .veil-title { font-size: 25px; } }

/* breathe: following along */
.breath-stage { position: relative; width: min(360px, 72cqw, 58cqh); aspect-ratio: 1; margin: 18px 0 14px; display: grid; place-items: center; }
.breath-ring { position: absolute; inset: 0; border-radius: 50%; border: 1px dashed rgba(244, 239, 228, .18); }
.breath-orb { --s: .42; position: absolute; inset: 0; display: grid; place-items: center; transform: scale(var(--s)); transition: transform 4s cubic-bezier(.45, 0, .55, 1); }
.orb-glow { position: absolute; inset: -18%; border-radius: 50%; background: radial-gradient(circle, var(--tint) 0%, transparent 62%); opacity: .35; }
.orb-core { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 38% 34%, rgba(255, 255, 255, .55), var(--tint) 42%, rgba(0, 0, 0, .15) 100%); box-shadow: 0 0 48px var(--tint); opacity: .9; }
.breath-say { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; pointer-events: none; }
.breath-word { margin: 0; font: 600 26px var(--serif); color: #fff; text-shadow: 0 1px 12px rgba(0, 0, 0, .45); }
.breath-count { margin: 2px 0 0; font-size: 14px; color: rgba(255, 255, 255, .8); font-variant-numeric: tabular-nums; min-height: 1.4em; }
@media (prefers-reduced-motion: reduce) {
  .veil, .veil-nudge { transition: none; }
  .veil-motes circle { animation: none; opacity: .25; }
  .breath-orb { transition: none; }
}
.now-kicker .mail-chip .gl, .itemmeta .mail-chip .gl { width: 13px; height: 13px; color: inherit; }

.deleg-chip { display: inline-flex; align-items: center; font-size: 11px; font-weight: 600; letter-spacing: .04em; color: #8a5a9e; background: rgba(164,121,226,.12); border-radius: 999px; padding: 1px 8px; }
.deleg-chip.late { color: var(--clay); background: rgba(198,97,63,.12); }
.choices.handoff { margin-top: 8px; }

.quick { margin-top: 18px; }
.quick-row { display: flex; flex-wrap: wrap; gap: 8px; }
.quick-ask { display: flex; flex-direction: column; gap: 2px; flex: 1 1 180px; padding: 10px 12px; border: 1px solid var(--edge); border-radius: 10px; text-decoration: none; color: var(--ink); background: var(--bg); }
.quick-ask:hover { border-color: var(--clay); }
.quick-ask b { font-size: 13.5px; color: var(--clay); }
.quick-ask span { font-size: 12px; color: var(--soft); line-height: 1.35; }

/* ---------- Supernova: a star that swells every hour until it's done ---------- */
.sky .star .nova-c, .sky .star .hot { opacity: 0; pointer-events: none; }
.sky .star.nova .nova-c { opacity: calc(.05 + var(--nova) * .2); transform-box: fill-box; transform-origin: center; }
.sky .star.nova .hot { opacity: calc(.08 + var(--nova) * .55); }
.sky .star.nova .halo { opacity: calc(.16 + var(--nova) * .3); }
.sky .star.nova:not(.on) .halo2 { opacity: calc(.05 + var(--nova) * .2); }
.sky .star.nova .core { filter: drop-shadow(0 0 calc(2px + var(--nova) * 14px) rgba(255, 236, 214, .9)); }
.sky .star.nova .star-l { fill-opacity: .95; font-weight: 600; }
.sky .star.nova.cooling .nova-c { fill: #8FB8E0; }
.sky .star.nova.cooling .hot { opacity: calc(var(--nova) * .25); }
@media (prefers-reduced-motion: no-preference) {
  .sky .star.nova .nova-c { animation: nova-pulse calc(3.4s - var(--nova) * 1.8s) ease-in-out infinite; }
  .sky .star.nova.cooling .nova-c { animation-duration: 6s; }
}
@keyframes nova-pulse { 0%, 100% { transform: scale(.9); } 50% { transform: scale(1.1); } }
.nova-row { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; margin-top: 14px; font-size: 13px; }
.nova-state { color: var(--clay); font-weight: 600; font-variant-numeric: tabular-nums; }
.nova-state.cooling { color: #5F8DB8; }
.nova-btn { border: 1px solid var(--clay); color: var(--clay); background: transparent; border-radius: 999px; padding: 5px 13px; font: 600 12.5px var(--sans); letter-spacing: .02em; cursor: pointer; }
.nova-btn:hover { background: var(--clay); color: var(--bg); }
.nova-btn.cool { border-color: #7FA6CC; color: #5F8DB8; }
.nova-btn.cool:hover { background: #5F8DB8; color: #fff; }

/* ---------- finished jobs: faded and crossed out for three days, with how long they took ---------- */
.sky .star-d { display: none; font: 500 8px var(--sans); fill: var(--starlight); fill-opacity: .5; text-anchor: middle; pointer-events: none; font-variant-numeric: tabular-nums; }
.sky.m-drive .star.done .star-d, .sky.m-history .star-d { display: inline; }
.sky .star.done .core { opacity: .3; }
.sky .star.done .halo, .sky .star.done .halo2 { opacity: 0; }
.sky .star.dim.done .star-l { opacity: .5; text-decoration: line-through; }
.sky .star.dim.dropped .star-l { opacity: .3; font-style: italic; }
.sky .star.dropped .core { opacity: .22; }

/* ---------- Star History: comets on a line of days ---------- */
.sky.m-history .star-l, .sky.m-history .star-d { text-anchor: start; transform: translate(11px, -13px); }
.sky.m-history .star.on .star-l { opacity: 1; }
.sky .h-tail.open { opacity: 1; }
.sky .h-tail.done { opacity: .5; }
.sky .h-tail.dropped { opacity: .25; }
.sky .h-sum { font: 600 8.5px var(--sans); letter-spacing: 1.3px; fill: var(--starlight); fill-opacity: .55; text-transform: uppercase; }
.sky-hist { position: absolute; left: 0; top: calc(100% + 8px); display: flex; flex-wrap: wrap; gap: 8px; width: max-content; max-width: calc(100vw - 48px); }
.sky-hist[hidden] { display: none; }
.sky-seg { display: flex; border: 1px solid rgba(244, 239, 228, .22); border-radius: 999px; overflow: hidden; background: rgba(10, 14, 28, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.sky-seg[hidden] { display: none; }
.sky-seg button { border: 0; background: transparent; color: var(--starlight); opacity: .6; font: 600 12px var(--sans); padding: 7px 11px; cursor: pointer; }
.sky-seg button[aria-pressed="true"] { opacity: 1; background: rgba(244, 239, 228, .14); }
.sky-seg button:focus-visible { outline: 2px solid rgba(244, 239, 228, .7); outline-offset: -2px; }
@media (max-width: 420px) { .sky-seg button { padding: 7px 8px; } }

/* ---------- fresh but read: still lit for its day, quieter, fading as the day goes ---------- */
.newbadge.seen { background: transparent; color: var(--soft); box-shadow: inset 0 0 0 1px var(--hair); }
.sky .star.fresh.read .fresh-ring { animation: none !important; opacity: calc(var(--fade, 1) * .35); transform: scale(1.45); }
.sky .star.fresh.read .fresh-ring.r2 { display: none; }
.sky .star.fresh.read .glint { opacity: calc(var(--fade, 1) * .75); transform: scale(.7); }
@media (prefers-reduced-motion: no-preference) {
  .sky .star.fresh.read .glint { animation: fresh-glint-soft 4.5s ease-in-out infinite; }
}
@keyframes fresh-glint-soft { 0%, 100% { transform: scale(.6) rotate(0deg); } 50% { transform: scale(.8) rotate(45deg); } }
.sky .star.fresh.read .star-l { fill-opacity: .8; }
.sky .star.fresh.read .halo { opacity: .14; }

/* ---------- Search the sky ---------- */
.sky-find-b { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px 7px 10px; }
.sky-find-l { line-height: 1; }
.sky-find-b[aria-expanded="true"] { border-color: rgba(244, 239, 228, .55); background: rgba(244, 239, 228, .12); }
.sky-find { position: absolute; left: 0; top: calc(100% + 8px); width: min(340px, calc(100vw - 72px)); z-index: 3;
  background: rgba(16, 15, 13, .82); border: 1px solid rgba(244, 239, 228, .2); border-radius: 14px; padding: 6px;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.sky-find[hidden] { display: none; }
.sky.m-history .sky-find { top: calc(100% + 52px); }
.sky-find-in { width: 100%; box-sizing: border-box; border: 0; outline: none; background: rgba(244, 239, 228, .08); color: var(--starlight);
  font: 500 14px var(--sans); padding: 9px 11px; border-radius: 9px; -webkit-appearance: none; appearance: none; }
.sky-find-in::placeholder { color: rgba(244, 239, 228, .42); }
.sky-find-in:focus-visible { box-shadow: 0 0 0 1px rgba(244, 239, 228, .45); }
.sky-find-res { list-style: none; margin: 4px 0 0; padding: 0; max-height: min(46vh, 300px); overflow-y: auto; }
.sky-find-res:empty { display: none; }
.sky-find-res button { display: grid; grid-template-columns: 10px 1fr; column-gap: 9px; align-items: baseline; width: 100%; text-align: left;
  border: 0; background: transparent; color: var(--starlight); padding: 8px 9px; border-radius: 8px; cursor: pointer; }
.sky-find-res button:hover, .sky-find-res button:focus-visible { background: rgba(244, 239, 228, .1); outline: none; }
.sky-find-dot { width: 8px; height: 8px; border-radius: 50%; grid-row: span 2; align-self: center; }
.sky-find-t { font: 600 13px var(--sans); grid-column: 2; }
.sky-find-s { font: 500 11px var(--sans); opacity: .55; grid-column: 2; margin-top: 2px; }
.sky-find-none { color: var(--starlight); opacity: .55; font: 500 12.5px var(--sans); padding: 8px 10px; }
.sky.finding .star:not(.hit) { opacity: .16; }
.sky.finding .star.hit .star-l, .sky.finding .star.hit .star-d { opacity: 1 !important; fill-opacity: 1; }
.sky.finding .star.hit.dim .core { opacity: .8; }
.sky .star.found .halo2 { opacity: .35; }
@media (prefers-reduced-motion: no-preference) {
  .sky .star.found .star-b { animation: found-pop 1.1s ease-out 2; }
}
@keyframes found-pop { 0% { filter: drop-shadow(0 0 0 rgba(255, 255, 255, 0)); } 40% { filter: drop-shadow(0 0 14px rgba(255, 246, 230, .95)); } 100% { filter: drop-shadow(0 0 0 rgba(255, 255, 255, 0)); } }
@media (max-width: 420px) { .sky-sort-b { padding: 7px 10px; } }

/* parents and the items that orbit them */
.sky .star .kid-ring { stroke-width: .9; stroke-opacity: .5; stroke-dasharray: 2 2.6; pointer-events: none; transition: stroke-opacity .4s; }
.sky .star.unfolded .kid-ring { stroke-dasharray: none; stroke-opacity: .75; }
.sky .star.dim .kid-ring, .sky .star.dim .kid-n { display: none; }
.sky .kid-n { font: 600 8px var(--sans); fill: var(--starlight); fill-opacity: .85; text-anchor: middle; pointer-events: none; }
.sky .star.unfolded .kid-n { fill-opacity: .4; }
.sky .kid-link { stroke-width: .8; stroke-opacity: .42; stroke-dasharray: 2 3; }

/* waiting on them: the ball is with someone else */
.wait-chip { display: inline-flex; align-items: center; font-size: 11px; font-weight: 600; letter-spacing: .02em; color: var(--soft); background: rgba(107,106,99,.10); border-radius: 999px; padding: 1px 8px; }
.wait-chip.late { color: var(--clay); background: rgba(198,97,63,.12); }
.blk.waiting ol.items { opacity: .72; }
.blk.waiting .waitnote { margin: -8px 0 14px; font-size: 13px; }
.waitrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 10px; font-size: 13px; }
.waitrow .wait-in { flex: 1 1 180px; min-width: 0; }

/* people, decisions, home clock, invoices, folding on Today */
.person-chip { display: inline-flex; align-items: center; font-size: 11px; font-weight: 600; letter-spacing: .02em; color: var(--ink); background: rgba(46,44,39,.07); border: 0; border-radius: 999px; padding: 1px 8px; cursor: pointer; }
.person-chip.on { background: var(--ink); color: var(--bg, #FCFCFB); }
.people { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 0 0 18px; }
.people-l { font-size: 11px; letter-spacing: .09em; text-transform: uppercase; color: var(--grey); margin-right: 4px; }
.decide { margin-top: 10px; }
.decide-l { margin: 0 0 4px; font-size: 13px; color: var(--clay); }
.homeclock { color: var(--grey); }
.inv-chip { display: inline-flex; align-items: center; font-size: 11px; font-weight: 600; border-radius: 999px; padding: 1px 8px; color: #3c6e9e; background: rgba(147,184,222,.22); }
.inv-chip.to-send { color: var(--clay); background: rgba(198,97,63,.12); }
.inv-chip.paid { color: #3f7a55; background: rgba(140,201,162,.22); }
.choices.invoice { margin-top: 10px; gap: 20px; }
.kids-toggle { margin-top: 8px; font-size: 13px; color: var(--soft); background: none; border: 0; padding: 0; cursor: pointer; }
.kids-toggle:hover { color: var(--ink); }
ol.items li.child { margin-left: 22px; padding-left: 12px; border-left: 1px dashed rgba(46,44,39,.18); }
.sky .twin-link { stroke: var(--starlight, #F4EFE4); stroke-opacity: .32; stroke-width: .8; stroke-dasharray: 5 4; }
.twin-line a { color: inherit; text-decoration: underline; text-underline-offset: 2px; text-decoration-color: rgba(127,127,127,.5); }
.sky .person-link { stroke: var(--starlight, #F4EFE4); stroke-opacity: .16; stroke-width: .7; stroke-dasharray: 1 4; }
@media (max-width: 440px) { .sky-find-l { display: none; } .sky-find-b { padding: 7px 10px; } }
/* an opened parent's own little orbit, and the thread back to its sun */
.sky .fam-ring { stroke-opacity: .32; stroke-dasharray: 2 4; }
.sky .fam-thread { stroke-width: .8; stroke-opacity: .3; stroke-dasharray: 1 4; }
.sky-area button { display: inline-flex; align-items: center; gap: 5px; }
.sky-area-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
@media (max-width: 560px) { .sky.m-history .sky-find { top: calc(100% + 92px); } }
.handoff-note { font-size: 12.5px; color: #8a5a9e; margin: 6px 0 0; }
.deleg-chip.mailed { box-shadow: inset 0 0 0 1px rgba(164,121,226,.35); }
.deleg-chip.queued { color: #9a6b12; background: rgba(214,163,58,.15); }
.deleg-chip.replied { color: #fff; background: #a479e2; }
/* hand-off panel: notes for the delegate, the checklist they got, status buttons */
.handoff-panel { margin-top: 10px; padding: 10px 12px; border-left: 2px solid rgba(164,121,226,.45); background: rgba(164,121,226,.06); border-radius: 0 10px 10px 0; }
.handoff-panel[hidden] { display: none; }
.handoff-panel .handoff-note { margin: 0 0 8px; }
.handoff-notes { width: 100%; box-sizing: border-box; min-height: 64px; resize: vertical; font: inherit; font-size: 14px; line-height: 1.45; padding: 8px 10px; border: 1px solid rgba(164,121,226,.35); border-radius: 8px; background: var(--paper, #fff); color: inherit; }
.handoff-check { margin: 2px 0 10px; padding-left: 0; list-style: none; font-size: 13.5px; }
.handoff-check li { position: relative; padding-left: 22px; margin: 3px 0; }
.handoff-check li::before { content: ""; position: absolute; left: 2px; top: 3px; width: 11px; height: 11px; border: 1.5px solid #8a5a9e; border-radius: 3px; }
.handoff-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin-top: 8px; font-size: 13px; }
.handoff-acts .handoff-saved { margin-right: auto; font-size: 12px; }
/* the sky: someone else has this one */
.sky .star .moon-path { stroke: #c9a8f2; stroke-opacity: .28; stroke-width: .8; stroke-dasharray: 1.5 2.5; }
.sky .star .moon { fill: #d9c2fa; filter: drop-shadow(0 0 2px rgba(201,168,242,.9)); }
.sky .star .moon-orbit { transform-box: view-box; }
.sky .star.h-queued .moon { fill: #f2c86b; filter: drop-shadow(0 0 2px rgba(242,200,107,.9)); }
.sky .star.h-replied .moon { fill: #fff; }
.sky .star-who { font: 600 7.5px var(--sans); fill: #d9c2fa; fill-opacity: .85; text-anchor: middle; pointer-events: none; letter-spacing: .03em; }
.sky .star.h-queued .star-who { fill: #f2c86b; }
.sky .star.on .star-who, .sky .star.dim .star-who, .sky .star.dim .moon-orbit { opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .sky .star .moon-orbit { animation: moon-circle 9s linear infinite; }
}
@keyframes moon-circle { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* FLOWN: a task pulled into a focus block today */
.flown-chip { display: inline-flex; align-items: center; font-size: 11px; font-weight: 600; letter-spacing: .03em; color: #8a5a9e; background: rgba(164,121,226,.10); border-radius: 999px; padding: 1px 8px; text-decoration: none; white-space: nowrap; }
.flown-chip.deep { color: #9a6b12; background: rgba(231,183,92,.18); }

/* XTEINK screens on Today */
.xt-row { display: flex; gap: 18px; flex-wrap: wrap; }
.xt-card { margin: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.xt-card { position: relative; }
.xt-card.pick img { outline: 3px solid var(--clay); outline-offset: 2px; }
.xt-star { position: absolute; top: -8px; right: -8px; background: var(--clay); color: #fff; font-size: 11.5px; font-weight: 700; border-radius: 99px; padding: 3px 8px; }
.xt-roger { display: flex; gap: 10px; align-items: center; margin: 0 0 14px; }
.xt-roger img { width: 40px; height: 40px; border-radius: 50%; }
.xt-roger p { margin: 0; color: var(--ink); font-size: 14px; }
.xt-coach { font-size: 12px; letter-spacing: 0; text-transform: none; color: var(--soft); text-decoration: none; font-weight: 400; }
.xt-card img { width: 130px; height: 216px; object-fit: cover; border: 1px solid var(--hair, #ddd); border-radius: 8px; background: #fff; }
.xt-card figcaption { font-size: 13px; }
.xt-how { font-size: 12.5px; margin-top: 10px; }
.btn.small { padding: 7px 12px; font-size: 13px; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--hair); }

/* Today: XTEINK and Focus sessions side by side (stacked on phones) */
.xt-pair { display: grid; grid-template-columns: minmax(0, 3fr) minmax(280px, 2fr); gap: 24px; align-items: start; }
.xt-pair > .blk { margin-top: 0; }
@media (max-width: 760px) { .xt-pair { grid-template-columns: 1fr; } }
.focus-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.focus-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "time btn" "main btn"; gap: 2px 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--line, #e3e3e3); border-radius: 10px; }
.focus-item > .btn { grid-area: btn; }
.focus-time { grid-area: time; }
.focus-main { grid-area: main; line-height: 1.35; }
.focus-item.live { border-color: #E7B75C; box-shadow: 0 0 0 2px rgba(231, 183, 92, .25); }
.focus-item.over { opacity: .55; }
.focus-time { font-variant-numeric: tabular-nums; font-size: 13px; white-space: nowrap; }
.focus-main { min-width: 0; }
.focus-live { color: #B8862B; font-weight: 600; }
