:root {
  --bg: #1C1C1E;
  --surface: #242426;
  --surface-raised: #2E2E31;
  --steel: #3A3A3D;
  --steel-line: #47474B;
  --chalk: #F2F1EA;
  --chalk-dim: #A8A7A2;
  --accent: #FF5A1F;
  --accent-dim: #C74A1C;
  --green: #4ADE80;
  --red: #F45B69;
  --yellow: #F5C15A;
  --blue: #60A5FA;
  --mono: 'SF Mono', 'Courier New', monospace;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body {
  margin: 0; background: var(--bg); color: var(--chalk);
  font-family: var(--sans); min-height: 100vh; padding-bottom: 48px;
}
a { color: var(--accent); text-decoration: none; }
.wrap { max-width: 720px; margin: 0 auto; padding: 20px 16px 0; }
.wrap-wide { max-width: 960px; margin: 0 auto; padding: 20px 16px 0; }

/* Header */
header {
  display: flex; justify-content: space-between; align-items: flex-end;
  padding: 8px 0 18px; border-bottom: 2px solid var(--steel-line); margin-bottom: 18px;
}
.brand {
  font-weight: 900; font-size: 22px; letter-spacing: -0.5px;
  text-transform: uppercase; cursor: pointer; color: var(--chalk);
}
/* only // uses accent — see .brand-slash */
.clock {
  font-family: var(--mono); font-size: 12px; color: var(--chalk-dim); text-align: right;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.clock b { display: block; color: var(--chalk); font-size: 15px; font-weight: 700; }

/* Nav */
.subnav {
  display: flex; gap: 6px; margin-bottom: 16px; overflow-x: auto; padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
}
.subnav a, .subnav button {
  background: transparent; color: var(--chalk-dim); border: 1px solid var(--steel-line);
  padding: 8px 12px; font-size: 11.5px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.3px; border-radius: 16px; cursor: pointer; font-family: var(--sans);
  white-space: nowrap; flex-shrink: 0; text-decoration: none; display: inline-block;
}
.subnav a.active, .subnav button.active {
  background: var(--chalk); color: #1C1C1E; border-color: var(--chalk);
}

/* Cards */
.card {
  background: var(--surface); border: 1px solid var(--steel-line); border-radius: 10px;
  padding: 16px; margin-bottom: 14px;
}
h1 { font-size: 20px; margin: 0 0 16px; text-transform: uppercase; letter-spacing: 0.3px; }
h2 {
  font-size: 13px; text-transform: uppercase; letter-spacing: 0.6px;
  color: var(--chalk-dim); margin: 0 0 12px; font-weight: 700;
}
h3 { font-size: 15px; margin: 0 0 8px; font-weight: 700; }

/* Forms */
select, input, textarea {
  width: 100%; background: var(--steel); border: 1px solid var(--steel-line);
  color: var(--chalk); padding: 11px 12px; border-radius: 7px; font-size: 15px;
  font-family: var(--sans);
}
textarea {
  resize: vertical; min-height: 100px; font-family: var(--mono);
  font-size: 13.5px; line-height: 1.5;
}
input::placeholder, textarea::placeholder { color: var(--chalk-dim); }
label {
  font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.4px;
  color: var(--chalk-dim); display: block; margin: 10px 0 5px;
}
label:first-child, .card > label:first-of-type { margin-top: 0; }
.form-row { display: flex; gap: 10px; }
.form-row > * { flex: 1; }

/* Buttons */
.btn {
  background: var(--accent); color: #1C1C1E; border: none; padding: 12px 16px;
  border-radius: 7px; font-weight: 800; font-size: 14px; text-transform: uppercase;
  letter-spacing: 0.4px; cursor: pointer; font-family: var(--sans); width: 100%;
  margin-top: 12px; display: inline-block; text-align: center;
}
.btn.secondary { background: var(--steel); color: var(--chalk); border: 1px solid var(--steel-line); }
.btn.ghost { background: transparent; color: var(--chalk-dim); border: 1px solid var(--steel-line); }
.btn.small { width: auto; padding: 8px 12px; font-size: 11.5px; margin-top: 0; }
.btn.danger { background: var(--red); color: #1C1C1E; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-row { display: flex; gap: 8px; margin-top: 12px; }
.btn-row .btn { margin-top: 0; flex: 1; }

/* Lists */
.list-item {
  padding: 12px 4px; border-bottom: 1px solid var(--steel-line);
}
.list-item:last-child { border-bottom: none; }
.list-item-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.list-item .name { font-weight: 600; font-size: 15px; }
.list-item .sub { font-size: 12px; color: var(--chalk-dim); margin-top: 3px; line-height: 1.5; }
.list-item .actions { display: flex; gap: 6px; flex-shrink: 0; align-items: center; }
.empty { color: var(--chalk-dim); font-size: 13.5px; text-align: center; padding: 28px 0; }
.del {
  color: var(--chalk-dim); font-size: 11px; text-decoration: underline; cursor: pointer;
  background: none; border: none; font-family: var(--sans); padding: 0;
}
.del:hover { color: var(--red); }

/* Tags & badges */
.tag {
  display: inline-block; background: var(--steel); border: 1px solid var(--steel-line);
  padding: 3px 8px; border-radius: 4px; font-size: 10.5px; margin: 3px 5px 0 0;
  color: var(--chalk-dim); cursor: pointer; user-select: none;
}
.tag.on { background: var(--accent); color: #1C1C1E; border-color: var(--accent); }
.badge {
  padding: 3px 9px; border-radius: 12px; font-size: 10px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.3px; display: inline-block; white-space: nowrap;
}
.badge.atrasado { background: #4a1f22; color: var(--red); }
.badge.atencao { background: #4a3a1f; color: var(--yellow); }
.badge.ok { background: #1f3d2c; color: var(--green); }
.badge.muted { background: var(--steel); color: var(--chalk-dim); }
.badge.blue { background: #1e3a5f; color: var(--blue); }

/* Days picker */
.days { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 5px; }
.day-btn {
  background: var(--steel); border: 1px solid var(--steel-line); color: var(--chalk-dim);
  padding: 7px 0; border-radius: 6px; font-size: 11.5px; font-weight: 700;
  cursor: pointer; flex: 1; text-align: center; font-family: var(--sans); min-width: 36px;
}
.day-btn.on { background: var(--accent); color: #1C1C1E; border-color: var(--accent); }

/* Athlete check row */
.athlete {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 4px; border-bottom: 1px solid var(--steel-line); cursor: pointer;
}
.athlete:last-child { border-bottom: none; }
.athlete .name { font-size: 15px; font-weight: 600; }
.athlete .sub { font-size: 11.5px; color: var(--chalk-dim); margin-top: 2px; }
.check-box {
  width: 26px; height: 26px; border-radius: 6px; border: 2px solid var(--steel-line);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  margin-left: 12px; font-family: var(--mono); font-size: 14px; color: transparent;
}
.athlete.checked .check-box { background: var(--green); border-color: var(--green); color: #132318; }
.athlete.checked .name { color: var(--green); }

/* Stats */
.stat-row { display: flex; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.stat-card {
  flex: 1; min-width: 100px; background: var(--surface); border: 1px solid var(--steel-line);
  border-radius: 10px; padding: 14px; text-align: center;
}
.stat-card .big {
  font-family: var(--mono); font-size: 28px; font-weight: 700; color: var(--accent); line-height: 1;
}
.stat-card .big.full { color: var(--red); }
.stat-card .big.ok { color: var(--green); }
.stat-card .lbl {
  font-size: 10px; color: var(--chalk-dim); text-transform: uppercase;
  margin-top: 6px; letter-spacing: 0.3px;
}

/* Hero tiles (home) */
.hero-tile {
  background: var(--surface); border: 1px solid var(--steel-line); border-radius: 12px;
  padding: 20px; margin-bottom: 12px; cursor: pointer; display: flex; align-items: center; gap: 14px;
  transition: background 0.15s;
}
.hero-tile:active, .hero-tile:hover { background: var(--surface-raised); }
.hero-tile .ic {
  width: 44px; height: 44px; border-radius: 9px; background: var(--accent); color: #1C1C1E;
  display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 18px; flex-shrink: 0;
}
.hero-tile .t { font-size: 16px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.3px; }
.hero-tile .d { font-size: 12.5px; color: var(--chalk-dim); margin-top: 2px; }

/* WOD box */
.wod-box {
  background: var(--surface); border: 1px solid var(--steel-line); border-radius: 10px;
  padding: 16px; margin-bottom: 14px; border-left: 3px solid var(--accent);
}
.wod-box .wod-title {
  font-weight: 800; font-size: 15px; text-transform: uppercase;
  letter-spacing: 0.3px; margin-bottom: 8px; color: var(--accent);
}
.wod-box .wod-content {
  white-space: pre-wrap; font-family: var(--mono); font-size: 13.5px;
  line-height: 1.6; color: var(--chalk);
}
.wod-section { margin-bottom: 12px; }
.wod-section:last-child { margin-bottom: 0; }
.wod-section-name {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px;
  color: var(--accent); font-weight: 700; margin-bottom: 4px;
}

/* Leaderboard */
.lb-row {
  display: flex; align-items: center; gap: 12px; padding: 10px 4px;
  border-bottom: 1px solid var(--steel-line);
}
.lb-row:last-child { border-bottom: none; }
.lb-pos {
  font-family: var(--mono); font-weight: 700; font-size: 16px;
  color: var(--chalk-dim); width: 28px; text-align: center;
}
.lb-pos.top { color: var(--accent); }
.lb-score { font-family: var(--mono); font-weight: 700; margin-left: auto; color: var(--green); }

/* Edit panel */
.edit-panel {
  background: var(--surface-raised); border: 1px solid var(--steel-line);
  border-radius: 8px; padding: 12px; margin-top: 10px;
}

/* Toast */
.toast {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
  background: var(--surface-raised); border: 1px solid var(--steel-line); color: var(--chalk);
  padding: 10px 18px; border-radius: 8px; font-size: 13px; opacity: 0;
  pointer-events: none; transition: opacity 0.2s; z-index: 50;
  max-width: 88vw; text-align: center;
}
.toast.show { opacity: 1; }

/* Login */
.login-wrap { max-width: 380px; margin: 8vh auto 0; padding: 0 16px; }
.login-wrap h1 { text-align: center; }

/* Badge turma row */
.badge-turma {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 4px; border-bottom: 1px solid var(--steel-line); gap: 10px;
}
.badge-turma:last-child { border-bottom: none; }

/* Sala fullscreen */
.sala-screen {
  position: fixed; inset: 0; background: #141416; color: var(--chalk); z-index: 100;
  display: flex; flex-direction: column; padding: 5vh 6vw; overflow-y: auto;
}
.sala-close {
  position: absolute; top: 24px; right: 28px; background: var(--steel);
  border: 1px solid var(--steel-line); color: var(--chalk); width: 40px; height: 40px;
  border-radius: 8px; font-size: 18px; cursor: pointer;
}
.sala-date {
  font-family: var(--mono); color: var(--chalk-dim); font-size: 15px;
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px;
}
.sala-title {
  font-size: clamp(28px, 6vw, 56px); font-weight: 900; text-transform: uppercase;
  letter-spacing: -1px; color: var(--accent); margin: 0 0 26px;
}
.sala-content {
  white-space: pre-wrap; font-family: var(--mono);
  font-size: clamp(16px, 2.6vw, 26px); line-height: 1.7; flex: 1;
}
.sala-empty { color: var(--chalk-dim); font-size: clamp(18px, 3vw, 28px); }

/* Tabs internal */
.tabs { display: flex; gap: 0; margin-bottom: 14px; border-bottom: 1px solid var(--steel-line); }
.tabs button {
  background: none; border: none; color: var(--chalk-dim); padding: 10px 14px;
  font-size: 12px; font-weight: 700; text-transform: uppercase; cursor: pointer;
  font-family: var(--sans); border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tabs button.active { color: var(--accent); border-bottom-color: var(--accent); }

/* Score form */
.score-tipo-btns { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.score-tipo-btns .tag { margin: 0; }

/* Table simple */
.table-wrap { overflow-x: auto; }
table.data {
  width: 100%; border-collapse: collapse; font-size: 13px;
}
table.data th {
  text-align: left; color: var(--chalk-dim); font-size: 10px; text-transform: uppercase;
  letter-spacing: 0.4px; padding: 8px 6px; border-bottom: 1px solid var(--steel-line);
}
table.data td {
  padding: 10px 6px; border-bottom: 1px solid var(--steel-line); vertical-align: middle;
}
table.data tr:last-child td { border-bottom: none; }

/* Footer nav aluno */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; background: var(--surface);
  border-top: 1px solid var(--steel-line); display: flex; z-index: 40;
  padding: 6px 0 env(safe-area-inset-bottom);
}
.bottom-nav a {
  flex: 1; text-align: center; padding: 8px 4px; color: var(--chalk-dim);
  font-size: 10px; font-weight: 700; text-transform: uppercase; text-decoration: none;
}
.bottom-nav a.active { color: var(--accent); }
.bottom-nav a .ico { display: block; font-size: 18px; margin-bottom: 2px; }

/* Utility */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.hidden { display: none !important; }
.text-dim { color: var(--chalk-dim); }
.text-sm { font-size: 12.5px; }
.mono { font-family: var(--mono); }
.flex-between { display: flex; justify-content: space-between; align-items: center; gap: 8px; }

/* Calendar date picker row */
.date-nav {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px; gap: 8px;
}
.date-nav .date-label {
  font-family: var(--mono); font-size: 14px; font-weight: 700; text-align: center; flex: 1;
}
.date-nav .btn.small { min-width: 40px; }

/* PR grid */
.pr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pr-card {
  background: var(--surface-raised); border: 1px solid var(--steel-line);
  border-radius: 8px; padding: 12px;
}
.pr-card .mov { font-size: 11px; color: var(--chalk-dim); text-transform: uppercase; }
.pr-card .val { font-family: var(--mono); font-size: 20px; font-weight: 700; color: var(--accent); margin-top: 4px; }
.pr-card .when { font-size: 11px; color: var(--chalk-dim); margin-top: 4px; }

@media (max-width: 480px) {
  .pr-grid { grid-template-columns: 1fr; }
  .form-row { flex-direction: column; gap: 0; }
}

/* v2 extras */
.avatar-row { display:flex; align-items:center; gap:12px; }
.photo-upload {
  width:72px; height:72px; border-radius:50%; border:2px dashed var(--steel-line);
  display:flex; align-items:center; justify-content:center; cursor:pointer;
  overflow:hidden; background:var(--steel); flex-shrink:0;
}
.photo-upload img { width:100%; height:100%; object-fit:cover; }
.photo-upload span { font-size:11px; color:var(--chalk-dim); text-align:center; padding:4px; }
.pct-table { width:100%; border-collapse:collapse; margin-top:8px; }
.pct-table td { padding:6px 8px; border-bottom:1px solid var(--steel-line); font-family:var(--mono); font-size:13px; }
.pct-table td:first-child { color:var(--chalk-dim); width:50px; }
.pct-table tr:last-child td { border-bottom:none; }
.loading-screen {
  position:fixed; inset:0; background:var(--bg); display:flex; align-items:center;
  justify-content:center; z-index:200; flex-direction:column; gap:12px;
}
.loading-screen .spin {
  width:36px; height:36px; border:3px solid var(--steel-line); border-top-color:var(--accent);
  border-radius:50%; animation:spin 0.7s linear infinite;
}
@keyframes spin { to { transform:rotate(360deg); } }
.sala-lb {
  margin-top:32px; border-top:1px solid var(--steel-line); padding-top:24px;
}
.sala-lb h3 {
  font-size:clamp(14px,2vw,20px); text-transform:uppercase; letter-spacing:2px;
  color:var(--chalk-dim); margin:0 0 16px;
}
.sala-lb-row {
  display:flex; align-items:center; gap:16px; padding:10px 0;
  font-size:clamp(16px,2.4vw,24px); border-bottom:1px solid var(--steel-line);
}
.sala-lb-row .pos { font-family:var(--mono); font-weight:900; color:var(--accent); width:2em; }
.sala-lb-row .sc { font-family:var(--mono); font-weight:700; margin-left:auto; color:var(--green); }
.role-badge {
  font-size:10px; padding:2px 8px; border-radius:10px; background:var(--steel);
  color:var(--chalk-dim); text-transform:uppercase; font-weight:700;
}

/* Floating leaderboard (sala) */
.sala-float-lb {
  position: fixed;
  top: 12vh;
  right: 2vw;
  width: min(340px, 32vw);
  max-height: 76vh;
  overflow-y: auto;
  background: rgba(36,36,38,0.95);
  border: 1px solid var(--steel-line);
  border-radius: 12px;
  padding: 14px 16px;
  z-index: 110;
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.sala-float-lb h3 {
  margin: 0 0 12px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--chalk-dim);
}
.sala-float-lb .lb-row { font-size: 14px; padding: 8px 0; }
@media (max-width: 900px) {
  .sala-float-lb {
    position: relative;
    top: auto; right: auto;
    width: 100%;
    max-height: none;
    margin-top: 24px;
  }
  .sala-screen { padding-bottom: 40px; }
}

/* Brand fixed: only // uses accent */
.brand-slash { color: var(--accent); }
.brand-name-fixed { color: var(--chalk); font-weight: 900; }

/* Light theme */
html[data-theme="claro"] {
  --bg: #F4F3EE;
  --surface: #FFFFFF;
  --surface-raised: #F0EFEA;
  --steel: #E8E6DF;
  --steel-line: #D4D2C8;
  --chalk: #1C1C1E;
  --chalk-dim: #6B6A65;
}
html[data-theme="claro"] body { background: var(--bg); color: var(--chalk); }
html[data-theme="claro"] .subnav a.active,
html[data-theme="claro"] .subnav button.active { background: var(--chalk); color: #fff; }
html[data-theme="claro"] .btn { color: #fff; }
html[data-theme="claro"] .hero-tile .ic { color: #fff; }
html[data-theme="claro"] .sala-screen { background: #EEEDE8; }
html[data-theme="claro"] .sala-float-lb { background: rgba(255,255,255,0.95); }

.wa-btn {
  display: inline-block; background: #25D366; color: #fff !important; border: none;
  padding: 6px 10px; border-radius: 6px; font-size: 11px; font-weight: 700;
  text-decoration: none; cursor: pointer; margin-top: 6px;
}
.contract-box {
  white-space: pre-wrap; font-family: var(--mono); font-size: 13px;
  line-height: 1.6; background: var(--surface-raised); padding: 16px;
  border-radius: 8px; border: 1px solid var(--steel-line); max-height: 60vh; overflow-y: auto;
}


/* Brand: only // is accent */
.brand { color: var(--chalk) !important; }
.brand-name-fixed { color: var(--chalk) !important; }
.brand-slash { color: var(--accent) !important; }

/* Light theme — full inversion */
html[data-theme="claro"] {
  --bg: #F4F3EE;
  --surface: #FFFFFF;
  --surface-raised: #F0EFEA;
  --steel: #E8E6DF;
  --steel-line: #D4D2C8;
  --chalk: #1C1C1E;
  --chalk-dim: #6B6A65;
}
html[data-theme="claro"] body { background: var(--bg) !important; color: var(--chalk) !important; }
html[data-theme="claro"] .card,
html[data-theme="claro"] .stat-card,
html[data-theme="claro"] .hero-tile,
html[data-theme="claro"] .login-wrap .card { background: var(--surface); border-color: var(--steel-line); }
html[data-theme="claro"] input,
html[data-theme="claro"] select,
html[data-theme="claro"] textarea { background: #fff; color: var(--chalk); border-color: var(--steel-line); }
html[data-theme="claro"] .subnav button.active { background: var(--chalk); color: #fff; }
html[data-theme="claro"] .bottom-nav { background: #fff; border-color: var(--steel-line); }
html[data-theme="claro"] .sala-screen { background: #EEEDE8; color: var(--chalk); }
html[data-theme="claro"] .sala-float-lb { background: rgba(255,255,255,0.97); }

/* Compact action buttons */
.btn-xs {
  display: inline-block; border: none; border-radius: 6px; padding: 6px 12px;
  font-size: 11px; font-weight: 700; cursor: pointer; text-decoration: none;
  font-family: var(--sans); margin: 2px 4px 2px 0;
}
.btn-xs.primary { background: var(--accent); color: #fff; }
.btn-xs.secondary { background: var(--steel); color: var(--chalk); }
.btn-xs.danger { background: var(--red); color: #fff; }
.btn-xs.ghost { background: transparent; color: var(--chalk-dim); border: 1px solid var(--steel-line); }
.btn-xs.wa { background: #25D366; color: #fff; }

.filter-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; align-items: center; }
.filter-row input[type="search"] { flex: 1; min-width: 160px; }
.filter-chip {
  padding: 6px 12px; border-radius: 20px; border: 1px solid var(--steel-line);
  background: var(--surface-raised); font-size: 12px; cursor: pointer; color: var(--chalk-dim);
}
.filter-chip.on { background: var(--accent); color: #fff; border-color: var(--accent); }

.aviso-card {
  background: var(--surface); border: 1px solid var(--steel-line); border-radius: 12px;
  padding: 14px; margin-bottom: 14px;
}
.aviso-card .aviso-meta { font-size: 11px; color: var(--chalk-dim); margin-bottom: 8px; }
.aviso-card .aviso-body { white-space: pre-wrap; line-height: 1.5; }
.aviso-card img.aviso-img { max-width: 100%; border-radius: 8px; margin-top: 10px; }
.kb-react {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 10px;
  background: var(--surface-raised); border: 1px solid var(--steel-line);
  border-radius: 20px; padding: 6px 12px; cursor: pointer; font-size: 13px;
}
.kb-react.on { border-color: var(--accent); color: var(--accent); }

.scale-section { margin-bottom: 14px; }
.scale-section h4 {
  margin: 0 0 8px; font-size: 11px; text-transform: uppercase; letter-spacing: 1px;
  color: var(--chalk-dim); border-bottom: 1px solid var(--steel-line); padding-bottom: 4px;
}

.timer-panel {
  position: fixed; left: 2vw; bottom: 4vh; z-index: 120;
  background: rgba(28,28,30,0.95); border: 1px solid var(--steel-line);
  border-radius: 12px; padding: 16px 20px; min-width: 200px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
html[data-theme="claro"] .timer-panel { background: rgba(255,255,255,0.97); }
.timer-panel .t-time {
  font-family: var(--mono); font-size: 42px; font-weight: 900; color: var(--accent);
  text-align: center; letter-spacing: 1px;
}
.timer-panel .t-btns { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.receipt {
  border: 1px dashed var(--steel-line); border-radius: 8px; padding: 12px; margin: 8px 0;
  font-size: 13px; background: var(--surface-raised);
}
.badge.assinado { background: rgba(74,222,128,0.15); color: var(--green); }
.badge.pendente { background: rgba(245,193,90,0.15); color: var(--yellow); }


/* ghost buttons readable on light theme */
html[data-theme="claro"] .btn.ghost,
html[data-theme="claro"] .btn-xs.ghost {
  background: #fff !important;
  color: #1C1C1E !important;
  border: 1px solid #C8C6BC !important;
}
html[data-theme="claro"] .btn.secondary,
html[data-theme="claro"] .btn-xs.secondary {
  background: #E8E6DF !important;
  color: #1C1C1E !important;
}

/* CrossHero-like timer */
.xh-timer {
  position: fixed; inset: 0; z-index: 200;
  background: #0a0a0a; color: #fff;
  display: none; flex-direction: column; align-items: center; justify-content: center;
  font-family: var(--mono);
}
.xh-timer.show { display: flex; }
.xh-timer .xh-mode { font-size: 18px; letter-spacing: 4px; text-transform: uppercase; color: #888; margin-bottom: 12px; }
.xh-timer .xh-clock {
  font-size: min(22vw, 160px); font-weight: 900; line-height: 1;
  color: #fff; letter-spacing: 2px;
}
.xh-timer .xh-clock.warn { color: #F5C15A; }
.xh-timer .xh-clock.go { color: #4ADE80; }
.xh-timer .xh-clock.rest { color: #60A5FA; }
.xh-timer .xh-sub { font-size: 20px; color: #aaa; margin-top: 12px; }
.xh-timer .xh-controls { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; justify-content: center; }
.xh-timer .xh-setup {
  position: absolute; top: 16px; left: 16px; right: 16px;
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
}
.xh-timer select, .xh-timer input {
  background: #1a1a1a; color: #fff; border: 1px solid #333;
  border-radius: 8px; padding: 8px 12px; font-size: 14px;
}
