[hidden] { display: none !important; }
/* Forró do Rei — interface responsiva (a partir de 360 px)
   Identidade visual: amarelo, preto e branco; cores semânticas nos avisos. */
:root {
  --bg: #f6f6f6; --surface: #ffffff; --surface-2: #efefef; --ink: #171717; --ink-2: #595959; --line: #dedede; --link: #242424;
  --brand: #f5c400; --brand-ink: #111111; --accent: #f5c400; --accent-ink: #111111; --terra: #242424;
  --success: #1f7a4d; --success-bg: #e3f3ea; --warning: #8a5a00; --warning-bg: #fbefd2; --danger: #b42318; --danger-bg: #fde7e4;
  --info: #454545; --info-bg: #eeeeee; --neutral: #595959; --neutral-bg: #eeeeee;
  --radius: 12px; --radius-sm: 8px; --shadow: 0 1px 2px rgba(0,0,0,.04), 0 6px 20px rgba(0,0,0,.04);
  --font: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif; --display: var(--font);
  --side: 264px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121212; --surface: #1b1b1b; --surface-2: #252525; --ink: #f5f5f5; --ink-2: #bcbcbc; --line: #383838; --link: #f5c400;
    --brand: #f5c400; --brand-ink: #111111; --accent: #f5c400; --terra: #f5c400;
    --success: #6fd3a0; --success-bg: #173225; --warning: #f3c56b; --warning-bg: #3a2c10; --danger: #ff8c7f; --danger-bg: #3d1a16;
    --info: #dddddd; --info-bg: #292929; --neutral: #c5c5c5; --neutral-bg: #292929;
    --shadow: 0 1px 2px rgba(0,0,0,.4); color-scheme: dark;
  }
}
:root[data-theme="dark"] { --bg: #121212; --surface: #1b1b1b; --surface-2: #252525; --ink: #f5f5f5; --ink-2: #bcbcbc; --line: #383838; --link: #f5c400; --brand: #f5c400; --brand-ink: #111111; --terra: #f5c400; --info: #dddddd; --info-bg: #292929; --neutral: #c5c5c5; --neutral-bg: #292929; color-scheme: dark; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.5; color: var(--ink); background: var(--bg); }
a { color: var(--link); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h2 { font-family: var(--display); font-size: 1.35rem; font-weight: 700; letter-spacing: -.01em; }
h3 { font-size: 1.05rem; font-weight: 600; }
p { margin: 0 0 .8em; }
small, .muted { color: var(--ink-2); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
.ico { flex: none; }

/* ---------- estrutura */
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--side); background: #000000; color: #ffffff; display: flex; flex-direction: column; padding: 18px 12px; overflow-y: auto; z-index: 40; }
/* Logo centralizada, sem repetir o nome ao lado. */
.brand { display: flex; align-items: center; justify-content: center; color: inherit; text-decoration: none; padding: 6px 8px 22px; }
.brand-mark { width: 128px; flex: none; display: grid; place-items: center; }
.brand-logo { display: block; width: 100%; height: auto; object-fit: contain; }
.auth-brand .brand-mark { width: 156px; padding: 14px; border-radius: 12px; background: #000000; }
.role-switch { padding: 0 8px 12px; display: grid; gap: 4px; font-size: .8rem; opacity: .95; }
.role-switch select { background: rgba(255,255,255,.12); color: inherit; border: 1px solid rgba(255,255,255,.25); border-radius: 8px; padding: 8px; font: inherit; }
.role-switch option { color: #111; }
.role-pill { margin: 0 8px 12px; font-size: .8rem; background: rgba(255,255,255,.12); padding: 4px 10px; border-radius: 99px; width: fit-content; }
.nav-group { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; opacity: .65; padding: 14px 10px 4px; }
.nav-link { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; padding: 9px 10px; border-radius: 10px; font-weight: 500; font-size: .95rem; opacity: .88; width: 100%; }
.nav-link:hover { background: rgba(255,255,255,.08); opacity: 1; }
.nav-link.active { background: rgba(245,196,0,.12); color: #f5c400; opacity: 1; box-shadow: inset 3px 0 0 var(--accent); }
.as-link { background: none; border: 0; font: inherit; cursor: pointer; text-align: left; }
.sidebar-foot { margin-top: auto; border-top: 1px solid rgba(255,255,255,.15); padding-top: 10px; }
.shell { margin-left: var(--side); min-height: 100vh; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; padding: 12px 24px; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.page-title { font-family: var(--display); font-size: 1.35rem; font-weight: 700; margin: 0; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.bell .dot { position: absolute; top: -4px; right: -4px; background: var(--accent); color: var(--accent-ink); font-size: .7rem; font-weight: 700; border-radius: 99px; padding: 1px 6px; }
.avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-weight: 700; text-decoration: none; }
.main { padding: 22px 24px 40px; max-width: 1180px; width: 100%; }
.only-mobile { display: none; }
.bottombar { display: none; }
.scrim { display: none; }

@media (max-width: 900px) {
  .sidebar { transform: translateX(-102%); transition: transform .22s ease; width: min(86vw, 320px); box-shadow: 0 0 40px rgba(0,0,0,.25); }
  body.nav-open .sidebar { transform: none; }
  body.nav-open .scrim { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 30; }
  .shell { margin-left: 0; }
  .only-mobile { display: inline-grid; }
  .topbar { padding: 10px 16px; }
  .page-title { font-size: 1.15rem; }
  .main { padding: 16px 16px 96px; }
  .bottombar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; inset: auto 0 0 0; z-index: 25; background: #000000; border-top: 1px solid #262626; padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .bottombar a, .bottombar button { display: flex; flex-direction: column; align-items: center; gap: 2px; font: inherit; font-size: .7rem; color: #d4d4d4; text-decoration: none; background: none; border: 0; padding: 4px 0; min-height: 48px; justify-content: center; cursor: pointer; }
  .bottombar .active { color: var(--brand); font-weight: 600; }
  .bottombar span { max-width: 72px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

/* ---------- autenticação */
.auth-wrap { max-width: 420px; margin: 0 auto; padding: 48px 16px; }
.auth-brand { display: flex; align-items: center; justify-content: center; margin-bottom: 24px; }
.auth-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }

/* ---------- componentes */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); margin-bottom: 16px; min-width: 0; }
.card > h2:first-child, .card > h3:first-child { margin-top: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.card-head h2, .card-head h3 { margin: 0; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; text-decoration: none; color: inherit; }
a.stat:hover { border-color: var(--brand); }
.stat-label { font-size: .82rem; color: var(--ink-2); }
.stat-value { font-size: 1.45rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.stat-sub { font-size: .8rem; color: var(--ink-2); }
.hero { background: #111111; color: #ffffff; border-radius: calc(var(--radius) + 4px); padding: 20px; margin-bottom: 16px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--accent); }
.hero > * { position: relative; z-index: 1; }
.hero h2 { color: inherit; margin-bottom: 4px; }
.hero p { opacity: .9; margin: 0; }
.actions-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 16px; }
.action-tile { display: flex; align-items: center; gap: 10px; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); font-weight: 600; min-height: 56px; }
.action-tile .ico { color: var(--terra); }
.action-tile:hover { border-color: var(--brand); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 16px; border-radius: 11px; border: 1px solid transparent; background: var(--brand); color: var(--brand-ink); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { filter: brightness(1.08); }
.btn[disabled], .btn.is-busy { opacity: .6; pointer-events: none; }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-success { background: var(--success); color: #fff; }
.btn-sm { min-height: 34px; padding: 5px 11px; font-size: .88rem; border-radius: 9px; }
.btn-block { width: 100%; }
.inline { display: inline; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row-end { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; margin-top: 12px; }
.spread { display: flex; justify-content: space-between; gap: 10px; align-items: center; flex-wrap: wrap; }

.badge { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 99px; font-size: .78rem; font-weight: 600; white-space: nowrap; }
.badge-success { background: var(--success-bg); color: var(--success); }
.badge-warning { background: var(--warning-bg); color: var(--warning); }
.badge-danger { background: var(--danger-bg); color: var(--danger); }
.badge-info { background: var(--info-bg); color: var(--info); }
.badge-neutral { background: var(--neutral-bg); color: var(--neutral); }

.flash { padding: 12px 14px; border-radius: var(--radius-sm); margin-bottom: 14px; font-weight: 500; border: 1px solid; }
.flash-success { background: var(--success-bg); color: var(--success); border-color: color-mix(in srgb, var(--success) 30%, transparent); }
.flash-error { background: var(--danger-bg); color: var(--danger); border-color: color-mix(in srgb, var(--danger) 30%, transparent); }
.flash-info { background: var(--info-bg); color: var(--info); border-color: color-mix(in srgb, var(--info) 30%, transparent); }
.flash-warning { background: var(--warning-bg); color: var(--warning); border-color: color-mix(in srgb, var(--warning) 30%, transparent); }
.note { background: var(--surface-2); border-radius: var(--radius-sm); padding: 12px 14px; font-size: .92rem; color: var(--ink-2); margin-bottom: 12px; }

/* ---------- formulários */
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px 16px; }
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field label { font-size: .88rem; font-weight: 600; }
.req { color: var(--danger); }
.help { font-size: .8rem; color: var(--ink-2); }
input, select, textarea { font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; min-height: 44px; width: 100%; }
textarea { min-height: 80px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--ink); outline: 2px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 0; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; cursor: pointer; padding: 6px 0; }
.check input { width: 20px; height: 20px; min-height: 0; margin-top: 2px; flex: none; }
.money-input { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); padding-left: 12px; }
.money-input span { color: var(--ink-2); font-weight: 600; }
.money-input input { border: 0; outline: none; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-bottom: 14px; }
.filters .field { min-width: 150px; flex: 1 1 150px; }
.filters .btn { flex: none; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px; margin: 0 0 12px; }
legend { font-weight: 600; padding: 0 6px; }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 2px 14px; }

/* ---------- tabelas com adaptação para cartões */
.table-wrap { overflow-x: auto; border-radius: var(--radius-sm); }
table.table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.table th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2); font-weight: 600; padding: 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table a.rowlink { font-weight: 600; text-decoration: none; }
@media (max-width: 720px) {
  table.table.stack thead { display: none; }
  table.table.stack, .table.stack tbody, .table.stack tr, .table.stack td { display: block; width: 100%; }
  .table.stack tr { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 8px 12px; margin-bottom: 10px; background: var(--surface); }
  .table.stack td { border: 0; padding: 4px 0; display: flex; justify-content: space-between; gap: 12px; text-align: right; }
  .table.stack td::before { content: attr(data-label); font-weight: 600; color: var(--ink-2); text-align: left; font-size: .85rem; flex: none; }
  .table.stack td > .cell { text-align: right; min-width: 0; }
  .table.stack td.num { text-align: right; }
}
.pager { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 14px; flex-wrap: wrap; color: var(--ink-2); font-size: .9rem; }

/* ---------- agenda e aulas */
.day-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 12px; scrollbar-width: thin; }
.day-tab { flex: none; display: flex; flex-direction: column; align-items: center; min-width: 58px; padding: 8px 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: var(--ink); }
.day-tab b { font-size: 1.15rem; }
.day-tab small { font-size: .75rem; }
.day-tab.active { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.day-tab.active small { color: inherit; }
.session-list { display: grid; gap: 10px; }
.session-card { display: grid; grid-template-columns: 74px 1fr auto; gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; text-decoration: none; color: inherit; }
.session-card:hover { border-color: var(--brand); }
.session-card.is-cancelled { opacity: .65; }
.session-time { font-weight: 700; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.session-time small { display: block; font-weight: 500; font-size: .8rem; color: var(--ink-2); }
.session-title { font-weight: 600; }
.session-meta { font-size: .85rem; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 4px 12px; }
@media (max-width: 560px) { .session-card { grid-template-columns: 60px 1fr; } .session-card > :last-child { grid-column: 1 / -1; justify-self: start; } }
.week-grid { display: grid; grid-template-columns: repeat(7, minmax(130px, 1fr)); gap: 8px; overflow-x: auto; }
.week-col h4 { margin: 0 0 6px; font-size: .85rem; color: var(--ink-2); text-transform: uppercase; letter-spacing: .05em; }
.week-item { display: block; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 10px; padding: 8px; font-size: .84rem; margin-bottom: 8px; text-decoration: none; color: inherit; }
.week-item.is-cancelled { border-left-color: var(--danger); opacity: .7; }
.view-toggle { display: inline-flex; border: 1px solid var(--line); border-radius: 11px; overflow: hidden; }
.view-toggle a { padding: 8px 14px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .9rem; }
.view-toggle a.active { background: var(--brand); color: var(--brand-ink); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; font-size: .95rem; }
.kv dt { color: var(--ink-2); }
.kv dd { margin: 0; }

/* ---------- câmera */
.camera { position: relative; background: #000; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3/4; max-width: 420px; margin: 0 auto 12px; }
.camera video, .camera img, .camera canvas { width: 100%; height: 100%; object-fit: cover; display: block; }
.camera video { transform: scaleX(-1); }
.camera .guide { position: absolute; inset: 14% 18%; border: 3px dashed rgba(255,255,255,.6); border-radius: 50%; pointer-events: none; }

/* ---------- galeria */
.album-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.album-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; }
.album-card .cover { aspect-ratio: 4/3; background: var(--surface-2); display: grid; place-items: center; color: var(--ink-2); }
.album-card .cover img { width: 100%; height: 100%; object-fit: cover; }
.album-card .info { padding: 10px 12px; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.photo-grid figure { margin: 0; position: relative; }
.photo-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; display: block; cursor: zoom-in; background: var(--surface-2); }
.photo-grid figcaption { font-size: .8rem; color: var(--ink-2); padding-top: 4px; }
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.92); z-index: 90; display: none; align-items: center; justify-content: center; padding: 20px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 86vh; border-radius: 8px; }
.lightbox .lb-close { position: absolute; top: 14px; right: 14px; background: rgba(255,255,255,.15); color: #fff; border: 0; border-radius: 50%; width: 46px; height: 46px; cursor: pointer; }
.lightbox .lb-bar { position: absolute; bottom: 16px; left: 0; right: 0; display: flex; justify-content: center; gap: 10px; }
.upload-list { display: grid; gap: 6px; margin-top: 10px; }
.upload-item { display: flex; align-items: center; gap: 10px; font-size: .88rem; background: var(--surface-2); border-radius: 8px; padding: 6px 10px; }
.upload-item progress { flex: 1; height: 8px; }
.timeline { display: grid; gap: 18px; }
.timeline-month h3 { font-family: var(--display); font-size: 1.1rem; margin-bottom: 8px; }

.list { list-style: none; margin: 0; padding: 0; }
.list li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.list li:last-child { border-bottom: 0; }
.empty { text-align: center; padding: 30px 16px; color: var(--ink-2); display: grid; justify-items: center; gap: 6px; }
.empty strong { color: var(--ink); }
.progress-bar { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.progress-bar span { display: block; height: 100%; background: var(--success); }
.dialog { border: 0; border-radius: var(--radius); padding: 20px; max-width: 420px; width: calc(100% - 32px); background: var(--surface); color: var(--ink); box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.dialog::backdrop { background: rgba(0,0,0,.4); }
details.disclosure { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 14px; background: var(--surface); margin-bottom: 12px; }
details.disclosure summary { cursor: pointer; font-weight: 600; min-height: 28px; }
details.disclosure[open] summary { margin-bottom: 10px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .85rem; word-break: break-all; }
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 14px; overflow-x: auto; }
.tabs a { padding: 10px 12px; text-decoration: none; color: var(--ink-2); font-weight: 600; border-bottom: 3px solid transparent; white-space: nowrap; }
.tabs a.active { color: var(--ink); border-bottom-color: var(--brand); }
@media print { .sidebar, .topbar, .bottombar, .btn { display: none !important; } .shell { margin: 0; } }

/* dias fixos da matrícula */
.slot-group { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; background: var(--surface); }
.slot-title { margin-bottom: 6px; }
.slot-counter { font-weight: 600; margin: 0 0 8px; }
.slot-counter.ok { color: var(--success, #1f7a3a); }
label.check.is-off { opacity: .45; }

/* quadros dos colares */
.colar-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; max-width: 480px; }
.colar-card { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
.colar-img { display: block; width: 100%; padding: 0; border: 0; background: #111; cursor: zoom-in; aspect-ratio: 520/716; }
.colar-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.colar-empty { display: grid; place-items: center; cursor: default; background: repeating-linear-gradient(45deg, #1b1b1b 0 12px, #222 12px 24px); color: #f5c400; font-weight: 700; text-align: center; padding: 16px; }
.colar-card figcaption { padding: 12px 14px 14px; border-top: 4px solid var(--brand); }
.colar-card figcaption strong { display: block; font-size: 1.05rem; }
.colar-card figcaption p { margin: 6px 0 0; color: var(--ink-2); font-size: .9rem; line-height: 1.45; }
.colar-role { display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; background: #111; color: #f5c400; border-radius: 99px; padding: 3px 9px; margin-bottom: 6px; }
.colar-branco figcaption { border-top-color: #d9d9d9; } .colar-azul figcaption { border-top-color: #5aaee8; } .colar-roxo figcaption { border-top-color: #8a2be2; }
.colar-preto figcaption { border-top-color: #111; } .colar-prata figcaption { border-top-color: #a8a8a8; } .colar-dourado figcaption { border-top-color: #d4a017; }
.colar-mini { display: flex; gap: 12px; align-items: center; }
.colar-mini img { width: 56px; height: 76px; object-fit: cover; border-radius: 6px; }

.avatar-link { display: inline-flex; border-radius: 50%; text-decoration: none; }
.avatar-link img { border: 2px solid var(--brand); }
.colar-transparente figcaption { border-top-color: #f2e27a; }

/* ---------- telas de acesso (login, convite, recuperar senha) */
.auth-split { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); background: var(--bg); }
.auth-hero { position: relative; overflow: hidden; background: radial-gradient(120% 80% at 20% 0%, #2a2300 0%, #111 45%, #000 100%); color: #fff; display: flex; align-items: center; justify-content: center; padding: 48px 40px; }
.auth-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: #f5c400; }
.auth-hero-inner { position: relative; z-index: 1; width: 100%; max-width: 520px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.auth-logo { width: 220px; height: auto; filter: drop-shadow(0 8px 24px rgba(0,0,0,.5)); }
.auth-tag { margin: 18px 0 0; font-size: 1.6rem; font-weight: 700; color: #f5c400; letter-spacing: .01em; }
.auth-tag span { display: block; margin-top: 6px; font-size: 1rem; font-weight: 500; color: #d6d6d6; }
.auth-fan { position: relative; width: 100%; height: 250px; margin-top: 36px; }
.auth-fan img { position: absolute; left: calc(50% + (var(--i) - 2) * 46px); bottom: 0; width: 124px; height: auto; border-radius: 10px; box-shadow: 0 14px 30px rgba(0,0,0,.55); border: 2px solid #000;
  transform-origin: 50% 100%; transform: translateX(-50%) rotate(calc((var(--i) - 2) * 9deg)); transition: transform .3s ease; z-index: calc(10 - (var(--i) - 2) * (var(--i) - 2)); }
.auth-fan img:nth-child(3) { transform: translateX(-50%) translateY(-14px); }
.auth-hero:hover .auth-fan img { transform: translateX(-50%) rotate(calc((var(--i) - 2) * 11deg)) translateY(-4px); }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.auth-inner { width: 100%; max-width: 420px; }
.auth-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 32px 28px; box-shadow: 0 20px 50px rgba(0,0,0,.08); }
.auth-card h2 { font-size: 1.75rem; margin: 2px 0 6px; }
.auth-card form { margin-top: 18px; }
.auth-kicker { margin: 0; display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: #111; color: #f5c400; border-radius: 99px; padding: 4px 10px; }
.auth-card input { min-height: 48px; font-size: 1rem; }
.btn-lg { min-height: 52px; font-size: 1.05rem; }
.pass-wrap { position: relative; }
.pass-toggle { position: absolute; right: 8px; top: 31px; height: 36px; padding: 0 10px; border: 0; background: transparent; color: var(--ink-2); font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; border-radius: 8px; }
.pass-toggle:hover { background: var(--surface-2); color: var(--ink); }
.pass-wrap input { padding-right: 84px; }
.auth-link { font-size: .9rem; font-weight: 600; }
.auth-note { margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: .88rem; }
.auth-foot { text-align: center; color: var(--ink-2); font-size: .8rem; margin-top: 20px; }
@media (max-width: 860px) {
  .auth-split { grid-template-columns: 1fr; }
  .auth-hero { padding: 28px 20px 70px; }
  .auth-logo { width: 132px; }
  .auth-tag { font-size: 1.15rem; margin-top: 10px; }
  .auth-tag span { font-size: .88rem; }
  .auth-fan { height: 130px; margin-top: 16px; }
  .auth-fan img { width: 66px; border-radius: 6px; left: calc(50% + (var(--i) - 2) * 26px); }
  .auth-main { padding: 0 16px 32px; margin-top: -46px; position: relative; z-index: 2; align-items: flex-start; }
  .auth-card { padding: 24px 20px; }
}

/* bolsa: dia de aula e dia de apoio */
.day-pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin-top: 10px; }
.day-box { border: 2px solid var(--line); border-radius: 16px; padding: 14px 16px; background: var(--surface); }
.day-tag { display: inline-block; font-size: .75rem; font-weight: 800; letter-spacing: .06em; border-radius: 99px; padding: 4px 10px; }
.day-aula { background: #111; color: #f5c400; } .day-apoio { background: #f5c400; color: #111; }
.day-now { font-size: 1.1rem; font-weight: 700; margin: 10px 0 12px; line-height: 1.35; }
.day-more { margin-top: 6px; font-size: .88rem; } .day-more summary { cursor: pointer; color: var(--ink-2); }

/* equipe do dia */
.day-strip { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.day-chip { display: flex; flex-direction: column; align-items: center; min-width: 44px; padding: 6px 4px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); background: var(--surface); }
.day-chip span { font-size: .72rem; color: var(--ink-2); } .day-chip strong { font-size: 1rem; }
.day-chip.today { border-color: var(--brand); } .day-chip.active { background: #111; color: #f5c400; border-color: #111; } .day-chip.active span { color: #f5c400; }
.team-list { list-style: none; margin: 0; padding: 0; }
.team-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.team-row:first-child { border-top: 0; } .team-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }

/* pesquisa em tempo real */
.live-search { display: flex; align-items: center; gap: 10px; margin: 4px 0 10px; }
.live-search input { flex: 1; max-width: 420px; min-height: 42px; padding: 0 12px 0 38px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%23888' stroke-width='2'%3E%3Ccircle cx='8' cy='8' r='6'/%3E%3Cpath d='m13 13 4 4'/%3E%3C/svg%3E") no-repeat 12px center; font: inherit; color: var(--ink); }
form.filters.is-loading { opacity: .7; }

.makeup-item { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin-top: 10px; }
