/* Pay MIGWEB — design system do painel (mobile first) */

:root {
  --bg: #f5f6f3;
  --surface: #ffffff;
  --surface-2: #f8f9f6;
  --surface-3: #eef1ec;
  --border: #e4e8e2;
  --border-strong: #d0d8d2;
  --text: #0b1613;
  --text-2: #43524c;
  --text-3: #83918b;
  --brand: #0f766e;
  --brand-strong: #115e59;
  --brand-soft: #e2f2ee;
  --brand-text: #0f6b63;
  --success: #15803d;
  --success-soft: #e7f5eb;
  --warning: #c27803;
  --warning-soft: #fff6e0;
  --danger: #dc2626;
  --danger-soft: #fdecec;
  --info: #0284c7;
  --info-soft: #e6f4fb;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow: 0 1px 3px rgba(16, 24, 40, .06), 0 4px 14px rgba(16, 24, 40, .05);
  --shadow-lg: 0 12px 40px rgba(16, 24, 40, .16);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --nav-h: 64px;
  --top-h: 60px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --gold: #c9a45c;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #090e0d;
  --surface: #101715;
  --surface-2: #151e1b;
  --surface-3: #1c2723;
  --border: #212e2a;
  --border-strong: #2e3d38;
  --text: #edf4f1;
  --text-2: #adbcb5;
  --text-3: #74847d;
  --brand: #14a394;
  --brand-strong: #0f8f81;
  --brand-soft: rgba(20, 163, 148, .16);
  --brand-text: #5fd6c6;
  --success: #4ade80;
  --success-soft: rgba(74, 222, 128, .12);
  --warning: #fbbf24;
  --warning-soft: rgba(251, 191, 36, .13);
  --danger: #f87171;
  --danger-soft: rgba(248, 113, 113, .13);
  --info: #38bdf8;
  --info-soft: rgba(56, 189, 248, .13);
  --shadow-sm: none;
  --shadow: 0 1px 0 rgba(255, 255, 255, .02);
  --shadow-lg: 0 16px 50px rgba(0, 0, 0, .55);
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #090e0d;
    --surface: #101715;
    --surface-2: #151e1b;
    --surface-3: #1c2723;
    --border: #212e2a;
    --border-strong: #2e3d38;
    --text: #edf4f1;
    --text-2: #adbcb5;
    --text-3: #74847d;
    --brand: #14a394;
    --brand-strong: #0f8f81;
    --brand-soft: rgba(20, 163, 148, .16);
    --brand-text: #5fd6c6;
    --success: #4ade80;
    --success-soft: rgba(74, 222, 128, .12);
    --warning: #fbbf24;
    --warning-soft: rgba(251, 191, 36, .13);
    --danger: #f87171;
    --danger-soft: rgba(248, 113, 113, .13);
    --info: #38bdf8;
    --info-soft: rgba(56, 189, 248, .13);
    --shadow-sm: none;
    --shadow: 0 1px 0 rgba(255, 255, 255, .02);
    --shadow-lg: 0 16px 50px rgba(0, 0, 0, .55);
    color-scheme: dark;
  }
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
}

[v-cloak] { display: none !important; }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
a { color: var(--brand-text); text-decoration: none; }
svg { flex-shrink: 0; }

.num { font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.muted { color: var(--text-2); }
.faint { color: var(--text-3); }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Splash ---------- */
.splash {
  position: fixed; inset: 0; display: flex; align-items: center; justify-content: center;
  background: var(--bg); z-index: 100;
}
.splash img { width: 64px; height: 64px; border-radius: 18px; animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(.92); opacity: .7; } }

/* ---------- Shell ---------- */
.shell { min-height: 100vh; min-height: 100dvh; }

