:root {
  --bg: #f4f5f7;
  --paper: #fff;
  --ink: #25292f;
  --muted: #656b73;
  --line: #e8e9ed;
  --accent: #8125d9;
  --accent-dark: #681bb8;
  --tint: #f6efff;
  --accent-focus: #b178ed;
  --green: #40836d;
  --radius: 12px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  font-size: 15px;
  font-synthesis: none;
  scroll-padding-top: var(--header-height, 180px);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  line-height: 1.5;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.6;
}
button {
  color: inherit;
}
img {
  display: block;
  max-width: 100%;
}
button svg,
a svg {
  flex-shrink: 0;
}
button {
  border: 0;
  background: none;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  line-height: 1.25;
}
h1 {
  letter-spacing: -1.2px;
}
h2 {
  letter-spacing: -0.35px;
}
p {
  overflow-wrap: anywhere;
}
[hidden] {
  display: none !important;
}
:focus-visible {
  outline: 3px solid var(--accent-focus);
  outline-offset: 3px;
}
.icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: inline-block;
  vertical-align: middle;
}
.shell {
  width: min(1240px, calc(100% - 56px));
  margin-inline: auto;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.header-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 360px) minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  min-height: 102px;
  padding-block: 16px;
}
.brand-block {
  min-width: 0;
}
.brand-tagline {
  margin: 6px 0 0;
  font-size: 11px;
  line-height: 1.5;
  color: var(--muted);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  font-size: 30px;
  letter-spacing: -1.4px;
  font-weight: 650;
  color: #101014;
}
.brand > span:last-child {
  display: flex;
  align-items: baseline;
}
.brand-light {
  font-weight: 400;
}
.brand-city {
  color: #a332f1;
}
.brand small {
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0;
  align-self: flex-start;
  margin: 3px 0 0 7px;
}
.brand-mark {
  position: relative;
  background: var(--ink);
  border-radius: 10px;
  width: 37px;
  height: 37px;
  color: white;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 4px;
  letter-spacing: -4px;
  padding-right: 4px;
}
.brand-mark > span {
  color: #c484ff;
}
.brand-mark i {
  position: absolute;
  right: -3px;
  top: -3px;
  width: 9px;
  height: 9px;
  background: var(--accent);
  border: 2px solid white;
  border-radius: 50%;
}
.search {
  display: flex;
  align-items: center;
  height: 38px;
  background: #f5f6f8;
  border: 1px solid #edefef;
  border-radius: 8px;
  padding: 0 12px;
  gap: 10px;
  max-width: 360px;
  flex: 1;
  width: 100%;
  justify-self: center;
}
.search .icon {
  color: var(--muted);
  width: 18px;
}
.search input {
  width: 100%;
  height: 100%;
  min-width: 0;
  margin: 0;
  border: 0;
  background: transparent;
  outline: 0;
  font-size: 12px;
  line-height: normal;
  transform: translateY(-1px);
  color: var(--ink);
}
input::placeholder,
textarea::placeholder {
  color: #656b73;
}
.search kbd {
  font: 12px inherit;
  border: 1px solid #dfe1e4;
  color: #656b73;
  padding: 0 5px;
  border-radius: 4px;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
  justify-self: end;
}
.login-link {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 600;
}
.login-link .icon {
  width: 18px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 18px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  border: 1px solid transparent;
  text-align: center;
  transition:
    background-color 0.15s,
    border-color 0.15s;
}
.button .icon {
  width: 17px;
  height: 17px;
}
.publish-button {
  gap: 6px;
}
.publish-button > span {
  transform: translateY(-1px);
}
.button.primary {
  background: var(--accent);
  color: white;
}
.button.primary:hover {
  background: var(--accent-dark);
}
.button.secondary {
  border-color: #e2e4e8;
  background: white;
}
.button.secondary:hover {
  background: #f7f8fa;
  border-color: #bfc3c9;
}
.button.danger {
  background: #a6342d;
  color: white;
}
.button.small {
  min-height: 34px;
  padding: 7px 12px;
  font-size: 12px;
}
.button.full {
  width: 100%;
}
.nav {
  height: 49px;
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  font-size: 13px;
}
.nav-main {
  display: flex;
  gap: 32px;
}
.nav-main > a {
  display: flex;
  gap: 7px;
  align-items: center;
  border-bottom: 2px solid transparent;
  font-weight: 500;
  color: var(--muted);
}
.nav-main > a.active {
  color: var(--ink);
  border-color: var(--accent);
  font-weight: 600;
}
.nav-main .icon {
  width: 16px;
  height: 16px;
}
.nav-flame {
  width: 16px;
  height: 20px;
  flex-shrink: 0;
}
.nav-about {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 12px;
}
.nav-about .icon {
  width: 15px;
}
.page-intro {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 36px 0 26px;
}
.intro-kicker {
  font-size: 10px;
  letter-spacing: 1.8px;
  color: var(--muted);
  font-weight: 650;
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 11px;
}
.live-dot {
  background: #63917e;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}
.page-intro h1 {
  font-size: 36px;
  font-weight: 750;
  margin-bottom: 9px;
}
.page-intro p {
  font-size: 14px;
  color: var(--muted);
}
.intro-aside {
  display: flex;
  gap: 14px;
  align-items: center;
  border-left: 1px solid #dfe1e6;
  padding-left: 22px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}
.intro-count {
  font-size: 34px;
  font-weight: 650;
  color: #4c535c;
  letter-spacing: -1.5px;
}
.demo-notice {
  font-size: 11px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  margin-bottom: 14px;
}
.demo-notice a {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #696f78;
}
.demo-notice .icon {
  width: 13px;
  height: 13px;
}
.spotlight {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 17px 20px 20px;
  margin-bottom: 24px;
}
.section-label {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 16px;
}
.section-label h2 {
  font-size: 14px;
  font-weight: 650;
}
.promotion-label {
  font-size: 9px;
  color: var(--muted);
  border: 1px solid #e9e1d9;
  border-radius: 4px;
  padding: 1px 5px;
}
.section-label > a {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--muted);
}
.section-label > a .icon {
  width: 14px;
}
.spotlight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 23px;
}
.spotlight-card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.spotlight-card + .spotlight-card {
  border-left: 1px solid var(--line);
  padding-left: 23px;
}
.spotlight-cover {
  width: 65px;
  height: 65px;
  flex: 0 0 65px;
  background: #f4f5f6;
  border-radius: 9px;
  overflow: hidden;
}
.spotlight-cover img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}
.spotlight-card > div:nth-child(2) {
  min-width: 0;
}
.spotlight-card strong {
  font-size: 13px;
  font-weight: 650;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 5px;
}
.spotlight-card span {
  font-size: 11px;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.5;
}
.spotlight-card > .icon {
  width: 14px;
  flex-shrink: 0;
  margin-left: auto;
  color: var(--muted);
}
.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 292px;
  gap: 24px;
  align-items: start;
}
.feed-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e1e3e8;
  margin-bottom: 16px;
  height: 45px;
}
.sort-tabs {
  display: flex;
  align-self: stretch;
  gap: 26px;
}
.sort-tabs > a {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  border-bottom: 2px solid transparent;
  padding: 0 1px 11px;
}
.sort-tabs > a.active {
  color: var(--accent);
  border-color: var(--accent);
}
.sort-tabs .icon {
  width: 17px;
  height: 17px;
}
.view-switch {
  display: flex;
  gap: 2px;
  padding-bottom: 9px;
}
.icon-button {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  color: var(--muted);
  flex-shrink: 0;
}
.icon-button:hover {
  background: #edf0f3;
  color: var(--ink);
}
.icon-button.selected {
  color: var(--ink);
  background: #e8eaee;
}
.icon-button .icon {
  width: 17px;
  height: 17px;
}
.feed {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.post-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  gap: 20px;
  padding: 18px;
  transition: border-color 0.15s;
}
.post-card:hover {
  border-color: #d2d5db;
}
.post-cover {
  width: 190px;
  flex: 0 0 190px;
  min-height: 160px;
  align-self: stretch;
  overflow: hidden;
  border-radius: 8px;
  background: transparent;
  display: flex;
  align-items: center;
}
.post-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 1.1;
}
.post-cover img.cover-fallback,
.detail-cover img.cover-fallback {
  object-fit: contain;
  background: #f1eaf8;
}
.cover-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
  height: 100%;
  min-height: 130px;
  background: #eef1f2;
  color: var(--muted);
  padding: 18px;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
}
.cover-placeholder .icon {
  width: 35px;
  height: 35px;
}
.post-content {
  flex: 1;
  min-width: 0;
}
.post-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  color: var(--muted);
  height: 26px;
  margin: -4px 0 7px;
}
.post-meta .icon {
  width: 13px;
  height: 13px;
}
.post-meta > .vote-control {
  margin-left: auto;
}
.meta-dot {
  color: var(--muted);
}
.demo-label {
  font-size: 9px;
  color: var(--muted);
  background: #f1f3f5;
  border-radius: 3px;
  padding: 1px 4px;
  font-weight: 400;
  white-space: nowrap;
}
.vote-control {
  display: inline-flex;
  align-items: center;
  height: 29px;
  border: 1px solid #e6e7eb;
  border-radius: 7px;
  background: #fff;
  flex-shrink: 0;
  overflow: hidden;
}
.vote-control button {
  padding: 0;
  width: 26px;
  height: 27px;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
}
.vote-control button:hover {
  background: var(--tint);
  color: var(--accent);
}
.vote-control button.selected {
  background: var(--tint);
  color: var(--accent);
}
.vote-control strong {
  font-size: 13px;
  font-weight: 700;
  min-width: 29px;
  color: var(--accent);
  text-align: center;
  line-height: 1;
}
.vote-control strong span {
  font-size: 12px;
}
.vote-control strong.cold {
  color: #6189af;
}
.vote-control .icon {
  width: 18px;
  height: 18px;
  stroke-width: 2;
}
.post-card h2 {
  font-size: 17px;
  line-height: 1.35;
  font-weight: 650;
  letter-spacing: -0.35px;
  margin-bottom: 7px;
}
.post-card h2 a:hover {
  color: var(--accent);
}
.post-summary {
  font-size: 12px;
  color: #656b73;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 13px;
}
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.post-tags > a {
  font-size: 10px;
  background: #f4f5f7;
  color: var(--muted);
  padding: 3px 7px;
  border-radius: 4px;
}
.stage {
  font-size: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #eef6f0;
  color: #5b8d6a;
  padding: 3px 7px;
  border-radius: 4px;
  white-space: nowrap;
}
.stage > i {
  width: 4px;
  height: 4px;
  display: inline-block;
  background: currentColor;
  border-radius: 50%;
}
.stage-testing {
  color: #b48a45;
  background: #fcf6e9;
}
.stage-building {
  color: #7a73ab;
  background: #f0eef7;
}
.post-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 15px;
}
.author {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  min-width: 0;
  color: #666d76;
}
.author > span:not(.avatar) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 140px;
}
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  width: 23px;
  height: 23px;
  flex: 0 0 23px;
  color: var(--muted);
  background: #e9efdf;
  font-size: 9px;
  font-weight: 650;
  letter-spacing: -0.4px;
}
.post-card:nth-child(3n + 2) .avatar {
  color: #83708b;
  background: #f1e8f0;
}
.post-card:nth-child(3n) .avatar {
  color: #658690;
  background: #e5eef1;
}
.post-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.comment-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--muted);
  padding: 5px;
}
.comment-link .icon {
  width: 15px;
  height: 15px;
}
.post-actions .icon-button {
  width: 26px;
}
.pro-label {
  font-size: 8px;
  font-weight: 750;
  letter-spacing: 0.5px;
  background: #f5eee0;
  color: #ae8e59;
  padding: 2px 5px;
  border-radius: 4px;
  display: inline-block;
  line-height: 1.5;
}
.bookmark.selected {
  color: var(--accent);
  background: var(--tint);
}
.bookmark.selected .icon {
  fill: var(--tint);
}
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 17px;
}
.side-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}
.side-box > h2 {
  font-size: 14px;
  margin-bottom: 17px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.side-box > h2 .icon {
  color: var(--muted);
  width: 17px;
  height: 17px;
}
.welcome-box {
  padding: 24px;
  background: #edf0ec;
  border-color: #e6eae4;
}
.eyebrow {
  font-size: 9px;
  letter-spacing: 1.7px;
  font-weight: 600;
  color: var(--muted);
}
.welcome-box h2 {
  font-size: 23px;
  letter-spacing: -0.8px;
  line-height: 1.35;
  margin: 13px 0 11px;
  display: block;
}
.welcome-box p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 20px;
}
.welcome-box .button {
  background: #3d4e43;
  color: #fff;
  border-color: #3d4e43;
  font-size: 12px;
}
.welcome-box .button:hover {
  background: #2c3930;
}
.welcome-note {
  font-size: 10px;
  text-align: center;
  color: var(--muted);
  margin-top: 10px;
}
.category-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.category-list > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  padding: 8px 9px;
  border-radius: 6px;
  color: var(--muted);
}
.category-list > a:hover,
.category-list > a.selected {
  background: #f4f5f7;
  color: var(--ink);
}
.category-list > a > span:first-child {
  display: flex;
  align-items: center;
  gap: 10px;
}
.category-list > a > span:last-child {
  font-size: 10px;
  color: var(--muted);
}
.category-list .icon {
  width: 14px;
  height: 14px;
}
.category-dot {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: #b2b7bf;
  margin: 0 4px;
}
.dot-tools {
  background: #8b9faa;
}
.dot-productivity {
  background: #9cb89a;
}
.dot-design {
  background: #c09cbe;
}
.dot-education {
  background: #d7b37e;
}
.dot-games {
  background: #94a4cd;
}
.discussion {
  display: block;
  padding: 13px 0;
  border-bottom: 1px solid #eff0f3;
}
.discussion:first-of-type {
  padding-top: 0;
}
.discussion:last-child {
  border: 0;
  padding-bottom: 0;
}
.discussion h3 {
  font-size: 12px;
  line-height: 1.55;
  font-weight: 550;
  margin-bottom: 7px;
  letter-spacing: 0;
}
.discussion > span {
  font-size: 10px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
}
.discussion > span > span {
  display: flex;
  align-items: center;
  gap: 4px;
}
.discussion .icon {
  width: 12px;
  height: 12px;
}
.discussion:hover h3 {
  color: var(--accent);
}
.side-pro {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px dashed #d4d5d9;
  border-radius: 8px;
  padding: 16px;
  font-size: 11px;
  font-weight: 500;
}
.side-pro .pro-label {
  font-size: 8px;
}
.side-pro small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  font-weight: 400;
  margin-top: 3px;
}
.side-pro > .icon {
  margin-left: auto;
  width: 15px;
  color: var(--muted);
}
.side-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding: 0 8px;
  color: var(--muted);
  font-size: 10px;
}
.side-links span {
  width: 100%;
}
.feed-end {
  padding: 28px 5px;
  text-align: center;
  color: var(--muted);
  font-size: 11px;
}
.load-more {
  display: flex;
  margin: 24px 0;
  width: 100%;
}
.site-footer {
  display: flex;
  gap: 24px;
  align-items: center;
  border-top: 1px solid #e1e3e8;
  margin-top: 48px;
  padding: 26px 0;
  font-size: 11px;
  color: var(--muted);
}
.site-footer p {
  font-size: 11px;
}
.site-footer > div {
  margin-left: auto;
  display: flex;
  gap: 18px;
}
.footer-brand {
  font-weight: 700;
  color: var(--muted);
}
.footer-brand span {
  font-weight: 400;
  margin-left: 12px;
  color: var(--muted);
}
.active-filters {
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
  font-size: 12px;
}
.active-filters a {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
}
.active-filters .icon {
  width: 13px;
}
.empty-state {
  text-align: center;
  padding: 70px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.empty-state > .icon {
  width: 34px;
  height: 34px;
  color: var(--muted);
  margin-bottom: 18px;
}
.empty-state h2 {
  font-size: 21px;
  margin-bottom: 12px;
}
.empty-state p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 24px;
}
.feed.grid-view {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid-view .post-card {
  flex-direction: column;
  gap: 17px;
}
.grid-view .post-cover {
  width: 100%;
  height: 170px;
  flex-basis: auto;
  min-height: 0;
}
.grid-view .post-cover img {
  aspect-ratio: 1.6;
}
.grid-view .post-meta time,
.grid-view .meta-dot {
  display: none;
}
.grid-view .post-actions > .button {
  display: none;
}
.grid-view .post-card h2 {
  min-height: 46px;
}
.grid-view .author > span:not(.avatar) {
  max-width: 90px;
}
.narrow {
  max-width: 850px;
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 30px;
}
.detail-grid {
  padding-top: 26px;
  grid-template-columns: minmax(0, 1fr) 292px;
  grid-template-areas: "publication sidebar" "comments .";
}
.detail-grid > .detail-box {
  grid-area: publication;
}
.detail-grid > .sidebar {
  grid-area: sidebar;
  min-width: 0;
}
.detail-grid > .comments-box {
  grid-area: comments;
  margin-top: 0;
  min-width: 0;
}
.search:focus-within {
  outline: 3px solid var(--accent-dark);
  outline-offset: 3px;
}
.detail-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 30px;
}
.detail-meta {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 17px;
}
.detail-meta .vote-control {
  margin-left: auto;
}
.detail-tools {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
.detail-tools > .vote-control {
  margin-left: 0;
}
.publication-actions {
  position: static;
}
.publication-actions > summary {
  list-style: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  color: var(--muted);
}
.publication-actions > summary::-webkit-details-marker {
  display: none;
}
.publication-actions > summary:hover,
.publication-actions[open] > summary {
  color: var(--accent);
  background: var(--tint);
}
.publication-actions-popover {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 50;
  width: 190px;
  max-width: calc(100vw - 48px);
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--paper);
  box-shadow: 0 8px 28px #25292f1a;
}
.publication-actions-popover > a,
.publication-actions-popover > button {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 42px;
  padding: 10px;
  text-align: left;
  font-size: 13px;
  border-radius: 5px;
}
.publication-actions-popover > button {
  color: #b13c31;
}
.publication-actions-popover > a:hover,
.publication-actions-popover > button:hover {
  background: var(--tint);
}
@media (pointer: coarse) {
  .publication-actions > summary {
    width: 44px;
    height: 44px;
  }
  .publication-actions-popover > a,
  .publication-actions-popover > button {
    min-height: 44px;
  }
}
.detail-box h1 {
  font-size: 30px;
  line-height: 1.3;
  margin-bottom: 16px;
}
.detail-summary {
  font-size: 16px;
  line-height: 1.7;
  color: #656b73;
}
.detail-author {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 11px;
  color: var(--muted);
  padding: 22px 0;
}
.detail-author .avatar {
  width: 28px;
  height: 28px;
  flex-basis: 28px;
}
.detail-author .author {
  font-size: 12px;
}
.detail-author .text-button {
  margin-left: auto;
}
.detail-cover {
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 28px;
  max-height: 440px;
  background: #f4f5f7;
}
.detail-cover img {
  width: 100%;
  height: 100%;
  max-height: 440px;
  object-fit: cover;
}
.prose {
  font-size: 15px;
  line-height: 1.85;
  overflow-wrap: anywhere;
  color: #555e67;
}
.prose p {
  margin-bottom: 18px;
}
.prose h2 {
  font-size: 21px;
  color: var(--ink);
  margin: 28px 0 14px;
}
.prose h2:first-child {
  margin-top: 0;
}
.prose code {
  background: #f2f4f6;
  border-radius: 4px;
  padding: 2px 5px;
  font-size: 13px;
}
.prose pre {
  overflow: auto;
  padding: 18px;
  background: #f2f4f6;
  border-radius: 8px;
  font-size: 13px;
  margin: 20px 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.prose pre code {
  padding: 0;
}
.prose .list-line {
  padding-left: 19px;
  position: relative;
  margin-bottom: 8px;
}
.list-line::before {
  content: "•";
  position: absolute;
  left: 1px;
  color: var(--muted);
}
.detail-box > .post-tags {
  margin-top: 28px;
}
.detail-bottom {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 24px;
}
.detail-bottom > .icon-button:last-child,
.delete-link {
  margin-left: auto;
}
.project-links > .button {
  margin-bottom: 10px;
}
.author-card {
  display: flex;
  align-items: center;
  flex-direction: column;
  padding: 24px 0 4px;
  gap: 7px;
  border-top: 1px solid var(--line);
  margin-top: 16px;
  font-size: 14px;
}
.author-card .avatar {
  width: 48px;
  height: 48px;
  font-size: 18px;
  flex-basis: 48px;
  margin-bottom: 5px;
}
.author-card > a {
  font-size: 12px;
  color: var(--muted);
}
.side-box > .muted {
  font-size: 12px;
  line-height: 1.8;
  margin-bottom: 14px;
}
.muted {
  color: var(--muted);
}
.comments-box {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px;
  margin-top: 20px;
  scroll-margin-top: 20px;
}
.comments-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.comments-heading h2 {
  font-size: 20px;
}
.comments-heading h2 span {
  color: #656b73;
  font-size: 16px;
  margin-left: 6px;
}
.comments-heading > span {
  font-size: 11px;
  color: var(--muted);
}
.comment-login {
  display: flex;
  gap: 12px;
  align-items: center;
  background: #f6f7f9;
  border-radius: 8px;
  padding: 16px;
}
.comment-login .avatar {
  width: 35px;
  height: 35px;
  flex-basis: 35px;
  font-size: 14px;
}
.comment-login strong {
  font-size: 13px;
}
.comment-login p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}
.comment-login .button {
  margin-left: auto;
}
.comment {
  display: flex;
  gap: 12px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 20px;
}
.comment > .avatar {
  width: 30px;
  height: 30px;
  flex-basis: 30px;
  font-size: 11px;
}
.comment-content {
  flex: 1;
  min-width: 0;
}
.comment-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  margin-bottom: 10px;
}
.comment-meta > a {
  min-width: 0;
  overflow-wrap: anywhere;
  max-width: 100%;
  font-weight: 650;
  color: #525b65;
}
.comment-meta time {
  font-size: 10px;
  color: #656b73;
}
.comment-meta .text-button {
  margin-left: auto;
  font-size: 10px;
}
.comment-body {
  font-size: 13px;
  white-space: pre-wrap;
  line-height: 1.8;
}
.comment-content > .text-button {
  margin-top: 10px;
  font-size: 11px;
}
.reply-reference {
  overflow-wrap: anywhere;
  max-width: 100%;
  font-size: 11px;
  color: #656b73;
  margin: 6px 0;
  display: block;
}
.no-comments {
  font-size: 13px;
  padding: 24px 0;
}
.comment-form-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
}
.comment-form-bottom > span {
  font-size: 10px;
  color: var(--muted);
}
.comment-form textarea {
  font-size: 13px;
}
.comment-form > label {
  font-size: 13px;
  font-weight: 500;
}
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 4px 0 28px;
}
.gallery-image {
  padding: 0;
  overflow: hidden;
  border-radius: 8px;
  min-height: 65px;
  background: #f5f6f8;
}
.gallery-image img {
  width: 100%;
  height: 100%;
  max-height: 120px;
  object-fit: cover;
}
.gallery-main {
  grid-column: 1/-1;
}
.gallery-main img {
  height: auto;
  max-height: 520px;
  object-fit: contain;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip {
  position: fixed;
  top: -50px;
  left: 20px;
  z-index: 100;
  background: #fff;
  padding: 10px;
}
.skip:focus {
  top: 10px;
}
.text-button {
  color: var(--muted);
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  text-align: left;
}
.text-button:hover {
  color: var(--accent);
}
.text-button .icon {
  width: 15px;
}
.badge {
  font-size: 10px;
  background: #f8edda;
  color: #977a41;
  padding: 2px 6px;
  border-radius: 4px;
}
.button-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 14px;
}
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #303b34;
  color: #fff;
  padding: 13px 20px;
  font-size: 13px;
  z-index: 200;
  border-radius: 9px;
  box-shadow: 0 5px 25px #0002;
  max-width: min(500px, 90vw);
  text-align: center;
}
.toast.error {
  background: #89453c;
}
.dialog {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 34px;
  width: min(450px, calc(100% - 32px));
  color: var(--ink);
  box-shadow: 0 20px 100px #0003;
}
.dialog::backdrop,
.image-dialog::backdrop {
  background: #22293280;
  backdrop-filter: blur(3px);
}
.dialog-close {
  position: absolute;
  right: 12px;
  top: 12px;
}
.dialog h2 {
  font-size: 23px;
  margin: 13px 0;
}
.dialog > p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.8;
  margin: 16px 0 24px;
}
.confirm-dialog {
  width: min(340px, calc(100% - 32px));
  padding: 22px;
  border-radius: 12px;
}
.confirm-dialog h2 {
  margin: 0 0 8px;
  font-size: 20px;
}
.confirm-dialog > p {
  margin: 0 0 18px;
  line-height: 1.5;
}
.confirm-dialog .button-row {
  gap: 8px;
  margin: 0;
}
.confirm-dialog .button {
  min-height: 36px;
  padding: 8px 14px;
  font-size: 12px;
}
.dialog > .button + .button {
  margin-top: 10px;
}
.dialog-symbol {
  display: flex;
  width: 44px;
  height: 44px;
  background: #f0f2eb;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: var(--muted);
}
.image-dialog {
  padding: 16px;
  background: #fff;
  border: 0;
  border-radius: 12px;
  width: min(1200px, 96vw);
  max-height: 94vh;
  overflow: auto;
}
.image-dialog > button {
  position: sticky;
  top: 0;
  margin-left: auto;
  display: flex;
  background: #fff;
  box-shadow: 0 2px 8px #0001;
  margin-bottom: 6px;
}
.image-dialog img {
  margin: auto;
  max-height: 80vh;
  object-fit: contain;
}
.account-menu {
  position: relative;
}
.account-menu summary {
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  font-size: 12px;
  list-style: none;
}
.account-menu summary::-webkit-details-marker {
  display: none;
}
.account-menu summary .icon {
  width: 13px;
}
.menu-popover {
  position: absolute;
  top: 38px;
  right: 0;
  background: #fff;
  min-width: 180px;
  box-shadow: 0 5px 35px #0001;
  border: 1px solid var(--line);
  padding: 7px;
  border-radius: 9px;
  z-index: 50;
  display: flex;
  flex-direction: column;
}
.menu-popover > a,
.menu-popover > button {
  text-align: left;
  padding: 9px 12px;
  font-size: 12px;
  border-radius: 5px;
}
.menu-popover > a:hover,
.menu-popover > button:hover {
  background: #f4f5f7;
}
.verify-bar {
  background: #fff2dc;
  color: #906e31;
  padding: 10px 15px;
  font-size: 11px;
  border-radius: 0 0 8px 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.verify-bar button {
  color: #906e31;
  font-weight: 600;
  font-size: 11px;
}
label {
  display: block;
  font-weight: 600;
  font-size: 12px;
  margin-bottom: 18px;
}
label > input,
label > textarea,
label > select {
  margin-top: 7px;
}
input:not([type="radio"]):not([type="file"]),
textarea,
select {
  display: block;
  border: 1px solid #dfe2e7;
  border-radius: 7px;
  background: white;
  color: var(--ink);
  padding: 11px 13px;
  width: 100%;
  font-size: 14px;
  min-width: 0;
  transition: border-color 0.15s;
}
input:focus,
textarea:focus,
select:focus {
  border-color: #b4b9c2;
}
textarea {
  resize: vertical;
  line-height: 1.7;
}
label > small,
.form-help {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: #656b73;
  margin-top: 7px;
  line-height: 1.7;
}
fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 22px;
}
legend {
  padding: 0;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 12px;
  width: 100%;
}
.optional {
  font-size: 10px;
  font-weight: 400;
  color: var(--muted);
  margin-left: 5px;
}
.form-error {
  font-size: 12px;
  color: #b13c31;
  margin: 12px 0;
}
.form-error:empty {
  display: none;
}
.form-success {
  font-size: 12px;
  color: #4b7957;
  margin: 12px 0;
}
.auth-card {
  width: min(430px, 100%);
  margin: 65px auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 34px;
}
.auth-brand {
  font-size: 15px;
  font-weight: 750;
  letter-spacing: -0.4px;
}
.auth-brand > span {
  font-weight: 400;
  font-size: 10px;
  letter-spacing: 0;
  color: var(--muted);
}
.auth-card h1 {
  font-size: 29px;
  margin: 28px 0 10px;
  letter-spacing: -1px;
}
.auth-card > .muted {
  font-size: 13px;
  line-height: 1.8;
  margin-bottom: 25px;
}
.password-field {
  position: relative;
  display: block;
  margin-top: 7px;
}
.password-field input {
  padding-right: 88px !important;
}
.password-field button {
  position: absolute;
  right: 12px;
  top: 14px;
  font-size: 10px;
}
.auth-links {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 22px;
  font-size: 11px;
  color: var(--muted);
}
.auth-links > a:last-child,
.auth-note > a {
  color: var(--accent);
}
.auth-note {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  margin-top: 20px;
}
.auth-card .form-help {
  text-align: center;
  margin-top: 24px;
  font-size: 10px;
}
.editor-heading {
  padding: 28px 0;
}
.back-link {
  font-size: 12px;
  color: var(--muted);
}
.editor-heading h1 {
  font-size: 30px;
  margin: 22px 0 8px;
}
.editor-heading p {
  font-size: 13px;
}
.editor-layout {
  display: grid;
  grid-template-columns: minmax(0, 800px) minmax(200px, 1fr);
  gap: 48px;
}
.editor-kind {
  display: flex;
  gap: 12px;
  margin-bottom: 26px;
}
.editor-kind label {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 10px 18px;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
}
.editor-kind label:has(:checked) {
  border-color: #d6b5f5;
  background: var(--tint);
  color: var(--accent);
}
.editor-kind .icon {
  width: 17px;
  height: 17px;
}
.editor-kind label:has(input:focus-visible) {
  outline: 3px solid var(--accent-focus);
  outline-offset: 3px;
}
.form-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.editor-form fieldset[data-project-field] {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.body-editor {
  font-family: inherit;
  font-size: 14px !important;
  min-height: 250px;
}
.editor-footer {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 22px;
  gap: 12px;
}
.upload-area {
  border: 1px dashed #d2d7df;
  border-radius: 8px;
  background: #fafbfc;
}
.upload-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 26px;
  margin: 0;
  cursor: pointer;
}
.upload-label .icon {
  width: 25px;
  height: 25px;
  color: var(--muted);
}
.upload-label strong {
  font-size: 12px;
  font-weight: 550;
}
.upload-label span {
  font-size: 10px;
  color: #656b73;
  font-weight: 400;
}
.upload-area:focus-within {
  outline: 3px solid var(--accent-focus);
  outline-offset: 2px;
}
.upload-previews {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}
.upload-preview {
  position: relative;
  width: 115px;
  height: 80px;
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow: hidden;
}
.upload-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.upload-preview button {
  position: absolute;
  top: 3px;
  right: 3px;
  background: #fffffff0;
  width: 23px;
  height: 23px;
}
.upload-preview button .icon {
  width: 13px;
}
.upload-status {
  font-size: 11px;
  color: var(--muted);
  margin-top: 8px;
}
.editor-tips {
  padding: 28px 0;
}
.editor-tips h2 {
  font-size: 27px;
  line-height: 1.3;
  letter-spacing: -0.8px;
  margin-top: 17px;
}
.editor-tips ol {
  list-style: none;
  counter-reset: tips;
  padding: 0;
  margin: 32px 0;
}
.editor-tips li {
  counter-increment: tips;
  position: relative;
  padding-left: 32px;
  margin-bottom: 24px;
  font-size: 12px;
}
.editor-tips li::before {
  content: counter(tips, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  color: var(--muted);
  font-size: 11px;
}
.editor-tips strong {
  font-weight: 600;
}
.editor-tips p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
  margin-top: 7px;
}
.editor-limit {
  border-top: 1px solid #dfe3e5;
  padding-top: 20px;
  color: var(--muted);
  font-size: 12px;
  line-height: 2;
}
.editor-limit b {
  color: #68716e;
  font-weight: 600;
  margin-left: 5px;
}
.editor-limit a {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 7px;
  color: var(--muted);
}
.editor-limit .icon {
  width: 13px;
}
.settings {
  margin: 40px 0;
}
.settings h1 {
  font-size: 27px;
  margin-bottom: 8px;
}
.settings > .muted {
  font-size: 13px;
  margin: 12px 0 26px;
}
.settings h2 {
  font-size: 18px;
}
.settings hr,
hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 26px 0;
}
.info-page {
  margin: 40px 0;
  padding: 42px;
}
.info-page h1 {
  font-size: 34px;
  margin: 18px 0 25px;
}
.info-page .lead {
  font-size: 18px;
}
.info-page .button {
  margin: 10px 0;
}
.plan-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 26px 0;
}
.plan-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 22px;
}
.plan-card h2 {
  font-size: 20px;
}
.plan-card ul {
  font-size: 12px;
  padding-left: 17px;
  line-height: 2.2;
}
.pro-plan {
  background: #f9f7f2;
  border-color: #eae4d7;
}
.coming-soon {
  font-size: 11px;
  color: #a08c66;
  display: block;
  padding-top: 12px;
}
.profile-heading {
  display: flex;
  gap: 23px;
  align-items: center;
  margin: 35px 0;
}
.avatar.large {
  width: 72px;
  height: 72px;
  flex-basis: 72px;
  font-size: 24px;
}
.profile-heading h1 {
  font-size: 28px;
  margin: 8px 0;
}
.profile-heading p {
  font-size: 13px;
  line-height: 1.8;
}
.profile-heading > .button {
  margin-left: auto;
}
.profile-section-title {
  font-size: 20px;
  margin: 25px 0;
}
.profile-feed {
  max-width: 924px;
}
.error-page {
  margin: 60px 0;
}
.error-code {
  color: var(--muted);
  font-size: 70px;
  font-weight: 700;
  letter-spacing: -3px;
  display: block;
  margin-bottom: 20px;
}
.error-page h1 {
  font-size: 28px;
  margin-bottom: 16px;
}
.admin-heading {
  margin: 35px 0;
}
.admin-heading h1 {
  font-size: 30px;
  margin-bottom: 12px;
}
.admin-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 24px;
}
.admin-grid h2 {
  font-size: 18px;
  margin-bottom: 20px;
}
.admin-row {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.admin-row p {
  margin: 10px 0;
}
.admin-row small {
  font-size: 11px;
  color: var(--muted);
}
#reply-notice {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 12px;
  color: #7c8c9e;
}
@media (min-width: 1450px) {
  .shell {
    width: min(1280px, calc(100% - 80px));
  }
  .post-cover {
    width: 210px;
    flex-basis: 210px;
  }
  .post-card {
    padding: 20px;
  }
  .post-card h2 {
    font-size: 18px;
  }
}
@media (max-width: 1150px) {
  .header-main {
    gap: 25px;
  }
  .header-actions {
    gap: 17px;
  }
  .content-grid {
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 18px;
  }
  .post-card {
    gap: 15px;
    padding: 15px;
  }
  .post-cover {
    width: 150px;
    flex-basis: 150px;
  }
  .post-meta {
    gap: 5px;
  }
  .post-meta .demo-label {
    display: none;
  }
  .post-actions {
    gap: 4px;
  }
  .author > span:not(.avatar) {
    max-width: 95px;
  }
  .side-box {
    padding: 18px;
  }
  .welcome-box h2 {
    font-size: 22px;
  }
  .spotlight-grid {
    gap: 15px;
  }
  .spotlight-card + .spotlight-card {
    padding-left: 15px;
  }
  .spotlight-cover {
    width: 53px;
    flex-basis: 53px;
    height: 60px;
  }
  .post-card h2 {
    font-size: 16px;
  }
  .post-tags > a:nth-last-child(1) {
    display: none;
  }
  .intro-aside {
    display: none;
  }
  .editor-layout {
    gap: 28px;
    grid-template-columns: minmax(0, 1fr) 240px;
  }
  .detail-grid {
    grid-template-columns: minmax(0, 1fr) 260px;
  }
  .shell.narrow {
    max-width: 850px;
  }
  .admin-grid {
    grid-template-columns: minmax(0, 1fr) 320px;
  }
}
@media (max-width: 940px) {
  .shell {
    width: calc(100% - 36px);
  }
  .header-main {
    height: 74px;
    gap: 20px;
  }
  .brand {
    font-size: 25px;
  }
  .brand small {
    display: none;
  }
  .header-actions {
    gap: 14px;
  }
  .publish-button {
    padding: 10px 13px;
  }
  .nav-main {
    gap: 26px;
  }
  .content-grid {
    grid-template-columns: 1fr;
  }
  .detail-grid {
    grid-template-areas: "publication" "sidebar" "comments";
  }
  .sidebar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
  .sidebar .side-links,
  .sidebar .side-pro {
    display: none;
  }
  .sidebar .discussions-box {
    grid-column: 2;
    grid-row: 1/3;
  }
  .post-cover {
    width: 195px;
    flex-basis: 195px;
  }
  .post-card {
    padding: 18px;
    gap: 20px;
  }
  .post-card h2 {
    font-size: 18px;
  }
  .post-summary {
    font-size: 13px;
  }
  .author > span:not(.avatar) {
    max-width: 160px;
  }
  .spotlight-grid {
    grid-template-columns: 1fr 1fr;
  }
  .spotlight-card:nth-child(n + 3) {
    display: none;
  }
  .page-intro h1 {
    font-size: 34px;
  }
  .detail-grid .sidebar {
    grid-template-columns: 1fr 1fr;
  }
  .site-footer p {
    display: none;
  }
  .editor-layout {
    grid-template-columns: 1fr;
  }
  .editor-tips {
    display: none;
  }
  .editor-form {
    max-width: 800px;
  }
  .grid-view .post-meta time {
    display: inline;
  }
  .admin-grid {
    grid-template-columns: 1fr;
  }
  .search kbd {
    display: none;
  }
  .account-menu summary > span:not(.avatar) {
    display: none;
  }
}
@media (max-width: 620px) {
  :root {
    font-size: 14px;
  }
  .shell {
    width: calc(100% - 28px);
  }
  .header-main {
    height: auto;
    min-height: 70px;
    flex-wrap: wrap;
    gap: 15px;
    padding: 15px 0;
  }
  .brand {
    font-size: 25px;
    gap: 8px;
  }
  .brand-mark {
    width: 32px;
    height: 32px;
    font-size: 22px;
    border-radius: 8px;
  }
  .header-actions {
    gap: 13px;
  }
  .header-actions .login-link {
    font-size: 12px;
  }
  .login-link .icon {
    display: none;
  }
  .publish-button {
    width: 34px;
    height: 34px;
    min-height: 0;
    padding: 7px;
    border-radius: 7px;
  }
  .publish-button span {
    display: none;
  }
  .publish-button .icon {
    width: 20px;
    height: 20px;
  }
  .search {
    order: 3;
    flex: 1 1 100%;
    max-width: none;
    height: 34px;
    padding: 0 10px;
  }
  .search input {
    padding: 0 !important;
    font-size: 12px !important;
    background: transparent !important;
    border: 0 !important;
  }
  .nav {
    height: 45px;
    overflow-x: auto;
    scrollbar-width: none;
    white-space: nowrap;
  }
  .nav-main {
    gap: 23px;
    min-width: max-content;
  }
  .nav-main > a {
    font-size: 12px;
  }
  .nav-main .icon {
    width: 13px;
  }
  .nav-flame {
    width: 13px;
    height: 16px;
  }
  .nav-about {
    display: none;
  }
  .page-intro {
    padding: 26px 0 18px;
  }
  .intro-kicker {
    font-size: 8px;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
  }
  .page-intro h1 {
    font-size: 30px;
    letter-spacing: -1px;
  }
  .page-intro p {
    font-size: 12px;
    line-height: 1.7;
    max-width: 290px;
  }
  .demo-notice {
    font-size: 9px;
    line-height: 1.7;
    display: block;
    margin-bottom: 14px;
    max-width: 330px;
  }
  .demo-notice a {
    display: none;
  }
  .spotlight {
    padding: 14px;
    margin-bottom: 18px;
  }
  .section-label {
    gap: 8px;
    margin-bottom: 13px;
  }
  .section-label h2 {
    font-size: 12px;
  }
  .promotion-label {
    font-size: 8px;
  }
  .section-label > a {
    font-size: 0;
    gap: 0;
  }
  .section-label > a .icon {
    width: 15px;
  }
  .spotlight-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 15px;
    scrollbar-width: none;
  }
  .spotlight-card {
    min-width: 240px;
    scroll-snap-align: start;
  }
  .spotlight-card + .spotlight-card {
    padding-left: 0;
    border-left: 0;
  }
  .spotlight-card:nth-child(n + 3) {
    display: flex;
  }
  .spotlight-cover {
    width: 52px;
    height: 52px;
    flex-basis: 52px;
  }
  .spotlight-card strong {
    font-size: 12px;
  }
  .spotlight-card span {
    font-size: 10px;
    max-width: 150px;
  }
  .sort-tabs {
    gap: 18px;
  }
  .sort-tabs > a {
    font-size: 11px;
    gap: 5px;
    padding-bottom: 10px;
  }
  .sort-tabs .icon {
    width: 14px;
    height: 14px;
  }
  .view-switch {
    gap: 0;
  }
  .view-switch .icon-button {
    width: 26px;
    height: 26px;
  }
  .view-switch .icon {
    width: 15px;
  }
  .feed-toolbar {
    height: 39px;
    margin-bottom: 12px;
  }
  .feed {
    gap: 12px;
  }
  .post-card {
    display: grid;
    grid-template-columns: 94px minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
    position: relative;
  }
  .post-cover {
    width: 94px;
    min-height: 94px;
    height: 94px;
    flex-basis: auto;
    border-radius: 7px;
    grid-row: 1;
    align-self: start;
    margin-top: 30px;
  }
  .post-cover img {
    aspect-ratio: 1;
    object-fit: cover;
  }
  .post-content {
    display: contents;
  }
  .post-meta {
    grid-column: 1/-1;
    grid-row: 1;
    height: 24px;
    align-self: start;
    margin: -3px 0 0;
    gap: 6px;
    font-size: 9px;
    padding-right: 0;
    position: relative;
  }
  .post-meta > .vote-control {
    height: 25px;
  }
  .vote-control button {
    width: 24px;
    height: 23px;
  }
  .vote-control strong {
    font-size: 12px;
  }
  .post-card h2 {
    grid-column: 2;
    grid-row: 1;
    margin: 31px 0 0;
    font-size: 15px;
    line-height: 1.4;
    align-self: start;
    min-height: 0;
    letter-spacing: -0.25px;
  }
  .post-summary {
    grid-column: 2;
    font-size: 11px;
    line-height: 1.65;
    margin: 0;
    margin-top: -30px;
    min-height: 36px;
    align-self: start;
    -webkit-line-clamp: 2;
  }
  .post-tags {
    grid-column: 1/-1;
    gap: 5px;
    margin-top: 0;
  }
  .post-tags > a,
  .stage {
    font-size: 9px;
    padding: 3px 6px;
  }
  .post-tags > a:nth-last-child(1) {
    display: inline-block;
  }
  .post-bottom {
    grid-column: 1/-1;
    margin-top: 1px;
    padding-top: 10px;
    border-top: 1px solid #f0f1f3;
    gap: 5px;
  }
  .author {
    font-size: 10px;
    gap: 5px;
  }
  .author > span:not(.avatar) {
    max-width: 100px;
  }
  .avatar {
    width: 21px;
    height: 21px;
    flex-basis: 21px;
    font-size: 8px;
  }
  .post-actions {
    gap: 4px;
  }
  .post-actions > .button {
    font-size: 10px;
    min-height: 29px;
    padding: 5px 8px;
    gap: 5px;
  }
  .post-actions > .button .icon {
    width: 13px;
    height: 13px;
  }
  .comment-link {
    font-size: 10px;
    padding: 4px;
    gap: 4px;
  }
  .comment-link .icon {
    width: 14px;
  }
  .post-actions .icon-button {
    width: 22px;
    height: 26px;
  }
  .post-actions .icon-button .icon {
    width: 14px;
  }
  .sidebar {
    display: none;
  }
  .feed.grid-view {
    grid-template-columns: 1fr;
  }
  .grid-view .post-card {
    display: flex;
    gap: 12px;
  }
  .grid-view .post-content {
    display: block;
  }
  .grid-view .post-cover {
    width: 100%;
    height: 190px;
    min-height: 190px;
    margin: 0;
  }
  .grid-view .post-meta {
    position: static;
    margin: 0 0 10px;
  }
  .grid-view .post-card h2 {
    min-height: 0;
    margin: 0 0 8px;
    font-size: 18px;
  }
  .grid-view .post-summary {
    margin: 0 0 10px;
    min-height: 0;
    font-size: 12px;
  }
  .grid-view .post-bottom {
    margin-top: 12px;
  }
  .grid-view .post-actions > .button {
    display: inline-flex;
  }
  .grid-view .post-meta time {
    display: inline;
  }
  .grid-view .meta-dot {
    display: inline;
  }
  .site-footer {
    flex-wrap: wrap;
    gap: 12px;
    padding: 22px 0;
    margin-top: 30px;
    font-size: 10px;
  }
  .site-footer > div {
    gap: 13px;
  }
  .feed-end {
    font-size: 10px;
    padding: 20px 0;
  }
  .narrow {
    width: calc(100% - 28px);
  }
  .auth-card {
    margin: 28px 0;
    padding: 24px;
    width: 100%;
  }
  .auth-card h1 {
    font-size: 27px;
  }
  .auth-card > .muted {
    font-size: 12px;
  }
  .auth-links {
    font-size: 11px;
  }
  .verify-bar {
    display: block;
    font-size: 10px;
    line-height: 1.8;
  }
  .verify-bar button {
    display: block;
    margin-top: 3px;
    font-size: 10px;
  }
  .detail-grid {
    padding-top: 18px;
  }
  .detail-box {
    padding: 19px;
  }
  .detail-box h1 {
    font-size: 25px;
    letter-spacing: -0.8px;
  }
  .detail-summary {
    font-size: 14px;
  }
  .detail-meta {
    flex-wrap: wrap;
    gap: 6px;
  }
  .detail-meta .demo-label {
    font-size: 8px;
  }
  .detail-author {
    flex-wrap: wrap;
    gap: 10px;
    padding: 18px 0;
  }
  .detail-author .text-button {
    font-size: 10px;
  }
  .detail-cover {
    margin-bottom: 20px;
  }
  .prose {
    font-size: 14px;
  }
  .prose h2 {
    font-size: 19px;
  }
  .detail-bottom {
    gap: 7px;
  }
  .detail-bottom .button {
    font-size: 11px;
    padding: 9px 11px;
  }
  .detail-bottom .delete-link {
    font-size: 10px;
  }
  .comments-box {
    padding: 18px;
  }
  .comments-heading h2 {
    font-size: 18px;
  }
  .comment-login {
    padding: 12px;
    gap: 10px;
    flex-wrap: wrap;
  }
  .comment-login .avatar {
    display: none;
  }
  .comment-login p {
    font-size: 10px;
    max-width: 220px;
  }
  .comment-login .button {
    font-size: 11px;
  }
  .comment-meta {
    gap: 8px;
    flex-wrap: wrap;
  }
  .comment-meta .text-button {
    font-size: 9px;
  }
  .comment-body {
    font-size: 12px;
  }
  .comment {
    gap: 9px;
  }
  .comment > .avatar {
    width: 24px;
    height: 24px;
    flex-basis: 24px;
    font-size: 9px;
  }
  .comment-form-bottom > span {
    font-size: 9px;
    max-width: 150px;
  }
  .comment-form-bottom .button {
    font-size: 11px;
  }
  .detail-grid .sidebar {
    display: none;
  }
  .detail-grid {
    grid-template-areas: "publication" "comments";
  }
  .detail-grid .comment-login {
    display: none;
  }
  .detail-grid .sidebar > section + section {
    display: none;
  }
  .detail-grid .sidebar .author-card {
    display: none;
  }
  .editor-heading h1 {
    font-size: 27px;
  }
  .editor-heading p {
    font-size: 12px;
  }
  .editor-form {
    padding: 20px;
  }
  .editor-kind {
    gap: 8px;
  }
  .editor-kind label {
    padding: 9px 13px;
    font-size: 12px;
  }
  .form-columns {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .editor-footer .button {
    font-size: 11px;
    padding: 10px;
  }
  .editor-footer {
    gap: 10px;
  }
  .editor-heading {
    padding: 20px 0;
  }
  .panel {
    padding: 22px;
  }
  .info-page {
    margin: 26px 0;
    padding: 24px;
  }
  .info-page h1 {
    font-size: 28px;
  }
  .info-page .lead {
    font-size: 16px;
  }
  .plan-grid {
    grid-template-columns: 1fr;
  }
  .settings {
    margin: 26px 0;
  }
  .profile-heading {
    flex-wrap: wrap;
    gap: 16px;
    margin: 25px 0;
  }
  .avatar.large {
    width: 50px;
    height: 50px;
    flex-basis: 50px;
    font-size: 18px;
  }
  .profile-heading h1 {
    font-size: 24px;
  }
  .profile-heading > .button {
    margin-left: 0;
    font-size: 11px;
  }
  .profile-heading p {
    font-size: 11px;
  }
  .error-page h1 {
    font-size: 24px;
  }
  .admin-grid .button-row {
    flex-wrap: wrap;
  }
}
@media (max-width: 620px) {
  .post-card {
    grid-template-rows: auto auto auto auto auto;
    row-gap: 10px;
  }
  .post-cover {
    grid-column: 1;
    grid-row: 2 / span 2;
    margin: 0;
    height: 104px;
    min-height: 104px;
  }
  .post-meta {
    grid-column: 1/-1;
    grid-row: 1;
    margin: 0;
  }
  .post-card h2 {
    grid-column: 2;
    grid-row: 2;
    margin: 0;
  }
  .post-summary {
    grid-column: 2;
    grid-row: 3;
    margin: 0;
    min-height: 0;
  }
  .post-tags {
    grid-row: 4;
  }
  .post-bottom {
    grid-row: 5;
  }
  .grid-view .post-cover {
    margin: 0;
  }
  .grid-view .post-card h2 {
    margin: 0 0 8px;
  }
}
.search input[type="search"] {
  background: transparent;
  border: 0;
  padding: 0;
  font-size: 12px;
  box-shadow: none;
  border-radius: 0;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
/* Compact feed: publication, author, date and discussion. */
.feed-page {
  padding-top: 26px;
}
.feed-heading {
  font-size: 25px;
  margin-top: 28px;
}
.feed-heading + .feed-page {
  padding-top: 18px;
}
.post-content {
  display: flex;
  flex-direction: column;
}
.post-meta {
  margin-bottom: 12px;
  height: 29px;
}
.post-meta .author {
  font-size: 11px;
}
.post-meta > .vote-control {
  margin-left: auto;
}
.post-cover {
  min-height: 156px;
  height: 156px;
}
.post-cover img {
  object-fit: contain;
  aspect-ratio: auto;
}
.post-summary {
  margin-bottom: 0;
}
.post-bottom {
  justify-content: flex-end;
  margin-top: auto;
  padding-top: 12px;
}
.post-card h2 {
  margin-bottom: 9px;
}
.search {
  padding-inline: 14px;
}
.search input[type="search"] {
  padding: 0;
}
.auth-card h1.sr-only {
  margin: 0;
}
.auth-card h1:not(.sr-only) {
  margin-top: 0;
  margin-bottom: 24px;
}
#auth-dialog h2 {
  margin: 0 0 24px;
}
@media (max-width: 620px) {
  .feed-page {
    padding-top: 16px;
  }
  .post-card {
    grid-template-rows: auto auto auto auto;
    gap: 10px 12px;
  }
  .post-content {
    display: contents;
  }
  .post-meta {
    grid-column: 1/-1;
    grid-row: 1;
    height: 26px;
    margin: 0;
  }
  .post-meta .author {
    font-size: 10px;
  }
  .post-meta .author > span:not(.avatar) {
    max-width: 115px;
  }
  .post-meta time {
    font-size: 9px;
  }
  .post-cover {
    grid-column: 1;
    grid-row: 2 / span 2;
    width: 94px;
    height: 90px;
    min-height: 90px;
    margin: 0;
  }
  .post-card h2 {
    grid-column: 2;
    grid-row: 2;
    font-size: 15px;
    margin: 0;
    align-self: start;
  }
  .post-summary {
    grid-column: 2;
    grid-row: 3;
    margin: 0;
    font-size: 11px;
  }
  .post-bottom {
    grid-column: 1/-1;
    grid-row: 4;
    padding-top: 6px;
    margin-top: 0;
    border: 0;
  }
  .post-meta > .vote-control {
    height: 25px;
  }
  .auth-card {
    padding-top: 26px;
  }
}
.feed-page {
  display: block;
}
.post-meta time {
  white-space: nowrap;
}
.brand {
  gap: 8px;
  letter-spacing: -1.3px;
}
.brand-flame {
  width: 34px;
  height: 41px;
  flex-shrink: 0;
}
.brand-light {
  font-weight: 450;
}
@media (max-width: 620px) {
  .brand-flame {
    width: 29px;
    height: 35px;
  }
}
body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
.site-header,
.site-footer {
  flex-shrink: 0;
}
body > main {
  flex: 1;
}
.editor-kind {
  flex-wrap: wrap;
}
/* One shared line box keeps the avatar, handle and timestamp aligned. */
.feed-toolbar {
  border-bottom: 0;
}
.post-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  min-height: 30px;
  font-size: 11px;
  line-height: 24px;
}
.post-meta .author {
  height: 24px;
  line-height: 24px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
}
.post-meta .author > span:not(.avatar) {
  line-height: 24px;
}
.post-meta .avatar {
  display: block;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  line-height: 24px;
  text-align: center;
}
.post-meta time,
.post-meta .meta-dot {
  display: block;
  height: 24px;
  line-height: 24px;
  font-size: 11px;
}
.vote-control strong.vibe-score {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 44px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.vibe-score [data-score] {
  font-size: 13px;
  line-height: 1;
}
.vibe-score img {
  width: 12px;
  height: 15px;
  flex-shrink: 0;
}
.vibe-score.cold img {
  filter: grayscale(1);
}
@media (max-width: 620px) {
  .post-meta {
    gap: 6px;
  }
  .post-meta .author,
  .post-meta time,
  .post-meta .meta-dot {
    font-size: 10px;
  }
  .post-meta .author > span:not(.avatar) {
    max-width: 105px;
  }
  .post-meta .author {
    gap: 5px;
  }
  .post-meta .avatar {
    width: 22px;
    height: 22px;
    flex-basis: 22px;
    line-height: 22px;
  }
}

.profile-feed {
  max-width: none;
  width: 100%;
}
.profile-bio {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.profile-heading > div {
  min-width: 0;
}
.editor-layout {
  display: block;
  margin-top: 28px;
}
.editor-form {
  width: 100%;
  max-width: none;
}
.editor-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.editor-images fieldset {
  min-width: 0;
  margin-bottom: 0;
}
.editor-images .upload-label {
  min-height: 112px;
  padding: 20px;
}
.editor-images .upload-previews {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.media-help {
  margin: 12px 0 0;
}
.vote-control button[data-value="-1"] {
  color: #e52536;
}
.vote-control button[data-value="1"] {
  color: #20a747;
}
.vote-control button.selected[data-value="-1"] {
  background: #ffedef;
  color: #d61528;
}
.vote-control button.selected[data-value="1"] {
  background: #e8f7ec;
  color: #138a36;
}
.vote-control button .icon {
  stroke-width: 2.8;
}
@media (max-width: 620px) {
  .editor-images {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

img.avatar {
  display: block;
  object-fit: cover;
  flex-shrink: 0;
}
.avatar-picker {
  margin-bottom: 24px;
}
.avatar-picker summary {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  list-style: none;
}
.avatar-options {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(54px, 1fr));
  gap: 8px;
  margin-top: 18px;
  max-height: 310px;
  overflow-y: auto;
  padding: 4px;
}
label.avatar-option {
  margin: 0;
  position: relative;
  cursor: pointer;
}
.avatar-option input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.avatar-option img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 3px solid transparent;
}
.avatar-option input:checked + img {
  border-color: var(--accent);
}
.avatar-option input:focus-visible + img {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
.notification-menu {
  position: relative;
}
.notification-bell {
  position: relative;
  width: 36px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  list-style: none;
  border-radius: 8px;
}
.notification-bell::-webkit-details-marker,
.avatar-picker summary::-webkit-details-marker {
  display: none;
}
.notification-bell:hover {
  background: #f4f5f7;
}
.notification-badge {
  position: absolute;
  top: 0;
  right: -6px;
  min-width: 17px;
  padding: 0 4px;
  border-radius: 9px;
  background: var(--accent);
  color: white;
  font-size: 9px;
  line-height: 17px;
  text-align: center;
}
.notification-popover {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  width: 390px;
  max-height: min(530px, 75dvh);
  overflow-y: auto;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 35px #222b391a;
  z-index: 40;
}
.notification-popover h2 {
  font-size: 16px;
  padding: 18px 20px 12px;
  margin: 0;
}
.notification-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 20px;
  border-top: 1px solid #f1f2f5;
}
.notification-item > div {
  min-width: 0;
  flex: 1;
}
.notification-item.unread {
  background: var(--tint);
}
.notification-item p {
  margin: 0 0 4px;
  font-size: 12px;
  line-height: 1.5;
}
.notification-name {
  font-weight: 600;
}
.notification-target {
  display: block;
  font-size: 13px;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.notification-item .notification-excerpt {
  color: var(--muted);
  margin: 5px 0 0;
  overflow-wrap: anywhere;
}
.notification-item time {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 6px;
}
.notification-empty {
  padding: 16px 20px 28px;
  color: var(--muted);
  font-size: 13px;
}
.notification-more {
  display: block;
  margin: 14px auto;
}
@media (max-width: 620px) {
  .notification-menu {
    position: static;
  }
  .notification-popover {
    left: 12px;
    right: 12px;
    top: 66px;
    width: auto;
  }
  .notification-bell {
    width: 28px;
  }
  .header-actions {
    gap: 10px;
  }
}

.comment-thread {
  min-width: 0;
}
.comment-thread .comment {
  border-bottom: 0;
  padding: 18px 0;
  transition: background-color 0.18s;
}
#comment-list > .comment-thread + .comment-thread {
  border-top: 1px solid var(--line);
}
.comment-replies:not(:empty) {
  margin-left: 30px;
  padding-left: 18px;
  border-left: 1px solid var(--line);
}
.depth-capped > .comment-replies {
  margin-left: 0;
  padding-left: 0;
  border-left: 0;
}
.comment-body {
  overflow-wrap: anywhere;
}
.comment-meta {
  flex-wrap: wrap;
  gap: 6px 10px;
}
.comment-meta > .comment-permalink {
  font-weight: 400;
}
.comment-actions {
  display: flex;
  gap: 18px;
  margin-top: 8px;
}
.comment-actions .text-button {
  font-size: 11px;
}
.comment-actions [data-action="reply"][aria-expanded="true"] {
  color: var(--accent);
}
.comment:focus {
  outline: none;
}
.comment:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.comment.comment-highlight {
  background: var(--tint);
  border-radius: 8px;
}
.reply-slot:empty,
.comment-replies:empty {
  display: none;
}
.reply-slot > .comment-form {
  padding: 14px;
  margin: 0 0 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fafbfc;
}
#reply-notice {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  align-items: center;
  margin-bottom: 10px;
  padding: 0;
  background: transparent;
}
#reply-notice > a {
  font-size: 12px;
  color: var(--accent);
}
#reply-notice > button {
  margin-left: auto;
}
#reply-notice .reply-quote {
  width: 100%;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}
