﻿:root {
  color-scheme: dark;
  --bg: #07111f;
  --bg-soft: #0c1830;
  --surface: rgba(18, 35, 62, 0.82);
  --surface-strong: rgba(20, 41, 73, 0.96);
  --surface-glass: rgba(27, 49, 84, 0.72);
  --line: rgba(122, 168, 255, 0.22);
  --line-strong: rgba(122, 168, 255, 0.35);
  --text: #f4f8ff;
  --muted: #a9b9d7;
  --accent: #7eb3ff;
  --accent-strong: #4b84ff;
  --success: #45e39c;
  --warning: #ffd26f;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --max-width: 1240px;
  --content-readable: 76ch;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: clip;
  font-family: "Segoe UI", "Trebuchet MS", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(76, 132, 255, 0.2), transparent 32%),
    radial-gradient(circle at top right, rgba(69, 227, 156, 0.13), transparent 28%),
    linear-gradient(180deg, #07111f 0%, #09152a 40%, #07111f 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(126, 179, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(126, 179, 255, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.6), transparent 95%);
}

img {
  max-width: 100%;
  display: block;
}

code {
  font-family: "Cascadia Code", Consolas, monospace;
  color: #9bc1ff;
}

.site-shell {
  position: relative;
  z-index: 1;
  width: min(100%, var(--max-width));
  margin: 0 auto;
  padding: 24px 20px 40px;
}

.topbar {
  position: relative;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  margin-bottom: 22px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(10, 22, 40, 0.82);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
  overflow: visible;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: inherit;
  text-decoration: none;
  min-width: 0;
  margin-right: auto;
}

.brand img {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  flex: 0 0 auto;
}

.brand span {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.brand strong {
  font-size: 1.05rem;
}

.brand small {
  line-height: 1.35;
}

.brand small,
.topnav a,
.section-head p,
.card p,
.footer,
.side-note-card li,
.text-grid p,
.changelog-content li,
.changelog-content p {
  color: var(--muted);
}

.topnav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
  margin-left: auto;
  flex: 0 1 auto;
}

.topnav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 999px;
  transition: 0.2s ease;
}

.topnav a:hover,
.topnav a.active {
  color: var(--text);
  background: rgba(126, 179, 255, 0.14);
}

.topbar-donate {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.paypal-donate-shell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.paypal-donate-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
}

.header-paypal-donate-shell {
  opacity: 0.84;
  transform: scale(0.86);
  transform-origin: center center;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.header-paypal-donate-shell:hover {
  opacity: 1;
  transform: scale(0.88);
}

main {
  display: grid;
  gap: 26px;
}

.page-stack {
  display: grid;
  gap: 26px;
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(20, 39, 69, 0.9), rgba(12, 28, 50, 0.94));
  box-shadow: var(--shadow);
}

.hero,
.page-hero,
.download-spotlight,
.side-note-card,
.changelog-list,
.changelog-detail,
.intro-card,
.teaser-card {
  padding: 24px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
  gap: 28px;
  overflow: hidden;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  right: -80px;
  top: -90px;
  background: radial-gradient(circle, rgba(69, 227, 156, 0.15), transparent 72%);
  pointer-events: none;
}

