/*
 * Pixel School — o painel da escola e a tela de entrada.
 *
 * Na família do Pixel Food, do Pixel Barber e do Tribus: cartão branco sobre o
 * fundo da casa, trilha funda de ícones, item ativo na cor de ação da escola
 * com letra branca. As telas escolhidas pelo Kayo estão no fim, em "a escola".
 *
 * A marca do Pixel School (o laranja da Pixel Tech) aparece só na entrada, onde
 * ainda não se sabe de que casa é a pessoa. Os tons --pw-* são os mesmos do
 * public/brand/theme.json, e o teste do tema confere (tests/theme.test.ts).
 *
 * Vermelho, verde e âmbar são estado: faltou, deu certo, esperando. Cheios,
 * com letra branca; nunca viram cor de escola. Nada tem cara de navegador:
 * confirmação, lista, calendário, sugestões, área de soltar a foto e olho da
 * senha são do produto (panel.js).
 */

@font-face { font-family: "Manrope"; src: url("fonts/manrope.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("fonts/figtree.woff2") format("woff2"); font-weight: 300 900; font-display: swap; }
@font-face { font-family: "Archivo Black"; src: url("fonts/archivo-black.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  /* A marca do Pixel School (theme.json): o laranja da Pixel Tech. */
  --pw-orange: #fc7a00;
  /* Letra branca no laranja, sempre (pedido do Kayo, 19/10/2026). */
  --pw-on-orange: #ffffff;
  --pw-ink: #1b2230;
  --pw-soft: #5d6676;
  --pw-subtle: #f2f3f5;
  --pw-card: #ffffff;

  /* Estado. */
  --ok: #2b8a3e;
  --bad: #e03131;
  --bad-deep: #c92a2a;
  --bill: #b86400;

  /* Neutros do painel. */
  --ink: #1d2739;
  --soft: #6d7789;
  --line: #e9edf2;
  --sunken: #f4f6f9;
  --card: #ffffff;

  /* Sem escola (entrada), a paleta Grafite. */
  --t-primary: #2a2f36; --t-deep: #171a1f; --t-action: #c55a00; --t-hi: #fcb045; --t-hi-ink: #2b1700;
  --t-bg: #ffffff; --t-sand: #eff0f2; --t-ink: #1b1f24; --t-soft: #5f6670; --t-line: #e3e6ea; --t-panel: #e3e5e9; --t-tint: #e6e8ec;
  --t-logo-bg: #fc7a00; --t-logo-fg: #1b1f24; --t-display: "Figtree", sans-serif; --t-dw: 800; --t-ds: normal;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
/* Sem barra de rolagem (escolha B do Kayo, 22/10/2026, no lugar da fina): onde
   a área tem mais para ver, uma seta pulsa na beira, centralizada, na cor de
   ação da casa (pedido do Kayo, 24/10/2026; era a cor do menu lateral). O
   panel.js põe as setas. A rodinha do mouse continua rolando. */
* { scrollbar-width: none; }
::-webkit-scrollbar { display: none; }
/* Em cima e embaixo, um marcador de altura zero grudado na beira da área
   (sticky); de lado, um de largura zero. A seta fica por cima do conteúdo. */
.scroll-more { position: sticky; z-index: 6; display: block; flex: none; height: 0; pointer-events: none; }
.scroll-more.up { top: 0; }
.scroll-more.down { bottom: 0; }
.scroll-more.left, .scroll-more.right { width: 0; height: auto; align-self: stretch; }
.scroll-more.left { left: 0; }
.scroll-more.right { right: 0; }
.scroll-more > button.scroll-arrow, .scroll-more > button.scroll-arrow:hover {
  position: absolute; display: grid; place-items: center; padding: 0; border: 0; border-radius: 0;
  background: transparent; color: var(--t-action); cursor: pointer; pointer-events: auto; transition: opacity .2s ease;
}
.scroll-more.up > button.scroll-arrow, .scroll-more.down > button.scroll-arrow { left: 50%; width: 34px; height: 24px; margin-left: -17px; }
.scroll-more.up > button.scroll-arrow { top: 2px; animation: scroll-up 1.4s ease-in-out infinite; }
.scroll-more.down > button.scroll-arrow { bottom: 2px; animation: scroll-down 1.4s ease-in-out infinite; }
.scroll-more.left > button.scroll-arrow, .scroll-more.right > button.scroll-arrow { top: 50%; width: 24px; height: 34px; margin-top: -17px; }
.scroll-more.left > button.scroll-arrow { left: 2px; animation: scroll-left 1.4s ease-in-out infinite; }
.scroll-more.right > button.scroll-arrow { right: 2px; animation: scroll-right 1.4s ease-in-out infinite; }
/* No celular quem rola é a página inteira: as setas dela ficam presas na tela. */
.scroll-page { position: fixed; left: 50%; z-index: 30; display: grid; place-items: center; width: 34px; height: 24px; margin-left: -17px; padding: 0; border: 0; background: transparent; color: var(--t-action); cursor: pointer; transition: opacity .2s ease; }
.scroll-page.up { top: 6px; animation: scroll-up 1.4s ease-in-out infinite; }
.scroll-page.down { bottom: 6px; animation: scroll-down 1.4s ease-in-out infinite; }
.scroll-page.is-off { opacity: 0; pointer-events: none; }
/* A agenda do celular rola de lado: as setas de lado ficam presas na tela, nas
   beiras da grade, no meio do pedaço dela que aparece (o panel.js mede). */
.scroll-side { position: fixed; z-index: 30; display: grid; place-items: center; width: 24px; height: 34px; padding: 0; border: 0; background: transparent; color: var(--t-action); cursor: pointer; transition: opacity .2s ease; }
.scroll-side.left { animation: scroll-left 1.4s ease-in-out infinite; }
.scroll-side.right { animation: scroll-right 1.4s ease-in-out infinite; }
.scroll-side.is-off { opacity: 0; pointer-events: none; }
.scroll-arrow svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.scroll-more.is-off > button.scroll-arrow { opacity: 0; pointer-events: none; }
/* Em cima de qualquer fundo escuro ou degradê (selo, recado, a faixa do menu) ou
   da própria cor de ação (o botão aceso), branca (o panel.js decide). */
.scroll-more > button.scroll-arrow.on-dark, .scroll-page.on-dark, .scroll-side.on-dark { color: #fff; }
@keyframes scroll-up { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes scroll-down { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }
@keyframes scroll-left { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(-4px); } }
@keyframes scroll-right { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(4px); } }
@media (prefers-reduced-motion: reduce) { .scroll-more > button.scroll-arrow, .scroll-page.up, .scroll-page.down, .scroll-side { animation: none; } }
html, body { margin: 0; }
body { font-family: "Manrope", "Segoe UI", system-ui, sans-serif; color: var(--ink); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
h1, h2, h3, p { margin: 0; }
/* Nada sublinhado (20/10/2026): a linha inteira é o link e acende ao passar
   o mouse; link solto no meio do texto vai na cor do tema. */
a { color: inherit; text-decoration: none; }
p a, .kv b a { color: var(--t-primary); font-weight: 800; }
p a:hover, .kv b a:hover { color: var(--t-deep); }
button { font: inherit; color: inherit; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
button:focus-visible, input:focus-visible, textarea:focus-visible, a:focus-visible, select:focus-visible { outline: 3px solid var(--t-action); outline-offset: 2px; }
svg.i { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.disp { font-family: var(--t-display); font-weight: var(--t-dw); font-style: var(--t-ds); }

/* Aviso cheio, letra branca. */
.notice { border-radius: 12px; padding: 11px 14px; font-size: 13.5px; font-weight: 700; color: #fff; }
.notice-ok { background: var(--ok); }
.notice-error { background: var(--bad); }

/* ------------------------------------------------------------ entrada */

.e-page { min-height: 100vh; min-height: 100dvh; background: #e8eaed; display: grid; place-items: center; padding: 24px 16px; }
/* Com a faixa de instalar aberta, o cartão fica no espaço acima dela, e a
   página não ganha rolagem por causa da faixa (--ins-h, medido pelo install.js). */
body.e-page.ins-on { padding-bottom: var(--ins-h, 24px); }
/* Pelo mesmo motivo do .p-card: o fundo branco é do lado do formulário, e não da
   moldura, para não vazar no canto da arte escura. */
.e-frame { width: min(980px, 100%); min-height: 600px; background: transparent; border-radius: 30px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); overflow: hidden; box-shadow: 0 1px 2px rgb(22 32 50 / 5%), 0 18px 50px rgb(22 32 50 / 12%); }
.e-side { padding: 44px 48px; display: flex; flex-direction: column; gap: 16px; background: var(--pw-card); }
.e-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 16px; color: var(--pw-ink); }
.e-mark { width: 38px; height: 38px; border-radius: 11px; background: var(--pw-orange); display: grid; place-items: center; }
.e-mark svg { width: 24px; height: 24px; fill: #fff; }
.e-title { font-size: 30px; line-height: 1.12; font-weight: 500; color: var(--pw-ink); margin-top: 28px; text-wrap: balance; }
.e-title b { font-weight: 800; }
.e-lead { color: var(--pw-soft); font-size: 15px; line-height: 1.5; }
.e-form { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.e-button { display: block; width: 100%; text-align: center; text-decoration: none; border: 0; border-radius: 14px; padding: 14px 18px; font-weight: 800; font-size: 15px; background: var(--pw-orange); color: var(--pw-on-orange); margin-top: 4px; }
.e-button.e-flat { background: var(--pw-subtle); color: var(--pw-ink); }
.e-side form + form, .e-side a + form { margin-top: 0; }
.e-foot { margin-top: auto; padding-top: 24px; font-size: 12.5px; color: var(--pw-soft); line-height: 1.6; }
.e-foot b { color: var(--pw-ink); }
.e-art { position: relative; background: #1b1f24; overflow: hidden; }
.e-p { position: absolute; width: 520px; height: 470px; right: -120px; bottom: -80px; fill: var(--pw-orange); opacity: .95; }
.e-card { position: absolute; background: #fff; border-radius: 18px; padding: 14px 16px; width: 250px; box-shadow: 0 18px 40px rgb(0 0 0 / .3); display: flex; flex-direction: column; gap: 4px; }
.e-card small { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #c55a00; }
.e-card b { font-size: 14.5px; line-height: 1.35; color: var(--pw-ink); }
.e-card-1 { left: 36px; top: 54px; }
.e-card-2 { left: 70px; top: 170px; }
.e-card-3 { left: 30px; top: 286px; }
@media (max-width: 820px) {
  .e-frame { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .e-art { display: none; }
  .e-side { padding: 32px 24px; }
}
/* Celular baixo: o cartão aperta para caber inteiro, com a faixa embaixo, sem rolar. */
@media (max-width: 820px) and (max-height: 760px) {
  .e-page { padding-block: 14px; }
  .e-side { padding: 22px 20px; gap: 12px; }
  .e-title { font-size: 25px; margin-top: 6px; }
  .e-foot { padding-top: 10px; }
}

/* O rótulo mora dentro do campo e sobe quando se digita. */
.field-float { position: relative; }
.field-float input { width: 100%; height: 58px; border: 1.5px solid #dfe3e9; border-radius: 14px; padding: 22px 16px 6px; font-size: 15.5px; background: #fff; outline: 0; }
.field-float input:focus { border-color: var(--pw-orange); }
.field-float label { position: absolute; left: 17px; top: 19px; font-size: 15px; color: var(--pw-soft); pointer-events: none; transition: top .12s ease, font-size .12s ease; }
.field-float input:focus + label, .field-float input:not(:placeholder-shown) + label { top: 8px; font-size: 11.5px; font-weight: 700; }
.field-float .eye { position: absolute; right: 8px; top: 9px; width: 40px; height: 40px; border: 0; border-radius: 10px; background: transparent; color: var(--pw-soft); display: grid; place-items: center; }
.field-float input[type="password"]::-ms-reveal { display: none; }
/* A senha na gaveta da Equipe: o mostrar e esconder dentro do campo (DEC-045). */
.pass-wrap { position: relative; display: block; }
.pass-wrap input { width: 100%; padding-right: 50px; }
.pass-wrap input::-ms-reveal { display: none; }
.pass-wrap .eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border: 0; border-radius: 10px; background: transparent; color: var(--soft); display: grid; place-items: center; cursor: pointer; }
.pass-wrap .eye svg.i { width: 18px; height: 18px; }
a.p-user { color: inherit; text-decoration: none; border-radius: 12px; padding: 4px 6px; margin-right: -6px; }
a.p-user:hover { background: var(--sunken); }
.field-hint { font-size: 12.5px; color: var(--soft); }
.field-error { font-size: 12.5px; color: var(--bad); font-weight: 700; }

/* ------------------------------------------------------------- painel */

.p-page { background: var(--t-panel); min-height: 100vh; }
.p { padding: 14px; height: 100vh; display: flex; }
/* O cartão não pinta fundo: cada parte pinta o seu. Branco atrás da trilha escura
   vazava no canto arredondado como um fio claro (visto no programa de mesa). */
.p-card { flex: 1; min-width: 0; background: transparent; border-radius: 26px; display: flex; overflow: hidden; position: relative; box-shadow: 0 1px 2px rgb(22 32 50 / 5%), 0 10px 30px rgb(22 32 50 / 7%); }
.p-rail { width: 92px; background: var(--t-deep); color: rgb(255 255 255 / .74); display: flex; flex-direction: column; align-items: center; padding: 16px 0; gap: 3px; flex: none; overflow-y: auto; }
.logo { width: 48px; height: 48px; border-radius: 50%; background: var(--t-logo-bg); color: var(--t-logo-fg); display: grid; place-items: center; flex: none; overflow: hidden; }
.logo svg { width: 58%; height: 58%; fill: currentColor; }
.logo b { font: var(--t-ds) var(--t-dw) 16px/1 var(--t-display); }
.logo.has-img { background: #fff; }
.logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.p-rail > .logo { margin-bottom: 12px; box-shadow: 0 0 0 3px rgb(255 255 255 / .14); }
.p-nav { border: 0; background: transparent; color: inherit; text-decoration: none; display: flex; flex-direction: column; align-items: center; gap: 4px; font: 700 10.5px "Manrope", sans-serif; padding: 9px 2px; width: 76px; border-radius: 15px; position: relative; flex: none; text-align: center; }
.p-nav:hover { color: #fff; background: rgb(255 255 255 / .08); }
.p-nav.on { background: var(--t-action); color: #fff; }
/* No item selecionado o aviso inverte: bola branca, número na cor da casa. */
.p-nav.on .count { background: #fff; color: var(--t-action); }
.p-nav .count { position: absolute; top: 4px; right: 10px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--bad); color: #fff; font: 800 10.5px/18px "Manrope", sans-serif; padding: 0 5px; }
.p-rail .spacer { flex: 1; min-height: 8px; }
.p-out { margin: 0; }
.p-made { display: flex; flex-direction: column; align-items: center; gap: 4px; font: 700 9px "Manrope", sans-serif; color: rgb(255 255 255 / .55); letter-spacing: .04em; margin-top: 6px; }
.p-made svg { width: 18px; height: 18px; fill: var(--pw-orange); }
/* min-height: 0: no celular a moldura vira coluna, e sem ele o miolo crescia
   além da tela e era cortado, sem rolar (o que passava da altura sumia). */
.p-main { flex: 1; display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--card); }
/* A aba no meio da borda da trilha, na cor do próprio menu, como se saísse
   dele (opção A, escolhida pelo Kayo): recolhe o menu para só os ícones e
   expande de volta. Tudo corre junto e devagar, sem pulo: a faixa estreita, os
   nomes somem antes (e voltam depois, na volta), a logo encolhe e a aba anda
   com a borda. Com mouse, a aba só aparece com ele em cima do menu ou dela;
   em tela de toque (o tablet do balcão) não há "em cima", e ela fica sempre. */
.p-rail-toggle { position: absolute; top: 50%; left: 92px; z-index: 5; transform: translateY(-50%); width: 14px; height: 44px; padding: 0; border: 0; border-radius: 0 9px 9px 0; background: var(--t-deep); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: left .32s cubic-bezier(.4, 0, .2, 1), transform .2s ease, opacity .2s ease, background-color .15s; }
.p-rail-toggle:hover { background: var(--t-primary); }
.p-rail-toggle svg.i { width: 14px; height: 14px; stroke-width: 2.6; transform: rotate(-90deg); }
@media (hover: hover) {
  .p-rail-toggle { opacity: 0; transform: translate(-6px, -50%); }
  .p-rail:hover ~ .p-rail-toggle, .p-rail-toggle:hover, .p-rail-toggle:focus-visible { opacity: 1; transform: translateY(-50%); }
}
.p-rail, .p-nav, .p-rail > .logo, .p-rail-toggle svg.i, .p-nav .count { transition: width .32s cubic-bezier(.4, 0, .2, 1), height .32s cubic-bezier(.4, 0, .2, 1), gap .32s cubic-bezier(.4, 0, .2, 1), left .32s cubic-bezier(.4, 0, .2, 1), right .32s cubic-bezier(.4, 0, .2, 1), transform .32s cubic-bezier(.4, 0, .2, 1), background-color .15s; }
/* O nome se corta dentro dele mesmo, e não o item inteiro: a bola do aviso
   passa da quina arredondada do item e não pode sair cortada. */
.p-nav .lbl, .p-made .lbl { display: block; max-width: 100%; max-height: 16px; overflow: hidden; white-space: nowrap; transition: opacity .2s ease .14s, max-height .32s cubic-bezier(.4, 0, .2, 1); }
@media (min-width: 861px) {
  .p-rail > .scroll-more { display: none; }
  .rail-closed .p-rail { width: 64px; }
  .rail-closed .p-nav { width: 48px; gap: 0; }
  .rail-closed .p-nav .lbl, .rail-closed .p-made .lbl { opacity: 0; max-height: 0; transition: opacity .12s ease, max-height .32s cubic-bezier(.4, 0, .2, 1); }
  .rail-closed .p-nav .count { right: 1px; top: 1px; }
  .rail-closed .p-rail > .logo { width: 40px; height: 40px; }
  .rail-closed .p-rail-toggle { left: 64px; }
  .rail-closed .p-rail-toggle svg.i { transform: rotate(90deg); }
}
.p-band { background: var(--bill); color: #fff; font-weight: 700; font-size: 13.5px; padding: 10px 22px; }
.p-band a { background: #fff; color: var(--bill); font-weight: 800; border-radius: 8px; padding: 3px 10px; margin-left: 6px; white-space: nowrap; }
.p-head { display: flex; align-items: center; gap: 18px; padding: 16px 22px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.p-head h1 { font-size: 21px; font-weight: 800; }
.p-head p { font-size: 12.5px; color: var(--soft); margin-top: 2px; }
.p-user { margin-left: auto; display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; }
.p-user small { display: block; font-weight: 500; color: var(--soft); font-size: 11.5px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--t-deep); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 12.5px; flex: none; }
.p-body { flex: 1; min-height: 0; overflow-y: auto; position: relative; }
.p-body > .notice { margin: 14px 22px 0; }
.p-pad { padding: 16px 22px 26px; display: flex; flex-direction: column; gap: 14px; }
.p-btn { border: 0; border-radius: 10px; padding: 8px 12px; font: 800 12.5px "Manrope", sans-serif; background: var(--t-primary); color: #fff; white-space: nowrap; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.p-btn svg.i { width: 16px; height: 16px; }
.p-btn.ghost { background: var(--sunken); color: var(--ink); }
.p-btn.big { padding: 11px 16px; font-size: 13.5px; border-radius: 12px; }
.p-btn.danger { background: var(--bad); color: #fff; }
.p-btn.danger-text { color: var(--bad-deep); }
.p-btn:disabled { opacity: .6; cursor: default; }
.icon-btn { width: 34px; height: 34px; border-radius: 10px; border: 0; background: var(--sunken); color: var(--ink); display: inline-grid; place-items: center; text-decoration: none; flex: none; }
.icon-btn svg.i { width: 17px; height: 17px; }
.p-title { font-size: 14px; font-weight: 800; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.p-title small { font-size: 11.5px; font-weight: 600; color: var(--soft); }
.p-soft { color: var(--soft); font-size: 12.5px; }

.p-empty { background: #fff; border: 1px dashed #d8dee6; border-radius: 16px; padding: 16px; text-align: center; font-size: 13px; color: var(--soft); font-weight: 600; }
.p-empty a { font-weight: 800; }
.pill { display: inline-block; font-size: 10.5px; font-weight: 800; border-radius: 6px; padding: 2px 7px; background: var(--t-primary); color: #fff; vertical-align: 2px; margin-left: 4px; }
.pill.soft { background: var(--sunken); color: var(--soft); }
.pill.yes { background: var(--ok); color: #fff; }
.pill.no { background: var(--sunken); color: var(--soft); }

.bar { height: 6px; border-radius: 99px; background: #eef1f5; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 99px; background: var(--t-primary); }
.bar i.hi { background: var(--t-action); }

.p-box .q { background: var(--sunken); }

/* Formulários */
.p-form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label, .field-label-static { font-size: 12.5px; font-weight: 800; color: var(--ink); }
.field input, .field textarea, .field select, .p-inline input, .p-inline select, .copy-line input, .p-search input {
  width: 100%; border: 1.5px solid #dfe3e9; border-radius: 12px; padding: 11px 13px; font-size: 14.5px; background: #fff; outline: 0;
}
.field input:focus, .field textarea:focus, .p-inline input:focus, .p-search input:focus { border-color: var(--t-primary); }
.field textarea { resize: vertical; min-height: 80px; line-height: 1.45; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.field-row.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.form-actions.sticky { position: sticky; bottom: 0; background: #fff; padding: 12px 0; border-top: 1px solid var(--line); }
.p-inline { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; background: var(--sunken); border-radius: 16px; padding: 10px; margin: 0; }
.p-inline input, .p-inline select { flex: 1 1 160px; width: auto; padding: 9px 12px; font-size: 13.5px; }
.p-search { margin: 0; }
.p-search label { display: flex; align-items: center; gap: 8px; max-width: 420px; border: 1.5px solid #dfe3e9; border-radius: 12px; padding: 0 12px; background: #fff; color: var(--soft); }
/* A lupa e o texto numa caixa só: o campo não tem fundo nem borda próprios
   (com o fundo dele, fazia uma segunda caixa depois da lupa). */
.p-search input { flex: 1; min-width: 0; border: 0; padding: 10px 0; background: transparent; color: var(--ink); }
.p-search input::-webkit-search-cancel-button { display: none; }
.check-row { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; align-items: start; position: relative; font-size: 13px; color: var(--soft); cursor: pointer; }
.check-row b { display: block; color: var(--ink); font-size: 13.5px; }
.check-row input { position: absolute; left: 0; top: 0; width: 24px; height: 24px; opacity: 0; margin: 0; cursor: pointer; }
.check-row i { width: 24px; height: 24px; border-radius: 7px; border: 2px solid #d5dbe4; display: grid; place-items: center; color: #fff; }
.check-row i svg { width: 15px; height: 15px; stroke-width: 3; opacity: 0; }
.check-row input:checked + i { background: var(--t-primary); border-color: var(--t-primary); }
.check-row input:checked + i svg { opacity: 1; }
.check-row input:focus-visible + i { outline: 3px solid var(--t-action); outline-offset: 2px; }
.check-row.slim { align-items: center; margin-top: 4px; }
.p-danger-zone { display: flex; align-items: center; justify-content: space-between; gap: 14px; border: 1px solid #ffd8d8; background: #fff8f8; border-radius: 16px; padding: 14px 16px; margin: 6px 0 0; }
.p-danger-zone.flat { margin: 0; }
.p-danger-zone b { display: block; font-size: 13.5px; }
.p-danger-zone span { font-size: 12.5px; color: var(--soft); }
.p-box { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }

.copy-line { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.copy-line input { flex: 1 1 260px; width: auto; background: var(--sunken); font-variant-numeric: tabular-nums; }

/* Área de soltar a foto: o campo de arquivo de verdade fica por cima,
   transparente, e é ele que o formulário envia. */
.drop { position: relative; display: flex; align-items: center; gap: 14px; border: 2px dashed #d5dbe4; border-radius: 16px; padding: 14px; background: #fafbfc; cursor: pointer; min-height: 86px; }
.drop.over { border-color: var(--t-primary); background: #f3f6f9; }
.drop input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.drop-current { width: 80px; height: 80px; border-radius: 12px; object-fit: cover; flex: none; }
.drop-current.round { border-radius: 50%; width: 64px; height: 64px; }
.drop-current.wide { width: 160px; height: 90px; }
.drop-text { display: flex; flex-direction: column; gap: 3px; font-size: 12.5px; color: var(--soft); }
.drop-text b { color: var(--ink); font-size: 14px; }
.drop-text svg.i { color: var(--t-primary); }
.drop.small { min-height: 72px; }

/* Escolher a cara da casa */
.picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.pick { position: relative; cursor: pointer; }
.pick input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pick-card { display: flex; flex-direction: column; gap: 8px; border: 2px solid var(--line); border-radius: 16px; padding: 12px; height: 100%; background: #fff; }
.pick input:checked + .pick-card { border-color: var(--t-action); box-shadow: 0 0 0 2px var(--t-action) inset; }
.pick input:focus-visible + .pick-card { outline: 3px solid var(--t-action); outline-offset: 2px; }
.pick-card b { font-size: 13px; }
.swatches { display: flex; gap: 4px; }
.swatches i { width: 26px; height: 26px; border-radius: 8px; display: block; box-shadow: inset 0 0 0 1px rgb(0 0 0 / .06); }
.pick-button { color: #fff; font-weight: 800; font-size: 12px; border-radius: 9px; padding: 7px 10px; text-align: center; }
.font-sample { font-size: 19px; line-height: 1.1; color: var(--ink); min-height: 42px; display: flex; align-items: center; }
.pick.small .pick-card { align-items: center; text-align: center; }
.picks:has(.pick.small) { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }

/* Lista que substitui a do <select> (panel.js). */
.sel { position: relative; }
.sel-button { width: 100%; text-align: left; border: 1.5px solid #dfe3e9; border-radius: 12px; padding: 11px 38px 11px 13px; font-size: 14.5px; background: #fff; position: relative; min-height: 46px; }
.p-inline .sel { flex: 0 1 150px; }
.p-inline .sel-button { padding: 9px 34px 9px 12px; font-size: 13.5px; min-height: 0; }
.sel-button::after { content: ""; position: absolute; right: 14px; top: 50%; width: 8px; height: 8px; margin-top: -6px; border-right: 2px solid var(--soft); border-bottom: 2px solid var(--soft); transform: rotate(45deg); }
/* As caixas que abrem por cima (lista, sugestões, calendário) ficam em 200: acima
   da caixa de confirmação (100), abaixo da dica (300). Em 90, abriam atrás. */
.sel-list { position: fixed; z-index: 200; background: #fff; border: 1px solid #dfe3e9; border-radius: 12px; box-shadow: 0 14px 34px rgb(20 26 36 / .18); padding: 5px; max-height: 280px; overflow-y: auto; }
.sel-list button { display: block; width: 100%; text-align: left; border: 0; background: none; border-radius: 8px; padding: 9px 11px; font-size: 14px; }
.sel-list button:hover, .sel-list button.active { background: var(--sunken); }
.sel-list button[aria-selected="true"] { font-weight: 800; color: var(--t-primary); }
.sug-list { position: fixed; z-index: 200; background: #fff; border: 1px solid #dfe3e9; border-radius: 12px; box-shadow: 0 14px 34px rgb(20 26 36 / .18); padding: 5px; max-height: 240px; overflow-y: auto; }
.sug-list button { display: block; width: 100%; text-align: left; border: 0; background: none; border-radius: 8px; padding: 9px 11px; font-size: 14px; }
.sug-list button:hover, .sug-list button.active { background: var(--sunken); }

/* Confirmação do produto (nunca o confirm do navegador). */
.modal-bg { position: fixed; inset: 0; z-index: 100; background: rgb(20 26 36 / .45); display: grid; place-items: center; padding: 16px; }
.modal { background: #fff; border-radius: 20px; padding: 22px; max-width: 420px; width: 100%; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 20px 50px rgb(0 0 0 / .25); }
.modal p { font-size: 15px; line-height: 1.5; font-weight: 600; }
.modal div { display: flex; gap: 10px; justify-content: flex-end; }

/* ---------------------------------------------------- peças da escola */

.js [data-noscript-only] { display: none; }
.p-head-title { min-width: 0; }
.p-btn.act { background: var(--t-action); color: #fff; }
.p-btn.big.act { padding: 12px 18px; }
.dn { display: flex; gap: 4px; align-items: center; }
.ib { width: 34px; height: 34px; border-radius: 10px; background: var(--sunken); display: grid; place-items: center; text-decoration: none; color: var(--ink); }
.ib svg.i { width: 16px; height: 16px; }

/* O dia da agenda (opção B): as setas em volta do dia escrito, num grupo só. */
.day-nav { display: flex; align-items: center; margin-left: 4px; height: 34px; border-radius: 10px; background: var(--sunken); box-shadow: inset 0 0 0 1.5px var(--t-primary); }

.day-pick { margin: 0; position: relative; display: flex; align-items: center; min-width: 0; }
.day-pick::before, .day-pick::after { content: ""; width: 1px; height: 20px; background: var(--t-line); flex: none; }

/* O título empurra o resto para a direita: o dia, o botão e quem está logado. */
.p-head-title { margin-right: auto; }
.p-head .p-user { margin-left: 4px; }

/* Os círculos das pessoas. */
.av { width: 34px; height: 34px; border-radius: 50%; display: inline-grid; place-items: center; color: #fff; font: 800 13px "Manrope", sans-serif; flex: none; overflow: hidden; background: var(--t-primary); }

.av.big { width: 52px; height: 52px; font-size: 19px; }
.av.has-img { background: var(--sunken); }
.av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ps { display: flex; align-items: center; gap: 7px; font: 700 12.5px "Manrope", sans-serif; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Selos. Estado cheio, com letra branca; os da casa na cor dela. */
.pill.new { background: var(--t-action); color: #fff; }
.pill.wait { background: var(--bill); color: #fff; }
.pill.paid, .pill.ok, .pill.done { background: var(--ok); color: #fff; }
.pill.bad { background: var(--bad); color: #fff; }

.pill.hi { background: var(--t-hi); color: var(--t-hi-ink); }

/* Os sinais (opção A, 19/10/2026): ícone pequeno no lugar do selo colorido, com
   a dica do painel. Acima do link esticado da linha, para a dica aparecer. */
.mk { display: inline-flex; align-items: center; gap: 2px; margin-left: 3px; vertical-align: -2px; color: var(--soft); position: relative; z-index: 1; }
.mk svg.i { width: 15px; height: 15px; stroke-width: 2; }
.mk b { font-size: 12px; font-weight: 800; }
.mk.ok { color: var(--ok); }
.mk.bad { color: var(--bad); }
.mk.wait { color: var(--bill); }
.mk.plan { color: var(--t-primary); }

/* A dica: a do painel, e não o balão do navegador. */
.p-tip { position: fixed; z-index: 300; padding: 6px 10px; border-radius: 8px; background: var(--t-deep); color: #fff; font: 700 12px "Manrope", sans-serif; white-space: nowrap; pointer-events: none; box-shadow: 0 8px 22px rgb(20 26 36 / .22); opacity: 0; transform: translateY(3px); transition: opacity .11s ease, transform .11s ease; }
.p-tip[data-open] { opacity: 1; transform: none; }
.p-tip[hidden] { display: none; }

.big { font-size: 25px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.1; }
.big small { font-size: 12px; font-weight: 600; color: var(--soft); display: block; margin-top: 2px; }
.kv { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; font-weight: 600; color: var(--soft); }
.kv b { color: var(--ink); font-variant-numeric: tabular-nums; text-align: right; }

.shift.hint { margin-left: auto; }

/* A Agenda (escolha 2 B, 27/10/2026): a semana em grade, uma coluna por dia e
   uma linha de 58 px por hora (HOUR_PX em panel/agenda.ts). O compromisso fica
   na hora em que começa, com a altura da duração; os que se cruzam dividem a
   largura. A visita da família vem na cor de ação. */
.week { display: grid; grid-template-columns: 52px repeat(var(--days, 6), minmax(0, 1fr)); background: #fff; border-radius: 16px; padding: 10px; }
.week .hd { display: block; height: 58px; font: 800 11px "Manrope", sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--soft); text-align: center; padding: 6px 0 10px; }
.week .hd b { display: block; font-size: 18px; line-height: 1.4; color: var(--ink); letter-spacing: 0; }
.week .today .hd b { color: #fff; background: var(--t-action); border-radius: 10px; width: 34px; margin: 2px auto 0; }
.wk-hours { background: #fff; }
.wk-hours .hr { display: block; height: 58px; font-size: 11.5px; font-weight: 700; color: var(--soft); text-align: right; padding: 3px 8px 0 0; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.wk-day { min-width: 0; }
.wk-col { position: relative; }
.wk-col .cell { display: block; height: 58px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); cursor: pointer; }
.wk-col .cell:hover { background: var(--sunken); }
.wk-col .cell.drop-over { background: var(--t-tint); }
.ev { position: absolute; z-index: 1; display: block; background: var(--t-tint); border-left: 3px solid var(--t-primary); border-radius: 8px; padding: 4px 6px; font-size: 11.5px; font-weight: 700; line-height: 1.3; color: var(--t-deep); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ev small { display: block; font-size: 11px; font-weight: 600; color: var(--soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev:hover { box-shadow: inset 0 0 0 1.5px var(--t-primary); }
.ev.act { background: var(--t-action); border-left-color: var(--t-action); color: #fff; }
.ev.act small { color: #fff; opacity: .9; }
.ev.act:hover { box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / .6); }
.ev.done { opacity: .55; }
.ev svg.i { width: 12px; height: 12px; vertical-align: -2px; margin-right: 3px; }
.ev[draggable="true"] { cursor: grab; }
.ev.dragging { opacity: .45; }
.wk-empty { text-align: center; padding-top: 12px; }

/* Formulários */
.p-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.p-col-stack { display: flex; flex-direction: column; gap: 16px; min-width: 0; }

.p-box > h2.p-title + .p-title { margin-top: 8px; }

.check-row span { font-size: 12.5px; }

.out-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0; font-size: 13px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.out-row form { margin: 0; }
.p-inline .prefix { font-size: 13px; font-weight: 700; color: var(--soft); white-space: nowrap; }

.lines { display: flex; flex-direction: column; }

/* O calendário do produto, no lugar do do navegador (panel.js). */
.date-wrap { position: relative; }
.date-wrap input { padding-right: 42px; }
.date-btn { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border: 0; border-radius: 9px; background: transparent; color: var(--soft); display: grid; place-items: center; }
.date-btn svg.i { width: 18px; height: 18px; }
.cal-pop { position: fixed; z-index: 200; width: 292px; background: #fff; border: 1px solid #dfe3e9; border-radius: 16px; box-shadow: 0 14px 34px rgb(20 26 36 / .18); padding: 10px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; padding: 2px 2px 8px; }
.cal-head b { font-size: 14px; font-weight: 800; }
.cal-head button { width: 32px; height: 32px; border: 0; border-radius: 9px; background: var(--sunken); display: grid; place-items: center; }
.cal-head svg.i { width: 16px; height: 16px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; }
.cal-grid span { font-size: 10.5px; font-weight: 800; color: var(--soft); text-align: center; padding: 4px 0; }
.cal-grid button { height: 36px; border: 0; border-radius: 9px; background: none; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.cal-grid button:hover { background: var(--sunken); }
.cal-grid button[data-other] { color: #b4bcc8; }
.cal-grid button[data-today] { box-shadow: inset 0 0 0 1.5px var(--t-action); }
.cal-grid button[aria-pressed="true"] { background: var(--t-primary); color: #fff; }
.cal-quick { display: flex; gap: 6px; padding-top: 8px; margin-top: 6px; border-top: 1px solid var(--line); }
.cal-quick button { flex: 1; border: 0; border-radius: 9px; background: var(--sunken); padding: 7px 4px; font-size: 12px; font-weight: 800; }

/* Painel estreito: o celular. */
@media (max-width: 860px) {
  .p-two { grid-template-columns: minmax(0, 1fr); }
  
  
  
  
}

/* Painel estreito (o celular): a trilha vira faixa em cima. */
@media (max-width: 860px) {
  .p { padding: 0; height: 100dvh; }
  .p-card { border-radius: 0; flex-direction: column; }
  .p-rail { width: 100%; flex-direction: row; padding: 8px 10px; gap: 4px; overflow-x: auto; overflow-y: hidden; }
  .p-rail > .scroll-more { margin: 0 -2px; }
  .p-rail > .scroll-more.left { left: -10px; }
  .p-rail > .scroll-more.right { right: -10px; }
  .p-rail > .logo { width: 38px; height: 38px; margin: 0 6px 0 0; }
  .p-rail .spacer, .p-made { display: none; }
  .p-rail-toggle { display: none; }
  .p-nav { width: auto; padding: 8px 11px; }
  .p-head { padding: 12px 16px; gap: 10px; }
  .p-user { display: none; }
  .p-pad { padding: 14px 14px 20px; }
  .field-row, .field-row.three { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .switch::after, .field-float label, .p-rail, .p-nav, .p-nav .lbl, .p-made .lbl, .p-rail > .logo, .p-rail-toggle, .p-rail-toggle svg.i, .p-nav .count { transition: none !important; } }

/* ------------------------------------------------ escolha 7 A (21/10/2026)
   O Pixel School refeito na linha da família. O Kayo achou o painel o mais feio
   dos produtos, sem sincronia com o Stock, o Jury e o Barber depois do remake
   deles. Como neles: o miolo no fundo da casa e cada coisa num cartão branco
   por cima, sem contorno e sem sombra, com espaço entre um e outro; os números
   do dia em cartões grandes no alto (o urgente cheio, letra branca); o
   quadradinho da hora à esquerda do cartão, como a data no Jury; as listas em
   linhas brancas soltas, como as Vendas do Stock. As peças em src/ui/board.ts. */
.p-body { background: var(--t-sand); display: flex; flex-direction: column; }
.p-body > [data-region="body"] { flex: 1 0 auto; display: flex; flex-direction: column; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; padding: 16px 22px 0; }
.kpi { background: #fff; border-radius: 16px; padding: 11px 15px 12px; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.kpi span { font-size: 12px; font-weight: 700; color: var(--soft); }
.kpi b { font-size: 22px; font-weight: 800; line-height: 1.2; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* O texto de baixo quebra a linha em vez de cortar. */
.kpi small { font-size: 12px; font-weight: 600; line-height: 1.35; color: var(--soft); }
.kpi.red { background: var(--bad); color: #fff; }
.kpi.amber { background: var(--bill); color: #fff; }
.kpi.green { background: var(--ok); color: #fff; }
.kpi.red span, .kpi.red small, .kpi.amber span, .kpi.amber small, .kpi.green span, .kpi.green small { color: #fff; }
.kpis + .board, .kpis + .p-pad, .kpis + .pt { padding-top: 12px; }
.board { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; align-items: start; padding: 16px 22px 26px; }
.board.solo { grid-template-columns: minmax(0, 1fr); }
.board-main, .board-side { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.board-side .p-title { flex-direction: column; align-items: flex-start; gap: 2px; }
.p-h4 { display: flex; align-items: center; justify-content: space-between; gap: 10px; font: 800 11.5px "Manrope", sans-serif; letter-spacing: .1em; text-transform: uppercase; color: var(--soft); margin-top: 10px; }
.p-h4:first-child { margin-top: 0; }
.p-h4 > :not(:first-child) { letter-spacing: 0; text-transform: none; font-size: 12px; }
.p-h4 a { color: var(--t-primary); font-weight: 800; }

/* O cartão branco por cima do fundo da casa. */
.p-box { background: #fff; border: 0; }
.p-empty { background: transparent; border-color: #c9d3dc; }
.p-search label { border-color: #fff; max-width: 520px; }
.p-search label:focus-within { border-color: var(--t-primary); }

/* O quadradinho da hora, como a data no Jury: cheio quando é estado. */
.blk { width: 46px; height: 46px; border-radius: 12px; background: var(--t-tint); color: var(--t-deep); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; flex: none; text-align: center; }
.blk b { font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums; }
.blk small { font-size: 9px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--soft); margin-top: 3px; }
.blk.red { background: var(--bad); color: #fff; }
.blk.green { background: var(--ok); color: #fff; }
.blk.amber { background: var(--bill); color: #fff; }
.blk.act { background: var(--t-action); color: #fff; }
.blk.off { background: var(--sunken); color: var(--soft); }
.blk.red small, .blk.green small, .blk.amber small, .blk.act small { color: #fff; }
.blk.sm { width: 36px; height: 36px; border-radius: 10px; }
.blk.sm b { font-size: 11.5px; }
.blk.ini b { font-size: 15px; }

/* As listas: uma linha branca por coisa, com respiro, a linha inteira é o link. */
.lns { display: flex; flex-direction: column; gap: 8px; }
.ln { position: relative; background: #fff; border-radius: 16px; padding: 9px 16px 9px 9px; display: grid; grid-template-columns: 46px minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, .8fr) minmax(110px, auto); gap: 14px; align-items: center; min-height: 64px; color: var(--ink); }
.ln.c4 { grid-template-columns: 46px minmax(0, 1.4fr) minmax(0, 1fr) minmax(110px, auto); }
.ln > span, .ln > div { min-width: 0; }
.ln b { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ln b .pill { margin: 0; flex: none; }
.ln b svg.i { width: 16px; height: 16px; color: var(--t-primary); }
.ln small { display: block; font-size: 12px; font-weight: 600; color: var(--soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ln .end { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.ln .end b { justify-content: flex-end; }
.ln .tile-link { border-radius: inherit; }
.ln .tile-acts { justify-content: flex-end; }
.ln:has(> .tile-link):hover { box-shadow: inset 0 0 0 1.5px var(--t-primary); }
.ln.off { opacity: .6; }
/* O assinante (escolha 8 A, 21/10/2026): a linha do Financeiro do Pixel Jury,
   o vermelho só no quadradinho, no selo e no valor. */
.ln.sub { grid-template-columns: 46px minmax(0, 1.4fr) minmax(0, 1fr) minmax(100px, auto) auto; }
.ln b.bad { color: var(--bad-deep); }
.ln b.ok { color: var(--ok); }
.ln b.wait { color: var(--bill); }
.ln .meter { margin-top: 5px; }
.ln .acts { display: flex; align-items: center; justify-content: flex-end; gap: 6px; position: relative; z-index: 1; }
.ln .acts form { margin: 0; }
.ln:has(details.pop[open]) { z-index: 5; }
/* O menu que abre de um botão (o Receber): do produto, nunca a lista do navegador. */
details.pop { position: relative; }
details.pop > summary { list-style: none; cursor: pointer; }
details.pop > summary::-webkit-details-marker { display: none; }
details.pop > summary svg.i { width: 14px; height: 14px; stroke-width: 2.4; }
.pop-menu { position: absolute; top: calc(100% + 6px); right: 0; z-index: 30; width: 180px; background: #fff; border: 1px solid #dfe3e9; border-radius: 13px; box-shadow: 0 14px 34px rgb(20 26 36 / .18); padding: 6px; display: flex; flex-direction: column; gap: 2px; }

/* O botão à esquerda (a fileira de ações de um cartão): o menu abre para a direita. */
.form-actions .pop-menu { left: 0; right: auto; }
.pop-menu small { font: 800 10.5px "Manrope", sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--soft); padding: 4px 8px 3px; }
.pop-menu form { margin: 0; }
.pop-menu button { width: 100%; border: 0; background: none; border-radius: 9px; padding: 8px; display: flex; align-items: center; gap: 8px; font: 700 13px "Manrope", sans-serif; color: var(--ink); text-align: left; }
.pop-menu button:hover, .pop-menu button:focus-visible { background: var(--sunken); outline: none; }
.pop-menu button svg.i { width: 16px; height: 16px; color: var(--t-primary); }

/* Os cartões em grade (catálogos e registros): brancos no fundo da casa. */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.tile { position: relative; background: #fff; border-radius: 16px; padding: 13px 14px; display: flex; flex-direction: column; gap: 6px; min-width: 0; min-height: 126px; color: var(--ink); }
.tile-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
.tile .n { font-size: 15px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.tile small, .tile .sm { font-size: 12px; color: var(--soft); font-weight: 600; }
.tile .st { font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--soft); white-space: nowrap; }
.tile .st.ok { color: var(--ok); }
.tile .st.wait { color: var(--bill); }

.tile-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; min-width: 0; }
.tile-foot form, .tile-acts form { margin: 0; }
.tile-acts { display: flex; align-items: center; gap: 6px; position: relative; z-index: 1; }
.tile .money { font-weight: 800; font-size: 14px; font-variant-numeric: tabular-nums; }
.tile-link { position: absolute; inset: 0; border-radius: inherit; }
.tile-link:focus-visible { outline: 3px solid var(--t-action); outline-offset: 2px; }
.tile:has(> .tile-link):hover { box-shadow: inset 0 0 0 1.5px var(--t-primary); }
.tile .tile-foot > *, .tile .tile-top > * { position: relative; z-index: 1; }
.tile.off { opacity: .6; }

.tile .st.bad, .tile .money.bad, .tile .sm.bad { color: var(--bad-deep); font-weight: 800; }
.tile:has(details.pop[open]) { z-index: 5; }
/* O cartão de adicionar: cinza claro,
   no jeito dos outros cartões, sem o tracejado (pedido do Kayo, 22/10/2026). */
.tile.add { background: var(--t-panel); align-items: center; justify-content: center; flex-direction: row; gap: 6px; color: var(--ink); font-weight: 800; font-size: 13px; }
.tile.add svg.i { width: 18px; height: 18px; color: var(--t-primary); stroke-width: 2.4; }
.tile.add:hover, .tile.add:focus-visible { box-shadow: inset 0 0 0 1.5px var(--t-primary); color: var(--t-primary); outline: none; }
.meter { display: flex; gap: 3px; flex-wrap: wrap; }
.meter i { width: 18px; height: 5px; border-radius: 3px; background: #dfe5ec; }
.meter i.on { background: var(--t-primary); }
.tiles.small { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.tiles.small .tile { min-height: 96px; }
.tile.mini { min-height: 0; gap: 2px; }
.tile small.one, .tile .one { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.tile .money.big { font-size: 18px; }
.tile .money small { font-weight: 600; }

/* Os números dentro do miolo, sem margem própria. */
.p-pad > .kpis { padding: 0; }

.tile-av { width: 40px; height: 40px; border-radius: 50%; background: var(--t-tint); color: var(--t-deep); display: grid; place-items: center; font: 800 13px "Manrope", sans-serif; flex: none; overflow: hidden; }
.tile-av img { width: 100%; height: 100%; object-fit: cover; }
.tile-av[style] { color: #fff; }

/* A lista curta da coluna da direita: cartão branco. */
.q { background: #fff; border-radius: 14px; padding: 10px 12px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; position: relative; }
.q b { font-size: 13.5px; display: block; }
.q small { font-size: 11.5px; color: var(--soft); font-weight: 600; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.q.red { background: var(--bad); color: #fff; }
.q.red small { color: #fff; }
.q:has(> .tile-link):hover { box-shadow: inset 0 0 0 1.5px var(--t-primary); }

/* Botão solto no fundo da casa: branco, como os cartões. */
.board-side > .p-btn.ghost, .board-main > .p-btn.ghost, .p-pad > .p-btn.ghost { background: #fff; }

/* A linha dentro de um cartão branco (a fatura do convênio): no cinza. */
.p-box .ln { background: var(--sunken); }
@media (max-width: 1100px) {
  .board { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 14px 14px 0; gap: 8px; }
  .kpis > .kpi:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .kpi b { font-size: 18px; }
  .board { padding: 14px 14px 20px; }
  .kpis + .board, .kpis + .p-pad, .kpis + .pt { padding-top: 10px; }
  .ln, .ln.c4 { grid-template-columns: 46px minmax(0, 1fr) auto; gap: 10px; }
  .ln > .mid { display: none; }
  .ln.sub { grid-template-columns: 46px minmax(0, 1fr) auto; }
  .ln.sub > .end { display: none; }
}

/* ------------------------------------- o cadastro: botão redondo e gaveta
   Escolhas 10 A e 11 B do Kayo (22/10/2026), o padrão de todo produto: os
   botões de cadastro no alto, redondos, só com o ícone (o nome na dica, como
   no Pixel Barber); o cadastro numa coluna branca à direita, embaixo do
   cabeçalho, e a lista encolhe ao lado sem escurecer. */
.head-acts { display: flex; gap: 8px; align-items: center; }
.btn-round { width: 34px; height: 34px; border-radius: 50%; display: inline-grid; place-items: center; flex: none; text-decoration: none; background: var(--t-action); color: #fff; }
.btn-round svg.i { width: 17px; height: 17px; stroke-width: 2.4; }
.btn-round:hover { background: color-mix(in srgb, var(--t-action) 86%, #000); }
.btn-round.ghost { background: var(--sunken); color: var(--ink); }
.btn-round.ghost:hover { background: #e7ebf0; }
.btn-round:focus-visible { outline: 3px solid var(--t-action); outline-offset: 2px; }
.p-split { flex: 1; min-height: 0; display: flex; }
.p-split > .p-body { flex: 1; min-width: 0; }
.p-drawer { width: 440px; flex: none; background: #fff; border-left: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.p-drawer-head { padding: 18px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; }
.p-drawer-ic { width: 46px; height: 46px; border-radius: 14px; background: var(--t-tint); color: var(--t-primary); display: grid; place-items: center; flex: none; }
.p-drawer-ic svg.i { width: 22px; height: 22px; }
.p-drawer-head h2 { font-size: 18px; font-weight: 800; }
.p-drawer-head p { font-size: 12.5px; color: var(--soft); margin-top: 2px; }
.p-drawer-x { margin-left: auto; width: 36px; height: 36px; border-radius: 10px; background: var(--sunken); display: grid; place-items: center; color: var(--ink); flex: none; }
.p-drawer-x svg.i { width: 18px; height: 18px; }
.p-drawer-body { flex: 1; min-height: 0; overflow-y: auto; padding: 16px 20px; display: flex; flex-direction: column; gap: 14px; }
.p-drawer-foot { padding: 14px 20px 18px; border-top: 1px solid var(--line); display: flex; }
.p-drawer-foot > .p-btn.big { flex: 1; justify-content: center; }
.p-drawer .p-soft { margin: 0; }
/* As setas de rolagem são itens de altura zero: o espaço entre os campos não conta para elas. */
.p-drawer-body > .scroll-more.up { margin-bottom: -14px; top: -16px; }
.p-drawer-body > .scroll-more.down { margin-top: -14px; bottom: -16px; }
/* A seta grudada para na beira do espaço interno: a lista do select desconta o dela. */
.sel-list > .scroll-more.up, .sug-list > .scroll-more.up { top: -5px; }
.sel-list > .scroll-more.down, .sug-list > .scroll-more.down { bottom: -5px; }

.kv b.ok { color: var(--ok); }
.kv b.bad { color: var(--bad-deep); }
/* Com a gaveta aberta, a coluna da direita da tela desce para baixo do miolo. */
.p-split .board { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 1240px) {
  .p-split .ln > .mid { display: none; }
  .p-split .ln, .p-split .ln.c4 { grid-template-columns: 46px minmax(0, 1fr) minmax(110px, auto); }
  .p-split .ln.sub { grid-template-columns: 46px minmax(0, 1fr) minmax(100px, auto) auto; }
}
/* No celular, a gaveta ocupa a tela inteira. */
@media (max-width: 860px) {
  .p-drawer { position: fixed; inset: 0; width: 100%; z-index: 60; border-left: 0; }
}

/* ------------------------------------------------------ as colunas */

/* O funil em colunas (a captação, escolha 2 A): as colunas no tom da casa e o
   cartão branco, que anda arrastando da esquerda para a direita. */
.pt { padding: 16px 22px 22px; display: flex; flex-direction: column; gap: 12px; }
.cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; align-items: start; }
.kc { background: var(--t-panel); border-radius: 18px; padding: 10px 9px 9px; display: flex; flex-direction: column; gap: 8px; min-width: 0; min-height: 220px; }
.kc.drop-over { outline: 2px dashed var(--t-primary); outline-offset: -2px; }
.kh { display: flex; align-items: center; justify-content: space-between; padding: 0 4px 2px; font: 800 11px "Manrope", sans-serif; letter-spacing: .1em; text-transform: uppercase; color: var(--soft); }
.kh b { background: #fff; color: var(--ink); border-radius: 7px; padding: 2px 8px; letter-spacing: 0; font-size: 11.5px; }
.kc-empty { font-size: 12.5px; font-weight: 600; color: var(--soft); text-align: center; padding: 18px 6px; border: 1.5px dashed #c3ccd6; border-radius: 13px; }
.car { position: relative; background: #fff; border-radius: 14px; padding: 10px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.car[draggable="true"] { cursor: grab; }
.car.dragging { opacity: .45; }
/* Arrastar com o dedo (pedido do Kayo, 24/10/2026, modelo do Barber): segurar o
   cartão não abre o menu do celular, a cópia, o zoom nem o link; a cópia que
   segue o dedo fica por cima de tudo, com a borda na cor de ação. */
@media (pointer: coarse) {
  [data-ticket], [data-ticket] a, [data-slot-id] { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; -webkit-user-drag: none; touch-action: manipulation; }
}
body > .carry { position: fixed; z-index: 500; margin: 0; pointer-events: none; opacity: 1; outline: 2px solid var(--t-action); outline-offset: -2px; }
body.carrying { -webkit-user-select: none; user-select: none; }
.car:has(a.car-main:hover), .car:has(a.car-main:focus-visible) { box-shadow: inset 0 0 0 1.5px var(--t-primary); }
.car-main { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 10px; align-items: center; min-width: 0; color: var(--ink); }
.car-main:focus-visible { outline: none; }

.car .md { font-size: 14px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.car .sv { font-size: 12px; font-weight: 600; color: var(--soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.mk.warn { color: var(--bill); }

.prog { height: 5px; border-radius: 3px; background: var(--sunken); overflow: hidden; }
.prog i { display: block; height: 100%; background: var(--t-primary); border-radius: 3px; }
.paid { display: inline-flex; align-items: center; gap: 4px; color: var(--ok); font-weight: 800; }
.paid svg.i { width: 14px; height: 14px; stroke-width: 2.8; }

.p-sub { font: 800 11px "Manrope", sans-serif; letter-spacing: .1em; text-transform: uppercase; color: var(--soft); margin-top: 4px; }

.mark-sheet { border-top: 1px solid var(--line); padding-top: 12px; }
.mark-sheet [data-mark-title] { font: 800 18px "Manrope", sans-serif; letter-spacing: 0; text-transform: none; color: var(--ink); margin: 0; }
/* Com JavaScript e com o desenho, a folha sobe só quando se toca numa parte. */
.mark-sheet.floating { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: #fff; border-radius: 24px 24px 0 0; border-top: 0; padding: 10px 18px calc(18px + env(safe-area-inset-bottom, 0px)); max-height: 88vh; overflow: auto; }
.mark-sheet.floating:not(.open) { display: none; }
.mark-sheet.floating::before { content: ""; display: block; width: 40px; height: 5px; border-radius: 3px; background: #d3d8dc; margin: 0 auto 10px; }
.sheet-bg { position: fixed; inset: 0; z-index: 59; background: rgb(10 16 22 / .55); }
.chips-pick { display: flex; flex-wrap: wrap; gap: 7px; }
.chip-pick { position: relative; cursor: pointer; }
.chip-pick input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip-pick span { display: inline-flex; align-items: center; gap: 5px; border: 1.5px solid var(--line); border-radius: 999px; padding: 7px 13px; font-size: 13px; font-weight: 700; background: #fff; white-space: nowrap; }
.chip-pick span svg.i { width: 14px; height: 14px; stroke-width: 2.8; display: none; }
.chip-pick input:checked + span { background: var(--t-primary); border-color: var(--t-primary); color: #fff; }
.chip-pick input:checked + span svg.i { display: block; }
.chip-pick input:focus-visible + span { outline: 3px solid var(--t-action); outline-offset: 2px; }

.kv.diff b { color: var(--bad); }

.mono { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: 0; }
.mono.small { font-size: 11.5px; overflow-wrap: anywhere; }

@media (max-width: 1100px) {
  .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .pt { padding: 12px 12px 16px; }
  .cols { grid-template-columns: minmax(0, 1fr); }
  .kc { min-height: 0; }
  
  
}
@media (min-width: 761px) {
  .mark-sheet.floating { left: 50%; right: auto; width: 560px; transform: translateX(-50%); bottom: 24px; border-radius: 22px; }
}

/* ------------------------------------------------- o selo em coluna
   Pedidos do Kayo (23/10/2026): o selo do estado fica numa coluna só dele,
   de largura fixa, logo depois do nome, e nunca colado nele. Com a tela
   larga, o nome tem teto e o selo fica perto dele, não dos botões: a sobra
   de largura vai para a coluna dos botões, que ficam à direita. Com a gaveta
   aberta, o nome encolhe primeiro. No celular, os botões descem.
   .st: quadradinho, nome, selo, meio, valor e botões (Orçamentos, os
   aniversários de Clientes e os assinantes de Planos); --acts é a largura
   dos botões de cada lista. .cl: a lista de Clientes, sem botões. */
.ln.st { --acts: 214px; grid-template-columns: 46px minmax(0, 260px) 118px minmax(0, 400px) 124px minmax(var(--acts), 1fr); }
.ln.cl { grid-template-columns: 46px minmax(0, 260px) 118px minmax(0, 1fr) minmax(0, .8fr) minmax(110px, auto); }

.ln .st-col { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.ln .st-col .pill { margin-left: 0; }
.p-split .ln.st > .mid { display: none; }
.p-split .ln.st { grid-template-columns: 46px minmax(0, 260px) 118px 124px minmax(var(--acts), 1fr); }
@media (max-width: 1240px) {
  .p-split .ln.st { grid-template-columns: 46px minmax(0, 1fr) 118px 124px; }
  .p-split .ln.st > .acts { grid-column: 2 / -1; justify-content: flex-start; }
  .p-split .ln.cl { grid-template-columns: 46px minmax(0, 1fr) 118px minmax(110px, auto); }
}
@media (max-width: 860px) {
  .ln.st, .ln.cl { grid-template-columns: 46px minmax(0, 1fr) auto auto; }
  .ln.st > .acts { grid-column: 2 / -1; justify-content: flex-start; flex-wrap: wrap; }
}

/* ------------------------------------------------ a tela do professor
   Uma página de celular (DEC-044, a mesma do lavador do Wash e do barbeiro do
   Barber): o alto do link, o miolo e as funções num menu embaixo. No
   computador, uma coluna no meio, como o link. */
.s-page { background: var(--t-panel); min-height: 100vh; }
.s { max-width: 520px; margin: 0 auto; min-height: 100dvh; display: flex; flex-direction: column; background: var(--t-sand); }
.s-cover { position: relative; overflow: hidden; color: #fff; background-color: var(--t-primary); background-image: repeating-linear-gradient(135deg, rgb(255 255 255 / .05) 0 12px, transparent 12px 24px); }
.s-cover-img { position: absolute; inset: 0; z-index: 0; }
.s-cover-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* A mesma camada uniforme do link do cliente, na cor escura da casa. */
.s-cover.has-photo::after { content: ""; position: absolute; inset: 0; z-index: 0; background: color-mix(in srgb, var(--t-deep) 58%, transparent); }
.s-head { position: relative; z-index: 1; min-height: 176px; box-sizing: border-box; padding: calc(24px + env(safe-area-inset-top, 0px)) 20px 18px; display: flex; align-items: flex-end; gap: 14px; }
.s-head .logo { width: 56px; height: 56px; box-shadow: 0 0 0 3px #fff; }
.s-name { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.s-name span { font-size: 13px; font-weight: 700; opacity: .9; }
.s-name h1 { font-size: 26px; line-height: 1.1; font-weight: 800; overflow-wrap: anywhere; }
.s-name small { font-size: 13px; font-weight: 600; opacity: .9; }
.s-main { flex: 1; overflow: visible; }
.s-main > .notice { margin: 14px 16px 0; }
/* O menu embaixo: barra branca, a tela atual numa pílula na cor de ação com
   letra branca, e Sair por último. */
.s-menu { position: sticky; bottom: 0; z-index: 30; background: #fff; border-top: 1px solid var(--line); display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px)); }
.s-menu form { display: contents; }
.s-menu a, .s-menu button { justify-self: center; width: 100%; max-width: 92px; height: 54px; border: 0; border-radius: 14px; background: none; color: var(--soft); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font: 700 12px "Manrope", sans-serif; text-decoration: none; cursor: pointer; }
.s-menu svg.i { width: 22px; height: 22px; }
/* O rótulo comprido ("Atendimentos") cabe nos 73 px de cinco itens no celular. */
.s-menu a.long { font-size: 10.5px; letter-spacing: -.02em; }
.s-menu .on { background: var(--t-action); color: #fff; }
.s-menu a { position: relative; }
.s-menu .count { position: absolute; top: 2px; right: 8px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--bad); color: #fff; font: 800 10.5px/18px "Manrope", sans-serif; padding: 0 5px; text-align: center; }
.s-menu .on .count { background: #fff; color: var(--t-action); }
/* A linha abaixo da capa, para o dono e o atendente no celular: o dia da tela
   à esquerda e os botões redondos à direita. */
.s-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 16px; background: #fff; border-bottom: 1px solid var(--line); }
.s-tools > .head-acts { margin-left: auto; }
/* O "Mais" do dono e do atendente no celular (escolha B do Kayo, 24/10/2026,
   piloto do Pixel Barber): uma gaveta que sobe acima do menu, com o resto da
   tela esmaecido atrás. Aberta, o "Mais" é o único aceso no menu. */
.s-more, .s-more-veil { display: none; }
.s.has-more .s-more-veil { display: block; position: fixed; inset: 0; z-index: 25; background: color-mix(in srgb, var(--t-sand) 60%, transparent); }
.s.has-more .s-more { display: flex; flex-direction: column; gap: 6px; position: fixed; left: 0; right: 0; bottom: calc(75px + env(safe-area-inset-bottom, 0px)); z-index: 40; max-width: 520px; margin: 0 auto; background: #fff; border-radius: 24px 24px 0 0; padding: 18px 16px 12px; }
.s.has-more .s-menu .on:not([data-more]) { background: none; color: var(--soft); }
/* A tela atual apaga com o Mais aberto, e o contador dela volta ao vermelho: branco no menu branco sumia (achado do Jury e do Food). */
.s.has-more .s-menu .on:not([data-more]) .count { background: var(--bad); color: #fff; }
.s.has-more .s-menu [data-more] { background: var(--t-action); color: #fff; }
/* O contador segue o botão (pedido do Kayo): no aceso, branco com o número na cor de ação. */
.s.has-more .s-menu [data-more] .count { background: #fff; color: var(--t-action); }
.s-more-head { display: flex; align-items: center; justify-content: space-between; margin: 0 4px 6px; }
.s-more-head h2 { font-size: 20px; font-weight: 800; color: var(--t-deep); }
.s-more-x { width: 40px; height: 40px; border-radius: 50%; background: var(--t-panel); color: var(--ink); display: grid; place-items: center; }
.s-more-x svg.i { width: 16px; height: 16px; }
.s-more form { display: block; }
.s-more-row { width: 100%; height: 52px; border: 0; border-radius: 14px; background: var(--t-panel); color: var(--ink); display: flex; align-items: center; gap: 12px; padding: 0 14px; font: 700 15px "Manrope", sans-serif; text-decoration: none; text-align: left; cursor: pointer; }
.s-more-row > svg.i:first-child { width: 22px; height: 22px; color: var(--t-deep); }
/* Só o rótulo estica: o contador herdava o flex e virava uma barra (achado do Barber). */
.s-more-row span:not(.count) { flex: 1; }
.s-more-row > svg.i:last-child:not(:first-child) { width: 16px; height: 16px; color: var(--soft); }
.s-more-row.on { box-shadow: inset 0 0 0 2px var(--t-action); }
.s-more-row .count { min-width: 20px; height: 20px; border-radius: 10px; background: var(--bad); color: #fff; font: 800 11px/20px "Manrope", sans-serif; padding: 0 6px; text-align: center; }
.s-more-row.out { background: none; color: var(--soft); }
.s-more-row.out > svg.i:first-child { color: var(--soft); }
/* O miolo segue sempre o jeito do celular, também na coluna do computador. */
.s-main .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 14px 14px 0; gap: 8px; }
.s-main .kpi b { font-size: 18px; }
.s-main .pt { padding: 12px 12px 16px; }
.s-main .cols { grid-template-columns: minmax(0, 1fr); }
.s-main .kc { min-height: 0; }
.s-main .board { grid-template-columns: minmax(0, 1fr); padding: 14px 14px 20px; }
.s-main .p-pad { padding: 14px 14px 20px; }
.s-main .ln, .s-main .ln.c4, .s-main .ln.sub { grid-template-columns: 46px minmax(0, 1fr) auto; gap: 10px; }
.s-main .ln > .mid { display: none; }
/* As linhas das listas no celular (pedido do Kayo, 24/10/2026): com o selo, o
   valor caía na linha de baixo, na coluna de 46 px do quadradinho, e passava
   da beira do cartão. Agora, em toda lista: o quadradinho, o nome e o valor na
   primeira linha; os selos embaixo do nome; os botões embaixo, na coluna do
   nome. Nada passa da borda. */
.s-main .ln > .end { grid-column: 3; grid-row: 1; }
.s-main .ln > .st-col { grid-column: 2 / -1; grid-row: 2; }
.s-main .ln > .st-col:empty { display: none; }
.s-main .ln > .acts { grid-column: 2 / -1; justify-content: flex-start; flex-wrap: wrap; }
/* Nos Planos o valor volta: com os selos e os botões embaixo, a primeira linha
   tem lugar para ele ao lado do nome. */
.s-main .ln.sub > .end { display: flex; }
/* O título da seção não se espreme ao lado de um texto comprido: o texto desce
   para a linha de baixo. */
.s-main .p-h4 { flex-wrap: wrap; row-gap: 4px; }
.s-main .p-h4 > span:first-child { white-space: nowrap; }
/* Os números dentro de uma seção já estão na margem
   dela: sem a margem própria dos números do alto, que somava as duas. */
.s-main .p-pad .kpis { padding: 0; }
.s-main .field-row, .s-main .p-two { grid-template-columns: minmax(0, 1fr); }
/* A grade da agenda no celular (pedido do Kayo, 24/10/2026, modelo do Barber):
   duas ou três colunas por tela cortavam o carro, o serviço e os ícones. Cada
   coluna tem pelo menos 240 px e a grade rola de lado, com a ponta da próxima
   à mostra; as linhas de "Fechado" e "tudo livre" ficam na largura da tela. A
   folga de 4 px é para o tracejado de soltar o cartão não ser cortado. */
/* No celular a semana rola de lado, com as setas (panel.js); a coluna das horas fica parada. */
.s-main .week { overflow-x: auto; grid-template-columns: 48px repeat(var(--days, 6), minmax(118px, 1fr)); padding: 8px 8px 8px 0; }
.s-main .wk-hours { position: sticky; left: 0; z-index: 2; }
.s-main .gh:not(.quiet, .closed) { grid-template-columns: 40px repeat(var(--lanes, 2), minmax(240px, 1fr)); min-width: calc(40px + var(--lanes, 2) * 246px); }
/* "Minha senha" (4 A): a pílula no canto de cima da capa, cheia na cor de
   ação da casa com letra branca (o Kayo recusou o vidro translúcido), e a
   gaveta branca que sobe de baixo. */
.s-key { position: absolute; z-index: 2; top: calc(16px + env(safe-area-inset-top, 0px)); right: 16px; height: 40px; padding: 0 14px 0 12px; border-radius: 20px; background: var(--t-action); border: 0; color: #fff; display: flex; align-items: center; gap: 8px; font: 700 13px "Manrope", sans-serif; text-decoration: none; }
.s-key svg.i { width: 16px; height: 16px; }
.s-pass { position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; max-width: 520px; margin: 0 auto; background: #fff; color: var(--ink); border-radius: 24px 24px 0 0; padding: 22px 20px calc(26px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 14px; max-height: 92vh; overflow: auto; }
.s-pass-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.s-pass-top h2 { font-size: 20px; font-weight: 800; color: var(--t-deep); }
.s-pass-x { width: 40px; height: 40px; flex: none; border: 0; border-radius: 50%; background: var(--t-panel); color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.s-pass-x svg.i { width: 16px; height: 16px; }
.s-pass > .notice { margin: 0; }
.s-pass .pass-wrap input { width: 100%; padding-right: 50px; }
.s-pass-note { font-size: 12px; color: var(--soft); text-align: center; }
/* Com a gaveta aberta a página de trás não rola, e as setas dela não sobem por cima da gaveta. */
body.sheet-open { overflow: hidden; }
body.sheet-open .scroll-page, body.sheet-open .scroll-side { display: none; }

/* A gaveta cobre a coluna toda, como no celular. */
.s .p-drawer { position: fixed; inset: 0; width: 100%; max-width: 520px; margin: 0 auto; z-index: 60; border-left: 0; }

/* ------------------------------------------- o link da equipe (3 B, DEC-044)
   A capa ocupa a tela inteira, com a mesma camada uniforme na cor escura da
   casa (sem capa, a cor da casa com as listras); no meio, a logo, o nome e o
   título; embaixo, a gaveta branca que sobe da borda com o e-mail e a senha.
   No computador, uma coluna no meio, como o link do cliente. */
.eq-page { min-height: 100vh; background: var(--t-deep); }
.eq { position: relative; max-width: 520px; min-height: 100dvh; margin: 0 auto; display: flex; flex-direction: column; overflow: hidden; color: #fff; background-color: var(--t-primary); background-image: repeating-linear-gradient(135deg, rgb(255 255 255 / .05) 0 12px, transparent 12px 24px); }
.eq-img { position: absolute; inset: 0; z-index: 0; }
.eq-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.eq.has-photo::after { content: ""; position: absolute; inset: 0; z-index: 0; background: color-mix(in srgb, var(--t-deep) 60%, transparent); }
.eq > :not(.eq-img) { position: relative; z-index: 1; }
.eq-top { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: calc(40px + env(safe-area-inset-top, 0px)) 24px 24px; text-align: center; }
.eq-top .logo { width: 84px; height: 84px; box-shadow: 0 0 0 4px #fff; }
.eq-top .logo b { font-size: 24px; }

.eq-top h1 { font-size: 30px; line-height: 1.1; font-weight: 800; }
.eq-sheet { background: #fff; color: var(--ink); border-radius: 24px 24px 0 0; padding: 24px 20px calc(26px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 14px; }
.eq-sheet > .notice { margin: 0; }
.eq-form { display: flex; flex-direction: column; gap: 14px; }
.eq-field { display: flex; flex-direction: column; gap: 6px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--soft); }
.eq-field input { height: 50px; border: 1.5px solid var(--line); border-radius: 12px; padding: 0 14px; font: 600 16px "Manrope", sans-serif; letter-spacing: 0; text-transform: none; color: var(--ink); background: #fff; }
.eq-field input:focus { outline: none; border-color: var(--t-primary); }
.eq-go { height: 52px; border: 0; border-radius: 12px; background: var(--t-action); color: #fff; font: 800 16px "Manrope", sans-serif; cursor: pointer; }
.eq-note { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--soft); text-align: center; }
.eq-note svg.i { width: 16px; height: 16px; color: var(--t-primary); flex: none; }

/* ================================================ o tablet (pedido do Kayo, 26/10/2026)
   A página do celular (o professor sempre; a direção e a secretaria até 760 px) e o
   link da equipe ocupam a largura toda a partir de 600 px. Os cartões e as
   linhas mantêm o tamanho do celular e cabem mais por linha; as gavetas de
   formulário ficam em 720 px, no meio. No celular, nada muda. */
@media (min-width: 600px) {
  .s { max-width: none; }
  .s-head { padding-left: 28px; padding-right: 28px; }
  .s-tools { padding-left: 20px; padding-right: 20px; }
  .s-main > .notice { margin-left: 20px; margin-right: 20px; }
  .s-main .kpis { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); padding: 16px 20px 0; gap: 10px; }
  .s-main .pt { padding: 14px 20px 20px; }
  /* As colunas do funil: duas por linha no tablet. */
  .s-main .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* Na coluna mais estreita, os serviços do cartão quebram a linha em vez de cortar. */
  .s-main .car .sv { white-space: normal; }
  /* auto-fit: a página com uma coluna só usa a largura toda. */
  .s-main .board { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); padding: 16px 20px 22px; }
  .s-main .p-pad { padding: 16px 20px 22px; }
  .s-main .lns { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
  .s-main .field-row, .s-main .p-two { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
  .s-menu a, .s-menu button { max-width: 130px; }
  /* O "Mais" na largura toda, com os itens lado a lado. */
  .s.has-more .s-more { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); max-width: none; padding: 18px 20px 12px; }
  .s-more-head { grid-column: 1 / -1; }
  .s-pass, .s .p-drawer { max-width: 720px; }
  .eq { max-width: none; }
  .eq-sheet { width: 100%; max-width: 720px; margin: 0 auto; }
}
@media (min-width: 1240px) {
  .s-main .cols { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ------------------------------------------------------- Pixel School */

/* A barra de cima das listas: a busca à esquerda, os filtros à direita. */
.toolbar { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.toolbar .p-search { flex: 1 1 280px; }
.toolbar .p-search label { max-width: 520px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.filters .chip { background: #fff; border-radius: 10px; padding: 8px 12px; font: 800 12.5px "Manrope", sans-serif; color: var(--ink); text-decoration: none; }
.filters .chip:hover, .filters .chip:focus-visible { box-shadow: inset 0 0 0 1.5px var(--t-primary); outline: none; }
.filters .chip.on { background: var(--t-primary); color: #fff; box-shadow: none; }

.im { position: relative; background: #fff; border-radius: 16px; padding: 8px; display: flex; flex-direction: column; gap: 8px; min-width: 0; color: var(--ink); }
.im:has(> .tile-link):hover { box-shadow: inset 0 0 0 1.5px var(--t-primary); }
.im.off { opacity: .6; }

.ln .st-col { display: flex; }
.ln .st-col .pill { margin: 0; }

.ph { position: relative; margin: 0; background: #fff; border-radius: 14px; padding: 6px; display: flex; flex-direction: column; gap: 6px; }
.ph img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; }
.ph > .pill { position: absolute; top: 12px; left: 12px; margin: 0; }
.ph figcaption { display: flex; justify-content: flex-end; align-items: center; gap: 6px; }
.ph figcaption form { margin: 0; }

.kv.col { flex-direction: column; gap: 3px; }
.kv.col b { text-align: left; line-height: 1.45; }

.field-row > .field-row { gap: 8px; grid-template-columns: minmax(0, 1fr) 64px; }

/* No celular (a tela do professor e o painel de celular): os cartões no tamanho
   do celular; no tablet cabem dois ou três por linha. */
.s-main .toolbar .p-search label { max-width: none; }


/* A captação: o funil em cinco colunas (escolha 2 A do Kayo, 04/11/2026). */
.cols.c5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.car.lead .who { display: flex; gap: 8px; align-items: center; color: var(--ink); min-width: 0; }
.car.lead .who > span { min-width: 0; }
.car.lead .md { display: block; font-size: 13.5px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.car.lead .who small { display: block; font-size: 12px; font-weight: 600; color: var(--soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.car.lead .sv { font-size: 12px; font-weight: 700; color: var(--ink); }
.car.lead .ft { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.car.lead .ft .pill { margin: 0; }
.car.lead .av { width: 24px; height: 24px; border-radius: 50%; background: var(--t-tint); color: var(--t-deep); font-size: 10px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.lead-head { flex-direction: row; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.lead-head .who { display: flex; gap: 12px; align-items: center; min-width: 0; }
.lead-head .who b { display: block; font-size: 16px; }
.lead-head .who b a { color: var(--ink); }
.lead-head .who small { display: block; font-size: 12.5px; font-weight: 600; color: var(--soft); }
.lead-head .form-actions form { margin: 0; }

.p-danger-zone input { display: block; margin-top: 8px; width: 100%; border: 1.5px solid #dfe3e9; border-radius: 10px; padding: 8px 10px; font-size: 13px; }

@media (max-width: 1240px) {
  .cols.c5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.s-main .cols.c5 { grid-template-columns: minmax(0, 1fr); }

/* Cobranças (escolha 3 A): a lista do mês; o mês com as setas no alto. */
.ln.c5 { grid-template-columns: 46px minmax(0, 260px) 110px minmax(0, 1fr) minmax(0, 1fr) minmax(130px, auto); }
.daynav { display: flex; align-items: center; gap: 8px; }
.daynav .icon-btn { width: 36px; height: 36px; border-radius: 50%; }
.daynav b { font-size: 15px; font-weight: 800; padding: 0 6px; white-space: nowrap; }

.kcard { background: #fff; border-radius: 14px; padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.kcard .row { display: flex; gap: 8px; align-items: center; min-width: 0; }
.kcard .row.between { justify-content: space-between; }
.kcard .row form { margin: 0; }
.kcard b { font-size: 13.5px; }
.kcard small { display: block; font-size: 12px; color: var(--soft); font-weight: 600; }
.kcard .money { font-size: 17px; font-weight: 800; color: var(--t-deep); font-variant-numeric: tabular-nums; }
.kcard .lines { font-size: 12px; font-weight: 600; color: var(--soft); display: flex; flex-direction: column; gap: 3px; }
.kcard .lines span { display: flex; justify-content: space-between; gap: 8px; }
.kcard .lines b { font-size: 12px; color: var(--ink); font-variant-numeric: tabular-nums; }

/* No celular, como as outras listas: o dia, o inquilino e o valor em cima; o selo embaixo do nome; o botão por último. */
.s-main .ln.c5 { grid-template-columns: 46px minmax(0, 1fr) auto; }
.s-main .ln.c5 > :nth-child(5) { display: none; }
.s-main .ln.c5 > .val { grid-column: 3; grid-row: 1; text-align: right; }
.s-main .ln.c5 > .acts { grid-row: 3; }
/* Três indicadores em duas colunas: o que sobra sozinho ocupa a linha toda. */
.s-main .kpis > .kpi:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (min-width: 600px) {
  .s-main .kpis > .kpi:last-child:nth-child(odd) { grid-column: auto; }
}
/* Com a gaveta aberta ou na tela estreita (o tablet), a descrição sai: o que foi e quando estão na gaveta. */
.p-split .ln.c5 { grid-template-columns: 46px minmax(0, 1fr) 110px minmax(0, 150px) minmax(110px, auto); }
.p-split .ln.c5 > :nth-child(5) { display: none; }

.vs-next { position: sticky; bottom: 0; z-index: 5; background: #fff; border-top: 1px solid var(--line); padding: 10px 14px; display: flex; gap: 8px; }
.vs-next form { flex: 1; display: flex; margin: 0; }
.vs-next a, .vs-next button { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; border: 0; border-radius: 12px; padding: 13px; font: 800 14.5px var(--f, "Manrope"), sans-serif; cursor: pointer; }
.vs-next .act { background: var(--t-action); color: #fff; }
.vs-next .ghost { background: var(--sunken); color: var(--ink); flex: 0 0 auto; padding: 13px 16px; }
.vs-next svg.i { width: 18px; height: 18px; }
.p-body > .vs-next { margin-top: auto; }
.s > .vs-next { position: sticky; bottom: 0; padding-bottom: max(10px, env(safe-area-inset-bottom)); }
@media (max-width: 1000px) {
  .ln.c5 { grid-template-columns: 46px minmax(0, 1fr) 100px minmax(0, 150px) minmax(110px, auto); }
  .ln.c5 > :nth-child(5) { display: none; }
}

/* ================================================= a escola (Pixel School)
   As telas escolhidas pelo Kayo em 04/11/2026: 1 B (as turmas de hoje em
   cartões), 2 A (a captação em colunas), 3 B (o financeiro em colunas por
   situação), 4 B (a chamada em cartões que ficam vermelhos em quem faltou) e
   5 A (o app da família, em public/family.css). Vermelho, verde e âmbar são
   estado, cheios e com letra branca. */

/* Os selos de estado. */
.pill.red { background: var(--bad); color: #fff; }
.pill.green { background: var(--ok); color: #fff; }
.pill.amber { background: var(--bill); color: #fff; }
.pill.blue { background: var(--t-primary); color: #fff; }
.pill.off { background: var(--sunken); color: var(--soft); }
.st-col .pill, .tm-h .pill, .sj-h .pill, .lead-h .pill, .yn .pill { margin: 0; vertical-align: 0; font-size: 11px; padding: 3px 8px; white-space: nowrap; }

/* A barra fina, nas cores de estado. */
.bar.ok i { background: var(--ok); }
.bar.bad i { background: var(--bad); }
.bar.act i { background: var(--t-action); }

/* A lista curta do lado (visitas, aniversários, alunos da turma). */
.mini-list { gap: 0; padding: 6px 14px; }
.mini { display: flex; align-items: center; gap: 11px; padding: 9px 0; color: var(--ink); min-width: 0; }
.mini + .mini { border-top: 1px solid var(--line); }
.mini > span:last-child { min-width: 0; }
.mini b { display: block; font-size: 13px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini small { display: block; font-size: 11.5px; color: var(--soft); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
a.mini:hover b { color: var(--t-primary); }
.mini-list.cols2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); column-gap: 18px; }
.mini-list.cols2 .mini + .mini { border-top: 0; }
.ini { width: 34px; height: 34px; border-radius: 50%; background: var(--t-tint); color: var(--t-deep); display: grid; place-items: center; font-size: 12px; font-weight: 800; flex: none; object-fit: cover; }
.ln > .ini { width: 46px; height: 46px; font-size: 14px; }

/* 1 B: as turmas de hoje em cartões. */
.tms { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.tm { background: #fff; border-radius: 16px; padding: 13px 14px; display: flex; flex-direction: column; gap: 8px; color: var(--ink); min-width: 0; }
.tm:hover { box-shadow: inset 0 0 0 1.5px var(--t-primary); }
.tm-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.tm-h b { font-size: 15px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tm > small { font-size: 11.5px; font-weight: 600; color: var(--soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tm .bar { height: 8px; background: var(--sunken); }
.tm-f { display: flex; justify-content: space-between; gap: 8px; font-size: 11.5px; font-weight: 700; color: var(--soft); font-variant-numeric: tabular-nums; }
.board-side .p-box .p-title { flex-direction: row; align-items: baseline; }
a.p-box { color: var(--ink); }
a.p-box:hover { box-shadow: inset 0 0 0 1.5px var(--t-primary); }
.side-money .bar { height: 8px; background: var(--sunken); }
.side-late { background: var(--bad); color: #fff; }
a.side-late, a.side-late:hover { color: #fff; box-shadow: none; }
.side-late .p-title small { color: #fff; }
.side-late b { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }

/* 2 A: a captação em colunas. */
.goal { display: flex; align-items: center; gap: 12px; background: var(--sunken); border-radius: 14px; padding: 9px 14px; min-width: 260px; color: var(--ink); }
.goal .bar { flex: 1; height: 9px; background: #fff; }
.goal b { font-size: 13px; font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; }
.goal small { font-size: 11.5px; font-weight: 700; color: var(--soft); white-space: nowrap; }
.car.lead { gap: 5px; }
.car.lead > .car-main { position: absolute; inset: 0; z-index: 0; border-radius: inherit; }
.car.lead > :not(.car-main) { position: relative; pointer-events: none; }
.lead-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 6px; }
.lead-h .md { white-space: normal; line-height: 1.25; font-size: 13.5px; }
.lead-l { display: flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; color: var(--soft); min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lead-l svg.i { width: 13px; height: 13px; flex: none; }
.lead-l.late { color: var(--bad-deep); font-weight: 800; }
.car.lead .ft { margin-top: 2px; }
.car.lead .tag { font-size: 10.5px; font-weight: 800; background: var(--sunken); border-radius: 6px; padding: 2px 7px; color: var(--soft); }
.car.lead .ft .av { margin-left: auto; }
.kc.won .kh { color: var(--ok); }

/* 3 B: o financeiro em colunas por situação. */
.fin { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: start; }
.fc { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.fc-h { border-radius: 14px; padding: 11px 14px; color: #fff; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.fc-h b { font-size: 14px; font-weight: 800; }
.fc-h span { font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fc-h.blue { background: var(--t-primary); }
.fc-h.red { background: var(--bad); }
.fc-h.green { background: var(--ok); }
.kcard.bill { color: var(--ink); }
a.kcard.bill:hover, .kcard.bill:has(.lines a:hover) { box-shadow: inset 0 0 0 1.5px var(--t-primary); }
.kcard .money.bad { color: var(--bad-deep); }
.kcard .money.ok { color: var(--ok); }
.kcard .row.between small:last-child { text-align: right; }
.kcard .lines a { display: flex; justify-content: space-between; gap: 8px; color: var(--soft); }
.kcard .lines a:hover span { color: var(--t-primary); }
.p-drawer-extra { padding: 0 20px 16px; margin: 0; display: flex; justify-content: center; }

/* O Diário: as disciplinas da turma em cartões. */
.subjs { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.sj { background: #fff; border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 9px; color: var(--ink); }
.sj:hover { box-shadow: inset 0 0 0 1.5px var(--t-primary); }
.sj.off { opacity: .75; }
.sj-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.sj-h b { font-size: 15px; font-weight: 800; }
.sj > small { font-size: 11.5px; color: var(--soft); font-weight: 600; }
.sj-r { display: flex; justify-content: space-between; font-size: 12px; font-weight: 700; color: var(--soft); font-variant-numeric: tabular-nums; }
.sj-r b { color: var(--ink); }
.sj .bar { height: 8px; background: var(--sunken); }

/* A tabela de notas, como a caderneta: os alunos nas linhas, as avaliações nas colunas. */
.gt-wrap { display: flex; flex-direction: column; gap: 12px; margin: 0; }
.gt { background: #fff; border-radius: 16px; overflow-x: auto; }
.gt-r { display: grid; align-items: center; gap: 8px; padding: 8px 14px; border-top: 1px solid var(--line); font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; min-width: max-content; }
.gt-r:first-child { border-top: 0; }
.gt-head { background: var(--t-tint); font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--soft); }
.gt-r > span, .gt-r > input { text-align: center; }
.gt-r .nm { text-align: left; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gt-head .nm { font-weight: 800; }
.gt-r .ini { width: 30px; height: 30px; font-size: 10.5px; }
.gt-r .cell { background: var(--sunken); border-radius: 8px; padding: 6px 0; border: 1.5px solid transparent; font: 700 13px "Manrope", sans-serif; color: var(--ink); width: 100%; min-width: 0; }
.gt-r input.cell:focus { outline: none; border-color: var(--t-primary); background: #fff; }
.gt-r .cell.bad { color: var(--bad-deep); font-weight: 800; }
.gt-r .cell.empty { color: var(--soft); }
.gt-r .avg { font-weight: 800; }
.gt-r .avg.bad, .gt-r .freq.bad { color: var(--bad-deep); }
.gt-r .pill { justify-self: center; margin: 0; }
.seg-nav { display: flex; gap: 4px; background: var(--sunken); border-radius: 12px; padding: 4px; }
.seg-nav a { min-width: 38px; text-align: center; padding: 7px 10px; border-radius: 9px; font-size: 12.5px; font-weight: 800; color: var(--soft); }
.seg-nav a.on { background: var(--t-primary); color: #fff; }

/* 4 B: a chamada em cartões. Todos começam presentes (verde); o toque marca a
   falta (vermelho). Cada cartão é uma caixa de marcar: funciona sem script. */
.roll { display: flex; flex-direction: column; gap: 12px; margin: 0; }
.roll-pick { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; margin: 0; }
.roll-pick .field { min-width: 0; }
.s-tools .roll-pick { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.3fr) minmax(0, .9fr); width: 100%; }
.roll-pick .field label { font-size: 11px; }
.roll-pick select, .roll-pick input { padding: 7px 10px; font-size: 12.5px; }
.roll-count { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.roll-count > span { border-radius: 14px; padding: 9px 12px; background: #fff; display: flex; flex-direction: column; }
.roll-count > span.g { background: var(--ok); color: #fff; }
.roll-count > span.r { background: var(--bad); color: #fff; }
.roll-count b { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.1; }
.roll-count small { font-size: 11.5px; font-weight: 700; }
.roll-hint { font-size: 12.5px; font-weight: 700; color: var(--soft); }
.kidts { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.kidt { position: relative; border-radius: 16px; padding: 12px 6px 10px; display: flex; flex-direction: column; align-items: center; gap: 6px; background: var(--ok); color: #fff; text-align: center; cursor: pointer; user-select: none; -webkit-user-select: none; }
.kidt input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.kidt .ini { width: 50px; height: 50px; font-size: 16px; background: rgb(255 255 255 / .22); color: #fff; }
.kidt b { font-size: 12.5px; font-weight: 800; line-height: 1.2; }
.kidt small { font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.kidt .no { display: none; }
.kidt:has(input:checked) { background: var(--bad); }
.kidt:has(input:checked) .yes { display: none; }
.kidt:has(input:checked) .no { display: inline; }
.kidt:has(input:focus-visible) { outline: 3px solid var(--t-action); outline-offset: 2px; }
.kidt .streak { position: absolute; top: 6px; right: 6px; min-width: 20px; height: 20px; border-radius: 10px; background: #fff; color: var(--bad-deep); font: 800 11px/20px "Manrope", sans-serif; font-style: normal; padding: 0 5px; }
.roll-more { background: #fff; border-radius: 16px; padding: 12px 14px; }
.roll-more summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 800; color: var(--t-primary); }
.roll-more summary::-webkit-details-marker { display: none; }
.roll-more summary svg.i { width: 18px; height: 18px; }
.roll-more[open] summary { margin-bottom: 10px; }
.roll-more .field + .field { margin-top: 10px; }
.roll-save { border: 0; border-radius: 14px; padding: 15px; background: var(--t-action); color: #fff; font: 800 15px "Manrope", sans-serif; cursor: pointer; }
.s-main .roll-save { position: sticky; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 4; }

/* Alunos: a linha e a ficha. */
.ln.stu { grid-template-columns: 46px minmax(0, 280px) 128px minmax(0, 1fr) 118px minmax(90px, auto); }
.alg { display: inline-block; background: var(--bad); color: #fff; border-radius: 6px; font-size: 10px; font-weight: 800; padding: 2px 6px; margin-left: 6px; vertical-align: 1px; letter-spacing: 0; }
.ln.kin { grid-template-columns: 46px minmax(0, 1.2fr) minmax(0, 1fr) auto; }
.stu-card { align-items: center; text-align: center; }
.stu-card .kv { width: 100%; text-align: left; }
.stu-face { width: 112px; height: 112px; border-radius: 50%; background: var(--t-tint); color: var(--t-deep); display: grid; place-items: center; font-size: 34px; font-weight: 800; object-fit: cover; }
.stu-photo { margin: 0; }
.stu-photo label { cursor: pointer; }
.kvs { gap: 8px; }

/* Turmas: as disciplinas da turma e as séries, editadas na própria linha. */
.ln.cs-ln { grid-template-columns: 46px minmax(0, 1fr) minmax(150px, 220px) 96px 96px auto; }
.ln.gr-ln { grid-template-columns: minmax(0, 1.4fr) minmax(140px, 1fr) 130px 62px auto; padding-left: 12px; }
.ln.sb-ln { grid-template-columns: minmax(0, 1fr) auto auto; padding-left: 12px; min-height: 56px; }
.ln.cs-ln select, .ln.gr-ln select, .ln.gr-ln input, .ln.sb-ln input { width: 100%; border: 1.5px solid var(--line); border-radius: 10px; padding: 8px 10px; font: 700 13px "Manrope", sans-serif; background: #fff; color: var(--ink); min-width: 0; }
.ln.gr-ln input.pos { text-align: center; }
.mini-field { display: flex; align-items: center; gap: 6px; border: 1.5px solid var(--line); border-radius: 10px; padding: 0 8px; background: #fff; min-width: 0; }
.mini-field input { width: 100%; min-width: 0; border: 0; outline: 0; padding: 8px 0; font: 800 13px "Manrope", sans-serif; text-align: right; background: transparent; color: var(--ink); }
.mini-field small { font-size: 10.5px; font-weight: 700; color: var(--soft); white-space: nowrap; }
.mini-field:focus-within { border-color: var(--t-primary); }
.ln.sb-ln small { font-size: 12px; color: var(--soft); font-weight: 700; }

/* Recados: a linha com a barra de leitura e o sim, o não e o que falta. */
.ln.nt { grid-template-columns: 46px minmax(0, 1fr) 210px 250px; }
.ln.nt .rd { display: flex; flex-direction: column; gap: 5px; }
.ln.nt .rd > span:first-child { font-size: 11.5px; font-weight: 700; color: var(--soft); display: flex; justify-content: space-between; }
.ln.nt .rd b { color: var(--ink); }
.ln.nt .bar { height: 8px; background: var(--sunken); }
.yn { display: flex; gap: 6px; justify-content: flex-end; }
.notice-full .note-text { white-space: pre-line; font-size: 14px; line-height: 1.6; color: var(--ink); }

@media (max-width: 1240px) {
  .fin { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ln.nt { grid-template-columns: 46px minmax(0, 1fr) 170px; }
  .ln.nt > .acts { grid-column: 2 / -1; justify-content: flex-start; }
  .ln.stu { grid-template-columns: 46px minmax(0, 1fr) 128px 118px; }
  .ln.stu > :nth-child(5), .ln.stu > .end { display: none; }
}
@media (max-width: 860px) {
  .fin { grid-template-columns: minmax(0, 1fr); }
  .goal { min-width: 0; flex: 1 1 100%; }
  .ln.cs-ln { grid-template-columns: 46px minmax(0, 1fr) auto; }
  .ln.cs-ln > select, .ln.cs-ln > .mini-field { grid-column: 2 / -1; }
  .ln.gr-ln { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .ln.kin { grid-template-columns: 46px minmax(0, 1fr) auto; }
  .ln.kin > :nth-child(3) { display: none; }
}
/* No celular (o professor e a página de celular da secretaria). */
.s-main .tms, .s-main .subjs { grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.s-main .kidts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.s-main .fin { grid-template-columns: minmax(0, 1fr); }
.s-main .ln.stu, .s-main .ln.nt, .s-main .ln.kin { grid-template-columns: 46px minmax(0, 1fr) auto; }
.s-main .ln.stu > :nth-child(4), .s-main .ln.stu > :nth-child(5), .s-main .ln.stu > .end, .s-main .ln.nt > .rd, .s-main .ln.kin > :nth-child(3) { display: none; }
@media (min-width: 600px) {
  .s-main .kidts { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); }
}

/* 6 B: os alunos em cartões com a foto (escolha do Kayo, 04/11/2026). Do
   tamanho do celular, quantos couberem por linha (DEC-047). A alergia no
   canto de cima, à esquerda; a mensalidade, à direita. */
.scs { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.sc { background: #fff; border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; color: var(--ink); min-width: 0; }
.sc:hover { box-shadow: inset 0 0 0 1.5px var(--t-primary); }
.sc-ph { position: relative; height: 128px; background: var(--t-tint); display: grid; place-items: center; }
.sc-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sc-ph .ini { width: 68px; height: 68px; font-size: 21px; background: #fff; }
.sc-ph .alg { position: absolute; top: 9px; left: 9px; margin: 0; }
.sc-ph .pill { position: absolute; top: 9px; right: 9px; margin: 0; font-size: 11px; padding: 3px 8px; }
.sc-b { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sc-b b { font-size: 14px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-b small { font-size: 11.5px; font-weight: 600; color: var(--soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 7 A: a ficha com abas, logo abaixo do cabeçalho. */
.stu-head { display: flex; align-items: flex-end; gap: 14px; background: #fff; padding: 12px 22px 0; border-bottom: 1px solid var(--line); }
.stu-mini { width: 48px; height: 48px; border-radius: 50%; background: var(--t-hi); color: var(--t-hi-ink); display: grid; place-items: center; font-size: 16px; font-weight: 800; object-fit: cover; margin-bottom: 10px; flex: none; }
.tabs { display: flex; gap: 2px; overflow-x: auto; min-width: 0; }
.tabs a { padding: 10px 14px 12px; font-size: 13.5px; font-weight: 800; color: var(--soft); border-bottom: 3px solid transparent; white-space: nowrap; }
.tabs a:hover { color: var(--ink); }
.tabs a.on { color: var(--ink); border-color: var(--t-action); }
.health-text { white-space: pre-line; font-size: 13.5px; line-height: 1.55; color: var(--ink); font-weight: 600; }
.kv b.ok { color: var(--ok); }

/* Os documentos em miniaturas. */
.docs { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.doc { margin: 0; background: #fff; border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
.doc img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: var(--sunken); }
.doc figcaption { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 8px; align-items: center; padding: 9px 10px 10px 12px; }
.doc figcaption b { font-size: 12.5px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.doc figcaption small { grid-column: 1; font-size: 11px; color: var(--soft); font-weight: 600; }
.doc figcaption form { grid-column: 2; grid-row: 1 / 3; margin: 0; }
.s-main .scs { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.s-main .stu-head { padding: 8px 14px 0; }
.p-drawer .stu-card { display: flex; flex-direction: column; align-items: center; gap: 10px; padding-bottom: 8px; }

/* ===================================================== o movimento
   O kit da casa (public/motion.css, DEC-051), carregado antes deste arquivo:
   a troca de página, a gaveta (.ptm-drawer), a janela (.ptm-modal e
   .ptm-veil), o aviso (.ptm-toast) e as listas (.ptm-list-in, só a primeira
   carga). O clique do kit (.ptm-press) vale aqui por seletor, nos botões, nos
   cartões e nos itens de menu, para não repetir a classe em cada tela. */
.p-btn, .btn-round, .icon-btn, .chip, .p-nav, .s-menu a, .s-menu button, .kidt, .roll-save, .eq-go, .e-button, .tm, .sc, .sj, a.kcard, .car {
  transition: transform var(--ptm-fast) var(--ptm-ease), background-color var(--ptm-fast) var(--ptm-ease), box-shadow var(--ptm-fast) var(--ptm-ease);
}
:is(.p-btn, .btn-round, .icon-btn, .chip, .p-nav, .s-menu a, .s-menu button, .kidt, .roll-save, .eq-go, .e-button, .tm, .sc, .sj, a.kcard):active:not(:disabled) { transform: scale(.97); transition-duration: 60ms; }
.s-more { animation: ptm-rise var(--ptm-slow) var(--ptm-ease) both; }
.pop-menu, .sel-list, .sug-list, .cal-pop { animation: ptm-fade var(--ptm-fast) var(--ptm-ease) both; }
