:root {
  --bg: #fbfaf7;
  --paper: #fffefa;
  --ink: #262923;
  --prose-ink: #4b4e46;
  --code-comment: #6b7065;
  --code-keyword: #a13661;
  --code-string: #3f652e;
  --code-number: #8d4d1f;
  --code-title: #6650a1;
  --code-attribute: #276975;
  --muted: #7d8076;
  --line: #e7e8e1;
  --wash: #f1f2ec;
  --accent: #c9512c;
  --unread: #c32937;
  --heading: #98472f;
  --saved: #456b44;
  --accent-wash: #f9ece4;
  --sage: #e8ebdf;
  --shadow: 0 24px 80px #20251f20;
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
}
:root[data-theme="dark"] {
  --bg: #191c19;
  --paper: #1e221e;
  --ink: #eeeae0;
  --prose-ink: #c7c9c2;
  --code-comment: #a0a79a;
  --code-keyword: #e59ab5;
  --code-string: #aecb91;
  --code-number: #e6b284;
  --code-title: #c3b1e8;
  --code-attribute: #8dc8ce;
  --muted: #a0a79a;
  --line: #343b32;
  --wash: #252c25;
  --accent: #ec936b;
  --unread: #fa707c;
  --heading: #efb18c;
  --saved: #a7c593;
  --accent-wash: #3c2c23;
  --sage: #303d30;
  --shadow: 0 24px 80px #0006;
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  touch-action: pan-x pan-y;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
}
button,
input,
textarea,
select {
  min-width: 0;
  font: inherit;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  color: inherit;
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
button,
a {
  touch-action: manipulation;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  background: none;
  border: 0;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
img {
  max-width: 100%;
  display: block;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: -0.035em;
}
h3 {
  font-size: 14px;
}
input,
textarea,
select {
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 11px 13px;
}
textarea {
  resize: vertical;
  width: 100%;
  line-height: 1.5;
}
input::placeholder,
textarea::placeholder {
  color: var(--muted);
  opacity: 0.85;
}
label {
  display: block;
  font-size: 13px;
  font-weight: 550;
}
label input:not([type="checkbox"]),
label select {
  display: block;
  width: 100%;
  margin: 8px 0 18px;
}
input[type="checkbox"] {
  accent-color: var(--accent);
}
.icon {
  width: 21px;
  height: 21px;
  flex-shrink: 0;
  vertical-align: middle;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.skip-link {
  position: fixed;
  top: -60px;
  left: 15px;
  z-index: 10;
  background: var(--ink);
  color: var(--bg);
  padding: 12px;
}
.skip-link:focus {
  top: 10px;
}
.muted {
  color: var(--muted);
}
.accent {
  color: var(--accent);
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.6px;
  font-weight: 650;
  color: var(--muted);
}
.layout {
  display: grid;
  grid-template-columns: 232px minmax(0, 690px) 308px;
  grid-template-rows: auto minmax(0, 1fr);
  max-width: 1280px;
  margin: auto;
  min-height: 100vh;
}
.sidebar {
  grid-column: 1;
  grid-row: 1 / 3;
  position: sticky;
  top: 0;
  height: 100dvh;
  padding: 34px 22px 22px 12px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: Georgia, serif;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -1.6px;
  line-height: 1;
}
.brand img {
  width: 29px;
  height: 29px;
}
.brand-block {
  min-width: 0;
}
.brand-date {
  font-size: 11px;
  color: var(--muted);
  margin-top: 9px;
  line-height: 1.4;
  letter-spacing: 0.2px;
}
.sidebar nav {
  margin-top: 24px;
  display: grid;
  gap: 9px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px 14px;
  border-radius: 7px;
  color: var(--muted);
  font-size: 14px;
}
.nav-item .icon {
  width: 22px;
  height: 22px;
}
.nav-item:hover {
  background: var(--wash);
  color: var(--ink);
}
.nav-item.active {
  background: var(--sage);
  color: var(--ink);
  font-weight: 600;
}
.nav-count {
  margin-left: auto;
  font-size: 11px;
  color: var(--muted);
}
.unread-dot {
  width: 7px;
  height: 7px;
  background: var(--unread);
  border-radius: 50%;
  flex-shrink: 0;
  margin-left: auto;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 17px;
  min-height: 40px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid transparent;
  line-height: 1.4;
}
.button .icon {
  width: 17px;
  height: 17px;
}
.button.primary {
  background: var(--accent);
  color: var(--bg);
}
[data-theme="dark"] .button.primary {
  color: #231d17;
}
.button.primary:hover {
  filter: brightness(0.94);
}
.button.subtle {
  border-color: var(--line);
  background: var(--paper);
}
.button.subtle:hover {
  background: var(--wash);
}
.button.danger {
  background: #b84136;
  color: white;
}
.button.full-width {
  width: 100%;
}
.small-button {
  padding: 8px 12px;
  min-height: 34px;
}
.account-action {
  min-height: 44px;
  flex-shrink: 0;
}
.sidebar > .mobile-account-action {
  display: none;
}
.account-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.desktop-sign-in {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  align-self: start;
  margin: 20px 23px 0;
  min-height: 44px;
}
.write-button {
  margin-top: 32px;
  font-size: 13px;
  min-height: 43px;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 30px;
}
.sidebar-tools {
  display: flex;
  gap: 9px;
  align-items: center;
  color: var(--muted);
  padding: 0 9px 18px;
}
.sidebar-tools > span {
  font-size: 10px;
  margin-left: 2px;
}
.icon-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  min-width: 32px;
  min-height: 32px;
  padding: 5px;
  border-radius: 5px;
  color: var(--muted);
  font-size: 11px;
}
.icon-button:hover {
  background: var(--wash);
  color: var(--ink);
}
.profile-switch {
  border-top: 1px solid var(--line);
  width: 100%;
  display: flex;
  text-align: left;
  gap: 10px;
  align-items: center;
  padding: 19px 0 0;
}
.profile-switch > span:not(.avatar, .unread-dot) {
  flex: 1;
  min-width: 0;
}
.profile-switch strong {
  display: block;
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.profile-switch small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.profile-switch > .icon {
  width: 14px;
}
.avatar {
  position: relative;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #dfe5d8;
  color: #485a44;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: Georgia, serif;
  font-size: 12px;
  font-weight: bold;
  overflow: hidden;
  border: 1px solid #00000005;
}
.avatar.small {
  width: 30px;
  height: 30px;
  font-size: 10px;
}
.avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.avatar img:not([hidden]) + .avatar-initials {
  visibility: hidden;
}
.avatar img[hidden] {
  display: none;
}
.avatar.sand {
  background: #e7dbc6;
  color: #79654b;
}
.avatar.rose {
  background: #ead9d3;
  color: #9a6454;
}
.avatar.lavender {
  background: #ddddeb;
  color: #676689;
}
.avatar.terracotta {
  background: #ead1bc;
  color: #9d654a;
}
main {
  grid-column: 2;
  grid-row: 1 / 3;
  min-width: 0;
  border-right: 1px solid var(--line);
  outline: none;
}
.page-top {
  min-height: 77px;
  padding: 0 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
}
.page-top > span {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1.2px;
}
.page-top > div {
  display: flex;
  align-items: center;
  gap: 14px;
}
.page-intro {
  padding: 9px 34px 28px;
}
.page-intro h1 {
  font-size: 32px;
  line-height: 1.2;
  font-weight: 500;
}
.page-intro > p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 11px;
}
.feed-intro {
  padding-top: 24px;
  padding-bottom: 8px;
}
.home-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.home-intro .feed-controls {
  padding: 0;
}
.timeline-tabs {
  display: flex;
  gap: 26px;
  padding: 0 34px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}
.timeline-tabs > button {
  padding: 12px 0 16px;
  font-size: 12px;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.timeline-tabs > button.active {
  border-color: var(--accent);
  color: var(--ink);
  font-weight: 650;
}
.feed-lists {
  padding: 18px 34px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.list-picker-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
}
.list-picker-row label,
.list-picker-row > p {
  flex: 1;
  min-width: 140px;
  margin: 0;
}
.list-picker-row select {
  min-height: 44px;
  margin-bottom: 0;
}
.list-picker-row .button {
  min-height: 44px;
}
.feed-lists > p {
  margin-top: 12px;
}
.feed-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 19px 34px 4px;
}
.filter-pills {
  display: flex;
  gap: 3px;
  background: var(--wash);
  padding: 3px;
  border-radius: 6px;
}
.search-tags {
  flex-wrap: wrap;
}
.filter-pills button,
.search-tags a {
  font-size: 11px;
  padding: 5px 12px;
  border-radius: 4px;
  color: var(--muted);
}
.filter-pills button.selected {
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 1px 3px #0000000b;
  font-weight: 600;
}
.post-card,
.notification-row {
  margin: 0 34px;
}
.post-card {
  padding: 26px 0 19px;
  border-bottom: 1px solid var(--line);
}
.post-byline {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  min-width: 0;
}
.post-byline > div {
  min-width: 0;
}
.author-link {
  overflow-wrap: anywhere;
  font-size: 12px;
  font-weight: 650;
  padding: 0;
  text-align: left;
}
.author-link:hover {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
}
.byline-sub {
  color: var(--muted);
  font-size: 10px;
  margin-top: 3px;
  overflow-wrap: anywhere;
}
.byline-sub > span {
  white-space: nowrap;
}
.note-permalink:hover {
  text-decoration: underline;
}
.follow {
  flex-shrink: 0;
  margin-left: auto;
  min-height: 27px;
  padding: 4px 10px;
  background: var(--paper);
  border-color: var(--line);
  font-size: 10px;
  color: var(--ink);
}
.follow.is-following {
  background: transparent;
  color: var(--muted);
  border-color: transparent;
}
.feature-cover {
  width: 100%;
  aspect-ratio: 2.05;
  object-fit: cover;
  border-radius: 4px;
}
.cover-link {
  display: block;
  margin-bottom: 20px;
}
.post-content h2 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  overflow-wrap: anywhere;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 700;
}
.featured .post-content h2 {
  font-size: 26px;
  letter-spacing: -0.04em;
  max-width: 540px;
}
.article-link {
  display: block;
}
.article-link:hover h2 {
  color: var(--accent);
}
.excerpt {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  overflow-wrap: anywhere;
  font-family: Georgia, serif;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  margin-top: 8px;
}
.continue-reading {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 650;
}
.continue-reading .icon {
  width: 15px;
  height: 15px;
}
.continue-reading:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 13px;
  color: var(--muted);
  font-size: 9px;
}
.article-meta > span:first-child {
  color: var(--accent);
}
.post-content.with-thumbnail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 126px;
  gap: 23px;
}
.thumbnail {
  width: 126px;
  height: 126px;
  object-fit: cover;
  border-radius: 4px;
}
.link-preview {
  display: block;
  overflow: hidden;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  transition: border-color 150ms, box-shadow 150ms;
}
.link-preview:hover,
.link-preview:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 4px 18px #20251f0c;
}
.link-preview-media {
  display: block;
  position: relative;
  aspect-ratio: 1.91;
  background: var(--wash);
  border-bottom: 1px solid var(--line);
}
.link-preview-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.link-preview-video .link-preview-media {
  aspect-ratio: 16 / 9;
  background: #161816;
}
.link-preview-video .link-preview-media img {
  object-fit: cover;
}
.link-preview-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 58px;
  height: 42px;
  padding-left: 3px;
  border: 1px solid #ffffff55;
  border-radius: 12px;
  background: #161816d9;
  color: #fff;
  font-size: 19px;
}
.link-preview-text {
  display: grid;
  gap: 7px;
  padding: 15px 18px 17px;
  overflow-wrap: anywhere;
}
.link-preview-site {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 11px;
}
.link-preview-site .icon {
  width: 12px;
  height: 12px;
  margin-left: auto;
}
.link-preview-text strong,
.link-preview-description {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.link-preview-text strong {
  font-size: 16px;
  line-height: 1.35;
  font-weight: 650;
}
.link-preview-description {
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}
.link-preview-watch {
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
}
.post-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 17px -5px 0;
}
.post-action-links {
  display: flex;
  gap: inherit;
  margin-left: auto;
}
.post-edit {
  min-height: 32px;
}
.post-byline .post-edit {
  margin-left: auto;
  flex-shrink: 0;
}
.post-actions .icon {
  width: 17px;
  height: 17px;
}
.post-actions .liked {
  color: var(--accent);
}
.post-actions .liked .icon {
  fill: var(--accent-wash);
}
.post-actions .saved,
.post-actions .reposted {
  color: var(--accent);
}
.post-actions .saved .icon {
  fill: var(--accent-wash);
}
.boost-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 12px;
}
.boost-label .icon {
  width: 13px;
  height: 13px;
}
.end-note {
  text-align: center;
  color: var(--muted);
  font-family: Georgia, serif;
  font-size: 13px;
  padding: 35px 20px 55px;
  font-style: italic;
}
.load-more {
  text-align: center;
  padding: 25px;
}
.loading {
  padding: 28px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}
