:root {
  color-scheme: dark;
  --bg: #0d222b;
  --ink: #f1f1ec;
  --muted: #8fa4ad;
  --link: #78c7f7;
  --visited: #a68fc2;
  --rule: #1e3a46;
  --field: #0f2a35;
  --field-border: #2a4a57;
  --field-focus: #3d6577;
  --disabled: #4a606b;
  --danger: #e0736b;
  --content-max: 720px;
  --header-max: 960px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 15.5px;
  line-height: 1.55;
  font-weight: 400;
}

* { box-sizing: border-box; }
html {
  min-width: 0;
  background: var(--bg);
  scrollbar-gutter: stable;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  min-width: 0;
  color: var(--ink);
  background: var(--bg);
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
body a { color: var(--link); text-decoration: none; }
body a:hover { text-decoration: underline; }
body a:visited { color: var(--visited); }
button, input { font: inherit; }
img, video { display: block; max-width: 100%; }
.ui-icon { display: block; width: 20px; height: 20px; }
h1, h2, p, ol, ul { margin-top: 0; }
.mono { font-family: "SFMono-Regular", ui-monospace, Menlo, Consolas, "Liberation Mono", monospace; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  left: 8px;
  top: -60px;
  z-index: 100;
  padding: 6px 9px;
  color: var(--ink) !important;
  background: var(--field);
  border: 1px solid var(--field-border);
}
.skip-link:focus { top: 8px; }

.content-shell {
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: 28px;
}
.header-shell {
  width: 100%;
  max-width: var(--header-max);
  margin-inline: auto;
  padding-inline: 28px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding-top: 16px;
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
}
.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 7px 20px;
  padding-bottom: 14px;
}
.brand { font-size: 17px; font-weight: 600; letter-spacing: .01em; }
body a.brand, body a.brand:visited { color: var(--ink); }
body a.brand:hover { text-decoration: none; }
.nav > a:not(.brand):visited { color: var(--link); }
.nav > a[aria-current] { text-decoration: underline; text-underline-offset: 3px; }
.site-search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.site-search-field {
  position: relative;
  display: flex;
  min-width: 0;
}
.field {
  min-width: 0;
  padding: 5px 9px;
  color: var(--ink);
  background: var(--field);
  border: 1px solid var(--field-border);
  border-radius: 4px;
  font-size: 14px;
}
.site-search-field .field { padding-right: 34px; }
.search-clear {
  position: absolute;
  right: 3px;
  top: 50%;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  padding: 0;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 3px;
  cursor: pointer;
  transform: translateY(-50%);
}
.search-clear[hidden] { display: none; }
.search-clear:hover { color: var(--ink); }
.search-clear:focus-visible {
  color: var(--ink);
  outline: 1px solid var(--link);
  outline-offset: -2px;
}
.search-clear .ui-icon { width: 14px; height: 14px; }
.search-clear-enhanced .field::-webkit-search-cancel-button {
  appearance: none;
}
.field::placeholder { color: var(--muted); opacity: .85; }
.field:focus { outline: 1px solid transparent; border-color: var(--field-focus); }
.btn {
  padding: 5px 12px;
  color: var(--link);
  background: transparent;
  border: 1px solid var(--field-border);
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover, .btn:focus-visible { border-color: var(--field-focus); }

main.content-shell { min-height: calc(100vh - 116px); padding-top: 10px; padding-bottom: 44px; }
.rule { margin: 0; border: 0; border-top: 1px solid var(--rule); }
.search-note { margin: 2px 0 6px; color: var(--muted); font-size: 14px; }
.search-count { white-space: nowrap; }
.empty-state { margin-top: 28px; color: var(--muted); }
.muted, .small-note { color: var(--muted); }

.posts { margin: 0; padding: 0; list-style: none; }
.post { padding: 20px 0; }
.post + .post { border-top: 1px solid var(--rule); }
.post-row { display: flex; gap: 12px; }
.post-index { flex: 0 0 auto; padding-top: 3px; color: var(--muted); font-size: 14px; }
.post-main { min-width: 0; flex: 1 1 auto; }
.post-title { margin: 0; font-size: 16.5px; font-weight: 400; line-height: 1.42; }
.line1 {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.post-meta { margin-top: 5px; color: var(--muted); font-size: 14px; }
.post-meta a.uname, .post-meta a.uname:visited,
.detail-meta a.uname, .detail-meta a.uname:visited { color: var(--muted); }
.post-meta time, .detail-meta time { color: var(--muted); }
.media-thumbs { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 11px; }
.thumb {
  position: relative;
  display: block;
  width: 110px;
  height: 110px;
  overflow: hidden;
  background: var(--field);
  border-radius: 3px;
}
.thumb img, .thumb .media-placeholder { width: 100%; height: 100%; object-fit: cover; }
.media-placeholder {
  display: block;
  background: #2d424b;
}
.play-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  padding-left: 2px;
  color: #eef4f6;
  background: rgb(5 13 17 / 68%);
  border-radius: 50%;
  font-size: 11px;
  transform: translate(-50%, -50%);
}

.authors { margin: 0; padding: 0; list-style: none; }
.author-row { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; }
.author-row + .author-row { border-top: 1px solid var(--rule); }
.avatar {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  color: #eef4f6 !important;
  border-radius: 5px;
  font-size: 16px;
  font-weight: 600;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
body a.avatar:hover { text-decoration: none; }
.avatar-tone-0 { background: #40606f; }
.avatar-tone-1 { background: #3d5f60; }
.avatar-tone-2 { background: #5f5a52; }
.avatar-tone-3 { background: #545d4a; }
.avatar-tone-4 { background: #5b4f5b; }
.avatar-tone-5 { background: #4a5760; }
.author-info { min-width: 0; flex: 1 1 auto; }
.author-ident { line-height: 1.4; }
.author-ident .uname { margin-left: 8px; color: var(--muted); }
.author-ident a.uname:visited { color: var(--muted); }
.author-bio { margin-top: 2px; color: var(--muted); font-size: 14px; text-wrap: pretty; }
.author-count { margin-left: auto; padding-left: 12px; color: var(--muted); font-size: 14px; white-space: nowrap; }

.profile { padding: 8px 0 4px; }
.profile-head { display: flex; align-items: center; gap: 14px; }
.profile-avatar { width: 52px; height: 52px; border-radius: 6px; font-size: 19px; }
.profile-name { margin: 0; color: var(--ink); font-size: 19px; font-weight: 600; }
.profile-uname { margin-top: 1px; color: var(--muted); font-size: 14px; }
.profile-bio { max-width: 60ch; margin: 12px 0 0; color: var(--ink); white-space: pre-line; text-wrap: pretty; }
.profile-count { margin-top: 6px; color: var(--muted); font-size: 14px; }
.profile-rule { margin-top: 18px; }

.post-detail { padding-top: 4px; }
.post-body {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.68;
  white-space: pre-line;
  text-wrap: pretty;
}
.detail-meta { margin-top: 20px; color: var(--muted); font-size: 14px; }
.detail-media { margin-top: 18px; }
.detail-media-trigger {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  color: var(--ink);
  background: #071318;
  border-radius: 5px;
}
body a.detail-media-trigger:visited { color: var(--ink); }
body a.detail-media-trigger:hover { text-decoration: none; }
.detail-media.single .detail-media-trigger > img {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  background: #071318;
}
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.detail-grid .detail-asset { min-width: 0; }
.detail-grid .detail-media-trigger {
  height: 100%;
  aspect-ratio: 1 / 1;
}
.detail-grid .detail-media-trigger > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #071318;
}
.detail-play-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: #fff;
  background: rgb(3 12 16 / 72%);
  border: 1px solid rgb(255 255 255 / 28%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.detail-play-mark .ui-icon { width: 22px; height: 22px; margin-left: 2px; }
.detail-media-trigger:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; }

html.media-dialog-open { overflow: hidden; }
.media-dialog {
  --media-dialog-safe-top: env(safe-area-inset-top, 0px);
  --media-dialog-safe-right: env(safe-area-inset-right, 0px);
  --media-dialog-safe-bottom: env(safe-area-inset-bottom, 0px);
  --media-dialog-safe-left: env(safe-area-inset-left, 0px);
  --media-dialog-inline-gap: 80px;
  --media-dialog-block-gap: 12px;
  --media-dialog-pad-top: max(var(--media-dialog-block-gap), var(--media-dialog-safe-top));
  --media-dialog-pad-right: max(var(--media-dialog-inline-gap), var(--media-dialog-safe-right));
  --media-dialog-pad-bottom: max(var(--media-dialog-block-gap), var(--media-dialog-safe-bottom));
  --media-dialog-pad-left: max(var(--media-dialog-inline-gap), var(--media-dialog-safe-left));
  inset: 0;
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  color: #fff;
  background: rgb(0 0 0 / 92%);
  border: 0;
}
.media-dialog:not([open]) { display: none; }
.media-dialog::backdrop { background: rgb(0 0 0 / 62%); }
.media-dialog[open] { display: block; }
.media-dialog-shell {
  position: relative;
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  padding:
    var(--media-dialog-pad-top)
    var(--media-dialog-pad-right)
    var(--media-dialog-pad-bottom)
    var(--media-dialog-pad-left);
}
.media-dialog-stage {
  min-width: 0;
  min-height: 0;
  align-self: stretch;
  justify-self: stretch;
}
.media-dialog-slide {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
}
.media-dialog-slide[hidden] { display: none; }
.media-dialog-frame {
  position: relative;
  display: flex;
  width: fit-content;
  height: fit-content;
  max-width: calc(100vw - var(--media-dialog-pad-left) - var(--media-dialog-pad-right));
  max-height: calc(100dvh - var(--media-dialog-pad-top) - var(--media-dialog-pad-bottom));
  align-items: center;
  justify-content: center;
}
.media-dialog-frame > img {
  width: auto;
  height: auto;
  max-width: calc(100vw - var(--media-dialog-pad-left) - var(--media-dialog-pad-right));
  max-height: calc(100dvh - var(--media-dialog-pad-top) - var(--media-dialog-pad-bottom));
  object-fit: contain;
}
.media-dialog-button {
  position: fixed;
  z-index: 3;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  color: #fff;
  background: rgb(18 25 29 / 78%);
  border: 1px solid rgb(255 255 255 / 16%);
  border-radius: 50%;
  cursor: pointer;
}
.media-dialog-button:hover, .media-dialog-button:focus-visible {
  background: rgb(42 53 59 / 92%);
  outline: none;
}
.media-dialog-button:focus-visible { box-shadow: 0 0 0 2px var(--link); }
.media-dialog-button[hidden] { display: none; }
.media-dialog-close {
  left: max(14px, var(--media-dialog-safe-left));
  top: max(14px, var(--media-dialog-safe-top));
}
.media-dialog-nav {
  top: 50%;
  transform: translateY(-50%);
}
.media-dialog-previous { left: max(18px, var(--media-dialog-safe-left)); }
.media-dialog-next { right: max(18px, var(--media-dialog-safe-right)); }

.dialog-video-player {
  position: relative;
  display: inline-flex;
  width: fit-content;
  height: fit-content;
  max-width: calc(100vw - var(--media-dialog-pad-left) - var(--media-dialog-pad-right));
  max-height: calc(100dvh - var(--media-dialog-pad-top) - var(--media-dialog-pad-bottom));
  overflow: hidden;
  align-items: center;
  justify-content: center;
  background: #000;
}
.dialog-video-player video {
  width: auto;
  height: auto;
  max-width: calc(100vw - var(--media-dialog-pad-left) - var(--media-dialog-pad-right));
  max-height: calc(100dvh - var(--media-dialog-pad-top) - var(--media-dialog-pad-bottom));
  object-fit: contain;
  background: #000;
}
.dialog-video-controls {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  display: grid;
  gap: 4px;
  padding: 52px 12px 10px;
  opacity: 0;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent, rgb(0 0 0 / 78%));
  transform: translateY(6px);
  transition: opacity .16s ease, transform .16s ease;
}
.dialog-video-controls[hidden] { display: none; }
.dialog-video-player.controls-keyboard-focus .dialog-video-controls {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
@media (hover: hover) and (pointer: fine) {
  .dialog-video-player:hover .dialog-video-controls {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
}
.video-progress {
  --video-progress: 0%;
  appearance: none;
  width: 100%;
  min-width: 0;
  height: 16px;
  margin: 0;
  background: transparent;
  cursor: pointer;
}
.video-progress:disabled { cursor: not-allowed; opacity: .55; }
.video-progress::-webkit-slider-runnable-track {
  height: 3px;
  background: linear-gradient(
    to right,
    #fff 0 var(--video-progress),
    rgb(255 255 255 / 42%) var(--video-progress) 100%
  );
  border-radius: 999px;
}
.video-progress::-webkit-slider-thumb {
  width: 6px;
  height: 6px;
  margin-top: -1.5px;
  appearance: none;
  background: #fff;
  border: 0;
  border-radius: 50%;
  transition: width .12s ease, height .12s ease, margin .12s ease;
}
.video-progress:focus-visible::-webkit-slider-thumb,
.video-progress:active::-webkit-slider-thumb {
  width: 12px;
  height: 12px;
  margin-top: -4.5px;
}
@media (hover: hover) and (pointer: fine) {
  .video-progress:hover::-webkit-slider-thumb {
    width: 12px;
    height: 12px;
    margin-top: -4.5px;
  }
}
.video-progress::-moz-range-track {
  height: 3px;
  background: linear-gradient(
    to right,
    #fff 0 var(--video-progress),
    rgb(255 255 255 / 42%) var(--video-progress) 100%
  );
  border: 0;
  border-radius: 999px;
}
.video-progress::-moz-range-thumb {
  width: 6px;
  height: 6px;
  background: #fff;
  border: 0;
  border-radius: 50%;
  transition: width .12s ease, height .12s ease;
}
.video-progress:focus-visible::-moz-range-thumb,
.video-progress:active::-moz-range-thumb {
  width: 12px;
  height: 12px;
}
@media (hover: hover) and (pointer: fine) {
  .video-progress:hover::-moz-range-thumb {
    width: 12px;
    height: 12px;
  }
}
.dialog-video-control-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.dialog-video-button {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  place-items: center;
  padding: 0;
  color: #fff;
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}
.dialog-video-button:hover, .dialog-video-button:focus-visible {
  background: rgb(255 255 255 / 14%);
  outline: none;
}
@media (hover: none) and (pointer: coarse) {
  .media-dialog-nav { display: none !important; }
  .media-dialog-stage { touch-action: pan-y; }
  .video-progress { height: 44px; }
  .dialog-video-button { width: 44px; height: 44px; flex-basis: 44px; }
  .dialog-video-player.controls-visible .dialog-video-controls {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
}
.video-time {
  color: #fff;
  font-size: 12px;
  white-space: nowrap;
}
.dialog-video-control-spacer { flex: 1 1 auto; }
.detail-placeholder {
  display: grid;
  width: 100%;
  min-height: 220px;
  place-items: center;
  color: var(--muted);
  background: var(--field);
  border-radius: 5px;
}
.detail-media-trigger .detail-placeholder { color: var(--muted); }
.detail-grid .detail-placeholder { height: 100%; min-height: 0; }
.author-recent-posts { margin-top: 34px; }
.section-label {
  margin: 0 0 2px;
  padding-bottom: 6px;
  color: var(--muted);
  border-bottom: 1px solid var(--rule);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .04em;
}

.list-actions {
  margin: 26px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  font-size: 14px;
}
.pager {
  display: flex;
  gap: 22px;
  align-items: baseline;
  color: var(--muted);
}
.pager .disabled { color: var(--disabled); }

.site-footer { color: var(--muted); border-top: 1px solid var(--rule); font-size: 13px; }
.footer-inner { display: flex; min-height: 54px; align-items: center; justify-content: space-between; gap: 18px; }
.footer-inner > span, .footer-inner nav { flex: 0 0 auto; }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 12px; }
.footer-inner a, .footer-inner a:visited { color: var(--muted); }

.prose-page { width: 100%; max-width: 46rem; padding-top: 5px; }
.prose-page h1 { margin: 0 0 18px; font-size: 22px; }
.prose-page h2 { margin: 30px 0 10px; padding-bottom: 6px; border-bottom: 1px solid var(--rule); font-size: 16px; }
.prose-page p,
.prose-page li { line-height: 1.75; text-wrap: wrap; }
.prose-page p { max-width: none; margin: 0 0 15px; }
.prose-page ul { margin: 0 0 18px; padding-left: 1.4em; }
.prose-page li + li { margin-top: 7px; }
.prose-page code { overflow-wrap: anywhere; }
.policy-meta { margin-top: -10px !important; color: var(--muted); font-size: 13px; }
.contact-channel {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: baseline;
  padding: 12px 14px;
  background: var(--field);
  border-left: 2px solid var(--link);
}
.contact-channel span:first-child { color: var(--muted); }
.contact-channel a { font-weight: 600; }
.api-page p { max-width: none; }
.api-warning {
  padding: 10px 12px;
  color: var(--muted);
  background: var(--field);
  border-left: 2px solid var(--danger);
}
.api-actions { margin-top: 18px; }
.api-docs-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
}
body a.api-docs-link,
body a.api-docs-link:visited { color: var(--ink); }
.api-inline-code,
.api-path,
.api-endpoint p code,
.api-conventions code {
  font-family: "SFMono-Regular", ui-monospace, Menlo, Consolas, "Liberation Mono", monospace;
}
.api-code {
  max-width: 100%;
  margin: 10px 0 0;
  padding: 12px 14px;
  overflow-x: auto;
  color: var(--ink);
  background: var(--field);
  border: 1px solid var(--rule);
  font: 13px/1.55 "SFMono-Regular", ui-monospace, Menlo, Consolas, "Liberation Mono", monospace;
}
.api-endpoints {
  margin: 0;
  padding: 0;
  list-style: none;
}
.api-endpoint,
.api-convention {
  border-bottom: 1px solid var(--rule);
}
.api-endpoint { padding: 14px 0; }
.api-endpoint-heading {
  display: flex;
  min-width: 0;
  align-items: baseline;
  gap: 10px;
}
.api-method {
  flex: 0 0 auto;
  color: var(--link);
  font: 600 12px/1.5 "SFMono-Regular", ui-monospace, Menlo, Consolas, "Liberation Mono", monospace;
  letter-spacing: .04em;
}
.api-path {
  min-width: 0;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.api-endpoint p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}
.api-conventions {
  margin: 0;
  padding: 0;
}
.api-convention {
  display: grid;
  grid-template-columns: minmax(110px, 140px) minmax(0, 1fr);
  gap: 18px;
  padding: 12px 0;
}
.api-convention dt,
.api-convention dd { margin: 0; }
.api-convention dt {
  color: var(--link);
  font: 600 13px/1.55 "SFMono-Regular", ui-monospace, Menlo, Consolas, "Liberation Mono", monospace;
}
.api-convention dt code {
  color: inherit;
  font: inherit;
}
.api-convention dd {
  min-width: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}
.api-convention dd code { color: var(--ink); }
.api-convention dd code.api-status-danger { color: var(--danger); }
.error-page {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 44px;
  align-items: start;
  width: 100%;
  padding-top: clamp(74px, 18vh, 160px);
}
.error-code {
  margin: 0;
  color: var(--muted);
  font: 64px/1 "SFMono-Regular", ui-monospace, Menlo, Consolas, "Liberation Mono", monospace;
  letter-spacing: .02em;
}
.error-content { min-width: 0; }
.error-page h1 { margin: 0 0 12px; font-size: 22px; line-height: 1.4; }
.error-detail { margin: 0; color: var(--muted); }
.error-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  margin-top: 24px;
  font-size: 14px;
}
.error-primary-action { display: inline-block; }
body a.error-primary-action,
body a.error-primary-action:visited { color: var(--ink); }
.error-secondary-action:visited { color: var(--link); }
.error-recovery {
  margin: 24px 0 0;
  padding-top: 18px;
  color: var(--muted);
  border-top: 1px solid var(--rule);
  font-size: 14px;
}
.primary-button { min-height: 36px; color: var(--ink); }
.primary-button:disabled { opacity: .65; cursor: wait; }

@media (max-width: 640px) {
  .content-shell, .header-shell { padding-inline: 15px; }
  .site-search { width: 100%; margin-top: 4px; margin-left: 0; }
  .site-search-field { flex: 1 1 auto; }
  .site-search .field { width: 100%; }
  main.content-shell { padding-bottom: 34px; }
  .error-page {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding-top: 64px;
  }
  .error-code { font-size: 52px; }
  .api-endpoint-heading { align-items: flex-start; }
  .api-convention {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }
  .thumb { width: 80px; height: 80px; }
  .detail-grid { gap: 6px; }
  .media-dialog {
    --media-dialog-inline-gap: 8px;
    --media-dialog-block-gap: 8px;
  }
  .media-dialog-close {
    left: max(8px, var(--media-dialog-safe-left));
    top: max(8px, var(--media-dialog-safe-top));
  }
  .dialog-video-controls { padding: 46px 8px 8px; }
  .author-count { font-size: 14px; }
  .footer-inner { flex-wrap: wrap; gap: 4px 18px; padding-block: 13px; }
}

@media (max-width: 390px) {
  .author-row { gap: 10px; }
  .author-ident .uname { margin-left: 5px; }
  .author-count { padding-left: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
