:root {
  color-scheme: light;
  font-family: Inter, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  color: #0f172a;
  background: #f8fafc;
  --ink: #0f172a;
  --ink-soft: #334155;
  --muted: #64748b;
  --line: #dbe3ef;
  --line-strong: #c6d1df;
  --surface: #ffffff;
  --surface-soft: #f1f5f9;
  --surface-tint: #f8fafc;
  --brand: #1e3a8a;
  --brand-hover: #172e70;
  --accent: #e43935;
  --accent-hover: #c92f2c;
  --success: #27701e;
  --success-soft: #edf8e9;
  --warning: #9a5b0a;
  --danger: #a12c26;
  --radius-sm: 5px;
  --radius: 7px;
  --radius-lg: 8px;
  --shadow-sm: 0 1px 3px rgb(15 23 42 / 8%);
  --shadow-md: 0 12px 32px rgb(15 23 42 / 10%);
  --control-height: 44px;
  --page-width: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  min-width: 320px;
  margin: 0;
  background: #f8fafc;
  color: var(--ink);
  line-height: 1.5;
}

[hidden] {
  display: none !important;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

:focus-visible {
  outline: 3px solid rgb(30 58 138 / 24%);
  outline-offset: 2px;
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid rgb(219 227 239 / 82%);
  background: rgb(248 250 252 / 88%);
  box-shadow: 0 1px 2px rgb(15 23 42 / 4%);
  backdrop-filter: blur(14px);
}

.header-inner,
main,
.site-footer {
  width: min(var(--page-width), calc(100% - 64px));
  margin-inline: auto;
}

.header-inner {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand img {
  display: block;
  width: auto;
  height: 44px;
  filter: brightness(0) saturate(100%);
  opacity: .88;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.site-header nav a {
  color: var(--ink-soft);
  font-size: 14px;
  text-decoration: none;
  transition: color 150ms ease;
}

.site-header nav a:hover,
.site-header nav a:focus-visible {
  color: var(--brand);
}

main {
  padding: 34px 0 72px;
}

.product-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 410px);
  gap: clamp(36px, 5vw, 72px);
  min-height: 430px;
  align-items: center;
  padding: 28px 0 58px;
  border-bottom: 1px solid var(--line);
}

.product-identity {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 3vw, 42px);
  min-width: 0;
}

.product-logo {
  display: block;
  width: 240px;
  height: 240px;
  object-fit: contain;
}

.eyebrow,
.panel-label {
  margin: 0;
  color: var(--brand);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0;
  text-transform: uppercase;
}

.admin-login .admin-eyebrow,
.admin-workspace .admin-eyebrow {
  margin: 0;
  color: var(--brand);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0;
  text-transform: uppercase;
}

.product-copy h1 {
  margin: 9px 0 0;
  color: var(--ink);
  font-size: 54px;
  line-height: 1.04;
  letter-spacing: 0;
}

.product-summary {
  max-width: 540px;
  margin: 18px 0 22px;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.75;
}

.platform-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.platform-strip span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 8px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 12px;
}

.platform-strip img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.download-panel {
  min-height: 254px;
  padding: 26px;
  border: 1px solid var(--line-strong);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.panel-label {
  margin-bottom: 7px;
}

.panel-heading h2 {
  margin: 0;
  font-size: 23px;
  line-height: 1.25;
}

.platform-mark,
.file-platform-mark {
  display: grid;
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.platform-mark img {
  width: 27px;
  height: 27px;
}

.recommended-version {
  min-height: 24px;
  margin: 24px 0 14px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 650;
}

.download-actions {
  display: flex;
  min-width: 0;
  align-items: stretch;
  gap: 8px;
}

.primary-download,
.file-download {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid var(--brand);
  border-radius: var(--radius-sm);
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 140ms ease, border-color 140ms ease;
}

.primary-download {
  min-height: 48px;
  flex: 1;
  padding: 0 18px;
}

.primary-download:hover,
.primary-download:focus-visible,
.file-download:hover,
.file-download:focus-visible {
  border-color: var(--brand-hover);
  background: var(--brand-hover);
}

.primary-download svg,
.file-download svg {
  width: 18px;
  height: 18px;
}

.icon-control {
  position: relative;
  display: grid;
  width: 48px;
  min-height: 48px;
  flex: 0 0 48px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink-soft);
  cursor: pointer;
}

.icon-control:hover,
.icon-control:focus-visible {
  border-color: var(--brand);
  background: #eff4ff;
  color: var(--brand);
}

.icon-control.is-copied,
.checksum.is-copied {
  border-color: #91bd84;
  background: var(--success-soft);
  color: var(--success);
}

.icon-control.is-error,
.checksum.is-error {
  border-color: #d9a9a5;
  background: #fff2f1;
  color: var(--danger);
}

.icon-control > svg {
  width: 19px;
  height: 19px;
}

.control-tooltip {
  position: absolute;
  z-index: 30;
  right: 0;
  bottom: calc(100% + 9px);
  visibility: hidden;
  width: min(330px, calc(100vw - 28px));
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--ink);
  box-shadow: 0 10px 28px rgb(15 23 42 / 22%);
  color: #fff;
  font-size: 11px;
  line-height: 1.5;
  pointer-events: none;
  text-align: left;
}