.more-replies {
  margin: 0 0 16px;
  font-size: 12px;
  min-height: 28px;
}
.more-replies[aria-busy="true"]::before {
  content: "";
  width: 12px;
  height: 12px;
  border: 2px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: load-spin 0.75s linear infinite;
}
.comment-context {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 20px 0;
  font-size: 12px;
  color: var(--accent);
}
.feed-pagination {
  min-height: 54px;
  margin: 24px 0 0;
  display: grid;
  place-items: center;
}
.feed-pagination .load-more {
  margin: 0;
  width: 100%;
}
.feed-loader {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 54px;
}
.loading-spinner {
  width: 24px;
  height: 24px;
  border: 2px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: load-spin 0.75s linear infinite;
}
@keyframes load-spin {
  to {
    transform: rotate(360deg);
  }
}
@media (max-width: 620px) {
  .comment-replies:not(:empty) {
    margin-left: 12px;
    padding-left: 10px;
  }
  .mobile-depth-capped > .comment-replies {
    margin-left: 0;
    padding-left: 0;
    border: 0;
  }
  .reply-slot > .comment-form {
    padding: 10px;
  }
  .comment-actions .text-button {
    min-height: 30px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .comment-thread .comment {
    transition: none;
  }
  .loading-spinner,
  .more-replies[aria-busy="true"]::before {
    animation: none;
  }
}

.editor-form > fieldset,
.editor-images fieldset {
  border: 0;
  padding: 0;
}
.description-field {
  margin-bottom: 24px;
}
.description-field > label {
  display: block;
  margin: 0 0 8px;
  font-size: 13px;
}
.rich-editor-frame {
  border: 1px solid #dce0e5;
  border-radius: 8px;
  overflow: hidden;
}
.rich-editor-frame:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px #8125d914;
}
.format-toolbar {
  display: flex;
  gap: 4px;
  padding: 7px 9px;
  background: #fafbfc;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.format-toolbar button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 30px;
  border-radius: 5px;
  font-size: 13px;
}
.format-toolbar button:hover,
.format-toolbar button:focus-visible {
  background: var(--tint);
  color: var(--accent);
}
.format-toolbar button[aria-pressed="true"] {
  background: var(--accent);
  color: #fff;
  box-shadow: inset 0 -3px 0 var(--accent-dark);
}
.format-toolbar button[aria-pressed="mixed"] {
  background: repeating-linear-gradient(
    135deg,
    var(--tint),
    var(--tint) 4px,
    #e8d7fa 4px,
    #e8d7fa 8px
  );
  color: var(--accent-dark);
  box-shadow: inset 0 0 0 1px var(--accent);
}
.rich-editor {
  padding: 14px;
  min-height: 180px;
  max-height: 520px;
  overflow-y: auto;
  outline: none;
  font-size: 14px;
  overflow-wrap: anywhere;
}
.rich-editor:empty::before {
  content: attr(data-placeholder);
  color: var(--muted);
  pointer-events: none;
}
.rich-editor p {
  margin: 0 0 10px;
}
.rich-editor h2 {
  font-size: 20px;
  margin: 12px 0 8px;
}
.rich-editor pre {
  white-space: pre-wrap;
}
.rich-editor figure {
  margin: 12px 0;
}
.rich-editor figure img {
  max-height: 260px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  border-radius: 6px;
}
.editor-link-entry {
  display: flex;
  padding: 10px;
  gap: 12px;
  align-items: flex-end;
  border-bottom: 1px solid var(--line);
}
.editor-link-entry label {
  flex: 1;
  margin: 0;
  min-width: 0;
  font-size: 11px;
}
.editor-link-entry input {
  padding: 7px;
  margin-top: 3px;
}
.editor-link-entry button {
  margin-bottom: 9px;
}
.editor-images {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.editor-images > fieldset:last-child {
  grid-column: span 3;
}
.editor-photos-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.media-cell {
  position: relative;
  min-width: 0;
}
.media-upload {
  min-height: 126px;
  aspect-ratio: 1.65;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  border: 1px dashed #d1d7de;
  border-radius: 7px;
  background: #fafbfc;
  cursor: pointer;
  overflow: hidden;
}
.media-upload strong {
  font-size: 11px;
  font-weight: 500;
}
.media-upload > .icon,
.media-add {
  color: var(--muted);
  font-size: 25px;
}
.media-upload img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: absolute;
  inset: 0;
  border-radius: 7px;
}
.media-replace {
  position: absolute;
  bottom: 7px;
  background: #fffef8e8;
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 5px;
}
.media-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 25px;
  height: 25px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 50%;
}
.media-cell:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 7px;
}
.description-image {
  margin: 20px 0;
}
.description-image button {
  display: block;
  width: 100%;
}
.description-image img {
  max-width: 100%;
  width: auto;
  height: auto;
  max-height: 650px;
  border-radius: 8px;
}
.detail-bottom {
  border-top: 0;
}
@media (max-width: 620px) {
  .editor-images {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .editor-images > fieldset:last-child {
    grid-column: auto;
  }
  .editor-photos-grid {
    gap: 8px;
  }
  .editor-images > fieldset:first-child .media-cell {
    max-width: 170px;
  }
  .media-upload {
    min-height: 90px;
    aspect-ratio: 1;
  }
  .media-upload strong {
    font-size: 9px;
    text-align: center;
  }
  .editor-link-entry {
    flex-wrap: wrap;
  }
  .editor-link-entry label {
    flex-basis: 100%;
  }
}

.detail-grid > *,
.detail-box {
  min-width: 0;
}
.detail-box h1,
.detail-summary,
.post-card h2,
.prose p,
.prose h2,
.profile-heading h1 {
  overflow-wrap: anywhere;
  word-break: normal;
  max-width: 100%;
}
.prose pre {
  max-width: 100%;
  overflow-x: auto;
}

.tags-control {
  margin-bottom: 18px;
}
.tags-control > label {
  margin-bottom: 7px;
}
.tags-field {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  border: 1px solid #dfe2e7;
  border-radius: 7px;
  padding: 6px 9px;
  min-height: 44px;
  background: white;
}
.tags-field:focus-within {
  border-color: #b4b9c2;
  outline: 3px solid var(--accent-focus);
  outline-offset: 3px;
}
.tags-chips {
  display: contents;
}
.tags-field input[type="text"] {
  width: 110px;
  flex: 1 1 110px;
  min-width: 70px;
  margin: 0;
  padding: 4px;
  border: 0;
  background: transparent;
  outline: none;
  box-shadow: none;
  font-size: 13px;
}
.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 100%;
  border-radius: 5px;
  padding: 3px 7px;
  background: var(--tint);
  color: var(--accent-dark);
  font-size: 12px;
}
.tag-chip > span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.tag-chip button {
  padding: 0;
  flex-shrink: 0;
  width: 18px;
  height: 22px;
  font-size: 18px;
  line-height: 1;
}
.tags-control > small,
.tags-error,
.draft-status {
  display: block;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--muted);
  margin-top: 7px;
}
.tags-error:empty {
  display: none;
}
.tags-error,
.draft-status.draft-error {
  color: #b13c31;
}

