:root {
  color-scheme: dark;
  --bg: #1a1714;
  --panel: #221e1a;
  --text: #ece7df;
  --muted: #a79f94;
  --border: #37312b;
  --accent: #e0a458;
  --accent-soft: #35291b;
  --source-reddit: #ff4500;
  --source-hn: #ff6600;
  --source-tildes: #6a70c2;
  --source-bubbles: #2a9d8f;
  --source-rss: #8b93a1;
  --source-gemini: #a78bfa;
  --source-youtube: #ff4e45;
  --source-import: #d4a72c;
  --source-mine: rgb(248, 215, 85);
  --tag: #e0a458;
  --noise: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxODAiIGhlaWdodD0iMTgwIj48ZmlsdGVyIGlkPSJuIj48ZmVUdXJidWxlbmNlIHR5cGU9ImZyYWN0YWxOb2lzZSIgYmFzZUZyZXF1ZW5jeT0iMC44MiIgbnVtT2N0YXZlcz0iMyIgc3RpdGNoVGlsZXM9InN0aXRjaCIvPjxmZUNvbG9yTWF0cml4IHR5cGU9InNhdHVyYXRlIiB2YWx1ZXM9IjAiLz48L2ZpbHRlcj48cmVjdCB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiBmaWx0ZXI9InVybCgjbikiIG9wYWNpdHk9IjAuMDMiLz48L3N2Zz4=");
}

* { box-sizing: border-box; }

html, body { overscroll-behavior: none; }
html { background-color: var(--bg); background-image: var(--noise); background-repeat: repeat; background-attachment: fixed; -webkit-tap-highlight-color: transparent; }
a, button, input, textarea, select, label, summary { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }

body {
  margin: 0;
  background-color: var(--bg);
  background-image: var(--noise);
  background-repeat: repeat;
  background-attachment: fixed;
  color: var(--text);
  font: 15px/1.65 ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

input[type="search"], input[type="text"] {
  flex: 1;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--panel);
  color: var(--text);
  font: inherit;
  font-size: 16px;
}

button {
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--panel);
  color: var(--text);
  font: inherit;
  cursor: pointer;
}

button:hover { border-color: var(--accent); }
.views-top { margin: 0 0 20px; }
.views-bottom { margin: 30px 0 0; }
.js .views-bottom { display: none; }
.js .views-bottom.views-bottom-visible { display: block; }
.views {
  display: inline-flex;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 6px;
}
.views a {
  padding: 5px 12px;
  border-right: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
}
.views a:last-child { border-right: 0; }
.views a:hover { color: var(--text); text-decoration: none; }
.views a.active { background: var(--accent-soft); color: var(--accent); }
.reading-budget {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin: -8px 0 18px;
  padding: 7px 10px;
  border-left: 2px solid var(--muted);
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  font-size: 11px;
}
.reading-budget[hidden] { display: none; }
.reading-budget.warn { border-left-color: var(--accent); color: var(--text); }
.reading-budget.over { border-left-color: #d06b5a; background: rgba(208, 107, 90, 0.08); }
.reading-budget .budget-note { color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.reading-budget .budget-note a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.reading-pixel { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

main {
  max-width: 1020px;
  margin: 0;
  padding: 26px 32px 56px;
  overflow-anchor: none;
}

.page-head {
  padding-bottom: 12px;
  margin-bottom: 2px;
  border-bottom: 1px solid var(--border);
}
.page-head h1,
.thread-post h1,
.auth-card h1 {
  margin: 0 0 9px;
  font-size: 1.05rem;
  line-height: 1.35;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.search-context { margin: -3px 0 10px; color: var(--muted); font-size: 13px; }

.sorts { display: flex; flex-wrap: wrap; gap: 16px; }
.sorts a { color: var(--muted); font-size: 13px; text-transform: capitalize; }
.sorts a:hover { color: var(--text); text-decoration: none; }
.sorts a.active {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--accent);
}

.sub-actions { margin-top: 10px; }
.sub-actions button { padding: 4px 9px; color: var(--muted); font-size: 13px; }

.post {
  position: relative;
  touch-action: pan-y;
  margin: 0;
  padding: 19px 0;
  transition: background-color 120ms ease;
}
.post:last-of-type { border-bottom: 0; }
.post.active { background: rgba(224, 164, 88, 0.045); }
.post:focus { outline: none; }
.post-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
}
.post-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px 12px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
  text-align: right;
}
.post-times, .post-stats { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 9px; }
.post-stats .post-score { white-space: nowrap; }
.post-stats a { color: var(--muted); white-space: nowrap; }
.post-stats a:hover { color: var(--accent); }
.post-comments-icon { display: inline-block; margin-right: 0.18em; filter: grayscale(1); opacity: 0.75; }
.post-star { flex: 0 0 auto; }
.post-meta-row {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 14px;
  margin-top: 7px;
}
.post-meta {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
}
.post-meta .sub { color: var(--accent); font-weight: 600; }
.post-meta .origin { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: 0.04em; }
.post-meta .archive-pick { color: var(--accent); font-size: 10px; text-transform: uppercase; letter-spacing: 0.04em; }
.post-meta .sponsored-tag {
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.post-meta .link-host { margin: 0; font-size: 12px; }
.post-actions {
  display: flex;
  flex: 0 0 auto;
  justify-content: flex-end;
  gap: 9px;
}
.seen-above {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  z-index: 1;
  height: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
  display: none;
  opacity: 0;
  transition: opacity 120ms ease;
}
.js .seen-above { display: block; }
.seen-above:hover,
.seen-above:focus-visible { color: var(--accent); opacity: 1; }
.post.seen-away { opacity: 0.12; pointer-events: none; }
@media (hover: none) {
  .seen-above { opacity: 0.35; }
}
.post.source-reddit,
.post.source-hn,
.post.source-tildes,
.post.source-bubbles,
.post.source-rss {
  padding-left: 14px;
  border-left: 2px solid var(--border);
}
.post.source-reddit { border-left-color: var(--source-reddit); }
.post.source-hn { border-left-color: var(--source-hn); }
.post.source-tildes { border-left-color: var(--source-tildes); }
.post.source-bubbles { border-left-color: var(--source-bubbles); }
.post.source-rss { border-left-color: var(--source-rss); }
.post.read { opacity: 0.58; }
.post.read:hover,
.post.read:focus-within { opacity: 1; }
.post.substance-small:not(.skipped) {
  padding-top: 12px;
  padding-bottom: 12px;
}
.post.substance-small:not(.skipped) h2 {
  font-size: 0.96rem;
  font-weight: 600;
}
.post.substance-small:not(.skipped) .excerpt {
  max-height: 3.8em;
}
.post.substance-large:not(.skipped) {
  padding-top: 26px;
  padding-bottom: 26px;
}
.post.substance-large:not(.skipped) h2 {
  font-size: 1.25rem;
  line-height: 1.34;
}
.post.substance-large:not(.skipped) .excerpt {
  max-height: 9em;
  font-size: 13px;
}
.post.skipped {
  padding: 8px 0 8px 14px;
  opacity: 0.48;
}
.post.removing {
  opacity: 0.2;
  pointer-events: none;
}
.post.skipped .post-meta,
.post.skipped .excerpt,
.post.skipped .post-media { display: none; }
.post.skipped .post-head { gap: 10px; }
.post.skipped h2 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.post.skipped h2 a { color: var(--muted); }
.star-form { display: contents; }
.star-btn {
  padding: 0;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.2;
  opacity: 0.5;
}
.star-btn:hover, .star-btn:focus-visible { color: var(--accent); border: 0; opacity: 1; }
.star-btn.starred { color: var(--accent); opacity: 0.8; }
.save-btn {
  padding: 0;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
  opacity: 0.7;
}
.save-btn:hover { color: var(--accent); border: 0; opacity: 1; }
.save-btn.active { color: var(--accent); opacity: 1; }
.save-form { display: contents; }
.saved-note { color: var(--accent); font-size: 10px; text-transform: uppercase; letter-spacing: 0.04em; }
.post h2 { margin: 0; font-size: 1.05rem; line-height: 1.4; font-weight: 700; }
.post h2 a { color: var(--text); }
.post h2 a:hover { color: var(--accent); text-decoration: none; }

.post-foot, .comment-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}
.post-foot { margin-top: 9px; }
.flair, .tag { color: var(--muted); font-size: 12px; }
.tag { color: var(--tag); }
.new-badge {
  display: inline-flex;
  align-items: center;
  padding: 1px 7px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
}

.excerpt {
  margin: 7px 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  max-height: 6em;
  overflow: hidden;
  white-space: pre-wrap;
}
.link-host { color: var(--muted); }
.link-host a { color: var(--muted); text-decoration: underline; text-decoration-color: var(--border); text-underline-offset: 3px; }
.link-host a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.discussions { margin: 7px 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.discussions-label { margin-right: 5px; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: 0.04em; }
.discussions a { color: var(--muted); text-decoration: underline; text-decoration-color: var(--border); text-underline-offset: 3px; white-space: nowrap; }
.discussions a:hover { color: var(--accent); text-decoration-color: var(--accent); }
.discussion-sep { margin: 0 3px; color: var(--border); }
.discussion-count { color: var(--accent); font-size: 11px; }
.best-comment { margin: 7px 0; padding-left: 9px; border-left: 2px solid var(--accent); color: var(--muted); font-size: 12px; line-height: 1.5; }
.best-label { color: var(--accent); font-weight: 700; text-transform: uppercase; font-size: 10px; letter-spacing: 0.04em; }
.best-author { color: var(--text); }
.selftext, .comment-body { overflow-wrap: anywhere; }
.comment-body { line-height: 1.4; }
.selftext p, .comment-body p { margin: 0 0 0.8em; }
.selftext p:last-child, .comment-body p:last-child { margin-bottom: 0; }
.selftext pre, .comment-body pre {
  margin: 0.7em 0;
  padding: 9px 11px;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--panel);
  font-size: 0.92em;
}
.selftext code, .comment-body code { font-family: inherit; }
.selftext blockquote, .comment-body blockquote {
  margin: 0.7em 0;
  padding-left: 11px;
  border-left: 2px solid var(--border);
  color: var(--muted);
}
.selftext ul, .selftext ol, .comment-body ul, .comment-body ol { margin: 0.7em 0; padding-left: 1.5em; }
.selftext a, .comment-body a { text-decoration: underline; text-underline-offset: 3px; }
.comment-meta .comment-star { margin-left: auto; }
mark.sift-highlight {
  padding: 0 1px;
  border-radius: 2px;
  background: color-mix(in srgb, var(--accent) 24%, transparent);
  color: inherit;
}
.highlight-action {
  position: fixed;
  z-index: 20;
  padding: 5px 9px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--panel);
  color: var(--text);
  font-size: 12px;
  box-shadow: 0 8px 24px -10px #000;
}
.highlight-action:hover { border-color: var(--accent); }
.external { overflow-wrap: anywhere; }

.post-media { margin: 16px 0 2px; }
.post-media img,
.post-media video {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 72vh;
  border-radius: 3px;
  background: #000;
}
.post-media img { border-radius: 12px; }
.post-media video { width: 100%; max-width: 900px; }

