/* CRM EPK Music (protótipo P5A). Identidade do painel: #0E0E0E, #FF6B35, branco, IBM Plex Sans.
 * Celular primeiro (360 px); a barra inferior vira menu lateral a partir de 1024 px. */
:root {
  --bg: #0E0E0E; --s1: #151515; --s2: #1C1C1C; --s3: #262626; --line: #242424; --line2: #353535;
  --text: #F3F1EE; --mute: #A9A49C; --faint: #6F6A63; --ph: #8F8A82;
  --or: #FF6B35; --or-hi: #FF8456; --or-t: #FF6B35; --or-soft: rgba(255, 107, 53, .14); --on-or: #0E0E0E;
  --ok: #5FD592; --ok-soft: rgba(95, 213, 146, .13); --warn: #F2B84B; --warn-soft: rgba(242, 184, 75, .13); --bad: #FF6B86; --bad-soft: rgba(255, 107, 134, .13);
  --glass: rgba(14, 14, 14, .92); --shadow: 0 12px 32px rgba(0, 0, 0, .5);
  --toast-bg: #F3F1EE; --toast-fg: #141414; --toast-err: #FFD9DF; --toast-act: #B6401A;
  --f-ui: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif; --f-display: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r: 20px; --r-s: 14px; --r-b: 16px; --nav-h: 68px; --gutter: 16px; --safe-b: env(safe-area-inset-bottom, 0px);
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: dark;
}
/* Versão clara: branco, preto, laranja e cinza. O laranja em TEXTO escurece (#C9461A, 4,5:1 sobre branco); o laranja de preenchimento continua o mesmo, com texto preto. */
:root[data-theme="light"] {
  --bg: #F5F4F2; --s1: #FFFFFF; --s2: #F0EEEB; --s3: #E6E3DF; --line: #E8E5E1; --line2: #D3CFC9;
  --text: #141312; --mute: #5C5852; --faint: #8C877F; --ph: #66615A;
  --or-hi: #E85A24; --or-t: #C9461A; --or-soft: rgba(255, 107, 53, .13);
  --ok: #1E7A4A; --ok-soft: rgba(30, 122, 74, .12); --warn: #8A5A00; --warn-soft: rgba(138, 90, 0, .12); --bad: #B3243F; --bad-soft: rgba(179, 36, 63, .1);
  --glass: rgba(245, 244, 242, .92); --shadow: 0 12px 32px rgba(20, 19, 18, .14);
  --toast-bg: #161514; --toast-fg: #F3F1EE; --toast-err: #5A1424; --toast-act: #FFB394;
  color-scheme: light;
}
@media (prefers-color-scheme: light) {
  :root[data-theme="auto"] {
    --bg: #F5F4F2; --s1: #FFFFFF; --s2: #F0EEEB; --s3: #E6E3DF; --line: #E8E5E1; --line2: #D3CFC9;
    --text: #141312; --mute: #5C5852; --faint: #8C877F; --ph: #66615A;
    --or-hi: #E85A24; --or-t: #C9461A; --or-soft: rgba(255, 107, 53, .13);
    --ok: #1E7A4A; --ok-soft: rgba(30, 122, 74, .12); --warn: #8A5A00; --warn-soft: rgba(138, 90, 0, .12); --bad: #B3243F; --bad-soft: rgba(179, 36, 63, .1);
    --glass: rgba(245, 244, 242, .92); --shadow: 0 12px 32px rgba(20, 19, 18, .14);
    --toast-bg: #161514; --toast-fg: #F3F1EE; --toast-err: #5A1424; --toast-act: #FFB394;
    color-scheme: light;
  }
}
* { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
body { background: var(--bg); color: var(--text); font: 400 1rem/1.5 var(--f-ui); min-height: 100dvh; -webkit-font-smoothing: antialiased; caret-color: var(--or); overflow-x: hidden; }
::selection { background: var(--or); color: var(--on-or); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--or); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--or); color: var(--on-or); padding: 12px 16px; border-radius: 8px; z-index: 100; font-weight: 700; }
.skip:focus { top: 8px; }
.ic { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic--s { width: 18px; height: 18px; }
.num { }
* { scrollbar-width: thin; scrollbar-color: var(--line2) transparent; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* ---------------------------------------------------------------- estrutura */
.app { min-height: 100dvh; }
.shell { max-width: 760px; margin: 0 auto; padding-bottom: calc(var(--nav-h) + var(--safe-b) + 32px); }
.top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 60px; padding: 8px var(--gutter); background: var(--glass); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.top__id { display: flex; flex-direction: column; min-width: 0; }
.top__artist { font-size: .875rem; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 46vw; }
.top__right { display: flex; align-items: center; gap: 4px; }
.brand { display: inline-flex; align-items: baseline; gap: 4px; font-family: var(--f-display); line-height: 1; }
.brand__mark { font-weight: 700; font-size: 1.25rem; letter-spacing: -.02em; }
.brand__sub { font-weight: 700; font-size: .875rem; color: var(--or-t); letter-spacing: .06em; text-transform: uppercase; }
.proto-note { padding: 8px var(--gutter); font-size: .875rem; color: var(--mute); background: var(--s1); border-bottom: 1px solid var(--line); }
.proto-note b { color: var(--text); font-weight: 700; }
main { padding: 20px var(--gutter) 0; outline: none; }
.iconbtn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; color: var(--text); }
.iconbtn:hover { background: var(--s2); }
.iconbtn__n { position: absolute; top: 4px; right: 3px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--or); color: var(--on-or); font-size: .75rem; font-weight: 700; line-height: 18px; text-align: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; min-height: 28px; padding: 0 12px; border-radius: 999px; background: var(--s2); border: 1px solid var(--line); font-size: .875rem; color: var(--mute); white-space: nowrap; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.pill[data-s="saving"]::before { background: var(--warn); }
.pill[data-s="offline"] { color: var(--warn); border-color: rgba(242, 184, 75, .4); }
.pill[data-s="offline"]::before { background: var(--warn); }

/* barra inferior (celular): 5 lugares, com o "+" laranja no centro para criar algo */
.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; height: calc(var(--nav-h) + var(--safe-b)); padding-bottom: var(--safe-b); background: var(--glass); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
.tab { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 52px; color: var(--mute); font-size: .75rem; font-weight: 700; text-decoration: none; }
.tab[aria-current="page"] { color: var(--text); }
.tab[aria-current="page"] .ic { color: var(--or-t); }
.tab__n { position: absolute; top: 4px; left: calc(50% + 8px); min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--bad); color: #170008; font-size: .75rem; font-weight: 700; line-height: 16px; text-align: center; }
.tab--plus { gap: 0; }
.plus { display: grid; place-items: center; width: 56px; height: 56px; margin-top: -24px; border-radius: 50%; background: var(--or); color: var(--on-or); box-shadow: 0 8px 22px rgba(255, 107, 53, .38), 0 0 0 6px var(--bg); transition: transform .15s var(--ease); }
.tab--plus:active .plus { transform: scale(.94); }
.plus .ic { width: 26px; height: 26px; stroke-width: 2.2; }

.rail { display: none; }

/* ---------------------------------------------------------------- tipografia */
h1, h2, h3 { font-family: var(--f-display); font-weight: 700; letter-spacing: -.005em; text-wrap: balance; }
.h1 { font-size: 1.75rem; line-height: 1.15; letter-spacing: -.015em; font-weight: 700; }
.sub { margin-top: 4px; color: var(--mute); font-size: 1rem; }
.sec { margin-top: 32px; }
.sec__h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.sec__h h2 { font-size: 1.125rem; }
.sec__h a, .linkbtn { color: var(--mute); font-size: .875rem; font-weight: 700; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; gap: 2px; }
.sec__h a::after { content: "\203A"; font-size: 1.15em; line-height: 1; }
.sec__h a:hover, .linkbtn:hover { color: var(--text); }
.linkbtn { color: var(--or-t); }
.linkbtn:hover { text-decoration: underline; color: var(--or-t); }
.muted { color: var(--mute); }
.small { font-size: .875rem; }
.bad { color: var(--bad); } .ok { color: var(--ok); } .warn { color: var(--warn); }
.head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px; }
.head > div { min-width: 0; flex: 1 1 200px; }
.head .btn { flex: none; }

