/* ==========================================================================
   Pitbull System — design system
   Preto + laranja da logo, minimalista, o celular como tela principal.

   Regra de ouro: nenhuma pagina escreve hex solto. Tudo sai dos tokens abaixo.
   ========================================================================== */

:root {
  /* Superficies — preto levemente quente, para acompanhar o laranja */
  --pb-bg: #100F11;
  --pb-surface: #191719;
  --pb-surface-2: #221F22;
  --pb-surface-3: #2C292D;
  --pb-line: #2C292D;
  --pb-line-soft: #201D21;

  /* Texto */
  --pb-text: #F3F1F0;
  --pb-muted: #948E8C;
  --pb-faint: #635D5E;

  /* Marca — o laranja e a media dos pixels do brasao da academia. O token se
     chama "brand" e nao "orange": se a logo mudar, o nome continua certo. */
  --pb-brand: #E56E2A;
  --pb-brand-dark: #C4561B;
  --pb-brand-wash: rgba(229, 110, 42, .13);

  /* Semantica. O laranja e so da marca — por isso "em aberto" e neutro em vez
     de ambar: ambar e laranja brigariam numa etiqueta de 11px. Os tres estados
     de mensalidade ficam distintos: neutro (normal), vermelho (cobrar),
     verde (resolvido). */
  --pb-green: #2FBF71;
  --pb-green-wash: rgba(47, 191, 113, .13);
  --pb-danger: #E5484D;
  --pb-danger-wash: rgba(229, 72, 77, .13);

  /* Espacamento — escala de 4px */
  --pb-s1: 4px;  --pb-s2: 8px;  --pb-s3: 12px; --pb-s4: 16px;
  --pb-s5: 24px; --pb-s6: 32px; --pb-s7: 48px;

  /* Forma — raio pequeno: minimalista, nao arredondado */
  --pb-r-sm: 6px;
  --pb-r: 8px;
  --pb-r-lg: 12px;
  --pb-r-full: 999px;

  --pb-shadow: 0 8px 24px rgba(0, 0, 0, .4);

  /* Tipografia. A condensada e melhoria progressiva: sem internet, cai para a
     fonte do sistema sem quebrar o layout. */
  --pb-font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --pb-font-title: "Barlow Condensed", "Oswald", var(--pb-font);

  --pb-topbar-h: 56px;
  --pb-nav-h: 60px;
  --pb-sidebar-w: 248px;
}

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

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

body {
  margin: 0;
  background: var(--pb-bg);
  color: var(--pb-text);
  font-family: var(--pb-font);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
[hidden] { display: none !important; }

a { color: inherit; text-decoration: none; }

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

::selection { background: var(--pb-brand); color: #fff; }

:focus-visible {
  outline: 2px solid var(--pb-brand);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Tipografia
   -------------------------------------------------------------------------- */

.pb-display,
.pb-h1,
.pb-h2,
.pb-h3 {
  font-family: var(--pb-font-title);
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin: 0;
  line-height: 1.1;
}

.pb-display { font-size: 34px; letter-spacing: .02em; }
.pb-h1 { font-size: 25px; }
.pb-h2 { font-size: 19px; }
.pb-h3 { font-size: 16px; letter-spacing: .06em; }

.pb-eyebrow {
  font-family: var(--pb-font-title);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--pb-muted);
  margin: 0;
}

.pb-small { font-size: 13px; }
.pb-muted { color: var(--pb-muted); }
.pb-faint { color: var(--pb-faint); }
.pb-num { font-variant-numeric: tabular-nums; }
.pb-strong { font-weight: 600; }
.pb-center { text-align: center; }
.pb-right { text-align: right; }
.pb-nowrap { white-space: nowrap; }

/* --------------------------------------------------------------------------
   Estrutura da pagina
   -------------------------------------------------------------------------- */

.pb-app { min-height: 100dvh; }

.pb-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  height: calc(var(--pb-topbar-h) + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) var(--pb-s4) 0;
  display: flex;
  align-items: center;
  gap: var(--pb-s3);
  background: rgba(16, 15, 17, .92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--pb-line);
}

.pb-topbar__mark {
  width: 30px; height: 30px;
  flex: 0 0 auto;
}

.pb-topbar__title {
  font-family: var(--pb-font-title);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin: 0;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pb-topbar__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px; height: 40px;
  padding: 0 var(--pb-s3);
  border-radius: var(--pb-r);
  color: var(--pb-muted);
  background: transparent;
  border: 0;
  cursor: pointer;
}
.pb-topbar__action:hover { background: var(--pb-surface-2); color: var(--pb-text); }

.pb-page {
  padding: var(--pb-s4) var(--pb-s4)
           calc(var(--pb-nav-h) + env(safe-area-inset-bottom, 0px) + var(--pb-s6));
  max-width: 1100px;
  margin: 0 auto;
}

.pb-section { margin-bottom: var(--pb-s5); }

.pb-section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--pb-s3);
  margin-bottom: var(--pb-s3);
}