.comments { margin-top: 22px; }
.comment {
  position: relative;
  margin: 0;
  padding: 10px 0 10px 18px;
  border-left: 1px solid var(--border);
  border-left-color: color-mix(in srgb, var(--border) var(--comment-border, 100%), transparent);
}
.comment .comment-children { margin-left: 10px; }
.comment-toggle {
  position: absolute;
  left: -5px;
  top: 0;
  bottom: 0;
  width: 10px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
}
.comment-toggle:hover { background: var(--accent-soft); }
.comment-toggle:focus-visible { outline: 1px solid var(--accent); outline-offset: 0; }
.comment.collapsed > .comment-children { display: none; }
.comment.collapsed > .comment-main { opacity: 0.65; }
.comment.read > .comment-main .comment-body { display: none; }
.comment.read > .comment-main { opacity: 0.6; }
.comment.new { border-left-color: var(--accent); scroll-margin-top: 12px; }
.comment-toggle:hover { background: color-mix(in srgb, var(--accent) 16%, transparent); }
.comment.new > .comment-main { opacity: 1; }
.comment-body { margin-top: 4px; }

.empty, .more, .next { color: var(--muted); }
.empty { padding: 20px 0; }
.next { margin: 26px 0; font-size: 15px; }
.banner {
  margin: 0 0 22px;
  padding: 2px 0 2px 13px;
  border-left: 2px solid var(--accent);
  color: var(--text);
}
.error-page { padding: 38px 0; }
.error-page h1 { margin-bottom: 10px; }

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: baseline;
  margin-top: 34px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
}
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs .current { color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60ch; }
.breadcrumbs .sep { color: var(--border); }
.suggestions { margin-top: 24px; }
.suggestions h2 { margin: 0 0 6px; font-size: 1rem; font-weight: 800; color: var(--text); }
.suggestions ul { margin: 0; padding: 0; list-style: none; }
.suggestions li { padding: 8px 0; border-bottom: 1px solid var(--border); }
.suggestions li:last-child { border-bottom: 0; }
.suggestions li > a { color: var(--text); }
.suggestions li > a:hover { color: var(--accent); }
.mini-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 2px; color: var(--muted); font-size: 11px; }

.thread-actions { display: inline-flex; align-items: center; gap: 3px; margin-left: auto; }
.thread-action-bar { display: flex; justify-content: flex-end; margin: 7px 0 0; }
.thread-actions .save-btn { margin-top: 0; }
.starred-list { margin-top: 8px; }
.starred-item { padding: 16px 0; border-bottom: 1px solid var(--border); }
.starred-item:last-child { border-bottom: 0; }
.starred-meta, .starred-foot { display: flex; flex-wrap: wrap; gap: 10px; color: var(--muted); font-size: 12px; }
.starred-meta { margin-bottom: 6px; }
.star-kind { color: var(--accent); font-weight: 700; }
.starred-item h2 { margin: 4px 0 6px; font-size: 1rem; line-height: 1.4; }
.starred-item h2 a { color: var(--text); }
.starred-quote { margin: 4px 0 9px; padding: 2px 0 2px 13px; border-left: 2px solid var(--accent); color: var(--text); }
.starred-url { overflow-wrap: anywhere; }
.unstar { padding: 0; border: 0; background: none; color: var(--muted); font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
.unstar:hover { color: var(--accent); border: 0; }
.settings-source { margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--border); }
.settings-source h2 { margin: 0 0 12px; font-size: 1rem; font-weight: 800; }
.feed-weight { display: inline-flex; gap: 7px; align-items: center; color: var(--muted); font-size: 12px; }
.feed-weight input[type="number"] { width: 48px; padding: 4px 6px; border: 1px solid var(--border); border-radius: 4px; background: var(--panel); color: var(--text); font: inherit; }
.feed-weight button { padding: 4px 8px; font-size: 12px; }
.js .feed-weight button { display: none; }
.feed-save-state { color: var(--muted); font-size: 11px; }
.feed-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.settings-list { margin: 18px 0; padding: 0; list-style: none; }
.settings-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
}
.settings-list form { margin: 0; }
.settings-add { display: flex; gap: 8px; max-width: 520px; margin-top: 16px; }
.settings-notice { margin: 0 0 12px; color: var(--accent); font-size: 12px; }
.reading-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0;
}
.reading-summary div {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-left: 10px;
  border-left: 1px solid var(--border);
}
.reading-summary span, .reading-summary small { color: var(--muted); font-size: 11px; }
.reading-summary strong { font-size: 1.15rem; font-weight: 800; }
.reading-settings { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; }
.reading-settings label { display: flex; flex-direction: column; gap: 4px; color: var(--muted); font-size: 11px; }
.reading-settings input, .reading-settings select { width: 100%; }
.reading-settings input[type="number"] { width: 90px; }
.settings-list li > div:first-child { min-width: 0; }
.feed-status, .feed-auto { color: var(--muted); font-size: 11px; }
.rss-import { flex-direction: column; align-items: stretch; max-width: 640px; }
.rss-import label { color: var(--muted); font-size: 12px; }
.rss-import input[type="file"] { display: block; margin-top: 5px; color: var(--muted); font: inherit; }
.rss-import textarea {
  min-height: 88px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--panel);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  resize: vertical;
}

.logout-form { margin: 0; }
.logout {
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.logout:hover { color: var(--text); border: 0; }

@media (max-width: 640px) {
  body { font-size: 13.5px; line-height: 1.55; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  main { padding: 16px 12px 36px; }
  .post-head { grid-template-columns: 1fr; gap: 5px; }
  .post-top { justify-content: flex-start; text-align: left; }
  .post-times, .post-stats { justify-content: flex-start; }
  .reading-summary { grid-template-columns: 1fr; }
  .reading-settings { align-items: stretch; flex-direction: column; }
  .reading-settings input, .reading-settings select { width: 100%; }
  .post-meta-row { gap: 10px; }
  .post-actions { gap: 7px; }
  .comment { padding-left: 10px; }
  .comment .comment-children { margin-left: 3px; }
  .selftext { width: 100%; }
}

.profile-head { padding-bottom: 16px; }
.profile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  color: var(--muted);
  font-size: 12px;
}
.profile-meta .source-label { color: var(--accent); font-size: 10px; letter-spacing: 0.04em; text-transform: uppercase; }
.profile-about { margin: 13px 0 2px; max-width: 74ch; font-size: 14px; }
.profile-about a { color: var(--accent); }
.follow-form { margin-top: 14px; }
.follow-btn {
  padding: 5px 13px;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 12px;
  letter-spacing: 0.02em;
}
.follow-btn:hover { border-color: var(--accent); }
.follow-btn.following { border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); color: var(--accent); }

