/* ═══════════════════════════════════════════════════════════════════════════
   SFTi — IBT BUDGET
   Dashboard + ledger + settings + modal interaction layer

   ★ THIS FILE OWNS EVERY CLASS budget.js EMITS. The page loads shop's reset/layout/card sheets,
   which define .card and .section-title but NOT .liquid-btn, .form-input, .checkbox, .stat-label
   or the modal panel — those lived inline in the monolith this was split out of and were lost in
   the split. They are defined here, once, out of the shared tokens (tokens.css). There is no
   `--silver` or `--red` token: the deck's names are --accent-silver / --accent-red-bright.
   ═══════════════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════════════════
   BASE CONTROLS  (.liquid-btn · .form-input · .stat-label)
   ═══════════════════════════════════════════════════════════════════════ */
.liquid-btn {
  display: block;
  width: 100%;
  min-height: 46px;
  padding: 0.75rem 1rem;
  margin-top: 0.7rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border-active);
  border-radius: 14px;
  color: var(--accent-gold);
  font-family: 'Orbitron', monospace;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease;
}
.liquid-btn:hover {
  background: rgba(212, 175, 55, 0.08);
  box-shadow: var(--glow-gold);
}
.liquid-btn:active {
  transform: scale(0.985);
}
.liquid-btn:focus-visible,
.form-input:focus-visible,
.ibt-actions button:focus-visible {
  outline: 2px solid var(--accent-gold);
  outline-offset: 2px;
}

.form-input {
  display: block;
  width: 100%;
  min-width: 0;
  padding: 0.7rem 0.8rem;
  margin: 0 0 0.6rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  color: var(--text-primary);
  font-family: 'Rajdhani', sans-serif;
  font-size: 1rem;            /* 16px: iOS zooms the page on focus below this */
  font-weight: 500;
  line-height: 1.2;
}
.form-input::placeholder {
  color: var(--text-dim);
}
.form-input:focus {
  border-color: var(--glass-border-active);
  outline: none;
}
select.form-input {
  appearance: none;
  -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--accent-gold) 50%),
                    linear-gradient(135deg, var(--accent-gold) 50%, transparent 50%);
  background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 2rem;
}
select.form-input option {
  background: #12121a;
  color: var(--text-primary);
}
.stat-label {
  color: var(--text-dim);
  font-family: 'Orbitron', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

/* ═══════════════════════════════════════════════════════════════════════════
   DASHBOARD BOARD
   ═══════════════════════════════════════════════════════════════════════ */
.ibt-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  overflow: hidden;
  background: var(--glass-border);
  margin-top: 1rem;
}
.ibt-cell {
  padding: 1.6rem 1rem;
  text-align: center;
  background: color-mix(in srgb, var(--bg-void) 86%, transparent);
}
.ibt-cell h3 {
  margin: 0 0 0.8rem;
  color: var(--text-dim);
  font-family: 'Orbitron', monospace;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 500;
}
.ibt-cell p {
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: clamp(2rem, 8vw, 3rem);
  line-height: 1;
  color: var(--accent-gold);
  font-weight: 700;
}
#ibt-diversion,
#ibt-burn,
.ibt-cell p.is-neg {
  color: var(--accent-red-bright);
}
.ibt-cell-wide {
  grid-column: 1 / -1;
  padding-bottom: 2rem;
}

/* ═══════════════════════════════════════════════════════════════════════════
   ACTION BAR
   ═══════════════════════════════════════════════════════════════════════ */