.topbar {
  position: sticky; top: 0; z-index: 30;
  padding: calc(var(--safe-top) + 10px) 16px 10px;
  display: flex; align-items: center; gap: 12px;
  min-height: calc(var(--top-h) + var(--safe-top));
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.topbar.scrolled { border-bottom-color: var(--border); }
.topbar-title { flex: 1; min-width: 0; }
.topbar-title h1 { margin: 0; font-size: 22px; font-weight: 750; letter-spacing: -.025em; line-height: 1.15; }
.topbar-title p { margin: 1px 0 0; font-size: 13px; color: var(--text-3); }
.topbar .brand-mini { width: 34px; height: 34px; border-radius: 10px; }

.content {
  padding: 4px 16px calc(var(--nav-h) + var(--safe-bottom) + 96px);
  max-width: 1120px; margin: 0 auto;
}

.bottomnav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: grid; grid-template-columns: repeat(5, 1fr);
  height: calc(var(--nav-h) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border-top: 1px solid var(--border);
}
.bottomnav button {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  font-size: 11px; font-weight: 600; color: var(--text-3); position: relative;
  transition: color .15s;
}
.bottomnav button .pill {
  width: 54px; height: 30px; border-radius: 99px; display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.bottomnav button.active { color: var(--brand-text); }
.bottomnav button.active .pill { background: var(--brand-soft); }
.bottomnav .dot {
  position: absolute; top: 8px; left: calc(50% + 10px); min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 99px; background: var(--danger); color: #fff; font-size: 10px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; border: 2px solid var(--surface);
}

.sidebar { display: none; }

.fab {
  position: fixed; z-index: 35;
  right: 16px; bottom: calc(var(--nav-h) + var(--safe-bottom) + 16px);
  height: 56px; padding: 0 22px 0 18px; border-radius: 18px;
  background: var(--brand); color: #fff; font-weight: 650; font-size: 15px;
  display: flex; align-items: center; gap: 8px;
  box-shadow: 0 8px 24px color-mix(in srgb, var(--brand) 45%, transparent);
  transition: transform .15s, background .15s;
}
.fab:active { transform: scale(.96); }

@media (min-width: 1024px) {
  .shell { display: grid; grid-template-columns: 260px 1fr; }
  .bottomnav { display: none; }
  .sidebar {
    display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh;
    padding: 20px 14px; border-right: 1px solid var(--border); background: var(--surface);
  }
  .sidebar .brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 22px; font-weight: 750; font-size: 17px; letter-spacing: -.02em; }
  .sidebar .brand img { width: 34px; height: 34px; border-radius: 10px; }
  .sidebar nav { display: flex; flex-direction: column; gap: 2px; }
  .sidebar nav button {
    display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px;
    font-weight: 600; font-size: 14.5px; color: var(--text-2); text-align: left;
  }
  .sidebar nav button:hover { background: var(--surface-2); color: var(--text); }
  .sidebar nav button.active { background: var(--brand-soft); color: var(--brand-text); }
  .sidebar nav .count { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--danger); background: var(--danger-soft); padding: 1px 8px; border-radius: 99px; }
  .sidebar .me { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 14px; background: var(--surface-2); }
  .topbar { padding: 20px 32px 14px; min-height: 76px; }
  .topbar .brand-mini { display: none; }
  .topbar-title h1 { font-size: 26px; }
  .content { padding: 4px 32px 48px; }
  .fab { bottom: 28px; right: 32px; }
}

