/* 01-tokens.css */
/* 01-tokens.css — 按原始书写顺序切分，保持层叠顺序与覆盖关系不变。 */
:root {
  color-scheme: light;
  --canvas: #f8f9fa;
  --surface: #fff;
  --ink: #18181b;
  --muted: #71717a;
  --border: #e4e4e7;
  --accent: #18181b;
  --danger: #b42318;
  --success: #18794e;
}
* {
  box-sizing: border-box;
}
html {
  scroll-padding-top: 88px;
}
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font:
    14px/1.65 "Geist",
    "Noto Sans SC",
    system-ui,
    sans-serif;
  letter-spacing: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  color: #52525b;
}
button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
img,
video {
  max-width: 100%;
  height: auto;

/* 02-base.css */
/* 02-base.css — 按原始书写顺序切分，保持层叠顺序与覆盖关系不变。 */
}
h1,
h2,
h3,
p {
  margin: 0 0 16px;
}
h1 {
  font-size: 28px;
  line-height: 1.35;
}
h2 {
  font-size: 20px;
  line-height: 1.5;
}
h3 {
  font-size: 16px;
}
a,
button,
p,
h1,
h2,
h3,
span {
  overflow-wrap: anywhere;
}
[hidden] {
  display: none !important;
}
:focus-visible {
  outline: 2px solid #71717a;
  outline-offset: 4px;
}
.wrap {
  width: min(1370px, 100%);
  padding-inline: 16px;
  margin-inline: auto;
}
.site-header {
  height: 64px;
  background: rgb(255 255 255 / 80%);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 30;
}
.nav {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  white-space: nowrap;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 12px;
  background: #18181b;
  color: #fff;
  font-size: 21px;
}
.main-nav-link {
  font-weight: 600;
}
.nav-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 18px;
}
.search-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 464px;
  height: 40px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: rgb(244 244 245 / 80%);
  color: var(--muted);
  padding: 0 12px;
}
.button,
button.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 16px;
  border: 1px solid #d4d4d8;
  border-radius: 12px;
  background: #fff;
  font-weight: 500;
  line-height: 1.45;
  text-align: center;
}
.button:hover {
  background: #f4f4f5;
}
.button--primary,
button.button--primary {
  background: #18181b;
  border-color: #18181b;
  color: #fff;
}
.button--primary:hover {
  background: #3f3f46;
  color: #fff;
}
.button--small {
  min-height: 34px;
  padding: 6px 12px;
}
.button--secondary,
button.button--secondary {
  background: #fff;
  border-color: #d4d4d8;
  color: #191c1d;
}
.button--secondary:hover {
  background: #f4f4f5;
}
.button--ghost,
button.button--ghost {
  background: transparent;
  border-color: #e1e3e4;
  color: #52525b;
}
.button--ghost:hover {
  background: #f4f4f5;
  color: #191c1d;
}
.button--text,
button.button--text {
  min-height: 34px;
  background: none;
  border-color: transparent;
  color: var(--muted);
}
.button--text:hover {
  background: none;
  color: #18181b;
}
.resource-action { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.resource-health-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.6;
  white-space: nowrap;
}
.resource-health-badge--ok { background: #f3f4f5; color: #18794e; }
.resource-health-badge--broken { background: #f3f4f5; color: #b42318; }
.resource-health-badge--pending { background: #f3f4f5; color: #52525b; }
.account-verify-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px solid #e1e3e4;
  border-radius: 12px;
  background: #f3f4f5;
}
.account-verify-notice strong {
  display: block;
  color: #191c1d;
  font-size: 13px;
}
.account-verify-notice p {
  margin: 4px 0 0;
  color: #52525b;
  font-size: 12px;
}
.auth-inline-form {
  display: inline-flex;
}
@media (max-width: 640px) {
  .account-verify-notice {
    align-items: stretch;
    flex-direction: column;
  }
}
.icon-button,
.avatar-link {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  padding: 4px;
  border-radius: 4px;
  flex-shrink: 0;
}
.icon-button:hover {
  background: #f4f4f5;
}
.zv-icon {
  width: 18px;
  height: 18px;
  flex: none;
}
.avatar {
  display: inline-flex;
  position: relative;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  background: #e4e4e7;
  color: #52525b;
  vertical-align: middle;
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.site-header .avatar-link {
  padding: 0;
  border: 1px solid rgb(228 228 231 / 80%);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgb(0 0 0 / 5%);
}
.site-header .avatar-link .avatar {
  width: 100%;
  height: 100%;
  border-radius: 0;
}
.site-header .avatar-link img {
  border-radius: 0;
  filter: grayscale(30%);
}
.site-header .avatar-link:hover {
  box-shadow: 0 0 0 2px rgb(24 24 27 / 20%);
}
.avatar__fallback {
  display: none;
}
.avatar.is-fallback img {
  display: none;
}
.avatar.is-fallback .avatar__fallback {
  display: block;
}
.account-menu {
  position: absolute;
  right: max(24px, calc((100% - 1140px) / 2));
  top: 58px;
  min-width: 160px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px;
  box-shadow: 0 8px 24px #00000012;
}
.account-menu a {
  display: block;
  padding: 9px 12px;
  border-radius: 3px;
}
.account-menu a:hover {
  background: #f4f4f5;
}
.community-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 32px;
  min-height: calc(100vh - 160px);
  padding-top: 32px;
  padding-bottom: 64px;
}
.community-sidebar {
  align-self: start;
  position: sticky;
  top: 88px;
  min-height: calc(100vh - 110px);
}
.community-widgets {
  display: none;
  min-width: 0;
  flex-direction: column;
  gap: 20px;
  align-self: start;
}
.widget-actions .material-symbols-outlined {
  font-size: 18px;
}
.widget-thumbnail .material-symbols-outlined {
  font-size: 20px;
}
.community-widget {
  padding: 20px;
  background: #fff;
  border: 1px solid rgb(228 228 231 / 80%);
  border-radius: 16px;
  box-shadow: 0 1px 3px rgb(0 0 0 / 4%);
}
.community-widget h2 {
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 12px;
}
.community-widget p {
  font-size: 12px;
  margin: 0;
  color: #71717a;
}
.community-widget textarea {
  min-height: 64px;
  resize: vertical;
  background: #fafafa;
  border-radius: 12px;
  font-size: 13px;
  padding: 12px;
}
.widget-actions {
  display: flex;
  align-items: center;
  margin-top: 12px;
  gap: 2px;
}
.widget-actions .icon-button {
  width: 30px;
  height: 30px;
}
.widget-actions .button {
  font-size: 13px;
  min-height: 34px;
  padding: 6px 16px;
}
.community-widget--dark {
  background: #090a0c;
  border-color: #18181b;
  color: #fff;
  padding: 16px;
}
.community-widget--dark p {
  color: #a1a1aa;
}
.widget-label {
  display: inline-block;
  font-size: 10px;
  background: #ffffff26;
  border-radius: 4px;
  padding: 2px 8px;
  margin-bottom: 12px;
}
.widget-heading {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.widget-heading > a {
  font-size: 11px;
  color: #a1a1aa;
}
.widget-work {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}
.widget-rank {
  width: 12px;
  flex: none;
  font-size: 13px;
  font-weight: 700;
}
.widget-thumbnail {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #f4f4f5;
  overflow: hidden;
  display: grid;
  place-items: center;
  flex: none;
}
.widget-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.widget-work-text {
  min-width: 0;
}
.widget-work-text strong {
  display: block;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
}
.widget-work-text small {
  font-size: 11px;
}
.widget-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.widget-tags a {
  padding: 4px 10px;
  background: #f4f4f5;
  border: 1px solid #e4e4e7;
  border-radius: 8px;
  font-size: 12px;
}
.widget-rules {
  font-size: 12.5px;
  line-height: 1.7;
}
@media (min-width: 1280px) {
  .community-layout {
    grid-template-columns: 220px minmax(0, 1fr) 280px;
  }
  .community-widgets {
    display: flex;
  }
}
.sidebar-intro {
  padding: 4px 12px 16px;
}
.sidebar-intro h2 {
  font-size: 15px;
  font-weight: 700;
  margin: 0;
}
.sidebar-intro p {
  font-size: 12px;
  color: var(--muted);
  margin: 2px 0 0;
}
.side-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 12px;
  margin: 3px 0;
  color: #52525b;
}
.side-link:hover {
  background: #f0f0f1;
}
.side-link.is-active {
  background: #090a0c;
  color: #fff;
  font-weight: 600;
}
.side-section {
  padding-block: 24px;
  border-top: 1px solid var(--border);
  margin-top: 24px;
}
.side-footer {
  border-top: 1px solid var(--border);
  padding: 24px 14px;
  color: var(--muted);
  font-size: 12px;
}
.side-footer p {
  margin: 6px 0;
}
.feed-main {
  min-width: 0;
  width: 100%;
  max-width: 760px;
  margin-inline: auto;
}
.feed-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0;
  margin-bottom: 28px;
}

/* 03-layout.css */
/* 03-layout.css — 按原始书写顺序切分，保持层叠顺序与覆盖关系不变。 */
.feed-heading h1 {
  font-size: 28px;
  margin: 0;
}
.feed-heading .lede {
  margin: 0;
  font-size: 14px;
}
.feed-tabs {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 4px;
  background: #fff;
  border: 1px solid #e1e3e4;
  border-radius: 12px;
  width: fit-content;
  box-shadow: 0 1px 2px rgb(0 0 0 / 5%);
}
.feed-tabs > a {
  padding: 4px 14px;
  color: #6b7177;
  border-radius: 8px;
  font-size: 13px;
  white-space: nowrap;
}
.feed-tabs > a.is-active {
  color: #fff;
  background: #090a0c;
  font-weight: 600;
}
.feed-row {
  padding: 24px;
  margin-bottom: 20px;
  background: #fff;
  border: 1px solid rgb(228 228 231 / 80%);
  border-radius: 16px;
  box-shadow:
    0 1px 3px rgb(0 0 0 / 4%),
    0 1px 2px -1px rgb(0 0 0 / 4%);
}
.feed-filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 64px;
  z-index: 20;
  background: rgb(248 249 250 / 90%);
  backdrop-filter: blur(12px);
}
.feed-author-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.feed-author-avatar .avatar {
  width: 40px;
  height: 40px;
}
.feed-author-info {
  min-width: 0;
}
.feed-author-name {
  font-size: 14px;
  font-weight: 600;
}
.feed-author-info .content-meta {
  margin: 2px 0 0;
  gap: 8px;
  font-size: 12px;
  color: #a1a1aa;
}
.feed-author-info .badge {
  font-size: 11px;
}
.badge--featured {
  margin-left: auto;
  background: #18181b;
  color: #fff;
}
.content-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 12px;
}
.content-meta a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #3f3f46;
}
.content-meta .avatar {
  width: 26px;
  height: 26px;
}
.feed-row h2 {
  font-size: 18px;
  margin-bottom: 8px;
}
.feed-summary {
  color: #52525b;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 14px;
}
.feed-preview {
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 12px;
  margin: 16px 0;
  background: #f4f4f5;
}
.feed-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.badge,
.status-label,
.zv-tag {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  background: #f4f4f5;
  padding: 1px 7px;
  border-radius: 3px;
  font-size: 12px;
  line-height: 1.7;
  color: #52525b;
}
.feed-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px;
  color: var(--muted);
  font-size: 12px;
  margin-top: 18px;
  border-top: 1px solid #f4f4f5;
  padding-top: 14px;
}
.text-action {
  background: none;
  border: 0;
  padding: 0;
  color: var(--muted);
  line-height: 1.8;
}
.text-action:hover,
.text-action[aria-pressed="true"] {
  color: #18181b;
}
.push-right {
  margin-left: auto;
}
.poll-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  margin-top: 14px;
}
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 30px 0;
  flex-wrap: wrap;
}
.page-numbers {
  padding: 6px 11px;
  border-radius: 3px;
}
.page-numbers.current {
  background: #18181b;
  color: #fff;
}
.empty-state {
  padding: 64px 20px;
  text-align: center;
  color: var(--muted);
}
.muted,
small,
.lede {
  color: var(--muted);
}
.site-footer {
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--muted);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-block: 24px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.detail-page {
  padding-top: 28px;
  padding-bottom: 64px;
}
.back-link {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  margin-bottom: 28px;
}
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr);
  gap: 32px;
}
.detail-main {
  min-width: 0;
}
.detail-content {
  background: #fff;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow:
    0 1px 3px rgb(0 0 0 / 4%),
    0 1px 2px -1px rgb(0 0 0 / 4%);
}
.detail-content h1 {
  font-size: 32px;
  margin: 20px 0 24px;
}
.detail-preview {
  display: block;
  margin-bottom: 28px;
  background: #f4f4f5;
}
.detail-preview img {
  display: block;
  width: 100%;
  max-height: 620px;
  object-fit: contain;
}
.entry-content {
  font-size: 15px;
  line-height: 1.85;
  overflow-wrap: anywhere;
}
.entry-content > * {
  max-width: 100%;
}
.entry-content a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.entry-content pre {
  overflow: auto;
  padding: 16px;
  background: #f4f4f5;
  font-size: 13px;
}
.entry-content code {
  background: #f4f4f5;
  padding: 2px 4px;
}
.entry-content blockquote {
  border-left: 3px solid #d4d4d8;
  margin: 20px 0;
  padding-left: 20px;
  color: var(--muted);
}
.entry-content table {
  display: block;
  overflow: auto;
  border-collapse: collapse;
}
.entry-content td,
.entry-content th {
  padding: 8px;
  border: 1px solid var(--border);
}
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
  margin: 20px 0;
}
.detail-sidebar {
  align-self: start;
  position: sticky;
  top: 88px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.detail-sidebar .side-section {
  width: 100%;
  margin: 0;
  padding: 20px;
  border: 1px solid rgb(228 228 231 / 90%);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 3px rgb(0 0 0 / 4%);
}
.detail-sidebar .side-section h3 {
  font-size: 14px;
  font-weight: 700;
}
.widget-specs {
  font-size: 13px;
  margin: 0;
}
.widget-specs > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}
.widget-specs dt {
  color: #71717a;
}
.widget-specs dd {
  margin: 0;
  text-align: right;
}
.detail-sidebar .side-section:first-child {
  border-top: 1px solid var(--border);
  margin-top: 0;
  padding-top: 20px;
}
.detail-buttons {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}
.detail-sidebar .side-section > a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.solve-row {
  display: flex;
  gap: 12px;
  align-items: center;
}
.comments-section {
  margin-top: 32px;
}
.comments-section h2 {
  font-size: 18px;
}
.comment {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}
.comment--reply {
  padding-left: 24px;
  border-left: 2px solid var(--border);
}
.comment .entry-content {
  font-size: 14px;
}
.poll {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.poll h3 {
  margin-bottom: 16px;
}
.poll-options {
  display: grid;
  gap: 8px;
  margin: 16px 0;
}
.poll-option {
  position: relative;
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 10px 12px;
  overflow: hidden;
}
.poll-option > * {
  position: relative;
  z-index: 1;
}
.poll-option .poll-fill {
  position: absolute;
  inset: 0 auto 0 0;
  background: #e4e4e7;
  z-index: 0;
}
.poll-option .poll-count {
  margin-left: auto;
  white-space: nowrap;
}
.poll-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
}
.page {
  padding: 36px 0 64px;
  min-height: 70vh;
}
.page-head,
.section-head,
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