/* --------------------------------------------------------------------------
   Navegacao — barra de baixo no celular, lateral no desktop
   -------------------------------------------------------------------------- */

.pb-nav {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 40;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  background: rgba(22, 20, 23, .96);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--pb-line);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.pb-nav__item {
  min-height: var(--pb-nav-h);
  min-width: 0;
  padding: 0 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--pb-faint);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: uppercase;
  position: relative;
  transition: color .15s;
}

.pb-nav__item svg { width: 21px; height: 21px; flex: 0 0 auto; }

.pb-nav__item span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pb-nav__item:active { background: var(--pb-surface-2); }
.pb-nav__item.is-active { color: var(--pb-text); }

.pb-nav__item.is-active::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 2px;
  background: var(--pb-brand);
}

.pb-sidebar { display: none; }

/* --------------------------------------------------------------------------
   Cartoes
   -------------------------------------------------------------------------- */

.pb-card {
  background: var(--pb-surface);
  border: 1px solid var(--pb-line);
  border-radius: var(--pb-r-lg);
  padding: var(--pb-s4);
}

.pb-card--flush { padding: 0; overflow: hidden; }
.pb-card + .pb-card { margin-top: var(--pb-s3); }

.pb-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--pb-s3);
  margin-bottom: var(--pb-s3);
}

.pb-grid {
  display: grid;
  gap: var(--pb-s3);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
}

.pb-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* Sem isto, um item de grid nunca encolhe abaixo do proprio conteudo e a
   pagina ganha rolagem horizontal no celular. */
.pb-grid > * { min-width: 0; }

/* Numeros do topo do painel */
.pb-stat {
  background: var(--pb-surface);
  border: 1px solid var(--pb-line);
  border-radius: var(--pb-r-lg);
  padding: var(--pb-s3) var(--pb-s4);
  display: flex;
  flex-direction: column;
  gap: 2px;
  position: relative;
  overflow: hidden;
  min-width: 0;
}

.pb-stat::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--pb-line);
}
.pb-stat--brand::before { background: var(--pb-brand); }
.pb-stat--green::before { background: var(--pb-green); }
.pb-stat--danger::before { background: var(--pb-danger); }

.pb-stat__value {
  font-family: var(--pb-font-title);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}
.pb-stat__value--sm { font-size: 21px; }

.pb-stat__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--pb-muted);
  overflow-wrap: anywhere;
}

/* --------------------------------------------------------------------------
   Faixa — o componente-assinatura
   Retangulo com a cor da faixa + ponteira com os graus.
   Na vida real a ponteira da preta e vermelha; as demais sao pretas.
   -------------------------------------------------------------------------- */

.pb-belt {
  --belt: #EDEDEE;
  --tip: #141418;
  display: inline-flex;
  align-items: stretch;
  width: 68px;
  height: 14px;
  border-radius: 3px;
  overflow: hidden;
  background: var(--belt);
  border: 1px solid rgba(255, 255, 255, .14);
  flex: 0 0 auto;
}

