/* Multi-page canvas shell (2026 rework). Layered on top of canvas.css.
   See docs/REDESIGN.md. */

/* ---- Top bar: brand (home) · page nav · account+language ---- */
.site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0 auto;
  position: relative;
  isolation: isolate;
}
.site-nav a {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  font-size: 13px;
  font-weight: 600;
  color: var(--slate-500, #64748b);
  text-decoration: none;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  transition: color .28s cubic-bezier(.22, 1, .36, 1), background .22s ease;
  white-space: nowrap;
}
.site-nav a:hover { color: var(--slate-900, #0f172a); background: rgba(15, 23, 42, .05); }
.site-nav a.is-active {
  color: var(--navy-700, #1c5ca8);
  background: transparent;
}
.site-nav a.is-active:hover { background: transparent; }
.site-nav-indicator {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  width: 0;
  height: 0;
  border-radius: 999px;
  pointer-events: none;
  opacity: 0;
  background: rgba(28, 92, 168, .10);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45);
  transform: translate3d(0, 0, 0);
  will-change: transform, width, height;
}
.site-nav.is-ready .site-nav-indicator {
  opacity: 1;
  transition:
    transform .38s cubic-bezier(.22, 1, .36, 1),
    width .38s cubic-bezier(.22, 1, .36, 1),
    height .38s cubic-bezier(.22, 1, .36, 1),
    opacity .18s ease;
}

/* A brief entry fade masks the canvas re-layout that happens on page changes. */
.world {
  opacity: 1;
  transition: opacity .28s cubic-bezier(.22, 1, .36, 1);
}
body.is-page-entering .world { opacity: .42; }

@media (prefers-reduced-motion: reduce) {
  .site-nav a,
  .site-nav.is-ready .site-nav-indicator,
  .world { transition: none; }
}
.brand[ data-home ], [data-home] { cursor: pointer; }

.account-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(160deg, #2f6fd0, #1c5ca8);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(3, 16, 31, .25);
}
.account-btn:hover { filter: brightness(1.06); }

/* ---- Viewport: no more drag-to-pan ---- */
.viewport { cursor: default; }
.viewport.is-dragging { cursor: default; }

/* ---- Per-page visibility: only the active page's cards render ---- */
.plane-card[data-page] { display: none; }
body[data-page="main"]       .plane-card[data-page="main"],
body[data-page="history"]    .plane-card[data-page="history"],
body[data-page="tutorial"]   .plane-card[data-page="tutorial"],
body[data-page="forum"]      .plane-card[data-page="forum"],
body[data-page="tags"]       .plane-card[data-page="tags"],
body[data-page="replica"]    .plane-card[data-page="replica"],
body[data-page="statistics"] .plane-card[data-page="statistics"],
body[data-page="docs"]       .plane-card[data-page="docs"] { display: block; }

body[data-page="main"] .plane-card.home-card[data-page="main"] {
  display: flex;
}

/* ---- HISTORY: one release library, four independent version streams ---- */
.plane-card.history-card {
  --history-product-slot-height: 680px;
  --history-release-slot-height: 112px;
  width: min(1280px, 92vw);
  /* The release archive keeps a stable canvas footprint as versions accrue. */
  height: 3600px;
  padding: 68px 60px 54px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: rgba(28, 92, 168, .42) transparent;
  scrollbar-width: thin;
  color: var(--slate-700, #334155);
  background: #ffffff;
  text-align: left;
}

.history-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  padding-bottom: 42px;
  border-bottom: 1px solid rgba(148, 163, 184, .28);
}

.history-hero .card-tag {
  align-self: start;
  margin: 4px 0 0;
  letter-spacing: .03em;
  text-transform: none;
}

.history-hero-copy h2 {
  max-width: 680px;
  margin: 0 0 13px;
  color: var(--slate-900, #0f172a);
  font-size: clamp(36px, 4.1vw, 54px);
  line-height: 1.04;
  letter-spacing: -.045em;
}

.history-hero-copy p {
  max-width: 730px;
  margin: 0;
  color: var(--slate-500, #64748b);
  font-size: 17px;
  line-height: 1.62;
}

.history-updated {
  max-width: 180px;
  margin: 0 !important;
  color: var(--slate-500, #64748b);
  font-size: 12px !important;
  line-height: 1.42 !important;
  text-align: right;
}

.history-product-grid {
  display: grid;
  grid-auto-rows: var(--history-product-slot-height);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
}

.history-product {
  display: flex;
  box-sizing: border-box;
  min-height: 0;
  height: var(--history-product-slot-height);
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  padding: 42px 38px 0 0;
}

.history-product:nth-child(odd) {
  padding-right: 46px;
  border-right: 1px solid rgba(148, 163, 184, .22);
}

.history-product:nth-child(even) {
  padding-left: 46px;
}

.history-product:nth-child(n + 3) {
  margin-top: 0;
  padding-top: 42px;
  border-top: 1px solid rgba(148, 163, 184, .22);
}

.history-product-head {
  display: grid;
  flex: 0 0 auto;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 15px;
  align-items: center;
  margin-bottom: 23px;
}

.history-product-icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
}

.history-product-icon-official,
.history-product-icon-official svg {
  width: 58px;
  height: 58px;
  display: block;
}

.history-product-icon-official svg {
  filter: drop-shadow(0 9px 16px rgba(8, 20, 40, .16));
}

.history-product-name {
  min-width: 0;
}

.history-product-name h3 {
  margin: 0 0 4px;
  color: var(--slate-900, #0f172a);
  font-size: 22px;
  line-height: 1.12;
  letter-spacing: -.025em;
}

.history-product-name p {
  margin: 0 !important;
  color: var(--slate-500, #64748b);
  font-size: 12px !important;
  line-height: 1.4 !important;
}

.history-product-source {
  display: inline-flex;
  margin-top: 7px;
  color: var(--navy-700, #1c5ca8);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
}

.history-product-source:hover {
  color: var(--slate-900, #0f172a);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.history-current {
  display: grid;
  justify-items: end;
  gap: 2px;
  color: var(--slate-500, #64748b);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .07em;
  text-align: right;
  text-transform: uppercase;
}

.history-current strong {
  color: var(--navy-700, #1c5ca8);
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
}

.history-releases {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding-right: 10px;
  border-top: 1px solid rgba(148, 163, 184, .25);
  overscroll-behavior: contain;
  scrollbar-color: rgba(28, 92, 168, .35) transparent;
  scrollbar-width: thin;
}

.history-release {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px 18px;
  align-items: start;
  min-height: var(--history-release-slot-height);
  padding: 20px 0;
  border-bottom: 1px solid rgba(148, 163, 184, .2);
}

.history-release-copy {
  min-width: 0;
}

.history-release-title {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}

.history-release-title strong {
  color: var(--slate-900, #0f172a);
  font-size: 16px;
  line-height: 1.2;
}

.history-release-badge,
.history-release-current,
.history-release-stage {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .04em;
  line-height: 1;
  text-transform: uppercase;
}

.history-release-badge {
  color: var(--slate-500, #64748b);
  background: rgba(226, 232, 240, .7);
}

.history-release-stage.is-alpha {
  color: #b91c1c;
  background: #fee2e2;
}

.history-release-stage.is-beta {
  color: #a16207;
  background: #fef3c7;
}

.history-release-stage.is-release {
  color: #15803d;
  background: #dcfce7;
}

.history-release-current {
  color: var(--navy-700, #1c5ca8);
  background: rgba(219, 234, 254, .82);
}

.history-release-date {
  margin: 6px 0 0 !important;
  color: var(--slate-500, #64748b);
  font-size: 12px !important;
  line-height: 1.4 !important;
}

.history-release-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 10px;
  margin-top: 9px;
  color: var(--slate-600, #475569);
  font-size: 12px;
  line-height: 1.45;
}

.history-release-meta span + span::before {
  margin-right: 10px;
  color: var(--slate-300, #cbd5e1);
  content: "•";
}

.history-release-contents {
  margin: 9px 0 0 !important;
  color: var(--slate-500, #64748b);
  font-size: 12px !important;
  line-height: 1.5 !important;
}

.history-release-changelog,
.history-empty-changelog {
  margin: 11px 0 0;
  padding-left: 18px;
  color: var(--slate-600, #475569);
  font-size: 12px;
  line-height: 1.5;
}

.history-release-changelog li,
.history-empty-changelog li {
  margin: 3px 0;
  padding-left: 2px;
}

.history-release-changelog li::marker,
.history-empty-changelog li::marker {
  color: var(--navy-700, #1c5ca8);
}

.history-release-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 11px;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(145deg, #22344f, #070d18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 7px 14px rgba(8, 20, 40, .16);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.history-release-action:hover {
  color: #fff;
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.history-release-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.history-release-source {
  color: var(--navy-700, #1c5ca8);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.history-release-source:hover {
  color: var(--slate-900, #0f172a);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.history-empty,
.history-loading,
.history-noscript {
  margin: 0 !important;
  color: var(--slate-500, #64748b);
  font-size: 14px !important;
  line-height: 1.58 !important;
}

.history-empty {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 20px 0 1px;
  border-top: 1px solid rgba(148, 163, 184, .25);
  overscroll-behavior: contain;
}

.history-empty p {
  margin: 0 !important;
}

.history-loading {
  grid-column: 1 / -1;
  padding: 42px 0 0;
}

@media (max-width: 900px) {
  .plane-card.history-card { --history-product-slot-height: 650px; width: min(820px, 92vw); padding: 54px 38px 42px; }
  .history-hero { grid-template-columns: auto minmax(0, 1fr); }
  .history-updated { grid-column: 2; max-width: none; text-align: left; }
  .history-product { padding-right: 28px; }
  .history-product:nth-child(odd) { padding-right: 30px; }
  .history-product:nth-child(even) { padding-left: 30px; }
}

@media (max-width: 600px) {
  .plane-card.history-card { --history-product-slot-height: 620px; width: min(620px, 92vw); padding: 42px 22px 32px; }
  .history-hero { gap: 16px; padding-bottom: 30px; }
  .history-hero .card-tag { grid-column: 1 / -1; }
  .history-hero-copy h2 { font-size: 36px; }
  .history-hero-copy p { font-size: 15px; }
  .history-updated { grid-column: 1 / -1; font-size: 11px !important; }
  .history-product-grid { grid-template-columns: 1fr; }
  .history-product,
  .history-product:nth-child(odd),
  .history-product:nth-child(even) { padding-right: 0; padding-left: 0; border-right: 0; }
  .history-product:nth-child(n + 2) { margin-top: 0; padding-top: 30px; border-top: 1px solid rgba(148, 163, 184, .22); }
  .history-product-head { grid-template-columns: 50px minmax(0, 1fr); gap: 12px; }
  .history-product-icon,
  .history-product-icon-official,
  .history-product-icon-official svg { width: 50px; height: 50px; }
  .history-current { grid-column: 2; justify-items: start; text-align: left; }
  .history-product-name h3 { font-size: 20px; }
  .history-release { grid-template-columns: 1fr; gap: 13px; }
  .history-release-actions { align-items: flex-start; justify-self: start; }
}

/* ---- Focus-on-click directional arrows ---- */
.focus-arrows { position: absolute; inset: 0; pointer-events: none; z-index: 40; opacity: 0; transition: opacity .18s; }
.focus-arrows.is-open { opacity: 1; }
.focus-arrow {
  position: absolute;
  width: 84px; height: 84px;
  margin: -42px 0 0 -42px;           /* center on its fixed viewport point */
  display: none;
  align-items: center; justify-content: center;
  padding: 0;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(145deg, #22344f 0%, #070d18 100%);
  border: 1px solid rgba(202, 224, 255, .13);
  border-radius: 22px;
  box-shadow: 0 15px 30px rgba(3, 16, 31, .38), inset 0 1px 0 rgba(255, 255, 255, .11), inset 0 -9px 16px rgba(0, 4, 14, .4);
  cursor: pointer;
  pointer-events: auto;
  transition: transform .15s ease, filter .15s ease, box-shadow .15s ease;
}
.focus-arrow::before {
  position: absolute;
  inset: 1px 1px 48%;
  z-index: -1;
  border-radius: 20px 20px 26px 26px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, 0));
  content: "";
}
.focus-arrow-mark {
  position: relative;
  z-index: 1;
  display: block;
  width: 64px;
  height: 64px;
  overflow: visible;
  filter: drop-shadow(0 3px 5px rgba(105, 149, 201, .24));
}
.focus-arrow-mark path {
  fill: none;
  stroke-width: 12;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.focus-arrow-stop-light { stop-color: var(--focus-arrow-light); }
.focus-arrow-stop-mid { stop-color: var(--focus-arrow-mid); }
.focus-arrow-stop-deep { stop-color: var(--focus-arrow-deep); }
.focus-arrow:hover { transform: translateY(-2px) scale(1.06); filter: brightness(1.1); box-shadow: 0 19px 34px rgba(3, 16, 31, .44), inset 0 1px 0 rgba(255, 255, 255, .17), inset 0 -9px 16px rgba(0, 4, 14, .35); }
.focus-up .focus-arrow-mark { transform: rotate(-90deg); }
.focus-down .focus-arrow-mark { transform: rotate(90deg); }
.focus-left .focus-arrow-mark { transform: rotate(180deg); }

/* The locked glacier finish uses one continuous gradient for the whole arrow. */
.focus-arrows { --focus-arrow-light: #ffffff; --focus-arrow-mid: #e5f2ff; --focus-arrow-deep: #b9d5f7; }

@media (max-width: 640px) {
  .focus-arrow { width: 72px; height: 72px; margin: -36px 0 0 -36px; border-radius: 19px; }
  .focus-arrow-mark { transform: scale(.86); }
  .focus-up .focus-arrow-mark { transform: rotate(-90deg) scale(.86); }
  .focus-down .focus-arrow-mark { transform: rotate(90deg) scale(.86); }
  .focus-left .focus-arrow-mark { transform: rotate(180deg) scale(.86); }
}

/* Keep every page destination reachable when the compact header runs out of
   horizontal room. The active destination is brought into this scroll region
   by canvas.js rather than letting the whole chrome spill beyond the viewport. */
@media (max-width: 720px) {
  :root { --chrome-h: 88px; }
  .site-chrome {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: 52px 36px;
    height: var(--chrome-h);
    gap: 0;
    padding: 0 8px;
  }
  .site-chrome h1 { display: none; }
  .site-chrome-actions { grid-column: 2; grid-row: 1; }
  .site-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    align-self: stretch;
    margin: 0;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav a { flex: 0 0 auto; padding: 5px 8px; font-size: 12px; }
  .site-chrome-actions { flex: 0 0 auto; gap: 4px; }
}

/* ---- Forum and tag workspaces --------------------------------------- */
.workspace-glyph {
  flex: 0 0 auto;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 8px;
  background: #eaf3ff;
  color: #214993;
}
.workspace-glyph .inj-ico { width: 17px; height: 17px; }

body[data-page="forum"] .plane-card.qa-card[data-page="forum"],
body[data-page="tags"] .plane-card.youtube-card[data-page="tags"] {
  display: flex;
}

.qa-card {
  box-sizing: border-box;
  width: 1180px;
  height: 920px;
  min-height: 920px;
  gap: 0;
  overflow: hidden;
}
.qa-header {
  min-height: 106px;
  align-items: flex-start;
  padding-bottom: 20px;
  border-bottom: 1px solid #d9e7f7;
}
.qa-title-block,
.yt-title-block {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  gap: 12px;
}
.qa-title-block .card-tag,
.yt-title-block .card-tag { flex: 0 0 auto; margin-top: 2px; }
.qa-title-block h2,
.yt-title-block h2 {
  margin: 0;
  color: #13233f;
  font-size: 23px;
  line-height: 1.12;
}
.qa-intro,
.yt-title-block p {
  max-width: 680px;
  margin: 7px 0 0 !important;
  color: #53647c;
  font-size: 13px;
  line-height: 1.55;
}
.qa-sort {
  flex: 0 0 auto;
  margin-top: 3px;
  border-color: #d6e5f6;
  background: #f3f8fe;
}
.qa-sort-btn.is-active { box-shadow: 0 2px 7px rgba(39, 78, 135, .12); }
.qa-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(350px, .78fr);
  flex: 1 1 0;
  height: 0;
  min-height: 0;
  padding-top: 20px;
}
.qa-thread-pane,
.qa-compose-pane {
  display: flex;
  min-width: 0;
  min-height: 0;
  height: 100%;
  flex-direction: column;
}
.qa-thread-pane { padding-right: 24px; }
.qa-compose-pane {
  padding-left: 24px;
  overflow: auto;
  border-left: 1px solid #d9e7f7;
}
.qa-section-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.qa-section-head h3 {
  margin: 1px 0 3px;
  color: #192944;
  font-size: 14px;
  line-height: 1.2;
}
.qa-section-head p {
  margin: 0;
  color: #64748b;
  font-size: 11.5px;
  line-height: 1.45;
}
.qa-filters {
  flex: 0 0 auto;
  margin: 18px 0 12px;
  padding: 12px 0;
  border-top: 1px solid #e3edf9;
  border-bottom: 1px solid #e3edf9;
}
.qa-tag-row { border-top: 0; padding-top: 4px; }
.qa-chip {
  border-color: #d5e3f3;
  background: #f8fbff;
  color: #53647c;
}
.qa-feed {
  flex: 1 1 0;
  height: 0;
  min-height: 0;
  max-height: none;
  gap: 8px;
  padding: 2px 10px 2px 0;
}
.qa-post {
  padding: 13px 15px;
  border-color: #dce8f5;
  border-radius: 8px;
  box-shadow: none;
}
.qa-post.is-pinned { border-color: #bfd8f3; background: #f7fbff; }
.qa-title { font-size: 14px; line-height: 1.35; }
.qa-body,
.qa-body p { font-size: 12px !important; line-height: 1.48; }
.qa-feed-foot { flex: 0 0 auto; padding-top: 10px; }
.qa-guide { padding-bottom: 18px; border-bottom: 1px solid #d9e7f7; }
.qa-guide-list {
  display: grid;
  gap: 12px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}
.qa-guide-list li {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  align-items: start;
  gap: 9px;
  color: #61708a;
  font-size: 11.5px;
  line-height: 1.46;
}
.qa-guide-list .workspace-glyph {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: #f0f7ff;
}
.qa-guide-list .workspace-glyph .inj-ico { width: 14px; height: 14px; }
.qa-guide-list strong { color: #253650; }
.qa-composer-slot { margin-top: 18px; }
.qa-composer { gap: 7px; }
.qa-composer:not(.is-reply) .qa-textarea { min-height: 142px; }
.qa-composer-title { font-size: 14px; }
.qa-tagpick { gap: 4px; }
.qa-tagpick-chip { padding: 3px 8px; font-size: 10px; }
.qa-toolbar { gap: 3px; }
.qa-tool { padding: 3px 7px; font-size: 10.5px; }

.youtube-card {
  box-sizing: border-box;
  width: 1360px;
  height: 980px;
  min-height: 980px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.yt-header {
  flex: 0 0 auto;
  min-height: 70px;
  margin-bottom: 0;
  padding-bottom: 18px;
  border-bottom: 1px solid #d9e7f7;
}
.yt-header .yt-api-status {
  margin-top: 5px;
  color: #667892;
}
.yt-brief {
  display: grid;
  grid-template-columns: minmax(280px, .9fr) minmax(0, 1.5fr);
  flex: 0 0 auto;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid #d9e7f7;
}
.yt-brief-intro {
  display: flex;
  align-items: flex-start;
  gap: 11px;
}
.yt-brief h3 {
  margin: 2px 0 4px;
  color: #1b2b46;
  font-size: 14px;
  line-height: 1.24;
}
.yt-brief p {
  margin: 0;
  color: #60708a;
  font-size: 11.5px;
  line-height: 1.48;
}
.yt-brief-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.yt-brief-list li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  color: #62718a;
  font-size: 11px;
  line-height: 1.44;
}
.yt-brief-list .workspace-glyph {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: #f0f7ff;
}
.yt-brief-list .workspace-glyph .inj-ico { width: 15px; height: 15px; }
.yt-brief-list strong { display: block; margin-bottom: 2px; color: #2a3b56; font-size: 11.5px; }
.yt-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr);
  grid-template-rows: minmax(0, 1.08fr) minmax(0, .92fr);
  grid-template-areas:
    "tree creators"
    "watched support";
  flex: 1 1 0;
  height: 0;
  min-height: 0;
  gap: 0;
  padding-top: 18px;
}
.yt-tree-box,
.yt-creators-box,
.yt-watched-box,
.yt-support-stack {
  box-sizing: border-box;
  min-width: 0;
  min-height: 0;
  height: 100%;
}
.yt-tree-box { grid-area: tree; padding-right: 24px; }
.yt-creators-box { grid-area: creators; padding-left: 24px; border-left: 1px solid #d9e7f7; }
.yt-watched-box { grid-area: watched; padding: 20px 24px 0 0; border-top: 1px solid #d9e7f7; }
.yt-support-stack {
  display: grid;
  grid-area: support;
  grid-template-rows: minmax(0, .8fr) minmax(0, 1.2fr);
  padding: 20px 0 0 24px;
  border-top: 1px solid #d9e7f7;
  border-left: 1px solid #d9e7f7;
}
.youtube-card .yt-box {
  box-sizing: border-box;
  min-height: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.yt-support-stack .yt-similar-box {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #e3edf9;
}
.youtube-card .yt-box-title {
  margin-bottom: 6px;
  color: #39506f;
  font-size: 11px;
  letter-spacing: .06em;
}
.youtube-card .yt-box-sub,
.youtube-card .yt-queue-note,
.youtube-card .yt-tree-hint {
  color: #61728b;
  font-size: 11px;
  line-height: 1.43;
}
.youtube-card .yt-tree {
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
  border-radius: 8px;
  background:
    linear-gradient(rgba(113, 157, 206, .08) 1px, transparent 1px) 0 0 / 100% 22px,
    #f8fbff;
  box-shadow: inset 0 0 0 1px #dce8f5;
}
.youtube-card .yt-creators-controls { margin-bottom: 8px; }
.youtube-card .yt-creator-list,
.youtube-card .yt-watched-list,
.youtube-card .yt-similar-list {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
}
.youtube-card .yt-creator-list { min-height: 0; }
.youtube-card .yt-watched-list { margin-top: 8px; gap: 5px; }
.youtube-card .yt-watched {
  padding: 7px 9px;
  border-color: #dce8f5;
  border-radius: 7px;
  background: #fbfdff;
}
.youtube-card .yt-creator {
  padding: 7px 4px;
  border-bottom-color: #e0eaf6;
}
.youtube-card .yt-contribute-input { min-height: 58px; }
.youtube-card .yt-tree-dl,
.youtube-card .yt-tree-nav,
.youtube-card .yt-watch-go,
.youtube-card .yt-btn { border-radius: 6px; }

/* ---- Forum and Tags: long-form reference pages ---------------------- */
.qa-card {
  width: 1320px;
  height: 2220px;
  min-height: 2220px;
  padding: 56px 60px 64px;
  overflow: hidden;
}
.qa-header {
  min-height: 0;
  padding-bottom: 28px;
}
.qa-title-block h2 { font-size: 30px; }
.qa-intro { max-width: 760px; font-size: 15px; }
.qa-story {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
  gap: 64px;
  padding: 50px 0 56px;
  border-bottom: 1px solid #d9e7f7;
}
.qa-kicker {
  display: inline-block;
  margin-bottom: 12px;
  color: #2a5696;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.qa-story h3 {
  max-width: 670px;
  margin: 0;
  color: #162845;
  font-size: 31px;
  line-height: 1.14;
}
.qa-story-copy > p {
  max-width: 680px;
  margin: 18px 0 0;
  color: #586981;
  font-size: 15px;
  line-height: 1.65;
}
.qa-story-points {
  display: grid;
  gap: 15px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}
.qa-story-points li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  color: #5d6d84;
  font-size: 13px;
  line-height: 1.52;
}
.qa-story-points .workspace-glyph {
  width: 34px;
  height: 34px;
  background: #edf5ff;
}
.qa-story-points strong { color: #243854; }
.qa-flow-graphic {
  position: relative;
  display: grid;
  align-content: center;
  gap: 34px;
  min-height: 360px;
  padding: 24px 0 24px 58px;
}
.qa-flow-graphic::before {
  position: absolute;
  top: 50px;
  bottom: 72px;
  left: 18px;
  width: 2px;
  background: linear-gradient(#b7d5f5, #dceafa);
  content: "";
}
.qa-flow-step {
  position: relative;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  color: #60718a;
  font-size: 12px;
  line-height: 1.35;
}
.qa-flow-step::before {
  position: absolute;
  left: -48px;
  width: 16px;
  height: 16px;
  border: 4px solid #f8fbff;
  border-radius: 50%;
  background: #4f83c3;
  box-shadow: 0 0 0 1px #9cc2ec;
  content: "";
}
.qa-flow-step .inj-ico {
  width: 38px;
  height: 38px;
  padding: 10px;
  border-radius: 8px;
  box-sizing: border-box;
  background: #edf5ff;
  color: #28569a;
}
.qa-flow-step strong { display: block; margin-bottom: 2px; color: #213551; font-size: 14px; }
.qa-flow-caption {
  margin-top: 6px;
  color: #60718a;
  font-size: 12px;
  font-style: italic;
  line-height: 1.45;
}
.qa-workspace {
  display: block;
  flex: 0 0 auto;
  height: auto;
  min-height: 0;
  padding-top: 56px;
}
.qa-thread-pane,
.qa-compose-pane {
  display: block;
  height: auto;
  min-height: 0;
  padding: 0;
}
.qa-thread-pane { border: 0; }
.qa-section-head h3 { font-size: 18px; }
.qa-section-head p { max-width: 690px; font-size: 13px; line-height: 1.55; }
.qa-filters {
  margin: 24px 0 18px;
  padding: 16px 0;
}
.qa-chip { padding: 6px 12px; font-size: 12px; }
.qa-feed {
  display: flex;
  height: 610px;
  min-height: 610px;
  max-height: 610px;
  padding-right: 14px;
}
.qa-post { padding: 18px 20px; }
.qa-title { font-size: 16px; }
.qa-body,
.qa-body p { font-size: 13px !important; line-height: 1.58; }
.qa-feed-foot { padding: 18px 0 48px; }
.qa-compose-pane {
  display: grid;
  grid-template-columns: minmax(300px, .74fr) minmax(0, 1.26fr);
  gap: 52px;
  padding-top: 54px;
  border-top: 1px solid #d9e7f7;
  overflow: visible;
}
.qa-guide { padding: 0; border: 0; }
.qa-guide-list { gap: 18px; margin-top: 22px; }
.qa-guide-list li { grid-template-columns: 32px minmax(0, 1fr); font-size: 13px; line-height: 1.52; }
.qa-guide-list .workspace-glyph { width: 32px; height: 32px; }
.qa-composer-slot { margin: 0; }
.qa-composer:not(.is-reply) .qa-textarea { min-height: 238px; }
.qa-composer-title { font-size: 18px; }
.qa-composer-hint { font-size: 12px; }
.qa-tagpick { gap: 6px; }
.qa-tagpick-chip { padding: 5px 10px; font-size: 11px; }
.qa-tool { padding: 5px 10px; font-size: 11.5px; }

.youtube-card {
  width: 1440px;
  height: 2680px;
  min-height: 2680px;
  padding: 56px 60px 64px;
  overflow: hidden;
}
.yt-header {
  min-height: 0;
  padding-bottom: 28px;
}
.yt-title-block h2 { font-size: 30px; }
.yt-title-block p { max-width: 800px; font-size: 15px; }
.yt-brief {
  grid-template-columns: minmax(0, .92fr) minmax(390px, 1.08fr);
  grid-template-areas:
    "intro graphic"
    "list list";
  gap: 34px 64px;
  margin-top: 36px;
  padding: 36px 0 42px;
  border-top: 1px solid #d9e7f7;
}
.yt-brief-intro { grid-area: intro; align-self: center; }
.yt-brief h3 { font-size: 25px; }
.yt-brief p { font-size: 14px; line-height: 1.62; }
.yt-map-graphic {
  position: relative;
  grid-area: graphic;
  min-height: 300px;
  overflow: hidden;
  border-radius: 8px;
  background: linear-gradient(145deg, #f5faff, #edf5ff);
}
.yt-map-orbit {
  position: absolute;
  left: 50%;
  top: 50%;
  border: 1px solid #bcd7f3;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.yt-map-orbit-one { width: 240px; height: 240px; }
.yt-map-orbit-two { width: 390px; height: 170px; border-color: #d2e4f8; }
.yt-map-node,
.yt-map-core {
  position: absolute;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  color: #61718a;
  font-size: 11px;
  line-height: 1.2;
}
.yt-map-node .inj-ico,
.yt-map-core .inj-ico {
  width: 26px;
  height: 26px;
  padding: 6px;
  border-radius: 7px;
  box-sizing: border-box;
  background: #fff;
  color: #28579c;
  box-shadow: 0 4px 12px rgba(48, 91, 143, .12);
}
.yt-map-node strong,
.yt-map-core strong { display: block; color: #29405f; font-size: 12px; }
.yt-map-node.is-tag { top: 34px; left: 44px; }
.yt-map-node.is-creator { top: 42px; right: 44px; }
.yt-map-node.is-filter { left: 56px; bottom: 42px; }
.yt-map-core {
  right: 36px;
  bottom: 40px;
  max-width: 190px;
}
.yt-brief-list {
  grid-area: list;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  padding-top: 24px;
  border-top: 1px solid #d9e7f7;
}
.yt-brief-list li { grid-template-columns: 34px minmax(0, 1fr); font-size: 13px; line-height: 1.52; }
.yt-brief-list .workspace-glyph { width: 34px; height: 34px; }
.yt-brief-list strong { font-size: 13px; }
.yt-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(380px, .9fr);
  grid-template-rows: 720px 680px 470px;
  grid-template-areas:
    "tree tree"
    "creators watched"
    "support support";
  flex: 0 0 auto;
  height: auto;
  gap: 0;
  margin-top: 58px;
  padding-top: 0;
}
.yt-tree-box,
.yt-creators-box,
.yt-watched-box,
.yt-support-stack {
  height: auto;
  min-height: 0;
  box-sizing: border-box;
}
.yt-tree-box { padding: 0 0 56px; border: 0; }
.yt-creators-box { padding: 50px 48px 0 0; border-top: 1px solid #d9e7f7; border-left: 0; }
.yt-watched-box { padding: 50px 0 0 48px; border-top: 1px solid #d9e7f7; border-left: 1px solid #d9e7f7; }
.yt-support-stack {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: 1fr;
  gap: 48px;
  padding: 48px 0 0;
  border-top: 1px solid #d9e7f7;
  border-left: 0;
}
.youtube-card .yt-box { display: flex; height: auto; padding: 0; }
.youtube-card .yt-box-title { margin-bottom: 12px; font-size: 12px; }
.yt-panel-lead {
  max-width: 920px;
  margin: 0 0 18px;
  color: #62718a;
  font-size: 13px;
  line-height: 1.52;
}
.yt-panel-lead strong { color: #314661; }
.youtube-card .yt-tree { flex: 0 0 auto; height: 520px; min-height: 520px; }
.youtube-card .yt-tree-hint { margin-top: 14px; font-size: 12px; }
.youtube-card .yt-creator-list { flex: 0 0 auto; height: 470px; min-height: 470px; }
.youtube-card .yt-watched-list { flex: 0 0 auto; height: 355px; min-height: 355px; }
.youtube-card .yt-similar-box { margin: 0; padding: 0 0 0 48px; border-top: 0; border-left: 1px solid #d9e7f7; }
.youtube-card .yt-similar-list { flex: 0 0 auto; height: 250px; min-height: 250px; }
.youtube-card .yt-contribute-input { min-height: 126px; }
.youtube-card .yt-queue-note,
.youtube-card .yt-box-sub { max-width: 580px; font-size: 12px; line-height: 1.52; }

/* Keep the explanatory diagrams legible at the page's opening zoom. */
.qa-card {
  height: 2280px;
  min-height: 2280px;
}
.qa-flow-graphic {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-content: center;
  gap: 0;
  min-height: 300px;
  padding: 58px 0 40px;
}
.qa-flow-graphic::before {
  top: 78px;
  right: 8%;
  bottom: auto;
  left: 8%;
  width: auto;
  height: 2px;
}
.qa-flow-step {
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 8px;
  padding: 0 10px;
  text-align: center;
}
.qa-flow-step::before {
  top: 13px;
  left: calc(50% - 8px);
}
.qa-flow-step .inj-ico { width: 44px; height: 44px; padding: 12px; }
.qa-flow-step strong { font-size: 13px; }
.qa-flow-caption { grid-column: 1 / -1; margin: 34px auto 0; max-width: 260px; text-align: center; }
.yt-map-node { width: 160px; }
.yt-map-node.is-tag { left: 30px; }
.yt-map-node.is-creator { right: 30px; }
.yt-map-node.is-filter { left: 38px; }
.yt-map-core {
  display: block;
  width: 220px;
  max-width: none;
  padding-left: 36px;
  right: 22px;
  bottom: 26px;
}
.yt-map-core .inj-ico { position: absolute; top: 0; left: 0; }

/* ---- Two equal-size bolt studs, top corners of every card (each rotated to
       its own random angle by connectors.js) ---- */
.cb-bolt {
  position: absolute;
  width: 78px;
  height: 78px;
  background-image: var(--cb-bolt);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  pointer-events: none;
  z-index: 3;
}
.cb-bolt-tl { top: 12px; left: 12px; }
.cb-bolt-tr { top: 12px; right: 12px; }

/* ---- Account popup / modal ---- */
.account-modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  background: rgba(6, 12, 24, .08);
  backdrop-filter: blur(1px);
  padding: 20px;
}
.account-modal-overlay[hidden] { display: none; }
.account-modal {
  position: relative;
  max-width: 440px; width: 100%;
  max-height: 88vh; overflow: auto;
}
.account-modal .plane-card.account-card {
  position: static;
  transform: none;
  width: 100%;
  margin: 0;
}
.account-modal .plane-card.account-card:hover { transform: none; }
.account-modal-close {
  position: absolute; top: 8px; right: 10px; z-index: 2;
  width: 30px; height: 30px;
  font-size: 22px; line-height: 1;
  color: var(--slate-500, #64748b);
  background: transparent; border: none; cursor: pointer; border-radius: 8px;
}
.account-modal-close:hover { background: rgba(15, 23, 42, .06); color: var(--slate-900, #0f172a); }
body.modal-open { overflow: hidden; }

/* ---- Docs page: every doc box shares the one instruction-manual look ---- */
.docs-card,
.docs-legal-card,
.docs-manual-card,
.docs-doc-card {
  width: 720px;
  height: 700px;
}
.docs-card .docs-header {
  align-items: center;
}

/* ---- Tags: alternating explorer and explanation rows ---------------- */
.youtube-card {
  height: 3350px;
  min-height: 3350px;
}
.yt-grid {
  display: block;
  height: auto;
  margin-top: 58px;
  padding-top: 0;
}
.yt-grid > .yt-tree-box {
  display: flex;
  height: auto;
  margin: 0;
  padding: 0 0 64px;
  border: 0;
}
.yt-feature-row {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, .9fr);
  align-items: center;
  gap: 74px;
  box-sizing: border-box;
  min-height: 610px;
  padding: 64px 0;
  border-top: 1px solid #d9e7f7;
}
.yt-feature-row .yt-box,
.yt-feature-row .yt-support-stack {
  min-width: 0;
  min-height: 0;
  height: auto;
}
.yt-feature-row .yt-creators-box,
.yt-feature-row .yt-watched-box,
.yt-feature-row .yt-support-stack {
  display: flex;
  grid-area: auto;
  padding: 0;
  border: 0;
}
.yt-feature-row .yt-creator-list {
  flex: 0 0 auto;
  width: 100%;
  height: 430px;
  min-height: 430px;
  max-height: 430px;
}
.yt-feature-row .yt-watched-list {
  flex: 0 0 auto;
  width: 100%;
  height: 330px;
  min-height: 330px;
  max-height: 330px;
}
.yt-feature-copy {
  max-width: 440px;
  color: #53647c;
}
.yt-feature-glyph {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 8px;
  background: #edf5ff;
  color: #28579c;
}
.yt-feature-glyph .inj-ico { width: 22px; height: 22px; }
.yt-feature-kicker {
  display: block;
  margin-top: 18px;
  color: #2a5696;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.yt-feature-copy h3 {
  margin: 10px 0 12px;
  color: #172944;
  font-size: 25px;
  line-height: 1.16;
}
.yt-feature-copy p {
  margin: 0;
  font-size: 14px;
  line-height: 1.62;
}
.yt-feature-copy ul {
  display: grid;
  gap: 14px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
.yt-feature-copy li {
  padding-left: 16px;
  border-left: 2px solid #c9dff6;
  font-size: 13px;
  line-height: 1.54;
}
.yt-feature-copy strong { color: #263a55; }
.yt-contribute-feature { min-height: 510px; }
.yt-contribute-feature .yt-support-stack {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 42px;
  padding: 0;
  border: 0;
}
.yt-contribute-feature .yt-contribute-box,
.yt-contribute-feature .yt-similar-box {
  display: flex;
  grid-area: auto;
  height: auto;
  margin: 0;
  padding: 0;
  border: 0;
}
.yt-contribute-feature .yt-similar-box {
  padding-left: 42px;
  border-left: 1px solid #d9e7f7;
}
.yt-contribute-feature .yt-contribute-input { min-height: 150px; }
.yt-contribute-feature .yt-similar-list {
  flex: 0 0 auto;
  height: 250px;
  min-height: 250px;
  max-height: 250px;
}

/* ---- Forum: account-only private request threads --------------------- */
.qa-card {
  height: 3060px;
  min-height: 3060px;
}
.private-requests {
  margin-top: 58px;
  padding-top: 54px;
  border-top: 1px solid #d9e7f7;
}
.private-requests-header {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: start;
  gap: 16px;
  max-width: 760px;
}
.private-requests-header .workspace-glyph {
  width: 44px;
  height: 44px;
  background: #edf5ff;
}
.private-requests-header .workspace-glyph .inj-ico { width: 22px; height: 22px; }
.private-requests-header .qa-kicker { margin-bottom: 8px; }
.private-requests-header h3 {
  margin: 0;
  color: #182a45;
  font-size: 25px;
  line-height: 1.18;
}
.private-requests-header p {
  margin: 10px 0 0;
  color: #596a82;
  font-size: 14px;
  line-height: 1.58;
}
.private-requests-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(340px, .96fr);
  gap: 64px;
  margin-top: 42px;
}
.private-inbox-pane,
.private-guide { min-width: 0; }
.private-thread-list {
  min-height: 250px;
  max-height: 380px;
  margin-top: 20px;
  overflow-y: auto;
  border-top: 1px solid #dce8f5;
}
.private-thread-item {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px 14px;
  padding: 16px 2px;
  border: 0;
  border-bottom: 1px solid #dce8f5;
  border-radius: 0;
  background: transparent;
  color: #30435d;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.private-thread-item:hover,
.private-thread-item.is-selected { background: #f6faff; }
.private-thread-topline {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 8px;
}
.private-thread-time {
  color: #8090a6;
  font-size: 11px;
  white-space: nowrap;
}
.private-thread-subject {
  grid-column: 1 / -1;
  overflow: hidden;
  color: #1f314e;
  font-size: 14px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.private-thread-requester {
  grid-column: 1 / -1;
  margin-top: -4px;
  color: #5d6f88;
  font-size: 12px;
  font-weight: 700;
}
.private-thread-preview {
  grid-column: 1 / -1;
  display: -webkit-box;
  overflow: hidden;
  color: #64758c;
  font-size: 12px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.private-thread-count {
  grid-column: 1 / -1;
  color: #8190a5;
  font-size: 11px;
  font-weight: 700;
}
.private-status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 20px;
  padding: 0 7px;
  border: 1px solid #d7e5f5;
  border-radius: 999px;
  background: #f4f8fd;
  color: #49617f;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}
.private-status.is-open { border-color: #c4d8f2; background: #eef6ff; color: #285d9f; }
.private-status.is-in_progress { border-color: #d9d5f2; background: #f4f2ff; color: #5b4c9f; }
.private-status.is-resolved { border-color: #bfe3d0; background: #effbf4; color: #197448; }
.private-status.is-closed { border-color: #dce3eb; background: #f5f7f9; color: #64748b; }
.private-guide {
  padding-left: 38px;
  border-left: 1px solid #d9e7f7;
}
.private-guide-list {
  display: grid;
  gap: 16px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}
.private-guide-list li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  color: #61728a;
  font-size: 12px;
  line-height: 1.52;
}
.private-guide-list .workspace-glyph {
  width: 30px;
  height: 30px;
  background: #f0f6fd;
}
.private-guide-list .workspace-glyph .inj-ico { width: 15px; height: 15px; }
.private-guide-list strong { color: #2b405d; }
.private-reply-label,
.private-status-label {
  display: grid;
  gap: 7px;
  color: #314661;
  font-size: 12px;
  font-weight: 800;
}
.private-reply-input,
.private-status-select {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #cad9eb;
  border-radius: 7px;
  background: #fff;
  color: #1c2f4c;
  font: 500 13px/1.5 var(--font);
}
.private-status-select { min-height: 40px; padding: 8px 10px; }
.private-reply-input { min-height: 132px; padding: 10px 11px; resize: vertical; }
.private-reply-input:focus,
.private-status-select:focus { outline: 2px solid #c8ddf5; border-color: #92bce9; }
.private-reply-note {
  color: #718199;
  font-size: 11px;
  line-height: 1.45;
}
.private-thread-detail {
  margin-top: 54px;
  padding-top: 42px;
  border-top: 1px solid #d9e7f7;
}
.private-detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
}
.private-detail-title { min-width: 0; }
.private-detail-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
}
.private-detail-updated { color: #7889a0; font-size: 12px; }
.private-detail-title h3 {
  margin: 10px 0 0;
  color: #172944;
  font-size: 22px;
  line-height: 1.26;
}
.private-detail-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 11px; }
.private-detail-requester { margin: 7px 0 0; color: #61738c; font-size: 12px; }
.private-status-form {
  display: flex;
  flex: 0 0 auto;
  align-items: end;
  gap: 9px;
}
.private-status-label { min-width: 132px; }
.private-status-form .qa-cancel { white-space: nowrap; }
.private-message-list {
  display: grid;
  gap: 12px;
  max-height: 320px;
  margin-top: 28px;
  padding-right: 10px;
  overflow-y: auto;
}
.private-message {
  max-width: 78%;
  padding: 14px 16px;
  border: 1px solid #dbe7f4;
  border-radius: 8px;
  background: #fbfdff;
}
.private-message.is-mine { justify-self: end; border-color: #c8def4; background: #f1f7fe; }
.private-message.is-creator { border-left: 3px solid #6f9fd0; }
.private-message-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #718299;
  font-size: 11px;
}
.private-message-meta strong { color: #2c4261; }
.private-message-body { margin-top: 8px; color: #30435d; font-size: 13px; line-height: 1.55; }
.private-message-body > :first-child { margin-top: 0; }
.private-message-body > :last-child { margin-bottom: 0; }
.private-reply-form {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}
.private-reply-input { min-height: 102px; }
.private-reply-note { margin: 0; }
.private-reply-actions { display: flex; justify-content: flex-end; }

.qa-compose-mode {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(100%, 340px);
  margin: 0 0 16px;
  padding: 4px;
  border: 1px solid #d7e5f5;
  border-radius: 8px;
  background: #f4f8fd;
}
.qa-mode-btn {
  min-height: 34px;
  padding: 7px 10px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #60728d;
  font: 800 12px/1.2 var(--font);
  letter-spacing: 0;
  cursor: pointer;
}
.qa-mode-btn:hover { color: #284f94; background: #eaf3ff; }
.qa-mode-btn.is-active { background: #284d98; color: #fff; box-shadow: 0 1px 2px rgba(35, 73, 149, .22); }
.qa-mode-btn:focus-visible { outline: 2px solid #8fb9e8; outline-offset: 1px; }

@media (max-width: 840px) {
  .private-requests-grid { grid-template-columns: 1fr; gap: 38px; }
  .private-guide { padding: 38px 0 0; border-top: 1px solid #d9e7f7; border-left: 0; }
  .private-detail-header { display: grid; gap: 20px; }
  .private-status-form { justify-content: space-between; }
}

/* ---- Statistics: an annotated aggregate-data story -------------------- */
.gstats-card {
  width: 1560px;
  max-width: 95vw;
  min-height: 0;
  padding: 58px 66px 82px;
}
.stats-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(340px, .82fr);
  align-items: start;
  gap: 74px;
  padding-bottom: 52px;
}
.gstats-card .stats-header h2 {
  margin: 12px 0 14px;
  color: #132440;
  font-size: 42px;
  line-height: 1.08;
  letter-spacing: 0;
}
.gstats-card .stats-sub {
  max-width: 680px;
  margin: 0;
  color: #566882;
  font-size: 16px;
  line-height: 1.65;
}
.stats-method {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: start;
  gap: 15px;
  padding: 4px 0 4px 30px;
  border-left: 1px solid #d8e6f5;
}
.stats-method .workspace-glyph {
  width: 42px;
  height: 42px;
  background: #eaf4ff;
}
.stats-method .workspace-glyph .inj-ico { width: 21px; height: 21px; }
.stats-method h3 {
  margin: 2px 0 13px;
  color: #263d5c;
  font-size: 17px;
  line-height: 1.25;
}
.stats-method ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.stats-method li {
  color: #62748c;
  font-size: 12px;
  line-height: 1.5;
}
.stats-method strong { color: #304967; }
.stats-controls {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin: 0;
  padding: 24px 0 26px;
  border-top: 1px solid #d8e6f5;
  border-bottom: 1px solid #d8e6f5;
}
.stats-controls-kicker {
  display: block;
  margin-bottom: 9px;
  color: #62748c;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}
.stats-range {
  display: inline-grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid #d2e1f2;
  border-radius: 8px;
  background: #f5f9fe;
}
.stats-range button {
  min-width: 58px;
  min-height: 35px;
  padding: 8px 13px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #5f718a;
  font: 800 12px/1.1 var(--font);
  letter-spacing: 0;
}
.stats-range button + button { border-left: 1px solid #dce8f5; }
.stats-range button:hover { background: #eaf3ff; color: #234e97; }
.stats-range button.active { background: #2b559f; color: #fff; }
.stats-log {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 9px;
  max-width: 272px;
  color: #62748c;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.38;
}
.stats-log input {
  width: 16px;
  height: 16px;
  margin: 1px 0 0;
  accent-color: #2b559f;
}
.stats-log strong {
  display: block;
  color: #304967;
  font-size: 12px;
  font-weight: 800;
}
.stats-log small {
  display: block;
  margin-top: 2px;
  color: #77879d;
  font-size: 11px;
}
.stats-grid { display: block; }
.stat-story {
  display: grid;
  grid-template-columns: minmax(0, 1.34fr) minmax(330px, .66fr);
  align-items: center;
  gap: 78px;
  padding: 64px 0;
  border-bottom: 1px solid #d8e6f5;
}
.stat-story.is-reversed .stat-story-chart { grid-column: 2; grid-row: 1; }
.stat-story.is-reversed .stat-story-copy { grid-column: 1; grid-row: 1; }
.stat-story-chart {
  min-width: 0;
  margin: 0;
  padding: 27px 29px 21px;
  border-radius: 8px;
  background: #f4f8fe;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), 0 12px 28px rgba(44, 82, 137, .07);
}
.stat-plot-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 13px;
}
.stat-plot-label {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
}
.stat-swatch {
  width: 10px;
  height: 10px;
  margin-top: 5px;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .65);
}
.stat-plot-group,
.stat-story-kicker {
  display: block;
  color: #62748c;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}
.stat-plot-label h3 {
  margin: 3px 0 0;
  color: #1d3554;
  font-size: 18px;
  line-height: 1.25;
}
.stat-latest { text-align: right; white-space: nowrap; }
.stat-latest span {
  display: block;
  color: #7a8a9f;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}
.stat-latest strong {
  display: block;
  margin-top: 3px;
  color: #1d3554;
  font-size: 25px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat-chart-wrap { width: 100%; }
.stat-chart {
  display: block;
  width: 100%;
  height: 500px;
  overflow: visible;
}
.stat-grid-line {
  stroke: rgba(57, 91, 140, .16);
  stroke-dasharray: 3 5;
  stroke-width: 1;
}
.stat-grid-line-vertical { stroke: rgba(57, 91, 140, .1); }
.stat-line {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
}
.stat-area { opacity: 1; stroke: none; }
.stat-axis,
.stat-axis-title,
.stat-chart-empty {
  fill: #78899f;
  font-family: var(--font);
}
.stat-axis { font-size: 10px; font-weight: 700; }
.stat-axis-title { font-size: 10px; font-weight: 800; letter-spacing: 0; text-transform: uppercase; }
.stat-chart-empty { font-size: 12px; font-weight: 700; }
.stat-chart-note {
  margin: 4px 0 0 62px;
  color: #75869d;
  font-size: 11px;
  line-height: 1.45;
}
.stat-story-copy { min-width: 0; }
.stat-story-copy h3 {
  margin: 8px 0 12px;
  color: #1d3554;
  font-size: 27px;
  line-height: 1.16;
}
.stat-story-summary {
  margin: 0;
  color: #53667f;
  font-size: 15px;
  line-height: 1.6;
}
.stat-reading {
  display: grid;
  gap: 0;
  margin: 24px 0 0;
}
.stat-reading-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 15px;
  padding: 12px 0;
  border-top: 1px solid #dfeaf6;
}
.stat-reading-row:last-child { border-bottom: 1px solid #dfeaf6; }
.stat-reading dt {
  color: #344c6b;
  font-size: 11px;
  font-weight: 800;
}
.stat-reading dd {
  margin: 0;
  color: #65768d;
  font-size: 12px;
  line-height: 1.52;
}
.stat-snapshot {
  margin: 20px 0 0;
  color: #62748c;
  font-size: 12px;
  line-height: 1.5;
}
.stat-snapshot strong { color: #304967; }

@media (max-width: 960px) {
  .gstats-card { width: min(94vw, 880px); padding: 48px 42px 66px; }
  .stats-hero { grid-template-columns: 1fr; gap: 34px; }
  .stats-method { max-width: 650px; padding: 28px 0 0; border-top: 1px solid #d8e6f5; border-left: 0; }
  .stat-story { grid-template-columns: 1fr; gap: 35px; padding: 52px 0; }
  .stat-story.is-reversed .stat-story-chart,
  .stat-story.is-reversed .stat-story-copy { grid-column: auto; grid-row: auto; }
}
@media (max-width: 620px) {
  .gstats-card { width: 94vw; max-width: 94vw; padding: 36px 25px 52px; }
  .gstats-card .stats-header h2 { font-size: 34px; }
  .gstats-card .stats-sub { font-size: 14px; }
  .stats-controls { display: grid; align-items: start; gap: 20px; }
  .stats-range { width: 100%; }
  .stats-range button { min-width: 0; padding: 8px 5px; }
  .stats-log { max-width: none; }
  .stat-story { gap: 28px; padding: 42px 0; }
  .stat-story-chart { padding: 21px 16px 17px; }
  .stat-plot-head { gap: 10px; }
  .stat-plot-label h3 { font-size: 15px; }
  .stat-latest strong { font-size: 21px; }
  .stat-chart { height: 322px; }
  .stat-chart-note { margin-left: 48px; }
  .stat-story-copy h3 { font-size: 24px; }
  .stat-reading-row { grid-template-columns: 1fr; gap: 5px; }
}

/* ---- Docs: one long-form reference library --------------------------- */
.docs-library-card {
  width: 1480px;
  max-width: 95vw;
  min-height: 0;
  height: auto;
  padding: 58px 66px 82px;
}
.docs-library-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(340px, .82fr);
  align-items: start;
  gap: 74px;
  padding-bottom: 52px;
}
.docs-library-hero h2 {
  max-width: 730px;
  margin: 12px 0 14px;
  color: #132440;
  font-size: 42px;
  line-height: 1.08;
  letter-spacing: 0;
}
.docs-library-hero > div > p {
  max-width: 700px;
  margin: 0;
  color: #566882;
  font-size: 16px;
  line-height: 1.65;
}
.docs-library-guide {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: start;
  gap: 15px;
  padding: 4px 0 4px 30px;
  border-left: 1px solid #d8e6f5;
}
.docs-library-guide .workspace-glyph {
  width: 42px;
  height: 42px;
  background: #eaf4ff;
}
.docs-library-guide .workspace-glyph .inj-ico { width: 21px; height: 21px; }
.docs-library-guide h3 {
  margin: 2px 0 13px;
  color: #263d5c;
  font-size: 17px;
  line-height: 1.25;
}
.docs-library-guide ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.docs-library-guide li {
  color: #62748c;
  font-size: 12px;
  line-height: 1.5;
}
.docs-library-guide strong { color: #304967; }
.docs-library-intro {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 26px 0;
  border-top: 1px solid #d8e6f5;
  border-bottom: 1px solid #d8e6f5;
}
.docs-library-intro > div {
  min-width: 0;
  padding: 0 28px;
}
.docs-library-intro > div:first-child { padding-left: 0; }
.docs-library-intro > div + div { border-left: 1px solid #d8e6f5; }
.docs-intro-number {
  display: block;
  margin-bottom: 8px;
  color: #70829a;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0;
}
.docs-library-intro strong {
  color: #263d5c;
  font-size: 15px;
}
.docs-library-intro p {
  margin: 7px 0 0;
  color: #64768d;
  font-size: 12px;
  line-height: 1.52;
}
.docs-story {
  display: grid;
  grid-template-columns: minmax(330px, .8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: 74px;
  padding: 64px 0;
  border-bottom: 1px solid #d8e6f5;
}
.docs-story.is-reversed .docs-reader { grid-column: 1; grid-row: 1; }
.docs-story.is-reversed .docs-story-copy { grid-column: 2; grid-row: 1; }
.docs-story-copy { min-width: 0; }
.docs-story-kicker,
.docs-reader-kicker {
  display: block;
  color: #62748c;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}
.docs-story-copy h3 {
  margin: 8px 0 12px;
  color: #1d3554;
  font-size: 28px;
  line-height: 1.16;
}
.docs-story-copy > p {
  margin: 0;
  color: #53667f;
  font-size: 15px;
  line-height: 1.6;
}
.docs-story-facts {
  display: grid;
  gap: 0;
  margin: 24px 0 0;
}
.docs-story-facts > div {
  display: grid;
  grid-template-columns: 102px minmax(0, 1fr);
  gap: 15px;
  padding: 12px 0;
  border-top: 1px solid #dfeaf6;
}
.docs-story-facts > div:last-child { border-bottom: 1px solid #dfeaf6; }
.docs-story-facts dt {
  color: #344c6b;
  font-size: 11px;
  font-weight: 800;
}
.docs-story-facts dd {
  margin: 0;
  color: #65768d;
  font-size: 12px;
  line-height: 1.52;
}
.docs-reader {
  min-width: 0;
  padding: 24px 26px 22px;
  border-radius: 8px;
  background: #f4f8fe;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .82), 0 12px 28px rgba(44, 82, 137, .07);
}
.docs-reader-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 15px;
}
.docs-reader-header h4 {
  margin: 4px 0 0;
  color: #1d3554;
  font-size: 18px;
  line-height: 1.25;
}
.docs-manual-switch {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.docs-manual-switch button {
  min-height: 27px;
  padding: 5px 9px;
  border: 1px solid #ccdced;
  border-radius: 999px;
  background: #ffffff;
  color: #536b88;
  font: inherit;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}
.docs-manual-switch button:hover,
.docs-manual-switch button:focus-visible {
  border-color: #7fa6d3;
  color: #234f86;
  outline: 0;
}
.docs-manual-switch button:focus-visible {
  box-shadow: 0 0 0 3px rgba(62, 126, 194, .18);
}
.docs-manual-switch button.is-active {
  border-color: #285a99;
  background: #285a99;
  color: #ffffff;
}
.docs-reader-scroll-note {
  display: inline-grid;
  grid-template-columns: 28px auto;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  color: #64768d;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}
.docs-reader-scroll-note .workspace-glyph {
  width: 28px;
  height: 28px;
  background: #e7f2ff;
}
.docs-reader-scroll-note .workspace-glyph .inj-ico { width: 14px; height: 14px; }
.docs-library-card .docs-reader-body {
  box-sizing: border-box;
  height: 450px;
  min-height: 450px;
  padding: 20px 22px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border-radius: 6px;
  background: #fff;
  box-shadow: inset 0 0 0 1px #d8e5f3;
  scrollbar-color: #9fbddd #edf4fb;
}
.docs-library-card .docs-reader-body:focus-visible {
  outline: 2px solid #8fb9e8;
  outline-offset: 2px;
}
.docs-library-card .docs-body h2 {
  margin: 20px 0 8px;
  padding-bottom: 6px;
  color: #253e5f;
  font-size: 17px;
}
.docs-library-card .docs-body h2:first-child { margin-top: 0; }
.docs-library-card .docs-body h3 {
  color: #304967;
  font-size: 14px;
}
.docs-library-card .docs-body p,
.docs-library-card .docs-body ul {
  color: #5b6d85;
  font-size: 13px;
  line-height: 1.58;
}
.docs-library-card .docs-body table { font-size: 11px; }
.docs-library-card .docs-body th,
.docs-library-card .docs-body td { border-color: #d8e5f3; }
.docs-library-card .docs-body pre {
  border-radius: 6px;
  background: #13223b;
}
.docs-library-card .docs-placeholder {
  margin-top: 175px;
  color: #8090a5;
  font-size: 13px;
}

@media (max-width: 960px) {
  .docs-library-card { width: min(94vw, 880px); padding: 48px 42px 66px; }
  .docs-library-hero { grid-template-columns: 1fr; gap: 34px; }
  .docs-library-guide { max-width: 650px; padding: 28px 0 0; border-top: 1px solid #d8e6f5; border-left: 0; }
  .docs-story { grid-template-columns: 1fr; gap: 35px; padding: 52px 0; }
  .docs-story.is-reversed .docs-reader,
  .docs-story.is-reversed .docs-story-copy { grid-column: auto; grid-row: auto; }
}
@media (max-width: 620px) {
  .docs-library-card { width: 94vw; max-width: 94vw; padding: 36px 25px 52px; }
  .docs-library-hero h2 { font-size: 34px; }
  .docs-library-hero > div > p { font-size: 14px; }
  .docs-library-intro { grid-template-columns: 1fr; gap: 18px; }
  .docs-library-intro > div { padding: 0; }
  .docs-library-intro > div + div { padding-top: 18px; border-top: 1px solid #d8e6f5; border-left: 0; }
  .docs-story { gap: 28px; padding: 42px 0; }
  .docs-story-copy h3 { font-size: 24px; }
  .docs-story-facts > div { grid-template-columns: 1fr; gap: 5px; }
  .docs-reader { padding: 21px 16px 17px; }
  .docs-reader-header { gap: 10px; }
  .docs-reader-header h4 { font-size: 15px; }
  .docs-reader-scroll-note { grid-template-columns: 24px auto; gap: 5px; font-size: 10px; }
  .docs-reader-scroll-note .workspace-glyph { width: 24px; height: 24px; }
  .docs-library-card .docs-reader-body { height: 400px; min-height: 400px; padding: 16px; }
}

/* ---- Main: platform DOM manipulation chapters ---- */
/* The Main panel should end with its content instead of reserving a fixed tail. */
body[data-page="main"] .plane-card.home-card[data-page="main"] {
  height: auto;
  min-height: 0;
  padding-bottom: 82px;
}

.home-card > .platform-dom-story {
  order: 11;
  width: min(1440px, 100%);
  margin: 116px auto 0;
  padding-top: 52px;
  border-top: 1px solid rgba(148, 163, 184, .24);
  color: var(--slate-700, #334155);
  text-align: left;
}

.platform-dom-story-hero {
  max-width: 860px;
  margin: 0 auto 44px;
  text-align: center;
}

.platform-dom-story-label,
.platform-dom-copy-kicker {
  display: block;
  color: #28568f;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.platform-dom-story-hero h3 {
  margin: 10px 0 14px;
  color: #13233d;
  font-size: 44px;
  line-height: 1.12;
  font-weight: 900;
}

.platform-dom-story-hero p {
  max-width: 740px;
  margin: 0 auto;
  color: #596b83;
  font-size: 18px;
  line-height: 1.58;
}

.platform-dom-row {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(360px, .78fr);
  gap: 60px;
  align-items: center;
  padding: 50px 0 58px;
  border-top: 1px solid #dce8f5;
}

.platform-dom-row.is-reversed .platform-dom-copy {
  grid-column: 1;
  grid-row: 1;
}

.platform-dom-row.is-reversed .platform-dom-visual {
  grid-column: 2;
  grid-row: 1;
}

.platform-dom-visual {
  min-width: 0;
}

.home-card .platform-dom-visual .platform-showcase-card {
  width: 100%;
  margin: 0;
  text-align: left;
}

.platform-dom-visual .youtube-showcase-card {
  height: 540px;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 22px 42px rgba(15, 23, 42, .16);
}

.platform-dom-visual .youtube-showcase-card .yt-replica-shell {
  height: 100%;
  grid-template-columns: 130px minmax(0, 1fr);
}

.platform-dom-visual .youtube-showcase-card .yt-replica-sidebar {
  padding: 14px 10px;
}

.platform-dom-visual .youtube-showcase-card .yt-replica-timer,
.platform-dom-visual .youtube-showcase-card .yt-replica-nav,
.platform-dom-visual .youtube-showcase-card .yt-replica-channel {
  font-size: 10px;
}

.platform-dom-visual .youtube-showcase-card .yt-replica-main {
  padding: 10px 14px 16px;
}

.platform-dom-visual .youtube-showcase-card .yt-replica-top {
  grid-template-columns: 116px minmax(120px, 1fr) 58px;
  gap: 8px;
  min-height: 32px;
}

.platform-dom-visual .youtube-showcase-card .yt-replica-logo { font-size: 15px; }
.platform-dom-visual .youtube-showcase-card .yt-replica-search,
.platform-dom-visual .youtube-showcase-card .yt-replica-create { height: 28px; font-size: 10px; }
.platform-dom-visual .youtube-showcase-card .yt-replica-chips { padding: 10px 0 12px; gap: 6px; }
.platform-dom-visual .youtube-showcase-card .yt-replica-chips span { padding: 5px 7px; font-size: 9px; }
.platform-dom-visual .youtube-showcase-card .yt-replica-grid { gap: 16px 12px; }
.platform-dom-visual .youtube-showcase-card .yt-replica-meta { grid-template-columns: 25px minmax(0, 1fr); gap: 7px; padding-top: 7px; }
.platform-dom-visual .youtube-showcase-card .yt-replica-meta i { width: 23px; height: 23px; }
.platform-dom-visual .youtube-showcase-card .yt-replica-meta h3 { font-size: 10px; line-height: 1.22; }
.platform-dom-visual .youtube-showcase-card .yt-replica-meta p { font-size: 8px; }
.platform-dom-visual .youtube-showcase-card .yt-replica-blocked,
.platform-dom-visual .youtube-showcase-card .yt-replica-allowed { left: 7px; top: 7px; padding: 4px 6px; font-size: 7px; }
.platform-dom-visual .youtube-showcase-card .yt-replica-thumb > strong:not(.war-title) { left: 11px; right: 11px; font-size: 18px !important; }
.platform-dom-visual .youtube-showcase-card .war-title { left: 9px; top: 16px; width: 63%; padding: 4px 6px 6px; }
.platform-dom-visual .youtube-showcase-card .war-title span:first-child { font-size: 22px; }
.platform-dom-visual .youtube-showcase-card .war-title span:last-child { font-size: 20px; }
.platform-dom-visual .youtube-showcase-card .war-subtitle { left: 16px; bottom: 11px; padding: 4px 6px; border-left-width: 4px; font-size: 7px; }
.platform-dom-visual .youtube-showcase-card .war-alert { width: 20px; height: 20px; border-width: 2px; border-radius: 7px; font-size: 13px; }
.platform-dom-visual .youtube-showcase-card .war-plane { width: 26px; height: 9px; }

.platform-dom-visual .tiktok-showcase-card {
  height: 520px;
  grid-template-columns: 130px minmax(0, 1fr);
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 22px 42px rgba(15, 23, 42, .16);
}

.platform-dom-visual .tiktok-showcase-card .tk-sidebar { padding: 13px 10px; }
.platform-dom-visual .tiktok-showcase-card .tk-logo { gap: 6px; margin-bottom: 11px; font-size: 16px; }
.platform-dom-visual .tiktok-showcase-card .tk-logo span { width: 17px; height: 17px; border-radius: 5px; }
.platform-dom-visual .tiktok-showcase-card .tk-search { height: 28px; margin-bottom: 10px; padding: 0 8px; font-size: 10px; }
.platform-dom-visual .tiktok-showcase-card .tk-nav { height: 28px; gap: 7px; padding: 0 5px; font-size: 10px; }
.platform-dom-visual .tiktok-showcase-card .tk-login { height: 31px; margin: 12px 0 10px; font-size: 11px; }
.platform-dom-visual .tiktok-showcase-card .tk-sidebar p { padding-top: 10px; font-size: 9px; line-height: 1.35; }
.platform-dom-visual .tiktok-showcase-card .tk-main { padding: 12px 14px 16px; }
.platform-dom-visual .tiktok-showcase-card .tk-cats { min-height: 30px; gap: 12px; margin-bottom: 10px; font-size: 9px; }
.platform-dom-visual .tiktok-showcase-card .tk-cats .active { padding: 7px 9px; }
.platform-dom-visual .tiktok-showcase-card .tk-grid { gap: 10px; }
.platform-dom-visual .tiktok-showcase-card .tk-thumb { aspect-ratio: 9 / 11; border-radius: 9px; }
.platform-dom-visual .tiktok-showcase-card .tk-thumb strong { left: 8px; right: 8px; bottom: 24px; font-size: 12px; }
.platform-dom-visual .tiktok-showcase-card .tk-thumb em { left: 8px; bottom: 7px; font-size: 8px; }
.platform-dom-visual .tiktok-showcase-card .tk-badge,
.platform-dom-visual .tiktok-showcase-card .tk-ok { left: 7px; top: 7px; padding: 3px 5px; font-size: 7px; }
.platform-dom-visual .tiktok-showcase-card .tk-video p { gap: 5px; margin-top: 5px; font-size: 8px; }
.platform-dom-visual .tiktok-showcase-card .tk-video i { width: 12px; height: 12px; }

.platform-dom-copy { min-width: 0; }

.platform-dom-copy-glyph {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 8px;
  color: #235aa2;
  background: #e8f2ff;
}

.platform-dom-copy-glyph .inj-ico { width: 21px; height: 21px; }

.platform-dom-copy h4 {
  margin: 9px 0 12px;
  color: #1b314f;
  font-size: 29px;
  line-height: 1.15;
  font-weight: 850;
}

.platform-dom-copy > p {
  margin: 0;
  color: #586a82;
  font-size: 15px;
  line-height: 1.58;
}

.platform-dom-facts {
  display: grid;
  gap: 0;
  margin: 24px 0 0;
}

.platform-dom-facts > div {
  display: grid;
  grid-template-columns: 106px minmax(0, 1fr);
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid #dce8f5;
}

.platform-dom-facts > div:last-child { border-bottom: 1px solid #dce8f5; }

.platform-dom-facts dt {
  color: #2e4e76;
  font-size: 11px;
  font-weight: 850;
}

.platform-dom-facts dd {
  margin: 0;
  color: #64758d;
  font-size: 12px;
  line-height: 1.5;
}

@media (max-width: 980px) {
  .home-card > .platform-dom-story { width: min(1120px, 100%); }
  .platform-dom-row { grid-template-columns: 1fr; gap: 34px; padding: 46px 0 52px; }
  .platform-dom-row.is-reversed .platform-dom-copy,
  .platform-dom-row.is-reversed .platform-dom-visual { grid-column: auto; grid-row: auto; }
  .platform-dom-visual { width: 100%; max-width: 780px; margin: 0 auto; }
  .platform-dom-visual .youtube-showcase-card { height: 590px; }
  .platform-dom-visual .youtube-showcase-card .yt-replica-shell { grid-template-columns: 1fr; }
  .platform-dom-visual .youtube-showcase-card .yt-replica-sidebar { display: none; }
  .platform-dom-visual .tiktok-showcase-card { height: 580px; grid-template-columns: 1fr; }
  .platform-dom-visual .tiktok-showcase-card .tk-sidebar { display: none; }
}

@media (max-width: 620px) {
  .home-card > .platform-dom-story { margin-top: 74px; padding-top: 36px; }
  .platform-dom-story-hero { margin-bottom: 32px; text-align: left; }
  .platform-dom-story-hero h3 { font-size: 34px; }
  .platform-dom-story-hero p { font-size: 16px; }
  .platform-dom-row { gap: 28px; padding: 38px 0 44px; }
  .platform-dom-copy h4 { font-size: 24px; }
  .platform-dom-copy > p { font-size: 14px; }
  .platform-dom-facts > div { grid-template-columns: 1fr; gap: 5px; padding: 11px 0; }
  .platform-dom-visual .youtube-showcase-card { height: 570px; }
  .platform-dom-visual .youtube-showcase-card .yt-replica-top { grid-template-columns: 104px minmax(0, 1fr); }
  .platform-dom-visual .youtube-showcase-card .yt-replica-create { display: none; }
  .platform-dom-visual .youtube-showcase-card .yt-replica-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 9px; }
  .platform-dom-visual .youtube-showcase-card .yt-replica-meta h3 { font-size: 8px; }
  .platform-dom-visual .youtube-showcase-card .yt-replica-meta p { display: none; }
  .platform-dom-visual .youtube-showcase-card .yt-replica-thumb > strong:not(.war-title) { font-size: 14px !important; }
  .platform-dom-visual .youtube-showcase-card .war-title span:first-child { font-size: 17px; }
  .platform-dom-visual .youtube-showcase-card .war-title span:last-child { font-size: 15px; }
  .platform-dom-visual .tiktok-showcase-card { height: 545px; }
  .platform-dom-visual .tiktok-showcase-card .tk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .platform-dom-visual .tiktok-showcase-card .tk-video:nth-child(n + 5) { display: none; }
}
