:root {
  color-scheme: light;
  --bg: #f7f9fc;
  --bg-deep: #191f28;
  --surface: #ffffff;
  --surface-soft: #f1f6ff;
  --surface-tint: #fbfcff;
  --text: #191f28;
  --muted: #6b7684;
  --line: #e5e8ee;
  --blue: #3182f6;
  --blue-dark: #1b64da;
  --cyan: #00c2ff;
  --lime: #00c471;
  --pink: #ff5c8a;
  --green: #00c471;
  --amber: #ffb020;
  --violet: #7c5cff;
  --red: #e5484d;
  --ink: #191f28;
  --radius-xs: 10px;
  --radius-sm: 14px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 30px;
  --shadow: 0 22px 56px rgba(25, 31, 40, 0.11);
  --shadow-soft: 0 12px 30px rgba(25, 31, 40, 0.07);
  --shadow-hover: 0 28px 70px rgba(25, 31, 40, 0.14);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b1019;
  --bg-deep: #05070c;
  --surface: #111827;
  --surface-soft: #182234;
  --surface-tint: #0f1724;
  --text: #f4f7fb;
  --muted: #9aa7ba;
  --line: rgba(148, 163, 184, 0.22);
  --blue: #6ea2ff;
  --blue-dark: #8bb5ff;
  --cyan: #22d3ee;
  --lime: #55e99f;
  --green: #35d6ad;
  --amber: #fbbf24;
  --violet: #a78bfa;
  --red: #fb7185;
  --ink: #f8fafc;
  --shadow: 0 24px 64px rgba(0, 0, 0, 0.34);
  --shadow-soft: 0 14px 34px rgba(0, 0, 0, 0.24);
}

* {
  box-sizing: border-box;
}

html {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 0;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97) 0, rgba(247, 249, 252, 0.96) 44%, #f2f5f9 100%),
    linear-gradient(120deg, rgba(49, 130, 246, 0.14) 0 18%, transparent 42%),
    linear-gradient(90deg, rgba(0, 196, 113, 0.12), rgba(255, 176, 32, 0.09), rgba(255, 92, 138, 0.06), transparent 78%);
}

:root[data-image-lightbox-open] body {
  overflow: hidden;
}

.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 40;
  width: 100%;
  height: 3px;
  background: transparent;
  pointer-events: none;
}

.reading-progress span {
  display: block;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--cyan), var(--lime));
  transition: width 120ms linear;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

.shell {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 68px;
  padding: 0 32px;
  border-bottom: 1px solid rgba(229, 232, 238, 0.8);
  background: rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(24px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 820;
  letter-spacing: 0;
}

.brand-cluster {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.menu-button {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
  cursor: pointer;
  font-size: 18px;
  font-weight: 820;
}

.menu-button:hover {
  border-color: rgba(49, 130, 246, 0.22);
  color: var(--blue);
  background: #ffffff;
}

.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  font-size: 13px;
  box-shadow: 0 12px 28px rgba(49, 130, 246, 0.22);
  overflow: hidden;
}

.brand-mark::after {
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 9px;
  height: 3px;
  border-radius: 999px;
  background: #ffffff;
  content: "";
}

.nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 720;
}

.nav a {
  padding: 8px 12px;
  border-radius: 999px;
}

.nav a[aria-current="page"],
.nav a:hover {
  color: var(--text);
  background: #f2f5f9;
}

.nav .main-home-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  box-shadow: 0 10px 24px rgba(49, 130, 246, 0.18);
}

.external-link-icon {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.nav .main-home-link:hover {
  color: #ffffff;
  background: linear-gradient(135deg, #1f5eea, #6b4dff);
}

.nav .logout-link {
  color: var(--red);
}

.nav .logout-link:hover {
  color: #ffffff;
  background: var(--red);
}

.language-switcher,
.theme-switcher {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  min-height: 34px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
}

.language-switcher a {
  display: inline-grid;
  place-items: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 0 11px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}

.theme-switcher button {
  display: inline-grid;
  place-items: center;
  width: 30px;
  min-height: 26px;
  border: 0;
  border-radius: 999px;
  padding: 0;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 14px;
  font-weight: 760;
}

.language-switcher a[aria-pressed="true"],
.theme-switcher button[aria-pressed="true"] {
  color: var(--ink);
  background: #ffffff;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.1);
}

.language-switcher a:hover,
.theme-switcher button:hover {
  color: var(--ink);
}

.container {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

.blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  align-items: start;
  gap: 32px;
  padding: 34px 0 78px;
}

.blog-layout-single {
  grid-template-columns: minmax(0, 1fr);
}

.post-layout {
  padding-bottom: 34px;
}

.page-head {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 72px 0 32px;
  isolation: isolate;
}

.page-head::before {
  position: absolute;
  inset: 44px auto auto 0;
  z-index: -1;
  width: min(360px, 52vw);
  height: 4px;
  border-radius: 999px;
  background: rgba(49, 130, 246, 0.28);
  opacity: 1;
  content: "";
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 840;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.18;
  letter-spacing: 0;
}

.page-title {
  max-width: 760px;
  color: var(--ink);
  font-size: 58px;
  line-height: 1.08;
  text-wrap: balance;
}

.page-copy {
  max-width: 700px;
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.72;
  font-size: 17px;
}

.visitor-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  min-width: 260px;
}

.visitor-metric {
  min-width: 0;
  padding: 14px 15px;
  border: 1px solid rgba(49, 130, 246, 0.14);
  border-radius: var(--radius-md);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(247, 250, 255, 0.84)),
    linear-gradient(135deg, rgba(49, 130, 246, 0.1), rgba(0, 196, 113, 0.08));
  box-shadow: var(--shadow-soft);
}

.visitor-metric span,
.visitor-metric strong {
  display: block;
}

.visitor-metric span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 820;
}

.visitor-metric strong {
  margin-top: 5px;
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
}

.blog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 6px;
  padding: 12px;
  border: 1px solid rgba(229, 232, 238, 0.88);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 28px rgba(25, 31, 40, 0.05);
}

.menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(15, 23, 42, 0.28);
  backdrop-filter: blur(4px);
}

.menu-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 70;
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: min(360px, calc(100vw - 34px));
  padding: 22px;
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 28px 0 80px rgba(15, 23, 42, 0.18);
  transform: translateX(-105%);
  transition: transform 180ms ease;
}

.menu-drawer[aria-hidden="false"] {
  transform: translateX(0);
}

.menu-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.menu-drawer-head strong {
  color: var(--ink);
  font-size: 16px;
}

.menu-drawer-head button {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: #ffffff;
  cursor: pointer;
  font-size: 20px;
}

.drawer-search {
  display: grid;
  gap: 8px;
}

.drawer-search span,
.drawer-section h2 {
  color: var(--muted);
  font-size: 12px;
  font-weight: 840;
  text-transform: uppercase;
}

.drawer-search input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 0 12px;
  color: var(--ink);
  background: #ffffff;
  font: inherit;
}

.drawer-section {
  display: grid;
  gap: 10px;
}

.drawer-links {
  display: grid;
  gap: 7px;
}

.drawer-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: #303948;
  font-size: 14px;
  font-weight: 760;
}

.drawer-links a[aria-current="page"],
.drawer-links a:hover {
  border-color: rgba(49, 130, 246, 0.16);
  color: var(--blue);
  background: rgba(49, 130, 246, 0.07);
}

.drawer-links strong {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  border-radius: 999px;
  color: var(--blue);
  background: #eef5ff;
  font-size: 12px;
}

.drawer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.drawer-tags a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  color: #566174;
  background: rgba(248, 250, 252, 0.78);
  font-size: 13px;
  font-weight: 760;
}

.drawer-tags a[aria-current="page"],
.drawer-tags a:hover {
  color: var(--blue);
  border-color: rgba(49, 130, 246, 0.2);
  background: rgba(49, 130, 246, 0.08);
}

.drawer-footer {
  display: grid;
  gap: 14px;
  margin-top: auto;
  padding-top: 12px;
}

.drawer-recent {
  display: grid;
  gap: 8px;
}

.drawer-recent h2 {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 840;
  text-transform: uppercase;
}

.drawer-recent a {
  display: block;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  padding-top: 9px;
  color: #303948;
  font-size: 14px;
  font-weight: 760;
  line-height: 1.42;
}

.drawer-recent a:hover {
  color: var(--blue);
}

.drawer-icon-link {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 176, 32, 0.28);
  border-radius: 999px;
  color: #a46200;
  background: rgba(255, 176, 32, 0.12);
  font-size: 11px;
  font-weight: 860;
  letter-spacing: 0;
}

.drawer-icon-link:hover {
  color: #7a4700;
  background: rgba(255, 176, 32, 0.18);
}

.topic-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.topic-tabs a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #566174;
  font-size: 13px;
  font-weight: 760;
}

.topic-tabs a[aria-current="page"],
.topic-tabs a:hover {
  border-color: rgba(17, 24, 39, 0.1);
  color: var(--ink);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.topic-tabs a:nth-child(3):hover,
.topic-tabs a:nth-child(3)[aria-current="page"] {
  border-color: rgba(49, 130, 246, 0.2);
  color: #1b64da;
  background: rgba(49, 130, 246, 0.08);
}

.topic-tabs a:nth-child(4):hover,
.topic-tabs a:nth-child(4)[aria-current="page"] {
  border-color: rgba(0, 196, 113, 0.2);
  color: #008f5b;
  background: rgba(0, 196, 113, 0.08);
}

.topic-tabs a:nth-child(5):hover,
.topic-tabs a:nth-child(5)[aria-current="page"] {
  border-color: rgba(255, 176, 32, 0.24);
  color: #a46200;
  background: rgba(255, 176, 32, 0.12);
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 260px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.74) inset;
}

.search-box span {
  color: #7a8495;
  font-size: 12px;
  font-weight: 820;
  text-transform: uppercase;
}

.search-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  outline: none;
  font-size: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.88);
  cursor: pointer;
  font-size: 14px;
  font-weight: 760;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.74) inset;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.btn.primary {
  border-color: transparent;
  color: white;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  box-shadow: 0 14px 30px rgba(47, 109, 246, 0.22);
}

