:root {
  color-scheme: light;
  --bg: #f7f8fa;
  --surface: #fff;
  --surface-strong: #edf2f8;
  --text: #0b1b32;
  --muted: #4a5a70;
  --line: #d7e0eb;
  --accent: #f97316;
  --accent-strong: #ea580c;
  --accent-text: #9b380c;
  --highlight: #fff0e6;
  --control: #fff;
  --quiet-fill: #f7faffbb;
  --quiet-hover: #eaf1fcf0;
  --quiet-edge: #c9d7e8;
  --success-bg: #dcf4e9;
  --success: #176141;
  --warning-bg: #fff0d8;
  --warning: #794707;
  --error-bg: #fff0ef;
  --error: #9c2730;
  --error-edge: #f1b9be;
  --shadow: 0 16px 38px #13294b0d;
  --hero-shadow: 0 24px 60px #0b1b322e;
  --r: 18px;
  --font-ar: "Noto Sans Arabic", Tahoma, Arial, sans-serif;
  --font-en: "Plus Jakarta Sans", system-ui, sans-serif;
  font-family: var(--font-ar);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0a0a0c;
  --surface: #121316;
  --surface-strong: #18191d;
  --text: #f4f5f7;
  --muted: #9ca3af;
  --line: rgba(255, 255, 255, 0.08);
  --accent-text: #ffb079;
  --highlight: #f9731624;
  --control: #101114;
  --quiet-fill: rgba(255, 255, 255, 0.06);
  --quiet-hover: rgba(255, 255, 255, 0.11);
  --quiet-edge: rgba(255, 255, 255, 0.12);
  --success-bg: #1a3029;
  --success: #9aebc3;
  --warning-bg: #372b21;
  --warning: #ffcc88;
  --error-bg: #39252a;
  --error: #ffb8bf;
  --error-edge: #ffaaae3d;
  --shadow: 0 16px 38px #0004;
  --hero-shadow: 0 24px 60px #0006;
}

:root[lang="en"] { font-family: var(--font-en); }

:root:not([data-theme="dark"]) .navy {
  --text: #f4f6f9;
  --muted: #bfccde;
  --line: #ffffff26;
  --accent-text: #ffae77;
  --highlight: #ed7c2c26;
  --quiet-fill: #ffffff0d;
  --quiet-hover: #ffffff1d;
  --quiet-edge: #ffffff33;
}

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--text);
  background: var(--bg);
  font-size: .97rem;
  line-height: 1.7;
}

[lang="ar"] body { line-height: 1.86; }
img { max-width: 100%; display: block; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { line-height: 1.32; }
[lang="ar"] :is(h1, h2, h3) { line-height: 1.48; }
h1 { font-size: clamp(2.25rem, 4.6vw, 4.25rem); letter-spacing: -.045em; font-weight: 800; }
[lang="ar"] h1 { letter-spacing: 0; }
h2 { font-size: clamp(1.35rem, 2.6vw, 2rem); font-weight: 800; }
h3 { font-size: 1.08rem; font-weight: 750; }
p { color: var(--muted); }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .64; }
:focus-visible { outline: 2px solid var(--accent-strong); outline-offset: 4px; }
[hidden] { display: none !important; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: fixed;
  inset-block-start: .65rem;
  inset-inline-start: .75rem;
  z-index: 5;
  transform: translateY(-200%);
  padding: .65rem 1rem;
  border-radius: 10px;
  color: #231006;
  background: #ff9b56;
}

.skip:focus { transform: none; }
.shell { width: min(100% - 3rem, 1200px); margin-inline: auto; }

.header {
  color: var(--text);
  border-block-end: 1px solid var(--line);
  background: #0b1b32;
}

