/* TailNav site pages (everything except the live map). Dark header and
   hero to match the map, light content sections for reading. */
:root {
  --ink: #060d1f;
  --ink-2: #0d1730;
  --ink-3: #16223d;
  --ink-line: #22304d;
  --ink-text: #e8edf4;
  --ink-muted: #9aa7b8;
  --paper: #ffffff;
  --mist: #f3f5f8;
  --text: #111a26;
  --muted: #5a6676;
  --line: #e1e5eb;
  --accent: #0b84e0;
  --brand: #1ea7ff;
  --accent-dark: #0b5fc0;
  --navy: #0b2a66;
  --blue: #2563d6;
  --green: #12805c;
  --red: #c2352b;
  --radius: 10px;
  --wrap: 1180px;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Consolas, monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--text);
  font: 16px/1.6 Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; line-height: 1.15; }
h1 { font-size: clamp(34px, 4.6vw, 52px); font-weight: 700; }
h2 { font-size: clamp(26px, 3vw, 34px); font-weight: 700; }
h3 { font-size: 18px; font-weight: 650; letter-spacing: -0.01em; }
p { margin: 0; }
code, pre { font-family: var(--mono); font-size: 13.5px; }
[hidden] { display: none !important; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: #fff; padding: 8px 14px; border-radius: 6px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- header (matches the map's top bar) ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--ink); border-bottom: 1px solid var(--ink-line); }
.header-inner { height: 56px; display: flex; align-items: center; gap: 20px; padding: 0 20px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font: 800 20px/1 Montserrat, Inter, system-ui, sans-serif; letter-spacing: -0.02em; }
.brand-mark { width: 32px; height: 32px; }
.brand-name span { color: var(--brand); }
.site-nav { margin-left: auto; display: flex; gap: 4px; }
.site-nav a { color: var(--ink-muted); text-decoration: none; font-size: 14.5px; font-weight: 500; padding: 7px 12px; border-radius: 7px; }
.site-nav a:hover { color: #fff; background: var(--ink-3); }
.site-nav a[aria-current="page"] { color: #fff; background: var(--ink-3); }
.site-nav .nav-cta { background: var(--accent); color: #fff; font-weight: 600; margin-left: 6px; }
.site-nav .nav-cta:hover, .site-nav .nav-cta[aria-current="page"] { background: #1ea7ff; color: #fff; }
.menu-btn { display: none; margin-left: auto; background: none; border: 0; color: #fff; padding: 6px; cursor: pointer; }
.menu-btn svg { width: 24px; height: 24px; display: block; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 8px; font: 600 15px/1 Inter, system-ui, sans-serif; text-decoration: none; cursor: pointer; border: 1px solid transparent; white-space: nowrap; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #1ea7ff; }
.btn-primary:disabled { opacity: .6; cursor: default; }
.btn-ghost { border-color: var(--ink-line); color: #fff; background: transparent; }
.btn-ghost:hover { background: var(--ink-3); }
.btn-line { border-color: var(--line); color: var(--text); background: var(--paper); }
.btn-line:hover { border-color: #c8ced7; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- dark hero ---------- */
.hero { background: var(--ink); color: var(--ink-text); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; padding-top: 72px; padding-bottom: 72px; }
.hero h1 { color: #fff; }
.hero .lead { margin-top: 18px; font-size: 18px; color: var(--ink-muted); max-width: 520px; }
.hero .btns { margin-top: 30px; }
.hero-shot { border-radius: 12px; border: 1px solid var(--ink-line); box-shadow: 0 30px 80px rgba(0,0,0,.45); overflow: hidden; background: var(--ink-2); }
.hero-shot img { width: 100%; height: auto; }
.hero-compact .wrap { display: block; padding-top: 52px; padding-bottom: 44px; }
.hero-compact .lead { max-width: 680px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 36px; margin-top: 30px; }
.hero-facts div { display: flex; flex-direction: column; }
.hero-facts b { font-size: 26px; color: #fff; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.hero-facts span { font-size: 13.5px; color: var(--ink-muted); }
.note-bar { margin-top: 26px; display: inline-flex; gap: 10px; align-items: center; padding: 10px 14px; border-radius: 8px; background: var(--ink-2); border: 1px solid var(--ink-line); font-size: 14px; color: var(--ink-text); }
.note-bar::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }

/* ---------- light sections ---------- */
.section { padding: 84px 0; }
.section-mist { background: var(--mist); }
.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head p { margin-top: 14px; color: var(--muted); font-size: 17px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.split-wide { grid-template-columns: 5fr 7fr; }
.text p + p { margin-top: 14px; }
.text p { color: #2c3846; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.feature { background: var(--paper); padding: 28px; }
.feature h3 { margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 15px; }
.feature code { font-size: 12.5px; background: var(--mist); padding: 2px 6px; border-radius: 4px; color: var(--text); }

.shot-frame { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 18px 50px rgba(17,26,38,.14); background: var(--ink); }

.checks { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 30px; color: #2c3846; }
.checks li::before { content: ''; position: absolute; left: 2px; top: 5px; width: 16px; height: 16px; border-radius: 50%; background: #e6f3ee url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.3l2.2 2.2 4.8-5' fill='none' stroke='%2312805c' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.checks b { color: var(--text); }

/* ---------- tables ---------- */
.table-wrap { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--paper); }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
th { text-align: left; font-size: 12.5px; font-weight: 600; color: var(--muted); padding: 11px 16px; background: var(--mist); border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- live flights ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 16px; }
.search { position: relative; flex: 1 1 280px; max-width: 380px; }
.search svg { position: absolute; left: 12px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--muted); }
.search input { width: 100%; height: 42px; border: 1px solid var(--line); border-radius: 8px; padding: 0 12px 0 38px; font: inherit; font-size: 15px; background: var(--paper); color: var(--text); }
.search input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,99,214,.15); }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--paper); }
.seg button { border: 0; background: none; font: 500 14px Inter, system-ui, sans-serif; color: var(--muted); padding: 0 14px; height: 40px; cursor: pointer; border-right: 1px solid var(--line); }
.seg button:last-child { border-right: 0; }
.seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.toolbar-meta { margin-left: auto; font-size: 13.5px; color: var(--muted); font-variant-numeric: tabular-nums; }

.flights tbody tr { cursor: pointer; }
.flights tbody tr:hover td { background: #f8fafc; }
.fl-cell { display: flex; align-items: center; gap: 12px; min-width: 180px; }
.fl-logo { width: 64px; height: 30px; border-radius: 6px; border: 1px solid var(--line); background: #fff center/contain no-repeat; background-origin: content-box; padding: 3px 5px; flex: none; }
.fl-logo.none { background: var(--mist); }
.fl-id b { display: block; font-weight: 650; font-size: 15px; }
.fl-id span { display: block; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 190px; }
.route { min-width: 260px; }
.route-ends { display: flex; justify-content: space-between; gap: 16px; }
.route-ends div { min-width: 0; }
.route-ends div:last-child { text-align: right; }
.route-ends b { font-weight: 650; }
.route-ends span { display: block; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 150px; }
.route-ends div:last-child span { margin-left: auto; }
.prog { position: relative; height: 4px; border-radius: 2px; background: var(--line); margin-top: 8px; }
.prog i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 2px; background: var(--accent); }
.ac b { font-weight: 600; }
.ac span { display: block; font-size: 13px; color: var(--muted); }
.status { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 13px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.st-cruise { background: #eef2f7; color: #3b4757; }
.st-climb { background: #e6f3ee; color: var(--green); }
.st-descend { background: #fff4d6; color: #8a5a00; }
.st-land { background: #fde9e7; color: var(--red); }
.empty-row td { text-align: center; color: var(--muted); padding: 40px 16px; }

/* ---------- API docs ---------- */
.docs { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; align-items: start; }
.docs-nav { position: sticky; top: 80px; display: grid; gap: 2px; font-size: 14.5px; }
.docs-nav p { font-size: 12.5px; font-weight: 600; color: var(--muted); margin: 16px 0 6px; }
.docs-nav p:first-child { margin-top: 0; }
.docs-nav a { color: #2c3846; text-decoration: none; padding: 6px 10px; border-radius: 6px; }
.docs-nav a:hover { background: var(--mist); }
.endpoint { padding-bottom: 48px; margin-bottom: 48px; border-bottom: 1px solid var(--line); scroll-margin-top: 80px; }
.endpoint:last-child { border-bottom: 0; }
.endpoint h2 { font-size: 24px; }
.endpoint > p { margin-top: 10px; color: #2c3846; max-width: 720px; }
.ep-line { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--mist); font-family: var(--mono); font-size: 14px; overflow-x: auto; }
.method { font-size: 12px; font-weight: 700; color: var(--green); background: #e6f3ee; padding: 3px 8px; border-radius: 5px; }
.code { margin-top: 16px; border-radius: 10px; background: var(--ink); color: #d6deea; overflow: hidden; border: 1px solid var(--ink-line); }
.code-head { display: flex; justify-content: space-between; align-items: center; padding: 9px 14px; border-bottom: 1px solid var(--ink-line); font: 500 12.5px Inter, system-ui, sans-serif; color: var(--ink-muted); }
.code pre { margin: 0; padding: 16px; overflow-x: auto; line-height: 1.6; }
.code .k { color: #7cc4ff; } .code .s { color: #f5c96b; } .code .n { color: #9fe0b5; } .code .c { color: #66758a; }
.params { margin-top: 16px; }
.params td:first-child { font-family: var(--mono); font-size: 13.5px; white-space: nowrap; }
.callout { margin-top: 18px; padding: 14px 16px; border-left: 3px solid #f5b400; background: #fffaeb; border-radius: 0 8px 8px 0; font-size: 15px; color: #3d3415; }

/* ---------- feeding / points ---------- */
.station { background: var(--ink-2); border: 1px solid var(--ink-line); border-radius: 14px; padding: 22px; box-shadow: 0 30px 80px rgba(0,0,0,.45); }
.station-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.station-top b { color: #fff; font-size: 16px; }
.station-top span { font-size: 13px; color: var(--ink-muted); }
.online { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: #4fd18b; background: rgba(79,209,139,.1); padding: 4px 10px; border-radius: 12px; }
.online::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #4fd18b; }
.station-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--ink-line); border-radius: 10px; overflow: hidden; margin-top: 18px; }
.station-grid div { background: var(--ink-3); padding: 14px; }
.station-grid span { display: block; font-size: 12px; color: var(--ink-muted); }
.station-grid b { display: block; margin-top: 4px; font-size: 21px; color: #fff; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.station-points { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; padding: 14px 16px; border-radius: 10px; background: rgba(30,167,255,.1); border: 1px solid rgba(30,167,255,.35); }
.station-points span { font-size: 13px; color: var(--ink-muted); }
.station-points b { font-size: 22px; color: #5aa9ff; font-variant-numeric: tabular-nums; }
.station-foot { margin-top: 12px; font-size: 12px; color: var(--ink-muted); }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 54px; margin-top: 16px; }
.bars i { flex: 1; background: #2f4566; border-radius: 2px 2px 0 0; }
.bars i.hi { background: var(--accent); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { border-top: 3px solid var(--ink); padding-top: 20px; }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15px; }
.step .code { margin-top: 14px; }
.step .code pre { font-size: 12.5px; padding: 12px 14px; }

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative; font-weight: 600; font-size: 16.5px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); transition: transform .15s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { padding: 0 0 20px; color: #2c3846; max-width: 760px; }
.faq details p + p { margin-top: -8px; }

/* ---------- form ---------- */
.form { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 28px; display: grid; gap: 18px; box-shadow: 0 10px 30px rgba(17,26,38,.06); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; }
.field > span, .field legend { font-size: 14px; font-weight: 600; color: var(--text); padding: 0; }
.field em { font-style: normal; font-weight: 400; color: var(--muted); }
.field input[type=text], .field input[type=email], .field input[type=password], .field select, .field textarea { width: 100%; border: 1px solid #ccd3dc; border-radius: 8px; padding: 10px 12px; font: inherit; font-size: 15px; color: var(--text); background: #fff; }
.field textarea { min-height: 90px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,99,214,.15); }
fieldset.field { border: 0; margin: 0; padding: 0; }
.ticks { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 4px; }
.ticks label, .consent { display: flex; align-items: flex-start; gap: 8px; font-size: 14.5px; color: #2c3846; }
.ticks input, .consent input { margin-top: 4px; accent-color: var(--ink); }
.hp { position: absolute; left: -5000px; }
.form-status { font-size: 14.5px; }
.form-status.ok { color: var(--green); font-weight: 600; }
.form-status.err { color: var(--red); }

/* ---------- prose (about, privacy, terms) ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: 24px; margin: 44px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 26px 0 8px; }
.prose p, .prose li { color: #2c3846; }
.prose p + p { margin-top: 12px; }
.prose ul { padding-left: 20px; }
.prose li + li { margin-top: 6px; }
.draft { background: #fff4d6; border: 1px solid #f0d58a; color: #6b4a00; padding: 12px 14px; border-radius: 8px; font-size: 14.5px; }

.stats-band { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stats-band div { padding: 22px 24px; border-right: 1px solid var(--line); }
.stats-band div:last-child { border-right: 0; }
.stats-band b { display: block; font-size: 28px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stats-band span { font-size: 14px; color: var(--muted); }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: var(--ink-muted); padding: 56px 0 32px; font-size: 14.5px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer-grid .brand { margin-bottom: 14px; }
.footer-grid p { max-width: 320px; }
.footer-grid h4 { margin: 0 0 12px; color: #fff; font-size: 14px; font-weight: 600; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-grid a, .footer-base a { color: var(--ink-muted); text-decoration: none; }
.footer-grid a:hover, .footer-base a:hover { color: #fff; }
.footer-base { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--ink-line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; }
.footer-base a { text-decoration: underline; text-underline-offset: 2px; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero .wrap, .split, .split-wide { grid-template-columns: 1fr; gap: 40px; }
  .features, .steps { grid-template-columns: 1fr 1fr; }
  .docs { grid-template-columns: 1fr; }
  .docs-nav { position: static; display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-band { grid-template-columns: 1fr 1fr; }
  .stats-band div:nth-child(2) { border-right: 0; }
  .stats-band div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 760px) {
  .menu-btn { display: block; }
  .site-nav { display: none; position: absolute; top: 56px; left: 0; right: 0; flex-direction: column; background: var(--ink); border-bottom: 1px solid var(--ink-line); padding: 8px 12px 14px; }
  .site-nav.open { display: flex; }
  .site-nav .nav-cta { margin: 6px 0 0; text-align: center; }
  .wrap { padding: 0 16px; }
  .section { padding: 60px 0; }
  .hero .wrap { padding-top: 44px; padding-bottom: 48px; }
  .features, .steps { grid-template-columns: 1fr; }
  .form .row { grid-template-columns: 1fr; }
  .form { padding: 20px; }
  .toolbar-meta { margin-left: 0; width: 100%; }
  .col-hide { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
}
.shot-frame img, .hero-shot img { width: 100%; height: auto; }
@media (max-width: 760px) {
  .flights th, .flights td { padding: 11px 10px; }
  .fl-logo { display: none; }
  .fl-cell { min-width: 0; }
  .fl-id span { max-width: 110px; }
  .route { min-width: 150px; }
  .route-ends span { max-width: 80px; }
  .status { padding: 0 8px; font-size: 12px; }
}

/* ---------- account / stations ---------- */
.acc-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 24px; }
.st-card { border: 1px solid var(--line); border-radius: 12px; padding: 24px; background: var(--paper); box-shadow: 0 10px 30px rgba(17,26,38,.05); }
.st-card + .st-card { margin-top: 20px; }
.st-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.st-head h3 { font-size: 20px; }
.st-grid { display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid var(--line); border-radius: 10px; margin-top: 18px; overflow: hidden; }
.st-grid div { padding: 14px 16px; border-right: 1px solid var(--line); }
.st-grid div:last-child { border-right: 0; }
.st-grid span { display: block; font-size: 12.5px; color: var(--muted); }
.st-grid b { display: block; font-size: 20px; margin-top: 2px; font-variant-numeric: tabular-nums; }
.st-checks { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; }
.st-checks li { position: relative; padding-left: 26px; font-size: 14.5px; }
.st-checks li b { margin-right: 8px; }
.st-checks li span { color: var(--muted); }
.st-checks li::before { content: ''; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%; }
.st-checks .chk-pass::before { background: #e6f3ee url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.3l2.2 2.2 4.8-5' fill='none' stroke='%2312805c' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.st-checks .chk-fail::before { background: #fde9e7 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M5 5l6 6M11 5l-6 6' stroke='%23c2352b' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.st-checks .chk-unknown::before { background: #eef2f7; border: 2px solid #c8ced7; box-sizing: border-box; }
.st-setup { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; }
.st-setup summary { cursor: pointer; font-weight: 600; }
.st-setup p { margin-top: 10px; }
.st-setup .code pre { white-space: pre-wrap; word-break: break-all; }
@media (max-width: 760px) {
  .st-grid { grid-template-columns: 1fr 1fr; }
  .st-grid div { border-bottom: 1px solid var(--line); }
  .st-checks { grid-template-columns: 1fr; }
}

/* ---------- aircraft and flight history ---------- */
.hist-hero .wrap { display: block; padding-top: 40px; padding-bottom: 40px; }
.hist-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: start; }
.hist-head h1 { font-size: clamp(26px, 3.2vw, 36px); }
.hist-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 28px; margin: 24px 0 0; }
.hist-facts dt { font-size: 12px; color: var(--ink-muted); }
.hist-facts dd { margin: 2px 0 0; color: #fff; font-weight: 600; font-size: 15.5px; }
.hist-photos { display: flex; gap: 10px; }
.hist-photos figure { margin: 0; width: 240px; position: relative; border-radius: 10px; overflow: hidden; border: 1px solid var(--ink-line); }
.hist-photos img { width: 100%; height: 150px; object-fit: cover; }
.hist-photos figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 8px 5px; background: linear-gradient(transparent, rgba(0,0,0,.7)); font-size: 11px; }
.hist-photos figcaption a { color: #fff; text-decoration: none; }
.hist td { white-space: nowrap; font-size: 14px; padding: 11px 14px; }
.hist th { padding: 10px 14px; }
.hist a { font-weight: 600; text-decoration: none; }
.ap-code { color: var(--blue); font-size: 12px; font-weight: 600; }
.h-status { position: relative; padding-left: 22px !important; }
.h-status::before { content: ''; position: absolute; left: 8px; top: 9px; bottom: 9px; width: 3px; border-radius: 2px; background: #c8ced7; }
.h-status.bar-ok::before { background: var(--green); }
.h-status.bar-live::before { background: var(--blue); }
.h-actions { text-align: right; }
.btn-mini { display: inline-flex; align-items: center; height: 28px; padding: 0 10px; margin-left: 6px; border: 1px solid var(--line); border-radius: 6px; font-size: 12.5px; font-weight: 600; color: var(--text) !important; text-decoration: none; background: var(--paper); }
.btn-mini:hover { border-color: #b9c1cc; }
.btn-mini-primary { background: var(--ink); border-color: var(--ink); color: #fff !important; }
.btn-mini-primary:hover { background: #1f2b3d; }
@media (max-width: 980px) {
  .hist-head { grid-template-columns: 1fr; }
  .hist-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hist-photos figure { width: 50%; }
}

/* ---------- sign in / create account ---------- */
.auth { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); min-height: calc(100vh - 56px); }
.auth-brand { background: var(--ink); color: var(--ink-text); display: flex; align-items: center; padding: 56px 48px; border-right: 1px solid var(--ink-line); }
.auth-brand-inner { max-width: 400px; margin-left: auto; }
.auth-brand img { width: 64px; height: 64px; }
.auth-brand h2 { color: #fff; font-size: 30px; margin-top: 28px; }
.auth-points { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
.auth-points li { position: relative; padding-left: 30px; color: var(--ink-muted); }
.auth-points li::before { content: ''; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: rgba(30,167,255,.15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.3l2.2 2.2 4.8-5' fill='none' stroke='%231ea7ff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.auth-main { background: var(--mist); display: flex; align-items: center; justify-content: center; padding: 48px 24px; }
.auth-card { width: 100%; max-width: 440px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 20px 50px rgba(17,26,38,.08); overflow: hidden; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); }
.auth-tabs button { border: 0; background: var(--mist); font: 600 14.5px Inter, system-ui, sans-serif; color: var(--muted); padding: 15px; cursor: pointer; }
.auth-tabs button[aria-selected="true"] { background: var(--paper); color: var(--text); box-shadow: inset 0 -2px 0 var(--accent); }
.auth-form { display: grid; gap: 16px; padding: 30px 32px 32px; }
.auth-form h1 { font-size: 24px; }
.auth-sub { color: var(--muted); font-size: 14.5px; margin-top: -8px; }
.auth-form .field input { height: 44px; }
.field-row { display: flex; justify-content: space-between; align-items: baseline; }
.field-row a { font-weight: 500; font-size: 13.5px; text-decoration: none; }
.field-hint { font-size: 13px; color: var(--muted); }
.match-hint.ok { color: var(--green); }
.match-hint.bad { color: var(--red); }
.pw { position: relative; display: block; }
.pw input { padding-right: 64px !important; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--blue); font: 600 13px Inter, system-ui, sans-serif; padding: 6px 8px; cursor: pointer; }
.pw-meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 2px; }
.pw-meter i { height: 4px; border-radius: 2px; background: var(--line); }
.pw-meter[data-score="1"] i:nth-child(-n+1) { background: var(--red); }
.pw-meter[data-score="2"] i:nth-child(-n+2) { background: #e0a100; }
.pw-meter[data-score="3"] i:nth-child(-n+3) { background: #4caf50; }
.pw-meter[data-score="4"] i { background: var(--green); }
.btn-block { width: 100%; height: 46px; }
.auth-alt { text-align: center; font-size: 14px; color: var(--muted); }
.auth-alt a { font-weight: 600; text-decoration: none; }
.link-btn { border: 0; background: none; padding: 0; font: inherit; font-weight: 600; color: var(--blue); text-decoration: underline; cursor: pointer; }

.robot { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid #ccd3dc; border-radius: 8px; background: #f9fafb; }
.robot-btn { width: 28px; height: 28px; border: 2px solid #9aa5b3; border-radius: 6px; background: #fff; cursor: pointer; padding: 0; flex: none; display: grid; place-items: center; }
.robot-btn:hover { border-color: var(--accent); }
.robot-box { width: 14px; height: 14px; }
.robot b { display: block; font-size: 14.5px; }
.robot-note { display: block; font-size: 12px; color: var(--muted); }
.robot[data-state="working"] .robot-btn { border-color: var(--accent); border-top-color: transparent; border-radius: 50%; animation: robot-spin .8s linear infinite; }
.robot[data-state="done"] { border-color: #9fd6be; background: #effaf5; }
.robot[data-state="done"] .robot-btn { border-color: var(--green); background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.3l2.5 2.5L12 5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat; cursor: default; }
@keyframes robot-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .robot[data-state="working"] .robot-btn { animation-duration: 2.4s; } }

.auth-done { text-align: center; justify-items: center; padding-top: 44px; padding-bottom: 40px; }
.done-icon { width: 60px; height: 60px; border-radius: 50%; background: rgba(30,167,255,.12); color: var(--accent); display: grid; place-items: center; }
.done-icon svg { width: 28px; height: 28px; }
@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; }
  .auth-brand { padding: 32px 20px; border-right: 0; }
  .auth-brand-inner { margin: 0; }
  .auth-points { display: none; }
  .auth-brand h2 { font-size: 22px; margin-top: 16px; }
  .auth-main { padding: 24px 16px 48px; }
  .auth-form { padding: 24px 20px; }
}
.field > span.field-hint { font-weight: 400; font-size: 13px; color: var(--muted); }
.field > span.match-hint.ok { color: var(--green); font-weight: 600; }
.field > span.match-hint.bad { color: var(--red); font-weight: 600; }

/* ---------- aircraft / flight pages ---------- */
.ac-hero-page .wrap { display: block; padding-top: 22px; padding-bottom: 40px; }
.crumbs { display: flex; gap: 8px; font-size: 13px; color: var(--ink-muted); margin-bottom: 22px; }
.crumbs a { color: var(--ink-muted); text-decoration: none; }
.crumbs a:hover { color: #fff; }
.crumbs span:last-child { color: #fff; }
.acp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 44px; align-items: start; }
.acp-flight { grid-template-columns: 1fr; }
.acp-status { display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: rgba(255,255,255,.07); color: var(--ink-muted); margin-bottom: 14px; }
.acp-status.live { background: rgba(79,209,139,.13); color: #4fd18b; }
.acp-status.live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #4fd18b; box-shadow: 0 0 0 4px rgba(79,209,139,.2); }
.acp-reg { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: clamp(38px, 5vw, 56px); letter-spacing: -0.02em; color: #fff; }
.acp-type { font-size: 15px; font-weight: 700; letter-spacing: .02em; padding: 5px 10px; border-radius: 7px; background: rgba(30,167,255,.16); color: #6cc4ff; }
.acp-model { margin-top: 10px; font-size: 21px; font-weight: 600; color: #fff; }
.acp-operator { margin-top: 4px; font-size: 16px; color: var(--ink-muted); }
.acp-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 28px 0 0; border: 1px solid var(--ink-line); border-radius: 12px; overflow: hidden; }
.acp-facts div { padding: 13px 16px; border-right: 1px solid var(--ink-line); border-bottom: 1px solid var(--ink-line); background: var(--ink-2); }
.acp-facts div:nth-child(3n) { border-right: 0; }
.acp-facts dt { font-size: 11.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-muted); }
.acp-facts dd { margin: 5px 0 0; display: flex; align-items: center; gap: 8px; color: #fff; font-weight: 600; font-size: 15.5px; font-variant-numeric: tabular-nums; }
.acp-flag { width: 22px; height: 16px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(255,255,255,.15); }
.acp-actions { margin-top: 24px; }
.acp-gallery { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; height: 340px; }
.acp-gallery.one { grid-template-columns: 1fr; }
.acp-photo { margin: 0; position: relative; border-radius: 12px; overflow: hidden; background: var(--ink-2); border: 1px solid var(--ink-line); }
.acp-photo.main { grid-row: span 2; }
.acp-gallery.one .acp-photo.main { grid-row: span 2; }
.acp-photo img { width: 100%; height: 100%; object-fit: cover; }
.acp-photo figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 10px 7px; background: linear-gradient(transparent, rgba(0,0,0,.75)); font-size: 11.5px; }
.acp-photo figcaption a { color: #fff; text-decoration: none; }
.acp-photo-empty { grid-column: 1 / -1; grid-row: 1 / -1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; border-radius: 12px; border: 1px dashed var(--ink-line); color: var(--ink-muted); font-size: 14px; }
.acp-photo-empty svg { width: 46px; height: 46px; opacity: .35; }
.acp-stats-band { background: var(--paper); border-bottom: 1px solid var(--line); }
.acp-stats { display: grid; grid-template-columns: repeat(4, 1fr); }
.acp-stats div { padding: 22px 24px; border-right: 1px solid var(--line); }
.acp-stats div:first-child { padding-left: 0; }
.acp-stats div:last-child { border-right: 0; }
.acp-stats b { display: block; font-size: 26px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.acp-stats span { font-size: 13.5px; color: var(--muted); }
.hist-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 14px; flex-wrap: wrap; }
.hist-bar h2 { font-size: 22px; }
.hist-bar .search { max-width: 340px; }
.hist thead th { text-transform: uppercase; font-size: 11.5px; letter-spacing: .05em; }
.hist td.dim, .hist .dim { color: #9aa5b3; }
.hist .ap-city { color: var(--text); }
.hist tr.is-live td { background: #f3fbf7; }
.fl-link { color: var(--blue); }
@media (max-width: 980px) {
  .acp { grid-template-columns: 1fr; gap: 28px; }
  .acp-gallery { height: 240px; }
  .acp-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .acp-facts div:nth-child(3n) { border-right: 1px solid var(--ink-line); }
  .acp-facts div:nth-child(2n) { border-right: 0; }
  .acp-stats { grid-template-columns: repeat(2, 1fr); }
  .acp-stats div:nth-child(2) { border-right: 0; }
  .acp-stats div:nth-child(3) { padding-left: 0; }
}
.acp-gallery.two { grid-template-rows: 1fr; } .acp-gallery.two .acp-photo.main { grid-row: auto; }
.hist td.usual { color: #5a6676; font-style: italic; }

/* ---------- what's that plane? ---------- */
.nb-status { margin-top: 18px; color: var(--ink-muted); font-size: 14px; }
.nb-section { padding-top: 28px; }
.nb-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; max-width: 720px; }
.nb-link { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--text); text-decoration: none; box-shadow: 0 6px 18px rgba(17,26,38,.05); }
.nb-link:hover { border-color: #b9c8db; }
.nb-dir { display: grid; justify-items: center; gap: 1px; text-align: center; }
.nb-arrow { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #1ea7ff; font-size: 20px; font-weight: 800; transition: transform .25s; }
.nb-dir b { font-size: 13px; margin-top: 3px; }
.nb-dir span:last-child { font-size: 11.5px; color: var(--muted); }
.nb-top { display: flex; align-items: center; gap: 8px; }
.nb-top b { font-size: 16px; }
.nb-tag { font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 5px; background: #e8f3ff; color: #0b6fc2; }
.nb-route { margin-top: 3px; font-size: 13.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nb-nums { text-align: right; font-variant-numeric: tabular-nums; }
.nb-nums b { display: block; font-size: 15px; }
.nb-nums span { font-size: 12.5px; color: var(--muted); }
.nb-note { margin-top: 18px; max-width: 720px; }
@media (max-width: 520px) { .nb-link { grid-template-columns: 58px minmax(0, 1fr) auto; gap: 10px; padding: 12px; } }

/* ---------- leaderboard ---------- */
.lb td { vertical-align: middle; }
.lb-rank { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--mist); font-weight: 700; font-size: 13.5px; color: var(--muted); }
.lb-r1 { background: #f5c242; color: #3d2c00; }
.lb-r2 { background: #cfd6df; color: #2b3440; }
.lb-r3 { background: #d99a63; color: #3a1f08; }
.lb b { display: block; }
.lb-area { display: block; font-size: 13px; color: var(--muted); }
.lb-winners h2 { font-size: 22px; margin: 44px 0 14px; }
.lb-wgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.lb-wcard { border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.lb-wcard h3 { font-size: 15px; margin-bottom: 10px; }
.lb-wcard ol { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.lb-wcard li span { display: block; font-size: 13px; color: var(--muted); }
@media (max-width: 760px) { .lb-wgrid { grid-template-columns: 1fr; } }

/* ---------- coverage map ---------- */
.cv-map { height: min(68vh, 640px); border-radius: 12px; border: 1px solid var(--line); overflow: hidden; background: #0c121c; }
.cv-map .leaflet-tile-pane { filter: invert(1) hue-rotate(195deg) saturate(.35) brightness(.8) contrast(1.1); }
.cv-legend { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 12px; font-size: 14px; color: var(--muted); }
.cv-legend span { display: inline-flex; align-items: center; gap: 8px; }
.cv-key { width: 16px; height: 16px; border-radius: 4px; display: inline-block; }
.cv-key-st { background: rgba(30,167,255,.35); border: 1px solid #1ea7ff; border-radius: 50%; }
.cv-key-need { background: rgba(240,138,36,.45); border: 1px solid #f08a24; }

/* ---------- admin ---------- */
.ad h2 { font-size: 20px; margin: 34px 0 12px; }
.ad h2:first-child { margin-top: 0; }
.ad-health { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.ad-card { border: 1px solid var(--line); border-left: 4px solid #c8ced7; border-radius: 10px; padding: 14px 16px; }
.ad-card.ok { border-left-color: var(--green); }
.ad-card.bad { border-left-color: var(--red); }
.ad-card h3 { font-size: 15px; margin-bottom: 6px; }
.ad-card p { font-size: 13.5px; color: var(--muted); }
.ad-acts { display: flex; gap: 6px; }
.ad td { font-size: 14px; }

/* logo: "Tail" white, "Nav" blue, everywhere (footer links are grey otherwise) */
.brand .brand-name, .footer-grid a.brand, .footer-grid a.brand .brand-name { color: #fff; }
.brand .brand-name span { color: #1ea7ff; }

/* ---------- aircraft page header (v2) ---------- */
.acp2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.acp2-operator { display: flex; align-items: center; gap: 10px; margin-top: 6px; font-size: 16px; color: var(--ink-muted); }
.acp2-logo { display: inline-grid; place-items: center; height: 28px; padding: 3px 8px; border-radius: 6px; background: #fff; }
.acp2-logo img { height: 20px; width: auto; max-width: 90px; }
.acp2-spec { display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; margin: 26px 0 0; border-top: 1px solid var(--ink-line); }
.acp2-spec div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--ink-line); }
.acp2-spec dt { font-size: 13px; color: var(--ink-muted); white-space: nowrap; }
.acp2-spec dd { margin: 0; display: flex; align-items: center; gap: 7px; color: #fff; font-weight: 600; font-size: 14.5px; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.acp2-spec .acp-flag { width: 20px; height: 15px; }
.acp2-gallery { margin: 0; }
.acp2-frame { aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; background: var(--ink-2); border: 1px solid var(--ink-line); }
/* Crop the bottom edge, where photo sites print their watermark strip. */
.acp2-frame img { width: 100%; height: 106%; object-fit: cover; object-position: center top; display: block; }
.acp2-frame .acp-photo-empty { height: 100%; border: 0; }
.acp2-credit { margin-top: 8px; font-size: 12.5px; color: var(--ink-muted); }
.acp2-credit a { color: var(--ink-text); text-decoration: none; }
.acp2-credit a:hover { text-decoration: underline; }
.acp2-thumbs { display: flex; gap: 8px; margin-top: 10px; }
.acp2-thumb { width: 84px; height: 54px; padding: 0; border-radius: 7px; overflow: hidden; border: 2px solid transparent; background: var(--ink-2); cursor: pointer; opacity: .65; transition: opacity .15s; }
.acp2-thumb img { width: 100%; height: 115%; object-fit: cover; object-position: center top; display: block; }
.acp2-thumb:hover { opacity: 1; }
.acp2-thumb[aria-pressed="true"] { border-color: #1ea7ff; opacity: 1; }
@media (max-width: 980px) {
  .acp2 { grid-template-columns: 1fr; gap: 28px; }
  .acp2-gallery { order: -1; }
  .acp2-spec { grid-template-columns: 1fr; }
}

/* ---------- data-sheet pages (aircraft / flight) ---------- */
.sheet-page { background: #eef1f5; }
.sheet-main { padding: 18px 0 48px; }
.sheet-crumbs { display: flex; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.sheet-crumbs a { color: var(--muted); text-decoration: none; }
.sheet-crumbs a:hover { color: var(--text); }
.sheet-crumbs span:last-child { color: var(--text); font-weight: 600; }
.sheet { background: #fff; border: 1px solid #d9dee6; border-radius: 6px; overflow: hidden; margin-bottom: 14px; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 12px 16px; background: #26303d; color: #fff; }
.sheet-head-light { background: #f6f7f9; color: var(--text); border-bottom: 1px solid #d9dee6; }
.sheet-title h1 { font-size: 22px; letter-spacing: -0.01em; line-height: 1.25; }
.sheet-title h2 { font-size: 16px; }
.sheet-model { font-weight: 500; color: #c4cdd8; }
.sheet-sub { display: flex; align-items: center; gap: 8px; margin-top: 3px; font-size: 13.5px; color: #c4cdd8; }
.sheet-head-light .sheet-sub { color: var(--muted); }
.sheet-sub .acp2-logo { height: 22px; padding: 2px 6px; border-radius: 3px; }
.sheet-sub .acp2-logo img { height: 16px; }
.sheet-type { font-size: 12px; font-weight: 700; padding: 1px 6px; border-radius: 3px; border: 1px solid #5d6a7c; color: #dbe3ec; }
.sheet-actions { display: flex; align-items: center; gap: 8px; }
.sheet-status { font-size: 12.5px; color: #c4cdd8; }
.sheet-status.live { color: #6fe0a1; font-weight: 600; }
.sheet-btn { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 4px; border: 1px solid #5d6a7c; background: transparent; color: #fff; font: 600 13px Inter, system-ui, sans-serif; text-decoration: none; cursor: pointer; }
.sheet-btn:hover { background: rgba(255,255,255,.08); }
.sheet-btn.primary { background: #0b84e0; border-color: #0b84e0; }
.sheet-btn.primary:hover { background: #1e95ef; }
.sheet-head-light .sheet-btn { color: var(--text); border-color: #c8ced7; background: #fff; }
.sheet-body { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.sheet-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; align-content: start; }
.sheet-facts div { padding: 11px 16px; border-bottom: 1px solid #eceff3; border-right: 1px solid #eceff3; min-width: 0; }
.sheet-facts dt { font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #7a8594; }
.sheet-facts dd { margin: 3px 0 0; display: flex; align-items: center; gap: 6px; font-size: 14.5px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sheet-facts .acp-flag { width: 18px; height: 13px; flex: none; }
.sheet-gallery { margin: 0; padding: 12px; background: #f6f7f9; border-left: 1px solid #eceff3; }
.sheet-gallery .acp2-frame { aspect-ratio: 16 / 10; border-radius: 3px; border: 0; background: #e3e7ec; }
.sheet-gallery .acp-photo-empty { height: 100%; display: grid; place-items: center; color: var(--muted); font-size: 13px; border: 0; }
.sheet-gallery .acp2-credit { color: var(--muted); font-size: 12px; }
.sheet-gallery .acp2-credit a { color: var(--text); }
.sheet-gallery .acp2-thumbs { margin-top: 8px; gap: 6px; }
.sheet-gallery .acp2-thumb { width: 70px; height: 46px; border-radius: 3px; opacity: .7; }
.sheet-stats { display: block; }
.sheet-search { display: flex; gap: 6px; }
.sheet-search input { height: 32px; width: 230px; padding: 0 10px; border: 1px solid #c8ced7; border-radius: 4px; font: 13.5px Inter, system-ui, sans-serif; }
.sheet-table { font-size: 13.5px; }
.sheet-table th { background: #fff; text-transform: uppercase; font-size: 11px; letter-spacing: .04em; color: #7a8594; padding: 9px 12px; }
.sheet-table td { padding: 9px 12px; }
.sheet-table tbody tr:nth-child(even) td { background: #fafbfc; }
.sheet-note { font-size: 12.5px; color: var(--muted); }
@media (max-width: 900px) {
  .sheet-body { grid-template-columns: 1fr; }
  .sheet-gallery { border-left: 0; border-top: 1px solid #eceff3; order: -1; }
  .sheet-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sheet-search input { width: 100%; }
}

.sheet-facts dd { white-space: normal; }

/* ---------- hardware kit with prices ---------- */
.kit { background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.kit-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.kit-head h3 { font-size: 16px; }
.kit-cur { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.kit-cur select { height: 32px; padding: 0 8px; border: 1px solid #c8ced7; border-radius: 6px; font: 600 13px Inter, system-ui, sans-serif; color: var(--text); background: #fff; }
.kit-list { list-style: none; margin: 0; padding: 0; }
.kit-list li { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 14px 18px; border-bottom: 1px solid #eef1f4; }
.kit-list b { display: block; font-size: 15px; }
.kit-list span { display: block; margin-top: 2px; font-size: 13.5px; color: var(--muted); }
.kit-list em { font-style: normal; font-weight: 600; font-size: 14.5px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.kit-total { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; background: #f6f8fa; }
.kit-total span { font-weight: 600; }
.kit-total b { font-size: 17px; font-variant-numeric: tabular-nums; }
.kit-note { margin: 0; padding: 10px 18px 14px; background: #f6f8fa; font-size: 12.5px; color: var(--muted); }

/* ---------- connect your receiver / check my feed ---------- */
.sheet-btn.dark { color: var(--text); border-color: #c8ced7; background: #fff; }
.sheet-btn.primary.dark-text { color: #fff; }
.fd-key { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 14px 16px; }
.fd-key b { display: block; font-size: 14.5px; }
.fd-key span { display: block; font-size: 13.5px; color: var(--muted); margin-top: 2px; }
.fd-key-actions { display: flex; gap: 8px; align-items: center; }
.fd-key-actions select { height: 32px; border: 1px solid #c8ced7; border-radius: 4px; padding: 0 8px; font: 13.5px Inter, system-ui, sans-serif; }
.fd-tabs { display: flex; flex-wrap: wrap; border-bottom: 1px solid #d9dee6; padding: 0 8px; }
.fd-tabs button { border: 0; background: none; padding: 12px 12px 11px; font: 600 13.5px Inter, system-ui, sans-serif; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; }
.fd-tabs button[aria-selected="true"] { color: var(--text); border-bottom-color: #0b84e0; }
.fd-setup { padding: 16px 18px 6px; }
.fd-lead { color: var(--muted); font-size: 14.5px; }
.fd-steps { margin: 14px 0 0; padding-left: 22px; display: grid; gap: 14px; }
.fd-steps li { font-size: 14.5px; color: #2c3846; }
.fd-steps b { color: var(--text); }
.fd-steps code, .fd-faq code, .fd-lead code { font-size: 12.5px; background: #eef1f5; padding: 1px 5px; border-radius: 3px; }
.fd .code { position: relative; margin-top: 8px; border-radius: 6px; }
.fd .code pre { padding: 12px 70px 12px 14px; font-size: 12.5px; white-space: pre-wrap; word-break: break-all; }
.fd-copy { position: absolute; top: 8px; right: 8px; height: 26px; padding: 0 10px; border-radius: 4px; border: 1px solid #3a4a60; background: #16223d; color: #dbe5f1; font: 600 12px Inter, system-ui, sans-serif; cursor: pointer; }
.fd-copy:hover { background: #22304d; }
.fd-more { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding: 16px 18px 18px; margin-top: 10px; border-top: 1px solid #eceff3; background: #fafbfc; }
.fd-more h3 { font-size: 14.5px; }
.fd-more p { font-size: 13.5px; color: var(--muted); margin-top: 2px; }
.fd-faq { border-top: 0; padding: 0 18px; }
.fd-faq summary { font-size: 15px; }
.fc-body { padding: 16px; display: grid; gap: 12px; }
.fc-empty, .fc-note { color: var(--muted); font-size: 13.5px; }
.fc-none, .fc-warn { display: grid; gap: 4px; justify-items: start; padding: 16px; border-radius: 6px; background: #f6f8fa; border: 1px solid #e3e7ec; }
.fc-none span, .fc-warn span { color: var(--muted); font-size: 14px; }
.fc-none .sheet-btn { margin-top: 8px; }
.fc-warn { background: #fff7e6; border-color: #f0d58a; }
.fc-card { border: 1px solid #e3e7ec; border-radius: 6px; padding: 14px 16px; }
.fc-card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.fc-card-head b { font-size: 16px; }
.fc-pill { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 4px; }
.fc-pill.ok { background: #e6f5ee; color: var(--green); }
.fc-pill.bad { background: #fdeceb; color: var(--red); }
.fc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); margin-top: 10px; border-top: 1px solid #eceff3; }
.fc-row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid #eceff3; font-size: 14px; margin-right: 18px; }
.fc-row span { color: var(--muted); }
.fc-row b.bad { color: var(--red); }
.fc-checks { margin-top: 12px; }
.cv-dot { border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px #c8ced7; }
.cv-dot.ok { background: #2fcf7f; }
.cv-dot.part { background: #f0b429; }
.cv-dot.none { background: #7d8a9c; }
@media (max-width: 760px) { .fd-more { grid-template-columns: 1fr; } }

/* ---------- data sheets: modern pass ---------- */
.sheet { border-radius: 14px; border-color: #e2e7ee; box-shadow: 0 1px 2px rgba(16,24,40,.04), 0 10px 30px rgba(16,24,40,.05); }
.sheet-head { padding: 16px 20px; background: #182230; }
.sheet-head-light { background: #fff; border-bottom-color: #edf0f4; }
.sheet-title h1 { font-size: 24px; }
.sheet-btn { height: 34px; border-radius: 8px; }
.sheet-search input { height: 34px; border-radius: 8px; border-color: #d6dce4; }
.sheet-body-v2 { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.sheet-body-v2 .sheet-gallery { border-left: 0; border-right: 1px solid #edf0f4; background: #fff; padding: 16px; }
.sheet-body-v2 .acp2-frame { border-radius: 10px; }
.sheet-body-v2 .acp2-thumb { border-radius: 8px; }
.sheet-side { display: flex; flex-direction: column; }
.sheet-side .sheet-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sheet-side .sheet-facts div { padding: 13px 18px; border-color: #edf0f4; }
.sheet-side .sheet-facts div:nth-child(2n) { border-right: 0; }
.now-card { margin: 16px; padding: 14px 16px; border-radius: 12px; background: linear-gradient(180deg, #f3f9ff, #fff); border: 1px solid #d7e9fb; }
.now-head { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.now-dot { width: 8px; height: 8px; border-radius: 50%; background: #12a464; box-shadow: 0 0 0 4px rgba(18,164,100,.15); }
.now-route { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; margin-top: 12px; }
.now-route span { display: block; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #7a8594; }
.now-route b { display: block; font-size: 22px; letter-spacing: -0.01em; }
.now-route small { display: block; font-size: 12.5px; color: var(--muted); max-width: 140px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.now-route div:last-child { text-align: right; }
.now-route div:last-child small { margin-left: auto; }
.now-line { height: 2px; background: repeating-linear-gradient(90deg, #8fbff0 0 6px, transparent 6px 11px); position: relative; }
.now-line::after { content: "✈"; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -54%); font-style: normal; font-size: 15px; color: #0b84e0; background: #f6faff; padding: 0 4px; }
.now-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid #e3eefa; }
.now-grid span { display: block; font-size: 11px; color: #7a8594; }
.now-grid b { display: block; font-size: 14px; margin-top: 2px; font-variant-numeric: tabular-nums; }
.sheet-table th { padding: 11px 14px; border-bottom-color: #edf0f4; background: #fafbfc; }
.sheet-table td { padding: 13px 14px; border-bottom-color: #f0f2f5; }
.sheet-table tbody tr:nth-child(even) td { background: #fff; }
.sheet-table tbody tr:hover td { background: #f7fafd; }
.sheet-table .h-status { padding-left: 14px !important; }
.sheet-table .h-status::before { left: 0; top: 50%; bottom: auto; width: 8px; height: 8px; border-radius: 50%; transform: translateY(-50%); position: relative; display: inline-block; margin-right: 8px; vertical-align: 1px; }
.sheet-table .btn-mini { border-radius: 7px; }
@media (max-width: 900px) {
  .sheet-body-v2 { grid-template-columns: 1fr; }
  .sheet-body-v2 .sheet-gallery { border-right: 0; border-bottom: 1px solid #edf0f4; }
  .now-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- account button and menu (top bar) ---------- */
.acct { position: relative; margin-left: 10px; flex: none; }
.acct-signin { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 8px; border: 1px solid #2c3a52; color: #e8edf4; font: 600 13.5px Inter, system-ui, sans-serif; text-decoration: none; white-space: nowrap; }
.acct-signin:hover { border-color: #1ea7ff; color: #fff; }
.acct-btn { width: 36px; height: 36px; border-radius: 50%; border: 0; background: #1ea7ff; color: #04101f; font: 800 13px Montserrat, Inter, system-ui, sans-serif; cursor: pointer; letter-spacing: .02em; }
.acct-btn:hover, .acct-btn[aria-expanded="true"] { box-shadow: 0 0 0 3px rgba(30,167,255,.3); }
.acct-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 2000; width: 240px; padding: 6px; border-radius: 12px; background: #0d1730; border: 1px solid #22304d; box-shadow: 0 18px 40px rgba(0,0,0,.45); }
.acct-who { padding: 10px 10px 12px; margin-bottom: 4px; border-bottom: 1px solid #22304d; }
.acct-who b { display: block; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #8d9bb0; }
.acct-who span { display: block; margin-top: 2px; font-size: 13.5px; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-who .acct-pts { color: #6cc4ff; font-size: 12.5px; }
.acct-menu a, .acct-menu .acct-out { display: block; width: 100%; padding: 9px 10px; border: 0; border-radius: 8px; background: none; color: #dbe3ee; font: 500 14px Inter, system-ui, sans-serif; text-align: left; text-decoration: none; cursor: pointer; }
.acct-menu a:hover, .acct-menu .acct-out:hover { background: #16223d; color: #fff; }
.acct-menu .acct-out { color: #ff9b8f; margin-top: 4px; border-top: 1px solid #22304d; border-radius: 0 0 8px 8px; }

/* ---------- account dashboard (v2) ---------- */
.acc2 { padding: 22px 0 56px; }
.acc2-id { display: flex; align-items: center; gap: 14px; }
.acc2-avatar { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: #1ea7ff; color: #04101f; font: 800 16px Montserrat, Inter, system-ui, sans-serif; flex: none; }
.acc2-avatar:empty { display: none; }
.acc2-figs { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; }
.acc2-figs div { padding: 16px 20px; border-right: 1px solid #edf0f4; }
.acc2-figs div:last-child { border-right: 0; }
.acc2-figs dt { font-size: 12px; font-weight: 600; color: #7a8594; }
.acc2-figs dd { margin: 4px 0 0; font-size: 24px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.acc2-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.acc2-side .sheet + .sheet, .acc2-side #discord-card:not(:empty) { margin-top: 16px; }
.acc2-form { padding: 16px 20px; border-bottom: 1px solid #edf0f4; background: #fafbfc; display: grid; gap: 12px; }
.acc2-form-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 10px; }
.acc2-form .field input { height: 38px; border-radius: 8px; }
.acc2-form-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.acc2-form-actions .sheet-btn:not(.primary) { color: var(--text); border-color: #c8ced7; background: #fff; }
.acc2-empty { padding: 26px 20px; text-align: center; display: grid; gap: 4px; color: var(--muted); }
.acc2-empty b { color: var(--text); font-size: 15px; }
.st-row { border-bottom: 1px solid #edf0f4; }
.st-row:last-child { border-bottom: 0; }
.st-row-head { width: 100%; display: grid; grid-template-columns: minmax(0, 1.5fr) auto auto 18px; align-items: center; gap: 18px; padding: 14px 20px; border: 0; background: none; text-align: left; cursor: pointer; font: inherit; color: inherit; }
.st-row-head:hover { background: #f8fafc; }
.st-row-name { display: grid; grid-template-columns: 10px 1fr; column-gap: 10px; align-items: center; min-width: 0; }
.st-row-name b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-row-name small { grid-column: 2; font-size: 12.5px; color: var(--muted); }
.st-dot { width: 10px; height: 10px; border-radius: 50%; background: #b7c0cc; }
.is-online .st-dot { background: #12a464; box-shadow: 0 0 0 4px rgba(18,164,100,.14); }
.is-flagged .st-dot { background: var(--red); }
.st-row-nums { display: flex; gap: 22px; }
.st-row-nums span { display: block; font-size: 11px; color: #7a8594; }
.st-row-nums b { display: block; font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.st-row-marks { display: flex; gap: 4px; }
.st-row-marks i { width: 10px; height: 10px; border-radius: 3px; background: #d5dbe3; }
.st-row-marks .mk-pass { background: #12a464; }
.st-row-marks .mk-fail { background: var(--red); }
.st-row-chev { width: 9px; height: 9px; border-right: 2px solid #9aa5b3; border-bottom: 2px solid #9aa5b3; transform: rotate(45deg); transition: transform .15s; justify-self: center; }
.st-row.open .st-row-chev { transform: rotate(-135deg); }
.st-row-body { padding: 4px 20px 20px; }
.st-row-body .st-grid { margin-top: 6px; }
.st-setup { margin-top: 16px; padding-top: 14px; border-top: 1px solid #edf0f4; }
.st-setup h4 { margin: 0 0 4px; font-size: 14px; }
.st-setup p { margin-top: 8px; }
.st-setup .code { border-radius: 8px; }
.st-setup .code pre { white-space: pre-wrap; word-break: break-all; font-size: 12.5px; }
.acc2-ledger td, .acc2-ledger th { padding: 10px 14px; font-size: 13px; }
#discord-card .st-card { margin-top: 0 !important; border-radius: 14px; border-color: #e2e7ee; padding: 18px 20px; box-shadow: 0 1px 2px rgba(16,24,40,.04), 0 10px 30px rgba(16,24,40,.05); }
#discord-card .st-card h2, #discord-card .st-card h3 { font-size: 15px; margin: 0; }
.acc2-side #discord-card:not(:empty) + .sheet { margin-top: 16px; }
.acc2-help ul { list-style: none; margin: 0; padding: 0; }
.acc2-help li { padding: 12px 20px; border-bottom: 1px solid #edf0f4; }
.acc2-help li:last-child { border-bottom: 0; }
.acc2-help a { font-weight: 600; text-decoration: none; }
.acc2-help span { display: block; font-size: 12.5px; color: var(--muted); }
@media (max-width: 980px) {
  .acc2-grid { grid-template-columns: 1fr; }
  .acc2-figs { grid-template-columns: repeat(2, 1fr); }
  .acc2-figs div:nth-child(2) { border-right: 0; }
  .acc2-figs div:nth-child(-n+2) { border-bottom: 1px solid #edf0f4; }
  .st-row-head { grid-template-columns: minmax(0, 1fr) 18px; }
  .st-row-nums, .st-row-marks { display: none; }
  .acc2-form-row { grid-template-columns: 1fr; }
}

/* ---------- legal pages and cookie settings ---------- */
.legal { padding: 26px 0 64px; }
.legal-wrap { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 24px; align-items: start; }
.legal-nav { position: sticky; top: 84px; display: grid; gap: 2px; }
.legal-nav a { padding: 9px 12px; border-radius: 8px; color: var(--muted); font-weight: 600; font-size: 14px; text-decoration: none; }
.legal-nav a:hover { background: #fff; color: var(--text); }
.legal-nav a[aria-current="page"] { background: #fff; color: var(--text); box-shadow: inset 3px 0 0 #1ea7ff; }
.legal-stack { display: grid; gap: 16px; min-width: 0; }
.legal-doc { padding: 0 0 34px; }
.legal-head { padding: 28px 36px 22px; border-bottom: 1px solid #edf0f4; margin-bottom: 26px; }
.legal-head h1 { font-size: 30px; letter-spacing: -0.02em; margin: 0; }
.legal-head p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.legal-doc .prose { padding: 0 36px; max-width: 820px; }
.legal-doc > .prose:first-child { padding-top: 30px; }
.legal-doc .prose h2 { font-size: 19px; margin: 34px 0 10px; scroll-margin-top: 84px; }
.legal-doc .prose h3 { font-size: 15.5px; margin: 22px 0 6px; }
.legal-doc .prose p, .legal-doc .prose li { font-size: 15px; line-height: 1.65; }
.legal-doc .prose .table-scroll { margin: 14px 0; border: 1px solid #edf0f4; border-radius: 10px; }
.legal-table td, .legal-table th { padding: 10px 14px; font-size: 13.5px; vertical-align: top; text-align: left; }
.legal-table code { font: 500 12.5px "JetBrains Mono", ui-monospace, monospace; background: #f1f4f8; padding: 1px 5px; border-radius: 4px; white-space: nowrap; }
.ck-form { display: grid; }
.ck-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 16px 20px; border-bottom: 1px solid #edf0f4; cursor: pointer; }
.ck-row:first-child { cursor: default; }
.ck-row b { font-size: 15px; }
.ck-row p { margin: 3px 0 0; color: var(--muted); font-size: 14px; max-width: 640px; }
.ck-always { font-size: 13px; font-weight: 600; color: #12a464; }
.ck-switch { position: relative; width: 42px; height: 24px; flex: none; }
.ck-switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.ck-switch i { position: absolute; inset: 0; border-radius: 12px; background: #c8ced7; transition: background .15s; pointer-events: none; }
.ck-switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.ck-switch input:checked + i { background: #0b84e0; }
.ck-switch input:checked + i::after { transform: translateX(18px); }
.ck-switch input:focus-visible + i { outline: 2px solid #1ea7ff; outline-offset: 2px; }
.ck-actions { display: flex; align-items: center; gap: 12px; padding: 16px 20px; }
@media (max-width: 860px) {
  .legal-wrap { grid-template-columns: 1fr; }
  .legal-nav { position: static; display: flex; overflow-x: auto; }
  .legal-head { padding: 22px 20px 18px; }
  .legal-doc .prose { padding: 0 20px; }
}

/* ---------- cookie notice ---------- */
.cookie-bar { position: fixed; left: 16px; bottom: 16px; z-index: 3000; max-width: 460px; display: flex; align-items: center; gap: 16px; padding: 14px 16px; background: #182230; color: #e8edf4; border: 1px solid #2a3647; border-radius: 12px; box-shadow: 0 12px 32px rgba(0,0,0,.28); font: 14px/1.5 Inter, system-ui, sans-serif; }
.cookie-bar p { margin: 0; }
.cookie-bar a { color: #6cc4ff; font-weight: 600; white-space: nowrap; }
.cookie-bar button { flex: none; height: 34px; padding: 0 18px; border: 0; border-radius: 8px; background: #0b84e0; color: #fff; font: 600 14px Inter, system-ui, sans-serif; cursor: pointer; }
.cookie-bar button:hover { background: #0a76c9; }
@media (max-width: 520px) { .cookie-bar { left: 10px; right: 10px; bottom: 10px; max-width: none; } }
.acc2-data ul { list-style: none; margin: 0; padding: 0; }
.acc2-data li { padding: 12px 20px; border-bottom: 1px solid #edf0f4; }
.acc2-data li:last-child { border-bottom: 0; }
.acc2-data a { font-weight: 600; text-decoration: none; }
.acc2-data span { display: block; font-size: 12.5px; color: var(--muted); }
.acc2-danger-link { padding: 0; border: 0; background: none; font: 600 15px Inter, system-ui, sans-serif; color: var(--red, #d92d20); cursor: pointer; }
.acc2-danger-link:hover { text-decoration: underline; }
.acc2-danger-link:disabled { opacity: .5; cursor: default; }
.acc2-close { padding: 14px 20px 18px; border-top: 1px solid #edf0f4; background: #fff8f7; display: grid; gap: 10px; }
.acc2-close .field input { height: 38px; border-radius: 8px; }
.sheet-btn.danger { background: #d92d20; border-color: #d92d20; color: #fff; }
.sheet-btn.danger:hover { background: #b42318; }
.st-remove { margin-top: 16px; padding-top: 12px; border-top: 1px solid #edf0f4; }
.st-remove .acc2-danger-link { font-size: 13.5px; }
.acc2-help a, .acc2-data a, .acc2-data .acc2-danger-link { font-size: 14.5px; }
#discord-card .btn { height: 38px; padding: 0 16px; font-size: 14px; border-radius: 8px; }

/* ---------- admin ---------- */
.adm { padding: 22px 0 56px; }
.adm-denied { padding: 40px 0; color: var(--muted); }
.adm-denied[hidden] { display: none; }
.adm .sheet + .sheet, .adm-panel > * + * { margin-top: 16px; }
.adm-top h1 { font-size: 22px; margin: 0; }
.adm-figs { grid-template-columns: repeat(6, 1fr); }
.adm-figs dd { font-size: 22px; }
.acc2-figs small { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); }
.adm-tabs { display: flex; gap: 2px; margin: 18px 0 16px; border-bottom: 1px solid #d9dee6; overflow-x: auto; }
.adm-tabs button { position: relative; padding: 10px 14px 12px; border: 0; background: none; font: 600 14px Inter, system-ui, sans-serif; color: var(--muted); cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.adm-tabs button:hover { color: var(--text); }
.adm-tabs button[aria-selected="true"] { color: var(--text); }
.adm-tabs button[aria-selected="true"]::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; background: #0b84e0; border-radius: 2px; }
.adm-count { min-width: 20px; height: 18px; padding: 0 6px; border-radius: 9px; background: #e6eaf0; color: #3b4757; font-size: 11.5px; line-height: 18px; text-align: center; }
.adm-count.is-warn { background: #fdecea; color: #b42318; }
.adm-charts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.adm-charts .sheet { margin: 0 !important; }
.adm-chart { padding: 14px 16px 12px; }
.adm-chart-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.adm-chart-head h3 { margin: 0; font-size: 13px; font-weight: 600; color: #5a6676; }
.adm-chart-head b { font-size: 18px; font-variant-numeric: tabular-nums; }
.adm-chart svg { display: block; width: 100%; height: 90px; border-bottom: 1px solid #e3e7ed; }
.adm-chart rect { fill: #1ea7ff; }
.adm-chart rect:hover { fill: #0b84e0; }
.adm-chart-axis { display: flex; justify-content: space-between; margin-top: 6px; font-size: 11.5px; color: #7a8594; }
.adm-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.adm-two > .sheet, .adm-three > .sheet { margin: 0 !important; }
.adm-three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: start; }
.adm-tools { display: flex; gap: 8px; flex-wrap: wrap; }
.adm-tools select, .adm-tools input { height: 34px; padding: 0 10px; border: 1px solid #c8ced7; border-radius: 8px; background: #fff; font: 14px Inter, system-ui, sans-serif; color: var(--text); }
.adm-tools input { width: 240px; }
.adm-tools :focus { outline: 2px solid #1ea7ff; outline-offset: 1px; }
.adm-table td { white-space: nowrap; }
.adm .sheet-table td.num, .adm .sheet-table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.adm .sheet-table td.mono { font: 500 12.5px "JetBrains Mono", ui-monospace, monospace; color: #3b4757; }
.adm .sheet-table td.neg { color: #b42318; }
.adm-cell b { display: block; }
.adm-cell small { display: block; font-size: 12px; color: var(--muted); }
.adm-status { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 13px; }
.adm-status i { width: 8px; height: 8px; border-radius: 50%; background: #b7c0cc; }
.adm-status.is-ok i { background: #12a464; }
.adm-status.is-warn i { background: #e8a200; }
.adm-status.is-bad i { background: #d92d20; }
.adm .ad-acts { display: flex; justify-content: flex-end; gap: 6px; }
.adm .ad-acts .btn-mini, .adm td > .btn-mini { margin-left: 0; cursor: pointer; }
.adm-bars { list-style: none; margin: 0; padding: 6px 0; }
.adm-bars li { position: relative; display: flex; justify-content: space-between; gap: 12px; padding: 8px 16px; font-size: 13.5px; }
.adm-bars li i { position: absolute; left: 16px; bottom: 3px; height: 3px; border-radius: 2px; background: #1ea7ff; max-width: calc(100% - 32px); }
.adm-bars li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-bars li b { font-variant-numeric: tabular-nums; }
.adm-bars li.empty { color: var(--muted); }
.adm-kv { display: grid; grid-template-columns: max-content 1fr; margin: 0; }
.adm-kv dt, .adm-kv dd { padding: 9px 16px; border-bottom: 1px solid #edf0f4; font-size: 13.5px; margin: 0; }
.adm-kv dt { color: var(--muted); }
.adm-kv dd { text-align: right; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.adm-kv dt:last-of-type, .adm-kv dd:last-of-type { border-bottom: 0; }
@media (max-width: 1100px) { .adm-figs { grid-template-columns: repeat(3, 1fr); } .adm-figs div:nth-child(3) { border-right: 0; } .adm-figs div:nth-child(-n+3) { border-bottom: 1px solid #edf0f4; } }
@media (max-width: 860px) { .adm-charts, .adm-two, .adm-three { grid-template-columns: 1fr; } .adm-tools input { width: 100%; } }
.adm > .wrap { max-width: 1400px; }
.adm-tabs { overflow-y: hidden; }
.adm-tabs button[aria-selected="true"]::after { bottom: 0; }
.adm .sheet-table th, .adm .sheet-table td { padding-left: 12px; padding-right: 12px; }
/* admin: accounts list and detail panel */
.adm-sortable th[data-sort] { cursor: pointer; user-select: none; white-space: nowrap; }
.adm-sortable th[data-sort]:hover { color: var(--text); }
.adm-sortable th[aria-sort="ascending"]::after { content: " ↑"; color: #0b84e0; }
.adm-sortable th[aria-sort="descending"]::after { content: " ↓"; color: #0b84e0; }
.adm-rowlink { cursor: pointer; }
.adm-rowlink:hover td { background: #f2f7fd !important; }
.adm-rowlink:focus-visible { outline: 2px solid #1ea7ff; outline-offset: -2px; }
.adm-rowlink.is-suspended td { color: #7a8594; }
.adm-tags { display: flex; gap: 6px; margin-top: 3px; }
.adm-tags em { font-style: normal; font-size: 11.5px; font-weight: 600; padding: 1px 7px; border-radius: 4px; }
.adm-tags .tag-bad { background: #fdecea; color: #b42318; }
.adm-tags .tag-warn { background: #fff4d6; color: #8a5a00; }
.adm-tools .adm-csv { height: 34px; display: inline-flex; align-items: center; color: var(--text); border-color: #c8ced7; background: #fff; }
body.adm-locked { overflow: hidden; }
.adm-drawer-bg { position: fixed; inset: 0; z-index: 900; background: rgba(10, 16, 26, .38); }
.adm-drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 901; width: min(720px, 100vw); background: #f4f6f9; box-shadow: -12px 0 40px rgba(10,16,26,.18); display: flex; flex-direction: column; }
.adm-drawer[hidden], .adm-drawer-bg[hidden] { display: none; }
.adm-drawer-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 18px 22px; background: #182230; color: #fff; }
.adm-drawer-head h2 { margin: 0; font-size: 18px; overflow-wrap: anywhere; }
.adm-drawer-head p { margin: 4px 0 0; font-size: 13px; color: #b9c3d0; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.adm-drawer-head .adm-status { color: #fff; }
.adm-drawer-x { width: 34px; height: 34px; border: 1px solid #3a4658; border-radius: 8px; background: none; color: #fff; font-size: 22px; line-height: 1; cursor: pointer; flex: none; }
.adm-drawer-x:hover { background: #26303d; }
.adm-drawer-body { flex: 1; overflow-y: auto; padding: 16px 22px 40px; }
.dr-alert { padding: 12px 16px; margin-bottom: 14px; border: 1px solid #f4c7c3; border-radius: 10px; background: #fdecea; color: #7a1d14; }
.dr-alert p { margin: 3px 0 0; font-size: 14px; }
.dr-kv { background: #fff; border: 1px solid #e2e7ee; border-radius: 12px; overflow: hidden; }
.dr-sec { margin-top: 18px; background: #fff; border: 1px solid #e2e7ee; border-radius: 12px; overflow: hidden; }
.dr-sec > h3 { margin: 0; padding: 12px 16px; font-size: 14px; border-bottom: 1px solid #edf0f4; background: #fafbfc; }
.dr-sec .table-scroll { max-height: 340px; overflow: auto; }
.dr-sec .sheet-table th { position: sticky; top: 0; z-index: 1; }
.dr-note { margin: 12px 16px 0; font-size: 13px; color: var(--muted); }
.dr-list { list-style: none; margin: 8px 0 0; padding: 0; }
.dr-list li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 16px; border-top: 1px solid #edf0f4; font-size: 13.5px; }
.dr-list li span { color: var(--muted); }
.dr-link { padding: 0; border: 0; background: none; font: 600 13.5px Inter, system-ui, sans-serif; color: #0b84e0; cursor: pointer; text-align: left; overflow-wrap: anywhere; }
.dr-link:hover { text-decoration: underline; }
.dr-form { display: grid; gap: 10px; padding: 12px 16px 16px; }
.dr-field { display: grid; gap: 4px; font-size: 13px; font-weight: 600; }
.dr-field input { height: 36px; padding: 0 10px; border: 1px solid #c8ced7; border-radius: 8px; font: 14px Inter, system-ui, sans-serif; }
.dr-field input:focus { outline: 2px solid #1ea7ff; outline-offset: 1px; border-color: #1ea7ff; }
.dr-form-row { display: flex; align-items: center; gap: 12px; }
.dr-actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 16px 16px; }
.adm-drawer .sheet-btn:not(.primary):not(.danger) { color: var(--text); border-color: #c8ced7; background: #fff; }
.adm-drawer .sheet-table td.num { text-align: right; }
.adm-drawer .sheet-table td.neg { color: #b42318; }
.dr-wrap { white-space: normal; min-width: 160px; }
.dr-subrow td { font-size: 12.5px; color: #b42318; padding-top: 0 !important; }

/* ---------- account: tabs, rewards, security ---------- */
.acc-tabs { display: flex; gap: 2px; margin: 18px 0 16px; border-bottom: 1px solid #d9dee6; overflow-x: auto; overflow-y: hidden; }
.acc-tabs button { position: relative; padding: 10px 14px 12px; border: 0; background: none; font: 600 14px Inter, system-ui, sans-serif; color: var(--muted); cursor: pointer; white-space: nowrap; }
.acc-tabs button:hover, .acc-tabs button[aria-selected="true"] { color: var(--text); }
.acc-tabs button[aria-selected="true"]::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 0; height: 2px; background: #0b84e0; border-radius: 2px; }
.acc-tabs button:focus-visible { outline: 2px solid #1ea7ff; outline-offset: -2px; border-radius: 6px; }
.acc-panel > * + * { margin-top: 16px; }
.acc-panel[hidden] { display: none; }
.acc-panel .acc2-data { max-width: 640px; }
.acc-cols { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.acc-cols > .sheet { margin: 0 !important; }
.acc-pw { display: grid; gap: 14px; padding: 18px 20px 20px; }
.acc-pw .pw input { height: 40px; }
.acc-sec-actions { padding: 14px 16px 16px; border-top: 1px solid #edf0f4; display: grid; gap: 8px; justify-items: start; }
.acc-sec-actions .sheet-btn, .acc-pw .sheet-btn:not(.primary) { color: var(--text); border-color: #c8ced7; background: #fff; }
.acc-sec-actions .sheet-btn:disabled { opacity: .5; cursor: default; }
.acc-status { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 13px; }
.acc-status i { width: 8px; height: 8px; border-radius: 50%; background: #b7c0cc; }
.acc-status.is-ok i { background: #12a464; }
.acc-status.is-warn i { background: #e8a200; }
.acc-status.is-bad i { background: #d92d20; }
.rw-figs { grid-template-columns: repeat(3, 1fr); }
.rw-filter { display: flex; gap: 2px; flex-wrap: wrap; }
.rw-filter[hidden] { display: none; }
.rw-filter button { padding: 6px 10px; border: 0; border-radius: 6px; background: none; font: 600 13.5px Inter, system-ui, sans-serif; color: var(--muted); cursor: pointer; }
.rw-filter button:hover { color: var(--text); background: #eef1f5; }
.rw-filter button[aria-selected="true"] { color: #fff; background: #26303d; }
.rw-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1px; background: #edf0f4; }
.rw-grid > .acc2-empty { grid-column: 1 / -1; background: #fff; }
.rw-item { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; background: #fff; }
.rw-item.is-soon h3 { color: #3b4757; }
.rw-meta { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; font-weight: 600; color: #7a8594; }
.rw-label { color: #0b6fc0; }
.is-soon .rw-label { color: #8a5a00; }
.rw-item h3 { margin: 0; font-size: 16px; }
.rw-desc { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.5; }
.rw-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-top: auto; padding-top: 10px; }
.rw-price b { font-size: 20px; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.rw-price span { font-size: 13px; color: var(--muted); }
.rw-stock { display: block; font-size: 12px; color: #7a8594; min-height: 15px; }
.rw-foot .sheet-btn:not(.primary) { color: var(--text); border-color: #c8ced7; background: #fff; }
.rw-foot .sheet-btn:disabled { opacity: .55; cursor: default; }
.rw-form { display: grid; gap: 10px; padding-top: 10px; border-top: 1px solid #edf0f4; margin-top: 4px; }
.rw-form .field input { height: 38px; border-radius: 8px; }
.rw-form .sheet-btn:not(.primary) { color: var(--text); border-color: #c8ced7; background: #fff; }
.rw-suggest { margin: 0; padding: 14px 20px; border-top: 1px solid #edf0f4; font-size: 13.5px; color: var(--muted); }
/* admin rewards */
.adm-rw { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.adm-rw > .sheet { margin: 0 !important; }
.rwf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rwf-check { display: flex; align-items: center; gap: 8px; font-size: 13.5px; }
.adm .sheet-btn:not(.primary):not(.danger) { color: var(--text); border-color: #c8ced7; background: #fff; }
.adm .sheet-head:not(.sheet-head-light) .sheet-btn:not(.primary) { color: #fff; border-color: rgba(255,255,255,.45); background: transparent; }
@media (max-width: 900px) { .acc-cols, .adm-rw { grid-template-columns: 1fr; } .rw-figs { grid-template-columns: 1fr 1fr 1fr; } }
.rw-foot { flex-wrap: wrap; }
.rw-foot .sheet-btn { white-space: nowrap; }
.adm-rw .adm-table td:first-child { white-space: normal; min-width: 220px; }
.adm-rw .adm-table td, .adm-rw .adm-table th { padding-left: 10px; padding-right: 10px; }
td.is-returned { color: var(--muted); }
.acct-menu .acct-sep { height: 1px; margin: 6px 0; background: rgba(255,255,255,.1); }

/* ---------- rewards v2: photo cards (account + admin) ---------- */
.rw-shop { overflow: hidden; }
.rw-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; padding: 22px 24px 18px; border-bottom: 1px solid #edf0f4; }
.rw-head h2 { margin: 0; font-size: 20px; letter-spacing: -0.01em; }
.rw-head p { margin: 4px 0 0; color: var(--muted); font-size: 14.5px; max-width: 520px; }
.rw-balance { display: flex; gap: 28px; margin: 0; }
.rw-balance dt { font-size: 12px; font-weight: 600; color: #7a8594; }
.rw-balance dd { margin: 2px 0 0; font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.rw-balance div:first-child dd { color: #0b84e0; }
.rw-shop .rw-filter { padding: 12px 20px 0; }
.rw-shop .rw-grid { gap: 16px; padding: 16px 20px 20px; background: none; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.rw-item { padding: 0; border: 1px solid #e2e7ee; border-radius: 12px; overflow: hidden; gap: 0; transition: box-shadow .15s, border-color .15s; }
.rw-item:hover { border-color: #cfd6df; box-shadow: 0 6px 20px rgba(16,24,40,.07); }
.rw-photo { position: relative; aspect-ratio: 4 / 3; background: #eef1f5; overflow: hidden; }
.rw-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rw-photo.is-empty { display: grid; place-items: center; background: linear-gradient(160deg, #182230, #0e1622); }
.rw-photo.is-empty img { width: 64px; height: 64px; opacity: .55; }
.rw-ribbon { position: absolute; left: 10px; top: 10px; padding: 4px 9px; border-radius: 6px; background: rgba(12,18,28,.82); color: #fff; font-size: 12px; font-weight: 600; }
.rw-ribbon.is-hidden { background: rgba(90,102,118,.9); left: auto; right: 10px; }
.rw-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; flex: 1; }
.rw-item.is-soon .rw-photo img:not([src$="logo-mark.svg"]) { filter: grayscale(.35); }
.rw-empty { grid-column: 1 / -1; display: flex; padding: 34px 28px; border: 1px dashed #cfd6df; border-radius: 12px; background: #fafbfc; }
.rw-empty h3 { margin: 0; font-size: 17px; }
.rw-empty p { margin: 6px 0 0; color: var(--muted); max-width: 560px; font-size: 14.5px; line-height: 1.55; }
.rw-empty-acts { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.rw-empty-acts .sheet-btn:not(.primary) { color: var(--text); border-color: #c8ced7; background: #fff; }
.rw-empty-acts a { text-decoration: none; }
.rw-shop .rw-suggest { padding: 14px 24px; }
/* admin reward cards */
.arw-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; padding: 16px; }
.arw-card { display: flex; flex-direction: column; border: 1px solid #e2e7ee; border-radius: 12px; overflow: hidden; background: #fff; }
.arw-card.is-hidden { opacity: .72; }
.arw-body { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px 16px; flex: 1; }
.arw-body h3 { margin: 0; font-size: 16px; }
.arw-facts { display: grid; grid-template-columns: repeat(4, 1fr); margin: 4px 0 0; border: 1px solid #edf0f4; border-radius: 8px; }
.arw-facts div { padding: 7px 10px; border-right: 1px solid #edf0f4; }
.arw-facts div:last-child { border-right: 0; }
.arw-facts dt { font-size: 11px; color: #7a8594; font-weight: 600; }
.arw-facts dd { margin: 1px 0 0; font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.arw-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: auto; padding-top: 6px; flex-wrap: wrap; }
.arw-seg { display: inline-flex; border: 1px solid #c8ced7; border-radius: 8px; overflow: hidden; background: #fff; }
.arw-seg button { padding: 7px 11px; border: 0; border-right: 1px solid #c8ced7; background: none; font: 600 12.5px Inter, system-ui, sans-serif; color: #5a6676; cursor: pointer; white-space: nowrap; }
.arw-seg button:last-child { border-right: 0; }
.arw-seg button:hover { background: #f2f5f8; color: var(--text); }
.arw-seg button[aria-pressed="true"].is-live { background: #12a464; color: #fff; }
.arw-seg button[aria-pressed="true"].is-soon { background: #e8a200; color: #1d1400; }
.arw-seg button[aria-pressed="true"].is-hidden { background: #5a6676; color: #fff; }
.arw-seg button:focus-visible { outline: 2px solid #1ea7ff; outline-offset: -2px; }
.arw-grid > .rw-empty { grid-column: 1 / -1; }
/* reward editor */
.adm-drawer:has(.arw-edit) { width: min(940px, 100vw); }
.arw-edit { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 20px; align-items: start; }
.arw-form { display: grid; gap: 16px; background: #fff; border: 1px solid #e2e7ee; border-radius: 12px; padding: 18px; }
.arw-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.arw-fields .is-wide { grid-column: 1 / -1; }
.arw-fields textarea { padding: 8px 10px; border: 1px solid #c8ced7; border-radius: 8px; font: 14px/1.5 Inter, system-ui, sans-serif; resize: vertical; }
.arw-fields textarea:focus { outline: 2px solid #1ea7ff; outline-offset: 1px; border-color: #1ea7ff; }
.dr-field small { font-weight: 400; font-size: 12px; color: #7a8594; }
.arw-drop { display: grid; grid-template-columns: 160px 1fr; gap: 16px; align-items: center; padding: 12px; border: 1px dashed #c8ced7; border-radius: 10px; background: #fafbfc; }
.arw-drop.is-over { border-color: #0b84e0; background: #eef6fd; }
.arw-drop-img { aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; background: #e6eaf0; display: grid; place-items: center; color: #7a8594; font-size: 12.5px; }
.arw-drop-img img { width: 100%; height: 100%; object-fit: cover; }
.arw-drop-tx { display: grid; gap: 4px; font-size: 13.5px; }
.arw-drop-tx span { color: var(--muted); }
.arw-drop-tx small { color: #b42318; font-size: 12.5px; }
.arw-drop-acts { display: flex; align-items: center; gap: 14px; margin-top: 6px; }
.arw-drop-acts .acc2-danger-link { font-size: 13px; }
.arw-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding-top: 4px; border-top: 1px solid #edf0f4; padding-top: 14px; }
.arw-actions .arw-del { margin-left: auto; font-size: 13.5px; }
.arw-preview { position: sticky; top: 0; }
.arw-preview-h { margin: 0 0 8px; font-size: 12px; font-weight: 600; color: #7a8594; }
.arw-preview.is-hidden .arw-prev-card { opacity: .55; }
.arw-prev-card { background: #fff; pointer-events: none; }
@media (max-width: 860px) { .arw-edit { grid-template-columns: 1fr; } .arw-preview { position: static; order: -1; max-width: 320px; } .arw-drop { grid-template-columns: 1fr; } }
.sheet-head-light .sheet-btn.primary, .adm .sheet-btn.primary { background: #0b84e0; border-color: #0b84e0; color: #fff; } .sheet-head-light .sheet-btn.primary:hover, .adm .sheet-btn.primary:hover { background: #0a76c9; }
.arw-fields .dr-field { align-content: start; }

/* ---------- GPS interference map ---------- */
.gpsp { padding: 22px 0 56px; }
.gps-top h1 { font-size: 22px; margin: 0; }
.gps-day { display: flex; align-items: center; gap: 6px; }
.gps-day select { height: 34px; padding: 0 10px; border: 1px solid rgba(255,255,255,.35); border-radius: 8px; background: #26303d; color: #fff; font: 600 14px Inter, system-ui, sans-serif; }
.gps-day .sheet-btn { min-width: 36px; justify-content: center; }
.gps-day .sheet-btn:disabled { opacity: .4; cursor: default; }
.gps-mapwrap { position: relative; }
#gps-map { height: min(66vh, 640px); background: #dfe4ea; }
#gps-map .leaflet-tile-pane { filter: grayscale(1) brightness(1.04) contrast(.92); }
.gps-legend { position: absolute; left: 12px; bottom: 12px; z-index: 500; display: grid; gap: 4px; padding: 10px 12px; background: rgba(255,255,255,.95); border: 1px solid #d9dee6; border-radius: 10px; font-size: 12.5px; box-shadow: 0 4px 14px rgba(16,24,40,.1); }
.gps-legend b { font-size: 12px; margin-bottom: 2px; }
.gps-legend span { display: flex; align-items: center; gap: 8px; }
.gps-legend i { width: 14px; height: 12px; clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%); }
.lg-low { background: rgba(18,164,100,.55); } .lg-mid { background: #e8a200; } .lg-high { background: #d92d20; } .lg-few { background: rgba(138,150,166,.4); }
.gps-status { position: absolute; left: 50%; top: 16px; transform: translateX(-50%); z-index: 500; margin: 0; padding: 8px 14px; background: #182230; color: #fff; border-radius: 8px; font-size: 13.5px; }
.gps-status[hidden] { display: none; }
.gps-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px; margin-top: 16px; align-items: start; }
.gps-grid > .sheet { margin: 0 !important; }
.gps-row { cursor: pointer; }
.gps-row:hover td { background: #f2f7fd !important; }
.gps-table td.num, .gps-table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.gps-prose { padding: 16px 20px 20px; }
.gps-prose p { font-size: 14.5px; }
@media (max-width: 900px) { .gps-grid { grid-template-columns: 1fr; } .acc2-figs.gps-figs { grid-template-columns: 1fr 1fr; } }
.err-det { max-width: 560px; white-space: normal; }
.err-det summary { cursor: pointer; font-weight: 600; overflow-wrap: anywhere; }
.err-det pre { margin: 8px 0 0; padding: 10px; max-height: 220px; overflow: auto; background: #0f1722; color: #d6dee9; border-radius: 8px; font: 12px/1.5 "JetBrains Mono", ui-monospace, monospace; white-space: pre-wrap; word-break: break-all; }
.vs-chart .adm-chart { padding: 16px 20px 14px; border-top: 1px solid #edf0f4; }
.vs-chart .adm-chart svg { height: 140px; }
.vs-note { margin: 4px 2px 0; font-size: 13px; color: var(--muted); max-width: 760px; }

/* ---------- account v3: quieter, modern dashboard ---------- */
.acc3 { padding: 30px 0 64px; }
.acc3 .a3-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.acc3 .a3-title h1 { margin: 0; font-size: 26px; font-weight: 700; letter-spacing: -0.02em; }
.acc3 .a3-title p { margin: 4px 0 0; color: #5a6676; font-size: 14px; }
.acc3 .a3-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.a3-btn { display: inline-flex; align-items: center; height: 34px; padding: 0 13px; border: 1px solid #d5dbe3; border-radius: 8px; background: #fff; color: #182230; font: 500 13.5px Inter, system-ui, sans-serif; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .12s, border-color .12s; }
.a3-btn:hover { background: #f6f8fa; border-color: #c4ccd6; }
.a3-btn.primary { background: #0b84e0; border-color: #0b84e0; color: #fff; }
.a3-btn.primary:hover { background: #0a76c9; border-color: #0a76c9; }
.a3-btn:focus-visible { outline: 2px solid #1ea7ff; outline-offset: 2px; }
.a3-btn[hidden] { display: none; }
.a3-stats { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; background: #fff; border: 1px solid #e3e7ed; border-radius: 12px; }
.a3-stats div { padding: 18px 20px; border-right: 1px solid #eef1f4; }
.a3-stats div:last-child { border-right: 0; }
.a3-stats dt { font-size: 13px; font-weight: 500; color: #5a6676; }
.a3-stats dd { margin: 6px 0 2px; font-size: 28px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: #111a26; }
.a3-stats small { font-size: 12.5px; color: #8a95a3; }
.acc3 .acc-tabs { margin: 26px 0 22px; border-bottom-color: #e3e7ed; }
.acc3 .acc-tabs button { font-weight: 500; font-size: 14px; padding: 10px 12px 12px; }
.acc3 .acc-tabs button[aria-selected="true"] { font-weight: 600; }
.a3-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
.a3-sec { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0 0 10px; min-height: 34px; }
.a3-sec h2 { margin: 0; font-size: 15px; font-weight: 600; }
.a3-sec p { margin: 2px 0 0; font-size: 13px; color: #8a95a3; }
.a3-side .a3-sec:not(:first-child) { margin-top: 26px; }
.a3-card { background: #fff; border: 1px solid #e3e7ed; border-radius: 12px; overflow: hidden; }
/* station table */
.a3-cols, .acc3 .st-row-head { display: grid; grid-template-columns: minmax(0, 1fr) 72px 84px 92px 64px 16px; gap: 12px; align-items: center; }
.a3-cols { padding: 10px 18px; border-bottom: 1px solid #eef1f4; background: #fafbfc; font-size: 12px; font-weight: 500; color: #8a95a3; }
.a3-cols span:nth-child(n+2):nth-child(-n+4) { text-align: right; }
.acc3 .st-row-head { padding: 14px 18px; }
.acc3 .st-row-nums { display: contents; }
.acc3 .st-row-nums span { display: none; }
.acc3 .st-row-nums div { text-align: right; }
.acc3 .st-row-nums b { font-size: 14px; font-weight: 500; }
.acc3 .st-row-name b { font-size: 14.5px; font-weight: 600; }
.acc3 .st-row-name small { font-size: 12.5px; color: #8a95a3; }
.acc3 .is-online .st-dot { box-shadow: none; }
.acc3 .st-row-marks { justify-content: flex-start; }
.acc3 .st-row-marks i { width: 8px; height: 8px; border-radius: 50%; }
.acc3 .st-row-chev { width: 7px; height: 7px; border-width: 1.6px; }
.acc3 .st-row-head:hover { background: #fafbfc; }
.acc3 .st-row { border-bottom-color: #eef1f4; }
.acc3 .st-row-body { padding: 4px 18px 20px; background: #fcfdfe; border-top: 1px solid #eef1f4; }
.acc3 .acc2-empty { padding: 34px 20px; }
.acc3 .acc2-form { background: #fafbfc; border-bottom: 1px solid #eef1f4; }
/* activity */
.a3-ledger { width: 100%; border-collapse: collapse; font-size: 13px; }
.a3-ledger th { padding: 9px 14px; text-align: left; font-size: 12px; font-weight: 500; color: #8a95a3; background: #fafbfc; border-bottom: 1px solid #eef1f4; }
.a3-ledger td { padding: 10px 14px; border-bottom: 1px solid #f1f3f6; color: #2c3846; }
.a3-ledger tr:last-child td { border-bottom: 0; }
.a3-ledger .num { text-align: right; font-variant-numeric: tabular-nums; }
.a3-ledger .empty-row td { text-align: center; color: #8a95a3; padding: 22px 14px; }
.a3-foot { margin: 0; padding: 10px 14px; border-top: 1px solid #eef1f4; font-size: 12.5px; color: #8a95a3; line-height: 1.5; }
/* discord card, as a quiet panel */
.acc3 #discord-card:not(:empty) { margin-top: 26px; }
.acc3 #discord-card .st-card { padding: 16px 18px; border: 1px solid #e3e7ed; border-radius: 12px; box-shadow: none; background: #fff; }
.acc3 #discord-card .st-card h2, .acc3 #discord-card .st-card h3 { font-size: 15px; font-weight: 600; margin: 0; }
.acc3 #discord-card .st-card p { font-size: 13.5px; color: #5a6676; line-height: 1.55; }
.acc3 #discord-card .btn { height: 34px; padding: 0 13px; font-size: 13.5px; font-weight: 500; border-radius: 8px; background: #fff; color: #182230; border: 1px solid #d5dbe3; box-shadow: none; }
.acc3 #discord-card .btn:hover { background: #f6f8fa; }
/* help links */
.a3-links { display: grid; }
.a3-links a { position: relative; display: grid; gap: 2px; padding: 12px 36px 12px 16px; border-bottom: 1px solid #f1f3f6; text-decoration: none; color: inherit; }
.a3-links a:last-child { border-bottom: 0; }
.a3-links a::after { content: ""; position: absolute; right: 16px; top: 50%; width: 6px; height: 6px; border-right: 1.6px solid #9aa5b3; border-top: 1.6px solid #9aa5b3; transform: translateY(-50%) rotate(45deg); }
.a3-links a:hover { background: #fafbfc; }
.a3-links b { font-size: 14px; font-weight: 500; color: #182230; }
.a3-links span { font-size: 12.5px; color: #8a95a3; }
/* other tabs: same quiet panels */
.acc3 .sheet { box-shadow: none; border: 1px solid #e3e7ed; border-radius: 12px; }
.acc3 .sheet-head-light { background: #fff; border-bottom: 1px solid #eef1f4; }
.acc3 .sheet-head-light .sheet-title h2 { font-size: 15px; font-weight: 600; }
.acc3 .sheet-table th { text-transform: none; letter-spacing: 0; font-size: 12px; font-weight: 500; color: #8a95a3; }
.acc3 .sheet-btn.primary { font-weight: 500; }
@media (max-width: 1000px) {
  .a3-grid { grid-template-columns: 1fr; }
  .a3-stats { grid-template-columns: 1fr 1fr; }
  .a3-stats div:nth-child(2) { border-right: 0; }
  .a3-stats div:nth-child(-n+2) { border-bottom: 1px solid #eef1f4; }
}
@media (max-width: 640px) {
  .a3-cols { display: none; }
  .acc3 .st-row-head { grid-template-columns: minmax(0, 1fr) 16px; }
  .acc3 .st-row-nums, .acc3 .st-row-marks { display: none; }
  .acc3 .a3-head { align-items: flex-start; }
}

/* ---------- GPS interference map (full screen, dark) ---------- */
.gx-page { background: #0b111b; }
.gx { position: relative; height: calc(100dvh - 57px); min-height: 560px; background: #0b111b; }
#gps-map { position: absolute; inset: 0; background: #0b111b; }
#gps-map .leaflet-tile-pane { filter: invert(1) hue-rotate(195deg) saturate(.3) brightness(.72) contrast(1.12); }
#gps-map .leaflet-control-zoom a { background: #141d2b; color: #dbe3ee; border-color: #263244; }
#gps-map .leaflet-control-zoom a:hover { background: #1b2638; }
#gps-map .leaflet-control-attribution { background: rgba(11,17,27,.7); color: #8a96a8; }
#gps-map .leaflet-control-attribution a { color: #a9b8cc; }
#gps-map .leaflet-tooltip { background: #141d2b; color: #e8edf4; border: 1px solid #2a3647; box-shadow: 0 6px 18px rgba(0,0,0,.35); font: 13px Inter, system-ui, sans-serif; }
#gps-map .leaflet-tooltip-top::before { border-top-color: #2a3647; }
.gx-panel { position: absolute; z-index: 600; top: 16px; left: 16px; bottom: 16px; width: 340px; display: flex; flex-direction: column; gap: 18px; padding: 20px; overflow-y: auto;
  background: #111927; border: 1px solid #222e40; border-radius: 14px; color: #e8edf4; box-shadow: 0 16px 40px rgba(0,0,0,.35); }
.gx-head h1 { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.gx-head p { margin: 4px 0 0; font-size: 13.5px; color: #8e9bb0; }
.gx-day { display: grid; grid-template-columns: 36px 1fr 36px; gap: 6px; }
.gx-day button, .gx-day select { height: 36px; border: 1px solid #2a3647; border-radius: 8px; background: #172131; color: #e8edf4; font: 500 13.5px Inter, system-ui, sans-serif; }
.gx-day button { display: grid; place-items: center; cursor: pointer; }
.gx-day button svg { width: 16px; height: 16px; }
.gx-day button:hover:not(:disabled), .gx-day select:hover { border-color: #3a4a61; background: #1b2638; }
.gx-day button:disabled { opacity: .35; cursor: default; }
.gx-day select { padding: 0 10px; cursor: pointer; }
.gx-day :focus-visible { outline: 2px solid #1ea7ff; outline-offset: 1px; }
.gx-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; border: 1px solid #222e40; border-radius: 10px; }
.gx-stats div { padding: 10px 12px; border-right: 1px solid #222e40; }
.gx-stats div:last-child { border-right: 0; }
.gx-stats dt { font-size: 11.5px; color: #8e9bb0; }
.gx-stats dd { margin: 3px 0 0; font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
.gx-scale { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; }
.gx-scale i { height: 8px; border-radius: 2px; }
.s-low { background: rgba(34,197,94,.65); } .s-mid { background: #f5b300; } .s-high { background: #ff4d4d; }
.gx-scale-labels { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 6px; font-size: 12px; color: #b4c0d0; }
.gx-scale-labels span:nth-child(2) { text-align: center; } .gx-scale-labels span:last-child { text-align: right; }
.gx-legend p { margin: 8px 0 0; font-size: 12px; color: #8e9bb0; line-height: 1.5; }
.gx-few { display: inline-flex; align-items: center; gap: 6px; }
.gx-few i { width: 10px; height: 10px; border-radius: 2px; background: rgba(148,163,184,.35); }
.gx-list h2 { margin: 0 0 8px; font-size: 13px; font-weight: 600; color: #b4c0d0; }
.gx-list ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.gx-list button { position: relative; width: 100%; display: grid; grid-template-columns: 1fr auto; gap: 1px 10px; padding: 9px 10px 11px; border: 0; border-radius: 8px; background: none; color: inherit; text-align: left; cursor: pointer; font: inherit; }
.gx-list button:hover { background: #172131; }
.gx-list button:focus-visible { outline: 2px solid #1ea7ff; outline-offset: -2px; }
.gx-place { font-size: 14px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gx-share { font-size: 14px; font-weight: 600; color: #ff8a8a; font-variant-numeric: tabular-nums; }
.gx-list small { grid-column: 1 / -1; font-size: 12px; color: #8e9bb0; }
.gx-list button i { position: absolute; left: 10px; bottom: 4px; height: 2px; border-radius: 1px; background: #ff4d4d; max-width: calc(100% - 20px); opacity: .8; }
.gx-none { font-size: 13px; color: #8e9bb0; padding: 4px 0; }
.gx-more { margin-top: auto; font-size: 13px; color: #6cc4ff; text-decoration: none; }
.gx-more:hover { text-decoration: underline; }
.gx-status { position: absolute; z-index: 600; left: 50%; top: 18px; transform: translateX(-50%); margin: 0; padding: 8px 14px; background: #141d2b; border: 1px solid #2a3647; color: #e8edf4; border-radius: 8px; font-size: 13.5px; }
.gx-status[hidden] { display: none; }
.gx-info { background: #f4f6f9; padding: 56px 0 64px; }
.gx-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.gx-info h2 { margin: 0 0 12px; font-size: 20px; letter-spacing: -0.01em; }
.gx-info p { margin: 0 0 12px; color: #3b4757; font-size: 15px; line-height: 1.65; max-width: 560px; }
@media (max-width: 900px) {
  .gx { height: auto; min-height: 0; display: flex; flex-direction: column; }
  #gps-map { position: relative; height: 62vh; }
  .gx-panel { position: static; width: auto; border-radius: 0; border: 0; border-top: 1px solid #222e40; box-shadow: none; }
  .gx-more { margin-top: 0; }
  .gx-info-grid { grid-template-columns: 1fr; gap: 24px; }
}
.gx #gps-map { height: auto; }
@media (max-width: 900px) { .gx #gps-map { height: 62vh; } }
/* invites */
.acc3 .inv { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 0; overflow: hidden; }
.inv-main { padding: 22px 24px; }
.inv-main h2 { margin: 0; font-size: 17px; }
.inv-main p { margin: 6px 0 0; color: #5a6676; font-size: 14px; line-height: 1.55; max-width: 560px; }
.inv-link { display: flex; gap: 8px; margin-top: 14px; max-width: 560px; }
.inv-link input { flex: 1; min-width: 0; height: 34px; padding: 0 10px; border: 1px solid #d5dbe3; border-radius: 8px; background: #fafbfc; font: 500 13px "JetBrains Mono", ui-monospace, monospace; color: #182230; }
.inv-small { font-size: 12.5px !important; color: #8a95a3 !important; }
.inv-stats { margin: 0; display: grid; align-content: center; border-left: 1px solid #eef1f4; background: #fafbfc; }
.inv-stats div { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 12px 20px; border-bottom: 1px solid #eef1f4; }
.inv-stats div:last-child { border-bottom: 0; }
.inv-stats dt { font-size: 13px; color: #5a6676; }
.inv-stats dd { margin: 0; font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; }
.invite-note { margin: 14px 0 0; padding: 10px 14px; max-width: 640px; border-left: 3px solid #1ea7ff; background: rgba(30,167,255,.1); color: inherit; font-size: 14.5px; border-radius: 0 8px 8px 0; }
@media (max-width: 760px) { .acc3 .inv { grid-template-columns: 1fr; } .inv-stats { border-left: 0; border-top: 1px solid #eef1f4; } }
/* aircraft page on phones: keep everything inside the screen */
@media (max-width: 900px) {
  .sheet-body-v2 { grid-template-columns: minmax(0, 1fr); }
  .sheet-body-v2 > * { min-width: 0; }
  .sheet-gallery .acp2-thumbs { overflow-x: auto; scrollbar-width: none; }
  .sheet-gallery .acp2-thumb { flex: none; }
  .now-card { margin: 12px; }
  .now-card * { min-width: 0; }
}
@media (max-width: 520px) {
  .sheet-side .sheet-facts div { padding: 11px 14px; }
  .sheet-head .sheet-actions { width: 100%; }
}
.sheet-actions .sheet-btn { white-space: nowrap; }

/* ---------- about (plain, editorial) ---------- */
.ab2 { padding: 48px 0 72px; }
.ab2-grid { display: grid; grid-template-columns: minmax(0, 680px) 300px; gap: 64px; justify-content: space-between; align-items: start; }
.ab2-main h1 { margin: 0; font-size: 38px; font-weight: 700; letter-spacing: -0.025em; }
.ab2-lead { margin: 16px 0 8px; font-size: 19px; line-height: 1.6; color: #2c3846; }
.ab2-main h2 { margin: 40px 0 10px; font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.ab2-main p { margin: 0 0 14px; font-size: 16px; line-height: 1.75; color: #3b4757; }
.ab2-main a { color: #0b6fc0; text-underline-offset: 2px; }
.ab2-side { position: sticky; top: 84px; }
.ab2-facts { margin: 0; background: #fff; border: 1px solid #e3e7ed; border-radius: 12px; overflow: hidden; }
.ab2-facts-h { padding: 12px 16px; font-size: 13px; font-weight: 600; color: #182230; background: #fafbfc; border-bottom: 1px solid #eef1f4; }
.ab2-facts div:not(.ab2-facts-h) { padding: 11px 16px; border-bottom: 1px solid #f1f3f6; }
.ab2-facts div:last-child { border-bottom: 0; }
.ab2-facts dt { font-size: 12.5px; color: #8a95a3; }
.ab2-facts dd { margin: 2px 0 0; font-size: 15px; font-weight: 500; color: #182230; font-variant-numeric: tabular-nums; }
.ab2-links { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
@media (max-width: 960px) {
  .ab2-grid { grid-template-columns: 1fr; gap: 32px; }
  .ab2-side { position: static; order: -1; }
  .ab2-main h1 { font-size: 30px; }
}

/* ---------- close account steps ---------- */
.cl { padding: 18px 20px 20px; border-top: 1px solid #eef1f4; }
.cl[hidden] { display: none; }
.cl-steps { list-style: none; margin: 0 0 18px; padding: 0; display: flex; gap: 6px; counter-reset: cl; }
.cl-steps li { flex: 1; padding-top: 8px; border-top: 3px solid #e3e7ed; font-size: 12.5px; color: #8a95a3; }
.cl-steps li.is-done { border-top-color: #9aa5b3; color: #5a6676; }
.cl-steps li.is-now { border-top-color: #d92d20; color: #182230; font-weight: 600; }
.cl-pane h3 { margin: 0 0 6px; font-size: 17px; }
.cl-pane > p { margin: 0 0 12px; font-size: 14px; color: #5a6676; line-height: 1.55; }
.cl-options, .cl-loss { list-style: none; margin: 0 0 16px; padding: 0; border: 1px solid #e3e7ed; border-radius: 10px; overflow: hidden; }
.cl-options li, .cl-loss li { display: grid; gap: 2px; padding: 11px 14px; border-bottom: 1px solid #f1f3f6; }
.cl-options li:last-child, .cl-loss li:last-child { border-bottom: 0; }
.cl-options b, .cl-loss b { font-size: 14px; font-weight: 600; color: #182230; }
.cl-options span, .cl-loss span { font-size: 13px; color: #5a6676; line-height: 1.5; }
.cl-loss li { border-left: 3px solid #f4c7c3; }
.cl-warn { padding: 10px 12px; border-radius: 8px; background: #fdecea; color: #7a1d14 !important; font-weight: 500; }
.cl-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
#f-close { display: grid; gap: 12px; max-width: 420px; }
#f-close[hidden] { display: none; }
#f-close .field input { height: 38px; border-radius: 8px; }
.a3-btn.danger { background: #d92d20; border-color: #d92d20; color: #fff; }
.a3-btn.danger:hover:not(:disabled) { background: #b42318; }
.a3-btn:disabled { opacity: .45; cursor: not-allowed; }
.acc2-danger-link:disabled { opacity: .45; }

/* ---------- footer sits at the bottom on short pages ---------- */
body { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; }
body > .site-footer { flex-shrink: 0; }
.acc2-data .cl-steps li { padding: 8px 0 0; border-bottom: 0; }

/* ---------- airport pages ---------- */
.apt .sheet + .sheet, .apt-main > * + *, .apt-side > * + * { margin-top: 16px; }
.apt-figs { grid-template-columns: repeat(4, 1fr); }
.apt-flag { width: 18px; height: 13px; border-radius: 2px; vertical-align: -2px; margin: 0 6px 0 10px; box-shadow: 0 0 0 1px rgba(255,255,255,.2); }
.apt-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; align-items: start; margin-top: 16px; }
.apt-grid > div > .sheet:first-child, .apt-side > .sheet:first-child { margin-top: 0; }
.apt-live { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.apt-live-group { border-right: 1px solid #eef1f4; padding: 12px 0; }
.apt-live-group:last-child { border-right: 0; }
.apt-live-group h3 { margin: 0 16px 6px; font-size: 13px; font-weight: 600; color: #5a6676; }
.apt-live-group ul { list-style: none; margin: 0; padding: 0; }
.apt-live-group a { display: grid; grid-template-columns: auto 1fr; gap: 0 8px; padding: 7px 16px; color: inherit; text-decoration: none; }
.apt-live-group a:hover { background: #f6f9fc; }
.apt-live-group b { font-size: 14px; }
.apt-live-group span { font-size: 12.5px; color: #5a6676; align-self: center; }
.apt-live-group small { grid-column: 1 / -1; font-size: 12px; color: #8a95a3; }
.apt-empty { margin: 0; padding: 18px 16px; color: #8a95a3; font-size: 14px; }
.apt-live > .apt-empty { grid-column: 1 / -1; }
.apt-tabs { display: flex; gap: 2px; }
.apt-tabs button { padding: 6px 12px; border: 0; border-radius: 6px; background: none; font: 600 13.5px Inter, system-ui, sans-serif; color: #5a6676; cursor: pointer; }
.apt-tabs button:hover { background: #eef1f5; color: #182230; }
.apt-tabs button[aria-selected="true"] { background: #26303d; color: #fff; }
.apt-table td { white-space: nowrap; }
.apt-table a { color: #0b6fc0; text-decoration: none; font-weight: 500; }
.apt-table a:hover { text-decoration: underline; }
.apt-table .dim { color: #8a95a3; }
.apt-table .ap-code { margin-left: 2px; font-size: 12px; }
.apt-wx .adm-kv dd { text-align: right; }
.apt-metar { padding: 10px 16px 14px; font-size: 13px; }
.apt-metar summary { cursor: pointer; color: #0b6fc0; font-weight: 500; }
.apt-metar code { display: block; margin-top: 8px; padding: 10px; background: #f4f6f9; border-radius: 8px; font: 12.5px/1.5 "JetBrains Mono", ui-monospace, monospace; white-space: pre-wrap; word-break: break-word; }
.apt-list { list-style: none; margin: 0; padding: 0; }
.apt-list li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 16px; border-bottom: 1px solid #f1f3f6; font-size: 13.5px; }
.apt-list li:last-child { border-bottom: 0; }
.apt-list span { color: #5a6676; text-align: right; }
.apt-h3 { margin: 0; padding: 12px 16px 2px; font-size: 13px; font-weight: 600; color: #5a6676; }
.apt-side .adm-bars a { color: inherit; text-decoration: none; }
.apt-side .adm-bars a:hover { color: #0b6fc0; }
.apt-note { margin: 18px 2px 0; font-size: 13px; color: #8a95a3; max-width: 760px; }
@media (max-width: 1000px) { .apt-grid { grid-template-columns: 1fr; } .apt-figs { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px) { .apt-live { grid-template-columns: 1fr; } .apt-live-group { border-right: 0; border-bottom: 1px solid #eef1f4; } }
.apt .sheet-head .sheet-sub { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 0; }
.apt .apt-flag { margin-left: 12px; }
.apt-table td { white-space: normal; }
.apt-table td:first-child, .apt-table td:nth-child(2), .apt-table td:last-child { white-space: nowrap; }
.apt-table td:nth-child(3) { max-width: 180px; }

/* ---------- offline page and app install ---------- */
.offline { display: grid; place-items: center; padding: 48px 20px; }
.offline-box { max-width: 420px; text-align: center; display: grid; justify-items: center; gap: 10px; }
.offline-box h1 { margin: 8px 0 0; font-size: 24px; }
.offline-box p { margin: 0 0 8px; color: #5a6676; line-height: 1.55; }
.ab2-app { margin-top: 14px; padding: 16px; background: #fff; border: 1px solid #e3e7ed; border-radius: 12px; }
.ab2-app h2 { margin: 0 0 4px; font-size: 15px; }
.ab2-app p { margin: 0 0 10px; font-size: 13.5px; color: #5a6676; line-height: 1.5; }
.ab2-app p:last-child { margin-bottom: 0; }
.acct-menu .acct-install { color: #6cc4ff; border-top: 0; margin-top: 0; border-radius: 8px; }
.acct-menu .acct-install[hidden] { display: none; }
.apt-grid > * { min-width: 0; }
@media (max-width: 1000px) { .apt-grid { grid-template-columns: minmax(0, 1fr); } }
#a-place { display: inline-flex; align-items: center; flex-wrap: wrap; }
@media (max-width: 600px) { .apt .apt-flag { margin-left: 0; } .apt .sheet-head .sheet-sub { flex-direction: column; align-items: flex-start; } }
.st-why { margin: 8px 0 0; }

/* ---------- sign-in panel: live radar scope ---------- */
.auth-brand { position: relative; overflow: hidden; align-items: flex-end; background: #060d1f; padding: 0; }
.auth-scope { position: absolute; inset: 0; display: block; }
.auth-brand::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(6,13,31,0) 30%, rgba(6,13,31,.82) 62%, #060d1f 88%), radial-gradient(120% 70% at 50% 42%, rgba(6,13,31,0) 55%, rgba(6,13,31,.55) 100%); }
.auth-brand-inner { position: relative; z-index: 1; max-width: 440px; margin: 0; padding: 0 48px 48px; }
.auth-brand img { width: 44px; height: 44px; }
.auth-brand h2 { margin-top: 18px; font-size: 28px; line-height: 1.2; letter-spacing: -0.015em; }
.auth-points { margin-top: 22px; gap: 0; border-top: 1px solid rgba(255,255,255,.08); }
.auth-points li { padding: 10px 0; padding-left: 0; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 14.5px; color: #b6c2d1; }
.auth-points li::before { content: none; }
.auth-live { display: flex; align-items: center; gap: 8px; margin: 18px 0 0; font: 500 12.5px "JetBrains Mono", ui-monospace, monospace; color: #8fa3bb; }
.auth-live[hidden] { display: none; }
.auth-live i { width: 7px; height: 7px; border-radius: 50%; background: #ffbe46; animation: auth-blink 2s ease-in-out infinite; }
@keyframes auth-blink { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .auth-live i { animation: none; } }
@media (max-width: 900px) {
  .auth-brand { min-height: 260px; }
  .auth-brand-inner { padding: 0 20px 24px; }
}