.pb-belt--preta { --tip: var(--pb-brand); }

.pb-belt__tip {
  margin-left: auto;
  background: var(--tip);
  width: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 0 3px;
}

.pb-belt__grau {
  width: 2px;
  height: 64%;
  background: #fff;
  border-radius: 1px;
  flex: 0 0 auto;
}

.pb-belt--lg { width: 132px; height: 24px; border-radius: 4px; }
.pb-belt--lg .pb-belt__tip { width: 56px; gap: 4px; }
.pb-belt--lg .pb-belt__grau { width: 4px; }

.pb-belt-linha {
  display: flex;
  align-items: center;
  gap: var(--pb-s2);
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   Listas de alunos / cobrancas
   -------------------------------------------------------------------------- */

.pb-list { list-style: none; margin: 0; padding: 0; }

.pb-row {
  display: flex;
  align-items: center;
  gap: var(--pb-s3);
  width: 100%;
  min-height: 60px;
  padding: var(--pb-s3) var(--pb-s4);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--pb-line-soft);
  text-align: left;
  cursor: pointer;
  transition: background .12s;
}

.pb-row:last-child { border-bottom: 0; }
.pb-row:hover { background: var(--pb-surface-2); }
.pb-row:active { background: var(--pb-surface-3); }

.pb-row__main { flex: 1; min-width: 0; }

.pb-row__name {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pb-row__meta {
  font-size: 12px;
  color: var(--pb-muted);
  display: flex;
  align-items: center;
  gap: var(--pb-s2);
  margin-top: 3px;
  flex-wrap: wrap;
}

.pb-row__side { flex: 0 0 auto; text-align: right; }

.pb-avatar {
  width: 38px; height: 38px;
  flex: 0 0 auto;
  display: grid; place-items: center;
  border-radius: var(--pb-r-full);
  background: var(--pb-surface-2);
  border: 1px solid var(--pb-line);
  font-family: var(--pb-font-title);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--pb-muted);
}

.pb-avatar--on {
  background: var(--pb-brand);
  border-color: var(--pb-brand);
  color: #fff;
}

/* --------------------------------------------------------------------------
   Botoes
   -------------------------------------------------------------------------- */

.pb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--pb-s2);
  min-height: 44px;
  padding: 0 var(--pb-s4);
  border: 1px solid var(--pb-line);
  border-radius: var(--pb-r);
  background: var(--pb-surface-2);
  color: var(--pb-text);
  font-family: var(--pb-font-title);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .12s, transform .06s, border-color .12s;
  white-space: nowrap;
}

.pb-btn:hover { background: var(--pb-surface-3); }
.pb-btn:active { transform: translateY(1px); }

.pb-btn--primary {
  background: var(--pb-brand);
  border-color: var(--pb-brand);
  color: #fff;
}
.pb-btn--primary:hover { background: var(--pb-brand-dark); border-color: var(--pb-brand-dark); }

.pb-btn--ghost { background: transparent; }
.pb-btn--ghost:hover { background: var(--pb-surface-2); }

.pb-btn--danger { color: var(--pb-danger); border-color: rgba(229, 72, 77, .4); background: transparent; }
.pb-btn--danger:hover { background: var(--pb-danger-wash); }

.pb-btn--sm { min-height: 36px; padding: 0 var(--pb-s3); font-size: 13px; }
.pb-btn--block { width: 100%; }
.pb-btn svg { width: 17px; height: 17px; }

.pb-btn-linha {
  display: flex;
  gap: var(--pb-s2);
  flex-wrap: wrap;
}

/* Um <summary> estilizado como botao: o Safari precisa que o marcador saia
   pelo seletor proprio dele, senao a setinha continua aparecendo. */