.btn.primary:hover {
  background: var(--blue-dark);
}

.btn:hover {
  border-color: rgba(47, 109, 246, 0.34);
  transform: translateY(-1px);
}

.btn.danger {
  color: var(--red);
}

.btn:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.post-list {
  display: grid;
  gap: 14px;
}

.ad-slot {
  display: grid;
  gap: 8px;
  min-height: 96px;
  padding: 16px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.66);
  box-shadow: var(--shadow-soft);
}

.ad-slot-feed {
  margin-bottom: 2px;
}

.ad-slot-article {
  margin: 0 0 14px;
}

.ad-slot-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 820;
}

.ad-slot .adsbygoogle {
  min-height: 72px;
}

.post-row,
.panel,
.comment,
.metric {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-soft);
}

.post-row {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 24px;
  min-height: 218px;
  padding: 30px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(250, 252, 255, 0.92)),
    linear-gradient(135deg, rgba(49, 130, 246, 0.1), rgba(0, 196, 113, 0.08), rgba(255, 92, 138, 0.06));
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.post-list .post-row::before {
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: rgba(49, 130, 246, 0.22);
  content: "";
}

.post-list .post-row::after {
  position: absolute;
  right: 26px;
  bottom: 22px;
  width: 118px;
  height: 76px;
  border: 1px solid rgba(49, 130, 246, 0.12);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(49, 130, 246, 0.08), rgba(255, 255, 255, 0.45));
  opacity: 0.8;
  content: "";
}

.post-row > * {
  position: relative;
  z-index: 1;
}

.post-list .post-row:hover {
  border-color: rgba(47, 109, 246, 0.35);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.post-list .post-row .btn {
  align-self: start;
  color: var(--blue);
  background: #ffffff;
}

.post-row h2 {
  margin-top: 8px;
  color: var(--ink);
  font-size: 30px;
  line-height: 1.2;
}

.post-row p {
  max-width: 720px;
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.72;
}

.post-stats,
.article-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: #667085;
  font-size: 13px;
  font-weight: 700;
}

.post-stats {
  margin-top: 16px;
}

.post-stats span,
.article-stats span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.post-stats span {
  min-height: 28px;
  padding: 5px 10px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.88);
  color: #475467;
  line-height: 1;
}

.post-stats span + span::before,
.article-stats span + span::before {
  width: 3px;
  height: 3px;
  border-radius: 999px;
  background: #a8b2c3;
  content: "";
}

.post-stats span + span::before {
  content: none;
}

.post-stats .is-empty-stat,
.article-stats .is-empty-stat {
  display: none !important;
}

.article-meta-side {
  display: grid;
  justify-items: end;
  gap: 10px;
}

.article-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.article-actions .btn {
  min-height: 32px;
  padding: 0 11px;
  font-size: 13px;
}

.like-button {
  color: #334155;
}

.like-button strong {
  font-size: 13px;
  font-weight: 860;
}

.like-button.is-liked {
  border-color: rgba(255, 92, 138, 0.26);
  color: #c0265d;
  background: rgba(255, 92, 138, 0.1);
}

.language-switch {
  color: #ffffff;
  border-color: rgba(47, 109, 246, 0.42);
  background: var(--blue);
}

.post-tags,
.article-tags,
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.post-tags {
  margin-top: 22px;
}

.post-tags span,
.article-tags a,
.tag-cloud a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  border: 1px solid rgba(49, 130, 246, 0.16);
  border-radius: 999px;
  color: #1b64da;
  background: linear-gradient(180deg, #ffffff, #f3f8ff);
  font-size: 12px;
  font-weight: 820;
  box-shadow: 0 9px 18px rgba(47, 109, 246, 0.08);
}

.post-tags span:first-child,
.article-tags a:first-child,
.tag-cloud a:first-child {
  border-color: rgba(0, 196, 113, 0.3);
  color: #008f5b;
  background: rgba(0, 196, 113, 0.1);
  box-shadow: 0 12px 26px rgba(0, 196, 113, 0.14);
}

.post-tags span:nth-child(2),
.article-tags a:nth-child(2),
.tag-cloud a:nth-child(2) {
  border-color: rgba(124, 92, 255, 0.24);
  color: #5b45d6;
  background: rgba(124, 92, 255, 0.09);
}

.post-tags span:nth-child(3),
.article-tags a:nth-child(3),
.tag-cloud a:nth-child(3) {
  border-color: rgba(255, 176, 32, 0.28);
  color: #a46200;
  background: rgba(255, 176, 32, 0.12);
}

.post-tags span:nth-child(4),
.article-tags a:nth-child(4),
.tag-cloud a:nth-child(4) {
  border-color: rgba(255, 92, 138, 0.24);
  color: #c63766;
  background: rgba(255, 92, 138, 0.09);
}

.post-tags span:hover,
.article-tags a:hover,
.tag-cloud a:hover,
.tag-cloud a[aria-current="page"] {
  border-color: rgba(17, 24, 39, 0.16);
  color: #101318;
  background: #ffffff;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 760;
}

.chip.green {
  color: #008f5b;
  border-color: rgba(0, 196, 113, 0.24);
  background: rgba(0, 196, 113, 0.1);
}

.chip.amber {
  color: #a46200;
  border-color: rgba(255, 176, 32, 0.28);
  background: rgba(255, 176, 32, 0.12);
}

.chip.blue {
  color: #1d4ed8;
  border-color: rgba(49, 130, 246, 0.26);
  background: rgba(49, 130, 246, 0.1);
}

.chip.red {
  color: #b42318;
  border-color: rgba(229, 72, 77, 0.26);
  background: rgba(229, 72, 77, 0.1);
}

.side-stack {
  display: grid;
  align-content: start;
  gap: 14px;
}

.post-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding-top: 8px;
}

.post-pagination[hidden] {
  display: none;
}

.post-pagination button {
  display: inline-grid;
  place-items: center;
  min-width: 38px;
  height: 38px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 999px;
  color: #566174;
  background: rgba(255, 255, 255, 0.82);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 780;
}

.post-pagination button:hover,
.post-pagination button[aria-current="page"] {
  color: #ffffff;
  border-color: var(--blue);
  background: var(--blue);
}

.post-pagination button:disabled {
  cursor: default;
  opacity: 0.42;
}

.post-pagination button:disabled:hover {
  color: #566174;
  border-color: rgba(148, 163, 184, 0.2);
  background: rgba(255, 255, 255, 0.82);
}

.panel {
  padding: 22px;
  backdrop-filter: blur(18px);
}

.panel h2,
.panel h3 {
  font-size: 16px;
}

.compact-panel {
  box-shadow: none;
}

.panel p,
.panel li {
  color: var(--muted);
  line-height: 1.65;
}

.article {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 48px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(252, 253, 255, 0.94)),
    linear-gradient(135deg, rgba(49, 130, 246, 0.08), rgba(0, 196, 113, 0.05));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.article h1 {
  margin-top: 10px;
  font-size: 46px;
  line-height: 1.11;
  text-wrap: balance;
}

.article-lede {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.72;
}

.article-tags {
  margin: 20px 0 22px;
}

.article-meta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 28px;
  padding: 16px;
  border: 1px solid rgba(229, 232, 238, 0.9);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(247, 250, 255, 0.84)),
    linear-gradient(90deg, rgba(49, 130, 246, 0.08), rgba(0, 196, 113, 0.08), rgba(255, 176, 32, 0.07));
}

.author-row {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.author-avatar,
.comment-avatar {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 999px;
  color: #ffffff;
  background: var(--bg-deep);
  font-weight: 820;
}

.author-avatar {
  width: 38px;
  height: 38px;
  font-size: 14px;
  background: linear-gradient(135deg, var(--blue), var(--violet));
}

.author-row div {
  display: grid;
  gap: 3px;
}

.author-row strong {
  color: var(--ink);
  font-size: 14px;
}

.author-row span {
  color: var(--muted);
  font-size: 13px;
}

.article p,
.article li,
.article blockquote {
  font-size: 17px;
  line-height: 1.8;
}

.article p {
  color: #333d4b;
}

.article p a,
.article li a,
.article blockquote a,
.preview-surface p a,
.preview-surface li a,
.article-preview-body p a,
.article-preview-body li a {
  border-radius: 999px;
  padding: 1px 7px 2px;
  color: #1763db;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(241, 247, 255, 0.82)),
    linear-gradient(90deg, rgba(49, 130, 246, 0.13), rgba(0, 196, 113, 0.08));
  box-shadow: inset 0 0 0 1px rgba(49, 130, 246, 0.2);
  font-weight: 820;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
  transition: background 160ms ease, box-shadow 160ms ease, color 160ms ease;
}

.article p a[href^="http"]::after,
.article li a[href^="http"]::after,
.article blockquote a[href^="http"]::after,
.preview-surface p a[href^="http"]::after,
.preview-surface li a[href^="http"]::after,
.article-preview-body p a[href^="http"]::after,
.article-preview-body li a[href^="http"]::after {
  margin-left: 4px;
  font-size: 0.78em;
  font-weight: 900;
  content: "↗";
}

.article p a:hover,
.article p a:focus-visible,
.article li a:hover,
.article li a:focus-visible,
.article blockquote a:hover,
.article blockquote a:focus-visible,
.preview-surface p a:hover,
.preview-surface p a:focus-visible,
.preview-surface li a:hover,
.preview-surface li a:focus-visible,
.article-preview-body p a:hover,
.article-preview-body p a:focus-visible,
.article-preview-body li a:hover,
.article-preview-body li a:focus-visible {
  color: #0f4eb8;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(232, 242, 255, 0.94)),
    linear-gradient(90deg, rgba(49, 130, 246, 0.2), rgba(183, 245, 61, 0.15));
  box-shadow: inset 0 0 0 1px rgba(49, 130, 246, 0.34), 0 8px 22px rgba(49, 130, 246, 0.14);
  outline: none;
}

.article strong {
  color: #172033;
  font-weight: 850;
}

.article .text-accent,
.preview-surface .text-accent,
.article-preview-body .text-accent {
  font-weight: 900;
}

.article .text-accent--blue,
.preview-surface .text-accent--blue,
.article-preview-body .text-accent--blue {
  color: #2563eb;
}

.article .text-accent--violet,
.preview-surface .text-accent--violet,
.article-preview-body .text-accent--violet {
  color: #7c3aed;
}

.article .text-accent--orange,
.preview-surface .text-accent--orange,
.article-preview-body .text-accent--orange {
  color: #ea580c;
}

.article .text-accent--green,
.preview-surface .text-accent--green,
.article-preview-body .text-accent--green {
  color: #059669;
}

.article .text-accent--red,
.preview-surface .text-accent--red,
.article-preview-body .text-accent--red {
  color: #dc2626;
}

.article u,
.article .mark {
  text-decoration: none;
  background: linear-gradient(180deg, transparent 58%, rgba(183, 245, 61, 0.34) 0);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.article h2 {
  position: relative;
  margin-top: 46px;
  padding-left: 18px;
  font-size: 26px;
  scroll-margin-top: 92px;
}

.article h2::before {
  position: absolute;
  top: 0.2em;
  left: 0;
  width: 5px;
  height: 1.2em;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--blue), var(--lime));
  content: "";
}

