.if {
  --if-bg: #081008;
  --if-panel: #0c180d;
  --if-panel-2: #102012;
  --if-line: #315f35;
  --if-green: #70db79;
  --if-amber: #e0aa39;
  --if-text: #d7ddc8;
  --if-copy: #aebbaa;
  --if-muted: #829184;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  color: var(--if-text);
  background:
    radial-gradient(circle at 50% 18%, #17351b 0, transparent 30%),
    linear-gradient(#35603818 1px, transparent 1px),
    linear-gradient(90deg, #35603818 1px, transparent 1px),
    var(--if-bg);
  background-size: auto, 32px 32px, 32px 32px, auto;
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
}

.if *, .if *::before, .if *::after { box-sizing: border-box; }
.if::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 30;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, transparent 0 3px, #0002 3px 4px);
}
.if a, .if button { color: inherit; font: inherit; }
.if a:focus-visible, .if button:focus-visible { outline: 2px solid var(--if-amber); outline-offset: 4px; }
.if-wrap { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }

.if-header {
  min-height: 76px;
  border-bottom: 1px solid #315f3588;
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  background: #081008cc;
  backdrop-filter: blur(10px);
}
.if-nav { display: flex; align-items: center; gap: 24px; }
.if-brand { margin-right: auto; display: inline-flex; align-items: center; text-decoration: none; }
.if-brand svg { width: 38px; height: 38px; display: block; color: var(--if-green); filter: drop-shadow(0 0 7px #70db7944); }
.if-revision { color: #547058; font-size: 10px; letter-spacing: .16em; }
.if-nav-link { padding: 0; border: 0; color: #9aac9c; background: transparent; font-size: 11px; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; cursor: pointer; }
.if-nav-link:hover { color: var(--if-amber); }

.if-hero {
  min-height: calc(100vh - 76px);
  padding: clamp(60px, 9vh, 100px) 0 72px;
  position: relative;
  z-index: 10;
  display: grid;
  place-items: center;
  text-align: center;
}
.if-hero-inner { width: min(900px, 100%); }
.if-eyebrow { margin: 0 0 22px; color: var(--if-green); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; }
.if h1 { max-width: 840px; margin: 0 auto; color: var(--if-text); font-size: clamp(40px, 7vw, 78px); font-weight: 700; line-height: .98; letter-spacing: -.055em; }
.if h1 span { color: var(--if-amber); }
.if-intro { max-width: 650px; margin: 24px auto 38px; color: var(--if-copy); font-size: clamp(15px, 2vw, 18px); }

.if-install {
  position: relative;
  overflow: hidden;
  border: 2px solid var(--if-green);
  border-radius: 8px;
  background: #060c07ee;
  box-shadow: 0 0 0 6px #70db7910, 0 28px 80px #0008;
  text-align: left;
}
.if-install-head {
  min-height: 42px;
  padding: 0 14px;
  border-bottom: 1px solid var(--if-line);
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--if-panel-2);
  color: #6f8e72;
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.if-dot { width: 9px; height: 9px; border-radius: 50%; background: #6f3734; }
.if-dot:nth-child(2) { background: #9c792b; }
.if-dot:nth-child(3) { background: #3b8142; }
.if-install-head span:nth-child(4) { margin-left: 7px; }
.if-copy-label { margin-left: auto; color: var(--if-green); }
.if-command {
  width: 100%;
  min-height: 116px;
  padding: 28px clamp(20px, 5vw, 44px);
  border: 0;
  display: flex;
  align-items: center;
  gap: 18px;
  color: #eff5df;
  background: transparent;
  cursor: pointer;
  font-size: clamp(15px, 2.5vw, 25px);
  line-height: 1.35;
  text-align: left;
}
.if-prompt { flex: 0 0 auto; color: var(--if-green); }
.if-command code { overflow-wrap: anywhere; }
.if-copy-state { margin-left: auto; flex: 0 0 auto; color: var(--if-amber); font-size: 12px; letter-spacing: .1em; }
.if-command:hover .if-copy-state { color: #ffd36d; }
.if-after { margin-top: 22px; display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 22px; color: var(--if-muted); font-size: 11px; }
.if-after span::before { content: "✓"; margin-right: 7px; color: var(--if-green); }
.if-actions { margin-top: 34px; display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.if-button {
  min-height: 46px;
  padding: 11px 22px;
  border: 1px solid var(--if-amber);
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e0aa3918;
  color: var(--if-amber);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}
.if-button:hover { background: #e0aa3928; }
.if-button-secondary { border-color: #436847; background: transparent; color: #91a895; }

.if-facts { border-top: 1px solid #315f3577; border-bottom: 1px solid #315f3577; position: relative; z-index: 10; background: #081008bb; }
.if-facts-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.if-fact { padding: 34px 28px; text-align: center; }
.if-fact + .if-fact { border-left: 1px solid #315f3577; }
.if-fact strong { display: block; color: var(--if-amber); font-size: 20px; }
.if-fact span { color: var(--if-muted); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }

.if-section { padding: clamp(72px, 9vw, 112px) 0; border-bottom: 1px solid #315f3555; position: relative; z-index: 10; }
.if-section-head { max-width: 760px; margin-bottom: 42px; }
.if-home .if-section-head { max-width: 680px; margin-inline: auto; }
.if-wrap-narrow { max-width: 680px; }
.if-label { margin: 0 0 12px; color: var(--if-green); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; }
.if h2 { margin: 0; color: var(--if-text); font-size: clamp(32px, 5vw, 56px); line-height: 1; letter-spacing: -.045em; }
.if-section-copy { max-width: 680px; margin: 18px 0 0; color: var(--if-copy); font-size: 15px; }
.if-quality-chart { max-width: 680px; margin: 0 0 28px; padding: 24px; border: 1px solid var(--if-line); background: var(--if-panel); }
.if-quality-chart-caption { margin-bottom: 24px; color: var(--if-copy); font-size: 12px; }
.if-quality-chart-row + .if-quality-chart-row { margin-top: 20px; }
.if-quality-chart-label { display: flex; justify-content: space-between; gap: 16px; color: var(--if-text); font-size: 13px; }
.if-quality-chart-label strong { color: var(--if-text); font-size: 18px; }
.if-quality-chart-row.amber .if-quality-chart-label strong { color: var(--if-green); }
.if-quality-chart-row.sol .if-quality-chart-label strong { color: var(--if-amber); }
.if-quality-chart-note { margin: 22px 0 0; color: var(--if-green); font-size: 12px; letter-spacing: .04em; }
.if-quality-chart-track { position: relative; height: 22px; margin-top: 8px; border: 1px solid var(--if-line); background: var(--if-panel-2); }
.if-quality-chart-fill { display: block; height: 100%; }
/* Zoomed 80–100% scale: width = (score - 80) / 20. The actual % is shown in the label. */
.if-quality-chart-amber { width: 40%; background: var(--if-green); }
.if-quality-chart-sol { width: 30%; background: var(--if-amber); }
.if-quality-chart-axis { display: flex; justify-content: space-between; color: var(--if-copy); font-size: 11px; }
.if-quality-chart .if-section-copy { color: var(--if-green); font-size: 12px; }
@media (max-width: 480px) {
  .if-quality-chart { padding: 18px; }
  .if-quality-chart-label { font-size: 11px; }
}

/* Illustrative, not live quota. Each 3%-wide bucket travels 87.5 plot
   percentage points in 35s (2.5 points/s), staggered by 2.5s. At 88%
   its trailing edge reaches 28%; amber then fades for 1s while moving.
   The invisible tail wraps to 102%, outside the clipped plot.
   Reduced motion shows a static snapshot: amber bucket inside the
   reclaim gutter, green buckets evenly spread across the counted
   region. */
.if-window { max-width: 680px; min-width: 0; margin: 0; border: 1px solid #315f3588; border-radius: 6px; overflow: hidden; background: linear-gradient(145deg, #70db7906, transparent 65%), #09130bf5; box-shadow: inset 0 1px 0 #b0f5b506, 0 8px 28px #00000018; }
.if-window-caption { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; padding: 14px 18px 12px; border-bottom: 1px solid #315f3555; color: var(--if-text); font-size: 12px; line-height: 1.5; }
.if-window-status { flex: 0 0 5px; width: 5px; height: 5px; border-radius: 50%; background: var(--if-green); box-shadow: 0 0 6px #70db7926; }
.if-window-note { margin-left: auto; color: var(--if-muted); font-size: 10px; }
.if-history { padding: 14px 18px 0; }
.if-history-counted { margin: 0 0 12px; color: var(--if-copy); font-size: 11px; }
.if-history-regions { display: grid; grid-template-columns: 28% 1fr; margin-bottom: 10px; color: var(--if-copy); font-size: 11px; line-height: 1.5; }
.if-history-regions span:first-child { padding-right: 10px; color: var(--if-amber); }
.if-history-regions span:last-child { padding-left: 10px; }
.if-history-plot { position: relative; height: 120px; overflow: hidden; border-bottom: 1px solid #8cd895bb; }
.if-history-plot::before { content: ''; position: absolute; inset: 0 72% 0 0; background: linear-gradient(to bottom, #d4a44a08, #d4a44a12); }
.if-history-area { position: absolute; left: 28%; right: 0; top: 0; height: 120px; background: repeating-linear-gradient(to top, transparent 0 29px, #315f3540 29px 30px), linear-gradient(to top, #70db790a, #70db7902); border-left: 1px solid #d4a44a88; }
.if-history-bars { position: absolute; inset: 0; }
.if-history-oldest, .if-history-recent i { position: absolute; bottom: 0; left: 102%; width: 3%; height: 52px; animation: if-history-drift 35s linear infinite, if-history-expire 35s linear infinite; animation-delay: var(--history-delay); background: linear-gradient(to bottom, #467e52, #294d34); border-top: 2px solid #8cd895; }
.if-history-oldest { --history-delay: -28s; --history-static-left: 22%; }
.if-history-oldest b { position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); color: var(--if-copy); font-size: 10px; font-weight: 500; }
.if-history-recent { position: absolute; inset: 0; }
.if-history-recent i:nth-child(1) { --history-delay: -25.5s; --history-static-left: 30%; height: 62px; }
.if-history-recent i:nth-child(2) { --history-delay: -23s; --history-static-left: 35%; height: 88px; }
.if-history-recent i:nth-child(3) { --history-delay: -20.5s; --history-static-left: 40%; height: 46px; }
.if-history-recent i:nth-child(4) { --history-delay: -18s; --history-static-left: 45%; height: 104px; }
.if-history-recent i:nth-child(5) { --history-delay: -15.5s; --history-static-left: 50%; height: 72px; }
.if-history-recent i:nth-child(6) { --history-delay: -13s; --history-static-left: 55%; height: 92px; }
.if-history-recent i:nth-child(7) { --history-delay: -10.5s; --history-static-left: 60%; height: 56px; }
.if-history-recent i:nth-child(8) { --history-delay: -8s; --history-static-left: 65%; height: 112px; }
.if-history-recent i:nth-child(9) { --history-delay: -5.5s; --history-static-left: 70%; height: 82px; }
.if-history-recent i:nth-child(10) { --history-delay: -3s; --history-static-left: 75%; height: 48px; }
.if-history-recent i:nth-child(11) { --history-delay: -0.5s; --history-static-left: 80%; height: 98px; }
.if-history-recent i:nth-child(12) { --history-delay: -33s; --history-static-left: 85%; height: 68px; }
.if-history-recent i:nth-child(13) { --history-delay: -30.5s; --history-static-left: 90%; height: 78px; }
.if-history-axis { margin: 8px 0 0 28%; position: relative; display: flex; justify-content: space-between; gap: 12px; color: var(--if-copy); font-size: 10px; line-height: 1.5; }
.if-history-axis span:first-child { color: var(--if-amber); }
.if-history-axis span { white-space: nowrap; }
.if-history-direction { margin: 14px 0 0; padding-top: 10px; border-top: 1px solid #315f3555; color: var(--if-copy); font-size: 11px; line-height: 1.6; }
.if-history-feedback { margin: 4px 0 0; padding-bottom: 12px; color: var(--if-green); font-size: 11px; line-height: 1.6; animation: if-history-feedback 35s linear infinite; animation-delay: -28s; }
@keyframes if-history-drift {
  from { transform: translateX(0); }
  to { transform: translateX(-2916.666667%); }
}
@keyframes if-history-expire {
  0% { animation-timing-function: steps(1, end); opacity: 1; background: linear-gradient(to bottom, #467e52, #294d34); border-top-color: #8cd895; }
  88% { opacity: 1; background: linear-gradient(to bottom, #84662d, #58451f); border-top-color: var(--if-amber); }
  90.857143%, 100% { opacity: 0; background: linear-gradient(to bottom, #84662d, #58451f); border-top-color: var(--if-amber); }
}
@keyframes if-history-feedback {
  0% { opacity: 0; animation-timing-function: steps(1, end); }
  88%, 96% { opacity: 1; }
  99%, 100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .if-history-oldest, .if-history-recent i, .if-history-feedback { animation: none; }
  .if-history-oldest, .if-history-recent i { left: var(--history-static-left); transform: none; }
  .if-history-oldest { opacity: .7; background: linear-gradient(to bottom, #84662d, #58451f); border-top-color: var(--if-amber); }
  .if-history-feedback { opacity: 1; }
}
@media (max-width: 480px) {
  .if-window-caption { padding: 12px; }
  .if-window-note { flex-basis: 100%; margin-left: 13px; }
  .if-history { padding: 12px 12px 0; }
  .if-history-direction, .if-history-feedback { font-size: 10px; }
}

.if-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--if-line); background: #08100888; }
.if-card { min-height: 250px; padding: 28px; position: relative; }
.if-card + .if-card { border-left: 1px solid var(--if-line); }
.if-card-index { display: block; margin-bottom: 52px; color: var(--if-green); font-size: 11px; letter-spacing: .14em; }
.if-card h3 { margin: 0 0 12px; color: var(--if-amber); font-size: 17px; }
.if-card p { margin: 0; color: var(--if-copy); font-size: 13px; }

.if-testimonials { display: grid; }
.if-testimonials:focus-visible { outline: 2px solid var(--if-amber); outline-offset: 4px; }
.if-testimonial { grid-area: 1 / 1; animation: if-testimonial-fade 28s ease-in-out infinite; min-width: 0; margin: 0; padding: clamp(24px, 3vw, 36px); border: 1px solid var(--if-line); background: var(--if-panel); display: flex; flex-direction: column; gap: 28px; }
.if-testimonial blockquote { margin: 0; color: var(--if-text); font-size: 15px; line-height: 1.8; }
.if-testimonial blockquote p { margin: 0; }
.if-testimonial figcaption { margin-top: auto; padding-top: 20px; border-top: 1px solid var(--if-line); color: var(--if-green); font-size: 12px; }
/* Two quotes share one grid cell, keeping the height steady during fades. */
.if-testimonial:nth-child(2) { animation-delay: -14s; }
.if-testimonials:hover .if-testimonial,
.if-testimonials:focus-within .if-testimonial { animation-play-state: paused; }
@keyframes if-testimonial-fade {
  0%, 45%, 100% { opacity: 1; }
  50%, 95% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .if-testimonials { gap: 18px; }
  .if-testimonial { grid-area: auto; animation: none; opacity: 1; }
}

.if-flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.if-step { min-height: 220px; padding: 26px; border: 1px solid var(--if-line); background: var(--if-panel); }
.if-step strong { width: 38px; height: 38px; margin-bottom: 36px; border: 1px solid var(--if-green); display: grid; place-items: center; color: var(--if-green); font-size: 11px; }
.if-step h3 { margin: 0 0 10px; color: var(--if-text); font-size: 16px; }
.if-step p { margin: 0; color: var(--if-muted); font-size: 13px; }

.if-price { padding: clamp(32px, 6vw, 68px); border: 2px solid var(--if-amber); display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; background: #e0aa3908; box-shadow: 0 0 0 6px #e0aa3908; }
.if-price strong { display: block; color: var(--if-amber); font-size: clamp(34px, 6vw, 62px); line-height: 1; }
.if-price p { max-width: 650px; margin: 14px 0 0; color: var(--if-copy); }
.if-tools { display: flex; flex-wrap: wrap; gap: 10px; }
.if-tool { padding: 10px 14px; border: 1px solid var(--if-line); color: #9eafa0; background: #0c180d99; font-size: 11px; letter-spacing: .08em; }
.if-final { text-align: center; }
.if-final h2 { max-width: 780px; margin-inline: auto; }
.if-final .if-install { max-width: 900px; margin: 36px auto 0; }
.if-directory { padding-block: 32px; border-bottom: 1px solid #315f3555; position: relative; z-index: 10; }
.if-directory-copy { color: var(--if-copy); font-size: 12px; line-height: 1.8; }
.if-directory-copy p { margin: 0; }
.if-directory-copy a { display: inline-flex; align-items: center; min-height: 44px; color: var(--if-green); text-decoration: underline; text-underline-offset: 3px; }
.if-footer { padding: 30px 0; position: relative; z-index: 10; color: #526b55; font-size: 10px; letter-spacing: .1em; text-align: center; }

/* Shared authenticated-product shell. The dashboard pages keep their dense,
   task-oriented layout while using the same materials as the public site. */
.brand-app {
  --app-bg: #081008;
  --app-panel: #0c180d;
  --app-panel-2: #102012;
  --app-line: #315f35;
  --app-green: #70db79;
  --app-amber: #e0aa39;
  --app-text: #d7ddc8;
  --app-copy: #aebbaa;
  --app-muted: #829184;
  color: var(--app-text);
  background:
    radial-gradient(circle at 58% 0%, #17351b 0, transparent 30%),
    linear-gradient(#35603818 1px, transparent 1px),
    linear-gradient(90deg, #35603818 1px, transparent 1px),
    var(--app-bg) !important;
  background-size: auto, 32px 32px, 32px 32px, auto !important;
  background-attachment: fixed !important;
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
}
.brand-app-chrome {
  border-color: #315f3588 !important;
  background: #081008e8 !important;
  backdrop-filter: blur(10px);
}
.brand-app .bg-black { background-color: var(--app-panel) !important; }
.brand-app .bg-zinc-900 { background-color: var(--app-panel-2) !important; }
.brand-app .text-white { color: var(--app-text) !important; }
.brand-app .text-zinc-300, .brand-app .text-zinc-400 { color: var(--app-copy) !important; }
.brand-app .text-zinc-500 { color: var(--app-muted) !important; }
.brand-app .border-zinc-700, .brand-app .border-zinc-800 { border-color: var(--app-line) !important; }
.brand-app input, .brand-app select, .brand-app textarea { background-color: var(--app-panel-2) !important; border-color: var(--app-line) !important; color: var(--app-text) !important; }
.brand-app table { background: #081008aa; }
.brand-app th { color: var(--app-green); letter-spacing: .08em; text-transform: uppercase; }
.brand-app .btn-primary, .btn-primary {
  border-color: var(--app-amber, #e0aa39) !important;
  background: var(--app-amber, #e0aa39) !important;
  color: #081008 !important;
}
.brand-app .btn-primary:hover, .btn-primary:hover { box-shadow: 4px 4px 0 var(--app-green, #70db79) !important; }
.brand-app .btn-primary:focus-visible, .btn-primary:focus-visible { outline-color: var(--app-amber, #e0aa39) !important; }

.site-header { background: #081008f5; }
.site-header-inner { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.site-header .if-brand { flex-shrink: 0; }
.site-nav-desktop { display: flex; align-items: center; gap: 24px; }
.if .site-nav-link, .if .site-nav-language { min-height: 44px; display: inline-flex; align-items: center; gap: 6px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--if-copy); font-size: 12px; white-space: nowrap; text-decoration: none; cursor: pointer; }
.if .site-nav-link:hover, .if .site-nav-link[aria-current="page"] { color: var(--if-green); border-bottom-color: var(--if-green); }
.if .site-nav-language { color: var(--if-muted); padding-inline: 10px; border-left: 1px solid var(--if-line); }
.if .site-nav-cta { color: var(--if-amber); font-size: 11px; }
.site-menu { display: none; }
.site-menu summary { min-width: 90px; min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 10px 14px; border: 1px solid var(--if-line); color: var(--if-green); cursor: pointer; font-size: 12px; list-style: none; }
.site-menu summary::-webkit-details-marker { display: none; }
.site-menu summary:focus-visible { outline: 2px solid var(--if-amber); outline-offset: 4px; }
.site-menu-symbol::before { content: "+"; font-size: 20px; }
.site-menu[open] .site-menu-symbol::before { content: "−"; }
.site-menu-links { position: absolute; top: calc(100% - 1px); left: 0; right: 0; max-height: calc(100dvh - 76px); overflow-y: auto; padding: 16px 20px 24px; display: grid; gap: 8px; background: var(--if-bg); border-bottom: 1px solid var(--if-line); box-shadow: 0 16px 28px #0005; }
.site-menu-links .site-nav-link { padding-inline: 12px; }
.site-menu-links .site-nav-cta { margin-top: 8px; }
@media (max-width: 900px) {
  .site-nav-desktop { display: none; }
  .site-menu { display: block; }
}

body:has(.brand-docs) { overflow: clip visible; }
.brand-app.brand-docs { overflow: clip; background: radial-gradient(ellipse at 60% 0, #17351b55, transparent 50%), linear-gradient(#3560380a 1px, transparent 1px), linear-gradient(90deg, #3560380a 1px, transparent 1px), var(--if-bg) !important; background-size: auto, 32px 32px, 32px 32px, auto !important; }
.brand-docs::after { display: none; }
.brand-docs .site-header { position: sticky; top: 0; z-index: 40; }
.brand-docs :is(a, button, select, pre):focus-visible { outline: 2px solid var(--if-amber); outline-offset: 3px; }
.brand-docs :is(button, select) { min-width: 44px; min-height: 44px; }
.docs-layout { gap: 64px; align-items: flex-start; }
/* Docs area sub-navigation, shared by the /docs hub and the client guides. */
.docs-area-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 1120px; margin: 0 auto; padding: 20px 24px 0; }
.docs-area-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border: 1px solid var(--if-line); border-radius: 4px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--if-muted); text-decoration: none; }
.docs-area-nav a:hover { color: var(--if-copy); border-color: var(--if-green); }
.docs-area-nav a[aria-current="page"] { color: var(--if-green); border-color: var(--if-green); background: #70db790f; }
.docs-area-nav a:focus-visible { outline: 2px solid var(--if-amber); outline-offset: 2px; }
.docs-sidebar { width: 216px; flex-shrink: 0; position: sticky; top: 76px; padding: 44px 0 32px; max-height: calc(100dvh - 76px); overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--if-line) transparent; }
.docs-nav-title, .docs-nav-group { color: var(--if-muted); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }
.docs-nav-title { color: var(--if-green); margin: 0 0 32px; }
.docs-nav-group { margin: 24px 0 10px; }
.brand-docs .docs-nav-item { width: 100%; padding: 10px 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid transparent; border-left-width: 2px; color: var(--if-copy); background: transparent; text-align: left; font-size: 13px; cursor: pointer; }
.brand-docs .docs-nav-item:hover { color: var(--if-text); background: #70db7908; }
.brand-docs .docs-nav-item[aria-current="page"] { color: var(--if-green); border-color: #315f3570; border-left-color: var(--if-green); background: #70db790c; }
.docs-nav-marker { visibility: hidden; }
.docs-nav-item[aria-current="page"] .docs-nav-marker { visibility: visible; }
.docs-mobile-nav { display: none; }
.docs-content { flex: 1; width: 100%; min-width: 0; padding: 44px 0 96px; color: var(--if-copy); font-size: 14px; line-height: 1.8; scroll-margin-top: 76px; }
.docs-content:focus { outline: none; }
.docs-breadcrumb { margin: 0 0 28px; color: var(--if-muted); font-size: 11px; }
.docs-breadcrumb span { margin-inline: 12px; color: var(--if-line); }
.brand-docs h1 { margin: 0 0 16px; font-size: clamp(36px, 4vw, 52px); line-height: 1.08; letter-spacing: -.045em; }
.brand-docs h2 { margin: 0 0 18px; font-size: 21px; line-height: 1.3; text-transform: none; letter-spacing: -.025em; }
.brand-docs h3 { color: var(--if-text); }
.brand-docs .docs-content a { color: var(--if-green); text-decoration: underline; text-underline-offset: 4px; }
.brand-docs .docs-content a:hover { color: var(--if-amber); }
.docs-content ol { padding-left: 24px; }
.docs-content li { padding-left: 4px; }
.docs-content li::marker { color: var(--if-amber); }
.docs-content code { font-family: inherit; overflow-wrap: anywhere; }
.docs-code { margin: 24px 0; border: 1px solid var(--if-line); border-radius: 6px; background: #060c07; overflow: hidden; }
.brand-docs .docs-install { border: 2px solid var(--if-green); box-shadow: 0 0 0 4px #70db7908; }
.docs-code-head { min-height: 44px; padding: 0 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--if-panel-2); border-bottom: 1px solid var(--if-line); }
.docs-code-label { display: flex; align-items: center; gap: 12px; min-width: 0; overflow-wrap: anywhere; color: var(--if-copy); font-size: 11px; }
.docs-terminal-mark { color: var(--if-green); }
.brand-docs .docs-copy { flex-shrink: 0; padding-inline: 8px; color: var(--if-amber); font-size: 10px; letter-spacing: .1em; }
.docs-copy:hover { background: #e0aa3910; }
.docs-code-body { margin: 0; padding: 22px; max-width: 100%; overflow-x: auto; color: var(--if-text); font-size: 13px; line-height: 1.8; }
.brand-docs .docs-install-command { width: 100%; padding: 28px 22px; text-align: left; color: var(--if-text); font-size: clamp(13px, 1.6vw, 18px); line-height: 1.6; }
.docs-install-command:hover { background: #70db7906; }
.brand-docs .docs-install-command code { white-space: normal; overflow-wrap: anywhere; }
.brand-docs .docs-install-command > span { color: var(--if-green); }
.brand-docs .docs-install-command:focus-visible { outline-offset: -4px; }
.docs-settings { margin-block: 20px; padding: 20px; border: 1px solid var(--if-line); background: var(--if-panel); }
.docs-clients { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.brand-docs .docs-client { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; color: var(--if-copy); font-size: 12px; text-align: left; border: 1px solid var(--if-line); background: var(--if-panel); cursor: pointer; }
.docs-client span { color: var(--if-green); }
.brand-docs .docs-client:hover { border-color: var(--if-green); color: var(--if-text); }
@media (max-width: 900px) { .docs-layout { gap: 32px; } .docs-sidebar { width: 190px; } .docs-clients { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) {
  .docs-layout { gap: 0; }
  .docs-sidebar { display: none; }
  .docs-mobile-nav { display: block; position: sticky; top: 76px; z-index: 15; width: 100%; padding-block: 20px; border-bottom: 1px solid var(--if-line); background: var(--if-bg); }
  .docs-mobile-nav label { display: block; margin-bottom: 10px; color: var(--if-green); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
  .docs-mobile-nav select { width: 100%; padding: 10px 12px; border: 1px solid var(--if-line); border-radius: 0; font: inherit; font-size: 16px; }
  .docs-content { padding-top: 28px; padding-bottom: 64px; scroll-margin-top: 190px; }
  .docs-breadcrumb { margin-bottom: 22px; }
  .docs-code-head { padding-inline: 10px; }
  .docs-code-body { padding: 16px; font-size: 12px; }
  .brand-docs .docs-install-command { padding: 22px 16px; }
}

/* Live capacity window on the dashboard: 36 cells = the rolling window.
   Filled cells scale with used/limit. On a poll where `used` rises, the newly
   gained cells animate in from the right (newest); where `used` falls, the
   oldest (leftmost) cells fade out — the "dropping off" of expired capacity. */
.q-window { margin: 8px 0 0; }
.q-window-track { display: flex; align-items: center; gap: 3px; }
.q-window-cell { flex: 1 1 0; height: 12px; min-height: 12px; border: 1px solid #2a3d2b; background: transparent; }
.q-window-cell-filled { background: #70db79; border-color: #70db79; }
.q-window-cell-new { background: #e0aa39; border-color: #e0aa39; animation: q-window-in .45s ease-out; }
.q-window-cell-dropping { background: #70db79; border-color: #2a3d2b; animation: q-window-out .45s ease-in; }
.q-window-ruler { display: flex; justify-content: space-between; margin-top: 6px; color: #547058; font-size: 10px; letter-spacing: .06em; }
@keyframes q-window-in { from { transform: translateX(40%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes q-window-out { from { opacity: 1; } to { opacity: .15; } }
/* Freeze the transient cells on reduced-motion and small/touch screens: a new
   cell reads as filled, a dropping cell as empty — a correct static strip with
   no motion. (prefers-reduced-motion already kills animation globally; this
   also covers touch devices that do not set that preference.) */
@media (max-width: 1023px) {
  .q-window-cell-new, .q-window-cell-dropping { animation: none; }
}

@media (min-width: 768px) { .if { margin: -3rem; } }
@media (max-width: 767px) { .if { margin: -1rem; } }
@media (max-width: 700px) {
  .if-revision, .if-nav-secondary { display: none; }
  .if-nav { gap: 14px; }
  .if-hero { min-height: auto; }
  .if-command { align-items: flex-start; flex-wrap: wrap; }
  .if-command code { min-width: 0; flex: 1; }
  .if-copy-state { width: 100%; text-align: right; }
  .if-facts-grid, .if-grid, .if-flow, .if-price { grid-template-columns: 1fr; }
  .if-fact + .if-fact, .if-card + .if-card { border-top: 1px solid var(--if-line); border-left: 0; }
  .if-card { min-height: 210px; }
  .if-card-index { margin-bottom: 30px; }
  .if-price { text-align: center; }
}
.if-nav { flex-wrap: wrap; padding-block: 10px; }
.if-nav-link, .if-brand { min-height: 44px; display: inline-flex; align-items: center; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}

.discord-link, .if .discord-link { display: inline-flex; align-items: center; min-width: 44px; min-height: 44px; color: #aebbaa; }
.discord-link:hover, .if .discord-link:hover { color: #e0aa39; }
.discord-link:focus-visible { outline: 2px solid #e0aa39; outline-offset: 4px; }
