/* Self-hosted fonts (latin subsets, public/fonts/) — same faces the Google
   CSS served, minus two third-party origins. Critical faces are <link
   rel="preload">ed in the HTML, so they're ready at first paint (correct
   logo immediately) and swap never visibly fires for them. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/Inter-700.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 800; font-display: swap; src: url("/fonts/Inter-800.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 900; font-display: swap; src: url("/fonts/Inter-900.woff2") format("woff2"); }
@font-face { font-family: "Quicksand"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/Quicksand-500.woff2") format("woff2"); }
@font-face { font-family: "Quicksand"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/Quicksand-700.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/JetBrainsMono-400.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/JetBrainsMono-500.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/JetBrainsMono-700.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: italic; font-weight: 400; font-display: swap; src: url("/fonts/JetBrainsMono-Italic-400.woff2") format("woff2"); }

:root {
  --brand-font:"Inter", system-ui, sans-serif;
  --accent:#6c63f5;
  --star:#e83e8c;
  --bg:#0a0d18;
  --bg-rail:#0c1020;
  --card:#141a2e;
  --card-2:#10162a;
  --line:#222a44;
  --line-soft:#1a2138;
  --ink:#e7ecf7;
  --ink-dim:#aeb6cc;
  --ink-mute:#6f7896;
  --link:#5aa6ff;
  /* Sitewide storage-state colors (TODO PRIMARY):
     green = local only · yellow = online private · red = online published */
  --st-local:#3ecf72;
  --st-online:#e3b341;
  --st-pub:#ef6461;
  --ans-w:760px;
  --mono:"JetBrains Mono",
    ui-monospace,
    "SF Mono",
    Menlo,
    monospace;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  height: 100%;
}
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
#root,
.app {
  height: 100vh;
}
#root,
.app {
  height: 100dvh;
}
.app {
  display: grid;
  grid-template-columns: 312px 1fr;
  overflow: hidden;
}
a {
  color: inherit;
}
button {
  font-family: inherit;
  cursor: pointer;
}
html {
  -webkit-tap-highlight-color: transparent;
}
body {
  overscroll-behavior-y: none;
}
button,
input,
textarea,
a {
  touch-action: manipulation;
}
.rail {
  background: var(--bg-rail);
  border-right: 1px solid var(--line-soft);
  padding: 30px 22px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.brand {
  margin-bottom: 22px;
}
.logo {
  font-family: var(--brand-font);
  font-weight: 800;
  font-size: 34px;
  letter-spacing: -1.5px;
  line-height: 1;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}
.logo-sep {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  transform: translateY(2px);
}
.nstar {
  flex: none;
  color: var(--star);
}
.logo-star {
  animation: twinkle 4s ease-in-out infinite;
  filter: drop-shadow(0 0 6px color-mix(in srgb, var(--star) 55%, transparent));
}
@keyframes twinkle {
  0%, 100% {
    opacity: 1;
  }
  45% {
    opacity: .78;
  }
}
.nstar.is-pending {
  animation: star-spin 2.6s linear infinite, star-hue 4.2s linear infinite;
}
@keyframes star-spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes star-hue {
  to {
    filter: hue-rotate(360deg);
  }
}
.logo-star.is-boot {
  animation: star-boot .9s cubic-bezier(.2, .8, .3, 1) 1;
}
@keyframes star-boot {
  0% {
    transform: rotate(0deg) scale(.75);
    opacity: .35;
  }
  65% {
    transform: rotate(380deg) scale(1.18);
    opacity: 1;
  }
  100% {
    transform: rotate(360deg) scale(1);
    opacity: 1;
  }
}
.tagline {
  margin-top: 12px;
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--ink-mute);
  text-transform: uppercase;
}
.ask-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, .012);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-bottom: 26px;
}
.ask-input {
  width: 100%;
  resize: vertical;
  background: var(--card-2);
  color: var(--ink);
  border: 1px solid var(--accent);
  border-radius: 11px;
  padding: 13px 14px;
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.5;
  outline: none;
}
.ask-input::placeholder {
  color: var(--ink-mute);
}
/* WebKit autofill paints its own opaque white box over the field when a
   previous/autocomplete value is selected — background-color can't be
   overridden, so repaint via inset box-shadow in the field's own colors. */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px var(--card-2) inset;
  -webkit-text-fill-color: var(--ink);
  caret-color: var(--ink);
  transition: background-color 9999999s ease-out;
}
.btn-primary,
.btn-secondary {
  border: none;
  border-radius: 11px;
  padding: 13px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  transition: filter .15s, transform .05s;
}
.btn-secondary {
  background: color-mix(in srgb, var(--accent) 78%, #2b2f6e);
}
.btn-primary:hover,
.btn-secondary:hover {
  filter: brightness(1.08);
}
.btn-primary:active,
.btn-secondary:active {
  transform: translateY(1px);
}
.new-search {
  margin: 8px 0 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .02);
  color: var(--ink);
  border-radius: 11px;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 9px;
  transition: border-color .15s, background .15s;
}
.new-search:hover {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}
.ns-plus {
  color: var(--accent);
  font-weight: 700;
  font-size: 17px;
  line-height: 1;
}
.hist {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
}
.hist-grow {
  flex: 1;
}
.hist-label {
  font-size: 10.5px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 12px;
}
.hist-empty {
  font-size: 13px;
  font-style: italic;
  color: var(--ink-mute);
  line-height: 1.6;
}
.hist-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  overflow-y: auto;
}
.hist-item {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--ink-dim);
  padding: 9px 10px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  transition: background .12s, color .12s;
}
.hist-item:hover {
  background: rgba(255, 255, 255, .04);
  color: var(--ink);
}
.hist-item.is-active {
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  color: var(--ink);
}
.hist-text {
  font-size: 13.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}
.hist-time {
  font-size: 11px;
  color: var(--ink-mute);
}
.hist-group {
  margin-bottom: 16px;
}
.hist-group-label {
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  opacity: .85;
  margin-bottom: 6px;
}
.hist-row {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--ink-dim);
  padding: 9px 10px;
  border-radius: 9px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  transition: background .12s;
}
.hist-row:hover {
  background: rgba(255, 255, 255, .04);
}
.hist-row.is-active {
  background: color-mix(in srgb, var(--accent) 16%, transparent);
}
.hist-bullet {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 7px;
  flex: none;
  opacity: .6;
}
.hist-row.is-active .hist-bullet {
  opacity: 1;
}
.hist-row-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hist-meta {
  font-size: 11px;
  color: var(--ink-mute);
}
.hist-tree {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
}
.tree-root {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--ink-dim);
  padding: 9px 10px;
  border-radius: 9px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  transition: background .12s;
}
.tree-root:hover {
  background: rgba(255, 255, 255, .04);
}
.tree-root.is-active {
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  color: var(--ink);
}
.tree-text {
  font-size: 13.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tree-title {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.tree-state,
.sync-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex: none;
  background: #69728b;
}
.tree-state.is-online,
.sync-dot.is-online {
  background: var(--st-online);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--st-online) 18%, transparent);
}
.tree-state.is-local,
.sync-dot.is-local {
  background: var(--st-local);
}
.tree-state.is-pub,
.sync-dot.is-pub {
  background: var(--st-pub);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--st-pub) 18%, transparent);
}
.tree-time {
  font-size: 11px;
  color: var(--ink-mute);
}
.tree-children {
  list-style: none;
  margin: 2px 0 0;
  padding: 0 0 0 16px;
}
.tree-child {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}
.tree-rail {
  width: 11px;
  height: 1px;
  background: var(--line);
  flex: none;
  margin-left: 2px;
}
.tree-leaf {
  background: none;
  border: none;
  text-align: left;
  color: var(--ink-mute);
  font-size: 12px;
  padding: 5px 6px;
  border-radius: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  transition: color .12s, background .12s;
}
.tree-leaf:hover {
  color: var(--ink-dim);
  background: rgba(255, 255, 255, .03);
}
.tree-child::before {
  content: "";
  position: absolute;
  left: 2px;
  top: -8px;
  bottom: 50%;
  width: 1px;
  background: var(--line);
}
.rail-footer {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.rf-block {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.rf-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.rf-label {
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.rf-value {
  font-size: 11px;
  color: var(--ink-dim);
  white-space: nowrap;
}
.seg {
  display: flex;
  gap: 6px;
}
.seg-btn {
  flex: 1;
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--line);
  color: var(--ink-dim);
  border-radius: 9px;
  padding: 9px 0;
  font-size: 12px;
  font-weight: 700;
  font-family: var(--mono);
  transition:
    background .14s,
    border-color .14s,
    color .14s;
}
.seg-btn:hover {
  border-color: var(--accent);
  color: var(--ink);
}
.seg-btn.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.rf-swatches {
  display: flex;
  gap: 9px;
  justify-content: center;
}
.rf-sw {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--sw);
  border: 2px solid transparent;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14);
  cursor: pointer;
  transition:
    transform .12s,
    border-color .12s,
    box-shadow .12s;
}
.rf-sw:hover {
  transform: scale(1.08);
}
.rf-sw.is-active {
  border-color: #fff;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--sw) 55%, transparent);
}
.trust-note {
  padding: 10px 8px 2px;
  font-size: 11px;
  line-height: 1.5;
  color: var(--ink-mute);
  font-style: italic;
}
.rc-hint {
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--ink-dim);
}
.rc-hint b {
  color: var(--ink);
}
.rc-form {
  display: flex;
  gap: 6px;
}
.rc-input {
  flex: 1;
  min-width: 0;
  background: var(--card-2,rgba(255,255,255,.04));
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 8px 10px;
  font-size: 12px;
}
.rc-input::placeholder {
  color: var(--ink-mute);
}
.rc-input:focus {
  outline: none;
  border-color: var(--accent);
}
.rc-btn {
  flex: none;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 9px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.rc-btn:hover {
  filter: brightness(1.1);
}
.rc-on {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--ink);
  min-width: 0;
}
.rc-email {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rc-logout {
  flex: none;
  border: 0;
  border-left: 1px solid var(--line);
  background: none;
  color: var(--ink-mute);
  padding: 0 0 0 7px;
  font: 9.5px/1.2 var(--mono);
  text-transform: uppercase;
  letter-spacing: .35px;
  cursor: pointer;
}
.rc-logout:hover,
.rc-logout:focus-visible {
  color: var(--link);
}
.rc-server {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 0;
  background: none;
  color: var(--ink-dim);
  padding: 0;
  text-align: left;
  font-family: var(--mono);
  cursor: pointer;
}
.rc-server-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  min-width: 0;
}
.rc-server-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line));
  border-radius: 7px;
  padding: 2px 6px;
  color: var(--ink-mute);
  font-size: 9.5px;
  white-space: nowrap;
}
.rc-server-badge b {
  color: var(--accent);
  font-size: 10px;
}
.rc-server-badge b {
  color: var(--st-local);
}
.rc-server-badge.is-shared {
  border-color: color-mix(in srgb, var(--st-pub) 35%, var(--line));
}
.rc-server-badge.is-online {
  border-color: color-mix(in srgb, var(--st-online) 35%, var(--line));
}
.rc-server-badge.is-online b {
  color: var(--st-online);
}
.rc-server-badge.is-shared b {
  color: var(--st-pub);
}
.rc-server-action {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--accent);
  font-size: 10.5px;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.rc-server:hover .rc-server-action,