/* ---------------------------------------------------------------- botões e campos */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 24px; border-radius: var(--r-b); background: var(--or); color: var(--on-or); font-weight: 700; font-size: 1rem; text-decoration: none; transition: background .15s, transform .15s var(--ease); }
.btn:hover { background: var(--or-hi); }
.btn:active { transform: scale(.98); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.btn[aria-busy="true"] { opacity: .7; cursor: progress; }
.btn--ghost { background: var(--s2); color: var(--text); border: 1px solid var(--line); }
.btn--ghost:hover { background: var(--s2); border-color: var(--mute); }
.btn--danger { background: transparent; color: var(--bad); border: 1px solid rgba(255, 107, 134, .45); }
.btn--danger:hover { background: var(--bad-soft); }
.btn--s { min-height: 44px; padding: 0 16px; font-size: .875rem; border-radius: 14px; }
.btn--block { width: 100%; }
.btnrow { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.btnrow > .btn { flex: 1 1 140px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 8px; margin: 0 calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid transparent; background: var(--s2); color: var(--mute); font-size: .875rem; font-weight: 700; white-space: nowrap; }
.chip:hover { color: var(--text); background: var(--s3); }
.chip[aria-pressed="true"], .chip[aria-selected="true"] { background: var(--or); border-color: var(--or); color: var(--on-or); }
.chip__n { font-variant-numeric: tabular-nums; opacity: .8; font-weight: 700; }
.field { display: block; margin-top: 16px; }
.field > span { display: block; margin-bottom: 8px; font-size: .875rem; font-weight: 700; }
.field > span i { font-style: normal; font-weight: 400; color: var(--mute); }
.inp, .sel, .txt { width: 100%; min-height: 52px; padding: 0 16px; border-radius: var(--r-b); background: var(--s2); border: 1px solid var(--line); color: var(--text); }
.txt { padding: 12px 16px; min-height: 96px; resize: vertical; line-height: 1.45; }
.inp::placeholder, .txt::placeholder { color: var(--ph); opacity: 1; }
.inp:focus, .sel:focus, .txt:focus { outline: 2px solid var(--or); outline-offset: 1px; border-color: transparent; }
.inp[aria-invalid="true"] { border-color: var(--bad); }
.err { margin-top: 8px; color: var(--bad); font-size: .875rem; }
.help { margin-top: 8px; color: var(--mute); font-size: .875rem; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.search { position: relative; }
.search .ic { position: absolute; left: 14px; top: 13px; color: var(--mute); }
.search .inp { padding-left: 44px; }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; min-height: 56px; text-align: left; }
.switch__t { font-weight: 700; } .switch__t small { display: block; font-weight: 400; color: var(--mute); font-size: .875rem; margin-top: 2px; }
.switch__k { position: relative; flex: none; width: 48px; height: 28px; border-radius: 14px; background: var(--s3); border: 1px solid var(--line2); transition: background .2s; }
.switch__k::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--text); transition: transform .2s var(--ease); }
.switch[aria-checked="true"] .switch__k { background: var(--or); border-color: var(--or); }
.switch[aria-checked="true"] .switch__k::after { transform: translateX(20px); background: var(--on-or); }

/* ---------------------------------------------------------------- listas e etiquetas */
.list { padding: 0 16px; border-radius: var(--r); background: var(--s1); }
.sheet .list, .box .list { background: var(--s2); }
.row { display: flex; align-items: center; gap: 16px; width: 100%; min-height: 64px; padding: 12px 2px; border-bottom: 1px solid var(--line); text-align: left; text-decoration: none; }
button.row:hover, a.row:hover { background: var(--s2); }
.list > .row:last-child { border-bottom: 0; }
.row__main { flex: 1; min-width: 0; }
.row__t { font-weight: 700; overflow-wrap: anywhere; }
.row__m { color: var(--mute); font-size: .875rem; overflow-wrap: anywhere; }
.row__end { flex: none; text-align: right; font-size: .875rem; }
.row__go { color: var(--faint); }
.tag { display: inline-flex; align-items: center; gap: 8px; min-height: 24px; padding: 0 8px; border-radius: 999px; font-size: .875rem; font-weight: 700; white-space: nowrap; background: var(--s3); color: var(--mute); }
.tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tag--ok { background: var(--ok-soft); color: var(--ok); } .tag--warn { background: var(--warn-soft); color: var(--warn); } .tag--bad { background: var(--bad-soft); color: var(--bad); } .tag--or { background: var(--or-soft); color: var(--or-t); }
.tag--plain::before { display: none; }
.stamp { flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 56px; height: 60px; border-radius: 12px; background: var(--s2); border: 1px solid var(--line2); line-height: 1; }
.stamp b { font-family: var(--f-display); font-weight: 700; font-size: 1.5rem; }
.stamp small { margin-top: 4px; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.stamp--hot { background: var(--or); border-color: var(--or); color: var(--on-or); }
.stamp--hot small { color: var(--on-or); }
.stamp--off { background: transparent; border-style: dashed; }
.stamp--off b, .stamp--off small { color: var(--mute); }
.dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--faint); }
.dot--3 { background: var(--bad); } .dot--2 { background: var(--or); } .dot--1 { background: var(--warn); }
.cta { flex: none; display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 16px; border-radius: 999px; background: var(--s2); color: var(--text); font-size: .875rem; font-weight: 700; white-space: nowrap; }
.list .cta { background: var(--s3); }
.empty { padding: 28px 4px; color: var(--mute); }
.empty h2 { color: var(--text); font-size: 1.125rem; margin-bottom: 8px; }
.empty .btnrow { margin-top: 16px; }