/* ---------- Cards & seções ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.card-pad { padding: 16px; }
.section { margin-top: 22px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 2px 10px; }
.section-head h2 { margin: 0; font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.section-head .link { font-size: 13.5px; font-weight: 600; color: var(--brand-text); display: inline-flex; align-items: center; gap: 2px; }

.grid { display: grid; gap: 12px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 768px) {
  .grid-md-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-md-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .grid-md-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .grid-lg-main { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: start; }
}

/* Hero (resumo do mês) */
.hero {
  position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: 20px;
  color: #fff;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(255, 255, 255, .16) 0%, rgba(255, 255, 255, 0) 55%),
    radial-gradient(80% 90% at 0% 100%, rgba(201, 164, 92, .22) 0%, rgba(201, 164, 92, 0) 60%),
    linear-gradient(135deg, #0f766e 0%, #115e59 50%, #0b3b37 100%);
  box-shadow: 0 14px 34px rgba(11, 59, 55, .28);
}
.hero::after {
  content: ""; position: absolute; right: -60px; bottom: -80px; width: 220px; height: 220px; border-radius: 50%;
  background: rgba(255, 255, 255, .07);
}
.hero .label { font-size: 13px; font-weight: 600; opacity: .85; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.hero .big { font-size: 34px; font-weight: 780; letter-spacing: -.035em; margin: 6px 0 2px; line-height: 1.1; }
.hero .sub { font-size: 13.5px; opacity: .85; }
.hero .bar { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .2); margin: 16px 0 10px; overflow: hidden; }
.hero .bar > span { display: block; height: 100%; border-radius: inherit; background: #fff; transition: width .6s cubic-bezier(.2, .8, .2, 1); }
.hero .legend { display: flex; justify-content: space-between; font-size: 12.5px; opacity: .9; gap: 8px; }
.hero .month-switch { display: inline-flex; align-items: center; gap: 2px; background: rgba(255, 255, 255, .14); border-radius: 99px; padding: 2px; position: relative; z-index: 1; }
.hero .month-switch button { color: #fff; width: 28px; height: 28px; border-radius: 99px; display: flex; align-items: center; justify-content: center; }
.hero .month-switch button:disabled { opacity: .35; }
.hero .month-switch span { font-size: 12.5px; font-weight: 650; padding: 0 4px; text-transform: capitalize; }

.stat { padding: 14px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.stat .k { font-size: 12.5px; color: var(--text-2); font-weight: 600; display: flex; align-items: center; gap: 6px; }
.stat .v { font-size: 20px; font-weight: 750; letter-spacing: -.025em; }
.stat .h { font-size: 12px; color: var(--text-3); }
.stat .ico { width: 26px; height: 26px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; }

.tone-success { color: var(--success); background: var(--success-soft); }
.tone-warning { color: var(--warning); background: var(--warning-soft); }
.tone-danger { color: var(--danger); background: var(--danger-soft); }
.tone-brand { color: var(--brand-text); background: var(--brand-soft); }
.tone-info { color: var(--info); background: var(--info-soft); }
.tone-neutral { color: var(--text-2); background: var(--surface-3); }

/* ---------- Listas ---------- */
.list { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.row {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; text-align: left;
  min-height: 64px; position: relative; transition: background .12s;
}
.row + .row::before { content: ""; position: absolute; top: 0; left: 66px; right: 0; height: 1px; background: var(--border); }
.row:active, .row.pressable:hover { background: var(--surface-2); }
.row:disabled { opacity: .6; }
.row .main { flex: 1; min-width: 0; }
.row .title { font-weight: 620; font-size: 15px; }
.row .subtitle { font-size: 13px; color: var(--text-3); margin-top: 1px; }
.row .end { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; }
.row .amount { font-weight: 700; font-size: 15px; }
.row .chev { color: var(--text-3); margin-left: -4px; }

.group-label { font-size: 12.5px; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; margin: 18px 4px 8px; display: flex; justify-content: space-between; }

.avatar {
  width: 40px; height: 40px; border-radius: 13px; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px; flex-shrink: 0; letter-spacing: -.02em;
}
.avatar.lg { width: 64px; height: 64px; border-radius: 20px; font-size: 22px; }

.badge {
  display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 99px;
  font-size: 11.5px; font-weight: 700; white-space: nowrap;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.plain::before { display: none; }

.empty { text-align: center; padding: 36px 20px; color: var(--text-3); }
.empty .ico { width: 56px; height: 56px; border-radius: 18px; margin: 0 auto 12px; display: flex; align-items: center; justify-content: center; background: var(--surface-3); color: var(--text-2); }
.empty h3 { margin: 0 0 4px; color: var(--text); font-size: 16px; }
.empty p { margin: 0; font-size: 14px; }

.skeleton { background: linear-gradient(90deg, var(--surface-3) 0%, var(--surface-2) 50%, var(--surface-3) 100%); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: 8px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- Controles ---------- */
.toolbar { display: flex; flex-direction: column; gap: 10px; margin-bottom: 4px; }
.search {
  display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--border); color: var(--text-3);
}
.search input { flex: 1; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 15px; min-width: 0; }
.search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }

.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex-shrink: 0; height: 36px; padding: 0 14px; border-radius: 99px; font-size: 13.5px; font-weight: 620;
  background: var(--surface); border: 1px solid var(--border); color: var(--text-2);
  display: inline-flex; align-items: center; gap: 6px;
}
.chip .n { font-size: 12px; font-weight: 700; color: var(--text-3); }
.chip.active { background: var(--text); border-color: var(--text); color: var(--bg); }
.chip.active .n { color: inherit; opacity: .7; }

.month-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.month-bar .label { font-weight: 700; font-size: 15px; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center;
  color: var(--text-2); transition: background .12s;
}
.icon-btn:hover, .icon-btn:active { background: var(--surface-3); }
.icon-btn.bordered { border: 1px solid var(--border); background: var(--surface); }
.icon-btn:disabled { opacity: .35; }

.btn {
  height: 48px; padding: 0 18px; border-radius: 14px; font-weight: 650; font-size: 15px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: transform .1s, background .15s, opacity .15s; white-space: nowrap;
}
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .5; pointer-events: none; }
.btn.block { width: 100%; }
.btn.sm { height: 38px; padding: 0 14px; font-size: 14px; border-radius: 11px; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-strong); }
.btn-success { background: var(--success); color: #fff; }
:root[data-theme="dark"] .btn-success { color: #052e1f; }
.btn-secondary { background: var(--surface-3); color: var(--text); }
.btn-outline { background: var(--surface); color: var(--text); border: 1px solid var(--border-strong); }
.btn-danger-soft { background: var(--danger-soft); color: var(--danger); }
.btn-ghost { color: var(--brand-text); }
.btn-whats { background: #25d366; color: #063d1d; }

.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Formulários */
.form { display: flex; flex-direction: column; gap: 14px; }
.field label { display: block; font-size: 13px; font-weight: 650; color: var(--text-2); margin: 0 2px 6px; }
.field .hint { font-size: 12.5px; color: var(--text-3); margin: 6px 2px 0; }
.field .err { font-size: 12.5px; color: var(--danger); margin: 6px 2px 0; font-weight: 600; }
.input {
  width: 100%; height: 50px; padding: 0 14px; border-radius: 14px; border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--text); font-size: 16px; outline: none;
  transition: border-color .15s, box-shadow .15s; -webkit-appearance: none; appearance: none;
}
textarea.input { height: auto; min-height: 84px; padding: 12px 14px; resize: vertical; }
select.input { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%238a91a6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 40px; }
.input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.input.invalid { border-color: var(--danger); box-shadow: 0 0 0 3px var(--danger-soft); }
.input-group { position: relative; }
.input-group .prefix { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-3); font-weight: 650; pointer-events: none; }
.input-group .prefix + .input { padding-left: 44px; }
.input.money { font-size: 22px; font-weight: 700; height: 58px; letter-spacing: -.02em; }
.input-group .prefix.money { font-size: 18px; }
.input-group .suffix { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.switch-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); }
.switch-row .main { flex: 1; min-width: 0; }
.switch-row .title { font-weight: 620; font-size: 14.5px; }
.switch-row .subtitle { font-size: 12.5px; color: var(--text-3); }
.switch { position: relative; width: 46px; height: 28px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch span { position: absolute; inset: 0; border-radius: 99px; background: var(--border-strong); transition: background .2s; }
.switch span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s; }
.switch input:checked + span, .switch.on span { background: var(--brand); }
.switch input:checked + span::after, .switch.on span::after { transform: translateX(18px); }
.switch input:focus-visible + span { box-shadow: 0 0 0 3px var(--brand-soft); }

.segmented { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--surface-3); border-radius: 12px; padding: 3px; gap: 3px; }
.segmented button { height: 36px; border-radius: 9px; font-weight: 620; font-size: 13.5px; color: var(--text-2); display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.segmented button.active { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }

.alert { display: flex; gap: 10px; padding: 12px 14px; border-radius: 14px; font-size: 13.5px; line-height: 1.45; }
.alert svg { margin-top: 1px; }

/* ---------- Bottom sheet / dialog ---------- */
.sheet-backdrop {
  position: fixed; inset: 0; z-index: 60; background: rgba(8, 10, 18, .48);
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
}
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 61;
  max-height: calc(100dvh - var(--safe-top) - 24px);
  display: flex; flex-direction: column;
  background: var(--surface); border-radius: 24px 24px 0 0;
  box-shadow: var(--shadow-lg);
  padding-bottom: var(--safe-bottom);
}
.sheet .grabber { width: 40px; height: 5px; border-radius: 99px; background: var(--border-strong); margin: 8px auto 0; flex-shrink: 0; }
.sheet-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px 6px 20px; flex-shrink: 0; }
.sheet-head h3 { flex: 1; margin: 0; font-size: 18px; font-weight: 720; letter-spacing: -.02em; }
.sheet-body { padding: 8px 20px 20px; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.sheet-foot { padding: 12px 20px 16px; border-top: 1px solid var(--border); display: flex; gap: 10px; flex-shrink: 0; background: var(--surface); }
.sheet-foot .btn { flex: 1; }

@media (min-width: 640px) {
  .sheet {
    left: 50%; right: auto; bottom: auto; top: 50%; width: min(520px, calc(100vw - 48px));
    transform: translate(-50%, -50%); border-radius: 24px; max-height: min(86vh, 860px); padding-bottom: 0;
  }
  .sheet .grabber { display: none; }
  .sheet-head { padding-top: 16px; }
}

.sheet-enter-active, .sheet-leave-active { transition: transform .32s cubic-bezier(.2, .9, .25, 1), opacity .25s; }
.sheet-enter-from, .sheet-leave-to { transform: translateY(100%); }
@media (min-width: 640px) {
  .sheet-enter-from, .sheet-leave-to { transform: translate(-50%, -46%); opacity: 0; }
}
.fade-enter-active, .fade-leave-active { transition: opacity .25s; }
.fade-enter-from, .fade-leave-to { opacity: 0; }

/* Detalhe */
.detail-hero { text-align: center; padding: 6px 0 18px; }
.detail-hero .amount { font-size: 38px; font-weight: 800; letter-spacing: -.04em; margin: 8px 0 6px; }
.kv { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.kv > div { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 14px; font-size: 14px; }
.kv > div + div { border-top: 1px solid var(--border); }
.kv dt { color: var(--text-3); font-weight: 550; }
.kv dd { margin: 0; font-weight: 620; text-align: right; min-width: 0; overflow-wrap: anywhere; }
.actions { display: grid; gap: 10px; margin-top: 16px; }
.actions-2 { grid-template-columns: 1fr 1fr; }
.quick-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 4px 0 16px; }
.quick-actions a, .quick-actions button {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 4px; border-radius: 14px;
  background: var(--surface-2); border: 1px solid var(--border); font-size: 12px; font-weight: 620; color: var(--text-2);
}
.quick-actions a.disabled, .quick-actions button:disabled { opacity: .4; pointer-events: none; }
.quick-actions svg { color: var(--brand-text); }

.fee-card { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 16px; background: var(--brand-soft); margin-bottom: 14px; }
.fee-card .v { font-size: 22px; font-weight: 780; letter-spacing: -.025em; color: var(--text); }
.fee-card .k { font-size: 12.5px; color: var(--brand-text); font-weight: 650; }

/* ---------- Gráficos ---------- */
.chart { display: flex; align-items: flex-end; gap: 6px; height: 160px; padding-top: 18px; }
.chart .col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; min-width: 0; position: relative; }
.chart .bar { width: 100%; max-width: 34px; border-radius: 8px 8px 4px 4px; background: color-mix(in srgb, var(--brand) 30%, var(--surface)); position: relative; min-height: 4px; transition: height .6s cubic-bezier(.2, .8, .2, 1); }
.chart .col.current .bar { background: var(--brand); }
.chart .col .m { font-size: 11px; color: var(--text-3); font-weight: 600; text-transform: capitalize; flex-shrink: 0; }
.chart .barwrap { flex: 1; min-height: 0; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; }
.chart .col .tip { height: 18px; line-height: 18px; font-size: 10.5px; font-weight: 700; color: var(--text-3); white-space: nowrap; }
.chart .col.current .tip { color: var(--brand-text); }

