:root {
  --bg: #FAF8F5;
  --surface: #FFFFFF;
  --surface-tint: #F4EFE8;
  --ink: #2E1F3B;
  --ink-2: #5D4E6B;
  --ink-3: #8C7E99;
  --line: rgba(46, 31, 59, 0.09);
  --line-strong: rgba(46, 31, 59, 0.16);
  --teal: #1F5E5B;
  --teal-hover: #174947;
  --teal-soft: #E9F3F2;
  --plum: #4B3261;
  --plum-soft: #F3EDF8;
  --amber: #B0721E;
  --amber-soft: #FDF3E2;
  --rose: #B33A4B;
  --rose-soft: #FDECEF;
  --green: #1E6F4E;
  --green-soft: #E8F6EF;
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(46, 31, 59, 0.04), 0 10px 30px rgba(46, 31, 59, 0.05);
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

[hidden] { display: none !important; }

a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Boot */
.boot-screen {
  min-height: 100dvh;
  display: grid;
  place-items: center;
}
.boot-mark {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--serif);
  font-size: 20px;
  color: var(--ink);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 0.45; } 50% { opacity: 1; } }

/* Login Portal */
.login-view {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 20px;
  background:
    radial-gradient(900px 500px at 8% 0%, rgba(31, 94, 91, 0.08), transparent 60%),
    radial-gradient(700px 500px at 95% 100%, rgba(75, 50, 97, 0.08), transparent 60%),
    var(--bg);
}

.login-shell {
  width: 100%;
  max-width: 980px;
  min-height: 580px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 24px 70px rgba(46, 31, 59, 0.09);
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  overflow: hidden;
}

.login-brand {
  background: linear-gradient(155deg, #1B4E4C 0%, #1F5E5B 52%, #2B3B4E 100%);
  color: #FAF8F5;
  padding: 44px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}
.login-brand::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 15%, rgba(232, 199, 140, 0.16), transparent 45%);
  pointer-events: none;
}

.brand-top {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 1;
}
.brand-name { font-family: var(--serif); font-size: 18px; font-weight: 500; }
.brand-sub { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; opacity: 0.72; }

.brand-copy { position: relative; z-index: 1; }
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: #E8C78C;
  margin: 0 0 14px;
}
.brand-copy h1 {
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 500;
  line-height: 1.16;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}
.brand-lead {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(250, 248, 245, 0.8);
  margin: 0;
}

.brand-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  position: relative;
  z-index: 1;
}
.brand-pills span {
  font-size: 12px;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(250, 248, 245, 0.9);
}

.login-panel {
  padding: 48px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.login-mobile-brand { display: none; }
.step-kicker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--teal);
  margin: 0 0 10px;
}
.login-card h2 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
  margin: 0 0 8px;
}
.login-sub {
  color: var(--ink-2);
  margin: 0 0 24px;
  font-size: 14.5px;
}
.login-footnote {
  margin: 22px 0 0;
  font-size: 12.5px;
  color: var(--ink-3);
}

.back-link { margin-bottom: 14px; font-size: 13.5px; }

.otp-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin: 0 0 18px;
}
.otp-row input {
  width: 100%;
  aspect-ratio: 1 / 1.15;
  text-align: center;
  font-family: var(--mono);
  font-size: 24px;
  font-weight: 600;
  border-radius: 12px;
  border: 1.5px solid var(--line-strong);
  background: var(--bg);
  color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.otp-row input:focus {
  outline: none;
  border-color: var(--teal);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(31, 94, 91, 0.14);
}

/* Form controls */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}
.field > span {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 11px 13px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  transition: border-color 0.15s, background 0.15s;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--teal);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(31, 94, 91, 0.12);
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.check-field {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  color: var(--ink-2);
  margin: 6px 0 16px;
  cursor: pointer;
}
.check-field input { width: 17px; height: 17px; accent-color: var(--teal); }

.form-error {
  background: var(--rose-soft);
  color: var(--rose);
  border: 1px solid rgba(179, 58, 75, 0.2);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13.5px;
  margin-bottom: 14px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 11px;
  border: 1px solid transparent;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.08s;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--teal-hover); }
.btn-soft { background: var(--teal-soft); color: var(--teal); }
.btn-soft:hover:not(:disabled) { background: #dceceb; }
.btn-outline { background: var(--surface); border-color: var(--line-strong); color: var(--ink); }
.btn-outline:hover:not(:disabled) { background: var(--surface-tint); }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--surface-tint); color: var(--ink); }
.btn-danger { background: var(--rose-soft); color: var(--rose); }
.btn-sm { padding: 8px 13px; font-size: 13px; border-radius: 9px; }
.btn-xs { padding: 5px 10px; font-size: 12.5px; border-radius: 8px; }
.btn-full { width: 100%; margin-top: 4px; }