/* cartão genérico e saudação do Início */
.panel { padding: 16px; border-radius: var(--r); background: var(--s1); }
.hello .h1 { font-size: 2rem; }
.sitebar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 16px; padding: 8px 8px 8px 16px; min-height: 44px; border-radius: 999px; background: var(--warn-soft); color: var(--text); font-size: .875rem; }
.sitebar > span { flex: 1 1 auto; min-width: 0; }
.sitebar .linkbtn { min-height: 36px; padding: 0 12px; margin: 0; }
.sitebar--wrap { border-radius: var(--r-b); padding-block: 12px; }
/* cartão do Tom no Início */
.tomcard { display: flex; align-items: center; gap: 16px; width: 100%; margin-top: 20px; padding: 16px 16px; border-radius: var(--r); background: var(--s1); text-align: left; }
.tomcard:hover { background: var(--s2); }
.tomcard img { flex: none; width: 48px; height: 48px; border-radius: 50%; }
.tomcard b { display: block; font-family: var(--f-display); font-size: 1rem; }
.tomcard small { display: block; color: var(--mute); font-size: .875rem; line-height: 1.35; margin-top: 2px; }
.tomcard .ic { margin-left: auto; color: var(--faint); }
/* folha "Criar" (botão +) e escolha de tema */
.quick { display: grid; gap: 12px; margin-top: 8px; }
.quick__i { display: flex; align-items: center; gap: 16px; width: 100%; min-height: 64px; padding: 12px 16px; border-radius: var(--r); background: var(--s2); text-align: left; }
.quick__i:hover { background: var(--s3); }
.quick__ic { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--or-soft); color: var(--or-t); }
.quick__i b { display: block; font-weight: 700; }
.quick__i small { display: block; color: var(--mute); font-size: .875rem; }
.quick__i img { flex: none; width: 44px; height: 44px; border-radius: 50%; }
.themes { display: flex; gap: 8px; flex-wrap: wrap; }

/* próximo show */
.next { display: flex; gap: 16px; align-items: flex-start; width: 100%; padding: 20px; border-radius: var(--r); background: linear-gradient(160deg, var(--or-soft), transparent 55%), var(--s1); border: 1px solid var(--line); text-align: left; }
.next:hover { border-color: var(--line2); }
.next__t { font-family: var(--f-display); font-weight: 700; font-size: 1.5rem; line-height: 1.15; }
.next__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.next .stamp { width: 64px; height: 68px; } .next .stamp b { font-size: 1.75rem; }

/* barra de dinheiro */
.sentence { font-size: 1.125rem; line-height: 1.45; }
.sentence b { font-weight: 700; }
.bar { display: flex; height: 12px; margin-top: 16px; border-radius: 6px; overflow: hidden; background: var(--s3); gap: 2px; }
.bar > i { display: block; height: 100%; min-width: 4px; }
.bar .b-ok { background: var(--ok); } .bar .b-pend { background: var(--or); } .bar .b-bad { background: var(--bad); }
.legend { margin-top: 12px; display: grid; gap: 2px; }
.legend > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 32px; font-size: 1rem; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 8px; }
.legend b { font-weight: 700; }
.funnel { display: flex; height: 10px; border-radius: 5px; overflow: hidden; gap: 2px; background: var(--s3); margin-bottom: 4px; }
.funnel i { display: block; background: var(--or); opacity: .9; min-width: 6px; }
.funnel i:nth-child(2) { opacity: .7; } .funnel i:nth-child(3) { opacity: .5; } .funnel i:nth-child(4) { opacity: .32; }

/* linha do tempo */
.tl { list-style: none; padding: 0; margin: 0; }
.tl li { position: relative; padding: 0 0 16px 24px; font-size: 1rem; }
.tl li::before { content: ""; position: absolute; left: 3px; top: 7px; width: 9px; height: 9px; border-radius: 50%; background: var(--line2); }
.tl li::after { content: ""; position: absolute; left: 7px; top: 18px; bottom: 0; width: 1px; background: var(--line); }
.tl li:last-child::after { display: none; }
.tl li:first-child::before { background: var(--or); }
.tl small { display: block; color: var(--mute); font-size: .875rem; }

/* ---------------------------------------------------------------- agenda */
.monthh { position: sticky; top: 60px; z-index: 5; padding: 12px 2px 8px; background: var(--bg); font-family: var(--f-display); font-weight: 700; font-size: 1rem; color: var(--mute); }
.monthh::first-letter, .cal__title::first-letter { text-transform: uppercase; }
.seg { display: inline-grid; grid-auto-flow: column; padding: 4px; border-radius: 14px; background: var(--s2); border: 1px solid var(--line); }
.seg button { min-height: 44px; padding: 0 16px; border-radius: 9px; color: var(--mute); font-weight: 700; font-size: .875rem; display: inline-flex; align-items: center; gap: 8px; }
.seg button[aria-pressed="true"] { background: var(--s3); color: var(--text); }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 12px; }
.toolbar .search { flex: 1 1 150px; min-width: 0; }

/* Agenda: topo enxuto no celular (a lista vem antes dos controles) */
.head--row { flex-wrap: nowrap; align-items: center; }
.head--row .h1 { min-width: 0; }
.head--row + .sub { margin-top: 0; }
.agbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 12px; min-height: 44px; margin-top: 2px; font-size: .875rem; color: var(--mute); }
.agbar__l { flex: 1 1 auto; min-width: 0; }
.agbar b { color: var(--text); font-weight: 700; }
.agbar .linkbtn { min-height: 44px; }
/* filtro ou busca ligados: a faixa se destaca, para ninguém achar que o show sumiu */
.agbar--on { flex-wrap: nowrap; margin-top: 8px; padding: 2px 4px 2px 16px; border: 1px solid var(--or); border-radius: var(--r-s); background: var(--or-soft); color: var(--text); }
.agbar--on .linkbtn { flex: none; }
.agbar--past { justify-content: flex-end; margin-top: 0; }
.needs { margin-top: 4px; padding: 0 0 8px; }
.needs__h { display: flex; align-items: center; gap: 8px; padding: 12px 2px 8px; font-size: 1rem; }
.needs__h .muted { font-family: var(--f-ui); font-weight: 700; }
@media (min-width: 720px) { .toolbar .search { flex: 0 1 420px; } }
@media (max-width: 479px) {
  .seg button { padding: 0 12px; }
  .seg button .ic { display: none; }
  .chip { padding: 0 16px; gap: 4px; }
}
.cal { margin-top: 16px; }
.cal__nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.cal__title { font-family: var(--f-display); font-weight: 700; font-size: 1.125rem; text-align: center; flex: 1; }
.cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal__wd { text-align: center; font-size: .75rem; font-weight: 700; color: var(--mute); text-transform: uppercase; padding: 8px 0; }
.cal__d { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 4px; min-height: 48px; padding-top: 8px; border-radius: 10px; font-size: 1rem; font-variant-numeric: tabular-nums; }
.cal__d:hover { background: var(--s2); }
.cal__d--today { box-shadow: inset 0 0 0 1.5px var(--or); }
.cal__d[aria-pressed="true"] { background: var(--s3); }
.cal__d--blank { visibility: hidden; }
.cal__dots { display: flex; gap: 4px; height: 6px; }
.cal__dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--or); }
.cal__dots i.m { background: transparent; box-shadow: inset 0 0 0 1.5px var(--warn); }
.cal__dots i.c { background: var(--faint); }
.fab { position: fixed; right: var(--gutter); bottom: calc(var(--nav-h) + var(--safe-b) + 14px); z-index: 35; min-height: 52px; padding: 0 20px; border-radius: 26px; box-shadow: 0 8px 24px rgba(0, 0, 0, .5); }

