* { box-sizing: border-box; margin: 0; padding: 0; }
:root { --bg:#0a0a0b; --card:#141416; --line:#26262b; --muted:#8a8a92; --txt:#ececf0; --green:#1fc26b; --red:#ef4444; --blue:#9cc7ff; }
html { -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--txt); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; min-height: 100vh;
  -webkit-tap-highlight-color: transparent; overscroll-behavior-y: contain; }
.hidden { display: none !important; }

/* toque de app nativo: sem delay de 300ms, sem seleção nos controles,
   e um micro "press" ao encostar. Vale desktop e mobile. */
button, .tab, .btn, .mini, .chip, .badge { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; touch-action: manipulation; }
.btn, .mini, .tab, .chip { transition: transform .12s ease, opacity .12s ease, border-color .12s ease, background .12s ease; }
.btn:active, .mini:active, .chip:active { transform: scale(.975); }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* cards centrais (login / mfa) */
.card { max-width: 380px; margin: 8vh auto; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 32px 28px; }
.card h1 { font-size: 22px; margin-bottom: 6px; }
.adm { color: var(--txt); font-weight: 800; }
.sub { color: var(--muted); font-size: 14px; line-height: 1.5; margin-bottom: 18px; }
.hint { color: var(--muted); font-size: 12px; margin-top: 12px; line-height: 1.5; }
code { color: var(--txt); font-family: ui-monospace, Menlo, monospace; word-break: break-all; }

