:root {
  color-scheme: dark;
  --accent: #21c7f3;
  --canvas: #111315;
  --canvas-soft: #17191c;
  --panel: #202328;
  --panel-strong: #2c3036;
  --panel-warm: #211d1a;
  --line: #3d434b;
  --line-soft: #2b3036;
  --text: #f4f7fa;
  --muted: #abb3bd;
  --dim: #7f8995;
  --green: #45d19a;
  --amber: #f5bd4f;
  --red: #ff5d65;
  --topbar-height: 72px;
  --statusbar-height: 34px;
  --content: 1440px;
}

* { box-sizing: border-box; }
html { background: var(--canvas); }
body {
  margin: 0;
  min-width: 320px;
  height: 100svh;
  overflow: hidden;
  background: var(--canvas);
  color: var(--text);
  font-family: Inter, Montserrat, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0;
}

button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
svg { width: 1em; height: 1em; stroke-width: 1.8; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.04; letter-spacing: 0; }
h1 { margin-bottom: 24px; font-size: 76px; font-weight: 740; }
h2 { margin-bottom: 16px; font-size: 42px; font-weight: 700; }
h3 { margin-bottom: 8px; font-size: 20px; font-weight: 680; }
p { color: var(--muted); }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 9px 13px;
  transform: translateY(-160%);
  border-radius: 4px;
  background: var(--accent);
  color: #071116;
  font-weight: 700;
}
.skip-link:focus { transform: none; }

.topbar {
  position: relative;
  z-index: 20;
  height: var(--topbar-height);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 30px;
  padding: 0 max(22px, calc((100vw - var(--content)) / 2));
  background: #131518;
  border-bottom: 1px solid var(--line-soft);
}
.brand { display: inline-flex; align-items: center; gap: 11px; white-space: nowrap; font-weight: 700; }
.brand img { width: 88px; }
.brand span { padding-left: 11px; border-left: 1px solid var(--line); color: var(--muted); font-size: 13px; }

.view-tabs { align-self: stretch; justify-self: center; display: flex; align-items: stretch; }
.view-tab {
  position: relative;
  min-width: 104px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  background: transparent;
  color: var(--dim);
  border: 0;
  cursor: pointer;
  font-size: 13px;
  font-weight: 650;
}
.view-tab::after { content: ""; position: absolute; right: 22px; bottom: 0; left: 22px; height: 2px; background: transparent; }
.view-tab svg { font-size: 17px; }
.view-tab:hover, .view-tab:focus-visible { color: var(--text); }
.view-tab.is-active { color: var(--text); }
.view-tab.is-active svg { color: var(--accent); }
.view-tab.is-active::after { background: var(--accent); }

.topbar-tools { display: flex; align-items: center; gap: 16px; }
.accent-picker { display: flex; align-items: center; gap: 8px; }
.swatch { width: 14px; height: 14px; padding: 0; border: 2px solid transparent; border-radius: 50%; background: var(--swatch); cursor: pointer; }
.swatch.is-active { border-color: var(--text); box-shadow: 0 0 0 2px #131518; }
.icon-button {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 38px;
  padding: 0;
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
}
.icon-button:hover, .icon-button:focus-visible { color: var(--text); border-color: var(--accent); }
.view-tab:focus-visible, .button:focus-visible, .tour-item:focus-visible, .device-option:focus-visible, .channel-option:focus-visible, .swatch:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

.workspace { height: calc(100svh - var(--topbar-height) - var(--statusbar-height)); overflow: hidden; }
.view { height: 100%; overflow: auto; overscroll-behavior: contain; }
.view[hidden] { display: none; }
.view.is-active { animation: view-in .22s ease both; }
@keyframes view-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }

.eyebrow { margin-bottom: 13px; color: var(--accent); font-size: 12px; line-height: 1; font-weight: 760; text-transform: uppercase; letter-spacing: 0; }
.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 700;
  line-height: 1;
  transition: transform .16s ease, background-color .16s ease, border-color .16s ease;
}
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--accent); color: #071116; }
.button-secondary { background: rgba(44, 48, 54, .84); color: var(--text); border-color: var(--line); }
.button-secondary:hover { border-color: var(--accent); }
.live-dot { width: 7px; height: 7px; display: inline-block; flex: 0 0 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(69, 209, 154, .12); }

