:root {
  color-scheme: dark;
  --background: #0b1216;
  --surface: #111d23;
  --surface-raised: #17272e;
  --line: #27383f;
  --text: #edf5f2;
  --muted: #9cb0b4;
  --dim: #82969a;
  --accent: #48e8aa;
  --accent-strong: #75f5c3;
  --accent-ink: #09241a;
  --negative: #ff9aab;
  --radius: 18px;
  --wrap: 1240px;
  font: 16px/1.5 "Inter", "Segoe UI", system-ui, sans-serif;
  background: var(--background);
  color: var(--text);
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 290px; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .53; cursor: default; }
a { color: var(--accent-strong); text-underline-offset: .2em; }
a:hover { color: var(--text); }
:focus-visible { outline: 2px solid var(--accent-strong); outline-offset: 3px; }
img, svg { display: block; flex-shrink: 0; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { letter-spacing: -.036em; line-height: 1.14; }
h2 { font-size: clamp(1.35rem, 3vw, 2rem); }
p + p { margin-top: .75rem; }
.muted { color: var(--muted); }
.yes-text { color: var(--accent-strong); }
.no-text { color: var(--negative); }

.layout { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
.wrap { width: min(var(--wrap), 100% - 72px); margin-inline: auto; }
.content { flex: 1; padding-block: 35px 64px; }
.topbar { background: #0e171b; border-bottom: 1px solid #22323a; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 25px; padding-block: max(14px, env(safe-area-inset-top)) 14px; min-height: 74px; }
.brand { display: inline-flex; align-items: center; gap: 11px; background: none; border: 0; color: var(--text); padding: 0; font-size: 1.29rem; font-weight: 720; letter-spacing: -.055em; }
.brand b { color: var(--accent); font-weight: inherit; }
.search { display: flex; align-items: center; gap: 11px; width: min(390px, 40vw); padding-inline: 13px; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); background: #131f25; }
.search input { flex: 1; min-width: 0; height: 41px; border: 0; background: transparent; color: var(--text); font-size: .91rem; }
.search:focus-within { border-color: var(--accent); }
.search input:focus-visible { outline: 0; }
.search input::placeholder { color: var(--dim); }
.account-actions, .button-row { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.account-actions:empty { display: none; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 9px 16px; border: 1px solid transparent; border-radius: 9px; text-decoration: none; font-weight: 690; font-size: .91rem; line-height: 1.25; text-align: center; }
.primary { background: var(--accent); color: var(--accent-ink); }
.primary:hover:not(:disabled) { background: var(--accent-strong); color: var(--accent-ink); }
.secondary { background: var(--surface-raised); color: var(--text); border-color: var(--line); }
.secondary:hover:not(:disabled) { background: #203841; }
.quiet { color: var(--text); background: transparent; }
.quiet:hover { background: var(--surface-raised); }
.text-button { border: 0; background: none; padding: 0; color: var(--accent-strong); font-weight: 660; text-align: left; }
.text-button:hover { text-decoration: underline; }

.footer { border-top: 1px solid var(--line); background: #0e171b; }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding-block: 24px max(24px, env(safe-area-inset-bottom)); }
.footer-brand .brand { font-size: 1.08rem; }
.footer-brand img { width: 28px; height: 28px; }
.footer-brand p, .footer-link { color: var(--muted); margin-top: .35rem; font-size: .88rem; }
.skip { position: fixed; top: 10px; left: 10px; z-index: 99; transform: translateY(-180%); padding: 10px; background: var(--surface); }
.skip:focus { transform: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (max-width: 850px) {
  .wrap { width: calc(100% - 40px); }
  .header-row { gap: 12px; }
}
@media (max-width: 660px) {
  .wrap { width: calc(100% - 30px); }
  .header-row { flex-wrap: wrap; }
  .header-row .search { order: 3; width: 100%; }
  .header-row .button { padding-inline: 9px; min-height: 35px; font-size: .83rem; }
  .header-row .brand { font-size: 1.12rem; gap: 7px; }
  .header-row .brand img { width: 30px; height: 30px; }
  .content { padding-top: 19px; padding-bottom: 45px; }
  .footer-row .account-actions { width: 100%; }
}
@media (max-width: 390px) {
  .header-row .account-actions { margin-left: auto; gap: 2px; }
  .header-row .button { padding-inline: 6px; }
}