.hero-copy,
.hero-panel {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.hero-copy-wide {
  display: grid;
  align-content: center;
}

.hero.hero-home .hero-copy-wide {
  align-content: start;
  gap: 0;
}

.hero.hero-home {
  grid-template-columns: minmax(0, 1.34fr) minmax(320px, 0.66fr);
}

.hero.hero-home .hero-copy-wide .eyebrow {
  margin-bottom: 12px;
}

.hero.hero-home h1 {
  max-width: none;
  font-size: clamp(1.5rem, 2.2vw, 2.3rem);
  margin-bottom: 12px;
  text-wrap: pretty;
}

.hero-info-only .hero-copy p {
  max-width: 68ch;
}

.hero-info-only .hero-panel {
  display: flex;
}

.latest-release-summary {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  width: 100%;
  padding-top: 14px;
  gap: 8px;
}

.latest-release-summary .eyebrow {
  margin-bottom: 4px;
}

.latest-release-summary h2 {
  margin: 0;
}

.latest-release-summary p {
  margin: 2px 0 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero h1,
.page-hero h1,
.section-head h2,
.download-spotlight h2,
.server-note h2 {
  margin: 0;
  line-height: 1.08;
}

h1,
h2,
h3,
h4 {
  font-weight: 700;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.hero h1,
.page-hero h1 {
  font-size: clamp(2.4rem, 4vw, 4.2rem);
}

.hero-panel-card h2,
.download-spotlight h2,
.section-head h2,
.page-hero h1,
.changelog-detail h3 {
  font-size: clamp(1.5rem, 2.2vw, 2.3rem);
}

.hero h1,
.page-hero h1,
.hero-panel-card h2,
.section-head h2,
.download-spotlight h2,
.changelog-detail h3,
.text-grid h3,
.news-card h3,
.side-note-card h3,
.release-row h3 {
  color: #edf4ff;
  text-shadow: 0 10px 26px rgba(75, 132, 255, 0.12);
}

.hero h1,
.page-hero h1,
.hero-panel-card h2 {
  max-width: 20ch;
}

.section-head h2,
.download-spotlight h2,
.changelog-detail h3 {
  max-width: 30ch;
}

.hero p,
.page-hero p,
.card p,
.changelog-content p,
.changelog-content li,
.text-grid p,
.side-note-card li {
  line-height: 1.7;
  font-size: 1rem;
}

.hero-actions,
.download-actions,
.hero-release-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hero-actions form {
  margin: 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 14px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: #04111f;
  background: linear-gradient(135deg, #9ed0ff, #45e39c);
  box-shadow: 0 14px 30px rgba(69, 227, 156, 0.2);
}

.button[disabled],
.button-disabled {
  cursor: not-allowed;
  opacity: 0.72;
  box-shadow: none;
  filter: saturate(0.55);
  pointer-events: none;
}

.button[disabled]:hover,
.button-disabled:hover {
  transform: none;
}

.button-secondary {
  color: var(--text);
  background: rgba(126, 179, 255, 0.12);
  border-color: var(--line-strong);
}

.button-ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
}

.button-danger {
  color: #fff3f2;
  background: linear-gradient(135deg, rgba(212, 85, 85, 0.95), rgba(143, 44, 44, 0.95));
  border-color: rgba(255, 166, 166, 0.2);
  box-shadow: 0 14px 30px rgba(181, 64, 64, 0.18);
}

.button-block {
  flex: 1 1 180px;
}

.hero-meta,
.mini-meta,
.news-card-meta,
.release-entry-meta,
.changelog-card-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.hero-meta span,
.pill,
.detail-chip {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(126, 179, 255, 0.08);
  color: #cfe2ff;
  font-size: 0.92rem;
  font-weight: 600;
  text-align: left;
  white-space: normal;
}

.hero-meta-panel {
  margin-top: auto;
  padding-top: 16px;
}

.hero-meta-panel span {
  background: rgba(126, 179, 255, 0.1);
}

.pill-soft {
  background: rgba(69, 227, 156, 0.1);
  color: #c8f9e2;
}

.glass-card {
  height: 100%;
  padding: 24px;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(126, 179, 255, 0.2);
  background: linear-gradient(180deg, rgba(28, 52, 91, 0.7), rgba(15, 31, 55, 0.86));
  backdrop-filter: blur(16px);
}

.hero-panel-header,
.download-head,
.changelog-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.section-block,
.page-section {
  display: grid;
  gap: 18px;
}

.section-head,
.compact-head {
  display: grid;
  gap: 6px;
}

.section-head-wide h2 {
  max-width: none;
}

.section-head p,
.compact-head p {
  margin: 0;
  max-width: var(--content-readable);
}

.two-column-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 22px;
  align-items: start;
}

.page-hero-classic {
  display: grid;
  gap: 8px;
  padding: 22px 28px;
}

.page-hero-classic h1 {
  max-width: 24ch;
  font-size: clamp(1.75rem, 2.35vw, 2.45rem);
  text-wrap: pretty;
}

.page-hero-classic p {
  margin: 0;
  max-width: 82ch;
}

.page-hero-changelog {
  padding: 18px 28px 20px;
}

.page-hero-changelog h1 {
  max-width: 42ch;
  font-size: clamp(1.38rem, 1.6vw, 1.85rem);
  line-height: 1.16;
  letter-spacing: -0.025em;
  text-wrap: pretty;
}

.page-hero-changelog p {
  max-width: 102ch;
}

.changelog-dropdown-section {
  display: grid;
  gap: 18px;
  padding: 24px;
}

.changelog-dropdown-list {
  display: grid;
  gap: 14px;
}

.changelog-dropdown-item {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(18, 37, 64, 0.82), rgba(11, 25, 44, 0.92));
  overflow: hidden;
}

.changelog-dropdown-item summary {
  list-style: none;
}

.changelog-dropdown-item summary::-webkit-details-marker {
  display: none;
}

.changelog-dropdown-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  padding: 18px 20px;
  cursor: pointer;
}

.changelog-dropdown-summary-main {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.changelog-dropdown-summary-main h3 {
  margin: 0;
  max-width: 34ch;
  line-height: 1.16;
  color: #edf4ff;
  text-shadow: 0 10px 26px rgba(75, 132, 255, 0.12);
  font-size: 1.34rem;
}

.changelog-dropdown-summary-main p {
  margin: 0;
  max-width: 72ch;
}

.changelog-dropdown-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.changelog-dropdown-summary-side {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  padding-right: 28px;
  position: relative;
}

.changelog-dropdown-summary-side::after {
  content: "▾";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: #d6e5ff;
  font-size: 1rem;
  transition: transform 0.18s ease;
}

.changelog-dropdown-item[open] .changelog-dropdown-summary-side::after {
  transform: translateY(-50%) rotate(180deg);
}

.changelog-dropdown-body {
  display: grid;
  gap: 16px;
  padding: 0 20px 20px;
  border-top: 1px solid rgba(126, 179, 255, 0.12);
}

.changelog-dropdown-body-head {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.changelog-dropdown-detail-meta {
  margin-top: 0;
}

.changelog-dropdown-loading {
  margin-top: 16px;
  color: var(--muted);
}

.changelog-dropdown-empty {
  display: grid;
  gap: 10px;
  padding: 20px;
}

.changelog-dropdown-empty h3 {
  margin: 0;
  color: #edf4ff;
}

.news-classic-page,
.changelog-classic-page {
  display: grid;
  gap: 22px;
}

.news-feature-host {
  display: grid;
}

.news-feature-card {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(260px, 0.94fr);
  gap: 24px;
  padding: 26px;
}

.news-feature-card-single {
  grid-template-columns: 1fr;
}

.news-feature-copy {
  display: grid;
  align-content: start;
  gap: 14px;
}

.news-feature-copy .news-card-meta,
.news-classic-card .news-card-meta {
  margin-top: 0;
}

.news-feature-copy h2 {
  margin: 0;
  max-width: 18ch;
  font-size: clamp(1.8rem, 2.5vw, 2.7rem);
  line-height: 1.08;
  color: #edf4ff;
  text-shadow: 0 10px 26px rgba(75, 132, 255, 0.12);
}

.news-feature-copy p {
  margin: 0;
  max-width: 68ch;
  font-size: 1.04rem;
}

.news-donate-block {
  margin-top: 18px;
}

.news-donate-block .paypal-donate-shell {
  justify-content: flex-start;
}

.news-feature-media {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}

.news-feature-media img {
  width: min(100%, 320px);
  border-radius: 22px;
  border: 1px solid var(--line-strong);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
}

.news-archive-card {
  display: grid;
  gap: 18px;
  padding: 24px;
}

.news-classic-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.news-classic-card,
.news-empty-card {
  display: grid;
  gap: 12px;
  padding: 20px;
}

.news-classic-card h3,
.news-empty-card h2 {
  margin: 0;
  line-height: 1.2;
  color: #edf4ff;
  text-shadow: 0 10px 26px rgba(75, 132, 255, 0.12);
}

.news-classic-card h3 {
  font-size: 1.2rem;
}

.news-empty-card {
  min-height: 220px;
  align-items: center;
}

.news-empty-card .news-feature-copy {
  max-width: 64ch;
}

.download-page {
  gap: 22px;
}

.download-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(340px, 0.78fr);
  align-items: start;
  gap: 24px;
  padding: 22px 28px 28px;
  position: relative;
  overflow: hidden;
}

.download-hero::after {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  right: -110px;
  bottom: -120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(76, 132, 255, 0.16), transparent 70%);
  pointer-events: none;
}