.rc-server:focus-visible .rc-server-action {
  color: var(--ink);
}
.rc-led {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #19b894;
  flex: none;
  box-shadow: 0 0 0 2px color-mix(in srgb, #19b894 25%, transparent);
}
.stage {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}
.hero {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.hero-inner {
  max-width: 680px;
  width: 100%;
}
.hero-kicker {
  font-size: 11px;
  letter-spacing: 4px;
  color: var(--accent);
  margin-bottom: 18px;
}
.hero-h1 {
  font-size: 34px;
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: -.5px;
  margin: 0 0 16px;
  text-wrap: balance;
}
.hero-h1 em {
  font-style: italic;
  color: var(--accent);
}
.hero-brand-inline {
  color: var(--accent);
}
.hero-sub {
  color: var(--ink-dim);
  font-size: 15px;
  margin: 0 0 26px;
  max-width: 560px;
}
.hero-composer {
  display: flex;
  gap: 10px;
  align-items: stretch;
  margin-bottom: 18px;
}
.hero-input {
  flex: 1;
  resize: none;
  background: var(--card-2);
  color: var(--ink);
  border: 1px solid var(--accent);
  border-radius: 13px;
  padding: 15px 16px;
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.5;
  outline: none;
}
.hero-input::placeholder {
  color: var(--ink-mute);
}
.hero-ask {
  border: none;
  border-radius: 13px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  padding: 0 24px;
  transition: filter .15s;
}
.hero-ask:hover {
  filter: brightness(1.1);
}
.hero-hint {
  color: var(--ink-mute);
  font-size: 14px;
  margin-bottom: 18px;
}
.hero-examples {
  display: flex;
  flex-wrap: nowrap;
  gap: 9px;
  align-items: center;
  min-width: 0;
  min-height: 36px;
  flex: 1;
  overflow: hidden;
}
.hero-ideas-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  width: 100%;
  min-width: 0;
}
.ideas-loading {
  width: 32px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}
.ideas-star.is-loading {
  animation: star-spin .75s linear infinite;
}
.ideas-refresh {
  flex: none;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid color-mix(in srgb, var(--accent) 48%, var(--line-soft));
  border-radius: 50%;
  background: rgba(255, 255, 255, .03);
  color: var(--accent);
  padding: 0;
  line-height: 1;
  transition: border-color .15s, color .15s, background .15s;
}
.ideas-refresh .refresh-svg {
  display: block;
}
.ideas-refresh:hover:not(:disabled),
.ideas-refresh:focus-visible {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 9%, transparent);
  color: var(--accent);
}
.ideas-refresh:disabled {
  cursor: wait;
  opacity: .75;
}
.ex-chip {
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--line-soft);
  color: var(--ink-dim);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 12.5px;
  white-space: nowrap;
  transition: border-color .15s, color .15s;
}
.ex-chip:hover {
  border-color: var(--accent);
  color: var(--ink);
}
.thread-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 34px 40px 10px;
}
.thread-col {
  max-width: var(--ans-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.row-user {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 10px;
}
.msg-user {
  background: var(--accent);
  color: #fff;
  border-radius: 14px;
  padding: 11px 17px;
  font-size: 14.5px;
  max-width: 76%;
  line-height: 1.5;
}
.row-assistant {
  display: flex;
}
.msg-assistant {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  padding: 22px 26px;
  width: 100%;
  max-width: var(--ans-w);
  transition: border-color .3s ease, box-shadow .3s ease;
}
.msg-assistant.is-nested {
  background: var(--card-2);
  padding: 14px 16px;
  border-radius: 12px;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.msg-assistant.is-streaming {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line-soft));
  animation: pulse-glow 1.8s ease-in-out infinite;
}
@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 10%, transparent);
  }
  50% {
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
  }
}
.row-assistant.is-nested,
.row-user[data-depth]:not([data-depth="0"]) {
}
.ans-p {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 14.5px;
}
.ans-p:last-child {
  margin-bottom: 0;
}
.ans-ol {
  margin: 0 0 12px;
  padding-left: 0;
  list-style: none;
  counter-reset: n;
}
.ans-ol li {
  counter-increment: n;
  position: relative;
  padding-left: 34px;
  margin-bottom: 10px;
  color: var(--ink);
}
.ans-ol li::before {
  content: counter(n) ".";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}