.text-btn {
  background: none;
  border: 0;
  padding: 0;
  color: var(--ink-2);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.text-btn:hover { color: var(--teal); }

.icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink-2);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.icon-btn:hover { background: var(--surface-tint); color: var(--ink); }

/* App Shell */
.app-shell {
  display: grid;
  grid-template-columns: 248px 1fr;
  min-height: 100dvh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100dvh;
  background: var(--surface);
  border-right: 1px solid var(--line);
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 2px 6px;
}
.sb-title { font-family: var(--serif); font-size: 16.5px; font-weight: 600; line-height: 1.15; }
.sb-badge { font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; color: var(--teal); }

.side-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border-radius: 11px;
  border: 0;
  background: transparent;
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s, color 0.15s;
}
.nav-item svg { width: 18px; height: 18px; flex-shrink: 0; }
.nav-item:hover { background: var(--bg); color: var(--ink); }
.nav-item.active { background: var(--teal-soft); color: var(--teal); }
.nav-badge {
  margin-left: auto;
  font-style: normal;
  font-family: var(--mono);
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--teal);
  color: #fff;
}

.sidebar-footer {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.user-pill { display: flex; align-items: center; gap: 10px; }
.avatar {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--plum-soft);
  color: var(--plum);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.user-meta { min-width: 0; }
.user-name { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-email { font-size: 11.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  padding: 0 2px;
}

.main-col { min-width: 0; display: flex; flex-direction: column; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(250, 248, 245, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.mobile-brand { display: none; }
.topbar-title { font-family: var(--serif); font-size: 20px; font-weight: 500; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }

.year-select {
  padding: 8px 11px;
  border-radius: 9px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
}

.tab-root {
  padding: 26px 28px 60px;
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
}

/* Dashboard components */
.greeting-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.greeting-row h1 {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 500;
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}
.greeting-sub { color: var(--ink-2); margin: 0; font-size: 14.5px; }

.tax-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-2);
  box-shadow: var(--shadow);
}
.tax-pill strong { font-family: var(--mono); color: var(--ink); }

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}
.kpi-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow);
}
.kpi-label { font-size: 12.5px; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.06em; }
.kpi-value {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 500;
  margin: 6px 0 4px;
  letter-spacing: -0.02em;
}
.kpi-value.teal { color: var(--teal); }
.kpi-value.plum { color: var(--plum); }
.kpi-sub { font-size: 12.5px; color: var(--ink-2); }

.two-col {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 18px;
  margin-bottom: 20px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow);
}
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.card-head h2 {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 500;
  margin: 0;
}
.card-sub { font-size: 13px; color: var(--ink-3); }

/* SVG Cashflow Chart */
.chart-wrap { width: 100%; overflow-x: auto; }
.chart-svg { width: 100%; height: 210px; display: block; }
.chart-legend {
  display: flex;
  gap: 16px;
  font-size: 12.5px;
  color: var(--ink-2);
}
.legend-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  margin-right: 5px;
}

/* Radar / Lists */
.radar-list { display: flex; flex-direction: column; gap: 10px; }
.radar-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--bg);
  border: 1px solid var(--line);
}
.radar-item strong { display: block; font-size: 14px; }
.radar-item span { font-size: 12.5px; color: var(--ink-2); }

/* Pills & Progress */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.pill-teal { background: var(--teal-soft); color: var(--teal); }
.pill-green { background: var(--green-soft); color: var(--green); }
.pill-amber { background: var(--amber-soft); color: var(--amber); }
.pill-rose { background: var(--rose-soft); color: var(--rose); }
.pill-plum { background: var(--plum-soft); color: var(--plum); }
.pill-muted { background: var(--surface-tint); color: var(--ink-2); }

.progress-track {
  height: 8px;
  border-radius: 999px;
  background: var(--surface-tint);
  overflow: hidden;
  margin: 8px 0 6px;
}
.progress-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--teal);
  transition: width 0.3s ease;
}
.progress-fill.warn { background: var(--amber); }
.progress-fill.full { background: var(--rose); }

/* Filter bars */
.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.seg-group {
  display: inline-flex;
  background: var(--surface-tint);
  padding: 4px;
  border-radius: 11px;
  gap: 3px;
}
.seg-btn {
  border: 0;
  background: transparent;
  padding: 6px 12px;
  border-radius: 8px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
}
.seg-btn.active { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(46, 31, 59, 0.08); }