.article h2::after {
  display: block;
  width: min(120px, 34vw);
  height: 1px;
  margin-top: 12px;
  background: linear-gradient(90deg, rgba(49, 130, 246, 0.42), rgba(0, 196, 113, 0.24), transparent);
  content: "";
}

.article h3 {
  position: relative;
  margin-top: 30px;
  padding-bottom: 10px;
  padding-left: 16px;
  color: #1f2a3d;
  font-size: 20px;
  scroll-margin-top: 92px;
}

.article h3::before {
  position: absolute;
  top: 0.52em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--blue);
  box-shadow: 0 0 0 5px rgba(49, 130, 246, 0.1);
  content: "";
}

.article h3::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 16px;
  height: 1px;
  background: linear-gradient(90deg, rgba(49, 130, 246, 0.2), rgba(229, 232, 238, 0.7), transparent);
  content: "";
}

.article blockquote {
  margin: 30px 0;
  padding: 20px 22px;
  border: 1px solid rgba(0, 196, 113, 0.18);
  border-left: 7px solid var(--lime);
  border-radius: var(--radius-md);
  color: #263244;
  background: linear-gradient(90deg, rgba(0, 196, 113, 0.12), rgba(49, 130, 246, 0.07), rgba(255, 255, 255, 0.78));
}

.article img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border: 1px solid rgba(229, 232, 238, 0.95);
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  cursor: zoom-in;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.article img[src*="cloudflare-blog-architecture"] {
  width: min(980px, calc(100vw - 32px));
  max-width: none;
  margin-right: auto;
  margin-left: 50%;
  transform: translateX(-50%);
}

.article img:hover,
.article img:focus-visible,
.article-preview img:hover,
.article-preview img:focus-visible,
.preview-surface img:hover,
.preview-surface img:focus-visible {
  border-color: rgba(49, 130, 246, 0.34);
  box-shadow: var(--shadow-hover);
  outline: none;
}

.article p:has(> img:only-child),
.article-preview-body p:has(> img:only-child),
.preview-surface p:has(> img:only-child) {
  margin: 34px 0 8px;
}

.article .image-source,
.article-preview-body .image-source,
.preview-surface .image-source {
  margin: 6px 0 28px;
  color: #7b8798;
  font-size: 13px;
  line-height: 1.55;
}

.article .image-source a,
.article-preview-body .image-source a,
.preview-surface .image-source a {
  color: inherit;
  text-decoration-color: rgba(123, 135, 152, 0.42);
  text-underline-offset: 3px;
}

.image-lightbox[hidden] {
  display: none;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(14px);
}

.image-lightbox-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(1180px, 100%);
  height: min(820px, calc(100vh - 48px));
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.34);
}

.image-lightbox-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.image-lightbox-toolbar strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 15px;
  font-weight: 820;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.image-lightbox-actions {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  gap: 6px;
}

.image-lightbox-actions button,
.image-lightbox-actions span {
  display: inline-grid;
  place-items: center;
  min-width: 38px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 12px;
  color: var(--ink);
  background: #ffffff;
  font-size: 13px;
  font-weight: 820;
}

.image-lightbox-actions button {
  cursor: pointer;
}

.image-lightbox-actions button:hover,
.image-lightbox-actions button:focus-visible {
  border-color: rgba(49, 130, 246, 0.28);
  color: var(--blue);
  outline: none;
}

.image-lightbox-stage {
  display: block;
  overflow: auto;
  padding: 34px;
  cursor: grab;
  overscroll-behavior: contain;
  touch-action: none;
  background:
    linear-gradient(45deg, rgba(148, 163, 184, 0.12) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(148, 163, 184, 0.12) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(148, 163, 184, 0.12) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(148, 163, 184, 0.12) 75%);
  background-color: #f8fafc;
  background-position: 0 0, 0 12px, 12px -12px, -12px 0;
  background-size: 24px 24px;
}

.image-lightbox-stage[data-panning="true"] {
  cursor: grabbing;
  user-select: none;
}

.image-lightbox-canvas {
  margin: 0 auto;
}

.image-lightbox-stage img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: 0 22px 70px rgba(15, 23, 42, 0.2);
  object-fit: contain;
  transform-origin: top left;
  transition: width 120ms ease, height 120ms ease;
  user-select: none;
  -webkit-user-drag: none;
}

.callout {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 14px;
  margin: 30px 0;
  border: 1px solid rgba(49, 130, 246, 0.18);
  border-radius: var(--radius-lg);
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 251, 255, 0.88)),
    linear-gradient(90deg, rgba(49, 130, 246, 0.1), rgba(0, 196, 113, 0.08));
  box-shadow: var(--shadow-soft);
}

.callout-icon {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  color: #ffffff;
  background: var(--blue);
  font-weight: 900;
}

.callout strong {
  display: block;
  margin: 2px 0 6px;
  color: #172033;
  font-size: 16px;
}

.callout p {
  margin: 0;
}

.callout p + p {
  margin-top: 8px;
}

.callout--tip {
  border-color: rgba(0, 196, 113, 0.22);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(247, 253, 249, 0.88)),
    linear-gradient(90deg, rgba(0, 196, 113, 0.14), rgba(49, 130, 246, 0.06));
}

.callout--tip .callout-icon {
  color: #06281d;
  background: var(--lime);
}

.callout--decision {
  border-color: rgba(124, 92, 255, 0.22);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(250, 248, 255, 0.9)),
    linear-gradient(90deg, rgba(124, 92, 255, 0.13), rgba(49, 130, 246, 0.08));
}

.callout--decision .callout-icon {
  background: var(--violet);
}

.callout--warning {
  border-color: rgba(255, 176, 32, 0.3);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 251, 236, 0.9)),
    linear-gradient(90deg, rgba(255, 176, 32, 0.16), rgba(251, 113, 133, 0.06));
}

.callout--warning .callout-icon {
  color: #231505;
  background: var(--amber);
}

.section-divider {
  height: 1px;
  margin: 38px 0;
  border: 0;
  background: linear-gradient(90deg, transparent, rgba(49, 130, 246, 0.35), rgba(0, 196, 113, 0.35), transparent);
}

.table-scroll {
  overflow-x: auto;
  margin: 28px 0;
  border: 1px solid rgba(229, 232, 238, 0.95);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-soft);
}

.article-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
}

.article-table th,
.article-table td {
  padding: 15px 16px;
  border-bottom: 1px solid rgba(229, 232, 238, 0.86);
  text-align: left;
  vertical-align: top;
}

.article-table th {
  color: #344054;
  background: linear-gradient(180deg, #f8fbff, #f2f7ff);
  font-size: 13px;
  font-weight: 860;
}

.article-table td {
  color: #333d4b;
  font-size: 15px;
  line-height: 1.65;
}

.article-table tr:last-child td {
  border-bottom: 0;
}

.post-aside {
  position: sticky;
  top: 88px;
}

.toc-panel {
  position: relative;
  padding: 18px;
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    linear-gradient(180deg, rgba(49, 130, 246, 0.32), rgba(0, 196, 113, 0.34), rgba(255, 176, 32, 0.24)) border-box;
  border-color: transparent;
  box-shadow: var(--shadow-soft);
}

.toc-panel h2 {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 840;
  text-transform: uppercase;
}

.toc-list {
  display: grid;
  gap: 8px;
  counter-reset: toc-item;
}

.toc-list a {
  position: relative;
  display: block;
  min-height: 42px;
  padding: 10px 12px 10px 46px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 14px;
  color: #263246;
  background: rgba(248, 250, 252, 0.82);
  font-size: 14px;
  font-weight: 780;
  line-height: 1.35;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
  counter-increment: toc-item;
}

.toc-list a::before {
  position: absolute;
  top: 50%;
  left: 12px;
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  color: #ffffff;
  background: #111827;
  content: counter(toc-item);
  font-size: 12px;
  font-weight: 900;
  transform: translateY(-50%);
}

.toc-list a:hover {
  color: var(--blue);
  border-color: rgba(49, 130, 246, 0.28);
  background: #f2f7ff;
  transform: translateX(2px);
}

.toc-list a:hover::before {
  color: #111827;
  background: var(--lime);
}

.inline-toc {
  margin: 30px 0 36px;
  padding: 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    linear-gradient(120deg, rgba(49, 130, 246, 0.3), rgba(0, 196, 113, 0.25), rgba(255, 176, 32, 0.18)) border-box;
  box-shadow: 0 18px 46px rgba(49, 130, 246, 0.08);
}

.inline-toc h2 {
  margin-bottom: 14px;
  color: #172033;
  font-size: 15px;
  font-weight: 840;
}

.inline-toc .toc-list {
  grid-template-columns: 1fr;
  gap: 8px;
}

.inline-toc .toc-list a {
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 251, 255, 0.9)),
    linear-gradient(90deg, rgba(49, 130, 246, 0.06), rgba(183, 245, 61, 0.04));
}

.category-list,
.popular-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.category-list a,
.popular-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 36px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: #303948;
  font-size: 14px;
  font-weight: 700;
}

