:root {
  --bg: #0d0f14;
  --bg2: #070910;
  --s: #151820;
  --s2: #1c2030;
  --b: #252a3a;
  --a: #e8341c;
  --a2: #ff6b35;
  --g: #22c55e;
  --y: #f59e0b;
  --bl: #3b82f6;
  --pu: #8b5cf6;
  --gr: #6b7280;
  --t: #e8eaf0;
  --t2: #8892a4;
  --t3: #4a5568;
  --r: 10px;
  --font: "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background: radial-gradient(circle at top, #171b26 0, #0d0f14 35%, #070910 100%);
  color: var(--t);
  font-family: var(--font);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  appearance: none;
  cursor: pointer;
}

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

.app-shell {
  width: 100%;
  max-width: 420px;
  min-height: 100vh;
  margin: 0 auto;
  background: var(--bg);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px 16px;
  background: linear-gradient(180deg, #0d0f14, #1a1020);
}

.auth-wrap-pad {
  align-items: flex-start;
  background: var(--bg);
}

.auth-box {
  width: 100%;
  max-width: 360px;
  text-align: center;
}

.auth-box-top {
  text-align: left;
}

.reg-card {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0)),
    var(--s);
  border-color: rgba(245, 158, 11, 0.28);
}

.reg-card-compact {
  margin-top: 0;
}

.reg-head {
  margin-bottom: 12px;
}

.reg-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  margin-bottom: 8px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid rgba(245, 158, 11, 0.22);
  color: #ffd18a;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.reg-lead {
  line-height: 1.5;
}

.reg-grid {
  gap: 8px;
}

.reg-note {
  margin: 2px 0 10px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.18);
  color: #cfead7;
  font-size: 11px;
  line-height: 1.45;
}

.reg-submit {
  width: 100%;
}

.auth-mark {
  font-size: 44px;
  line-height: 1;
  margin-bottom: 10px;
}

.auth-mark.sm {
  font-size: 36px;
  margin-bottom: 6px;
  text-align: center;
}

.hdr {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  background: linear-gradient(135deg, #0d0f14, #1a0f0a);
  border-bottom: 1px solid var(--b);
}

.hdr-logo {
  font-size: 10px;
  font-weight: 800;
  color: var(--a);
  letter-spacing: 0.06em;
}

.hdr-title {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 13px;
  font-weight: 700;
}

.hdr-profile-link {
  color: var(--a2);
  font-size: 11px;
  line-height: 1.2;
  text-align: right;
  white-space: nowrap;
}

.back {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--s2);
  border: 1px solid var(--b);
  font-size: 18px;
  color: var(--t);
}

.body {
  padding: 10px;
  padding-bottom: 86px;
}

.home-tabs {
  margin-bottom: 8px;
}

.archive-card {
  padding-bottom: 8px;
}

.guide-tabs {
  margin-bottom: 8px;
  overflow: visible;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding-bottom: 0;
}

.guide-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 8px;
}

.guide-tab-badge,
.guide-hero-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #f8fafc;
  font-weight: 900;
  letter-spacing: 0.04em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.guide-tab-badge {
  min-width: 42px;
  height: 30px;
  padding: 0 10px;
  font-size: 11px;
}

.guide-hero-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.guide-hero-badge {
  min-width: 52px;
  height: 42px;
  padding: 0 14px;
  font-size: 15px;
}

.guide-hero-meta {
  min-width: 0;
}

.guide-hero-label {
  font-size: 16px;
  font-weight: 900;
  line-height: 1.1;
}

.guide-hero {
  background:
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0)),
    var(--s);
}

.guide-list {
  margin: 0;
  padding-left: 18px;
  color: var(--t2);
  line-height: 1.55;
}

.guide-list li + li {
  margin-top: 8px;
}

