:root {
  color-scheme: dark;
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  --bg: #0b1024;
  --panel: #131c38;
  --subtle: #192442;
  --line: #2c395b;
  --text: #f3f6ff;
  --muted: #b1bfd9;
  --accent: #84eaff;
  --warm: #ffd3ae;
  --radius: 20px;
  --mobile-bar: 76px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; color: var(--text); background: radial-gradient(ellipse at 75% 0, #192251, transparent 480px), var(--bg); }
a { color: var(--accent); }
button, input { font: inherit; }
button { color: inherit; cursor: pointer; }
button:disabled { cursor: default; opacity: .64; }
button, a, input { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.skip { position: fixed; top: 10px; left: 10px; z-index: 5; transform: translateY(-200%); background: var(--bg); padding: 10px; }
.skip:focus { transform: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.top, .shell { width: min(calc(100% - 56px), 1112px); margin-inline: auto; }
.top { min-height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 11px; padding: 0; background: transparent; border: 0; font-size: 1.38rem; font-weight: 750; }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 13px; background: #173463; color: var(--accent); font-size: .67rem; letter-spacing: -.08em; }
.mode { color: var(--muted); font-size: .85rem; text-align: right; }
.shell { display: grid; grid-template-columns: 184px minmax(0, 1fr); gap: 32px; padding-block: 30px 48px; }
.navigation { display: flex; align-self: start; flex-direction: column; gap: 6px; }
.navigation :is(button,a) { display: flex; align-items: center; gap: 12px; padding: 11px 14px; min-height: 48px; background: none; border: 1px solid transparent; border-radius: 12px; text-align: left; color: var(--muted); }
.navigation :is(button,a) > span:first-child { color: var(--accent); width: 20px; text-align: center; font-size: 1.25rem; }
.navigation :is(button,a)[aria-current="page"] { border-color: #305075; background: #1a3053; color: var(--text); }
.navigation :is(button,a):hover { background: #203355; color: var(--text); }
#main { min-width: 0; }
#main:focus { outline: none; }
.hero { position: relative; overflow: hidden; isolation: isolate; display: flex; align-items: center; min-height: 316px; border-radius: 26px; border: 1px solid #34466d; background: #131d3d; }
.hero-logo { position: absolute; z-index: -2; inset: 0 0 0 auto; width: 67%; height: 100%; object-fit: cover; object-position: 60% 45%; }
.hero::after { position: absolute; z-index: -1; inset: 0; content: ""; background: linear-gradient(90deg, #131d3d 26%, #131d3df2 38%, #131d3d00 73%); }
.hero-content { padding: clamp(24px, 4vw, 46px); max-width: 58%; animation: enter .35s ease-out both; }
@keyframes enter { from { opacity: .2; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); letter-spacing: -.05em; line-height: 1.06; text-wrap: balance; }
h2 { font-size: 1.3rem; letter-spacing: -.02em; }
h3 { font-size: 1.04rem; }
p { color: var(--muted); line-height: 1.55; }
.hero p, .intro p { margin-block: 12px 20px; }
.intro { margin: 5px 0 23px; }
.primary, .secondary { display: inline-flex; align-items: center; justify-content: center; gap: 12px; border: 1px solid transparent; border-radius: 12px; padding: 11px 16px; min-height: 46px; text-decoration: none; font-weight: 650; }
.primary { color: #081c31; background: var(--accent); }
.secondary { background: var(--subtle); border-color: var(--line); color: var(--text); }
.primary:not(:disabled):hover { background: #b4f4ff; transform: translateY(-1px); }
.secondary:not(:disabled):hover { border-color: var(--accent); }
.primary:not(:disabled):active, .secondary:not(:disabled):active { transform: translateY(1px); }
.primary, .secondary { transition: background .18s, border-color .18s, transform .18s; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 24px 0 12px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(16px, 3vw, 24px); }
.panel h2, .panel h3 { margin-bottom: 8px; }
.panel + .panel { margin-top: 12px; }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tiles .panel { margin: 0; }
.state { font-size: .85rem; color: var(--warm); }
.state.ready { color: var(--accent); }
form { display: grid; gap: 14px; max-width: 500px; }
.field { display: grid; gap: 6px; color: var(--text); }
input { min-height: 46px; width: 100%; border: 1px solid var(--line); background: #080f24; border-radius: 10px; padding: 11px 12px; color: var(--text); }
input::placeholder { color: #9dacc8; }
.actions, .tabs { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tabs { margin-bottom: 15px; }
.tabs button[aria-pressed="true"] { border-color: var(--accent); }
.empty { display: flex; gap: 15px; align-items: center; }
.empty-icon { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 13px; background: #233158; color: var(--accent); font-size: 1.25rem; }
.error { color: #ffbfb9; }
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
td, th { padding: 10px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
th { color: var(--muted); font-weight: 650; }
@media (max-width: 760px) {
  .top, .shell { width: min(calc(100% - 32px), 620px); }
  .top { min-height: 64px; }
  .shell { display: block; padding-top: 16px; padding-bottom: calc(var(--mobile-bar) + 28px + env(safe-area-inset-bottom)); }
  .navigation { position: fixed; inset: auto 0 0; z-index: 3; flex-direction: row; gap: 0; justify-content: safe center; overflow-x: auto; padding: 5px 4px calc(5px + env(safe-area-inset-bottom)); background: #0d152b; border-top: 1px solid var(--line); }
  .navigation :is(button,a) { flex: 0 0 auto; min-width: 52px; max-width: 81px; min-height: 59px; justify-content: center; flex-direction: column; gap: 4px; padding: 5px 3px; text-align: center; font-size: .69rem; line-height: 1.15; }
  .hero { display: grid; min-height: initial; }
  .hero-logo { position: static; order: -1; width: 100%; height: auto; max-height: 240px; object-fit: cover; object-position: center; }
  .hero::after { display: none; }
  .hero-content { max-width: none; padding: 20px; }
}
@media (max-width: 400px) {
  .tiles { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.navigation .shop-link { text-decoration: none; }