.category-list a:last-child,
.popular-list a:last-child {
  border-bottom-color: transparent;
}

.category-list strong {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  border-radius: 999px;
  color: var(--blue);
  background: #eef5ff;
  font-size: 12px;
}

.popular-list a {
  justify-content: flex-start;
  line-height: 1.45;
}

.category-list a:hover,
.popular-list a:hover {
  color: var(--blue);
  border-color: rgba(49, 130, 246, 0.12);
  background: rgba(49, 130, 246, 0.06);
}

.related-section {
  margin: 0 0 18px;
}

.related-section .section-title-row {
  margin-bottom: 14px;
}

.related-section h2 {
  font-size: 22px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}

.related-card {
  display: grid;
  gap: 10px;
  min-height: 206px;
  padding: 18px;
  border: 1px solid rgba(229, 232, 238, 0.92);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(250, 252, 255, 0.9)),
    linear-gradient(135deg, rgba(49, 130, 246, 0.08), rgba(0, 196, 113, 0.06));
  box-shadow: var(--shadow-soft);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.related-card:hover {
  border-color: rgba(49, 130, 246, 0.28);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.related-label {
  width: fit-content;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--blue);
  background: rgba(49, 130, 246, 0.08);
  font-size: 12px;
  font-weight: 820;
}

.related-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.related-tags span {
  padding: 3px 7px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  color: #7a8495;
  background: rgba(248, 250, 252, 0.78);
  font-size: 11px;
  font-weight: 720;
}

.related-card strong {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.36;
}

.related-card p {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.58;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.related-meta {
  align-self: end;
  color: #7a8495;
  font-size: 12px;
  font-weight: 720;
}

.tag-cloud {
  margin-top: 14px;
}

.compact-tags {
  gap: 7px;
}

.compact-tags a {
  min-height: 28px;
  padding: 0 10px;
}

.comments {
  display: grid;
  margin-top: 16px;
}

.comment {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 13px;
  padding: 18px 0;
  border: 0;
  border-bottom: 1px solid rgba(220, 228, 239, 0.78);
  border-radius: var(--radius-md);
  box-shadow: none;
  background: transparent;
}

.comment:last-child {
  border-bottom: 0;
}

.comment-avatar {
  width: 36px;
  height: 36px;
  font-size: 13px;
  background: linear-gradient(135deg, var(--bg-deep), #2f6df6);
}

.comment--admin {
  border-left: 4px solid var(--lime);
  padding-left: 14px;
  background: linear-gradient(90deg, rgba(0, 196, 113, 0.08), transparent 56%);
}

.comment--admin > .comment-avatar {
  color: #07111f;
  background: linear-gradient(135deg, var(--lime), #7dffb6);
}

.comment--deleted {
  opacity: 0.74;
}

.comment--deleted .comment-avatar {
  background: #94a3b8;
}

.comment--secret:not(.comment--admin) .comment-avatar {
  background: linear-gradient(135deg, #64748b, #2f6df6);
}

.comment-content {
  min-width: 0;
}

.comment-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 13px;
}

.comment p {
  margin: 8px 0 0;
  color: #2c3340;
  line-height: 1.65;
}

.admin-badge {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  margin-left: 6px;
  padding: 0 7px;
  border: 1px solid rgba(0, 196, 113, 0.22);
  border-radius: 999px;
  color: #047857;
  background: rgba(0, 196, 113, 0.1);
  font-size: 11px;
  font-weight: 840;
  vertical-align: middle;
}

.secret-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  min-height: 20px;
  margin-left: 6px;
  padding: 0 7px;
  border: 1px solid rgba(47, 109, 246, 0.2);
  border-radius: 999px;
  color: var(--blue);
  background: rgba(47, 109, 246, 0.08);
  font-size: 11px;
  font-weight: 840;
  vertical-align: middle;
}

.inline-comment-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.inline-comment-actions .btn {
  min-height: 28px;
  padding: 0 10px;
  font-size: 12px;
}

.comment-replies {
  display: grid;
  gap: 0;
  margin-top: 14px;
  padding-left: 16px;
  border-left: 1px solid rgba(47, 109, 246, 0.16);
}

.comment-replies .comment {
  padding-top: 14px;
  padding-bottom: 14px;
}

.comments-panel,
.comment-form-panel {
  max-width: 808px;
}

.check-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  color: var(--muted);
  font-size: 14px;
  font-weight: 760;
}

.check-row input {
  width: 16px;
  height: 16px;
  accent-color: var(--blue);
}

.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.section-title-row > div {
  min-width: 0;
}

.section-title-row span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}

.section-title-row .notice {
  margin-top: 6px;
}

.form-grid {
  display: grid;
  gap: 12px;
}

.field-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
}

.field {
  display: grid;
  gap: 7px;
}

.field label {
  color: #3a4352;
  font-size: 13px;
  font-weight: 700;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.92);
  padding: 12px 13px;
  color: var(--text);
  outline: none;
}

.field textarea {
  min-height: 116px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(47, 109, 246, 0.12);
}

.admin-shell {
  display: grid;
  grid-template-columns: 246px minmax(0, 1fr);
  min-height: calc(100vh - 64px);
  min-width: 0;
}

.sidebar {
  padding: 22px;
  border-right: 1px solid rgba(17, 24, 39, 0.08);
  background: linear-gradient(180deg, #101318, #161b24);
}

.sidebar nav {
  display: grid;
  gap: 6px;
}

.sidebar a {
  display: flex;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
  font-weight: 680;
}

.sidebar a[aria-current="page"],
.sidebar a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.admin-main {
  min-width: 0;
  padding: 38px 34px 72px;
  background:
    linear-gradient(180deg, rgba(248, 251, 255, 0.92), rgba(241, 245, 249, 0.94)),
    linear-gradient(120deg, rgba(47, 109, 246, 0.09), transparent 38%),
    linear-gradient(90deg, transparent, rgba(183, 245, 61, 0.09));
}

.admin-main > section {
  width: 100%;
  max-width: 1180px;
  margin-right: auto;
  margin-left: auto;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 24px 0;
}

.metric {
  padding: 18px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.metric strong {
  display: block;
  margin-top: 8px;
  font-size: 34px;
  line-height: 1;
}

.admin-quick-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: -6px 0 24px;
}

.admin-quick-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 54px;
  border: 1px solid rgba(49, 130, 246, 0.18);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-soft);
  font-size: 14px;
  font-weight: 820;
}

.admin-quick-links a:hover {
  border-color: rgba(49, 130, 246, 0.34);
  color: var(--blue);
  transform: translateY(-1px);
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: 14px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 14px;
}

.table th {
  color: var(--muted);
  font-weight: 700;
}

.traffic-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 18px;
  margin-top: 18px;
}

.traffic-section {
  margin-top: 22px;
}

.traffic-section h3 {
  margin: 0;
}

.traffic-card {
  min-width: 0;
  overflow: hidden;
}

.traffic-card h3,
.traffic-card h4 {
  margin: 0 0 12px;
}

.traffic-card h4 {
  font-size: 15px;
}

.comments-table th:first-child,
.comments-table td:first-child {
  width: 28%;
  min-width: 220px;
}

.comment-post-cell {
  display: grid;
  gap: 5px;
}

.comment-post-cell a {
  color: var(--blue);
  font-weight: 820;
  line-height: 1.45;
  text-decoration: none;
}

.comment-post-cell a:hover {
  text-decoration: underline;
}

.comment-body-cell {
  min-width: 180px;
  max-width: 420px;
  line-height: 1.6;
}

.comment-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.draft-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.draft-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px;
  background: rgba(255, 255, 255, 0.76);
}

.draft-card-main {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.draft-card h3 {
  font-size: 17px;
}

.draft-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.draft-card code {
  overflow: hidden;
  color: var(--blue);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.draft-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.editor-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
}

.editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.button-row .btn {
  flex: 1 1 140px;
}

[data-tooltip] {
  position: relative;
}

[data-tooltip]::after {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 9px);
  z-index: 30;
  width: max-content;
  max-width: min(280px, 72vw);
  border: 1px solid rgba(15, 23, 42, 0.16);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  color: #f8fafc;
  background: rgba(15, 23, 42, 0.94);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.18);
  content: attr(data-tooltip);
  font-size: 12px;
  font-weight: 680;
  line-height: 1.45;
  opacity: 0;
  pointer-events: none;
  text-align: left;
  transform: translate(-50%, 4px);
  transition: opacity 0.16s ease, transform 0.16s ease;
  white-space: normal;
}

[data-tooltip]::before {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 4px);
  z-index: 31;
  width: 9px;
  height: 9px;
  background: rgba(15, 23, 42, 0.94);
  content: "";
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 4px) rotate(45deg);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

[data-tooltip]:hover::after,
[data-tooltip]:focus-visible::after,
[data-tooltip]:hover::before,
[data-tooltip]:focus-visible::before {
  opacity: 1;
  transform: translate(-50%, 0);
}

.editor-toolbar button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0 11px;
  color: #344054;
  background: rgba(255, 255, 255, 0.86);
  cursor: pointer;
  font-size: 13px;
  font-weight: 780;
}

.editor-toolbar button:hover {
  border-color: rgba(47, 109, 246, 0.32);
  color: var(--blue);
}

.editor-area {
  min-height: 420px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.editor-preview {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px;
  background: rgba(255, 255, 255, 0.78);
}

.preview-surface {
  display: grid;
  gap: 12px;
  min-height: 180px;
}

.preview-surface h1 {
  font-size: 28px;
}

.preview-surface h2 {
  margin-top: 8px;
  font-size: 21px;
}

.preview-surface h3 {
  position: relative;
  margin: 6px 0 0;
  padding-left: 14px;
  padding-bottom: 8px;
  color: #1f2a3d;
  font-size: 17px;
}

.preview-surface h3::before {
  position: absolute;
  top: 0.55em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--blue);
  box-shadow: 0 0 0 4px rgba(49, 130, 246, 0.1);
  content: "";
}

.preview-surface h3::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 14px;
  height: 1px;
  background: linear-gradient(90deg, rgba(49, 130, 246, 0.18), rgba(229, 232, 238, 0.7), transparent);
  content: "";
}