.download-hero-copy,
.download-hero-panel {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.download-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-self: start;
  gap: 0;
  padding-right: 8px;
  padding-top: 0;
  margin-top: -2px;
}

.download-hero-copy .eyebrow {
  margin-bottom: 10px;
}

.download-hero-copy h1 {
  max-width: 22ch;
  font-size: clamp(2rem, 3.2vw, 3rem);
  margin: 0;
  line-height: 1.08;
}

.download-hero-copy p {
  max-width: 64ch;
  margin: 18px 0 0;
}

.download-hero-panel {
  display: flex;
}

.download-latest-card {
  width: 100%;
  display: grid;
  gap: 18px;
  padding: 24px;
  border-radius: 24px;
  border: 1px solid rgba(126, 179, 255, 0.18);
  background: linear-gradient(180deg, rgba(28, 52, 91, 0.72), rgba(12, 29, 52, 0.92));
  backdrop-filter: blur(16px);
}

.download-latest-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.download-latest-top h2 {
  margin: 0;
  max-width: none;
}

.download-latest-card p {
  margin: 0;
}

.download-latest-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.download-latest-facts div {
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(126, 179, 255, 0.12);
  background: rgba(7, 18, 34, 0.38);
}

.download-latest-facts dt {
  color: var(--muted);
  font-size: 0.86rem;
}

.download-latest-facts dd {
  margin: 6px 0 0;
  font-size: 1rem;
  font-weight: 700;
}

.download-latest-actions {
  display: flex;
  justify-content: flex-start;
}

.download-latest-actions .button {
  min-height: 44px;
  padding: 0 16px;
  font-size: 0.98rem;
}

.release-history {
  display: grid;
  gap: 18px;
  padding: 24px;
}

.release-history-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.release-history-head h2 {
  margin: 0;
  max-width: none;
}

.release-history-head p {
  margin: 6px 0 0;
  max-width: 62ch;
}

.release-history-list {
  display: grid;
  gap: 14px;
}

.release-accordion {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(16, 34, 59, 0.72);
  overflow: hidden;
}

.release-accordion summary {
  list-style: none;
}

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

.release-accordion-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  cursor: pointer;
}

.release-accordion-title-block {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.release-accordion h3 {
  margin: 0;
  font-size: 1.24rem;
}

.release-accordion-summary-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  padding-right: 34px;
  position: relative;
  color: var(--muted);
  font-size: 0.95rem;
}

.release-accordion-summary-meta::after {
  content: "▾";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: #d6e5ff;
  font-size: 1rem;
  transition: transform 0.18s ease;
}

.release-accordion[open] .release-accordion-summary-meta::after {
  transform: translateY(-50%) rotate(180deg);
}

.release-accordion-body {
  display: grid;
  gap: 16px;
  padding: 0 20px 20px;
  border-top: 1px solid rgba(126, 179, 255, 0.1);
}

.release-accordion-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 16px;
  margin-top: 18px;
}

.release-row {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr) auto;
  gap: 16px;
  align-items: center;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(16, 34, 59, 0.72);
}

.release-row-main,
.release-row-meta {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.release-row-labels {
  display: grid;
  gap: 6px;
}

.release-row h3 {
  margin: 0;
  font-size: 1.28rem;
}

.release-kicker {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.release-row-file {
  margin: 0;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(126, 179, 255, 0.14);
  background: rgba(7, 18, 34, 0.42);
}

.release-row-file code {
  display: block;
  white-space: normal;
  overflow-wrap: anywhere;
}

.release-row-meta {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.release-row-meta-item {
  display: grid;
  gap: 6px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(126, 179, 255, 0.1);
  background: rgba(7, 18, 34, 0.34);
}

.release-row-meta-item span {
  color: var(--muted);
  font-size: 0.85rem;
}

.release-row-meta-item strong {
  color: var(--text);
  font-size: 0.98rem;
}

.release-row-actions {
  display: flex;
  justify-content: flex-end;
}

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

.teaser-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.text-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.text-grid-quiet article {
  min-height: 100%;
}

.text-grid article,
.teaser-card,
.news-card,
.changelog-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(16, 34, 59, 0.8);
  overflow: hidden;
}

.text-grid article {
  padding: 18px;
}

.text-grid h3,
.news-card h3,
.changelog-card h4,
.changelog-detail h3,
.teaser-card h3,
.side-note-card h3 {
  margin: 0;
  line-height: 1.24;
  overflow-wrap: anywhere;
}

.stack-list,
.news-list {
  display: grid;
  gap: 14px;
}

.news-card,
.changelog-card {
  padding: 18px;
}

.changelog-card h4 {
  color: var(--success);
}

.news-card p,
.changelog-card p,
.changelog-content p,
.changelog-content li,
.side-note-card p {
  overflow-wrap: anywhere;
}

.news-card {
  display: grid;
  gap: 14px;
}

.news-card img {
  width: min(100%, 320px);
  border-radius: 20px;
  border: 1px solid var(--line-strong);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
}

.changelog-content {
  max-width: var(--content-readable);
}

.changelog-content h1,
.changelog-content h2,
.changelog-content h3 {
  margin-top: 0;
  margin-bottom: 14px;
}

.changelog-content h1 {
  font-size: clamp(1.8rem, 2.8vw, 2.45rem);
  line-height: 1.08;
}

.changelog-content h2 {
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  margin-top: 30px;
}

.changelog-content h3 {
  font-size: 1.14rem;
  margin-top: 24px;
}

.changelog-content ul {
  margin: 16px 0;
  padding-left: 24px;
}

.changelog-content p,
.changelog-content li {
  font-size: 1.04rem;
  line-height: 1.85;
}

.side-note-card,
.intro-card {
  padding: 24px;
}

.intro-card-soft {
  background: linear-gradient(180deg, rgba(17, 35, 61, 0.82), rgba(10, 23, 42, 0.9));
}

.intro-card-soft .section-head {
  gap: 10px;
}

.intro-card-soft .section-head h2 {
  max-width: none;
  width: 100%;
  font-size: clamp(1.28rem, 1.45vw, 1.7rem);
  line-height: 1.18;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.legal-page {
  gap: 22px;
  max-width: 920px;
  margin: 0 auto;
}

.legal-hero-card,
.legal-section-card {
  display: grid;
  gap: 12px;
  padding: 0 6px;
}

.legal-hero-card {
  padding-bottom: 6px;
}

.legal-hero-card .section-head {
  gap: 10px;
}

.legal-copy {
  display: grid;
  gap: 12px;
}

.legal-copy p {
  margin: 0;
}

.legal-list {
  margin: 0;
  padding-left: 22px;
  display: grid;
  gap: 10px;
  color: var(--muted);
}

.legal-list li {
  line-height: 1.7;
}

.legal-section-card + .legal-section-card {
  padding-top: 2px;
}

.audience-copy {
  padding-right: 0;
}

.audience-copy-wide {
  width: 100%;
  max-width: none;
}

.audience-block {
  overflow: hidden;
}

.compact-page-hero {
  padding: 22px 24px;
}

.sticky-card {
  position: sticky;
  top: 18px;
}

.accent-list {
  display: grid;
  gap: 10px;
  padding-left: 18px;
}

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 26px;
  padding: 20px 6px 0;
  font-size: 0.95rem;
}

.footer-meta,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.footer-links {
  font-size: 0.88rem;
  justify-content: flex-end;
}

.hidden {
  display: none !important;
}

body.modal-open {
  overflow: hidden;
}

.confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 24px;
}

.confirm-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 10, 20, 0.74);
  backdrop-filter: blur(12px);
}