.control-tooltip > span,
.control-tooltip code {
  display: block;
}

.control-tooltip > span {
  margin-bottom: 4px;
  color: #cbd5e1;
}

.control-tooltip code {
  overflow-wrap: anywhere;
  color: #fff;
  font-family: "SFMono-Regular", Consolas, monospace;
  white-space: normal;
}

.icon-control:hover .control-tooltip,
.icon-control:focus-visible .control-tooltip {
  visibility: visible;
}

.download-detail {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.release-section {
  padding-top: 54px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.section-heading h2 {
  margin: 5px 0 0;
  font-size: 29px;
  line-height: 1.2;
}

.channel-filter {
  display: flex;
  min-height: 40px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.channel-filter button {
  min-width: 70px;
  padding: 0 12px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
}

.channel-filter button:hover {
  color: var(--ink);
}

.channel-filter button.is-active {
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  color: var(--brand);
  font-weight: 700;
}

.release-list {
  overflow: visible;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.release-entry + .release-entry {
  border-top: 1px solid var(--line);
}

.release-entry:first-child {
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.release-entry:last-child {
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.release-entry:only-child {
  border-radius: var(--radius-lg);
}

.release-summary {
  display: grid;
  grid-template-columns: minmax(170px, .65fr) minmax(240px, 1.4fr) auto 22px;
  gap: 22px;
  align-items: center;
  min-height: 78px;
  padding: 14px 20px;
  background: var(--surface);
  cursor: pointer;
  list-style: none;
}

.release-summary::-webkit-details-marker {
  display: none;
}

.release-summary:hover {
  background: var(--surface-tint);
}

.release-entry[open] > .release-summary {
  border-bottom: 1px solid var(--line);
  background: #f8fbff;
}

.release-title-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

.release-title-line h3 {
  margin: 0;
  font-size: 17px;
}

.release-meta time {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.release-summary > p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.55;
}

.channel-badge,
.latest-badge {
  display: inline-flex;
  min-height: 21px;
  align-items: center;
  padding: 0 7px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 750;
}

.channel-badge {
  border: 1px solid #b8d7ae;
  background: var(--success-soft);
  color: var(--success);
}

.channel-badge[data-kind="beta"] {
  border-color: #e6c89f;
  background: #fff6e7;
  color: var(--warning);
}

.channel-badge[data-kind="nightly"] {
  border-color: var(--line-strong);
  background: var(--surface-soft);
  color: var(--muted);
}

.latest-badge {
  border: 1px solid #c8d5ef;
  background: #edf3ff;
  color: var(--brand);
}

.release-file-count {
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

.release-chevron {
  width: 18px;
  height: 18px;
  color: var(--muted);
  transition: transform 160ms ease;
}

.release-entry[open] .release-chevron {
  transform: rotate(90deg);
}

.file-row {
  display: grid;
  grid-template-columns: minmax(150px, .7fr) minmax(250px, 1.45fr) 86px 148px;
  gap: 14px;
  align-items: center;
  min-height: 66px;
  padding: 9px 20px;
}

.file-row + .file-row {
  border-top: 1px solid #e9eef5;
}

.file-platform {
  display: flex;
  align-items: center;
  gap: 10px;
}

.file-platform-mark {
  width: 34px;
  height: 34px;
  flex-basis: 34px;
}

.file-platform-mark img {
  width: 18px;
  height: 18px;
}

.file-platform > div > strong,
.file-platform > div > span,
.file-name span,
.file-name small {
  display: block;
}

.file-platform > div > strong,
.file-name span {
  color: var(--ink-soft);
  font-size: 12px;
}

.file-platform > div > span,
.file-name small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.file-name span {
  overflow-wrap: anywhere;
}

.checksum {
  display: flex;
  width: 76px;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 7px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
}

.checksum code {
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  font-weight: 650;
}

.checksum svg {
  display: none;
  width: 15px;
  height: 15px;
}

.checksum:not(:disabled):hover,
.checksum:not(:disabled):focus-visible {
  border-color: var(--brand);
  color: var(--brand);
}

.checksum:not(:disabled):hover code,
.checksum:not(:disabled):focus-visible code {
  display: none;
}

.checksum:not(:disabled):hover svg,
.checksum:not(:disabled):focus-visible svg {
  display: block;
}

.checksum:disabled {
  cursor: default;
  opacity: .65;
}

.file-download {
  min-height: 34px;
  flex: 1;
  padding: 0 11px;
  font-size: 12px;
}

.file-download svg {
  width: 16px;
  height: 16px;
}

.file-actions .icon-control {
  width: 34px;
  min-height: 34px;
  flex-basis: 34px;
}

.file-actions .icon-control > svg {
  width: 16px;
  height: 16px;
}

.loading-state,
.empty-state,
.error-state {
  display: flex;
  min-height: 150px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 38px 22px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.empty-state,
.error-state {
  flex-direction: column;
}

.empty-state strong,
.error-state strong {
  color: var(--ink);
  font-size: 16px;
}

.loading-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid var(--line-strong);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

.site-footer {
  display: flex;
  min-height: 116px;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.site-footer strong {
  color: var(--ink);
  font-size: 15px;
}

.site-footer p {
  margin: 4px 0 0;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer-links a {
  color: var(--brand);
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Admin surfaces are fully namespaced to prevent public-page cascade leaks. */
.admin-login {
  width: min(430px, calc(100% - 32px));
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 28px 80px rgb(15 23 42 / 30%);
}

.admin-login::backdrop {
  background: rgb(15 23 42 / 64%);
  backdrop-filter: blur(4px);
}

.admin-login form {
  display: grid;
  gap: 22px;
  padding: 28px;
}

.admin-login__header,
.admin-workspace .admin-workspace__header,
.admin-workspace .admin-section-heading,
.admin-workspace .storage-heading,
.admin-workspace .upload-progress > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.admin-login h2,
.admin-workspace h2,
.admin-workspace h3 {
  margin: 0;
  letter-spacing: 0;
}

.admin-login h2 {
  margin-top: 4px;
  font-size: 22px;
}

.admin-login .admin-field,
.admin-workspace .admin-field {
  display: grid;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 650;
}

.admin-login .admin-field input,
.admin-workspace .admin-field select,
.admin-workspace .admin-field textarea {
  width: 100%;
  border: 1px solid #aebbc8;
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  outline: none;
}

.admin-login .admin-field input,
.admin-workspace .admin-field select {
  height: var(--control-height);
  padding: 0 12px;
}

.admin-workspace .admin-field textarea {
  min-height: 88px;
  padding: 11px 12px;
  resize: vertical;
}

.admin-login .admin-field input:focus,
.admin-workspace .admin-field select:focus,
.admin-workspace .admin-field textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgb(30 58 138 / 14%);
}

.admin-login .admin-icon-button,
.admin-workspace .admin-icon-button {
  display: grid;
  width: 38px;
  height: 38px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.admin-login .admin-icon-button svg,
.admin-workspace .admin-icon-button svg {
  width: 18px;
  height: 18px;
}

.admin-login .admin-icon-button:hover,
.admin-workspace .admin-icon-button:hover {
  background: rgb(148 163 184 / 14%);
}

.admin-login .admin-button,
.admin-workspace .admin-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 17px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

.admin-login .admin-button svg,
.admin-workspace .admin-button svg {
  width: 17px;
  height: 17px;
}

.admin-login .admin-button--primary,
.admin-workspace .admin-button--primary {
  border: 1px solid var(--brand);
  background: var(--brand);
  color: #fff;
}

.admin-login .admin-button--primary:hover:not(:disabled),
.admin-workspace .admin-button--primary:hover:not(:disabled) {
  border-color: var(--brand-hover);
  background: var(--brand-hover);
}

.admin-login .admin-button--primary:disabled,
.admin-workspace .admin-button--primary:disabled {
  border-color: #b8c2cc;
  background: #c8d0d8;
  cursor: not-allowed;
}

.admin-workspace .admin-button--secondary {
  border: 1px solid #607080;
  background: transparent;
  color: #e8eef5;
}

.admin-workspace .admin-button--secondary:hover {
  border-color: #a6b3c0;
  background: rgb(255 255 255 / 8%);
}

.admin-login .admin-message,
.admin-workspace .admin-message {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 12px;
  line-height: 1.5;
}

.admin-login .admin-message--error,
.admin-workspace .admin-message--error {
  border-color: #d9a9a5;
  background: #fff2f1;
  color: var(--danger);
}

.admin-workspace .admin-message--success {
  border-color: #9ac88c;
  background: var(--success-soft);
  color: var(--success);
}

.admin-workspace .admin-message--info {
  border-color: #c8d5ef;
  background: #edf3ff;
  color: var(--brand);
}

.admin-workspace {
  position: fixed;
  z-index: 1000;
  inset: 0;
  overflow: auto;
  background: #eef2f7;
  color: var(--ink);
}

.admin-workspace .admin-workspace__header {
  position: sticky;
  z-index: 2;
  top: 0;
  min-height: 76px;
  padding: 12px max(24px, calc((100vw - 1280px) / 2));
  border-bottom: 1px solid #2f3d50;
  background: #0f172a;
  color: #fff;
}

.admin-workspace .admin-workspace__title {
  display: flex;
  align-items: center;
  gap: 13px;
}

.admin-workspace .admin-workspace__title img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.admin-workspace .admin-workspace__title h2 {
  margin-top: 3px;
  font-size: 20px;
}

.admin-workspace .admin-workspace__header .admin-eyebrow {
  color: #93a7c1;
}

.admin-workspace .admin-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-workspace .admin-icon-button--inverse {
  border-color: #607080;
}

.admin-workspace .admin-workspace__body {
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
  padding: 24px 0 40px;
}

.admin-workspace .storage-band,
.admin-workspace .upload-tool,
.admin-workspace .file-browser {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.admin-workspace .storage-band {
  padding: 19px 21px;
}

.admin-workspace .storage-heading strong {
  font-size: 18px;
}

.admin-workspace .storage-heading > span {
  color: var(--success);
  font-size: 14px;
  font-weight: 700;
}

.admin-workspace .admin-meter {
  overflow: hidden;
  height: 7px;
  margin: 13px 0 8px;
  border-radius: 4px;
  background: #dbe3ec;
}

.admin-workspace .admin-meter span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--success);
  transition: width 180ms ease;
}

.admin-workspace .storage-band small,
.admin-workspace .upload-progress small {
  color: var(--muted);
}

.admin-workspace .admin-grid {
  display: grid;
  grid-template-columns: minmax(360px, .82fr) minmax(500px, 1.18fr);
  gap: 20px;
  align-items: start;
  margin-top: 20px;
}

.admin-workspace .upload-tool,
.admin-workspace .file-browser {
  padding: 22px;
}

.admin-workspace .admin-section-heading h3 {
  margin-top: 3px;
  font-size: 19px;
}

.admin-workspace .upload-state,
.admin-workspace .admin-section-heading > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.admin-workspace .drop-zone {
  display: grid;
  min-height: 172px;
  margin-top: 20px;
  padding: 24px;
  place-items: center;
  border: 1px dashed #8294aa;
  border-radius: var(--radius);
  background: var(--surface-tint);
  cursor: pointer;
  text-align: center;
  transition: border-color 140ms ease, background-color 140ms ease;
}

.admin-workspace .drop-zone:hover,
.admin-workspace .drop-zone.is-dragging {
  border-color: var(--brand);
  background: #eff4ff;
}

.admin-workspace .drop-zone input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.admin-workspace .drop-zone__icon {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 10px;
  place-items: center;
  border-radius: 50%;
  background: #e6edfb;
  color: var(--brand);
}

.admin-workspace .drop-zone__icon svg {
  width: 20px;
  height: 20px;
}

.admin-workspace .drop-zone strong {
  margin-bottom: 5px;
  color: var(--brand);
  font-size: 15px;
}

.admin-workspace .drop-zone > span:last-child {
  color: var(--muted);
  font-size: 12px;
}

.admin-workspace .package-preview,
.admin-workspace .release-fields,
.admin-workspace .upload-progress {
  margin-top: 18px;
}

.admin-workspace .package-preview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--line);
}

.admin-workspace .package-preview > div {
  min-width: 0;
  padding: 10px 12px;
  background: var(--surface-tint);
}

.admin-workspace .package-preview span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
}

.admin-workspace .package-preview strong,
.admin-workspace .package-preview code {
  display: block;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-workspace .package-preview > div:first-child,
.admin-workspace .package-preview > div:last-child {
  grid-column: 1 / -1;
}

.admin-workspace .release-fields {
  display: grid;
  gap: 14px;
}

.admin-workspace .upload-progress > div:first-child span {
  color: var(--muted);
  font-size: 12px;
}

.admin-workspace .admin-upload-submit {
  width: 100%;
  margin-top: 18px;
}

.admin-workspace .admin-file-list {
  display: grid;
  max-height: calc(100vh - 250px);
  gap: 8px;
  margin-top: 20px;
  overflow: auto;
}

.admin-workspace .admin-file-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.admin-workspace .admin-file-row strong,
.admin-workspace .admin-file-row small {
  display: block;
}

.admin-workspace .admin-file-row strong {
  overflow-wrap: anywhere;
  font-size: 13px;
}

.admin-workspace .admin-file-row small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.admin-workspace .admin-file-actions {
  display: flex;
  gap: 6px;
}

.admin-workspace .admin-file-actions a,
.admin-workspace .admin-file-actions button {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  border: 1px solid #aebbc8;
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--brand);
  cursor: pointer;
  font-size: 12px;
  text-decoration: none;
}

.admin-workspace .admin-file-actions svg {
  width: 15px;
  height: 15px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 1080px) {
  .product-hero {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .download-panel {
    width: min(520px, 100%);
  }

  .release-summary {
    grid-template-columns: minmax(150px, .65fr) minmax(200px, 1fr) auto 22px;
  }

  .file-row {
    grid-template-columns: minmax(140px, .7fr) minmax(190px, 1fr) 82px 140px;
  }
}

@media (max-width: 820px) {
  .header-inner,
  main,
  .site-footer {
    width: min(var(--page-width), calc(100% - 40px));
  }

  .site-header nav a:first-child {
    display: none;
  }

  .product-identity {
    grid-template-columns: 190px minmax(0, 1fr);
  }

  .product-logo {
    width: 190px;
    height: 190px;
  }

  .product-copy h1 {
    font-size: 46px;
  }

  .release-summary {
    grid-template-columns: minmax(150px, .75fr) minmax(0, 1.25fr) auto 20px;
    gap: 14px;
    padding-inline: 15px;
  }

  .file-row {
    grid-template-columns: minmax(0, 1fr) 142px;
    gap: 9px 12px;
    padding: 10px 15px;
  }

  .file-name { grid-column: 1; grid-row: 2; }
  .checksum { grid-column: 2; grid-row: 2; }
  .file-actions { grid-column: 2; grid-row: 1; }
}

@media (max-width: 620px) {
  .header-inner,
  main,
  .site-footer {
    width: calc(100% - 28px);
  }

  .header-inner {
    min-height: 62px;
  }

  .brand img {
    width: auto;
    height: 36px;
  }

  .site-header nav {
    gap: 16px;
  }

  .site-header nav a {
    font-size: 12px;
  }

  .site-header nav a:nth-child(2) {
    display: none;
  }

  main {
    padding-top: 16px;
  }

  .product-hero {
    min-height: 0;
    gap: 30px;
    padding: 18px 0 38px;
  }

  .product-identity {
    grid-template-columns: 144px minmax(0, 1fr);
    gap: 16px;
  }

  .product-logo {
    width: 144px;
    height: 144px;
  }

  .product-copy h1 {
    margin-top: 6px;
    font-size: 36px;
  }

  .product-summary {
    margin: 12px 0 16px;
    font-size: 14px;
    line-height: 1.65;
  }

  .platform-strip {
    gap: 6px;
  }

  .platform-strip span {
    min-height: 31px;
    padding: 0 8px;
    font-size: 11px;
  }

  .download-panel {
    min-height: 0;
    padding: 20px;
  }

  .section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .channel-filter {
    overflow-x: auto;
  }

  .channel-filter button {
    flex: 1 0 auto;
  }

  .release-summary {
    grid-template-columns: minmax(0, 1fr) auto 20px;
    min-height: 84px;
    gap: 8px;
    padding: 13px 12px;
  }

  .release-summary > p {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .release-file-count {
    grid-column: 2;
    grid-row: 1;
  }

  .release-chevron {
    grid-column: 3;
    grid-row: 1;
  }

  .file-row {
    grid-template-columns: minmax(0, 1fr) 130px;
    padding: 10px 12px;
  }

  .checksum {
    width: 100%;
  }

  .site-footer {
    min-height: 150px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 18px;
  }

  .footer-links {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
}

@media (max-width: 430px) {
  .product-copy h1 {
    font-size: 32px;
  }

  .product-summary {
    grid-column: 1 / -1;
  }

  .platform-strip {
    grid-column: 1 / -1;
  }

  .file-row {
    grid-template-columns: 1fr;
  }

  .file-platform,
  .file-name,
  .checksum,
  .file-actions {
    grid-column: 1;
    grid-row: auto;
  }
}

@media (max-width: 900px) {
  .admin-workspace .admin-grid {
    grid-template-columns: 1fr;
  }

  .admin-workspace .admin-workspace__header,
  .admin-workspace .admin-workspace__body {
    display: none;
  }
}

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