.preview-surface p,
.preview-surface li {
  color: #303642;
  line-height: 1.68;
}

.preview-surface strong {
  color: #172033;
  font-weight: 850;
}

.preview-surface u,
.preview-surface .mark {
  text-decoration: none;
  background: linear-gradient(180deg, transparent 58%, rgba(183, 245, 61, 0.34) 0);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.preview-surface blockquote {
  margin: 0;
  border-left: 3px solid var(--lime);
  padding: 12px 14px;
  color: #394150;
  background: #f4f7fb;
}

.preview-surface .callout {
  margin: 0;
  padding: 14px;
  box-shadow: none;
}

.preview-surface .callout strong {
  font-size: 14px;
}

.preview-surface .callout p {
  margin: 0;
  font-size: 14px;
}

.preview-surface .section-divider {
  margin: 12px 0;
}

.preview-surface .table-scroll {
  margin: 0;
  box-shadow: none;
}

.preview-surface .article-table {
  min-width: 520px;
}

.preview-surface .article-table th,
.preview-surface .article-table td {
  padding: 10px 12px;
  font-size: 13px;
}

.preview-surface pre {
  overflow: auto;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px;
  background: #0f172a;
}

.preview-surface pre code {
  color: #dbeafe;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.65;
  white-space: pre;
}

.preview-surface :not(pre) > code {
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  padding: 2px 5px;
  color: #174ec8;
  background: #eef4ff;
  font-size: 0.92em;
}

.preview-surface img {
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.preview-surface a {
  color: var(--blue);
  font-weight: 720;
}

.article-preview-panel {
  display: grid;
  gap: 16px;
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.article-preview-frame {
  overflow: auto;
  max-height: 78vh;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: var(--radius-lg);
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(248, 251, 255, 0.96), rgba(241, 245, 249, 0.9)),
    linear-gradient(120deg, rgba(47, 109, 246, 0.08), transparent 42%);
}

.article-preview {
  max-width: 980px;
  margin: 0 auto;
  padding: 40px;
  box-shadow: 0 16px 44px rgba(15, 23, 42, 0.1);
}

.article-preview h1 {
  font-size: 38px;
}

.article-preview .article-meta-card {
  margin-bottom: 22px;
}

.article-preview-body {
  display: grid;
  gap: 14px;
}

.article-preview-toc {
  margin: 0 0 26px;
}

.x-preview-panel {
  overflow: hidden;
}

.x-preview-layout {
  display: grid;
  grid-template-columns: minmax(0, 680px) minmax(260px, 1fr);
  gap: 18px;
  margin-top: 18px;
}

.x-preview-feed,
.x-preview-detail {
  min-width: 0;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
}

.x-preview-feed {
  overflow: hidden;
}

.x-preview-topbar,
.x-preview-compose,
.x-post-card {
  border-bottom: 1px solid var(--line);
}

.x-preview-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
}

.x-preview-topbar div,
.x-preview-compose div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.x-preview-topbar strong {
  color: var(--ink);
  font-size: 18px;
}

.x-preview-topbar span,
.x-preview-compose p,
.x-post-head span,
.x-post-actions span {
  color: var(--muted);
  font-size: 13px;
}

.x-preview-compose {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  padding: 16px 18px;
  background: linear-gradient(135deg, rgba(49, 130, 246, 0.06), rgba(0, 196, 113, 0.05));
}

.x-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #111827, #3182f6 48%, #00c471);
  font-size: 15px;
  font-weight: 860;
}

.x-preview-timeline {
  display: grid;
}

.x-post-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  width: 100%;
  padding: 16px 18px;
  background: transparent;
  cursor: pointer;
  transition: background 0.16s ease, box-shadow 0.16s ease;
}

.x-post-card:hover,
.x-post-card:focus-visible,
.x-post-card.is-selected {
  outline: 0;
  background: rgba(49, 130, 246, 0.06);
}

.x-post-card.is-selected {
  box-shadow: inset 3px 0 0 var(--blue);
}

.x-post-body {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.x-post-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  min-width: 0;
}

.x-post-head strong {
  color: var(--ink);
  font-size: 14px;
}

.x-post-body p {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.62;
  white-space: pre-wrap;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.x-post-body a {
  color: var(--blue);
  font-weight: 720;
  text-decoration: none;
}

.x-post-body a:hover {
  text-decoration: underline;
}

.x-post-badges,
.x-post-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.x-post-actions {
  justify-content: space-between;
  max-width: 420px;
  padding-top: 2px;
}

.x-post-actions span {
  font-weight: 700;
}

.x-preview-media {
  display: grid;
  align-items: center;
  justify-items: center;
  gap: 6px;
  min-height: 168px;
  border: 1px solid rgba(49, 130, 246, 0.18);
  border-radius: var(--radius-md);
  color: var(--muted);
  background:
    linear-gradient(135deg, rgba(49, 130, 246, 0.1), rgba(0, 196, 113, 0.08)),
    repeating-linear-gradient(45deg, rgba(148, 163, 184, 0.08) 0 10px, transparent 10px 20px);
  text-align: center;
}

.x-preview-media img {
  display: block;
  width: 100%;
  max-height: 360px;
  object-fit: contain;
  border-radius: calc(var(--radius-md) - 2px);
}

.x-preview-media figcaption {
  width: 100%;
  padding: 0 10px 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.x-preview-media strong {
  color: var(--ink);
  font-size: 13px;
}

.x-preview-detail {
  position: sticky;
  top: 84px;
  align-self: start;
  display: grid;
  gap: 14px;
  padding: 16px;
}

.x-preview-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.x-preview-detail-head strong {
  color: var(--ink);
}

.x-preview-detail-text {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px;
  color: var(--ink);
  background: rgba(248, 251, 255, 0.8);
  font-size: 14px;
  line-height: 1.68;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.x-preview-meta {
  display: grid;
  gap: 8px;
  margin: 0;
}

.x-preview-meta div {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}

.x-preview-meta dt,
.x-preview-meta dd {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
}

.x-preview-meta dt {
  color: var(--muted);
  font-weight: 760;
}

.x-preview-meta dd {
  color: var(--ink);
  overflow-wrap: anywhere;
}

.x-preview-errors {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(229, 72, 77, 0.18);
  border-radius: var(--radius-md);
  padding: 12px;
  color: #991b1b;
  background: rgba(229, 72, 77, 0.08);
  font-size: 13px;
}

.toc-list .toc-child {
  padding-left: 18px;
  font-size: 13px;
}

.code-snippet {
  overflow: hidden;
  margin: 26px 0;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: var(--radius-lg);
  background: #0b1020;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
}

.preview-surface .code-snippet {
  margin: 0;
}

.code-snippet-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  padding: 10px 12px;
  color: #cbd5e1;
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.92), rgba(15, 23, 42, 0.94));
  font-size: 12px;
  font-weight: 820;
}

.code-copy-button {
  min-height: 28px;
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 999px;
  padding: 0 10px;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  font-size: 12px;
  font-weight: 780;
}

.code-copy-button:hover {
  border-color: rgba(183, 245, 61, 0.5);
  color: #f8fafc;
  background: rgba(183, 245, 61, 0.1);
}

.code-snippet-pre {
  overflow: auto;
  margin: 0;
  padding: 14px 0;
  background:
    linear-gradient(90deg, rgba(148, 163, 184, 0.06) 0 46px, transparent 46px),
    #0b1020;
}

.preview-surface .code-snippet-pre {
  border: 0;
  border-radius: 0;
  padding: 14px 0;
  background:
    linear-gradient(90deg, rgba(148, 163, 184, 0.06) 0 46px, transparent 46px),
    #0b1020;
}

.code-snippet code {
  display: block;
  min-width: max-content;
  color: #dbeafe;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.68;
  tab-size: 2;
}

.code-line {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  min-height: 22px;
}

.code-line-number {
  padding-right: 12px;
  color: #64748b;
  text-align: right;
  user-select: none;
}

.code-line-source {
  padding: 0 18px;
  white-space: pre;
}

.tok-keyword {
  color: #93c5fd;
}

.tok-string {
  color: #bef264;
}

.tok-comment {
  color: #94a3b8;
  font-style: italic;
}

.tok-number {
  color: #fbbf24;
}

.asset-helper {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px;
  background: rgba(255, 255, 255, 0.68);
}

.asset-helper h3 {
  font-size: 15px;
}

.media-drop {
  display: grid;
  gap: 5px;
  border: 1px dashed rgba(47, 109, 246, 0.32);
  border-radius: var(--radius-md);
  padding: 12px;
  background: rgba(47, 109, 246, 0.05);
}

.media-drop strong {
  color: var(--blue);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}

.media-drop span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.media-list {
  display: grid;
  gap: 8px;
}

.media-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 10px;
  background: rgba(255, 255, 255, 0.72);
}