.confirm-modal-card {
  position: relative;
  z-index: 1;
  width: min(100%, 560px);
  padding: 24px;
  display: grid;
  gap: 18px;
}

.confirm-modal-copy {
  display: grid;
  gap: 10px;
}

.confirm-modal-copy h2,
.confirm-modal-copy p {
  margin: 0;
}

.confirm-modal-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

@media (max-width: 1120px) {
  .hero,
  .hero.hero-home,
  .two-column-layout,
  .teaser-grid,
  .text-grid,
  .news-feature-card,
  .news-classic-list,
  .download-hero,
  .release-row {
    grid-template-columns: 1fr;
  }

  .page-hero-classic h1,
  .hero.hero-home h1,
  .download-hero-copy h1,
  .news-feature-copy h2,
  .changelog-dropdown-summary-main h3 {
    max-width: none;
  }

  .hero {
    gap: 22px;
  }

  .hero.hero-home {
    grid-template-columns: 1fr;
  }

  .hero-info-only .hero-panel,
  .download-hero-panel,
  .news-feature-media {
    width: 100%;
    justify-content: flex-start;
  }

  .download-latest-card,
  .latest-release-summary,
  .news-feature-card,
  .news-archive-card,
  .changelog-dropdown-section,
  .release-history {
    min-width: 0;
  }

  .changelog-dropdown-summary {
    grid-template-columns: 1fr;
  }

  .changelog-dropdown-summary-side {
    justify-content: flex-start;
    padding-right: 24px;
  }

  .sticky-card {
    position: static;
  }

  .release-row-actions {
    justify-content: flex-start;
  }

  .release-accordion-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 920px) {
  .topbar {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: stretch;
    gap: 16px;
    border-radius: 32px;
  }

  .brand {
    width: 100%;
  }

  .topnav {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
  }

  .topnav a {
    width: 100%;
    padding: 11px 12px;
    font-size: 0.96rem;
  }

  .download-latest-facts,
  .release-row-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .site-shell {
    padding: 14px 12px 28px;
  }

  .topbar {
    gap: 14px;
    padding: 14px;
    border-radius: 28px;
  }

  .brand {
    align-items: center;
    gap: 12px;
  }

  .brand img {
    width: 46px;
    height: 46px;
  }

  .brand strong {
    font-size: 1rem;
  }

  .brand small {
    font-size: 0.86rem;
  }

  .topnav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .topnav a {
    min-height: 46px;
    padding: 10px 12px;
  }

  .hero,
  .hero.hero-home,
  .page-hero,
  .download-spotlight,
  .side-note-card,
  .changelog-list,
  .changelog-detail,
  .intro-card,
  .teaser-card,
  .news-archive-card,
  .news-feature-card,
  .changelog-dropdown-section,
  .download-hero,
  .release-history {
    padding: 18px;
  }

  .page-stack,
  main {
    gap: 18px;
  }

  .hero,
  .hero.hero-home,
  .download-hero,
  .news-feature-card {
    gap: 18px;
  }

  .hero.hero-home .hero-panel {
    order: 2;
  }

  .hero.hero-home .hero-copy {
    order: 1;
  }

  .hero h1,
  .page-hero h1,
  .download-hero-copy h1,
  .news-feature-copy h2 {
    font-size: clamp(1.62rem, 8vw, 2.2rem);
    line-height: 1.1;
  }

  .page-hero-classic,
  .page-hero-changelog {
    padding: 18px;
  }

  .page-hero p,
  .hero p,
  .download-hero-copy p,
  .news-feature-copy p,
  .section-head p,
  .card p,
  .changelog-content p,
  .changelog-content li {
    font-size: 0.98rem;
    line-height: 1.72;
  }

  .hero-meta,
  .hero-meta-panel,
  .detail-meta,
  .download-latest-facts,
  .release-row-meta {
    margin-top: 14px;
  }

  .download-latest-top,
  .release-history-head,
  .release-accordion-summary,
  .download-head,
  .changelog-detail-head,
  .changelog-reader-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .download-latest-facts,
  .release-row-meta,
  .news-classic-list,
  .text-grid {
    grid-template-columns: 1fr;
  }

  .download-latest-actions,
  .release-row-actions {
    width: 100%;
  }

  .download-latest-actions .button,
  .release-row-actions .button,
  .hero-actions .button,
  .download-actions .button,
  .hero-actions form,
  .hero-actions form .button {
    width: 100%;
  }

  .release-accordion-summary {
    gap: 12px;
  }

  .release-accordion-summary-meta {
    justify-content: flex-start;
    padding-right: 24px;
    row-gap: 8px;
  }

  .release-accordion-body,
  .changelog-dropdown-body {
    padding: 0 16px 16px;
  }

  .changelog-dropdown-summary {
    padding: 16px;
    gap: 12px;
  }

  .changelog-dropdown-summary-main h3 {
    font-size: 1.15rem;
    max-width: none;
  }

  .changelog-dropdown-summary-main p {
    max-width: none;
  }

  .changelog-dropdown-summary-side {
    gap: 8px;
    padding-right: 22px;
  }

  .changelog-content {
    max-width: none;
  }

  .changelog-content h1 {
    font-size: clamp(1.45rem, 6vw, 1.9rem);
  }

  .changelog-content h2 {
    font-size: clamp(1.16rem, 4.8vw, 1.45rem);
    margin-top: 24px;
  }

  .changelog-content ul {
    padding-left: 20px;
  }

  .news-feature-media img,
  .news-card img {
    width: 100%;
    max-width: 100%;
  }

  .footer {
    flex-direction: column;
    gap: 8px;
  }

  .footer-meta,
  .footer-links {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 520px) {
  .site-shell {
    padding: 12px 10px 24px;
  }

  .topbar {
    padding: 12px;
    border-radius: 24px;
  }

  .brand {
    align-items: flex-start;
  }

  .brand span {
    gap: 2px;
  }

  .topnav {
    grid-template-columns: 1fr;
  }

  .topnav a {
    min-height: 44px;
  }

  .hero,
  .hero.hero-home,
  .page-hero,
  .download-hero,
  .release-history,
  .changelog-dropdown-section,
  .news-archive-card,
  .news-feature-card,
  .intro-card {
    padding: 16px;
  }

  .hero h1,
  .page-hero h1,
  .download-hero-copy h1,
  .news-feature-copy h2 {
    font-size: clamp(1.46rem, 7vw, 1.9rem);
  }

  .eyebrow {
    font-size: 0.78rem;
    margin-bottom: 10px;
  }

  .hero-meta span,
  .pill,
  .detail-chip {
    width: 100%;
    justify-content: flex-start;
  }

  .download-latest-card,
  .glass-card {
    padding: 18px;
  }

  .settings-accordion-summary,
  .settings-accordion-body {
    padding-left: 16px;
    padding-right: 16px;
  }

  .download-latest-facts div,
  .release-row-meta-item,
  .release-row-file,
  .text-grid article,
  .news-classic-card {
    padding: 12px;
  }

  .release-history-head h2,
  .section-head h2,
  .download-latest-top h2 {
    max-width: none;
  }

  .release-accordion-summary,
  .release-accordion-body,
  .changelog-dropdown-summary,
  .changelog-dropdown-body {
    padding-left: 14px;
    padding-right: 14px;
  }

  .release-accordion h3,
  .download-latest-top h2,
  .changelog-dropdown-summary-main h3,
  .text-grid h3,
  .news-classic-card h3 {
    font-size: 1.05rem;
  }

  .release-accordion-summary-meta,
  .changelog-dropdown-summary-side {
    font-size: 0.88rem;
  }
}

.topbar-wide {
  grid-template-columns: minmax(0, 1fr) auto auto;
}

.topbar-actions {
  position: relative;
  z-index: 41;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  flex: 0 0 auto;
}

.account-menu {
  position: relative;
  z-index: 42;
}

.account-menu summary {
  list-style: none;
}

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

.account-menu-trigger {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 8px 12px;
  border-radius: 18px;
  border: 1px solid rgba(126, 179, 255, 0.18);
  background: rgba(126, 179, 255, 0.08);
  cursor: pointer;
}

.account-menu-trigger::after {
  content: "▾";
  color: #d6e5ff;
  font-size: 0.95rem;
}

.account-menu[open] .account-menu-trigger::after {
  transform: rotate(180deg);
}

.account-menu-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.account-menu-copy strong,
.account-menu-copy small {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-menu-copy small {
  color: var(--muted);
}

.account-menu-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 220px;
  display: grid;
  gap: 6px;
  padding: 10px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(21, 42, 71, 0.96), rgba(11, 26, 47, 0.98));
  box-shadow: var(--shadow);
  z-index: 60;
}