.ibt-actions {
  margin: 1.2rem 0 1rem;
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  background: var(--glass-bg-heavy);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
}
.ibt-actions button {
  min-height: 58px;
  background: none;
  border: 0;
  color: var(--accent-silver);
  font-family: 'Orbitron', monospace;
  letter-spacing: 0.06em;
  font-size: 0.76rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.ibt-actions button + button {
  border-left: 1px solid var(--glass-border);
}
.ibt-actions button img {
  width: 1rem;
  height: 1rem;
  display: block;
  pointer-events: none;
}
.ibt-actions button.is-on {
  color: var(--accent-gold);
  background: rgba(212, 175, 55, 0.06);
}

/* ═══════════════════════════════════════════════════════════════════════════
   VIEW SYSTEM
   ═══════════════════════════════════════════════════════════════════════ */
.view-pane {
  display: none;
}
.view-pane.active {
  display: block;
}

/* ═══════════════════════════════════════════════════════════════════════════
   LEDGER
   ═══════════════════════════════════════════════════════════════════════ */
.ibt-ledger-tools {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 1.2rem 0 0.4rem;
}
.ibt-ledger-tools .liquid-btn {
  margin-top: 0;
}
.ibt-ledger-content {
  width: 100%;
}
#ledger-content h2 {
  margin: 1.6rem 0 0.7rem;
  padding-left: 0.2rem;
  color: var(--accent-silver);
  font-family: 'Orbitron', monospace;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.ibt-ledger-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.2rem;
  margin-bottom: 0.7rem;
  cursor: pointer;
  touch-action: manipulation;
  transition: opacity 0.2s ease;
}
.ibt-ledger-card.dim {
  opacity: 0.45;
}
.ibt-ledger-card.dim .ibt-bill-name {
  text-decoration: line-through;
  text-decoration-color: var(--text-dim);
}
.ibt-ledger-card .checkbox {
  flex: 0 0 auto;
  cursor: pointer;
  touch-action: manipulation;
}
.ibt-bill-name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary);
  overflow-wrap: anywhere;
}
.ibt-bill-amount {
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 0.15rem;
}
/* the tick box — 44px hit area around a 26px visible box */
.checkbox {
  position: relative;
  width: 26px;
  height: 26px;
  border: 2px solid var(--accent-silver);
  border-radius: 8px;
  background: transparent;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.checkbox::before {
  content: '';
  position: absolute;
  inset: -9px;
}
.checkbox.checked {
  background: var(--accent-gold);
  border-color: var(--accent-gold);
}
.checkbox.checked::after {
  content: '';
  position: absolute;
  left: 7px;
  top: 2px;
  width: 6px;
  height: 12px;
  border: solid var(--bg-void);
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}
.ibt-empty {
  margin: 1.4rem 0;
  padding: 2rem 1.2rem;
  text-align: center;
  color: var(--text-secondary);
  border: 1px dashed var(--glass-border-active);
  border-radius: 16px;
  font-size: 1rem;
  line-height: 1.5;
}
.ibt-empty strong {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--accent-gold);
  font-family: 'Orbitron', monospace;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* ═══════════════════════════════════════════════════════════════════════════
   SETTINGS
   ═══════════════════════════════════════════════════════════════════════ */
.ibt-settings-panel {
  background: var(--glass-bg-heavy);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 20px;
  margin: 1.2rem 0 12px;
}
.ibt-settings-panel h2 {
  margin: 30px 0 0.8rem;
  color: var(--accent-silver);
  font-family: 'Orbitron', monospace;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.ibt-settings-panel h2:first-child {
  margin-top: 0;
}
.ibt-config-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.ibt-config-row {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
  align-items: center;
}
.ibt-config-row .form-input {
  margin: 0;
}
.ibt-config-row .form-input:first-child {
  flex: 2;
}
.ibt-config-row .form-input:nth-child(2) {
  flex: 1;
}
.ibt-rule-row .form-input:nth-child(3) {
  flex: 1;
}
.ibt-remove-btn {
  flex: 0 0 auto;
  min-width: 40px;
  min-height: 40px;
  background: none;
  border: 0;
  color: var(--accent-red-bright);
  font-size: 1.5rem;
  line-height: 1;
  padding: 6px;
  cursor: pointer;
  touch-action: manipulation;
}
.ibt-category-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--glass-border);
}
.ibt-category-remove {
  background: none;
  border: 0;
  color: var(--accent-red-bright);
  cursor: pointer;
  font-family: 'Rajdhani', sans-serif;
  font-size: 1rem;
  touch-action: manipulation;
}
.ibt-config-btn {
  padding: 8px;
  font-size: 0.6rem;
  margin-bottom: 10px;
}
#new-cat-input {
  margin-top: 0.8rem;
}
.ibt-purge-btn {
  border-color: #333;
  color: #777;
  margin-top: 20px;
}
.ibt-purge-btn:hover {
  border-color: var(--accent-red-bright);
  color: var(--accent-red-bright);
  box-shadow: none;
}

/* ═══════════════════════════════════════════════════════════════════════════
   MODAL
   z-index sits ABOVE .holo-nav (9999, shared/css/nav.css) — at 2000 the site nav floated
   on top of the dialog.
   ═══════════════════════════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  padding: 20px;
  box-sizing: border-box;
  touch-action: none;
}
.modal {
  width: 90%;
  max-width: 420px;
  padding: 25px;
  pointer-events: auto;
  max-height: 85vh;
  overflow-y: auto;
  box-sizing: border-box;
  touch-action: auto;
  background: linear-gradient(135deg, rgba(26, 26, 38, 0.96) 0%, rgba(18, 18, 26, 0.98) 100%);
  border: 1px solid var(--glass-border-active);
  border-radius: 20px;
  color: var(--text-primary);
}
.modal h3 {
  margin: 0 0 1rem;
  color: var(--accent-gold);
  font-family: 'Orbitron', monospace;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.modal .form-input {
  width: 100%;
  box-sizing: border-box;
}
.ibt-template-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.ibt-template-grid .liquid-btn {
  margin-top: 0;
  padding: 0.7rem 0.4rem;
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  line-height: 1.35;
}
.ibt-template-grid .liquid-btn small {
  display: block;
  margin-top: 0.25rem;
  color: var(--text-secondary);
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  text-transform: none;
}
.ibt-modal-status {
  min-height: 1.4rem;
  margin-top: 0.9rem;
  color: var(--accent-gold);
  font-size: 0.95rem;
  text-align: center;
}
.ibt-modal-back {
  margin-top: 20px;
  border-color: #444;
}
.ibt-delete-btn {
  color: var(--accent-red-bright);
  border-color: var(--accent-red-bright);
  margin-top: 10px;
}
body.ibt-modal-open {
  overflow: hidden;
}

/* ═══════════════════════════════════════════════════════════════════════════
   MOBILE
   ═══════════════════════════════════════════════════════════════════════ */