.comment-actions {
  align-items: center;
  flex-wrap: wrap;
  row-gap: 6px;
}
.comment-votes {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.comment-rating-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 3px 6px;
  min-width: 38px;
  min-height: 27px;
  border-radius: 5px;
  color: var(--muted);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.comment-rating-button .icon {
  width: 14px;
  height: 14px;
}
.comment-rating-button:not(:disabled):hover {
  background: #f2f4f6;
}
.comment-rating-button.selected[data-value="1"] {
  color: #138a36;
  background: #e8f7ec;
}
.comment-rating-button.selected[data-value="-1"] {
  color: #d61528;
  background: #ffedef;
}
.comment-rating-button:disabled {
  cursor: default;
  opacity: 0.65;
}
.comment-votes[aria-busy="true"] .comment-rating-button {
  cursor: wait;
}

/* Counters are siblings of editable content, inside its frame. */
.counted-control {
  margin-bottom: 18px;
}
.counted-control > label {
  margin-bottom: 7px;
}
.counted-field,
.rich-editor-frame {
  position: relative;
}
.counted-field > textarea {
  margin: 0;
  padding-bottom: 30px;
}
.counted-field.single-line > input {
  padding-right: 82px;
}
.field-counter {
  position: absolute;
  right: 16px;
  bottom: 8px;
  padding: 0 3px;
  border-radius: 3px;
  background: #fffffff2;
  color: var(--muted);
  font-size: 10px;
  font-weight: 400;
  line-height: 1.5;
  white-space: nowrap;
  pointer-events: none;
  font-variant-numeric: tabular-nums;
}
.single-line > .field-counter {
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
}
.field-counter.near-limit {
  color: #b45a12;
}
.field-counter.over-limit {
  color: #b13c31;
}
.rich-editor {
  padding-bottom: 34px;
}
.comment-form-bottom {
  justify-content: flex-end;
}
.tags-field {
  position: relative;
  padding-bottom: 24px;
}

.author-card > strong,
.detail-author .author {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.detail-author {
  flex-wrap: wrap;
}
.post-card {
  content-visibility: auto;
  contain-intrinsic-size: auto 250px;
}

/* Touch screens: larger hit areas (≈44 px tall) without changing the visual design. */
@media (pointer: coarse) {
  .vote-control button,
  .comment-rating-button,
  .comment-link,
  .login-link,
  .site-footer a {
    position: relative;
  }
  .vote-control button::after,
  .comment-rating-button::after {
    content: "";
    position: absolute;
    inset: -10px 0;
  }
  /* The rounded control clipped the enlarged hit areas; round the buttons
     themselves instead so the selected state keeps the same shape. */
  .vote-control {
    overflow: visible;
  }
  .vote-control > button:first-child {
    border-radius: 6px 0 0 6px;
  }
  .vote-control > button:last-child {
    border-radius: 0 6px 6px 0;
  }
  .comment-link::after,
  .login-link::after,
  .site-footer a::after {
    content: "";
    position: absolute;
    inset: -12px -8px;
  }
}
/* Header columns keep search at the page centre regardless of account width. */
@media (max-width: 1100px) {
  .header-main {
    grid-template-columns: minmax(0, 1fr) auto;
    height: auto;
    gap: 12px 20px;
    padding-block: 16px;
  }
  .header-main .search {
    grid-column: 1 / -1;
    grid-row: 2;
    max-width: 360px;
  }
  .header-actions {
    grid-column: 2;
    grid-row: 1;
  }
}
@media (max-width: 620px) {
  .header-main {
    gap: 6px 12px;
    padding-block: 14px;
  }
  .brand-block {
    display: contents;
  }
  .brand {
    grid-column: 1;
    grid-row: 1;
  }
  .brand-tagline {
    grid-column: 1 / -1;
    grid-row: 2;
    margin: 0 0 8px;
  }
  .header-main .search {
    grid-row: 3;
    max-width: none;
  }
  .feed-toolbar .sort-tabs {
    gap: 20px;
  }
  .feed-toolbar .sort-tabs > a {
    font-size: 12px;
    gap: 6px;
  }
}
/* Хочу: conversations and two clear ways to join them. */
.brand {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -1.8px;
  line-height: 1;
}
.brand > span:last-child {
  /* Align the visible letters, including the descender, with the mark. */
  transform: translateY(-0.26em);
}
.brand-logo {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}
.brand-dot {
  color: var(--accent);
}
.header-main {
  grid-template-columns: minmax(0, 1fr) minmax(180px, 300px) minmax(0, 1fr);
}
.header-main .search {
  grid-column: 2;
  grid-row: 1;
  max-width: 300px;
}
.header-main .header-actions {
  grid-column: 3;
  grid-row: 1;
}
.header-actions {
  gap: 18px;
  width: max-content;
  min-width: 0;
  max-width: 100%;
}
.header-actions .account-menu,
.header-actions .account-menu summary {
  min-width: 0;
}
.header-actions .account-menu summary > span:not(.avatar) {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.header-actions .avatar,
.header-actions .notification-menu,
.publish-actions {
  flex-shrink: 0;
}
.publish-actions {
  display: flex;
  gap: 8px;
}
.publish-actions .button {
  min-height: 40px;
  padding: 9px 13px;
}
.publish-actions .secondary {
  color: var(--accent);
  border-color: #dfc9f4;
}
.publication-kind {
  display: block;
  width: fit-content;
  color: var(--accent-dark);
  background: var(--tint);
  padding: 3px 8px;
  border-radius: 5px;
  font-size: 10px;
  margin-bottom: 10px;
}
.text-card {
  grid-template-columns: minmax(0, 1fr);
}
.text-card .post-content {
  min-width: 0;
}
.text-card h2 {
  font-size: 22px;
}
.text-card .post-summary {
  max-width: 85ch;
}
.editor-kind label {
  min-height: 44px;
  justify-content: center;
}
@media (max-width: 1100px) {
  .header-main {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .header-main .search {
    grid-column: 1 / -1;
    grid-row: 2;
    max-width: 360px;
  }
  .header-main .header-actions {
    grid-column: 2;
  }
}
@media (max-width: 620px) {
  .brand {
    font-size: 40px;
    gap: 7px;
  }
  .brand-logo {
    width: 32px;
    height: 32px;
  }
  .header-main {
    gap: 10px;
  }
  .brand-tagline {
    font-size: 11px;
    margin: 0;
  }
  .header-actions {
    gap: 10px;
  }
  .publish-actions {
    gap: 6px;
  }
  .publish-actions .button {
    min-height: 36px;
    padding: 7px 10px;
    font-size: 11px;
  }
  .publish-actions .icon {
    display: none;
  }
  .header-main .search {
    grid-row: 3;
    max-width: none;
    margin-top: 2px;
  }
  .header-actions:has(.account-menu) {
    flex-wrap: wrap;
    justify-content: flex-end;
    max-width: 160px;
    gap: 6px;
  }
  .header-actions .account-menu summary > span {
    display: none;
  }
  .header-actions .account-menu summary {
    gap: 4px;
  }
  .publication-kind {
    grid-column: 1/-1;
    grid-row: 2;
    margin-bottom: 0;
  }
  .post-card .post-cover {
    grid-row: 3 / span 2;
  }
  .post-card h2 {
    grid-row: 3;
  }
  .post-card .post-summary {
    grid-row: 4;
  }
  .post-card .post-bottom {
    grid-row: 5;
  }
  .text-card {
    grid-template-columns: minmax(0, 1fr);
  }
  .text-card h2,
  .text-card .post-summary {
    grid-column: 1/-1;
  }
  .text-card h2 {
    font-size: 18px;
  }
  .editor-kind {
    gap: 8px;
  }
  .editor-kind label {
    padding: 10px 8px;
    font-size: 12px;
  }
}
@media (max-width: 360px) {
  .brand {
    font-size: 38px;
    gap: 4px;
  }
  .header-actions:has(.account-menu) {
    max-width: 142px;
  }
  .header-actions {
    gap: 7px;
  }
  .header-actions .login-link {
    font-size: 11px;
  }
  .publish-actions .button {
    padding-inline: 7px;
    font-size: 10px;
  }
}
/* Shared publication form: compact fields and a centred cover. */
.unified-editor .editor-top {
  position: relative;
  min-height: 240px;
  margin-bottom: 18px;
}
.unified-editor .editor-kind {
  margin: 0;
  align-items: flex-start;
}
.unified-editor .editor-cover {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(288px, 28%);
}
.unified-editor .editor-cover .media-upload {
  border: 2px dashed var(--accent);
  min-height: 176px;
  aspect-ratio: auto;
}
.unified-editor .cover-hint {
  color: var(--muted);
  font-size: 10px;
  font-weight: 400;
}
.unified-editor .counted-control {
  margin-bottom: 56px;
}
.unified-editor .counted-control > .sr-only,
.unified-editor .description-field > .sr-only,
.unified-editor .tags-control > .sr-only {
  margin: -1px;
}
.unified-editor .description-field {
  margin-bottom: 14px;
}
.unified-editor .rich-editor {
  min-height: 180px;
}
.unified-editor .tags-field {
  min-height: 44px;
  padding: 8px 60px 8px 12px;
}
.unified-editor .editor-footer {
  border: 0;
  padding-top: 0;
  margin-top: 14px;
  justify-content: flex-end;
}
.unified-editor .editor-footer button[value="draft"] {
  display: none;
}
.unified-editor .upload-status:empty {
  display: none;
}
@media (max-width: 1100px) {
  .unified-editor .editor-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    min-height: 0;
    margin-bottom: 32px;
  }
  .unified-editor .editor-kind {
    align-self: flex-start;
  }
  .unified-editor .editor-cover {
    position: static;
    transform: none;
    width: min(288px, 100%);
  }
}
@media (max-width: 620px) {
  .unified-editor .counted-control {
    margin-bottom: 28px;
  }
  .unified-editor .editor-cover {
    width: min(250px, 100%);
  }
}
/* One action and a two-line wordmark. */
.brand {
  align-items: flex-start;
}
.brand > .brand-wordmark:last-child {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 0.88;
  transform: translateY(-0.15em);
}
.brand-wordmark > span {
  display: block;
  white-space: nowrap;
}
.brand-logo {
  margin-top: 4px;
}
.editor-intent {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid #d9b4ff;
  border-radius: 7px;
  background: var(--tint);
  color: var(--accent);
  font-size: 13px;
}
@media (max-width: 620px) {
  .brand {
    font-size: 30px;
  }
  .header-main .search {
    grid-row: 2;
  }
  .brand-logo {
    margin-top: 0;
  }
}
@media (max-width: 360px) {
  .brand {
    font-size: 26px;
  }
}
/* Publication header: author and one rating above the title. */
.detail-meta > .detail-author {
  padding: 0;
  min-width: 0;
  flex: 1;
  gap: 6px 12px;
}
.detail-meta > .detail-author .author {
  min-width: 0;
  max-width: 100%;
}
.detail-meta > .detail-author strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.detail-meta > .detail-author > span {
  white-space: nowrap;
}
.detail-meta > .detail-tools {
  flex-shrink: 0;
}
@media (max-width: 620px) {
  .detail-meta {
    flex-wrap: nowrap;
    align-items: flex-start;
  }
  .detail-meta > .detail-tools {
    gap: 6px;
  }
}
/* Compact native control for discussion sorting. */
.comments-heading {
  gap: 10px;
  flex-wrap: wrap;
}
.comment-sort {
  display: flex;
  align-items: center;
  margin: 0 0 0 auto;
  gap: 8px;
}
.comment-sort select {
  width: auto;
  margin: 0;
  min-height: 34px;
  padding: 5px 24px 5px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background-color: var(--paper);
  color: var(--muted);
  font-size: 11px;
  cursor: pointer;
}
.comment-sort select:disabled {
  cursor: wait;
  opacity: 0.65;
}