.loading:before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 10px;
  border: 1px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.empty-state {
  text-align: center;
  padding: 55px 26px;
  color: var(--muted);
}
.empty-state > .icon {
  width: 32px;
  height: 32px;
  color: var(--accent);
  margin-bottom: 15px;
}
.empty-state h2 {
  color: var(--ink);
  font-size: 25px;
}
.empty-state p {
  max-width: 360px;
  margin: 12px auto 20px;
  font-size: 13px;
}
.error-panel {
  background: var(--accent-wash);
  margin: 20px 34px;
  padding: 18px;
  border-radius: 6px;
  color: var(--ink);
  font-size: 12px;
  display: flex;
  gap: 15px;
  align-items: center;
  flex-wrap: wrap;
}
.account-results {
  padding: 10px 34px;
  border-bottom: 1px solid var(--line);
}
.content-warning {
  background: var(--wash);
  padding: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 6px;
  flex-wrap: wrap;
}
.content-warning strong {
  font-size: 13px;
}
.right-rail {
  grid-column: 3;
  grid-row: 2;
  padding: 25px 23px 30px 27px;
}
.search-box {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  padding: 0 10px;
  gap: 8px;
  min-height: 36px;
}
.search-box .icon {
  width: 15px;
  height: 15px;
  color: var(--muted);
}
.search-box input {
  min-width: 0;
  width: 100%;
  border: 0;
  background: transparent;
  font-size: 10px;
  padding: 10px 0;
  outline-offset: 1px;
}
.discover-search {
  margin: 8px 34px 18px;
  padding-right: 0;
  min-height: 46px;
}
.discover-search input {
  font-size: 14px;
}
.discover-search > button {
  min-width: 44px;
  min-height: 44px;
  border: 0;
}
.discover-search > button .icon {
  color: var(--accent);
}
.discover-section {
  margin: 16px 34px;
  overflow-wrap: anywhere;
}
.discover-section > h2,
.discover-section > .section-heading h2 {
  font-size: 17px;
  margin-bottom: 8px;
}
.discover-section > .muted {
  font-size: 13px;
}
.discover-section > .section-heading {
  margin-bottom: 8px;
}
.discover-section > .section-heading h2 {
  margin-bottom: 0;
}
.discover-section > .section-heading button {
  flex-shrink: 0;
}
.discover-section .error-panel {
  margin-inline: 0;
}
.discover-section > .section-heading button {
  min-height: 44px;
}
.discover-timelines .feed-controls {
  padding: 0;
}
.discover-timelines .post-card,
.discover-timelines .feed-suggestions {
  margin-inline: 0;
}
.discover-timelines > .muted {
  margin-top: 12px;
}
.discover-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
}
.discover-links a,
.discover-results > a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 13px;
}
.discover-links .topic {
  color: var(--accent);
  background: var(--wash);
}
.text-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 500;
  padding: 3px 0;
}
.text-button .icon {
  width: 15px;
  height: 15px;
}
.text-button:hover {
  color: var(--accent);
}
.rail-section {
  margin-top: 31px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}