.help-dialog {
  width: min(520px, calc(100vw - 32px));
  padding: 22px 24px 20px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  font: inherit;
}
.help-dialog::backdrop { background: rgba(10, 8, 6, 0.72); }
.help-dialog h2 { margin: 0 0 4px; font-size: 1.05rem; font-weight: 800; }
.help-close {
  float: right;
  padding: 2px 7px;
  color: var(--muted);
  font-size: 11px;
}
.help-context { margin: 0 0 15px; color: var(--muted); font-size: 12px; }
.help-dialog dl {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 9px 14px;
  margin: 0;
}
.help-dialog dt { margin: 0; }
.help-dialog dd { margin: 0; color: var(--muted); }
.help-dialog kbd {
  display: inline-block;
  min-width: 25px;
  padding: 1px 6px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 12px;
  text-align: center;
}
.help-note { margin: 17px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.post.swiping-left { background: rgba(224, 164, 88, 0.09); }
.post.swiping-right { background: rgba(42, 157, 143, 0.09); }
.post.skipped .post-times,
.post.skipped .post-stats { display: none; }

/* Notes */
.notes-head { margin-bottom: 12px; }
.note-stream { max-width: 880px; }
.note-editor { position: relative; }
.note { display: grid; grid-template-columns: minmax(0, 1fr) 120px; gap: 18px; align-items: start; padding: 9px 0 12px; transition: background-color 120ms ease; }
.note:focus-within { background: rgba(255, 255, 255, 0.04); outline: 1px solid rgba(224, 164, 88, 0.08); outline-offset: -1px; border-radius: 8px; }
.note-main { min-width: 0; }
.note-rail { color: var(--muted); font-size: 12px; padding-top: 7px; text-align: right; }
.note-date { display: block; margin-bottom: 1px; color: var(--muted); font-size: 10px; line-height: 1.2; opacity: 0.78; }
.note-time { display: block; white-space: nowrap; }
.note-time time { display: block; }
button.note-time { width: 100%; padding: 0; border: 0; background: transparent; color: var(--muted); font: inherit; text-align: right; cursor: pointer; }
button.note-time:hover, button.note-time:focus-visible { color: var(--accent); }
.note-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; margin-top: 8px; color: var(--muted); font-size: 10.5px; }
.note-actions a { color: var(--accent); }
.note-editor { outline: 0; line-height: 1.36; }
.note-editor [contenteditable] { outline: 0; }
.note-editor p { margin: 0 0 0.55em; line-height: 1.36; }
.note-editor p:last-child { margin-bottom: 0; }
.note-editor h1, .note-editor h2, .note-editor h3, .note-editor h4, .note-editor h5, .note-editor h6 { margin: 0.75em 0 0.3em; font-weight: 800; line-height: 1.22; }
.note-editor h1 { font-size: 1.18rem; }
.note-editor h2 { font-size: 1.11rem; }
.note-editor h3 { font-size: 1.06rem; }
.note-editor h4, .note-editor h5, .note-editor h6 { font-size: 1.02rem; }
.note-editor blockquote { margin: 0.5em 0; padding-left: 12px; border-left: 2px solid var(--border); color: var(--muted); }
.note-editor pre { overflow-x: auto; padding: 9px 11px; background: rgba(0,0,0,0.18); border-radius: 8px; line-height: 1.35; }
.note-editor ul { list-style: none; padding-left: 0; margin: 0.45em 0; }
.note-editor li { margin: 0.16em 0; }
.note-editor ol { list-style: none; padding-left: 0; }
.note-editor table { border-collapse: collapse; margin: 0.6em 0; }
.note-editor th, .note-editor td { border: 1px solid var(--border); padding: 4px 8px; }
.note-editor img, .note-editor video { max-width: 100%; height: auto; border-radius: 10px; }
.note-editor audio { width: 100%; }
.note-editor figure { margin: 0.7em 0; }
.note-tags { display: inline-flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; }
.note-tag { color: var(--accent); opacity: 0.9; }
.note-action { max-width: 100%; padding: 1px 7px; border: 1px solid var(--border); border-radius: 999px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.note-action[data-status="done"] { color: var(--muted); text-decoration: line-through; }
.note-action[data-status="dropped"] { color: var(--muted); opacity: 0.7; }
.note-attachments { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.note-toolbar { opacity: 0; pointer-events: none; transition: opacity 120ms ease; }
.note:hover .note-toolbar, .note:focus-within .note-toolbar, .note-toolbar[open] { opacity: 1; pointer-events: auto; }
.note-toolbar summary { list-style: none; padding: 0 4px; color: var(--muted); cursor: pointer; }
.note-toolbar summary::-webkit-details-marker { display: none; }
.note-toolbar[open] summary, .note-toolbar summary:hover { color: var(--accent); }
.note-toolbar nav { display: flex; justify-content: flex-end; gap: 10px; padding-top: 3px; }
.note-save-state:empty { display: none; }
.note-save-state.bad { color: var(--danger, #d6826a); }
.note-collapsed-title { display: none; width: 100%; padding: 5px 0; border: 0; background: transparent; color: var(--text); font: inherit; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: text; }
.note.collapsed .note-editor, .note.collapsed .note-fallback { display: none; }
.note.collapsed .note-collapsed-title { display: block; }
.note-month { margin-top: 26px; }
.note-month-title, .archive-day-title { margin: 0 0 4px; color: var(--muted); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.note-slot { margin-top: 6px; }
.note-slot + .note-slot { margin-top: 16px; }
.note-older { margin: 0 0 14px; }
.note-older[hidden] { display: none; }
.note[hidden], .note-month[hidden], .note-slot[hidden] { display: none; }
.note.note-result-active { background: rgba(224, 164, 88, 0.07); outline: 1px solid rgba(224, 164, 88, 0.13); outline-offset: -1px; border-radius: 8px; }
.note-command { position: fixed; left: 32px; right: 32px; bottom: 14px; z-index: 6; width: auto; max-width: 880px; padding: 9px 13px 7px; border: 1px solid var(--border-strong, var(--border)); border-radius: 12px; background: rgba(26, 23, 20, 0.96); box-shadow: 0 12px 40px rgba(0, 0, 0, 0.38); backdrop-filter: blur(8px); }
.note-command:focus-within { border-color: rgba(224, 164, 88, 0.52); box-shadow: 0 0 0 1px rgba(224, 164, 88, 0.10), 0 12px 40px rgba(0, 0, 0, 0.38); }
.note-command-line { display: flex; align-items: center; gap: 9px; cursor: text; }
.note-command-icon { display: inline-flex; flex: none; color: var(--muted); }
.note-command-icon svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.note-command:focus-within .note-command-icon { color: var(--accent); }
.note-command-field { position: relative; display: flex; flex: 1; min-width: 0; }
.note-command .note-command-input { flex: 1; width: 100%; min-width: 0; padding: 5px 30px 5px 0; border: 0; border-radius: 0; background: transparent; color: var(--text); font: inherit; font-size: 1.06rem; outline: 0; }
.note-command .note-command-input::-webkit-search-cancel-button { display: none; }
.note-command-clear { display: none; position: absolute; top: 50%; right: 1px; transform: translateY(-50%); width: 22px; height: 22px; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.06); color: var(--muted); font-size: 15px; line-height: 1; cursor: pointer; }
.note-command.has-text .note-command-clear { display: inline-flex; }
.note-command-clear:hover, .note-command-clear:focus-visible { background: rgba(255, 255, 255, 0.13); color: var(--text); }
.note-command-submit { border: 1px solid var(--border); border-radius: 8px; background: transparent; color: var(--muted); font: inherit; font-size: 1.05rem; padding: 3px 9px; cursor: pointer; }
.note-command-submit:hover, .note-command-submit:focus-visible { color: var(--accent); border-color: var(--accent); }
.js .note-command-submit { display: none; }
.note-command-status { display: block; min-height: 15px; margin: 2px 0 0 25px; color: var(--muted); font-size: 11px; }
main[data-view="notes"] { padding-bottom: 150px; }
.note { scroll-margin-bottom: 150px; }
.note-bar-menu { bottom: auto; }
.note-bar-pop { position: fixed; z-index: 32; width: 260px; }
.note-fallback { margin-top: 8px; }
.note-fallback textarea { width: 100%; min-height: 120px; }
.js .note-fallback { display: none; }
.note-history { margin: 0; padding: 0; list-style: none; }
.note-history li { display: flex; flex-wrap: wrap; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); color: var(--muted); font-size: 13px; }
.note-history-message { color: var(--text); }
.note-history a { margin-left: auto; }
.rendered-note { padding: 8px 0 16px; }
.note-revision form { margin-top: 14px; }

/* Archive grouping */
.archive-list { margin-top: 12px; }
.archive-day { margin-top: 24px; }
.archive-day-title { margin-left: 0; }
.archive-slot + .archive-slot { margin-top: 14px; }
.read-archive { margin-top: 10px; }
.read-item { padding: 12px 0; border-bottom: 1px solid var(--border); }
.read-meta { display: flex; flex-wrap: wrap; gap: 10px; color: var(--muted); font-size: 12px; }
.read-item h2 { margin: 4px 0 5px; font-size: 1rem; line-height: 1.4; }
.read-item h2 a { color: var(--text); }

@media (max-width: 640px) {
  .note { grid-template-columns: minmax(0, 1fr) 82px; gap: 8px; }
  .note-rail { font-size: 11px; }
  .note-date { font-size: 9.5px; }
  .note-actions { font-size: 9.5px; }
  .note-command { left: 12px; right: 12px; }
  .note-older { margin-left: 0; }
  .note-links { margin-left: 0; }
}

/* Archive imports */
.archive-import { margin: 14px 0 22px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.archive-import h2 { margin: 0 0 4px; font-size: 0.95rem; }
.archive-import form { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 10px; }
.import-batches { margin: 14px 0 0; padding: 0; list-style: none; }
.import-batches li { display: flex; flex-wrap: wrap; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--border); color: var(--muted); font-size: 12px; }
.import-batches li span:first-child { color: var(--text); }
.import-batches form { margin-left: auto; }

/* Highlight note capture */
.highlight-note-pop { position: fixed; z-index: 30; width: min(340px, calc(100vw - 16px)); padding: 10px; border: 1px solid var(--border-strong, var(--border)); border-radius: 10px; background: var(--panel, var(--bg)); box-shadow: 0 12px 34px rgba(0,0,0,0.42); }
.highlight-note-pop textarea { width: 100%; min-height: 72px; resize: vertical; }
.highlight-note-pop textarea.invalid { border-color: var(--danger, #d6826a); }
.highlight-note-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 7px; }
.highlight-note-actions button { font-size: 12px; }
mark.sift-highlight.needs-note { border-bottom: 1px dashed var(--accent); cursor: help; }

.note-editor wordgard-editor { display: block; position: relative; z-index: 1; border: 0 !important; border-radius: 0; background: transparent !important; }
.note-editor wordgard-editor:focus-within { border: 0 !important; outline: 0 !important; box-shadow: none !important; }
.note-editor wg-scroller { overflow: visible; }
.note-editor wg-content { outline: 0; padding: 0; }
.note-editor wg-cursor-layer { display: block; pointer-events: none; z-index: 2; animation: none !important; }
.note-editor wg-cursor { display: none !important; background: var(--accent) !important; box-shadow: 0 0 0 1px var(--accent); animation: none !important; opacity: 1 !important; }
.note-editor wordgard-editor:focus-within wg-cursor { display: block !important; }
.note-editor .wg-cursor-h { display: none !important; }
.note-editor wg-caret-line { display: none; position: absolute; pointer-events: none; border-radius: 3px; background: rgba(224, 164, 88, 0.055); }
.note-editor wordgard-editor:focus-within wg-caret-line { display: block; }
.note-editor wg-content { caret-color: transparent; }
.note-editor sift-check { display: inline-flex; align-items: center; justify-content: center; width: 0.95em; height: 0.95em; margin-right: 0.4em; border: 1px solid var(--muted); border-radius: 3px; vertical-align: -0.08em; color: var(--bg); background: transparent; cursor: pointer; }
.note-editor sift-check[data-checked="1"] { border-color: var(--accent); background: var(--accent); }
.note-editor sift-check[data-checked="1"]::after { content: "✓"; font-size: 0.72em; line-height: 1; font-weight: 800; }

/* Slash metadata commands */
.note-command-menu { position: fixed; z-index: 31; width: 210px; max-height: 280px; overflow-y: auto; padding: 5px; border: 1px solid var(--border-strong, var(--border)); border-radius: 10px; background: var(--panel, var(--bg)); box-shadow: 0 12px 34px rgba(0,0,0,0.42); }
.note-command-menu button { display: block; width: 100%; border: 0; background: transparent; color: var(--muted); text-align: left; font: inherit; font-size: 12px; padding: 4px 7px; border-radius: 6px; }
.note-command-menu button.active, .note-command-menu button:hover { color: var(--text); background: rgba(224,164,88,0.12); }
.note-command-pop label { display: block; color: var(--muted); font-size: 11px; margin-bottom: 4px; }
.note-command-pop input { width: 100%; }
.note-meta-chips { display: inline-flex; flex-wrap: wrap; gap: 5px; }

/* Memory search */
.memory-search { display: flex; gap: 8px; margin-top: 8px; max-width: 680px; }
.memory-search input { flex: 1; }
.memory-section { margin-top: 24px; }
.memory-section h2 { margin: 0 0 6px; color: var(--muted); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; }
.memory-hit { padding: 10px 0; border-bottom: 1px solid var(--border); }
.memory-hit a { color: var(--text); font-weight: 650; }
.memory-hit p { margin: 4px 0; color: var(--muted); line-height: 1.45; }
.memory-kind { display: inline-block; margin-right: 7px; color: var(--accent); font-size: 11px; text-transform: lowercase; }
.memory-meta { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }

.clone-command { white-space: pre-wrap; overflow-wrap: anywhere; padding: 12px; border: 1px solid var(--border); border-radius: 10px; background: rgba(0,0,0,0.16); }
.clone-url code { overflow-wrap: anywhere; }

/* Local-first v2 notes surface */
main[data-view="v2"] { max-width: none; }
.v2-shell { display: grid; grid-template-columns: calc(var(--v2-left, 50%) - 12px) 12px minmax(0, 1fr); align-items: start; max-width: none; padding-bottom: 150px; }
.v2-timeline { min-width: 0; max-height: calc(100dvh - 140px); overflow-y: auto; overscroll-behavior: contain; padding-right: 14px; padding-bottom: 80px; scrollbar-width: thin; }
.v2-splitter { position: relative; align-self: stretch; min-height: 100%; cursor: col-resize; touch-action: none; outline: 0; }
.v2-splitter::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; background: var(--border); }
.v2-splitter:hover::before, .v2-splitter:focus-visible::before { width: 2px; background: var(--accent); }
body.v2-resizing { user-select: none; cursor: col-resize; }
.v2-list { list-style: none; margin: 0; padding: 0; }
.v2-list li { margin: 0; }
.v2-row { display: block; padding: 7px 8px; border-radius: 0; color: var(--text); text-decoration: none; }
.v2-list li + li { border-top: 1px solid rgba(255, 255, 255, 0.055); }
.v2-row[hidden], .v2-list[hidden], .v2-day[hidden], .v2-bar[hidden], .v2-bar-views[hidden], .v2-bar-actions[hidden] { display: none; }
.v2-row:hover, .v2-row:focus-visible { background: rgba(224, 164, 88, 0.06); color: var(--accent); }
.v2-row.active { background: rgba(224, 164, 88, 0.055); }
.v2-row-title { display: block; overflow-wrap: anywhere; line-height: 1.32; }
.v2-row-meta { display: block; margin-top: 2px; overflow: hidden; color: var(--muted); font-size: 9.5px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.v2-row-item { position: relative; }
.v2-row-item.has-star .v2-row-meta { padding-left: 20px; }
.v2-row-star-form { position: absolute; left: 6px; bottom: 3px; z-index: 1; margin: 0; }
.v2-row-star-toggle { width: auto; min-width: 22px; height: 18px; padding: 0; border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 12px; line-height: 1; cursor: pointer; }
.v2-row-star-toggle:hover, .v2-row-star-toggle.starred { color: var(--accent); }
.v2-row, .v2-panel-row { border-left: 2px solid transparent; }
.v2-row.is-mine, .v2-panel-row.is-mine { border-left-width: 4px; border-left-color: var(--source-mine); padding-left: 10px; }
.v2-row.source-reddit, .v2-panel-row.source-reddit { border-left-color: var(--source-reddit); }
.v2-row.source-hn, .v2-panel-row.source-hn { border-left-color: var(--source-hn); }
.v2-row.source-tildes, .v2-panel-row.source-tildes { border-left-color: var(--source-tildes); }
.v2-row.source-bubbles, .v2-panel-row.source-bubbles { border-left-color: var(--source-bubbles); }
.v2-row.source-rss, .v2-panel-row.source-rss { border-left-color: var(--source-rss); }
.v2-row.source-gemini, .v2-panel-row.source-gemini { border-left-color: var(--source-gemini); }
.v2-row.source-youtube, .v2-panel-row.source-youtube { border-left-color: var(--source-youtube); }
.v2-row.source-import, .v2-panel-row.source-import { border-left-color: var(--source-import); }
.v2-progress { color: var(--accent); }
.v2-progress[hidden] { display: none; }
.v2-progress:not([hidden])::after { content: " · "; }
.v2-row[data-v2-progress="done"] .v2-progress { color: var(--muted); }
.v2-row[data-v2-progress="wip"] .v2-progress { color: var(--accent); }
.v2-row[data-v2-progress="wip"] .v2-row-title { font-weight: 650; }
.v2-row.size-small { padding-top: 5px; padding-bottom: 5px; }
.v2-row.size-small .v2-row-title { font-size: 11.5px; font-weight: 500; }
.v2-row.size-small .v2-row-meta { font-size: 9px; }
.v2-row.size-large { padding-top: 12px; padding-bottom: 12px; }
.v2-row.size-medium .v2-row-title { font-weight: 600; }
.v2-row.size-large .v2-row-title { font-size: 15px; font-weight: 800; line-height: 1.28; }
.v2-row.size-large .v2-row-meta { font-size: 10px; }
.v2-row[data-v2-progress="wip"] .v2-row-title { color: var(--text); }
.v2-row[data-v2-progress="done"] .v2-row-title { color: var(--muted); }
.v2-row.done { opacity: 0.58; }
.v2-row[data-v2-read="1"]:not([data-v2-starred="1"]):not([data-v2-followed="1"]):not(.is-mine) { padding-top: 5px; padding-bottom: 5px; }
.v2-row[data-v2-read="1"]:not([data-v2-starred="1"]):not([data-v2-followed="1"]):not(.is-mine) .v2-row-title { overflow: hidden; overflow-wrap: normal; text-overflow: ellipsis; white-space: nowrap; }
.v2-row[data-v2-read="1"]:not([data-v2-starred="1"]):not([data-v2-followed="1"]):not(.is-mine) .v2-row-meta { display: none; }
.v2-row-item.has-star .v2-row[data-v2-read="1"]:not([data-v2-starred="1"]):not([data-v2-followed="1"]):not(.is-mine) .v2-row-title { padding-left: 16px; }
.v2-row.is-deleted { padding-top: 3px; padding-bottom: 3px; opacity: 0.48; }
.v2-row.is-deleted .v2-row-title { font-size: 10.5px; font-weight: 400; line-height: 1.25; color: var(--muted); }
.v2-row.is-deleted .v2-row-meta { font-size: 8.5px; }
.v2-row.is-deleted:hover, .v2-row.is-deleted:focus-visible { opacity: 0.78; }
.v2-row-action { display: inline-block; margin-right: 7px; padding: 1px 5px; border: 1px solid rgba(224, 164, 88, 0.28); border-radius: 4px; color: var(--accent); font-size: 9.5px; letter-spacing: 0.04em; }
.v2-row-action.done { border-color: var(--border); color: var(--muted); }
.v2-row-conflict { color: var(--danger, #d6826a); font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; }
.v2-day + .v2-day { margin-top: 20px; }
.v2-day-label { margin: 0 0 1px; color: var(--muted); font-size: 9px; font-weight: 650; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.72; }
.v2-slot-label { margin: 9px 8px 1px; color: var(--muted); font-size: 8.5px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.55; }
@property --v2-pull-progress { syntax: "<number>"; inherits: true; initial-value: 0; }
@property --v2-pull-prev { syntax: "<length>"; inherits: true; initial-value: 0px; }
@property --v2-pull-next { syntax: "<length>"; inherits: true; initial-value: 0px; }
.v2-detail-frame { position: relative; min-width: 0; max-width: 100%; max-height: calc(100dvh - 140px); overflow: clip; view-transition-name: v2-detail; --v2-pull-prev: 0px; --v2-pull-next: 0px; --v2-peek-height: 120px; --v2-detail-inset-left: 14px; --v2-detail-inset-right: 0px; }
.v2-detail { min-width: 0; max-width: 100%; max-height: calc(100dvh - 140px); overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; padding: 0 0 80px 14px; scrollbar-width: thin; outline: 0; touch-action: pan-y; }
#v2-detail-body { min-width: 0; max-width: 100%; transform: translate3d(0, calc(var(--v2-pull-prev, 0px) - var(--v2-pull-next, 0px)), 0); }
.v2-detail-frame.v2-elastic-snap { transition: --v2-pull-prev 180ms cubic-bezier(0.22, 0.61, 0.36, 1), --v2-pull-next 180ms cubic-bezier(0.22, 0.61, 0.36, 1), --v2-pull-progress 180ms cubic-bezier(0.22, 0.61, 0.36, 1); }
.v2-detail-frame.v2-elastic-pulling #v2-detail-body,
.v2-detail-frame.v2-elastic-pulling .v2-detail-peek { will-change: transform; }
.v2-detail-peek { position: absolute; left: var(--v2-detail-inset-left); right: var(--v2-detail-inset-right); z-index: 3; height: var(--v2-peek-height); overflow: hidden; background: transparent; pointer-events: none; }
.v2-detail-peek-prev { top: 0; transform: translate3d(0, calc(var(--v2-pull-prev, 0px) - var(--v2-peek-height)), 0); }
.v2-detail-peek-next { bottom: 0; transform: translate3d(0, calc(var(--v2-peek-height) - var(--v2-pull-next, 0px)), 0); }
.v2-detail-frame::before, .v2-detail-frame::after { position: absolute; left: 50%; z-index: 4; width: 24px; height: 24px; border-radius: 50%; background: conic-gradient(rgba(224, 164, 88, 0.86) calc(var(--v2-pull-progress, 0) * 1turn), rgba(255, 255, 255, 0.09) 0); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px)); mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px)); opacity: 0; pointer-events: none; content: ""; transform: translateX(-50%); }
.v2-detail-frame::before { top: calc(var(--v2-pull-prev, 0px) / 2 - 12px); }
.v2-detail-frame::after { bottom: calc(var(--v2-pull-next, 0px) / 2 - 12px); }
.v2-detail-frame[data-v2-pull="prev"]::before,
.v2-detail-frame[data-v2-pull="next"]::after { opacity: calc(var(--v2-pull-progress, 0) * 0.95); }
.v2-detail-commit { position: absolute; top: 0; bottom: 0; left: var(--v2-detail-inset-left); right: var(--v2-detail-inset-right); z-index: 6; overflow: hidden; pointer-events: none; }
.v2-detail-commit-page { position: absolute; left: 0; right: 0; background: var(--bg); will-change: transform; }
.v2-detail-commit-anim { transition: transform 300ms cubic-bezier(0.2, 0.9, 0.25, 1); }
.v2-detail-frame.v2-detail-committing::before, .v2-detail-frame.v2-detail-committing::after { opacity: 0; }
::view-transition-old(root), ::view-transition-new(root) { animation: none; }
::view-transition-old(v2-detail) { animation: v2-detail-out 180ms cubic-bezier(0.22, 0.61, 0.36, 1) both; }
::view-transition-new(v2-detail) { animation: v2-detail-in 220ms cubic-bezier(0.22, 0.61, 0.36, 1) both; }
html[data-v2-page-dir="next"]::view-transition-old(v2-detail) { animation-name: v2-detail-out-next; }
html[data-v2-page-dir="next"]::view-transition-new(v2-detail) { animation-name: v2-detail-in-next; }
html[data-v2-page-dir="prev"]::view-transition-old(v2-detail) { animation-name: v2-detail-out-prev; }
html[data-v2-page-dir="prev"]::view-transition-new(v2-detail) { animation-name: v2-detail-in-prev; }
@keyframes v2-detail-out { to { opacity: 0; } }
@keyframes v2-detail-in { from { opacity: 0; } }
@keyframes v2-detail-out-next { to { opacity: 0; transform: translateY(-30px); } }
@keyframes v2-detail-in-next { from { opacity: 0; transform: translateY(30px); } }
@keyframes v2-detail-out-prev { to { opacity: 0; transform: translateY(30px); } }
@keyframes v2-detail-in-prev { from { opacity: 0; transform: translateY(-30px); } }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(v2-detail), ::view-transition-new(v2-detail) { animation: none; }
}
.v2-detail pre { max-width: 100%; white-space: pre-wrap; overflow-wrap: anywhere; }
.v2-detail table { width: 100%; max-width: 100%; table-layout: fixed; }
.v2-detail td, .v2-detail th { overflow-wrap: anywhere; }
.v2-detail iframe { max-width: 100%; }
.v2-story-body, .v2-linked-article .v2-story-body, .v2-comment-body { overflow-wrap: anywhere; }
.v2-timeline:focus-visible, .v2-detail:focus-visible { outline: 0; background: rgba(255, 255, 255, 0.012); }
.v2-note-head { display: flex; align-items: center; gap: 12px; min-height: 20px; margin-bottom: 10px; }
.v2-note-head form { margin-left: auto; }
.v2-note-head .v2-save-state { margin-left: 0; }
.v2-muted { color: var(--muted); font-size: 11px; }
.v2-save-state { color: var(--muted); font-size: 11px; margin-left: auto; }
.v2-live { display: flex; align-items: baseline; gap: 10px; margin: 0 0 12px; padding: 8px 10px; border-left: 2px solid var(--accent); background: rgba(224, 164, 88, 0.055); color: var(--text); font-size: 11.5px; line-height: 1.45; }
.v2-live[hidden] { display: none; }
.v2-live a { color: var(--accent); }
.v2-action { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; padding: 8px 10px; border-left: 2px solid var(--accent); background: rgba(224, 164, 88, 0.045); font-size: 12px; }
.v2-action.done { border-left-color: var(--border); opacity: 0.62; }
.v2-action-verb { color: var(--accent); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; }
.v2-action-status { color: var(--muted); font-size: 10px; letter-spacing: 0.05em; text-transform: uppercase; }
.v2-action-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-left: auto; }
.v2-action-due { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.05em; }
.v2-action-due input { width: 138px; padding: 2px 4px; border: 1px solid var(--border); border-radius: 4px; background: transparent; color: var(--text); font: inherit; font-size: 10px; }
.v2-action-flag { display: inline-flex; align-items: center; gap: 2px; color: var(--muted); font-size: 10px; }
.v2-action-flag input { accent-color: var(--accent); }
.v2-action-controls button, .v2-action-empty button { padding: 3px 7px; border: 1px solid var(--border); border-radius: 5px; background: transparent; color: var(--muted); font: inherit; font-size: 10.5px; cursor: pointer; }
.v2-action-controls button:hover, .v2-action-empty button:hover { border-color: var(--accent); color: var(--accent); }
.v2-action-empty select { padding: 4px 6px; border: 1px solid var(--border); border-radius: 6px; background: transparent; color: var(--muted); font: inherit; font-size: 11px; }
.v2-editor { min-height: 45vh; }
.v2-new { grid-column: 1 / -1; min-width: 0; margin: 18px 0 0; padding-top: 12px; border-top: 1px solid var(--border); }
.v2-new h2 { display: flex; align-items: baseline; gap: 12px; margin: 0 0 5px; color: var(--muted); font-size: 10px; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; }
.v2-new h2 form { margin-left: auto; }
.v2-new h2 button { padding: 3px 7px; border: 1px solid var(--border); border-radius: 5px; background: transparent; color: var(--muted); font: inherit; font-size: 10px; cursor: pointer; }
.v2-new h2 button:hover { border-color: var(--accent); color: var(--accent); }
.v2-followed { color: var(--accent); }
.v2-panel-close { color: var(--muted); font-size: 9.5px; letter-spacing: 0.06em; text-transform: uppercase; }
.v2-panel-close:hover { color: var(--accent); }
.v2-new ol, .v2-next ol { list-style: none; margin: 0; padding: 0; }
.v2-panel-row { display: flex; align-items: flex-start; gap: 12px; padding: 8px 0 8px 9px; border-bottom: 1px solid rgba(255,255,255,0.04); }
.v2-panel-row.size-small { padding-block: 5px; }
.v2-panel-row.size-large { padding-block: 12px; }
.v2-panel-main { display: grid; gap: 2px; min-width: 0; flex: 1; }
.v2-panel-title { min-width: 0; color: var(--text); text-decoration: none; font-size: 12.5px; line-height: 1.32; overflow-wrap: anywhere; }
.v2-panel-row.size-small .v2-panel-title { font-size: 11.5px; font-weight: 500; }
.v2-panel-row.read:not(.starred):not(.followed) .v2-panel-meta { display: none; }
.v2-panel-row.read:not(.starred):not(.followed) .v2-panel-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v2-panel-row.size-medium .v2-panel-title { font-weight: 600; }
.v2-panel-row.size-large .v2-panel-title { font-size: 15px; font-weight: 800; line-height: 1.28; }
.v2-panel-title:hover { color: var(--accent); }
.v2-panel-meta { color: var(--muted); font-size: 9.5px; line-height: 1.35; overflow-wrap: anywhere; }
.v2-panel-row.size-large .v2-panel-meta { font-size: 10px; }
.v2-panel-action { color: var(--accent); font-size: 9px; letter-spacing: 0.05em; text-transform: uppercase; }
.v2-panel-actions { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.v2-panel-actions button { padding: 2px 6px; border: 1px solid var(--border); border-radius: 5px; background: transparent; color: var(--muted); font: inherit; font-size: 9.5px; cursor: pointer; }
.v2-panel-actions button:hover { border-color: var(--accent); color: var(--accent); }
.v2-next { grid-column: 1 / -1; min-width: 0; margin: 18px 0 0; padding-top: 12px; border-top: 1px solid var(--border); }
.v2-next h2 { display: flex; align-items: baseline; gap: 12px; margin: 0 0 5px; color: var(--muted); font-size: 10px; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; }
.v2-next h2 .v2-panel-close { margin-left: auto; }
.v2-next ol { list-style: none; margin: 0; padding: 0; }
.v2-next li { margin: 0; }
.v2-next-due { margin-left: auto; color: var(--muted); font-size: 10px; white-space: nowrap; }
.v2-next-flag { color: var(--accent); font-size: 9px; font-weight: 700; }
.v2-fallback textarea { width: 100%; min-height: 240px; padding: 10px; border: 1px solid var(--border); border-radius: 8px; background: transparent; color: var(--text); font: inherit; line-height: 1.45; }
.v2-fallback button, .v2-history button, .v2-conflict-form button, .v2-delete { padding: 4px 9px; border: 1px solid var(--border); border-radius: 6px; background: transparent; color: var(--muted); font: inherit; font-size: 11px; cursor: pointer; }
.v2-fallback button:hover, .v2-history button:hover, .v2-conflict-form button:hover, .v2-delete:hover { border-color: var(--accent); color: var(--accent); }
.v2-note-foot { margin-top: 24px; }
.v2-delete { color: var(--danger, #d6826a); }
.v2-conflict h2 { margin: 0 0 4px; }
.v2-conflict-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0; }
.v2-conflict-grid h3 { margin: 0 0 6px; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 0.07em; }
.v2-conflict-grid pre { max-height: 38vh; overflow: auto; margin: 0; padding: 10px; border: 1px solid var(--border); border-radius: 8px; white-space: pre-wrap; word-break: break-word; font: inherit; font-size: 12px; line-height: 1.4; }
.v2-conflict-form label { display: block; color: var(--muted); font-size: 11px; }
.v2-conflict-form textarea { width: 100%; margin: 6px 0 10px; padding: 10px; border: 1px solid var(--border); border-radius: 8px; background: transparent; color: var(--text); font: inherit; line-height: 1.4; }
.v2-history { list-style: none; margin: 14px 0; padding: 0; max-width: 720px; }
.v2-history li { display: flex; align-items: baseline; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.v2-history-time { min-width: 140px; color: var(--text); font-size: 12px; }
.v2-history-device { color: var(--muted); font-size: 11px; }
.v2-history form { margin-left: auto; }
.v2-current { margin-left: auto; color: var(--accent); font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; }
.v2-empty, .v2-empty-detail { color: var(--muted); font-size: 12px; }
.v2-command { max-width: none; }
.v2-bar { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; margin-top: 6px; padding-top: 6px; border-top: 1px solid rgba(255,255,255,0.06); color: var(--muted); font-size: 10.5px; }
.v2-bar[hidden], .v2-bar-views[hidden], .v2-bar-actions[hidden] { display: none; }
.v2-bar-views, .v2-bar-actions { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; min-width: 0; }
.v2-bar a { color: var(--muted); text-decoration: none; }
.v2-bar a:hover, .v2-bar a.active { color: var(--accent); }
.v2-bar-filter, .v2-bar-label { color: var(--muted); font-size: 9.5px; letter-spacing: 0.06em; text-transform: uppercase; }
.v2-bar-label { margin-right: 1px; }
.v2-bar-filters { position: relative; display: inline-block; }
.v2-bar-filters summary { color: var(--muted); cursor: pointer; list-style: none; }
.v2-bar-filters summary::-webkit-details-marker { display: none; }
.v2-bar-filters summary:hover, .v2-bar-filters summary.active, .v2-bar-filters[open] summary { color: var(--accent); }
.v2-bar-filter-list { position: absolute; bottom: calc(100% + 6px); left: 0; z-index: 4; display: grid; gap: 5px; min-width: 130px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 7px; background: var(--bg); box-shadow: 0 8px 22px rgba(0,0,0,0.28); }
.v2-kind-filter { margin: 0; }
.v2-kind-filter > summary, .v2-kind-web > summary { color: var(--muted); cursor: pointer; list-style: none; }
.v2-kind-filter > summary::-webkit-details-marker, .v2-kind-web > summary::-webkit-details-marker { display: none; }
.v2-kind-filter > summary:hover, .v2-kind-filter > summary.active, .v2-kind-web > summary:hover, .v2-kind-web > summary.active { color: var(--accent); }
.v2-kind-list, .v2-kind-sources { display: grid; gap: 4px; margin: 4px 0 3px 5px; padding-left: 9px; border-left: 1px solid var(--border); }
.v2-kind-web { margin: 0; }
.v2-kind-list a, .v2-kind-sources a { color: var(--muted); text-decoration: none; }
.v2-kind-list a:hover, .v2-kind-sources a:hover, .v2-kind-list a.active, .v2-kind-sources a.active { color: var(--accent); }
.v2-bar-filter-list a { white-space: nowrap; }
.v2-action-choice { padding: 0; border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 10.5px; cursor: pointer; }
.v2-action-choice:hover, .v2-action-choice.active { color: var(--accent); }
.v2-story-target { padding: 0; border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 10.5px; cursor: pointer; }
.v2-story-target:hover, .v2-story-target.active { color: var(--accent); }
.v2-bar-settings { margin-left: auto; color: var(--muted); font-size: 9.5px; letter-spacing: 0.06em; text-transform: uppercase; }

@media (max-width: 760px) {
  .v2-shell { display: block; }
  .v2-timeline { border-bottom: 1px solid var(--border); padding-right: 0; padding-bottom: 12px; margin-bottom: 16px; max-height: none; overflow: visible; }
  .v2-splitter { display: none; }
  .v2-detail { padding: 0; max-height: none; overflow: visible; }
  .v2-conflict-grid { grid-template-columns: 1fr; }
  .v2-history-time { min-width: 92px; }
  .v2-command { left: 12px; right: 12px; }
  .v2-bar, .v2-bar-views, .v2-bar-actions { gap: 7px; font-size: 10px; }
  .v2-bar-filter { width: 100%; }
  .v2-bar-filter-list { bottom: auto; top: calc(100% + 6px); }
  .v2-bar-settings { margin-left: 0; }
  .v2-action { flex-wrap: wrap; }
  .v2-action-controls { margin-left: 0; }
  .v2-action-due input { width: 118px; }
  .v2-new { margin-left: 0; margin-right: 0; }
  .v2-story { grid-template-columns: minmax(0, 1fr); }
  .v2-next { margin-left: 0; margin-right: 0; }
  .v2-next-due { display: none; }
}

/* Local-first settings */
.v2-settings-nav { display: flex; flex-wrap: wrap; align-items: baseline; gap: 14px; max-width: none; margin: 0 0 20px; padding-bottom: 9px; border-bottom: 1px solid var(--border); font-size: 11px; }
.v2-settings-nav a { color: var(--muted); }
.v2-settings-nav a:hover, .v2-settings-nav a.active { color: var(--accent); }
.v2-settings-title { margin-left: auto; color: var(--muted); font-size: 9.5px; letter-spacing: 0.08em; text-transform: uppercase; }

/* Local-first sync pairing */
.v2-sync { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; max-width: none; padding-bottom: 120px; }
.v2-sync-offline { display: block; max-width: 520px; padding-bottom: 0; margin-top: 18px; }
.v2-sync-card { min-width: 0; }
.v2-sync-card h2 { margin: 22px 0 8px; font-size: 13px; font-weight: 650; letter-spacing: 0.02em; }
.v2-sync-card h2:first-child { margin-top: 0; }
.v2-sync-facts { display: grid; grid-template-columns: 118px minmax(0, 1fr); gap: 6px 12px; margin: 0 0 16px; font-size: 12px; }
.v2-sync-facts dt { color: var(--muted); font-size: 10.5px; letter-spacing: 0.05em; text-transform: uppercase; padding-top: 2px; }
.v2-sync-facts dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.v2-sync-facts code, .v2-sync-warning code { font-size: 11px; }
.v2-sync-label { display: block; margin: 10px 0 5px; color: var(--muted); font-size: 10.5px; letter-spacing: 0.05em; text-transform: uppercase; }
.v2-sync-code { width: 100%; min-height: 82px; padding: 9px; border: 1px solid var(--border); border-radius: 8px; background: transparent; color: var(--muted); font: inherit; font-size: 10.5px; line-height: 1.4; resize: vertical; overflow-wrap: anywhere; }
.v2-sync-qr { display: block; width: 220px; height: 220px; margin: 14px 0 6px; padding: 10px; border-radius: 10px; background: #fff; image-rendering: pixelated; }
.v2-sync-backup { display: inline-block; color: var(--accent); font-size: 12px; }
.v2-sync-peer-health ul { list-style: none; margin: 0 0 14px; padding: 0; }
.v2-sync-peer-health li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 10px; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 11px; color: var(--muted); }
.v2-sync-peer-health code { grid-column: 1 / -1; overflow-wrap: anywhere; color: var(--text); font-size: 10.5px; }
.v2-sync-state { color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; font-size: 9.5px; }
.v2-sync-state.on { color: var(--accent); }
.v2-sync-conflict { color: var(--danger, #d6826a); }
.v2-sync-warning { margin: 0 0 14px; padding: 9px 11px; border-left: 2px solid var(--accent); color: var(--text); font-size: 11.5px; line-height: 1.45; background: rgba(224,164,88,0.055); }
.v2-sync-notice { border-color: var(--accent); }
.v2-sync-form { display: grid; gap: 7px; margin: 0 0 14px; }
.v2-sync-form label { color: var(--muted); font-size: 10.5px; letter-spacing: 0.05em; text-transform: uppercase; }
.v2-sync-form textarea, .v2-sync-form input { width: 100%; padding: 8px 9px; border: 1px solid var(--border); border-radius: 7px; background: transparent; color: var(--text); font: inherit; font-size: 12px; }
.v2-sync-form textarea { min-height: 86px; resize: vertical; }
.v2-sync-form button { justify-self: start; margin-top: 2px; }
@media (max-width: 760px) {
  .v2-sync { display: block; }
  .v2-sync-card + .v2-sync-card { margin-top: 26px; }
  .v2-sync-qr { width: 190px; height: 190px; }
}

/* V2 story detail */
.v2-story-page { max-width: 820px; margin: 0; padding: 8px 12px 90px; }
.v2-story-pane { min-width: 0; padding-bottom: 90px; }
.v2-story-pane-heading { min-width: 0; }
.v2-story-pane h2 { margin: 0 0 6px; font-size: 1rem; line-height: 1.3; font-weight: 800; overflow-wrap: anywhere; }
.v2-story-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 14px; }
.v2-story-byline { display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 10.5px; }
.v2-story-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.v2-story-actions > form, .v2-story-actions > .v2-story-note { flex: 0 0 auto; }
.v2-story-actions button { white-space: nowrap; }
.v2-story-star, .v2-story-follow { margin: 0; }
.v2-story-star button, .v2-story-follow button, .v2-story-queue button, .v2-story-note, .v2-story-links a, .v2-story-links form button { padding: 3px 7px; border: 1px solid var(--border); border-radius: 5px; background: transparent; color: var(--muted); font: inherit; font-size: 10.5px; text-decoration: none; cursor: pointer; }
.v2-story-star button:hover, .v2-story-follow button:hover, .v2-story-note:hover, .v2-story-links a:hover, .v2-story-links form button:hover { border-color: var(--accent); color: var(--accent); }
.v2-story-star-toggle { min-width: 28px; font-size: 13px !important; line-height: 1.1; }
.v2-story-star-toggle.starred { color: var(--accent) !important; }
.v2-new-comments { display: inline-block; padding: 1px 5px; border: 1px solid rgba(224, 164, 88, 0.32); border-radius: 999px; color: var(--accent); font-size: 8.5px; font-weight: 650; letter-spacing: 0.04em; text-transform: uppercase; vertical-align: 1px; white-space: nowrap; }
.v2-debug-panel { margin: 22px 0 0; border-top: 1px dashed rgba(255, 255, 255, 0.08); color: var(--muted); font-size: 10px; line-height: 1.45; }
.v2-debug-panel > summary { padding: 8px 0; cursor: pointer; color: var(--muted); font-size: 9.5px; letter-spacing: 0.08em; text-transform: uppercase; }
.v2-debug-panel[open] > summary { color: var(--accent); }
.v2-debug-group { padding: 10px 0; border-top: 1px solid rgba(255, 255, 255, 0.055); }
.v2-debug-panel > summary + .v2-debug-group { border-top: 0; }
.v2-debug-group h3 { margin: 0 0 6px; color: var(--muted); font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.v2-debug-group h3 span { font-weight: 400; letter-spacing: 0; text-transform: none; }
.v2-debug-group p { margin: 5px 0 0; }
.v2-debug-panel .v2-archive-bundle { margin: 0; border-top: 0; padding-top: 0; }
.v2-selection-pop[hidden] { display: none; }
.v2-selection-pop { position: fixed; z-index: 32; display: grid; gap: 3px; padding: 4px; border: 1px solid var(--border-strong, var(--border)); border-radius: 8px; background: rgba(26, 23, 20, 0.97); box-shadow: 0 10px 28px rgba(0,0,0,0.38); }
.v2-selection-pop button { padding: 3px 7px; border: 0; border-radius: 5px; background: transparent; color: var(--muted); font: inherit; font-size: 9.5px; text-align: right; cursor: pointer; }
.v2-selection-pop button:hover, .v2-selection-pop button:focus-visible { background: rgba(224, 164, 88, 0.09); color: var(--accent); }
.v2-follow-offers { display: flex; flex-direction: column; gap: 4px; margin: 8px 0 12px; font-size: 10.5px; color: var(--muted); }
.v2-follow-offers form { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.v2-follow-offers button { border: 1px solid var(--line); background: transparent; color: var(--accent); padding: 2px 7px; font: inherit; cursor: pointer; }
.v2-story-url { margin: 5px 0 0; font-size: 10.5px; overflow-wrap: anywhere; }
.v2-story-url a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.v2-discussions { margin: 12px 0; color: var(--muted); font-size: 10.5px; }
.v2-discussions span { color: var(--muted); font-size: 9px; letter-spacing: 0.06em; text-transform: uppercase; }
.v2-discussions a { color: var(--accent); }
.v2-story-media { margin: 18px 0; max-width: 100%; }
.v2-story-media img, .v2-story-media video { display: block; width: auto; max-width: 100%; height: auto; margin: 0; border-radius: clamp(3px, 8%, 12px); }
.v2-linked-article { margin: 18px 0; border-top: 1px solid var(--border); padding-top: 10px; }
.v2-linked-article > summary { color: var(--muted); cursor: pointer; font-size: 10px; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; }
.v2-linked-article > summary:hover, .v2-linked-article[open] > summary { color: var(--accent); }
.v2-linked-article > summary span { font-weight: 400; text-transform: none; letter-spacing: 0; }
.v2-linked-article .v2-story-body { margin-bottom: 0; }
.v2-story-body { margin: 18px 0; line-height: 1.55; }
.v2-story-body p { margin: 0 0 12px; }
.v2-story-body img, .v2-linked-article img, .v2-comment-body img { display: block; max-width: 100%; height: auto; margin-left: 0; margin-right: 0; border-radius: clamp(3px, 8%, 12px); }
.v2-story-body video, .v2-linked-article video, .v2-comment-body video { display: block; max-width: 100%; height: auto; margin-left: 0; margin-right: 0; }
.v2-linked-article img { max-height: 70vh; object-fit: contain; }
.v2-story-body figure, .v2-linked-article figure, .v2-comment-body figure { max-width: 100%; margin-left: 0; margin-right: 0; }
.v2-story-external { overflow-wrap: anywhere; }
.v2-archive-status { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 10px 0 16px; color: var(--muted); font-size: 11px; }
.v2-archive-status form { margin: 0 0 0 auto; }
.v2-archive-status button { padding: 3px 7px; border: 1px solid var(--border); border-radius: 5px; background: transparent; color: var(--muted); font: inherit; font-size: 10.5px; cursor: pointer; }
.v2-archive-status button:hover { border-color: var(--accent); color: var(--accent); }
.v2-archive-bundle { margin: 18px 0; border-top: 1px solid var(--border); padding-top: 10px; }
.v2-archive-bundle h2, .v2-archive-bundle h3 { margin: 0 0 6px; font-size: 10.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.v2-archive-bundle h2 span, .v2-archive-bundle h3 span { font-weight: 400; text-transform: none; letter-spacing: 0; }
.v2-archive-bundle p { margin: 0 0 6px; font-size: 11px; }
.v2-archive-bundle ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; font-size: 10.5px; }
.v2-archive-bundle li span { color: var(--muted); }
.v2-story-notes { margin: 18px 0; border-top: 1px solid var(--border); padding-top: 10px; }
.v2-story-notes h2 { margin: 0 0 6px; font-size: 10.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.v2-story-notes ol { margin: 0; padding: 0; list-style: none; }
.v2-story-notes li { padding: 4px 0; border-bottom: 1px solid var(--border); font-size: 12px; }
.v2-story-notes a { color: var(--text); text-decoration: none; }
.v2-story-notes a:hover { color: var(--accent); }
.v2-story-note { line-height: 1.4; }
.v2-story-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 20px 0; }
.v2-story-links form { margin: 0; }
.v2-comments { margin-top: 26px; }
.v2-comments h2 { margin: 0 0 10px; color: var(--muted); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; }
.v2-comment:focus { outline: 0; }
.v2-comment { position: relative; margin: 0 0 14px calc(var(--depth, 0) * 14px); padding-left: 10px; scroll-margin-top: 12px; }
.v2-comment-rail { position: absolute; left: -1px; top: 0; bottom: 0; width: 12px; border-left: 1px solid var(--border); background: transparent; cursor: pointer; transition: border-left-color 120ms ease, background-color 120ms ease; }
.v2-comment-rail:hover { border-left-color: color-mix(in srgb, var(--accent) 58%, var(--border)); background: color-mix(in srgb, var(--accent) 8%, transparent); }
.v2-comment:target > .v2-comment-rail { border-left-color: var(--accent); }
.v2-comment:target > .v2-comment-meta { color: var(--text); }
.v2-comment.collapsed > .v2-comment-body, .v2-comment.collapsed > .v2-comment-children { display: none; }
.v2-comment.collapsed > .v2-comment-rail { border-left-color: var(--accent); }
.v2-comment.collapsed > .v2-comment-meta::after { content: " · collapsed"; color: var(--accent); }
.v2-comment-meta { color: var(--muted); font-size: 10.5px; }
.v2-comment-nav { display: inline-flex; gap: 9px; margin-left: 9px; font-size: 9.5px; }
.v2-comment-nav a { color: var(--muted); text-decoration: none; opacity: 0.75; transition: color 120ms ease, opacity 120ms ease; }
.v2-comment-nav a:hover, .v2-comment-nav a:focus-visible { color: var(--accent); opacity: 1; }
.v2-comment-nav span[aria-hidden] { font-size: 10.5px; }
.v2-comment-link { opacity: 0.55; }
.v2-comment-actions { display: inline-flex; align-items: baseline; gap: 5px; margin-left: 9px; }
.v2-comment-actions button { padding: 0; border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 9.5px; cursor: pointer; opacity: 0.68; }
.v2-comment-actions button:hover, .v2-comment-actions button:focus-visible { color: var(--accent); opacity: 1; }
.v2-key { font-weight: 800; }
.v2-comment.skipped > .v2-comment-body, .v2-comment.skipped > .v2-comment-children { display: none; }
.v2-comment.read > .v2-comment-body { display: none; }
.v2-comment.read > .v2-comment-meta { opacity: 0.58; }
.v2-comment.read > .v2-comment-meta::after { content: " · read"; opacity: .7; }
.v2-comment.skipped > .v2-comment-meta::after { content: " · skipped"; color: var(--muted); }
.v2-comment.skipped > .v2-comment-rail { border-left-color: var(--muted); opacity: 0.55; }
.v2-comment-body { margin-top: 4px; line-height: 1.45; }
.v2-comment-body p { margin: 0 0 9px; }
.v2-comment-children { margin-top: 12px; }
.v2-more-comments { margin: 0 0 12px calc(var(--depth, 0) * 14px); padding-left: 10px; border-left: 1px dashed var(--border); }
.v2-more-comments a { color: var(--accent); font-size: 10.5px; text-decoration: none; }
.v2-more-comments a:hover { text-decoration: underline; text-underline-offset: 2px; }
.v2-comments-first { margin-top: 16px; font-size: 10.5px; }
.v2-comments-first a { color: var(--muted); }
@media (max-width: 640px) {
  .v2-story-page { padding-left: 0; padding-right: 0; }
  .v2-story-head { display: block; }
  .v2-story-actions { margin: 8px 0 0; }
  .v2-comment { margin-left: calc(var(--depth, 0) * 8px); }
}

/* V2 trash */
.v2-trash { list-style: none; margin: 0; padding: 0; max-width: 820px; }
.v2-trash li { display: flex; align-items: baseline; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.v2-trash-main { display: grid; gap: 2px; min-width: 0; flex: 1; }
.v2-trash-title { color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v2-trash-title:hover { color: var(--accent); }
.v2-trash form { margin: 0; }
.v2-trash button { padding: 3px 8px; border: 1px solid var(--border); border-radius: 5px; background: transparent; color: var(--muted); font: inherit; font-size: 10.5px; cursor: pointer; }
.v2-trash button:hover { border-color: var(--accent); color: var(--accent); }

.v2-deleted-note { max-width: 620px; padding: 14px 16px; border-left: 2px solid var(--muted); background: rgba(255,255,255,0.025); }
.v2-deleted-note h2 { margin: 0 0 4px; font-size: 1rem; }
.v2-deleted-note form { margin: 14px 0 8px; }
.v2-deleted-note button { padding: 4px 9px; border: 1px solid var(--border); border-radius: 6px; background: transparent; color: var(--muted); font: inherit; font-size: 11px; cursor: pointer; }
.v2-deleted-note button:hover { border-color: var(--accent); color: var(--accent); }

.v2-history-loader { min-height: 1px; }
.v2-older-link, .v2-newer-link { display: inline-block; margin: 0 0 10px 8px; color: var(--muted); font-size: 9.5px; letter-spacing: 0.06em; text-transform: uppercase; }
.v2-older-link:hover, .v2-newer-link:hover { color: var(--accent); }
.js .v2-older-link { display: none; }

@media (min-width: 761px) {
  body[data-view="v2"] { height: 100dvh; overflow: hidden; }
  main[data-view="v2"] {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    row-gap: 8px;
    height: 100dvh;
    padding: 0 32px;
    overflow: hidden;
  }
  .v2-shell { height: 100%; min-height: 0; padding-bottom: 0; overflow: hidden; column-gap: 6px; }
  .v2-timeline, .v2-detail { height: 100%; max-height: none; padding-top: 16px; padding-bottom: 24px; }
  .v2-detail-frame { height: 100%; min-height: 0; max-height: none; }
  .v2-command {
    position: static;
    left: auto;
    right: auto;
    bottom: auto;
    width: auto;
    max-width: none;
    margin: 0 0 14px;
  }
  .v2-new, .v2-next { margin: 18px 0 0; }
}

/* V2 tools: archive and search */
.v2-tool { max-width: 900px; margin: 0 auto; padding: 10px 12px 50px; }
.v2-tool-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 14px; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.v2-tool-head h1 { margin: 0; font-size: 1rem; font-weight: 800; }
.v2-tool-head > .v2-muted { margin-left: auto; }
.v2-tool-nav { display: flex; flex-wrap: wrap; gap: 10px; color: var(--muted); font-size: 10.5px; }
.v2-tool-nav a { color: var(--muted); text-decoration: none; }
.v2-tool-nav a:hover, .v2-tool-nav a.active { color: var(--accent); }
.v2-tool-list { margin: 0; padding: 0; }
.v2-tool-search { display: flex; gap: 7px; margin: 0 0 16px; }
.v2-tool-search input { flex: 1; min-width: 0; padding: 7px 9px; border: 1px solid var(--border); border-radius: 6px; background: transparent; color: var(--text); font: inherit; font-size: 12px; }
.v2-tool-search button { padding: 5px 10px; border: 1px solid var(--border); border-radius: 6px; background: transparent; color: var(--muted); font: inherit; font-size: 10.5px; cursor: pointer; }
.v2-tool-search button:hover { border-color: var(--accent); color: var(--accent); }
.v2-tool-import { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin: 0 0 18px; color: var(--muted); font-size: 10.5px; }
.v2-tool-import input { color: var(--muted); font: inherit; font-size: 10.5px; }
.v2-tool-import button { padding: 4px 9px; border: 1px solid var(--border); border-radius: 5px; background: transparent; color: var(--muted); font: inherit; font-size: 10.5px; cursor: pointer; }
.v2-tool-import button:hover { border-color: var(--accent); color: var(--accent); }

.v2-archive-quality { color: var(--accent); }
.v2-archive-suspicious { color: #e06c5a; }
.v2-archive-warnings { display: block !important; margin: 4px 0 8px !important; color: #e06c5a; }
.v2-archive-versions { margin-top: 8px; font-size: 10.5px; color: var(--muted); }
.v2-archive-versions h4 { margin: 0; color: var(--muted); font-size: 9.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.v2-archive-versions ol { display: block; margin: 6px 0 0; padding-left: 18px; }
.v2-archive-versions li { margin: 3px 0; }
.v2-archive-versions form { display: inline; margin-left: 6px; }
.v2-archive-versions button { padding: 1px 5px; border: 1px solid var(--border); border-radius: 4px; background: transparent; color: var(--muted); font: inherit; font-size: 10px; cursor: pointer; }
.v2-archive-versions button:hover { border-color: #e06c5a; color: #e06c5a; }

.v2-archive-search { margin-top: 20px; border-top: 1px solid var(--border); padding-top: 12px; }
.v2-archive-search h2 { font-size: 10.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.v2-archive-search ol { margin: 8px 0; padding-left: 20px; }
.v2-archive-search li { margin: 9px 0; }
.v2-archive-search li > span { color: var(--muted); font-size: 10.5px; }
.v2-archive-search p { margin: 3px 0; color: var(--text); font-size: 12px; line-height: 1.45; }

.v2-archive-pruned { color: var(--muted); font-size: 10.5px; }

/* Note history diffs */
.v2-diff-details { flex-basis: 100%; margin: 2px 0 8px; padding-left: 152px; color: var(--muted); }
.v2-diff-details summary { width: fit-content; cursor: pointer; font-size: 10.5px; letter-spacing: 0.02em; }
.v2-diff-details summary:hover { color: var(--accent); }
.v2-diff { margin: 6px 0 10px; border-left: 1px solid var(--border); padding-left: 10px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11.5px; line-height: 1.45; }
.v2-diff-line { display: flex; min-height: 1.45em; white-space: pre-wrap; word-break: break-word; }
.v2-diff-sign { flex: none; width: 1.4em; color: var(--muted); user-select: none; }
.v2-diff-text { min-width: 0; }
.v2-diff-add .v2-diff-sign, .v2-diff-add .v2-diff-text { color: #9fc49a; }
.v2-diff-del .v2-diff-sign, .v2-diff-del .v2-diff-text { color: #d99886; }
.v2-diff-same { color: var(--muted); }
.v2-diff-gap { margin: 3px 0; color: var(--muted); font-size: 10.5px; font-style: italic; }
.v2-diff-empty { margin: 4px 0 8px; }

/* Slash metadata commands */
.v2-command-status { margin-left: 25px; }
.v2-command-status:empty { display: none; }
.note-command-menu button small { display: block; color: var(--muted); font-size: 10px; }
.note-command-pop select { width: 100%; }

@media (max-width: 760px) {
  .v2-diff-details { padding-left: 0; }
  .note-command-menu, .note-command-pop { max-width: calc(100vw - 16px); }
}

/* Now, What's Next, What's New */
.v2-now { margin: 24px 0 10px; padding: 12px 9px 10px; border-top: 1px solid var(--border); border-left: 2px solid var(--accent); }
.v2-now-head { display: flex; align-items: baseline; gap: 10px; color: var(--muted); }
.v2-now-label { font-size: 9px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.v2-now-time { color: var(--text); font-size: 15px; font-weight: 700; letter-spacing: 0.02em; }
.v2-now-place { margin-left: auto; color: var(--muted); font-size: 9.5px; text-decoration: none; }
.v2-now-place:hover { color: var(--accent); }
.v2-now-sun { display: flex; flex-wrap: wrap; gap: 10px; margin: 5px 0 8px; color: var(--muted); font-size: 10.5px; }
.v2-now-sun span + span::before { content: "· "; }
.v2-now-next, .v2-bottom-item, .v2-bottom-head { display: block; padding: 7px 8px; border-left: 2px solid transparent; color: var(--text); text-decoration: none; }
.v2-now-next:hover, .v2-now-next:focus-visible, .v2-bottom-item:hover, .v2-bottom-item:focus-visible, .v2-bottom-head:hover, .v2-bottom-head:focus-visible { background: rgba(224, 164, 88, 0.055); color: var(--accent); }
.v2-now-next-title, .v2-bottom-title { display: block; overflow-wrap: anywhere; line-height: 1.32; font-size: 12px; font-weight: 600; }
.v2-now-next-meta, .v2-bottom-meta { display: block; margin-top: 2px; overflow: hidden; color: var(--muted); font-size: 9.5px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.v2-now-empty { margin: 2px 0; color: var(--muted); font-size: 11px; }
.v2-bottom-entry { margin: 0 0 8px; padding: 8px 0 0; border-top: 1px solid rgba(255,255,255,0.055); }
.v2-bottom-head { padding-top: 4px; padding-bottom: 4px; }
.v2-bottom-label { display: block; color: var(--accent); font-size: 9px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.v2-bottom-list { list-style: none; margin: 0; padding: 0; }
.v2-bottom-list-row + .v2-bottom-list-row { border-top: 1px solid rgba(255,255,255,0.045); }
.v2-bottom-item.overdue .v2-bottom-title { color: #d99886; }
.v2-bottom-item.source-hn, .v2-now-next.source-hn { border-left-color: var(--source-hn); }
.v2-bottom-item.source-reddit, .v2-now-next.source-reddit { border-left-color: var(--source-reddit); }
.v2-bottom-item.source-tildes, .v2-now-next.source-tildes { border-left-color: var(--source-tildes); }
.v2-bottom-item.source-rss, .v2-now-next.source-rss { border-left-color: var(--source-rss); }
.v2-bottom-item.source-bubbles, .v2-now-next.source-bubbles { border-left-color: var(--source-bubbles); }
.v2-bottom-item.source-youtube, .v2-now-next.source-youtube { border-left-color: var(--source-youtube); }
.v2-bottom-item.source-note, .v2-now-next.source-note { border-left-color: var(--source-mine); }

/* Paged detail */
.v2-pager-sources { display: none; }

/* Continuous notes */
.v2-notes-stream { max-width: 880px; }
.v2-stream-note { position: relative; margin: 0; padding: 0 0 2px; }
.v2-stream-note + .v2-stream-note { padding-top: 0; }
.v2-stream-note .v2-note-head,
.v2-stream-note > .v2-action { opacity: 0; visibility: hidden; }
.v2-stream-note:hover > .v2-note-head,
.v2-stream-note:focus-within > .v2-note-head,
.v2-stream-note:hover > .v2-action,
.v2-stream-note:focus-within > .v2-action { opacity: 1; visibility: visible; }
.v2-stream-note .v2-note-head { margin-bottom: 0; }
.v2-stream-note > .v2-action { margin-bottom: 0; }
.v2-stream-note .v2-editor { min-height: 0; margin: 0; padding: 1px 0 0; }
.v2-stream-note .v2-editor p { margin-bottom: 0.2em; }
.v2-stream-note + .v2-stream-note .v2-editor { border-top: 1px solid rgba(255,255,255,0.04); padding-top: 3px; }
.v2-stream-note .note-month { margin: 18px 0 3px; }
.v2-stream-note.active { background: rgba(224,164,88,0.018); }

/* What's New triage */
.v2-view-head h2, .v2-view-section h3 { margin: 0 0 5px; color: var(--muted); font-size: 10px; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; }
.v2-view-head p { margin: 0 0 14px; color: var(--muted); font-size: 10px; }
.v2-view-section { margin-top: 18px; }
.v2-new-items { list-style: none; margin: 0; padding: 0; }
.v2-new-item { position: relative; border-left: 2px solid transparent; }
.v2-new-item.source-hn { border-left-color: var(--source-hn); }
.v2-new-item.source-reddit { border-left-color: var(--source-reddit); }
.v2-new-item.source-tildes { border-left-color: var(--source-tildes); }
.v2-new-item.source-rss { border-left-color: var(--source-rss); }
.v2-new-item.source-bubbles { border-left-color: var(--source-bubbles); }
.v2-new-item.source-youtube { border-left-color: var(--source-youtube); }
.v2-new-item + .v2-new-item { border-top: 1px solid rgba(255,255,255,0.05); }
.v2-new-item.queued { opacity: 0.58; }
.v2-new-item.queued .v2-new-star-slot { color: var(--accent); }
.v2-new-queue-form { margin: 0; }
.v2-new-row-button { display: block; width: 100%; padding: 8px; border: 0; background: transparent; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.v2-new-row-button:hover, .v2-new-row-button:focus-visible { background: rgba(224,164,88,0.055); color: var(--accent); }
.v2-new-title { display: block; font-size: 12.5px; line-height: 1.3; font-weight: 650; overflow-wrap: anywhere; }
.v2-new-meta { display: block; margin-top: 2px; color: var(--muted); font-size: 9.5px; line-height: 1.35; }
.v2-new-star-slot { margin-right: 5px; color: var(--muted); }
.v2-new-preview { display: block; margin-top: 3px; color: var(--muted); font-size: 10.5px; line-height: 1.38; overflow: hidden; }
.v2-new-preview.muted { opacity: 0.7; }
.v2-new-star-form { position: absolute; top: 5px; right: 4px; margin: 0; }
.v2-new-star-form button { width: 28px; height: 26px; padding: 0; border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 17px; cursor: pointer; }
.v2-new-star-form button:hover { color: var(--accent); }
.v2-new-pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 16px; padding-top: 9px; border-top: 1px solid var(--border); font-size: 10px; }
.v2-new-pager a { color: var(--muted); text-decoration: none; }
.v2-new-pager a:hover { color: var(--accent); }

/* Reading interstitial */
.v2-reading-limit { max-width: 560px; margin: 8vh auto 0; }
.v2-reading-limit h2 { margin: 0 0 8px; color: var(--accent); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; }
.v2-reading-limit-copy { margin: 0 0 18px; line-height: 1.5; }
.v2-reading-suggestion { display: grid; gap: 3px; margin: 0 0 18px; padding: 10px 12px; border-left: 2px solid var(--accent); background: rgba(224,164,88,0.045); }
.v2-reading-suggestion span { color: var(--muted); font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase; }
.v2-reading-suggestion a { color: var(--text); font-size: 15px; font-weight: 700; }
.v2-reading-suggestion small { color: var(--muted); font-size: 10.5px; }
.v2-reading-scroll-cue { margin-top: 18px; color: var(--muted); font-size: 14px; text-align: center; opacity: 0.72; }

@media (max-width: 760px) {
  body[data-view="v2"] main[data-view="v2"] { padding: 0; }
  body[data-view="v2"] { overflow-x: hidden; }
  body[data-view="v2"] .v2-shell { position: relative; display: block; max-width: 100%; height: 100dvh; padding-bottom: 0; overflow: hidden; }
  body[data-view="v2"] .v2-timeline,
  body[data-view="v2"] .v2-detail-frame { position: absolute; inset: 0; height: 100%; max-height: none; transition: transform 240ms cubic-bezier(0.22, 0.61, 0.36, 1), opacity 240ms cubic-bezier(0.22, 0.61, 0.36, 1); }
  body[data-view="v2"] .v2-timeline { overflow-y: auto; border-bottom: 0; margin: 0; padding: 10px 4px 100px 12px; transform: translateX(0); opacity: 1; }
  body[data-view="v2"] .v2-detail-frame { --v2-detail-inset-left: 12px; --v2-detail-inset-right: 4px; transform: translateX(100%); opacity: 0; pointer-events: none; }
  body[data-view="v2"] .v2-detail { height: 100%; max-height: none; overflow-x: hidden; overflow-y: auto; padding: 10px 4px 100px 12px; touch-action: pan-y; }
  body.v2-detail-open .v2-timeline { transform: translateX(-26%); opacity: 0; pointer-events: none; }
  body.v2-detail-open .v2-detail-frame { transform: translateX(0); opacity: 1; pointer-events: auto; }
  .v2-new-star-form { top: 4px; }
}
.v2-stream-note .v2-editor,
.v2-stream-note .v2-editor wordgard-editor,
.v2-stream-note .v2-editor wg-scroller,
.v2-stream-note .v2-editor wg-content { min-height: 0 !important; }
.v2-stream-note .v2-note-head,
.v2-stream-note > .v2-action {
  position: absolute;
  right: 0;
  left: auto;
  z-index: 3;
  width: max-content;
  max-width: min(100%, 640px);
  margin: 0;
  padding: 2px 0 2px 10px;
  background: var(--bg);
}
.v2-stream-note .v2-note-head { top: 0; }
.v2-stream-note > .v2-action { top: 27px; }
.v2-stream-note .v2-editor { padding-top: 0; }
.v2-stream-note .v2-note-head {
  position: relative;
  top: auto;
  right: auto;
  width: auto;
  max-width: none;
  height: 20px;
  min-height: 20px;
  padding: 0;
  background: transparent;
}
.v2-stream-note > .v2-action { top: 20px; }
.v2-stream-note:focus-within > .v2-action { opacity: 0; visibility: hidden; }
.v2-stream-note:hover > .v2-action { opacity: 1; visibility: visible; }
.v2-comment.comment-muted { opacity: 0.56; }
.v2-comment.comment-focus { background: rgba(224,164,88,0.018); }
.v2-new-preview { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.v2-new-star-slot { display: inline-block; width: 1.15em; }
.v2-notes-stream .note-month { margin: 18px 0 4px; color: var(--muted); font-size: 9px; font-weight: 650; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.72; }
.v2-bottom-next-large { padding-top: 12px; }
.v2-bottom-next-large .v2-bottom-head { padding: 12px 10px; }
.v2-bottom-next-large .v2-bottom-label { font-size: 10px; }
.v2-bottom-next-large .v2-bottom-meta { margin-top: 4px; font-size: 10.5px; line-height: 1.5; white-space: normal; }
.v2-bottom-next-large .v2-bottom-item { padding: 13px 10px; }
.v2-bottom-next-large .v2-bottom-title { font-size: 14px; line-height: 1.35; }
.v2-bottom-next-large .v2-bottom-meta { margin-top: 5px; font-size: 10.5px; line-height: 1.45; white-space: normal; }
.v2-bottom-next-large .v2-bottom-list-row + .v2-bottom-list-row { margin-top: 2px; }
.v2-bottom-new-large { padding-top: 12px; }
.v2-bottom-new-large .v2-bottom-head { padding: 15px 11px 14px; }
.v2-bottom-new-large .v2-bottom-label { font-size: 10.5px; }
.v2-bottom-new-large .v2-bottom-meta { margin-top: 8px; font-size: 11.5px; line-height: 1.5; white-space: normal; }
.v2-next-view .v2-view-head h2 { font-size: 12px; }
.v2-next-view .v2-view-head p { margin-bottom: 22px; font-size: 11px; }
.v2-next-view .v2-view-section { margin-top: 30px; }
.v2-next-view .v2-view-section h3 { margin-bottom: 10px; font-size: 10.5px; }
.v2-next-view .v2-bottom-item { padding: 14px 12px; }
.v2-next-view .v2-bottom-title { font-size: 15px; line-height: 1.38; }
.v2-next-view .v2-bottom-meta { margin-top: 6px; font-size: 11px; line-height: 1.5; white-space: normal; }
.v2-new-title-form { margin: 0; }
.v2-new-title-button { padding: 8px 8px 1px; }
.v2-new-meta-row { display: flex; align-items: flex-start; gap: 5px; padding: 0 8px 8px; }
.v2-new-meta-form { flex: 1; min-width: 0; margin: 0; }
.v2-new-meta-button { padding: 0; }
.v2-new-star-form { position: static; margin: 0; flex: 0 0 auto; }
.v2-new-star-form button { width: 18px; height: 18px; font-size: 15px; line-height: 1; }

/* Classic web view: a fast source-by-source reading list. */
.classic-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 26px 0 18px;
  border-bottom: 1px solid var(--border);
}
.classic-head h1 { margin: 0; font-size: 27px; letter-spacing: -0.02em; }
.classic-head nav { font: 11px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; }
.classic-head nav a { color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--border); }
.classic-list { max-width: 780px; padding-bottom: 60px; }
.classic-source { margin-top: 30px; }
.classic-source h2 {
  margin: 0 0 4px;
  font: 500 10px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted);
}
.classic-source h2 span { opacity: .55; }
.classic-item { padding: 13px 0 15px; border-bottom: 1px solid var(--border); }
.classic-item.followed { border-left: 2px solid var(--accent); padding-left: 13px; }
.classic-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  color: var(--muted);
  font: 10px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;
}
.classic-label { color: var(--text); opacity: .72; }
.classic-item h3 { margin: 5px 0 5px; font-size: 18px; line-height: 1.28; font-weight: 560; }
.classic-item h3 a { color: var(--text); text-decoration: none; }
.classic-item h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.classic-item p { margin: 5px 0 0; color: var(--muted); font-size: 14px; line-height: 1.48; }
.classic-item .classic-links { font: 10px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; }
.classic-item .classic-links a { color: var(--muted); }
.classic-image {
  display: block;
  max-width: 100%;
  max-height: 340px;
  margin: 10px 0 8px;
  object-fit: cover;
  border-radius: 4px;
}