.account-menu-dropdown a,
.account-menu-dropdown button {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 12px;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
  text-decoration: none;
  font: inherit;
  cursor: pointer;
}

.account-menu-dropdown a:hover,
.account-menu-dropdown a.active,
.account-menu-dropdown button:hover {
  background: rgba(126, 179, 255, 0.12);
}

.user-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 50%;
  border: 1px solid rgba(126, 179, 255, 0.18);
  background: rgba(126, 179, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-avatar-small {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
}

.user-avatar-fallback {
  color: #edf4ff;
  font-weight: 700;
}

.button-small {
  min-height: 42px;
  padding: 0 14px;
}

.page-stack-sale {
  gap: 22px;
}

.sale-hero-grid,
.sale-account-hero {
  grid-template-columns: minmax(0, 1.34fr) minmax(340px, 0.66fr);
}

.sale-hero-copy p {
  max-width: 82ch;
}

.sale-side-card {
  justify-content: flex-start;
  gap: 12px;
  align-items: center;
  text-align: center;
}

.sale-side-identity {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 6px 0 10px;
}

.sale-side-logo {
  width: min(180px, 52%);
  height: auto;
  display: block;
  filter: drop-shadow(0 18px 30px rgba(76, 132, 255, 0.2));
}

.sale-side-facts {
  display: grid;
  gap: 8px;
  width: 100%;
  margin-top: 2px;
}

.sale-side-facts p {
  margin: 0;
  color: #d6e4fb;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.55;
}

.sale-side-price {
  margin: 4px 0 0;
  color: #edf4ff;
  font-size: 1.08rem;
  font-weight: 700;
}

.sale-side-card .hero-actions {
  margin-top: 8px;
  justify-content: center;
}

.sale-side-card .button {
  min-width: 176px;
}

.purchase-actions,
.purchase-form-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.purchase-form-inline {
  margin: 0;
}

.purchase-actions .button,
.purchase-form-inline .button {
  min-width: 220px;
}

.auth-hero {
  grid-template-columns: minmax(0, 1.02fr) minmax(340px, 0.98fr);
  align-items: stretch;
}

.auth-compact {
  display: flex;
  justify-content: center;
  padding: 28px;
}

.auth-copy {
  align-content: start;
}

.auth-panel {
  display: flex;
}

.auth-form-card {
  width: 100%;
}

.auth-form-card-compact {
  width: min(100%, 520px);
}

.auth-card-head {
  display: grid;
  gap: 10px;
  margin-bottom: 20px;
}

.auth-card-head h1 {
  margin: 0;
  color: #edf4ff;
  font-size: clamp(1.55rem, 2vw, 2rem);
  line-height: 1.1;
}

.auth-card-head p {
  margin: 0;
}

.auth-form-grid {
  display: grid;
  gap: 14px;
}

.auth-form-grid label {
  display: grid;
  gap: 8px;
}

.auth-form-grid span {
  color: #d9e7ff;
  font-size: 0.92rem;
  font-weight: 600;
}

.auth-form-grid input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(126, 179, 255, 0.18);
  background: rgba(7, 18, 34, 0.46);
  color: var(--text);
  font: inherit;
}