.media-item div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.media-item strong,
.media-item code {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.media-item strong {
  color: var(--ink);
  font-size: 13px;
}

.media-item code {
  color: var(--muted);
  font-size: 12px;
}

.media-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.media-item button {
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 10px;
  color: var(--blue);
  background: #ffffff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 760;
}

.media-item button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.notice {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.turnstile-slot {
  min-height: 65px;
}

:root[data-theme="dark"] body {
  background:
    linear-gradient(180deg, rgba(7, 10, 17, 0.98) 0, rgba(11, 16, 25, 0.98) 46%, #0e1623 100%),
    linear-gradient(135deg, rgba(110, 162, 255, 0.18), transparent 34%),
    linear-gradient(90deg, rgba(183, 245, 61, 0.1), rgba(34, 211, 238, 0.08), transparent 72%);
}

:root[data-theme="dark"] .topbar {
  border-bottom-color: rgba(148, 163, 184, 0.18);
  background: rgba(7, 10, 17, 0.82);
}

:root[data-theme="dark"] .menu-button,
:root[data-theme="dark"] .menu-drawer-head button {
  border-color: rgba(148, 163, 184, 0.2);
  color: #dbeafe;
  background: rgba(15, 23, 42, 0.78);
}

:root[data-theme="dark"] .menu-drawer {
  border-right-color: rgba(148, 163, 184, 0.2);
  background: rgba(11, 16, 25, 0.96);
}

:root[data-theme="dark"] .menu-drawer-head strong {
  color: #f8fafc;
}

:root[data-theme="dark"] .drawer-search input {
  border-color: rgba(148, 163, 184, 0.2);
  color: #f8fafc;
  background: rgba(15, 23, 42, 0.82);
}

:root[data-theme="dark"] .drawer-links a {
  color: #cbd5e1;
}

:root[data-theme="dark"] .drawer-links a[aria-current="page"],
:root[data-theme="dark"] .drawer-links a:hover,
:root[data-theme="dark"] .drawer-tags a[aria-current="page"],
:root[data-theme="dark"] .drawer-tags a:hover {
  color: #dbeafe;
  border-color: rgba(110, 162, 255, 0.24);
  background: rgba(110, 162, 255, 0.12);
}

:root[data-theme="dark"] .drawer-links strong {
  color: #cfe0ff;
  background: rgba(110, 162, 255, 0.15);
}

:root[data-theme="dark"] .drawer-tags a {
  border-color: rgba(148, 163, 184, 0.18);
  color: #94a3b8;
  background: rgba(15, 23, 42, 0.62);
}

:root[data-theme="dark"] .drawer-recent a {
  border-top-color: rgba(148, 163, 184, 0.16);
  color: #cbd5e1;
}

:root[data-theme="dark"] .drawer-recent a:hover {
  color: #dbeafe;
}

:root[data-theme="dark"] .drawer-icon-link {
  border-color: rgba(251, 191, 36, 0.24);
  color: #fde68a;
  background: rgba(251, 191, 36, 0.1);
}

:root[data-theme="dark"] .drawer-icon-link:hover {
  color: #fff7c2;
  background: rgba(251, 191, 36, 0.16);
}

:root[data-theme="dark"] .nav a[aria-current="page"],
:root[data-theme="dark"] .nav a:hover {
  background: rgba(148, 163, 184, 0.13);
}

:root[data-theme="dark"] .nav .main-home-link,
:root[data-theme="dark"] .nav .main-home-link:hover {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(47, 109, 246, 0.95), rgba(124, 92, 255, 0.92));
}

:root[data-theme="dark"] .nav .logout-link {
  color: #fb7185;
}

:root[data-theme="dark"] .nav .logout-link:hover {
  color: #ffffff;
  background: rgba(251, 113, 133, 0.22);
}

:root[data-theme="dark"] .language-switcher,
:root[data-theme="dark"] .theme-switcher {
  background: rgba(15, 23, 36, 0.88);
}

:root[data-theme="dark"] .language-switcher a[aria-pressed="true"],
:root[data-theme="dark"] .theme-switcher button[aria-pressed="true"] {
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

:root[data-theme="dark"] .topic-tabs a[aria-current="page"],
:root[data-theme="dark"] .topic-tabs a:hover,
:root[data-theme="dark"] .search-box,
:root[data-theme="dark"] .btn,
:root[data-theme="dark"] .panel,
:root[data-theme="dark"] .metric,
:root[data-theme="dark"] .admin-quick-links a,
:root[data-theme="dark"] .visitor-metric,
:root[data-theme="dark"] .ad-slot {
  border-color: rgba(148, 163, 184, 0.2);
  background: rgba(17, 24, 39, 0.72);
}

:root[data-theme="dark"] .topic-tabs a,
:root[data-theme="dark"] .search-box span,
:root[data-theme="dark"] .post-stats,
:root[data-theme="dark"] .article-stats,
:root[data-theme="dark"] .visitor-metric span,
:root[data-theme="dark"] .ad-slot-label {
  color: var(--muted);
}

:root[data-theme="dark"] .visitor-metric strong {
  color: #f8fafc;
}

:root[data-theme="dark"] .post-stats span {
  border-color: rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.66);
  color: #cbd5e1;
}

:root[data-theme="dark"] .like-button.is-liked {
  color: #fda4af;
  border-color: rgba(251, 113, 133, 0.34);
  background: rgba(251, 113, 133, 0.13);
}

:root[data-theme="dark"] .post-pagination button {
  border-color: rgba(148, 163, 184, 0.2);
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.72);
}

:root[data-theme="dark"] .post-pagination button:hover,
:root[data-theme="dark"] .post-pagination button[aria-current="page"] {
  color: #f8fafc;
  border-color: rgba(110, 162, 255, 0.5);
  background: rgba(110, 162, 255, 0.32);
}

:root[data-theme="dark"] .post-pagination button:disabled:hover {
  color: #cbd5e1;
  border-color: rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.72);
}

:root[data-theme="dark"] .blog-toolbar {
  border-color: rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.68);
}

:root[data-theme="dark"] .post-row {
  border-color: rgba(148, 163, 184, 0.22);
  background:
    linear-gradient(180deg, rgba(17, 24, 39, 0.92), rgba(11, 16, 25, 0.94)),
    linear-gradient(135deg, rgba(110, 162, 255, 0.12), rgba(183, 245, 61, 0.08));
}

:root[data-theme="dark"] .post-list .post-row::after {
  opacity: 0.38;
}

:root[data-theme="dark"] .post-list .post-row .btn {
  color: #dbeafe;
  background: rgba(15, 23, 42, 0.78);
}

:root[data-theme="dark"] .language-switch {
  color: #ffffff;
  border-color: rgba(110, 162, 255, 0.5);
  background: rgba(47, 109, 246, 0.9);
}

:root[data-theme="dark"] .article {
  background: rgba(17, 24, 39, 0.9);
}

:root[data-theme="dark"] .article img,
:root[data-theme="dark"] .preview-surface img {
  border-color: rgba(148, 163, 184, 0.22);
  background: #0f172a;
}

:root[data-theme="dark"] .article .image-source,
:root[data-theme="dark"] .article-preview-body .image-source,
:root[data-theme="dark"] .preview-surface .image-source {
  color: #94a3b8;
}

:root[data-theme="dark"] .image-lightbox-panel {
  border-color: rgba(148, 163, 184, 0.24);
  background: rgba(17, 24, 39, 0.96);
}

:root[data-theme="dark"] .image-lightbox-toolbar {
  border-bottom-color: rgba(148, 163, 184, 0.2);
}

:root[data-theme="dark"] .image-lightbox-actions button,
:root[data-theme="dark"] .image-lightbox-actions span {
  border-color: rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.82);
}

:root[data-theme="dark"] .image-lightbox-stage {
  background-color: #0b1019;
}

:root[data-theme="dark"] .article p,
:root[data-theme="dark"] .comment p {
  color: #d6deeb;
}

:root[data-theme="dark"] .article p a,
:root[data-theme="dark"] .article li a,
:root[data-theme="dark"] .article blockquote a,
:root[data-theme="dark"] .preview-surface p a,
:root[data-theme="dark"] .preview-surface li a,
:root[data-theme="dark"] .article-preview-body p a,
:root[data-theme="dark"] .article-preview-body li a {
  color: #9ec5ff;
  background:
    linear-gradient(180deg, rgba(30, 41, 59, 0.86), rgba(15, 23, 42, 0.9)),
    linear-gradient(90deg, rgba(110, 162, 255, 0.22), rgba(183, 245, 61, 0.1));
  box-shadow: inset 0 0 0 1px rgba(110, 162, 255, 0.28);
}

:root[data-theme="dark"] .article p a:hover,
:root[data-theme="dark"] .article p a:focus-visible,
:root[data-theme="dark"] .article li a:hover,
:root[data-theme="dark"] .article li a:focus-visible,
:root[data-theme="dark"] .article blockquote a:hover,
:root[data-theme="dark"] .article blockquote a:focus-visible,
:root[data-theme="dark"] .preview-surface p a:hover,
:root[data-theme="dark"] .preview-surface p a:focus-visible,
:root[data-theme="dark"] .preview-surface li a:hover,
:root[data-theme="dark"] .preview-surface li a:focus-visible,
:root[data-theme="dark"] .article-preview-body p a:hover,
:root[data-theme="dark"] .article-preview-body p a:focus-visible,
:root[data-theme="dark"] .article-preview-body li a:hover,
:root[data-theme="dark"] .article-preview-body li a:focus-visible {
  color: #c7dcff;
  background:
    linear-gradient(180deg, rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.98)),
    linear-gradient(90deg, rgba(110, 162, 255, 0.32), rgba(183, 245, 61, 0.15));
  box-shadow: inset 0 0 0 1px rgba(110, 162, 255, 0.42), 0 8px 22px rgba(0, 0, 0, 0.24);
}

:root[data-theme="dark"] .article-lede,
:root[data-theme="dark"] .related-card p,
:root[data-theme="dark"] .related-meta {
  color: var(--muted);
}

:root[data-theme="dark"] .article strong {
  color: #f2f6ff;
}

:root[data-theme="dark"] .article .text-accent--blue,
:root[data-theme="dark"] .preview-surface .text-accent--blue,
:root[data-theme="dark"] .article-preview-body .text-accent--blue {
  color: #6ea2ff;
}

:root[data-theme="dark"] .article .text-accent--violet,
:root[data-theme="dark"] .preview-surface .text-accent--violet,
:root[data-theme="dark"] .article-preview-body .text-accent--violet {
  color: #c4b5fd;
}

:root[data-theme="dark"] .article .text-accent--orange,
:root[data-theme="dark"] .preview-surface .text-accent--orange,
:root[data-theme="dark"] .article-preview-body .text-accent--orange {
  color: #fdba74;
}

:root[data-theme="dark"] .article .text-accent--green,
:root[data-theme="dark"] .preview-surface .text-accent--green,
:root[data-theme="dark"] .article-preview-body .text-accent--green {
  color: #5ee8a9;
}

:root[data-theme="dark"] .article .text-accent--red,
:root[data-theme="dark"] .preview-surface .text-accent--red,
:root[data-theme="dark"] .article-preview-body .text-accent--red {
  color: #fca5a5;
}

:root[data-theme="dark"] .article u,
:root[data-theme="dark"] .article .mark {
  background: linear-gradient(180deg, transparent 58%, rgba(183, 245, 61, 0.2) 0);
}