/* ---------------------------------------------------------------- negociações */
.stages { margin-top: 16px; }
.cards { display: grid; gap: 12px; margin-top: 12px; }
.card { display: block; width: 100%; padding: 16px; border-radius: var(--r); background: var(--s1); border: 1px solid var(--line); text-align: left; }
.card:hover { border-color: var(--line2); background: var(--s2); }
.card__t { font-weight: 700; overflow-wrap: anywhere; }
.card__m { margin-top: 2px; color: var(--mute); font-size: .875rem; }
.card__f { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-top: 12px; font-size: .875rem; }
.card__v { font-weight: 700; }
.kan { display: none; }
.kv { display: grid; grid-template-columns: 120px 1fr; gap: 8px 12px; margin: 0; font-size: 1rem; }
.kv dt { color: var(--mute); } .kv dd { margin: 0; overflow-wrap: anywhere; }
.kv--acct { grid-template-columns: 72px 1fr; }   /* e-mail longo cabe na linha em vez de quebrar no meio da palavra */
.kv--acct dd { font-size: .875rem; }
.box { margin-top: 16px; padding: 16px; border-radius: var(--r); background: var(--s2); border: 1px solid var(--line); }
.box h3 { font-size: 1rem; margin-bottom: 8px; }
.steps { margin: 12px 0 0; padding-left: 20px; display: grid; gap: 8px; font-size: 1rem; }
.steps li::marker { color: var(--or); }
.ver { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; border-bottom: 1px solid var(--line); font-size: 1rem; }
.ver:last-child { border-bottom: 0; }

/* ---------------------------------------------------------------- financeiro */
.chart { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; align-items: end; height: 150px; margin-top: 16px; }
.chart > div { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; gap: 8px; }
.chart i { display: block; width: 100%; max-width: 44px; min-height: 3px; border-radius: 6px 6px 2px 2px; background: var(--or); opacity: .55; }
.chart > div:last-child i { opacity: 1; }
.chart small { font-size: .75rem; color: var(--mute); text-transform: uppercase; letter-spacing: .04em; }
.chart b { font-size: .75rem; font-weight: 700; white-space: nowrap; }
.locked { margin-top: 20px; padding: 24px 16px; border-radius: var(--r); border: 1px dashed var(--line2); color: var(--mute); }
.locked h2 { color: var(--text); font-size: 1.125rem; margin: 8px 0 8px; }

/* ---------------------------------------------------------------- folha (celular: sobe de baixo; desktop: centralizada) */
.sheet { position: fixed; inset: auto 0 0 0; width: 100%; max-width: none; max-height: 92dvh; margin: 0; padding: 0; border: 0; border-radius: 24px 24px 0 0; background: var(--s1); color: var(--text); overflow: auto; overscroll-behavior: contain; }
.sheet::backdrop { background: rgba(0, 0, 0, .66); }
.sheet[open] { animation: up .26s var(--ease); }
@keyframes up { from { transform: translateY(28px); opacity: 0; } to { transform: none; opacity: 1; } }
.sheet__grip { width: 40px; height: 4px; border-radius: 2px; background: var(--line2); margin: 12px auto 0; }
.sheet__head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 12px 8px var(--gutter); background: var(--s1); }
.sheet__head h2 { font-size: 1.25rem; overflow-wrap: anywhere; }
.sheet__body { padding: 4px var(--gutter) calc(24px + var(--safe-b)); }
.sheet__body .h3 { margin: 24px 0 8px; font-size: 1rem; font-family: var(--f-display); }

.toast { position: fixed; left: var(--gutter); right: var(--gutter); bottom: calc(var(--nav-h) + var(--safe-b) + 14px); z-index: 80; display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 520px; margin: 0 auto; padding: 8px 8px 8px 16px; min-height: 52px; border-radius: 16px; background: var(--toast-bg); color: var(--toast-fg); font-size: 1rem; font-weight: 400; box-shadow: var(--shadow); animation: up .24s var(--ease); }
.toast[data-k="err"] { background: var(--toast-err); }
.toast button { min-height: 44px; padding: 0 12px; border-radius: 10px; font-weight: 700; color: var(--toast-act); display: inline-flex; align-items: center; gap: 8px; }
/* O atributo hidden precisa vencer qualquer display definido nas classes (ex.: .field é block); sem isto o campo "Outra porcentagem", o seletor de autenticador e a bolinha de avisos não somem. */
[hidden] { display: none !important; }
.toast[hidden] { display: none; }

.testbar { position: fixed; left: 0; right: 0; bottom: calc(var(--nav-h) + var(--safe-b)); z-index: 45; padding: 12px var(--gutter); background: var(--s3); border-top: 1px solid var(--or); display: flex; align-items: center; gap: 12px; font-size: .875rem; }
.testbar[hidden] { display: none; }
.testbar b { color: var(--or-hi); }
.testbar__t { flex: 1; min-width: 0; }

/* ---------------------------------------------------------------- desktop */
@media (min-width: 720px) {
  :root { --gutter: 28px; }
  .h1 { font-size: 2rem; }
  .sheet { inset: 0; width: min(560px, calc(100% - 48px)); max-height: min(88dvh, 820px); margin: auto; border-radius: 20px; border: 1px solid var(--line2); }
  .sheet__grip { display: none; }
  .sheet__head { padding-top: 16px; }
  .fab { right: 28px; }
}
@media (min-width: 1024px) {
  :root { --rail: 236px; }
  body { display: block; }
  .rail { position: fixed; inset: 0 auto 0 0; width: var(--rail); display: flex; flex-direction: column; gap: 24px; padding: 24px 16px; border-right: 1px solid var(--line); background: var(--bg); z-index: 50; }
  .rail .brand { padding: 0 12px; } .rail .brand__mark { font-size: 1.5rem; }
  .rail__create { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; margin: 0 4px; border-radius: var(--r-b); background: var(--or); color: var(--on-or); font-weight: 700; }
  .rail__create:hover { background: var(--or-hi); }
  .rail__nav { display: grid; gap: 4px; }
  .rail__nav .tab { flex-direction: row; justify-content: flex-start; gap: 12px; min-height: 46px; padding: 0 12px; border-radius: 12px; font-size: 1rem; }
  .rail__nav .tab:hover { background: var(--s2); color: var(--text); }
  .rail__nav .tab[aria-current="page"] { background: var(--or-soft); color: var(--text); }
  .rail__nav .tab[aria-current="page"]::before { display: none; }
  .rail__nav .tab__n { position: static; margin-left: auto; }
  .rail__foot { margin-top: auto; display: grid; gap: 4px; }
  .rail__artist .swp-btn { width: 100%; margin-left: 0; min-height: 52px; padding: 4px 12px 4px 8px; border-radius: 12px; justify-content: flex-start; }
  .rail__artist .swp-btn__n { flex: 1; max-width: none; }
  .rail__artist .swp-btn { background: var(--s2); }
  .rail__tools { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 0 12px; border-radius: 12px; color: var(--mute); font-size: 1rem; }
  .rail__tools:hover { background: var(--s2); color: var(--text); }
  .tabs, .brand--top, .iconbtn--tools { display: none; }
  .shell { max-width: none; margin-left: var(--rail); padding-bottom: 48px; }
  .top { padding-inline: 32px; justify-content: space-between; }
  .proto-note, main { padding-inline: 32px; }
  main { max-width: 1240px; }
  .fab { bottom: 28px; }
  .toast { bottom: 28px; margin-left: calc(var(--rail) + (100% - var(--rail) - 520px) / 2); margin-right: 0; left: 0; right: auto; width: 520px; }
  .testbar { bottom: 0; left: var(--rail); }
  .home { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 0 40px; align-items: start; }
  .home > .full { grid-column: 1 / -1; }
  .stages .chips { display: none; }
  .cards--tab { display: none; }
  .kan { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 16px; margin-top: 16px; overflow-x: auto; padding-bottom: 12px; align-items: start; }
  .kan__col { display: grid; gap: 12px; align-content: start; min-height: 120px; padding: 12px; border-radius: var(--r); background: var(--s1); border: 1px solid var(--line); }
  .kan__h { display: flex; align-items: center; justify-content: space-between; padding: 2px 4px 4px; font-family: var(--f-display); font-weight: 700; font-size: 1rem; }
  .kan__h span { color: var(--mute); font-family: var(--f-ui); font-weight: 700; font-variant-numeric: tabular-nums; }
  .split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
}

