:root {
  color-scheme: dark;
  --bg: #0f172a;
  --bg-card: #1e293b;
  --bg-card-hover: #263449;
  --bg-input: #0b1120;
  --border: #334155;
  --text: #f8fafc;
  --text-sub: #94a3b8;
  --sky: #38bdf8;
  --sky-soft: rgba(56, 189, 248, 0.16);
  --amber: #f59e0b;
  --amber-soft: rgba(245, 158, 11, 0.16);
  --emerald: #34d399;
  --emerald-soft: rgba(52, 211, 153, 0.16);
  --indigo: #818cf8;
  --indigo-soft: rgba(129, 140, 248, 0.18);
  --danger: #f87171;
  --danger-soft: rgba(248, 113, 113, 0.16);
  --radius: 16px;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Pretendard", "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  max-width: 540px;
  margin-inline: auto;
  padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px));
  min-height: 100vh;
}

button, input, select, textarea {
  font-family: inherit;
  color: inherit;
}

button {
  touch-action: manipulation;
  cursor: pointer;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 11px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.brand-title {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-meta {
  min-width: 0;
}

.brand-avatar {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.22), rgba(129, 140, 248, 0.22));
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: var(--sky);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 800;
  flex-shrink: 0;
}

.brand-name {
  font-weight: 800;
  font-size: 15.5px;
  line-height: 1.2;
}

.brand-sub {
  font-size: 11.5px;
  color: var(--sky);
  font-weight: 600;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.icon-pill {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 13px;
}

.accent-pill {
  background: var(--sky);
  color: #082f49;
  border: none;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 800;
}

/* Containers & Tabs */
.container {
  padding: 14px 14px 20px;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: flex;
}

/* Cards */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.card-title {
  font-size: 14.5px;
  font-weight: 800;
  line-height: 1.25;
}

.card-sub {
  font-size: 11.5px;
  color: var(--text-sub);
  margin-top: 2px;
}

.kicker {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 2px;
}

.kicker.emerald { color: var(--emerald); }
.kicker.indigo { color: var(--indigo); }

.inline-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.chip-action {
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 11.5px;
  font-weight: 800;
  border: 1px solid transparent;
  flex-shrink: 0;
}

.chip-action.sky {
  background: var(--sky-soft);
  color: var(--sky);
  border-color: rgba(56, 189, 248, 0.35);
}

.chip-action.amber {
  background: var(--amber-soft);
  color: var(--amber);
  border-color: rgba(245, 158, 11, 0.35);
}

.chip-action.emerald {
  background: var(--emerald-soft);
  color: var(--emerald);
  border-color: rgba(52, 211, 153, 0.35);
}

.chip-action.indigo {
  background: var(--indigo-soft);
  color: #c7d2fe;
  border-color: rgba(129, 140, 248, 0.4);
}

/* Summary Strip */
.summary-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.stat-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 13px;
  padding: 10px 8px;
  text-align: center;
}

.stat-box.compact {
  background: var(--bg-input);
  padding: 8px 6px;
}

.stat-lbl {
  font-size: 11px;
  color: var(--text-sub);
  font-weight: 700;
}

.stat-val {
  font-size: 19px;
  font-weight: 900;
  margin-top: 3px;
  font-variant-numeric: tabular-nums;
}

.stat-val.sm {
  font-size: 13.5px;
}

.stat-val.sky { color: var(--sky); }
.stat-val.amber { color: var(--amber); }
.stat-val.emerald { color: var(--emerald); }
.stat-val.danger { color: var(--danger); }

/* Segmented & Filter Bars */
.seg-mini {
  display: inline-flex;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px;
  gap: 2px;
}

.seg-btn {
  background: transparent;
  border: none;
  color: var(--text-sub);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 700;
}

.seg-btn.active {
  background: var(--bg-card-hover);
  color: var(--text);
}

.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.filter-pills {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.filter-pills::-webkit-scrollbar {
  display: none;
}

.f-pill {
  flex: 0 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-sub);
}

.f-pill.active {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

/* Progress Bars */
.prog-track {
  width: 100%;
  height: 9px;
  border-radius: 999px;
  background: var(--bg-input);
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.prog-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.3s ease;
}

.prog-fill.emerald { background: var(--emerald); }
.prog-fill.amber { background: var(--amber); }
.prog-fill.indigo { background: var(--indigo); }
.prog-fill.danger { background: var(--danger); }

/* Calendar */
.month-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.nav-arrow-btn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 800;
}

.month-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.month-title {
  font-size: 15.5px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.mini-today-btn {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 700;
  color: var(--sky);
}

.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-sub);
  margin-top: 2px;
}

.cal-weekdays .sun { color: var(--danger); }
.cal-weekdays .sat { color: var(--sky); }

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.cal-cell {
  min-height: 44px;
  border-radius: 10px;
  background: var(--bg-input);
  border: 1px solid transparent;
  padding: 5px 2px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  font-variant-numeric: tabular-nums;
}