.ans-ref {
  margin: 0 0 12px;
}
.ans-ref-label {
  color: var(--ink-dim);
  margin-bottom: 4px;
}
.ans-ref-list {
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--ink-dim);
  font-size: 13.5px;
}
.ans-ref-list li {
  margin-bottom: 3px;
}
.em {
  font-style: italic;
  color: var(--accent);
}
.reslink {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  cursor: pointer;
}
.reslink:hover {
  color: #8cc1ff;
}
.urllink {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 3px;
  word-break: break-all;
}
.point-body p,
.msg-assistant.is-nested p {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 14.5px;
  line-height: 1.6;
}
.point-body p:last-child,
.msg-assistant.is-nested p:last-child {
  margin-bottom: 0;
}
.point-body ul,
.point-body ol,
.msg-assistant.is-nested ul,
.msg-assistant.is-nested ol {
  margin: 0 0 12px;
  padding-left: 22px;
}
.point-body li,
.msg-assistant.is-nested li {
  margin: 4px 0;
  line-height: 1.55;
  color: var(--ink);
}
.point-body li::marker,
.msg-assistant.is-nested li::marker {
  color: var(--accent);
}
.point-body h1,
.point-body h2,
.point-body h3,
.point-body h4,
.msg-assistant.is-nested h1,
.msg-assistant.is-nested h2,
.msg-assistant.is-nested h3,
.msg-assistant.is-nested h4 {
  font-family: "Quicksand", var(--mono);
  letter-spacing: -.2px;
  line-height: 1.3;
  color: var(--ink);
  margin: 16px 0 8px;
}
.point-body h1:first-child,
.point-body h2:first-child,
.point-body h3:first-child,
.point-body h4:first-child,
.msg-assistant.is-nested h1:first-child,
.msg-assistant.is-nested h2:first-child,
.msg-assistant.is-nested h3:first-child,
.msg-assistant.is-nested h4:first-child {
  margin-top: 0;
}
.point-body h1,
.msg-assistant.is-nested h1 {
  font-size: 18px;
}
.point-body h2,
.msg-assistant.is-nested h2 {
  font-size: 16.5px;
}
.point-body h3,
.msg-assistant.is-nested h3 {
  font-size: 15px;
}
.point-body h4,
.msg-assistant.is-nested h4 {
  font-size: 14.5px;
}
.point-body strong,
.msg-assistant.is-nested strong {
  color: var(--ink);
  font-weight: 700;
}
.point-body em,
.msg-assistant.is-nested em {
  font-style: italic;
  color: var(--accent);
}
.point-body a,
.msg-assistant.is-nested a {
  color: var(--link);
  text-underline-offset: 3px;
}
.point-body code,
.msg-assistant.is-nested code {
  background: var(--card-2);
  border: 1px solid var(--line-soft);
  border-radius: 5px;
  padding: 1px 6px;
  font-size: .88em;
}
.point-body pre,
.msg-assistant.is-nested pre {
  background: var(--card-2);
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  padding: 12px 14px;
  overflow-x: auto;
  margin: 0 0 12px;
}
.point-body pre code,
.msg-assistant.is-nested pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: 13px;
}
.point-body blockquote,
.msg-assistant.is-nested blockquote {
  margin: 0 0 12px;
  padding: 2px 14px;
  border-left: 3px solid var(--accent);
  color: var(--ink-dim);
}
.point-body hr,
.msg-assistant.is-nested hr {
  border: none;
  border-top: 1px solid var(--line-soft);
  margin: 16px 0;
}
.point {
  position: relative;
}
.point:not(:last-child) {
  margin-bottom: 16px;
}
.point-body {
  position: relative;
}
.point-reply-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 6px;
  opacity: .55;
  background: transparent;
  border: 1px solid transparent;
  color: var(--ink-mute);
  font-family: var(--mono);
  font-size: 11px;
  border-radius: 7px;
  padding: 3px 9px;
  transition:
    opacity .18s ease,
    color .18s ease,
    background-color .18s ease,
    border-color .18s ease;
}
.point:hover .point-reply-btn,
.point-reply-btn:hover {
  opacity: 1;
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}
.prb-glyph {
  font-size: 13px;
  line-height: 1;
}
.branch-reply-btn {
  margin-top: 8px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--ink-mute);
  font-family: var(--mono);
  font-size: 11px;
  border-radius: 7px;
  padding: 3px 9px;
  opacity: .55;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition:
    opacity .18s ease,
    color .18s ease,
    background-color .18s ease,
    border-color .18s ease;
}
.branch-answer:hover .branch-reply-btn,
.branch-reply-btn:hover {
  opacity: 1;
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}
.branch {
  margin: 12px 0 12px;
  padding-left: 18px;
  border-left: 2px solid color-mix(in srgb, var(--accent) 42%, var(--line));
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.branch .msg-user {
  font-size: 13.5px;
  padding: 9px 14px;
}
.branch[data-depth="2"] {
  margin: 8px 0;
  padding-left: 14px;
  border-left-color: var(--line-soft);
  gap: 8px;
}
.branch[data-depth="2"] .msg-assistant.is-nested {
  padding: 10px 13px;
}
.branch[data-depth="2"] .msg-assistant.is-nested p,
.branch[data-depth="2"] .msg-user {
  font-size: 13px;
}
.inline-composer {
  display: flex;
  gap: 8px;
  align-items: center;
  background: var(--card-2);
  border: 1px solid var(--accent);
  border-radius: 11px;
  padding: 8px 10px;
  margin: 6px 0 18px;
}
.inline-composer input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 13.5px;
}
.inline-composer input::placeholder {
  color: var(--ink-mute);
}
.ic-cancel {
  background: none;
  border: none;
  color: var(--ink-mute);
  font-size: 13px;
  padding: 6px 10px;
  border-radius: 7px;
}
.ic-cancel:hover {
  color: var(--ink-dim);
}
.ic-send {
  background: var(--accent);
  border: none;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  padding: 7px 16px;
  border-radius: 8px;
  transition: filter .15s;
}
.ic-send:hover {
  filter: brightness(1.1);
}
.stream-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--accent);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: cursor-blink .9s step-end infinite;
}
@keyframes cursor-blink {
  0%, 50% {
    opacity: 1;
  }
  51%, 100% {
    opacity: 0;
  }
}
.star-loading {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 4px 0;
  color: var(--ink-mute);
}
.star-loading .nstar {
  animation: star-spin 1.5s linear infinite, star-think-pulse 1.5s ease-in-out infinite;
}
@keyframes star-think-pulse {
  0%, 100% {
    opacity: .5;
  }
  50% {
    opacity: 1;
  }
}
.star-loading-label {
  font-size: 12px;
  letter-spacing: .3px;
  color: var(--ink-mute);
}
.product-row {
  display: flex;
  gap: 14px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.product-card {
  width: 190px;
  background: var(--card-2);
  border: 1px solid var(--line-soft);
  border-radius: 13px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition:
    border-color .25s,
    box-shadow .25s,
    transform .15s;
}
.product-card:hover {
  border-color: var(--line);
  transform: translateY(-2px);
}
.product-card.is-highlight {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 40%, transparent);
}
.product-img {
  height: 130px;
  border-radius: 9px;
  position: relative;
  overflow: hidden;
  background:
    repeating-linear-gradient(
      135deg,
      color-mix(in srgb, var(--tone,#888) 22%, transparent) 0 8px,
      transparent 8px 16px),
    color-mix(in srgb, var(--tone,#888) 12%, var(--card));
  border: 1px solid var(--line-soft);
}
.product-img-tag {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 10.5px;
  letter-spacing: 1px;
  color: var(--ink-mute);
  background: rgba(8, 11, 22, .55);
  padding: 3px 8px;
  border-radius: 5px;
}
.product-price {
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
}
.product-title {
  font-size: 12px;
  color: var(--ink-dim);
  line-height: 1.45;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-buy {
  background: none;
  border: 1px solid var(--line);
  color: var(--ink-dim);
  border-radius: 8px;
  padding: 7px;
  font-size: 12px;
  font-weight: 500;
  transition:
    border-color .15s,
    color .15s,
    background .15s;
}
.product-buy:hover {
  border-color: var(--accent);
  color: #fff;
  background: color-mix(in srgb, var(--accent) 18%, transparent);
}
.dock {
  padding: 16px 40px 22px;
  border-top: 1px solid var(--line-soft);
  background:
    linear-gradient(
      180deg,
      transparent,
      rgba(0, 0, 0, .18));
}
.dock-inner {
  max-width: var(--ans-w);
  margin: 0 auto;
  display: flex;
  gap: 10px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 9px 9px 9px 16px;
  align-items: center;
}
.dock-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 14.5px;
}
.dock-input::placeholder {
  color: var(--ink-mute);
}
.dock-send {
  background: var(--accent);
  border: none;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  padding: 11px 22px;
  border-radius: 10px;
  transition: filter .15s;
}
.dock-send:hover {
  filter: brightness(1.1);
}
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-thumb {
  background: #1d2540;
  border-radius: 6px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover {
  background: #2a3458;
  background-clip: padding-box;
}
.thread-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 18px 40px;
  border-bottom: 1px solid var(--line-soft);
  background:
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--accent) 6%, transparent),
      transparent);
}
.th-main {
  min-width: 0;
  flex: 1 1 340px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.th-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -.2px;
}
.th-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
  color: var(--ink-mute);
  flex-wrap: wrap;
}
.th-meta .dot {
  opacity: .5;
}
.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
}
.status-chip .led {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.status-chip.is-local {
  background: color-mix(in srgb, var(--st-local) 12%, transparent);
  color: color-mix(in srgb, var(--st-local) 70%, var(--ink));
  border: 1px solid color-mix(in srgb, var(--st-local) 35%, transparent);
}
.status-chip.is-local .led {
  background: var(--st-local);
}
.status-chip.is-online {
  background: color-mix(in srgb, var(--st-online) 14%, transparent);
  color: color-mix(in srgb, var(--st-online) 72%, var(--ink));
  border: 1px solid color-mix(in srgb, var(--st-online) 40%, transparent);
}
.status-chip.is-online .led {
  background: var(--st-online);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--st-online) 25%, transparent);
}
.status-chip.is-pub {
  background: color-mix(in srgb, var(--st-pub) 14%, transparent);
  color: color-mix(in srgb, var(--st-pub) 72%, var(--ink));
  border: 1px solid color-mix(in srgb, var(--st-pub) 40%, transparent);
}
.status-chip.is-pub .led {
  background: var(--st-pub);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--st-pub) 25%, transparent);
}
.storage-note {
  color: var(--ink-mute);
  font-size: 10.5px;
}
.th-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
}
.th-btn {
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--line);
  color: var(--ink-dim);
  border-radius: 10px;
  padding: 9px 13px;
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition:
    border-color .15s,
    color .15s,
    background .15s;
  white-space: nowrap;
}
.th-btn:hover {
  border-color: var(--accent);
  color: var(--ink);
}
.th-btn.is-on {
  border-color: var(--accent);
  color: var(--ink);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
}
.th-btn.is-danger:hover {
  border-color: #e06c75;
  color: #e06c75;
  background: color-mix(in srgb, #e06c75 10%, transparent);
}
.th-btn .gl {
  font-size: 14px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}
.th-btn .action-icon {
  display: block;
}
.th-btn.is-danger:hover .gl {
  color: inherit;
}
.th-pub {
  border: none;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  border-radius: 10px;
  padding: 9px 16px;
  font-size: 12.5px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: filter .15s, transform .05s;
  white-space: nowrap;
}
.th-pub:hover {
  filter: brightness(1.1);
}
.th-pub:active {
  transform: translateY(1px);
}
.th-pub.is-cta {
  background:
    linear-gradient(
      135deg,
      var(--accent),
      color-mix(in srgb, var(--accent) 55%, #ff6fae));
  box-shadow: 0 3px 16px color-mix(in srgb, var(--accent) 45%, transparent);
  padding: 10px 18px;
  font-size: 13px;
}
.th-pub.is-cta .gl {
  font-size: 15px;
}
.url-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--card-2);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 6px 10px;
  font-size: 11.5px;
  color: var(--ink-dim);
  cursor: pointer;
  transition: border-color .15s, color .15s;
  min-width: 0;
  max-width: min(38vw, 620px);
}
.url-chip:hover {
  border-color: var(--accent);
  color: var(--ink);
}
.url-chip .host {
  color: var(--ink-mute);
  flex: none;
}
.url-chip .slug {
  color: var(--link);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.url-chip .copy {
  color: var(--ink-mute);
  font-size: 12px;
  flex: none;
}
.forked-banner {
  margin: 0 auto 4px;
  max-width: var(--ans-w);
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  color: var(--ink-dim);
  background: color-mix(in srgb, var(--accent) 9%, transparent);
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  padding: 9px 14px;
}
.forked-banner b {
  color: var(--ink);
}
.fork-icon {
  display: inline-block;
  color: var(--accent);
  flex: none;
}
.clump-card {
  margin: 0 auto 10px;
  max-width: var(--ans-w);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  border-radius: 12px;
  padding: 10px 12px 8px;
}
.clump-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.clump-title {
  font-size: 11.5px;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}
.clump-close {
  background: none;
  border: none;
  color: var(--ink-mute);
  font-size: 15px;
  cursor: pointer;
  padding: 0 2px;
}
.clump-close:hover {
  color: var(--ink);
}
.clump-row {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--ink-dim);
  font-size: 13px;
  padding: 6px 6px;
  border-radius: 8px;
  cursor: pointer;
}
button.clump-row:hover {
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--ink);
}
.clump-row.is-email {
  cursor: default;
}
.clump-src {
  color: var(--accent);
  flex: none;
  font-size: 12px;
}
.clump-tx {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.clump-when {
  flex: none;
  font-size: 11px;
  color: var(--ink-mute);
}
.clump-badge {
  flex: none;
  font-size: 9.5px;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: #5fd6b6;
  border: 1px solid color-mix(in srgb, #19b894 40%, transparent);
  border-radius: 99px;
  padding: 1px 7px;
}
.why-note {
  margin: 0 auto 8px;
  max-width: var(--ans-w);
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--ink-dim);
  font-style: italic;
  background: color-mix(in srgb, #19b894 7%, transparent);
  border-left: 2px solid #19b894;
  border-radius: 0 9px 9px 0;
  padding: 8px 13px;
}
.why-mk {
  color: #19b894;
  font-style: normal;
  margin-right: 2px;
}
@media (min-width: 1101px) {
  .stage.map-open .dock {
    padding-right: calc(40px + 288px);
  }
}
.thread-region {
  flex: 1;
  display: flex;
  min-height: 0;
  min-width: 0;
  position: relative;
}
.thread-region .thread-scroll {
  flex: 1;
  min-width: 0;
  overflow-x: hidden;
}
.thread-col {
  width: 100%;
}
.tmap {
  width: 288px;
  flex: none;
  border-left: 1px solid var(--line-soft);
  background: var(--bg-rail);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.tmap-head {
  padding: 18px 18px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.tmap-title {
  font-size: 10.5px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.tmap-close {
  background: none;
  border: none;
  color: var(--ink-mute);
  font-size: 16px;
  line-height: 1;
  padding: 2px 6px;
  border-radius: 6px;
}
.tmap-close:hover {
  color: var(--ink);
}
.tmap-body {
  overflow-y: auto;
  padding: 0 12px 18px;
  flex: 1;
}
.tmap-node {
  position: relative;
}
.tmap-row {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--ink-dim);
  display: flex;
  gap: 9px;
  align-items: flex-start;
  padding: 7px 8px;
  border-radius: 8px;
  font-family: var(--mono);
  transition: background .12s, color .12s;
}
.tmap-row:hover {
  background: rgba(255, 255, 255, .045);
  color: var(--ink);
}
.tmap-row.is-q {
  color: var(--ink);
}
.tmap-row.is-a {
  color: var(--ink-mute);
}
.tmap-mk {
  flex: none;
  margin-top: 3px;
  width: 14px;
  text-align: center;
  font-size: 11px;
  color: var(--accent);
}
.tmap-row.is-a .tmap-mk {
  color: var(--ink-mute);
}
.tmap-tx {
  font-size: 12.5px;
  line-height: 1.45;
  min-width: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tmap-kids {
  margin: 0 0 0 9px;
  padding-left: 11px;
  border-left: 1px solid var(--line-soft);
}
.tmap-legend {
  margin-top: 8px;
  padding: 12px 8px 0;
  border-top: 1px solid var(--line-soft);
  font-size: 11px;
  color: var(--ink-mute);
  line-height: 1.6;
}
.tmap-legend b {
  color: var(--ink-dim);
  font-weight: 500;
}
.refresh-line {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 14px;
  font-size: 11.5px;
  color: var(--ink-mute);
}
.refresh-line .fresh {
  color: var(--ink-mute);
}
.stale-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #e0b24f;
  background: color-mix(in srgb, #e0b24f 14%, transparent);
  border: 1px solid color-mix(in srgb, #e0b24f 35%, transparent);
  border-radius: 999px;
  padding: 2px 9px;
  font-size: 10.5px;
  font-weight: 700;
}
.reverify {
  background: none;
  border: 1px solid var(--line);
  color: var(--ink-dim);
  border-radius: 8px;
  padding: 5px 11px;
  font-family: var(--mono);
  font-size: 11.5px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: border-color .15s, color .15s;
}
.reverify:hover {
  border-color: var(--accent);
  color: var(--ink);
}
.reverify.busy {
  opacity: .6;
  pointer-events: none;
}
.reverify .spin {
  display: inline-block;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.modal-back {
  position: fixed;
  inset: 0;
  background: rgba(5, 7, 14, .62);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 60;
  padding: 24px;
  animation: fade .18s ease;
}
@keyframes fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.modal {
  width: 560px;
  max-width: 100%;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px 28px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
  animation: pop .2s cubic-bezier(.2, .9, .3, 1.2);
}
@keyframes pop {
  from {
    opacity: 0;
    transform: translateY(10px) scale(.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.modal-kicker {
  font-size: 10.5px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.modal-h {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -.3px;
  margin: 0 0 6px;
  font-family: "Quicksand", var(--mono);
}
.modal-sub {
  color: var(--ink-dim);
  font-size: 13.5px;
  margin: 0 0 20px;
  line-height: 1.55;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 16px;
}
.field-label {
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.field-url {
  display: flex;
  align-items: center;
  background: var(--card-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.field-url .pfx {
  padding: 11px 4px 11px 13px;
  color: var(--ink-mute);
  font-size: 13px;
}
.field-url input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--link);
  font-family: var(--mono);
  font-size: 13px;
  padding: 11px 13px 11px 0;
}
.field textarea {
  background: var(--card-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 13px;
  padding: 11px 13px;
  resize: vertical;
  outline: none;
  line-height: 1.5;
}
.field textarea:focus,
.field-url:focus-within {
  border-color: var(--accent);
}
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 14px;
  border: 1px solid var(--line-soft);
  border-radius: 11px;
  background: rgba(255, 255, 255, .02);
  margin-bottom: 20px;
}
.toggle-row .tr-txt {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.toggle-row .tr-h {
  font-size: 13px;
  color: var(--ink);
  font-weight: 500;
}
.toggle-row .tr-d {
  font-size: 11.5px;
  color: var(--ink-mute);
}
.sw {
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: var(--line);
  border: none;
  position: relative;
  cursor: pointer;
  transition: background .18s;
  flex: none;
}
.sw.on {
  background: var(--accent);
}
.sw::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: transform .18s;
}
.sw.on::after {
  transform: translateX(18px);
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 4px;
}
.m-cancel {
  background: none;
  border: 1px solid var(--line);
  color: var(--ink-dim);
  border-radius: 10px;
  padding: 11px 18px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  transition: border-color .15s, color .15s;
}
.m-cancel:hover {
  border-color: var(--ink-mute);
  color: var(--ink);
}
.m-go {
  background: var(--accent);
  border: none;
  color: #fff;
  border-radius: 10px;
  padding: 11px 22px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  transition: filter .15s;
}
.sync-modal {
  width: 680px;
  max-height: min(760px, calc(100vh - 48px));
  display: flex;
  flex-direction: column;
}
.sync-legend {
  display: flex;
  gap: 18px;
  margin: -6px 0 14px;
  color: var(--ink-mute);
  font-size: 10.5px;
}
.sync-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.sync-list {
  min-height: 80px;
  overflow-y: auto;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: var(--card-2);
}
.sync-row {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line-soft);
}
.sync-row:last-child {
  border-bottom: none;
}
.sync-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.sync-copy b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 600;
}
.sync-copy small {
  color: var(--ink-mute);
  font-size: 10.5px;
}
.sync-action {
  border: 1px solid color-mix(in srgb, #19b894 40%, var(--line));
  border-radius: 8px;
  background: color-mix(in srgb, #19b894 10%, transparent);
  color: #5fd6b6;
  padding: 6px 9px;
  font: 600 10.5px/1.2 var(--mono);
  white-space: nowrap;
}
.sync-action.is-pull {
  border-color: var(--line);
  background: rgba(255, 255, 255, .025);
  color: var(--ink-dim);
}
.sync-action:disabled {
  opacity: .45;
  cursor: wait;
}
.sync-locked {
  color: #5fd6b6;
  font-size: 10px;
  white-space: nowrap;
}
.sync-divider {
  padding: 9px 14px;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, .025);
  color: var(--ink-mute);
  font-size: 9px;
  letter-spacing: 1.2px;
}
.sync-empty {
  padding: 24px 14px;
  text-align: center;
  color: var(--ink-mute);
  font-size: 12px;
}
.sync-modal .modal-actions {
  margin-top: 16px;
}
@media (max-width: 620px) {
  .sync-modal {
    max-height: calc(100vh - 24px);
    padding: 22px 18px;
  }
  .sync-row {
    padding: 11px;
  }
  .sync-legend {
    flex-wrap: wrap;
    gap: 8px 14px;
  }
}
.m-go:hover {
  filter: brightness(1.1);
}
.toast {
  position: fixed;
  left: 50%;
  top: max(20px, env(safe-area-inset-top));
  transform: translate(-50%, 0);
  z-index: 100;
  /* stands apart from cards: warmer background shade + thin reddish border */
  background: color-mix(in srgb, var(--card) 90%, var(--st-pub) 10%);
  border: 1px solid color-mix(in srgb, var(--st-pub) 55%, var(--line));
  border-radius: 12px;
  padding: 13px 18px;
  display: flex;
  align-items: center;
  gap: 13px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .45);
  animation: toastIn .28s cubic-bezier(.2, .9, .3, 1);
  width: max-content;
  max-width: calc(100vw - 24px);
  min-width: 0;
}
.toast.is-leaving {
  pointer-events: none;
  animation: toastOut .24s ease forwards;
}
@keyframes toastIn {
  from {
    opacity: 0;
    transform: translate(-50%, -14px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}
@keyframes toastOut {
  from {
    opacity: 1;
    transform: translate(-50%, 0);
  }
  to {
    opacity: 0;
    transform: translate(-50%, -10px);
  }
}
.ui-tooltip {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 140;
  width: max-content;
  max-width: min(280px, calc(100vw - 24px));
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--card) 96%, #000);
  box-shadow: 0 10px 32px rgba(0, 0, 0, .42);
  color: var(--ink-dim);
  font: 10.5px/1.45 var(--mono);
  text-align: left;
  pointer-events: none;
  opacity: 0;
  transform: translateY(3px);
  transition: opacity .12s ease, transform .12s ease;
}
.ui-tooltip.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.toast .tk {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #19b894;
  box-shadow: 0 0 0 4px color-mix(in srgb, #19b894 22%, transparent);
  flex: none;
}
.toast .tm {
  font-size: 13px;
  color: var(--ink);
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.toast .ta {
  color: var(--link);
  font-size: 12.5px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
  flex: none;
}
body.rd-page {
  height: auto;
  min-height: 100vh;
  min-height: 100dvh;
}
.rd-top {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px clamp(16px, 3vw, 40px);
  border-bottom: 1px solid var(--line-soft);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(10px);
}
.rd-brand {
  font-family: var(--brand-font);
  font-weight: 800;
  font-size: 20px;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 1px;
  letter-spacing: -.8px;
  text-decoration: none;
  flex: none;
}
/* Star sits between "yip" and "ee": flex-center the wrapper and render the
   svg as a block so it stops riding the text baseline (was visibly high). */
.rd-brand .logo-sep {
  display: inline-flex;
  align-items: center;
  align-self: center;
}
.rd-brand .nstar {
  color: var(--star);
  display: block;
  transform: translateY(.5px);
}
.rd-addr {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--card-2);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 6px 12px;
  font-size: 12.5px;
  color: var(--ink-dim);
  min-width: 0;
  margin-right: auto;
}
.rd-addr .host {
  color: var(--ink-mute);
}
.rd-addr .slug {
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rd-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: none;
}
.rd-open {
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line);
  color: var(--ink-dim);
  border-radius: 9px;
  padding: 8px 13px;
  font-family: var(--mono);
  font-size: 12.5px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: border-color .15s, color .15s;
  white-space: nowrap;
}
.rd-open:hover {
  border-color: var(--accent);
  color: var(--ink);
}
.rd-top .fork-btn {
  padding: 8px 14px;
  font-size: 12.5px;
  text-decoration: none;
}
.rd-unpublish {
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line);
  color: var(--ink-mute);
  border-radius: 9px;
  padding: 8px 13px;
  font-family: var(--mono);
  font-size: 12.5px;
  transition: border-color .15s, color .15s;
  white-space: nowrap;
}
.rd-unpublish:hover {
  border-color: #e06c75;
  color: #e06c75;
}
.rd-unpublish:disabled {
  opacity: .6;
  cursor: default;
}
.rd-head {
  padding: clamp(28px, 5vw, 60px) clamp(16px, 4vw, 56px) clamp(22px, 3vw, 38px);
  border-bottom: 1px solid var(--line-soft);
  background:
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--accent) 7%, transparent),
      transparent);
}
.rd-pubby {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  color: var(--ink-mute);
  margin-bottom: 14px;
}
.r-ava {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background:
    linear-gradient(
      135deg,
      var(--accent),
      color-mix(in srgb, var(--accent) 40%, #1a2138));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  flex: none;
}
.rd-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: start;
  gap: clamp(28px, 4vw, 64px);
  padding: clamp(22px, 3.5vw, 48px) clamp(16px, 4vw, 56px) 90px;
  width: 100%;
}
.rd-article {
  min-width: 0;
}
.rd-side {
  position: sticky;
  top: 76px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.rd-side .r-toc {
  margin-bottom: 0;
}
.rd-side .fork-bar {
  margin-bottom: 0;
  flex-direction: column;
  align-items: stretch;
}
.rd-side .fork-btn {
  justify-content: center;
  text-decoration: none;
}
.rd-toc-inline {
  display: none;
}
.r-h1 {
  font-family: "Quicksand", var(--mono);
  font-size: clamp(29px, 3.6vw, 52px);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -1.2px;
  margin: 0 0 14px;
  text-wrap: balance;
  max-width: 26ch;
}
.r-byline {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--ink-mute);
}
.r-byline .dot {
  opacity: .45;
}
.r-byline .fresh-ok {
  color: #5fd6b6;
}
.rd-pubby .owner-badge {
  color: var(--accent);
  font-weight: 700;
}
.fork-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 18px;
  margin-bottom: 34px;
}
.fork-bar .fb-txt {
  flex: 1;
  min-width: 0;
}
.fork-bar .fb-h {
  font-size: 13.5px;
  color: var(--ink);
  font-weight: 500;
  margin-bottom: 2px;
}
.fork-bar .fb-d {
  font-size: 12px;
  color: var(--ink-mute);
  line-height: 1.5;
}
.fork-btn {
  background: color-mix(in srgb, var(--accent) 13%, var(--card));
  border: 1px solid color-mix(in srgb, var(--accent) 48%, var(--line));
  color: var(--ink);
  font-weight: 700;
  border-radius: 11px;
  padding: 12px 20px;
  font-family: var(--mono);
  font-size: 13.5px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: filter .15s, transform .05s;
  flex: none;
}
.fork-btn:hover {
  background: color-mix(in srgb, var(--accent) 20%, var(--card));
  border-color: var(--accent);
}
.fork-btn:active {
  transform: translateY(1px);
}
.summary-card {
  background:
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--accent) 9%, transparent),
      color-mix(in srgb, var(--accent) 3%, transparent));
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line));
  border-radius: 16px;
  padding: 22px 24px;
  margin-bottom: 34px;
}
.sc-label {
  font-size: 10.5px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 11px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.sc-tldr {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink);
  margin: 0 0 18px;
  text-wrap: pretty;
}
.sc-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: 11px;
  overflow: hidden;
}
.sc-fact {
  background: var(--card);
  padding: 11px 14px;
}
.sc-fact .k {
  font-size: 10.5px;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 3px;
}
.sc-fact .v {
  font-size: 13.5px;
  color: var(--ink);
  font-weight: 500;
}
.r-toc {
  border: 1px solid var(--line-soft);
  border-radius: 13px;
  padding: 16px 18px;
  margin-bottom: 38px;
  background: var(--card-2);
}
.r-toc-label {
  font-size: 10.5px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 11px;
}
.r-toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: toc;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.r-toc li {
  counter-increment: toc;
}
.r-toc a {
  display: flex;
  gap: 11px;
  align-items: baseline;
  padding: 6px 8px;
  border-radius: 7px;
  color: var(--ink-dim);
  font-size: 13.5px;
  text-decoration: none;
  transition: background .12s, color .12s;
}
.r-toc a:hover {
  background: rgba(255, 255, 255, .04);
  color: var(--ink);
}
.r-toc a::before {
  content: counter(toc, decimal-leading-zero);
  color: var(--accent);
  font-size: 11.5px;
  flex: none;
}
.r-toc .sub a {
  padding-left: 34px;
  font-size: 12.5px;
  color: var(--ink-mute);
}
.r-toc .sub a::before {
  content: "↳";
  color: var(--ink-mute);
}
.r-section {
  margin-bottom: 40px;
  scroll-margin-top: 24px;
}
.r-q {
  font-family: "Quicksand", var(--mono);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -.4px;
  color: var(--ink);
  margin: 0 0 14px;
  line-height: 1.25;
  display: flex;
  gap: 11px;
  align-items: baseline;
}
.r-q .qn {
  font-size: 14px;
  color: var(--accent);
  font-weight: 700;
  flex: none;
  font-family: var(--mono);
}
.r-body .ans-p {
  font-size: 15px;
  line-height: 1.68;
  margin: 0 0 14px;
}
.r-body .ans-ol li {
  font-size: 15px;
  line-height: 1.6;
}
.r-sub {
  margin: 22px 0 0 0;
  padding: 18px 20px;
  border: 1px solid var(--line-soft);
  border-radius: 13px;
  background: var(--card-2);
}
.r-sub-q {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 10px;
  display: flex;
  gap: 9px;
  align-items: baseline;
}
.r-sub-q .sk {
  color: var(--accent);
  flex: none;
}
.r-sub .ans-p {
  font-size: 14px;
  line-height: 1.62;
}
.r-body p,
.r-sub p {
  font-size: 15.5px;
  line-height: 1.72;
  margin: 0 0 14px;
}
.r-body p:last-child,
.r-sub p:last-child {
  margin-bottom: 0;
}
.r-body ul,
.r-body ol,
.r-sub ul,
.r-sub ol {
  margin: 0 0 16px;
  padding-left: 24px;
}
.r-body li,
.r-sub li {
  margin: 5px 0;
  line-height: 1.65;
}
.r-body li::marker,
.r-sub li::marker {
  color: var(--accent);
}
.r-body h1,
.r-body h2,
.r-body h3,
.r-body h4 {
  font-family: "Quicksand", var(--mono);
  letter-spacing: -.3px;
  line-height: 1.3;
  margin: 24px 0 10px;
  color: var(--ink);
}
.r-body h1 {
  font-size: 22px;
}
.r-body h2 {
  font-size: 19px;
}
.r-body h3 {
  font-size: 16.5px;
}
.r-body h4 {
  font-size: 15px;
}
.r-body a,
.r-sub a {
  color: var(--link);
  text-underline-offset: 3px;
}
.r-body code,
.r-sub code {
  background: var(--card-2);
  border: 1px solid var(--line-soft);
  border-radius: 5px;
  padding: 1px 6px;
  font-size: .88em;
}
.r-body pre,
.r-sub pre {
  background: var(--card-2);
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  padding: 14px 16px;
  overflow-x: auto;
  margin: 0 0 16px;
}
.r-body pre code,
.r-sub pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: 13px;
}
.r-body blockquote,
.r-sub blockquote {
  margin: 0 0 14px;
  padding: 3px 16px;
  border-left: 3px solid var(--accent);
  color: var(--ink-dim);
}
.r-body hr {
  border: none;
  border-top: 1px solid var(--line-soft);
  margin: 22px 0;
}
.r-body table {
  border-collapse: collapse;
  margin: 0 0 16px;
  display: block;
  overflow-x: auto;
  max-width: 100%;
}
.r-body th,
.r-body td {
  border: 1px solid var(--line);
  padding: 7px 12px;
  font-size: 13.5px;
  text-align: left;
  white-space: nowrap;
}
.r-body th {
  color: var(--ink-dim);
  background: var(--card-2);
}
.r-sub code {
  font-size: .85em;
}
.r-resources {
  margin-top: 20px;
}
.r-res-label {
  font-size: 10.5px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 12px;
}
.r-footer {
  border-top: 1px solid var(--line-soft);
  padding-top: 26px;
  margin-top: 50px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.r-foot-fork {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px;
}
.r-foot-fork .ff-h {
  font-size: 15px;
  color: var(--ink);
  font-weight: 700;
  font-family: "Quicksand", var(--mono);
  margin-bottom: 3px;
}
.r-foot-fork .ff-d {
  font-size: 12.5px;
  color: var(--ink-mute);
}
.r-colophon {
  font-size: 12px;
  color: var(--ink-mute);
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  padding-top: 6px;
}
.r-colophon b {
  color: var(--accent);
  font-family: "Quicksand", var(--mono);
}
.coll-group {
  margin-bottom: 18px;
}
.coll-group.is-pinned {
  padding-bottom: 14px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line-soft);
}
.coll-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 7px;
}
.coll-name {
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  opacity: .9;
}
.coll-count {
  font-size: 10px;
  color: var(--ink-mute);
  margin-left: auto;
}
.coll-icon {
  color: var(--accent);
  opacity: .7;
  font-size: 11px;
}
.pub-led {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #19b894;
  flex: none;
  margin-top: 6px;
  box-shadow: 0 0 0 2px color-mix(in srgb, #19b894 25%, transparent);
}
.tree-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 3px;
}
.tb {
  font-size: 10px;
  color: var(--ink-mute);
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.tb.pub {
  color: var(--st-pub);
}
.tb.pin {
  color: var(--st-online);
}
.tb.loc {
  color: var(--st-local);
  border: 1px solid var(--line-soft);
  border-radius: 99px;
  padding: 0 6px;
  font-size: 9px;
  letter-spacing: .5px;
  text-transform: uppercase;
}
.tree-fork-mark {
  font-size: 10px;
  color: var(--ink-mute);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 3px;
}
.mobile-bar {
  display: none;
}
.rail-scrim {
  display: none;
}
.mb-menu {
  background: none;
  border: none;
  width: 34px;
  height: 34px;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 6px;
  border-radius: 9px;
}
.mb-menu span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--ink-dim);
}
.mb-menu:hover span {
  background: var(--ink);
}
.mb-brand {
  font-family: var(--brand-font);
  font-weight: 800;
  font-size: 21px;
  letter-spacing: -.8px;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 1px;
}
.mb-brand .nstar {
  color: var(--star);
  transform: translateY(1px);
}
.mb-new {
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--line));
  color: var(--accent);
  width: 34px;
  height: 34px;
  border-radius: 9px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.mb-new:hover {
  background: color-mix(in srgb, var(--accent) 26%, transparent);
}
@media (max-width: 1100px) {
  .tmap {
    display: none;
  }
  .rd-grid {
    grid-template-columns: 1fr;
  }
  .rd-side {
    display: none;
  }
  .rd-toc-inline {
    display: block;
  }
  .thread-scroll {
    padding: 28px 30px 10px;
  }
  .dock {
    padding: 14px 30px 20px;
  }
  .thread-head {
    padding: 16px 24px;
    gap: 10px;
  }
  .th-actions .url-chip {
    display: none;
  }
  .th-title {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }
  .th-meta {
    flex-wrap: nowrap;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    min-width: 0;
  }
  .th-meta span {
    flex: none;
  }
}
@media (max-width: 900px) {
  .app {
    grid-template-columns: 1fr;
  }
  #root,
  .app {
    height: var(--vvh,100dvh);
  }
  .rail {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 300px;
    max-width: 86vw;
    z-index: 55;
    transform: translateX(-100%);
    transition: transform .26s cubic-bezier(.3, .9, .3, 1);
    box-shadow: 0 0 60px rgba(0, 0, 0, .5);
    display: flex;
    padding-top: calc(30px + env(safe-area-inset-top));
    padding-bottom: calc(30px + env(safe-area-inset-bottom));
    overscroll-behavior: contain;
  }
  .app.rail-open .rail {
    transform: none;
  }
  .rail-scrim {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(5, 7, 14, .6);
    backdrop-filter: blur(2px);
    z-index: 54;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
  }
  .app.rail-open .rail-scrim {
    opacity: 1;
    pointer-events: auto;
  }
  .mobile-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex: none;
    padding: 10px 14px;
    border-bottom: 1px solid var(--line-soft);
    background: var(--bg-rail);
    padding-top: calc(10px + env(safe-area-inset-top));
  }
  .mb-menu,
  .mb-new {
    width: 44px;
    height: 44px;
  }
  .hero-input,
  .dock-input,
  .rc-input,
  .inline-composer input,
  .field-url input,
  .field textarea {
    font-size: 16px;
  }
  .th-btn,
  .th-pub,
  .dock-send,
  .rc-btn,
  .hero-ask {
    min-height: 44px;
  }
  .rc-input {
    padding: 11px 12px;
  }
  .clump-row {
    min-height: 44px;
    padding: 10px 8px;
  }
  .point-reply-btn,
  .branch-reply-btn {
    opacity: 1;
  }
  .thread-head {
    padding: 14px 18px;
    gap: 12px;
    align-items: stretch;
    flex-direction: column;
  }
  .th-title {
    font-size: 15.5px;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }
  .th-actions {
    width: 100%;
    flex-wrap: wrap;
    row-gap: 8px;
  }
  .thread-scroll {
    padding: 22px 18px 10px;
    overscroll-behavior: contain;
  }
  .thread-col {
    gap: 18px;
  }
  .msg-assistant {
    padding: 18px 18px;
  }
  .msg-user {
    max-width: 88%;
  }
  .dock {
    padding: 12px 16px calc(18px + env(safe-area-inset-bottom));
  }
  .dock-inner {
    padding: 7px 7px 7px 14px;
  }
  .toast {
    top: max(12px, env(safe-area-inset-top));
  }
  .hero {
    padding: 28px 20px;
    padding-bottom: calc(72px + env(safe-area-inset-bottom));
    min-height: 0;
    align-items: flex-start;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .hero-inner {
    flex: 0 0 auto;
  }
  .hero-h1 {
    font-size: 27px;
  }
  .hero-composer {
    flex-direction: column;
  }
  .hero-ask {
    padding: 14px;
  }
  .product-card {
    width: calc(50% - 7px);
  }
  .rd-top {
    padding: 9px 14px;
    gap: 9px;
  }
  .rd-addr {
    display: none;
  }
  .rd-head {
    padding: 26px 18px 20px;
  }
  .rd-grid {
    padding: 22px 18px 70px;
  }
  .r-h1 {
    max-width: none;
  }
  .sc-facts {
    grid-template-columns: 1fr 1fr;
  }
  .fork-bar,
  .r-foot-fork {
    flex-direction: column;
    align-items: stretch;
    text-align: left;
  }
  .fork-btn {
    width: 100%;
    justify-content: center;
  }
}
@media (max-width: 520px) {
  .th-actions .url-chip {
    display: none;
  }
  .th-btn {
    padding: 8px 10px;
  }
  .th-btn .lb {
    display: none;
  }
  .th-btn[data-pin-toggle] .lb {
    display: inline;
  }
  .th-pub {
    padding: 9px 13px;
  }
  .clump-when {
    display: none;
  }
  .product-card {
    width: 100%;
  }
  .hero-h1 {
    font-size: 23px;
  }
  .hero-kicker {
    letter-spacing: 3px;
  }
  .r-h1 {
    font-size: 24px;
  }
  .sc-facts {
    grid-template-columns: 1fr;
  }
  .r-byline {
    gap: 8px;
  }
  .modal {
    padding: 22px 18px;
    border-radius: 16px;
  }
  .modal-h {
    font-size: 19px;
  }
  .rd-grid {
    padding: 18px 14px 60px;
  }
  .rd-top .fork-btn span {
    display: none;
  }
  .r-q {
    font-size: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .rail {
    transition: none;
  }
  .logo-star {
    animation: none;
  }
  .nstar.is-pending {
    animation: none;
  }
  .msg-assistant.is-streaming {
    animation: none;
  }
  .star-loading .nstar {
    animation: none;
  }
  .ideas-star.is-loading {
    animation: none;
  }
}
.rail-nav {
  display: flex;
  gap: 8px;
  margin: 8px 0 22px;
}
.rail-nav .new-search {
  margin: 0;
  flex: 1;
  justify-content: center;
}
.new-search.is-timeline {
  flex: 0 0 auto;
  padding-inline: 13px;
}
.new-search.is-timeline.is-active {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
}
.tl-led {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink-mute);
  display: inline-block;
  flex: 0 0 auto;
}
.tl-led.is-live {
  background: #2fd07f;
  box-shadow: 0 0 0 0 rgba(47, 208, 127, .5);
  animation: tl-breathe 2.4s ease-out infinite;
}
@keyframes tl-breathe {
  0% {
    box-shadow: 0 0 0 0 rgba(47, 208, 127, .45);
  }
  70% {
    box-shadow: 0 0 0 7px rgba(47, 208, 127, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(47, 208, 127, 0);
  }
}
.coll-head {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 7px;
  background: none;
  border: none;
  color: var(--ink-mute);
  padding: 7px 6px 5px;
  font-size: 10.5px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 7px;
}
.coll-head:hover {
  color: var(--ink-dim);
  background: rgba(255, 255, 255, .03);
}
.coll-chev {
  display: inline-block;
  transition: transform .18s ease;
  transform: rotate(90deg);
  color: var(--accent);
  font-size: 13px;
  line-height: 1;
}
.coll-group.is-collapsed .coll-chev {
  transform: rotate(0deg);
}
.coll-count {
  margin-left: auto;
  background: rgba(255, 255, 255, .06);
  border-radius: 9px;
  padding: 1px 7px;
  font-size: 10px;
  letter-spacing: 0;
}
.coll-group .hist-tree {
  overflow: hidden;
  max-height: 2000px;
  transition: max-height .28s ease, opacity .2s ease;
  opacity: 1;
}
.coll-group.is-collapsed .hist-tree {
  max-height: 0;
  opacity: 0;
}
.tree-item {
  position: relative;
  list-style: none;
}
.tree-item .tree-del {
  position: absolute;
  top: 7px;
  right: 4px;
  border: none;
  background: none;
  color: var(--ink-mute);
  font-size: 13px;
  line-height: 1;
  padding: 3px 7px;
  border-radius: 7px;
  cursor: pointer;
  opacity: 0;
  transition:
    opacity .12s,
    color .12s,
    background .12s;
}
.tree-item .tree-sync {
  position: absolute;
  top: 7px;
  right: 30px;
  width: 23px;
  height: 23px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 7px;
  background: none;
  color: var(--ink-mute);
  font: 700 14px/1 var(--mono);
  cursor: pointer;
  opacity: 0;
  transition: opacity .12s, color .12s, background .12s;
}
.tree-item:hover .tree-sync,
.tree-item:focus-within .tree-sync {
  opacity: 1;
}
.tree-item .tree-sync:hover {
  color: #5fd6b6;
  background: color-mix(in srgb, #19b894 12%, transparent);
}
@media (hover: none), (pointer: coarse) {
  .tree-item .tree-sync,
  .tree-item .tree-del {
    opacity: 1;
  }
}
.tree-item:hover .tree-del,
.tree-item .tree-del.is-armed {
  opacity: 1;
}
.tree-item .tree-del:hover {
  color: #ff7a7a;
  background: rgba(255, 90, 90, .1);
}
.tree-item .tree-del.is-armed {
  color: #ff7a7a;
  background: rgba(255, 90, 90, .14);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .4px;
  animation: fade .15s ease;
}
.tree-item .tree-root {
  padding-right: 66px;
}
.tl-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  padding: 26px 28px 16px;
  border-bottom: 1px solid var(--line-soft);
}
.tlh-title {
  font-size: 19px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.tlh-title .nstar {
  color: var(--accent);
}
.tlh-sub {
  font-size: 12.5px;
  color: var(--ink-mute);
  margin-top: 4px;
}
.tlh-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  color: var(--ink-dim);
  flex: 0 0 auto;
}
.tlh-connected {
  display: flex;
  align-items: center;
  gap: 6px;
}
.tlh-connect-hint {
  color: var(--ink-mute);
  max-width: 260px;
  text-align: right;
}
.tlh-live {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-mute);
}
.tlh-live.is-on {
  color: #2fd07f;
}
.tl-scroll {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
}
.tl-col {
  max-width: 820px;
  margin: 0 auto;
  padding: 24px 28px 80px;
}
.tl-spine {
  position: relative;
  padding-left: 34px;
}
.tl-spine::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background:
    linear-gradient(
      to bottom,
      color-mix(in srgb, var(--accent) 55%, transparent),
      var(--line-soft));
  border-radius: 2px;
}
.tl-cluster {
  position: relative;
  margin-bottom: 18px;
  animation: pop .28s ease;
}
.tl-node {
  position: absolute;
  left: -34px;
  top: 14px;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 50%;
}
.tl-node .logo-sep {
  transform: none;
}
.tl-node.is-local {
  border-color: color-mix(in srgb, var(--st-local) 70%, var(--line));
}
.tl-node.is-local .nstar {
  color: var(--st-local);
}
.tl-node.is-public {
  border-color: color-mix(in srgb, var(--st-pub) 70%, var(--line));
}
.tl-node.is-public .nstar {
  color: var(--st-pub);
}
.tl-node.is-online {
  border-color: color-mix(in srgb, var(--st-online) 70%, var(--line));
}
.tl-node.is-online .nstar {
  color: var(--st-online);
}
.tl-node-sync {
  position: absolute;
  top: 28px;
  left: 50%;
  width: 20px;
  height: 20px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--bg);
  color: var(--ink-mute);
  padding: 0;
  font: 700 12px/1 var(--mono);
  cursor: pointer;
  z-index: 2;
  transition: color .12s, border-color .12s, background .12s;
}
.tl-node-sync:hover,
.tl-node-sync:focus-visible {
  color: #5fd6b6;
  border-color: #19b894;
  background: color-mix(in srgb, #19b894 12%, var(--bg));
  outline: none;
}
.tl-cluster.is-new .tl-node {
  border-color: #2fd07f;
  color: #2fd07f;
}
.tl-cluster.is-new .tl-node .nstar {
  animation: star-spin 1.6s linear 2;
}
.tl-card {
  background: var(--card-2);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  padding: 10px 12px;
  transition: border-color .15s;
}
.tl-cluster:hover .tl-card {
  border-color: var(--line);
}
.tl-cluster.is-new .tl-card {
  border-color: color-mix(in srgb, #2fd07f 45%, var(--line-soft));
}
.tl-topic {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 4px 6px 9px;
  border-bottom: 1px dashed var(--line-soft);
  margin-bottom: 7px;
}
.tl-topic-label {
  border: 0;
  background: none;
  padding: 0;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.tl-topic-label:hover,
.tl-topic-label:focus-visible {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.tl-topic-label.is-busy {
  pointer-events: none;
  opacity: .55;
}
.tl-chip {
  font-size: 10.5px;
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  background: color-mix(in srgb, var(--accent) 9%, transparent);
  border-radius: 9px;
  padding: 1px 8px;
}
.tl-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 9px;
  text-align: left;
  background: none;
  border: none;
  color: var(--ink-dim);
  padding: 7px 8px;
  border-radius: 9px;
  font-size: 13px;
  transition: background .12s, color .12s;
}
button.tl-row {
  cursor: pointer;
}
button.tl-row:hover {
  background: rgba(255, 255, 255, .04);
  color: var(--ink);
}
.tl-row.is-new {
  background: color-mix(in srgb, #2fd07f 8%, transparent);
}
.tl-mk {
  color: var(--accent);
  flex: 0 0 auto;
  font-size: 12px;
}
.tl-row.is-email .tl-mk {
  color: #e0b34f;
}
.tl-tx {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
a.tl-tx {
  color: inherit;
  text-decoration: none;
}
a.tl-tx:hover,
a.tl-tx:focus-visible {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.tl-when {
  flex: 0 0 auto;
  font-size: 11px;
  color: var(--ink-mute);
}
.tl-badge {
  flex: 0 0 auto;
  font-size: 9.5px;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 8px;
  padding: 1px 7px;
}
.tl-badges {
  display: flex;
  align-items: center;
  gap: 5px;
  flex: 0 0 auto;
  min-width: 0;
}
.tl-badge.is-email {
  color: #e0b34f;
  background: rgba(224, 179, 79, .12);
}
.tl-badge.is-new {
  color: #2fd07f;
  background: rgba(47, 208, 127, .14);
  animation: fade .3s ease;
}
.tl-badge.is-pin {
  color: var(--st-online);
  background: color-mix(in srgb, var(--st-online) 12%, transparent);
}
.tl-badge.is-local {
  color: var(--st-local);
  background: color-mix(in srgb, var(--st-local) 10%, transparent);
}
.tl-badge.is-pub {
  color: var(--st-pub);
  background: color-mix(in srgb, var(--st-pub) 12%, transparent);
}
.tl-more {
  font-size: 11px;
  color: var(--ink-mute);
  padding: 5px 8px 2px;
}
.tl-empty {
  text-align: center;
  color: var(--ink-dim);
  padding: 60px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 14px;
}
.tl-empty .nstar {
  color: var(--star);
  animation: twinkle 3s ease-in-out infinite;
}
.tl-empty .hero-ask {
  margin-top: 14px;
}
.tl-skel {
  height: 64px;
  border-radius: 14px;
  margin-bottom: 14px;
  background:
    linear-gradient(
      100deg,
      var(--card-2) 40%,
      color-mix(in srgb, var(--card-2) 60%, #1c2440) 50%,
      var(--card-2) 60%);
  background-size: 200% 100%;
  animation: tl-shimmer 1.2s linear infinite;
}
@keyframes tl-shimmer {
  to {
    background-position: -200% 0;
  }
}
.mb-tl {
  border: none;
  background: none;
  color: var(--accent);
  font-size: 16px;
  line-height: 1;
  padding: 8px 10px;
  border-radius: 9px;
}
.mb-tl.is-active {
  background: color-mix(in srgb, var(--accent) 15%, transparent);
}
@media (max-width: 900px) {
  .tl-head {
    padding: 16px 16px 12px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .tlh-connect-hint {
    text-align: left;
    max-width: none;
  }
  .tl-col {
    padding: 16px 14px 70px;
  }
  .tl-spine {
    padding-left: 28px;
  }
  .tl-spine::before {
    left: 9px;
  }
  .tl-node {
    left: -28px;
    width: 22px;
    height: 22px;
  }
  .tl-when {
    display: none;
  }
  .tree-item .tree-del {
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .tl-led.is-live {
    animation: none;
  }
  .tl-cluster {
    animation: none;
  }
  .tl-cluster.is-new .tl-node .nstar {
    animation: none;
  }
  .tl-skel {
    animation: none;
  }
  .coll-group .hist-tree {
    transition: none;
  }
  .tl-empty .nstar {
    animation: none;
  }
}
.hist {
  overflow-y: auto;
  overflow-x: hidden;
  margin-right: -10px;
  padding-right: 10px;
}
.rail-footer {
  flex: none;
  background: var(--bg-rail);
  position: relative;
  z-index: 1;
}
a.tree-root,
a.tree-leaf,
.tree-root,
.tree-leaf {
  text-decoration: none;
}
.tree-root {
  color: var(--ink-dim);
}
.tree-leaf {
  color: var(--ink-mute);
  display: block;
}
.tree-item {
  list-style: none;
}
.hist-tree {
  gap: 2px;
}
.tree-root {
  padding: 7px 9px;
  gap: 1px;
}
.coll-group {
  margin-bottom: 12px;
}
.coll-head {
  margin-bottom: 2px;
}
.trust-note {
  padding-bottom: 10px;
}
@media (max-width: 900px) {
  .mb-tl {
    width: 44px;
    height: 44px;
  }
  .rail {
    padding: 18px 16px calc(16px + env(safe-area-inset-bottom));
  }
  .rail .brand {
    margin-bottom: 14px;
  }
  .rail-nav {
    margin: 4px 0 14px;
  }
  .new-search {
    padding: 11px 12px;
    font-size: 13.5px;
  }
  .rf-swatches {
    flex-wrap: wrap;
  }
  .rail-footer {
    padding-top: 12px;
    gap: 10px;
  }
  .rc-hint {
    font-size: 11px;
  }
}
.boot-wait {
  display: none;
}
.rt-sub .hero {
  display: none;
}
.rt-sub .boot-wait {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
}
.boot-star {
  color: var(--star);
  opacity: .7;
  animation: star-think-pulse 1.2s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .boot-star {
    animation: none;
  }
}
.tl-email-wrap {
  border-radius: 9px;
}
.tl-email-wrap.is-open {
  background: rgba(255, 255, 255, .03);
}
.tl-exp {
  flex: 0 0 auto;
  color: var(--ink-mute);
  font-size: 11px;
  transition: transform .15s;
  border: 0;
  background: none;
  padding: 4px;
  cursor: pointer;
}
button.tl-row.is-email {
  cursor: pointer;
}
button.tl-row.is-email:hover {
  background: rgba(255, 255, 255, .04);
  color: var(--ink);
}
.tl-row.is-email:hover {
  background: rgba(255, 255, 255, .04);
  color: var(--ink);
}
.tl-email-detail {
  margin: 0 8px 8px 29px;
  padding: 10px 12px;
  border-left: 2px solid color-mix(in srgb, #e0b34f 45%, transparent);
  background: var(--card-2);
  border-radius: 0 10px 10px 0;
  font-size: 12.5px;
  animation: fade .18s ease;
}
.tl-email-detail.is-err {
  color: var(--ink-mute);
  font-style: italic;
}
.tled-meta {
  font-size: 11px;
  color: var(--ink-mute);
  margin-bottom: 6px;
}
.tled-body {
  color: var(--ink-dim);
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 220px;
  overflow-y: auto;
}
.tled-body.is-empty {
  color: var(--ink-mute);
  font-style: italic;
}
.tled-kws {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 9px;
}
.tled-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 9px;
  padding-top: 8px;
  border-top: 1px dashed var(--line-soft);
}
.tled-label {
  font-size: 10px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.tl-email-link {
  color: var(--link);
  text-decoration: none;
  font-size: 12px;
}
.tl-email-link:hover {
  text-decoration: underline;
}
.email-reader {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 28px 40px 64px;
}
.emr-top,
.emr-doc,
.emr-loading,
.emr-error {
  width: min(780px, 100%);
  margin-inline: auto;
}
.emr-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line-soft);
}
.emr-back {
  border: 0;
  background: none;
  color: var(--ink-dim);
  padding: 6px 0;
  font-size: 12px;
}
.emr-back:hover,
.emr-back:focus-visible {
  color: var(--accent);
}
.emr-label {
  color: #e0b34f;
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.emr-doc {
  padding-top: 36px;
}
.emr-head {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line-soft);
}
.emr-head h1 {
  margin: 0 0 12px;
  max-width: 30ch;
  color: var(--ink);
  font-family: "Quicksand", var(--mono);
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}
.emr-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--ink-mute);
  font-size: 11.5px;
  overflow-wrap: anywhere;
}
.emr-body {
  padding: 30px 0;
  color: var(--ink-dim);
  font-size: 14px;
  line-height: 1.75;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.emr-body .is-empty,
.emr-error {
  color: var(--ink-mute);
  font-style: italic;
}
.emr-truncated {
  display: block;
  margin-top: 18px;
  color: var(--ink-mute);
  font-size: 11px;
}
.emr-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
}
.emr-loading,
.emr-error {
  padding-top: 48px;
}
.emr-error button {
  display: block;
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: none;
  color: var(--ink-dim);
  padding: 7px 11px;
}
@media (max-width: 900px) {
  .tl-email-detail {
    margin-left: 12px;
  }
  .email-reader {
    padding: 20px 18px calc(80px + env(safe-area-inset-bottom));
  }
  .emr-doc {
    padding-top: 26px;
  }
  .emr-head h1 {
    font-size: 26px;
  }
  .emr-body {
    padding-top: 24px;
    font-size: 13.5px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .tl-email-detail {
    animation: none;
  }
}
.new-search.is-emails {
  flex: 0 0 auto;
  padding-inline: 13px;
  font-size: 15px;
  color: #e0b34f;
}
.new-search.is-emails.is-active {
  border-color: #e0b34f;
  background: rgba(224, 179, 79, .1);
}
/* "Try the new design" — link to the /strata temporal-canvas beta */
.rf-newui {
  display: block;
  margin: 10px 0;
  padding: 9px 12px;
  border: 1px dashed color-mix(in srgb, var(--accent) 45%, transparent);
  border-radius: 10px;
  font-size: 12.5px;
  color: var(--accent);
  text-decoration: none;
  text-align: center;
  transition: background .15s, border-color .15s;
}
.rf-newui:hover {
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border-style: solid;
}
/* New-email indicator + clump-celebration star (TODO SECONDARY) */
.new-search.is-timeline,
.new-search.is-emails,
.mb-tl {
  position: relative;
}
.nav-dot {
  position: absolute;
  top: 7px;
  right: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px color-mix(in srgb, var(--accent) 75%, transparent);
  animation: pop .22s cubic-bezier(.2, .9, .3, 1.2);
  pointer-events: none;
}
.tl-spark {
  position: absolute;
  top: -6px;
  right: -6px;
  color: var(--accent);
  line-height: 0;
  pointer-events: none;
}
.tl-spark .nstar {
  animation: spark-spin 1.4s cubic-bezier(.3, .7, .3, 1) both;
  filter: drop-shadow(0 0 5px color-mix(in srgb, var(--accent) 70%, transparent));
}
@keyframes spark-spin {
  0% {
    transform: scale(.2) rotate(0deg);
    opacity: 0;
  }
  22% {
    transform: scale(1.35) rotate(170deg);
    opacity: 1;
  }
  70% {
    transform: scale(1) rotate(400deg);
    opacity: 1;
  }
  100% {
    transform: scale(.35) rotate(540deg);
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .tl-spark .nstar {
    animation: fade 1.4s ease both reverse;
  }
  .nav-dot {
    animation: none;
  }
}
.em-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.tl-badge.is-linked {
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}
.tled-label.is-unlinked {
  text-transform: none;
  letter-spacing: .2px;
  font-size: 11px;
  font-style: italic;
}
a.tl-row {
  text-decoration: none;
  color: var(--ink-dim);
}
a.tl-row.is-pinlink:hover {
  background: rgba(255, 255, 255, .04);
  color: var(--ink);
}
.intent-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--ink-mute);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  padding: 3px 11px;
  margin: 0 0 12px;
  user-select: none;
}
.intent-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink-mute);
}
.intent-badge.is-product::before {
  background: var(--accent);
}
.intent-badge.is-task::before {
  background: #19b894;
}
.intent-badge.is-information::before {
  background: #5aa6ff;
}
.tl-rowwrap {
  position: relative;
}
.tl-email-wrap {
  position: relative;
}
.tl-hide {
  position: absolute;
  left: -19px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--ink-mute);
  opacity: 0;
  padding: 0;
  cursor: pointer;
  transition: opacity .12s, color .12s;
  z-index: 2;
}
.tl-email-wrap .tl-hide {
  top: 16px;
}
.tl-rowwrap:hover .tl-hide,
.tl-email-wrap:hover .tl-hide {
  opacity: .85;
}
.tl-hide:hover,
.tl-hide:focus-visible {
  opacity: 1;
  color: var(--danger);
}
.tl-compound {
  margin-left: auto;
  flex: none;
  width: 24px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink-mute);
  padding: 0;
  cursor: pointer;
  transition: color .12s, border-color .12s;
}
.tl-compound:hover {
  color: var(--accent);
  border-color: var(--accent);
}
.tl-compound.is-busy {
  pointer-events: none;
}
.tlc-dot {
  width: 8px;
  height: 8px;
  border: 1.5px solid var(--accent);
  border-top-color: transparent;
  border-radius: 50%;
  animation: star-spin .7s linear infinite;
}
.tl-cluster.is-compounded .tl-card {
  background: var(--card-2);
}
.tl-badge.is-comp {
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  color: var(--accent);
}
.tl-summary {
  font-size: 13px;
  color: var(--ink-dim);
  line-height: 1.55;
  padding: 2px 6px 4px;
}
.tl-expand {
  background: none;
  border: none;
  color: var(--ink-mute);
  cursor: pointer;
  font-family: inherit;
  font-size: 11px;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.tl-expand:hover {
  color: var(--accent);
}
.tl-scroll.tl-noanim .tl-cluster {
  animation: none;
}
.tl-refine {
  flex: none;
  width: 24px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink-mute);
  padding: 0;
  cursor: pointer;
  transition: color .12s, border-color .12s;
}
.tl-refine:hover {
  color: var(--accent);
  border-color: var(--accent);
}
.tl-comp-items {
  margin-top: 7px;
  border-top: 1px dashed var(--line-soft);
  padding-top: 7px;
}
.tl-expand.is-uncomp {
  margin-left: 10px;
  opacity: .7;
}
button.tree-root {
  background: none;
  border: none;
  font-family: inherit;
  font-size: inherit;
  width: 100%;
  text-align: left;
  cursor: pointer;
}
.tree-root.is-comp .tree-text {
  color: var(--ink-dim);
  font-style: italic;
}
.tree-compmark {
  display: inline-flex;
  align-items: center;
  vertical-align: -1px;
  color: var(--accent);
  opacity: .85;
  margin-right: 6px;
}
.tb.comp {
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  color: var(--accent);
}
.hero-stat {
  color: var(--ink-dim);
  font-size: 14px;
  margin: -14px 0 26px;
  max-width: 560px;
}
.stat-cite {
  position: relative;
  display: inline-block;
  margin-left: 6px;
}
.stat-cite-btn {
  display: inline-flex;
  align-items: center;
  color: var(--ink-mute);
  vertical-align: -2px;
  transition: color .12s;
}
.stat-cite-btn:hover,
.stat-cite-btn:focus-visible {
  color: var(--accent);
}
.stat-tip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  width: 260px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 9px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, .4);
  color: var(--ink-dim);
  font-size: 11.5px;
  line-height: 1.5;
  padding: 9px 11px;
  text-align: left;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s;
  z-index: 40;
}
.stat-cite:hover .stat-tip,
.stat-cite-btn:focus-visible + .stat-tip {
  opacity: 1;
}
@media (max-width: 600px) {
  .stat-tip {
    left: auto;
    right: -10px;
    transform: none;
  }
}
@media (max-width: 520px) {
  .tl-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-auto-rows: auto;
    column-gap: 8px;
    row-gap: 4px;
    align-items: center;
  }
  .tl-mk {
    grid-column: 1;
    grid-row: 1;
  }
  .tl-tx {
    grid-column: 2;
    grid-row: 1;
  }
  .tl-badges {
    grid-column: 2;
    grid-row: 2;
    justify-self: start;
    flex-wrap: wrap;
  }
  .tl-badge.is-email {
    display: none;
  }
  .tl-when {
    grid-column: 3;
    grid-row: 2;
    justify-self: end;
  }
  .tl-exp {
    grid-column: 3;
    grid-row: 1;
  }
  .tlh-meta {
    flex-wrap: wrap;
    min-width: 0;
  }
  .tlh-connected {
    min-width: 0;
    overflow-wrap: anywhere;
  }
}