/* ---------------------------------------------------------------- detalhes */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.has-test .shell { padding-bottom: calc(var(--nav-h) + var(--safe-b) + 150px); }
.has-test .toast, .has-test .fab { bottom: calc(var(--nav-h) + var(--safe-b) + 120px); }
@media (min-width: 1024px) { .has-test .shell { padding-bottom: 120px; } .has-test .toast, .has-test .fab { bottom: 112px; } }

.row__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }

/* ---------------------------------------------------------------- CRM real (P5C): entrada, aviso de limite e botão de atualizar */
.gate { min-height: 100dvh; width: 100%; max-width: none; margin: 0; display: grid; place-items: center; padding: 24px var(--gutter); }
.gate__card { width: 100%; max-width: 420px; padding: 28px 24px; border: 1px solid var(--line); border-radius: var(--r); background: var(--s1); }
.gate__card .brand { margin-bottom: 16px; }
.gate__card .sub { margin-bottom: 4px; }
.gate__card .err:empty { display: none; }
.check { display: flex; align-items: center; gap: 12px; min-height: 44px; margin-top: 12px; font-size: 1rem; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--or); }
body[data-mode="gate"] .app { display: none; }
body[data-mode="app"] .gate { display: none; }
.pill--btn { position: relative; cursor: pointer; font: inherit; font-size: .875rem; }
.pill--btn::after { content: ""; position: absolute; inset: -8px -4px; }   /* área de toque de 44 px sem engordar a pílula */
.pill--btn:hover { color: var(--text); border-color: var(--mute); }
.notice { margin: 0 0 16px; padding: 12px 16px; border: 1px solid var(--warn); border-radius: var(--r-s); background: var(--warn-soft); color: var(--text); font-size: 1rem; }
main:focus-visible { outline: none; }   /* o <main> só recebe foco para o leitor de tela anunciar a troca de tela */
@media (max-width: 479px) { .pill__long, .top__role { display: none; } }

