:root {
  --bg: #090b0d;
  --surface: #111519;
  --surface-2: #171c21;
  --line: #293139;
  --text: #f3f6f8;
  --muted: #9da8b0;
  --lime: #c9ff3d;
  --lime-soft: rgba(201, 255, 61, 0.11);
  --orange: #ff9f43;
  --danger: #ff4d43;
  --danger-bg: #3a0d0a;
  --max: 1180px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--bg); line-height: 1.65; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
code, pre { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; }

.skip-link { position: fixed; top: 8px; left: 8px; z-index: 100; padding: 8px 12px; color: #000; background: var(--lime); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

.safety-banner { display: grid; grid-template-columns: auto minmax(0, var(--max)); justify-content: center; gap: 18px; padding: 18px 24px; border-bottom: 2px solid var(--danger); background: repeating-linear-gradient(135deg, var(--danger-bg), var(--danger-bg) 14px, #320b09 14px, #320b09 28px); }
.safety-banner h1, .safety-banner p { margin: 0; }
.safety-banner h1 { font-size: clamp(1.15rem, 2.3vw, 1.65rem); letter-spacing: .02em; }
.safety-banner p:last-child { max-width: 980px; color: #ffd9d6; }
.safety-mark { align-self: center; display: grid; place-items: center; width: 46px; height: 46px; border: 2px solid #fff; border-radius: 50%; font: 900 1.6rem/1 monospace; color: #fff; background: var(--danger); }
.eyebrow { margin: 0 0 8px; color: var(--lime); font: 700 .72rem/1.2 "SFMono-Regular", Consolas, monospace; letter-spacing: .14em; text-transform: uppercase; }
.safety-banner .eyebrow { color: #ffaba6; }

.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); background: radial-gradient(circle at 78% 48%, rgba(201,255,61,.10), transparent 26%), linear-gradient(180deg, #101418 0%, #090b0d 100%); }
.hero::before { content: ""; position: absolute; inset: 0; opacity: .17; pointer-events: none; background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px); background-size: 42px 42px; mask-image: linear-gradient(to bottom, black, transparent 85%); }
.topbar, .hero-grid, .section, .boundary, footer { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.topbar { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; padding: 24px 0; border-bottom: 1px solid var(--line); }
.brand, footer > div { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: .02em; }
.brand-glyph { display: grid; place-items: center; width: 30px; height: 30px; color: #050600; background: var(--lime); font: 900 1rem/1 monospace; clip-path: polygon(15% 0, 100% 0, 85% 100%, 0 100%); }
.nav-links { display: flex; gap: 28px; color: var(--muted); font-size: .9rem; }
.nav-links a:hover, .nav-links a:focus-visible, footer a:hover { color: var(--lime); }

.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.45fr .75fr; gap: clamp(40px, 8vw, 110px); align-items: center; padding: 92px 0 105px; }
.kicker { color: var(--muted); font: 700 .76rem/1.4 monospace; letter-spacing: .16em; }
.hero-copy h2 { max-width: 780px; margin: 18px 0 24px; font-size: clamp(2.6rem, 6.5vw, 5.8rem); line-height: .98; letter-spacing: -.065em; }
.hero-copy h2 span { color: var(--lime); }
.lede { max-width: 700px; color: #c3cbd0; font-size: clamp(1rem, 1.8vw, 1.18rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 11px 20px; border: 1px solid transparent; border-radius: 2px; cursor: pointer; font-weight: 750; transition: transform .15s ease, border-color .15s ease, background .15s ease; }
.button:hover { transform: translateY(-2px); }
.button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible, .snippet-toolbar button:focus-visible, a:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
.button-primary { color: #0a0c08; background: var(--lime); }
.button-secondary { border-color: #56616b; background: rgba(255,255,255,.03); }
.button-secondary:hover { border-color: var(--lime); }

.device-card { position: relative; padding: 28px; border: 1px solid #414b53; background: rgba(12,15,17,.87); box-shadow: 14px 14px 0 rgba(201,255,61,.08); }
.device-card::before { content: "SUPPORTED HARDWARE"; position: absolute; top: 18px; right: 18px; color: #67727a; font: 650 .61rem/1 monospace; letter-spacing: .12em; }
.device-orbit { display: grid; place-items: center; width: 152px; height: 152px; margin: 18px auto 32px; border: 1px solid #48535a; border-radius: 50%; background: radial-gradient(circle, var(--lime-soft), transparent 62%); box-shadow: inset 0 0 0 24px rgba(255,255,255,.015); }
.device-orbit::before, .device-orbit::after { content: ""; position: absolute; border-radius: 50%; }
.device-orbit::before { width: 112px; height: 112px; border: 1px dashed #69737b; }
.device-orbit::after { width: 8px; height: 8px; transform: translate(73px, -28px); background: var(--lime); box-shadow: 0 0 16px var(--lime); }
.device-orbit span { z-index: 1; font: 900 2.4rem/1 monospace; letter-spacing: -.12em; }
dl { margin: 0; }
dl div { display: grid; grid-template-columns: 1fr 1.45fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
dt { color: var(--muted); font-size: .78rem; }
dd { margin: 0; font: 650 .78rem/1.5 monospace; }
.warning-text { color: var(--orange); }

.boundary { display: grid; grid-template-columns: repeat(3, 1fr); border-inline: 1px solid var(--line); }
.boundary article { min-height: 170px; padding: 30px; border-right: 1px solid var(--line); background: #0d1013; }
.boundary article:last-child { border-right: 0; }
.boundary span { color: var(--lime); font: 700 .72rem monospace; }
.boundary h3 { margin: 14px 0 4px; font-size: 1rem; }
.boundary p { margin: 0; color: var(--muted); font-size: .9rem; }

.section { padding: 100px 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 36px; }
.section-heading h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.1; letter-spacing: -.04em; }
.section-heading.compact { margin-bottom: 24px; }
.data-status { max-width: 420px; margin: 0; color: var(--muted); font: .76rem/1.6 monospace; text-align: right; }
.data-status.error { color: #ff8982; }

.releases-section { padding-bottom: 70px; }
.release-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.release-card { position: relative; display: flex; flex-direction: column; min-height: 510px; padding: 30px; overflow: hidden; border: 1px solid var(--line); background: linear-gradient(145deg, var(--surface-2), var(--surface)); }
.release-card::after { content: ""; position: absolute; right: -90px; bottom: -90px; width: 220px; height: 220px; border: 1px solid rgba(201,255,61,.14); border-radius: 50%; box-shadow: 0 0 0 28px rgba(201,255,61,.025), 0 0 0 58px rgba(201,255,61,.018); pointer-events: none; }
.release-card.nss::after { border-color: rgba(255,159,67,.18); box-shadow: 0 0 0 28px rgba(255,159,67,.03), 0 0 0 58px rgba(255,159,67,.018); }
.release-card-top { display: flex; align-items: center; gap: 9px; }
.flavor-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 10px rgba(201,255,61,.7); }
.nss .flavor-dot { background: var(--orange); box-shadow: 0 0 10px rgba(255,159,67,.7); }
.flavor-label { font: 750 .73rem/1 monospace; letter-spacing: .09em; }
.release-badge { margin-left: auto; padding: 5px 8px; border: 1px solid #526222; color: var(--lime); font: 700 .62rem/1 monospace; }
.release-badge.experimental { border-color: #704619; color: var(--orange); }
.release-card h3 { margin: 32px 0 8px; font-size: 1.55rem; }
.release-card > p { min-height: 58px; margin: 0; color: var(--muted); }
.version-row { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 36px 0 26px; padding: 22px 0; border-block: 1px solid var(--line); }
.version-row div { display: flex; flex-direction: column; }
.version-row span, .version-row time { color: var(--muted); font: .72rem/1.4 monospace; }
.version-row strong { font: 800 1.65rem/1.3 monospace; }
.download-actions { display: grid; grid-template-columns: 1fr auto; gap: 9px; min-height: 48px; }
.download-actions a { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; padding: 11px 14px; border: 1px solid #58636a; font-size: .82rem; font-weight: 700; }
.download-actions a:first-child { color: #080a06; border-color: var(--lime); background: var(--lime); }
.nss .download-actions a:first-child { border-color: var(--orange); background: var(--orange); }
.download-actions a:hover { border-color: #fff; }
.download-actions .unavailable { grid-column: 1 / -1; color: var(--muted); font: .78rem/1.5 monospace; }
details { position: relative; z-index: 1; margin-top: 18px; }
summary { color: var(--muted); cursor: pointer; font-size: .8rem; }
.provenance-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; margin-top: 10px; }
.provenance-links a { padding: 7px 9px; border: 1px solid var(--line); color: #bdc6cc; font: .7rem/1.3 monospace; }
.provenance-links a:hover { border-color: var(--lime); color: var(--text); }
.release-notes { position: relative; z-index: 1; margin-top: auto; padding-top: 22px; color: var(--muted); font-size: .78rem; }
.release-notes:hover { color: var(--lime); }

.history-panel { margin-top: 20px; border: 1px solid var(--line); background: #0d1013; }
.history-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 28px; border-bottom: 1px solid var(--line); }
.history-heading h3 { margin: 0; font-size: 1rem; }
.history-heading a { color: var(--muted); font-size: .78rem; }
.history-list { padding: 0 28px; }
.history-item { display: grid; grid-template-columns: 100px 1fr 160px auto; align-items: center; gap: 16px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.history-item:last-child { border-bottom: 0; }
.history-flavor { color: var(--lime); font: 700 .68rem/1 monospace; letter-spacing: .08em; }
.history-flavor.nss { color: var(--orange); }
.history-tag { font: 750 .82rem/1.4 monospace; overflow-wrap: anywhere; }
.history-item time { color: var(--muted); font: .7rem/1 monospace; }
.history-item a { padding: 5px 0; color: var(--muted); font-size: .75rem; }
.history-item a:hover { color: var(--lime); }
.empty-state { color: var(--muted); font: .78rem/1.5 monospace; }

.verify-section { width: 100%; max-width: none; padding-inline: max(20px, calc((100% - var(--max)) / 2)); border-block: 1px solid var(--line); background: #0d1013; }
.verify-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 0; padding: 1px; list-style: none; background: var(--line); }
.verify-steps li { display: flex; gap: 17px; min-width: 0; padding: 26px; background: var(--surface); }
.verify-steps li > span { flex: 0 0 auto; display: grid; place-items: center; width: 30px; height: 30px; color: #050600; background: var(--lime); font: 800 .8rem/1 monospace; }
.verify-steps h3 { margin: 2px 0 8px; font-size: .95rem; }
.verify-steps p { margin: 0; color: var(--muted); font-size: .82rem; }
.verify-steps pre { max-width: 100%; margin: 8px 0 0; overflow-x: auto; color: var(--lime); font-size: .68rem; }

.configure-section { display: grid; grid-template-columns: .8fr 1fr; gap: 28px 60px; }
.config-copy h2 { margin: 0 0 18px; font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.05; letter-spacing: -.04em; }
.config-copy > p:not(.eyebrow) { color: var(--muted); }
.not-baked { display: flex; gap: 12px; margin-top: 28px; padding: 16px; border-left: 3px solid var(--orange); background: rgba(255,159,67,.07); }
.not-baked span { color: var(--orange); font-size: 1.5rem; }
.not-baked p { margin: 0; color: #d5c2ad; font-size: .82rem; }
.config-form { display: grid; gap: 16px; padding: 26px; border: 1px solid var(--line); background: var(--surface); }
.config-form label { display: grid; gap: 7px; color: #c9d0d4; font-size: .78rem; font-weight: 700; }
.config-form input, .config-form select { width: 100%; min-width: 0; padding: 11px 12px; border: 1px solid #424c54; border-radius: 0; color: var(--text); background: #0a0d0f; }
.config-form input:invalid:not(:focus):not(:placeholder-shown) { border-color: var(--danger); }
.config-form small { color: var(--muted); font-weight: 400; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-error { margin: 0; color: #ff8d86; font-size: .78rem; }
.config-form .button { width: 100%; border: 0; }
.snippet-panel { grid-column: 1 / -1; min-width: 0; border: 1px solid var(--line); background: #07090a; }
.snippet-toolbar { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border-bottom: 1px solid var(--line); color: var(--muted); font: .7rem/1 monospace; }
.snippet-toolbar button { border: 0; color: var(--lime); background: transparent; cursor: pointer; }
.snippet-toolbar button:disabled { color: #5d666c; cursor: default; }
.snippet-panel pre { min-height: 190px; margin: 0; padding: 22px; overflow: auto; color: #d8e0e4; font-size: .78rem; line-height: 1.7; }

footer { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 26px; padding: 34px 0 44px; border-top: 1px solid var(--line); color: var(--muted); font-size: .75rem; }
footer p { margin: 0; text-align: center; }

@media (max-width: 850px) {
  .hero-grid, .configure-section { grid-template-columns: 1fr; }
  .hero-grid { padding: 65px 0 75px; }
  .device-card { max-width: 520px; }
  .boundary, .verify-steps { grid-template-columns: 1fr; }
  .boundary article { min-height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .release-grid { grid-template-columns: 1fr; }
  .history-item { grid-template-columns: 90px 1fr auto; }
  .history-item time { display: none; }
}

@media (max-width: 600px) {
  .topbar, .hero-grid, .section, .boundary, footer { width: min(calc(100% - 28px), var(--max)); }
  .safety-banner { grid-template-columns: 1fr; padding: 16px; }
  .safety-mark { display: none; }
  .nav-links a:not(:last-child) { display: none; }
  .hero-copy h2 { font-size: clamp(2.35rem, 14vw, 4rem); }
  .section { padding: 70px 0; }
  .section-heading, .history-heading { align-items: flex-start; flex-direction: column; }
  .data-status { text-align: left; }
  .release-card { min-height: 0; padding: 22px; }
  .version-row { align-items: flex-start; flex-direction: column; }
  .download-actions, .provenance-links, .field-grid { grid-template-columns: 1fr; }
  .history-list { padding: 0 18px; }
  .history-item { grid-template-columns: 1fr auto; gap: 7px 14px; }
  .history-flavor { grid-column: 1; }
  .history-tag { grid-column: 1; }
  .history-item a { grid-column: 2; grid-row: 1 / 3; }
  footer { grid-template-columns: 1fr; text-align: center; }
  footer > div { justify-content: center; }
}

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

/* Keep long verification commands inside their own scroll containers on phones. */
.verify-steps li > div { min-width: 0; }
.verify-steps pre, .snippet-panel pre { width: 100%; min-width: 0; }

.device-doc-links,
.support-links {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

.device-doc-links {
  margin-top: 1rem;
}

.device-doc-links a,
.support-links a {
  color: var(--muted);
  font-size: .82rem;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, .22);
}

.device-doc-links a:hover,
.support-links a:hover {
  color: var(--text);
  border-bottom-color: currentColor;
}

/* x86_64 VM downloads are deliberately isolated from AX9000 RAM-test assets. */
.vm-section {
  border-top: 1px solid var(--line);
  padding-top: 82px;
}
.vm-safety-label {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(95, 196, 255, .42);
  color: #8dd8ff;
  font: 700 .68rem/1 monospace;
  letter-spacing: .08em;
}
.vm-boundary {
  margin: -8px 0 24px;
  padding: 18px 20px;
  border-left: 3px solid #5fc4ff;
  background: rgba(95, 196, 255, .07);
  color: var(--muted);
  line-height: 1.65;
}
.vm-boundary strong { color: #b8e8ff; }
.vm-card {
  width: min(100%, 760px);
  min-height: 0;
  border-color: rgba(95, 196, 255, .24);
}
.vm-card::after {
  border-color: rgba(95, 196, 255, .18);
  box-shadow: 0 0 0 28px rgba(95, 196, 255, .03), 0 0 0 58px rgba(95, 196, 255, .018);
}
.vm-card .flavor-dot { background: #5fc4ff; box-shadow: 0 0 12px rgba(95, 196, 255, .6); }

.vm-card .download-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.vm-card .download-actions .vm-download {
  color: #071017;
  border-color: #5fc4ff;
  background: #5fc4ff;
}
.vm-card .download-actions .vm-download:hover {
  border-color: #d9f4ff;
  background: #8dd8ff;
}
.vm-card .download-actions .vm-support-download {
  color: #b8e8ff;
  border-color: rgba(95, 196, 255, .35);
  background: rgba(95, 196, 255, .06);
}
.release-badge.vm-only { border-color: rgba(95, 196, 255, .35); color: #8dd8ff; }
.vm-history-panel { margin-top: 34px; }
.history-flavor.vm { color: #8dd8ff; border-color: rgba(95, 196, 255, .28); }

@media (max-width: 600px) {
  .vm-card { width: 100%; }
  .vm-card .download-actions { grid-template-columns: 1fr; }
  .vm-safety-label { white-space: nowrap; }
}

/* Catalog-driven custom builds. Static Pages only prepares authenticated Actions inputs. */
.component-builder-section {
  border-top: 1px solid var(--line);
}
.component-security-note {
  margin: -8px 0 26px;
  padding: 18px 20px;
  border-left: 3px solid var(--lime);
  background: var(--lime-soft);
  color: var(--muted);
}
.component-security-note strong { color: var(--text); }
.component-security-note p { margin: 4px 0 0; }
.component-builder-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr);
  gap: 24px;
  align-items: start;
}
.component-controls,
.component-summary {
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.component-controls > .field-grid + .field-grid { margin-top: 14px; }
.package-filter-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}
.component-controls label,
.package-filter-grid label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: .78rem;
}
.component-controls input,
.component-controls select,
.package-filter-grid select {
  width: 100%;
  min-height: 44px;
  padding: 9px 11px;
  border: 1px solid #3d474f;
  border-radius: 2px;
  color: var(--text);
  background: #0c1013;
}
.component-controls input:disabled,
.component-controls select:disabled,
.package-filter-grid select:disabled { color: #667078; cursor: not-allowed; }
.component-message {
  margin: 16px 0 0;
  padding: 10px 12px;
  border-left: 2px solid var(--lime);
  color: #d9f4a0;
  background: rgba(201, 255, 61, .06);
  font-size: .8rem;
}
.component-message.error {
  border-left-color: var(--danger);
  color: #ffaaa4;
  background: rgba(255, 77, 67, .08);
}
.component-list {
  display: grid;
  gap: 18px;
  max-height: 720px;
  margin-top: 20px;
  padding-right: 6px;
  overflow: auto;
}
.component-category-group {
  display: grid;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.component-category-group:first-child { padding-top: 0; border-top: 0; }
.component-category-group h3 { margin: 0; font-size: 1rem; }
.component-category-description { margin: -4px 0 5px; color: var(--muted); font-size: .76rem; }
.component-option {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  padding: 13px;
  border: 1px solid #303940;
  background: #0c1013;
  cursor: pointer;
}
.component-option:hover { border-color: #56616b; }
.component-option:has(input:checked) { border-color: rgba(201, 255, 61, .55); background: rgba(201, 255, 61, .055); }
.component-option input { width: 18px; min-height: 18px; margin: 3px 0 0; accent-color: var(--lime); }
.component-option-copy { display: grid; gap: 3px; min-width: 0; }
.component-option-copy strong { color: var(--text); font-size: .9rem; }
.component-option-copy small { color: var(--muted); line-height: 1.5; overflow-wrap: anywhere; }
.component-source-label,
.package-meta { color: #aab5bc; font-size: .68rem; line-height: 1.45; }
.package-title-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.package-risk {
  display: inline-flex;
  padding: 2px 7px;
  border: 1px solid #56616b;
  border-radius: 999px;
  color: #d8e0e4;
  font-size: .62rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.package-risk-standard { border-color: rgba(201, 255, 61, .45); color: #d9f4a0; }
.package-risk-advanced { border-color: rgba(255, 190, 76, .55); color: #ffd38a; }
.package-risk-system { border-color: rgba(255, 77, 67, .6); color: #ffaaa4; }
.package-option-blocked { opacity: .72; cursor: not-allowed; }
.package-option-blocked:hover { border-color: #303940; }
.package-blocked-reason { color: #ffaaa4 !important; }
.component-purpose { color: #d8e0e4 !important; line-height: 1.55; }
.component-upstream-description { color: #87939b !important; font-size: .7rem; line-height: 1.5; }
.component-package-list { color: var(--muted); overflow-wrap: anywhere; }
.package-pagination {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  background: #090c0e;
  color: var(--muted);
  font-size: .72rem;
}
.package-pagination button {
  padding: 8px 12px;
  border: 1px solid rgba(201, 255, 61, .5);
  color: var(--accent);
  background: transparent;
  cursor: pointer;
  font: inherit;
}
.package-pagination button:hover:not(:disabled) { background: rgba(201, 255, 61, .08); }
.package-pagination button:disabled { opacity: .45; cursor: not-allowed; }
.component-result-status { margin: 12px 0 0; color: var(--muted); font-size: .74rem; }
.package-catalog-status { margin-top: 16px; }
.selected-packages-panel {
  margin-top: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  background: #090c0e;
}
.selected-packages-heading { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.selected-packages-heading h3 { margin: 0; font-size: .9rem; }
.selected-packages-heading small { color: var(--muted); font-size: .68rem; }
.selected-packages-list { display: grid; gap: 8px; margin-top: 10px; }
.selected-package {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.selected-package:first-child { border-top: 0; }
.selected-package > span { display: grid; gap: 3px; min-width: 0; }
.selected-package strong { overflow-wrap: anywhere; font-size: .8rem; }
.selected-package small { color: var(--muted); font-size: .68rem; }
.selected-package button {
  flex: none;
  padding: 6px 9px;
  border: 1px solid #46515a;
  color: var(--text);
  background: transparent;
  cursor: pointer;
  font-size: .66rem;
}
.empty-state.compact { margin: 0; font-size: .72rem; }
.component-summary { position: sticky; top: 18px; }
.component-summary h3 { margin: 0 0 18px; font-size: 1.5rem; }
.component-summary-list { display: grid; gap: 14px; margin: 0; }
.component-summary-list div { padding: 13px 0; border-top: 1px solid var(--line); }
.component-summary-list dt { color: var(--muted); font-size: .72rem; }
.component-summary-list dd { margin: 7px 0 0; }
.component-summary-list pre,
.component-summary details pre,
.actions-inputs-panel pre {
  max-height: 210px;
  margin: 0;
  padding: 14px;
  overflow: auto;
  color: #d8e0e4;
  background: #07090a;
  font-size: .73rem;
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.component-summary details { margin: 16px 0; border: 1px solid var(--line); }
.component-summary details summary { padding: 12px 14px; cursor: pointer; color: var(--muted); font-size: .78rem; }
.actions-inputs-panel { margin-top: 16px; border: 1px solid var(--line); }
.actions-inputs-panel .snippet-toolbar button { font-size: .68rem; }
.component-workflow-link { width: 100%; margin-top: 16px; text-align: center; }
.component-run-help { margin: 12px 0 0; color: var(--muted); font-size: .75rem; }

@media (max-width: 850px) {
  .component-builder-grid { grid-template-columns: 1fr; }
  .component-summary { position: static; }
  .package-filter-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .component-controls,
  .component-summary { padding: 18px; }
  .component-option { padding: 11px; }
  .package-filter-grid { grid-template-columns: 1fr; }
  .selected-packages-heading { display: grid; }
  .package-pagination { align-items: stretch; flex-direction: column; }
}

/* Prevent long package lists and request hashes from widening mobile layouts. */
.component-summary,
.component-summary-list,
.component-summary-list > div,
.component-summary-list dd { min-width: 0; max-width: 100%; }
.component-summary-list code { overflow-wrap: anywhere; word-break: break-word; }
.verify-steps code { overflow-wrap: anywhere; word-break: break-word; }