.guide-tone-site {
  background: linear-gradient(135deg, #f59a00, #fb923c);
}

.guide-tone-search {
  background: linear-gradient(135deg, #0f766e, #14b8a6);
}

.guide-tone-searcher {
  background: linear-gradient(135deg, #2563eb, #60a5fa);
}

.guide-tone-spg {
  background: linear-gradient(135deg, #7c3aed, #a78bfa);
}

.guide-tone-registrar {
  background: linear-gradient(135deg, #475569, #94a3b8);
}

.guide-tone-coordinator {
  background: linear-gradient(135deg, #dc2626, #f97316);
}

.guide-tone-inforg {
  background: linear-gradient(135deg, #be123c, #fb7185);
}

.guide-tone-cartographer {
  background: linear-gradient(135deg, #0f766e, #22c55e);
}

.guide-tone-superadmin {
  background: linear-gradient(135deg, #111827, #475569);
}

.archive-filter-grid {
  align-items: end;
}

.archive-filter-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.my-active-searches .pcard + .pcard {
  margin-top: 8px;
}

.my-active-search-link {
  display: block;
}

.card,
.pcard,
.fox,
.chat-box,
.modal-card {
  background: var(--s);
  border: 1px solid var(--b);
  border-radius: var(--r);
}

.card {
  padding: 11px;
  margin-bottom: 8px;
}

.card-accent {
  border-color: rgba(255, 107, 53, 0.35);
}

.search-top-description {
  line-height: 1.45;
}

.search-map-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  text-decoration: none;
}

.coord-copy-btn {
  display: inline;
  padding: 0;
  border: none;
  background: transparent;
  color: #ffcf9f;
  font: inherit;
  font-weight: 700;
  text-align: left;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 2px;
  cursor: pointer;
}

.coord-copy-btn:hover,
.coord-copy-btn:focus-visible {
  color: #ffe0bf;
}

.sect-title {
  font-size: 9px;
  font-weight: 700;
  color: var(--a2);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 8px;
}

.inp {
  width: 100%;
  padding: 8px 10px;
  margin-bottom: 7px;
  color: var(--t);
  background: var(--s2);
  border: 1px solid var(--b);
  border-radius: 7px;
}

.inp::placeholder,
.chat-inp::placeholder {
  color: var(--t2);
}

.inp.focus,
.inp:focus,
.chat-inp:focus {
  outline: none;
  border-color: rgba(255, 107, 53, 0.7);
  box-shadow: 0 0 0 2px rgba(255, 107, 53, 0.12);
}

.inp.compact {
  padding: 6px 8px;
  margin: 0;
  min-width: 120px;
}

.texta {
  min-height: 90px;
  resize: vertical;
}

.btn {
  border: none;
  border-radius: 7px;
  padding: 8px 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
}

.btn-p {
  width: 100%;
  color: #fff;
  background: var(--a);
}

.btn-s {
  color: var(--t);
  background: var(--s2);
  border: 1px solid var(--b);
}

.btn-tg {
  color: #f7fbff;
  background: linear-gradient(180deg, #33a8e7 0%, #229ed9 100%);
  border: 1px solid rgba(120, 210, 255, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.btn-sm {
  padding: 4px 8px;
  font-size: 10px;
}

.row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wrap {
  flex-wrap: wrap;
}

.flex1 {
  flex: 1;
  min-width: 0;
}

.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.time-picker {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 6px;
  align-items: center;
}

.time-picker-sep {
  color: var(--t2);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.divider {
  height: 1px;
  background: var(--b);
  margin: 8px 0;
}

.line2 > * + * {
  margin-top: 6px;
}

.hint {
  padding: 7px 9px;
  margin-bottom: 10px;
  border-radius: 6px;
  background: rgba(255, 107, 53, 0.07);
  border: 1px solid rgba(255, 107, 53, 0.18);
  color: var(--t2);
  font-size: 10px;
}

.link {
  color: var(--a2);
}

.light {
  color: #d7dbe3;
}

.center {
  text-align: center;
}

.hidden {
  display: none;
}

.t2 {
  color: var(--t2);
}

.t3 {
  color: var(--t3);
}

.accent {
  color: var(--a2);
}

.green {
  color: var(--g);
}

.yellow {
  color: var(--y);
}

.fs10 {
  font-size: 10px;
}

.fs11 {
  font-size: 11px;
}

.fs12 {
  font-size: 12px;
}

.fs13 {
  font-size: 13px;
}

.fs14 {
  font-size: 14px;
}

.fs16 {
  font-size: 16px;
}

.fs17 {
  font-size: 17px;
}

.fw7 {
  font-weight: 700;
}

.fw8 {
  font-weight: 800;
}

.mt4 {
  margin-top: 4px;
}

.mt6 {
  margin-top: 6px;
}

.mt8 {
  margin-top: 8px;
}

.mt12 {
  margin-top: 12px;
}

.mb4 {
  margin-bottom: 4px;
}

.mb6 {
  margin-bottom: 6px;
}

.mb8 {
  margin-bottom: 8px;
}

.mb12 {
  margin-bottom: 12px;
}

.mb16 {
  margin-bottom: 16px;
}

.badge {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 700;
}

.badge-red {
  color: var(--a2);
  background: rgba(232, 52, 28, 0.15);
  border: 1px solid rgba(232, 52, 28, 0.25);
}

.badge-orange {
  color: var(--y);
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.badge-green {
  color: var(--g);
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.28);
}

.badge-white {
  color: #16181d;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.65);
}

.badge-black {
  color: #f5f7fb;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(15, 23, 42, 0.9);
}

.badge-blue {
  color: #8ec5ff;
  background: rgba(59, 130, 246, 0.14);
  border: 1px solid rgba(59, 130, 246, 0.26);
}

.badge-gray,
.badge-mine {
  color: #c8ccd5;
  background: rgba(107, 114, 128, 0.14);
  border: 1px solid rgba(107, 114, 128, 0.28);
}

.badge-mine {
  color: var(--a2);
  background: rgba(255, 107, 53, 0.14);
  border-color: rgba(255, 107, 53, 0.3);
}

.search-card-link {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-icon {
  width: 52px;
  height: 52px;
  border-radius: 7px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--s2);
  border: 1px solid var(--b);
  font-size: 22px;
  overflow: hidden;
}

.search-photo-box {
  width: 74px;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--s2);
  border: 1px solid var(--b);
  font-size: 22px;
  overflow: hidden;
}

.search-photo-box.is-clickable {
  cursor: pointer;
}

.search-photo-card {
  width: 72px;
}

.search-photo-detail {
  width: 104px;
}

.search-photo-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
}

.modal-card-wide {
  width: min(92vw, 760px);
  max-width: 760px;
}

.photo-modal-frame {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--b);
  background: rgba(7, 13, 18, 0.96);
}

.photo-modal-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: 75vh;
  object-fit: contain;
}

.arrow {
  font-size: 16px;
}

.tabs {
  display: flex;
  gap: 3px;
  padding: 3px;
  margin-bottom: 10px;
  background: var(--s);
  border-radius: 8px;
}

.tab {
  flex: 1;
  border: none;
  padding: 6px 3px;
  border-radius: 6px;
  background: transparent;
  color: var(--t2);
  font-size: 10px;
  font-weight: 600;
}

.tab.has-alert {
  color: #ffd8c9;
}

.tab.active {
  color: var(--t);
  background: var(--s2);
}

.tab.disabled {
  opacity: 0.45;
  cursor: default;
}

.bnav {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100%;
  max-width: 420px;
  display: flex;
  border-top: 1px solid var(--b);
  background: var(--s);
}

.bnav-btn {
  flex: 1;
  border: none;
  padding: 7px 4px 9px;
  text-align: center;
  color: var(--t2);
  font-size: 8px;
  background: transparent;
}

.bnav-btn.active {
  color: var(--a2);
}

.bnav-btn.has-alert {
  color: #ffd8c9;
}

.bnav-icon {
  display: block;
  margin-bottom: 1px;
  font-size: 16px;
  position: relative;
}

.tab-counter,
.nav-counter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 17px;
  height: 17px;
  padding: 0 5px;
  margin-left: 5px;
  border-radius: 999px;
  background: #e8341c;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

.nav-counter {
  position: absolute;
  top: -5px;
  right: -12px;
  min-width: 16px;
  height: 16px;
  margin-left: 0;
  padding: 0 4px;
  font-size: 9px;
}

.ipanel {
  padding: 10px;
  margin-bottom: 8px;
  border-radius: var(--r);
  background: linear-gradient(135deg, rgba(232, 52, 28, 0.07), rgba(255, 107, 53, 0.04));
  border: 1px solid rgba(232, 52, 28, 0.22);
}

.fox {
  overflow: hidden;
}

.fox-hdr {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--b);
  color: #f8fbff;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.26);
}

.fox-hdr .t2,
.fox-hdr .t3 {
  color: rgba(248, 251, 255, 0.94);
}

.fox-red {
  background: linear-gradient(135deg, rgba(33, 204, 191, 0.2), rgba(18, 37, 43, 0.88) 72%);
}

.fox-muted {
  background: linear-gradient(135deg, rgba(107, 114, 128, 0.18), rgba(107, 114, 128, 0.08));
}

.fox-badge {
  padding: 3px 8px;
  border-radius: 12px;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 8px 20px rgba(10, 22, 27, 0.18);
}

.fox-body {
  padding: 10px;
}

.fox-member {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.fox-member:first-child {
  border-top: none;
  padding-top: 0;
}

.pcard {
  padding: 9px;
  margin-bottom: 6px;
  background: var(--s2);
}

.pcard.mine {
  border-color: rgba(255, 107, 53, 0.35);
}

.participant-head {
  align-items: flex-start;
}

.callsign-line {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
}

.callsign-rank {
  color: #cfd7e4;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
}

.participant-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.fox-history-line {
  color: #cfd7e4;
}

.fox-mini-badge {
  display: inline-flex;
  align-items: center;
  margin: 2px 6px 2px 0;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
}

.fox-mini-badge.active {
  background: rgba(34, 197, 94, 0.18);
  border-color: rgba(34, 197, 94, 0.42);
  color: #9ef0b9;
}

.fox-mini-badge.muted {
  background: rgba(148, 163, 184, 0.12);
  border-color: rgba(148, 163, 184, 0.18);
  color: #b9c3d5;
}

.participant-area {
  color: #c7d4e8;
}

.participant-time {
  color: #d9e4f4;
}

.crew-line {
  color: #a9d7ff;
}

.crew-note {
  min-height: 38px;
  padding: 8px 10px;
  border-radius: 7px;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.2);
  color: #bfdcff;
  font-size: 11px;
  line-height: 1.35;
}

.crew-picker-list {
  display: grid;
  gap: 8px;
}

.crew-pick-card {
  margin: 0;
}

.track-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.icon-btn {
  width: 30px;
  height: 30px;
  border: 1px solid var(--b);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--t);
  background: var(--bg);
  text-decoration: none;
  font-size: 14px;
}

.danger-outline {
  border-color: rgba(232, 52, 28, 0.45);
  color: #ffb2a6;
}

.track-file {
  min-width: 0;
  font-size: 11px;
  line-height: 1.35;
  word-break: break-word;
}

.track-input-hidden {
  display: none;
}

.st-yellow {
  color: #f9c75a;
}

.st-blue {
  color: #8ec5ff;
}

.st-purple {
  color: #be9cff;
}

.st-green {
  color: #77dd95;
}

.st-gray {
  color: #b8c0cc;
}

.st-red {
  color: #ff8d8d;
}

.chat-box {
  overflow: hidden;
}

.chat-msgs {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 120px;
  padding: 10px;
}

.msg {
  max-width: 78%;
}

.msg.mine {
  align-self: flex-end;
}

.msg-name {
  margin-bottom: 2px;
  color: var(--t2);
  font-size: 9px;
  font-weight: 600;
}

.msg-bubble {
  padding: 6px 9px;
  border-radius: 8px;
  background: var(--s2);
  border: 1px solid var(--b);
  font-size: 11px;
  line-height: 1.4;
  word-break: break-word;
}

.msg.mine .msg-bubble {
  background: rgba(232, 52, 28, 0.15);
  border-color: rgba(232, 52, 28, 0.25);
}

.msg-time {
  margin-top: 2px;
  color: rgba(233, 240, 255, 0.84);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-align: right;
}

.chat-input-row {
  display: flex;
  gap: 6px;
  padding: 8px;
  border-top: 1px solid var(--b);
}

.chat-inp {
  flex: 1;
  color: var(--t);
  background: var(--s2);
  border: 1px solid var(--b);
  border-radius: 6px;
  padding: 7px 9px;
  font-size: 11px;
}

.chat-send-btn {
  border: none;
  border-radius: 6px;
  padding: 7px 10px;
  color: #fff;
  background: var(--a);
  font-size: 14px;
}

.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
  background: linear-gradient(135deg, var(--a), var(--a2));
  font-weight: 700;
}

.avatar.sm {
  width: 34px;
  height: 34px;
  font-size: 12px;
}

.stat-pair,
.stats2 {
  display: grid;
  gap: 6px;
}

.stat-pair {
  grid-template-columns: 1fr 1fr;
}

.stats2 {
  grid-template-columns: 1fr 1fr;
  margin-bottom: 8px;
}

.stat-mini,
.stat-box {
  padding: 8px;
  border-radius: 7px;
  text-align: center;
  background: var(--s2);
}

.num,
.stat-num {
  font-size: 18px;
  font-weight: 800;
  color: var(--a2);
}

.lbl,
.stat-label {
  margin-top: 2px;
  color: var(--t2);
  font-size: 9px;
}

.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 5px;
  margin-bottom: 8px;
}

.mini-bar {
  flex: 1;
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
}

.mini-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--a), var(--a2));
}

.rank-num {
  width: 18px;
}

.list-row {
  padding: 7px 0;
}

.list-row + .list-row {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.col-btns,
.user-edit-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.user-edit-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.user-edit-row .inp {
  flex: 1;
  min-width: 0;
}

.search-fake {
  color: var(--t2);
}

.perm-grid {
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
}

.perm-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  background: var(--s2);
  border: 1px solid var(--b);
}

.perm-check input {
  margin-top: 2px;
  accent-color: var(--a);
}

.qr-box {
  display: grid;
  place-items: center;
  min-height: 180px;
  margin-bottom: 10px;
  border-radius: 8px;
  background: var(--s2);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.qr-box img {
  width: 100%;
  height: auto;
}

.qr-fallback {
  color: var(--t2);
  text-align: center;
  line-height: 1.5;
}

.modal {
  width: min(92vw, 420px);
  padding: 0;
  border: none;
  background: transparent;
}

.modal::backdrop {
  background: rgba(0, 0, 0, 0.64);
}

.modal-card {
  padding: 14px;
  color: var(--t);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
}

.modal-card .t2 {
  color: #aeb8c9;
}

.modal-card .t3 {
  color: #8893a7;
}

.modal-card .fw8,
.modal-card .fw7 {
  color: #f5f7fb;
}

#toast-root {
  position: fixed;
  left: 50%;
  bottom: 80px;
  transform: translateX(-50%);
  width: min(92vw, 380px);
  display: grid;
  gap: 8px;
  pointer-events: none;
  z-index: 50;
}

.toast {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--t);
  background: rgba(21, 24, 32, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.toast.err {
  border-color: rgba(232, 52, 28, 0.35);
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 760px) {
  .app-shell {
    max-width: 480px;
  }

  .bnav {
    max-width: 480px;
  }
}
