/* whysosuresh.com: the one stylesheet for every page, the note sheet and the private threads. Black and
   white in light and dark (following the device's setting), on CapsJump's tokens and system type, so his
   two sites read as one person's; one 920px column (the home page's 1040px, for its side column) that
   narrows to a phone and keeps clear of the notch and the home bar. No web font: every script, Telugu included, falls through to the device's own face.
   Every class selector here is used by a served page or script (test/site.test.ts). */

:root {
  --bg: #fafafa;
  --surface: #ffffff;
  --ink: #0a0a0a;
  --muted: #5c5c5c;
  --line: #e5e5e5;
  --accent: #0a0a0a;
  --accent-ink: #ffffff;
  --accent-soft: #ededed;
  --shadow: rgba(0, 0, 0, 0.16);
  --scrim: rgba(10, 10, 10, 0.42);
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  /* The journal's reading face, its titles and stories only: Iowan Old Style on his Apple devices, Georgia elsewhere. */
  --serif: "Iowan Old Style", Georgia, serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0a0a;
    --surface: #161616;
    --ink: #f1f1f1;
    --muted: #a3a3a3;
    --line: #2a2a2a;
    --accent: #f1f1f1;
    --accent-ink: #0a0a0a;
    --accent-soft: #262626;
    --shadow: rgba(0, 0, 0, 0.6);
    --scrim: rgba(0, 0, 0, 0.66);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

a { color: var(--accent); text-underline-offset: 0.18em; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
img { max-width: 100%; height: auto; }
[hidden] { display: none !important; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* The column: every band's inner wrapper carries the side gutter. */
.bar, main, .foot {
  max-width: 920px;
  margin: 0 auto;
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
}

.bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 20px;
  padding-bottom: 20px;
}
.brand {
  color: var(--ink);
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
}
.bar-link { color: var(--muted); text-decoration: none; font-weight: 500; }
.bar-link:hover { color: var(--ink); }

section { padding: 40px 0; }

h1 {
  margin: 0;
  font-size: clamp(36px, 7vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h2 { margin: 0 0 12px; font-size: 24px; line-height: 1.25; letter-spacing: -0.01em; text-wrap: balance; }
h3 { margin: 0 0 6px; font-size: 18px; line-height: 1.3; }
p { margin: 0; }

.lede {
  max-width: 640px;
  color: var(--muted);
  font-size: clamp(17px, 2.4vw, 20px);
}
.fine { color: var(--muted); font-size: 14px; line-height: 1.5; }

/* The home page's opening: his photo large beside the greeting, read like a letter. */
.letter {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: 40px;
  padding-top: 24px;
}
.portrait {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 30%;
  border-radius: 20px;
  border: 1px solid var(--line);
}
.letter-text { display: grid; gap: 22px; min-width: 0; }
.letter h1 {
  font-size: clamp(44px, 8vw, 80px);
  line-height: 1;
  letter-spacing: -0.03em;
}
.letter .lede { color: var(--ink); font-size: clamp(19px, 2.5vw, 22px); line-height: 1.5; }

@media (max-width: 700px) {
  .letter { grid-template-columns: 1fr; gap: 24px; }
  .portrait { max-width: 200px; aspect-ratio: 1 / 1; border-radius: 18px; }
}

/* The doors: each way to reach him with one line on what to expect, and the sheet's buttons: the
   bold one, and the quiet one. */
.doors {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.doors li { display: grid; justify-items: start; align-content: start; gap: 8px; min-width: 0; }
.doors li > :first-child { min-height: 60px; }
.talk-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding: 14px 26px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font: inherit;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 20px var(--shadow);
}
.talk-button:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.ghost-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.ghost-button:hover { border-color: var(--ink); }

/* A section's head: its title, with a quiet link to the rest on the right. */
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; }
/* Things he makes: three plain entries, same edges and baselines. */
.makes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.makes li { min-width: 0; }
.makes a {
  display: grid;
  align-content: start;
  gap: 4px;
  height: 100%;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
}
.makes a:hover { border-color: var(--ink); }
.makes .where { color: var(--muted); font-family: var(--mono); font-size: 13px; }
.makes p { color: var(--muted); font-size: 15px; line-height: 1.5; }

.links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0; padding: 0; list-style: none; }
.links a { color: var(--ink); font-weight: 500; }

/* The home page: wider than the other pages, so on a wide screen what's happening has the main column beside a light
   side column of what he makes and where to find him. The bar, the column and the foot widen together, so their edges
   stay in line. On a phone, and while nothing is posted (the feed's section is hidden), it is one column, what he
   makes and where to find him at full width as before the feed. */
.home .bar, .home main, .home .foot { max-width: 1040px; }
.home-main { min-width: 0; }
@media (min-width: 821px) {
  .home-grid:has(> .home-main:not([hidden])) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 0 48px;
    align-items: start;
  }
  .home-grid:has(> .home-main:not([hidden])) .home-side { position: sticky; top: 0; }
  .home-grid:has(> .home-main:not([hidden])) .home-side h2 { font-size: 17px; }
  .home-grid:has(> .home-main:not([hidden])) .makes { grid-template-columns: 1fr; gap: 10px; }
  .home-grid:has(> .home-main:not([hidden])) .makes a { padding: 14px 16px; }
  .home-grid:has(> .home-main:not([hidden])) .makes p { display: none; }
}

/* The Now line under the greeting: what he is doing now, in one line he changes from Today. */
.now {
  display: flex;
  gap: 12px;
  align-items: baseline;
  padding: 12px 16px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  font-size: 17px;
  line-height: 1.5;
}
.now b {
  flex: none;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* What's happening: the threads he posted and what arrives from outside (his videos, his products' releases), newest
   first, each with its day; a post with its first lines and its notes, a video with its small picture beside its title,
   a release with its name and version. */
.feed { margin: 0; padding: 0; list-style: none; }
/* Under the home page's newest ten, when there are more: the way to every update (/updates). */
.more { margin-top: 4px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 15px; }
.more a { color: var(--ink); font-weight: 500; }
.item {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.item:first-child { border-top: 0; padding-top: 4px; }
.when {
  padding-top: 3px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.what { display: grid; gap: 8px; min-width: 0; }
.what h3 { margin: 0; font-size: 19px; line-height: 1.35; }
.what h3 a { color: var(--ink); text-decoration: none; }
.what h3 a:hover { text-decoration: underline; }
.what p { color: var(--muted); font-size: 16px; line-height: 1.55; overflow-wrap: anywhere; }
.meta { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 15px; }
.what .meta a { color: var(--ink); font-weight: 500; }
.item-video .what:has(> .thumb) { grid-template-columns: 128px minmax(0, 1fr); gap: 6px 16px; align-items: start; }
.item-video .what:has(> .thumb) > :not(.thumb) { grid-column: 2; }
.thumb { grid-row: 1 / span 2; display: block; }
.thumb img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
}
@media (max-width: 560px) {
  .item { grid-template-columns: 1fr; gap: 4px; }
  .item-video .what:has(> .thumb) { grid-template-columns: 112px minmax(0, 1fr); }
}

.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 20px;
  padding-top: 28px;
  padding-bottom: 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}
.foot a { color: var(--muted); }

/* The talk-to-me page: a short column of text around the doors. */
.prose { max-width: 640px; display: grid; gap: 14px; }

/* The note sheet: a native dialog, a sheet from the bottom on a phone and a panel on a laptop. */
.talk-dialog {
  width: min(520px, 100%);
  max-width: 100%;
  max-height: 100%;
  margin: auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 24px 60px var(--shadow);
}
.talk-dialog::backdrop { background: var(--scrim); }
.talk-sheet {
  display: grid;
  gap: 18px;
  padding: 20px 24px 28px;
}
.sheet-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sheet-name { color: var(--muted); font-size: 14px; font-weight: 600; }
.close-button {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
.close-button:hover { background: var(--accent-soft); }
.state { display: grid; align-content: start; gap: 16px; padding: 0; }
.state h2 { margin: 0; font-size: 26px; }
.state h2:focus { outline: none; }
.state .big {
  justify-self: start;
  min-height: 56px;
}

/* What it's about: four plain choices, each with its hint; one that opens an ask is a link. */
.topics { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.topic {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 12px;
  width: 100%;
  min-height: 64px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.topic:hover { border-color: var(--ink); }
.topic strong { font-size: 18px; line-height: 1.3; }
.topic span { color: var(--muted); font-size: 14px; line-height: 1.4; }
/* A topic that opens an ask: a link, with where it goes on the right. */
a.topic { text-decoration: none; }
.topic strong, .topic span { grid-column: 1; }
.topic em { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: var(--muted); font-size: 13px; font-style: normal; white-space: nowrap; }

/* The note: its topic, the questions it answers, the box and the line under it. */
.chip { display: flex; flex-wrap: wrap; align-items: center; gap: 0 10px; color: var(--muted); font-size: 15px; }
.chip strong { color: var(--ink); }
.questions { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.under { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; }
.under .fine { min-width: 0; }
.count { margin-left: auto; font-variant-numeric: tabular-nums; }
.count[data-wrong] { color: var(--ink); font-weight: 600; }

.notice {
  padding: 12px 14px;
  border: 1px solid var(--ink);
  border-radius: 12px;
  font-weight: 600;
}
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 15px; }
.field .hint { color: var(--muted); font-weight: 400; }
.field input, .field textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
}
.field textarea { min-height: 150px; resize: vertical; line-height: 1.5; }
.field input:focus, .field textarea:focus { border-color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.text-button {
  min-height: 44px;
  padding: 8px 4px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
}

@media (max-width: 560px) {
  .talk-dialog {
    width: 100%;
    margin: auto 0 0;
    border-radius: 20px 20px 0 0;
    border-bottom: 0;
  }
  .talk-sheet {
    padding-left: var(--gutter-l);
    padding-right: var(--gutter-r);
    padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px));
  }
  .talk-button { width: 100%; justify-content: center; }
  .state .big { justify-self: stretch; justify-content: center; }
}


/* The threads (/threads/): one app at Compact size, from its design page. A sidebar (Today, All threads, the
   spaces, Find and New) beside one scrolling pane; below 720px the sidebar becomes a bar along the bottom. A thread
   is a column of its summary, its text and its history, with its details beside it on a wide screen and under it
   on a narrow one. The threads' own greys sit on the site's tokens; state is drawn from ARIA attributes. */
.threads {
  --faint: #8c8c8c;
  --hover: #f4f4f4;
  --sel: #e9e9e9;
  padding: 0;
  font: 13.5px/1.5 var(--font);
}
@media (prefers-color-scheme: dark) {
  .threads { --faint: #767676; --hover: #1d1d1d; --sel: #242424; }
}
:where(.threads) button, :where(.threads) input, :where(.threads) select, :where(.threads) textarea { font: inherit; color: inherit; }
:where(.threads) button { cursor: pointer; }
:where(.threads) a { color: var(--ink); }
.threads :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.threads kbd {
  display: inline-block; min-width: 1.5em; padding: 0 4px;
  border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 4px;
  background: var(--surface); color: var(--muted);
  font: 600 10.5px/1.45 var(--mono); text-align: center;
}
/* The site's page sections carry a band's padding; the threads' sections carry their own. */
.threads section { padding: 0; }
.t-i { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.t-app {
  display: grid; grid-template-columns: 248px minmax(0, 1fr); height: 100vh; height: 100dvh;
  padding-top: env(safe-area-inset-top, 0px);
}
.t-side { display: flex; flex-direction: column; min-height: 0; overflow-y: auto; padding: 10px 8px 8px; padding-left: max(8px, env(safe-area-inset-left, 0px)); border-right: 1px solid var(--line); background: var(--surface); }
/* The menu, from its design page: the site's name with New beside it, Find, the rooms in groups, sections that fold,
   and who is signed in at the foot. Rows are 32px; a grey number says how many, a pill that someone waits on him. */
.t-side-head { display: flex; align-items: center; gap: 6px; padding: 4px 4px 8px 6px; }
.t-brand { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14.5px; font-weight: 750; letter-spacing: -0.01em; text-decoration: none; }
.t-side-new { display: grid; place-items: center; flex: none; width: 30px; height: 30px; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--ink); }
.t-side-new:hover { background: var(--hover); }
.t-side-new .t-i { width: 16px; height: 16px; }
.t-side-find {
  display: flex; align-items: center; gap: 10px; width: 100%; height: 32px; margin-bottom: 10px; padding: 0 10px;
  border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--faint); font-size: 13px; text-align: left;
}
.t-side-find:hover { color: var(--muted); }
.t-side-find .t-i { width: 16px; height: 16px; }
.t-side-find-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t-side-find kbd { color: var(--faint); }
.t-nav { display: grid; grid-template-columns: minmax(0, 1fr); }
.t-nav-group { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1px; }
.t-nav-group + .t-nav-group { margin-top: 10px; }
.t-nav-sec {
  display: flex; align-items: center; gap: 6px; width: 100%; height: 28px; margin-top: 12px; padding: 0 10px;
  border: 0; border-radius: 8px; background: none; color: var(--faint); font-size: 12px; font-weight: 600; text-align: left;
}
.t-nav-sec:hover { color: var(--ink); }
.t-nav-sec .t-i { width: 12px; height: 12px; transition: transform 0.15s; }
.t-nav-sec[aria-expanded="false"] .t-i { transform: rotate(-90deg); }
.t-nav-item {
  display: flex; align-items: center; gap: 10px; width: 100%; height: 32px; padding: 0 10px;
  border-radius: 8px; font-size: 13.5px; font-weight: 500; text-decoration: none;
}
.t-nav-item .t-i { width: 16px; height: 16px; color: var(--faint); }
.threads .t-nav-item { color: var(--muted); }
.threads .t-nav-item:hover { background: var(--hover); color: var(--ink); }
.threads .t-nav-item[aria-current="page"] { background: var(--accent-soft); color: var(--ink); font-weight: 600; }
.t-nav-item:hover .t-i, .t-nav-item[aria-current="page"] .t-i { color: var(--ink); }
.t-nav-pad { width: 16px; flex: none; }
/* A space's mark: a small square, so a space never reads as a room. */
.t-nav-glyph { display: grid; place-items: center; width: 16px; height: 16px; flex: none; }
.t-nav-glyph::before { content: ""; width: 9px; height: 9px; border: 1.5px solid currentColor; border-radius: 3px; }
/* An invited reader's open thread: filled for To do, a ring for To discuss, a ring with a point for New. */
.t-nav-mark { position: relative; width: 8px; height: 8px; margin: 0 4px; flex: none; border: 1.5px solid var(--ink); border-radius: 50%; }
.t-nav-mark[data-status="act"] { background: var(--ink); }
.t-nav-mark[data-status="received"]::after { content: ""; position: absolute; inset: 1px; border-radius: 50%; background: var(--ink); }
.t-nav-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t-nav-count { margin-left: auto; font-size: 12px; font-variant-numeric: tabular-nums; color: var(--faint); }
.t-nav-badge {
  margin-left: auto; min-width: 20px; height: 18px; padding: 0 6px; border-radius: 9px; background: var(--ink); color: var(--accent-ink);
  font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; font-variant-numeric: tabular-nums;
}
.t-side-foot { margin-top: auto; padding-top: 8px; border-top: 1px solid var(--line); }
/* Who is signed in, opening the account menu above it. */
.t-side-me { display: flex; align-items: center; gap: 10px; width: 100%; padding: 6px; border: 0; border-radius: 8px; background: none; color: var(--ink); text-align: left; }
.t-side-me:hover { background: var(--hover); }
.t-side-me .t-av { width: 26px; height: 26px; font-size: 12px; }
.t-side-me .t-i { width: 16px; height: 16px; color: var(--faint); }
.t-side-who { flex: 1; min-width: 0; line-height: 1.3; }
.t-side-who b, .t-side-who small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t-side-who b { font-size: 13px; font-weight: 600; }
.t-side-who small { color: var(--muted); font-size: 11.5px; }
.t-icon-button { margin-left: auto; display: inline-grid; place-items: center; padding: 4px; border: 0; border-radius: 6px; background: none; color: var(--muted); }
.t-icon-button:hover { color: var(--ink); background: var(--hover); }
.t-main { min-width: 0; min-height: 0; overflow-y: auto; background: var(--bg); padding-right: env(safe-area-inset-right, 0px); }
.t-main:focus { outline: none; }
.t-tabbar { display: none; }

.t-av {
  display: inline-grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 50%;
  background: var(--accent-soft); color: var(--ink); font-size: 11px; font-weight: 700; border: 1px solid var(--line);
}
.t-av-me { background: var(--ink); color: var(--accent-ink); border-color: var(--ink); }
/* A photo fills the same circle, cropped to it, at every size the initial takes. */
.t-av-photo { padding: 0; object-fit: cover; background: var(--accent-soft); }
/* "via Claude": quiet words beside his name, where the sync wrote for him; never a chip, which carries meaning. */
.t-via { color: var(--faint); font-size: 11.5px; font-weight: 500; white-space: nowrap; }

/* Shared pieces. */
.t-wrap { max-width: 820px; margin: 0 auto; padding: 22px 24px 48px; display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: 18px; }
.t-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.t-head h1 { margin: 0; font-size: 19px; letter-spacing: -0.015em; line-height: 1.2; }
.t-head p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.t-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px;
  border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink);
  font-size: 12.5px; font-weight: 600; white-space: nowrap; text-decoration: none;
}
.t-btn:hover { border-color: var(--muted); }
.t-btn-primary { background: var(--ink); color: var(--accent-ink); border-color: var(--ink); }
.threads .t-btn-primary { color: var(--accent-ink); }
.t-btn-primary:hover { opacity: 0.88; }
.t-btn-quiet { border-color: transparent; background: transparent; color: var(--muted); }
.t-btn-quiet:hover { color: var(--ink); background: var(--hover); border-color: transparent; }
.t-btn kbd { background: transparent; color: inherit; border-color: currentColor; opacity: 0.55; }
.t-chip { display: inline-flex; align-items: center; gap: 4px; padding: 0 7px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); font-size: 11px; font-weight: 600; white-space: nowrap; line-height: 1.6; }
.t-section { display: grid; gap: 6px; }
.t-section-head { display: flex; align-items: baseline; gap: 8px; padding: 0 4px; flex-wrap: wrap; }
.t-section-head h2 { margin: 0; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.t-n { color: var(--muted); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.t-hint { margin-left: auto; color: var(--faint); font-size: 11.5px; }
.t-list { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); overflow: hidden; }
.t-list-tabbed { border-top: 0; border-radius: 0 0 10px 10px; }
.t-row {
  display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 1px 12px;
  padding: 8px 14px; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none;
}
.threads .t-row { color: var(--ink); }
.t-row:first-child { border-top: 0; }
.t-row:hover { background: var(--hover); }
.t-row[aria-selected="true"] { background: var(--sel); box-shadow: inset 2px 0 0 var(--ink); }
.threads .t-row:focus-visible { outline-offset: -2px; }
.t-num { color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; font-weight: 600; display: inline-flex; }
.t-row-main { min-width: 0; display: grid; gap: 1px; }
.t-row-title { font-weight: 650; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t-row-sub { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t-row-meta { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.t-empty { padding: 24px 16px; color: var(--muted); text-align: center; font-size: 13px; }
.t-note { color: var(--muted); font-size: 12px; margin: 0; }
.t-text-btn { border: 0; background: none; padding: 0; color: var(--muted); font-size: 12px; font-weight: 600; text-decoration: underline; text-underline-offset: 0.2em; }
.t-text-btn:hover { color: var(--ink); }
.t-tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.t-tab { padding: 6px 10px; border-bottom: 2px solid transparent; color: var(--muted); font-weight: 600; font-size: 13px; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.threads .t-tab { color: var(--muted); }
.threads .t-tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.t-tab .t-nav-count { margin-left: 0; }
.t-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.t-filter { padding: 2px 9px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 11.5px; font-weight: 600; text-decoration: none; }
.threads .t-filter { color: var(--muted); }
.threads .t-filter[aria-current="true"] { background: var(--ink); color: var(--accent-ink); border-color: var(--ink); }
.t-seg { display: inline-flex; border: 1px solid var(--line); border-radius: 7px; padding: 2px; background: var(--bg); }
.t-seg button { border: 0; background: transparent; padding: 2px 9px; border-radius: 5px; font-size: 11.5px; font-weight: 600; color: var(--muted); }
.t-seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px var(--shadow); }
.t-missing { display: grid; gap: 8px; max-width: 420px; margin: 40px auto 0; }
.t-missing h1 { margin: 0; font-size: 19px; }
.t-missing p { margin: 0; color: var(--muted); }

/* A thread. */
.t-thread { display: grid; grid-template-columns: minmax(0, 1fr) 220px; align-items: start; gap: 36px; max-width: 1000px; margin: 0 auto; padding: 20px 28px 56px; }
.t-doc { min-width: 0; display: grid; gap: 14px; align-content: start; }
.t-crumbs { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; flex-wrap: wrap; }
.threads .t-crumbs a { color: inherit; font-weight: 600; text-decoration: none; }
.threads .t-crumbs a:hover { color: var(--ink); text-decoration: underline; }
.t-pager { margin-left: auto; display: inline-flex; gap: 2px; }
.t-pager button { display: inline-grid; place-items: center; padding: 3px 6px; border: 0; border-radius: 6px; background: none; color: var(--muted); }
.t-pager button:hover:not(:disabled) { background: var(--hover); color: var(--ink); }
.t-pager button:disabled { opacity: 0.35; cursor: default; }
.t-title { margin: 0; font-size: 22px; line-height: 1.18; letter-spacing: -0.02em; text-wrap: balance; }
.t-tn { color: var(--faint); font-weight: 600; font-variant-numeric: tabular-nums; }
.t-byline { color: var(--muted); font-size: 12.5px; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.t-byline b { color: var(--ink); }
.t-moves { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.t-grow { flex: 1; }

/* The living summary: the first thing a thread says. */
.threads .t-summary { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); padding: 10px 14px 12px; display: grid; gap: 6px; }
.t-summary-head { display: flex; align-items: center; gap: 8px; color: var(--faint); font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.t-summary-head span:last-child:not(:first-child) { margin-left: auto; text-transform: none; letter-spacing: 0; font-weight: 500; font-size: 11.5px; }
.t-sum-grid { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 6px 18px; }
.t-sum-grid div { min-width: 0; }
.t-sum-grid dt { font-size: 10.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.t-sum-grid dd { margin: 0; font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; }
.threads .t-summary-empty { border-style: dashed; background: transparent; color: var(--muted); font-size: 13px; display: block; }

/* Prose: the main text, comments and previews, drawn from Markdown. */
.t-prose { font-size: 14px; line-height: 1.6; max-width: 70ch; min-width: 0; display: grid; gap: 10px; overflow-wrap: anywhere; }
.t-prose > * { margin: 0; }
.t-prose ul, .t-prose ol { padding-left: 20px; }
.t-prose li + li { margin-top: 2px; }
.t-md-h { font-size: 14.5px; margin: 4px 0 -4px; letter-spacing: -0.005em; }
.t-prose blockquote { border-left: 2px solid var(--line); padding-left: 12px; color: var(--muted); white-space: pre-line; }
.t-prose p { white-space: pre-line; }
.t-prose code { font: 12.5px var(--mono); background: var(--accent-soft); padding: 0 4px; border-radius: 4px; }
.t-code { font: 12px/1.5 var(--mono); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; overflow-x: auto; white-space: pre; }
.t-prose .t-code code { background: none; padding: 0; }
.t-prose hr { border: 0; border-top: 1px solid var(--line); width: 100%; }
.t-ref { font-weight: 600; }
.t-plain { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; line-height: 1.6; max-width: 70ch; margin: 0; }
.t-prose[lang="te"], .t-plain[lang="te"] { line-height: 1.9; }

/* A page: an artifact's own HTML in a sealed frame, under a bar; full screen fills the window, its bar in view. */
.t-page { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--bg); box-shadow: 0 10px 30px -22px var(--shadow); }
.t-page[data-full="true"] { position: fixed; inset: 0; z-index: 25; border: 0; border-radius: 0; display: flex; flex-direction: column; padding-top: env(safe-area-inset-top, 0px); }
.t-page-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 7px 10px; border-bottom: 1px solid var(--line); background: var(--surface); font-size: 12px; color: var(--muted); }
.t-page-bar b { color: var(--ink); }
.t-page-bar .t-btn { padding: 3px 9px; font-size: 12px; }
.t-page-old { color: var(--ink); font-weight: 600; }
.t-page-frame { display: block; width: 100%; height: 600px; border: 0; background: #fff; }
.t-page[data-full="true"] .t-page-frame { flex: 1; height: auto; }
.t-row-mark { display: inline-flex; vertical-align: -2px; margin-right: 5px; color: var(--muted); }
.t-row-mark .t-i { width: 13px; height: 13px; }

/* A link: a card that opens an artifact on claude.ai. */
.t-link-card { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 16px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); align-items: center; }
.t-link-thumb { aspect-ratio: 16 / 9; border-radius: 8px; background: var(--ink); color: var(--accent-ink); display: grid; align-content: end; padding: 12px; gap: 2px; min-width: 0; }
.t-link-thumb b { font-size: 16px; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.t-link-thumb span { font-size: 10px; opacity: 0.7; }
.t-link-main { display: grid; gap: 6px; min-width: 0; justify-items: start; }
.t-link-main b { font-size: 15px; }
.t-link-main small { color: var(--muted); font: 11.5px var(--mono); overflow-wrap: anywhere; }
.t-link-main p { margin: 0; color: var(--muted); font-size: 12.5px; }

/* History and comments, in order. */
.t-feed { display: grid; position: relative; padding-top: 6px; border-top: 1px solid var(--line); }
.t-feed::before { content: ""; position: absolute; left: 11.5px; top: 0; bottom: 0; width: 1px; background: var(--line); }
.t-ev { position: relative; display: flex; align-items: center; gap: 10px; padding: 4px 0; color: var(--muted); font-size: 12px; flex-wrap: wrap; }
.t-pip { position: relative; z-index: 1; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--bg); color: var(--muted); flex: none; }
.t-pip .t-i { width: 13px; height: 13px; }
.t-ev-text { min-width: 0; flex: 1; }
.t-ev b { color: var(--ink); font-weight: 600; }
.t-ev time { color: var(--faint); white-space: nowrap; font-variant-numeric: tabular-nums; }
.t-ev-before { flex-basis: 100%; margin: 2px 0 4px 34px; padding: 8px 10px; border: 1px dashed var(--line); border-radius: 8px; color: var(--muted); font-size: 12.5px; white-space: pre-wrap; overflow-wrap: anywhere; }
.t-cm { position: relative; display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; padding: 7px 0; }
.t-cm .t-av { position: relative; z-index: 1; }
.t-cm-box { min-width: 0; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.t-cm-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 6px 12px; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.t-cm-head b { color: var(--ink); }
.t-cm-head time { margin-left: auto; font-variant-numeric: tabular-nums; }
.t-cm-body { padding: 9px 12px; }
.t-cm-body .t-prose { font-size: 13.5px; }
.t-composer { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; padding-top: 10px; }
.t-composer-box { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); overflow: hidden; min-width: 0; }
.t-composer-box:focus-within { border-color: var(--muted); }
.t-composer textarea { display: block; width: 100%; min-height: 64px; padding: 9px 12px; border: 0; background: transparent; resize: vertical; font-size: 13.5px; line-height: 1.5; }
.t-composer textarea:focus { outline: none; }
.t-preview-pane { padding: 9px 12px; min-height: 64px; }
.t-composer-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 6px 8px; border-top: 1px solid var(--line); }
.t-composer-bar .t-note { margin-right: auto; }

/* Sharing: the people on a thread, the Share sheet, and comments for the owner alone ("Only me", dashed). */
.t-people-mark { display: inline-flex; align-items: center; gap: 3px; color: var(--muted); font-size: 11.5px; }
.t-people-mark .t-i { width: 13px; height: 13px; }
.t-plist { display: grid; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.t-prow { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 7px 10px; border-top: 1px solid var(--line); font-size: 13px; }
.t-prow:first-child { border-top: 0; }
.t-prow-name { min-width: 0; display: grid; }
.t-prow-name b { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t-prow-name small { color: var(--muted); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t-prow-role { color: var(--faint); font-size: 11.5px; }
.t-invite { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto; gap: 8px; align-items: end; }
.t-invite .t-btn { height: 33px; }
.t-sees { border: 1px dashed var(--line); border-radius: 10px; padding: 9px 12px; color: var(--muted); font-size: 12.5px; display: grid; gap: 3px; }
.t-sees b { color: var(--ink); }
.t-seats { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.t-seat-bar { flex: none; width: 90px; height: 6px; }
.t-err { color: var(--ink); font-size: 12px; font-weight: 600; margin: 0; }
.t-cm[data-audience="owner"] .t-cm-box { border-style: dashed; background: transparent; }
.t-cm[data-audience="owner"] .t-cm-head { border-bottom-style: dashed; }
.t-composer[data-audience="owner"] .t-composer-box { border-style: dashed; background: transparent; }
.t-dpeople { display: grid; gap: 3px; font-weight: 600; min-width: 0; }
.t-dpeople span { overflow-wrap: anywhere; }
.t-dpeople small { color: var(--faint); font-weight: 500; }

/* The details beside a thread. */
.t-rail { display: grid; align-content: start; gap: 14px; min-width: 0; position: sticky; top: 20px; }
.t-details { display: grid; align-content: start; font-size: 12px; }
.t-drow { display: grid; gap: 4px; padding: 10px 0; border-top: 1px solid var(--line); min-width: 0; }
.t-drow:first-child { border-top: 0; padding-top: 2px; }
.t-dlabel { color: var(--faint); font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.t-dval { color: var(--ink); font-weight: 600; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-width: 0; }
.t-dval-soft { font-weight: 500; color: var(--muted); }
.t-select { border: 1px solid var(--line); border-radius: 7px; background: var(--surface); padding: 4px 6px; font-weight: 600; font-size: 12px; width: 100%; }
.t-linkline { font: 11.5px var(--mono); color: var(--ink); overflow-wrap: anywhere; }

/* Reply, drafted in the thread. */
.t-reply { border: 1.5px solid var(--ink); border-radius: 10px; background: var(--surface); overflow: hidden; }
.t-reply-head { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.t-reply-head h2 { margin: 0; font-size: 13.5px; }
.t-reply-head span { margin-left: auto; color: var(--muted); font-size: 11.5px; }
.t-reply-body { display: grid; gap: 8px; padding: 10px 12px; }
.t-reply-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; padding: 0 12px 10px; }

/* Forms: editing in place, a new thread, the reply. */
.t-fld { display: grid; gap: 4px; }
.t-lbl { font-size: 11px; font-weight: 700; color: var(--muted); letter-spacing: 0.04em; display: flex; align-items: center; gap: 8px; }
.t-lbl small { font-weight: 500; letter-spacing: 0; color: var(--faint); margin-left: auto; font-size: 11px; }
.t-lbl .t-seg { margin-left: auto; }
.t-field { width: 100%; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); font-size: 13px; }
textarea.t-field { resize: vertical; line-height: 1.5; }
.t-field-mono { font: 12.5px/1.55 var(--mono); }
.threads .t-field:focus { outline: 2px solid var(--accent); outline-offset: 0; }
.t-field[readonly] { background: var(--bg); color: var(--muted); }
.t-editor { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; max-width: 1180px; margin: 0 auto; padding: 18px 24px 48px; }
.t-editor-top { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.t-editor-top h1 { margin: 0; font-size: 15px; }
.t-editor-form { display: grid; gap: 12px; align-content: start; min-width: 0; }
.t-editor-preview { min-width: 0; display: grid; gap: 12px; align-content: start; padding: 14px 16px; border: 1px dashed var(--line); border-radius: 10px; }
.t-tag { color: var(--faint); font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.t-only-narrow { display: none; }
.t-form { display: grid; gap: 10px; }
.t-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* Dialogs: drop, space, keys, a new thread and ⌘K, one native dialog filled for each. */
.t-dialog {
  width: min(500px, calc(100% - 32px)); max-height: min(640px, calc(100% - 80px)); margin: 56px auto auto; padding: 0;
  overflow-y: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink);
  box-shadow: 0 24px 60px -20px var(--shadow);
}
.t-dialog::backdrop { background: var(--scrim); }
.t-dialog[data-kind="narrow"] { width: min(340px, calc(100% - 32px)); }
.t-dialog[data-kind="wide"] { width: min(720px, calc(100% - 32px)); }
.t-dialog[data-kind="find"] { width: min(580px, calc(100% - 32px)); overflow: hidden; }
/* The account menu: above the menu's foot on a wide screen, a bottom sheet on a phone, as every dialog is. */
.t-dialog[data-kind="menu"] { padding: 6px; }
@media (min-width: 720px) {
  .t-dialog[data-kind="menu"] { width: 232px; margin: auto auto 64px 8px; border-radius: 10px; box-shadow: 0 10px 30px var(--shadow); }
  .t-dialog[data-kind="menu"]::backdrop { background: transparent; }
}
.t-menu-head { display: grid; gap: 1px; margin-bottom: 4px; padding: 6px 8px 8px; border-bottom: 1px solid var(--line); line-height: 1.35; }
.t-menu-head b { font-size: 13px; }
.t-menu-head small { color: var(--muted); font-size: 11.5px; overflow-wrap: anywhere; }
.t-menu-list { display: grid; gap: 1px; }
.t-menu-row { display: flex; align-items: center; gap: 10px; width: 100%; height: 32px; padding: 0 8px; border: 0; border-radius: 7px; background: none; color: var(--ink); font-size: 13px; text-align: left; }
.t-menu-row:hover, .t-menu-row:focus-visible { background: var(--hover); }
.t-menu-row .t-i { width: 16px; height: 16px; color: var(--muted); }
.t-menu-row kbd { margin-left: auto; }
.t-sheet-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px 8px; }
.t-sheet-head h2 { margin: 0; font-size: 15px; }
.t-x { margin-left: auto; display: inline-grid; place-items: center; border: 0; background: none; color: var(--muted); padding: 4px; border-radius: 6px; }
.t-x:hover { background: var(--hover); color: var(--ink); }
.t-sheet-body { display: grid; gap: 12px; padding: 2px 14px 14px; }
.t-pick-list { display: grid; gap: 4px; }
.t-pick { display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); text-align: left; font-size: 13px; font-weight: 600; }
.t-pick:hover, .t-pick:focus-visible { border-color: var(--muted); }
.t-pick[aria-current="true"] { border-color: var(--ink); }
.t-pick kbd { margin-left: auto; }
.t-pick-photo .t-av { width: 18px; height: 18px; font-size: 9px; }
/* His photo sheet: the photo, or his initial, large beside what it is for; the file input is driven by Choose. */
.t-photo-preview { display: flex; align-items: center; gap: 14px; }
.t-photo-preview p { margin: 0; color: var(--muted); font-size: 13px; }
.t-av-xl { width: 64px; height: 64px; font-size: 24px; }
.t-photo-file { display: none; }
.t-keys { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 20px; }
.t-keys h3 { margin: 0 0 4px; font-size: 10.5px; color: var(--faint); letter-spacing: 0.08em; text-transform: uppercase; }
.t-key-row { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 8px; align-items: baseline; padding: 3px 0; font-size: 12.5px; }
.t-key-row span:first-child { display: flex; gap: 3px; }
.t-find-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.t-find-input { flex: 1; border: 0; background: transparent; font-size: 15px; min-width: 0; }
.threads .t-find-input:focus { outline: none; }
.t-find-list { padding: 6px; max-height: 360px; overflow-y: auto; }
.t-find-group { padding: 8px 10px 3px; color: var(--faint); font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.t-find-item { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 8px; width: 100%; padding: 6px 8px; border: 0; border-radius: 7px; background: transparent; text-align: left; font-size: 13px; }
.t-find-item[aria-selected="true"] { background: var(--accent-soft); }
.t-find-text { min-width: 0; display: grid; }
.t-find-text span, .t-find-text small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t-find-text small { color: var(--muted); font-size: 11.5px; }
.t-find-item mark { background: var(--accent-soft); color: inherit; border-radius: 3px; padding: 0 1px; font-weight: 700; }
.t-find-item[aria-selected="true"] mark { background: var(--surface); }
.t-find-side { color: var(--faint); font-size: 11.5px; white-space: nowrap; }
.t-find-foot { display: flex; gap: 12px; padding: 8px 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11.5px; flex-wrap: wrap; }

/* The toast, the problem line, and signed out. */
.t-toast {
  position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 30; transform: translateX(-50%);
  display: flex; align-items: center; gap: 12px; max-width: calc(100% - 32px); overflow: hidden;
  padding: 9px 12px; border-radius: 9px; background: var(--ink); color: var(--accent-ink); font-size: 12.5px; font-weight: 600;
  box-shadow: 0 10px 30px -10px var(--shadow);
}
.t-toast-undo { border: 0; background: transparent; color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 0.2em; padding: 0; display: inline-flex; gap: 6px; align-items: center; }
.t-toast kbd { background: transparent; color: inherit; border-color: currentColor; opacity: 0.6; }
.t-toast-bar { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--accent-ink); opacity: 0.5; transform-origin: left; animation: t-drain 6s linear forwards; }
.t-toast:hover .t-toast-bar { animation-play-state: paused; }
@keyframes t-drain { to { transform: scaleX(0); } }
.t-banner {
  position: fixed; top: calc(12px + env(safe-area-inset-top, 0px)); left: 50%; z-index: 40; transform: translateX(-50%);
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap; width: max-content; max-width: calc(100% - 32px); margin: 0;
  padding: 8px 14px; border-radius: 9px; background: var(--ink); color: var(--accent-ink); font-size: 12.5px; font-weight: 600;
}
.threads .t-banner a { color: inherit; }
.t-lost { min-height: 100vh; background: var(--bg); }
.t-lost-bar { max-width: 760px; margin: 0 auto; padding: 16px 24px; }
.t-lost-name { font-weight: 800; font-size: 15px; text-decoration: none; }
.t-lost-body { max-width: 420px; margin: 56px auto 0; padding: 0 24px; display: grid; gap: 8px; }
.t-lost-title { margin: 0; font-size: 19px; }
.t-lost-text { margin: 0; color: var(--muted); font-size: 13.5px; }
.t-lost-text .t-btn { margin-top: 8px; }

/* Public threads: the public view anyone reads, the note form, a visitor's note waiting for his OK, and Share's
   switch. A note waiting is the one solid-bordered card on his page; a public comment carries the globe chip. */
.t-chip-public { color: var(--ink); border-color: var(--ink); }
.t-chip .t-i { width: 12px; height: 12px; }
.t-pub { min-height: 100vh; background: var(--bg); padding-top: env(safe-area-inset-top, 0px); }
.t-pub-bar { max-width: 760px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; gap: 12px; }
.t-pub-bar a { font-weight: 800; font-size: 15px; text-decoration: none; color: var(--ink); }
.threads .t-pub-bar .t-pub-sign-in { margin-left: auto; color: var(--muted); font-size: 12px; font-weight: 600; }
.t-pub-doc { max-width: 760px; margin: 0 auto; padding: 8px 24px 56px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; align-content: start; }
.t-pub-doc .t-feed { padding-top: 10px; }
.t-answering { display: flex; align-items: center; gap: 8px 10px; flex-wrap: wrap; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-size: 13px; }
.t-answering[data-full="true"] { padding: 0; border: 0; background: transparent; font-size: 12.5px; color: var(--ink); }
.t-answering b { font-weight: 700; }
.t-answering-label { font-weight: 600; }
.t-answering .t-answering-field { width: 180px; max-width: 100%; padding: 4px 9px; }
.t-answering[data-full="true"] .t-answering-field { width: 160px; padding: 3px 9px; }
.t-answering-field[aria-invalid="true"] { border-color: var(--ink); box-shadow: 0 0 0 2px var(--ink); }
.t-answering .t-btn { padding: 3px 10px; font-size: 12.5px; }
.t-answering-hint { flex-basis: 100%; color: var(--muted); font-size: 12px; }
.t-page-bar[data-answering] { gap: 8px 12px; padding: 8px 14px; }
.t-page-site { min-width: 0; max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t-full-link { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; padding-top: 8px; margin-top: 4px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.t-full-link b { color: var(--ink); font-size: 12px; }
.t-full-link .t-btn { margin-left: auto; padding: 3px 10px; font-size: 12px; }
.t-cm-from { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.t-cm-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 0 12px 10px; }
.t-cm-actions .t-note { margin-left: auto; }
.t-noteform { display: grid; gap: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: 14px; margin-top: 8px; }
.t-noteform h2 { margin: 0; font-size: 15px; letter-spacing: -0.01em; }
.t-noteform textarea.t-field { min-height: 96px; }
.t-noteform .t-field[aria-invalid="true"] { border-color: var(--ink); }
.t-noteform-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.t-noteform-bar .t-note { flex: 1; min-width: 200px; }
.t-noteform-sent { display: grid; gap: 6px; justify-items: start; }
.t-noteform-sent b { font-size: 15px; display: inline-flex; align-items: center; gap: 6px; }
.t-noteform-sent p { margin: 0; color: var(--muted); font-size: 13px; }
.t-switch-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.t-switch-row b { font-size: 13px; display: inline-flex; align-items: center; gap: 6px; overflow-wrap: anywhere; }
.t-switch-row small { grid-column: 1; color: var(--muted); font-size: 12px; }
.t-switch-row[aria-disabled="true"] { color: var(--muted); background: var(--bg); }
.t-switch { grid-row: 1 / span 2; grid-column: 2; position: relative; width: 38px; height: 22px; border-radius: 999px; border: 1px solid var(--line); background: var(--accent-soft); padding: 0; }
.t-switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); box-shadow: 0 1px 2px var(--shadow); transition: transform 0.15s; }
.t-switch[aria-checked="true"] { background: var(--ink); border-color: var(--ink); }
.t-switch[aria-checked="true"]::after { transform: translateX(16px); background: var(--accent-ink); }
.threads .t-switch:disabled { opacity: 0.45; cursor: not-allowed; }
.t-level { display: inline-flex; align-items: center; gap: 5px; }
.t-level .t-i { width: 13px; height: 13px; }

@media (max-width: 999px) {
  .t-thread, .t-thread[data-rail] { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 18px 22px 48px; }
  .t-rail { position: static; }
  .t-details { position: static; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0 16px; padding-top: 8px; border-top: 1px solid var(--line); }
  .t-drow, .t-drow:first-child { padding: 8px 0; border-top: 0; }
  .t-drow[data-wide] { grid-column: 1 / -1; }
  .t-editor { grid-template-columns: minmax(0, 1fr); }
  .t-editor-preview { display: none; }
  .t-editor[data-preview="true"] .t-editor-preview { display: grid; }
  .t-editor[data-preview="true"] .t-editor-form { display: none; }
  .t-only-narrow { display: inline-flex; }
}
@media (max-width: 719px) {
  .t-app { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; }
  .t-side { display: none; }
  .t-main { padding-right: 0; }
  .t-tabbar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; border-top: 1px solid var(--line); background: var(--surface); padding-bottom: env(safe-area-inset-bottom, 0px); }
  .t-tabbar button { display: grid; justify-items: center; gap: 2px; padding: 7px 4px 9px; border: 0; background: none; color: var(--muted); font-size: 10.5px; font-weight: 600; }
  .t-tabbar button[aria-current="page"] { color: var(--ink); }
  .t-tabbar .t-i { width: 19px; height: 19px; }
  .t-wrap { padding: 14px var(--gutter-r) 32px var(--gutter-l); gap: 16px; }
  .t-invite { grid-template-columns: minmax(0, 1fr); }
  .t-row { grid-template-columns: 32px minmax(0, 1fr); padding: 9px 12px; }
  .t-row-meta { grid-column: 2; }
  .t-thread { padding: 14px var(--gutter-r) 40px var(--gutter-l); }
  .t-title { font-size: 20px; }
  .t-editor { padding: 14px var(--gutter-r) 32px var(--gutter-l); }
  .t-summary-head span:last-child:not(:first-child) { display: none; }
  .t-link-card { grid-template-columns: minmax(0, 1fr); }
  .t-page-frame { height: 480px; }
  .t-dialog, .t-dialog[data-kind] { width: 100%; max-width: 100%; max-height: 92%; margin: auto 0 0; border-radius: 14px 14px 0 0; border-bottom: 0; padding-bottom: env(safe-area-inset-bottom, 0px); }
  .t-keys { grid-template-columns: minmax(0, 1fr); }
  .t-two { grid-template-columns: 1fr; }
  .threads kbd, .t-hint { display: none; }
  .t-toast { bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
  .t-lost-bar { padding: 14px var(--gutter-r) 14px var(--gutter-l); }
  .t-lost-body { padding: 0 var(--gutter-r) 0 var(--gutter-l); }
  .t-pub-bar { padding: 12px var(--gutter-r) 12px var(--gutter-l); }
  .t-pub-doc { padding: 6px var(--gutter-r) 40px var(--gutter-l); }
}
@media (prefers-reduced-motion: reduce) {
  .t-nav-sec .t-i { transition: none; }
  .t-toast-bar { animation: none; }
  .t-switch::after { transition: none; }
}

/* People, from their design page: Everyone (a row per person, those only in dropped threads folded away) and a
   person's page (who they are, their threads, what they said, and his notes on them beside, dashed because only he
   reads them). A name that opens a person is underlined faintly. Below 1000px his notes come before the threads. */
.t-av-lg { width: 44px; height: 44px; font-size: 17px; }
.t-av-faint { background: var(--surface); color: var(--muted); border-style: dashed; }
.t-name-link { color: var(--ink); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--line); }
.threads .t-name-link { color: var(--ink); }
.t-name-link:hover { border-bottom-color: var(--ink); }
.t-row-person { grid-template-columns: 30px minmax(0, 1fr) auto; }
.t-row-name { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.t-row-name b { font-weight: 650; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-row-name small { color: var(--faint); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t-fold { display: flex; align-items: center; gap: 6px; width: 100%; padding: 8px 14px; border: 0; border-top: 1px solid var(--line); background: transparent; color: var(--muted); font-size: 12px; font-weight: 600; text-align: left; }
.t-fold:hover { color: var(--ink); background: var(--hover); }
.t-fold .t-i { width: 13px; height: 13px; transition: transform 0.15s; }
.t-fold[aria-expanded="true"] .t-i { transform: rotate(180deg); }
.t-fold-rows .t-row { opacity: 0.72; }

.t-person { display: grid; grid-template-columns: minmax(0, 1fr) 250px; grid-template-areas: "head head" "main side"; align-items: start; gap: 22px 36px; max-width: 1000px; margin: 0 auto; padding: 20px 28px 56px; }
.t-person-head { grid-area: head; display: grid; gap: 10px; min-width: 0; }
.t-person-id { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: center; }
.t-person-id h1 { margin: 0; font-size: 22px; line-height: 1.2; letter-spacing: -0.02em; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; overflow-wrap: anywhere; }
.t-person-rename .t-field { max-width: 22ch; font-size: 18px; font-weight: 700; }
.t-person-sub { display: grid; gap: 1px; color: var(--muted); font-size: 12.5px; min-width: 0; }
.t-person-sub span { overflow-wrap: anywhere; }
.t-person-main { grid-area: main; min-width: 0; display: grid; gap: 20px; align-content: start; }
.t-person-side { grid-area: side; min-width: 0; display: grid; gap: 16px; align-content: start; position: sticky; top: 20px; }
.t-person-side .t-details { position: static; }

/* Pages that take answers and comments in place, from their design page. A thread whose page has discussions on its
   words widens its side column to hold them under the details, each card level with its words (placed by the page's
   script) and pushed down where two would overlap; the column then stops following the scroll. Below 1000 px and in
   full screen they are listed under the page and open in a sheet, or a drawer at the window's right. Every comment
   that can have replies shows them under it, smaller, with Reply; the history has one line for each answer and
   discussion, in italics where it quotes. */
.t-thread[data-rail] { grid-template-columns: minmax(0, 1fr) 264px; max-width: 1090px; }
.t-thread[data-rail] .t-rail { position: static; }
.t-rail-head { color: var(--faint); font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding-top: 10px; border-top: 1px solid var(--line); }
.t-rail-cards { position: relative; min-height: 1px; }
.t-rail-cards > .t-disc { position: absolute; left: 0; right: 0; transition: top 0.18s ease; }
.t-disc { display: grid; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-size: 12.5px; box-shadow: 0 6px 18px -16px var(--shadow); }
.t-disc[aria-current="true"] { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink), 0 10px 24px -18px var(--shadow); z-index: 2; }
.t-rail .t-disc:not([aria-current="true"]) { cursor: pointer; }
.t-disc-quote { margin: 0; padding: 8px 12px 0; color: var(--muted); font-size: 12px; display: flex; gap: 6px; align-items: baseline; }
.t-disc-quote q { min-width: 0; border-left: 2px solid var(--ink); padding-left: 7px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.t-disc-old { margin-left: auto; }
.t-msg { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 8px; padding: 8px 12px; }
.t-msg + .t-msg { border-top: 1px solid var(--line); }
.t-msg .t-av, .t-replies .t-av { width: 20px; height: 20px; font-size: 9.5px; }
.t-msg > div { min-width: 0; }
.t-msg-head { display: flex; gap: 6px; align-items: baseline; color: var(--muted); font-size: 11.5px; }
.t-msg-head b { color: var(--ink); font-size: 12px; }
.t-msg-head time { margin-left: auto; font-variant-numeric: tabular-nums; white-space: nowrap; }
.t-msg-body .t-prose { font-size: 12.5px; line-height: 1.5; gap: 6px; }
.t-disc-reply { display: grid; gap: 6px; padding: 6px 10px 8px; border-top: 1px solid var(--line); }
.t-disc-reply textarea { width: 100%; min-height: 54px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 7px; background: var(--bg); resize: vertical; font-size: 12.5px; line-height: 1.45; }
.t-disc-reply textarea:focus { outline: none; border-color: var(--muted); }
.t-disc-bar { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; align-items: center; }
.t-disc-bar .t-note { margin-right: auto; font-size: 11px; }
.t-disc-bar .t-btn { padding: 3px 9px; font-size: 12px; }
.t-disc-open { border: 0; background: none; padding: 2px; color: var(--muted); font-size: 12px; font-weight: 600; text-align: left; }
.t-disc-open:hover { color: var(--ink); }
.t-disc-list { display: grid; gap: 10px; }
.t-page-discs { display: grid; gap: 8px; }
.t-page-discs .t-section-head { padding: 0; }
.t-gone { display: grid; gap: 4px; padding-bottom: 6px; }
.t-gone > .t-disc { margin-left: 34px; }
.t-replies { display: grid; margin-left: 34px; padding-bottom: 2px; }
.t-replies .t-cm { grid-template-columns: 20px minmax(0, 1fr); gap: 8px; padding: 4px 0; }
.t-replies .t-cm-head { padding: 4px 10px; }
.t-replies .t-cm-body { padding: 6px 10px; }
.t-replies .t-composer { grid-template-columns: 20px minmax(0, 1fr); gap: 8px; padding-top: 4px; }
.t-replies .t-composer textarea { min-height: 48px; font-size: 13px; }
.t-reply-to { justify-self: start; display: inline-flex; align-items: center; gap: 5px; margin: 0 0 4px 34px; padding: 2px 0; border: 0; background: none; color: var(--muted); font-size: 12px; font-weight: 600; }
.t-reply-to:hover { color: var(--ink); }
.t-reply-to .t-i { width: 13px; height: 13px; }
.t-ev-on { color: var(--muted); font-style: italic; overflow-wrap: anywhere; }
.t-dialog[data-kind="drawer"] { width: min(360px, 100%); max-width: 100%; height: 100%; max-height: 100%; margin: 0 0 0 auto; border-radius: 0; border-width: 0 0 0 1px; }
@media (prefers-reduced-motion: reduce) {
  .t-rail-cards > .t-disc { transition: none; }
}
.t-said { display: grid; gap: 8px; }
.t-said .t-cm { grid-template-columns: minmax(0, 1fr); padding: 0; }
.t-said .t-cm-head { flex-wrap: nowrap; }
.t-said .t-cm-head > :not(.t-said-on) { flex: none; }
.t-said-on { display: inline-flex; flex: 0 1 auto; gap: 5px; align-items: baseline; min-width: 0; overflow: hidden; color: var(--muted); font-size: 12px; text-decoration: none; }
.threads .t-said-on { color: var(--muted); }
.threads .t-said-on:hover { color: var(--ink); }
.t-said-on span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t-mine { display: grid; border: 1px dashed var(--line); border-radius: 10px; }
.t-mine:focus-within { border-color: var(--muted); }
.t-mine-head { display: flex; align-items: center; gap: 8px; padding: 7px 12px; border-bottom: 1px dashed var(--line); color: var(--muted); font-size: 12px; font-weight: 700; }
.t-mine-head span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t-mine-head .t-chip { margin-left: auto; }
.t-mine-body { min-height: 64px; padding: 10px 12px; cursor: text; }
.t-mine-body .t-prose { font-size: 13px; }
.t-mine-empty { color: var(--muted); font-size: 12.5px; }
.t-mine textarea { display: block; width: 100%; min-height: 150px; padding: 10px 12px; border: 0; background: transparent; resize: vertical; font-size: 13px; line-height: 1.5; }
.t-mine textarea:focus { outline: none; }
.t-mine-bar { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-top: 1px dashed var(--line); }
.t-mine-bar .t-note { margin-right: auto; }
.t-addr { display: grid; gap: 6px; }
.t-addr .t-lbl { display: grid; gap: 1px; }
.t-addr .t-lbl small { margin-left: 0; }
.t-addr-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; }
.threads .t-addr .t-err a { color: inherit; }
.t-reach-add { margin-left: auto; padding: 0 6px; font-size: 12px; }
.t-reach-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "label via acts" "value value value"; align-items: center; column-gap: 8px; row-gap: 1px; padding: 6px 12px 8px; border-top: 1px solid var(--line); }
.t-reach-row:nth-child(2) { border-top: 0; }
.t-reach-row .t-dlabel { grid-area: label; }
.t-reach-value { grid-area: value; min-width: 0; overflow-wrap: anywhere; font-size: 13px; }
.t-reach-via { grid-area: via; color: var(--muted); font-size: 11.5px; }
.t-reach-acts { grid-area: acts; display: inline-flex; gap: 2px; }
.t-reach-acts .t-btn { padding: 0 4px; }
.t-reach-empty { display: block; padding: 10px 12px; }
.t-reach-form { padding: 10px 12px; border-top: 1px dashed var(--line); }
.t-reach-form > .t-btn-quiet { justify-self: start; }

@media (max-width: 999px) {
  .t-person { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "side" "main"; gap: 18px; padding: 18px 22px 48px; }
  .t-person-side { position: static; }
}
@media (max-width: 719px) {
  .t-person { padding: 14px var(--gutter-r) 32px var(--gutter-l); }
  .t-row-person { grid-template-columns: 30px minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .t-fold .t-i { transition: none; }
}

/* Meetings, from their design page. A thread's meeting is a strip above its summary: its day as a calendar leaf (ink
   while it is near), the when, length and where, and who is in the room; dashed once it has passed. A row carries
   its date as a chip, solid while near and faint once past. The Meetings room's rows lead with their time or day.
   Today opens with the next meeting as a card, and so does an invited person's /me. The editor is a dialog: the
   day, a time and a length side by side, the where, then the people chosen as chips over a picker. */
.t-meet { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 2px 12px; align-items: center; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.t-meet[data-when="past"] { background: transparent; border-style: dashed; }
.t-meet-cal { grid-row: 1 / span 2; display: grid; justify-items: center; align-content: center; width: 30px; height: 32px; border: 1px solid var(--line); border-radius: 7px; background: var(--bg); line-height: 1; }
.t-meet-cal small { font-size: 8.5px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.t-meet-cal b { font-size: 14px; font-variant-numeric: tabular-nums; }
.t-meet[data-when="soon"] .t-meet-cal { background: var(--ink); border-color: var(--ink); color: var(--accent-ink); }
.t-meet[data-when="soon"] .t-meet-cal small { color: inherit; opacity: 0.75; }
.t-meet-when { min-width: 0; font-weight: 650; font-size: 13.5px; overflow-wrap: anywhere; }
.t-meet-when span { color: var(--muted); font-weight: 500; }
.t-meet-with { grid-column: 2; min-width: 0; color: var(--muted); font-size: 12.5px; overflow-wrap: anywhere; }
.t-meet-with .t-name-link { font-weight: 500; }
.t-meet-act { grid-column: 3; grid-row: 1 / span 2; }
.t-meet-add { justify-self: start; }

.t-chip-meet { color: var(--ink); border-color: var(--ink); font-variant-numeric: tabular-nums; }
.t-chip-meet[data-when="soon"] { background: var(--ink); color: var(--accent-ink); }
.t-chip-meet[data-when="past"] { color: var(--faint); border-color: var(--line); }
/* Reminders: Today's Due rows with Done and Later, Later's menu, and the strip and its editor on a thread. A Due row
   holds buttons, so it is a block with a link for a title; its list lets Later's menu hang past its edge. */
.t-list-due { overflow: visible; }
.t-list-due .t-row:first-child { border-radius: 10px 10px 0 0; }
.t-list-due .t-row:last-child { border-radius: 0 0 10px 10px; }
.t-list-due .t-row:only-child { border-radius: 10px; }
.t-row-due { cursor: pointer; }
.t-row-due .t-row-link { color: var(--ink); text-decoration: none; }
.t-row-due .t-row-link:hover { text-decoration: underline; text-underline-offset: 0.18em; }
.t-row-due .t-row-meta { gap: 6px; }
.t-row-due .t-btn { padding-block: 2px; }
.t-row-due[data-late="true"] .t-row-when { font-weight: 750; }
.t-later { position: relative; display: inline-flex; }
.t-later-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; width: 236px; padding: 6px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); box-shadow: 0 10px 30px var(--shadow); display: grid; gap: 1px; text-align: left; cursor: default; }
.t-later-menu .t-menu-row small { margin-left: auto; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.t-later-menu .t-menu-row kbd { margin-left: 8px; }
.t-later-menu .t-later-own kbd { margin-left: auto; }
.t-later-pick { display: flex; gap: 6px; padding: 6px 4px 2px; border-top: 1px solid var(--line); margin-top: 4px; }
.t-later-pick .t-field { padding: 4px 8px; }
.t-later-note { color: var(--faint); font-size: 11.5px; padding: 4px 8px 2px; }
.t-remind .t-meet-cal { color: var(--ink); }
.t-remind .t-meet-cal .t-i { width: 15px; height: 15px; }
.t-remind[data-when="due"] .t-meet-cal { background: var(--ink); border-color: var(--ink); color: var(--accent-ink); }
.t-remind .t-meet-act { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.t-remind-form .t-sheet-body { display: grid; gap: 14px; }
.t-remind-every { display: grid; grid-template-columns: 90px 120px minmax(0, 1fr); gap: 8px; align-items: end; }
.t-remind-quick { display: flex; flex-wrap: wrap; gap: 6px; }
.t-remind-quick button { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 2px 10px; font-size: 12px; font-weight: 600; color: var(--muted); }
.t-remind-quick button[aria-pressed="true"] { border-color: var(--ink); color: var(--ink); }
.t-remind-next { margin: 0; padding: 9px 11px; border-radius: 8px; background: var(--bg); border: 1px solid var(--line); font-size: 12.5px; }
.t-remind-next b { font-weight: 650; }
.t-remind-next[data-problem="true"] { border-color: var(--ink); }
/* His Notifications switch: its row in the account menu and More, saying On or Off for this device, and its sheet
   with what arrives drawn as the notification itself. */
.t-menu-row .t-push-state, .t-pick .t-push-state { margin-left: auto; color: var(--muted); font-size: 12px; font-weight: 500; }
.t-menu-row .t-push-state[data-on="true"] { color: var(--ink); font-weight: 650; }
.t-push-body { display: grid; gap: 12px; padding: 2px 14px 14px; font-size: 13px; }
.t-push-body p { margin: 0; }
.t-push-body .t-note { color: var(--muted); font-size: 12px; }
.t-push-steps { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.t-push-steps .t-i { vertical-align: -3px; }
.t-push-banner { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 2px 10px; align-items: center; padding: 10px 12px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); }
.t-push-banner img { grid-row: 1 / span 2; width: 38px; height: 38px; border-radius: 9px; }
.t-push-banner b { font-size: 13px; }
.t-push-banner span { grid-column: 2 / -1; color: var(--muted); font-size: 12.5px; }
.t-push-banner small { color: var(--faint); font-size: 11.5px; }
.t-push-lbl { color: var(--faint); font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.t-push-acts { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 719px) {
  .t-row-due .t-row-meta { justify-content: flex-start; flex-wrap: wrap; }
  .t-remind { grid-template-columns: 30px minmax(0, 1fr); }
  .t-remind .t-meet-act { grid-column: 1 / -1; grid-row: auto; justify-content: flex-start; padding-top: 6px; }
  .t-remind-every { grid-template-columns: 1fr 1fr; }
  .t-remind-every > :last-child { grid-column: 1 / -1; }
}

/* Where a thread stands, on its row (site/app/standing.js): New filled, as a near meeting is, because it waits to be
   sorted; To do and To discuss outlined in ink, told apart by their words (dashed means "only he sees" here); closed
   ones quiet. */
.t-chip-status { color: var(--ink); border-color: var(--ink); }
.t-chip-status[data-status="received"] { background: var(--ink); color: var(--accent-ink); }
.t-chip-status[data-status="done"], .t-chip-status[data-status="dropped"], .t-chip-status[data-status="filed"] { color: var(--muted); border-color: var(--line); }

/* Pending's counts line under the tabs: each count shows only its own status, pressed again shows them all. */
.t-counts { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 4px; padding: 8px 2px 2px; font-size: 12px; }
.t-count { padding: 1px 7px; border: 1px solid transparent; border-radius: 999px; background: none; color: var(--muted); font: inherit; font-weight: 600; cursor: pointer; }
.t-count:hover { color: var(--ink); }
.t-count[aria-pressed="true"] { color: var(--ink); border-color: var(--ink); }
.t-counts-dot { color: var(--faint); }

.t-row-when { color: var(--ink); font-weight: 600; }
.t-row-meet .t-meet-lead { color: var(--ink); font-size: 12px; white-space: nowrap; }
.t-row-meet[data-when="soon"] .t-meet-lead { font-weight: 800; }
.t-row-meet[data-when="past"] .t-meet-lead, .t-row-meet[data-when="past"] .t-row-when { color: var(--muted); }

.t-card { display: grid; gap: 3px; align-content: start; min-width: 0; padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); text-decoration: none; }
.threads .t-card { color: var(--ink); }
.t-card:hover { border-color: var(--muted); }
.t-card-lbl { color: var(--faint); font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.t-card-big { font-size: 14px; font-weight: 650; overflow-wrap: anywhere; }
.t-card-sm { color: var(--muted); font-size: 12.5px; overflow-wrap: anywhere; }

.t-meet-form { display: grid; }
.t-meet-time { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.t-meet-zone { margin: 0; color: var(--muted); font-size: 12px; }
.t-attendees { display: flex; flex-wrap: wrap; gap: 6px; }
.t-attendee { display: inline-flex; align-items: center; gap: 6px; padding: 2px 4px 2px 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); font-size: 12.5px; font-weight: 600; }
.t-attendee .t-av { width: 20px; height: 20px; font-size: 9.5px; }
.t-attendee small { color: var(--faint); font-weight: 500; }
.t-attendee button { display: inline-grid; place-items: center; width: 18px; height: 18px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--muted); }
.t-attendee button:hover { background: var(--hover); color: var(--ink); }
.t-attendee .t-i { width: 11px; height: 11px; }
.t-picker { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.t-picker .t-field { border: 0; border-radius: 0; }
.t-picker-list { display: grid; max-height: 200px; overflow-y: auto; }
.t-picker-item { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 8px; align-items: center; width: 100%; padding: 6px 10px; border: 0; border-top: 1px solid var(--line); background: transparent; text-align: left; font-size: 13px; }
.t-picker-item:hover, .t-picker-item[aria-selected="true"] { background: var(--accent-soft); }
.t-picker-item small { color: var(--faint); font-size: 11.5px; }
.t-picker-new { font-weight: 600; }
.t-sheet-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 14px 14px; border-top: 1px solid var(--line); }
.t-pick .t-i { color: var(--muted); }
a.t-pick { color: var(--ink); text-decoration: none; }

@media (max-width: 719px) {
  .t-meet { grid-template-columns: 30px minmax(0, 1fr); }
  .t-meet-act { grid-column: 2; grid-row: auto; justify-self: start; margin-top: 4px; }
  .t-meet-time { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .t-meet-time > :first-child { grid-column: 1 / -1; }
}

/* Asks: the room's rows (the link, how many answered, the state, what he can do), an ask's strip under its byline,
   Answered by above its page, and the line under a visitor's bar on /ask/<slug>. */
.t-ask-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 6px 12px; padding: 10px 14px; border-top: 1px solid var(--line); }
.t-ask-row:first-child { border-top: 0; }
.t-ask-row:hover { background: var(--hover); }
.t-ask-main { display: grid; gap: 3px; min-width: 0; color: var(--ink); text-decoration: none; }
.t-ask-main .t-num { margin-right: 2px; }
.t-ask-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; color: var(--muted); font-size: 12px; min-width: 0; }
.t-ask-link { font: 11.5px var(--mono); color: var(--ink); padding: 1px 6px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.t-ask-row[data-state="closed"] .t-ask-main, .t-ask-row[data-state="closed"] .t-ask-link { color: var(--muted); }
.t-ask-chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.t-ask-acts { display: flex; gap: 6px; align-items: center; }
.t-ask-acts .t-btn, .t-ask-strip .t-btn { padding: 3px 10px; font-size: 12.5px; }
.t-ask-state[data-state="open"] { color: var(--ink); border-color: var(--ink); }
.t-ask-state[data-state="draft"] { background: var(--ink); color: var(--accent-ink); border-color: var(--ink); }
.t-ask-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.t-answered { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); overflow: hidden; }
.t-answered-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; padding: 9px 14px; border-bottom: 1px solid var(--line); }
.t-answered-head h2 { margin: 0; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.t-answered-head .t-hint { margin-left: 0; }
.t-answered-head .t-btn { padding: 3px 10px; font-size: 12.5px; }
.t-answered-find { padding: 8px 14px; border-bottom: 1px solid var(--line); }
.t-answered-find .t-field { max-width: 260px; padding: 5px 9px; }
.t-answered-list[data-all="true"] { max-height: 440px; overflow-y: auto; }
.t-answered-row { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 14px; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 13.5px; }
.t-answered-row:first-child { border-top: 0; }
.t-answered-row:hover { background: var(--hover); }
.t-answered-row[data-new] { font-weight: 650; }
.t-answered-who { display: flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.t-answered-row time { color: var(--faint); font-size: 11.5px; white-space: nowrap; font-weight: 400; }
.t-answered-more { display: block; width: 100%; padding: 9px 14px; border: 0; border-top: 1px solid var(--line); background: none; color: var(--ink); font-size: 13px; font-weight: 600; text-align: left; }
.t-answered-more:hover { background: var(--hover); }
.t-ask-line { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; color: var(--ink); font-size: 12.5px; }
.t-ask-line .t-btn { padding: 2px 10px; font-size: 12px; }
.t-ask-email { color: var(--muted); }

/* Collections: the room's search and rows, a collection's kept rows (dragged, moved with ⌥↑ ⌥↓, ⋯), the L picker's
   check boxes, and the bar above a thread opened from a collection. */
.t-search { display: flex; align-items: center; gap: 8px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--faint); min-height: 34px; }
.t-search .t-field { border: 0; padding: 6px 0; background: transparent; }
.threads .t-search .t-field:focus { outline: 0; }
.t-search:focus-within { border-color: var(--muted); }
.t-collections { display: grid; gap: 18px; }
.t-more { display: block; width: 100%; padding: 10px 14px; border: 0; border-top: 1px solid var(--line); background: none; color: var(--muted); font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.t-more:hover { background: var(--hover); color: var(--ink); }
.t-row-collection .t-row-main, .t-row-kept .t-row-main { color: var(--ink); text-decoration: none; }
.t-row-collection .t-num { color: var(--faint); }
.t-pin { display: inline-grid; place-items: center; padding: 3px 5px; border: 0; border-radius: 6px; background: none; color: var(--faint); opacity: 0; }
.t-row:hover .t-pin, .t-pin:focus-visible, .t-pin[aria-pressed="true"] { opacity: 1; }
.t-pin[aria-pressed="true"] { color: var(--ink); }
.t-pin:hover { background: var(--sel); color: var(--ink); }
.t-row-kept .t-num { color: var(--faint); font-weight: 500; }
.t-row-kept[draggable="true"] { cursor: grab; }
.t-row-kept[data-dragging] { opacity: 0.4; }
.t-row-kept[data-over] { box-shadow: inset 0 2px 0 var(--ink); }
.threads .t-row-kept:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.t-row-kept .t-icon-button { margin-left: 0; opacity: 0; }
.t-row-kept:hover .t-icon-button, .t-row-kept:focus-within .t-icon-button { opacity: 1; }
.t-kept-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.t-kept-head:empty { display: none; }
.t-kept-head .t-search { flex: 1 1 240px; }
.t-rule-form { display: grid; gap: 6px; }
.t-rule-form .t-field { padding: 5px 8px; font-size: 12.5px; }
.t-place-form { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; color: var(--muted); }
.t-place-form .t-field { width: 64px; padding: 4px 6px; }
.t-place-form .t-btn { margin-left: auto; }
.t-box { display: inline-grid; place-items: center; width: 16px; height: 16px; border: 1.5px solid var(--faint); border-radius: 4px; }
.t-box[data-on="true"] { background: var(--ink); border-color: var(--ink); color: var(--accent-ink); }
.t-box .t-i { width: 12px; height: 12px; }
.t-walk { display: flex; align-items: center; gap: 8px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-size: 12.5px; }
.t-walk a { color: var(--ink); font-weight: 600; }
.t-public-lede { margin: 0; color: var(--muted); font-size: 15px; max-width: 60ch; }
/* A phone has no hover, so a row's pin and ⋯ always show there. */
@media (max-width: 719px) {
  .t-pin, .t-row-kept .t-icon-button { opacity: 1; }
}

@media (max-width: 719px) {
  .t-ask-row { grid-template-columns: minmax(0, 1fr); }
  .t-ask-chips { justify-content: flex-start; }
}

/* The journal (site/app/threads.js draws it, site/app/journal.js reads it): his days as reading pages, the titles and
   stories in the serif, labels and controls in the site's own face, one ~680px column that narrows to a phone. */
.j-wrap { gap: 22px; }
.t-head .j-display { font-family: var(--serif); font-size: 30px; font-weight: 600; }
.j-label { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.j-pill { display: inline-block; font-size: 12px; padding: 1px 9px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); text-decoration: none; white-space: nowrap; font-variant-numeric: tabular-nums; }
a.j-pill:hover { border-color: var(--ink); color: var(--ink); }

.j-card { border: 1px solid var(--ink); border-radius: 12px; padding: 16px 18px; display: grid; gap: 8px; background: var(--surface); }
/* Today's top row: the Now line his home page shows under the greeting, with Edit, or one box to write it in. */
.t-now { border: 1px dashed var(--line); border-radius: 12px; padding: 12px 16px; display: grid; gap: 6px; }
.t-now-head { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.t-now-row { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.t-now-line { margin: 0; font-size: 15px; min-width: 0; overflow-wrap: anywhere; }
.t-now-line b { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; margin-right: 4px; }
.t-now-form { display: grid; gap: 8px; }
.t-now-input { font-size: 15px; }
.j-card-head { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.j-more { font-size: 12px; color: var(--muted); }
.j-card-title { font-family: var(--serif); font-size: 24px; line-height: 1.2; text-decoration: none; text-wrap: balance; }
.j-card-title:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.j-card-line { margin: 0; font-family: var(--serif); font-style: italic; color: var(--muted); font-size: 16px; }
.j-counts { display: flex; flex-wrap: wrap; gap: 6px; }

.j-question { border-top: 1px solid var(--line); padding-top: 12px; display: grid; gap: 6px; }
.j-close .j-question { border: 1px solid var(--ink); border-radius: 12px; padding: 14px 16px; }
.j-q { margin: 0; font-family: var(--serif); font-size: 17px; line-height: 1.55; }
.j-answered { border-left: 2px solid var(--ink); padding: 2px 0 2px 12px; }
.j-answered p { margin: 0 0 4px; font-family: var(--serif); font-size: 16px; white-space: pre-wrap; overflow-wrap: anywhere; }
.j-answer-form { display: grid; gap: 8px; }
.j-answer-box { width: 100%; min-height: 76px; font: 16px/1.5 var(--serif); padding: 10px 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); resize: vertical; }
.j-answer-bar, .j-edit-bar { display: flex; justify-content: space-between; align-items: center; gap: 8px 12px; flex-wrap: wrap; }
.j-answer-bar .t-hint, .j-edit-bar .t-hint { margin-left: 0; }
.j-acts { display: flex; gap: 8px; }

.j-week { display: grid; gap: 8px; }
.j-week-head { display: flex; align-items: baseline; justify-content: space-between; gap: 4px 12px; flex-wrap: wrap; border-bottom: 1px solid var(--ink); padding-bottom: 6px; }
.j-week-head h2 { margin: 0; font-size: 14px; }
.j-week-head .t-hint { margin-left: 0; }
.j-chapter { display: grid; gap: 2px; text-decoration: none; padding: 14px 16px; border-radius: 10px; background: var(--accent-soft); }
.j-chapter-title { font-family: var(--serif); font-size: 20px; line-height: 1.3; }
.j-days { display: grid; }
.j-day-row { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: baseline; text-decoration: none; }
.j-day-row:hover .j-day-title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.j-day-date { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.j-day-date b { display: block; color: var(--ink); font-size: 16px; }
.j-day-main { display: grid; gap: 2px; min-width: 0; }
.j-day-title { font-family: var(--serif); font-size: 19px; line-height: 1.3; }
.j-day-line { font-family: var(--serif); font-style: italic; color: var(--muted); font-size: 15px; line-height: 1.45; }
.j-day-meta { font-size: 11.5px; color: var(--faint); white-space: nowrap; }

.j-page { max-width: 680px; width: 100%; margin: 0 auto; font-family: var(--serif); font-size: 18px; line-height: 1.7; min-width: 0; }
.j-page button, .j-page .j-label, .j-page .t-hint, .j-page .j-pill, .j-crumbs, .j-margin, .j-legend { font-family: var(--font); }
.j-crumbs { display: flex; justify-content: space-between; align-items: baseline; gap: 6px 12px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); margin-bottom: 22px; }
.j-crumbs a { color: var(--muted); }
.j-crumbs-right { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.j-crumbs-right .t-text-btn { display: inline-flex; gap: 4px; align-items: center; }
.j-title { font-family: var(--serif); font-size: clamp(30px, 6vw, 42px); line-height: 1.1; margin: 0 0 8px; text-wrap: balance; letter-spacing: -0.01em; }
.j-sub { font-style: italic; color: var(--muted); margin: 0 0 16px; }
.j-one { font-size: 21px; line-height: 1.45; margin: 0 0 20px; }
.j-toc { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 4px; }
.j-toc-item { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; border: 0; background: none; padding: 0; color: var(--ink); text-align: left; cursor: pointer; }
.j-toc-when { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); width: 120px; flex: none; }
.j-toc-what { font-family: var(--serif); font-size: 17px; border-bottom: 1px solid var(--line); }
.j-margin { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 14px 0; display: grid; gap: 10px; font-size: 14px; line-height: 1.5; }
.j-margin-row { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; align-items: baseline; }
.j-margin-value { min-width: 0; }
.j-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.j-chip { font-size: 13px; padding: 1px 9px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; }
a.j-chip:hover { border-color: var(--ink); }
.j-lines { display: grid; gap: 6px; }
.j-line { display: grid; grid-template-columns: 140px minmax(0, 1fr) auto; gap: 10px; align-items: baseline; text-decoration: none; }
.j-line[data-mark="closed"] b { text-decoration: line-through; text-decoration-thickness: 1px; }
.j-line-state { color: var(--muted); }
.j-line > .j-pill { justify-self: end; }
.j-line small { font-weight: 400; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.j-story h2 { font-family: var(--serif); font-size: 25px; line-height: 1.25; margin: 0 0 2px; text-wrap: balance; }
.j-when { font-style: italic; color: var(--muted); margin: 0 0 16px; }
.j-story p { margin: 0 0 14px; }
.j-quote { margin: 22px 0; padding: 0 0 0 18px; border-left: 2px solid var(--ink); font-size: 21px; line-height: 1.45; }
.j-list { margin: 0 0 14px; padding-left: 22px; }
.j-photo { margin: 22px 0; }
/* A portrait photo would be taller than the window at the column's width, so a photo is at most three quarters of it. */
.j-photo img { display: block; max-width: 100%; max-height: 75vh; width: auto; height: auto; margin: 0 auto; border-radius: 6px; background: var(--accent-soft); }
.j-photo figcaption { text-align: center; }
.j-photo figcaption, .j-caption { font-style: italic; color: var(--muted); font-size: 15px; margin-top: 6px; }
.j-sep { text-align: center; color: var(--faint); letter-spacing: 0.5em; margin: 30px 0; }
.j-close { display: grid; gap: 20px; }
.j-said { margin: 2px 0 0; }
.j-made { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 4px; font-size: 16px; }
.j-made a { text-decoration: none; border-bottom: 1px solid var(--line); }
.j-out::after { content: " ↗"; font-family: var(--font); font-size: 12px; color: var(--muted); }
.j-note { margin: 0; font-style: italic; color: var(--muted); font-size: 15px; }
.j-raw { white-space: pre-wrap; font: 13px/1.6 var(--mono); }
.j-pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 36px; padding-top: 14px; border-top: 1px solid var(--line); font: 13px var(--font); flex-wrap: wrap; }
.j-pager a { color: var(--muted); text-decoration: none; display: grid; }
.j-pager a:last-child { text-align: right; }
.j-pager b { font-family: var(--serif); font-weight: 400; font-size: 17px; color: var(--ink); }

.j-edit-title { font-family: var(--serif); font-size: 26px; margin: 0 0 12px; line-height: 1.2; }
.j-stale { border: 1px solid var(--ink); border-left-width: 4px; border-radius: 8px; padding: 10px 14px; margin-bottom: 12px; font: 15px/1.5 var(--font); }
.j-edit-box { width: 100%; min-height: 60vh; font: 14px/1.6 var(--mono); padding: 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); resize: vertical; tab-size: 2; }
.j-edit-bar { margin-top: 12px; }
.j-grammar { margin: 18px 0 0; font: 12.5px/1.5 var(--font); color: var(--muted); display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 14px; }
.j-grammar dd { margin: 0; }
.j-grammar code { font-family: var(--mono); color: var(--ink); }

.j-trail-box { overflow-x: auto; }
.j-trail { border-collapse: collapse; width: 100%; min-width: 640px; font-size: 13px; }
.j-trail th, .j-trail td { padding: 9px 5px; border-bottom: 1px solid var(--line); text-align: center; vertical-align: middle; }
.j-trail thead th { font-size: 10.5px; color: var(--muted); font-weight: 500; font-variant-numeric: tabular-nums; }
.j-trail thead th:first-child, .j-trail thead th:last-child, .j-trail .j-trail-name, .j-trail .j-trail-state { text-align: left; }
.j-trail .j-trail-name, .j-trail thead th:first-child { position: sticky; left: 0; z-index: 1; background: var(--bg); padding-right: 10px; }
.j-trail-name a { font-weight: 600; white-space: nowrap; text-decoration: none; }
.j-trail-name a:hover { text-decoration: underline; }
.j-trail-cell { width: 26px; }
.j-trail-state { color: var(--muted); min-width: 220px; }
.j-trail tr[data-quiet] .j-trail-name a, .j-trail tr[data-quiet] .j-trail-state { color: var(--faint); }
.j-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--ink); vertical-align: middle; }
.j-dot[data-mark="new"] { background: transparent; border: 2px solid var(--ink); }
.j-dot[data-mark="closed"] { border-radius: 2px; }
.j-none { display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: var(--line); vertical-align: middle; }
.j-legend { margin: 0; font-size: 12.5px; color: var(--muted); }

.j-big { font-size: 40px; line-height: 1; margin: 4px 0 24px; font-variant-numeric: tabular-nums; }
.j-big small { font-size: 17px; color: var(--muted); }
.j-touches { list-style: none; margin: 0 0 0 5px; padding: 0; border-left: 1px solid var(--line); }
.j-touches li { position: relative; padding: 0 0 20px 22px; }
.j-touches li::before { content: ""; position: absolute; left: -6px; top: 8px; width: 11px; height: 11px; border-radius: 50%; background: var(--ink); }
.j-touches li[data-mark="new"]::before { background: var(--bg); border: 2px solid var(--ink); width: 7px; height: 7px; }
.j-touches li[data-mark="closed"]::before { border-radius: 2px; }
.j-touch-day { font: 12.5px var(--font); color: var(--muted); }
.j-touch-day a { color: var(--muted); }
.j-touch-state { font-size: 17px; line-height: 1.45; }

@media (max-width: 719px) {
  .j-day-row { grid-template-columns: 40px minmax(0, 1fr); gap: 10px; }
  .j-day-meta { grid-column: 2; }
  .j-margin-row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .j-line { grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; }
  .j-line-state { grid-column: 1 / -1; }
  .j-line > .j-pill { grid-row: 1; grid-column: 2; }
  .j-toc-when { width: 100%; }
  .j-page { font-size: 17px; }
  .j-grammar { grid-template-columns: minmax(0, 1fr); }
}

/* Distribution's room: next moves, the goal against today, a row per platform, the work, people met and the log. */
.t-dist-switch button { padding: 4px 12px; font-size: 12.5px; }
.t-dist-move { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 11px 14px; border-top: 1px solid var(--line); }
.t-dist-move:first-child { border-top: 0; }
.t-dist-move-main { display: grid; gap: 1px; min-width: 0; font-size: 13.5px; }
.t-dist-move-main a { color: var(--ink); }
.t-dist-move-main > span { color: var(--muted); font-size: 12.5px; }
.t-dist-sev { width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; border: 1.5px solid var(--ink); }
.t-dist-sev[data-sev="hot"] { background: var(--ink); }
.t-dist-kind { font: 600 10px/1.6 var(--mono); letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 0 5px; white-space: nowrap; justify-self: start; align-self: center; }
.t-dist-goal { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.t-dist-cell { padding: 14px 16px; min-width: 0; }
.t-dist-cell + .t-dist-cell { border-left: 1px solid var(--line); }
/* Three cells (a goal in words, then two numbers): the words take the first two columns. */
.t-dist-goal[data-cells="3"] > .t-dist-cell:first-child { grid-column: span 2; }
.t-dist-label, .t-dist-sub { color: var(--muted); font-size: 12px; }
.t-dist-big { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1.15; }
.t-dist-big small { font-size: 13px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.t-dist-words { margin: 2px 0 0; font-family: var(--serif); font-size: 17px; line-height: 1.3; text-wrap: balance; }
.t-dist-bar { position: relative; height: 6px; border-radius: 3px; background: var(--accent-soft); margin: 8px 0 4px; }
.t-dist-bar i { position: absolute; inset: 0 auto 0 0; background: var(--ink); border-radius: 3px; }
.t-dist-tick { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--muted); }
.t-dist-prow { display: grid; grid-template-columns: 150px 92px minmax(0, 1fr) 132px 96px; gap: 12px; align-items: center; width: 100%; padding: 10px 14px; border: 0; border-top: 1px solid var(--line); background: none; color: var(--ink); text-align: left; font-size: 13px; }
.t-dist-prow:first-child { border-top: 0; }
.t-dist-prow:hover, .t-dist-prow[aria-expanded="true"] { background: var(--hover); }
.t-dist-pname { font-weight: 700; display: flex; align-items: center; gap: 8px; min-width: 0; }
.t-dist-chev { color: var(--faint); display: inline-block; width: 10px; transition: transform 0.15s; }
.t-dist-prow[aria-expanded="true"] .t-dist-chev { transform: rotate(90deg); }
.t-dist-state { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; }
.t-dist-state::before { content: ""; width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid currentColor; }
.t-dist-state[data-state="active"]::before { background: currentColor; }
.t-dist-state[data-state="hold"], .t-dist-state[data-state="later"], .t-dist-state[data-state="none"] { color: var(--muted); }
.t-dist-plast { min-width: 0; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-dist-pace { display: flex; align-items: center; gap: 3px; }
.t-dist-pace i { width: 10px; height: 10px; border-radius: 3px; border: 1px solid var(--muted); }
.t-dist-pace i[data-on="true"] { background: var(--ink); border-color: var(--ink); }
.t-dist-pace span { margin-left: 5px; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.t-dist-pwait { justify-self: end; font-size: 12px; color: var(--faint); white-space: nowrap; }
.t-dist-pwait[data-has="true"] { color: var(--ink); font-weight: 700; }
.t-dist-pdetail { padding: 6px 14px 14px 38px; border-top: 1px solid var(--line); background: var(--hover); font-size: 13px; }
.t-dist-pdetail p { margin: 4px 0 8px; color: var(--muted); }
.t-dist-pdetail ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 5px; }
.t-dist-pdetail li { display: flex; gap: 8px; align-items: baseline; min-width: 0; }
.t-dist-pdetail li a { color: var(--ink); min-width: 0; overflow-wrap: anywhere; }
.t-dist-pdetail time, .t-dist-log time { flex: none; width: 46px; color: var(--faint); font: 11.5px/1.7 var(--mono); }
.t-dist-gates { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px; }
.t-dist-gate { display: grid; gap: 4px; align-content: start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); text-decoration: none; font-size: 13px; }
.t-dist-gate:hover { border-color: var(--ink); }
.t-dist-gate span { color: var(--muted); font-size: 12.5px; }
.t-dist-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 18px; align-items: start; }
.t-dist-li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; padding: 9px 14px; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 13px; }
.t-dist-li:first-child { border-top: 0; }
a.t-dist-li:hover { background: var(--hover); }
.t-dist-li > b, .t-dist-li > a { min-width: 0; overflow-wrap: anywhere; color: var(--ink); }
.t-dist-li .t-dist-sub { grid-column: 1; min-width: 0; text-decoration: none; }
.t-dist-li .t-dist-kind { grid-row: 1 / span 2; grid-column: 2; }
.t-dist-log { grid-template-columns: 50px minmax(0, 1fr) auto; }
.t-dist-log .t-dist-sub { grid-column: 2; }
.t-dist-log .t-dist-kind { grid-column: 3; }
.t-dist-team { padding: 8px 14px; border-top: 1px solid var(--line); color: var(--faint); font-size: 12px; }
@media (max-width: 999px) {
  .t-dist-goal { grid-template-columns: 1fr 1fr; }
  .t-dist-cell:nth-child(3) { border-left: 0; }
  .t-dist-cell:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .t-dist-goal[data-cells="3"] > .t-dist-cell:nth-child(2) { border-left: 0; border-top: 1px solid var(--line); }
  .t-dist-goal[data-cells="3"] > .t-dist-cell:nth-child(3) { border-left: 1px solid var(--line); }
  .t-dist-two { grid-template-columns: minmax(0, 1fr); }
  .t-dist-prow { grid-template-columns: minmax(0, 1fr) auto auto; }
  .t-dist-plast { grid-column: 1 / -1; grid-row: 2; white-space: normal; padding-left: 18px; }
  .t-dist-pace { display: none; }
  .t-dist-pdetail { padding-left: 14px; }
}
@media (max-width: 460px) {
  .t-dist-goal { grid-template-columns: minmax(0, 1fr); }
  .t-dist-cell + .t-dist-cell { border-left: 0; border-top: 1px solid var(--line); }
  .t-dist-goal[data-cells="3"] > .t-dist-cell:first-child { grid-column: auto; }
  .t-dist-goal[data-cells="3"] > .t-dist-cell:nth-child(3) { border-left: 0; }
  .t-dist-move { grid-template-columns: 14px minmax(0, 1fr); }
  .t-dist-move .t-dist-kind { grid-column: 2; }
}
@media (prefers-reduced-motion: reduce) { .t-dist-chev { transition: none; } }