.auth-form-grid select {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(126, 179, 255, 0.18);
  background: rgba(7, 18, 34, 0.46);
  color: var(--text);
  font: inherit;
}

.auth-form-grid input:focus {
  outline: none;
  border-color: rgba(126, 179, 255, 0.44);
  box-shadow: 0 0 0 3px rgba(126, 179, 255, 0.12);
}

.auth-form-grid select:focus {
  outline: none;
  border-color: rgba(126, 179, 255, 0.44);
  box-shadow: 0 0 0 3px rgba(126, 179, 255, 0.12);
}

.auth-links-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
}

.auth-links-row a,
.form-hint a {
  color: #b9d2ff;
}

.form-hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.6;
}

.legal-mini-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  font-size: 0.88rem;
}

.legal-mini-links a,
.footer-links a {
  color: #b9d2ff;
  text-decoration: none;
}

.legal-mini-links a:hover,
.footer-links a:hover,
.footer-links a.active {
  color: #edf4ff;
}

.legal-mini-links span,
.footer-divider {
  color: rgba(185, 210, 255, 0.46);
}

.notice {
  display: grid;
  gap: 6px;
  margin-bottom: 16px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(126, 179, 255, 0.2);
  background: rgba(17, 34, 57, 0.84);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.notice strong {
  color: #eef5ff;
}

.notice p {
  margin: 0;
  color: var(--muted);
}

.notice-success {
  border-color: rgba(69, 227, 156, 0.28);
  background: linear-gradient(180deg, rgba(16, 52, 40, 0.82), rgba(11, 31, 28, 0.9));
}

.notice-warning {
  border-color: rgba(255, 210, 111, 0.28);
  background: linear-gradient(180deg, rgba(63, 48, 16, 0.82), rgba(36, 27, 10, 0.9));
}

.notice-error {
  border-color: rgba(255, 122, 122, 0.28);
  background: linear-gradient(180deg, rgba(66, 24, 24, 0.84), rgba(31, 12, 12, 0.9));
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.dashboard-grid-secondary {
  grid-template-columns: 1fr 1fr;
}

.dashboard-card {
  display: grid;
  gap: 18px;
  padding: 24px;
}

.download-entry-card,
.list-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(14, 30, 53, 0.78);
}

.download-entry-card h3,
.list-card h3 {
  margin: 0;
}

.download-entry-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.download-entry-card p,
.list-card p {
  margin: 0;
}

.download-entry-empty {
  align-content: center;
  min-height: 160px;
}

.list-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.kv-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.kv-grid div {
  display: grid;
  gap: 6px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(126, 179, 255, 0.12);
  background: rgba(7, 18, 34, 0.38);
}

.kv-grid span {
  color: var(--muted);
  font-size: 0.85rem;
}

.kv-grid strong {
  color: var(--text);
  font-size: 0.98rem;
  overflow-wrap: anywhere;
}

.activation-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.activation-chip {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(69, 227, 156, 0.18);
  background: rgba(69, 227, 156, 0.1);
  color: #cff8e2;
  font-size: 0.9rem;
}

.activation-chip-muted {
  border-color: rgba(126, 179, 255, 0.16);
  background: rgba(126, 179, 255, 0.08);
  color: #d6e5ff;
}

.license-card {
  gap: 16px;
}

.license-key-block,
.license-action-card {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(126, 179, 255, 0.14);
  background: rgba(8, 19, 35, 0.42);
}

.license-key-block span,
.license-action-head h4 {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.license-key-block strong {
  color: var(--text);
  font-size: 1rem;
  overflow-wrap: anywhere;
}

.license-key-block p,
.license-action-card p,
.license-support-note {
  margin: 0;
  color: var(--muted);
}

.license-action-head {
  display: grid;
  gap: 8px;
}

.license-inline-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.compact-card {
  gap: 10px;
}

.account-status-grid article {
  min-height: 100%;
}

.profile-card {
  align-content: start;
}

.settings-stack {
  display: grid;
  gap: 18px;
}

.admin-shell {
  display: grid;
  gap: 22px;
  padding: 26px;
  background: linear-gradient(180deg, rgba(18, 34, 57, 0.94), rgba(10, 22, 40, 0.94));
}

.admin-shell-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 20px;
  align-items: start;
}

.admin-shell-copy h1 {
  margin: 10px 0 0;
  font-size: clamp(1.8rem, 3vw, 2.45rem);
  line-height: 1.08;
}

.admin-shell-copy p {
  margin: 16px 0 0;
  max-width: 74ch;
}

.admin-role-card {
  display: grid;
  gap: 10px;
  padding: 18px 18px 20px;
  border-radius: 20px;
  border: 1px solid rgba(126, 179, 255, 0.14);
  background: rgba(9, 20, 37, 0.54);
}

.admin-role-card strong {
  font-size: 1.2rem;
  color: #edf4ff;
}

.admin-role-card p {
  margin: 0;
  color: var(--muted);
}

.admin-overview-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.admin-overview-stats article {
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(126, 179, 255, 0.12);
  background: rgba(8, 19, 35, 0.4);
}

.admin-overview-stats span {
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.admin-overview-stats strong {
  color: #edf4ff;
  font-size: 1.32rem;
  font-weight: 700;
}

.admin-toolbar {
  padding-top: 4px;
}

.admin-search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: end;
}

.admin-search-field {
  display: grid;
  gap: 8px;
}

.admin-search-field span {
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.admin-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.admin-search-field input,
.admin-inline-field input {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(126, 179, 255, 0.18);
  background: rgba(7, 18, 34, 0.46);
  color: var(--text);
  font: inherit;
}

.admin-search-field input::placeholder,
.admin-inline-field input::placeholder {
  color: rgba(189, 209, 241, 0.52);
}

.admin-search-field input:focus,
.admin-inline-field input:focus {
  outline: none;
  border-color: rgba(126, 179, 255, 0.44);
  box-shadow: 0 0 0 3px rgba(126, 179, 255, 0.12);
}

.admin-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(320px, 0.95fr);
  gap: 18px;
  align-items: start;
}

.admin-users-card,
.admin-log-card {
  gap: 18px;
}

.admin-users-card .section-head h2,
.admin-log-card .section-head h2 {
  font-size: clamp(1.3rem, 1.9vw, 1.65rem);
}

.admin-log-card {
  position: sticky;
  top: 112px;
}

.admin-user-list {
  display: grid;
  gap: 14px;
}

.admin-user-card {
  border: 1px solid rgba(126, 179, 255, 0.12);
  border-radius: 22px;
  background: rgba(14, 30, 53, 0.72);
  overflow: hidden;
}

.admin-user-card summary {
  list-style: none;
}

.admin-user-card summary::-webkit-details-marker {
  display: none;
}

.admin-user-card-focused {
  border-color: rgba(69, 227, 156, 0.34);
  box-shadow: 0 18px 40px rgba(69, 227, 156, 0.08);
}

.admin-user-summary {
  display: grid;
  gap: 12px;
  padding: 16px 18px;
  cursor: pointer;
  position: relative;
}

.admin-user-summary::after {
  content: "▾";
  position: absolute;
  top: 20px;
  right: 20px;
  color: #d6e5ff;
  font-size: 0.95rem;
  transition: transform 0.18s ease;
}

.admin-user-card[open] .admin-user-summary::after {
  transform: rotate(180deg);
}

.admin-user-summary-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-right: 32px;
}

