﻿:root {
  --bg: #0c1218;
  --card: #141c26;
  --border: #243044;
  --accent: #3b8cff;
  --accent2: #4ade80;
  --text: #f4f7fb;
  --muted: #9eb0c7;
  --danger: #fb7185;
  --warn: #fbbf24;
  --radius: 16px;
  --gap: 16px;
  --pad: 16px;
  --max: 430px;
  --card-pad: 18px;
  --section: 20px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --hero: #2f86ff;
}
@media (min-width: 1080px) {
  :root { --max: 1280px; --pad: 28px; --gap: 22px; --card-pad: 22px; }
}
html.compact { --gap: 12px; --pad: 12px; --card-pad: 14px; --section: 14px; }
html.bigfont body { font-size: 17px; }
html.bigfont .hero-amount { font-size: 3rem !important; }
::selection { background: rgba(47,134,255,.4); color: #fff; }
html { scrollbar-color: #3a4d66 transparent; }

* { box-sizing: border-box; margin: 0; padding: 0; }
svg { -webkit-user-drag: none; user-drag: none; }
button, .icon-btn, .tabs button { -webkit-tap-highlight-color: transparent; }
html, body { min-height: 100%; }
body {
  font-family: Manrope, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  caret-color: var(--accent);
}
.app {
  width: min(100%, var(--max));
  max-width: var(--max);
  margin: 0 auto;
  min-height: 100vh;
  padding: var(--pad);
  padding-bottom: calc(var(--pad) + 118px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}
#screen-main { display: flex; flex-direction: column; gap: var(--gap); min-width: 0; }
.wallet-grid { display: flex; flex-direction: column; gap: var(--gap); min-width: 0; }
#screen-lock, #screen-create, #screen-restore, #screen-settings {
  width: min(100%, 520px); margin-inline: auto;
}
.desk-rail, .desk-side { display: none; }
.lang-switch {
  display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin-bottom: 14px;
}
.lang-switch button {
  width: auto; padding: 6px 10px; border-radius: 999px; font-size: .75rem; font-weight: 700;
  background: #182232; color: var(--muted); border: 1px solid var(--border);
}
.lang-switch button.on { background: var(--accent); color: #fff; border-color: transparent; }
.hero {
  position: relative; overflow: hidden; border-radius: 28px; color: #fff;
  padding: 18px 18px 20px;
  background:
    radial-gradient(120% 80% at 12% 0%, rgba(255,255,255,.28), transparent 46%),
    radial-gradient(90% 70% at 100% 20%, rgba(14,70,180,.45), transparent 55%),
    linear-gradient(165deg, #1d7dff 0%, #4aa8ff 48%, #7ad4ff 100%);
}
.hero-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.account-pill {
  margin: 18px auto 8px; width: fit-content;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(255,255,255,.18); font-weight: 700; font-size: .82rem;
}
.hero-amount {
  text-align: center; font-size: clamp(2.4rem, 9vw, 3.1rem);
  font-weight: 800; letter-spacing: -0.03em; line-height: 1;
}
.hero-amount small { font-size: 1rem; font-weight: 600; opacity: .86; }
.hero-sub { text-align: center; margin-top: 8px; font-size: .9rem; color: rgba(255,255,255,.82); }
.hero-eye {
  width: 36px; height: 36px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.16); color: #fff; cursor: pointer;
}
.round-actions {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  margin-top: 22px;
}
.round-btn {
  background: transparent; border: 0; color: #fff; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: .72rem; font-weight: 650; width: auto; padding: 0;
}
.round-btn i {
  width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.22);
}
.round-btn svg { width: 22px; height: 22px; }
.banner {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border-radius: 18px;
  background: linear-gradient(90deg, #14324f, #1a4063);
  cursor: pointer; text-align: left; width: 100%;
  border: 1px solid #2a5578; color: inherit;
}
.banner strong { display: block; font-size: .92rem; }
.banner span { font-size: .78rem; color: var(--muted); }
.asset-row {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 0; border-bottom: 1px solid var(--border);
}
.asset-row:last-child { border-bottom: 0; }
.asset-ico {
  width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center;
  background: linear-gradient(180deg, #3b8cff, #1d6dff); font-weight: 800;
}
.asset-row .grow { flex: 1; min-width: 0; }
.asset-row .amt { text-align: right; font-weight: 700; }
@media (max-width: 1079px) {
  .app { padding: max(14px, env(safe-area-inset-top)) 14px calc(118px + env(safe-area-inset-bottom)); }
  body[data-nav="wallet"] #panel-action { display: none; }
  body:not([data-nav="wallet"]) .round-actions,
  body:not([data-nav="wallet"]) .banner,
  body:not([data-nav="wallet"]) #assets-card,
  body:not([data-nav="wallet"]) .banner { display: none; }
  body:not([data-nav="wallet"]) .hero { padding: 14px 16px; border-radius: 22px; }
  body:not([data-nav="wallet"]) .hero-amount { font-size: 1.7rem; }
  body:not([data-nav="wallet"]) .account-pill { margin: 4px auto 6px; }
}
@media (min-width: 1080px) {
  body { background: #0a1016; }
  .app {
    display: grid;
    grid-template-columns: 196px minmax(0, 1fr);
    grid-template-rows: auto 1fr auto;
    width: min(100%, 1320px);
    gap: 20px 24px;
    padding: 24px 32px 28px;
    align-items: start;
    padding-bottom: 28px;
  }
  .desk-rail {
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: sticky;
    top: 24px;
    align-self: start;
    background: #121a24;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 12px;
    grid-column: 1;
    grid-row: 1 / span 2;
  }
  .desk-rail button {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: flex-start;
    gap: 10px;
    background: transparent;
    color: var(--muted);
    border: 0;
    padding: 11px 12px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: background 160ms var(--ease-out), color 160ms var(--ease-out);
  }
  .desk-rail button:hover { color: var(--text); background: #182432; }
  .desk-rail button.active { background: #1c2a3d; color: #fff; }
  .bottom-island { display: none !important; }
  #screen-main,
  #screen-lock,
  #screen-create,
  #screen-restore,
  #screen-settings {
    grid-column: 2;
    width: 100%;
    max-width: none;
    margin: 0;
  }
  #screen-settings .card,
  #screen-lock.card,
  #screen-create .card,
  #screen-restore .card {
    max-width: 560px;
  }
  #screen-settings .card { max-width: 640px; }
  .wallet-grid {
    display: grid;
    grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
    align-items: start;
    gap: 24px;
  }
  #panel-balance {
    position: sticky;
    top: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
  #panel-action {
    min-height: calc(100vh - 120px);
    max-height: calc(100vh - 120px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  #panel-action > div:not(.hidden) {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
  }
  #panel-action .tx-list,
  #overview-list {
    flex: 1;
    min-height: 0;
    max-height: none;
    overflow-y: auto;
    padding-right: 8px;
    margin-top: 4px;
  }
  #net-summary {
    font-size: 0.82rem;
    padding-bottom: 12px;
    margin-bottom: 4px;
    border-bottom: 1px solid var(--border);
  }
  body[data-nav="wallet"] .banner { display: none; }
  body:not([data-nav="wallet"]) #panel-balance .banner,
  body:not([data-nav="wallet"]) #assets-card,
  body:not([data-nav="wallet"]) .round-actions { display: none; }
  body:not([data-nav="wallet"]) .hero { padding: 16px 18px 14px; border-radius: 20px; }
  body:not([data-nav="wallet"]) .hero-amount { font-size: 2rem; }
  body:not([data-nav="wallet"]) .hero-sub { font-size: 0.82rem; margin-top: 4px; }
  .tx-item {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    gap: 8px 16px;
    padding: 14px 16px;
    margin-bottom: 10px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: #0f1620;
    border-bottom: 1px solid var(--border);
    font-size: 0.86rem;
  }
  .tx-item:last-child { margin-bottom: 0; }
  .tx-item > div:first-child { grid-column: 1; grid-row: 1 / span 2; }
  .tx-amount {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
    font-size: 1.02rem;
    white-space: nowrap;
  }
  .tx-actions {
    grid-column: 2;
    grid-row: 2;
    justify-content: flex-end;
    margin: 0;
  }
  .tx-meta {
    font-size: 0.78rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
  }
  .tx-item > div:first-child > div:first-child {
    font-weight: 700;
    font-size: 0.92rem;
    margin-bottom: 6px;
  }
  .footer {
    grid-column: 1 / -1;
    text-align: center;
    margin-top: 8px;
    padding-top: 4px;
  }
  .hero { border-radius: 24px; padding: 20px 20px 22px; }
  #tab-send .primary,
  #tab-receive .address-row,
  #tab-history .tx-list { max-width: 520px; }
  body[data-screen="lock"] .app,
  body[data-screen="create"] .app,
  body[data-screen="restore"] .app {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: min(460px, calc(100vw - 64px));
    max-width: 460px;
    min-height: 100vh;
    margin: 0 auto;
    padding: 32px 0 24px;
    gap: 14px;
  }
  body[data-screen="lock"] #screen-lock,
  body[data-screen="create"] #screen-create,
  body[data-screen="restore"] #screen-restore,
  body[data-screen="lock"] .footer,
  body[data-screen="create"] .footer,
  body[data-screen="restore"] .footer {
    grid-column: auto;
    width: 100%;
    max-width: 460px;
    margin: 0;
  }
  body[data-screen="lock"] #screen-lock.card,
  body[data-screen="create"] .card,
  body[data-screen="restore"] .card {
    width: 100%;
    max-width: none;
  }
}

@keyframes panelIn {
  from { opacity: 0; transform: translateY(10px); filter: blur(5px); }
  to { opacity: 1; transform: none; filter: none; }
}
@keyframes pop {
  from { opacity: 0; transform: translateY(8px) scale(.98); }
  to { opacity: 1; transform: none; }
}
@keyframes toastIn {
  from { opacity: 0; transform: translate(-50%, 8px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}
.panel-in { animation: panelIn 240ms var(--ease-out); }
@media (prefers-reduced-motion: reduce) {
  .panel-in, .modal, .toast.show, .island-pill, .toggle::after { animation: none !important; transition: none !important; }
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 40px;
}
.topbar h1 {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.top-actions { display: flex; gap: 8px; align-items: center; }
.badge {
  font-size: 0.68rem;
  background: #152238;
  color: var(--muted);
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  display: inline-flex; align-items: center; gap: 6px;
}
.status-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent2);
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--card-pad);
}
.card + .card { margin-top: 0; }
.card { min-width: 0; }
button, input, textarea, select { font: inherit; }
button:focus-visible, .toggle:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.card h3 {
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 14px;
  font-weight: 650;
}

.hero-amount.blurred { filter: blur(9px); user-select: none; }

.address-row {
  display: flex; align-items: center; gap: 10px;
  margin-top: 16px;
  background: #0d1524;
  border-radius: 12px;
  padding: 12px 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
  overflow-wrap: anywhere;
  border: 1px solid var(--border);
}
.address-row .addr { flex: 1 1 auto; min-width: 60px; }

.icon-btn {
  flex-shrink: 0;
  background: #152238;
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 8px 11px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 600;
  transition: border-color .15s, color .15s, background .15s;
}
.icon-btn:hover { color: var(--text); border-color: var(--accent); }
.icon-btn:active { transform: scale(.97); }

input, textarea, select {
  width: 100%;
  padding: 13px 14px;
  margin: 6px 0 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #0d1524;
  color: var(--text);
  font-size: 0.95rem;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59,130,246,.18);
}
textarea { resize: vertical; min-height: 110px; font-family: inherit; }
label.field {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 2px;
}

.check {
  display: flex; align-items: flex-start; gap: 12px;
  cursor: pointer; user-select: none;
  margin: 16px 0 8px;
  font-size: 0.9rem;
  line-height: 1.4;
}
.check input { position: absolute; opacity: 0; width: 0; height: 0; }
.check .box {
  width: 22px; height: 22px; flex-shrink: 0;
  border-radius: 6px;
  border: 2px solid var(--border);
  background: #0d1524;
  display: grid; place-items: center;
  transition: all .15s;
  margin-top: 1px;
}
.check .box svg { opacity: 0; transform: scale(.55); transition: all .15s; }
.check input:checked + .box { background: var(--accent); border-color: var(--accent); }
.check input:checked + .box svg { opacity: 1; transform: scale(1); }

button.primary, button.secondary, button.danger, button.ghost {
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 14px 16px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 140ms var(--ease-out), opacity 140ms var(--ease-out), background 140ms var(--ease-out);
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
button.primary { background: var(--accent); color: #fff; }
button.primary:hover { filter: brightness(1.07); }
button.secondary {
  background: #152238; color: var(--text);
  border: 1px solid var(--border);
}
button.danger {
  background: transparent; color: var(--danger);
  border: 1px solid #7f1d1d;
}
button.ghost {
  background: transparent; color: var(--muted);
  border: 1px dashed var(--border);
}
button:active { transform: scale(0.97); }
button:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn-row { display: flex; gap: 12px; margin-top: 12px; align-items: stretch; }
.btn-row button { flex: 1 1 0; min-width: 0; min-height: 48px; }
@media (max-width: 420px) { .btn-row { gap: 8px; } .btn-row button { min-width: 100%; } .address-row { align-items: flex-start; } .address-row .icon-btn { white-space: nowrap; } }

.tx-list { max-height: min(420px, 56vh); overflow-y: auto; padding-right: 2px; }
.tx-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
}
.tx-item:last-child { border-bottom: 0; }
.tx-amount.in { color: var(--accent2); font-weight: 600; }
.tx-amount.out { color: #f87171; font-weight: 600; }
.tx-meta { color: var(--muted); font-size: 0.75rem; margin-top: 2px; }
.tx-actions { grid-column: 1 / -1; display: flex; gap: 8px; }
.q-btn {
  width: 24px; height: 24px; border-radius: 50%;
  border: 1px solid var(--border); background: #0d1524;
  color: var(--muted); font-size: 0.75rem; font-weight: 700;
  cursor: pointer; display: grid; place-items: center; padding: 0;
}
.q-btn:hover { border-color: var(--accent); color: var(--text); }

.muted { color: var(--muted); font-size: 0.85rem; }
.error { color: var(--danger); font-size: 0.85rem; margin-top: 10px; }
.success { color: var(--accent2); font-size: 0.85rem; margin-top: 10px; }
.hidden { display: none !important; }

.mnemonic-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 14px 0 16px;
}
@media (min-width: 640px) {
  .mnemonic-grid { grid-template-columns: repeat(4, 1fr); gap: 12px; }
}
.mnemonic-word {
  background: #0d1524;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 6px;
  font-size: 0.78rem;
  text-align: center;
  font-family: ui-monospace, monospace;
}
.mnemonic-word span {
  color: var(--muted); font-size: 0.65rem; display: block; margin-bottom: 3px;
}

.warning-box {
  background: #1c1408;
  border: 1px solid #854d0e;
  color: var(--warn);
  border-radius: 12px;
  padding: 14px;
  font-size: 0.85rem;
  margin: 12px 0 16px;
  line-height: 1.45;
}
.info-box {
  background: #0f1a2c;
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 0.82rem;
  margin: 12px 0;
  line-height: 1.45;
}

.hold-copy {
  position: relative; overflow: hidden;
  user-select: none; -webkit-user-select: none; touch-action: none;
}
.hold-copy .bar {
  position: absolute; left: 0; top: 0; bottom: 0; width: 0%;
  background: rgba(34,197,94,.28);
  pointer-events: none;
}
.hold-copy .label { position: relative; z-index: 1; }

.footer {
  text-align: center; color: var(--muted);
  font-size: 0.72rem; margin-top: auto; padding-top: 8px;
}

.bottom-island {
  position: fixed; z-index: 50; left: 50%; bottom: max(12px, env(safe-area-inset-bottom));
  transform: translateX(-50%); width: min(430px, calc(100vw - 18px));
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2px;
  padding: 8px; border-radius: 28px;
  background: rgba(18,26,36,.92); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 16px 36px rgba(0,0,0,.45);
  -webkit-user-select: none; user-select: none;
  touch-action: manipulation;
}
.island-pill {
  position: absolute; z-index: 0; top: 8px; bottom: 8px; left: 8px;
  width: calc((100% - 16px - 8px) / 5);
  border-radius: 20px;
  background: #1b2a3c;
  transform: translateX(calc(var(--nav-i, 0) * (100% + 2px)));
  transition: transform 280ms var(--ease-drawer);
  pointer-events: none;
}
.bottom-island button {
  position: relative; z-index: 1;
  min-width: 0; min-height: 52px; border: 0; border-radius: 16px; padding: 7px 2px;
  background: transparent; color: var(--muted); cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  font-size: .68rem; font-weight: 650; line-height: 1.1;
  -webkit-user-select: none; user-select: none;
  -webkit-touch-callout: none;
  -webkit-user-drag: none; user-drag: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: color 180ms var(--ease-out), transform 140ms var(--ease-out);
}
.bottom-island button .nav-icon {
  width: 21px; height: 21px;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none; /* icon never becomes its own drag target */
}
.bottom-island button .nav-icon svg { width: 100%; height: 100%; pointer-events: none; -webkit-user-drag: none; }
.bottom-island button span:last-child { pointer-events: none; white-space: nowrap; }
.bottom-island button.active { color: #fff; }
.bottom-island button[data-nav="settings"] {
  width: 44px; height: 44px; margin: auto; border-radius: 50%;
  background: linear-gradient(180deg, #5aa8ff, #2f7dff); color: #fff; min-height: 44px;
}
.bottom-island button[data-nav="settings"] span:last-child { display: none; }
.bottom-island button.active .nav-icon svg { stroke: #fff; }
.bottom-island button:hover { color: var(--text); }
.bottom-island button:active { transform: scale(0.96); }
.bottom-island button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (min-width: 900px) { .bottom-island { bottom: 24px; width: min(560px, calc(100vw - 48px)); } }
@media (max-width: 380px) {
  .bottom-island { width: calc(100vw - 16px); bottom: max(10px, env(safe-area-inset-bottom)); }
  .bottom-island button { font-size: .6rem; min-height: 48px; }
  .bottom-island button .nav-icon { width: 20px; height: 20px; }
}

.modal-bg {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.58);
  backdrop-filter: blur(5px);
  z-index: 60;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.modal {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  max-width: 440px; width: 100%;
  box-shadow: 0 18px 40px rgba(0,0,0,.4);
  animation: pop 220ms var(--ease-out);
  max-height: 85vh; overflow-y: auto;
}
.modal h4 { margin-bottom: 12px; font-size: 1rem; }
.modal pre {
  background: #0d1524; border: 1px solid var(--border);
  border-radius: 10px; padding: 12px;
  font-size: 0.78rem; white-space: pre-wrap; word-break: break-word;
  color: var(--muted); margin: 10px 0 14px;
}

.set-item {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.set-item:last-child { border-bottom: 0; }
.set-item .meta { flex: 1; min-width: 0; }
.set-item .title { font-weight: 600; font-size: 0.92rem; }
.set-item .desc { font-size: 0.75rem; color: var(--muted); margin-top: 3px; }
.toggle {
  width: 46px; height: 28px; border-radius: 999px;
  background: #1a2740; border: 1px solid var(--border);
  position: relative; cursor: pointer; flex-shrink: 0;
  transition: background 180ms var(--ease-out), border-color 180ms var(--ease-out);
}
.toggle.on { background: var(--accent); border-color: var(--accent); }
.toggle::after {
  content: ""; position: absolute; top: 3px; left: 3px;
  width: 20px; height: 20px; border-radius: 50%; background: #fff;
  transition: transform 200ms var(--ease-drawer);
}
.toggle.on::after { transform: translateX(18px); }
.set-item.is-off { opacity: .45; }
.set-item.is-off select { pointer-events: none; }
.toast {
  position: fixed; z-index: 70; left: 50%;
  bottom: calc(92px + env(safe-area-inset-bottom));
  transform: translate(-50%, 8px);
  max-width: min(420px, calc(100vw - 32px));
  padding: 12px 16px;
  border-radius: 14px;
  background: #18263c;
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: 0 12px 28px rgba(0,0,0,.35);
  font-size: 0.88rem;
  opacity: 0;
  pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); animation: toastIn 220ms var(--ease-out); }

.section-gap { margin-top: var(--section); padding-top: var(--section); border-top: 1px solid var(--border); }
.chip {
  display: inline-block; font-size: 0.72rem; padding: 4px 8px;
  border-radius: 8px; background: #152238; color: var(--muted);
  border: 1px solid var(--border); margin-right: 6px; margin-top: 6px;
}