summary.pb-btn { list-style: none; }
summary.pb-btn::-webkit-details-marker { display: none; }
summary.pb-btn::marker { content: ""; }

/* Botao flutuante de acao principal */
.pb-fab {
  position: fixed;
  right: var(--pb-s4);
  bottom: calc(var(--pb-nav-h) + env(safe-area-inset-bottom, 0px) + var(--pb-s4));
  z-index: 35;
  width: 54px; height: 54px;
  display: grid; place-items: center;
  border: 0;
  border-radius: var(--pb-r-full);
  background: var(--pb-brand);
  color: #fff;
  box-shadow: var(--pb-shadow);
  cursor: pointer;
}
.pb-fab:active { transform: translateY(1px); }
.pb-fab svg { width: 24px; height: 24px; }

/* --------------------------------------------------------------------------
   Formularios
   -------------------------------------------------------------------------- */

.pb-field { margin-bottom: var(--pb-s4); }

.pb-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--pb-muted);
  margin-bottom: var(--pb-s2);
}

.pb-input,
.pb-select,
.pb-textarea {
  width: 100%;
  min-height: 46px;
  padding: var(--pb-s2) var(--pb-s3);
  background: var(--pb-surface-2);
  border: 1px solid var(--pb-line);
  border-radius: var(--pb-r);
  color: var(--pb-text);
  transition: border-color .12s;
}

.pb-input:focus,
.pb-select:focus,
.pb-textarea:focus {
  border-color: var(--pb-brand);
  outline: none;
}

.pb-input::placeholder, .pb-textarea::placeholder { color: var(--pb-faint); }

.pb-textarea { min-height: 110px; resize: vertical; padding-top: var(--pb-s3); }

.pb-select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--pb-muted) 50%),
                    linear-gradient(135deg, var(--pb-muted) 50%, transparent 50%);
  background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: var(--pb-s6);
}

.pb-hint { font-size: 12px; color: var(--pb-faint); margin-top: var(--pb-s1); }

.pb-check {
  display: flex;
  align-items: center;
  gap: var(--pb-s3);
  min-height: 46px;
  padding: 0 var(--pb-s3);
  background: var(--pb-surface-2);
  border: 1px solid var(--pb-line);
  border-radius: var(--pb-r);
  cursor: pointer;
}

.pb-check input { width: 18px; height: 18px; accent-color: var(--pb-brand); }

.pb-form-grid {
  display: grid;
  gap: 0 var(--pb-s3);
  grid-template-columns: 1fr;
}

.pb-fieldset {
  border: 1px solid var(--pb-line);
  border-radius: var(--pb-r-lg);
  padding: var(--pb-s4);
  margin: 0 0 var(--pb-s4);
}

.pb-fieldset legend {
  font-family: var(--pb-font-title);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--pb-muted);
  padding: 0 var(--pb-s2);
}

/* Barra de busca sticky */
.pb-search {
  position: relative;
  margin-bottom: var(--pb-s3);
}

.pb-search svg {
  position: absolute;
  left: var(--pb-s3);
  top: 50%;
  transform: translateY(-50%);
  width: 18px; height: 18px;
  color: var(--pb-faint);
  pointer-events: none;
}

.pb-search .pb-input { padding-left: 42px; }

/* --------------------------------------------------------------------------
   Etiquetas, chips e barra de progresso
   -------------------------------------------------------------------------- */

.pb-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--pb-s1);
  padding: 3px var(--pb-s2);
  border-radius: var(--pb-r-sm);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: var(--pb-surface-3);
  color: var(--pb-muted);
  white-space: nowrap;
}

.pb-tag--pago { background: var(--pb-green-wash); color: var(--pb-green); }
.pb-tag--aberto { background: var(--pb-surface-3); color: var(--pb-muted); }
.pb-tag--atrasado { background: var(--pb-danger-wash); color: var(--pb-danger); }
.pb-tag--brand { background: var(--pb-brand-wash); color: var(--pb-brand); }