.field { width: 100%; padding: 12px 14px; background: #0e0e10; border: 1px solid var(--line); border-radius: 10px; color: var(--txt); font-size: 15px; outline: none; }
.field:focus { border-color: #4a4a52; }
.field.code { text-align: center; letter-spacing: 8px; font-size: 22px; font-family: ui-monospace, Menlo, monospace; }
.field.sm-field { width: auto; padding: 8px 10px; font-size: 13px; }
.field.grow { flex: 1; min-width: 160px; }
select.field { cursor: pointer; }

/* barra de ferramentas dos painéis (filtros / busca / ações) */
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.month-nav { display: flex; align-items: center; gap: 4px; }
.hint.chk { display: flex; align-items: center; gap: 6px; margin: 0; cursor: pointer; white-space: nowrap; }
.hint.chk-line { display: flex; gap: 8px; align-items: center; margin: 0 0 8px; cursor: pointer; }
.summary { color: var(--muted); font-size: 13px; margin: 0 0 12px; }
.summary b { color: var(--txt); }
.count { color: var(--muted); font-size: 13px; font-weight: 500; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 12px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 10px; background: #1c1c20; color: var(--txt); font-size: 15px; font-weight: 600; cursor: pointer; }
.btn:hover { border-color: #3a3a42; }
.btn.primary { background: #fff; color: #0a0a0b; border: none; }
.btn.primary:hover { opacity: .9; }
.btn.ghost { background: transparent; }
.btn.danger { background: var(--red); border: none; color: #fff; }
.btn.sm { width: auto; margin: 0; padding: 7px 12px; font-size: 13px; }
.btn:disabled { opacity: .6; cursor: default; }

.msg { margin-top: 10px; font-size: 13px; min-height: 18px; }
.msg.ok { color: var(--green); } .msg.err { color: var(--red); }
.qr { display: flex; justify-content: center; margin: 8px 0; }
.qr svg, .qr img { width: 196px; height: 196px; background: #fff; border-radius: 10px; padding: 8px; }

/* turnstile */
#login-turnstile { display: flex; justify-content: center; margin-top: 14px; min-height: 1px; }

/* "cole o link do e-mail" (necessário no PWA do iOS) */
.paste { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; }
.paste > summary { color: var(--muted); font-size: 12.5px; cursor: pointer; list-style: none; }
.paste > summary::-webkit-details-marker { display: none; }
.paste > summary::before { content: "＋ "; }
.paste[open] > summary::before { content: "－ "; }
.paste > summary:hover { color: var(--txt); }
.paste .field { margin-top: 12px; }

/* app */
#app { max-width: 1120px; margin: 0 auto; padding: 18px 18px 60px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--bg); z-index: 10; padding-top: 4px; }
.brand { display: inline-flex; align-items: center; line-height: 0; flex-shrink: 0; }
.brand img { height: 24px; width: auto; display: block; }
.topright { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.who { color: var(--muted); font-size: 13px; }

/* abas de navegação */
.tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { padding: 8px 14px; border: none; border-radius: 999px; background: transparent; color: var(--muted); font-size: 13.5px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.tab:hover { color: var(--txt); background: #1c1c20; }
.tab.active { background: #1c1c20; color: var(--txt); border: 1px solid var(--line); }

.tab .ti { display: none; width: 22px; height: 22px; flex-shrink: 0; }

.view { margin-top: 20px; }
.view-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; gap: 10px; }
.view-head h2 { font-size: 18px; }
.ov-meta { display: none; color: var(--muted); font-size: 13px; }

/* conta/sair — só aparece no mobile, onde a topbar vira tab bar */
.m-account { display: none; align-items: center; justify-content: space-between; gap: 12px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); }

/* KPIs da visão geral */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.kpi .k { display: block; color: var(--muted); font-size: 12px; margin-bottom: 6px; }
.kpi .v { font-size: 22px; font-weight: 700; }
.kpi .s { display: block; color: var(--muted); font-size: 11.5px; margin-top: 4px; }

/* ===== gráficos de linha (dia / mês / total) =====
   SVG inline, sem lib. O viewBox é esticado (preserveAspectRatio=none), então
   a posição de qualquer ponto vira % direto — é assim que o ponto e a régua
   de arraste ficam alinhados com a linha em qualquer largura de tela. */
.trends { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 18px; }
.tskel { height: 190px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; opacity: .5; }
.tcard { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 14px 12px; min-width: 0; }
.tcard-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tcard-k { color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .01em; }
.tcard-v { display: block; font-size: 23px; font-weight: 700; letter-spacing: -.025em; margin: 5px 0 2px; font-variant-numeric: tabular-nums; }
.tcard-sub { display: block; color: var(--muted); font-size: 11.5px; line-height: 1.4; min-height: 16px; }
.tcard.scrub .tcard-v { color: var(--blue); }

.delta { font-size: 11.5px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: #232329; color: var(--muted); white-space: nowrap; }
.delta.up { background: rgba(31,194,107,.14); color: var(--green); }
.delta.down { background: rgba(239,68,68,.12); color: #ff8585; }

.lc-wrap { padding: 0 6px; height: 92px; margin-top: 10px; touch-action: pan-y; cursor: crosshair; }
.lc-inner { position: relative; height: 100%; }
.lc { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.lc-dot { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--txt); box-shadow: 0 0 0 3.5px rgba(236,236,240,.14); transform: translate(-50%, -50%); pointer-events: none; }
.lc-cur { position: absolute; top: 0; bottom: 0; width: 1px; background: #45454f; opacity: 0; pointer-events: none; }
.tcard.scrub .lc-cur { opacity: 1; }
.tcard.scrub .lc-dot { background: var(--blue); box-shadow: 0 0 0 3.5px rgba(156,199,255,.18); }
.lc-axis { display: flex; justify-content: space-between; color: #5c5c64; font-size: 10.5px; margin-top: 7px; padding: 0 2px; }

/* gráfico de barras (faturamento por mês) */
.chart { display: flex; align-items: flex-end; gap: 12px; height: 200px; padding: 8px 4px 0; }
.chart .empty { width: 100%; text-align: center; color: var(--muted); align-self: center; }
.cbar { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; min-width: 0; }
.cbar .cval { font-size: 11.5px; color: var(--muted); margin-bottom: 5px; white-space: nowrap; font-weight: 400; }
.cbar .cval b { font-weight: inherit; }
.cbar .cabbr { display: none; }
.cbar.now .cval { color: var(--txt); font-weight: 700; }
.cbar .cfill { width: 100%; max-width: 72px; background: #2c2c33; border-radius: 8px 8px 3px 3px; min-height: 3px; transition: height .3s ease; }
.cbar.now .cfill { background: #fff; }
.cbar .clabel { font-size: 11.5px; color: var(--muted); margin-top: 7px; text-transform: capitalize; white-space: nowrap; }
.cbar .ccount { font-size: 10.5px; color: #5c5c64; margin-top: 1px; white-space: nowrap; }

.panel { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; gap: 12px; flex-wrap: wrap; }
.panel-head h2 { font-size: 17px; }
.table-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { text-align: left; color: var(--muted); font-weight: 600; font-size: 12px; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 10px; border-bottom: 1px solid #1c1c20; vertical-align: middle; }
.tbl tbody tr:hover td { background: #17171a; }
.tbl td.email { font-weight: 600; }
.tbl .empty { text-align: center; color: var(--muted); padding: 28px; }
.badge { font-size: 11.5px; padding: 3px 9px; border-radius: 999px; font-weight: 600; white-space: nowrap; }
.badge.on { background: rgba(31,194,107,.15); color: var(--green); }
.badge.off { background: #232329; color: var(--muted); }
.badge.blue { background: #1e3a5f; color: var(--blue); }
.badge.warn { background: rgba(239,68,68,.12); color: #ff8585; }
.acts { display: flex; gap: 6px; white-space: nowrap; justify-content: flex-end; }
.mini { padding: 5px 9px; font-size: 12px; border: 1px solid var(--line); border-radius: 7px; background: #1c1c20; color: var(--txt); cursor: pointer; }
.mini:hover { border-color: #3a3a42; }
.mini.danger { color: #ff8585; border-color: #50232a; }

/* formulários dos modais */
.modal-title { font-size: 18px; margin-bottom: 16px; }
.flabel { display: block; color: var(--muted); font-size: 12px; margin: 0 0 5px; }
.modal-box .field { margin-bottom: 12px; }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
/* lista de order bumps no modal de produto */
.bumps-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; }
/* sem isto o flex esmaga o botão e o rótulo quebra em "+ Adicionar / bump" */
.bumps-head .btn { flex-shrink: 0; white-space: nowrap; }
.bump-row { border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-bottom: 8px; background: #141418; }
.bump-row-top { display: flex; gap: 8px; align-items: center; }
.bump-row-top select { flex: 1; min-width: 0; }
.bump-row-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.bump-row .field { margin: 0; }
.bump-row .flabel { font-size: 11px; margin-bottom: 4px; }
.bump-del {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 9px; cursor: pointer;
  border: 1px solid var(--line); background: #1c1c20; color: var(--red);
  font-size: 17px; line-height: 1; display: flex; align-items: center; justify-content: center;
}
.bump-del:hover { border-color: var(--red); }
.bumps-vazio { color: var(--muted); font-size: 13px; padding: 10px 0; }
@media (max-width: 760px) { .bump-row-grid { grid-template-columns: 1fr; } }

/* botão de copiar o link da oferta (aba Produtos) */
.copylink {
  display: inline-flex; align-items: center; gap: 7px; max-width: 100%;
  padding: 6px 10px; border: 1px solid var(--line); border-radius: 9px;
  background: #1c1c20; color: var(--txt); cursor: pointer;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px;
}
.copylink:hover { border-color: #3a3a42; }
.copylink:active { transform: scale(.975); }
.copylink svg { width: 14px; height: 14px; flex-shrink: 0; opacity: .7; }
.copylink .cl-txt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.copylink.copied { border-color: var(--green); color: var(--green); }
.copylink.copied svg { opacity: 1; }

/* faturamento por período */
.rr-panel { margin-bottom: 18px; }
.rr-out { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 12px; margin-top: 14px; }
.rr-out > div { background: #1c1c20; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; min-width: 0; }
.rr-out .k { display: block; color: var(--muted); font-size: 12px; margin-bottom: 6px; }
.rr-out .v { font-size: 20px; font-weight: 700; }
.rr-big .v { font-size: 28px; letter-spacing: -0.02em; }
.rr-out.loading { opacity: .45; }
@media (max-width: 760px) {
  .rr-out { grid-template-columns: 1fr 1fr; }
  .rr-big { grid-column: 1 / -1; }
  .rr-big .v { font-size: 26px; }
}

.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.chip { padding: 6px 12px; font-size: 13px; border: 1px solid var(--line); border-radius: 999px; background: #1c1c20; color: var(--txt); cursor: pointer; }
.chip:hover { border-color: #3a3a42; }
.chip.active { background: #fff; color: #0a0a0b; border-color: #fff; }

/* modal + toast */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.6); display: flex; align-items: center; justify-content: center; padding: 20px; z-index: 50; }
.modal-box { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 24px; width: 100%; max-width: 420px; max-height: 90vh; overflow-y: auto; }
.modal-box p { line-height: 1.5; margin-bottom: 18px; }
.modal-actions { display: flex; gap: 10px; }
.modal-actions .btn { margin: 0; }
.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); padding: 12px 20px; border-radius: 10px; font-size: 14px; z-index: 60; max-width: 90vw; }
.toast.ok { background: var(--green); color: #04130a; } .toast.err { background: var(--red); color: #fff; }

/* ============================================================
   MOBILE / PWA — sem header e sem logo: a nav do topo vira tab bar
   no rodapé (mesma <nav>, só reposicionada) e cada tela ganha um
   título grande estilo iOS. Nada aqui muda dado ou chamada de API.
   ============================================================ */
@media (max-width: 760px) {
  /* status bar é translúcida (black-translucent) -> devolve o topo pelo safe-area,
     e o rodapé precisa sobrar espaço pra tab bar não cobrir conteúdo. */
  #app { padding: calc(env(safe-area-inset-top) + 14px) 14px calc(env(safe-area-inset-bottom) + 86px); }
  .card { margin: calc(env(safe-area-inset-top) + 5vh) auto 5vh; padding: 28px 22px calc(28px + env(safe-area-inset-bottom)); max-width: none; width: calc(100% - 28px); }

  /* --- topbar -> tab bar de rodapé --- */
  .topbar {
    position: fixed; inset: auto 0 0 0; top: auto;
    padding: 7px 4px calc(5px + env(safe-area-inset-bottom));
    gap: 0; border-bottom: none; border-top: 1px solid var(--line);
    background: rgba(12,12,14,.84);
    -webkit-backdrop-filter: saturate(180%) blur(22px); backdrop-filter: saturate(180%) blur(22px);
    z-index: 40;
  }
  .topbar .brand, .topbar .brand-txt, .topbar .topright { display: none; }
  .tabs { order: 0; width: 100%; gap: 0; overflow: visible; }
  .tab {
    flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 3px;
    padding: 3px 2px; font-size: 10px; font-weight: 600; letter-spacing: -.01em;
    color: #6b6b75; background: none; border: none; border-radius: 12px;
  }
  .tab:hover { background: none; color: #6b6b75; }
  .tab .ti { display: block; }
  .tab .tl { display: none; }
  .tab::after { content: attr(data-short); }
  .tab.active { color: var(--txt); background: none; border: none; }
  .tab:active .ti { transform: scale(.88); }
  .tab .ti { transition: transform .12s ease; }

  /* --- título grande por tela (substitui o header) --- */
  .view { margin-top: 4px; }
  .view-head { flex-wrap: wrap; align-items: baseline; margin-bottom: 16px; }
  .view-head h2 { font-size: 27px; letter-spacing: -.03em; }
  .ov-meta { display: block; width: 100%; order: 3; margin-top: 2px; font-size: 12.5px; }
  .panel-head h2 { font-size: 27px; letter-spacing: -.03em; }
  .panel-head { margin-bottom: 16px; }
  /* na visão geral o painel continua sendo um card: título de card, não de tela */
  #view-overview .panel-head h2 { font-size: 16px; letter-spacing: 0; }
  #view-overview .panel-head { margin-bottom: 10px; }

  /* resumo compacto 2x2 */
  .kpis { grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 14px; }
  .kpi { padding: 13px; border-radius: 14px; }
  .kpi .v { font-size: 19px; letter-spacing: -.02em; }

  /* 3 gráficos horizontais empilhados */
  .trends { grid-template-columns: 1fr; gap: 12px; }

  /* ===== ordem da Visão geral no celular =====
     Hoje e Este mês primeiro (o que se olha 20x por dia), depois o seletor de
     período, e só então o acumulado e o resto.
     `display: contents` no #trends dissolve a caixa dele e promove os 3 cards a
     filhos diretos do flex — sem isso não dava pra enfiar o seletor ENTRE o
     "Este mês" e o "Total", que são irmãos dentro do mesmo grid.
     O espaçamento passa a ser o `gap`; as margens próprias são zeradas pra não
     somar duas vezes. (.hidden usa !important, então trocar o display aqui não
     quebra a troca de abas.) */
  #view-overview { display: flex; flex-direction: column; gap: 12px; }
  #view-overview > *, #trends > * { margin-bottom: 0; }
  #trends { display: contents; }
  #view-overview > .view-head { order: 0; }
  .tcard[data-k="day"] { order: 1; }
  .tcard[data-k="month"] { order: 2; }
  .rr-panel { order: 3; }
  .tcard[data-k="total"] { order: 4; }
  .tskel { order: 1; }            /* esqueleto antes dos dados chegarem */
  #stats { order: 5; }
  #view-overview > .panel:not(.rr-panel) { order: 6; }
  #view-overview > .m-account { order: 7; }
  .tskel { height: 178px; }
  .lc-wrap { height: 104px; }

  .chart { height: 160px; gap: 6px; }
  .cbar .ccount { display: none; }
  /* 6 barras em 390px: só o valor abreviado cabe sem os rótulos se atropelarem */
  .cbar .cfull { display: none; }
  .cbar .cabbr { display: inline; }
  .cbar .cval { font-size: 10.5px; }
  .cbar .clabel { font-size: 10.5px; }
  .fgrid { grid-template-columns: 1fr; gap: 0; }

  /* painéis viram tela cheia (sem card dentro de card); na visão geral
     o painel do gráfico de barras continua card pra casar com os .tcard */
  .panel { background: transparent; border: none; border-radius: 0; padding: 0; }
  #view-overview .panel { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px; }

  /* campos em 16px: abaixo disso o iOS dá zoom sozinho ao focar */
  .field, .field.sm-field { font-size: 16px; }
  .field.sm-field { padding: 10px 12px; }
  .toolbar { gap: 8px; }
  .toolbar .field.grow, .toolbar #ord-status { width: 100%; flex-basis: 100%; }
  .month-nav { flex: 1; }
  .month-nav .field { flex: 1; }
  .btn.sm { padding: 9px 14px; }

  /* --- tabelas viram lista de cards ---
     grid de 2 colunas com o rótulo em cima do valor: um pedido ocupa ~metade
     da altura que ocuparia em linhas empilhadas. Os campos longos (cliente,
     produto, URL) atravessam as duas colunas. */
  .table-wrap { overflow-x: visible; }
  .tbl, .tbl tbody { display: block; width: 100%; }
  .tbl thead { display: none; }
  .tbl tr {
    display: grid; grid-template-columns: 1fr 1fr; gap: 11px 14px;
    background: var(--card); border: 1px solid var(--line); border-radius: 14px;
    padding: 14px; margin-bottom: 10px;
  }
  .tbl tbody tr:hover td { background: transparent; }
  .tbl td { display: block; padding: 0; border: none; text-align: left; font-size: 14px; line-height: 1.35; min-width: 0; overflow-wrap: anywhere; }
  .tbl td::before {
    content: attr(data-l); display: block; margin-bottom: 3px;
    color: var(--muted); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  }
  /* Link da oferta ocupa a linha toda: em meia largura o link vira "pay.bala…"
     e não dá pra conferir o que se está copiando. */
  .tbl td[data-l="Cliente"], .tbl td[data-l="Produto"], .tbl td[data-l="URL"],
  .tbl td[data-l="Nome"], .tbl td[data-l="Link da oferta"],
  .tbl td.acts-td, .tbl td.empty { grid-column: 1 / -1; }
  .tbl td[data-l="Link da oferta"] .copylink { width: 100%; justify-content: flex-start; }
  .tbl td.acts-td { margin-top: 2px; }
  .tbl td.acts-td::before { content: none; }
  .tbl td.empty { padding: 26px 0; text-align: center; }
  .tbl td.empty::before { content: none; }
  .tbl td .hint { font-size: 12px; }
  .acts { justify-content: flex-start; flex-wrap: wrap; }
  .mini { padding: 8px 13px; font-size: 13px; }
  .summary { font-size: 13.5px; }

  /* --- modais viram bottom sheet --- */
  .modal-overlay { align-items: flex-end; padding: 0; }
  .modal-box {
    max-width: none; max-height: 90vh; border-radius: 20px 20px 0 0;
    padding: 22px 18px calc(22px + env(safe-area-inset-bottom));
    animation: sheet-up .24s cubic-bezier(.32,.72,0,1);
  }
  .modal-box::before { content: ""; display: block; width: 38px; height: 4px; border-radius: 2px; background: #3a3a42; margin: -8px auto 16px; }
  @keyframes sheet-up { from { transform: translateY(100%); } to { transform: translateY(0); } }

  .toast { bottom: calc(env(safe-area-inset-bottom) + 78px); }
  .m-account { display: flex; }
}

/* dentro do PWA instalado: sem seleção de texto acidental ao arrastar */
@media (display-mode: standalone) {
  body { -webkit-user-select: none; user-select: none; }
  .field, input, textarea, code, .tbl td, .msg { -webkit-user-select: text; user-select: text; }
}

/* ===== ajustes Balaclava ===== */
.brand-txt { font-size: 15px; font-weight: 800; color: var(--txt); letter-spacing: -0.02em; white-space: nowrap; }
.brand-txt .adm { color: var(--muted); font-weight: 600; }
.mono { font-family: ui-monospace, Menlo, monospace; font-size: 12px; }

/* ============================================================
   MENTORIA — só o que este painel acrescenta ao CSS do console.
   Mantido no fim e em bloco pra que o resto do arquivo continue
   comparável com frontend/console/styles.css linha a linha.
   ============================================================ */

/* Estados de link e de parcela. O console já tem .badge.on/.off/.blue/.warn,
   mas aqui a semântica é outra (pago / a receber / atrasado), então são
   classes próprias em vez de reaproveitar as de lá com outro sentido. */
.badge.ok     { background: rgba(31,194,107,.15); color: var(--green); }
.badge.alerta { background: rgba(245,175,60,.14); color: #f5af3c; }
.badge.atraso { background: rgba(239,68,68,.15); color: #ff8585; }

.venceu { color: #ff8585; }

/* Campos longos atravessam as duas colunas no layout de card do celular —
   mesma regra que o console aplica a Cliente/Produto/URL. */
@media (max-width: 720px) {
  .tbl td[data-l="Mentorado"], .tbl td[data-l="Oferta"],
  .tbl td[data-l="Link"], .tbl td[data-l="Closer"] { grid-column: 1 / -1; }
  .tbl td[data-l="Link"] .copylink { width: 100%; justify-content: flex-start; }
}