/* 04-components.css */
/* 04-components.css — 按原始书写顺序切分，保持层叠顺序与覆盖关系不变。 */
.page-head h1,
.page-head h2 {
  margin-bottom: 8px;
}
.page-head .lede {
  margin: 0;
}
.section-label {
  font-size: 12px;
  color: var(--muted);
}
.account-section,
.settings-section {
  padding-block: 24px;
  border-bottom: 1px solid var(--border);
}
.account-tabs,
.filter-tabs,
.publish-types {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.account-tabs a,
.filter-tabs a,
.publish-types a {
  padding: 8px 12px;
  border-radius: 4px;
}
.account-tabs .is-active,
.filter-tabs .is-active {
  background: #e4e4e7;
}
.account-content-item,
.notification-item,
.user-follow-item,
.search-result-item,
.resource-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.account-content-item h3,
.search-result-item h3 {
  margin: 6px 0;
}
.search-result-item__content {
  min-width: 0;
  flex: 1;
}
.search-result-item__meta {
  color: var(--muted);
  font-size: 12px;
}
.search-result-item__avatar {
  border-radius: 50%;
}
.creation-summary,
.account-summary,
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
}
.creation-summary__item {
  display: grid;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #fff;
}
.creation-summary__item strong {
  font-size: 24px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.field {
  display: grid;
  gap: 7px;
  min-width: 0;
  margin-bottom: 18px;
}
.field label,
.field > span:first-child {
  font-weight: 500;
}
.field--full {
  grid-column: 1/-1;
}
input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
select,
textarea {
  width: 100%;
  min-height: 40px;
  border: 1px solid #d4d4d8;
  border-radius: 4px;
  padding: 9px 12px;
  background: #fff;
}
textarea {
  resize: vertical;
  min-height: 100px;
}
input[type="checkbox"],
input[type="radio"] {
  accent-color: #18181b;
  width: 16px;
  height: 16px;
  flex: none;
}
input[type="file"] {
  font-size: 13px;
}
.form-actions,
.filter-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.form-actions {
  justify-content: flex-end;
  margin-top: 16px;
}
.filter-bar .field {
  flex: 1;
  min-width: 140px;
}
.error-state,
[data-form-status].is-error {
  color: var(--danger);
}
.success-state {
  color: var(--success);
}
.search-panel[data-state="closed"] {
  display: none;
}
.search-panel,
.report-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: #0005;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 100px 20px 30px;
  overflow: auto;
}
.search-dialog,
.report-dialog {
  width: min(600px, 100%);
  padding: 24px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: 0 16px 60px #0002;
}
.search-dialog__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.search-dialog__head h2 {
  margin: 0;
}
.search-panel__results {
  max-height: 60vh;
  overflow: auto;
  margin-top: 16px;
}
.toast-region {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 200;
  display: grid;
  gap: 8px;
  max-width: min(440px, calc(100% - 32px));
}
.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: 0 8px 30px #0002;
}
.toast__message {
  flex: 1;
  min-width: 0;
}
.toast--error {
  border-color: #f2b8b5;
}
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link:focus {
  clip: auto;
  width: auto;
  height: auto;
  padding: 12px;
  background: #fff;
  z-index: 300;
}
.is-loading {
  opacity: 0.6;
}
@media (max-width: 900px) {
  .community-layout {
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 28px;
  }
  .search-trigger {
    width: 140px;
  }
  .detail-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .detail-sidebar {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  .detail-sidebar .side-section {
    margin: 0;
    padding: 20px 0;
    border-top: 1px solid var(--border);
  }
  .nav {
    gap: 20px;
  }
  .nav-actions {
    gap: 12px;
  }
}
@media (max-width: 640px) {
  .wrap {
    width: 100%;
  }
  .nav {
    gap: 12px;
  }
  .brand {
    font-size: 17px;
    gap: 7px;
  }
  .brand-mark {
    width: 26px;
    height: 26px;
    font-size: 18px;
  }
  .main-nav-link {
    display: none;
  }
  .nav-actions {
    gap: 8px;
  }
  .search-trigger {
    width: 32px;
    padding: 6px;
    border: 0;
    background: transparent;
  }
  .search-trigger span {
    display: none;
  }
  .header-publish {
    min-height: 32px;
    padding: 6px 9px;
  }
  .header-publish .zv-icon {
    display: none;
  }
  .community-layout {
    display: block;
    padding-top: 16px;
  }
  .community-sidebar {
    position: static;
    margin-bottom: 20px;
  }
  .community-sidebar > .sidebar-intro,
  .community-sidebar > .side-section,
  .community-sidebar > .side-footer {
    display: none;
  }
  .community-sidebar nav {
    display: flex;
    gap: 4px;
    overflow: auto;
  }
  .side-link {
    padding: 8px 12px;
    white-space: nowrap;
    margin: 0;
    font-size: 13px;
  }
  .side-link .zv-icon {
    display: none;
  }
  .feed-heading {
    padding-bottom: 12px;
  }
  .feed-heading h1 {
    font-size: 22px;
  }
  .feed-tabs {
    gap: 4px;
  }
  .feed-row {
    padding: 24px;
  }
  .feed-row h2 {
    font-size: 17px;
  }
  .feed-preview {
    max-width: 100%;
  }
  .detail-page {
    padding-top: 20px;
  }
  .detail-content {
    padding: 24px;
  }
  .detail-content h1 {
    font-size: 28px;
  }
  .detail-sidebar {
    grid-template-columns: 1fr;
  }
  .detail-layout {
    gap: 16px;
  }
  .content-meta {
    gap: 8px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .page-head,
  .section-head {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .page-head h1 {
    font-size: 24px;
  }
  .footer-inner {
    flex-direction: column;
    gap: 10px;
  }
  .search-panel,
  .report-modal {
    padding-top: 76px;
  }
  .search-dialog,
  .report-dialog {
    padding: 18px;
  }
  .account-content-item,
  .notification-item {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .form-actions .button {
    flex-grow: 1;
  }
  .detail-content .feed-actions {
    gap: 18px;
  }
  .toast-region {
    right: 16px;
    bottom: 16px;
  }
}

/* Shared Stitch workspace surfaces */
.site-header--detail { height: 64px; }
.site-header--detail .brand, .site-header--detail .brand-word > span { font-size: inherit; font-weight: inherit; color: inherit; }
.site-header--detail .brand-mark, .site-header--detail .avatar-link { border-radius: 12px; }
.site-header--detail .search-trigger { width: 464px; border-radius: 12px; }
.site-header--detail .header-publish { border-radius: 12px; }
.site-header--detail .account-menu { top: 66px; }

.event-shell, .account-dashboard, .creator-profile-layout { width: min(1370px, 100%); margin-inline: auto; padding: 32px 16px 72px; display: grid; grid-template-columns: 214px minmax(0, 1fr) 338px; gap: 36px; align-items: start; }
.event-rail, .account-dashboard__rail, .creator-profile-card { position: sticky; top: 96px; min-width: 0; }
.event-rail .detail-back { margin-bottom: 24px; }
.account-dashboard__identity { display: flex; align-items: center; gap: 10px; margin: 0 0 20px; color: #191c1d; }
.account-dashboard__identity small { display: block; margin-top: 3px; color: #92989e; font-size: 11px; }
.account-dashboard__identity strong { display: block; font-size: 14px; }
.account-dashboard__rail nav a { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 8px 12px; border-radius: 10px; color: #646a70; font-size: 13px; cursor: pointer; }
.account-dashboard__rail nav a:hover, .account-dashboard__rail nav a.is-active { background: #f0f1f2; color: #090a0c; }
.publish-stitch-page .publish-form { min-width: 0; display: grid; gap: 16px; }
.account-dashboard__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 4px; }
.account-dashboard__head h1 { margin: 0; font-size: 30px; letter-spacing: -.025em; }
.account-dashboard__head > a { color: #8d9399; font-size: 11px; }
.account-dashboard-card, .creator-profile-side .detail-sidebar-card { min-width: 0; padding: 20px; border: 1px solid #e1e3e4; border-radius: 14px; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / 4%); }
.account-dashboard-card h2 { margin: 0; color: #191c1d; font-size: 15px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.publish-upload { display: grid; place-items: center; min-height: 180px; border: 1px dashed #c9cdd0; border-radius: 10px; background: #fafbfb; text-align: center; }
.publish-upload { position: relative; overflow: hidden; padding: 18px; }
.publish-upload > input[type=file] { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; cursor: pointer; opacity: 0; }
.publish-upload label { display: grid; gap: 5px; cursor: pointer; }
.publish-upload label .material-symbols-outlined { font-size: 25px; }
.publish-upload label strong { font-size: 13px; }
.publish-upload label small { color: #949a9f; font-size: 10px; }
.publish-preview { max-width: 100%; max-height: 190px; object-fit: contain; }
.publish-upload:has(.publish-preview:not([hidden])) > label { display: none; }
.publish-upload [data-remove-image] { position: relative; z-index: 2; }
.publish-code-editor { overflow: hidden; border: 1px solid #dfe1e3; border-radius: 10px; }
.publish-code-editor__bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border-bottom: 1px solid #e1e3e4; background: #f3f4f5; }
.publish-code-editor__bar label { margin: 0 !important; }
.publish-code-editor__bar > div { display: flex; gap: 6px; }
.publish-code-editor__bar input { width: 105px; min-height: 28px; padding: 4px 7px; font: 10px "JetBrains Mono", monospace; }
.publish-code-editor textarea { display: block; min-height: 220px; border: 0; border-radius: 0; background: #191c1d; color: #f6f7f7; font: 12px/1.7 "JetBrains Mono", monospace; }
.account-pending-list { display: grid; gap: 9px; margin: 16px 0 0; padding: 0; list-style: none; }
.form-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 20px; }
.publish-stitch-page .poll-editor-options { display: grid; gap: 8px; margin-top: 12px; }
.publish-stitch-page .poll-editor-row { display: grid; grid-template-columns: 22px minmax(0, 1fr) 32px; gap: 8px; align-items: center; }
.publish-stitch-page .poll-editor-row .icon-button { width: 32px; height: 32px; }
.event-main, .account-dashboard__main, .creator-profile-feed { min-width: 0; }
.event-hero { padding: 34px 0 28px; border-bottom: 1px solid #dfe1e3; }
.event-hero__meta { display: flex; justify-content: space-between; color: #8c9298; font: 11px "JetBrains Mono", monospace; }
.event-hero__meta span { color: #191c1d; font-weight: 600; }
.event-hero h1 { max-width: 700px; margin: 22px 0 10px; font-size: 38px; line-height: 1.15; letter-spacing: -.03em; }
.event-hero p, .event-content { color: #646a70; font-size: 14px; line-height: 1.8; }
.event-content { padding: 26px 0; }
.event-content h2 { margin: 0 0 10px; color: #191c1d; font-size: 18px; }
.event-content p { margin: 0 0 20px; }
.event-sidebar { position: sticky; top: 96px; display: grid; gap: 16px; }
.event-action { width: 100%; margin-top: 18px; justify-content: center; }
.detail-spec-list, .creator-profile-stats { display: grid; gap: 11px; margin: 0; }
.detail-primary-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.detail-primary-links.is-single { grid-template-columns: 1fr; }
.detail-primary-links .button { width: 100%; justify-content: center; }
.publish-upload > input[type=file] { inset: auto; width: 1px; height: 1px; }
.publish-upload label { position: relative; z-index: 2; width: 100%; min-height: 140px; place-content: center; }
.publish-upload .publish-preview { display: block; width: min(100%, 520px); height: auto; max-height: 220px; }
.publish-upload:has(.publish-preview:not([hidden])) { grid-template-rows: minmax(0, 1fr) auto; }
.publish-upload:has(.publish-preview:not([hidden])) > label { display: none; }
.account-page-head { max-width: 900px; margin-inline: auto; }
.account-page-head + .filter-bar, .account-content-list { width: min(900px, 100%); margin-inline: auto; }
.account-content-item { min-width: 0; }
.detail-spec-list div, .creator-profile-stats div { display: flex; justify-content: space-between; gap: 12px; }
.detail-spec-list dt, .creator-profile-stats dt { color: #8b9197; font-size: 11px; }
.detail-spec-list dd, .creator-profile-stats dd { max-width: 190px; margin: 0; color: #303438; font: 500 11px/1.4 "JetBrains Mono", monospace; text-align: right; }
.account-dashboard__rail nav { display: grid; gap: 2px; margin-bottom: 20px; }
.account-dashboard__rail nav a.is-active { background: #090a0c; color: #fff; }
.account-dashboard__create { width: 100%; justify-content: center; }
.account-dashboard__head { align-items: flex-start; margin-bottom: 22px; }
.account-dashboard__head p { margin: 6px 0 0; color: #8b9197; font-size: 12px; }
.account-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.account-metrics a { padding: 15px; border: 1px solid #e1e3e4; border-radius: 12px; background: #fff; }
.account-metrics span, .account-metrics small { display: block; color: #8b9197; font-size: 10px; }
.account-metrics strong { display: block; margin: 6px 0 3px; color: #191c1d; font: 700 24px/1 "JetBrains Mono", monospace; }
.account-project-list { display: grid; gap: 2px; }
.account-project-list article { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid #eef0f1; }
.account-project-thumb { display: grid; place-items: center; width: 56px; height: 42px; flex: none; overflow: hidden; border-radius: 8px; background: #f3f4f5; color: #8b9197; }
.account-project-thumb img { width: 100%; height: 100%; object-fit: cover; }
.account-project-list article > div { min-width: 0; flex: 1; }
.account-project-list h3 { overflow: hidden; margin: 4px 0; color: #303438; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.account-project-list small, .account-pending-list small { color: #9ba0a5; font-size: 10px; }
.account-pending-list a { display: grid; gap: 3px; padding: 10px 0; border-top: 1px solid #eef0f1; }
.account-pending-list strong { overflow: hidden; color: #303438; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.account-followers { display: grid; gap: 10px; margin-top: 14px; }
.account-followers a { display: flex; align-items: center; gap: 8px; color: #555b61; font-size: 12px; }
.account-followers .avatar { width: 34px; height: 34px; border-radius: 9px; }
.creator-profile-card { padding: 22px; border: 1px solid #e1e3e4; border-radius: 14px; background: #fff; }
.creator-profile-card > .avatar { width: 88px; height: 88px; border-radius: 14px; }
.creator-profile-card h1 { margin: 8px 0 4px; font-size: 24px; }
.creator-profile-joined { color: #9ba0a5; font-size: 10px; }
.creator-profile-bio { color: #646a70; font-size: 12px; line-height: 1.6; }
.creator-profile-actions { display: grid; gap: 8px; margin-top: 18px; }
.creator-profile-actions .button { justify-content: center; }
.creator-profile-side { position: sticky; top: 96px; display: grid; gap: 16px; }

.account-dashboard__main > .page-head { margin-bottom: 22px; }
.account-dashboard__main > .page-head h2 { margin: 0 0 6px; font-size: 30px; }
.account-dashboard__main > .page-head .lede { color: #8b9197; font-size: 12px; }
.account-dashboard__main > .filter-bar, .account-dashboard__main > .feed-tabs, .account-dashboard__main > .account-content-list, .account-dashboard__main > .profile-content-list, .account-dashboard__main > .user-follow-list, .account-dashboard__main > .notification-list, .account-dashboard__main > .settings-form, .account-dashboard__main > .account-data { width: 100%; margin-inline: 0; }
.account-dashboard__main > .account-section, .account-dashboard__main > .settings-section { width: 100%; padding: 22px 0; }
.account-dashboard__main .account-section .plaza-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.account-dashboard__main .empty-state { min-height: 260px; display: grid; place-content: center; justify-items: center; padding: 40px; border: 1px solid #e1e3e4; border-radius: 14px; background: #fff; }
.account-side-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 14px; }
.account-side-stats div { padding: 12px; border: 1px solid #eef0f1; border-radius: 10px; }
.account-side-stats strong, .account-side-stats span { display: block; }
.account-side-stats strong { color: #191c1d; font: 700 22px/1 "JetBrains Mono", monospace; }
.account-side-stats span { margin-top: 6px; color: #8b9197; font-size: 10px; }
.account-side-links { display: grid; gap: 2px; margin-top: 12px; }
.account-side-links a { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-top: 1px solid #eef0f1; color: #4f555a; font-size: 12px; }
.account-side-links .material-symbols-outlined { font-size: 16px; color: #9ba0a5; }

@media (max-width: 1100px) { .event-shell, .account-dashboard, .creator-profile-layout { grid-template-columns: 190px minmax(0, 1fr); gap: 24px; } .event-sidebar, .account-dashboard__side, .creator-profile-side { grid-column: 2; position: static; } }
@media (max-width: 760px) { .event-shell, .account-dashboard, .creator-profile-layout { display: block; padding: 20px 12px 76px; } .event-rail, .account-dashboard__rail, .creator-profile-card { position: static; margin-bottom: 20px; } .account-dashboard__head { display: block; } .event-sidebar, .account-dashboard__side, .creator-profile-side { margin-top: 16px; } .form-grid, .account-metrics { grid-template-columns: 1fr; } .event-hero h1 { font-size: 30px; } }
@media (max-width: 760px) { .event-hero h1 { max-width: 100%; font-size: clamp(25px, 8vw, 30px); overflow-wrap: anywhere; word-break: break-word; } .event-hero p, .event-content, .event-content * { max-width: 100%; overflow-wrap: anywhere; word-break: break-word; } .creator-profile-card h1 { max-width: 100%; font-size: 22px; overflow-wrap: anywhere; word-break: break-word; } .account-dashboard__main .account-section .plaza-card-grid { grid-template-columns: 1fr; } }

.feed-help-status { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border: 1px solid #d7dadd; border-radius: 999px; background: #f3f4f5; color: #62686e; font-size: 10px; font-weight: 500; }
.feed-help-status i { width: 6px; height: 6px; border-radius: 50%; background: #70767c; }
.feed-code-preview { margin-top: 14px; overflow: hidden; border: 1px solid #191c1d; border-radius: 12px; background: #090a0c; color: #e7e8e9; box-shadow: 0 1px 3px rgb(0 0 0 / 8%); }
.feed-code-preview__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 13px; border-bottom: 1px solid #292d30; color: #9ba0a5; font: 400 10px/1.3 "JetBrains Mono", monospace; }
.feed-code-preview__head span { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.feed-code-preview__head i { width: 9px; height: 9px; border-radius: 50%; background: #70767c; }
.feed-code-preview__head b { overflow: hidden; color: #d2d6d9; font-weight: 400; text-overflow: ellipsis; white-space: nowrap; }
.feed-code-preview pre { max-height: 190px; margin: 0; padding: 13px; overflow: auto; color: #d2d6d9; font: 400 11px/1.7 "JetBrains Mono", monospace; white-space: pre-wrap; }
.feed-code-preview code { padding: 0; background: transparent; }
.feed-code-copy { display: inline-flex; align-items: center; gap: 5px; margin: 0 13px 12px; padding: 4px 8px; border: 1px solid #3a3f44; border-radius: 7px; background: #191c1d; color: #c1c6ca; font-size: 10px; }
.feed-code-copy:hover { background: #303438; color: #fff; }
.feed-code-copy .material-symbols-outlined { font-size: 14px; }
.feed-quote { display: flex; align-items: flex-start; gap: 8px; margin-top: 14px; padding: 12px 13px; border: 1px solid #e1e3e4; border-radius: 12px; background: #f8f9fa; color: #5f666d; font-size: 12px; line-height: 1.65; }
.feed-quote:hover { border-color: #c6c8cb; color: #303438; }
.feed-quote > .material-symbols-outlined { flex: none; margin-top: 1px; color: #777e85; font-size: 16px; }
.feed-quote b { color: #303438; font-weight: 600; }
.feed-poll { margin-top: 14px; padding: 14px; border: 1px solid #e1e3e4; border-radius: 12px; background: #f3f4f5; }
.feed-poll__loading { display: flex; align-items: center; gap: 7px; color: #8b9197; font-size: 11px; }
.feed-poll__loading .material-symbols-outlined { font-size: 18px; }
.feed-poll h3 { display: flex; align-items: center; gap: 7px; margin: 0 0 10px; color: #303438; font-size: 13px; line-height: 1.45; }
.feed-poll h3::before { content: "poll"; font-family: "Material Symbols Outlined"; font-size: 18px; }
.feed-poll form { margin: 0; }
.feed-poll .poll-options { display: grid; gap: 8px; margin: 0; }
.feed-poll .poll-option { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 37px; padding: 8px 10px; overflow: hidden; border: 1px solid #dfe1e3; border-radius: 10px; background: #fff; color: #4f565d; font-size: 11px; }
.feed-poll label.poll-option { cursor: pointer; }
.feed-poll label.poll-option:hover { border-color: #191c1d; }
.feed-poll .poll-option > * { position: relative; z-index: 1; }
.feed-poll .poll-option input { width: 14px; min-height: 14px; }
.feed-poll .poll-fill { position: absolute; inset: 0 auto 0 0; z-index: 0; border-radius: inherit; background: #e1e3e4; }
.feed-poll .poll-count { margin-left: auto; color: #777e85; font: 400 10px/1.3 "JetBrains Mono", monospace; white-space: nowrap; }
.feed-poll .poll-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; color: #8b9197; font-size: 10px; }
.feed-poll .poll-footer .button { min-height: 28px; padding: 4px 10px; border-radius: 8px; font-size: 10px; }
.feed-poll [data-poll-status] { margin: 6px 0 0; color: #b42318; font-size: 10px; }
.feed-actions { justify-content: space-between; gap: 12px; }
.feed-actions__main, .feed-actions__side { display: flex; align-items: center; gap: 20px; min-width: 0; }
.feed-actions__side { gap: 12px; margin-left: auto; }
.feed-actions .feed-action { min-width: 0; white-space: nowrap; }
.feed-actions .feed-action__count { color: inherit; font: 400 11px/1.3 "JetBrains Mono", monospace; }
.feed-actions .feed-action.is-active { color: #090a0c; }
.feed-actions .feed-action.is-active .material-symbols-outlined { font-variation-settings: "FILL" 1; }
.feed-likers { display: inline-flex; align-items: center; min-width: 0; }
.feed-likers > span { position: relative; margin-left: -5px; }
.feed-likers > span:first-child { margin-left: 0; }
.feed-likers .avatar { width: 20px; height: 20px; border: 2px solid #fff; font-size: 8px; }
.feed-likers small { margin-left: 7px; color: #9ba0a5; font: 400 10px/1.3 "JetBrains Mono", monospace; white-space: nowrap; }
.feed-save { margin-left: 0; }
.detail-code-block { margin-top: 18px; padding: 13px; overflow: hidden; border: 1px solid #191c1d; border-radius: 12px; background: #090a0c; color: #d2d6d9; }
.detail-code-block > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 9px; border-bottom: 1px solid #292d30; color: #d2d6d9; font: 400 11px/1.3 "JetBrains Mono", monospace; }
.detail-code-block > div small { color: #8e949a; font: inherit; }
.detail-code-block pre { max-height: 560px; margin: 0; padding: 12px 0; overflow: auto; color: #d2d6d9; font: 400 12px/1.7 "JetBrains Mono", monospace; white-space: pre-wrap; }
.detail-code-block code { padding: 0; background: transparent; }
.detail-code-block .button { min-height: 29px; padding: 4px 10px; border-color: #3a3f44; border-radius: 8px; background: #191c1d; color: #d2d6d9; font-size: 11px; }
.detail-code-block .button:hover { background: #303438; color: #fff; }
@media (max-width: 640px) {
  .feed-author-tools { align-items: flex-end; flex-direction: column; }
  .feed-actions { align-items: flex-start; flex-direction: column; }
  .feed-actions__main, .feed-actions__side { width: 100%; gap: 14px; }
  .feed-actions__side { justify-content: space-between; margin-left: 0; }
  .feed-likers { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}

/* Stitch: plaza and work detail */
:root {
  --stitch-canvas: #f8f9fa;
  --stitch-ink: #191c1d;
  --stitch-muted: #71777f;
  --stitch-border: #e1e3e4;
  --stitch-soft: #f3f4f5;
  --stitch-black: #090a0c;
}

body.zaovibe-theme {
  background: var(--stitch-canvas);
  color: var(--stitch-ink);

/* 05-pages.css */
/* 05-pages.css — 按原始书写顺序切分，保持层叠顺序与覆盖关系不变。 */
  font-family: "Geist", "Noto Sans SC", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.site-header {
  height: 64px;
  background: rgb(255 255 255 / 80%);
  border-bottom-color: rgb(198 198 202 / 55%);
  backdrop-filter: blur(14px);
}
.site-header--detail { height: 72px; }
.site-header .wrap {
  width: min(1370px, 100%);
  height: 100%;
  padding-inline: 16px;
}
.nav { gap: 32px; }
.brand {
  gap: 8px;
  color: #090a0c;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 12px;
  background: var(--stitch-black);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0;
}
.brand-word { display: inline-flex; }
.brand-word > span { color: #70757c; font-weight: 600; }
.site-header--detail .brand {
  gap: 10px;
  font-size: 20px;
  letter-spacing: -0.02em;
}
.site-header--detail .brand-mark {
  border-radius: 50%;
  font-size: 13px;
  letter-spacing: -0.08em;
}
.site-header--detail .brand-word > span { color: #191c1d; font-weight: 700; }
.search-trigger {
  width: 464px;
  height: 40px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: rgb(231 232 233 / 58%);
  color: #8a9097;
  font-size: 13px;
  text-align: left;
}
.search-trigger:hover,
.search-trigger:focus-visible { background: #fff; border-color: #d4d6d8; color: #191c1d; }
.search-trigger .zv-icon { width: 19px; height: 19px; color: #8c9298; }
.site-header--detail .search-trigger { width: 384px; border-radius: 999px; }
.nav-actions { gap: 12px; }
.header-publish {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 12px;
  background: var(--stitch-black);
  border-color: var(--stitch-black);
  font-size: 13px;
  box-shadow: 0 4px 14px rgb(9 10 12 / 18%);
}
.header-publish .zv-icon { width: 17px; height: 17px; }
.site-header--detail .header-publish { border-radius: 999px; }
.header-notifications { position: relative; width: 40px; height: 40px; border-radius: 50%; color: #5e646b; }
.header-notifications .material-symbols-outlined { font-size: 21px; }
.notification-dot { position: absolute; top: 10px; right: 10px; width: 7px; height: 7px; border: 2px solid #fff; border-radius: 50%; background: var(--stitch-black); }
.avatar-link {
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid #dfe1e3;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgb(0 0 0 / 5%);
}
.site-header--detail .avatar-link { border-radius: 50%; }
.avatar-link .avatar { width: 100%; height: 100%; border-radius: inherit; }
.avatar.is-fallback { display: grid; place-items: center; background: #e5e7e9; color: #646a70; font-size: 12px; }
.avatar.is-fallback .avatar__fallback { display: block; }
.account-menu { top: 66px; right: max(16px, calc((100% - 1370px) / 2)); border-radius: 12px; }
.site-header--detail .account-menu { top: 74px; }

.community-layout {
  width: min(1370px, 100%);
  min-height: calc(100vh - 64px);
  margin-inline: auto;
  padding: 32px 16px 64px;
  display: grid;
  grid-template-columns: minmax(220px, 268px) minmax(0, 660px);
  align-items: start;
  gap: 32px;
}
.community-sidebar { min-height: calc(100vh - 110px); }
.sidebar-intro { display: flex; align-items: flex-start; justify-content: space-between; padding: 1px 12px 12px; }
.sidebar-intro h2 { margin: 0; font-size: 15px; line-height: 1.35; letter-spacing: -.01em; }
.sidebar-intro p { margin: 3px 0 0; color: #9ba0a5; font-size: 12px; }
.sidebar-pro { padding: 2px 7px; border: 1px solid #e1e3e4; border-radius: 999px; color: #6f7479; font: 500 10px/1.4 "JetBrains Mono", monospace; }
.sidebar-primary { display: flex; flex-direction: column; gap: 2px; }
.side-link { min-height: 39px; margin: 0; padding: 8px 14px; border-radius: 12px; color: #646a70; font-size: 13.5px; }
.side-link:hover { background: rgb(231 232 233 / 58%); color: #090a0c; }
.side-link.is-active { background: var(--stitch-black); color: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / 10%); }
.side-link__label { display: inline-flex; align-items: center; gap: 10px; }
.side-link .material-symbols-outlined { width: 19px; font-size: 19px; color: #9ca1a6; }
.side-link.is-active .material-symbols-outlined { color: #fff; }
.side-count { color: #a0a5aa; font: 500 11px/1.4 "JetBrains Mono", monospace; }
.side-link.is-active .side-count { padding: 2px 6px; border-radius: 999px; background: rgb(255 255 255 / 17%); color: #fff; }
.sidebar-section { margin-top: 14px; padding: 14px 0 0; border-top: 1px solid rgb(198 198 202 / 58%); }
.sidebar-section__head { display: flex; align-items: center; justify-content: space-between; padding: 0 12px 7px; color: #9ba0a5; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.sidebar-section__head a, .sidebar-section__head small { color: #9ba0a5; font-size: 11px; font-weight: 400; letter-spacing: 0; text-transform: none; }
.sidebar-topics { display: flex; flex-direction: column; gap: 1px; }
.sidebar-topics a { display: flex; align-items: center; gap: 10px; padding: 6px 12px; border-radius: 8px; color: #646a70; font-size: 13px; }
.sidebar-topics a:hover { background: rgb(231 232 233 / 58%); color: #090a0c; }
.sidebar-topics i { width: 6px; height: 6px; border-radius: 50%; background: #a8adb2; }
.sidebar-topics a:hover i { background: #090a0c; }
.sidebar-creators { padding-bottom: 4px; }
.creator-mini { display: flex; align-items: center; gap: 8px; min-height: 35px; padding: 3px 8px; border-radius: 8px; }
.creator-mini:hover { background: rgb(231 232 233 / 45%); }
.creator-mini__avatar { display: grid; place-items: center; width: 28px; height: 28px; overflow: hidden; border: 1px solid #d2d5d8; border-radius: 7px; background: #e9eaeb; color: #646a70; font-size: 10px; font-weight: 700; }
.creator-mini__avatar .avatar { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.creator-mini__avatar--dark { background: #191c1d; color: #fff; border-color: #191c1d; }
.creator-mini__copy { min-width: 0; flex: 1; line-height: 1.2; }
.creator-mini__copy strong, .creator-mini__copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.creator-mini__copy strong { color: #303438; font-size: 12px; }
.creator-mini__copy small { margin-top: 2px; color: #9ba0a5; font-size: 10px; }
.creator-mini button { padding: 2px 7px; border: 1px solid #dfe1e3; border-radius: 6px; background: #fff; color: #565c62; font-size: 11px; }
.creator-mini button:hover { border-color: #090a0c; color: #090a0c; }
.sidebar-footer { display: flex; justify-content: space-between; gap: 8px; margin-top: auto; padding: 14px 12px 0; border-top: 1px solid rgb(198 198 202 / 58%); color: #a1a6ab; font-size: 11px; }
.sidebar-footer span:last-child { display: flex; gap: 8px; }

.feed-main { width: 100%; max-width: 660px; min-width: 0; margin-inline: auto; }
.feed-heading { margin: 0 0 24px; padding: 0; }
.feed-heading h1 { margin: 0 0 3px; color: #090a0c; font-size: 28px; line-height: 1.2; font-weight: 700; letter-spacing: -.025em; }
.feed-heading .lede { margin: 0; color: #8c9298; font-size: 13px; }
.feed-filter-bar { position: sticky; top: 64px; z-index: 20; display: flex; flex-direction: column; align-items: stretch; gap: 12px; margin: 0 -4px 16px; padding: 1px 4px 14px; border-bottom: 1px solid rgb(198 198 202 / 62%); background: rgb(248 249 250 / 90%); backdrop-filter: blur(13px); }
.feed-category-tabs { display: flex; align-items: center; gap: 24px; overflow-x: auto; scrollbar-width: none; }
.feed-category-tabs::-webkit-scrollbar { display: none; }
.feed-category-tabs a { padding: 2px 1px 12px; margin-bottom: -15px; color: #858b91; font-size: 14px; white-space: nowrap; }
.feed-category-tabs a:hover, .feed-category-tabs a.is-active { color: #090a0c; }
.feed-category-tabs a.is-active { border-bottom: 2px solid #090a0c; font-weight: 600; }
.feed-list { display: flex; flex-direction: column; gap: 20px; }
.feed-row { position: relative; margin: 0; padding: 24px; border: 1px solid rgb(198 198 202 / 52%); border-radius: 16px; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / 4%), 0 1px 2px -1px rgb(0 0 0 / 4%); transition: border-color .18s ease, box-shadow .18s ease; }
.feed-row:hover { border-color: #cfd2d5; box-shadow: 0 8px 24px -4px rgb(0 0 0 / 6%), 0 2px 6px -2px rgb(0 0 0 / 4%); }
.feed-author-row { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; }
.feed-author-avatar .avatar { width: 40px; height: 40px; border-radius: 50%; box-shadow: 0 0 0 1px #e1e3e4; }
.feed-author-avatar .avatar__image { filter: grayscale(20%); }
.feed-author-info { min-width: 0; flex: 1; }
.feed-author-name-row { display: flex; align-items: center; gap: 7px; min-width: 0; }
.feed-author-name { color: #090a0c; font-size: 14px; font-weight: 600; line-height: 1.2; }
.feed-author-badge { padding: 2px 6px; border: 1px solid #e1e3e4; border-radius: 4px; background: #f3f4f5; color: #62686e; font-size: 10px; }
.feed-author-info .content-meta { gap: 7px; margin: 3px 0 0; color: #a0a5aa; font-size: 11px; }
.feed-category-badge { padding: 2px 6px; border: 1px solid #e1e3e4; border-radius: 4px; background: #f3f4f5; color: #555b61; font-size: 10px; font-weight: 500; }
.feed-views { display: inline-flex; align-items: center; gap: 2px; }
.feed-views .material-symbols-outlined { font-size: 13px; }
.feed-author-tools { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.feed-author-tools { position: relative; }
.feed-featured { display: inline-flex; align-items: center; gap: 4px; padding: 2px 7px; border-radius: 4px; background: #191c1d; color: #fff; font-size: 10px; font-weight: 500; }
.feed-featured .material-symbols-outlined { font-size: 13px; }
.feed-more { display: inline-grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: #a2a7ac; }
.feed-more:hover { background: #f3f4f5; color: #555b61; }
.feed-more .material-symbols-outlined { font-size: 20px; }
.feed-menu { position: absolute; top: 32px; right: 0; z-index: 25; width: 136px; padding: 5px; border: 1px solid #dfe1e3; border-radius: 10px; background: #fff; box-shadow: 0 10px 28px rgb(9 10 12 / 12%); }
.feed-menu a, .feed-menu button { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 32px; padding: 6px 8px; border: 0; border-radius: 7px; background: transparent; color: #4f565d; font-size: 11px; text-align: left; }
.feed-menu a:hover, .feed-menu button:hover { background: #f1f2f3; color: #090a0c; }
.feed-menu .material-symbols-outlined { font-size: 16px; }
.feed-copy h2 { margin: 0 0 6px; color: #090a0c; font-size: 18px; line-height: 1.35; font-weight: 700; letter-spacing: -.015em; }
.feed-copy h2 a:hover { color: #62686e; }
.feed-summary { display: -webkit-box; overflow: hidden; margin: 0; color: #5f666d; font-size: 13px; line-height: 1.7; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.feed-preview { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; max-height: 340px; margin: 16px 0 0; overflow: hidden; border: 1px solid #e1e3e4; border-radius: 12px; background: #f3f4f5; }
.feed-preview img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.feed-preview:hover img { transform: scale(1.01); }
.feed-preview-label { position: absolute; right: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border: 1px solid rgb(255 255 255 / 12%); border-radius: 7px; background: rgb(9 10 12 / 78%); color: #fff; font: 500 10px/1.3 "JetBrains Mono", monospace; }
.feed-preview-label i { width: 6px; height: 6px; border-radius: 50%; background: #fff; }
.feed-tags { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 13px; }
.feed-tags a { padding: 2px 7px; border: 1px solid #e1e3e4; border-radius: 4px; background: #f3f4f5; color: #646a70; font: 400 11px/1.5 "JetBrains Mono", monospace; }
.feed-tags a:hover { background: #e7e8e9; color: #191c1d; }
.feed-poll { margin-top: 14px; padding: 14px; border: 1px solid #e1e3e4; border-radius: 12px; background: #f3f4f5; }
.feed-poll__head { display: flex; align-items: center; gap: 7px; margin-bottom: 9px; color: #292e33; font-size: 12px; }
.feed-poll__head .material-symbols-outlined { font-size: 18px; }
.feed-poll__head small { margin-left: auto; color: #9da2a7; font-size: 10px; }
.feed-poll > a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 31px; margin-top: 6px; padding: 5px 8px; border: 1px solid #dfe1e3; border-radius: 7px; background: #fff; color: #555b61; font-size: 11px; }
.feed-poll > a:hover { border-color: #191c1d; color: #191c1d; }
.feed-poll > a .material-symbols-outlined { font-size: 15px; color: #a0a5aa; }
.feed-actions { display: flex; align-items: center; gap: 20px; margin-top: 14px; padding-top: 13px; border-top: 1px solid #eef0f1; color: #646a70; font-size: 12px; }
.feed-actions a, .feed-actions button { display: inline-flex; align-items: center; gap: 6px; padding: 2px 0; border: 0; background: transparent; color: inherit; font-size: 12px; font-weight: 500; }
.feed-actions a:hover, .feed-actions button:hover, .feed-actions [aria-pressed="true"] { color: #090a0c; }
.feed-actions .material-symbols-outlined { font-size: 18px; }
.feed-actions [data-relation="like"].is-active [data-relation-icon], .detail-side-actions [data-relation="like"].is-active [data-relation-icon], .detail-quick-actions [data-relation="like"].is-active [data-relation-icon] { font-variation-settings: "FILL" 1; color: #090a0c; }
.feed-save { margin-left: auto; }

.community-widgets { display: none; width: 100%; min-width: 0; gap: 20px; }
.community-widget { padding: 20px; border: 1px solid rgb(198 198 202 / 58%); border-radius: 16px; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / 4%); }
.community-widget h2 { margin: 0; color: #090a0c; font-size: 14px; line-height: 1.35; font-weight: 700; }
.widget-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.widget-heading > span:last-child, .widget-heading > small { color: #9ba0a5; font: 400 10px/1.3 "JetBrains Mono", monospace; white-space: nowrap; }
.widget-heading > a { margin-left: auto; color: #9ba0a5; font-size: 10px; }
.community-widget textarea { display: block; min-height: 64px; margin: 0 0 10px; padding: 10px 12px; resize: none; border: 1px solid #e1e3e4; border-radius: 11px; background: #f8f9fa; color: #191c1d; font-size: 12px; }
.community-widget textarea::placeholder { color: #adb2b7; }
.widget-actions { display: flex; align-items: center; justify-content: space-between; margin: 0; }
.widget-tools { display: flex; align-items: center; gap: 1px; }
.widget-tools .icon-button { width: 28px; height: 28px; border-radius: 8px; color: #70767c; }
.widget-tools .material-symbols-outlined { font-size: 18px; }
.widget-actions .button { min-height: 30px; padding: 4px 13px; border-radius: 9px; font-size: 12px; }
.community-widget--dark { padding: 16px; border-color: #191c1d; background: #090a0c; color: #fff; box-shadow: 0 4px 14px rgb(9 10 12 / 20%); }
.community-widget--dark h2 { margin: 11px 0 5px; color: #fff; font-size: 14px; }
.community-widget--dark p { margin: 0 0 10px; color: #a6abb0; font-size: 11px; line-height: 1.6; }
.challenge-head, .challenge-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.challenge-head span { padding: 3px 7px; border-radius: 4px; background: rgb(255 255 255 / 14%); color: #fff; font-size: 10px; font-weight: 600; }
.challenge-head small, .challenge-foot span { color: #8e949a; font: 400 10px/1.3 "JetBrains Mono", monospace; }
.challenge-foot { padding-top: 9px; border-top: 1px solid #272a2d; }
.challenge-foot a { padding: 4px 8px; border-radius: 6px; background: #fff; color: #090a0c; font-size: 10px; font-weight: 700; }
.widget-heading--icon { justify-content: flex-start; }
.widget-heading--icon .widget-icon { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; background: #f3f4f5; color: #3f454b; }
.widget-icon .material-symbols-outlined { font-size: 16px; }
.widget-heading--icon h2 { flex: 1; }
.ranking-list { display: flex; flex-direction: column; gap: 12px; }
.ranking-item { display: flex; align-items: center; gap: 9px; min-width: 0; }
.ranking-item > strong { width: 11px; color: #191c1d; font: 700 12px/1.3 "JetBrains Mono", monospace; }
.ranking-thumb { display: grid; place-items: center; width: 40px; height: 40px; flex: none; overflow: hidden; border: 1px solid #e1e3e4; border-radius: 8px; background: #f3f4f5; color: #62686e; font-size: 11px; font-weight: 700; }
.ranking-thumb img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(15%); }
.ranking-thumb--fallback { background: #191c1d; color: #fff; }
.ranking-copy { min-width: 0; flex: 1; }
.ranking-copy b, .ranking-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ranking-copy b { color: #303438; font-size: 12px; font-weight: 500; }
.ranking-copy small { margin-top: 3px; color: #9ba0a5; font: 400 10px/1.3 "JetBrains Mono", monospace; }
.widget-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.widget-tags a { padding: 4px 8px; border: 1px solid #e1e3e4; border-radius: 7px; background: #f3f4f5; color: #62686e; font-size: 11px; }
.widget-tags a:hover { border-color: #090a0c; background: #090a0c; color: #fff; }
.widget-tips { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; color: #62686e; font-size: 11px; line-height: 1.55; }
.widget-tips li { display: flex; align-items: flex-start; gap: 7px; }
.widget-tips .material-symbols-outlined { flex: none; margin-top: 1px; color: #191c1d; font-size: 15px; }

.mobile-community-nav { display: none; }
@media (min-width: 1024px) {
  .feed-category-tabs { display: none; }
}
@media (min-width: 1280px) {
  .community-layout { grid-template-columns: minmax(220px, 268px) minmax(0, 660px) minmax(280px, 338px); gap: 36px; }
  .community-widgets { display: flex; flex-direction: column; align-self: start; }
  .feed-filter-bar { flex-direction: row; align-items: center; justify-content: flex-start; }
}
@media (min-width: 768px) {
  .feed-filter-bar { flex-direction: row; align-items: center; justify-content: space-between; }
}
@media (max-width: 1023px) {
  .community-layout { display: block; }
  .community-sidebar { display: none; }
  .feed-main { max-width: 660px; }
}
@media (max-width: 640px) {
  .site-header .wrap { padding-inline: 12px; }
  .nav { gap: 10px; }
  .site-header .wrap { min-width: 0; }
  .brand { min-width: 0; flex: 1 1 auto; gap: 6px; font-size: 18px; }
  .brand-word { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .brand-mark { width: 28px; height: 28px; border-radius: 10px; font-size: 14px; }
  .site-header--detail .brand { font-size: 18px; }
  .site-header--detail .brand-mark { width: 28px; height: 28px; }
  .search-trigger { width: 32px; height: 36px; padding: 6px; border: 0; background: transparent; }
  .search-trigger span { display: none; }
  .search-trigger .zv-icon { width: 20px; height: 20px; }
  .nav-actions { min-width: 0; flex: none; gap: 5px; }
  .header-publish { min-height: 32px; padding: 4px 9px; border-radius: 9px; white-space: nowrap; }
  .header-publish .zv-icon { display: none; }
  .header-publish span { font-size: 12px; }
  .header-notifications { width: 32px; height: 32px; }
  .header-notifications .material-symbols-outlined { font-size: 19px; }
  .avatar-link { width: 32px; height: 32px; border-radius: 10px; }
  .site-header--detail .avatar-link { border-radius: 50%; }
  .community-layout { padding: 18px 12px 86px; }
  .feed-heading { margin-bottom: 20px; }
  .feed-heading h1 { font-size: 23px; }
  .feed-heading .lede { font-size: 12px; }
  .feed-filter-bar { top: 64px; margin-inline: -12px; padding-inline: 12px; }
  .feed-category-tabs { gap: 14px; }
  .feed-category-tabs a { font-size: 12px; }
  .feed-tabs { margin-left: 0; }
  .feed-row { padding: 18px; border-radius: 14px; }
  .feed-featured { display: none; }
  .feed-copy h2 { font-size: 17px; }
  .feed-summary { font-size: 12px; }
  .feed-actions { gap: 15px; }
  .feed-actions .feed-save span:last-child { display: none; }
  .mobile-community-nav { position: fixed; right: 0; bottom: 0; left: 0; z-index: 50; display: flex; align-items: center; height: 64px; border-top: 1px solid #e1e3e4; background: rgb(255 255 255 / 95%); box-shadow: 0 -5px 18px rgb(0 0 0 / 5%); backdrop-filter: blur(14px); }
  .mobile-community-nav > a, .mobile-community-nav > button { display: flex; width: 100%; height: 100%; flex-direction: column; align-items: center; justify-content: center; gap: 1px; border: 0; background: transparent; color: #9ba0a5; font-size: 10px; }
  .mobile-community-nav > a.is-active { color: #090a0c; font-weight: 600; }
  .mobile-community-nav .material-symbols-outlined { font-size: 23px; }
  .mobile-community-nav__create { position: relative; top: -10px; width: 48px !important; height: 48px !important; flex: none; border: 3px solid #fff !important; border-radius: 50%; background: #090a0c !important; color: #fff !important; box-shadow: 0 4px 14px rgb(9 10 12 / 20%); }
  .mobile-community-nav__create .material-symbols-outlined { font-size: 24px; }
}

.detail-shell {
  width: min(1370px, 100%);
  margin-inline: auto;
  padding: 32px 16px 64px;
  display: grid;
  grid-template-columns: minmax(176px, 214px) minmax(0, 1088px);
  align-items: start;
  gap: 36px;
}
.detail-sidenav { position: sticky; top: 104px; min-width: 0; }
.detail-side-nav { display: flex; flex-direction: column; gap: 22px; }
.detail-back { display: flex; align-items: center; gap: 9px; padding: 8px 12px; border-radius: 11px; color: #6f767d; font-size: 13px; font-weight: 500; }
.detail-back:hover { background: #f0f1f2; color: #191c1d; }
.detail-back .material-symbols-outlined { font-size: 18px; }
.detail-side-actions { display: flex; flex-direction: column; gap: 2px; padding: 7px; border: 1px solid rgb(198 198 202 / 58%); border-radius: 14px; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / 4%); }
.detail-side-actions button, .detail-side-actions a { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 32px; padding: 6px 8px; border: 0; border-radius: 9px; background: transparent; color: #646a70; font-size: 12px; text-align: left; }
.detail-side-actions button:hover, .detail-side-actions a:hover { background: #f3f4f5; color: #191c1d; }
.detail-side-actions button > span, .detail-side-actions a > span { display: inline-flex; align-items: center; gap: 7px; }
.detail-side-actions strong { color: #9da2a7; font: 600 11px/1.2 "JetBrains Mono", monospace; }
.detail-side-actions .material-symbols-outlined { font-size: 17px; }
.detail-side-actions i { height: 1px; margin: 3px 4px; background: #eef0f1; }
.detail-toc { position: relative; padding-left: 10px; border-left: 1px solid #e1e3e4; }
.detail-toc__label { display: flex; align-items: center; gap: 5px; margin: 0 0 5px -2px; color: #9da2a7; font: 600 10px/1.4 "JetBrains Mono", monospace; letter-spacing: .06em; text-transform: uppercase; }
.detail-toc__label .material-symbols-outlined { font-size: 14px; }
.detail-toc a { position: relative; display: block; padding: 6px 9px; border-radius: 8px; color: #7a8086; font-size: 12px; }
.detail-toc a:hover { color: #191c1d; background: #fafafa; }
.detail-toc a.is-active { color: #191c1d; background: #f1f2f3; font-weight: 600; }
.detail-toc a.is-active::before { position: absolute; top: 50%; left: -12px; width: 4px; height: 16px; border-radius: 99px; background: #191c1d; content: ""; transform: translateY(-50%); }
.detail-maincanvas { width: 100%; min-width: 0; max-width: 1088px; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 700px) minmax(300px, 352px); align-items: start; gap: 36px; }
.detail-primary-column { min-width: 0; }
.detail-content { padding: 32px; border: 1px solid rgb(198 198 202 / 58%); border-radius: 16px; background: #fff; box-shadow: 0 8px 24px -4px rgb(0 0 0 / 6%), 0 2px 6px -2px rgb(0 0 0 / 4%); }
.detail-content__header { margin-bottom: 28px; padding-bottom: 24px; border-bottom: 1px solid #eef0f1; }
.detail-kicker { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-bottom: 12px; color: #9ba0a5; font-size: 11px; }
.detail-kicker__primary, .detail-kicker__status { padding: 3px 8px; border-radius: 5px; font-size: 11px; font-weight: 600; }
.detail-kicker__primary { background: #191c1d; color: #fff; }
.detail-kicker__status { display: inline-flex; align-items: center; gap: 5px; border: 1px solid #e1e3e4; background: #f3f4f5; color: #4f565d; }
.detail-kicker__status i { width: 6px; height: 6px; border-radius: 50%; background: #191c1d; }
.detail-kicker__date { margin-left: auto; }
.detail-content__header h1 { margin: 0 0 16px; color: #191c1d; font-size: 32px; line-height: 1.16; font-weight: 700; letter-spacing: -.03em; }
.detail-author-line { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.detail-author { display: inline-flex; align-items: center; gap: 11px; min-width: 0; }
.detail-author .avatar { width: 40px; height: 40px; border-radius: 50%; box-shadow: 0 0 0 2px #f1f2f3; }
.detail-author > span { display: block; min-width: 0; }
.detail-author b, .detail-author small { display: block; }
.detail-author b { color: #303438; font-size: 14px; }
.detail-author small { max-width: 360px; margin-top: 3px; overflow: hidden; color: #9ba0a5; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.detail-follow { display: inline-flex; align-items: center; gap: 5px; padding: 6px 12px; border: 1px solid #dfe1e3; border-radius: 9px; background: #fff; color: #303438; font-size: 12px; font-weight: 500; }
.detail-follow:hover { border-color: #191c1d; background: #fafafa; }
.detail-follow .material-symbols-outlined { font-size: 16px; }
.detail-stage { margin-bottom: 28px; overflow: hidden; border: 1px solid #26292c; border-radius: 16px; background: #090a0c; color: #fff; box-shadow: 0 4px 14px rgb(9 10 12 / 20%); }
.detail-stage__bar, .detail-stage__footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 16px; background: #191c1d; }
.detail-stage__bar { border-bottom: 1px solid #292d30; }
.stage-dots { display: flex; gap: 5px; align-items: center; }
.stage-dots i { display: block; width: 9px; height: 9px; border-radius: 50%; background: #383d42; }
.stage-url { display: inline-flex; align-items: center; gap: 4px; margin-right: auto; color: #949ba2; font: 400 10px/1.3 "JetBrains Mono", monospace; }
.stage-url .material-symbols-outlined { font-size: 13px; color: #6e767e; }
.stage-version { padding: 3px 7px; border-radius: 4px; background: #292d30; color: #979ea5; font: 400 10px/1.3 "JetBrains Mono", monospace; }
.detail-stage__canvas { position: relative; display: flex; min-height: 360px; align-items: center; justify-content: center; overflow: hidden; background: #090a0c; }
.detail-stage__canvas img { display: block; width: 100%; height: auto; max-height: 520px; object-fit: contain; }
.detail-stage-empty { display: flex; min-height: 300px; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 32px; color: #8e949a; text-align: center; }
.detail-stage-empty .material-symbols-outlined { color: #fff; font-size: 34px; }
.detail-stage-empty strong { color: #fff; font-size: 15px; }
.detail-stage-empty span:last-child { font-size: 11px; }
.detail-stage__footer { padding-block: 12px; border-top: 1px solid #292d30; color: #989fa6; font-size: 11px; }
.detail-stage__footer > span:first-child { display: inline-flex; align-items: center; gap: 7px; }
.detail-stage__footer > span:first-child i { width: 7px; height: 7px; border-radius: 50%; background: #fff; }
.detail-stage__footer b { color: #555c63; font-weight: 400; }
.detail-stage__footer > span:last-child { display: flex; align-items: center; gap: 8px; }
.detail-stage__footer a { display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px; border-radius: 6px; background: #fff; color: #090a0c; font-size: 11px; font-weight: 500; }
.detail-stage__footer a.is-dark { background: #292d30; color: #d2d6d9; }
.detail-stage__footer .material-symbols-outlined { font-size: 15px; }
.detail-memo { color: #5f666d; font-size: 14px; line-height: 1.8; }
.detail-memo h2, .detail-timeline h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 11px; color: #191c1d; font-size: 17px; line-height: 1.35; }
.detail-memo h2 .material-symbols-outlined, .detail-timeline h2 .material-symbols-outlined { font-size: 20px; }
.detail-entry-content > * { margin: 0 0 12px; }
.detail-entry-content > *:last-child { margin-bottom: 0; }
.detail-entry-content p { color: #5f666d; }
.detail-entry-content a { color: #191c1d; text-decoration: underline; text-underline-offset: 3px; }
.detail-entry-content pre { overflow: auto; padding: 14px; border-radius: 9px; background: #191c1d; color: #e7e8e9; font: 12px/1.65 "JetBrains Mono", monospace; }
.detail-architecture { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 23px 0 28px; }
.detail-architecture article { padding: 15px; border: 1px solid rgb(198 198 202 / 58%); border-radius: 12px; background: rgb(243 244 245 / 60%); }
.detail-architecture h3 { display: flex; align-items: center; gap: 7px; margin: 0 0 5px; color: #303438; font-size: 13px; }
.detail-architecture h3 .material-symbols-outlined { font-size: 18px; }
.detail-architecture p { margin: 0; color: #80868c; font-size: 11px; line-height: 1.55; }
.detail-poll { margin-bottom: 28px; padding: 22px; border: 1px solid rgb(198 198 202 / 58%); border-radius: 14px; background: #f3f4f5; }
.detail-poll h3 { margin: 0 0 13px; color: #303438; font-size: 15px; }
.detail-poll form { margin: 0; }
.detail-poll .poll-options { display: grid; gap: 8px; }
.detail-poll .poll-option { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 42px; padding: 10px 12px; border: 1px solid #dfe1e3; border-radius: 10px; background: #fff; color: #4f565d; font-size: 12px; }
.detail-poll label.poll-option { cursor: pointer; }
.detail-poll label.poll-option:hover { border-color: #191c1d; }
.detail-poll .poll-option input { width: 15px; min-height: 15px; }
.detail-poll .poll-fill { position: absolute; inset: 0 auto 0 0; z-index: 0; border-radius: inherit; background: #e1e3e4; }
.detail-poll .poll-option > span:not(.poll-fill), .detail-poll .poll-option > .poll-count { position: relative; z-index: 1; }
.detail-poll .poll-count { color: #80868c; font: 400 10px/1.3 "JetBrains Mono", monospace; }
.detail-poll .poll-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 13px; color: #8b9197; font-size: 11px; }
.detail-poll .poll-footer .button { min-height: 30px; padding: 4px 12px; border-radius: 8px; font-size: 11px; }
.detail-poll [data-poll-status] { margin: 7px 0 0; color: #b42318; font-size: 11px; }
.detail-timeline { margin-bottom: 28px; padding-top: 25px; border-top: 1px solid #eef0f1; }
.detail-timeline__list { display: grid; gap: 15px; }
.detail-timeline__list article { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 9px; }
.detail-timeline__rail { position: relative; display: flex; align-items: center; flex-direction: column; }
.detail-timeline__rail i { z-index: 1; width: 9px; height: 9px; margin-top: 4px; border-radius: 50%; background: #9da2a7; }
.detail-timeline__rail i.is-current { background: #191c1d; }
.detail-timeline__rail b { width: 2px; flex: 1; margin-top: 4px; background: #e1e3e4; }
.detail-timeline__list p { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin: 0 0 4px; }
.detail-timeline__list strong { color: #303438; font: 600 12px/1.3 "JetBrains Mono", monospace; }
.detail-timeline__list em { padding: 2px 5px; border-radius: 3px; background: #f3f4f5; color: #777e85; font-size: 10px; font-style: normal; }
.detail-timeline__list em.is-planned { border: 1px solid #e1e3e4; background: #fff; }
.detail-timeline__list time { color: #a0a5aa; font-size: 10px; }
.detail-timeline__list article > div > span { color: #687078; font-size: 12px; line-height: 1.6; }
.detail-comments { padding-top: 25px; border-top: 1px solid #eef0f1; }
.detail-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.detail-section-head h2 { display: flex; align-items: center; gap: 7px; margin: 0; color: #191c1d; font-size: 18px; line-height: 1.35; }
.detail-section-head h2 > .material-symbols-outlined { font-size: 20px; }
.detail-section-head h2 span:not(.material-symbols-outlined) { padding: 2px 6px; border: 1px solid #e1e3e4; border-radius: 999px; background: #f3f4f5; color: #777e85; font-size: 10px; font-weight: 600; }
.detail-section-head > div { display: flex; align-items: center; gap: 7px; color: #9ba0a5; font-size: 11px; }
.detail-section-head > div b { color: #303438; font-weight: 500; }
.detail-comment-form { display: flex; gap: 11px; margin-bottom: 24px; }
.detail-comment-form__avatar .avatar, .detail-comment__avatar .avatar { width: 36px; height: 36px; border-radius: 50%; box-shadow: 0 0 0 1px #e1e3e4; }
.detail-comment-box { flex: 1; padding: 10px 12px; border: 1px solid #dfe1e3; border-radius: 11px; background: #fff; }
.detail-comment-box:focus-within { border-color: #191c1d; }
.detail-comment-box textarea { display: block; min-height: 43px; padding: 3px 0; resize: vertical; border: 0; outline: 0; background: transparent; font-size: 12px; }
.detail-comment-box > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 8px; border-top: 1px solid #eef0f1; color: #a0a5aa; font-size: 10px; }
.detail-comment-box .button { min-height: 29px; padding: 4px 11px; border-radius: 7px; font-size: 11px; }
.detail-comment-box [data-reply-label], .detail-comment-box [data-form-status] { display: block; margin: 5px 0 0; color: #777e85; font-size: 10px; }
.detail-comment-box [data-form-status] { color: #18794e; }
.detail-comment-list { display: grid; gap: 19px; }
.detail-comment { display: flex; gap: 10px; }
.detail-comment.is-reply { margin-left: 38px; }
.detail-comment__body { min-width: 0; flex: 1; }
.detail-comment__card { padding: 11px 12px; border: 1px solid rgb(198 198 202 / 48%); border-radius: 11px; background: #f8f9fa; }
.detail-comment__card > div { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-bottom: 5px; }
.detail-comment__card b { color: #303438; font-size: 12px; }
.detail-comment__card em { padding: 2px 5px; border-radius: 3px; background: #191c1d; color: #fff; font-size: 9px; font-style: normal; }
.detail-comment__card time { margin-left: auto; color: #a0a5aa; font-size: 10px; }
.detail-comment__card p { margin: 0; color: #5f666d; font-size: 12px; line-height: 1.65; }
.detail-comment__card p p { margin-top: 7px; }
.detail-comment__actions { display: flex; align-items: center; gap: 16px; padding: 5px 2px 0; color: #838a91; font-size: 11px; }
.detail-comment__actions button, .detail-comment__like-count { display: inline-flex; align-items: center; gap: 4px; padding: 0; border: 0; background: transparent; color: inherit; font-size: inherit; }
.detail-comment__actions button:hover { color: #191c1d; }
.detail-comment__actions .material-symbols-outlined { font-size: 15px; }
.detail-login-comment { margin-bottom: 20px; }
.detail-login-comment .button { min-height: 32px; padding: 5px 12px; font-size: 11px; }
.detail-sidebar { position: sticky; top: 104px; display: flex; min-width: 0; flex-direction: column; gap: 20px; }
.detail-sidebar-card { padding: 20px; border: 1px solid rgb(198 198 202 / 58%); border-radius: 16px; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / 4%); }
.detail-quick-actions > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 11px; }
.detail-quick-actions > div:empty { display: none; }
.detail-quick-actions .button { min-height: 35px; padding: 6px 8px; border-radius: 9px; font-size: 11px; }
.detail-quick-actions .material-symbols-outlined { font-size: 16px; }
.detail-quick-actions footer { display: flex; justify-content: space-between; gap: 6px; padding-top: 10px; border-top: 1px solid #eef0f1; }
.detail-quick-actions footer button { display: inline-flex; align-items: center; gap: 4px; padding: 0; border: 0; background: transparent; color: #646a70; font-size: 10px; white-space: nowrap; }
.detail-quick-actions footer button:hover { color: #191c1d; }
.detail-quick-actions footer .material-symbols-outlined { font-size: 16px; }
.detail-sidebar-card > h2 { display: flex; align-items: center; gap: 7px; margin: 0 0 14px; padding-bottom: 14px; border-bottom: 1px solid #eef0f1; color: #303438; font-size: 14px; line-height: 1.35; }
.detail-sidebar-card > h2 .material-symbols-outlined { font-size: 18px; }
.detail-sidebar-card dl { display: grid; gap: 11px; margin: 0; }
.detail-sidebar-card dl div { display: flex; justify-content: space-between; gap: 10px; }
.detail-sidebar-card dt { color: #8b9197; font-size: 11px; }
.detail-sidebar-card dd { max-width: 145px; margin: 0; color: #303438; font: 500 10px/1.4 "JetBrains Mono", monospace; text-align: right; }
.detail-tech-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.detail-tech-tags span { padding: 3px 6px; border: 1px solid #e1e3e4; border-radius: 4px; background: #f3f4f5; color: #62686e; font: 400 10px/1.3 "JetBrains Mono", monospace; }
.detail-creator-card { background: #f3f4f5; }
.detail-creator-card > h2 { padding-bottom: 0; border-bottom: 0; }
.detail-creator-head { display: flex; align-items: center; gap: 10px; margin-bottom: 11px; }
.detail-creator-head .avatar { width: 44px; height: 44px; border-radius: 50%; box-shadow: 0 0 0 1px #e1e3e4; }
.detail-creator-head b, .detail-creator-head small { display: block; }
.detail-creator-head b { color: #303438; font-size: 13px; }
.detail-creator-head small { margin-top: 3px; color: #848b92; font-size: 10px; }
.detail-creator-card > p { margin: 0 0 12px; color: #687078; font-size: 11px; line-height: 1.55; }
.detail-creator-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-bottom: 12px; padding: 10px 5px; border: 1px solid #e1e3e4; border-radius: 10px; background: #fff; text-align: center; }
.detail-creator-stats b, .detail-creator-stats small { display: block; }
.detail-creator-stats b { color: #191c1d; font: 700 14px/1.2 "JetBrains Mono", monospace; }
.detail-creator-stats small { margin-top: 4px; color: #a0a5aa; font-size: 9px; }
.detail-message { display: flex; align-items: center; justify-content: center; gap: 5px; width: 100%; min-height: 32px; border: 1px solid #dfe1e3; border-radius: 9px; background: #fff; color: #62686e; font-size: 11px; }
.detail-message:hover { border-color: #191c1d; color: #191c1d; }
.detail-message .material-symbols-outlined { font-size: 16px; }
.detail-follow.is-active, .detail-message.is-active { background: #f3f4f5; }

.user-profile-page { padding: 36px 0 72px; }
.user-profile-page > .wrap { width: min(1120px, 100%); }
.user-profile-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; padding: 28px; border: 1px solid rgb(198 198 202 / 58%); border-radius: 16px; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / 4%); }
.user-profile-head__identity { display: flex; align-items: center; gap: 18px; min-width: 0; }
.user-profile-head__identity > .avatar { width: 72px; height: 72px; border-radius: 18px; }
.user-profile-head .section-label { margin: 0 0 4px; color: #92989e; font-size: 11px; }
.user-profile-head h1 { margin: 0 0 4px; color: #090a0c; font-size: 28px; }
.user-profile-head .muted { margin: 0; font-size: 12px; }
.action-cluster { display: flex; align-items: center; gap: 8px; }
.user-profile-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); align-items: start; gap: 28px; }
.user-profile-aside { position: sticky; top: 88px; padding: 20px; border: 1px solid rgb(198 198 202 / 58%); border-radius: 14px; background: #fff; }
.user-profile-aside .lede { margin: 0 0 18px; color: #62686e; font-size: 13px; }
.profile-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 0; padding: 12px 0; border-block: 1px solid #eef0f1; text-align: center; }
.profile-facts div { display: flex; flex-direction: column-reverse; }
.profile-facts dt { color: #9aa0a6; font-size: 9px; }
.profile-facts dd { margin: 0 0 3px; color: #191c1d; font: 700 14px/1.2 "JetBrains Mono", monospace; }
.profile-links { display: flex; flex-direction: column; gap: 7px; margin-top: 16px; }
.profile-links h2 { margin: 0 0 3px; font-size: 13px; }
.profile-links a, .profile-links > span { color: #687078; font-size: 11px; }
.profile-skills { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 5px; }
.profile-skills span { padding: 3px 6px; border: 1px solid #e1e3e4; border-radius: 5px; background: #f3f4f5; font-size: 10px; }
.user-profile-content { min-width: 0; }
.profile-tabs { display: flex; gap: 22px; margin-bottom: 20px; border-bottom: 1px solid #dfe1e3; }
.profile-tabs a { display: inline-flex; align-items: center; gap: 5px; margin-bottom: -1px; padding: 8px 1px 11px; color: #858b91; font-size: 12px; }
.profile-tabs a.is-active { border-bottom: 2px solid #090a0c; color: #090a0c; font-weight: 600; }
.profile-tabs span { color: #a0a5aa; font: 500 9px/1.3 "JetBrains Mono", monospace; }
.user-profile-content > .section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.user-profile-content > .section-head h2 { margin: 0; font-size: 18px; }
.user-profile-content > .section-head .muted { font-size: 11px; }
.user-profile-content .feed-row { padding: 22px; }
.publish-builder-fields { display: grid; gap: 16px; padding: 18px; border: 1px solid #e1e3e4; border-radius: 12px; background: #f8f9fa; }
.detail-related { margin-top: 24px; }
.detail-related .detail-section-head { margin-bottom: 13px; }
.detail-related .detail-section-head h2 { font-size: 17px; }
.detail-related .detail-section-head > a { display: inline-flex; align-items: center; gap: 3px; color: #7f868d; font-size: 11px; }
.detail-related .detail-section-head > a:hover { color: #191c1d; }
.detail-related .detail-section-head > a .material-symbols-outlined { font-size: 15px; }
.detail-related-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.detail-related-card { min-width: 0; padding: 16px; border: 1px solid rgb(198 198 202 / 58%); border-radius: 12px; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / 3%); }
.detail-related-card:hover { border-color: #b7bbc0; }
.detail-related-card > div, .detail-related-card footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.detail-related-card > div > span:first-child { padding: 3px 6px; border-radius: 4px; background: #f3f4f5; color: #737a81; font: 400 10px/1.3 "JetBrains Mono", monospace; }
.detail-related-card > div > .material-symbols-outlined { color: #a0a5aa; font-size: 16px; }
.detail-related-card h3 { margin: 13px 0 5px; color: #303438; font-size: 13px; line-height: 1.4; }
.detail-related-card p { display: -webkit-box; overflow: hidden; min-height: 36px; margin: 0 0 11px; color: #7d848b; font-size: 11px; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.detail-related-card footer { padding-top: 9px; border-top: 1px solid #eef0f1; color: #a0a5aa; font-size: 10px; }
.detail-related-card footer > span:last-child { display: inline-flex; align-items: center; gap: 3px; }
.detail-related-card footer .material-symbols-outlined { font-size: 14px; }

@media (max-width: 1023px) {
  .detail-shell { display: block; padding-top: 24px; }
  .detail-sidenav { display: none; }
  .detail-maincanvas { max-width: 1088px; }
}
@media (max-width: 820px) {
  .detail-grid { grid-template-columns: 1fr; gap: 24px; }
  .detail-sidebar { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .detail-sidebar-card:last-child { grid-column: 1 / -1; }
  .user-profile-grid { grid-template-columns: 1fr; }
  .user-profile-aside { position: static; }
}
@media (max-width: 640px) {
  .site-header--detail { height: 64px; }
  .detail-shell { padding: 16px 12px 80px; }
  .detail-content { padding: 20px; border-radius: 14px; }
  .detail-content__header { margin-bottom: 21px; padding-bottom: 19px; }
  .detail-kicker__date { width: 100%; margin-left: 0; }
  .detail-content__header h1 { max-width: 100%; font-size: clamp(22px, 7vw, 27px); overflow-wrap: anywhere; word-break: break-word; }
  .detail-author small { max-width: 210px; }
  .detail-stage { margin-inline: -4px; border-radius: 13px; }
  .detail-stage__bar, .detail-stage__footer { padding-inline: 11px; }
  .stage-url { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .stage-version { display: none; }
  .detail-stage__canvas { min-height: 240px; }
  .detail-stage__footer { align-items: flex-start; flex-direction: column; }
  .detail-stage__footer > span:last-child { width: 100%; }
  .detail-stage__footer a { flex: 1; justify-content: center; }
  .detail-architecture, .detail-related-grid, .detail-sidebar { grid-template-columns: 1fr; }
  .detail-sidebar-card:last-child { grid-column: auto; }
  .detail-section-head { align-items: flex-start; flex-direction: column; }
  .detail-section-head > div { align-self: flex-end; }
  .detail-comment__card time { width: 100%; margin-left: 0; }
  .detail-comment.is-reply { margin-left: 20px; }
  .detail-poll { padding: 16px; }
  .user-profile-page { padding: 16px 0 80px; }
  .user-profile-head { align-items: flex-start; flex-direction: column; padding: 20px; }
  .user-profile-head__identity > .avatar { width: 56px; height: 56px; border-radius: 14px; }
  .user-profile-head h1 { font-size: 23px; }
  .profile-tabs { gap: 15px; overflow-x: auto; }
}

/* Stitch publish page reconstruction: one editor card and a compact control rail. */
.publish-stitch-page { width: 100%; max-width: none; padding: 24px 0 64px; background: #f8f9fa; }
.publish-stitch-shell { width: min(1440px, calc(100% - 48px)); margin: 0 auto; }
.publish-stitch-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(280px, 1fr); gap: 24px; align-items: start; }
.publish-main-column { min-width: 0; display: grid; gap: 16px; }
.publish-stitch-page .publish-form .field { margin-bottom: 0; }
.publish-type-strip { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px; border: 1px solid #e5e5e5; border-radius: 16px; background: #fff; box-shadow: 0 2px 10px rgb(0 0 0 / 2%); }
.publish-type-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; flex: 1; margin: 0; padding: 4px; border: 0; border-radius: 11px; background: #f5f5f5; }
.publish-type-tabs label { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 34px; padding: 6px 10px; border-radius: 8px; color: #737373; font-size: 12px; cursor: pointer; }
.publish-type-tabs label:has(input:checked) { background: #171717; color: #fff; }
.publish-type-tabs input { position: absolute; opacity: 0; }
.publish-type-tabs .material-symbols-outlined { font-size: 15px; }
.publish-editor-meta { display: inline-flex; align-items: center; gap: 8px; flex: none; color: #a3a3a3; font: 10px "JetBrains Mono", monospace; white-space: nowrap; }
.publish-editor-meta i { width: 1px; height: 14px; background: #e5e5e5; }
.publish-editor-card { min-width: 0; padding: 24px 28px 18px; border: 1px solid #e5e5e5; border-radius: 16px; background: #fff; box-shadow: 0 2px 10px rgb(0 0 0 / 2%); }
.publish-title-row { display: flex; align-items: center; gap: 12px; padding: 0 0 14px; }
.publish-title-row input { flex: 1; min-width: 0; border: 0 !important; background: transparent !important; padding: 0 !important; color: #0a0a0a; font-size: 24px !important; font-weight: 700; letter-spacing: 0; }
.publish-title-row input:focus { outline: none; box-shadow: none !important; }
.publish-title-row > span { flex: none; color: #a3a3a3; font: 11px "JetBrains Mono", monospace; }
.publish-markdown-editor { border: 1px solid #e5e5e5; border-radius: 12px; box-shadow: none; overflow: hidden; }
.publish-markdown-editor:focus-within { border-color: #171717; box-shadow: 0 0 0 1.5px #171717; }
.publish-markdown-editor.is-fullscreen { position: fixed; inset: 24px; z-index: 80; display: grid; grid-template-rows: auto minmax(0, 1fr); box-shadow: 0 18px 60px rgb(0 0 0 / 24%); }
.publish-markdown-editor.is-fullscreen .publish-markdown-field,
.publish-markdown-editor.is-fullscreen textarea { min-height: 0; height: 100%; }
.publish-markdown-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 40px; padding: 5px 10px; border-bottom: 1px solid #e5e5e5; background: #fafafa; }
.publish-markdown-toolbar > div { display: flex; align-items: center; gap: 2px; }
.publish-markdown-toolbar button { min-width: 25px; height: 25px; padding: 3px 5px; border: 0; border-radius: 6px; background: transparent; color: #525252; font: 600 11px/1 "JetBrains Mono", monospace; cursor: pointer; }
.publish-markdown-toolbar button:hover { background: #fff; color: #0a0a0a; box-shadow: 0 1px 3px rgb(0 0 0 / 8%); }
.publish-markdown-toolbar .material-symbols-outlined { font-size: 15px; vertical-align: -3px; }
.publish-markdown-toolbar button[data-fullscreen-editor] .material-symbols-outlined { font-size: 16px; }
.publish-markdown-toolbar i { width: 1px; height: 16px; margin: 0 4px; background: #d4d4d4; }
.publish-markdown-toolbar small { color: #a3a3a3; font: 10px "JetBrains Mono", monospace; }
.publish-markdown-editor .publish-markdown-field { margin: 0; padding: 0 24px; }
.publish-markdown-editor .publish-markdown-field textarea { min-height: 230px; padding: 16px 0; border: 0; border-radius: 0; background: #fff; font-size: 14px; line-height: 1.75; }
.publish-type-fields-section, .publish-components-section, .publish-advanced-fields { margin-top: 16px; border-top: 1px solid #eeeeee; padding-top: 16px; }
.publish-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.publish-section-heading p { margin: 0 0 3px; color: #a3a3a3; font: 10px/1 "JetBrains Mono", monospace; }
.publish-section-heading h2 { margin: 0; color: #171717; font-size: 14px; line-height: 1.3; }
.publish-section-heading > span { color: #a3a3a3; font-size: 11px; }
.publish-component-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.publish-component-actions button { display: inline-flex; align-items: center; gap: 5px; min-height: 34px; padding: 6px 10px; border: 1px solid #d4d4d4; border-radius: 7px; background: #fff; color: #404040; font-size: 12px; font-weight: 600; }
.publish-component-actions button:hover, .publish-component-actions button:focus-visible { border-color: #171717; background: #171717; color: #fff; outline: none; }
.publish-component-actions .material-symbols-outlined { font-size: 17px; }
.publish-type-fields-section .field + .field { margin-top: 12px; }
.publish-advanced-fields summary { display: flex; justify-content: space-between; gap: 12px; color: #262626; font-size: 12px; cursor: pointer; list-style: none; }
.publish-advanced-fields summary::-webkit-details-marker { display: none; }
.publish-advanced-fields[open] summary { margin-bottom: 14px; }
.publish-inline-details .field + .field { margin-top: 12px; }
.publish-type-fields-section input, .publish-type-fields-section select, .publish-advanced-fields input, .publish-advanced-fields select { min-height: 38px; border-radius: 9px; background: #fff; font-size: 12px; }
.publish-upload-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 16px; padding: 12px; border: 1px dashed #d4d4d4; border-radius: 12px; background: #fff; }
.publish-upload-row > div:first-child { display: grid; gap: 4px; }
.publish-upload-row strong { color: #171717; font-size: 12px; }
.publish-upload-row small { color: #a3a3a3; font-size: 10px; }
.publish-upload-row .publish-upload { min-height: 0; margin: 0; border: 0; background: transparent; }
.publish-upload-row .publish-upload label { min-height: 0; width: auto; padding: 8px 12px; border-radius: 8px; background: #171717; color: #fff; font-size: 11px; }
.publish-upload-row .publish-upload label .material-symbols-outlined { display: none; }
.publish-upload-row .publish-preview { width: 110px; height: 64px; border-radius: 8px; }
.publish-inline-poll { margin-top: 16px; padding-top: 14px; border-top: 1px solid #eeeeee; }
.publish-inline-poll-head { display: flex; align-items: center; justify-content: space-between; }
.publish-inline-poll-head > div { display: inline-flex; align-items: center; gap: 7px; color: #262626; font-size: 12px; }
.publish-inline-poll-head > div .material-symbols-outlined { font-size: 17px; }
.publish-inline-poll-head small { padding: 2px 6px; border-radius: 4px; background: #f5f5f5; color: #737373; font: 10px "JetBrains Mono", monospace; }
.publish-inline-poll [data-poll-fields] { margin-top: 14px; padding: 14px; border: 1px solid #e5e5e5; border-radius: 12px; background: #fff; }
.publish-inline-poll .poll-editor-row input { min-height: 36px; padding: 8px 10px; border-radius: 8px; font-size: 12px; }
.publish-inline-poll .poll-editor-handle { width: 22px; padding: 0; border: 0; background: transparent; color: #a3a3a3; cursor: grab; font-size: 20px; line-height: 1; }
.publish-inline-poll .poll-editor-handle:active { cursor: grabbing; }
.publish-inline-poll .poll-editor-row.is-dragging { opacity: .55; }
.publish-inline-poll [data-add-option] { margin-top: 8px; color: #525252; font-size: 12px; }
.publish-inline-poll [data-add-option] .material-symbols-outlined { font-size: 18px; vertical-align: -4px; }
.publish-switch { display: inline-flex; align-items: center; margin-left: auto; cursor: pointer; }
.publish-switch input { position: absolute; opacity: 0; }
.publish-switch span { display: block; width: 34px; height: 19px; border-radius: 999px; background: #dfe1e3; box-shadow: inset 0 0 0 1px #c9cdd0; }
.publish-switch input:checked + span { background: #171717; box-shadow: inset 17px 0 0 #fff; }
.publish-tags-field, .publish-code-editor, .publish-inline-poll { margin-top: 16px !important; }
.publish-tag { display: inline-flex; align-items: center; gap: 3px; padding: 3px 5px 3px 8px; border: 1px solid #171717; border-radius: 999px; background: #171717; color: #fff; font-size: 11px; line-height: 1.3; }
.publish-tag-remove { display: inline-grid; width: 18px; height: 18px; place-items: center; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #fff; font-size: 15px; line-height: 1; }
.publish-tag-remove:hover, .publish-tag-remove:focus-visible { background: #fff; color: #171717; outline: none; }
.publish-tags-field { overflow: hidden; border: 1px solid #e5e5e5; border-radius: 12px; background: #fff; }
.publish-tags-field .publish-code-editor__bar { padding: 10px 12px; }
.publish-tags-field .publish-code-editor__bar label { color: #262626; font-size: 12px; font-weight: 600; }
.publish-tags-field .publish-code-editor__bar label span { color: #a3a3a3; font: 10px "JetBrains Mono", monospace; }
.publish-tags-editor { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-height: 50px; padding: 10px 12px; border-bottom: 1px solid #eeeeee; }
.publish-tag-list { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.publish-tag-list:empty { display: none; }
.publish-tags-editor #publish-tags-input { flex: 1 1 180px; min-width: 0; min-height: 28px; padding: 4px 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; font-size: 12px; }
.publish-tags-editor #publish-tags-input:focus { outline: none; box-shadow: none; }
.publish-tag-suggestions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 12px; background: #fafafa; color: #737373; font-size: 11px; }
.publish-tag-suggestions > span { flex: none; }
.publish-tag-suggestions button { display: inline-flex; align-items: center; min-height: 28px; padding: 4px 9px; border: 1px solid #d4d4d4; border-radius: 999px; background: #fff; color: #404040; font-size: 10px; line-height: 1; }
.publish-tag-suggestions button:hover, .publish-tag-suggestions button:focus-visible { border-color: #171717; background: #171717; color: #fff; outline: none; }
.publish-code-editor > .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 14px 14px 0; border-bottom: 1px solid #e5e5e5; background: #fafafa; }
.publish-code-editor > .form-grid .field { gap: 6px; margin: 0 0 14px; }
.publish-code-editor > .form-grid label { color: #404040; font-size: 11px; font-weight: 600; }
.publish-code-editor > .form-grid input { min-height: 38px; border-color: #d4d4d4; border-radius: 8px; background: #fff; color: #171717; font: 12px "JetBrains Mono", monospace; }
.publish-code-editor > textarea { min-height: 220px; padding: 14px; }
.publish-sidebar { position: sticky; top: 80px; display: grid; gap: 16px; }
.publish-sidebar-card { padding: 20px; border: 1px solid #e5e5e5; border-radius: 16px; background: #fff; box-shadow: 0 2px 10px rgb(0 0 0 / 2%); }
.publish-sidebar-card h2 { margin: 0; color: #171717; font-size: 14px; }
.publish-sidebar-card ul { display: grid; gap: 10px; margin: 16px 0 0; padding: 0; list-style: none; }
.publish-sidebar-card li { color: #737373; font-size: 11px; line-height: 1.55; }
.publish-sidebar-card--dark { border-color: #171717; background: #090a0c; }
.publish-sidebar-card--dark h2 { color: #fff; }
.publish-sidebar-card--dark p { color: #a3a3a3; font-size: 11px; line-height: 1.55; }
.publish-sidebar-card--dark li { color: #d4d4d4; }
.publish-config-card { padding: 18px; border: 1px solid #e5e5e5; border-radius: 16px; background: #fff; box-shadow: 0 2px 10px rgb(0 0 0 / 2%); }
.publish-config-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 12px; border-bottom: 1px solid #eeeeee; }
.publish-config-head h2 { margin: 0; color: #171717; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.publish-config-head span { padding: 3px 7px; border-radius: 999px; background: #f5f5f5; color: #525252; font: 10px "JetBrains Mono", monospace; }
.publish-config-fields { display: grid; gap: 12px; margin: 14px 0; }
.publish-config-fields label { display: grid; gap: 5px; color: #737373; font-size: 11px; }
.publish-config-fields select { width: 100%; min-height: 34px; padding: 6px 9px; border: 1px solid #e5e5e5; border-radius: 9px; background: #fafafa; color: #171717; font-size: 11px; }
.publish-config-card > .button--primary { width: 100%; min-height: 42px; justify-content: center; border-radius: 10px; }
.publish-shortcut { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 10px 0; color: #a3a3a3; font: 10px "JetBrains Mono", monospace; }
.publish-shortcut kbd { padding: 2px 5px; border: 1px solid #e5e5e5; border-radius: 4px; background: #fafafa; color: #525252; }
.publish-config-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding-top: 10px; border-top: 1px solid #eeeeee; }
.publish-config-actions .button { min-height: 36px; justify-content: center; border-radius: 9px; font-size: 11px; }
.publish-local-save { width: 100%; margin-top: 10px; border: 0; background: transparent; color: #737373; font-size: 11px; cursor: pointer; }
.publish-local-save:hover { color: #171717; }
.publish-last-update { display: flex; align-items: center; justify-content: space-between; padding: 12px; border: 1px solid #e5e5e5; border-radius: 12px; background: #f5f5f5; color: #737373; font-size: 11px; }
.publish-last-update strong { color: #404040; font: 11px "JetBrains Mono", monospace; }
.publish-preview-dialog { width: min(760px, calc(100% - 24px)); max-height: min(760px, calc(100vh - 32px)); padding: 0; border: 1px solid #171717; border-radius: 12px; background: #fff; color: #171717; box-shadow: 0 24px 70px rgb(0 0 0 / 26%); }
.publish-preview-dialog::backdrop { background: rgb(0 0 0 / 44%); }
.publish-preview-dialog__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px; border-bottom: 1px solid #e5e5e5; }
.publish-preview-dialog__head p { margin: 0 0 3px; color: #a3a3a3; font: 10px/1 "JetBrains Mono", monospace; }
.publish-preview-dialog__head h2 { margin: 0; font-size: 15px; }
.publish-preview-dialog__head .icon-button { display: inline-grid; width: 32px; height: 32px; place-items: center; border: 1px solid #d4d4d4; border-radius: 7px; background: #fff; color: #171717; }
.publish-preview-dialog__body { overflow: auto; max-height: calc(100vh - 144px); padding: 20px; background: #f8f9fa; }
.publish-preview-card { padding: clamp(18px, 4vw, 38px); border: 1px solid #e5e5e5; border-radius: 8px; background: #fff; }
.publish-preview-card__meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.publish-preview-card__meta span { padding: 3px 7px; border: 1px solid #d4d4d4; border-radius: 4px; color: #525252; font-size: 11px; }
.publish-preview-card h1 { margin: 0 0 18px; color: #171717; font-size: 28px; line-height: 1.3; }
.publish-preview-card > img { display: block; width: 100%; aspect-ratio: 16 / 9; margin: 0 0 20px; object-fit: cover; border: 1px solid #e5e5e5; border-radius: 8px; }
.publish-preview-card__content { color: #404040; font-size: 14px; line-height: 1.8; }
.publish-preview-card__content > :first-child { margin-top: 0; }.publish-preview-card__content > :last-child { margin-bottom: 0; }
.publish-preview-card__content pre, .publish-preview-card__code { overflow: auto; padding: 14px; border-radius: 7px; background: #171717; color: #fff; }
.publish-preview-card__code { margin-top: 16px; }.publish-preview-card__code > div { margin-bottom: 8px; color: #d4d4d4; font: 11px/1.3 "JetBrains Mono", monospace; }.publish-preview-card__code pre { margin: 0; padding: 0; }
.publish-preview-card__poll { display: grid; gap: 8px; margin-top: 16px; padding: 14px; border: 1px solid #d4d4d4; border-radius: 7px; background: #fafafa; }.publish-preview-card__poll div { padding: 8px 10px; border: 1px solid #e5e5e5; border-radius: 5px; background: #fff; color: #525252; font-size: 13px; }
.publish-preview-loading { margin: 0; padding: 24px; color: #737373; font-size: 13px; text-align: center; }
@media (max-width: 900px) { .publish-stitch-shell { width: min(100% - 32px, 720px); } .publish-stitch-grid { grid-template-columns: 1fr; } .publish-sidebar { position: static; } }
@media (max-width: 600px) { .publish-stitch-page { padding-top: 14px; } .publish-stitch-shell { width: calc(100% - 24px); } .publish-type-strip { display: block; } .publish-editor-meta { justify-content: flex-end; margin-top: 8px; } .publish-type-tabs label { min-width: 0; padding-inline: 4px; font-size: 10px; } .publish-type-tabs .material-symbols-outlined { display: none; } .publish-editor-card { padding: 16px; border-radius: 12px; } .publish-title-row input { font-size: 19px !important; } .publish-upload-row { align-items: flex-start; flex-direction: column; } .publish-component-actions { display: grid; grid-template-columns: 1fr 1fr; } .publish-component-actions button { justify-content: center; } .publish-code-editor > .form-grid { grid-template-columns: 1fr; } .publish-preview-dialog__body { padding: 12px; } .publish-preview-card h1 { font-size: 22px; } }

/* Stitch circle screens: compact monochrome community workspace. */
.circle-index,
.circles-page,
.circle-page {
  min-height: calc(100vh - 64px);
  padding: 48px 0 72px;
  background: var(--canvas);
}
.circle-index__masthead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 28px;
  padding-bottom: 32px;
  border-bottom: 1px solid #d4d4d8;
}
.circle-index__masthead > div,
.circle-page__hero-grid > div,
.circle-page__main,
.circle-page__side,
.circle-card,
.account-circle-item > div:first-child {
  min-width: 0;
}
.circle-index .section-label,
.circle-page .section-label {
  margin: 0 0 8px;
  color: #71717a;
  font: 500 11px/1.4 "JetBrains Mono", monospace;
  letter-spacing: 0;
  text-transform: uppercase;
}
.circle-index__masthead h1,
.circle-page__hero h1 {
  max-width: 760px;
  margin: 0;
  color: #18181b;
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 700;
  line-height: 1.2;
}
.circle-index__masthead h1 + p,
.circle-page__hero h1 + p {
  max-width: 650px;
  margin: 12px 0 0;
  color: #52525b;
  font-size: 14px;
  line-height: 1.7;
}
.circle-index__masthead > .button {
  min-height: 42px;
  border-radius: 7px;
  white-space: nowrap;
}
.circle-index__content {
  padding-top: 28px;
}
.circle-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.circle-card {
  display: flex;
  flex-direction: column;
  min-height: 252px;
  padding: 18px;
  border: 1px solid #d4d4d8;
  border-radius: 8px;
  background: #fff;
  transition: border-color 160ms ease, transform 160ms ease;
}
.circle-card:hover {
  border-color: #52525b;
  transform: translateY(-2px);
}
.circle-card__top,
.circle-card footer,
.circle-card dl,
.circle-page__metrics,
.circle-page__section-head,
.circle-side-card dl,
.circle-manager__member,
.account-circle-item,
.circle-application-dialog__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.circle-card__top {
  color: #71717a;
  font: 500 10px/1.3 "JetBrains Mono", monospace;
  text-transform: uppercase;
}
.circle-card__index {
  color: #18181b;
}
.circle-card h2 {
  margin: 30px 0 8px;
  color: #18181b;
  font-size: 20px;
  line-height: 1.35;
}
.circle-card h2 a:hover,
.circle-side-card a:hover {
  color: #52525b;
}
.circle-card > p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: #52525b;
  font-size: 13px;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.circle-card dl {
  margin: auto 0 16px;
  padding: 16px 0 0;
  border-top: 1px solid #e4e4e7;
}
.circle-card dl div,
.circle-side-card dl div {
  min-width: 0;
}
.circle-card dt,
.circle-side-card dt {
  color: #71717a;
  font-size: 11px;
}
.circle-card dd,
.circle-side-card dd {
  margin: 2px 0 0;
  color: #18181b;
  font-size: 13px;
  font-weight: 600;
}
.circle-card footer {
  min-height: 34px;
}
.circle-card__status {
  min-height: 18px;
  margin: 8px 0 -4px;
  color: #52525b;
  font-size: 11px;
  line-height: 1.45;
}
.circle-card__status.is-error,
.circle-action-status.is-error,
.circle-manager [data-circle-manager-status].is-error,
.circle-application-dialog [data-circle-form-status].is-error {
  color: #b42318;
}
.circle-card .button,
.circle-card__arrow {
  border-radius: 6px;
}
.circle-card__arrow {
  display: inline-grid;
  width: 34px;
  height: 34px;
  margin-left: auto;
  place-items: center;
  border: 1px solid #d4d4d8;
  color: #18181b;
}
.circle-card__arrow:hover {
  border-color: #18181b;
  background: #18181b;
  color: #fff;
}
.circle-state {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 9px;
  border: 1px solid #d4d4d8;
  border-radius: 6px;
  background: #fafafa;
  color: #52525b;
  font-size: 11px;
  line-height: 1.35;
}
.circle-application-dialog {
  width: min(100% - 32px, 520px);
  padding: 0;
  border: 1px solid #18181b;
  border-radius: 8px;
  background: #fff;
  color: #18181b;
  box-shadow: 0 20px 50px rgb(0 0 0 / 18%);
}
.circle-application-dialog::backdrop {
  background: rgb(24 24 27 / 42%);
}
.circle-application-dialog__head {
  margin: 0;
  padding: 18px 20px;
  border-bottom: 1px solid #e4e4e7;
}
.circle-application-dialog__head h2 {
  margin: 0;
  font-size: 16px;
}
.circle-application-dialog__head .icon-button {
  width: 30px;
  height: 30px;
  border: 1px solid #d4d4d8;
  border-radius: 6px;
}
.circle-application-dialog > form[data-circle-application-form] {
  display: grid;
  gap: 14px;
  padding: 20px;
}
.circle-application-dialog label,
.circle-manager label {
  display: grid;
  gap: 6px;
  color: #404040;
  font-size: 12px;
  font-weight: 600;
}
.circle-application-dialog input,
.circle-application-dialog textarea,
.circle-application-dialog select,
.circle-manager input,
.circle-manager textarea,
.circle-manager select {
  width: 100%;
  border: 1px solid #d4d4d8;
  border-radius: 6px;
  background: #fff;
  color: #18181b;
  font-size: 13px;
}
.circle-application-dialog input,
.circle-application-dialog select,
.circle-manager input,
.circle-manager select {
  min-height: 38px;
  padding: 8px 10px;
}
.circle-application-dialog textarea,
.circle-manager textarea {
  min-height: 92px;
  padding: 10px;
  resize: vertical;
}
.circle-application-dialog input:focus,
.circle-application-dialog textarea:focus,
.circle-application-dialog select:focus,
.circle-manager input:focus,
.circle-manager textarea:focus,
.circle-manager select:focus {
  border-color: #18181b;
  outline: 2px solid rgb(24 24 27 / 16%);
  outline-offset: 1px;
}
.circle-application-dialog [data-circle-form-status],
.circle-action-status,
.circle-manager [data-circle-manager-status] {
  min-height: 18px;
  margin: 0;
  color: #52525b;
  font-size: 12px;
}
.circle-application-dialog > form > div:last-child {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.circle-application-dialog .button,
.circle-manager .button {
  border-radius: 6px;
}
.circle-page {
  padding-top: 0;
}
.circle-page__hero {
  border-bottom: 1px solid #d4d4d8;
  background: #fff;
}
.circle-page__hero-inner {
  padding-top: 24px;
  padding-bottom: 36px;
}
.circle-page__back {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 28px;
  color: #52525b;
  font-size: 12px;
}
.circle-page__back .material-symbols-outlined {
  font-size: 17px;
}
.circle-page__back:hover {
  color: #18181b;
}
.circle-page__hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
  align-items: end;
  gap: 40px;
}
.circle-page__hero-actions {
  display: grid;
  justify-items: stretch;
  gap: 10px;
}
.circle-page__hero-actions > .button,
.circle-page__hero-actions > .circle-state {
  justify-self: end;
}
.circle-page__hero-actions > .button {
  min-height: 42px;
  border-radius: 7px;
}
.circle-page__metrics {
  justify-content: flex-end;
  padding-bottom: 10px;
  border-bottom: 1px solid #e4e4e7;
}
.circle-page__metrics span {
  display: grid;
  gap: 1px;
  color: #71717a;
  font-size: 11px;
  text-align: right;
}
.circle-page__metrics b {
  color: #18181b;
  font: 600 16px/1.2 "JetBrains Mono", monospace;
}
.circle-page__hero-actions .circle-action-status {
  text-align: right;
}
.circle-page__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 320px);
  align-items: start;
  gap: 28px;
  padding-top: 28px;
}
.circle-page__main {
  display: grid;
  gap: 18px;
}
.circle-announcement,
.circle-pinned {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid #d4d4d8;
  border-radius: 8px;
  background: #fff;
}
.circle-announcement > div {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #18181b;
  font-size: 12px;
}
.circle-announcement > div .material-symbols-outlined,
.circle-pinned > .material-symbols-outlined {
  color: #52525b;
  font-size: 18px;
}
.circle-announcement > p,
.circle-pinned > div {
  min-width: 0;
  margin: 0;
  color: #52525b;
  font-size: 13px;
  line-height: 1.65;
}
.circle-announcement > p p {
  margin: 0;
}
.circle-pinned {
  align-items: start;
}
.circle-pinned small {
  display: block;
  margin-bottom: 3px;
  color: #71717a;
  font: 500 10px/1.3 "JetBrains Mono", monospace;
  text-transform: uppercase;
}
.circle-pinned a {
  color: #18181b;
  font-weight: 600;
}
.circle-pinned a:hover {
  text-decoration: underline;
}
.circle-page__section-head {
  padding: 4px 0 12px;
  border-bottom: 1px solid #d4d4d8;
}
.circle-page__section-head h2 {
  margin: 0;
  color: #18181b;
  font-size: 17px;
}
.circle-page__section-head > span {
  color: #71717a;
  font: 500 10px/1.3 "JetBrains Mono", monospace;
  text-transform: uppercase;
}
.circle-feed {
  display: grid;
  gap: 10px;
}
.circle-feed .feed-row {
  border-radius: 8px;
}
.circle-page__side {
  display: grid;
  gap: 14px;
  position: sticky;
  top: 80px;
}
.circle-side-card {
  padding: 16px;
  border: 1px solid #d4d4d8;
  border-radius: 8px;
  background: #fff;
}
.circle-side-card h2 {
  margin: 0 0 14px;
  color: #18181b;
  font-size: 14px;
}
.circle-side-card dl {
  align-items: stretch;
  margin: 0;
}
.circle-side-card dl div + div {
  padding-left: 12px;
  border-left: 1px solid #e4e4e7;
}
.circle-manager {
  display: grid;
  gap: 14px;
}
.circle-manager form {
  display: grid;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid #e4e4e7;
}
.circle-manager .button {
  justify-self: start;
}
.circle-manager__group {
  display: grid;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid #e4e4e7;
}
.circle-manager__group h3 {
  margin: 0;
  color: #52525b;
  font: 500 10px/1.3 "JetBrains Mono", monospace;
  letter-spacing: 0;
  text-transform: uppercase;
}
.circle-manager__member {
  min-width: 0;
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f1;
  color: #18181b;
  font-size: 12px;
}
.circle-manager__member > span {
  min-width: 0;
}
.circle-manager__member small {
  display: block;
  margin-top: 2px;
  color: #71717a;
  font-size: 10px;
}
.circle-manager__member > div {
  display: inline-flex;
  flex: none;
  gap: 8px;
}
.circle-manager .text-action {
  padding: 2px 0;
  border: 0;
  background: transparent;
  color: #52525b;
  font-size: 11px;
}
.circle-manager .text-action:hover {
  color: #18181b;
  text-decoration: underline;
}
.account-circle-list {
  display: grid;
  border-top: 1px solid #d4d4d8;
}
.account-circle-item {
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid #d4d4d8;
}
.account-circle-item .content-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 7px;
}
.account-circle-item .status-label {
  border-radius: 4px;
  background: #18181b;
  color: #fff;
}
.account-circle-item h2 {
  margin: 0;
  color: #18181b;
  font-size: 16px;
}
.account-circle-item p {
  margin: 5px 0 0;
  color: #52525b;
  font-size: 13px;
}
.account-circle-item .action-cluster {
  flex: none;
}
.account-circle-item .button {
  border-radius: 6px;
}
@media (max-width: 1024px) {
  .circle-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .circle-page__layout {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 20px;
  }
}
@media (max-width: 780px) {
  .circle-index,
  .circles-page {
    padding-top: 32px;
  }
  .circle-index__masthead,
  .circle-page__hero-grid,
  .circle-page__layout {
    grid-template-columns: 1fr;
  }
  .circle-index__masthead {
    align-items: start;
    padding-bottom: 24px;
  }
  .circle-index__masthead > .button,
  .circle-page__hero-actions > .button,
  .circle-page__hero-actions > .circle-state {
    justify-self: start;
  }
  .circle-page__hero-grid {
    gap: 24px;
  }
  .circle-page__metrics,
  .circle-page__hero-actions .circle-action-status {
    justify-content: flex-start;
    text-align: left;
  }
  .circle-page__metrics span {
    text-align: left;
  }
  .circle-page__side {
    position: static;
  }
}
@media (max-width: 560px) {
  .circle-index,
  .circles-page {
    padding-bottom: 52px;
  }
  .circle-grid {
    grid-template-columns: 1fr;
  }
  .circle-card {
    min-height: 228px;
  }
  .circle-index__masthead h1,
  .circle-page__hero h1 {
    font-size: 27px;
  }
  .circle-page__hero-inner {
    padding-bottom: 28px;
  }
  .circle-page__layout {
    padding-top: 20px;
  }
  .circle-announcement,
  .circle-pinned {
    grid-template-columns: 1fr;
  }
  .circle-announcement > div {
    justify-content: flex-start;
  }
  .circle-side-card dl {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .account-circle-item {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    align-items: start;
  }
  .circle-application-dialog > form[data-circle-application-form] {
    padding: 16px;
  }
}

/* Account workspace: each page owns one stable main-column track. */
.account-dashboard__main > .account-page-head,
.account-dashboard__main > .account-page-head + .filter-bar,
.account-dashboard__main > .account-content-list { max-width: none; margin-inline: 0; }
.account-dashboard__main > .account-page-head + .filter-bar { display: grid; grid-template-columns: minmax(160px, 236px) minmax(150px, 210px) auto; align-items: end; justify-content: start; gap: 12px; margin: 0 0 20px; padding: 16px; border: 1px solid #e5e7eb; border-radius: 12px; background: #fff; }
.account-dashboard__main > .account-page-head + .filter-bar > label { display: grid; gap: 7px; min-width: 0; color: #52525b; font-size: 11px; font-weight: 600; }
.account-dashboard__main > .account-page-head + .filter-bar select { min-height: 38px; margin: 0; border-color: #d4d4d8; border-radius: 8px; color: #191c1d; font-size: 12px; }
.account-dashboard__main > .account-page-head + .filter-bar .button { min-height: 38px; margin: 0; align-self: end; }
.account-content-list { display: grid; }
.account-dashboard__main .account-content-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 20px; min-height: 86px; padding: 20px 0; }
.account-dashboard__main .account-content-item > div:first-child { min-width: 0; }
.account-dashboard__main .account-content-item h3 { overflow-wrap: anywhere; }
.account-settings-page .settings-form { min-width: 0; }
.account-settings-page .settings-section { padding: 28px 0; }
.account-settings-page .settings-section .section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 280px); align-items: baseline; gap: 20px; margin-bottom: 20px; }
.account-settings-page .settings-section .section-head h2 { margin: 0; color: #191c1d; font-size: 18px; }
.account-settings-page .settings-section .section-head .muted { justify-self: end; max-width: 280px; color: #8b9197; font-size: 11px; line-height: 1.55; text-align: right; }
.account-settings-page .settings-section .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; min-width: 0; }
.account-settings-page .settings-section .form-grid .field { min-width: 0; margin: 0; }
.account-settings-page .settings-section .form-grid .field--full { grid-column: 1 / -1; }
.account-settings-page .visibility-options { display: flex; flex-wrap: wrap; gap: 10px 16px; min-width: 0; margin: 22px 0 0; padding: 14px; border: 1px solid #e5e7eb; border-radius: 12px; background: #fafafa; }
.account-settings-page .visibility-options legend { padding: 0 4px; color: #52525b; font-size: 11px; font-weight: 600; }
.account-settings-page .visibility-options label,
.account-settings-page .avatar-settings__controls > label,
.account-settings-page .notification-preferences label { display: inline-flex; align-items: center; gap: 8px; color: #374151; font-size: 12px; }
.account-settings-page .visibility-options input[type="checkbox"],
.account-settings-page .avatar-settings__controls input[type="checkbox"],
.account-settings-page .notification-preferences input[type="checkbox"] { width: 17px; height: 17px; margin: 0; accent-color: #090a0c; }
.account-settings-page .avatar-settings { display: flex; align-items: center; gap: 16px; min-width: 0; padding: 16px; border: 1px solid #e5e7eb; border-radius: 12px; background: #fafafa; }
.account-settings-page .avatar-settings__controls { display: grid; flex: 1; gap: 10px; min-width: 0; }
.account-settings-page .avatar-settings__controls input[type="file"] { width: 100%; min-height: 40px; padding: 8px; border: 1px solid #d4d4d8; border-radius: 8px; background: #fff; color: #374151; font-size: 12px; }
.account-settings-page .avatar-settings__controls input[type="file"]::file-selector-button { margin-right: 10px; padding: 5px 9px; border: 1px solid #d4d4d8; border-radius: 6px; background: #f3f4f6; color: #191c1d; font: 600 11px Geist, -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif; }
.account-settings-page .avatar-settings__controls p { margin: 0; }

@media (max-width: 760px) {
  .account-dashboard__main > .account-page-head + .filter-bar { grid-template-columns: 1fr; padding: 12px; }
  .account-dashboard__main > .account-page-head + .filter-bar .button { width: 100%; justify-content: center; }
  .account-dashboard__main .account-content-item { grid-template-columns: 1fr; align-items: start; gap: 12px; }
  .account-settings-page .settings-section .section-head { grid-template-columns: 1fr; gap: 6px; }
  .account-settings-page .settings-section .section-head .muted { justify-self: start; max-width: none; text-align: left; }
  .account-settings-page .settings-section .form-grid { grid-template-columns: 1fr; }
  .account-settings-page .visibility-options { gap: 10px 14px; }
  .account-settings-page .avatar-settings { align-items: flex-start; flex-direction: column; }
}

.auth-page { display: grid; min-height: calc(100vh - 64px); place-items: center; padding: 48px 20px 72px; background: #f8f9fa; }
.auth-panel { width: min(100%, 440px); padding: 32px; border: 1px solid #d4d4d8; border-radius: 8px; background: #fff; box-shadow: 0 16px 50px rgb(0 0 0 / 7%); }
.auth-brand { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 36px; color: #18181b; }
.auth-brand:hover { color: #18181b; }
.auth-brand__mark { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 6px; background: #18181b; color: #fff; font: 700 16px/1 "JetBrains Mono", monospace; }
.auth-brand strong, .auth-brand small { display: block; }
.auth-brand strong { font-size: 14px; }
.auth-brand small { margin-top: 2px; color: #71717a; font-size: 10px; }
.auth-panel header h1 { margin: 6px 0 8px; color: #18181b; font-size: 28px; line-height: 1.2; }
.auth-panel header > p:last-child { margin: 0 0 22px; color: #71717a; font-size: 13px; }
.auth-form { display: grid; gap: 16px; }
.auth-form label { display: grid; gap: 7px; color: #404040; font-size: 12px; font-weight: 600; }
.auth-form input:not([type="checkbox"]) { width: 100%; min-height: 42px; padding: 9px 11px; border: 1px solid #d4d4d8; border-radius: 6px; background: #fff; color: #18181b; font-size: 13px; }
.auth-form input:focus { border-color: #18181b; outline: 2px solid rgb(24 24 27 / 13%); outline-offset: 1px; }
.auth-form .button { justify-content: center; min-height: 42px; margin-top: 4px; }
.auth-check { display: inline-flex !important; grid-template-columns: auto 1fr; align-items: center; gap: 8px !important; color: #71717a !important; font-weight: 400 !important; }
.auth-check input { width: 16px; height: 16px; margin: 0; accent-color: #18181b; }
.auth-links, .auth-footnote { display: flex; justify-content: space-between; gap: 12px; margin: 18px 0 0; color: #71717a; font-size: 12px; }
.auth-links a, .auth-footnote a { color: #18181b; text-decoration: underline; text-underline-offset: 3px; }
.auth-notice { margin: 0 0 16px; padding: 11px 12px; border: 1px solid #d4d4d8; border-radius: 6px; background: #fafafa; color: #404040; font-size: 12px; line-height: 1.55; }
.auth-notice--error { border-color: #fecaca; background: #fff7f7; color: #991b1b; }
.auth-warning { margin: 24px 0 0; padding-top: 14px; border-top: 1px solid #e4e4e7; color: #a16207; font-size: 11px; line-height: 1.55; }
.auth-verify-result { display: grid; gap: 12px; color: #404040; font-size: 13px; line-height: 1.6; }
.auth-verify-result strong { color: #18181b; font-size: 17px; }
.auth-verify-result p { margin: 0; }
@media (max-width: 520px) { .auth-page { padding-inline: 12px; } .auth-panel { padding: 24px 20px; } }

/* 0.14: publishing editor and event workflow share the existing black/white token set. */
.publish-editor-mode { display: inline-flex; gap: 0; margin: 10px 24px 0; border: 1px solid #d4d4d8; border-radius: 6px; overflow: hidden; background: #fff; }
.publish-editor-mode button { min-height: 30px; padding: 5px 10px; border: 0; border-right: 1px solid #d4d4d8; background: #fff; color: #52525b; font-size: 11px; font-weight: 600; }
.publish-editor-mode button:last-child { border-right: 0; }
.publish-editor-mode button.is-active { background: #18181b; color: #fff; }
.publish-visual-editor { min-height: 320px; border-top: 1px solid #e5e5e5; }
.publish-visual-editor .toastui-editor-defaultUI { border: 0; border-radius: 0; font-family: Geist, -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif; }
.publish-visual-editor .toastui-editor-toolbar { display: none; }
.publish-visual-editor .toastui-editor-ww-container { background: #fff; }
.publish-visual-editor .ProseMirror { min-height: 248px; padding: 16px 24px; color: #262626; font-size: 14px; line-height: 1.75; }
.publish-editor-status { min-height: 18px; margin: 0; padding: 6px 24px; color: #71717a; font-size: 11px; }
.publish-editor-status.is-error { color: #b91c1c; }
.event-index { min-height: calc(100vh - 64px); padding: 42px 0 72px; background: #fff; }
.event-index__masthead { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 28px; padding-bottom: 30px; border-bottom: 1px solid #d4d4d8; }
.event-index__masthead h1 { margin: 5px 0 10px; color: #18181b; font-size: 32px; line-height: 1.2; }
.event-index__masthead p { max-width: 620px; margin: 0; color: #52525b; font-size: 14px; line-height: 1.7; }
.event-index__list { display: grid; gap: 0; }
.event-list-item { position: relative; display: grid; gap: 10px; padding: 24px 0; border-bottom: 1px solid #e4e4e7; }
.event-list-item__meta { display: flex; flex-wrap: wrap; gap: 7px; color: #71717a; font: 500 10px/1.3 "JetBrains Mono", monospace; text-transform: uppercase; }
.event-list-item__meta span + span::before { content: "/"; margin-right: 7px; color: #a1a1aa; }
.event-list-item h2 { margin: 0; font-size: 19px; line-height: 1.35; }
.event-list-item h2 a { color: #18181b; }
.event-list-item h2 a:hover { text-decoration: underline; }
.event-list-item > p { max-width: 760px; margin: 0; color: #52525b; font-size: 13px; line-height: 1.65; }
.event-list-item__footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 2px; }
.event-list-item__footer time { color: #71717a; font-size: 11px; }
.event-action-status { min-height: 18px; margin: 0; color: #52525b; font-size: 11px; }
.event-action-status.is-error { color: #b91c1c; }
.event-page { min-height: calc(100vh - 64px); background: #fff; }
.event-page__hero { border-bottom: 1px solid #d4d4d8; background: #fff; }
.event-page__hero-inner { padding-top: 24px; padding-bottom: 36px; }
.event-page__hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 300px); align-items: end; gap: 36px; }
.event-page__hero h1 { margin: 10px 0; color: #18181b; font-size: 32px; line-height: 1.2; }
.event-page__hero p { max-width: 720px; margin: 0; color: #52525b; font-size: 14px; line-height: 1.7; }
.event-page__actions { display: grid; justify-items: stretch; gap: 9px; }
.event-page__actions .button { justify-content: center; min-height: 42px; }
.event-page__actions .event-action-status { text-align: right; }
.event-state { justify-self: end; padding: 8px 10px; border: 1px solid #d4d4d8; border-radius: 6px; color: #52525b; font-size: 12px; }
.event-page__layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 320px); align-items: start; gap: 32px; padding-top: 32px; padding-bottom: 72px; }
.event-page__content { min-width: 0; }
.event-page__content h2 { margin: 0 0 18px; color: #18181b; font-size: 18px; }
.event-page__side { display: grid; gap: 14px; position: sticky; top: 80px; }
.event-page__side .detail-sidebar-card > p { color: #52525b; font-size: 12px; line-height: 1.6; }
.event-page__side small { color: #71717a; font-size: 11px; }
@media (max-width: 760px) {
  .event-index { padding-top: 30px; }
  .event-index__masthead, .event-page__hero-grid, .event-page__layout { grid-template-columns: 1fr; }
  .event-index__masthead { align-items: start; }
  .event-index__masthead > .button { justify-self: start; }
  .event-page__hero h1, .event-index__masthead h1 { font-size: 27px; }
  .event-page__actions { justify-items: start; }
  .event-page__actions .event-action-status { text-align: left; }
  .event-state { justify-self: start; }
  .event-page__side { position: static; }
  .event-list-item__footer { align-items: start; flex-direction: column; }
  .publish-editor-mode { margin-inline: 16px; }
  .publish-visual-editor .ProseMirror { padding-inline: 16px; }
}

/* 移动端触控目标：主要交互控件命中区域不小于 44×44px，并为固定底部导航预留安全空间。 */
@media (max-width: 782px) {
  body.zaovibe-theme {
    padding-bottom: 64px;
  }
  .site-header a,
  .site-header button,
  .mobile-community-nav > a,
  .mobile-community-nav > button,
  .feed-tabs > a,
  .feed-category-tabs a,
  .feed-action,
  .feed-save,
  .text-action,
  .action-cluster .button,
  .action-cluster button,
  .plaza-card .button,
  .plaza-feed-item .button,
  .detail-quick-actions footer button {
    min-height: 44px;
  }
  /* 提高特异性以覆盖 .feed-actions .feed-action { min-width: 0 } 的收缩规则。 */
  .site-header a,
  .site-header button,
  .icon-button,
  .feed-actions .feed-action,
  .feed-actions .feed-save,
  .detail-quick-actions footer button {
    min-width: 44px;
  }
  .feed-tabs > a,
  .feed-category-tabs a,
  .text-action,
  .mobile-community-nav > a,
  .mobile-community-nav > button {
    display: inline-flex;
    align-items: center;
  }
  .mobile-community-nav > a,
  .mobile-community-nav > button {
    flex-direction: column;
    justify-content: center;
    min-height: 64px;
  }
}

/* 详情首屏速览：把"解决什么 / 适用对象 / 技术栈 / 更新时间"提到 Demo 之前。 */
.detail-brief {
  margin-bottom: 18px;
  padding: 16px 18px;
  border: 1px solid #e1e3e4;
  border-radius: 12px;
  background: #f8f9fa;
}
.detail-brief__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 10px;
  color: #6b7177;
  font-size: 11px;
}
.detail-brief__list {
  display: grid;
  gap: 8px;
  margin: 0;
}
.detail-brief__list div {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 12px;
}
.detail-brief__list dt {
  color: #8b9197;
  font-size: 11px;
  line-height: 1.7;
}
.detail-brief__list dd {
  margin: 0;
  color: #303438;
  font-size: 13px;
  line-height: 1.7;
}
@media (max-width: 640px) {
  .detail-brief__list div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

/* 发布页类型引导与发布后下一步提示。 */
.publish-type-guide {
  margin-top: 10px;
  padding: 12px 14px;
  border: 1px solid #e1e3e4;
  border-radius: 10px;
  background: #f8f9fa;
  color: #52525b;
  font-size: 12px;
  line-height: 1.7;
}
.publish-type-guide strong {
  margin-right: 8px;
  color: #191c1d;
}
.detail-next-steps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding: 12px 16px;
  border: 1px solid #e1e3e4;
  border-radius: 12px;
  background: #f3f4f5;
  font-size: 13px;
}
.detail-next-steps strong {
  color: #191c1d;
}
.detail-next-steps a {
  color: #191c1d;
  text-decoration: underline;
}