.cal-cell.empty {
  background: transparent;
  pointer-events: none;
}

.cal-cell.today {
  border-color: rgba(56, 189, 248, 0.55);
}

.cal-cell.selected {
  background: rgba(56, 189, 248, 0.16);
  border-color: var(--sky);
}

.cal-day-num {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.1;
}

.cal-cell.sun .cal-day-num { color: #fca5a5; }
.cal-cell.sat .cal-day-num { color: #7dd3fc; }

.cal-dots {
  display: flex;
  gap: 3px;
  height: 6px;
  align-items: center;
}

.dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
}

.dot-event { background: var(--sky); }
.dot-dday { background: var(--emerald); }
.dot-quest { background: var(--amber); }

.cal-legend {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  font-size: 11px;
  color: var(--text-sub);
}

.cal-legend span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* List Items */
.item-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.item-row {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 11px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.item-row.done {
  opacity: 0.58;
}

.item-row.done .item-title {
  text-decoration: line-through;
}

.item-left {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.check-btn {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  border: 1.5px solid var(--border);
  background: var(--bg-card);
  color: #052e16;
  font-size: 13px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.check-btn.checked {
  background: var(--emerald);
  border-color: var(--emerald);
}

.item-texts {
  min-width: 0;
  flex: 1;
}

.item-title {
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.35;
  word-break: break-word;
}

.item-meta {
  font-size: 11.5px;
  color: var(--text-sub);
  margin-top: 3px;
  line-height: 1.4;
}

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

.badge {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
}

.badge.sky { background: var(--sky-soft); color: var(--sky); }
.badge.amber { background: var(--amber-soft); color: var(--amber); }
.badge.emerald { background: var(--emerald-soft); color: var(--emerald); }
.badge.indigo { background: var(--indigo-soft); color: #c7d2fe; }
.badge.danger { background: var(--danger-soft); color: var(--danger); }
.badge.muted { background: rgba(148, 163, 184, 0.14); color: var(--text-sub); }

.del-x-btn {
  background: transparent;
  border: none;
  color: var(--text-sub);
  font-size: 14px;
  padding: 4px 6px;
  border-radius: 7px;
}

.del-x-btn:active {
  background: var(--danger-soft);
  color: var(--danger);
}

.empty-hint {
  text-align: center;
  font-size: 12.5px;
  color: var(--text-sub);
  padding: 16px 8px;
  background: var(--bg-input);
  border: 1px dashed var(--border);
  border-radius: 12px;
}

/* Books */
.book-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 13px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.book-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.book-title {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.3;
}

.book-author {
  font-size: 12px;
  color: var(--text-sub);
  margin-top: 2px;
}

.book-takeaway {
  font-size: 12px;
  color: #fde68a;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: 10px;
  padding: 7px 10px;
  line-height: 1.45;
}

.book-prog-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.book-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
}

.quick-btns-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.mini-btn {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 11.5px;
  font-weight: 700;
}

.mini-btn.amber {
  background: var(--amber-soft);
  color: var(--amber);
  border-color: rgba(245, 158, 11, 0.35);
}

.mini-btn.emerald {
  background: var(--emerald-soft);
  color: var(--emerald);
  border-color: rgba(52, 211, 153, 0.35);
}

/* Welfare */
.hero-leave-card {
  background: linear-gradient(155deg, rgba(52, 211, 153, 0.13), rgba(30, 41, 59, 0.96));
  border-color: rgba(52, 211, 153, 0.38);
}

.leave-pct-badge {
  font-size: 20px;
  font-weight: 900;
  color: var(--emerald);
  font-variant-numeric: tabular-nums;
}

.leave-foot {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--text-sub);
  font-variant-numeric: tabular-nums;
}

.sub-section-title {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-sub);
  margin-top: 2px;
}

.rounds-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.round-chip {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 8px 6px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.round-chip.applied {
  border-color: rgba(56, 189, 248, 0.55);
  background: rgba(56, 189, 248, 0.1);
}

.round-chip.received {
  border-color: rgba(52, 211, 153, 0.65);
  background: rgba(52, 211, 153, 0.14);
}

.round-no {
  font-size: 12px;
  font-weight: 800;
}

.round-period {
  font-size: 10px;
  color: var(--text-sub);
  font-variant-numeric: tabular-nums;
}

.round-st {
  font-size: 10.5px;
  font-weight: 800;
}

.welfare-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 13px 14px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.welfare-card.action-needed {
  border-color: rgba(248, 113, 113, 0.5);
}

.welfare-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.welfare-agency {
  font-size: 11px;
  color: var(--text-sub);
  font-weight: 700;
}

.welfare-title {
  font-size: 14.5px;
  font-weight: 800;
  margin-top: 2px;
}

.welfare-amount {
  font-size: 13px;
  font-weight: 800;
  color: var(--emerald);
}

.welfare-note {
  font-size: 12px;
  color: #cbd5e1;
  line-height: 1.45;
  background: var(--bg-input);
  border-radius: 9px;
  padding: 7px 9px;
}

/* Expense */
.hero-expense-card {
  background: linear-gradient(155deg, rgba(129, 140, 248, 0.16), rgba(30, 41, 59, 0.96));
  border-color: rgba(129, 140, 248, 0.4);
}

.exp-hero-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 8px;
}

.exp-hero-num {
  font-size: 25px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}

.exp-form {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.exp-amount-row {
  display: grid;
  grid-template-columns: 1fr 126px;
  gap: 8px;
}

.inp {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 9px 11px;
  font-size: 13.5px;
  outline: none;
}

.inp:focus {
  border-color: var(--sky);
}

.inp.big-num {
  font-size: 16px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.quick-amt-chips {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
}

.amt-chip {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 2px;
  font-size: 11.5px;
  font-weight: 700;
}

.amt-chip.clear {
  color: var(--text-sub);
}

.chip-select-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip-select-wrap.compact {
  gap: 5px;
}

.sel-chip {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-sub);
}

.sel-chip.active {
  background: var(--indigo-soft);
  color: #e0e7ff;
  border-color: var(--indigo);
}

.exp-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.fixed-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-sub);
  cursor: pointer;
}

.exp-submit-row {
  display: grid;
  grid-template-columns: 1fr 78px;
  gap: 8px;
}

.btn-primary {
  border: none;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13.5px;
  font-weight: 800;
}

.btn-primary.indigo {
  background: var(--indigo);
  color: #0f172a;
}

.cat-bars {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.cat-bar-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cat-bar-head {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.exp-history {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.exp-day-head {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  font-weight: 800;
  color: var(--text-sub);
  padding: 0 2px 4px;
  border-bottom: 1px solid rgba(51, 65, 85, 0.55);
}

.exp-amt {
  font-size: 13.5px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.exp-amt.out { color: var(--text); }
.exp-amt.in { color: var(--emerald); }

/* Bottom Navigation */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 540px;
  z-index: 40;
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
}

.nav-tab {
  background: transparent;
  border: none;
  color: var(--text-sub);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 5px 2px;
  font-size: 11px;
  font-weight: 700;
}

.nav-ico {
  font-size: 18px;
  line-height: 1.1;
}

.nav-tab.active {
  color: var(--sky);
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(2, 6, 23, 0.72);
  display: none;
  align-items: flex-end;
  justify-content: center;
}

.modal-backdrop.open {
  display: flex;
}

.modal-sheet {
  width: 100%;
  max-width: 540px;
  max-height: 88vh;
  overflow-y: auto;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-radius: 20px 20px 0 0;
  padding: 10px 16px calc(20px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-handle {
  width: 38px;
  height: 4px;
  border-radius: 999px;
  background: var(--border);
  margin: 0 auto;
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title {
  font-size: 16px;
  font-weight: 800;
}

.modal-close-x {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 999px;
  width: 30px;
  height: 30px;
  font-size: 14px;
}

.modal-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.field-lbl {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-sub);
  margin-bottom: 4px;
  display: block;
}

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

.modal-btns {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.btn-save {
  flex: 1;
  background: var(--sky);
  color: #082f49;
  border: none;
  border-radius: 11px;
  padding: 11px;
  font-size: 14px;
  font-weight: 800;
}

.btn-close {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 11px 16px;
  font-size: 13.5px;
  font-weight: 700;
}

.btn-danger {
  background: var(--danger-soft);
  color: var(--danger);
  border: 1px solid rgba(248, 113, 113, 0.4);
  border-radius: 11px;
  padding: 11px 14px;
  font-size: 13.5px;
  font-weight: 800;
}

/* PIN Overlay */
.pin-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(15, 23, 42, 0.98);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.pin-overlay.open {
  display: flex;
}

.pin-card {
  width: 100%;
  max-width: 320px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.pin-icon {
  font-size: 30px;
  color: var(--sky);
}

.pin-title {
  font-size: 18px;
  font-weight: 800;
}

.pin-msg {
  font-size: 12.5px;
  color: var(--text-sub);
  min-height: 18px;
}

.pin-msg.error {
  color: var(--danger);
  font-weight: 700;
}

.pin-dots {
  display: flex;
  gap: 12px;
  margin: 6px 0;
}

.pin-dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: transparent;
}

.pin-dot.filled {
  background: var(--sky);
  border-color: var(--sky);
}

.pin-pad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  width: 100%;
  margin-top: 6px;
}

.pin-key {
  height: 54px;
  border-radius: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-size: 20px;
  font-weight: 700;
}

.pin-key.fn {
  font-size: 15px;
  color: var(--text-sub);
  background: var(--bg-input);
}

/* Toast */
.toast {
  position: fixed;
  bottom: calc(82px + env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  z-index: 80;
  background: #020617;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 12.5px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  white-space: nowrap;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
