:root {
  color-scheme: light;
  --paper: #f5eee4;
  --paper-deep: #eadfd2;
  --surface: #fffaf3;
  --ink: #211c19;
  --muted: #76665c;
  --line: rgba(55, 42, 34, 0.14);
  --line-strong: rgba(55, 42, 34, 0.23);
  --ember: #ad4f37;
  --ember-dark: #873a2a;
  --ember-soft: #eed1c1;
  --green: #32745c;
  --danger: #a23535;
  --shadow: 0 28px 80px -52px rgba(53, 31, 21, 0.58);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); }
body::selection { color: #fff; background: var(--ember); }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  transform: translateY(-160%);
  border-radius: 10px;
  background: var(--ink);
  color: white;
  padding: 10px 14px;
  text-decoration: none;
}
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid rgba(173, 79, 55, 0.45); outline-offset: 3px; }
.visually-hidden-field { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; clip-path: inset(50%) !important; white-space: nowrap !important; }

.section-shell, .site-header, .site-footer {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  min-height: 78px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 11px; width: max-content; text-decoration: none; font-weight: 720; letter-spacing: -0.02em; }
.brand img { border-radius: 50%; box-shadow: 0 8px 24px -13px rgba(23, 16, 13, 0.7); }
.brand-light { color: #fffaf3; }
.brand small { display: block; margin-top: 2px; color: var(--muted); font-size: 10px; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; }
.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav a { color: #5f5047; font-size: 14px; text-decoration: none; }
.site-nav a:hover { color: var(--ink); }
.mobile-nav { position: relative; display: none; }
.mobile-nav summary { min-height: 40px; display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line-strong); border-radius: 999px; background: rgba(255,255,255,.28); padding: 0 13px; color: #5f5047; font-size: 12px; font-weight: 700; cursor: pointer; list-style: none; }
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav summary::after { content: "+"; color: var(--ember); font-size: 16px; font-weight: 500; line-height: 1; }
.mobile-nav[open] summary { background: var(--surface); color: var(--ink); }
.mobile-nav[open] summary::after { content: "−"; }
.mobile-nav nav { position: absolute; z-index: 30; top: calc(100% + 10px); right: 0; min-width: 220px; display: grid; gap: 4px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); padding: 8px; box-shadow: 0 24px 60px -34px rgba(53,31,21,.75); }
.mobile-nav nav a { min-height: 44px; display: flex; align-items: center; border-radius: 10px; padding: 0 12px; color: #5f5047; font-size: 13px; text-decoration: none; }
.mobile-nav nav a:hover, .mobile-nav nav a:focus-visible { background: rgba(173,79,55,.08); color: var(--ink); }
.header-action { justify-self: end; border: 1px solid var(--line-strong); border-radius: 999px; padding: 10px 16px; font-size: 13px; font-weight: 650; text-decoration: none; transition: background 160ms ease, transform 160ms ease; }
.header-action:hover { background: var(--surface); transform: translateY(-1px); }

.hero { min-height: 680px; display: grid; grid-template-columns: minmax(0, 0.88fr) minmax(520px, 1.12fr); align-items: center; gap: 72px; padding-block: 82px 92px; }
.hero-copy { position: relative; z-index: 2; }
.eyebrow { margin: 0 0 16px; color: var(--ember); font-size: 11px; font-weight: 800; letter-spacing: 0.13em; text-transform: uppercase; }
.eyebrow-light { color: #eaa68f; }
.signal-dot { display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 0 5px rgba(173, 79, 55, 0.1); }
.hero h1 { margin: 0; max-width: 650px; font-family: Iowan Old Style, Baskerville, "Times New Roman", "Songti SC", serif; font-size: clamp(52px, 6.2vw, 86px); font-weight: 520; line-height: 0.98; letter-spacing: -0.055em; }
.hero h1 em { color: var(--ember); font-weight: inherit; }
.hero-lead { max-width: 570px; margin: 27px 0 0; color: var(--muted); font-size: 17px; line-height: 1.8; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 34px; }
.button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 1px solid transparent; border-radius: 999px; padding: 0 19px; font-size: 13px; font-weight: 720; line-height: 1; text-decoration: none; cursor: pointer; transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease; }
.button:hover:not(:disabled):not(.is-disabled) { transform: translateY(-1px); }
.button:disabled, .button.is-disabled { cursor: not-allowed; opacity: 0.55; pointer-events: none; }
.button-primary { background: var(--ink); color: #fffaf3; box-shadow: 0 15px 34px -20px rgba(26, 18, 15, 0.85); }
.button-primary:hover:not(:disabled) { background: #090807; box-shadow: 0 18px 38px -20px rgba(26, 18, 15, 0.9); }
.button-secondary { background: var(--ember); color: white; }
.button-secondary:hover:not(:disabled) { background: var(--ember-dark); }
.button-ghost { border-color: var(--line-strong); background: rgba(255,255,255,0.3); color: var(--ink); }
.button-ghost:hover:not(:disabled) { background: var(--surface); }
.button-danger { border-color: rgba(162,53,53,.28); background: transparent; color: var(--danger); }
.button-danger:hover:not(:disabled) { background: #fff1ef; }
.availability-note { min-height: 22px; margin: 18px 0 0; color: #7f6d62; font-size: 12px; }

.hero-stage { position: relative; min-height: 460px; display: grid; place-items: center; perspective: 1200px; }
.stage-orbit { position: absolute; border: 1px solid rgba(173,79,55,.17); border-radius: 50%; }
.orbit-one { width: 510px; height: 510px; }
.orbit-two { width: 390px; height: 390px; border-style: dashed; transform: rotate(24deg); }
.app-window { position: relative; z-index: 2; width: min(620px, 100%); overflow: hidden; border: 1px solid rgba(53,40,31,.16); border-radius: 24px; background: rgba(255,252,247,.94); box-shadow: 0 42px 100px -50px rgba(55,25,16,.66), 0 3px 0 rgba(255,255,255,.75) inset; transform: rotateY(-5deg) rotateX(1.5deg); }
.window-bar { height: 46px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 15px; border-bottom: 1px solid var(--line); color: #83736a; font-size: 10px; font-weight: 720; }
.traffic-lights { display: flex; gap: 6px; }
.traffic-lights i { width: 8px; height: 8px; border-radius: 50%; background: #ddcfc4; }
.traffic-lights i:first-child { background: #d2765e; }
.window-status { justify-self: end; color: var(--green); }
.window-body { min-height: 340px; display: grid; grid-template-columns: 64px 1fr; }
.mock-sidebar { display: flex; flex-direction: column; align-items: center; gap: 17px; padding: 18px 0; border-right: 1px solid var(--line); background: #f0e6dc; }
.mock-sidebar img { width: 27px; height: 27px; margin-bottom: 9px; }
.mock-sidebar span { width: 24px; height: 24px; border-radius: 8px; background: rgba(57,42,33,.08); }
.mock-sidebar span.active { background: var(--ember-soft); box-shadow: inset 3px 0 var(--ember); }
.mock-content { padding: 28px 28px 24px; }
.mock-heading small { display: block; color: var(--muted); font-size: 9px; letter-spacing: .09em; text-transform: uppercase; }
.mock-heading strong { display: block; margin-top: 8px; font-family: Iowan Old Style, Baskerville, serif; font-size: 23px; font-weight: 540; }
.tool-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 22px; }
.tool-tile { min-height: 86px; display: grid; grid-template-columns: 32px 1fr; grid-template-rows: auto auto; align-content: center; column-gap: 9px; border: 1px solid var(--line); border-radius: 14px; padding: 14px; background: rgba(255,255,255,.56); }
.tool-tile b { grid-row: 1 / 3; align-self: center; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: #eee3d9; color: var(--ember); }
.tool-tile span { align-self: end; font-size: 11px; font-weight: 720; }
.tool-tile small { color: var(--muted); font-size: 9px; }
.tool-tile.selected { border-color: rgba(173,79,55,.38); background: #fff8f0; box-shadow: 0 10px 24px -20px rgba(173,79,55,.7); }
.mock-launch { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 21px; padding-top: 17px; border-top: 1px solid var(--line); color: var(--green); font-size: 9px; }
.mock-launch button { border: 0; border-radius: 9px; background: var(--ink); color: white; padding: 10px 13px; font-size: 9px; }
.floating-card { position: absolute; z-index: 3; display: grid; gap: 3px; border: 1px solid rgba(52,39,31,.12); border-radius: 13px; background: rgba(255,251,245,.93); padding: 11px 14px; box-shadow: var(--shadow); backdrop-filter: blur(14px); }
.floating-card span { color: var(--muted); font-size: 8px; letter-spacing: .06em; text-transform: uppercase; }
.floating-card strong { font-size: 10px; }
.floating-model { top: 50px; right: -10px; }
.floating-safe { bottom: 45px; left: -18px; }
.floating-safe strong { color: var(--green); }

.quiet-strip { border-block: 1px solid var(--line); padding: 25px 20px; text-align: center; }
.quiet-strip p { margin: 0; color: var(--muted); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.tool-wordmarks { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(24px, 5vw, 68px); margin-top: 17px; color: #5e5048; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; font-weight: 650; }

.downloads, .workflow, .release-section, .faq { padding-block: 112px; }
.section-heading { max-width: 680px; }
.section-heading h2, .security-copy h2, .release-card h2, .admin-titlebar h1 { margin: 0; font-family: Iowan Old Style, Baskerville, "Times New Roman", "Songti SC", serif; font-size: clamp(38px, 5vw, 58px); font-weight: 520; line-height: 1.06; letter-spacing: -.035em; }
.section-heading > p:last-child, .split-heading > p { color: var(--muted); font-size: 15px; line-height: 1.8; }
.public-preview-warning { margin: 0 0 22px; padding: 18px 20px; border: 1px solid rgba(173,79,55,.28); border-radius: 18px; background: linear-gradient(135deg, rgba(173,79,55,.09), rgba(255,250,243,.92)); color: #633126; box-shadow: 0 14px 34px -28px rgba(94,40,29,.55); }
.public-preview-warning[hidden] { display: none; }
.public-preview-warning h3 { margin: 2px 0 8px; color: var(--ink); }
.public-preview-warning p { margin: 7px 0 0; line-height: 1.65; }
.public-preview-warning code { overflow-wrap: anywhere; }
.download-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 46px; }
.download-card { position: relative; min-width: 0; display: flex; flex-direction: column; gap: 20px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: rgba(255,250,243,.67); padding: 25px; box-shadow: var(--shadow); transition: transform 180ms ease, border-color 180ms ease, background 180ms ease; }
.download-card:hover { transform: translateY(-3px); border-color: rgba(173,79,55,.3); background: var(--surface); }
.download-card.is-recommended { border-color: rgba(173,79,55,.5); box-shadow: 0 30px 70px -46px rgba(173,79,55,.72); }
.download-card.is-recommended::before { content: "推荐"; position: absolute; top: 18px; right: 18px; border-radius: 999px; background: var(--ember); color: white; padding: 5px 9px; font-size: 9px; font-weight: 800; letter-spacing: .08em; }
.platform-icon { width: 45px; height: 45px; display: grid; place-items: center; border-radius: 14px; background: var(--ember-soft); color: var(--ember-dark); font-size: 22px; }
.windows-mark { font-size: 27px; }
.card-kicker { margin: 0 0 5px !important; color: var(--ember) !important; font-size: 10px !important; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.download-card h3 { margin: 0; font-size: 20px; letter-spacing: -.02em; }
.download-card p { margin: 7px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.download-card dl { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0; padding-top: 16px; border-top: 1px solid var(--line); }
.download-card dt { color: var(--muted); font-size: 10px; }
.download-card dd { margin: 5px 0 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; font-weight: 700; }
.checksum { min-width: 0; display: grid; gap: 6px; }
.checksum span { color: var(--muted); font-size: 10px; }
.checksum button { width: 100%; overflow: hidden; border: 0; border-radius: 9px; background: rgba(51,39,32,.055); color: #5d4f47; padding: 9px 10px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; text-align: left; text-overflow: ellipsis; white-space: nowrap; cursor: copy; }
.checksum button:disabled { cursor: default; }
.button-card { width: 100%; margin-top: auto; border-radius: 12px; background: var(--ink); color: white; }
.download-status { min-height: 22px; margin: 18px 0 0; color: var(--muted); font-size: 13px; }

.split-heading { max-width: none; display: grid; grid-template-columns: 1fr minmax(280px, .58fr); align-items: end; gap: 60px; }
.workflow { border-top: 1px solid var(--line); }
.workflow-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 54px 0 0; padding: 0; list-style: none; counter-reset: steps; }
.workflow-grid li { min-height: 290px; padding: 26px 34px 28px; border-left: 1px solid var(--line); }
.workflow-grid li:last-child { border-right: 1px solid var(--line); }
.workflow-grid li > span { color: var(--ember); font-family: ui-monospace, monospace; font-size: 10px; }
.workflow-icon { width: 44px; height: 44px; display: grid; place-items: center; margin-top: 46px; border: 1px solid var(--line); border-radius: 50%; color: var(--ember); }
.workflow-grid h3 { margin: 20px 0 0; font-size: 17px; }
.workflow-grid p { margin: 11px 0 0; color: var(--muted); font-size: 13px; line-height: 1.75; }

.security-section { background: var(--ink); color: #fffaf3; }
.security-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 100px; padding-block: 100px; }
.security-copy p:last-child { max-width: 550px; color: #c9bbb2; font-size: 15px; line-height: 1.8; }
.security-list { display: grid; align-content: center; gap: 0; margin: 0; padding: 0; list-style: none; }
.security-list li { display: grid; grid-template-columns: 34px 1fr; gap: 18px; padding: 23px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.security-list li:first-child { border-top: 1px solid rgba(255,255,255,.12); }
.security-list > li > span { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 50%; background: rgba(231,151,124,.15); color: #eea88f; font-size: 12px; }
.security-list strong { font-size: 15px; }
.security-list p { margin: 6px 0 0; color: #ae9e95; font-size: 12px; line-height: 1.6; }

.release-section { padding-bottom: 30px; }
.release-card { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: linear-gradient(140deg, rgba(255,250,243,.88), rgba(238,209,193,.38)); padding: 48px; }
.release-meta > p:last-child { color: var(--muted); font-size: 12px; }
.release-notes { border-left: 1px solid var(--line); padding-left: 48px; }
.release-notes h3 { margin: 0; font-size: 13px; }
.release-notes p { margin: 14px 0 0; color: var(--muted); font-size: 13px; line-height: 1.8; white-space: pre-wrap; }
.faq { padding-top: 80px; }
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 30px; margin-top: 42px; }
.faq details { border-top: 1px solid var(--line); padding: 22px 0; }
.faq summary { position: relative; padding-right: 28px; font-size: 14px; font-weight: 680; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; color: var(--ember); font-size: 20px; font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 13px 34px 0 0; color: var(--muted); font-size: 13px; line-height: 1.75; }
.site-footer { min-height: 120px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.site-footer > a:last-child { justify-self: end; }

/* Authentication */
.auth-page { min-height: 100vh; background: #211c19; }
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(420px, .9fr) minmax(480px, 1.1fr); }
.auth-story { min-height: 100vh; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(38px, 6vw, 76px); color: #fffaf3; background: radial-gradient(circle at 75% 18%, rgba(173,79,55,.35), transparent 34%), linear-gradient(145deg, #1f1a17, #2d211c); }
.auth-story h1 { max-width: 560px; margin: 0; font-family: Iowan Old Style, Baskerville, "Songti SC", serif; font-size: clamp(43px, 5vw, 68px); font-weight: 500; line-height: 1.07; letter-spacing: -.045em; }
.auth-story div > p:last-child { max-width: 580px; margin: 25px 0 0; color: #c8b8ae; font-size: 15px; line-height: 1.8; }
.auth-trust { display: flex; flex-wrap: wrap; gap: 18px; margin: 0; padding: 0; color: #c8b8ae; font-size: 11px; list-style: none; }
.auth-trust li::before { content: "✓"; margin-right: 7px; color: #e79a7e; }
.auth-panel { min-height: 100vh; display: grid; place-items: center; align-content: center; gap: 24px; padding: 40px; background: var(--paper); }
.auth-card { width: min(440px, 100%); border: 1px solid var(--line); border-radius: var(--radius-lg); background: rgba(255,250,243,.82); padding: 38px; box-shadow: var(--shadow); }
.auth-card-heading h2 { margin: 0; font-family: Iowan Old Style, Baskerville, "Songti SC", serif; font-size: 38px; font-weight: 520; letter-spacing: -.035em; }
.auth-card-heading > p:last-child { margin: 10px 0 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.auth-card form { display: grid; margin-top: 30px; }
.auth-card label, .reauth-dialog label { margin: 16px 0 8px; font-size: 12px; font-weight: 700; }
.auth-card label span, .reauth-dialog label span { color: var(--muted); font-size: 10px; font-weight: 500; }
input, textarea, select { width: 100%; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: rgba(255,255,255,.68); color: var(--ink); padding: 12px 13px; transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease; }
input, select { min-height: 45px; }
textarea { resize: vertical; line-height: 1.65; }
input:focus, textarea:focus, select:focus { border-color: var(--ember); background: #fff; box-shadow: 0 0 0 4px rgba(173,79,55,.09); }
input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid var(--ember-dark); outline-offset: 2px; }
select:disabled { cursor: not-allowed; opacity: .62; }
.password-field { position: relative; }
.password-field input { padding-right: 64px; }
.password-field button { position: absolute; top: 50%; right: 8px; transform: translateY(-50%); border: 0; background: transparent; color: var(--ember); padding: 7px; font-size: 11px; cursor: pointer; }
.auth-submit { width: 100%; margin-top: 25px; }
.form-message { min-height: 20px; margin: 12px 0 0; color: var(--danger); font-size: 12px; line-height: 1.55; }
.form-message.is-success { color: var(--green); }
.auth-footnote { margin: 22px 0 0; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; line-height: 1.6; }
.back-link { color: #6e5e54; font-size: 12px; text-decoration: none; }

/* Admin */
.admin-page { min-height: 100vh; background: #f2ebe1; }
.admin-header { position: sticky; z-index: 20; top: 0; min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 0 max(24px, calc((100vw - 1180px) / 2)); border-bottom: 1px solid var(--line); background: rgba(245,238,228,.9); backdrop-filter: blur(18px); }
.admin-account { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 11px; }
.text-button { border: 0; background: transparent; color: var(--ember); padding: 8px; font-size: 11px; font-weight: 700; cursor: pointer; }
.admin-shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 68px 0 100px; }
.admin-titlebar { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 32px; }
.admin-titlebar h1 { font-size: clamp(42px, 5vw, 62px); }
.admin-titlebar > div > p:last-child { max-width: 650px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.revision-chip { flex: 0 0 auto; min-width: 120px; display: grid; gap: 5px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,250,243,.55); padding: 12px 15px; }
.revision-chip span { color: var(--muted); font-size: 9px; text-transform: uppercase; }
.revision-chip strong { overflow: hidden; font-family: ui-monospace, monospace; font-size: 11px; text-overflow: ellipsis; }
.admin-notice { min-height: 0; overflow: hidden; margin: 0 0 18px; border: 0 solid transparent; border-radius: 12px; color: var(--muted); font-size: 12px; transition: all 160ms ease; }
.admin-notice:not(:empty) { min-height: 42px; border-width: 1px; border-color: var(--line); background: var(--surface); padding: 12px 14px; }
.admin-notice.is-error { border-color: rgba(162,53,53,.25); background: #fff2ef; color: var(--danger); }
.admin-notice.is-success { border-color: rgba(50,116,92,.24); background: #edf8f2; color: var(--green); }
.panel { border: 1px solid var(--line); border-radius: var(--radius-md); background: rgba(255,250,243,.68); padding: 28px; box-shadow: 0 20px 60px -54px rgba(53,31,21,.7); }
.release-form { display: grid; gap: 20px; margin-top: 20px; }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 26px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.panel-heading h2 { margin: 0; font-size: 20px; letter-spacing: -.02em; }
.panel-heading > div > p:last-child { margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.status-badge, .dirty-indicator { flex: 0 0 auto; border-radius: 999px; padding: 6px 10px; font-size: 9px; font-weight: 800; letter-spacing: .06em; }
.status-empty { background: rgba(73,58,48,.08); color: var(--muted); }
.status-live { background: rgba(50,116,92,.11); color: var(--green); }
.status-withdrawn { background: rgba(162,53,53,.1); color: var(--danger); }
.dirty-indicator { background: rgba(50,116,92,.1); color: var(--green); }
.dirty-indicator.is-dirty { background: rgba(173,79,55,.12); color: var(--ember); }
.current-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 24px; }
.current-grid > div { min-width: 0; display: grid; gap: 6px; padding-right: 16px; border-right: 1px solid var(--line); }
.current-grid > div:last-child { border: 0; }
.current-grid span, .current-notes > span { color: var(--muted); font-size: 9px; letter-spacing: .06em; text-transform: uppercase; }
.current-grid strong { overflow: hidden; font-family: ui-monospace, monospace; font-size: 12px; text-overflow: ellipsis; }
.current-notes { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.current-notes p { margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.7; white-space: pre-wrap; }
.form-grid { display: grid; gap: 18px; margin-top: 24px; }
.two-columns { grid-template-columns: 1fr 1fr; }
.field { display: grid; margin-top: 22px; }
.form-grid .field { margin-top: 0; }
.field label, .artifact-editor label { font-size: 11px; font-weight: 720; }
.field input, .field textarea, .artifact-editor input { margin-top: 8px; }
.field > p, .artifact-editor label + p { margin: 7px 0 0; color: var(--muted); font-size: 9px; line-height: 1.5; }
.label-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.label-row span { color: var(--muted); font-family: ui-monospace, monospace; font-size: 9px; }
.artifact-editor-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; }
.artifact-editor { min-width: 0; display: grid; gap: 15px; margin: 0; border: 1px solid var(--line); border-radius: 14px; padding: 19px; }
.artifact-editor legend { padding: 0 8px; font-size: 12px; font-weight: 720; }
.artifact-editor legend span { color: var(--ember); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.artifact-editor label { display: grid; color: #5f5047; font-size: 10px; }
.artifact-editor input { min-width: 0; font-size: 11px; }
.mono-input { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.publish-bar { display: flex; align-items: center; justify-content: space-between; gap: 30px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--ink); color: #fffaf3; padding: 22px 25px; }
.publish-bar strong { font-size: 13px; }
.publish-bar p { margin: 5px 0 0; color: #ad9d93; font-size: 10px; }
.publish-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; }
.preview-risk-note { margin: 16px 0 0; padding: 13px 15px; border: 1px solid rgba(173,79,55,.26); border-radius: 14px; background: rgba(173,79,55,.07); color: #6f3528; line-height: 1.65; }
.preview-risk-note[hidden] { display: none; }
.publish-bar .button-ghost { border-color: rgba(255,255,255,.2); background: transparent; color: white; }
.publish-bar .button-primary { background: #fff8ef; color: var(--ink); }
.publish-bar .button-danger { border-color: rgba(238,143,137,.35); color: #f1aaa4; }
.history-panel { margin-top: 20px; }
.history-list { display: grid; margin: 0; padding: 0; list-style: none; }
.history-list li { display: grid; grid-template-columns: 120px 1fr auto; align-items: center; gap: 20px; padding: 16px 4px; border-bottom: 1px solid var(--line); font-size: 11px; }
.history-list li:last-child { border: 0; }
.history-list time { color: var(--muted); font-family: ui-monospace, monospace; font-size: 9px; }
.history-list strong { display: block; }
.history-list p { margin: 4px 0 0; color: var(--muted); font-size: 10px; }
.history-list .history-action { border-radius: 999px; background: rgba(173,79,55,.1); color: var(--ember); padding: 5px 8px; font-size: 9px; }
.history-list .empty-row { display: block; color: var(--muted); text-align: center; }
.reauth-dialog { width: min(460px, calc(100% - 30px)); border: 1px solid var(--line); border-radius: 22px; background: var(--surface); color: var(--ink); padding: 0; box-shadow: 0 30px 90px -35px rgba(0,0,0,.65); }
.reauth-dialog::backdrop { background: rgba(24,18,15,.56); backdrop-filter: blur(4px); }
.reauth-dialog form { position: relative; display: grid; padding: 30px; }
.reauth-dialog h2 { margin: 0; font-family: Iowan Old Style, Baskerville, serif; font-size: 31px; font-weight: 520; }
.reauth-dialog form > p:not(.eyebrow):not(.form-message) { color: var(--muted); font-size: 12px; line-height: 1.65; }
.dialog-close { position: absolute; top: 16px; right: 16px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(46,34,27,.07); color: var(--muted); font-size: 20px; cursor: pointer; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 18px; }

[hidden] { display: none !important; }
.site-nav a[aria-current="page"], .mobile-nav a[aria-current="page"], .site-footer a[aria-current="page"] { color: var(--ink); font-weight: 760; }
.site-footer nav { justify-self: end; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 16px; }
.site-footer nav a { text-decoration: none; }
.site-footer nav a:hover { color: var(--ink); }
.button-compact { min-height: 36px; padding-inline: 14px; font-size: 11px; }
.text-link { color: var(--ember); font-size: 11px; font-weight: 720; text-decoration: none; }
.break-anywhere { overflow-wrap: anywhere; }

.artifact-trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin: -4px 0 0; padding: 0; list-style: none; }
.artifact-trust li { min-width: 0; display: grid; gap: 4px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.32); padding: 8px; }
.artifact-trust span { color: var(--muted); font-size: 8px; letter-spacing: .06em; text-transform: uppercase; }
.artifact-trust strong { overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.is-good { color: var(--green); }
.is-pending { color: var(--muted); }
.is-warning { color: var(--ember); }
.is-bad { color: var(--danger); }
.release-trust-summary { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.release-trust-summary span { border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.32); color: var(--muted); padding: 6px 9px; font-size: 9px; }
.portal-resources { padding-block: 88px 110px; }
.resource-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 42px; }
.resource-card { position: relative; min-height: 210px; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius-md); background: rgba(255,250,243,.58); padding: 24px; text-decoration: none; transition: transform 160ms ease, border-color 160ms ease, background 160ms ease; }
.resource-card:hover { transform: translateY(-2px); border-color: rgba(173,79,55,.32); background: var(--surface); }
.resource-card > span { color: var(--ember); font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.resource-card strong { display: block; margin-top: 18px; font-family: Iowan Old Style, Baskerville, "Songti SC", serif; font-size: 22px; font-weight: 540; line-height: 1.25; }
.resource-card p { margin: 11px 0 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.resource-card i { margin-top: auto; align-self: flex-end; color: var(--ember); font-size: 18px; font-style: normal; }

.admin-nav { display: flex; gap: 20px; margin-left: auto; }
.admin-nav a { color: var(--muted); font-size: 11px; text-decoration: none; }
.admin-nav a:hover { color: var(--ink); }
.channel-bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: -5px 0 20px; }
.channel-bar > p { margin: 0; color: var(--muted); font-size: 11px; }
.channel-tabs { display: inline-flex; gap: 4px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,250,243,.55); padding: 4px; }
.channel-tabs button { min-width: 78px; min-height: 34px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); padding: 0 13px; font-size: 11px; font-weight: 720; cursor: pointer; }
.channel-tabs button[aria-selected="true"] { background: var(--ink); color: #fffaf3; box-shadow: 0 8px 18px -13px rgba(0,0,0,.75); }
.channel-tabs button:disabled { opacity: .42; cursor: not-allowed; }
.current-grid-wide { grid-template-columns: repeat(5, 1fr); }
.field-error { min-height: 18px; margin: 16px 0 0; color: var(--danger); }
.rollout-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(320px, 1.2fr); gap: 34px; }
.rollout-field input[type="range"] { min-height: 28px; border: 0; background: transparent; padding: 0; box-shadow: none; accent-color: var(--ember); }
.rollout-field output { color: var(--ember); font-family: ui-monospace, monospace; font-size: 12px; font-weight: 760; }
.range-labels { display: flex; justify-content: space-between; color: var(--muted); font-size: 9px; }
.artifact-editor > label { margin-bottom: -9px; }
.artifact-editor > input { margin-top: 0; }
.artifact-verify-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 13px; border-top: 1px solid var(--line); }
.verification-badge { border-radius: 999px; padding: 5px 8px; font-size: 9px; font-weight: 780; }
.verification-badge.is-unverified { background: rgba(73,58,48,.08); color: var(--muted); }
.verification-badge.is-verifying { background: rgba(173,79,55,.1); color: var(--ember); }
.verification-badge.is-verified { background: rgba(50,116,92,.11); color: var(--green); }
.verification-badge.is-failed { background: rgba(162,53,53,.1); color: var(--danger); }
.verification-message { min-height: 30px; margin: -5px 0 0; color: var(--muted); font-size: 9px; line-height: 1.55; }
.trust-editor-grid { display: grid; grid-template-columns: .72fr 1.28fr; gap: 22px; }
.signing-payload-card { margin-top: 22px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.28); padding: 16px; }
.signing-payload-card .label-row > div { display: grid; gap: 4px; }
.signing-payload-card .label-row strong { font-size: 11px; }
.signing-payload-card .label-row span { font-family: inherit; }
.signing-payload-card textarea { margin-top: 13px; background: rgba(33,28,25,.04); font-size: 10px; }
.signing-payload-card > p { margin: 8px 0 0; color: var(--muted); font-size: 9px; line-height: 1.6; }
.signing-payload-card code, #manifest-signature-help code { font-family: ui-monospace, monospace; }
.trust-checks { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 24px 0 0; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px; }
.trust-checks legend { padding: 0 8px; font-size: 10px; font-weight: 760; }
.trust-checks label { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; }
.trust-checks input { width: 16px; min-height: 16px; margin: 0; accent-color: var(--ember); }
.release-preview { display: grid; grid-template-columns: minmax(190px, .38fr) minmax(0, .62fr); gap: 30px; margin-top: 24px; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(135deg, rgba(255,255,255,.47), rgba(238,209,193,.2)); padding: 24px; }
.preview-version { display: flex; flex-direction: column; align-items: flex-start; }
.preview-version > span { border-radius: 999px; background: var(--ember-soft); color: var(--ember-dark); padding: 5px 8px; font-size: 9px; font-weight: 760; }
.preview-version strong { margin-top: 16px; font-family: Iowan Old Style, Baskerville, serif; font-size: 28px; font-weight: 540; }
.preview-version p, .preview-copy > p { color: var(--muted); font-size: 11px; line-height: 1.7; white-space: pre-wrap; }
.preview-copy { min-width: 0; border-left: 1px solid var(--line); padding-left: 28px; }
.preview-copy > p { min-height: 48px; margin-top: 0; }
.preview-meta { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.preview-meta span { border: 1px solid var(--line); border-radius: 999px; padding: 5px 8px; color: var(--muted); font-size: 9px; }
.audit-panel, .security-center { margin-top: 20px; scroll-margin-top: 90px; }
.audit-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.audit-list li { display: grid; grid-template-columns: minmax(190px, .75fr) minmax(240px, 1fr) minmax(220px, .85fr); align-items: center; gap: 18px; border-bottom: 1px solid var(--line); padding: 15px 3px; }
.audit-list li:last-child { border: 0; }
.audit-list li > div { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.audit-list strong { font-size: 11px; }
.audit-list time, .audit-list p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.55; }
.audit-list time, .audit-meta { font-family: ui-monospace, monospace; }
.audit-list .empty-row { display: block; color: var(--muted); text-align: center; }
.security-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 22px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.28); }
.security-summary > div { min-width: 0; display: grid; gap: 6px; padding: 14px 16px; border-right: 1px solid var(--line); }
.security-summary > div:last-child { border: 0; }
.security-summary span { color: var(--muted); font-size: 9px; }
.security-summary strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; }
.security-action-grid { display: grid; grid-template-columns: repeat(3, 1fr); align-items: start; gap: 14px; margin-top: 18px; }
.security-card { min-width: 0; display: grid; align-content: start; gap: 9px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.28); padding: 19px; }
.security-card h3 { margin: 0; font-size: 15px; }
.security-card > div:first-child > p:last-child, .security-card > p { margin: 7px 0 10px; color: var(--muted); font-size: 10px; line-height: 1.55; }
.security-card label { margin-top: 5px; font-size: 10px; font-weight: 720; }
.security-card input { min-height: 40px; padding: 9px 11px; font-size: 11px; }
.security-card .button { justify-self: start; margin-top: 7px; }
.strong-auth-fields, .security-subform, .enrollment-panel { display: grid; gap: 8px; margin-top: 9px; border-top: 1px solid var(--line); padding-top: 13px; }
.strong-auth-fields > span { color: var(--muted); font-size: 9px; text-align: center; }
.secret-value { display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); padding: 10px; }
.secret-value code { overflow: hidden; font-size: 10px; text-overflow: ellipsis; }
.recovery-dialog > section { padding: 30px; }
.recovery-dialog h2 { margin: 0; font-family: Iowan Old Style, Baskerville, serif; font-size: 31px; font-weight: 520; }
.recovery-dialog section > p:not(.eyebrow):not(.form-message) { color: var(--muted); font-size: 12px; line-height: 1.65; }
.recovery-code-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 20px 0 0; padding: 0; list-style: none; }
.recovery-code-list li { border: 1px solid var(--line); border-radius: 9px; background: rgba(255,255,255,.5); padding: 9px; font-family: ui-monospace, monospace; font-size: 10px; text-align: center; }

.content-page .site-header { position: relative; z-index: 5; }
.page-hero { padding-block: 92px 76px; }
.page-hero h1 { max-width: 820px; margin: 0; font-family: Iowan Old Style, Baskerville, "Songti SC", serif; font-size: clamp(52px, 7vw, 82px); font-weight: 520; line-height: 1; letter-spacing: -.05em; }
.page-hero h1 em { color: var(--ember); font-weight: inherit; }
.page-hero > p:not(.eyebrow) { max-width: 720px; margin: 26px 0 0; color: var(--muted); font-size: 15px; line-height: 1.8; }
.page-status { width: max-content; max-width: 100%; display: grid; grid-template-columns: auto auto; align-items: center; gap: 3px 9px; margin-top: 30px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,250,243,.58); padding: 11px 14px; }
.page-status .signal-dot { grid-row: 1 / 3; }
.page-status strong { font-size: 11px; }
.page-status small { color: var(--muted); font-size: 9px; }
.page-status.is-healthy .signal-dot { background: var(--green); box-shadow: 0 0 0 5px rgba(50,116,92,.1); }
.page-status.is-degraded .signal-dot { background: var(--ember); }
.history-page-section { padding-block: 50px 90px; }
.history-channel-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 34px; }
.history-channel-help { max-width: 580px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.65; text-align: right; }
.history-preview-warning { margin: 22px 0 0; }
.history-preview-warning .eyebrow { margin-bottom: 8px; }
#release-history-panel:focus-visible { border-radius: var(--radius-sm); }
.public-release-list { display: grid; gap: 18px; margin: 38px 0 0; padding: 0; list-style: none; }
.public-release-card { border: 1px solid var(--line); border-radius: var(--radius-lg); background: rgba(255,250,243,.67); padding: 30px; box-shadow: var(--shadow); }
.public-release-card.is-preview { border-color: rgba(173,79,55,.3); background: linear-gradient(145deg, rgba(255,250,243,.76), rgba(238,209,193,.2)); }
.public-release-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.public-release-header h3 { margin: 0; font-family: Iowan Old Style, Baskerville, serif; font-size: 34px; font-weight: 540; }
.public-release-header time { color: var(--muted); font-family: ui-monospace, monospace; font-size: 10px; }
.public-release-notes { margin: 20px 0 0; color: var(--muted); font-size: 12px; line-height: 1.75; white-space: pre-wrap; }
.public-release-base-url { display: flex; align-items: baseline; gap: 10px; margin: 18px 0 0; color: var(--muted); font-size: 10px; }
.public-release-base-url span { flex: 0 0 auto; font-weight: 720; }
.public-release-base-url code { min-width: 0; overflow-wrap: anywhere; color: var(--ink); font-size: 10px; }
.public-release-risk { margin: 18px 0 0; border-left: 3px solid var(--ember); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background: rgba(173,79,55,.08); color: #633126; padding: 12px 14px; font-size: 11px; line-height: 1.7; }
.public-trust-list { display: flex; flex-wrap: wrap; gap: 7px; margin: 20px 0 0; padding: 0; list-style: none; }
.public-trust-list li { border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.34); color: var(--muted); padding: 6px 9px; font-size: 9px; }
.public-artifact-list { display: grid; margin: 24px 0 0; padding: 0; border-top: 1px solid var(--line); list-style: none; }
.public-artifact-row { display: grid; grid-template-columns: 1fr auto auto minmax(160px, auto); align-items: center; gap: 18px; padding: 15px 2px; border-bottom: 1px solid var(--line); }
.public-artifact-row:last-child { border: 0; }
.public-artifact-identity { display: grid; gap: 4px; }
.public-artifact-identity strong { font-size: 11px; }
.public-artifact-identity span, .public-artifact-health { color: var(--muted); font-size: 9px; }
.public-artifact-download { border-bottom: 1px solid var(--line-strong); color: var(--ember-dark); font-size: 10px; font-weight: 720; text-decoration: none; }
.public-artifact-download:hover { border-color: var(--ember); color: var(--ember); }
.public-artifact-download.is-disabled { border: 0; color: var(--muted); cursor: not-allowed; opacity: .65; pointer-events: none; }
.checksum-button { overflow: hidden; border: 0; background: transparent; color: var(--ember); padding: 5px; font-family: ui-monospace, monospace; font-size: 9px; text-overflow: ellipsis; cursor: pointer; }
.checksum-button:disabled { color: var(--muted); cursor: default; }
.public-release-empty, .public-artifact-empty { border: 1px dashed var(--line-strong); border-radius: 14px; color: var(--muted); padding: 30px; font-size: 12px; text-align: center; }
.public-release-empty.is-error { border-color: rgba(162,53,53,.3); color: var(--danger); }
.release-principles { padding-block: 20px 110px; }
.principle-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 38px; }
.principle-grid article { border-top: 1px solid var(--line-strong); padding: 22px 4px; }
.principle-grid span { color: var(--ember); font-family: ui-monospace, monospace; font-size: 10px; }
.principle-grid h3 { margin: 24px 0 0; font-size: 17px; }
.principle-grid p { color: var(--muted); font-size: 11px; line-height: 1.7; }

.help-jumps { max-width: 100%; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.help-jumps a { border: 1px solid var(--line); border-radius: 999px; background: rgba(255,250,243,.48); padding: 8px 11px; color: var(--muted); font-size: 10px; text-decoration: none; }
.help-jumps a:hover { border-color: rgba(173,79,55,.35); color: var(--ember); }
.help-layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; align-items: start; gap: 55px; padding-block: 35px 100px; }
.help-main { min-width: 0; display: grid; gap: 22px; }
.help-section { min-width: 0; scroll-margin-top: 30px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: rgba(255,250,243,.62); padding: 32px; }
.help-section h2 { margin: 0; font-size: 25px; }
.help-section > p:not(.eyebrow) { color: var(--muted); font-size: 12px; line-height: 1.75; }
.help-platform-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 26px; }
.help-platform-grid article { border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.3); padding: 18px; }
.help-platform-grid span { color: var(--ember); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.help-platform-grid h3 { margin: 14px 0 0; font-size: 14px; }
.help-platform-grid p { color: var(--muted); font-size: 10px; line-height: 1.7; }
.command-card { min-width: 0; max-width: 100%; margin-top: 12px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--ink); color: #fffaf3; }
.command-card > div { display: flex; align-items: center; justify-content: space-between; gap: 15px; border-bottom: 1px solid rgba(255,255,255,.1); padding: 9px 13px; color: #cbbdb4; font-size: 9px; }
.command-card button { border: 0; background: transparent; color: #e9a28a; font-size: 9px; cursor: pointer; }
.command-card code { display: block; overflow-x: auto; padding: 16px; font-size: 10px; white-space: nowrap; }
.copy-status { min-height: 18px; }
.numbered-steps, .boundary-list { display: grid; gap: 0; margin: 24px 0 0; padding: 0; list-style: none; counter-reset: steps; }
.numbered-steps li, .boundary-list li { position: relative; border-top: 1px solid var(--line); padding: 18px 0 18px 42px; }
.numbered-steps li { counter-increment: steps; }
.numbered-steps li::before { content: counter(steps, decimal-leading-zero); position: absolute; top: 19px; left: 2px; color: var(--ember); font-family: ui-monospace, monospace; font-size: 10px; }
.boundary-list li::before { content: "✓"; position: absolute; top: 18px; left: 4px; color: var(--green); }
.numbered-steps strong, .boundary-list strong { font-size: 12px; }
.numbered-steps p, .boundary-list p { margin: 6px 0 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.help-aside { position: sticky; top: 30px; display: grid; gap: 14px; }
.help-aside section { border: 1px solid var(--line); border-radius: var(--radius-md); background: rgba(255,250,243,.62); padding: 22px; }
.help-aside h2 { margin: 0; font-size: 16px; }
.help-aside p { color: var(--muted); font-size: 10px; line-height: 1.65; }
.help-status-card .signal-dot { margin-bottom: 14px; }
.help-status-card > p:first-of-type { margin: 0 0 7px; color: var(--ember); font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }

@media (max-width: 980px) {
  .site-header { grid-template-columns: 1fr auto auto; gap: 12px; }
  .site-nav { display: none; }
  .mobile-nav { display: block; }
  .hero { grid-template-columns: 1fr; gap: 50px; padding-top: 66px; }
  .hero-copy { max-width: 680px; }
  .hero-stage { width: min(700px, 100%); margin-inline: auto; }
  .download-grid, .artifact-editor-grid { grid-template-columns: 1fr; }
  .download-card { display: grid; grid-template-columns: auto 1fr; }
  .download-card dl, .download-card .checksum, .download-card .button-card { grid-column: 1 / -1; }
  .security-grid { grid-template-columns: 1fr; gap: 50px; }
  .auth-shell { grid-template-columns: 1fr; }
  .auth-story { min-height: 460px; }
  .auth-panel { min-height: auto; padding-block: 70px; }
  .current-grid { grid-template-columns: repeat(2, 1fr); }
  .current-grid > div:nth-child(2) { border: 0; }
  .publish-bar { align-items: flex-start; flex-direction: column; }
  .publish-actions { justify-content: flex-start; }
  .resource-grid { grid-template-columns: 1fr 1fr; }
  .admin-header { flex-wrap: wrap; padding-block: 10px; }
  .admin-nav { order: 3; width: 100%; display: flex; gap: 6px; overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: thin; }
  .admin-nav a { min-height: 44px; flex: 1 0 auto; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,250,243,.45); padding: 0 18px; }
  .audit-panel, .security-center { scroll-margin-top: 136px; }
  .channel-bar { align-items: flex-start; flex-direction: column; }
  .current-grid-wide { grid-template-columns: repeat(3, 1fr); }
  .current-grid-wide > div:nth-child(2) { border-right: 1px solid var(--line); }
  .current-grid-wide > div:nth-child(3) { border: 0; }
  .rollout-grid, .trust-editor-grid { grid-template-columns: 1fr; gap: 0; }
  .security-action-grid { grid-template-columns: 1fr 1fr; }
  .audit-list li { grid-template-columns: minmax(170px, .7fr) 1fr; }
  .audit-list .audit-meta { grid-column: 1 / -1; }
  .help-layout { grid-template-columns: 1fr; }
  .help-aside { position: static; grid-template-columns: 1fr 1fr; }
  .help-platform-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .section-shell, .site-header, .site-footer, .admin-shell { width: min(100% - 28px, 1180px); }
  .site-header { min-height: 66px; }
  .site-header { gap: 8px; }
  .mobile-nav summary { min-height: 38px; padding-inline: 11px; }
  .header-action { padding: 9px 12px; }
  .hero { min-height: auto; padding-block: 58px 70px; }
  .hero h1 { font-size: clamp(44px, 13.2vw, 54px); }
  .hero-lead { font-size: 15px; }
  .hero-stage { min-height: 330px; }
  .app-window { transform: none; }
  .window-body { grid-template-columns: 48px 1fr; min-height: 270px; }
  .mock-content { padding: 20px 16px; }
  .tool-tile { min-height: 68px; padding: 9px; }
  .tool-tile b { width: 25px; height: 25px; }
  .floating-card, .stage-orbit { display: none; }
  .quiet-strip { overflow: hidden; }
  .tool-wordmarks { flex-wrap: nowrap; justify-content: flex-start; overflow: hidden; }
  .downloads, .workflow, .release-section, .faq { padding-block: 78px; }
  .split-heading, .release-card { grid-template-columns: 1fr; gap: 28px; }
  .workflow-grid { grid-template-columns: 1fr; }
  .workflow-grid li, .workflow-grid li:last-child { min-height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .workflow-icon { margin-top: 26px; }
  .security-grid { padding-block: 74px; }
  .release-card { padding: 30px; }
  .release-notes { border-top: 1px solid var(--line); border-left: 0; padding-top: 28px; padding-left: 0; }
  .faq-grid { grid-template-columns: 1fr; }
  .site-footer { grid-template-columns: 1fr auto; padding-block: 30px; }
  .site-footer p { grid-column: 1 / -1; grid-row: 2; }
  .site-footer nav { grid-column: 1 / -1; justify-self: start; justify-content: flex-start; }
  .auth-story { min-height: 390px; padding: 30px 24px; }
  .auth-story h1 { font-size: 42px; }
  .auth-trust { display: none; }
  .auth-panel { padding: 48px 16px; }
  .auth-card { padding: 28px 22px; }
  .admin-header { padding-inline: 15px; }
  .admin-account span { display: none; }
  .admin-shell { padding-top: 42px; }
  .admin-titlebar { align-items: flex-start; flex-direction: column; }
  .revision-chip { width: 100%; }
  .panel { padding: 21px 17px; }
  .panel-heading { align-items: flex-start; flex-direction: column; }
  .current-grid, .two-columns { grid-template-columns: 1fr; }
  .current-grid > div { border-right: 0; border-bottom: 1px solid var(--line); padding-bottom: 13px; }
  .current-grid > div:nth-child(2) { border-bottom: 1px solid var(--line); }
  .publish-actions { width: 100%; }
  .publish-actions .button { flex: 1 1 calc(50% - 9px); }
  .history-list li { grid-template-columns: 1fr auto; }
  .history-list time { grid-column: 1 / -1; }
  .artifact-trust { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .resource-grid { grid-template-columns: 1fr; }
  .resource-card { min-height: 170px; }
  .portal-resources { padding-block: 70px 84px; }
  .channel-bar { overflow: hidden; }
  .channel-tabs { width: 100%; overflow-x: auto; }
  .channel-tabs button { flex: 1 0 auto; }
  .current-grid-wide { grid-template-columns: 1fr; }
  .current-grid-wide > div:nth-child(2), .current-grid-wide > div:nth-child(3) { border-right: 0; border-bottom: 1px solid var(--line); }
  .release-preview { grid-template-columns: 1fr; gap: 20px; }
  .preview-copy { border-top: 1px solid var(--line); border-left: 0; padding-top: 20px; padding-left: 0; }
  .trust-checks { align-items: flex-start; flex-direction: column; }
  .audit-list li { grid-template-columns: 1fr; gap: 7px; }
  .audit-list li > div { align-items: flex-start; flex-direction: column; gap: 3px; }
  .audit-list .audit-meta { grid-column: auto; }
  .security-summary { grid-template-columns: 1fr 1fr; }
  .security-summary > div:nth-child(2) { border-right: 0; }
  .security-summary > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .security-action-grid { grid-template-columns: 1fr; }
  .recovery-code-list { grid-template-columns: 1fr; }
  .page-hero { padding-block: 62px 54px; }
  .page-hero h1 { font-size: clamp(43px, 13vw, 58px); }
  .page-hero > p:not(.eyebrow) { font-size: 13px; }
  .history-channel-toolbar { align-items: stretch; flex-direction: column; gap: 14px; }
  .history-channel-tabs { width: 100%; }
  .history-channel-help { text-align: left; }
  .public-release-card { padding: 22px 18px; }
  .public-release-header { flex-direction: column; gap: 10px; }
  .public-release-header h3 { font-size: 29px; }
  .public-release-base-url { align-items: flex-start; flex-direction: column; gap: 5px; }
  .public-artifact-row { grid-template-columns: 1fr auto; gap: 10px; }
  .public-artifact-row .public-artifact-download { justify-self: end; }
  .public-artifact-row .checksum-button { grid-column: 1 / -1; justify-self: start; }
  .principle-grid { grid-template-columns: 1fr; }
  .help-layout { padding-top: 10px; }
  .help-section { padding: 23px 18px; }
  .help-aside { grid-template-columns: 1fr; }
  .help-jumps { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 5px; }
  .help-jumps a { flex: 0 0 auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