.pb-chips {
  display: flex;
  gap: var(--pb-s2);
  overflow-x: auto;
  padding-bottom: var(--pb-s2);
  margin-bottom: var(--pb-s3);
  scrollbar-width: none;
}
.pb-chips::-webkit-scrollbar { display: none; }

.pb-chip {
  flex: 0 0 auto;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 var(--pb-s3);
  border: 1px solid var(--pb-line);
  border-radius: var(--pb-r-full);
  background: var(--pb-surface);
  color: var(--pb-muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.pb-chip.is-active {
  background: var(--pb-brand-wash);
  border-color: var(--pb-brand);
  color: var(--pb-text);
}

.pb-progress {
  height: 4px;
  background: var(--pb-surface-3);
  border-radius: var(--pb-r-full);
  overflow: hidden;
}

.pb-progress__bar {
  height: 100%;
  background: var(--pb-brand);
  border-radius: inherit;
  transition: width .3s;
}
.pb-progress__bar--full { background: var(--pb-green); }

/* --------------------------------------------------------------------------
   Aniversarios, vazio e avisos
   -------------------------------------------------------------------------- */

.pb-birthday {
  display: flex;
  align-items: center;
  gap: var(--pb-s3);
  padding: var(--pb-s3);
  border-radius: var(--pb-r);
  background: var(--pb-brand-wash);
  border: 1px solid rgba(229, 110, 42, .32);
  margin-bottom: var(--pb-s2);
  min-width: 0;
}

.pb-birthday svg { width: 26px; height: 26px; }

.pb-birthday__day {
  flex: 0 0 auto;
  width: 44px;
  text-align: center;
  font-family: var(--pb-font-title);
  line-height: 1;
}
.pb-birthday__day b { display: block; font-size: 20px; }
.pb-birthday__day span { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--pb-muted); }

.pb-empty {
  text-align: center;
  padding: var(--pb-s6) var(--pb-s4);
  color: var(--pb-faint);
}
.pb-empty svg { width: 34px; height: 34px; margin-bottom: var(--pb-s3); opacity: .5; }

.pb-flash-area {
  position: fixed;
  left: 50%;
  top: calc(env(safe-area-inset-top, 0px) + var(--pb-s2));
  transform: translateX(-50%);
  z-index: 100;
  width: min(440px, calc(100vw - 32px));
  display: flex;
  flex-direction: column;
  gap: var(--pb-s2);
  pointer-events: none;
}

.pb-flash {
  padding: var(--pb-s3) var(--pb-s4);
  border-radius: var(--pb-r);
  background: var(--pb-surface-3);
  border: 1px solid var(--pb-line);
  box-shadow: var(--pb-shadow);
  font-size: 14px;
  animation: pb-flash-in .2s ease-out;
}

.pb-flash.is-success { border-color: var(--pb-green); }
.pb-flash.is-error { border-color: var(--pb-brand); }

@keyframes pb-flash-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   Login
   -------------------------------------------------------------------------- */

.pb-login {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: var(--pb-s5) var(--pb-s4);
  background:
    radial-gradient(circle at 50% 0%, rgba(229, 110, 42, .15), transparent 55%),
    var(--pb-bg);
}

.pb-login__box { width: min(380px, 100%); }

.pb-login__mark {
  width: 132px; height: 132px;
  margin: 0 auto var(--pb-s4);
  /* O brilho acompanha o circulo da logo, nao um quadrado atras dela. */
  filter: drop-shadow(0 10px 32px rgba(229, 110, 42, .32));
}

/* --------------------------------------------------------------------------
   Presenca — a tela de uso no tatame
   -------------------------------------------------------------------------- */

.pb-presenca__item {
  display: flex;
  align-items: center;
  gap: var(--pb-s3);
  width: 100%;
  min-height: 62px;
  padding: var(--pb-s3) var(--pb-s4);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--pb-line-soft);
  text-align: left;
  cursor: pointer;
  transition: background .12s;
}