:root[data-theme="dark"] .comment--admin {
  background: linear-gradient(90deg, rgba(183, 245, 61, 0.1), transparent 58%);
}

:root[data-theme="dark"] .admin-badge {
  border-color: rgba(183, 245, 61, 0.28);
  color: #d9ff83;
  background: rgba(183, 245, 61, 0.1);
}

:root[data-theme="dark"] .secret-badge {
  border-color: rgba(110, 162, 255, 0.24);
  color: #cfe0ff;
  background: rgba(110, 162, 255, 0.12);
}

:root[data-theme="dark"] .comment-replies {
  border-left-color: rgba(110, 162, 255, 0.22);
}

:root[data-theme="dark"] .article-meta-card {
  border-color: rgba(148, 163, 184, 0.2);
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.82), rgba(17, 24, 39, 0.78)),
    linear-gradient(90deg, rgba(110, 162, 255, 0.1), rgba(53, 214, 173, 0.08), rgba(251, 191, 36, 0.07));
}

:root[data-theme="dark"] .article blockquote {
  color: #e5eefc;
  background: linear-gradient(90deg, rgba(183, 245, 61, 0.15), rgba(110, 162, 255, 0.1));
}

:root[data-theme="dark"] .article h3,
:root[data-theme="dark"] .callout strong {
  color: #f2f6ff;
}

:root[data-theme="dark"] .article h3::before {
  background: #6ea2ff;
  box-shadow: 0 0 0 5px rgba(110, 162, 255, 0.12);
}

:root[data-theme="dark"] .article h3::after {
  background: linear-gradient(90deg, rgba(110, 162, 255, 0.24), rgba(148, 163, 184, 0.22), transparent);
}

:root[data-theme="dark"] .callout {
  border-color: rgba(110, 162, 255, 0.22);
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.86), rgba(17, 24, 39, 0.76)),
    linear-gradient(90deg, rgba(110, 162, 255, 0.12), rgba(53, 214, 173, 0.08));
}

:root[data-theme="dark"] .callout--tip {
  border-color: rgba(183, 245, 61, 0.22);
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.86), rgba(17, 24, 39, 0.76)),
    linear-gradient(90deg, rgba(183, 245, 61, 0.11), rgba(110, 162, 255, 0.07));
}

:root[data-theme="dark"] .callout--decision {
  border-color: rgba(167, 139, 250, 0.26);
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.88), rgba(17, 24, 39, 0.78)),
    linear-gradient(90deg, rgba(167, 139, 250, 0.13), rgba(110, 162, 255, 0.08));
}

:root[data-theme="dark"] .callout--warning {
  border-color: rgba(251, 191, 36, 0.28);
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.88), rgba(17, 24, 39, 0.78)),
    linear-gradient(90deg, rgba(251, 191, 36, 0.13), rgba(251, 113, 133, 0.08));
}

:root[data-theme="dark"] .table-scroll {
  border-color: rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.68);
}

:root[data-theme="dark"] .article-table th {
  color: #dbeafe;
  background: rgba(30, 41, 59, 0.9);
}

:root[data-theme="dark"] .article-table td {
  color: #d6deeb;
  border-bottom-color: rgba(148, 163, 184, 0.16);
}

:root[data-theme="dark"] .toc-panel {
  background:
    linear-gradient(rgba(17, 24, 39, 0.96), rgba(17, 24, 39, 0.96)) padding-box,
    linear-gradient(180deg, rgba(110, 162, 255, 0.42), rgba(183, 245, 61, 0.4)) border-box;
}

:root[data-theme="dark"] .inline-toc,
:root[data-theme="dark"] .related-card {
  border-color: rgba(148, 163, 184, 0.2);
  background:
    linear-gradient(180deg, rgba(17, 24, 39, 0.88), rgba(11, 16, 25, 0.9)),
    linear-gradient(135deg, rgba(110, 162, 255, 0.12), rgba(183, 245, 61, 0.08));
}

:root[data-theme="dark"] .inline-toc h2 {
  color: #e2e8f0;
}

:root[data-theme="dark"] .related-card strong {
  color: #f8fafc;
}

:root[data-theme="dark"] .related-tags span {
  border-color: rgba(148, 163, 184, 0.18);
  color: #94a3b8;
  background: rgba(15, 23, 42, 0.62);
}

:root[data-theme="dark"] .related-label {
  color: #cfe0ff;
  background: rgba(110, 162, 255, 0.14);
}

:root[data-theme="dark"] .toc-list a,
:root[data-theme="dark"] .category-list a,
:root[data-theme="dark"] .popular-list a {
  color: #cbd5e1;
}

:root[data-theme="dark"] .toc-list a {
  border-color: rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.58);
}

:root[data-theme="dark"] .inline-toc .toc-list a {
  color: #dbeafe;
  background:
    linear-gradient(180deg, rgba(30, 41, 59, 0.84), rgba(15, 23, 42, 0.9)),
    linear-gradient(90deg, rgba(110, 162, 255, 0.12), rgba(183, 245, 61, 0.08));
}

:root[data-theme="dark"] .toc-list a::before {
  color: #0f172a;
  background: #b7f53d;
}

:root[data-theme="dark"] .toc-list a:hover,
:root[data-theme="dark"] .category-list a:hover,
:root[data-theme="dark"] .popular-list a:hover {
  color: #dbeafe;
  background: rgba(148, 163, 184, 0.1);
}

:root[data-theme="dark"] .toc-list a:hover::before {
  color: #111827;
  background: #d4ff63;
}

:root[data-theme="dark"] .category-list a,
:root[data-theme="dark"] .popular-list a,
:root[data-theme="dark"] .comment {
  border-bottom-color: rgba(148, 163, 184, 0.16);
}

:root[data-theme="dark"] .category-list strong {
  background: rgba(110, 162, 255, 0.15);
}

:root[data-theme="dark"] .post-tags span,
:root[data-theme="dark"] .article-tags a,
:root[data-theme="dark"] .tag-cloud a,
:root[data-theme="dark"] .chip {
  border-color: rgba(110, 162, 255, 0.26);
  color: #cfe0ff;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.9), rgba(30, 41, 59, 0.72));
}

:root[data-theme="dark"] .tag-cloud a[aria-current="page"] {
  color: #ffffff;
  border-color: rgba(110, 162, 255, 0.5);
  background: rgba(47, 109, 246, 0.36);
}

:root[data-theme="dark"] .post-tags span:first-child,
:root[data-theme="dark"] .article-tags a:first-child,
:root[data-theme="dark"] .tag-cloud a:first-child {
  color: #07111f;
  background: linear-gradient(135deg, var(--lime), #8dffbd);
}

:root[data-theme="dark"] .post-tags span:nth-child(2),
:root[data-theme="dark"] .article-tags a:nth-child(2),
:root[data-theme="dark"] .tag-cloud a:nth-child(2) {
  border-color: rgba(167, 139, 250, 0.28);
  color: #ddd6fe;
  background: rgba(124, 92, 255, 0.14);
}

:root[data-theme="dark"] .post-tags span:nth-child(3),
:root[data-theme="dark"] .article-tags a:nth-child(3),
:root[data-theme="dark"] .tag-cloud a:nth-child(3) {
  border-color: rgba(251, 191, 36, 0.28);
  color: #fde68a;
  background: rgba(251, 191, 36, 0.12);
}

:root[data-theme="dark"] .post-tags span:nth-child(4),
:root[data-theme="dark"] .article-tags a:nth-child(4),
:root[data-theme="dark"] .tag-cloud a:nth-child(4) {
  border-color: rgba(251, 113, 133, 0.28);
  color: #fecdd3;
  background: rgba(251, 113, 133, 0.12);
}

:root[data-theme="dark"] .chip.green {
  color: #a7f3d0;
  border-color: rgba(53, 214, 173, 0.28);
  background: rgba(20, 184, 166, 0.12);
}

:root[data-theme="dark"] .chip.amber {
  color: #fde68a;
  border-color: rgba(251, 191, 36, 0.28);
  background: rgba(251, 191, 36, 0.12);
}

:root[data-theme="dark"] .chip.blue {
  color: #bfdbfe;
  border-color: rgba(96, 165, 250, 0.28);
  background: rgba(59, 130, 246, 0.14);
}

:root[data-theme="dark"] .chip.red {
  color: #fecdd3;
  border-color: rgba(251, 113, 133, 0.3);
  background: rgba(251, 113, 133, 0.12);
}

:root[data-theme="dark"] .field label {
  color: #cbd5e1;
}

:root[data-theme="dark"] .field input,
:root[data-theme="dark"] .field textarea,
:root[data-theme="dark"] .field select,
:root[data-theme="dark"] .search-box input {
  background: rgba(15, 23, 42, 0.76);
  color: var(--text);
}

:root[data-theme="dark"] .editor-toolbar button,
:root[data-theme="dark"] .editor-preview,
:root[data-theme="dark"] .article-preview-frame,
:root[data-theme="dark"] .asset-helper,
:root[data-theme="dark"] .draft-card,
:root[data-theme="dark"] .media-item {
  border-color: rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.66);
}

:root[data-theme="dark"] .editor-toolbar button {
  color: #cbd5e1;
}

:root[data-theme="dark"] .preview-surface p,
:root[data-theme="dark"] .preview-surface li {
  color: #d6deeb;
}

:root[data-theme="dark"] .preview-surface h3,
:root[data-theme="dark"] .preview-surface strong {
  color: #f2f6ff;
}

:root[data-theme="dark"] .preview-surface h3::before {
  background: #6ea2ff;
  box-shadow: 0 0 0 4px rgba(110, 162, 255, 0.12);
}

:root[data-theme="dark"] .preview-surface h3::after {
  background: linear-gradient(90deg, rgba(110, 162, 255, 0.22), rgba(148, 163, 184, 0.22), transparent);
}

:root[data-theme="dark"] .preview-surface u,
:root[data-theme="dark"] .preview-surface .mark {
  background: linear-gradient(180deg, transparent 58%, rgba(183, 245, 61, 0.2) 0);
}