@media (max-width: 640px) {
  .ibt-cell p {
    font-size: clamp(1.8rem, 12vw, 2.6rem);
  }
  .ibt-config-grid {
    grid-template-columns: 1fr 1fr;
  }
  .ibt-config-row {
    gap: 5px;
  }
  .ibt-config-row .form-input {
    min-width: 0;
  }
  .ibt-template-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 420px) {
  .ibt-config-row {
    flex-wrap: wrap;
  }
  .ibt-config-row .form-input:first-child {
    flex: 1 1 100%;
  }
  .ibt-config-row .form-input:nth-child(2),
  .ibt-rule-row .form-input:nth-child(3) {
    flex: 1 1 0;
  }
  .ibt-remove-btn {
    margin-left: auto;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   v9 ADDITIONS — nav tabs, board unit toggle, trading card, matrix lanes,
   ledger due-tags, library rows/history, toast. Everything above this line is
   unchanged from the split-file fix; new screens (board/ledger/matrix/library.js)
   only emit classes defined below.
   ═══════════════════════════════════════════════════════════════════════ */

.is-neg {
  color: var(--accent-red-bright) !important;
}

/* ── bottom tab bar (replaces the old 3-button ibt-actions) ──────────────── */
.ibt-tabs {
  margin: 1.2rem 0 1rem;
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  background: var(--glass-bg-heavy);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
}
.ibt-tab {
  position: relative;
  min-height: 58px;
  background: none;
  border: 0;
  color: var(--accent-silver);
  font-family: 'Orbitron', monospace;
  letter-spacing: 0.04em;
  font-size: 0.68rem;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.ibt-tab + .ibt-tab {
  border-left: 1px solid var(--glass-border);
}
.ibt-tab svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  pointer-events: none;
}
.ibt-tab.is-on {
  color: var(--accent-gold);
  background: rgba(212, 175, 55, 0.06);
}
.ibt-nav-badge {
  position: absolute;
  top: 6px;
  right: calc(50% - 22px);
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: var(--accent-red-bright);
  color: #fff;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}

/* ── board: unit toggle + trading card ────────────────────────────────────── */
.ibt-unit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 0.6rem;
}
.ibt-cycle-line {
  color: var(--text-dim);
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.85rem;
}
.ibt-segmented {
  display: inline-flex;
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  overflow: hidden;
}
.ibt-segmented button {
  background: none;
  border: 0;
  color: var(--text-secondary);
  font-family: 'Orbitron', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  padding: 0.4rem 0.7rem;
  cursor: pointer;
  touch-action: manipulation;
}
.ibt-segmented button + button {
  border-left: 1px solid var(--glass-border);
}
.ibt-segmented button.is-on {
  color: var(--accent-gold);
  background: rgba(212, 175, 55, 0.08);
}
.ibt-cell-sub {
  margin-top: 0.4rem;
  color: var(--text-dim);
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.72rem;
  line-height: 1.35;
}

.ibt-trading-card {
  margin-top: 1.1rem;
  padding: 16px;
  background: var(--glass-bg-heavy);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
}
.ibt-trading-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 0.6rem;
}
.ibt-trading-head h2 {
  margin: 0;
  color: var(--accent-silver);
  font-family: 'Orbitron', monospace;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.ibt-inline-btn {
  width: auto;
  min-height: 38px;
  margin: 0;
  padding: 0.5rem 0.8rem;
  font-size: 0.62rem;
}
.ibt-trading-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  text-align: center;
}
.ibt-trading-grid strong {
  display: block;
  margin-top: 0.3rem;
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 1.05rem;
  color: var(--text-primary);
}
.ibt-textlink {
  display: block;
  width: 100%;
  margin-top: 0.7rem;
  background: none;
  border: 0;
  padding: 0;
  color: var(--accent-gold);
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.85rem;
  text-align: center;
  text-decoration: underline;
  cursor: pointer;
  touch-action: manipulation;
}
.ibt-close-cycle {
  margin-top: 1.2rem;
  border-color: var(--accent-gold);
}
.ibt-hint {
  margin: 0.6rem 0 0.2rem;
  color: var(--text-dim);
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.78rem;
  line-height: 1.5;
  text-align: center;
}

.ibt-extraction-log {
  max-height: 50vh;
  overflow-y: auto;
  margin: 0.4rem 0;
}
.ibt-extraction-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--glass-border);
}
.ibt-extraction-row:last-child {
  border-bottom: 0;
}
.ibt-tag {
  margin-left: 0.5rem;
  padding: 0.1rem 0.4rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-dim);
  font-family: 'Orbitron', monospace;
  font-size: 0.55rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  vertical-align: middle;
}
.ibt-modal-help {
  color: var(--text-secondary);
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.88rem;
  line-height: 1.5;
  margin: 0 0 0.8rem;
}
.ibt-confirm-body {
  color: var(--text-secondary);
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.92rem;
  line-height: 1.5;
}
.ibt-confirm-body p {
  margin: 0 0 0.6rem;
}
.ibt-confirm-body strong {
  color: var(--accent-gold);
}