.search-input {
  padding: 8px 13px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  font-family: var(--sans);
  font-size: 13.5px;
  min-width: 220px;
}

/* Grids for Leads / Students / Tutors */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 14px;
}
.entity-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.entity-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.entity-title { font-family: var(--serif); font-size: 18px; font-weight: 500; margin: 0; }
.entity-meta { font-size: 13px; color: var(--ink-2); }
.entity-note {
  font-size: 13.5px;
  color: var(--ink-2);
  background: var(--bg);
  border-radius: 10px;
  padding: 10px 12px;
  white-space: pre-wrap;
}
.entity-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 6px;
}

/* Tables */
.table-wrap { overflow-x: auto; }
table.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
table.data-table th {
  text-align: left;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ink-3);
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}
table.data-table td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
table.data-table tr:last-child td { border-bottom: 0; }
.mono { font-family: var(--mono); font-size: 13.5px; }
.amt-in { color: var(--green); font-weight: 600; }
.amt-out { color: var(--ink); font-weight: 600; }

.cat-select {
  padding: 5px 8px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--bg);
  font-family: var(--sans);
  font-size: 12.5px;
  color: var(--ink);
}

/* Sync cards */
.sync-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}
.sync-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sync-card h3 { font-family: var(--serif); font-size: 16.5px; margin: 0; }
.sync-card p { margin: 0; font-size: 13px; color: var(--ink-2); flex: 1; }

.dropzone {
  border: 1.5px dashed var(--line-strong);
  border-radius: 14px;
  padding: 24px;
  text-align: center;
  background: var(--bg);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.dropzone:hover, .dropzone.drag { border-color: var(--teal); background: var(--teal-soft); }

.empty-state {
  text-align: center;
  padding: 36px 20px;
  color: var(--ink-2);
}
.empty-state h3 { font-family: var(--serif); font-size: 20px; color: var(--ink); margin: 0 0 6px; }
.empty-state p { margin: 0 0 16px; font-size: 14px; }

/* Modal Sheet */
dialog.sheet {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 0;
  width: min(520px, calc(100vw - 24px));
  max-height: min(88dvh, 720px);
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 28px 80px rgba(46, 31, 59, 0.22);
  overflow: hidden;
}
dialog.sheet::backdrop {
  background: rgba(34, 23, 44, 0.42);
  backdrop-filter: blur(4px);
}
.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}
.sheet-head h3 { font-family: var(--serif); font-size: 20px; font-weight: 500; margin: 0; }
.sheet-body {
  padding: 20px 22px 24px;
  overflow-y: auto;
  max-height: calc(88dvh - 70px);
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 90;
  background: var(--ink);
  color: #FAF8F5;
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 500;
  box-shadow: 0 14px 40px rgba(46, 31, 59, 0.28);
}

.mobile-tabs { display: none; }

@media (max-width: 960px) {
  .login-shell { grid-template-columns: 1fr; max-width: 440px; min-height: auto; }
  .login-brand { display: none; }
  .login-panel { padding: 34px 26px; }
  .login-mobile-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--serif);
    font-size: 19px;
    margin-bottom: 22px;
  }
  .login-mobile-brand em {
    font-style: normal;
    font-family: var(--mono);
    font-size: 11px;
    background: var(--teal-soft);
    color: var(--teal);
    padding: 3px 7px;
    border-radius: 6px;
    vertical-align: middle;
  }

  .app-shell { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .topbar { padding: 12px 16px; }
  .topbar-title { display: none; }
  .mobile-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--serif);
    font-size: 16.5px;
    font-weight: 600;
  }
  .mobile-brand em {
    font-style: normal;
    font-family: var(--mono);
    font-size: 10px;
    color: var(--teal);
    background: var(--teal-soft);
    padding: 2px 6px;
    border-radius: 5px;
  }

  .tab-root { padding: 18px 16px calc(92px + env(safe-area-inset-bottom)); }
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .two-col, .sync-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }

  .mobile-tabs {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--line);
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
  }
  .m-tab {
    border: 0;
    background: transparent;
    color: var(--ink-3);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 6px 2px;
    font-family: var(--sans);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
  }
  .m-tab svg { width: 20px; height: 20px; }
  .m-tab.active { color: var(--teal); }
  .toast { left: 16px; right: 16px; bottom: calc(82px + env(safe-area-inset-bottom)); }
}