/* ---------------------------------------------------------------- faixa fixa do suporte (Central do Super Admin): sempre visível, nunca some sozinha */
.support-bar { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 4px var(--gutter); background: var(--warn); color: #1A1200; font-size: .875rem; }
.support-bar[hidden] { display: none; }
.support-bar b { font-weight: 700; }
.support-bar .btn { min-height: 44px; padding-inline: 16px; color: #1A1200; border-color: rgba(26, 18, 0, .55); background: transparent; flex: none; }
.support-bar .btn:hover { background: rgba(26, 18, 0, .12); border-color: #1A1200; }
body.has-support .top { top: 52px; }
@media (min-width: 1024px) { .support-bar { padding-inline: 32px; } }

/* Área Site: o editor do site ocupa a tela inteira, entre o cabeçalho e o menu */
.sitearea { margin: -20px calc(var(--gutter) * -1) 0; }
.sitearea__frame { display: block; width: 100%; border: 0; background: var(--bg); height: calc(100dvh - 56px - var(--nav-h) - var(--safe-b)); }
.is-site .shell { padding-bottom: calc(var(--nav-h) + var(--safe-b)); }
@media (min-width: 1024px) { .sitearea__frame { height: calc(100dvh - 56px); } .is-site .shell { padding-bottom: 0; } }
/* Assistente EPK (conversa dentro da folha). Mensagens em bolhas; o rascunho de show aparece como cartão dentro da resposta. */
.as { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.as__log { display: flex; flex-direction: column; gap: 12px; max-height: min(52dvh, 460px); overflow-y: auto; padding: 2px; overscroll-behavior: contain; }
.as__msg { min-width: 0; max-width: 100%; padding: 12px 16px; border-radius: 16px; overflow-wrap: anywhere; }
.as__msg p { margin: 0; white-space: pre-wrap; }
.as__row { display: flex; gap: 8px; align-items: flex-end; max-width: 92%; min-width: 0; }
.as__row--user { align-self: flex-end; }
.as__row--assistant { align-self: flex-start; }
.as__av { flex: none; width: 32px; height: 32px; border-radius: 50%; }
.as__face { width: 32px; height: 32px; border-radius: 50%; display: block; }
.as__msg--assistant { background: var(--s2); border: 1px solid transparent; border-bottom-left-radius: 4px; }
.as__msg--user { background: var(--or-soft); border: 1px solid transparent; border-bottom-right-radius: 4px; }
.as__note { margin: 0; align-self: center; color: var(--mute); font-size: .875rem; text-align: center; }
.as__note--err { color: var(--bad); }
.as__draft { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.as__draft .kv { grid-template-columns: 110px 1fr; font-size: .875rem; }
.as__miss { color: var(--warn); }
.as__form { display: grid; grid-template-columns: 1fr; gap: 8px; }
.as__in { min-height: 76px; max-height: 160px; padding: 16px 16px; resize: none; line-height: 1.45; overflow-y: auto; }
.as__btns { display: flex; gap: 8px; align-items: center; justify-content: flex-end; }
.as__mic { border: 1px solid var(--line2); background: var(--s2); }
.as__mic.is-rec { background: var(--bad); color: #0E0E0E; border-color: transparent; animation: as-pulse 1.2s ease-in-out infinite; }
@keyframes as-pulse { 50% { box-shadow: 0 0 0 6px rgba(255, 107, 134, .25); } }
.as__foot { display: flex; gap: 8px; flex-wrap: wrap; }
.as__consent { padding: 12px 16px; border: 1px solid var(--line2); border-radius: 12px; background: var(--s1); display: grid; gap: 12px; }
.as__consent p { margin: 0; font-size: 1rem; }
.as__prefill { margin: 0 0 12px; padding: 12px 12px; border-radius: 10px; background: var(--or-soft); font-size: .875rem; }

/* ---------------------------------------------------------------- logo principal (branca no escuro, colorida no claro) */
.logo { display: inline-block; line-height: 0; }
.logo img { display: block; width: auto; height: 26px; }
.logo__l { display: none !important; }
:root[data-theme="light"] .logo__d { display: none !important; }
:root[data-theme="light"] .logo__l { display: block !important; }
@media (prefers-color-scheme: light) {
  :root[data-theme="auto"] .logo__d { display: none !important; }
  :root[data-theme="auto"] .logo__l { display: block !important; }
}
.logo--rail img { height: 30px; }
.logo--gate img { height: 36px; }
.gate__card .brand { display: block; margin-bottom: 16px; }
.rail .brand { padding: 0 12px; display: block; }

/* ---------------------------------------------------------------- carregamento e movimento */
.loadbar { height: 3px; margin: 4px 0 16px; border-radius: 2px; background: var(--s3); overflow: hidden; }
.loadbar i { display: block; width: 38%; height: 100%; border-radius: 2px; background: var(--or); animation: lb 1.15s var(--ease) infinite; }
@keyframes lb { from { transform: translateX(-110%); } to { transform: translateX(270%); } }
.gate__card { animation: card-in .45s var(--ease) both; }
@keyframes card-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
body[data-mode="app"] .app { animation: app-in .45s ease both; }
@keyframes app-in { from { opacity: 0; } to { opacity: 1; } }
.top.is-scrolled { box-shadow: 0 10px 28px rgba(0, 0, 0, .22); }
:root[data-theme="light"] .top.is-scrolled { box-shadow: 0 10px 28px rgba(20, 19, 18, .1); }
.top::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 2px; width: 36%; background: var(--or); opacity: 0; transform: translateX(-110%); }
.top.is-busy::after { opacity: 1; animation: lb 1s linear infinite; }
.rv-in { animation: rv-up .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 60ms); }
@keyframes rv-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .rv-in { opacity: 1 !important; transform: none !important; animation: none !important; } .loadbar i { width: 100%; } }

/* ---------------------------------------------------------------- ritmo vertical: 32 entre áreas, 24 entre título e conteúdo, 12 a 14 entre controles do mesmo grupo */
main { padding-top: 24px; }
.head { margin-bottom: 24px; }
.head--row { margin-bottom: 0; }
.head--row + .sub { margin-top: 4px; }
.tomcard { margin-top: 24px; }
.chips { margin-top: 16px; }
.stages { margin-top: 24px; }
.cards { margin-top: 16px; }

/* ---------------------------------------------------------------- Tom: conversa (bolhas com rabinho, cartão laranja, sugestões, campo em pílula) */
.as__log { gap: 16px; padding: 8px 2px 16px; scrollbar-width: thin; }
.as__row { max-width: 94%; align-items: flex-start; gap: 12px; }
.as__av { margin-top: 2px; box-shadow: 0 0 0 2px var(--s1); }
.as__stack { display: grid; gap: 12px; min-width: 0; }
.as__msg { position: relative; padding: 13px 16px; border-radius: 22px; font-size: 1rem; line-height: 1.45; box-shadow: 0 6px 18px rgba(0, 0, 0, .14); }
:root[data-theme="light"] .as__msg { box-shadow: 0 6px 18px rgba(20, 19, 18, .07); }
.as__msg--assistant { border-bottom-left-radius: 22px; }
.as__msg--user { border-bottom-right-radius: 22px; background: var(--or-soft); }
.as__msg::before, .as__msg::after { content: ""; position: absolute; border-radius: 50%; background: inherit; }
.as__msg::after { width: 10px; height: 10px; bottom: -5px; }
.as__msg::before { width: 6px; height: 6px; bottom: -11px; }
.as__msg--assistant::after { left: 8px; } .as__msg--assistant::before { left: 4px; }
.as__msg--user::after { right: 8px; } .as__msg--user::before { right: 4px; }
.as__row--user { margin-right: 4px; }
.as__row.is-new { animation: as-pop .42s var(--ease) both; }
.as__row--assistant.is-new { transform-origin: 0 100%; } .as__row--user.is-new { transform-origin: 100% 100%; }
@keyframes as-pop { from { opacity: 0; transform: translateY(12px) scale(.94); } to { opacity: 1; transform: none; } }
.as__w { display: inline-block; animation: as-word .5s var(--ease) both; }
@keyframes as-word { from { opacity: 0; filter: blur(6px); transform: translateY(5px); } to { opacity: 1; filter: blur(0); transform: none; } }

.as__draft { margin: 0; padding: 16px 16px 16px; border: 0; border-radius: 22px; background: var(--or); color: var(--on-or); box-shadow: 0 12px 28px rgba(255, 107, 53, .3); gap: 12px; animation: as-pop .5s .12s var(--ease) both; }
.as__draft-t { margin: 0; font-family: var(--f-display); font-weight: 700; font-size: 1.125rem; }
.as__draft .kv { gap: 8px 12px; }
.as__draft .kv dt { color: inherit; opacity: .72; }
.as__draft .kv dd { color: inherit; font-weight: 700; }
.as__draft .as__miss { color: inherit; text-decoration: underline wavy; text-underline-offset: 3px; }
.as__draft .help { color: inherit; opacity: .8; }
.as__open { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 50px; padding: 0 16px; border-radius: 999px; background: #0E0E0E; color: #fff; font-weight: 700; font-size: 1rem; transition: transform .18s var(--ease), background .18s; }
.as__open:hover { background: #1c1b1a; } .as__open:active { transform: scale(.98); }
.as__acts { display: grid; gap: 8px; }
.as__open--alt { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; } .as__open--alt:hover { background: rgba(0, 0, 0, .12); }
.as__open:disabled { opacity: .6; }
.as__done { margin: 0; font-weight: 700; } .as__draft.is-done { opacity: .85; }
.as__fbend { display: flex; justify-content: center; margin: 8px 0 2px; }
.as__fbend .as__fb { margin: 0; justify-content: center; }

.as__note--typing { display: inline-flex; align-items: center; gap: 4px; align-self: flex-start; margin-left: 40px; padding: 12px 16px; border-radius: 999px; background: var(--s2); font-size: 0; color: transparent; }
.as__note--typing::before, .as__note--typing::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--mute); animation: as-dot 1.1s ease-in-out infinite; }
.as__note--typing::after { animation-delay: .22s; }
@keyframes as-dot { 0%, 60%, 100% { transform: translateY(0); opacity: .4; } 30% { transform: translateY(-4px); opacity: 1; } }

.as__chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0 0 40px; }
.as__chip { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line2); background: var(--s1); color: var(--text); font-size: 1rem; transition: background .18s, border-color .18s, transform .18s var(--ease); animation: as-pop .45s calc(.15s + var(--i, 0) * 70ms) var(--ease) both; }
.as__chip:hover { background: var(--s2); border-color: var(--or); } .as__chip:active { transform: scale(.97); }

.as__form { margin-top: 4px; }
.as__bar { display: flex; align-items: flex-end; gap: 8px; padding: 8px 8px 8px 16px; border-radius: 30px; background: var(--s1); border: 1px solid var(--line2); box-shadow: 0 10px 28px rgba(0, 0, 0, .16); transition: border-color .18s, box-shadow .18s; }
.as__bar:focus-within { border-color: var(--or); box-shadow: 0 10px 28px rgba(0, 0, 0, .16), 0 0 0 3px var(--or-soft); }
.as__bar .as__in { flex: 1; min-width: 0; min-height: 56px; max-height: 150px; padding: 8px 0; border: 0; border-radius: 0; background: transparent; color: var(--text); font: inherit; outline: none; box-shadow: none; resize: none; }
.as__bar .as__mic, .as__send { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 0; transition: transform .18s var(--ease), background .18s, box-shadow .18s; }
.as__bar .as__mic { background: transparent; color: var(--mute); } .as__bar .as__mic:hover { background: var(--s2); color: var(--text); }
.as__bar .as__mic.is-rec { background: var(--bad); color: #0E0E0E; }
.as__send { background: var(--or); color: var(--on-or); box-shadow: 0 6px 16px rgba(255, 107, 53, .38); }
.as__send:hover { transform: translateX(2px); } .as__send:active { transform: scale(.92); }
.as__send:disabled { opacity: .5; box-shadow: none; transform: none; }
.as__send[aria-busy="true"] { animation: as-pulse 1.2s ease-in-out infinite; }
.as__foot { margin-top: 2px; }
/* Tom colaborador no Início: mensagem do dia, show chegando, check-in */
.tommoment { display: flex; align-items: flex-start; gap: 16px; margin-top: 20px; padding: 16px; border-radius: var(--r); background: var(--s1); border: 1px solid var(--line); animation: as-pop .5s var(--ease) both; }
.tommoment > img { flex: none; width: 44px; height: 44px; border-radius: 50%; }
.tommoment__b { min-width: 0; flex: 1; display: grid; gap: 12px; }
.tommoment__t { margin: 0; font-size: 1rem; line-height: 1.5; overflow-wrap: anywhere; }
.tommoment__a { display: flex; flex-wrap: wrap; gap: 8px; }
.tommoment__f { display: grid; gap: 12px; }
.tmchip { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line2); background: var(--s2); color: var(--text); font: inherit; font-size: 1rem; transition: background .15s, border-color .15s, transform .15s var(--ease); }
.tmchip:hover { border-color: var(--or); background: var(--or-soft); } .tmchip:active { transform: scale(.97); }
.tmchip--q { background: transparent; color: var(--mute); }
@media (prefers-reduced-motion: reduce) { .tommoment { animation: none; } }
/* avaliação da resposta do Tom: discreta, abaixo da bolha; alvos de toque de 44px */
.as__fb { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: -4px 0 0 4px; color: var(--mute); font-size: .875rem; }
.as__fb-q, .as__fb-done { margin-right: 2px; }
.as__fbtn { min-height: 44px; min-width: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line2); background: transparent; color: var(--text); font: inherit; font-size: .875rem; transition: background .15s, border-color .15s, transform .15s var(--ease); }
.as__fbtn:hover { background: var(--s2); border-color: var(--or); } .as__fbtn:active { transform: scale(.96); }
.as__fbtn[aria-pressed="true"] { background: var(--or-soft); border-color: var(--or); }
.as__fbtn--go { background: var(--or); border-color: var(--or); color: var(--on-or); } .as__fbtn--go:hover { background: var(--or); filter: brightness(1.06); }
.as__fb[data-state="why"] { flex-direction: column; align-items: stretch; gap: 8px; max-width: 100%; }
.as__fb-why { display: flex; flex-wrap: wrap; gap: 8px; }
.as__fb-in { min-height: 44px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--line2); background: var(--s1); color: var(--text); font: inherit; font-size: 1rem; min-width: 0; }
.as__fb[data-state="why"] .as__fbtn--go { align-self: flex-start; }
@media (prefers-reduced-motion: reduce) { .as__row.is-new, .as__chip, .as__draft, .as__w { animation: none !important; } .as__note--typing::before, .as__note--typing::after { animation: none; } }