.rail-section h3 {
  font-family: Georgia, serif;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.2px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 21px;
  gap: 10px;
}
.section-heading > .icon {
  color: var(--muted);
  width: 16px;
}
.recommended {
  display: flex;
  gap: 9px;
  align-items: center;
  margin: 18px 0;
}
.recommended .avatar {
  width: 31px;
  height: 31px;
  font-size: 10px;
}
.recommended > div {
  flex: 1;
  min-width: 0;
}
.recommended .author-link {
  font-size: 11px;
}
.recommended p {
  font-size: 9px;
  line-height: 1.5;
  color: var(--muted);
  margin-top: 3px;
  overflow-wrap: anywhere;
}
.recommended .follow {
  padding: 4px 8px;
  font-size: 9px;
  flex-shrink: 0;
}
.topics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.topic {
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 5px;
  font-size: 10px;
  color: var(--muted);
  background: var(--paper);
}
.topic:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.little-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 25px;
  color: var(--muted);
}
.little-note .icon {
  width: 19px;
  height: 19px;
  margin-top: 2px;
}
.little-note p {
  font-size: 10px;
  line-height: 1.8;
}
.little-note strong {
  font-weight: 450;
  color: var(--ink);
}
footer {
  margin-top: 25px;
  font-size: 9px;
  color: var(--muted);
  line-height: 1.9;
}
footer > span {
  padding: 0 7px;
}
footer p {
  margin-top: 7px;
}
.mobile-nav {
  display: none;
}
.prose {
  overflow-wrap: anywhere;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  line-height: 1.5;
}
.prose p {
  margin: 0 0 1em;
}
.prose p:last-child {
  margin-bottom: 0;
}
.prose h1 {
  font-size: 2em;
  line-height: 1.2;
  margin: 1.2em 0 0.6em;
}
.prose h2 {
  font-size: 1.5em;
  line-height: 1.2;
  margin: 1.25em 0 0.5em;
  font-weight: 600;
  color: var(--heading);
}
.prose h3,
.prose h4,
.prose h5,
.prose h6 {
  font-family: Georgia, serif;
  font-size: 1.2em;
  line-height: 1.3;
  margin: 1.25em 0 0.5em;
}
.prose a,
.excerpt a,
.reader-subtitle a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.prose blockquote {
  border-left: 2px solid var(--accent);
  padding: 5px 0 5px 23px;
  margin: 20px 0;
  font-style: italic;
  font-size: 1.05em;
  color: var(--muted);
}
.prose ul,
.prose ol {
  padding-left: 24px;
  margin: 1em 0;
}
.prose li {
  padding-left: 4px;
  margin: 0;
}
.prose code {
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 0.8em;
  background: var(--wash);
  padding: 3px 5px;
  border-radius: 3px;
}
.prose pre {
  padding: 18px;
  background: var(--wash);
  border-radius: 5px;
  overflow: auto;
  line-height: 1.5;
  white-space: pre-wrap;
}
.prose pre code {
  padding: 0;
  background: transparent;
}
.hljs-comment,
.hljs-quote { color: var(--code-comment); }
.hljs-keyword,
.hljs-doctag,
.hljs-selector-tag,
.hljs-name { color: var(--code-keyword); }
.hljs-string,
.hljs-regexp,
.hljs-addition { color: var(--code-string); }
.hljs-number,
.hljs-literal,
.hljs-symbol,
.hljs-bullet,
.hljs-deletion { color: var(--code-number); }
.hljs-title,
.hljs-section,
.hljs-type,
.hljs-built_in { color: var(--code-title); }
.hljs-attr,
.hljs-attribute,
.hljs-variable,
.hljs-template-variable,
.hljs-selector-id,
.hljs-selector-class,
.hljs-meta { color: var(--code-attribute); }
.hljs-emphasis { font-style: italic; }
.hljs-strong { font-weight: bold; }
.prose hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 36px 0;
}
.prose img {
  max-width: 100%;
  border-radius: 4px;
  margin: 20px auto;
}
.custom-emoji, .prose img.custom-emoji {
  display: inline-block;
  width: 1.2em;
  height: 1.2em;
  margin: 0;
  border-radius: 0;
  object-fit: contain;
  vertical-align: -.2em;
}
.emoji-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(44px, 1fr));
  gap: 4px;
  max-height: 40dvh;
  overflow: auto;
}
.emoji-grid button {
  height: 44px;
  overflow: hidden;
  border-radius: 4px;
  font-size: 22px;
}
.emoji-grid button:hover, .emoji-grid button:focus-visible {
  background: var(--wash);
}
.prose .task-item { list-style: none; }
.prose .task-item input { width: auto; margin-right: 6px; accent-color: var(--accent); }
.prose li > ul, .prose li > ol { margin: 0; }
.attachment-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 24px 0; }
.attachment-gallery > :only-child { grid-column: 1 / -1; }
.attachment-gallery img { display: block; width: 100%; max-height: 560px; object-fit: contain; border-radius: 6px; background: var(--wash); }
.draft-media { margin: 16px 35px; padding: 16px 0; border-top: 1px solid var(--line); }
.note-composer .draft-media { margin: 12px 0; }
.media-heading, .media-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.media-heading strong { margin-right: auto; font-size: 13px; }
.media-hint, .media-status { font-size: 12px; line-height: 1.5; color: var(--muted); margin: 8px 0; }
.media-status:empty { display: none; }
.media-list { display: grid; gap: 14px; }
.media-item { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 14px; padding: 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); }
.media-item > img { width: 100px; height: 100px; object-fit: contain; border-radius: 4px; background: var(--wash); }
.media-item label { font-size: 12px; }
.media-item textarea { width: 100%; min-height: 64px; font-size: 13px; resize: vertical; }
.media-actions { margin-top: 8px; }
.markdown-help { padding: 18px; background: var(--wash); line-height: 2; border-radius: 6px; }
@media (max-width: 600px) {
  .draft-media { margin: 12px 20px; }
  .media-item { grid-template-columns: 64px minmax(0, 1fr); gap: 10px; }
  .media-item > img { width: 64px; height: 64px; }
  .attachment-gallery { gap: 8px; }
}
.page-top > .reader-controls {
  flex-shrink: 0;
  gap: 6px;
}
.reader-font-button {
  font-size: 15px;
  font-weight: 600;
}
.reader-font-button[aria-disabled="true"] {
  opacity: 0.4;
  cursor: default;
}
.reader {
  padding: 20px 40px 0;
}
.reader > .eyebrow {
  color: var(--accent);
}
.reader > h1 {
  overflow-wrap: anywhere;
  font-size: 32px;
  font-weight: 500;
  line-height: 1.125;
  margin: 16px 0 12px;
}
.reader-subtitle {
  overflow-wrap: anywhere;
  font-family: Georgia, serif;
  color: var(--muted);
  font-size: clamp(16px, 3vw, 17px);
  line-height: 1.4;
  margin-bottom: 20px;
}
.reader > .post-byline {
  margin-top: 27px;
}
.reader > .post-actions {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
  margin: 0 0 28px;
}
.reader-cover {
  width: calc(100% + 16px);
  max-width: calc(100% + 16px);
  margin: 0 -8px 34px;
  border-radius: 4px;
}
/* Reading defaults to the same compact text scale as preview and writing. */
.reading-prose,
.writing-area {
  color: var(--prose-ink);
  font-size: var(--reader-font-size, 16px);
  font-weight: normal;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.note-body {
  font-family: inherit;
  color: var(--ink);
}
.note-body :is(h1, h2, h3, h4, h5, h6) {
  font: inherit;
  color: inherit;
  margin: 0 0 1em;
}
.note-reader > .post-actions {
  margin: 17px 0 0;
}
.reader-end {
  margin: 40px 0 24px;
  padding-top: 23px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-family: Georgia, serif;
  font-size: 12px;
}
.reader-end .icon {
  color: var(--accent);
  width: 17px;
}
.comments {
  padding: 7px 40px 45px;
}
.comments h2 {
  font-size: 24px;
  font-weight: 500;
}
.comments h2 span {
  font-family: -apple-system, sans-serif;
  font-size: 12px;
  margin-left: 6px;
  color: var(--muted);
}
.reply-footer {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin: 10px 0 30px;
}
.reply-footer > span {
  font-size: 10px;
  color: var(--muted);
}
.comment {
  margin-inline-start: calc(var(--reply-depth, 0) * clamp(10px, 3vw, 22px));
  display: flex;
  gap: 12px;
  margin-top: 25px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}
.comment > div {
  flex: 1;
  min-width: 0;
}
.comment strong {
  font-size: 12px;
}
.comment-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 12px;
}
.comment .prose {
  font-size: 15px;
  margin-top: 7px;
}
.reply-context {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 11px;
}
.reply-context a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.editor-top {
  border-bottom: 1px solid var(--line);
  min-height: 64px;
  padding: 10px 24px;
  gap: 10px;
}
.editor-top .draft-save-controls {
  margin-right: auto;
  gap: 8px;
}
.editor-top .editor-actions {
  gap: 8px;
  flex-shrink: 0;
}
.editor-back {
  flex-shrink: 0;
}
.editor-more {
  position: relative;
}
.editor-more > summary {
  list-style: none;
  font-size: 24px;
}
.editor-more > summary::-webkit-details-marker {
  display: none;
}
.editor-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 6;
  width: 240px;
  padding: 12px;
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  box-shadow: 0 8px 24px #0002;
}
.editor-menu .editor-typing-option {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  min-height: 44px;
  font-size: 13px;
}
.editor-typing-option input {
  width: auto;
  margin: 0;
}
.editor-menu p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.draft-save-controls {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.draft-save-controls .button {
  flex-shrink: 0;
}
#save-status {
  font-size: 12px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
#save-status[data-state="error"] {
  color: var(--accent);
  font-weight: 650;
}
.editor-menu .delete-link,
.note-footer .delete-link,
.comment .delete-link {
  color: var(--accent);
}
.published-badge {
  display: inline-block;
  color: var(--saved);
  border: 1px solid var(--line);
  background: var(--wash);
  border-radius: 4px;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 10px;
  letter-spacing: 0;
  padding: 3px 7px;
  margin-left: 10px;
}
.editor-paper {
  padding: 15px 42px 25px;
}
.title-input {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 0;
  padding: 10px 0;
  background: transparent;
  font-family: Georgia, serif;
  font-size: 32px;
  letter-spacing: -1.4px;
  line-height: 1.125;
}
.subtitle-input {
  display: block;
  width: 100%;
  border: 0;
  padding: 9px 0 25px;
  background: transparent;
  font-family: Georgia, serif;
  font-size: 17px;
  line-height: 1.4;
  border-radius: 0;
}
.title-input:focus,
.subtitle-input:focus {
  outline-offset: 3px;
}
.editor-tools {
  display: flex;
  align-items: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 12px 0 16px;
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 2;
}
.editor-done {
  display: none;
}
.editor-vim-status {
  flex-shrink: 0;
  padding: 0 8px;
  color: var(--muted);
  font: 11px ui-monospace, SFMono-Regular, monospace;
  white-space: nowrap;
}
.writing-area[data-vim-mode="normal"] {
  caret-shape: block;
}
.editor-toolbar {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-wrap: nowrap;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  gap: 4px;
  padding: 4px 0;
}
.editor-toolbar button {
  flex: 0 0 32px;
  height: 32px;
  padding: 5px;
  border-radius: 4px;
  font-family: Georgia, serif;
  font-size: 16px;
}
.editor-toolbar button:hover {
  background: var(--wash);
}
.editor-toolbar .icon {
  width: 17px;
  height: 17px;
}
.editor-toolbar > span {
  margin-left: auto;
  font-size: 8px;
  color: var(--muted);
  letter-spacing: 1px;
}
.writing-area {
  font-family: Georgia, serif;
  border: 0;
  background: transparent;
  border-radius: 0;
  padding: 0;
  width: 100%;
  min-height: 49vh;
  resize: vertical;
}
.writing-area:focus {
  outline: none;
}
.writing-area:focus-visible {
  box-shadow: -3px 0 var(--accent-wash);
}
.editor-bottom {
  display: flex;
  gap: 15px;
  align-items: center;
  margin: 0 35px;
  padding: 17px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  flex-wrap: wrap;
}
.editor-bottom .text-button {
  margin-left: auto;
}
.over-limit {
  color: var(--accent);
}
.publishing-options {
  margin: 0 35px;
  border-bottom: 1px solid var(--line);
  padding: 13px 0;
}
.publishing-options summary {
  font-size: 11px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
}
.publishing-options summary .icon {
  width: 14px;
}
.publishing-options > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  padding-top: 20px;
}
.publishing-options label {
  font-size: 11px;
}
.editor-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  padding: 18px 35px 35px;
}
.editor-footer .button {
  flex-shrink: 0;
}
.editor-note {
  flex: 1;
  font-size: 10px;
  color: var(--muted);
  line-height: 1.7;
}
.article-preview-heading h1 {
  overflow-wrap: anywhere;
  font-size: 32px;
  line-height: 1.125;
  font-weight: 500;
  margin: 15px 0;
}
.article-preview-heading .post-byline {
  margin: 25px 0;
}
.focus-mode .sidebar,
.focus-mode .right-rail,
.focus-mode .desktop-sign-in,
.focus-mode .mobile-nav {
  display: none;
}
.focus-mode .layout {
  display: block;
  max-width: 820px;
}
.focus-mode main {
  border: 0;
}
.focus-mode .editor-paper {
  padding-top: 35px;
}
.focus-mode .page-top {
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 3;
}
.focus-mode .editor-toolbar {
  top: 68px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0 34px 28px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
  gap: 14px;
  text-align: center;
}
.stats-grid > button {
  padding: 0;
}
.stats-grid > button:hover strong,
.stats-grid > button:focus-visible strong {
  color: var(--accent);
}
.stats-grid strong {
  display: block;
  font-family: Georgia, serif;
  font-size: 30px;
  font-weight: 500;
}
.stats-grid span {
  display: block;
  font-size: 9px;
  color: var(--muted);
  margin-top: 4px;
}
.draft-list {
  padding: 0 34px;
}
.continue-editing {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin: 0 34px 26px;
  padding: 22px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  background: var(--paper);
}
.continue-editing > div {
  flex: 1 1 220px;
  min-width: 0;
}
.continue-editing h2 {
  margin: 8px 0;
  font-size: 24px;
  overflow-wrap: anywhere;
}
.continue-editing p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}
.leave-editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}
.leave-editor-actions .button {
  flex: 1 1 160px;
}
.draft-card {
  padding: 25px 0;
  border-bottom: 1px solid var(--line);
}
.draft-card h2 {
  font-size: 25px;
  margin: 8px 0;
}
.draft-card p {
  font-family: Georgia, serif;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 12px;
}
.draft-card small {
  font-size: 10px;
  color: var(--muted);
}
.draft-actions {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-top: 18px;
}
.draft-actions > .text-button:last-child {
  margin-left: auto;
}
.library-note {
  padding: 25px 34px;
  font-size: 10px;
  color: var(--muted);
}
.draft-list > .post-card {
  margin: 0;
}
.settings-content {
  padding: 0 34px 40px;
}
.settings-content section {
  padding: 25px 0;
  border-top: 1px solid var(--line);
}
.settings-content h2 {
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 17px;
}
.settings-content p {
  font-size: 13px;
  line-height: 1.8;
  margin: 10px 0 18px;
}
.theme-options {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.shortcut-list {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 15px;
  font-size: 12px;
}
.shortcut-list kbd {
  font-family: inherit;
  color: var(--muted);
  font-size: 11px;
}
.capability-card {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 14px;
  background: var(--wash);
  margin: 15px 0;
}
.capability-card > strong {
  font-size: 13px;
}
.capability-card > p {
  font-size: 12px !important;
  margin: 6px 0 !important;
}
.capability-card > span,
.capability-card > small {
  font-size: 11px;
  color: var(--muted);
}
.capability-card.compatible {
  background: var(--sage);
}
.messages-view .layout {
  grid-template-columns: 232px minmax(0, 998px);
}
.messages-view .right-rail {
  display: none;
}
.messages-view .desktop-sign-in {
  grid-column: 2;
}
.messages-view main {
  grid-row: 2;
}
/* An open chat owns the viewport; its messages are the scrolling surface. */
body.conversation-open {
  padding: 0;
  overflow: hidden;
}
.conversation-open #app {
  position: fixed;
  top: var(--conversation-top, 0px);
  left: 0;
  right: 0;
  height: 100vh;
  height: var(--conversation-height, 100dvh);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px)
    env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
}
.conversation-open .layout {
  flex: 1;
  width: 100%;
  min-height: 0;
  overflow: hidden;
}
.conversation-open .sidebar {
  height: 100%;
  min-height: 0;
  overflow-y: auto;
}
.conversation-open main {
  min-height: 0;
  height: 100%;
  overflow: hidden;
}
.conversation-open .messages-layout {
  height: 100%;
  min-height: 0;
  border-top: 0;
}
.notification-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding-block: 16px;
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
}
.notification-post {
  display: block;
  margin-top: 6px;
  color: var(--muted);
}
.notification-post:hover,
.notification-post:focus-visible {
  text-decoration: underline;
}
.conversation-list {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior-y: contain;
}
.messages-layout {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  min-height: calc(100dvh - 190px);
  border-top: 1px solid var(--line);
}
.conversation-list {
  border-right: 1px solid var(--line);
}
.conversation-item {
  padding: 21px 20px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border-bottom: 1px solid var(--line);
}
.conversation-item:hover,
.conversation-item.selected {
  background: var(--wash);
}
.conversation-item strong {
  font-size: 12px;
}
.conversation-item > div {
  min-width: 0;
  flex: 1;
}
.conversation-item p {
  font-size: 11px;
  color: var(--muted);
  margin: 5px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.conversation-item small {
  font-size: 9px;
  color: var(--muted);
}
.conversation-detail {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}
.conversation-header {
  display: flex;
  flex-shrink: 0;
  gap: 10px;
  align-items: center;
  padding: 17px 22px;
  border-bottom: 1px solid var(--line);
}
.conversation-header strong {
  font-size: 13px;
}
.conversation-header > div {
  min-width: 0;
  overflow-wrap: anywhere;
}
.conversation-header small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.message-thread {
  padding: 25px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  display: flex;
  flex-direction: column;
  gap: 25px;
}
.message-thread > * {
  flex-shrink: 0;
}
.message {
  max-width: 85%;
  align-self: flex-start;
}
.message.outgoing {
  align-self: flex-end;
}
.message-bubble {
  background: var(--wash);
  padding: 13px 17px;
  border-radius: 10px 10px 10px 0;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.7;
}
.outgoing .message-bubble {
  background: var(--sage);
  border-radius: 10px 10px 0 10px;
}
.message > small {
  display: block;
  color: var(--muted);
  font-size: 9px;
  padding: 6px 2px;
}
.outgoing > small {
  text-align: right;
}
.message-composer {
  flex-shrink: 0;
  border-top: 1px solid var(--line);
  background: var(--bg);
}
#message-form {
  margin: 12px 23px 0;
  display: flex;
  align-items: flex-end;
  gap: 9px;
}
#message-form textarea,
#message-form button {
  height: 44px;
}
#message-form textarea {
  flex: 1;
  font-size: 12px;
  line-height: 22px;
  padding: 10px 13px;
  resize: none;
}
#message-form button {
  flex-shrink: 0;
  padding: 12px;
}
.dm-note {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  font-size: 9px;
  color: var(--muted);
  margin: 14px 12px 20px;
}
.dm-note .icon {
  width: 11px;
  height: 11px;
}
.conversation-empty {
  font-size: 12px;
  padding: 25px;
}
.conversation-back {
  flex-shrink: 0;
}
dialog {
  max-width: 490px;
  width: calc(100% - 32px);
  max-height: 90dvh;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  color: var(--ink);
  padding: 28px;
  box-shadow: var(--shadow);
}
dialog::backdrop {
  background: #11180f60;
  backdrop-filter: blur(4px);
}
.modal-header {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
  margin-bottom: 18px;
}
.modal-header h2 {
  font-size: 29px;
  font-weight: 500;
  line-height: 1.1;
}
dialog > p,
dialog form p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.8;
  margin: 15px 0 22px;
}
dialog form {
  margin-top: 20px;
}
.form-buttons {
  display: flex;
  gap: 10px;
  justify-content: space-between;
}
.token-details {
  margin-top: 25px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
summary {
  cursor: pointer;
}
.token-details summary {
  font-size: 12px;
}
.fine-print {
  font-size: 10px !important;
  margin-bottom: 0 !important;
}
.form-error {
  color: #c4543c !important;
  font-size: 12px;
  line-height: 1.6;
  white-space: pre-wrap;
}
.form-error:empty {
  display: none;
}
.interest-manager {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.interest-manager > p {
  color: var(--muted);
  font-size: 13px;
}
.interest-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.interest-rows {
  margin: 22px 0;
}
.interest-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.interest-name {
  min-width: 0;
  flex: 1;
  overflow-wrap: anywhere;
  text-align: left;
}
.interest-name small {
  display: block;
  color: var(--muted);
}
.interest-link {
  color: var(--heading);
  text-decoration: underline;
}
.interest-row > .button,
.interest-row > .avatar {
  flex-shrink: 0;
}
.interest-manager button,
.interest-buttons button {
  min-height: 44px;
}
.interest-delete {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.interest-delete p {
  margin-bottom: 12px;
}
.profile-avatar-link {
  display: inline-flex;
  flex-shrink: 0;
  border-radius: 50%;
}
.profile-cover {
  position: relative;
  height: clamp(140px, 22vw, 220px);
  overflow: hidden;
  background: linear-gradient(125deg, var(--sage), var(--accent-wash));
}
.profile-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.profile-details {
  padding: 0 34px 24px;
}
.profile-identity {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin: -36px 0 18px;
  position: relative;
}
.profile-avatar > .avatar {
  width: 92px;
  height: 92px;
  flex-shrink: 0;
  border: 5px solid var(--bg);
  font-size: 28px;
}
.profile-avatar {
  position: relative;
  flex-shrink: 0;
}
.profile-image-button {
  position: absolute;
  inset: 0;
  width: 100%;
  padding: 0;
}
.profile-avatar .profile-image-button {
  border-radius: 50%;
}
.profile-image-button > span {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 20px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 1px 5px #0003;
  font-size: 12px;
}
.profile-avatar .profile-image-button > span {
  top: auto;
  bottom: 0;
  right: 0;
  padding: 6px;
}
.profile-image-button:hover > span,
.profile-image-button:focus-visible > span {
  background: var(--accent-wash);
}
.profile-cover .profile-image-button:focus-visible {
  outline-offset: -4px;
}
.profile-image-status {
  margin-bottom: 12px;
  color: var(--muted);
}
.profile-buttons {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 46px;
}
.profile-buttons .button {
  min-height: 40px;
}
.profile-details h1 {
  font-size: 32px;
  font-weight: 500;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.profile-handle {
  color: var(--muted);
  overflow-wrap: anywhere;
  margin-top: 5px;
}
.profile-handle .icon,
.profile-meta .icon,
.profile-tabs .icon {
  width: 14px;
  height: 14px;
}
.profile-bio {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin-top: 18px;
  line-height: 1.7;
}
.profile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  color: var(--muted);
  font-size: 12px;
  margin-top: 16px;
}
.profile-meta a:hover {
  color: var(--accent);
}
.profile-fields {
  font-size: 12px;
  margin: 18px 0 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.profile-fields > div {
  display: grid;
  grid-template-columns: minmax(80px, 1fr) minmax(0, 2fr);
  border-bottom: 1px solid var(--line);
}
.profile-fields > div:last-child {
  border-bottom: 0;
}
.profile-fields dt,
.profile-fields dd {
  padding: 9px 12px;
  margin: 0;
  overflow-wrap: anywhere;
}
.profile-fields dt {
  background: var(--wash);
  color: var(--muted);
}
.profile-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 18px;
}
.profile-counts a {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
}
.profile-counts strong {
  font-size: 18px;
}
.profile-counts span {
  font-size: 12px;
  color: var(--muted);
}
.profile-engagement {
  margin-top: 22px;
}
.engagement-heading {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 10px;
}
.engagement-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.engagement-metric {
  --metric-color: var(--accent);
  min-width: 0;
}
.engagement-metric[data-metric="reposts"] {
  --metric-color: var(--saved);
}
.engagement-metric[data-metric="replies"] {
  --metric-color: #699ba9;
}
.engagement-value {
  display: flex;
  align-items: center;
  gap: 6px;
}
.engagement-value strong {
  font-size: 20px;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.engagement-value .icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: var(--metric-color);
}
.engagement-metric > span,
.profile-notice {
  color: var(--muted);
  font-size: 11px;
}
.engagement-bar {
  height: 4px;
  border-radius: 2px;
  background: var(--wash);
  margin-top: 8px;
  overflow: hidden;
}
.engagement-bar > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--metric-color);
}
.profile-tabs {
  gap: 22px;
}
.profile-tabs a {
  flex-shrink: 0;
  font-size: 12px;
  padding: 15px 0 13px;
  border-bottom: 2px solid transparent;
  color: var(--muted);
}
.profile-tabs a.active {
  border-color: var(--accent);
  color: var(--ink);
  font-weight: 600;
}
.profile-notice {
  padding: 16px 34px 0;
}
.profile-people {
  padding: 0 34px;
}
.profile-people .recommended {
  padding: 20px 0;
  margin: 0;
  border-bottom: 1px solid var(--line);
  gap: 14px;
}
.profile-people .avatar {
  width: 44px;
  height: 44px;
  font-size: 16px;
}
.profile-people .author-link {
  font-size: 14px;
}
.profile-people p {
  font-size: 12px;
}
.profile-people .follow {
  min-height: 44px;
  padding: 8px 12px;
  font-size: 12px;
}
.recommended .account-bio {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.feed-suggestions {
  margin: 28px 0;
  padding: 22px 0 24px;
  border-block: 1px solid var(--line);
}
.feed-suggestions .section-heading {
  margin: 0 34px 18px;
}
.feed-suggestions h3 {
  font: 700 20px/1.25 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: -0.4px;
}
.suggestions-see-all {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 600;
}
.suggestions-see-all:hover {
  text-decoration: underline;
}
.suggestion-carousel {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 30px;
  align-items: center;
}
.suggestion-track {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 4px;
  scrollbar-width: none;
  list-style: none;
  margin: 0;
  padding: 4px 4px 8px;
}
.suggestion-track::-webkit-scrollbar {
  display: none;
}
.suggestion-track:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.suggestion-card {
  position: relative;
  display: flex;
  flex: 0 0 176px;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  min-height: 246px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--paper);
  box-shadow: 0 3px 5px #0000000c;
  scroll-snap-align: start;
}
.suggestion-card .avatar {
  width: 100px;
  height: 100px;
  font-size: 32px;
}
.suggestion-identity {
  min-width: 0;
}
.suggestion-card .suggestion-identity {
  width: 100%;
  margin: 12px 0 24px;
  text-align: center;
}
.suggestion-identity .author-link {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
  font-weight: 600;
  text-align: inherit;
}
.suggestion-identity p {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-size: 13px;
  margin-top: 2px;
}
.suggestion-card .follow,
.suggestion-row .follow {
  flex-shrink: 0;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 9px;
  border: 1px solid #ffffff20;
  background: #ff5b00;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}
.suggestion-card .follow {
  width: 100%;
  margin-top: auto;
}
.suggestion-card .follow:hover,
.suggestion-row .follow:hover {
  background: #e95200;
}
.suggestion-dismiss,
.suggestion-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  width: 32px;
  height: 40px;
  border-radius: 6px;
}
.suggestion-card .suggestion-dismiss {
  position: absolute;
  top: 7px;
  right: 5px;
  width: 28px;
  height: 28px;
}
.suggestion-dismiss .icon {
  width: 20px;
  height: 20px;
}
.suggestion-arrow {
  width: 30px;
  color: var(--muted);
}
.suggestion-arrow.previous .icon {
  transform: rotate(180deg);
}
.suggestion-arrow:disabled {
  opacity: 0.25;
  cursor: default;
}
.suggestion-dismiss:hover,
.suggestion-arrow:not(:disabled):hover {
  color: var(--ink);
  background: var(--wash);
}
.people-heading {
  padding: 26px 34px 16px;
}
.people-heading h1 {
  margin-top: 16px;
  font: 700 26px/1.3 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: -0.6px;
}
.suggestion-list {
  list-style: none;
  margin: 0;
  padding: 8px 34px 32px;
}
.suggestion-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
}
.suggestion-row .avatar {
  width: 44px;
  height: 44px;
  font-size: 16px;
}
.suggestion-row .suggestion-identity {
  flex: 1;
}
.suggestion-row .suggestion-dismiss {
  flex-shrink: 0;
}
.version-badge,
.profile-badge {
  display: inline-block;
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 3px 8px;
  font: 12px -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  color: var(--muted);
  vertical-align: middle;
}
.profile-badge {
  margin-top: 12px;
}
@media (max-width: 650px) {
  .profile-details {
    padding: 0 20px 20px;
  }
  .profile-identity {
    gap: 10px;
  }
  .profile-avatar > .avatar {
    width: 80px;
    height: 80px;
  }
  .profile-buttons .button {
    font-size: 11px;
    padding: 8px 10px;
    min-height: 44px;
  }
  .profile-counts {
    gap: 4px 16px;
  }
  .feed-suggestions .section-heading {
    margin-left: 24px;
    margin-right: 24px;
  }
  .profile-people,
  .profile-notice {
    padding-left: 20px;
    padding-right: 20px;
  }
  .people-heading {
    padding: 20px 20px 12px;
  }
  .suggestion-list {
    padding: 0 16px 24px;
  }
  .suggestion-row {
    gap: 9px;
  }
  .suggestion-row .follow {
    padding: 8px 11px;
  }
  .suggestion-row .suggestion-dismiss {
    width: 28px;
  }
}
.publish-preview {
  background: var(--wash);
  border-radius: 7px;
  padding: 20px;
}
.publish-preview h3 {
  font-family: Georgia, serif;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 500;
  margin: 9px 0;
}
.publish-preview p {
  font-family: Georgia, serif;
  font-size: 14px;
  line-height: 1.5;
}
.publish-preview p.muted {
  font-family: inherit;
  font-size: 10px;
  margin-top: 15px;
}
.article-link > h2,
.reader > h1,
.title-input,
.article-preview-heading > h1,
.draft-card h2,
.publish-preview h3 {
  font-family: "Arial Black", Arial, sans-serif;
  font-weight: 700;
}
#toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 20px);
  max-width: min(580px, calc(100vw - 35px));
  padding: 13px 23px;
  border-radius: 7px;
  background: var(--ink);
  color: var(--bg);
  font-size: 12px;
  box-shadow: var(--shadow);
  z-index: 20;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s;
  line-height: 1.6;
}
#toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
@media (min-width: 701px) {
  .sidebar {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior-y: contain;
  }
  .sidebar > * {
    flex-shrink: 0;
  }
}
@media (min-width: 1450px) {
  .layout {
    max-width: 1330px;
    grid-template-columns: 244px minmax(0, 740px) 326px;
  }
  .sidebar {
    padding-right: 28px;
  }
  .page-intro h1 {
    font-size: 34px;
  }
  .featured .post-content h2 {
    font-size: 28px;
  }
  .right-rail {
    padding-left: 30px;
    padding-right: 25px;
  }
  .post-card {
    padding-top: 29px;
  }
  .messages-view .layout {
    grid-template-columns: 244px minmax(0, 1086px);
  }
}
@media (max-width: 1140px) {
  .layout {
    grid-template-columns: 205px minmax(0, 1fr) 265px;
  }
  .sidebar {
    padding-left: 17px;
    padding-right: 17px;
  }
  .brand {
    font-size: 28px;
  }
  .brand-date {
    font-size: 9px;
  }
  .page-top {
    padding-left: 25px;
    padding-right: 25px;
  }
  .page-intro {
    padding-left: 25px;
    padding-right: 25px;
  }
  .page-intro h1 {
    font-size: 30px;
  }
  .timeline-tabs {
    padding: 0 25px;
  }
  .discover-search,
  .discover-section {
    margin-inline: 25px;
  }
  .post-card,
  .notification-row {
    margin: 0 25px;
  }
  .feed-controls {
    padding-left: 25px;
    padding-right: 25px;
  }
  .right-rail {
    padding: 25px 18px;
  }
  .recommended .follow {
    font-size: 8px;
    padding: 4px 6px;
  }
  .featured .post-content h2 {
    font-size: 22px;
  }
  .post-content h2 {
    font-size: 21px;
  }
  .post-content.with-thumbnail {
    grid-template-columns: minmax(0, 1fr) 100px;
    gap: 16px;
  }
  .thumbnail {
    width: 100px;
    height: 110px;
  }
  .messages-view .layout {
    grid-template-columns: 205px minmax(0, 1fr);
  }
  .messages-layout {
    grid-template-columns: 240px minmax(0, 1fr);
  }
}
@media (max-width: 980px) {
  .layout {
    max-width: 850px;
    grid-template-columns: 205px minmax(0, 1fr);
  }
  .right-rail {
    display: none;
  }
  .desktop-sign-in {
    grid-column: 2;
  }
  main {
    grid-row: 2;
  }
  .page-intro h1 {
    font-size: 32px;
  }
  .featured .post-content h2 {
    font-size: 26px;
  }
  .page-top {
    padding-top: 0;
  }
  .messages-layout {
    grid-template-columns: 210px minmax(0, 1fr);
  }
  .conversation-item {
    padding: 18px 12px;
  }
  .message-thread {
    padding: 17px;
  }
  .message {
    max-width: 95%;
  }
  .editor-toolbar {
    gap: 1px;
  }
  .editor-toolbar > span {
    display: none;
  }
}
#pull-refresh {
  display: none;
}
@keyframes pull-refresh-spin {
  to { transform: rotate(360deg); }
}
@media (max-width: 700px) {
  html.pull-refresh-enabled {
    overscroll-behavior-y: none;
  }
  #pull-refresh {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: calc(env(safe-area-inset-top, 0px) - 40px);
    left: calc(50% - 18px);
    width: 36px;
    height: 36px;
    z-index: 6;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--paper);
    color: var(--muted);
    box-shadow: 0 2px 8px #00000018;
    pointer-events: none;
    opacity: 0;
    transform: translateY(var(--pull-distance, 0px));
    transition: transform 180ms ease-out, opacity 150ms;
  }
  #pull-refresh[data-state="pulling"],
  #pull-refresh[data-state="ready"] {
    opacity: 1;
    transition: none;
  }
  #pull-refresh[data-state="ready"],
  #pull-refresh[data-state="loading"] {
    color: var(--ink);
  }
  #pull-refresh[data-state="loading"] {
    opacity: 1;
  }
  .pull-refresh-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    transform: rotate(var(--pull-turn, 0deg));
  }
  [data-state="loading"] > .pull-refresh-spinner {
    animation: pull-refresh-spin 700ms linear infinite;
  }
  @media (prefers-reduced-motion: reduce) {
    #pull-refresh { transition: none; }
    [data-state="loading"] > .pull-refresh-spinner { animation: none; }
  }
  body {
    padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px)
      calc(64px + env(safe-area-inset-bottom, 0px)) env(safe-area-inset-left, 0px);
  }
  .layout,
  .messages-view .layout {
    display: block;
  }
  .sidebar {
    position: relative;
    height: auto;
    padding: 18px 20px 10px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .brand {
    font-size: 24px;
  }
  .brand img {
    width: 25px;
    height: 25px;
  }
  .brand-date {
    display: none;
  }
  .sidebar > .mobile-account-action {
    display: inline-flex;
    min-width: 44px;
    min-height: 44px;
  }
  .desktop-sign-in {
    display: none;
  }
  .sidebar nav,
  .write-button,
  .sidebar-bottom {
    display: none;
  }
  .page-top {
    min-height: 58px;
    padding: 0 22px;
  }
  .page-top > span {
    font-size: 8px;
  }
  .page-intro {
    padding: 8px 22px 25px;
  }
  .feed-lists {
    padding: 16px 22px;
  }
  .page-intro h1 {
    font-size: 30px;
  }
  .feed-intro {
    padding-block: 4px 0;
  }
  .feed-intro h1 {
    font-size: 24px;
  }
  .home-intro {
    gap: 4px 8px;
  }
  .timeline-tabs {
    padding: 0 22px;
    gap: 26px;
  }
  .timeline-tabs > button {
    padding-block: 8px;
  }
  .timeline-tabs button {
    min-height: 44px;
    min-width: 44px;
  }
  .feed-controls {
    padding: 8px 22px 1px;
  }
  .home-intro .filter-pills button {
    padding-inline: 8px;
  }
  .post-card,
  .notification-row {
    margin: 0 22px;
  }
  .post-card {
    padding-top: 23px;
  }
  .post-content h2 {
    font-size: 21px;
  }
  .featured .post-content h2 {
    font-size: 24px;
  }
  .post-content.with-thumbnail {
    grid-template-columns: minmax(0, 1fr) 80px;
    gap: 15px;
  }
  .thumbnail {
    width: 80px;
    height: 90px;
  }
  .post-byline {
    margin-bottom: 14px;
  }
  .byline-sub {
    font-size: 9px;
  }
  .mobile-nav {
    display: grid;
    grid-template-columns: repeat(var(--nav-items, 5), minmax(0, 1fr));
    align-items: center;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 5;
    height: calc(64px + env(safe-area-inset-bottom, 0px));
    padding: 0 env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px)
      env(safe-area-inset-left, 0px);
    background: var(--bg);
    border-top: 1px solid var(--line);
  }
  .mobile-nav > a,
  .mobile-nav > button {
    min-width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
  }
  .mobile-nav [data-nav-badge] {
    position: relative;
  }
  .mobile-nav .unread-dot {
    position: absolute;
    top: 8px;
    left: calc(50% + 7px);
    box-shadow: 0 0 0 2px var(--bg);
  }
  .mobile-nav > .mobile-sign-in::before {
    content: "";
    width: 31px;
    height: 31px;
    border-radius: 50%;
    background: var(--accent);
  }
  .mobile-nav > a[aria-current="page"] {
    color: var(--ink);
  }
  .mobile-nav > a[aria-current="page"] .icon {
    stroke-width: 2.5;
  }
  .mobile-nav .avatar {
    width: 31px;
    height: 31px;
  }
  .mobile-nav > a[aria-current="page"] .avatar {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
  }
  .mobile-nav > .mobile-write {
    justify-self: center;
    width: 44px;
    background: var(--accent);
    color: var(--bg);
    border-radius: 9px;
  }
  :root[data-theme="dark"] .mobile-nav > a[aria-current="page"] {
    color: #fff;
  }
  main {
    border-right: 0;
  }
  .reader {
    padding: 15px 24px 0;
  }
  .reader > h1,
  .article-preview-heading h1 {
    font-size: 28px;
  }
  .comments {
    padding: 0 24px 40px;
  }
  .section-heading {
    gap: 10px;
  }
  .section-heading .text-button {
    font-size: 10px;
  }
  .comments h2 {
    font-size: 22px;
  }
  .reply-footer > span {
    font-size: 9px;
  }
  .editor-bottom,
  .publishing-options {
    margin: 0 24px;
  }
  .editor-bottom {
    gap: 10px;
    font-size: 9px;
  }
  .editor-footer {
    padding: 18px 24px;
  }
  .publishing-options > div {
    display: block;
  }
  .stats-grid {
    margin: 0 22px 24px;
    gap: 9px;
  }
  .stats-grid strong {
    font-size: 25px;
  }
  .stats-grid span {
    font-size: 8px;
  }
  .draft-list {
    padding: 0 22px;
  }
  .continue-editing {
    margin-inline: 22px;
    padding: 18px;
  }
  .draft-actions {
    gap: 15px;
  }
  .draft-actions .button {
    font-size: 10px;
  }
  .draft-actions .text-button {
    font-size: 10px;
  }
  .settings-content {
    padding: 0 24px 30px;
  }
  .shortcut-list {
    font-size: 11px;
    gap: 13px;
  }
  .messages-layout {
    display: block;
    min-height: 60vh;
  }
  .conversation-list {
    border: 0;
  }
  .conversation-item {
    padding: 20px 24px;
  }
  .conversation-detail {
    display: none;
  }
  .has-conversation .conversation-list {
    display: none;
  }
  .has-conversation .conversation-detail {
    display: flex;
    height: 100%;
  }
  .message-thread {
    padding: 22px;
  }
  .conversation-open #app {
    padding-bottom: 0;
  }
  .conversation-open .sidebar {
    display: none;
  }
  .conversation-open .mobile-nav {
    position: static;
    flex-shrink: 0;
    padding-left: 0;
    padding-right: 0;
  }
  .conversation-open.conversation-keyboard-open .mobile-nav {
    display: none;
  }
  .conversation-header > div {
    flex: 1;
  }
  .conversation-header strong,
  .conversation-header small {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .conversation-back {
    min-width: 44px;
    min-height: 44px;
  }
  .messages-view .page-intro {
    padding-bottom: 20px;
  }
  .message {
    max-width: 88%;
  }
  .dm-note {
    font-size: 9px;
    text-align: center;
  }
  .focus-mode {
    padding-bottom: 0;
  }
  .focus-mode .editor-top {
    top: 0;
  }
  .focus-mode .editor-toolbar {
    top: 60px;
  }
  #toast {
    bottom: calc(80px + env(safe-area-inset-bottom, 0px));
    min-width: 250px;
    text-align: center;
  }
  .focus-mode #toast {
    bottom: 25px;
  }
  .discover-search,
  .discover-section {
    margin-inline: 22px;
  }
  .error-panel {
    margin: 20px 22px;
  }
  .account-results {
    padding: 0 22px;
  }
  .conversation-header {
    padding: 15px 20px;
  }
  dialog {
    padding: 22px;
  }
}
@media (orientation: landscape) and (pointer: coarse) {
  body {
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media print {
  .sidebar,
  .right-rail,
  .page-top,
  .post-actions,
  .comments,
  .mobile-nav,
  #toast {
    display: none !important;
  }
  .layout {
    display: block;
  }
  .reader {
    padding: 0;
  }
  .reading-prose {
    font-size: 12pt;
    color: black;
  }
  body {
    background: white;
    color: black;
    padding: 0;
  }
  main {
    border: 0;
  }
}

/* Connection guidance is visible before an opaque-origin login can fail. */
.local-file-notice {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--accent-wash);
  font-size: 12px;
}
.local-file-notice p {
  margin: 8px 0 0;
  line-height: 1.8;
}
.local-file-notice a {
  text-decoration: underline;
  overflow-wrap: anywhere;
}
.local-file-notice code {
  font-size: 12px;
}
.manual-option {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 16px 0;
}
.account-stats {
  margin: -8px 34px 22px;
  font-size: 11px;
  color: var(--muted);
}
.account-stats span {
  margin: 0 8px;
}