/* ── matrix ────────────────────────────────────────────────────────────── */
.ibt-matrix-h {
  margin: 1.4rem 0 0.6rem;
  color: var(--accent-silver);
  font-family: 'Orbitron', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.ibt-matrix-h:first-child {
  margin-top: 0.4rem;
}
.ibt-matrix-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ibt-lane-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr auto;
  gap: 6px;
  align-items: center;
  padding: 10px;
  background: var(--glass-bg-heavy);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
}
.ibt-lane-row .form-input {
  margin: 0;
  min-width: 0;
}
.ibt-lane-row--escrow {
  grid-template-columns: 1.2fr 0.7fr 0.9fr 1fr 1fr auto;
}
.ibt-lane-row--template {
  grid-template-columns: 1.3fr 0.8fr 1fr 0.7fr auto;
}
.ibt-lane-monthly {
  grid-column: 1 / -1;
  margin-top: 2px;
  color: var(--text-dim);
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.75rem;
}
.ibt-matrix-total {
  margin: 0.8rem 0 0.2rem;
  color: var(--text-secondary);
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.92rem;
}
.ibt-matrix-total strong {
  color: var(--accent-gold);
  font-family: ui-monospace, SFMono-Regular, monospace;
}
.ibt-dest-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 1.2rem;
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  overflow: hidden;
  background: var(--glass-border);
}
.ibt-dest-cell {
  padding: 0.9rem;
  text-align: center;
  background: var(--glass-bg-heavy);
}
.ibt-dest-cell strong {
  display: block;
  margin-top: 0.25rem;
  font-family: ui-monospace, SFMono-Regular, monospace;
  color: var(--accent-gold);
  font-size: 0.95rem;
}

/* ── ledger extras ─────────────────────────────────────────────────────── */
.ibt-ledger-summary {
  display: flex;
  justify-content: space-between;
  margin: 0.2rem 0.2rem 0.9rem;
  color: var(--text-dim);
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.82rem;
}
.ibt-due-tag {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.05rem 0.4rem;
  border-radius: 6px;
  font-family: 'Orbitron', monospace;
  font-size: 0.55rem;
  letter-spacing: 0.06em;
  vertical-align: middle;
}
.ibt-due-late {
  background: rgba(255, 77, 77, 0.16);
  color: var(--accent-red-bright);
}
.ibt-due-soon {
  background: rgba(212, 175, 55, 0.14);
  color: var(--accent-gold);
}

/* ── library ───────────────────────────────────────────────────────────── */
.ibt-pack-label {
  margin: 1.1rem 0 0.5rem;
}
.ibt-pack-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 0.4rem;
}
.ibt-history-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ibt-history-row {
  cursor: default;
}
.ibt-file-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* ── toast ─────────────────────────────────────────────────────────────── */
.ibt-toast {
  position: fixed;
  left: 50%;
  bottom: calc(90px + env(safe-area-inset-bottom, 0px));
  transform: translate(-50%, 12px);
  max-width: calc(100% - 40px);
  padding: 0.7rem 1.1rem;
  background: rgba(18, 18, 26, 0.96);
  border: 1px solid var(--glass-border-active);
  border-radius: 14px;
  color: var(--text-primary);
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.88rem;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  z-index: 10500;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.ibt-toast.is-on {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 640px) {
  .ibt-lane-row,
  .ibt-lane-row--escrow,
  .ibt-lane-row--template {
    grid-template-columns: 1fr 1fr;
  }
  .ibt-lane-row .ibt-remove-btn {
    justify-self: end;
  }
  .ibt-trading-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .ibt-pack-row {
    grid-template-columns: 1fr;
  }
}
