@font-face { font-family: "Barlow"; font-weight: 400; font-display: swap; src: url(fonts/barlow-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-display: swap; src: url(fonts/barlow-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-display: swap; src: url(fonts/barlow-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-display: swap; src: url(fonts/barlow-condensed-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-display: swap; src: url(fonts/barlow-condensed-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-style: italic; font-display: swap; src: url(fonts/barlow-condensed-latin-700-italic.woff2) format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 800; font-style: italic; font-display: swap; src: url(fonts/barlow-condensed-latin-800-italic.woff2) format("woff2"); }

:root {
  /* paleta tirada do logo Labrinho FIT */
  --bg: #0B0303;          /* fundo quase preto, puxado pro vermelho */
  --band: #4E0000;        /* faixas diagonais bordô do fundo */
  --surface: #1A0909;
  --surface-2: #281010;
  --line: #45201B;
  --field: #110505;
  --text: #F3E7DF;        /* creme dos realces do cachorro */
  --muted: #B39687;
  --danger: #FF6B5E;

  --chrome-hi: #E3F8FF;   /* letras cromadas */
  --chrome: #6FCBDE;
  --chrome-lo: #2F8FB4;
  --extrude: #5A2484;     /* sombra 3D roxa das letras */
  --glow: #E07BFF;        /* brilho neon magenta */
  --sunset: #E5772F;      /* pôr do sol */
  --gold: #D9A260;        /* aro do círculo */

  /* uma cor por treino, todas do logo */
  --p0: #E5772F; --p0-ink: #1A0606;
  --p1: #6FCBDE; --p1-ink: #0E1A2A;
  --p2: #B678F0; --p2-ink: #FFFFFF;
  --p3: #D9A260; --p3-ink: #1A0606;
  --p4: #E0483B; --p4-ink: #FFFFFF;

  --plate: var(--p1); --plate-ink: var(--p1-ink);

  --r-sm: 8px; --r-md: 12px; --r-lg: 16px;
  --gutter: 16px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --tabs-h: 56px;
  --cond: "Barlow Condensed", "Arial Narrow", sans-serif;
  --sans: "Barlow", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.45 var(--sans);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }

[data-plate="0"] { --plate: var(--p0); --plate-ink: var(--p0-ink); }
[data-plate="1"] { --plate: var(--p1); --plate-ink: var(--p1-ink); }
[data-plate="2"] { --plate: var(--p2); --plate-ink: var(--p2-ink); }
[data-plate="3"] { --plate: var(--p3); --plate-ink: var(--p3-ink); }
[data-plate="4"] { --plate: var(--p4); --plate-ink: var(--p4-ink); }

#app {
  max-width: 560px; margin: 0 auto;
  padding: calc(var(--safe-t) + 20px) var(--gutter) calc(var(--tabs-h) + var(--safe-b) + 32px);
}
body.running #app { padding-bottom: calc(var(--safe-b) + 140px); }

/* Cabeçalho */
.head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; min-height: 44px; }
.head h1 {
  margin: 0; flex: 1; min-width: 0;
  font: 700 34px/1 var(--cond); letter-spacing: .01em;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.head .sub { color: var(--muted); font-size: 14px; margin-top: 4px; }
.back {
  width: 44px; height: 44px; margin-left: -10px; flex: none;
  display: grid; place-items: center; border: 0; background: none; border-radius: 50%;
  cursor: pointer;
}
.back svg { width: 24px; height: 24px; }

/* Anilha (marca do treino) */
.plate {
  width: 48px; height: 48px; flex: none; border-radius: 50%;
  background: var(--plate); color: var(--plate-ink);
  display: grid; place-items: center; position: relative;
  font: 700 24px/1 var(--cond);
}
.plate::after {
  content: ""; position: absolute; inset: 5px; border-radius: 50%;
  border: 1.5px solid currentColor; opacity: .28;
}
.plate.sm { width: 36px; height: 36px; font-size: 19px; }
.plate.sm::after { inset: 4px; }

/* Lista de treinos */
.list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.row {
  display: flex; align-items: center; gap: 14px;
  padding: 14px; background: var(--surface); border-radius: var(--r-lg);
  text-decoration: none; min-height: 76px;
}
.row .grow { flex: 1; min-width: 0; }
.row .name { font: 600 21px/1.15 var(--cond); overflow-wrap: anywhere; }
.row .meta { color: var(--muted); font-size: 14px; margin-top: 2px; }
.row .icon-btn { margin-right: -6px; }

.icon-btn {
  width: 44px; height: 44px; flex: none; border: 0; border-radius: 50%;
  background: none; display: grid; place-items: center; cursor: pointer; color: var(--muted);
}
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn:active { background: var(--surface-2); }

/* Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px; border: 0; border-radius: var(--r-md);
  background: var(--text); color: var(--bg);
  font: 600 16px/1 var(--sans); text-decoration: none; cursor: pointer;
}
.btn:active { transform: scale(.98); }
.btn.block { width: 100%; }
.btn.plate-btn { background: var(--plate); color: var(--plate-ink); }
.btn.ghost { background: var(--surface-2); color: var(--text); }
.btn.danger { background: none; color: var(--danger); padding: 0 8px; }
.btn.sm { min-height: 40px; padding: 0 14px; font-size: 15px; }
.btn svg { width: 20px; height: 20px; }
.stack { display: grid; gap: 10px; margin-top: 20px; }

/* Vazio */
.empty { padding: 40px 8px 24px; }
.empty h2 { font: 700 26px/1.1 var(--cond); margin: 0 0 8px; }
.empty p { color: var(--muted); margin: 0 0 20px; max-width: 34ch; }
.empty .plates { display: flex; gap: 6px; margin-bottom: 20px; }
.empty .plates span { width: 14px; height: 56px; border-radius: 4px; background: var(--plate); }

/* Formulário do editor */
.field { display: grid; gap: 6px; }
.field label, .lbl { font-size: 13px; font-weight: 500; color: var(--muted); }
.input {
  width: 100%; min-height: 48px; padding: 12px 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  font-size: 16px;
}
.input:focus { outline: none; border-color: var(--text); }
textarea.input { min-height: 72px; resize: vertical; }

.ex-edit {
  background: var(--surface); border-radius: var(--r-lg); padding: 14px;
  display: grid; gap: 12px; margin-top: 12px;
}
.ex-edit .input { background: var(--bg); }
.ex-edit-top { display: flex; align-items: center; gap: 8px; }
.ex-edit-top .num { font: 700 20px/1 var(--cond); color: var(--muted); width: 22px; }
.ex-edit-top .input { flex: 1; font-weight: 600; }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.grid4 .input { padding: 10px 8px; text-align: center; }
.ex-tools { display: flex; justify-content: space-between; align-items: center; margin: -4px -6px -6px; }
.ex-tools .moves { display: flex; }
.section-title { font: 700 22px/1 var(--cond); margin: 28px 0 0; }

/* Execução */
.clock { font: 600 20px/1 var(--cond); color: var(--muted); font-variant-numeric: tabular-nums; }
.ex {
  background: var(--surface); border-radius: var(--r-lg);
  padding: 16px 14px 10px; margin-bottom: 12px;
  border-left: 4px solid transparent;
}
.ex.done { border-left-color: var(--plate); }
.ex h3 { margin: 0; font: 600 24px/1.1 var(--cond); overflow-wrap: anywhere; }
.ex .presc { color: var(--muted); font-size: 15px; margin-top: 4px; }
.ex .note { font-size: 15px; margin-top: 8px; padding: 8px 10px; background: var(--surface-2); border-radius: var(--r-sm); white-space: pre-wrap; }
.ex .last { color: var(--muted); font-size: 13px; margin-top: 8px; }

.sets { margin-top: 10px; }
.set-head, .set {
  display: grid; grid-template-columns: 32px minmax(0,1fr) minmax(0,1fr) 52px;
  gap: 8px; align-items: center;
}
.set-head { font-size: 12px; color: var(--muted); padding: 0 0 4px; }
.set-head span:nth-child(2), .set-head span:nth-child(3) { text-align: center; }
.set { padding: 4px 0; }
.set .n { font: 700 20px/1 var(--cond); color: var(--muted); text-align: center; }
.set .input { min-height: 44px; padding: 8px; text-align: center; background: var(--bg); font-variant-numeric: tabular-nums; }
.check {
  width: 52px; height: 44px; border-radius: var(--r-md); border: 1.5px solid var(--line);
  background: none; display: grid; place-items: center; cursor: pointer; color: var(--muted);
}
.check svg { width: 22px; height: 22px; }
.set.ok .n { color: var(--text); }
.set.ok .check { background: var(--plate); border-color: var(--plate); color: var(--plate-ink); }
.set.ok .input { border-color: transparent; background: var(--surface-2); }
.add-set { margin: 4px 0 2px; }

/* Barra de descanso */
.rest {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  background: var(--surface-2); padding-bottom: var(--safe-b);
  box-shadow: 0 -8px 24px rgba(0,0,0,.35);
}
.rest-bar { height: 4px; background: var(--line); }
.rest-fill { height: 100%; width: 0; background: var(--plate); transition: width .25s linear; }
.rest-body {
  max-width: 560px; margin: 0 auto; padding: 12px var(--gutter) 14px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.rest-label { font-size: 13px; color: var(--muted); }
.rest-time { font: 700 44px/1 var(--cond); font-variant-numeric: tabular-nums; }
.rest-actions { display: flex; gap: 6px; }
.rest.over .rest-time { color: var(--plate); }

.finish-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  background: linear-gradient(to top, var(--bg) 60%, transparent);
  padding: 24px var(--gutter) calc(var(--safe-b) + 12px);
}
.finish-bar .inner { max-width: 560px; margin: 0 auto; }

/* Abas */
.tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 5;
  display: flex; justify-content: center;
  background: var(--bg); border-top: 1px solid var(--line);
  padding-bottom: var(--safe-b);
}
.tabs a {
  flex: 1; max-width: 186px; height: var(--tabs-h);
  display: grid; place-items: center; text-decoration: none;
  font-weight: 500; font-size: 15px; color: var(--muted);
}
.tabs a[aria-current="page"] { color: var(--text); font-weight: 600; }
body.no-tabs .tabs { display: none; }
body.no-tabs #app { padding-bottom: calc(var(--safe-b) + 120px); }

/* Histórico */
.day { margin: 24px 0 8px; font-size: 13px; color: var(--muted); font-weight: 500; }
.day:first-child { margin-top: 0; }
details.session { background: var(--surface); border-radius: var(--r-lg); margin-bottom: 10px; }
details.session summary {
  list-style: none; display: flex; align-items: center; gap: 12px; padding: 12px 14px; cursor: pointer;
}
details.session summary::-webkit-details-marker { display: none; }
details.session .grow { flex: 1; min-width: 0; }
details.session .name { font: 600 19px/1.15 var(--cond); }
details.session .meta { color: var(--muted); font-size: 14px; }
.session-body { padding: 0 14px 14px 62px; }
.session-body .h-ex { margin-top: 10px; }
.session-body .h-ex:first-child { margin-top: 0; }
.session-body .h-name { font-weight: 600; font-size: 15px; }
.session-body .h-sets { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.session-body .btn.danger { margin-top: 12px; margin-left: -8px; min-height: 40px; font-size: 14px; }

/* Ajustes */
.card { background: var(--surface); border-radius: var(--r-lg); padding: 16px; margin-bottom: 12px; }
.card h2 { margin: 0 0 6px; font: 700 22px/1.1 var(--cond); }
.card p { margin: 0 0 14px; color: var(--muted); font-size: 15px; }
.card ol { margin: 0; padding-left: 20px; color: var(--muted); font-size: 15px; }
.card ol li + li { margin-top: 4px; }
.card ol b { color: var(--text); font-weight: 600; }
.card .row-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.card .row-btns .btn { flex: 1; min-width: 140px; }
.fine { color: var(--muted); font-size: 13px; text-align: center; margin-top: 20px; }

/* Aviso */
.toast {
  position: fixed; left: 50%; transform: translateX(-50%); z-index: 40;
  bottom: calc(var(--safe-b) + var(--tabs-h) + 16px);
  background: var(--text); color: var(--bg); padding: 12px 16px; border-radius: var(--r-md);
  font-weight: 500; font-size: 15px; max-width: calc(100% - 32px); text-align: center;
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
}
body.running .toast, body.no-tabs .toast { bottom: calc(var(--safe-b) + 128px); }

/* Diálogo */
dialog {
  border: 0; border-radius: var(--r-lg); padding: 20px; width: min(400px, calc(100% - 32px));
  background: var(--surface); color: var(--text);
}
dialog::backdrop { background: rgba(0,0,0,.6); }
dialog h2 { margin: 0 0 8px; font: 700 24px/1.1 var(--cond); }
dialog p { margin: 0 0 18px; color: var(--muted); }
dialog .acts { display: grid; gap: 8px; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  .btn:active { transform: none; }
}

/* Logo */
.logo-sm { width: 44px; height: 44px; border-radius: 11px; flex: none; display: block; }
.logo-lg { display: block; width: 100%; max-width: 360px; aspect-ratio: 1; height: auto; border-radius: var(--r-lg); margin: 0 auto 24px; }
.empty.hero { padding-top: 0; text-align: center; }
.empty.hero p { margin-left: auto; margin-right: auto; }
.fine { display: flex; align-items: center; justify-content: center; gap: 10px; }
.fine .logo-sm { width: 28px; height: 28px; border-radius: 7px; }


/* ===== Identidade Labrinho FIT ===== */

/* Fundo: as faixas diagonais bordô e o brilho do pôr do sol do logo */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: var(--bg) url(icons/bg.svg) center top / cover no-repeat;
}
html, body { background-color: var(--bg); }
:focus-visible { outline-color: var(--chrome); }

/* Títulos: o itálico pesado do logo, sem copiar o cromado */
.head h1, .empty h2 { font-style: italic; font-weight: 800; color: var(--text); letter-spacing: .005em; }
.head h1 { font-size: 36px; line-height: 1.05; padding-right: .08em; }
.card h2, .section-title, dialog h2, .ex h3, .row .name, details.session .name { font-style: italic; }
.card h2, .section-title, dialog h2 { font-weight: 800; }

/* Superfícies */
.row, .ex, .ex-edit, .card, details.session { background: var(--surface); box-shadow: inset 0 0 0 1px rgba(120,40,30,.28); }
.ex .note, .set.ok .input { background: var(--surface-2); }
.input { background: var(--field); border-color: var(--line); }
.ex-edit .input, .set .input { background: var(--field); }
.input:focus { border-color: var(--chrome); box-shadow: 0 0 0 3px rgba(111,203,222,.18); }
.input::placeholder { color: #6E534A; }
.check { border-color: var(--line); }

/* Botões: paralelogramo inclinado como o lettering, cor lisa do logo */
.btn {
  --btn-bg: linear-gradient(180deg, #92DCEB, #5DC0D7);
  --btn-sh: inset 0 1px 0 rgba(255,255,255,.5), inset 0 -2px 0 rgba(10,40,60,.18);
  position: relative; isolation: isolate; margin-inline: 6px;
  background: none; box-shadow: none; color: #0A1F29; font-weight: 700; letter-spacing: .01em;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  border-radius: 9px; transform: skewX(-12deg);
  background: var(--btn-bg); box-shadow: var(--btn-sh);
  transition: filter .12s;
}
.btn.plate-btn { background: none; color: #0A1F29; }
.btn:active { transform: none; }
.btn:active::before { filter: brightness(.88); }
.btn.ghost { --btn-bg: var(--surface-2); --btn-sh: inset 0 0 0 1px var(--line); background: none; color: var(--text); font-weight: 600; }
.btn.ghost:active::before { filter: brightness(1.25); }
.btn.danger, .btn.add-set { margin-inline: 0; }
.btn.danger::before, .btn.add-set::before { content: none; }
.btn.danger { background: none; color: var(--danger); font-weight: 600; }
.btn:focus-visible { outline: none; }
.btn:focus-visible::before { box-shadow: var(--btn-sh), 0 0 0 2px var(--bg), 0 0 0 4px var(--chrome); }
.rest-actions .btn { margin-inline: 3px; }

/* Marca do treino */
.plate::after { opacity: .35; }
.set.ok .check { box-shadow: 0 0 12px color-mix(in srgb, var(--plate) 45%, transparent); }

/* Descanso: barra no gradiente do pôr do sol */
.rest { background: rgba(26,9,9,.94); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 -1px 0 var(--line), 0 -10px 30px rgba(0,0,0,.5); }
.rest-bar { background: #2E1210; }
.rest-fill { background: linear-gradient(90deg, var(--sunset), var(--gold)); }
.rest-time { font-style: italic; font-weight: 800; }
.rest.over .rest-time { color: var(--chrome); text-shadow: 0 0 12px rgba(111,203,222,.6); }
.rest-actions .btn.ghost { --btn-bg: #3A1915; }

/* Barras fixas translúcidas para o fundo continuar aparecendo */
.tabs { background: rgba(11,3,3,.86); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-top-color: var(--line); }
.tabs a[aria-current="page"] { color: var(--chrome); }
.finish-bar { background: linear-gradient(to top, rgba(11,3,3,.95) 55%, transparent); }

/* Logo */
.logo-lg {
  border-radius: 0; max-width: 340px; margin-bottom: 8px;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 52%, transparent 71%);
  mask-image: radial-gradient(circle at 50% 50%, #000 52%, transparent 71%);
}
.logo-sm { box-shadow: 0 0 0 1px rgba(217,162,96,.35), 0 0 14px rgba(229,119,47,.25); }

/* Aviso e diálogo */
.toast { background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line), 0 10px 30px rgba(0,0,0,.6); }
dialog { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), 0 20px 60px rgba(0,0,0,.7); }
dialog::backdrop { background: rgba(8,1,1,.72); }

.clock { color: var(--gold); }
.day { color: var(--gold); }
.card ol b { color: var(--text); }

.card .row-btns .btn { white-space: nowrap; }
.card .row-btns { gap: 8px 4px; }
.card .row-btns .btn[data-send] { min-width: 0; flex: 1 1 140px; }

/* Substituto */
.link-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 2px;
  border: 0; background: none; cursor: pointer; justify-self: start;
  color: var(--chrome); font: 600 15px/1.2 var(--sans); text-align: left;
}
.link-btn svg { width: 18px; height: 18px; flex: none; }
.link-btn b { font-weight: 700; }
.link-btn:active { opacity: .7; }
.ex .swap { margin-top: 6px; margin-bottom: -4px; }
.ex .swap span { color: var(--muted); font-weight: 500; }
.ex .swap b { color: var(--chrome); }
.alt-edit {
  display: grid; grid-template-columns: minmax(0,1fr) 44px; gap: 6px 4px; align-items: center;
  padding: 8px 6px 12px 12px; margin: -2px 0 0 30px;
  border-left: 2px solid var(--chrome); background: rgba(111,203,222,.06); border-radius: 0 var(--r-md) var(--r-md) 0;
}
.alt-lbl { font-size: 13px; font-weight: 500; color: var(--chrome); }
.alt-del { grid-row: 1; grid-column: 2; margin: -6px 0; }
.alt-name { grid-column: 1 / -1; }
.alt-c { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.alt-c span:first-child { flex: 1; }
.alt-c .input { width: 76px; min-height: 40px; padding: 6px; text-align: center; }
.ex-edit .alt-edit .input { background: var(--field); }
.ex-edit > .link-btn { margin: -6px 0 -4px 30px; }

/* Conta e nuvem */
.btn.google { color: #E3E3E3; font-weight: 500; margin-inline: 0; margin-top: 4px; }
.btn.google::before { transform: none; border-radius: 999px; background: #131314; box-shadow: inset 0 0 0 1px #8E918F; }
.btn.google svg { width: 20px; height: 20px; }
.account .err { color: var(--danger); margin: 10px 0 0; font-size: 14px; }
.account.in { padding-bottom: 6px; }
.who { display: flex; align-items: center; gap: 12px; }
.who .grow { min-width: 0; }
.who .name { font: 600 italic 21px/1.15 var(--cond); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who .mail { color: var(--muted); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar { width: 44px; height: 44px; border-radius: 50%; flex: none; object-fit: cover; display: grid; place-items: center; background: var(--surface-2); font: 700 20px/1 var(--cond); box-shadow: 0 0 0 2px var(--gold); }
.sync { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 14px; color: var(--muted); }
.sync .dot { width: 8px; height: 8px; border-radius: 50%; background: #5CC98A; flex: none; }
.sync[data-s="syncing"] .dot { background: var(--chrome); animation: pulse 1s ease-in-out infinite; }
.sync[data-s="offline"] .dot { background: var(--gold); }
.sync[data-s="error"] .dot { background: var(--danger); }
@keyframes pulse { 50% { opacity: .3; } }
.account.in .btn.danger { margin: 6px 0 0 -8px; }
.nudge {
  display: flex; align-items: center; gap: 12px; margin: 0 0 16px; padding: 12px 14px;
  background: var(--surface); border-radius: var(--r-lg); text-decoration: none;
  box-shadow: inset 0 0 0 1px rgba(111,203,222,.35); font-size: 15px; color: var(--muted);
}
.nudge b { color: var(--text); font-weight: 600; }
.nudge svg { width: 22px; height: 22px; flex: none; }

/* Abas só com ícones */
.tabs a { position: relative; color: var(--muted); }
.tabs a svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s; }
.tabs a .cut { display: none; }
.tabs a[aria-current="page"] { color: var(--chrome); }
.tabs a[aria-current="page"] svg { fill: currentColor; }
.tabs a[aria-current="page"] .line { stroke: var(--bg); stroke-width: 1.6; }
.tabs a[aria-current="page"] .cut { display: inline; fill: var(--bg); stroke: none; }
.tabs a[aria-current="page"] .hole { fill: var(--bg); stroke: none; }
.tabs a::after {
  content: ""; position: absolute; left: 50%; bottom: 6px; width: 18px; height: 3px; margin-left: -9px;
  border-radius: 2px; background: var(--chrome); transform: skewX(-12deg) scaleX(0); transition: transform .18s;
}
.tabs a[aria-current="page"]::after { transform: skewX(-12deg) scaleX(1); }
.tabs a:active svg { transform: scale(.9); }

/* Tela de entrada */
.gate { min-height: calc(100vh - var(--safe-t) - 60px); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 8px 8px 24px; }
.gate .logo-lg { max-width: 300px; margin-bottom: 4px; }
.gate h1 { margin: 0 0 8px; font: 800 italic 32px/1.05 var(--cond); color: var(--text); }
.gate p { margin: 0 0 24px; color: var(--muted); max-width: 32ch; }
.gate .btn.google { max-width: 340px; }
.gate .err { color: var(--danger); margin: 12px 0 0; font-size: 14px; }
.gate .skip { margin-top: 14px; justify-self: center; color: var(--muted); font-weight: 500; }
.gate .skip:hover { color: var(--text); }
.gate .fine-note { margin: 2px 0 0; font-size: 13px; color: #7E6458; }
.gate.splash .logo-lg { animation: breathe 1.6s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .7; transform: scale(.98); } }
@media (prefers-reduced-motion: reduce) { .gate.splash .logo-lg { animation: none; } }