/* ---------------------------------------------------------------- camada única de interação (hover, clique, foco) */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible { outline: 2px solid var(--or); outline-offset: 2px; }
.inp:focus, .sel:focus, .txt:focus { outline: 2px solid var(--or); outline-offset: 1px; box-shadow: 0 0 0 4px var(--or-soft); }
.btn:active, .chip:active, .card:active, .next:active, .row:active { transition-duration: .09s; }
.card, .next, .chip, .row, .iconbtn { transition: background .15s, border-color .15s, color .15s, transform .15s var(--ease), box-shadow .18s; }
.card:active, .next:active { transform: scale(.985); }
.row:active { transform: scale(.992); }
.row__go { transition: transform .15s var(--ease), color .15s; }
@media (hover: hover) and (pointer: fine) {
  .card:hover, .next:hover { transform: translateY(-2px); border-color: var(--line2); box-shadow: 0 10px 24px rgba(0, 0, 0, .18); }
  :root[data-theme="light"] .card:hover, :root[data-theme="light"] .next:hover { box-shadow: 0 10px 24px rgba(20, 19, 18, .08); }
  .btn:hover { transform: translateY(-1px); }
  .btn:active { transform: translateY(1px) scale(.985); }
  .row:hover .row__go { transform: translateX(3px); color: var(--text); }
  .list > .row:hover { background: var(--s2); border-radius: 12px; }
  .list--cards > .row:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0, 0, 0, .18); border-radius: var(--r); }
  .sec__h a:hover::after { transform: translateX(3px); }
}
.sec__h a::after { display: inline-block; transition: transform .15s var(--ease); }
@media (prefers-reduced-motion: reduce) { .card, .next, .btn, .row, .row__go { transition: none !important; transform: none !important; } }

/* ---------------------------------------------------------------- Agenda: cada show em um cartão */
.list--cards { display: grid; gap: 12px; padding: 0; background: none; border-radius: 0; }
.list--cards > .row { padding: 16px 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--s1); min-height: 84px; }
.list--cards > .row:last-child { border-bottom: 1px solid var(--line); }
.list--cards > .row:hover { border-color: var(--line2); }

