:root {
  /* Paleta da app AZ Padel (app.azpadel.pt) */
  --bg: #ffffff;
  --ink: #000000;
  --muted: #999999;
  --soft: #414141;
  --card: #f4f4f4;
  --line: #e7e7e7;
  --line-strong: #bebebe;
  --blue: #097ffd;
  --teal: #05b8bf;
  --ok: #000000;
  --ok-bg: #000000;
  --warn: #097ffd;
  --warn-bg: #e6f2ff;
  --bad: #dc2626;
  --bad-bg: #fdecec;
  --lesson: #05b8bf;
  --lesson-bg: #e2f7f8;
  --radius: 16px;
  --nav-h: 90px;
  --nav-gap: 12px;
  --tabbar: calc(var(--nav-h) + var(--nav-gap));
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --gutter: 24px;
  color-scheme: light;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
/* Sem zoom por duplo toque no iPhone: com a página ampliada a barra de baixo deixa de ficar presa ao ecrã. */
html { touch-action: manipulation; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overscroll-behavior-y: none; }
body {
  font-family: 'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
/* Sem o atraso do duplo toque no iPhone (os toques rápidos no teclado do PIN perdiam-se). */
button, a, label, input, .cal-grid button { touch-action: manipulation; }
a { color: inherit; }
[hidden] { display: none !important; }

.app { max-width: 560px; margin: 0 auto; min-height: 100dvh; display: flex; flex-direction: column; }

/* ---------- topo ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: #fff;
  min-height: calc(var(--safe-t) + 80px);
  padding: calc(var(--safe-t) + 11px) var(--gutter) 11px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border-bottom: 1px solid var(--line-strong);
}
.who { display: flex; align-items: center; gap: 10px; min-width: 0; text-decoration: none; }
.who-data { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.who-data b { font-size: 20px; font-weight: 400; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who-data em {
  font-style: normal; display: inline-flex; align-items: center; height: 20px; padding: 0 14px; width: fit-content;
  border-radius: 9999px; background: var(--line); color: var(--soft); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .02em;
}
.tool, .icon-btn {
  position: relative; width: 50px; height: 50px; border-radius: 9999px; flex: none;
  border: 0; background: var(--card); display: grid; place-items: center; padding: 0; color: var(--ink);
}
.tool svg, .icon-btn svg { width: 24px; height: 24px; }
.icon-btn { width: 44px; height: 44px; }
.icon-btn svg { width: 20px; height: 20px; }
.badge {
  position: absolute; top: -2px; right: -2px; min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: 10px; background: var(--blue); color: #fff; font-size: 11px; font-weight: 700;
  display: grid; place-items: center; line-height: 1; font-family: Inter, Archivo, sans-serif;
}

.view { flex: 1; padding: 20px var(--gutter) calc(var(--tabbar) + var(--safe-b) + 32px); }
.view.chat-view { padding-bottom: 0; display: flex; flex-direction: column; }

/* ---------- menu de baixo (como a app AZ Padel, maior) ---------- */
.tabbar {
  /* Fixa em baixo sem transform (no iPhone um fixed com transform pode deslizar ao fazer scroll). */
  position: fixed; z-index: 30; left: 16px; right: 16px; margin: 0 auto; max-width: 520px;
  bottom: calc(var(--safe-b) + var(--nav-gap));
  height: var(--nav-h);
}
.nav-bar { height: 100%; display: flex; align-items: center; font-family: Inter, Archivo, sans-serif; }
.nav-items {
  width: 100%; display: flex; align-items: center; background: #000; border-radius: 9999px;
  padding: 10px 8px; min-height: 72px; box-shadow: 0 8px 28px rgba(0,0,0,.22);
}
.nav-group { display: flex; flex: 1; gap: 0; }
.nav-item {
  position: relative; display: flex; flex: 1; flex-direction: column; align-items: center; gap: 5px; min-width: 0;
  text-decoration: none; color: var(--muted); font-size: 11.5px; font-weight: 500; letter-spacing: -.01em;
}
.nav-item svg { width: 26px; height: 26px; }
.nav-item span:not(.badge) { white-space: nowrap; }
.nav-item.active { color: #fff; }
.nav-item .badge { top: -6px; right: calc(50% - 24px); }
.nav-center { position: relative; width: 84px; flex: none; align-self: stretch; }
.nav-logo {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: var(--nav-h); height: var(--nav-h); border-radius: 9999px; background: #000;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  color: var(--muted); text-decoration: none; box-shadow: 0 8px 28px rgba(0,0,0,.22);
}
.nav-logo .az-logo { width: 54px; height: auto; aspect-ratio: 59 / 31; }
.nav-logo span { font-size: 10px; font-weight: 500; }
.nav-logo.active { color: #fff; }

/* ---------- tipografia ---------- */
h1 { font-size: 28px; font-weight: 700; letter-spacing: -.02em; margin: 4px 0 4px; }
h2 { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 26px 0 10px; }
h2:first-child { margin-top: 6px; }
.sub { color: var(--muted); margin: 0 0 16px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* ---------- cartões e listas ---------- */
.card { background: var(--card); border-radius: var(--radius); padding: 16px; margin-bottom: 12px; }
.card.tap { cursor: pointer; }
.card .row { display: flex; align-items: center; gap: 10px; }
.card .title { font-weight: 700; }
.card .meta { color: var(--muted); font-size: 13px; }
.card .actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.empty { text-align: center; color: var(--muted); padding: 22px 12px; background: var(--card); border-radius: var(--radius); font-size: 14px; }

.chip { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; padding: 4px 12px; text-transform: uppercase; letter-spacing: .02em; border-radius: 999px; background: #fff; border: 1px solid var(--line-strong); white-space: nowrap; }
.chip.ok { background: #000; border-color: #000; color: #fff; }
.chip.warn { background: var(--warn-bg); border-color: transparent; color: var(--warn); }
.chip.bad { background: var(--bad-bg); border-color: transparent; color: var(--bad); }
.chip.lesson { background: var(--lesson-bg); border-color: transparent; color: var(--lesson); }

/* ---------- botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 54px; padding: 0 24px; border-radius: 9999px; border: 1px solid #000;
  background: #000; color: #fff; font-family: Archivo, sans-serif; font-weight: 600; font-size: 16px; white-space: nowrap; text-decoration: none;
}
.btn svg { width: 20px; height: 20px; }
.btn.block { width: 100%; }
.btn.ghost, .btn.soft { background: #fff; color: #000; border-color: #000; }
.btn.danger { background: var(--bad); border-color: var(--bad); }
.btn.danger.ghost { background: #fff; color: var(--bad); border-color: var(--bad); }
.btn.sm { min-height: 42px; padding: 0 18px; font-size: 14px; }
.btn:disabled { background: var(--muted); border-color: var(--muted); color: #fff; }
.btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.btn-row { display: flex; gap: 8px; }
.btn-row > * { flex: 1; }

/* ---------- avatares ---------- */
.av {
  --s: 36px; width: var(--s); height: var(--s); border-radius: 50%; flex: none;
  display: inline-grid; place-items: center; color: #fff; font-weight: 800; font-size: calc(var(--s) * .38);
  background: var(--c, #000) center/cover no-repeat; position: relative; letter-spacing: -.02em;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.08);
}
.av.hd { --s: 50px; border: 1px solid var(--muted); }
.av.sm { --s: 26px; }
.av.xs { --s: 20px; }
.av.lg { --s: 64px; }
.av.xl { --s: 112px; }
.av .mark {
  position: absolute; right: -3px; bottom: -3px; width: 16px; height: 16px; border-radius: 50%;
  display: grid; place-items: center; border: 2px solid var(--card); background: var(--muted);
}
.av .mark svg { width: 9px; height: 9px; color: #fff; }
.av .mark.ok { background: var(--ok); }
.av .mark.bad { background: var(--bad); }
.av.dim { opacity: .35; }
.avs { display: flex; gap: 8px; flex-wrap: wrap; }
.pair { display: inline-flex; align-items: center; }
.pair .av + .av { margin-left: -8px; box-shadow: 0 0 0 2px var(--card); }

/* ---------- formulários ---------- */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 6px; }
.input, select.input, textarea.input {
  width: 100%; height: 56px; border-radius: 8px; border: 1px solid #000; background: #fff;
  padding: 0 18px; font-size: 16px; outline: none; -webkit-appearance: none; appearance: none;
}
textarea.input { height: auto; min-height: 80px; padding: 14px 18px; resize: vertical; }
.input:focus { border-color: #000; box-shadow: 0 0 0 1px #000; }
.input::placeholder { color: var(--muted); font-size: 14px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.seg { display: flex; gap: 6px; flex-wrap: wrap; }
.seg button {
  height: 42px; padding: 0 18px; border-radius: 9999px; border: 1px solid #000; background: #fff; font-weight: 600; font-size: 14px;
}
.seg button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.pick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.pick button {
  border: 1.5px solid var(--line-strong); background: #fff; border-radius: 12px; padding: 10px 4px 8px;
  display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; font-weight: 700;
}
.pick button.on { border-color: #000; background: #000; color: #fff; }
.pick button.team-b { border-color: var(--line-strong); background: #fff; opacity: .9; }
.sets { display: grid; gap: 8px; }
.sets .set { display: grid; grid-template-columns: 70px 1fr 18px 1fr; align-items: center; gap: 8px; }
.sets .set span { color: var(--muted); font-size: 13px; font-weight: 600; }
.sets .set i { text-align: center; color: var(--muted); font-style: normal; }
.sets .input { text-align: center; }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.switch:last-child { border-bottom: 0; }
.switch input { width: 46px; height: 28px; -webkit-appearance: none; appearance: none; background: var(--line-strong); border-radius: 14px; position: relative; transition: background .2s; flex: none; margin: 0; }
.switch input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.switch input:checked { background: var(--ink); }
.switch input:checked::after { transform: translateX(18px); }

/* ---------- folha (modal) ---------- */
.sheet-back { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.35); display: flex; align-items: flex-end; justify-content: center; animation: fade .15s; }
.sheet {
  width: 100%; max-width: 560px; max-height: 92dvh; overflow: auto; background: #fff;
  border-radius: 18px 18px 0 0; padding: 8px 16px calc(var(--safe-b) + 18px);
  animation: up .2s ease-out;
}
.sheet .grab { width: 40px; height: 4px; border-radius: 2px; background: var(--line-strong); margin: 4px auto 12px; }
.sheet h3 { font-size: 20px; font-weight: 800; margin: 0 0 4px; letter-spacing: -.02em; }
.sheet .sub { margin-bottom: 18px; }
@keyframes up { from { transform: translateY(40px); opacity: .6; } to { transform: none; opacity: 1; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.toast {
  position: fixed; left: 50%; bottom: calc(var(--tabbar) + var(--safe-b) + 14px); transform: translateX(-50%);
  z-index: 60; background: #000; color: #fff; padding: 14px 22px; border-radius: 9999px; font-weight: 600; font-size: 14px;
  max-width: calc(100% - 32px); box-shadow: 0 6px 24px rgba(0,0,0,.18); text-align: center;
}
.toast.bad { background: var(--bad); }

/* ---------- entrada ---------- */
.login { min-height: 100dvh; display: flex; flex-direction: column; padding: calc(var(--safe-t) + 40px) 24px calc(var(--safe-b) + 24px); max-width: 440px; margin: 0 auto; }
.login .logo { display: block; color: #000; margin-bottom: 22px; }
.login .logo .az-logo { width: 96px; height: auto; aspect-ratio: 59 / 31; }
.login h1 { font-size: 30px; }
.login .players { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 26px; }
.login .players button { border: 0; background: var(--card); border-radius: 20px; padding: 20px 8px 16px; display: flex; flex-direction: column; align-items: center; gap: 10px; font-weight: 800; font-size: 15px; }
.login .players button:active { transform: scale(.98); }
.pin-who { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 30px; }
.pin-who b { font-size: 20px; }
.dots { display: flex; justify-content: center; gap: 16px; margin: 26px 0 8px; }
.dots i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--ink); }
.dots i.on { background: var(--ink); }
.dots.shake { animation: shake .35s; }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.pin-msg { text-align: center; min-height: 22px; color: var(--bad); font-weight: 600; font-size: 14px; }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 14px; }
.keypad button { height: 64px; border-radius: 50%; border: 0; background: var(--card); font-size: 24px; font-weight: 600; width: 64px; justify-self: center; }
.keypad button.txt { background: none; font-size: 14px; font-weight: 700; color: var(--soft); }
.keypad button:active { background: var(--line-strong); }
.foot { text-align: center; font-size: 12px; letter-spacing: .2em; font-weight: 700; color: #000; margin-top: auto; padding-top: 28px; }
.view .foot { padding-top: 34px; }

/* ---------- calendário ---------- */
.cal-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.cal-head h1 { flex: 1; font-size: 22px; margin: 0; text-transform: capitalize; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal-grid .wd { text-align: center; font-size: 11px; font-weight: 700; color: var(--muted); padding: 4px 0 6px; text-transform: uppercase; }
.cal-grid button {
  aspect-ratio: 1 / 1.05; border: 0; background: none; border-radius: 12px; padding: 4px 0 0;
  display: flex; flex-direction: column; align-items: center; gap: 4px; font-weight: 600; font-size: 15px;
}
.cal-grid button.out { color: #cfcfcf; }
.cal-grid button.past { color: var(--muted); }
.cal-grid button.today span { background: var(--card); box-shadow: inset 0 0 0 1.5px var(--ink); }
.cal-grid button span { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; }
.cal-grid button.sel span { background: var(--ink); color: #fff; box-shadow: none; }
.cal-grid .pips { display: flex; gap: 3px; height: 6px; }
.cal-grid .pips i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink); }
.cal-grid .pips i.pend { background: #fff; box-shadow: inset 0 0 0 1.5px var(--blue); }
.cal-grid .pips i.lesson { background: var(--lesson); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin: 10px 0 0; }
.legend span { display: inline-flex; align-items: center; gap: 5px; }
.legend i { width: 8px; height: 8px; border-radius: 50%; background: var(--ink); }
.legend i.pend { background: #fff; box-shadow: inset 0 0 0 1.5px var(--blue); }
.legend i.lesson { background: var(--lesson); }

.event { display: flex; gap: 12px; align-items: stretch; }
.event .time { width: 50px; flex: none; font-weight: 800; font-size: 15px; }
.event .time small { display: block; color: var(--muted); font-weight: 600; font-size: 12px; }
.event .body { flex: 1; min-width: 0; border-left: 3px solid var(--ink); padding-left: 12px; }
.event.pend .body { border-left-color: var(--warn); }
.event.lesson .body { border-left-color: var(--lesson); }
.event.cancelled { opacity: .5; }
.event.cancelled .title { text-decoration: line-through; }

/* ---------- histórico ---------- */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; text-align: center; padding: 0 4px 8px; }
.table th:nth-child(2) { text-align: left; }
.table td { padding: 9px 4px; border-top: 1px solid var(--line-strong); text-align: center; font-variant-numeric: tabular-nums; }
.table td.name { text-align: left; }
.table td.name div { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.table td.pos { font-weight: 800; width: 24px; }
.table td.big { font-weight: 800; }
.result { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; }
.result .side { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 13px; font-weight: 700; }
.result .side.right { flex-direction: row-reverse; text-align: right; }
.result .side.lost { opacity: .45; }
.result .score { font-weight: 800; font-variant-numeric: tabular-nums; text-align: center; font-size: 14px; white-space: nowrap; }
.result .score small { display: block; font-size: 11px; color: var(--muted); font-weight: 600; }
.names { line-height: 1.2; overflow: hidden; text-overflow: ellipsis; }

/* ---------- champions ---------- */
.board { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.board .p { background: var(--card); border-radius: var(--radius); padding: 14px 10px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.board .p b { font-size: 14px; }
.board .p.win { background: var(--ink); color: #fff; }
.board .p.win .stars i { border-color: #fff; }
.board .p.win .stars i.on { background: #fff; }
.tally { font-size: 30px; font-weight: 900; line-height: 1; letter-spacing: -.03em; }
.tally small { display: block; font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: 0; margin-top: 4px; }
.board .p.win .tally small { color: rgba(255,255,255,.6); }
.versus .live { font-size: 30px; font-weight: 900; font-variant-numeric: tabular-nums; white-space: nowrap; }
.versus .live i { font-style: normal; color: var(--muted); margin: 0 4px; }
.stars { display: flex; gap: 6px; }
.stars i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--ink); }
.stars i.on { background: var(--ink); }
.versus { background: var(--card); border-radius: var(--radius); padding: 16px 14px; margin-top: 12px; }
.versus .teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; margin: 12px 0 14px; }
.versus .team { display: flex; flex-direction: column; align-items: center; gap: 6px; font-weight: 700; font-size: 13px; text-align: center; }
.versus .vs { font-weight: 900; color: var(--muted); font-size: 13px; }
.versus .score-in { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.versus .score-in .input { text-align: center; height: 40px; }
.trophy { width: 54px; height: 54px; margin: 0 auto 6px; display: block; }

/* ---------- chat ---------- */
.chat-list { flex: 1; overflow-y: auto; padding: 6px 0 12px; }
.chat-day { text-align: center; font-size: 12px; color: var(--muted); font-weight: 700; margin: 14px 0 8px; }
.msg { display: flex; gap: 8px; align-items: flex-end; margin-bottom: 4px; }
.msg .bubble { max-width: 76%; background: #f1f1f1; border-radius: 18px 18px 18px 6px; padding: 8px 12px; word-wrap: break-word; white-space: pre-wrap; }
.msg .bubble .who { display: block; font-size: 12px; font-weight: 800; margin-bottom: 1px; }
.msg .bubble time { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; text-align: right; }
.msg.mine { justify-content: flex-end; }
.msg.mine .bubble { background: var(--ink); color: #fff; border-radius: 18px 18px 6px 18px; }
.msg.mine .bubble time { color: rgba(255,255,255,.55); }
.msg .spacer { width: 26px; flex: none; }
.chat-form {
  position: sticky; bottom: 0; background: #fff; border-top: 1px solid var(--line);
  display: flex; gap: 8px; padding: 10px 0 calc(var(--tabbar) + var(--safe-b) + 10px); align-items: flex-end;
}
.chat-form textarea { flex: 1; min-height: 50px; max-height: 140px; height: 50px; border-radius: 25px; padding: 13px 18px; resize: none; border: 1px solid #000; outline: none; font-size: 16px; line-height: 1.3; }
.chat-form button { width: 50px; height: 50px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; display: grid; place-items: center; flex: none; }
.chat-form button svg { width: 20px; height: 20px; }

/* ---------- perfil ---------- */
.profile-head { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 8px 0 6px; }
.profile-head b { font-size: 22px; font-weight: 400; }
.photo-pick { position: relative; display: block; border-radius: 50%; cursor: pointer; }
.photo-pick .av { border: 1px solid var(--muted); }
.photo-cam { position: absolute; right: 2px; bottom: 2px; width: 36px; height: 36px; border-radius: 50%; background: #000; color: #fff; display: grid; place-items: center; border: 3px solid #fff; pointer-events: none; }
.photo-cam svg { width: 18px; height: 18px; }
.photo-btn { position: relative; overflow: hidden; }
.photo-btn.busy { opacity: .5; pointer-events: none; }
/* O input fica por cima do botão (transparente): no iPhone um input escondido pode não abrir a galeria. */
.file-over { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 0; z-index: 2; }
.notice { background: var(--warn-bg); color: #0a4fa0; border-radius: var(--radius); padding: 12px 14px; font-size: 14px; font-weight: 600; margin-bottom: 12px; }
.notif { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.notif .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--bad); margin-top: 7px; flex: none; }
.notif.read .dot { background: transparent; }
.notif .t { font-weight: 700; }
.notif .b { font-size: 14px; color: var(--soft); }
.notif .w { font-size: 12px; color: var(--muted); margin-top: 2px; }
.fab-row { display: flex; gap: 8px; margin: 14px 0 4px; }
.fab-row .btn, .btn-row .btn { flex: 1; min-width: 0; padding: 0 14px; }
.fab-row .btn svg { flex: none; }
.loading { text-align: center; color: var(--muted); padding: 40px 0; }
