.orbit {
  position: absolute;
  z-index: 2;
  width: 600px;
  height: 600px;
  right: -52px;
  top: 50%;
  margin-top: -300px;
  pointer-events: none;
}
.orbit__disc { position: absolute; left: 110px; top: 110px; width: 380px; height: 380px; border-radius: var(--radius-circle); background: var(--bg-panel); color: var(--text); opacity: 0.62; }
.orbit__glow { position: absolute; left: 116px; top: 124px; width: 480px; height: 480px; z-index: 1; background: radial-gradient(circle at 50% 50%, var(--glow-a) 0%, var(--glow-b) 38%, var(--clear) 68%); color: var(--text); animation: orbit-breathe 4s ease-in-out infinite; }
.ring { position: absolute; inset: 0; }
.ring--outer { --r: 280px; z-index: 2; animation: orbit-spin 120s linear infinite; }
.ring--inner { --r: 190px; z-index: 3; animation: orbit-spin 90s linear infinite reverse; }
.ring__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ring__track { fill: none; stroke-width: 1; }
.ring__track--outer { stroke: var(--orbit-outer); stroke-dasharray: 2 6; }
.ring__track--inner { stroke: var(--orbit-inner); }
.ring__ray { stroke: var(--orbit-ray); stroke-width: 1; stroke-dasharray: 3 5; stroke-linecap: square; }
.node { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform: rotate(var(--a)) translateX(var(--r)) rotate(calc(var(--a) * -1)); }
.a-m90 { --a: -90deg; }
.a-m54 { --a: -54deg; }
.a-m40 { --a: -40deg; }
.a-m18 { --a: -18deg; }
.a-m4 { --a: -4deg; }
.a-18 { --a: 18deg; }
.a-32 { --a: 32deg; }
.a-54 { --a: 54deg; }
.a-68 { --a: 68deg; }
.a-90 { --a: 90deg; }
.a-104 { --a: 104deg; }
.a-126 { --a: 126deg; }
.a-140 { --a: 140deg; }
.a-162 { --a: 162deg; }
.a-176 { --a: 176deg; }
.a-198 { --a: 198deg; }
.a-212 { --a: 212deg; }
.a-234 { --a: 234deg; }
.a-248 { --a: 248deg; }
.a-284 { --a: 284deg; }
.tag { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); white-space: nowrap; font-family: var(--font-mono); font-weight: var(--weight-medium); line-height: 1; background: var(--bg-panel); color: var(--text); border-radius: var(--radius); }
.ring--inner .tag { padding: 8px 11px; font-size: var(--size-small); border: 1px solid var(--orbit-inner); animation: orbit-face-cw 90s linear infinite; }
.ring--outer .tag { padding: 7px 10px; font-size: var(--size-orbit); color: var(--text-muted); border: 1px solid var(--border); animation: orbit-face-ccw 120s linear infinite; }
.tag .k { color: var(--accent); }
.tag .v { color: var(--text); }
.dot { position: absolute; left: 0; top: 0; width: var(--s); height: var(--s); margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2); border-radius: var(--radius-circle); background: var(--accent); color: var(--on-accent); }
.dot::before { content: ""; position: absolute; inset: calc(var(--s) * -2.4); border-radius: var(--radius-circle); background: radial-gradient(circle, var(--halo-strong) 0%, var(--halo-soft) 42%, var(--clear) 70%); color: var(--text); animation: orbit-twinkle 5.5s ease-in-out infinite; }
.dot--lg { --s: 9px; }
.dot--md { --s: 6px; opacity: 0.72; }
.dot--sm { --s: 4px; opacity: 0.5; }
.tw-1::before { animation-delay: 0s; }
.tw-2::before { animation-delay: -1.1s; }
.tw-3::before { animation-delay: -2.3s; }
.tw-4::before { animation-delay: -3.4s; }
.tw-5::before { animation-delay: -4.6s; }
.core { position: absolute; left: 240px; top: 240px; width: 120px; height: 120px; z-index: 4; }
.core__plate { position: absolute; inset: 0; transform: translate(10px, 10px); background: var(--bg-panel-2); color: var(--text); border: 1px solid var(--border); }
.core__face { position: relative; width: 100%; height: 100%; background: var(--bg-panel); color: var(--text); border: 1px solid var(--accent); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; font-family: var(--font-mono); font-size: var(--size-orbit); line-height: 1.25; }
.core__glyph { width: 34px; height: 28px; margin-bottom: 6px; }
.core__line--a { font-weight: var(--weight-semibold); }
.core__line--b { color: var(--text-muted); }
@keyframes orbit-spin { to { transform: rotate(360deg); } }
@keyframes orbit-face-cw { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes orbit-face-ccw { to { transform: translate(-50%, -50%) rotate(-360deg); } }
@keyframes orbit-breathe { 0%, 100% { opacity: 0.62; } 50% { opacity: 1; } }
@keyframes orbit-twinkle { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

.tabs { min-width: 0; }
.tabs [role="tablist"] { display: flex; gap: 0; overflow-x: auto; border: 1px solid var(--border); background: var(--bg-panel); color: var(--text); }
.tabs [role="tab"] {
  position: relative;
  flex: 0 0 auto;
  min-height: 48px;
  padding: 14px 22px;
  border: 0;
  border-right: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-panel);
  color: var(--text);
  font-size: var(--size-nav);
  text-align: left;
}
.tabs [role="tab"]:hover { background: var(--bg-panel-2); color: var(--text); }
.tabs [role="tab"][aria-selected="true"] { background: var(--accent); color: var(--on-accent); }
.tabs [role="tab"][aria-selected="true"] .tab-eyebrow { color: inherit; }
.tabs [role="tab"][aria-selected="true"]::before { content: ""; position: absolute; inset: auto 0 0; height: 3px; background: var(--accent); color: var(--on-accent); }
.tabs [role="tabpanel"] { min-width: 0; }
.inspector { display: grid; grid-template-columns: 290px minmax(0, 1fr); border: 1px solid var(--border); }
.inspector [role="tablist"] { display: flex; flex-direction: column; border: 0; border-right: 1px solid var(--border); }
.inspector [role="tab"] { display: block; width: 100%; min-height: 82px; padding: 18px 24px; border: 0; border-bottom: 1px solid var(--border); white-space: normal; }
.inspector [role="tab"][aria-selected="true"]::before { inset: 0 auto 0 0; width: 3px; height: auto; }
.tab-eyebrow { display: block; margin-bottom: 5px; font-family: var(--font-mono); font-size: var(--size-caption); color: var(--text-muted); letter-spacing: 0.04em; }
.tab-name { font-weight: var(--weight-semibold); }
.inspector__body { min-width: 0; background: var(--bg-panel); color: var(--text); }
.window-chrome { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 14px 22px; border-bottom: 1px solid var(--border); background: var(--bg-panel-2); color: var(--text-muted); font-family: var(--font-mono); font-size: var(--size-small); overflow-wrap: anywhere; }
.chrome-dots { display: inline-flex; gap: 5px; flex-shrink: 0; }
.chrome-dots i { width: 6px; height: 6px; border-radius: var(--radius-circle); background: var(--border-strong); color: var(--text); }
.chrome-dots i:last-child { background: var(--accent); color: var(--on-accent); }
.inspector__copy { padding: 28px; }
.inspector__copy p:last-child { margin-bottom: 0; }
.inspector pre { border-top: 1px solid var(--border); }
.code-key { color: var(--accent); }
.toc { position: sticky; top: 0; z-index: 12; display: flex; gap: 4px; overflow-x: auto; max-width: 100%; padding: 10px; margin-block: 24px; border: 1px solid var(--border); background: var(--bg); color: var(--text); }
.toc a { flex-shrink: 0; display: flex; align-items: center; min-height: 44px; padding: 8px 14px; font-size: var(--size-label); }
.toc a:hover, .toc a[aria-current] { background: var(--accent-wash); color: var(--accent); }
.faq-item { border-bottom: 1px solid var(--border); background: var(--bg); color: var(--text); }
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-item summary { position: relative; padding: 22px 40px 22px 0; font-weight: var(--weight-semibold); list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 10px; top: 20px; font-family: var(--font-mono); font-size: var(--size-subtitle); color: var(--accent); }
.faq-item[open] summary::after { content: "−"; }
.faq-item__answer { padding-bottom: 24px; max-width: 780px; color: var(--text-muted); }
.faq-item__answer > :last-child { margin-bottom: 0; }
.term-card { padding: 26px; border-left: 3px solid var(--border-strong); }
.term-card__term { margin-bottom: 12px; font-size: var(--size-h3); }
.term-card__category { display: block; margin-bottom: 16px; font-family: var(--font-mono); font-size: var(--size-small); color: var(--text-muted); }
.term-card p { color: var(--text-muted); }
.client-card { padding: 28px; }
.client-card__head { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-bottom: 20px; min-width: 0; }
.client-card__icon { width: 56px; height: 56px; flex-shrink: 0; }
.client-card__identity { min-width: 0; flex: 1; }
.client-card__title { font-size: var(--size-h3); margin: 0 0 6px; }
.client-card__version { font-family: var(--font-mono); font-size: var(--size-small); color: var(--text-muted); overflow-wrap: anywhere; }
.client-card__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 4px 9px;
  border: 1px solid var(--border);
  background: var(--bg-panel-2);
  color: var(--text-muted);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: var(--size-caption);
  line-height: 1.5;
  white-space: normal;
  overflow-wrap: anywhere;
}
.badge--first, .badge--recommended { border-color: var(--accent); background: var(--accent-wash); color: var(--accent); }
.badge--retired { border-style: dashed; background: var(--bg-panel-2); color: var(--text-muted); }
.badge-dot { width: 5px; height: 5px; border-radius: var(--radius-circle); background: var(--accent); color: var(--on-accent); flex-shrink: 0; }
.article-card { display: flex; flex-direction: column; padding: 28px; }
.article-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; color: var(--text-muted); font-family: var(--font-mono); font-size: var(--size-small); }
.article-card__title { font-size: var(--size-h3); margin-block: 22px 16px; }
.article-card__title a:hover { color: var(--accent); }
.article-card__summary { color: var(--text-muted); }
.article-card__link { margin-top: auto; padding-top: 16px; color: var(--accent); font-size: var(--size-nav); }
.callout { margin: 24px 0; padding: 22px 24px; border: 1px solid var(--border); border-left: 3px solid var(--accent); background: var(--accent-wash); color: var(--text); }
.callout__label { display: block; font-family: var(--font-mono); font-size: var(--size-small); color: var(--accent); margin-bottom: 10px; }
.callout > :last-child { margin-bottom: 0; }
.callout--warn { border-left-color: var(--warn); background: var(--bg-panel-2); color: var(--text); }
.table-scroll { max-width: 100%; min-width: 0; overflow-x: auto; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; border: 1px solid var(--border); }
.data-table { width: 100%; border-collapse: collapse; font-size: var(--size-nav); text-align: left; }
.data-table th, .data-table td, .prose th, .prose td {
  min-width: 7em;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  overflow-wrap: normal;
  word-break: normal;
}
.data-table th, .prose th { background: var(--bg-panel-2); color: var(--text); font-weight: var(--weight-semibold); }
.data-table td, .prose td { background: var(--bg-panel); color: var(--text); }
.data-table td code, .prose td code { overflow-wrap: anywhere; }
.prose table, .article-body table {
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  min-width: 0;
  border-collapse: collapse;
}
.article-body th, .article-body td { min-width: 7em; padding: 16px 20px; overflow-wrap: normal; word-break: normal; border-bottom: 1px solid var(--border); }
.article-body th { background: var(--bg-panel-2); color: var(--text); }
.article-body td { background: var(--bg-panel); color: var(--text); }
.dl-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 25;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  max-width: calc(100% - 32px);
  min-height: 54px;
  padding: 12px 18px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--on-accent);
  font-weight: var(--weight-semibold);
  font-size: var(--size-nav);
  border-radius: var(--radius);
}
.dl-fab svg { width: 20px; height: 20px; flex-shrink: 0; }
.dl-fab:hover { background: var(--accent-dark); color: var(--on-accent); border-color: var(--accent-dark); }
.article-download { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px; padding: 28px; margin-block: 40px; border: 1px solid var(--border); background: var(--bg-panel-2); color: var(--text); }
.article-download__copy { min-width: 0; flex: 1 1 260px; }
.article-download__title { font-size: var(--size-h3); margin-bottom: 10px; }
.article-download__copy p { color: var(--text-muted); margin-bottom: 0; }
.preview-menu { display: none; position: relative; }
.preview-menu > summary { list-style: none; }
.preview-menu nav { position: absolute; right: 0; top: calc(100% + 8px); width: min(280px, calc(100vw - 32px)); max-height: calc(100dvh - 100px); overflow-y: auto; padding: 12px; border: 1px solid var(--border); background: var(--bg-panel); color: var(--text); }
.preview-menu nav a { display: block; min-height: 44px; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.preview-language > summary { list-style: none; }
.preview-language > summary::-webkit-details-marker, .preview-menu > summary::-webkit-details-marker { display: none; }
.preview-stack { display: grid; gap: 24px; }
.preview-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 8px 0; }
.swatch-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.swatch { min-width: 0; border: 1px solid var(--border); background: var(--bg-panel); color: var(--text); }
.swatch__paint { display: block; height: 68px; border-bottom: 1px solid var(--border); }
.swatch code { display: block; padding: 10px; font-size: var(--size-small); }
.paint-bg { background: var(--bg); color: var(--text); }
.paint-panel { background: var(--bg-panel); color: var(--text); }
.paint-panel2 { background: var(--bg-panel-2); color: var(--text); }
.paint-border { background: var(--border); color: var(--text); }
.paint-border-strong { background: var(--border-strong); color: var(--text); }
.paint-accent { background: var(--accent); color: var(--on-accent); }
.paint-accent-dark { background: var(--accent-dark); color: var(--on-accent); }
.paint-text { background: var(--text); color: var(--on-accent); }
.paint-muted { background: var(--text-muted); color: var(--on-accent); }
.paint-faint { background: var(--text-faint); color: var(--text); }
.paint-success { background: var(--success); color: var(--text); }
.paint-warn { background: var(--warn); color: var(--text); }
.paint-error { background: var(--error); color: var(--on-accent); }
.paint-on-accent { background: var(--on-accent); color: var(--text); }
.paint-inner { background: var(--orbit-inner); color: var(--text); }
.paint-outer { background: var(--orbit-outer); color: var(--text); }
.paint-ray { background: var(--orbit-ray); color: var(--text); }
.paint-grid { background: var(--grid-dot); color: var(--text); }
.paint-mask { background: var(--mask-solid); color: var(--on-accent); }
.paint-halo-strong { background: var(--halo-strong); color: var(--text); }
.paint-halo-soft { background: var(--halo-soft); color: var(--text); }
.paint-glow-a { background: var(--glow-a); color: var(--text); }
.paint-glow-b { background: var(--glow-b); color: var(--text); }
.paint-wash { background: var(--accent-wash); color: var(--text); }
.paint-success-halo { background: var(--success-halo); color: var(--text); }
.paint-veil { background: var(--veil); color: var(--text); }
.paint-clear { background: var(--clear); color: var(--text); }
@media (max-width: 1240px) {
  .orbit { transform: scale(0.84); transform-origin: 100% 50%; right: -40px; }
}
@media (max-width: 1100px) {
  .preview-menu { display: block; }
}
@media (max-width: 980px) {
  .orbit { position: relative; right: auto; top: auto; left: 50%; margin: -110px 0 -110px -300px; transform: scale(0.58); transform-origin: 50% 50%; flex-shrink: 0; }
  .inspector { grid-template-columns: 240px minmax(0, 1fr); }
}
@media (max-width: 768px) {
  .inspector { grid-template-columns: minmax(0, 1fr); }
  .inspector [role="tablist"] { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--border); }
  .inspector [role="tab"] { width: auto; min-height: 72px; padding: 14px 20px; white-space: nowrap; border-right: 1px solid var(--border); border-bottom: 0; }
  .inspector [role="tab"][aria-selected="true"]::before { inset: auto 0 0; width: auto; height: 3px; }
  .swatch-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .inspector__copy, .client-card, .article-card, .term-card { padding: 20px; }
  .callout { padding: 18px; }
  .swatch-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dl-fab { right: 16px; bottom: 16px; }
  .article-download { padding: 20px; }
}
@media (max-width: 560px) {
  .orbit { transform: scale(0.5); margin-top: -140px; margin-bottom: -140px; }
}
@media (prefers-reduced-motion: reduce) {
  .ring, .tag, .orbit__glow, .dot::before { animation: none; }
}