/* ---------------------------------------------------------------- Financeiro: anel de progresso */
.fin { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; align-items: center; margin-top: 16px; }
.fin .legend { margin-top: 0; }
.ring { position: relative; width: 112px; height: 112px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 11; }
.ring__bg { stroke: var(--s3); }
.ring__s { stroke-linecap: round; stroke-dasharray: var(--len) 400; stroke-dashoffset: var(--off); animation: ring-draw .9s var(--d, 0ms) var(--ease) both; }
.ring__s--ok { stroke: var(--ok); } .ring__s--or { stroke: var(--or); } .ring__s--bad { stroke: var(--bad); }
@keyframes ring-draw { from { stroke-dasharray: 0 400; } }
.ring__c { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring__c b { font-family: var(--f-display); font-size: 1.5rem; line-height: 1; letter-spacing: -.02em; }
.ring__c small { color: var(--mute); font-size: .75rem; margin-top: 4px; }
@media (max-width: 359px) { .fin { grid-template-columns: 1fr; justify-items: center; } .fin .legend { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .ring__s { animation: none; } }

/* ---------------------------------------------------------------- barra de baixo: bolha que desliza até o item atual */
.tabs { overflow: visible; }
.tabs__ind { position: absolute; left: 0; z-index: 0; border-radius: 999px; background: var(--or-soft); pointer-events: none; will-change: transform; }
.tabs .tab { z-index: 1; }

/* ---------------------------------------------------------------- Negociações: resumo, cor por etapa, urgência */
:root { --st-novo: #6EA8FE; --st-contato: #F2B84B; --st-proposta: #FF6B35; --st-negociacao: #4ED1C1; --st-fechado: var(--ok); --st-perdido: var(--bad); }
:root[data-theme="light"] { --st-novo: #2F6FD6; --st-contato: #B77900; --st-proposta: #E4511A; --st-negociacao: #0E8F80; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.stat { padding: 16px 16px; border-radius: var(--r); background: var(--s1); border: 1px solid var(--line); min-width: 0; }
.stat small { display: block; color: var(--mute); font-size: .875rem; line-height: 1.25; }
.stat b { display: block; margin-top: 8px; font-family: var(--f-display); font-size: 1.5rem; line-height: 1.1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.stat--bad b { color: var(--bad); }
@media (max-width: 420px) { .stat { padding: 12px 12px; } .stat b { font-size: 1.125rem; white-space: nowrap; } .stat small { font-size: .75rem; } }
.card[data-k] { position: relative; }
.card[data-k]::before { content: ""; position: absolute; left: 0; top: 16px; bottom: 16px; width: 3px; border-radius: 0 3px 3px 0; background: var(--c, var(--line2)); }
.card[data-k="novo"] { --c: var(--st-novo); } .card[data-k="contato"] { --c: var(--st-contato); } .card[data-k="proposta"] { --c: var(--st-proposta); }
.card[data-k="negociacao"] { --c: var(--st-negociacao); } .card[data-k="fechado"] { --c: var(--st-fechado); } .card[data-k="perdido"] { --c: var(--st-perdido); }
.card--late { border-color: rgba(255, 107, 134, .4); }
.kan__col { border-top: 3px solid var(--c, var(--line)); }
.kan__col[data-k="novo"] { --c: var(--st-novo); } .kan__col[data-k="contato"] { --c: var(--st-contato); } .kan__col[data-k="proposta"] { --c: var(--st-proposta); }
.kan__col[data-k="negociacao"] { --c: var(--st-negociacao); } .kan__col[data-k="fechado"] { --c: var(--st-fechado); }
.kan__h span { min-width: 26px; padding: 1px 8px; border-radius: 999px; background: var(--s3); text-align: center; font-size: .875rem; }
.chip[data-act="deal-stage"]::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.chip[data-k="novo"] { --c: var(--st-novo); } .chip[data-k="contato"] { --c: var(--st-contato); } .chip[data-k="proposta"] { --c: var(--st-proposta); }
.chip[data-k="negociacao"] { --c: var(--st-negociacao); } .chip[data-k="fechado"] { --c: var(--st-fechado); } .chip[data-k="perdido"] { --c: var(--st-perdido); }
.chip[data-act="deal-stage"][aria-pressed="true"]::before { background: var(--on-or); }

/* ---------------------------------------------------------------- Mais: atalhos em cartões com ícone */
.tiles { display: grid; gap: 12px; margin-top: 16px; }
@media (min-width: 720px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tile { display: flex; align-items: center; gap: 16px; min-height: 76px; padding: 16px 16px; border-radius: var(--r); background: var(--s1); border: 1px solid var(--line); text-decoration: none; color: var(--text); transition: transform .15s var(--ease), border-color .15s, box-shadow .18s, background .15s; }
.tile__ic { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--or-soft); color: var(--or-t); }
.tile__t { flex: 1; min-width: 0; font-weight: 700; }
.tile__t small { display: block; margin-top: 2px; color: var(--mute); font-size: .875rem; font-weight: 400; }
.tile .row__go { flex: none; }
.tile:active { transform: scale(.985); }
@media (hover: hover) and (pointer: fine) {
  .tile:hover { transform: translateY(-2px); border-color: var(--line2); box-shadow: 0 10px 24px rgba(0, 0, 0, .18); }
  .tile:hover .row__go { transform: translateX(3px); color: var(--text); }
}
@media (prefers-reduced-motion: reduce) { .tile { transition: none; transform: none !important; } }

/* ---------------------------------------------------------------- folhas e formulários */
.sheet::backdrop { background: rgba(0, 0, 0, .6); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
:root[data-theme="light"] .sheet::backdrop { background: rgba(20, 19, 18, .38); }
.sheet__head h2 { font-size: 1.25rem; letter-spacing: -.01em; }
.sheet__body .box { padding: 16px 16px; border-radius: var(--r); background: var(--s2); border: 1px solid var(--line); }
.sheet .inp, .sheet .sel, .sheet .txt { border-radius: 14px; background: var(--s2); border: 1px solid var(--line2); transition: border-color .15s, box-shadow .18s; }
.sheet .inp:focus, .sheet .sel:focus, .sheet .txt:focus { border-color: var(--or); }
.sheet .field > span { color: var(--text); }
.sheet .btnrow .btn:not(.btn--ghost):not(.btn--danger) { box-shadow: 0 8px 20px rgba(255, 107, 53, .26); }

/* ---------------------------------------------------------------- Tom: foto para o site e troca no limite de 12 */
.as__bar .as__photo { color: var(--mute); }
.as__swap { display: grid; gap: 8px; margin-top: 12px; max-height: 260px; overflow-y: auto; }
.as__swapitem { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 8px 12px 8px 8px; border-radius: 14px; border: 1px solid rgba(0, 0, 0, .25); background: rgba(0, 0, 0, .12); color: inherit; text-align: left; font-weight: 700; }
.as__swapitem img { flex: none; width: 52px; height: 52px; border-radius: 10px; object-fit: cover; }
.as__swapitem[aria-checked="true"] { background: #0E0E0E; color: #fff; border-color: #0E0E0E; }

@media (max-width: 340px) { .as__bar { padding-left: 12px; gap: 2px; } .as__bar .as__mic, .as__send { width: 44px; height: 44px; } }

/* seletor de perfis (conta com mais de um artista) */
.swp-btn { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; min-height: 44px; padding: 4px 10px 4px 4px; margin-left: -4px; border-radius: 999px; color: inherit; font: inherit; font-size: .9375rem; font-weight: 600; text-align: left; transition: background-color .15s ease, transform .16s var(--ease-out, cubic-bezier(.23, 1, .32, 1)); }
.swp-btn:active { transform: scale(.97); }
.swp-btn__n { min-width: 0; max-width: 44vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.swp-av { flex: none; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: hsl(var(--h) 38% 30%); color: #fff; font-weight: 700; font-size: 1.125rem; letter-spacing: 0; }
.swp-av--s { width: 32px; height: 32px; font-size: .9375rem; }
.swp-row .swp-av { margin-right: 4px; }
.swp-row[aria-current="true"] { color: var(--or-t); }
@media (hover: hover) and (pointer: fine) { .swp-btn:hover { background: var(--s2, rgba(255, 255, 255, .08)); } }