.meter { height: 8px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.meter > span { display: block; height: 100%; border-radius: inherit; }

/* ---------- Toast ---------- */
.toasts {
  position: fixed; z-index: 90; left: 12px; right: 12px; top: calc(var(--safe-top) + 10px);
  display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none;
}
.toast {
  pointer-events: auto; display: flex; align-items: center; gap: 10px; max-width: 460px; width: max-content;
  padding: 12px 16px; border-radius: 16px; font-size: 14px; font-weight: 600;
  background: #151a2b; color: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
}
:root[data-theme="dark"] .toast { background: #2a3040; }
.toast.success svg { color: #34d399; }
.toast.error svg { color: #f87171; }
.toast.info svg { color: #a5b4fc; }
.toast-enter-active, .toast-leave-active { transition: all .3s cubic-bezier(.2, .9, .25, 1); }
.toast-enter-from, .toast-leave-to { opacity: 0; transform: translateY(-14px) scale(.96); }

/* Banner instalação */
.install-banner { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-top: 14px; }
.install-banner img { width: 42px; height: 42px; border-radius: 12px; }
.install-banner .main { flex: 1; min-width: 0; }
.install-banner .title { font-weight: 700; font-size: 14.5px; }
.install-banner .subtitle { font-size: 12.5px; color: var(--text-3); }

/* Configurações */
.settings-list .row { min-height: 58px; }
.settings-list .row .ico { width: 36px; height: 36px; border-radius: 11px; display: flex; align-items: center; justify-content: center; }
.settings-list .row + .row::before { left: 62px; }
.profile-card { display: flex; align-items: center; gap: 14px; padding: 16px; }

.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; display: flex; flex-direction: column; gap: 12px; }
.steps li { counter-increment: s; display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; }
.steps li::before { content: counter(s); width: 26px; height: 26px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-text); font-weight: 700; font-size: 13px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

.offline-bar { position: fixed; z-index: 70; left: 50%; transform: translateX(-50%); bottom: calc(var(--nav-h) + var(--safe-bottom) + 84px); background: var(--text); color: var(--bg); padding: 8px 14px; border-radius: 99px; font-size: 13px; font-weight: 650; display: flex; align-items: center; gap: 8px; }
@media (min-width: 1024px) { .offline-bar { bottom: 24px; } }

.page-enter-active { transition: opacity .2s, transform .2s; }
.page-enter-from { opacity: 0; transform: translateY(6px); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- Login ---------- */
.auth {
  min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--safe-top) + 24px) 20px calc(var(--safe-bottom) + 24px);
  background:
    radial-gradient(90% 60% at 50% -10%, color-mix(in srgb, var(--brand) 22%, transparent) 0%, transparent 70%),
    var(--bg);
}
.auth-card { width: 100%; max-width: 400px; margin: 0 auto; }
.auth-brand { text-align: center; margin-bottom: 28px; }
.auth-brand img { width: 72px; height: 72px; border-radius: 22px; box-shadow: 0 12px 30px rgba(15, 118, 110, .35); }
.auth-brand h1 { margin: 16px 0 4px; font-size: 26px; font-weight: 780; letter-spacing: -.03em; }
.auth-brand p { margin: 0; color: var(--text-2); font-size: 15px; }
.auth .panel { padding: 22px; border-radius: 24px; }
.auth-foot { text-align: center; font-size: 12.5px; color: var(--text-3); margin-top: 24px; }

/* Avatar com cor derivada do nome (--h = matiz) */
.avatar[style*="--h"] { background: hsl(var(--h) 80% 94%); color: hsl(var(--h) 55% 38%); }
:root[data-theme="dark"] .avatar[style*="--h"] { background: hsl(var(--h) 35% 20%); color: hsl(var(--h) 85% 78%); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .avatar[style*="--h"] { background: hsl(var(--h) 35% 20%); color: hsl(var(--h) 85% 78%); }
}

/* ---------- Gráficos (cores validadas para claro e escuro) ---------- */
:root {
  --viz-brand: #0d9488;
  --viz-prev: #c7ccd8;
  --viz-good: #059669;
  --viz-late: #d99a06;
  --viz-bad: #dc2626;
  --viz-c1: #2a78d6;
  --viz-c2: #eb6834;
  --viz-c3: #1baf7a;
}
:root[data-theme="dark"] {
  --viz-brand: #14a394;
  --viz-prev: #3b4254;
  --viz-good: #0f9d6e;
  --viz-late: #c98500;
  --viz-bad: #d55181;
  --viz-c1: #3987e5;
  --viz-c2: #d95926;
  --viz-c3: #199e70;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --viz-brand: #14a394;
    --viz-prev: #3b4254;
    --viz-good: #0f9d6e;
    --viz-late: #c98500;
    --viz-bad: #d55181;
    --viz-c1: #3987e5;
    --viz-c2: #d95926;
    --viz-c3: #199e70;
  }
}

.viz { width: 100%; }
.viz-plot { position: relative; }
.viz svg { display: block; overflow: visible; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.viz-grid line { stroke: var(--border); stroke-width: 1; }
.viz-grid text, .viz-xlabels text { fill: var(--text-3); font-size: 10.5px; font-weight: 550; font-variant-numeric: tabular-nums; }
.viz-xlabels text.strong { fill: var(--text); font-weight: 700; }
.viz-vlabels text { fill: var(--text-2); font-size: 10.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.viz-hoverband { fill: var(--surface-3); opacity: .7; }
.viz-cross { stroke: var(--text-3); stroke-width: 1; stroke-dasharray: 3 3; }
.viz-future { fill: var(--surface-2); }
.viz-divlabel { fill: var(--text-3); font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.viz-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0 0 10px; font-size: 12.5px; color: var(--text-2); font-weight: 550; }
.viz-legend span { display: inline-flex; align-items: center; gap: 6px; }
.viz-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.viz-legend i.dash { height: 0; width: 16px; border-radius: 0; background: none !important; border-top: 2.5px dashed currentColor; }
.viz-legend i.band, .viz-tip i.band { opacity: .3; width: 14px; background: var(--viz-brand); }
.viz-tip {
  position: absolute; top: -6px; transform: translate(-50%, -100%); z-index: 5; pointer-events: none;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-lg);
  padding: 8px 10px; min-width: 150px; font-size: 12.5px;
}
.viz-tip .t { font-weight: 700; margin-bottom: 4px; color: var(--text); white-space: nowrap; }
.viz-tip .r { display: flex; align-items: center; gap: 6px; color: var(--text-2); white-space: nowrap; line-height: 1.6; }
.viz-tip .r i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; flex-shrink: 0; }
.viz-tip .r b { color: var(--text); font-variant-numeric: tabular-nums; }
.viz-tip .r.tot { border-top: 1px solid var(--border); margin-top: 3px; padding-top: 3px; }
.viz-donut { display: flex; justify-content: center; }
.viz-donut-v { fill: var(--text); font-size: 17px; font-weight: 780; font-variant-numeric: tabular-nums; }
.viz-donut-l { fill: var(--text-3); font-size: 11px; font-weight: 600; }

/* ---------- Relatórios ---------- */
.reports { display: flex; flex-direction: column; gap: 14px; }
.rep-toolbar { display: flex; gap: 10px; align-items: center; }
.rep-toolbar .segmented { flex: 1; }
.segmented.compact button { height: 30px; padding: 0 10px; font-size: 12.5px; }
.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 768px) { .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.kpi .k { font-size: 12px; font-weight: 650; color: var(--text-2); }
.kpi .v { font-size: 21px; font-weight: 780; letter-spacing: -.03em; }
.kpi .h { font-size: 11.5px; color: var(--text-3); line-height: 1.35; }
.kpi .up { color: var(--success); font-weight: 700; }
.kpi .down { color: var(--danger); font-weight: 700; }
.meter.sm { height: 5px; margin: 2px 0; }
.rep-card { padding: 16px; min-width: 0; }
.rep-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.rep-head h2 { margin: 0; font-size: 16px; font-weight: 720; letter-spacing: -.015em; }
.rep-head p { margin: 3px 0 0; font-size: 12.5px; color: var(--text-3); line-height: 1.4; }
.rep-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; margin-bottom: 14px; }
@media (min-width: 900px) { .rep-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } .rep-stats.two { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.rep-stats > div { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.rep-stats .k { font-size: 11.5px; font-weight: 650; color: var(--text-3); text-transform: uppercase; letter-spacing: .04em; }
.rep-stats .v { font-size: 19px; font-weight: 780; letter-spacing: -.025em; }
.rep-stats .h { font-size: 12px; color: var(--text-3); }
.rep-grid { display: grid; gap: 14px; }
@media (min-width: 1024px) { .rep-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.rep-table-wrap { overflow-x: auto; margin: 0 -16px; padding: 0 16px; }
.rep-table { width: 100%; border-collapse: collapse; font-size: 13px; white-space: nowrap; }
.rep-table th { text-align: right; font-size: 11.5px; font-weight: 650; color: var(--text-3); text-transform: uppercase; letter-spacing: .04em; padding: 8px 10px; border-bottom: 1px solid var(--border); }
.rep-table td { text-align: right; padding: 9px 10px; border-bottom: 1px solid var(--border); color: var(--text-2); }
.rep-table th:first-child, .rep-table td:first-child { text-align: left; padding-left: 0; color: var(--text); font-weight: 600; }
.rep-table td.strong { color: var(--text); font-weight: 700; }
.rep-table tr:last-child td { border-bottom: 0; }
.hbars { display: flex; flex-direction: column; gap: 12px; }
.hbar { display: block; width: 100%; text-align: left; }
.hbar.pressable { border-radius: 10px; padding: 4px; margin: -4px; }
.hbar.pressable:hover { background: var(--surface-2); }
.hbar-top { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; margin-bottom: 6px; color: var(--text-2); }
.hbar-top b { color: var(--text); }
.donut-wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 18px; }
.legend-list { list-style: none; margin: 0; padding: 0; flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: 10px; }
.legend-list li { display: grid; grid-template-columns: 10px 1fr auto auto; align-items: center; gap: 8px; font-size: 13.5px; }
.legend-list i { width: 10px; height: 10px; border-radius: 3px; }
.legend-list .n { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank { display: flex; flex-direction: column; }
.rank-row { display: flex; align-items: center; gap: 10px; padding: 9px 4px; border-radius: 10px; text-align: left; width: 100%; }
.rank-row + .rank-row { border-top: 1px solid var(--border); }
.rank-row:hover { background: var(--surface-2); }
.rank-row .n { flex: 1; min-width: 0; font-weight: 600; font-size: 14px; }
.rank-row .pos { width: 24px; height: 24px; border-radius: 8px; background: var(--brand-soft); color: var(--brand-text); font-size: 12px; font-weight: 750; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.rank-row .pos.warn { background: var(--danger-soft); color: var(--danger); }


/* ---------- Tipografia de destaque ---------- */
.topbar-title h1, .hero .big, .detail-hero .amount, .empty h3, .profile-card .pname, .rep-head h2, .section-head h2, .fee-card .v, .sheet-head h3 {
  font-family: var(--font-display);
  font-variant-numeric: lining-nums;
  font-optical-sizing: auto;
}
.topbar-title h1 { font-weight: 600; letter-spacing: -.02em; }
.hero .big { font-weight: 600; letter-spacing: -.025em; font-size: 38px; }
.detail-hero .amount { font-weight: 600; letter-spacing: -.03em; }
.section-head h2, .rep-head h2 { font-weight: 600; font-size: 17.5px; letter-spacing: -.01em; }
.fee-card .v { font-weight: 600; }
.hero .label > span:first-child { letter-spacing: .04em; text-transform: uppercase; font-size: 11.5px; font-weight: 700; opacity: .8; }
.hero .label > span:first-child::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); margin-right: 8px; vertical-align: middle; transform: translateY(-1px); }
.btn { font-weight: 650; letter-spacing: -.005em; }
.bottomnav button { font-weight: 650; letter-spacing: .01em; }
.badge { font-weight: 700; letter-spacing: .01em; }

/* ---------- Login ---------- */
.login-body { background: #0a2e2b; }
.login {
  position: relative; overflow: hidden; min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: calc(var(--safe-top) + 24px) 18px calc(var(--safe-bottom) + 24px);
  background: linear-gradient(160deg, #0d4a45 0%, #0a2e2b 55%, #071d1b 100%);
}
.login .aurora {
  position: absolute; inset: -20%; pointer-events: none;
  background:
    radial-gradient(40% 35% at 85% 10%, rgba(20, 163, 148, .5) 0%, rgba(20, 163, 148, 0) 70%),
    radial-gradient(35% 30% at 10% 90%, rgba(230, 194, 122, .22) 0%, rgba(230, 194, 122, 0) 70%);
  filter: blur(10px); animation: drift 18s ease-in-out infinite alternate;
}
@keyframes drift { to { transform: translate3d(-3%, 2%, 0) scale(1.05); } }
.login .grid-lines {
  position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 40%, #000 30%, transparent 100%);
  mask-image: radial-gradient(70% 60% at 50% 40%, #000 30%, transparent 100%);
}
.login-top { position: relative; display: flex; flex-direction: column; align-items: center; gap: 12px; margin-bottom: 26px; color: #eaf5f1; font-weight: 700; font-size: 18px; letter-spacing: -.01em; }
.login-top img { width: 64px; height: 64px; border-radius: 19px; box-shadow: 0 14px 34px rgba(0, 0, 0, .35); }
.login-top em { font-style: normal; color: #e6c27a; }
.login-panel {
  position: relative; width: 100%; max-width: 420px;
  background: var(--surface); border-radius: 26px; padding: 28px 22px 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
}
.login-form-wrap { width: 100%; }
.login-h { font-family: var(--font-display); font-weight: 600; font-size: 28px; letter-spacing: -.02em; margin: 0 0 4px; }
.login-p { margin: 0 0 22px; color: var(--text-2); font-size: 14.5px; line-height: 1.5; }
.input-icon {
  display: flex; align-items: center; gap: 10px; height: 54px; padding: 0 14px; border-radius: 15px;
  border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--text-3);
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.input-icon input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 16px; }
.input-icon input::placeholder { color: var(--text-3); }
.input-icon:focus-within { border-color: var(--brand); background: var(--surface); box-shadow: 0 0 0 4px var(--brand-soft); color: var(--brand-text); }
.input-icon.invalid { border-color: var(--danger); box-shadow: 0 0 0 4px var(--danger-soft); }
.input-icon .eye { color: var(--text-3); width: 36px; height: 36px; margin-right: -8px; border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.input-icon .eye:hover { background: var(--surface-3); }
.login-row { display: flex; justify-content: space-between; align-items: center; margin-top: -4px; }
.login-link { color: var(--brand-text); font-weight: 650; font-size: 14px; }
.login-btn { height: 54px; border-radius: 15px; font-size: 16px; margin-top: 4px; box-shadow: 0 10px 24px color-mix(in srgb, var(--brand) 32%, transparent); }
@media (min-width: 640px) { .login-panel { padding: 34px 32px 30px; } }
@media (prefers-reduced-motion: reduce) { .login .aurora { animation: none; } }
.sheet-head h3 { font-weight: 600; font-size: 20px; }

/* ---------- Puxar para atualizar ---------- */
.ptr {
  position: fixed; z-index: 45; left: 50%; top: calc(var(--safe-top) + 12px);
  width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--surface); color: var(--text-2); border: 1px solid var(--border);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .14); transition: opacity .15s; pointer-events: none;
}
.ptr .spinner { color: var(--brand); }

/* ---------- Aviso de versão nova ---------- */
.update-backdrop {
  position: fixed; inset: 0; z-index: 95; display: flex; align-items: center; justify-content: center;
  padding: 24px 18px calc(var(--safe-bottom) + 24px);
  background: rgba(6, 14, 12, .62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.update-card {
  width: 100%; max-width: 380px; background: var(--surface); border-radius: 26px; padding: 28px 22px 16px;
  text-align: center; box-shadow: var(--shadow-lg); animation: upd-in .4s cubic-bezier(.2, 1.2, .4, 1);
}
@keyframes upd-in { from { transform: translateY(16px) scale(.96); opacity: 0; } }
.update-ico {
  width: 76px; height: 76px; margin: 0 auto 16px; border-radius: 24px; display: flex; align-items: center; justify-content: center;
  color: #fff; background: linear-gradient(135deg, #17a597, #0f766e 55%, #0b3b37);
  box-shadow: 0 12px 28px rgba(15, 118, 110, .35);
}
.update-card h2 { font-family: var(--font-display); font-weight: 600; font-size: 24px; letter-spacing: -.02em; margin: 0 0 8px; }
.update-card p { margin: 0 0 22px; color: var(--text-2); font-size: 15px; line-height: 1.5; }
.update-btn { height: 58px; border-radius: 17px; font-size: 17px; gap: 10px; box-shadow: 0 12px 26px color-mix(in srgb, var(--brand) 35%, transparent); }
.update-card .btn-ghost { margin-top: 6px; color: var(--text-3); font-weight: 600; }
.update-pill {
  position: fixed; z-index: 44; left: 50%; transform: translateX(-50%);
  bottom: calc(var(--nav-h) + var(--safe-bottom) + 84px);
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 99px;
  background: var(--text); color: var(--bg); font-weight: 700; font-size: 13.5px; box-shadow: var(--shadow-lg);
}
@media (min-width: 1024px) { .update-pill { bottom: 28px; } }