/* Overview */
.overview-view { position: relative; overflow: hidden; background: #1a1d21; }
.overview-view::before { content: ""; position: absolute; inset: 0 58% 0 0; z-index: 1; background: #1a1d21; border-right: 1px solid var(--line-soft); }
.overview-copy {
  position: absolute;
  z-index: 4;
  top: 50%;
  left: max(28px, calc((100vw - var(--content)) / 2));
  width: min(550px, 43vw);
  transform: translateY(-55%);
}
.release-line { display: flex; align-items: center; gap: 10px; margin-bottom: 38px; color: var(--muted); font-size: 12px; font-weight: 650; }
.overview-lede { max-width: 540px; margin-bottom: 28px; color: #d3d8de; font-size: 18px; line-height: 1.6; }
.overview-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.overview-screen { position: absolute; z-index: 2; top: -7%; right: 8%; height: 122%; border-left: 1px solid var(--line); border-right: 1px solid var(--line); box-shadow: 0 0 70px rgba(0, 0, 0, .48); }
.overview-screen img { width: auto; max-width: none; height: 100%; }
.overview-facts {
  position: absolute;
  z-index: 5;
  right: max(24px, calc((100vw - var(--content)) / 2));
  bottom: 24px;
  left: max(24px, calc((100vw - var(--content)) / 2));
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: rgba(17, 19, 21, .94);
  border: 1px solid var(--line);
}
.overview-facts div { min-width: 0; display: grid; gap: 2px; padding: 15px 20px; border-right: 1px solid var(--line); }
.overview-facts div:last-child { border-right: 0; }
.overview-facts strong { font-size: 14px; }
.overview-facts span { color: var(--dim); font-size: 11px; }

/* Shared view heading */
.interface-view, .downloads-view { padding: 30px max(24px, calc((100vw - var(--content)) / 2)); background: var(--canvas); }
.view-heading { min-height: 84px; display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 20px; }
.view-heading h2, .view-heading p { margin-bottom: 0; }
.view-heading > div { max-width: 760px; }
.view-heading > p { max-width: 420px; font-size: 14px; text-align: right; }

/* Interface tour */
.tour-layout { height: calc(100% - 104px); min-height: 560px; display: grid; grid-template-columns: 300px minmax(320px, 1fr) 320px; gap: 22px; }
.feature-mobile-nav { display: none; }
.tour-list { min-height: 0; align-self: stretch; overflow: auto; padding-right: 8px; scrollbar-color: var(--line) transparent; }
.tour-group { border-top: 1px solid var(--line); }
.tour-group + .tour-group { margin-top: 14px; }
.tour-group-title { position: sticky; z-index: 2; top: 0; margin: 0; padding: 8px 10px; background: var(--canvas); color: var(--dim); font-size: 10px; line-height: 1; text-transform: uppercase; }
.tour-item {
  width: 100%;
  min-height: 62px;
  display: grid;
  grid-template-columns: 32px 1fr 18px;
  align-items: center;
  gap: 12px;
  padding: 9px 10px;
  background: transparent;
  color: var(--muted);
  border: 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  cursor: pointer;
}
.tour-item > svg:first-child { font-size: 21px; }
.tour-item > svg:last-child { color: var(--dim); }
.tour-item span { display: grid; gap: 2px; }
.tour-item strong { color: var(--text); font-size: 14px; }
.tour-item small { color: var(--dim); font-size: 11px; }
.tour-item.is-active { padding-left: 16px; background: var(--panel); color: var(--accent); box-shadow: inset 3px 0 var(--accent); }
.tour-item.is-active > svg:last-child { color: var(--accent); }
.tour-screen { min-width: 0; display: grid; place-items: center; margin: 0; overflow: hidden; background: var(--canvas-soft); border: 1px solid var(--line-soft); }
.phone-frame { height: min(60vh, 650px); aspect-ratio: 1272 / 2772; overflow: hidden; background: #0c0e10; border: 1px solid #616973; border-radius: 28px; box-shadow: 0 24px 60px rgba(0, 0, 0, .45); }
.phone-frame img { width: 100%; height: 100%; object-fit: cover; transition: opacity .15s ease; }
.phone-frame img.is-changing { opacity: .15; }
.tour-detail { align-self: center; padding: 26px 0 26px 28px; border-left: 1px solid var(--line); }
.tour-detail > svg { width: 34px; height: 34px; margin: 32px 0 24px; color: var(--accent); }
.detail-index { color: var(--dim); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12px; }
.tour-detail h3 { font-size: 28px; }
.tour-detail > p { min-height: 75px; margin-bottom: 22px; font-size: 14px; }
.tour-points { margin: 0; padding: 0; border-top: 1px solid var(--line); list-style: none; }
.tour-points li { position: relative; padding: 11px 0 11px 18px; color: var(--muted); border-bottom: 1px solid var(--line); font-size: 11px; }
.tour-points li::before { content: ""; position: absolute; top: 16px; left: 2px; width: 6px; height: 6px; background: var(--accent); border-radius: 50%; }

/* Plugins */
.plugins-view { overflow: hidden; background: var(--panel-warm); }
.plugins-stage { height: 100%; display: grid; grid-template-columns: minmax(360px, 38%) 1fr; }
.plugins-shot {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: hidden;
  padding: 32px 36px 78px;
  background: #17191c;
  border-right: 1px solid #463d36;
}
.plugins-shot img {
  position: static;
  width: auto;
  height: 100%;
  max-width: 100%;
  max-height: 760px;
  object-fit: contain;
  object-position: top;
  border: 1px solid #616973;
  border-radius: 26px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, .5);
}
.plugin-preview-switch { position: absolute; right: 28px; bottom: 22px; left: 28px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px; background: #202328; border: 1px solid #4a5058; border-radius: 7px; }
.plugin-preview-switch button { min-width: 0; height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 0 8px; background: transparent; color: var(--dim); border: 0; border-radius: 4px; cursor: pointer; font-size: 11px; font-weight: 700; }
.plugin-preview-switch button svg { flex: 0 0 auto; font-size: 15px; }
.plugin-preview-switch button.is-active { background: var(--panel-strong); color: var(--text); }
.plugin-preview-switch button.is-active svg { color: var(--accent); }
.plugins-content { min-height: 0; align-self: stretch; width: min(800px, calc(100% - 64px)); display: flex; flex-direction: column; margin: 0 auto; padding: 26px 0 22px; }
.plugins-heading { flex: 0 0 auto; }
.plugins-content h2 { max-width: 680px; }
.plugins-lede { max-width: 700px; margin-bottom: 12px; font-size: 14px; }
.plugin-summary { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 16px; color: var(--dim); font-size: 10px; font-weight: 700; text-transform: uppercase; }
.plugin-summary strong { color: var(--accent); }
.plugin-list { min-height: 0; flex: 1; overflow: auto; padding-right: 8px; border-top: 1px solid #51483f; scrollbar-color: #51483f transparent; }
.plugin-list article { min-height: 64px; display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid #51483f; }
.plugin-icon { width: 34px; height: 34px; display: grid; place-items: center; color: var(--accent); background: #2a2c30; border: 1px solid #555b62; border-radius: 6px; }
.plugin-list h3, .plugin-list p { margin: 0; }
.plugin-list h3 { font-size: 14px; }
.plugin-list h3 a:hover { color: var(--accent); }
.plugin-list p { margin-top: 3px; font-size: 11px; line-height: 1.35; }
.plugin-list article > span:last-child { color: var(--dim); font-size: 11px; font-weight: 700; text-transform: uppercase; }
.plugins-actions { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 16px; }
.plugins-actions > span { display: inline-flex; align-items: center; gap: 8px; color: var(--dim); font-size: 11px; }
.plugins-actions > span svg { color: var(--green); }

/* Downloads */
.downloads-view { overflow: hidden; background: #121416; }
.downloads-heading { min-height: 72px; }
.refresh-button.is-loading svg { animation: spin .7s linear infinite; }
.catalog-status { height: calc(100% - 116px); display: flex; align-items: center; justify-content: center; gap: 11px; color: var(--muted); border: 1px solid var(--line-soft); }
.catalog-status[hidden] { display: none; }
.spinner { width: 17px; height: 17px; border: 2px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.download-layout { height: calc(100% - 116px); min-height: 520px; display: grid; grid-template-columns: 360px 1fr; gap: 22px; }
.download-layout[hidden] { display: none; }
.device-list { overflow: auto; border: 1px solid var(--line); background: var(--canvas-soft); }
.device-option {
  width: 100%;
  min-height: 92px;
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: transparent;
  color: var(--text);
  border: 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  cursor: pointer;
}
.device-option:last-child { border-bottom: 0; }
.device-option > svg { width: 22px; height: 22px; color: var(--dim); }
.device-option span { min-width: 0; display: grid; gap: 3px; }
.device-option strong { overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.device-option small { color: var(--dim); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 11px; }
.device-option em { color: var(--dim); font-size: 11px; font-style: normal; }
.device-option.is-active { background: var(--panel); box-shadow: inset 3px 0 var(--accent); }
.device-option.is-active > svg, .device-option.is-active em { color: var(--accent); }
.build-detail { min-width: 0; display: flex; flex-direction: column; padding: 26px 30px; background: var(--panel); border: 1px solid var(--line); }
.build-detail > header { display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 14px; }
.device-badge { width: 52px; height: 52px; display: grid; place-items: center; color: var(--accent); background: rgba(33, 199, 243, .1); border: 1px solid rgba(33, 199, 243, .35); border-radius: 6px; }
.device-badge svg { width: 26px; height: 26px; }
.build-detail header p, .build-detail header h3 { margin: 0; }
.build-detail header p { color: var(--dim); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 11px; }
.build-detail header h3 { margin-top: 3px; font-size: 24px; }
.build-channel { align-self: start; color: var(--amber); font-size: 10px; font-weight: 760; text-transform: uppercase; }
.build-channels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 20px; }
.channel-option { min-width: 0; display: grid; gap: 3px; padding: 10px 12px; color: var(--muted); background: var(--canvas-soft); border: 1px solid var(--line); border-radius: 5px; text-align: left; cursor: pointer; }
.channel-option span { font-size: 12px; font-weight: 760; text-transform: uppercase; }
.channel-option small { overflow: hidden; color: var(--dim); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.channel-option.is-active { color: var(--text); background: rgba(33, 199, 243, .08); border-color: var(--accent); box-shadow: inset 3px 0 var(--accent); }
.channel-option.is-active small { color: var(--accent); }
.channel-option:disabled { opacity: .42; cursor: not-allowed; }
.build-metrics { display: grid; grid-template-columns: repeat(3, 1fr); margin: 16px 0 20px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.build-metrics div { min-width: 0; display: grid; gap: 4px; padding: 13px 16px; border-right: 1px solid var(--line); }
.build-metrics div:first-child { padding-left: 0; }
.build-metrics div:last-child { border-right: 0; }
.build-metrics span, .release-notes > span, .checksum-row span { color: var(--dim); font-size: 10px; font-weight: 730; text-transform: uppercase; }
.build-metrics strong { overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.release-notes { flex: 1; min-height: 120px; overflow: auto; padding-right: 8px; }
.release-notes ul { margin: 10px 0 18px; padding-left: 18px; color: var(--muted); font-size: 13px; }
.release-notes li + li { margin-top: 6px; }
.checksum-row { display: grid; grid-template-columns: 1fr 38px; align-items: end; gap: 10px; margin-bottom: 12px; }
.checksum-row > div { min-width: 0; display: grid; gap: 6px; }
.checksum-row code { overflow: hidden; padding: 9px 10px; background: var(--canvas-soft); color: var(--muted); border: 1px solid var(--line); border-radius: 4px; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.build-download { width: 100%; }
.build-warning { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; color: var(--dim); font-size: 11px; }
.build-warning svg { color: var(--amber); }

/* Project */
.project-view { overflow: hidden; background: var(--panel-warm); }
.project-layout { height: 100%; display: grid; grid-template-columns: minmax(330px, .85fr) minmax(280px, .55fr) minmax(390px, 1fr); gap: 42px; align-items: center; padding: 30px max(24px, calc((100vw - var(--content)) / 2)); }
.project-story h2 { font-size: 48px; }
.project-story > p:not(.eyebrow) { max-width: 520px; font-size: 16px; }
.project-links { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 26px; }
.project-links a { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-size: 13px; font-weight: 700; }
.about-shot { justify-self: center; width: min(100%, 270px); max-height: 68vh; overflow: hidden; border: 1px solid #62564c; border-radius: 8px; box-shadow: 0 24px 65px rgba(0, 0, 0, .42); }
.about-shot img { width: 100%; }
.people { padding-left: 34px; border-left: 1px solid #51483f; }
.people article { display: grid; grid-template-columns: 48px 1fr; align-items: center; gap: 16px; padding: 19px 0; border-bottom: 1px solid #51483f; }
.people article > span { width: 48px; height: 48px; display: grid; place-items: center; color: var(--accent); background: #292824; border: 1px solid #62564c; border-radius: 50%; font-weight: 760; }
.people article h3, .people article p { margin: 0; }
.people article h3 { font-size: 16px; }
.people article p { margin-top: 4px; font-size: 12px; }
.foundation { display: grid; grid-template-columns: 26px 1fr; gap: 13px; margin-top: 28px; padding: 18px; background: #292824; border: 1px solid #51483f; border-radius: 6px; }
.foundation svg { color: var(--green); }
.foundation p { margin: 0; font-size: 11px; }

.statusbar {
  height: var(--statusbar-height);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  padding: 0 max(22px, calc((100vw - var(--content)) / 2));
  background: #0c0e10;
  color: var(--dim);
  border-top: 1px solid var(--line-soft);
  font-size: 10px;
}
.statusbar > span:first-child { display: inline-flex; align-items: center; gap: 9px; }
.statusbar > span:nth-child(2) { text-align: center; }
.statusbar a { justify-self: end; display: inline-flex; align-items: center; gap: 5px; }
.statusbar .live-dot { width: 5px; height: 5px; flex-basis: 5px; }

@media (max-width: 1180px) {
  .topbar { gap: 14px; }
  .view-tab { min-width: 78px; padding-inline: 10px; }
  .view-tab span { display: none; }
  .view-tab svg { width: 20px; height: 20px; }
  .overview-view::before { right: 52%; }
  .overview-screen { right: 2%; }
  .tour-layout { grid-template-columns: 250px minmax(280px, 1fr) 270px; }
  .project-layout { grid-template-columns: .8fr .5fr 1fr; gap: 26px; }
  .project-story h2 { font-size: 40px; }
  .people { padding-left: 24px; }
}

@media (max-width: 860px) {
  :root { --topbar-height: 60px; --statusbar-height: 0px; --mobile-nav-height: 82px; }
  body { height: auto; min-height: 100svh; overflow: auto; padding-bottom: calc(var(--mobile-nav-height) + env(safe-area-inset-bottom)); }
  h1 { font-size: 48px; }
  h2 { font-size: 32px; }
  .topbar { position: sticky; top: 0; grid-template-columns: 1fr auto; padding: 0 18px; background: rgba(19, 21, 24, .97); }
  .brand img { width: 78px; }
  .brand span { display: none; }
  .topbar-tools .accent-picker { display: none; }
  .view-tabs { position: fixed; z-index: 30; right: 8px; bottom: max(8px, env(safe-area-inset-bottom)); left: 8px; height: var(--mobile-nav-height); align-items: center; justify-content: space-around; gap: 4px; padding: 7px; background: rgba(19, 21, 24, .98); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 12px 34px rgba(0, 0, 0, .5); }
  .view-tab { min-width: 0; min-height: 66px; flex: 1; flex-direction: column; gap: 5px; padding: 8px 3px 7px; border-radius: 12px; font-size: 11px; }
  .view-tab span { display: block; }
  .view-tab svg { width: 23px; height: 23px; }
  .view-tab::after { display: none; }
  .view-tab.is-active { background: var(--panel-strong); }
  .workspace { height: auto; min-height: calc(100svh - var(--topbar-height) - var(--mobile-nav-height)); overflow: visible; }
  .view { height: auto; min-height: calc(100svh - var(--topbar-height) - var(--mobile-nav-height)); overflow: visible; }
  .statusbar { display: none; }

  .overview-view { min-height: calc(100svh - var(--topbar-height) - var(--mobile-nav-height)); overflow: hidden; }
  .overview-view::before { inset: 0; background: rgba(26, 29, 33, .83); border: 0; }
  .overview-copy { position: relative; top: auto; left: auto; width: auto; padding: 54px 20px 250px; transform: none; }
  .release-line { margin-bottom: 32px; }
  .overview-lede { font-size: 16px; }
  .overview-screen { top: auto; right: -4%; bottom: -31%; height: 78%; opacity: .58; }
  .overview-facts { right: 14px; bottom: 14px; left: 14px; grid-template-columns: repeat(2, 1fr); }
  .overview-facts div:nth-child(2) { border-right: 0; }
  .overview-facts div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }

  .interface-view, .downloads-view { padding: 30px 18px 88px; }
  .view-heading { min-height: 0; align-items: start; flex-direction: column; gap: 10px; margin-bottom: 26px; }
  .view-heading > p { text-align: left; }
  .tour-layout { height: auto; min-height: 0; grid-template-columns: 1fr; }
  .feature-mobile-nav { display: grid; gap: 10px; }
  .feature-categories { display: flex; flex-wrap: wrap; gap: 6px; }
  .feature-categories button { min-height: 38px; padding: 7px 12px; background: transparent; color: var(--dim); border: 1px solid var(--line); border-radius: 5px; cursor: pointer; font-size: 11px; font-weight: 700; }
  .feature-categories button.is-active { background: var(--accent); color: #071116; border-color: var(--accent); }
  .feature-mobile-items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .feature-mobile-items button { min-width: 0; min-height: 58px; display: grid; grid-template-columns: 22px minmax(0, 1fr); align-items: center; gap: 9px; padding: 9px 11px; background: var(--panel); color: var(--muted); border: 1px solid var(--line); border-radius: 6px; cursor: pointer; text-align: left; font-size: 12px; font-weight: 700; line-height: 1.2; }
  .feature-mobile-items button svg { color: var(--dim); font-size: 19px; }
  .feature-mobile-items button.is-active { color: var(--text); border-color: var(--accent); box-shadow: inset 3px 0 var(--accent); }
  .feature-mobile-items button.is-active svg { color: var(--accent); }
  .tour-list { display: none; }
  .tour-screen { min-height: 590px; }
  .phone-frame { height: 550px; }
  .tour-detail { padding: 24px 0 0; border-top: 1px solid var(--line); border-left: 0; }
  .tour-detail > svg { margin: 20px 0 16px; }
  .tour-detail > p { min-height: 0; }

  .plugins-view { overflow: visible; }
  .plugins-stage { height: auto; min-height: inherit; grid-template-columns: 1fr; }
  .plugins-shot { min-height: 620px; padding: 30px 20px 80px; border-right: 0; border-bottom: 1px solid #463d36; }
  .plugins-shot img { width: auto; height: 500px; max-height: none; }
  .plugin-preview-switch { right: 20px; bottom: 22px; left: 20px; }
  .plugins-content { width: auto; padding: 46px 20px 92px; }
  .plugin-list { overflow: visible; padding-right: 0; }
  .plugin-list p { white-space: normal; }
  .plugins-actions { align-items: stretch; flex-direction: column; }
  .plugins-actions .button { align-self: flex-start; }

  .downloads-view { overflow: visible; }
  .download-layout { height: auto; min-height: 0; grid-template-columns: 1fr; }
  .device-list { display: grid; grid-template-columns: repeat(4, minmax(210px, 1fr)); overflow-x: auto; }
  .device-option { border-right: 1px solid var(--line); border-bottom: 0; }
  .device-option.is-active { box-shadow: inset 0 3px var(--accent); }
  .build-detail { padding: 22px 18px; }
  .build-warning { margin-bottom: 0; }

  .project-view { overflow: visible; }
  .project-layout { height: auto; min-height: inherit; grid-template-columns: 1fr; gap: 44px; padding: 46px 20px 92px; }
  .project-story h2 { font-size: 40px; }
  .about-shot { width: min(72vw, 300px); max-height: none; }
  .people { padding-left: 0; border-top: 1px solid #51483f; border-left: 0; }
}

@media (max-width: 600px) {
  .device-list { grid-template-columns: 1fr; overflow: visible; }
  .device-option {
    min-height: 84px;
    grid-template-columns: 32px minmax(0, 1fr);
    grid-template-areas:
      "device-icon device-copy"
      "device-icon device-channels";
    gap: 5px 12px;
    padding: 13px 14px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .device-option:last-child { border-bottom: 0; }
  .device-option > svg { grid-area: device-icon; align-self: center; justify-self: center; }
  .device-option span { grid-area: device-copy; }
  .device-option em { grid-area: device-channels; justify-self: start; }
  .device-option.is-active { box-shadow: inset 3px 0 var(--accent); }
}

@media (max-width: 480px) {
  .overview-actions { align-items: stretch; flex-direction: column; width: 210px; }
  .overview-copy { padding-bottom: 280px; }
  .overview-screen { right: -22%; height: 70%; }
  .overview-facts div { padding: 12px 14px; }
  .tour-screen { min-height: 520px; }
  .phone-frame { height: 480px; border-radius: 22px; }
  .plugin-list article { grid-template-columns: 38px 1fr; }
  .plugin-list article > span:last-child { display: none; }
  .build-detail > header { grid-template-columns: 46px 1fr; }
  .build-channel { grid-column: 2; }
  .device-badge { width: 46px; height: 46px; }
  .build-metrics { grid-template-columns: 1fr; }
  .build-metrics div, .build-metrics div:first-child { padding: 10px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .build-metrics div:last-child { border-bottom: 0; }
}

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