:root[data-theme="dark"] .preview-surface blockquote,
:root[data-theme="dark"] .media-drop {
  color: #e5eefc;
  background: rgba(110, 162, 255, 0.09);
}

:root[data-theme="dark"] .preview-surface :not(pre) > code {
  color: #cfe0ff;
  background: rgba(110, 162, 255, 0.14);
}

:root[data-theme="dark"] .media-item button {
  color: #dbeafe;
  background: rgba(15, 23, 42, 0.88);
}

:root[data-theme="dark"] .field input::placeholder,
:root[data-theme="dark"] .field textarea::placeholder,
:root[data-theme="dark"] .search-box input::placeholder {
  color: #718096;
}

:root[data-theme="dark"] .admin-main {
  background:
    linear-gradient(180deg, rgba(11, 16, 25, 0.96), rgba(15, 23, 36, 0.98)),
    linear-gradient(120deg, rgba(110, 162, 255, 0.12), transparent 38%),
    linear-gradient(90deg, transparent, rgba(183, 245, 61, 0.08));
}

:root[data-theme="dark"] .metric {
  background: rgba(17, 24, 39, 0.82);
}

:root[data-theme="dark"] .table th,
:root[data-theme="dark"] .table td {
  border-bottom-color: rgba(148, 163, 184, 0.16);
}

:root[data-theme="dark"] .x-preview-feed,
:root[data-theme="dark"] .x-preview-detail {
  border-color: rgba(148, 163, 184, 0.2);
  background: rgba(17, 24, 39, 0.78);
}

:root[data-theme="dark"] .x-preview-topbar {
  background: rgba(17, 24, 39, 0.78);
}

:root[data-theme="dark"] .x-preview-topbar,
:root[data-theme="dark"] .x-preview-compose,
:root[data-theme="dark"] .x-post-card {
  border-bottom-color: rgba(148, 163, 184, 0.16);
}

:root[data-theme="dark"] .x-preview-compose {
  background: linear-gradient(135deg, rgba(110, 162, 255, 0.08), rgba(85, 233, 159, 0.06));
}

:root[data-theme="dark"] .x-post-card:hover,
:root[data-theme="dark"] .x-post-card:focus-visible,
:root[data-theme="dark"] .x-post-card.is-selected {
  background: rgba(110, 162, 255, 0.09);
}

:root[data-theme="dark"] .x-preview-detail-text {
  border-color: rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.66);
}

:root[data-theme="dark"] .x-preview-media {
  border-color: rgba(110, 162, 255, 0.2);
  background:
    linear-gradient(135deg, rgba(110, 162, 255, 0.12), rgba(85, 233, 159, 0.08)),
    repeating-linear-gradient(45deg, rgba(148, 163, 184, 0.08) 0 10px, transparent 10px 20px);
}

:root[data-theme="dark"] .x-preview-errors {
  color: #fecdd3;
  border-color: rgba(251, 113, 133, 0.24);
  background: rgba(251, 113, 133, 0.1);
}

@media (max-width: 900px) {
  html,
  body,
  .shell {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .blog-layout,
  .editor-grid,
  .field-row,
  .admin-shell,
  .traffic-grid,
  .x-preview-layout,
  .admin-quick-links,
  .metrics {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: flex;
    justify-content: center;
    padding: 14px 16px;
    border-right: 0;
    border-bottom: 1px solid rgba(17, 24, 39, 0.08);
  }

  .sidebar nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: min(100%, 720px);
  }

  .sidebar a {
    justify-content: center;
    text-align: center;
  }

  .admin-main {
    width: 100%;
    padding: 26px 16px 56px;
  }

  .admin-main > section {
    max-width: 720px;
  }

  .section-title-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .section-title-row > .button-row,
  .section-title-row select,
  .section-title-row .btn {
    width: 100%;
  }

  .panel {
    width: 100%;
    overflow: hidden;
  }

  .x-preview-detail {
    position: static;
  }

  .x-post-card,
  .x-preview-compose {
    grid-template-columns: 38px minmax(0, 1fr);
    padding: 14px;
  }

  .x-avatar {
    width: 36px;
    height: 36px;
  }

  .x-post-body p {
    font-size: 15px;
    word-break: normal;
  }

  .x-post-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .table th,
  .table td {
    min-width: 112px;
  }

  .comments-table th:first-child,
  .comments-table td:first-child {
    min-width: 190px;
  }

  .comments-table th:nth-child(3),
  .comments-table td:nth-child(3) {
    min-width: 220px;
    white-space: normal;
  }

  .traffic-section {
    text-align: left;
  }

  .traffic-card {
    width: 100%;
  }

  .editor-toolbar,
  .button-row {
    justify-content: center;
  }

  .button-row .btn {
    flex-basis: min(100%, 220px);
  }

  .post-aside {
    position: static;
  }

  .page-head,
  .post-row {
    grid-template-columns: 1fr;
    display: grid;
  }

  .page-head {
    align-items: start;
    padding: 42px 0 22px;
  }

  .visitor-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-width: 0;
    width: 100%;
  }

  .page-head::before {
    top: 24px;
    width: 96px;
    height: 4px;
  }

  .blog-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .search-box {
    min-width: 0;
    width: 100%;
  }

  .page-title,
  .article h1 {
    font-size: 34px;
  }

  .page-copy {
    font-size: 15px;
    line-height: 1.68;
  }

  .article-meta-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .article-meta-side,
  .article-actions {
    justify-items: start;
    justify-content: flex-start;
  }

  .article {
    padding: 24px;
  }

  .inline-toc {
    margin: 24px 0 30px;
    padding: 14px;
    border-radius: 18px;
  }

  .inline-toc h2 {
    margin-bottom: 12px;
    font-size: 14px;
  }

  .inline-toc .toc-list,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .toc-list {
    gap: 7px;
  }

  .toc-list a {
    min-height: 38px;
    padding: 9px 10px 9px 40px;
    border-radius: 13px;
    font-size: 13px;
    line-height: 1.34;
    overflow-wrap: anywhere;
  }

  .toc-list a::before {
    left: 10px;
    width: 22px;
    height: 22px;
    font-size: 11px;
  }

  .related-card {
    min-height: 0;
  }

  .post-list .post-row::after {
    display: none;
  }

  .container {
    width: 100%;
    max-width: 1120px;
    padding: 0 16px;
  }

  .topbar {
    align-items: center;
    flex-direction: column;
    gap: 10px;
    padding: 12px 16px;
    text-align: center;
  }

  .topbar .brand {
    justify-content: center;
    width: 100%;
  }

  .nav {
    width: 100%;
    justify-content: center;
  }

  [data-tooltip]::after,
  [data-tooltip]::before {
    display: none;
  }

  .topic-tabs {
    flex-wrap: wrap;
    overflow: visible;
    padding-bottom: 0;
  }

  .post-row {
    min-height: 0;
    padding: 24px 20px;
  }

  .post-row h2 {
    font-size: 24px;
  }

  .post-tags,
  .article-tags,
  .tag-cloud {
    gap: 7px;
  }

  .image-lightbox {
    padding: 12px;
  }

  .image-lightbox-panel {
    height: calc(100vh - 24px);
    border-radius: var(--radius-lg);
  }

  .image-lightbox-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .image-lightbox-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .image-lightbox-actions button,
  .image-lightbox-actions span {
    min-width: 34px;
    height: 32px;
    padding: 0 10px;
  }

  .image-lightbox-stage {
    padding: 18px;
  }
}

@media (max-width: 520px) {
  .inline-toc {
    padding: 12px;
  }

  .toc-list a {
    padding-right: 9px;
  }

  .topbar {
    padding: 12px;
  }

  .nav {
    gap: 6px;
  }

  .nav a {
    padding: 7px 10px;
  }

  .brand {
    max-width: 100%;
  }

  .brand span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .theme-switcher button {
    width: 32px;
  }

  .language-switcher a {
    min-width: 64px;
    padding: 0 10px;
  }

  .blog-toolbar {
    padding: 10px;
    border-radius: var(--radius-md);
  }

  .side-stack {
    gap: 10px;
  }

  .panel {
    padding: 18px;
  }

  .admin-main {
    padding: 20px 12px 48px;
  }

  .admin-main > section {
    max-width: 100%;
  }

  .sidebar {
    padding: 12px;
  }

  .sidebar nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metric {
    text-align: center;
  }

  .metric strong {
    font-size: 30px;
  }

  .editor-toolbar button {
    flex: 1 1 72px;
  }

  .button-row .btn {
    flex-basis: 100%;
  }

  .traffic-section h3 {
    text-align: center;
  }
}

/* Final override for cached/mobile dark TOC rendering. */
:root[data-theme="dark"] .article .inline-toc .toc-list a,
:root[data-theme="dark"] .article .toc-list a,
:root[data-theme="dark"] .preview-surface .inline-toc .toc-list a,
:root[data-theme="dark"] .article-preview-body .inline-toc .toc-list a {
  color: #f8fafc !important;
  border-color: rgba(148, 163, 184, 0.28) !important;
  background: #111827 !important;
}

:root[data-theme="dark"] .article .inline-toc .toc-list a::before,
:root[data-theme="dark"] .article .toc-list a::before,
:root[data-theme="dark"] .preview-surface .inline-toc .toc-list a::before,
:root[data-theme="dark"] .article-preview-body .inline-toc .toc-list a::before {
  color: #0f172a !important;
  background: #b7f53d !important;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .article .inline-toc .toc-list a,
  :root:not([data-theme="light"]) .article .toc-list a,
  :root:not([data-theme="light"]) .preview-surface .inline-toc .toc-list a,
  :root:not([data-theme="light"]) .article-preview-body .inline-toc .toc-list a {
    color: #f8fafc !important;
    border-color: rgba(148, 163, 184, 0.28) !important;
    background: #111827 !important;
  }

  :root:not([data-theme="light"]) .article .inline-toc .toc-list a::before,
  :root:not([data-theme="light"]) .article .toc-list a::before,
  :root:not([data-theme="light"]) .preview-surface .inline-toc .toc-list a::before,
  :root:not([data-theme="light"]) .article-preview-body .inline-toc .toc-list a::before {
    color: #0f172a !important;
    background: #b7f53d !important;
  }
}