.admin-user-identity {
  display: grid;
  gap: 6px;
}

.admin-user-identity h3 {
  margin: 0;
  font-size: 1.06rem;
  font-weight: 700;
  line-height: 1.2;
}

.admin-user-identity p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.admin-user-pills {
  justify-content: flex-end;
  margin-top: 0;
}

.admin-user-summary-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-user-summary-stats span {
  display: inline-grid;
  gap: 3px;
  min-width: 88px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(126, 179, 255, 0.1);
  background: rgba(8, 19, 35, 0.28);
}

.admin-user-summary-stats small {
  color: var(--muted);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.admin-user-summary-stats strong {
  color: #edf4ff;
  font-size: 0.94rem;
  line-height: 1.15;
}

.admin-user-body {
  display: grid;
  gap: 14px;
  padding: 0 18px 18px;
}

.admin-panel-surface {
  display: grid;
  gap: 14px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(126, 179, 255, 0.12);
  background: rgba(9, 20, 37, 0.48);
}

.admin-panel-head {
  display: grid;
  gap: 6px;
}

.admin-panel-head h4 {
  margin: 0;
  color: #edf4ff;
  font-size: 1rem;
  font-weight: 700;
}

.admin-metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.admin-metrics-grid div {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(126, 179, 255, 0.1);
  background: rgba(6, 16, 30, 0.32);
}

.admin-metrics-grid span {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.admin-metrics-grid strong {
  color: #edf4ff;
  font-size: 0.96rem;
  line-height: 1.35;
}

.admin-state-note {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(212, 85, 85, 0.16);
  background: rgba(79, 24, 24, 0.18);
}

.admin-state-note p {
  margin: 0;
}

.admin-action-list {
  display: grid;
  gap: 10px;
}

.admin-inline-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(126, 179, 255, 0.1);
  background: rgba(6, 16, 30, 0.26);
}

.admin-inline-form .button {
  min-height: 42px;
  padding: 0 16px;
}

.admin-inline-field {
  display: grid;
  gap: 6px;
  min-width: 220px;
  flex: 1 1 220px;
}

.admin-inline-field span {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.admin-license-card {
  gap: 14px;
  background: rgba(7, 18, 34, 0.54);
}

.settings-accordion {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(20, 39, 69, 0.9), rgba(12, 28, 50, 0.94));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.settings-accordion summary {
  list-style: none;
}

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

.settings-accordion-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  cursor: pointer;
}

.settings-accordion-summary::after {
  content: "▾";
  flex: 0 0 auto;
  color: #d6e5ff;
  font-size: 1rem;
  transition: transform 0.18s ease;
}

.settings-accordion[open] .settings-accordion-summary::after {
  transform: rotate(180deg);
}

.settings-accordion-summary h2 {
  margin: 0;
  font-size: clamp(1.16rem, 1.6vw, 1.45rem);
  color: #edf4ff;
}

.settings-accordion-summary p {
  margin: 8px 0 0;
  max-width: 72ch;
}

.settings-accordion-body {
  display: grid;
  gap: 18px;
  padding: 0 24px 24px;
  border-top: 1px solid rgba(126, 179, 255, 0.12);
}

.profile-hero .hero-actions {
  margin-top: 18px;
}

.profile-summary-card {
  gap: 18px;
}

.profile-summary-avatar {
  display: flex;
  justify-content: center;
}

.profile-summary-copy-simple {
  display: grid;
  gap: 6px;
  width: 100%;
  justify-items: center;
}

.profile-summary-username {
  margin: 0;
  color: #edf4ff;
  font-size: clamp(1.15rem, 1.55vw, 1.45rem);
  font-weight: 600;
  line-height: 1.18;
  text-align: center;
  word-break: break-word;
}

.profile-summary-email {
  margin: 0;
  color: #a9b9d7;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.5;
  text-align: center;
  word-break: break-word;
}

.profile-avatar-shell {
  display: inline-flex;
}

.profile-avatar-large {
  width: 108px;
  height: 108px;
  border-radius: 28px;
  border: 1px solid rgba(126, 179, 255, 0.18);
  object-fit: cover;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.24);
}

