/* Eggactyl site + admin. One stylesheet; colours and type follow the Claude Design canvas. */

:root {
  --bg: #0D0A18;
  --bg-deep: #08060F;
  --panel: #151027;
  --side: #120E22;
  --text: #F1ECFF;
  --text-2: #D9D1F2;
  --text-3: #CBC2E6;
  --text-4: #B4A9D6;
  --text-5: #9D93C0;
  --body: #D2CAEC;
  --accent: #A78BFA;
  --accent-2: #C4B5FD;
  --accent-3: #DDD6FE;
  --accent-4: #EDE9FE;
  --on-accent: #140A2B;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --danger: #FDA4AF;
  --display: 'Unbounded', system-ui, sans-serif;
  --sans: 'DM Sans', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--accent-2); }
a:hover { color: var(--accent-4); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
::placeholder { color: #8F84B3; opacity: 1; }
svg { flex: none; }
code { font-family: var(--mono); }
[hidden] { display: none !important; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; padding: 10px 16px; border-radius: 10px; background: var(--accent); color: var(--on-accent); font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 16px; color: var(--on-accent); }

/* ------------------------------------------------------------ background */

.page { position: relative; overflow: hidden; min-height: 100vh; }
.blobs { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.blob { position: absolute; border-radius: 50%; animation-timing-function: ease-in-out; animation-iteration-count: infinite; }
.blob-h1 { top: -220px; left: -180px; width: 640px; height: 640px; background: #7C3AED; opacity: .55; filter: blur(110px); animation-name: drift1; animation-duration: 24s; }
.blob-h2 { top: 60px; right: -220px; width: 580px; height: 580px; background: #C026D3; opacity: .32; filter: blur(120px); animation-name: drift2; animation-duration: 30s; }
.blob-h3 { top: 560px; left: 28%; width: 500px; height: 500px; background: #4F46E5; opacity: .32; filter: blur(120px); animation-name: drift3; animation-duration: 26s; }
.blob-h4 { top: 1700px; left: -240px; width: 620px; height: 620px; background: #6D28D9; opacity: .28; filter: blur(130px); animation-name: drift2; animation-duration: 30s; }
.blob-h5 { top: 2600px; right: -180px; width: 540px; height: 540px; background: #A21CAF; opacity: .22; filter: blur(130px); animation-name: drift1; animation-duration: 24s; }
.blob-d1 { top: -260px; left: -200px; width: 600px; height: 600px; background: #7C3AED; opacity: .4; filter: blur(120px); animation-name: drift1; animation-duration: 26s; }
.blob-d2 { top: -120px; right: -240px; width: 560px; height: 560px; background: #C026D3; opacity: .22; filter: blur(130px); animation-name: drift2; animation-duration: 32s; }
.blob-d3 { top: 1300px; right: -200px; width: 520px; height: 520px; background: #4F46E5; opacity: .2; filter: blur(130px); animation-name: drift1; animation-duration: 26s; }

@keyframes eggFloat { 0%, 100% { transform: translateY(0) rotate(-2.5deg); } 50% { transform: translateY(-24px) rotate(2.5deg); } }
@keyframes eggShadow { 0%, 100% { transform: scaleX(1); opacity: .6; } 50% { transform: scaleX(.72); opacity: .28; } }
@keyframes glowPulse { 0%, 100% { transform: scale(1); opacity: .55; } 50% { transform: scale(1.12); opacity: .8; } }
@keyframes crackGlow { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }
@keyframes twinkle { 0%, 100% { opacity: .15; transform: scale(.5) rotate(0deg); } 50% { opacity: 1; transform: scale(1) rotate(45deg); } }
@keyframes drift1 { 0%, 100% { transform: translate(0, 0) scale(1); } 33% { transform: translate(140px, 90px) scale(1.15); } 66% { transform: translate(-60px, 160px) scale(.9); } }
@keyframes drift2 { 0%, 100% { transform: translate(0, 0) scale(1); } 40% { transform: translate(-160px, 120px) scale(1.2); } 75% { transform: translate(60px, -60px) scale(.92); } }
@keyframes drift3 { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(180px, -120px) scale(1.25); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ------------------------------------------------------------ shared pieces */

.wrap { position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 40px); }
.wrap-wide { max-width: 1240px; }

.site-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 24px 0; }
.docs .site-header { border-bottom: 1px solid var(--line); }
.brand-row { display: flex; align-items: center; gap: 14px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.brand:hover { color: var(--text); }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 17px; letter-spacing: -.01em; }
.egg-mark { display: block; flex: none; width: 22px; height: 28px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: radial-gradient(ellipse at 35% 28%, #F3E8FF 0%, #C4B5FD 18%, #8B5CF6 50%, #4C1D95 100%); box-shadow: 0 0 18px rgba(139, 92, 246, .6); }
.egg-mark-sm { width: 20px; height: 25px; box-shadow: 0 0 16px rgba(139, 92, 246, .55); }
.brand-sm { gap: 12px; }
.brand-sm .brand-name { font-size: 15px; }
.brand-sm .egg-mark { width: 18px; height: 23px; box-shadow: none; }
.chip { padding: 3px 10px; border-radius: 999px; background: rgba(167, 139, 250, .14); border: 1px solid rgba(196, 181, 253, .3); font-size: 13px; font-weight: 500; color: var(--accent-3); white-space: nowrap; }
.chip-sm { padding: 2px 8px; border: 0; background: rgba(167, 139, 250, .16); font-size: 12px; font-weight: 700; }

.main-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.nav-link { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 10px; color: var(--text-2); text-decoration: none; font-weight: 500; font-size: 15px; transition: background .2s ease, color .2s ease; }
.nav-link:hover { background: rgba(255, 255, 255, .05); color: var(--text); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 0 18px; border-radius: 12px; border: 1px solid transparent; font-family: inherit; font-size: 15px; font-weight: 700; line-height: 1.2; text-decoration: none; cursor: pointer; transition: transform .2s ease, background .2s ease, border-color .2s ease; }
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 8px 26px rgba(139, 92, 246, .35); }
.btn-primary:hover { background: #B79CFC; color: var(--on-accent); }
.btn-ghost { background: rgba(255, 255, 255, .04); border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { background: rgba(255, 255, 255, .07); color: var(--text); }
.btn-soft { gap: 8px; background: rgba(167, 139, 250, .14); border-color: rgba(196, 181, 253, .35); color: var(--accent-4); }
.btn-soft:hover { background: rgba(167, 139, 250, .22); color: var(--accent-4); }
.btn-lg { min-height: 54px; padding: 0 26px; border-radius: 14px; font-size: 16px; }
.btn-primary.btn-lg { box-shadow: 0 10px 40px rgba(139, 92, 246, .45); }
.btn-block { width: 100%; min-height: 54px; border-radius: 14px; font-size: 16px; }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: 14px; }

.text-link { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 500; text-decoration: none; }
.text-link.center { align-self: center; justify-content: center; }
.text-link.inline { font-size: inherit; }

.dot { display: block; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 10px var(--accent); }
.dot-dim { background: #6B6385; box-shadow: none; }
.dot-amber { background: #FCD34D; box-shadow: none; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-2); }
.h2 { margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(30px, 3.4vw, 42px); line-height: 1.1; letter-spacing: -.03em; text-wrap: balance; }
.h2-sm { font-size: clamp(28px, 3vw, 38px); line-height: 1.15; }
.h3 { margin: 0; font-size: 19px; font-weight: 700; }
.h3 a { color: var(--text); text-decoration: none; }
.h3 a:hover { color: var(--accent-4); }
.muted-sm { font-size: 14px; color: var(--text-5); }
.empty { margin: 0; padding: 28px 0; border-top: 1px solid var(--line); color: var(--text-4); }
.version-chip { padding: 4px 10px; border-radius: 8px; background: rgba(255, 255, 255, .06); color: var(--text-3); font-family: var(--mono); font-size: 13px; font-weight: 500; }
.version-chip.is-latest { background: rgba(167, 139, 250, .16); color: var(--accent-3); }

/* ------------------------------------------------------------ home */

.hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr)); gap: 40px; align-items: center; padding: 64px 0 112px; }
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.pill { display: flex; align-items: center; gap: 10px; padding: 7px 14px 7px 10px; border-radius: 999px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); font-size: 14px; color: var(--text-2); }
.hero-title { margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(44px, 6vw, 84px); line-height: 1.02; letter-spacing: -.035em; text-wrap: balance; }
.hero-title span { display: block; }
.hero-title .accent { color: var(--accent-2); }
.hero-intro { margin: 0; max-width: 520px; font-size: 19px; line-height: 1.65; color: var(--text-3); text-wrap: pretty; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.fineprint { margin: 0; font-size: 14px; color: var(--text-5); }
.hero-art { display: flex; justify-content: center; align-items: center; }

.egg-stage { position: relative; width: 340px; max-width: 100%; height: 500px; display: flex; align-items: center; justify-content: center; }
.egg-glow { position: absolute; top: 90px; left: 50%; margin-left: -160px; width: 320px; height: 320px; border-radius: 50%; background: #8B5CF6; filter: blur(80px); opacity: .6; animation: glowPulse 6s ease-in-out infinite; }
.spark { position: absolute; animation: twinkle 3.4s ease-in-out infinite; }
.spark-1 { top: 70px; left: 26px; }
.spark-2 { top: 140px; right: 18px; animation-delay: 1.1s; }
.spark-3 { bottom: 120px; left: 8px; animation-delay: 2.2s; }
.spark-4 { top: 34px; right: 82px; animation-delay: 1.7s; }
.egg-float { position: relative; z-index: 1; width: 250px; height: 330px; margin-bottom: 40px; animation: eggFloat 6s ease-in-out infinite; }
.egg { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: radial-gradient(ellipse at 34% 26%, #F3E8FF 0%, #C4B5FD 14%, #8B5CF6 42%, #5B21B6 76%, #2E1065 100%); box-shadow: inset -26px -38px 64px rgba(17, 6, 46, .62), inset 14px 12px 30px rgba(255, 255, 255, .14), 0 40px 110px rgba(139, 92, 246, .5); }
.egg-shine { position: absolute; top: 38px; left: 52px; width: 64px; height: 96px; border-radius: 50%; background: rgba(255, 255, 255, .55); filter: blur(18px); transform: rotate(-24deg); }
.speck { position: absolute; border-radius: 50%; background: rgba(46, 16, 101, .45); }
.speck-1 { top: 170px; left: 60px; width: 12px; height: 9px; }
.speck-2 { top: 212px; left: 150px; width: 16px; height: 12px; background: rgba(46, 16, 101, .4); }
.speck-3 { top: 250px; left: 92px; width: 9px; height: 7px; background: rgba(46, 16, 101, .4); }
.speck-4 { top: 150px; left: 186px; width: 10px; height: 8px; background: rgba(46, 16, 101, .35); }
.speck-5 { top: 280px; left: 140px; width: 13px; height: 9px; }
.speck-6 { top: 120px; left: 120px; width: 7px; height: 6px; background: rgba(233, 213, 255, .35); }
.crack { position: absolute; top: 96px; left: 58px; filter: drop-shadow(0 0 6px #E879F9) drop-shadow(0 0 2px #F5D0FE); animation: crackGlow 3s ease-in-out infinite; }
.egg-shadow { position: absolute; bottom: 36px; left: 50%; margin-left: -100px; width: 200px; height: 26px; border-radius: 50%; background: #05030C; filter: blur(10px); animation: eggShadow 6s ease-in-out infinite; }

.section { padding: 96px 0; border-top: 1px solid var(--line); scroll-margin-top: 8px; }

.story { display: flex; flex-wrap: wrap; gap: 48px; }
.story-side { flex: 1 1 300px; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.status-labels { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-top: 8px; }
.status { display: flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 10px; font-size: 14px; }
.status-old { background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); color: var(--text-4); }
.status-new { background: rgba(167, 139, 250, .12); border: 1px solid rgba(196, 181, 253, .35); color: var(--accent-4); }
.story-body { flex: 2 1 520px; min-width: 0; max-width: 700px; display: flex; flex-direction: column; gap: 22px; font-size: 19px; line-height: 1.75; color: #DCD4F3; }
.story-body p, .story-body ul, .story-body ol { margin: 0; text-wrap: pretty; }
.story-body .signature { font-size: 16px; color: #A89DCB; }
.story-body code { padding: 2px 7px; border-radius: 6px; background: rgba(167, 139, 250, .14); font-size: .85em; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 20px; margin-top: 40px; }
.card { display: flex; flex-direction: column; gap: 14px; padding: 28px; border-radius: 20px; background: rgba(255, 255, 255, .035); border: 1px solid rgba(255, 255, 255, .09); text-decoration: none; color: var(--text); transition: transform .25s ease, border-color .25s ease, background .25s ease; }
.card:hover { transform: translateY(-3px); border-color: rgba(196, 181, 253, .45); background: rgba(167, 139, 250, .08); color: var(--text); }
.card-icon { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 14px; background: rgba(167, 139, 250, .15); color: var(--accent-2); }
.card-title { font-size: 19px; font-weight: 700; }
.card-text { font-size: 15px; line-height: 1.6; color: var(--text-4); }

.download-panel { display: flex; flex-wrap: wrap; gap: 40px; padding: clamp(28px, 4vw, 56px); border-radius: 28px; background: rgba(23, 16, 44, .7); border: 1px solid rgba(196, 181, 253, .18); box-shadow: 0 30px 80px rgba(8, 4, 20, .5); }
.steps-col { flex: 3 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.steps { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 22px; }
.steps li { display: flex; gap: 18px; align-items: flex-start; }
.step-num { flex: none; display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: 15px; }
.step { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; min-width: 0; }
.step-title { font-weight: 700; font-size: 17px; }
.step-text { color: var(--text-4); font-size: 16px; }
.path { margin-top: 2px; padding: 6px 10px; border-radius: 8px; background: rgba(8, 6, 15, .8); border: 1px solid var(--line); font-size: 13px; color: var(--accent-3); }
.latest-card { flex: 2 1 280px; display: flex; flex-direction: column; justify-content: center; gap: 18px; padding: 32px; border-radius: 20px; background: rgba(167, 139, 250, .1); border: 1px solid rgba(196, 181, 253, .28); }
.latest-version { font-family: var(--display); font-weight: 700; font-size: 40px; line-height: 1; letter-spacing: -.03em; }
.latest-meta { font-size: 15px; color: var(--text-4); }
.latest-meta .mono { font-family: var(--mono); font-size: 13px; }
.latest-card .btn-primary { box-shadow: 0 10px 34px rgba(139, 92, 246, .4); }

.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.updates { display: flex; flex-direction: column; margin-top: 36px; }
.update { display: flex; flex-wrap: wrap; gap: 12px 40px; padding: 28px 0; border-top: 1px solid var(--line); }
.update:last-child { border-bottom: 1px solid var(--line); }
.update-meta { flex: 0 0 200px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.update-date { font-size: 14px; color: var(--text-5); }
.update-body { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.update-body p { margin: 0; color: var(--text-4); overflow-wrap: anywhere; }

.site-footer { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 32px; padding: 48px 0 56px; border-top: 1px solid var(--line); }
.footer-brand { display: flex; flex-direction: column; gap: 12px; max-width: 420px; }
.footer-brand p { margin: 0; font-size: 14px; color: var(--text-5); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 15px; }
.footer-nav a { text-decoration: none; color: var(--text-3); }
.footer-nav a:hover { color: var(--text); }

.not-found { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; padding: 96px 0 160px; }
.not-found p { margin: 0; color: var(--text-3); font-size: 18px; }

/* ------------------------------------------------------------ docs */

.docs-layout { display: flex; flex-wrap: wrap; gap: 56px; padding: 48px 0 96px; }
.docs-aside { flex: 1 1 220px; max-width: 280px; display: flex; flex-direction: column; gap: 28px; }
.search { position: relative; }
.search svg { position: absolute; top: 15px; left: 14px; color: var(--text-5); pointer-events: none; }
.search input { width: 100%; height: 46px; padding: 0 14px 0 40px; border-radius: 12px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .12); color: var(--text); font-family: inherit; font-size: 15px; }
.search input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.nav-toggle { display: none; }
.docs-nav { display: flex; flex-direction: column; gap: 24px; }
.nav-group { display: flex; flex-direction: column; gap: 4px; }
.nav-group-title { padding: 0 12px 6px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--text-5); }
.side-link { padding: 8px 12px; border-radius: 8px; text-decoration: none; color: var(--text-3); font-size: 15px; transition: background .2s ease, color .2s ease; }
.side-link:hover { background: rgba(255, 255, 255, .05); color: var(--text); }
.side-link[aria-current="page"] { color: var(--text); font-weight: 700; background: rgba(167, 139, 250, .16); }
.search-results { display: flex; flex-direction: column; gap: 4px; }
.search-result { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 8px; text-decoration: none; color: var(--text); }
.search-result:hover, .search-result:focus-visible { background: rgba(255, 255, 255, .05); color: var(--text); }
.search-result small { font-size: 13px; line-height: 1.5; color: var(--text-5); }
.search-result mark { padding: 0 2px; border-radius: 3px; background: rgba(167, 139, 250, .3); color: inherit; }
.search-none { padding: 10px 12px; font-size: 14px; color: var(--text-5); }

.docs-main { flex: 999 1 560px; min-width: 0; max-width: 780px; display: flex; flex-direction: column; gap: 44px; }
.doc-head { display: flex; flex-direction: column; gap: 16px; }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: var(--text-5); }
.breadcrumb .current { color: var(--text-2); }
.doc-title { margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(36px, 4.4vw, 52px); line-height: 1.08; letter-spacing: -.035em; overflow-wrap: anywhere; }

.doc-body { color: var(--body); line-height: 1.7; overflow-wrap: break-word; }
.doc-body > :first-child { margin-top: 0; }
.doc-body > :last-child { margin-bottom: 0; }
.docs-main > .doc-body > p:first-child { font-size: 19px; color: var(--text-3); text-wrap: pretty; }
.doc-body h2 { margin: 44px 0 14px; font-size: 24px; font-weight: 700; line-height: 1.3; letter-spacing: -.01em; color: var(--text); scroll-margin-top: 16px; }
.doc-body h3 { margin: 32px 0 10px; font-size: 19px; font-weight: 700; line-height: 1.35; color: var(--text); scroll-margin-top: 16px; }
.doc-body h4 { margin: 24px 0 8px; font-size: 16px; color: var(--text); }
.doc-body p { margin: 0 0 14px; }
.doc-body ul, .doc-body ol { margin: 0 0 14px; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.doc-body li > p { margin: 0; }
.doc-body li > ul, .doc-body li > ol { margin: 8px 0 0; }
.doc-body strong { color: var(--text); }
.doc-body a { text-decoration: underline; text-decoration-color: rgba(196, 181, 253, .45); text-underline-offset: 3px; }
.doc-body hr { margin: 32px 0; border: 0; border-top: 1px solid var(--line); }
.doc-body img { max-width: 100%; height: auto; border-radius: 12px; }
.doc-body code { padding: 2px 7px; border-radius: 6px; background: rgba(167, 139, 250, .14); font-size: 14px; color: #E9E3FF; }
.codeblock { display: flex; align-items: flex-start; gap: 12px; margin: 0 0 16px; padding: 18px 18px 18px 22px; border-radius: 14px; background: var(--bg-deep); border: 1px solid rgba(255, 255, 255, .09); }
.codeblock pre { flex: 1 1 auto; min-width: 0; margin: 0; overflow-x: auto; font-family: var(--mono); font-size: 14px; line-height: 1.7; color: #E9E3FF; }
.codeblock code { padding: 0; background: none; border-radius: 0; font-size: inherit; color: inherit; }
.codeblock .prompt { color: #8F84B3; user-select: none; }
.copy-btn { flex: none; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: -8px -6px -8px 0; border-radius: 10px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); color: var(--text-3); cursor: pointer; transition: background .2s ease, color .2s ease; }
.copy-btn:hover { background: rgba(255, 255, 255, .09); color: var(--text); }
.copy-btn.copied { color: var(--accent-2); border-color: rgba(196, 181, 253, .45); }
.table-wrap { margin: 0 0 16px; overflow-x: auto; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .1); }
.table-wrap table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; }
.table-wrap th { padding: 14px 18px; background: rgba(255, 255, 255, .04); color: var(--text); font-weight: 700; text-align: left; }
.table-wrap td { padding: 14px 18px; border-top: 1px solid var(--line); vertical-align: top; }
.table-wrap td code { font-size: 13px; white-space: nowrap; }
.table-wrap .ta-left { text-align: left; }
.table-wrap .ta-center { text-align: center; }
.table-wrap .ta-right { text-align: right; }
.doc-body blockquote { position: relative; margin: 0 0 16px; padding: 24px 24px 24px 82px; border-radius: 16px; background: rgba(167, 139, 250, .1); border: 1px solid rgba(196, 181, 253, .3); }
.doc-body blockquote::before { content: ""; position: absolute; top: 24px; left: 24px; width: 40px; height: 40px; border-radius: 12px; background: rgba(167, 139, 250, .2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23DDD6FE' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='16' rx='3'/%3E%3Cpath d='M12 9v4'/%3E%3Cpath d='M12 16h.01'/%3E%3C/svg%3E") center / 20px no-repeat; }
.doc-body blockquote p { margin: 0 0 8px; }
.doc-body blockquote > :last-child { margin-bottom: 0; }
.doc-body blockquote p:first-child > strong:first-child { font-size: 17px; }

.changelog { display: flex; flex-direction: column; }
.change { display: flex; flex-direction: column; gap: 10px; padding: 28px 0; border-top: 1px solid var(--line); scroll-margin-top: 16px; }
.change:last-child { border-bottom: 1px solid var(--line); }
.change-head { display: flex; align-items: center; gap: 12px; }
.change-title { margin: 0; font-size: 22px; font-weight: 700; line-height: 1.3; }
.change-notes { font-size: 15px; }
.change-notes h2 { margin-top: 20px; font-size: 18px; }
.change-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }

.pager { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 16px; padding-top: 12px; }
.pager-link { display: flex; flex-direction: column; gap: 4px; padding: 18px 22px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .1); text-decoration: none; color: var(--text); transition: border-color .2s ease, background .2s ease; }
.pager-link:hover { border-color: rgba(196, 181, 253, .45); background: rgba(167, 139, 250, .08); color: var(--text); }
.pager-next { align-items: flex-end; text-align: right; }
.pager-label { font-size: 13px; color: var(--text-5); }
.pager-title { font-weight: 700; }
.doc-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; color: var(--text-5); }
.doc-foot a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }

/* ------------------------------------------------------------ admin */

.admin { display: flex; flex-wrap: wrap; min-height: 100vh; font-size: 15px; line-height: 1.55; }
.admin-side { flex: 1 1 240px; display: flex; flex-direction: column; gap: 28px; padding: 24px 16px; background: var(--side); border-right: 1px solid rgba(255, 255, 255, .07); }
.admin-brand { display: flex; align-items: center; gap: 10px; padding: 0 8px; min-width: 0; }
.admin-brand .brand-name { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-nav { display: flex; flex-direction: column; gap: 4px; }
.nav-item { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; border-radius: 10px; text-decoration: none; color: var(--text-3); font-weight: 500; transition: background .2s ease, color .2s ease; }
.nav-item:hover { background: rgba(255, 255, 255, .05); color: var(--text); }
.nav-item[aria-current="page"] { color: var(--text); font-weight: 700; background: rgba(167, 139, 250, .16); }
.admin-side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 12px; }
.user-card { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .07); }
.user-card form { margin: 0; }
.avatar { flex: none; display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: #2A1F4A; color: var(--accent-3); }
.user-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.user-name { font-weight: 700; font-size: 14px; }
.user-role { font-size: 12px; color: var(--text-5); }
.icon-btn { flex: none; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 10px; background: transparent; border: none; color: var(--text-3); cursor: pointer; transition: background .2s ease, color .2s ease; }
.icon-btn:hover { background: rgba(255, 255, 255, .07); color: var(--text); }
.icon-btn:disabled { opacity: .4; cursor: not-allowed; background: transparent; }
.icon-btn-sm { width: 32px; height: 32px; border-radius: 8px; color: var(--text-5); }

.admin-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 28px; padding: 32px clamp(20px, 3vw, 40px) 48px; }
.admin-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.admin-head-text { display: flex; flex-direction: column; gap: 6px; }
.admin-title { margin: 0; font-family: var(--display); font-weight: 700; font-size: 30px; letter-spacing: -.03em; }
.admin-sub { margin: 0; color: var(--text-4); }
.head-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.dirty { display: flex; align-items: center; gap: 8px; margin-right: 6px; font-size: 14px; color: var(--text-2); }
.narrow { width: 100%; max-width: 900px; }

.panel { display: flex; flex-direction: column; gap: 18px; padding: 24px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); }
.panel-heading { display: flex; flex-direction: column; gap: 4px; }
.panel-title { margin: 0; font-size: 17px; font-weight: 700; }
.panel-sub { margin: 0; font-size: 14px; color: var(--text-5); }
.panel-sub code, .form-note code { padding: 1px 6px; border-radius: 6px; background: rgba(167, 139, 250, .14); font-size: 13px; color: #E9E3FF; }
.split { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }

.sync-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.sync-switch { flex: 0 1 440px; }
.sync-bottom { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.inline-field { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-2); }
.inline-field select { width: auto; height: 40px; }
.inline-field.is-off { opacity: .5; }
.sync-status { flex: 1 1 260px; display: flex; align-items: center; gap: 8px; margin: 0; font-size: 14px; color: var(--text-4); }
.sync-status.is-error { color: var(--danger); }
.spin { animation: spin 1s linear infinite; }

.table-panel { flex: 3 1 520px; min-width: 0; padding: 0; gap: 0; overflow: hidden; }
.panel-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.table-scroll { position: relative; overflow-x: auto; }
.table { width: 100%; min-width: 620px; border-collapse: collapse; }
.table th { padding: 12px; font-size: 13px; font-weight: 500; color: var(--text-5); text-align: left; }
.table td { padding: 10px 12px; border-top: 1px solid rgba(255, 255, 255, .07); vertical-align: middle; }
.table th:first-child, .table td:first-child { padding-left: 22px; }
.table th:last-child, .table td:last-child { padding-right: 22px; }
.table tbody tr:hover td { background: rgba(255, 255, 255, .025); }
.table tbody tr.is-editing td { background: rgba(167, 139, 250, .07); }
.table .empty-row td { padding: 28px 22px; color: var(--text-4); }
.ver-cell { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.ver { font-family: var(--mono); font-size: 14px; color: var(--accent-4); }
.badge-latest { padding: 1px 8px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: 11px; font-weight: 700; }
.rel-title { font-weight: 500; }
.rel-source { display: block; font-size: 12px; color: var(--text-5); }
.td-date { color: var(--text-4); white-space: nowrap; }
.not-set { color: var(--text-5); }
.status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 500; white-space: nowrap; }
.status-published { background: rgba(167, 139, 250, .18); color: var(--accent-3); }
.status-draft { padding: 2px 9px; border: 1px solid rgba(255, 255, 255, .22); color: var(--text-4); }
.pill-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-2); }
.status-draft .pill-dot { background: none; border: 1.5px solid var(--text-5); }
.row-actions { display: flex; justify-content: flex-end; gap: 2px; }

.menu { position: fixed; z-index: 50; min-width: 220px; display: flex; flex-direction: column; padding: 6px; border-radius: 12px; background: #1C1533; border: 1px solid var(--line-2); box-shadow: 0 18px 50px rgba(0, 0, 0, .5); }
.menu button, .menu a { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 12px; border-radius: 8px; background: none; border: 0; color: var(--text-2); font: inherit; font-size: 14px; text-align: left; text-decoration: none; cursor: pointer; }
.menu button:hover, .menu a:hover, .menu button:focus-visible, .menu a:focus-visible { background: rgba(255, 255, 255, .06); color: var(--text); }
.menu .danger { color: var(--danger); }
.menu .danger.confirm { background: rgba(244, 63, 94, .15); }

.form-panel { flex: 2 1 340px; min-width: 0; border-color: rgba(196, 181, 253, .22); }
.form-panel form { display: flex; flex-direction: column; gap: 20px; }
.form-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; }
.row { display: flex; flex-wrap: wrap; gap: 14px; }
.row.align-end { align-items: flex-end; }
.grow { flex: 1 1 140px; }
.grow-2 { flex: 2 1 220px; }
.content-form .row > .grow { flex: 1 1 240px; }
.editor-meta > .field:nth-child(odd) { flex: 2 1 170px; }
.editor-meta > .field:nth-child(2) { flex: 1 1 140px; }
.editor-meta > .field:nth-child(4) { flex: 1 1 120px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field label, .field-label { font-size: 14px; font-weight: 500; color: var(--text-2); }
.label-hint { font-weight: 400; color: var(--text-5); }
.label-row { display: flex; justify-content: space-between; gap: 12px; }
.input { width: 100%; height: 46px; padding: 0 14px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line-2); color: var(--text); font-family: inherit; font-size: 15px; }
.input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.input[aria-invalid="true"] { border-color: var(--danger); }
textarea.input { height: auto; padding: 12px 14px; line-height: 1.55; resize: vertical; }
select.input { padding: 0 12px; }
.input.mono { font-family: var(--mono); font-size: 14px; }
.input-sm { height: 40px; }
.input-accent { color: var(--accent-2); }
.input-display { font-family: var(--display); font-weight: 700; font-size: 16px; }
.input-story { padding: 14px 16px; font-size: 16px; line-height: 1.7; }
input[type="date"] { color-scheme: dark; }

.dropzone { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 22px 16px; border-radius: 12px; border: 1.5px dashed rgba(196, 181, 253, .35); background: rgba(167, 139, 250, .04); color: var(--accent-2); text-align: center; cursor: pointer; transition: border-color .2s ease, background .2s ease; }
.dropzone:hover, .dropzone.is-over { border-color: rgba(196, 181, 253, .6); background: rgba(167, 139, 250, .07); }
.dropzone:focus-within { outline: 2px solid var(--accent); outline-offset: 1px; }
.dropzone.has-file { border-style: solid; }
.dz-main { font-weight: 500; color: var(--text); overflow-wrap: anywhere; }
.dz-browse { color: var(--accent-2); text-decoration: underline; }
.dz-sub { font-size: 13px; color: var(--text-5); }

.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 46px; padding: 14px 16px; border-radius: 12px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); cursor: pointer; }
.content-form .switch-row { padding: 0 16px; }
.switch-text { display: flex; flex-direction: column; gap: 2px; }
.switch-label { font-weight: 500; }
.switch-sub { font-size: 13px; color: var(--text-5); }
.switch { position: relative; flex: none; width: 46px; height: 28px; }
.switch input { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.switch-track { position: absolute; inset: 0; border-radius: 999px; background: rgba(255, 255, 255, .16); transition: background .2s ease; }
.switch-thumb { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #E9E3FF; transition: left .2s ease, background .2s ease; }
.switch input:checked ~ .switch-track { background: var(--accent); }
.switch input:checked ~ .switch-thumb { left: 21px; background: var(--on-accent); }
.switch input:focus-visible ~ .switch-track { outline: 2px solid var(--accent); outline-offset: 2px; }

.form-note { margin: 0; padding: 12px 14px; border-radius: 10px; background: rgba(167, 139, 250, .1); border: 1px solid rgba(196, 181, 253, .25); font-size: 14px; color: var(--text-2); }
.form-error { margin: 0; padding: 12px 14px; border-radius: 10px; background: rgba(244, 63, 94, .1); border: 1px solid rgba(253, 164, 175, .35); font-size: 14px; color: #FECDD3; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.form-actions .grow { flex: 1 1 120px; }
.form-actions .grow-2 { flex: 1 1 160px; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.content-form { display: flex; flex-direction: column; gap: 28px; }

.btn-text { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border-radius: 10px; background: transparent; border: none; color: var(--text-3); font-family: inherit; font-size: 15px; font-weight: 500; cursor: pointer; }
.btn-text:hover { background: rgba(255, 255, 255, .05); color: var(--text); }
.btn-text.strong { color: var(--accent-2); font-weight: 700; }
.btn-danger { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border-radius: 10px; background: transparent; border: none; color: var(--danger); font-family: inherit; font-size: 14px; font-weight: 500; cursor: pointer; }
.btn-danger:hover, .btn-danger.confirm { background: rgba(244, 63, 94, .12); }

.split-docs > .tree-panel { flex: 1 1 250px; min-width: 0; gap: 18px; padding: 20px 14px; }
.tree-title { padding: 0 8px; }
.tree { display: flex; flex-direction: column; gap: 18px; }
.tree-section { display: flex; flex-direction: column; gap: 2px; }
.tree-section-head { display: flex; align-items: center; gap: 2px; min-height: 32px; padding: 0 0 4px 8px; }
.tree-section-title { flex: 1 1 auto; min-width: 0; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--text-5); }
.tree-section-head .input { height: 34px; font-size: 14px; }
.tree-item { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 40px; padding: 0 8px; border-radius: 8px; background: none; border: 0; color: var(--text-3); font-family: inherit; font-size: 15px; text-align: left; cursor: pointer; }
.tree-item:hover { background: rgba(255, 255, 255, .04); }
.tree-item[aria-current="true"] { color: var(--text); font-weight: 700; background: rgba(167, 139, 250, .16); }
.tree-item .grip { color: #6B6385; cursor: grab; }
.tree-item[aria-current="true"] .grip { color: var(--text-5); }
.tree-item .t { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tree-item.is-dragging { opacity: .4; }
.tree-item.drop-before { box-shadow: inset 0 2px 0 var(--accent); }
.tree-item.drop-after { box-shadow: inset 0 -2px 0 var(--accent); }
.tree-drop { display: flex; align-items: center; min-height: 36px; padding: 0 10px; border-radius: 8px; border: 1px dashed var(--line-2); font-size: 13px; color: var(--text-5); }
.tree-drop.is-over { border-color: var(--accent); color: var(--text-2); }
.badge { flex: none; padding: 0 7px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .22); font-size: 11px; font-weight: 400; color: var(--text-4); }
.badge-auto { border-color: rgba(196, 181, 253, .4); color: var(--accent-3); }
.tree-actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 8px 4px 0; border-top: 1px solid var(--line); }
.new-section { display: flex; gap: 8px; padding: 0 4px; }

.editor-panel, .editor-empty { flex: 3 1 560px; min-width: 0; gap: 20px; }
.editor { display: flex; flex-direction: column; overflow: hidden; border-radius: 12px; border: 1px solid var(--line-2); }
.editor:focus-within { outline: 2px solid var(--accent); outline-offset: 1px; }
.editor-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 6px; background: rgba(255, 255, 255, .03); border-bottom: 1px solid rgba(255, 255, 255, .1); }
.toolbar { display: flex; flex-wrap: wrap; gap: 2px; }
.toolbar .icon-btn { border-radius: 8px; }
.segmented { display: flex; gap: 2px; padding: 3px; border-radius: 10px; background: var(--bg); }
.segmented button { height: 38px; padding: 0 14px; border-radius: 8px; background: transparent; border: none; color: var(--text-4); font-family: inherit; font-size: 14px; font-weight: 500; cursor: pointer; }
.segmented button[aria-pressed="true"] { background: rgba(167, 139, 250, .2); color: var(--text); font-weight: 700; }
.editor-text { display: block; width: 100%; min-height: 520px; margin: 0; padding: 20px 22px; background: var(--bg); border: none; color: #E9E3FF; font-family: var(--mono); font-size: 14px; line-height: 1.75; resize: vertical; }
.editor-text:focus { outline: none; }
.editor-preview { min-height: 520px; padding: 24px 26px; background: var(--bg); }
.editor-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--text-5); }

.toast { position: fixed; bottom: 24px; left: 16px; right: 16px; z-index: 100; width: fit-content; max-width: 640px; margin-inline: auto; padding: 12px 18px; border-radius: 12px; background: #221A3D; border: 1px solid rgba(196, 181, 253, .35); color: var(--text); font-size: 15px; box-shadow: 0 16px 40px rgba(0, 0, 0, .5); }
.toast.is-error { border-color: rgba(253, 164, 175, .5); color: #FECDD3; }

.login-page { display: flex; }
.login-wrap { position: relative; z-index: 1; flex: 1; display: flex; align-items: center; justify-content: center; padding: 40px 16px; }
.login-card { width: 100%; max-width: 400px; gap: 20px; padding: 32px; }
.login-brand { display: flex; align-items: center; gap: 10px; }
.login-brand .brand-name { font-size: 15px; }
.login-title { margin: 0; font-family: var(--display); font-size: 26px; letter-spacing: -.02em; }
.passkey-signin { display: flex; flex-direction: column; gap: 20px; }
.or { display: flex; align-items: center; gap: 12px; margin: 0; font-size: 13px; color: var(--text-5); }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line-2); }

.passkey-list { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; border-radius: 12px; border: 1px solid var(--line); }
.passkey-item { display: flex; align-items: center; gap: 14px; padding: 12px 10px 12px 16px; }
.passkey-item + .passkey-item { border-top: 1px solid var(--line); }
.passkey-icon { flex: none; display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 10px; background: rgba(167, 139, 250, .14); color: var(--accent-3); }
.passkey-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.passkey-name { font-weight: 700; overflow-wrap: anywhere; }
.passkey-meta { font-size: 13px; color: var(--text-5); }
.passkey-empty { padding: 18px 16px; color: var(--text-4); }
.passkey-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.passkey-form .btn { min-height: 46px; }

/* ------------------------------------------------------------ small screens */

@media (min-width: 900px) {
  .admin-side { position: sticky; top: 0; flex: 0 0 268px; height: 100vh; overflow-y: auto; }
}

@media (max-width: 899px) {
  .admin-side { flex-basis: 100%; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 12px 16px; border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, .07); }
  .admin-nav { order: 3; width: 100%; flex-direction: row; flex-wrap: wrap; }
  .admin-side-foot { margin: 0 0 0 auto; flex-direction: row; align-items: center; }
  .admin-side-foot > .nav-item { display: none; }
  .user-card { padding: 0; background: none; border: 0; }
  .user-card .avatar, .user-card .user-text { display: none; }
}

@media (max-width: 860px) {
  .docs-layout { gap: 32px; padding-top: 32px; }
  .docs-aside { max-width: none; flex-basis: 100%; gap: 16px; }
  .js .nav-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 46px; padding: 0 14px; border-radius: 12px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .12); color: var(--text); font-family: inherit; font-size: 15px; font-weight: 500; cursor: pointer; }
  .js .nav-toggle svg { transition: transform .2s ease; }
  .js .nav-toggle[aria-expanded="true"] svg { transform: rotate(90deg); }
  .js .docs-nav:not(.is-open) { display: none; }
}

/* The hero egg only fits beside the copy; stacked underneath it just pushes everything down. */
@media (max-width: 999px) {
  .hero-art { display: none; }
}

@media (max-width: 880px) {
  .latest-card { order: -1; } /* stacked: the download button comes before the steps */
}

.menu-btn { display: none; }

@media (max-width: 720px) {
  .site-header { position: relative; flex-wrap: nowrap; padding: 14px 0; }
  .js .menu-btn { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-right: -8px; border-radius: 12px; background: none; border: 0; color: var(--text); cursor: pointer; }
  .js .menu-btn:hover { background: rgba(255, 255, 255, .06); }
  .menu-btn svg + svg, .menu-btn[aria-expanded="true"] svg:first-child { display: none; }
  .menu-btn[aria-expanded="true"] svg + svg { display: block; }
  .js .main-nav { display: none; position: absolute; top: calc(100% - 2px); left: 0; right: 0; z-index: 30; flex-direction: column; align-items: stretch; gap: 2px; padding: 8px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line-2); box-shadow: 0 24px 60px rgba(0, 0, 0, .55); }
  .js .main-nav.is-open { display: flex; }
  .js .main-nav .nav-link { min-height: 48px; padding: 0 14px; font-size: 16px; }
  .js .main-nav .btn { margin-top: 6px; min-height: 48px; }

  .hero { padding: 20px 0 64px; }
  .hero .pill { display: none; }
  .hero-copy { gap: 22px; }
  .hero-intro { font-size: 17px; }
  .actions { width: 100%; }
  .actions .btn { flex: 1 1 100%; }
  #download { scroll-margin-top: -56px; } /* land on the panel, not the section's top padding */
}

@media (max-width: 560px) {
  .section { padding: 72px 0; }
  .update-meta { flex-basis: 100%; flex-direction: row; align-items: center; gap: 12px; }
  .update { gap: 10px; }
  .doc-body blockquote { padding: 76px 20px 20px; }
  .doc-body blockquote::before { top: 20px; left: 20px; }
  .download-panel { padding: 16px; gap: 32px; border-radius: 22px; }
  .download-panel .steps-col { padding: 0 8px 12px; }
  .latest-card { padding: 24px; }
  .latest-meta .mono { white-space: nowrap; }
}

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