/*
 * Pixel Realty — o painel do lava-jato 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 do lava-jato
 * com letra branca. A tela principal é o pátio em colunas (escolha 1 A do
 * Kayo, 20/10/2026), e a vistoria é o carro visto de cima (escolha 2 A).
 *
 * A marca do Pixel Realty (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 lava-jato. 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 Realty (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 lava-jato (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-note { background: var(--sunken); border-radius: 14px; padding: 12px 14px; font-size: 13px; line-height: 1.5; color: #3b4556; }
.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); }

/* A nota do cliente nos relatórios: o cartão inteiro é o link. */
a.rv:hover, a.rv:focus-visible { border-color: var(--t-primary); outline: none; }
a.rv:hover .rv-head b { color: var(--t-primary); }

/* Números e listas */
.p-stars { display: inline-flex; gap: 2px; color: var(--t-action); }
.p-stars svg { width: 16px; height: 16px; fill: currentColor; stroke: none; }
.p-stars svg.off { color: #d5dbe4; }
/* As barras finas dos relatórios, como no Pixel Jury (escolha 9 B); a maior da
   hora de chegada na cor de ação. */
.bar-row { display: grid; grid-template-columns: 150px minmax(0, 1fr) 48px; gap: 12px; align-items: center; font-size: 12.5px; font-weight: 700; color: var(--soft); padding: 3px 0; }
.bar-row > span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-row > span:last-child { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--ink); font-weight: 800; }
.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); }
/* Os meses em botões no alto dos relatórios. */
.months { display: flex; gap: 6px; flex-wrap: wrap; padding: 16px 22px 0; }
.months a { background: #fff; border-radius: 99px; padding: 6px 14px; font: 800 12.5px "Manrope", sans-serif; color: var(--ink); }
.months a:hover, .months a:focus-visible { box-shadow: inset 0 0 0 1.5px var(--t-primary); outline: none; }
.months a.on { background: var(--t-primary); color: #fff; box-shadow: none; }
.months + .kpis { padding-top: 10px; }
/* A produção da equipe: uma linha por lavador. */
.tt { display: grid; grid-template-columns: 30px minmax(0, 1fr) 70px 110px 54px; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.tt.hd { border-top: 0; padding-top: 0; font: 800 10.5px "Manrope", sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--soft); }
.tt > :nth-child(n+3) { text-align: right; }
.tt b { font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tt .av { width: 28px; height: 28px; font-size: 11px; }
.p-box .q { background: var(--sunken); }
.rv { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; gap: 7px; }
.rv-head { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; flex-wrap: wrap; }
.rv-head span { color: var(--soft); font-weight: 600; }
.rv p { font-size: 13.5px; line-height: 1.5; color: #2b3445; }

/* 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; }
.p-created { background: var(--ok); color: #fff; border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; }
.p-created code { background: #fff; color: var(--ink); border-radius: 8px; padding: 3px 8px; font-size: 15px; font-weight: 800; letter-spacing: .04em; }
.p-created .p-btn { vertical-align: middle; }
.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 do lava-jato */

.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; }
.today-btn { padding: 0 12px; height: 34px; border-radius: 10px; background: var(--sunken); font: 800 12.5px "Manrope", sans-serif; display: flex; align-items: center; text-decoration: none; color: var(--ink); }
/* 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); }
.dn-step { width: 32px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: var(--ink); text-decoration: none; flex: none; }
.dn-step svg.i { width: 16px; height: 16px; }
.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; }
.day-label { border: 0; background: none; height: 34px; padding: 0 9px; display: flex; align-items: center; gap: 7px; font: 800 12.5px "Manrope", sans-serif; color: var(--ink); white-space: nowrap; cursor: pointer; min-width: 0; }
.day-label svg.i { width: 16px; height: 16px; flex: none; }
.day-label .lg { overflow: hidden; text-overflow: ellipsis; }
.day-label .sm { display: none; }
html:not(.js) .day-label { display: 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 dos lavadores. */
.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.xs { width: 22px; height: 22px; font-size: 10px; }
.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; }
.ps.muted { color: var(--soft); font-weight: 600; }

/* 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.chair { background: var(--t-primary); 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; }

/* Hoje: a fila do dia (opção B). */
.fd-h { font: 800 11.5px "Manrope", sans-serif; letter-spacing: .1em; text-transform: uppercase; color: var(--soft); display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-top: 4px; flex-wrap: wrap; }
.fd-h small { letter-spacing: 0; text-transform: none; font-weight: 600; font-size: 12px; }
.fd-h a { color: var(--ink); }
.b-sm { border: 0; border-radius: 9px; padding: 7px 10px; font: 800 12px "Manrope", sans-serif; background: var(--sunken); color: var(--ink); white-space: nowrap; display: inline-flex; align-items: center; gap: 5px; text-decoration: none; cursor: pointer; }
.b-sm.go { background: var(--t-primary); color: #fff; }
.b-sm.act { background: var(--t-action); color: #fff; }
.b-sm.light { background: #fff; color: var(--t-deep); }
.b-sm:disabled { opacity: .6; }

.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 vistoria 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 do lava-jato */
.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; }
/* As abas do cartão de formulários (escolha 4 B): com mais de um formulário,
   aparece um por vez.
   Sem JavaScript as abas somem e os formulários ficam um embaixo do outro. */
.p-box.tight { gap: 4px; }
.p-box > h2.p-title + .p-title { margin-top: 8px; }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px 16px; }
.check-row span { font-size: 12.5px; }
.hours-head, .hours-row { display: grid; grid-template-columns: minmax(110px, 1.2fr) repeat(4, minmax(0, 1fr)); gap: 8px; align-items: center; }
.hours-head span { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--soft); }
.hours-row .sel-button { padding: 8px 30px 8px 10px; font-size: 13px; min-height: 0; }
.hours-row .sel-button::after { right: 11px; }
.hours-row select { width: 100%; border: 1.5px solid #dfe3e9; border-radius: 10px; padding: 8px; font-size: 13px; background: #fff; }
.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; }
.p-confirm { background: var(--bill); color: #fff; border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; font-size: 13.5px; font-weight: 700; }
.p-confirm .check-row b, .p-confirm .check-row { color: #fff; }
.p-confirm .check-row i { border-color: rgb(255 255 255 / .7); }
.p-confirm .check-row input:checked + i { background: #fff; border-color: #fff; color: var(--bill); }

/* O horário */
.ap-head { display: flex; align-items: center; gap: 12px; }
.ap-head > div { flex: 1; min-width: 0; }
.ap-head b { display: block; font-size: 16px; font-weight: 800; }
.ap-head span { font-size: 13px; color: var(--soft); }
.lines { display: flex; flex-direction: column; }
.p-line { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; padding: 8px 0; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.p-line.total { font-weight: 800; font-size: 16px; border-bottom: 0; }
.p-line small { color: var(--soft); font-weight: 600; margin-left: 4px; }
.p-line.due { color: var(--bad-deep); font-weight: 800; }
.finish-due { background: var(--sunken); border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.finish-due span { font-size: 12.5px; font-weight: 700; color: var(--soft); }
.finish-due b { font-size: 30px; font-weight: 800; font-variant-numeric: tabular-nums; }
.finish-due small { font-size: 12px; color: var(--soft); font-weight: 600; }
.picks.methods { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.picks.methods .pick-card { gap: 6px; padding: 12px 8px; }
.picks.methods .pick-card svg.i { color: var(--t-primary); }

.p-note { white-space: pre-line; }
.msgs { display: flex; flex-direction: column; gap: 2px; margin-top: 4px; }
.msg-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; padding: 7px 0; border-top: 1px solid var(--line); font-size: 12.5px; }
.msg-row small { color: var(--soft); width: 100%; }
.msg-row .pill { margin: 0; }
details.msg-row { display: block; }
details.msg-row summary { list-style: none; cursor: pointer; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; }
details.msg-row summary::-webkit-details-marker { display: none; }
details.msg-row pre { white-space: pre-wrap; font: 500 13px/1.5 "Manrope", sans-serif; background: var(--sunken); border-radius: 12px; padding: 10px 12px; margin: 8px 0 2px; }
.msgs.big .msg-row { padding: 10px 0; }

/* WhatsApp e pagamento em Ajustes */
.wa-card { border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.wa-card b { font-size: 14.5px; }
.wa-card form { margin: 4px 0 0; }
.wa-card.ok { background: var(--ok); color: #fff; }
.wa-card.ok .p-btn.ghost { background: #fff; color: var(--ok); }
.wa-card.bad { background: var(--bad); color: #fff; }
.wa-card.wait { background: var(--sunken); }
.wa-card.off { background: var(--sunken); color: var(--soft); }
.wa-card.off b { color: var(--ink); }
.qr-box { width: 240px; height: 240px; border-radius: 16px; background: #fff; display: grid; place-items: center; margin-top: 6px; }
.qr-box img { width: 220px; height: 220px; image-rendering: pixelated; }

/* 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 do lavador e do dono. */
@media (max-width: 860px) {
  .p-two, .hours-head { grid-template-columns: minmax(0, 1fr); }
  .hours-head { display: none; }
  .hours-row { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 8px 0; border-bottom: 1px solid var(--line); }
  .hours-row .check-row { grid-column: 1 / -1; }
  .picks.methods { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .day-label .lg { display: none; }
  .day-label .sm { display: inline; }
}

/* Painel estreito (o celular do lavador): 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 Realty 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 (no celular, "ninguém esperando lavador" virava "lav..."). */
.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; }
/* Escolher o cliente (Planos, opção A do Kayo, 22/10/2026; a mesma do clube do
   Pixel Barber): a busca, a lista ali mesmo e o cartão do escolhido com
   "Trocar". Cliente se cadastra em Clientes; aqui só se escolhe. */
.cp-search { display: flex; align-items: center; gap: 8px; margin: 0; }
.cp-search label { flex: 1; display: flex; align-items: center; gap: 8px; border: 1.5px solid #dfe3e9; border-radius: 12px; padding: 0 12px; background: #fff; color: var(--soft); min-width: 0; }
.cp-search label:focus-within { border-color: var(--t-primary); }
.cp-search input { border: 0; outline: 0; padding: 11px 0; font-size: 14.5px; flex: 1; min-width: 0; background: transparent; color: var(--ink); }
.cp-search input::-webkit-search-cancel-button { display: none; }
.js .cp-search [data-cp-submit] { display: none; }
.cp-list { display: flex; flex-direction: column; border: 1.5px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.cp-list:empty { display: none; }
.cp-list:has(> .cp-empty) { border: 0; background: transparent; }
.cp-row { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 11px 8px 8px; border-top: 1px solid var(--line); color: var(--ink); }
.cp-row:first-child { border-top: 0; }
.cp-row:hover, .cp-row:focus-visible { background: var(--sunken); outline: none; }
.cp-row b, .cp-chosen b { display: block; font-size: 13.5px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cp-row small, .cp-chosen small { display: block; font-size: 12px; font-weight: 600; color: var(--soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cp-row .pill { margin: 0; }
.cp-chosen { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 10px; align-items: center; border: 1.5px solid var(--t-primary); border-radius: 12px; padding: 8px 12px 8px 8px; background: #fff; }
.cp-swap { font-size: 12.5px; font-weight: 800; color: var(--t-action); }
.cp-empty { margin: 0; font-size: 12.5px; font-weight: 600; color: var(--soft); line-height: 1.5; }
.cp-empty a { color: var(--t-action); font-weight: 800; }
/* O veículo do plano: os do cliente em cartões; o que já tem plano fica apagado. */
.vpicks { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.vpick { position: relative; cursor: pointer; }
.vpick input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.vpick span { display: flex; flex-direction: column; gap: 1px; border: 1.5px solid #dfe3e9; border-radius: 12px; padding: 8px 10px; background: #fff; min-width: 0; }
.vpick b { font: 800 14px "Manrope", sans-serif; letter-spacing: .08em; }
.vpick small { font-size: 11.5px; font-weight: 600; color: var(--soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vpick input:checked + span { border-color: var(--t-primary); box-shadow: inset 0 0 0 1px var(--t-primary); }
.vpick input:focus-visible + span { outline: 3px solid var(--t-action); outline-offset: 2px; }
.vpick.off, .vpick.off input { cursor: not-allowed; }
.vpick.off span { opacity: .55; }
/* 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-ic { width: 40px; height: 40px; border-radius: 12px; background: var(--t-tint); display: grid; place-items: center; color: var(--t-primary); flex: none; overflow: hidden; }
.tile-ic svg.i { width: 20px; height: 20px; }
.tile-ic img { width: 100%; height: 100%; object-fit: cover; }
.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; }
/* Vencido no cartão (escolha 8 A): o vermelho só no quadradinho, no selo e no
   valor; o cartão continua branco. */
.tile-ic.bad { background: var(--bad); color: #fff; }
.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 ("+ Adicionar veículo", "+ Novo plano"): 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; }
.tile .plates { display: flex; gap: 6px 10px; flex-wrap: wrap; }
/* O estoque (escolha 12 B): o guardado em número grande e a barra até o mínimo, com a marca dele. */
.tile .stk-qty { font-size: 24px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.tile .stk-qty small { font-size: 13px; color: var(--soft); }
.tile .stk-qty.bad, .tile .stk-qty.bad small { color: var(--bad-deep); }
.lvl { position: relative; display: block; height: 7px; border-radius: 99px; background: var(--sunken); }
.lvl i { display: block; height: 100%; border-radius: 99px; background: var(--t-primary); }
.lvl i.low { background: var(--bad); }
.lvl em { position: absolute; top: -3px; width: 2px; height: 13px; border-radius: 1px; background: var(--soft); }
.lvl i.mid { background: var(--bill); }
/* O lucro por serviço (escolha 14 B) usa o mesmo cartão; os números do mês ficam dentro do miolo. */
.p-pad > .kpis { padding: 0; }
.tile.pf .stk-qty { margin-top: 2px; }
.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-end { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 13px; font-variant-numeric: tabular-nums; position: relative; z-index: 1; }
.q-end form { margin: 0; }
.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); }
.side-empty { background: #fff; border-radius: 14px; padding: 12px; font-size: 12.5px; color: var(--soft); font-weight: 600; text-align: center; }
.board-side .rv { border: 0; }
/* 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; }
/* "O que você usou?" (escolha 13 A): um produto por linha, com o menos e o mais.
   A linha zerada fica apagada. */
.use { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 12px; border: 1.5px solid var(--t-primary); border-radius: 14px; background: #fff; }
.use.off { border-color: var(--line); }
.use.off .use-t b, .use.off .use-t small { color: #9aa1ad; }
.use-t { min-width: 0; }
.use-t b { display: block; font-size: 14px; font-weight: 800; }
.use-t small { display: block; font-size: 11.5px; color: var(--soft); font-weight: 600; }
.step { display: inline-flex; align-items: center; border-radius: 12px; background: var(--sunken); }
.step-b { width: 40px; height: 40px; border: 0; background: transparent; border-radius: 12px; display: grid; place-items: center; color: var(--ink); cursor: pointer; }
.step-b svg.i { width: 18px; height: 18px; stroke-width: 2.6; }
.step input { width: 52px; border: 0; background: transparent; text-align: right; font: 800 14px "Manrope", sans-serif; color: var(--ink); padding: 0; outline: none; }
.step-u { font-size: 12.5px; font-weight: 800; color: var(--soft); padding: 0 2px 0 4px; min-width: 20px; }
.use-more summary { list-style: none; cursor: pointer; border: 1.5px dashed #c9cfd8; border-radius: 14px; padding: 11px 12px; display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; color: var(--t-primary); }
.use-more summary::-webkit-details-marker { display: none; }
.use-more summary svg.i { width: 16px; height: 16px; }
.use-more[open] summary { margin-bottom: 10px; }
.use-list { display: flex; flex-direction: column; gap: 10px; }
/* O tempo do lavador no Estoque: uma faixa no alto, fora dos produtos (17 B). */
.fixbar { background: #fff; border-radius: 16px; padding: 12px 14px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 16px; align-items: center; margin-bottom: 4px; }
.fix-t b, .fix-v b { display: block; font-size: 14px; font-weight: 800; }
.fix-t small, .fix-v small { display: block; font-size: 12px; color: var(--soft); font-weight: 600; }
.fix-v { text-align: right; }
.fix-v b { font-size: 20px; font-variant-numeric: tabular-nums; }
@media (max-width: 560px) {
  .fixbar { grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; }
  .fix-v { grid-column: 2; grid-row: 2; text-align: left; }
}
/* O tempo do lavador, em destaque no alto da gaveta (16 B): a hora e o minuto lado a lado, cada um na sua cápsula (escolha A, 26/10/2026). */
.work { border-radius: 16px; background: var(--t-tint); padding: 14px 14px 12px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.work-q { font-size: 15px; font-weight: 800; }
.work-row { display: flex; align-items: center; justify-content: center; gap: 12px; }
.work-g { display: flex; align-items: center; gap: 2px; background: #fff; border-radius: 16px; padding: 4px; }
.work-b { width: 38px; height: 48px; border: 0; border-radius: 12px; background: transparent; display: grid; place-items: center; color: var(--ink); cursor: pointer; }
.work-b svg.i { width: 18px; height: 18px; stroke-width: 2.6; }
.work-v { display: flex; align-items: baseline; justify-content: center; gap: 2px; min-width: 66px; }
.work-v input { width: 44px; border: 0; background: transparent; text-align: right; font: 800 32px/1 "Manrope", sans-serif; color: var(--ink); padding: 0; outline: none; }
.work-v small { font-size: 13px; font-weight: 800; color: var(--soft); }
.work-v:has(input:focus-visible) { outline: 3px solid var(--t-action); outline-offset: 4px; border-radius: 8px; }
.work-how { font-size: 11.5px; color: var(--soft); font-weight: 600; text-align: center; }
.use-cap { font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--soft); margin-top: 4px; }
/* O que o serviço costuma usar, na gaveta do serviço. */
.usual { display: flex; flex-direction: column; gap: 6px; }
.usual-row { display: grid; grid-template-columns: minmax(0, 1fr) 128px; gap: 10px; align-items: center; font-size: 13px; font-weight: 700; }
.usual-in { display: flex; align-items: center; gap: 6px; }
.usual-in input { width: 100%; min-width: 0; border: 1.5px solid #dfe3e9; border-radius: 12px; padding: 9px 11px; font-size: 14px; background: #fff; outline: 0; text-align: right; }
.usual-in input:focus { border-color: var(--t-primary); }
.usual-in small { font-size: 12px; font-weight: 800; color: var(--soft); min-width: 20px; }
/* A conta do lucro na OS: a linha do total. */
.kv.tot { border-top: 1.5px solid var(--line); padding-top: 8px; margin-top: 2px; font-size: 13.5px; color: var(--ink); }
.kv.tot b { font-size: 15px; }
.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; }
}

/* ================================================= o lava-jato (Pixel Realty) */

/* A placa só com as letras e os números, em negrito (21/10/2026): o desenho da
   Mercosul (a faixa azul e o contorno) o Kayo não quis, "só os números". */
.plate { display: inline-block; font: 800 12px "Manrope", sans-serif; letter-spacing: .08em; color: var(--soft); font-variant-numeric: tabular-nums; white-space: nowrap; }
.plate b { font: inherit; }
.plate.big { font-size: 17px; letter-spacing: .1em; color: var(--ink); }
.plates { display: inline-flex; gap: 4px 10px; flex-wrap: wrap; }
.bigplate { border: 2px solid #dfe3e9; border-radius: 16px; background: #fff; display: flex; width: 100%; max-width: 340px; }
.bigplate input { border: 0; background: transparent; font: 900 34px/1 "Figtree", sans-serif; letter-spacing: .12em; text-align: center; padding: 14px 0 15px .12em; color: var(--ink); text-transform: uppercase; width: 100%; font-variant-numeric: tabular-nums; border-radius: 14px; }
.bigplate input:focus-visible { outline: none; }
.bigplate:focus-within { border-color: var(--t-primary); }
.bigplate input::placeholder { color: #c3cad3; }

/* ------------------------------------------------------------ o pátio */

/* Escolha 1 A: quatro colunas, e o cartão anda da esquerda para a direita. Na
   7 A, as colunas no tom da casa e o veículo em cartão branco com o
   quadradinho da hora que importa: chegou, sai ou pronto; vermelho se passou
   da hora de sair. */
.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-t { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.car .md { font-size: 14px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.car-t small { font-size: 11.5px; font-weight: 600; color: var(--soft); 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; }
.car-marks:empty { display: none; }
.car-marks .mk { margin: 0 6px 0 0; }
.mk.warn { color: var(--bill); }
.car-ft { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; min-height: 30px; flex-wrap: wrap; }
.car-ft .soft { color: var(--soft); font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.car-ft .soft svg.i { width: 14px; height: 14px; }
.car-ft .due { color: var(--bad-deep); font-weight: 800; }
.car-ft .crew { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; }
.car-ft form { margin: 0; }
.car-ft > :last-child:is(form, a, .ics) { margin-left: auto; }
.car-ft .ics { color: var(--soft); font-size: 11.5px; }
.car-ft .b-sm svg.i { width: 13px; height: 13px; stroke-width: 2.4; }
.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; }
/* Os marcados de hoje, embaixo do pátio: cartõezinhos com a hora. */
.agd { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.agd-l { font: 800 11px "Manrope", sans-serif; letter-spacing: .1em; text-transform: uppercase; color: var(--soft); margin-right: 4px; }
.agd .soft { color: var(--soft); font-size: 13px; font-weight: 600; }
.agd .it { display: inline-flex; gap: 9px; align-items: center; background: #fff; border-radius: 12px; padding: 5px 12px 5px 5px; min-width: 0; color: var(--ink); }
.agd .it b { display: block; font-size: 12.5px; font-weight: 800; }
.agd .it small { display: block; font-size: 11px; font-weight: 600; color: var(--soft); }
.agd .it:hover, .agd .it:focus-visible { box-shadow: inset 0 0 0 1.5px var(--t-primary); outline: none; }

/* ------------------------------------------------- a entrada do carro */

.p-pad.narrow { max-width: 880px; width: 100%; margin: 0 auto; }
.e-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.e-steps li { font: 800 11px "Manrope", sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--soft); border-top: 3px solid var(--line); padding-top: 7px; }
.e-steps li.on { color: var(--ink); border-color: var(--t-action); }
.e-steps li.done { color: var(--ink); border-color: var(--t-primary); }
.entry-plate { align-items: center; gap: 16px; padding: 28px 20px; }
.entry-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.entry-head > .p-btn { margin-left: auto; }
.entry-head b { display: block; font-size: 15px; }
.entry-head small { display: block; font-size: 12.5px; }
.known { background: var(--t-sand); border-radius: 14px; padding: 11px 13px; display: flex; flex-direction: column; gap: 4px; }
.known b { font-size: 14.5px; }
.known span { font-size: 12.5px; color: var(--soft); }
.known .ok-line { display: flex; align-items: center; gap: 6px; font-weight: 700; color: var(--t-primary); }
.known .ok-line.bad { color: var(--bad); }
.known .ok-line svg.i { width: 15px; height: 15px; stroke-width: 2.4; }
.picks.sizes { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.picks.sizes .pick-card { gap: 3px; padding: 10px 6px; }
.picks.sizes .pick-card svg.i { width: 28px; height: 28px; color: var(--t-primary); stroke-width: 1.6; }
.picks.sizes .pick-card small { font-size: 11px; color: var(--soft); line-height: 1.25; }
.p-sub { font: 800 11px "Manrope", sans-serif; letter-spacing: .1em; text-transform: uppercase; color: var(--soft); margin-top: 4px; }
.svc-checks { display: flex; flex-direction: column; gap: 6px; }
.svc-row { grid-template-columns: 24px minmax(0, 1fr) auto; align-items: center; border: 1.5px solid var(--line); border-radius: 13px; padding: 9px 12px; }
.svc-row > span { font-size: 12.5px; }
.svc-row em { font-style: normal; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; font-size: 13.5px; }
.svc-row:has(input:checked) { border-color: var(--t-primary); background: var(--t-sand); }
.svc-row.off { opacity: .5; cursor: not-allowed; }
.svc-row.off em { font-weight: 600; color: var(--soft); }
.checks.inline { display: flex; flex-wrap: wrap; gap: 10px 20px; }
.checks.inline .check-row { align-items: center; }

/* ---------------------------------------------------------- a vistoria */

/* Escolha 2 A: o carro visto de cima, a frente à direita. Toca na parte, a
   folha sobe com o tipo, a foto e a observação. */
.carbox { background: var(--t-sand); border-radius: 16px; padding: 10px 12px 6px; }
.carmap { width: 100%; height: auto; display: block; max-width: 640px; margin: 0 auto; }
.carmap .gapbg { fill: #b4bec8; }
.carmap .z { fill: #e9edf1; }
.carmap .glass { fill: #c3d5e6; }
.carmap .tire { fill: #2b3138; }
.carmap .mirror { fill: #e9edf1; stroke: #b4bec8; stroke-width: 1.5; }
.carmap .hit { fill: #ffe1e1; }
.carmap .tire.hit { fill: #c92a2a; }
.carmap.live [data-part] { cursor: pointer; }
.carmap.live [data-part]:hover, .carmap.live [data-part]:focus-visible, .carmap [data-part].sel { fill: #ffd9c4; outline: none; }
.carmap.live .tire[data-part]:hover, .carmap.live .tire[data-part]:focus-visible, .carmap .tire.sel { fill: var(--t-action); }
.carmap .mk { pointer-events: none; }
.carmap .mk circle { fill: var(--bad); }
.carmap .mk text { fill: #fff; font: 800 11px "Figtree", sans-serif; text-anchor: middle; }
.carmap .lb { fill: var(--soft); font: 800 8.5px "Figtree", sans-serif; letter-spacing: .12em; }
.marks { display: flex; flex-direction: column; border: 1.5px solid var(--line); border-radius: 14px; overflow: hidden; }
.mrow { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.mrow:first-child { border-top: 0; }
.mrow > i { font-style: normal; width: 22px; height: 22px; border-radius: 50%; background: var(--bad); color: #fff; display: grid; place-items: center; font: 800 11.5px "Figtree", sans-serif; flex: none; }
.mrow > div { min-width: 0; flex: 1; }
.mrow b { display: block; font-size: 13.5px; }
.mrow small { display: block; font-size: 12px; color: var(--soft); }
.mrow form { margin: 0; }
.mrow-shots { display: flex; gap: 6px; flex-wrap: wrap; }
.sides { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.side-slot { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.side-slot small { font-size: 11.5px; font-weight: 700; color: var(--soft); }
.side-slot .shot { width: 100%; height: 76px; }
.shot { position: relative; width: 66px; height: 52px; border-radius: 11px; background: #3d4651; overflow: hidden; display: grid; place-items: center; flex: none; color: #fff; }
.shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shot.add { background: #fff; border: 1.5px dashed #b6c2cc; color: var(--t-primary); margin: 0; }
.shot.add label { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; width: 100%; height: 100%; cursor: pointer; font-size: 11px; font-weight: 800; }
.shot.add label svg.i { width: 19px; height: 19px; }
.shot.add input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.shot.add .p-btn { position: absolute; left: 2px; right: 2px; bottom: 2px; padding: 2px; font-size: 10px; }
.shot.add.sending { opacity: .55; pointer-events: none; }
.shot.has-img form { position: absolute; top: 3px; right: 3px; margin: 0; }
.shot-x { width: 22px; height: 22px; border: 0; border-radius: 50%; background: var(--bad); color: #fff; display: grid; place-items: center; padding: 0; }
.shot-x svg.i { width: 13px; height: 13px; stroke-width: 2.6; }
.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; }
.photo-pick { position: relative; align-self: flex-start; }
.photo-pick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

/* ---------------------------------------------------------------- a OS */

.p-col { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.p-inline-note { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.p-inline-note form { margin: 0 0 0 auto; }
.p-more { border-top: 1px solid var(--line); padding-top: 10px; }
.p-more summary { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 800; color: var(--t-primary); cursor: pointer; list-style: none; }
.p-more summary::-webkit-details-marker { display: none; }
.p-more summary svg.i { width: 16px; height: 16px; }
.p-more[open] summary { margin-bottom: 10px; }
.crew { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: 13px; font-weight: 700; }
.crew .ps { display: inline-flex; align-items: center; gap: 6px; }
.thumbs { display: flex; gap: 6px; flex-wrap: wrap; }
.thumbs a { width: 64px; height: 50px; border-radius: 10px; overflow: hidden; background: #3d4651; display: block; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.print-state { font-size: 13px; font-weight: 700; border-radius: 11px; padding: 9px 12px; color: #fff; }
.print-state.waiting { background: var(--bill); }
.print-state.printed { background: var(--ok); }
.print-state.failed { background: var(--bad); }
.kv.diff b { color: var(--bad); }
.pzs { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.pz { display: inline-flex; align-items: baseline; gap: 4px; background: var(--sunken); border-radius: 8px; padding: 3px 8px; font-size: 12px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.pz small { font-size: 10.5px; font-weight: 700; color: var(--soft); }
.pz.off { color: var(--soft); font-weight: 600; }

/* ------------------------------------------------------- a nota fiscal */

.nfse-row { display: flex; flex-direction: column; gap: 6px; padding: 10px 0; border-top: 1px solid var(--line); }
.nfse-row:first-of-type { border-top: 0; padding-top: 0; }
.nfse-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.nfse-head b small { font-weight: 600; color: var(--soft); }
.nfse-answer { font-size: 12.5px; white-space: pre-line; border-radius: 10px; padding: 8px 10px; background: var(--sunken); }
.nfse-answer.bad { background: var(--bad); color: #fff; font-weight: 700; }
.nfse-cancel summary { list-style: none; display: inline-flex; }
.nfse-cancel summary::-webkit-details-marker { display: none; }
.nfse-cancel[open] summary { margin-bottom: 10px; }
.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; }
  .sides { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .picks.sizes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@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.acts-sm { --acts: 160px; }
.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 gaveta: cada serviço com a caixinha e o preço, e o total ao vivo. */
.q-svcs { display: flex; flex-direction: column; gap: 6px; }
.q-svc { position: relative; display: grid; grid-template-columns: 24px minmax(0, 1fr) 112px; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 12px; background: var(--sunken); cursor: pointer; }
.q-svc.on { background: #fff; box-shadow: inset 0 0 0 1.5px var(--t-primary); }
.q-svc.none { opacity: .55; }
.q-svc input[type="checkbox"] { position: absolute; left: 10px; width: 24px; height: 24px; opacity: 0; margin: 0; cursor: pointer; }
.q-svc i { width: 24px; height: 24px; border-radius: 7px; border: 2px solid #d5dbe4; display: grid; place-items: center; color: #fff; background: #fff; }
.q-svc i svg { width: 15px; height: 15px; stroke-width: 3; opacity: 0; }
.q-svc input:checked + i { background: var(--t-primary); border-color: var(--t-primary); }
.q-svc input:checked + i svg { opacity: 1; }
.q-svc input:focus-visible + i { outline: 3px solid var(--t-action); outline-offset: 2px; }
.q-svc-n { min-width: 0; }
.q-svc-n b { display: block; font-size: 13.5px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.q-svc-n small { display: block; font-size: 11.5px; color: var(--soft); font-weight: 600; }
.q-svc-p { width: 100%; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; padding: 8px 10px; text-align: right; font: 800 13.5px "Manrope", sans-serif; color: var(--ink); font-variant-numeric: tabular-nums; }
.q-svc-p:focus { outline: none; border-color: var(--t-primary); }
.q-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--t-tint); }
.q-total span { font-size: 13px; font-weight: 800; color: var(--soft); }
.q-total b { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
/* O número do orçamento na ficha do cliente: link na cor da casa, sem sublinhado. */
.kv-link { color: var(--t-primary); font-weight: 800; text-decoration: none; }
.kv-link:hover { text-decoration: none; color: var(--t-deep); }

/* ------------------------------------------------- a tela do lavador (2 A)
   Uma página de celular (escolha 2 A do Kayo, 23/10/2026, a mesma do barbeiro
   do Barber): o alto do link do cliente, o miolo do pátio 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 "Lucro do
   mês" dos Relatórios): 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 (o lucro dos Relatórios) 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 do "O que você usou?" 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-shop { font-size: 15px; font-weight: 700; opacity: .9; }
.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 lavador sempre; o dono e o atendente 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 quatro etapas do pátio: duas por linha (2 + 2) e, com lugar, as quatro numa linha; nunca três, que deixava o Pronto sozinho. */
  .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ó (o Caixa do lavador) 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 Realty */

/* 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; }

/* Os imóveis em cartões com foto (escolha 1 A do Kayo, 26/10/2026): os itens
   têm o tamanho do celular e cabem mais por linha no tablet e no computador. */
.grid-im { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.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; }
.im-ph { display: block; width: 100%; aspect-ratio: 4 / 3; border-radius: 12px; object-fit: cover; background: var(--t-tint); }
.im-ph.none, .im-th.none { display: grid; place-items: center; color: var(--t-primary); }
.im-ph.none svg.i { width: 54px; height: 54px; stroke-width: 1.4; }
.im-tags { position: absolute; top: 16px; left: 16px; right: 16px; display: flex; flex-wrap: wrap; gap: 4px; pointer-events: none; }
.im-tags .pill { margin: 0; }
.im-bd { padding: 0 6px 6px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.im-bd b { font-size: 14px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.im-bd small { font-size: 12px; font-weight: 600; color: var(--soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.im-bd .pr { font-size: 17px; font-weight: 800; color: var(--t-deep); font-variant-numeric: tabular-nums; }
.im-bd .pr small, .im-bd .pr-alt small { display: inline; font-size: 12px; font-weight: 700; color: var(--soft); }
.im-bd .pr-alt { font-size: 12.5px; font-weight: 700; color: var(--soft); margin-top: -3px; }
.feat { display: flex; gap: 12px; font-size: 12px; font-weight: 700; color: var(--soft); flex-wrap: wrap; }
.feat span { display: inline-flex; gap: 4px; align-items: center; }
.feat svg.i { width: 15px; height: 15px; }

/* A linha do imóvel no Início: a foto pequena, o nome, o selo na coluna dele e o preço. */
.ln.im-ln { grid-template-columns: 64px minmax(0, 440px) 132px minmax(110px, 1fr); }
.im-th { width: 64px; height: 46px; border-radius: 10px; object-fit: cover; background: var(--t-tint); }
.im-th.none svg.i { width: 22px; height: 22px; }
.ln .st-col { display: flex; }
.ln .st-col .pill { margin: 0; }

/* A tela do imóvel: as fotos em grade, a capa marcada, os botões embaixo de cada uma. */
.ph-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.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; }
.ph-up .drop { background: #fff; }
.ph-progress { position: relative; z-index: 1; margin-left: auto; font-size: 12.5px; font-weight: 800; color: var(--t-primary); }
.ph-up.sending .drop { opacity: .85; pointer-events: none; }
.im-desc { font-size: 13.5px; line-height: 1.6; white-space: pre-line; color: #2b3445; }
.feat-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px 14px; font-size: 13px; font-weight: 700; }
.feat-list span { display: inline-flex; align-items: center; gap: 7px; }
.feat-list svg.i { width: 16px; height: 16px; color: var(--ok); stroke-width: 2.6; }
.im-head { display: flex; flex-wrap: wrap; gap: 4px; }
.im-head .pill { margin: 0; }
.im-prices { display: flex; flex-direction: column; gap: 6px; }
.im-prices small { display: block; font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--soft); }
.im-prices b { font-size: 22px; font-weight: 800; color: var(--t-deep); font-variant-numeric: tabular-nums; }
.im-prices b small { display: inline; font-size: 13px; letter-spacing: 0; text-transform: none; }
.kv.col { flex-direction: column; gap: 3px; }
.kv.col b { text-align: left; line-height: 1.45; }
.field-row.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.field-row > .field-row { gap: 8px; grid-template-columns: minmax(0, 1fr) 64px; }

@media (max-width: 760px) {
  .field-row.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* No celular (a tela do corretor 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; }
.s-main .ln.im-ln { grid-template-columns: 64px minmax(0, 1fr) auto; }
.s-main .ln.im-ln .end { display: none; }

/* O "Escrever com a IA" ao lado do rótulo da descrição (escolha 1 do Kayo, 26/10/2026). */
.label-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.ai-go { padding: 6px 10px; font-size: 12px; }
.ai-go svg.i { width: 15px; height: 15px; color: var(--t-action); }
.ai-go:disabled svg.i { animation: ai-turn 1.2s linear infinite; }
@keyframes ai-turn { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ai-go:disabled svg.i { animation: none; } }

/* Atendimentos: o funil em colunas (escolha 2 A do Kayo, 26/10/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; }
.ln.im-ln.acts-ln { grid-template-columns: 64px minmax(0, 1fr) minmax(110px, auto) auto; }
.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; }
a.kv-link { color: var(--t-primary); font-weight: 800; }
@media (max-width: 1240px) {
  .cols.c5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.s-main .cols.c5 { grid-template-columns: minmax(0, 1fr); }
.s-main .ln.im-ln.acts-ln { grid-template-columns: 64px minmax(0, 1fr) auto; }
.s-main .ln.im-ln.acts-ln .end { display: none; }

/* Contratos (escolha 1 B do Kayo, 27/10/2026): os cartões com a foto e a barra do prazo. */
.cgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.cc { position: relative; background: #fff; border-radius: 16px; padding: 8px; display: flex; flex-direction: column; gap: 8px; color: var(--ink); }
.cc:has(> .tile-link):hover { box-shadow: inset 0 0 0 1.5px var(--t-primary); }
.cc-ph { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: top; border-radius: 12px; background: var(--t-tint); }
.cc-ph.none { display: grid; place-items: center; color: var(--t-primary); }
.cc-ph.none svg.i { width: 48px; height: 48px; stroke-width: 1.4; }
/* Tablet (regra do Kayo, 26/10/2026): os cartões de Imóveis e de Contratos do
   tamanho do celular, mais por linha, e os que sobram na última linha esticam
   até a borda, sem buraco do lado. A foto do cartão esticado não passa de 300 px
   de altura. */
@media (min-width: 600px) and (max-width: 1100px) {
  .grid-im, .cgrid { display: flex; flex-wrap: wrap; }
  .grid-im > .im { flex: 1 1 230px; }
  .cgrid > .cc { flex: 1 1 260px; }
  .im-ph, .cc-ph { max-height: 300px; }
}
.cc-tag { position: absolute; top: 16px; left: 16px; pointer-events: none; }
.cc-tag .pill, .cc-bd .pill { margin: 0; }
.cc-bd { padding: 0 6px 6px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cc-rent { font-size: 18px; font-weight: 800; color: var(--t-deep); font-variant-numeric: tabular-nums; }
.cc-rent small { font-size: 12px; font-weight: 700; color: var(--soft); }
.cc-t { font-size: 14px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc-t a, .cc-who a { color: var(--ink); }
.cc-bd > small { font-size: 12px; font-weight: 600; color: var(--soft); }
.cc-who { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; font-size: 12px; }
.cc-who span { background: var(--sunken); border-radius: 10px; padding: 6px 8px; min-width: 0; color: var(--soft); font-weight: 600; }
.cc-who b { display: block; font-size: 12.5px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc-term { height: 6px; border-radius: 99px; background: #eef1f5; overflow: hidden; }
.cc-term i { display: block; height: 100%; background: var(--t-primary); border-radius: 99px; }
.cc-dates { display: flex; justify-content: space-between; font-size: 11.5px; font-weight: 700; color: var(--soft); }
.cc-head { flex-direction: row; align-items: stretch; gap: 14px; }
.cc-head .cc-ph { width: 260px; flex: none; aspect-ratio: 4 / 3; }
.cc-head .cc-bd { flex: 1; padding: 4px 0; justify-content: center; }

/* 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; }

/* Repasses (escolha 4 B): as colunas por situação, um cartão por proprietário. */
.cols.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.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; }
.s-main .cols.c3 { grid-template-columns: minmax(0, 1fr); }
.s-main .cc-head { flex-direction: column; }
.s-main .cc-head .cc-ph { width: 100%; }
/* 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; }

/* Chaves (escolha 5 A): o gancho, o imóvel, a situação, quem levou, a volta e o botão. */
.ln.kf { grid-template-columns: 46px minmax(0, 260px) 132px minmax(0, 1fr) minmax(0, 1fr) minmax(130px, auto); }
.ln.kf .blk small { letter-spacing: 0; font-size: 8.5px; }
/* Na tela estreita (o tablet) ou com a gaveta aberta: larguras fixas, para o selo e a volta ficarem na mesma coluna em toda linha; o nome fica com o resto. */
.p-split .ln.kf { grid-template-columns: 46px minmax(0, 1fr) 90px 140px 172px 116px; }
@media (max-width: 1000px) {
  .ln.kf { grid-template-columns: 46px minmax(0, 1fr) 90px 140px 172px 116px; }
}
.s-main .ln.kf { grid-template-columns: 46px minmax(0, 1fr); }
.s-main .ln.kf > :nth-child(5), .s-main .ln.kf > :nth-child(6) { grid-column: 2; }
.s-main .ln.kf > .none { display: none; }

/* A vistoria (escolha 3 B): um cômodo por vez, como no desenho. */
.vs { display: flex; flex-direction: column; gap: 12px; max-width: 720px; }
.vs-step { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 12.5px; font-weight: 800; color: var(--soft); letter-spacing: .06em; text-transform: uppercase; }
.vs-bar { height: 8px; border-radius: 99px; background: #e3e9ef; overflow: hidden; }
.vs-bar i { display: block; height: 100%; background: var(--ok); border-radius: 99px; }
.vs-photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.vs-photos img { width: 100%; aspect-ratio: 1; border-radius: 12px; object-fit: cover; display: block; }
.vs-shot { margin: 0; }
.vs-shot label { position: relative; width: 100%; aspect-ratio: 1; border-radius: 12px; border: 2px dashed #c3ccd6; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--t-primary); font-size: 11.5px; font-weight: 800; text-align: center; cursor: pointer; }
.vs-shot label svg.i { width: 22px; height: 22px; }
.vs-shot input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.vs-shot.sending label { opacity: .6; }
.vs-item { background: #fff; border-radius: 14px; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; margin: 0; }
.vs-item > b { font-size: 14px; font-weight: 800; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.vs-item > b small { font-size: 11.5px; font-weight: 700; color: var(--soft); }
.vs-seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.vs-seg button { border: 1.5px solid var(--line); border-radius: 10px; padding: 8px 0; font: 800 13px var(--f, "Manrope"), sans-serif; color: var(--soft); background: #fff; cursor: pointer; }
.vs-seg button:disabled { cursor: default; }
.vs-seg button.on.ok { background: var(--ok); border-color: var(--ok); color: #fff; }
.vs-seg button.on.mid { background: var(--bill); border-color: var(--bill); color: #fff; }
.vs-seg button.on.bad { background: var(--bad); border-color: var(--bad); color: #fff; }
.vs-note { font: 600 12.5px var(--f, "Manrope"), sans-serif; color: var(--ink); border: 1.5px solid var(--line); border-radius: 10px; padding: 8px 10px; background: #fff; }
.vs-note::placeholder { color: var(--soft); }
.vs-top { display: flex; flex-direction: column; gap: 8px; background: #fff; border-radius: 16px; padding: 14px; }
.vs-top b { font-size: 15px; font-weight: 800; }
.vs-top small { font-size: 12.5px; color: var(--soft); font-weight: 600; }
.vs-row { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; gap: 12px; align-items: center; background: #fff; border-radius: 16px; padding: 9px 12px 9px 9px; color: var(--ink); }
.vs-row:hover { box-shadow: inset 0 0 0 1.5px var(--t-primary); }
.vs-row b { display: block; font-size: 14px; font-weight: 800; }
.vs-row small { display: block; font-size: 12px; color: var(--soft); font-weight: 600; }
.vs-row .th { display: flex; gap: 4px; }
.vs-row .th img { width: 40px; height: 30px; border-radius: 6px; object-fit: cover; }
.vs-row > svg.i { width: 18px; height: 18px; color: var(--soft); }
.vs-row .blk svg.i { width: 22px; height: 22px; stroke-width: 3; color: #fff; }
.vs-add { display: flex; gap: 8px; }
.vs-add input { flex: 1; min-width: 0; border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 12px; font: 600 13px var(--f, "Manrope"), sans-serif; background: #fff; }
.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; }
}