.pb-presenca__item:last-child { border-bottom: 0; }
.pb-presenca__item:active { background: var(--pb-surface-3); }
.pb-presenca__item.is-on { background: var(--pb-green-wash); }

.pb-presenca__check {
  flex: 0 0 auto;
  width: 26px; height: 26px;
  border-radius: var(--pb-r-full);
  border: 2px solid var(--pb-surface-3);
  display: grid; place-items: center;
  color: transparent;
  transition: background .12s, border-color .12s, color .12s;
}

.pb-presenca__check svg { width: 15px; height: 15px; }

.is-on .pb-presenca__check {
  background: var(--pb-green);
  border-color: var(--pb-green);
  color: #0E0E10;
}

.pb-presenca__contador {
  font-family: var(--pb-font-title);
  font-size: 30px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

/* --------------------------------------------------------------------------
   Tabelas simples (desktop)
   -------------------------------------------------------------------------- */

.pb-scroll-x { overflow-x: auto; }

.pb-divider {
  height: 1px;
  background: var(--pb-line);
  border: 0;
  margin: var(--pb-s4) 0;
}

.pb-dl { margin: 0; }
.pb-dl div {
  display: flex;
  justify-content: space-between;
  gap: var(--pb-s3);
  padding: var(--pb-s2) 0;
  border-bottom: 1px solid var(--pb-line-soft);
}
.pb-dl div:last-child { border-bottom: 0; }
.pb-dl dt { color: var(--pb-muted); font-size: 13px; }
.pb-dl dd { margin: 0; text-align: right; font-weight: 500; }

/* --------------------------------------------------------------------------
   Desktop — a barra de baixo vira barra lateral
   -------------------------------------------------------------------------- */

@media (min-width: 900px) {
  .pb-app { display: grid; grid-template-columns: var(--pb-sidebar-w) 1fr; }

  .pb-nav { display: none; }

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

  .pb-sidebar__brand {
    display: flex;
    align-items: center;
    gap: var(--pb-s3);
    padding: 0 var(--pb-s3) var(--pb-s5);
  }

  .pb-sidebar__brand-mark {
    width: 38px; height: 38px;
    flex: 0 0 auto;
  }

  .pb-sidebar__brand-name {
    font-family: var(--pb-font-title);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    line-height: 1.15;
    /* Nome longo quebra entre palavras, nunca no meio de uma. */
    overflow-wrap: break-word;
    hyphens: none;
  }

  .pb-sidebar__item {
    display: flex;
    align-items: center;
    gap: var(--pb-s3);
    min-height: 44px;
    padding: 0 var(--pb-s3);
    border-radius: var(--pb-r);
    color: var(--pb-muted);
    font-size: 14px;
    font-weight: 600;
    transition: background .12s, color .12s;
  }

  .pb-sidebar__item svg { width: 19px; height: 19px; flex: 0 0 auto; }
  .pb-sidebar__item:hover { background: var(--pb-surface-2); color: var(--pb-text); }

  .pb-sidebar__item.is-active {
    background: var(--pb-brand-wash);
    color: var(--pb-text);
    box-shadow: inset 2px 0 0 var(--pb-brand);
  }

  .pb-sidebar__footer { margin-top: auto; }

  .pb-page { padding: var(--pb-s5) var(--pb-s5) var(--pb-s7); }
  .pb-fab { display: none; }
  .pb-topbar { padding-left: var(--pb-s5); padding-right: var(--pb-s5); }
  .pb-topbar__mark { display: none; }

  .pb-form-grid { grid-template-columns: 1fr 1fr; }
  .pb-form-grid .pb-field--full { grid-column: 1 / -1; }

  .pb-cols {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: var(--pb-s4);
    align-items: start;
  }
}

@media (max-width: 899px) {
  .pb-cols { display: grid; gap: var(--pb-s4); }
  .pb-desktop-only { display: none !important; }
}

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