.profile-avatar-fallback-large {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #edf4ff;
  font-size: 2.2rem;
  font-weight: 700;
  background: linear-gradient(135deg, rgba(76, 132, 255, 0.4), rgba(69, 227, 156, 0.28));
}

.profile-avatar-card {
  gap: 22px;
}

.downloads-only-card .section-head h2,
.downloads-only-card .section-head p {
  max-width: 64ch;
}

.profile-avatar-editor {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.profile-avatar-current {
  display: grid;
  gap: 14px;
  justify-items: center;
  text-align: center;
}

.profile-avatar-form,
.profile-avatar-remove-form {
  display: grid;
  gap: 18px;
}

.profile-avatar-remove-form {
  width: 100%;
  justify-items: center;
}

.profile-avatar-remove-form .button {
  min-width: 220px;
}

.avatar-file-picker {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(126, 179, 255, 0.14);
  background: rgba(9, 20, 37, 0.44);
}

.avatar-file-picker input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.avatar-file-trigger {
  justify-self: start;
}

.avatar-file-name {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.5;
  word-break: break-word;
}

.cropper-shell {
  display: grid;
  gap: 16px;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(126, 179, 255, 0.14);
  background: rgba(9, 20, 37, 0.44);
}

.cropper-stage-wrap {
  display: grid;
  justify-content: center;
  justify-items: center;
  gap: 10px;
}

.avatar-crop-canvas {
  width: min(100%, 320px);
  height: auto;
  border-radius: 24px;
  border: 1px solid rgba(126, 179, 255, 0.18);
  background: #091425;
  touch-action: none;
  cursor: grab;
}

.avatar-crop-canvas:active {
  cursor: grabbing;
}

.cropper-controls {
  display: grid;
  gap: 14px;
}

.cropper-range {
  display: grid;
  gap: 8px;
}

.cropper-range span {
  color: #d9e7ff;
  font-size: 0.92rem;
  font-weight: 600;
}

.cropper-range input[type="range"] {
  width: 100%;
}

.cropper-buttons,
.profile-avatar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.profile-avatar-actions {
  justify-content: flex-start;
}

@media (max-width: 1120px) {
  .sale-hero-grid,
  .sale-account-hero,
  .auth-hero,
  .dashboard-grid,
  .dashboard-grid-secondary,
  .profile-avatar-editor {
    grid-template-columns: 1fr;
  }

  .admin-shell-head,
  .admin-page-grid {
    grid-template-columns: 1fr;
  }

  .admin-overview-stats,
  .admin-user-summary-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-log-card {
    position: static;
  }
}

  @media (max-width: 920px) {
    .topbar-wide {
      grid-template-columns: 1fr;
    }

  .brand,
  .topnav {
    margin-right: 0;
    margin-left: 0;
  }

  .topbar-actions {
    justify-content: stretch;
  }

  .topbar-donate {
    justify-content: flex-start;
  }

  .header-paypal-donate-shell {
    transform: scale(0.82);
    transform-origin: left center;
  }

    .topbar-actions .button {
      flex: 1 1 160px;
    }

    .auth-compact {
      padding: 18px;
    }

    .auth-form-card-compact {
      width: 100%;
    }

    .account-menu {
      width: 100%;
    }

  .account-menu-trigger {
    width: 100%;
    justify-content: flex-start;
  }

    .account-menu-dropdown {
      left: 0;
      right: auto;
      width: 100%;
    }

    .admin-search-form {
      grid-template-columns: 1fr;
    }

    .admin-toolbar-actions {
      justify-content: flex-start;
    }

    .admin-user-summary-main {
      flex-direction: column;
      align-items: stretch;
    }

    .admin-user-pills {
      justify-content: flex-start;
    }
}

@media (max-width: 760px) {
  .dashboard-card {
    padding: 18px;
  }

  .header-paypal-donate-shell {
    transform: scale(0.78);
  }

  .kv-grid {
    grid-template-columns: 1fr;
  }

  .list-card-head,
  .download-entry-head,
  .purchase-actions,
  .auth-links-row,
  .cropper-buttons,
  .profile-avatar-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .purchase-actions .button,
  .purchase-form-inline .button,
  .topbar-actions .button,
  .cropper-buttons .button,
  .profile-avatar-actions .button,
  .profile-avatar-remove-form .button {
    width: 100%;
    min-width: 0;
  }

  .admin-shell {
    padding: 20px;
  }

  .admin-overview-stats,
  .admin-user-summary-stats,
  .admin-metrics-grid {
    grid-template-columns: 1fr;
  }

  .admin-user-summary,
  .admin-user-body {
    padding-left: 16px;
    padding-right: 16px;
  }

  .admin-panel-surface {
    padding: 14px;
  }
}