[data-theme="dark"] :is(.header, .footer) {
  background: linear-gradient(135deg, #ffffff05, transparent 66%), var(--surface);
}
.nav { display: flex; align-items: center; min-height: 5.15rem; gap: 1rem 1.65rem; }
.brand { display: flex; align-items: center; gap: .7rem; flex-shrink: 0; line-height: 1.4; }
.brand img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #ffffff09;
  filter: drop-shadow(0 4px 10px #0006);
}

.brand strong, #footer-name { font-family: var(--font-en); font-size: .94rem; font-weight: 800; }
.brand strong { display: block; }
.brand small { color: var(--muted); display: block; font-size: .73rem; margin-block-start: .17rem; }
.nav nav { display: flex; align-items: center; justify-content: center; flex: 1; gap: .3rem; flex-wrap: wrap; }
.nav nav .button { min-height: 40px; padding: .45rem .64rem; font-size: .86rem; }
.nav-actions { display: flex; gap: .37rem; align-items: center; }
.nav-actions .nav-icon { padding: 0; width: 42px; min-height: 42px; flex: none; }
.nav-actions .language { font: 800 .78rem var(--font-en); }
.nav-actions .account-link { padding-inline: .8rem; font-size: .85rem; white-space: nowrap; }
.theme-glyph { font: 1.45rem/1 system-ui, sans-serif; }
.theme-glyph::before { content: "☾"; }
[data-theme="dark"] .theme-glyph::before { content: "☀"; }

main.shell { flex: 1; padding-block: clamp(1.15rem, 3vw, 2.55rem) 4rem; }

.button, .field input::file-selector-button {
  --button-bg: #fa872ded;
  --button-edge: #fba66e;
  --button-color: #281304;
  --button-hover: #ffa45bf5;
  border: 1px solid var(--button-edge);
  background: linear-gradient(168deg, #ffffff4a, #ffffff00 56%), var(--button-bg);
  color: var(--button-color);
  border-radius: 12px;
  font-weight: 800;
  line-height: 1.4;
  text-align: center;
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  backdrop-filter: blur(12px) saturate(140%);
  box-shadow: inset 0 1px 0 #ffffff65, 0 3px 9px #08122014;
  transition: background-color .18s ease, box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}

.button { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; padding: .67rem 1rem; min-height: 44px; }
.button.quiet, .field input::file-selector-button {
  --button-bg: var(--quiet-fill);
  --button-edge: var(--quiet-edge);
  --button-color: var(--text);
  --button-hover: var(--quiet-hover);
  background-image: linear-gradient(168deg, #ffffff20, #ffffff00 62%);
  box-shadow: inset 0 1px 0 #ffffff28, 0 3px 9px #0812200c;
}

.button.small { min-height: 37px; padding: .43rem .72rem; font-size: .84rem; }
.button.danger {
  --button-bg: color-mix(in srgb, var(--error-bg) 91%, transparent);
  --button-edge: var(--error-edge);
  --button-color: var(--error);
  --button-hover: var(--error-bg);
}

:is(.nav nav, .nav-actions, .tabs) .button[aria-current]:not([aria-current="false"]) {
  --button-bg: var(--highlight);
  --button-edge: var(--accent);
  --button-color: var(--accent-text);
  --button-hover: var(--highlight);
}

@media (hover: hover) {
  .button:not(:disabled):hover, .field input:hover::file-selector-button {
    background-color: var(--button-hover);
    box-shadow: inset 0 1px 0 #ffffff6e, 0 7px 18px #08122020;
    transform: translateY(-2px);
  }
}

[data-theme="dark"] .button:not(.quiet):not(.danger):not([aria-current="page"]) {
  --button-bg: #f97316e8;
  --button-edge: #fba66e;
  --button-color: #201005;
  --button-hover: #fb8a36f5;
  background-image: linear-gradient(168deg, #ffffff38, #ffffff00 62%);
  box-shadow: inset 0 1px 0 #ffffff55, 0 4px 14px #f9731624;
}

@media (hover: hover) {
  [data-theme="dark"] .button:not(.quiet):not(.danger):not(:disabled):not([aria-current="page"]):hover {
    box-shadow: inset 0 1px 0 #ffffff75, 0 7px 20px #f9731652;
  }

  [data-theme="dark"] .button.quiet:not(:disabled):hover,
  [data-theme="dark"] .field input:hover::file-selector-button {
    box-shadow: inset 0 1px 0 #ffffff28, 0 6px 16px #0005;
  }
}

.button:not(:disabled):active { transform: translateY(0); }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: .56rem; }

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.13fr .87fr;
  align-items: center;
  gap: clamp(1.1rem, 3.5vw, 3rem);
  min-height: 480px;
  padding: clamp(1.35rem, 5.4vw, 4.3rem);
  color: var(--text);
  border: 1px solid #304767;
  border-radius: 28px;
  background: radial-gradient(ellipse at 28% 75%, #263d65 0, transparent 63%),
              linear-gradient(114deg, #13294b, #0b1b32 64%, #0a182c);
  box-shadow: var(--hero-shadow);
}

[dir="ltr"] .hero {
  background: radial-gradient(ellipse at 76% 75%, #263d65 0, transparent 64%),
              linear-gradient(246deg, #13294b, #0b1b32 64%, #0a182c);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .48;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, #bacdea16 0 1px, transparent 1px 32px),
              repeating-linear-gradient(90deg, #bacdea16 0 1px, transparent 1px 32px);
  mask-image: radial-gradient(ellipse at 53% 66%, #000 0, transparent 75%);
}

[data-theme="dark"] .hero {
  border-color: var(--line);
  background: radial-gradient(ellipse at 50% 100%, #ffffff08, transparent 72%),
              linear-gradient(135deg, var(--surface-strong), var(--surface) 72%);
}

[data-theme="dark"] .hero::before {
  background: repeating-linear-gradient(0deg, #ffffff12 0 1px, transparent 1px 32px),
              repeating-linear-gradient(90deg, #ffffff12 0 1px, transparent 1px 32px);
}

.hero h1 { text-wrap: balance; }
.hero p { margin-block: .95rem 1.55rem; max-width: 53ch; }
.eyebrow { display: block; color: var(--accent-text); font-weight: 800; font-size: .84rem; margin-block-end: .48rem; }

.hero .eyebrow::before {
  content: "";
  display: inline-block;
  width: 1.25rem;
  height: 2px;
  margin-inline-end: .48rem;
  vertical-align: middle;
  background: var(--accent);
}

.hero-tags { display: flex; gap: .45rem; flex-wrap: wrap; margin-block-start: 1.22rem; }
.hero-tags span {
  border: 1px solid #ffffff2b;
  background: #08152c75;
  border-radius: 8px;
  color: #d4deed;
  padding: .18rem .55rem;
  font: 650 .74rem/1.7 var(--font-en);
}

.hero-art {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 338px;
  padding: .75rem .25rem 2rem;
}

.hero-art::before {
  content: "";
  position: absolute;
  z-index: -1;
  aspect-ratio: 1;
  width: min(100%, 21rem);
  border-radius: 50%;
  border: 1px solid #f78d5030;
  box-shadow: 0 0 0 16px #d0dcff0a, 0 0 0 42px #d0dcff06;
  background: radial-gradient(circle, #f9731624, transparent 68%);
}

.hero-art img {
  width: min(62%, 13.2rem);
  max-height: 23rem;
  object-fit: contain;
  border-radius: 18px;
  outline: 1px solid #90a4bc;
  box-shadow: 0 17px 42px #040b18a0;
}

.hero-art figcaption {
  position: absolute;
  inset-block-end: .15rem;
  inset-inline-end: 0;
  max-width: 14.5rem;
  padding: .58rem .8rem;
  border-radius: 11px;
  border: 1px solid #ffffff3a;
  background: #112641e0;
  -webkit-backdrop-filter: blur(11px);
  backdrop-filter: blur(11px);
  box-shadow: 0 12px 32px #08122256;
}

.hero-art figcaption strong { font-family: var(--font-en); }
.hero-art figcaption > span { display: block; color: #cbd7e7; font-size: .77rem; }

[data-theme="dark"] .hero-tags span {
  background: var(--quiet-fill);
  border-color: var(--line);
  color: var(--text);
}

[data-theme="dark"] .hero-art img {
  outline-color: #ffffff2b;
  box-shadow: 0 17px 42px #0008;
}

[data-theme="dark"] .hero-art figcaption {
  border-color: var(--line);
  background: #18191ded;
  box-shadow: var(--shadow);
}

[data-theme="dark"] .hero-art figcaption > span { color: var(--muted); }

.section { margin-block-start: clamp(1.45rem, 3.8vw, 2.95rem); }
.section > h2, .section .section-title { margin-block-end: .88rem; }
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card, .panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  box-shadow: var(--shadow);
}

[data-theme="dark"] :is(.card, .panel) {
  background: linear-gradient(140deg, #ffffff04, transparent 58%), var(--surface);
}

.card { padding: 1.25rem; }
.panel { padding: clamp(.95rem, 3vw, 1.65rem); }
.card h3 { margin-block: .34rem .48rem; }
.card p + .actions, .card p + a { margin-block-start: .9rem; }
.link { color: var(--accent-text); font-weight: 750; text-decoration: underline; text-underline-offset: .22em; }
.page-intro { margin-block: .25rem 1.4rem; }
.page-intro h1 { font-size: clamp(1.8rem, 4vw, 3.05rem); }
.page-intro p, .panel h2 + p { margin-block-start: .46rem; max-width: 70ch; }
.price { font-weight: 800; font-size: 1.77rem; margin-block: .55rem .36rem; }
.price bdi { color: var(--accent-text); }
.features { padding-inline-start: 1.15rem; color: var(--muted); margin-block: .6rem 1.1rem; }
.guide-list { display: grid; gap: .95rem; padding-inline-start: 1.25rem; }
.guide-list li::marker { color: var(--accent-text); font-weight: 800; }
.guide-list h3 { margin-block-end: .22rem; }

form { display: grid; gap: .85rem; }
.field { display: grid; gap: .27rem; min-width: 0; color: var(--text); font-size: .9rem; font-weight: 650; }
.field .hint, .hint { color: var(--muted); font-size: .86rem; font-weight: 400; }
.field input, .field select, .field textarea {
  min-width: 0;
  width: 100%;
  min-height: 44px;
  color: var(--text);
  padding: .53rem .68rem;
  border: 1px solid var(--quiet-edge);
  border-radius: 10px;
  background: var(--control);
  font-weight: 500;
}

.field textarea { min-height: 6.2rem; resize: vertical; }
.field input[type="file"] { direction: ltr; }
.field input::file-selector-button {
  margin-inline-end: .55rem;
  padding: .35rem .6rem;
  font-family: inherit;
  cursor: pointer;
}

.check { display: flex; gap: .5rem; align-items: center; }
.check input { width: 1rem; height: 1rem; flex: none; accent-color: var(--accent-strong); }
.auth { max-width: 38rem; margin-inline: auto; }
.auth h2 { margin-block-end: .7rem; }
.rule { border-block-start: 1px solid var(--line); margin-block-start: .95rem; padding-block-start: .95rem; }
.headline-row { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: center; gap: .72rem; margin-block-end: .84rem; }
.tabs { display: flex; gap: .43rem; flex-wrap: wrap; margin-block: 1.25rem .95rem; }
.table-wrap { max-width: 100%; overflow: auto; }
table { width: 100%; min-width: 640px; text-align: start; border-collapse: collapse; font-size: .89rem; }
th, td { text-align: start; padding: .62rem .52rem; vertical-align: middle; border-block-end: 1px solid var(--line); }
th { background: var(--surface-strong); color: var(--text); font-weight: 800; }
td { overflow-wrap: anywhere; }
td .actions { min-width: 165px; }

.status {
  display: inline-flex;
  padding: .15rem .53rem;
  border-radius: 8px;
  background: var(--surface-strong);
  color: var(--text);
  font-size: .81rem;
  white-space: nowrap;
}

.status.good { background: var(--success-bg); color: var(--success); }
.status.warn { background: var(--warning-bg); color: var(--warning); }
.status.bad { background: var(--error-bg); color: var(--error); }
.meta { color: var(--muted); font-size: .83rem; display: block; overflow-wrap: anywhere; }
.preline { white-space: pre-line; overflow-wrap: anywhere; }
code { overflow-wrap: anywhere; font-family: ui-monospace, monospace; color: var(--accent-text); }
kbd { display: inline-block; direction: ltr; }

.empty, .placeholder {
  padding: .9rem;
  color: var(--muted);
  background: var(--surface-strong);
  border: 1px dashed var(--quiet-edge);
  border-radius: 12px;
}

.error { color: var(--error); }
.metric strong { display: block; font-size: 1.84rem; line-height: 1.25; color: var(--accent-text); }
.metric span { color: var(--muted); font-size: .88rem; }
.editor { margin-block-end: .85rem; }
.editor summary { cursor: pointer; font-weight: 800; color: var(--accent-text); }
.editor form { margin-block-start: .9rem; }
.stack { display: grid; gap: .55rem; }
.notice-title { font-weight: 700; }
.admin-view > h2, h2.section-title { margin-block-end: .6rem; }

.footer { border-block-start: 1px solid var(--line); background: #0b1b32; color: var(--muted); }
.footer > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .68rem; padding-block: 1.18rem; }
.footer > div > div { display: flex; flex-wrap: wrap; gap: .85rem; }
.footer a:hover { color: var(--accent-text); }
.footer-credit {
  flex-basis: 100%;
  padding-block-start: .78rem;
  border-block-start: 1px solid var(--line);
  color: var(--muted);
  font: 500 .76rem/1.5 var(--font-en);
  text-align: center;
}


#toast { position: fixed; inset-inline: auto 1.05rem; inset-block-end: 1.05rem; z-index: 2; max-width: calc(100vw - 2.1rem); }
#toast:not(:empty) {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--quiet-edge);
  border-radius: 12px;
  padding: .67rem .9rem;
  box-shadow: 0 9px 33px #0b1b3233;
}

.license-dialog {
  width: min(calc(100% - 1.5rem), 45rem);
  max-height: calc(100dvh - 1.5rem);
  overflow-y: auto;
  color: var(--text);
  box-shadow: var(--hero-shadow);
}

.license-dialog::backdrop { background: #030b19ad; backdrop-filter: blur(4px); }
[data-theme="dark"] .license-dialog::backdrop { background: #000a; }
.license-dialog .headline-row { margin-block-end: .44rem; }
.license-dialog input[readonly] { color: var(--accent-text); }
.app-icon-preview { object-fit: cover; border-radius: 12px; border: 1px solid var(--line); }

.banner-preview {
  display: block;
  width: min(100%, 360px);
  aspect-ratio: 16 / 7;
  object-fit: contain;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-block-end: .8rem;
}

.upload-progress {
  margin-block-start: .22rem;
  padding: .67rem .8rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface-strong);
  display: grid;
  gap: .45rem;
}

.upload-progress-head { display: flex; justify-content: space-between; align-items: center; gap: .6rem; font-size: .83rem; }
.upload-progress-label { color: var(--muted); }
.upload-progress-pct { color: var(--accent-text); font-weight: 800; font-variant-numeric: tabular-nums; direction: ltr; }
.upload-progress-track { height: 9px; border-radius: 999px; background: var(--control); overflow: hidden; border: 1px solid var(--quiet-edge); }
.upload-progress-fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent-strong), #ffb16c);
  transition: width .15s ease-out;
}

.upload-progress-meta { font-size: .78rem; color: var(--muted); direction: ltr; text-align: end; }

.site-intro {
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 1rem;
  border: 0;
  overflow: auto;
  color: #f4f6f9;
  background: radial-gradient(ellipse at 50% 44%, #182d4b, #081220 68%);
  transition: opacity .24s ease;
}

.site-intro[open] { display: grid; place-items: center; }
.site-intro::backdrop { background: transparent; }
.site-intro.intro-exit { opacity: 0; }
.site-intro::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, #b3ceff1b 0 1px, transparent 1px 28px),
              repeating-linear-gradient(90deg, #b3ceff1b 0 1px, transparent 1px 28px);
  mask-image: radial-gradient(ellipse at center, #000, transparent 66%);
}

.intro-core {
  position: relative;
  display: grid;
  width: min(40rem, 100%);
  justify-items: center;
  align-content: center;
  text-align: center;
}

.intro-emblem {
  display: grid;
  place-items: center;
  width: clamp(8.7rem, 21vw, 11.65rem);
  aspect-ratio: 1;
  padding: .48rem;
  border: 1px solid #ffab6d7a;
  border-radius: 50%;
  background: #0d1b3182;
  box-shadow: 0 0 0 8px #ff984921, 0 0 47px #f973163e;
  animation: intro-pulse 1.46s ease-in-out infinite;
}

.intro-emblem img { width: 100%; height: 100%; object-fit: contain; border-radius: 50%; }
.intro-type {
  width: 100%;
  min-height: 3.6rem;
  margin-block-start: 1.15rem;
  color: #e7eef9;
  font-family: ui-monospace, "SFMono-Regular", Consolas, "Noto Sans Arabic", monospace;
  font-size: clamp(.81rem, 2.55vw, 1.03rem);
  line-height: 1.75;
  font-weight: 600;
}

.intro-cursor {
  display: inline-block;
  width: .48em;
  height: 1.04em;
  margin-inline-start: .23em;
  background: #ff9c55;
  vertical-align: -.14em;
  animation: cursor-blink .64s steps(2, start) infinite;
}

.intro-progress {
  appearance: none;
  width: min(15rem, 70%);
  height: 5px;
  direction: ltr;
  border: 0;
  border-radius: 99px;
  overflow: hidden;
  background: #263b55;
  box-shadow: 0 0 12px #f973163d;
}

.intro-progress::-webkit-progress-bar { background: #263b55; }
.intro-progress::-webkit-progress-value { background: linear-gradient(90deg, #e95817, #ffc188); }
.intro-progress::-moz-progress-bar { background: linear-gradient(90deg, #e95817, #ffc188); }

.site-intro.intro-read .intro-cursor { visibility: hidden; animation: none; }

[data-theme="dark"] .site-intro {
  color: var(--text);
  background: radial-gradient(ellipse at 50% 44%, var(--surface-strong), var(--bg) 68%);
}

[data-theme="dark"] .site-intro::before {
  background: repeating-linear-gradient(0deg, #ffffff14 0 1px, transparent 1px 28px),
              repeating-linear-gradient(90deg, #ffffff14 0 1px, transparent 1px 28px);
}

[data-theme="dark"] :is(.intro-emblem, .intro-progress) { background: var(--surface-strong); }
[data-theme="dark"] .intro-progress::-webkit-progress-bar { background: var(--surface-strong); }
[data-theme="dark"] .intro-type { color: var(--text); }

@keyframes intro-pulse {
  50% { box-shadow: 0 0 0 13px #ff984912, 0 0 68px #f9731666; transform: scale(1.035); }
}

@keyframes cursor-blink { to { opacity: 0; } }

@media (max-width: 1030px) {
  .nav { gap: .6rem 1rem; }
  .nav nav .button { padding-inline: .52rem; }
}

@media (max-width: 850px) {
  .nav { flex-wrap: wrap; justify-content: space-between; padding-block: .65rem; }
  .nav nav { flex: 1 0 100%; order: 3; justify-content: flex-start; }
  .hero { min-height: auto; grid-template-columns: 1.04fr .96fr; }
  .hero-art { min-height: 272px; }
  .hero-art figcaption { max-width: 80%; }
}

@media (max-width: 640px) {
  .shell { width: calc(100% - 1.5rem); }
  main.shell { padding-block-end: 2.6rem; }
  .grid, .grid.two, .hero { grid-template-columns: 1fr; }
  .hero { border-radius: 19px; gap: .7rem; }
  .hero-art { min-height: 242px; }
  .hero-art img { width: min(9.5rem, 58%); }
  .hero-art figcaption { inset-inline-end: 0; max-width: min(10.5rem, 54%); }
  .hero-art::before { width: min(76%, 15rem); }
  .nav nav .button { min-height: 36px; font-size: .79rem; padding-inline: .47rem; }
  .grid.metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4rem; }
  .metric { padding: .52rem; }
  .metric span { font-size: .78rem; }
}

@media (max-width: 385px) {
  .brand strong { font-size: .77rem; }
  .brand img { width: 36px; height: 36px; }
  .brand small { font-size: .65rem; }
  .brand { gap: .4rem; }
  .nav-actions .nav-icon { width: 35px; min-height: 38px; }
  .nav-actions .account-link { min-height: 38px; padding-inline: .47rem; font-size: .73rem; }
}

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

.copy-row { display: flex; gap: .5rem; align-items: center; }
.copy-row input { flex: 1; font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: .86rem; color: var(--accent-text); }
.copy-row .button { flex: none; white-space: nowrap; }
@media (max-width: 640px) {
  .copy-row { flex-direction: column; align-items: stretch; }
}