.language-picker {
  width: 100%;
  min-width: 0;
  font-size: 13px;
}
.language-picker-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 12px;
  min-height: 44px;
}
.language-picker-heading > span {
  font-weight: 600;
}
.language-picker-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.language-chip {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--accent-wash);
}
.language-chip:hover {
  border-color: var(--accent);
}
.language-chip .icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.language-clear {
  min-height: 44px;
}
.language-all {
  padding: 10px 0;
  color: var(--muted);
}
.language-add {
  flex: 1 1 180px;
  max-width: 230px;
  min-width: 0;
}
label.language-add select {
  width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 10px 12px;
  font-size: 14px;
}

/* Notes have a small social composer, separate from the article editor. */
.note-button {
  display: flex;
  margin-top: 10px;
  width: 100%;
}
.note-composer {
  margin: 32px 24px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--paper);
}
.note-header {
  display: flex;
  align-items: center;
  gap: 12px;
}
.note-header > div {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.note-header strong {
  font-size: 16px;
  overflow-wrap: anywhere;
}
.note-header span {
  color: var(--muted);
  font-size: 11px;
}
.note-header > a {
  margin-left: auto;
}
.note-input {
  display: block;
  margin-top: 12px;
  border: 0;
  padding: 14px;
  background: transparent;
  font-size: 16px;
  line-height: 1.5;
  min-height: 120px;
  height: 120px;
  resize: vertical;
}
.note-input:focus-visible {
  outline-offset: -2px;
}
.note-composer .publishing-options {
  margin: 0;
  padding: 12px 0;
}
.note-save-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 14px 0;
}
.note-save-row > button {
  margin-right: auto;
}
.note-save-row > span {
  color: var(--muted);
  font-size: 11px;
}
.note-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}
.note-footer .draft-save-controls {
  margin-right: auto;
}
#note-publish {
  min-width: 88px;
}
#note-publish:disabled {
  cursor: default;
}
/* Zen dedicates the viewport to the body, below one slim status bar. */
body.zen-mode {
  --zen-gutter: clamp(18px, 4vw, 64px);
  padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px)
    env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
  overflow: hidden;
}
.zen-mode .layout {
  display: block;
  width: 100%;
  max-width: none;
  height: 100vh;
  height: calc(
    100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)
  );
  min-height: 0;
}
.zen-mode main {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}
.zen-mode .editor-top {
  position: relative;
  flex: 0 0 44px;
  min-height: 44px;
  padding: 4px 18px;
}
.zen-mode .draft-save-controls {
  min-width: 0;
  margin-right: auto;
}
.zen-mode #save-status {
  display: block;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 11px;
}
.zen-mode .zen-toggle,
.zen-mode .draft-save-controls .button {
  flex-shrink: 0;
  padding: 5px 9px;
  font-size: 11px;
  white-space: nowrap;
}
.zen-mode .editor-tools {
  position: static;
  margin: 0 0 10px;
  border-top: 0;
}
.zen-mode .editor-toolbar button {
  flex: 0 0 32px;
  height: 32px;
}
.zen-mode .editor-toolbar > span {
  display: none;
}
.zen-mode .draft-media {
  flex: 0 1 auto;
  max-height: 30vh;
  overflow-y: auto;
  margin: 0 var(--zen-gutter);
  padding: 6px 0;
}
.zen-mode .draft-media:has(.media-list:empty):has(.media-status:empty) {
  display: none;
}
.zen-mode .media-hint { display: none; }
.zen-mode .editor-paper {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 4px var(--zen-gutter) 18px;
}
.zen-mode .editor-paper > :not(.writing-area) {
  flex-shrink: 0;
}
.zen-mode .writing-area {
  flex: 1;
  min-height: 0;
  resize: none;
  overflow-y: auto;
}
.zen-mode .editor-footer {
  flex-shrink: 0;
  padding: 12px var(--zen-gutter);
}
.zen-mode .editor-top > a,
.zen-mode .article-heading,
.zen-mode .article-preview-heading,
.zen-mode .editor-bottom,
.zen-mode .publishing-options,
.zen-mode .editor-note {
  display: none;
}
@media (max-width: 700px) {
  input,
  textarea,
  select,
  .search-box input,
  .feed-lists select,
  label.language-add select,
  #message-form textarea {
    font-size: 16px;
  }
  .zen-mode .editor-toolbar button {
    flex-basis: 44px;
    height: 44px;
  }
  .language-add {
    max-width: none;
  }
  .note-button {
    display: none;
  }
  .note-composer {
    margin: 18px 12px;
    padding: 18px;
  }
}
@media (max-width: 700px), (max-width: 1000px) and (pointer: coarse) {
  .editor-top {
    min-height: 56px;
    padding: 6px 12px;
    gap: 6px;
  }
  .editor-top .editor-actions {
    gap: 6px;
  }
  .editor-back span,
  .editor-preview span,
  .editor-top [data-action="focus"],
  .editor-menu .zen-toggle {
    display: none;
  }
  .reader-back span {
    display: none;
  }
  .reader-back,
  .reader-controls .icon-button {
    min-width: 44px;
    min-height: 44px;
  }
  .editor-top .button {
    min-height: 44px;
    font-size: 12px;
    padding: 8px 10px;
  }
  .editor-back,
  .editor-preview,
  .editor-more > summary {
    min-width: 36px;
    min-height: 44px;
    justify-content: center;
  }
  .editor-top .draft-save-controls {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }
  .editor-top #save-status {
    max-width: 110px;
    font-size: 10px;
    line-height: 1.3;
  }
  .editor-top .draft-save-controls:has([data-state="error"]) .button {
    border-color: var(--accent);
    color: var(--accent);
  }
  .editor-paper {
    padding: 10px 18px 20px;
  }
  .title-input {
    font-size: 28px;
  }
  .subtitle-input {
    font-size: 16px;
    padding-bottom: 12px;
  }
  .editor-toolbar {
    gap: 4px;
    overflow-x: auto;
    justify-content: flex-start;
  }
  .editor-toolbar button {
    flex: 0 0 44px;
    height: 44px;
    font-size: 15px;
  }
  .writing-view .layout {
    display: block;
    width: 100%;
  }
  .writing-view .right-rail,
  .writing-view .desktop-sign-in {
    display: none;
  }
  .writing-view .sidebar {
    display: none;
  }
  .editor-keyboard-open .mobile-nav,
  .mobile-editor-focus .mobile-nav {
    display: none;
  }
  .editor-keyboard-open #app {
    padding-bottom: 0;
  }
  .editor-keyboard-open #toast,
  .mobile-editor-focus #toast {
    top: calc(var(--editor-top, 0px) + var(--editor-height, 100dvh) - 12px);
    bottom: auto;
    transform: translate(-50%, -100%);
    z-index: 30;
  }
  .mobile-editor-focus {
    overflow: hidden;
  }
  .mobile-editor-focus .editor-paper {
    position: fixed;
    z-index: 20;
    top: var(--editor-top, 0px);
    left: 0;
    width: 100%;
    height: var(--editor-height, 100dvh);
    display: flex;
    flex-direction: column;
    padding: 0 max(14px, env(safe-area-inset-right, 0px)) 10px max(14px, env(safe-area-inset-left, 0px));
    padding-top: env(safe-area-inset-top, 0px);
    background: var(--bg);
    overflow: hidden;
  }
  .mobile-editor-focus .article-heading {
    display: none;
  }
  .mobile-editor-focus .editor-tools {
    flex: 0 0 auto;
    position: static;
    margin: 0 0 10px;
    border-top: 0;
    gap: 8px;
  }
  .mobile-editor-focus .editor-done {
    display: inline-flex;
    flex-shrink: 0;
    min-height: 44px;
    padding: 0 6px;
  }
  .mobile-editor-focus .writing-area {
    flex: 1;
    min-height: 0;
    resize: none;
    overflow-y: auto;
    padding-bottom: 18px;
    overscroll-behavior-y: contain;
  }
  .mobile-editor-focus .editor-top,
  .mobile-editor-focus .editor-bottom,
  .mobile-editor-focus .draft-media,
  .mobile-editor-focus .publishing-options,
  .mobile-editor-focus .editor-footer {
    visibility: hidden;
  }
}
