/* CRM Velloce: direção visual aprovada no protótipo de design.
   Branco predominante, azul-marinho como cor principal, dourado e âmbar nos destaques.
   Claro, arredondado, muito respiro. Sem fundo escuro e sem preto puro. */
:root {
  --bg: #FFFFFF; --paper: #FDFCF9; --soft: #FAF8F4; --line: #ECE6DA; --line-gold: #E8D9B8;
  --ink: #1F2D4A; --ink-2: #3D4A63; --muted: #6A6E78; --faint: #8B8E96;
  --gold: #7A5A22; --gold-bg: #F6F0E4; --gold-line: #E3D2AE; --gold-bar: #B8893A; --gold-light: #E9CD8C; --amber: #E3A93F;
  --warn: #7A5410; --warn-bg: #FCF3E1; --warn-line: #F1DDB4;
  --ok: #1F6E51; --ok-bg: #E4F4EE; --ok-dot: #2F8F6B;
  --bad: #9E3A25; --bad-bg: #FBEAE6;
  --rev: #7A3E5A; --rev-bg: #F6ECF1; --rev-line: #E6CBD8;
  --ig: #9A4A2E; --ig-bg: #F8ECE5; --ig-line: #EBCFC2;
  --blue-bg: #F5F7FB; --blue-line: #D9DFEA; --slate: #56698F; --slate-bg: #EEF1F6;
  --panel: #FFFFFF; --btn: #1F2D4A; --on-btn: #FFFFFF; --hero: #1F2D4A; --on-hero: #FFFFFF; --on-hero-muted: #D5DAE5; --shade: 31, 45, 74;
  --scroll: #E6DFD2; --bad-line: #F2D2CA; --bad-wash: #FFFBFA; --msg-out-line: #EADCBF; --disabled: #F4F1EB; --gold-wash: #FDFAF3;
  --track: #EFE8DA; --track-off: #E6E1D6; --warn-ink: #5E410C; --ph: #F7F3EA; --ok-line: #CDE9DF; --ok-wash: #F6FBF9; --knob: #FFFFFF;
  --glass: rgba(255,255,255,.55); --glass-line: rgba(255,255,255,.7);
  color-scheme: light;
  --display: 'Jost', 'Plus Jakarta Sans', system-ui, sans-serif;
  --body: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-family: var(--body); font-size: 14px; color: var(--ink);
}
:root[data-tema="escuro"] {
  --bg: #0F131C; --paper: #161B27; --soft: #141925; --line: #2B3243; --line-gold: #4A3F2B;
  --ink: #ECE8E0; --ink-2: #CFD3DC; --muted: #A5ABB8; --faint: #8A91A1;
  --gold: #E2C287; --gold-bg: #2A2621; --gold-line: #5A4A2C; --gold-bar: #C79A48; --gold-light: #E9CD8C; --amber: #E3A93F;
  --warn: #F2B15C; --warn-bg: #3A2C17; --warn-line: #5A4421;
  --ok: #6FCF9F; --ok-bg: #1E3329; --ok-dot: #3FAE82;
  --bad: #F0A493; --bad-bg: #3A2220;
  --rev: #E7A9C6; --rev-bg: #33232D; --rev-line: #5A3A4A;
  --ig: #F0A88A; --ig-bg: #35241D; --ig-line: #5C3B2E;
  --blue-bg: #182033; --blue-line: #2E3A55; --slate: #BCC8E6; --slate-bg: #263049;
  --panel: #1A2030; --btn: #E2C287; --on-btn: #141925; --hero: #262F47; --on-hero: #ECE8E0; --on-hero-muted: #A5ABB8; --shade: 0, 0, 0;
  --scroll: #2B3243; --bad-line: #5A3029; --bad-wash: #241C22; --msg-out-line: #4A3F2B; --disabled: #1F2535; --gold-wash: #1E2230;
  --track: #2B3243; --track-off: #3A4256; --warn-ink: #F2D29A; --ph: #202638; --ok-line: #24493A; --ok-wash: #17251F; --knob: #ECE8E0;
  --glass: rgba(18,23,34,.62); --glass-line: rgba(255,255,255,.09);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--ink); }
#app { position: relative; z-index: 1; height: 100%; }
button { font: inherit; cursor: pointer; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold-bar); outline-offset: 2px; }
.ico { display: inline-flex; line-height: 0; }
.scroll::-webkit-scrollbar, .rows::-webkit-scrollbar, .msgs::-webkit-scrollbar, .kscroll::-webkit-scrollbar { width: 8px; height: 8px; }
.rows::-webkit-scrollbar-thumb, .msgs::-webkit-scrollbar-thumb, .kscroll::-webkit-scrollbar-thumb, .side::-webkit-scrollbar-thumb { background: var(--scroll); border-radius: 8px; }

/* botões e campos */
.btn { height: 44px; border: 0; border-radius: 14px; padding: 0 18px; background: var(--btn); color: var(--on-btn); font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; }
.btn:disabled { opacity: .45; cursor: default; }
.btn.ghost { background: var(--panel); color: var(--ink); border: 1px solid var(--line); font-weight: 600; }
.btn.ghost:hover { border-color: var(--gold-line); }
.btn.gold { background: var(--gold-bg); color: var(--gold); border: 1px solid var(--gold-line); }
.btn.sm { height: 36px; padding: 0 14px; border-radius: 12px; font-size: 13px; }
.pill-btn { height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--soft); color: var(--ink); font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.pill-btn:hover { border-color: var(--gold-line); background: var(--gold-bg); color: var(--gold); }
.field { display: grid; gap: 6px; font-size: 12px; font-weight: 600; color: var(--muted); min-width: 0; }
.field input, .field select, .field textarea { min-width: 0; max-width: 100%; }
.field input, .field select, .field textarea { height: 44px; border: 1px solid var(--line); border-radius: 14px; padding: 0 14px; background: var(--soft); font-size: 14px; font-weight: 500; color: var(--ink); outline: none; }
.field input:focus, .field select:focus { border-color: var(--gold-line); background: var(--panel); }
.err { color: var(--bad); font-size: 13px; min-height: 1em; }
.hint { color: var(--muted); font-size: 13px; margin: 0; line-height: 1.5; }
.empty { color: var(--muted); padding: 28px 16px; text-align: center; font-size: 13px; }
.notice { font-size: 13px; line-height: 1.45; padding: 10px 14px; border-radius: 14px; background: var(--warn-bg); color: var(--warn); border: 1px solid var(--warn-line); }
.notice.red { background: var(--bad-bg); color: var(--bad); border-color: var(--bad-line); }
.notice.blue { background: var(--blue-bg); color: var(--ink); border-color: var(--blue-line); }
.notice[hidden] { display: none; }
.lab { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.pill { font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 999px; white-space: nowrap; background: var(--gold-bg); color: var(--gold); }
.pill.need { background: var(--bad-bg); color: var(--bad); }
.pill.vera { background: var(--slate-bg); color: var(--ink); }
.pill.sdr { background: var(--gold-bg); color: var(--gold); }
.pill.warn { background: var(--warn-bg); color: var(--warn); }
.pill.ok { background: var(--ok-bg); color: var(--ok); }
.avatar { flex-shrink: 0; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; }
.num { font-family: var(--display); font-weight: 600; font-variant-numeric: tabular-nums; }

.brand { font-family: var(--display); font-weight: 600; font-size: 30px; letter-spacing: .02em; margin: 0 0 8px; color: var(--ink); }
.brand small { display: block; font-family: var(--body); font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-bar); margin-top: 4px; }

/* estrutura: menu lateral | topo / conteúdo */
.shell { height: 100%; display: grid; grid-template-columns: 92px 340px minmax(0, 1fr) 360px; grid-template-rows: 76px minmax(0, 1fr); }
.rail { grid-row: 1 / -1; grid-column: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 20px 12px; border-right: 1px solid var(--line); background: var(--panel); }
.rail .logo { width: 52px; height: 52px; border-radius: 18px; background: var(--warn-bg); border: 1px solid var(--warn-line); display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 600; font-size: 18px; color: var(--warn); margin-bottom: 16px; }
.rail .nav-btn { width: 68px; height: 64px; border-radius: 18px; border: 0; background: transparent; color: var(--muted); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 11px; font-weight: 600; }
.rail .nav-btn:hover { background: var(--soft); color: var(--ink); }
.rail .nav-btn[aria-current="page"] { background: var(--hero); color: var(--gold-light); }
.rail .grow { flex: 1; }
.rail .mark { font-family: var(--display); font-size: 11px; letter-spacing: .12em; color: var(--faint); }
.rail .me { width: 44px; height: 44px; border-radius: 50%; background: var(--gold-bg); color: var(--gold); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; }

.top { grid-column: 2 / -1; position: relative; display: flex; align-items: center; gap: 16px; padding: 0 28px; border-bottom: 1px solid var(--line-gold); background: var(--panel); min-width: 0; }
.top .title { display: flex; flex-direction: column; gap: 2px; min-width: 180px; flex: 0 1 auto; }
.top .title b { font-family: var(--display); font-weight: 600; font-size: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top .title span { font-size: 13px; color: var(--muted); white-space: nowrap; }
.top .grow { flex: 1; }
.kpi-mini { padding: 8px 14px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 1px; min-width: 104px; }
.kpi-mini span { font-size: 10.5px; color: var(--muted); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.kpi-mini b { font-family: var(--display); font-size: 20px; font-weight: 600; }
.kpi-mini.alert b { color: var(--bad); }
.top-kpis, .top-actions { display: flex; gap: 10px; align-items: center; }
.bell { position: relative; width: 44px; height: 44px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); display: inline-flex; align-items: center; justify-content: center; color: var(--ink); }
.bell .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.badge { position: absolute; top: -6px; right: -6px; background: var(--bad); color: var(--on-btn); font-size: 11px; font-weight: 700; min-width: 20px; height: 20px; border-radius: 10px; display: grid; place-items: center; padding: 0 5px; border: 2px solid var(--panel); }
.badge[hidden] { display: none; }
.notif-panel { position: absolute; top: 70px; right: 20px; width: 380px; max-height: 70vh; overflow: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 20px 50px rgba(var(--shade),.14); z-index: 10; padding: 8px; }
.notif-panel[hidden] { display: none; }
.notif { display: grid; gap: 3px; width: 100%; text-align: left; border: 0; border-radius: 16px; background: transparent; padding: 12px 14px; }
.notif:hover { background: var(--soft); }
.notif.unread { background: var(--warn-bg); }
.notif b { font-size: 14px; }
.notif-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 14px 6px; }
.notif-head b { font-size: 15px; }
.notif .notif-kind { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--gold); }
.notif span { color: var(--muted); font-size: 12px; }

/* lista de conversas */
.list { grid-column: 2; grid-row: 2; border-right: 1px solid var(--line); display: grid; grid-template-rows: auto minmax(0, 1fr); background: var(--panel); min-height: 0; }
.list-head { padding: 18px 18px 12px; display: grid; gap: 12px; }
.search { display: flex; align-items: center; gap: 10px; padding: 0 14px; height: 44px; border-radius: 14px; background: var(--soft); border: 1px solid var(--line); color: var(--muted); }
.search input { border: 0; background: transparent; outline: none; flex: 1; min-width: 0; font-size: 14px; color: var(--ink); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); font-size: 12px; font-weight: 600; color: var(--muted); display: inline-flex; align-items: center; gap: 5px; }
.chip[aria-pressed="true"] { border-color: var(--ink); background: var(--gold-bg); color: var(--gold); }
.chip .n { font-variant-numeric: tabular-nums; opacity: .8; }
.rows { overflow: auto; min-height: 0; padding: 0 10px 14px; display: flex; flex-direction: column; gap: 4px; }
.row { width: 100%; display: flex; gap: 12px; padding: 12px; border-radius: 18px; border: 1px solid transparent; background: transparent; text-align: left; }
.row:hover { background: var(--soft); }
.row[aria-current="true"] { background: var(--gold-bg); border-color: var(--gold-line); }
.row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.row .l1 { display: flex; gap: 6px; align-items: center; min-width: 0; }
.row .name { font-weight: 600; font-size: 14px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .time { font-size: 12px; color: var(--muted); flex-shrink: 0; }
.row .time.late { color: var(--bad); font-weight: 700; }
.row .prev { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* conversa */
.chat { grid-column: 3; grid-row: 2; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; min-height: 0; min-width: 0; background: var(--paper); }
.chat-head { min-height: 68px; display: flex; align-items: center; gap: 14px; padding: 10px 24px; border-bottom: 1px solid var(--line-gold); background: var(--panel); flex-wrap: wrap; }
.chat-head .who-box { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 160px; }
.chat-head h2 { margin: 0; font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.chat-head .sub { font-size: 12px; color: var(--muted); }
.chat-head .sub.closed { color: var(--bad); font-weight: 600; }
.msgs { overflow: auto; padding: 24px 28px; display: flex; flex-direction: column; gap: 10px; min-height: 0; }
.msg { max-width: min(460px, 86%); padding: 12px 14px; border-radius: 18px 18px 18px 6px; background: var(--panel); border: 1px solid var(--line); font-size: 14px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; align-self: flex-start; }
.msg.out { align-self: flex-end; border-radius: 18px 18px 6px 18px; background: var(--gold-bg); border-color: var(--msg-out-line); }
.msg.ai { align-self: flex-end; border-radius: 18px 18px 6px 18px; background: var(--blue-bg); border-color: var(--blue-line); }
.msg .meta { display: block; font-size: 11px; color: var(--muted); margin-top: 6px; }
.msg.out .meta, .msg.ai .meta { text-align: right; }
.msg img { display: block; max-width: 240px; border-radius: 14px; margin-bottom: 8px; }
.msg.failed { border-color: var(--bad-line); } .msg.failed .meta { color: var(--bad); font-weight: 600; }
.composer { border-top: 1px solid var(--line); background: var(--panel); padding: 14px 24px 18px; display: grid; gap: 10px; }
.composer .row2 { display: flex; gap: 10px; align-items: flex-end; }
.composer textarea { flex: 1; resize: none; border: 1px solid var(--line); border-radius: 16px; padding: 13px 18px; min-height: 48px; max-height: 160px; background: var(--soft); font-size: 14px; outline: none; line-height: 1.45; }
.composer textarea:focus { border-color: var(--gold-line); background: var(--panel); }
.composer .btn { height: 48px; border-radius: 16px; padding: 0 22px; }
.placeholder { display: grid; place-items: center; align-content: center; gap: 10px; color: var(--muted); font-size: 14px; grid-row: 1 / -1; }
.placeholder .ico { color: var(--gold-line); }

/* ficha ao lado da conversa */
.side { grid-column: 4; grid-row: 2; border-left: 1px solid var(--line); background: var(--panel); overflow: auto; padding: 20px; display: flex; flex-direction: column; gap: 16px; min-height: 0; }
.side section { display: grid; gap: 8px; }
.card-soft { padding: 16px; border-radius: 20px; background: var(--soft); display: grid; gap: 8px; }
.stat-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.stat { padding: 12px; border-radius: 16px; border: 1px solid var(--line); display: grid; gap: 2px; }
.stat b { font-family: var(--display); font-size: 20px; font-weight: 600; }
.qa { display: grid; gap: 2px; padding: 10px 12px; border-radius: 14px; background: var(--soft); }
.qa span { font-size: 11px; color: var(--muted); }
.qa b { font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.reason { padding: 14px; border-radius: 18px; background: var(--warn-bg); border: 1px solid var(--warn-line); display: grid; gap: 4px; }
.reason b { font-size: 14px; color: var(--warn); }
.kv { display: grid; grid-template-columns: 96px 1fr; gap: 6px 10px; font-size: 13px; margin: 0; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; overflow-wrap: anywhere; font-weight: 600; }

/* funil */
.board { display: none; grid-column: 2 / -1; grid-row: 2; position: relative; min-height: 0; grid-template-rows: auto minmax(0, 1fr); background: var(--panel); }
.ktools { display: flex; gap: 12px; align-items: center; padding: 20px 28px 8px; flex-wrap: wrap; }
.ktools .search { width: min(340px, 100%); }
.ktools select { height: 44px; border: 1px solid var(--line); border-radius: 14px; padding: 0 14px; background: var(--soft); font-weight: 600; }
.kscroll { display: flex; gap: 14px; overflow: auto; padding: 12px 28px 24px; min-height: 0; align-items: stretch; }
.kcol { flex: 0 0 236px; display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 10px; min-height: 0; }
.kcol header { display: flex; align-items: center; gap: 8px; padding: 0 4px; }
.kcol header b { font-size: 14px; font-weight: 700; }
.kdot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.kcount { margin-left: auto; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); color: var(--muted); font-variant-numeric: tabular-nums; }
.kbody { overflow: auto; padding: 8px; display: flex; flex-direction: column; gap: 10px; min-height: 120px; border-radius: 20px; background: var(--soft); border: 1px solid var(--line); }
.kcol.over .kbody { border-color: var(--gold-bar); background: var(--gold-bg); }
.kcard { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 12px; cursor: grab; display: flex; flex-direction: column; gap: 8px; box-shadow: 0 2px 8px rgba(var(--shade),.05); text-align: left; }
.kcard:hover { border-color: var(--gold-line); }
.kcard.sel { border-color: var(--gold-bar); box-shadow: 0 0 0 3px var(--gold-bg); }
.khead { display: flex; align-items: center; gap: 8px; min-width: 0; }
.kname { font-weight: 600; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kmeta { font-size: 12px; color: var(--muted); line-height: 1.4; }
.kpills { display: flex; gap: 6px; flex-wrap: wrap; }
.kdue { font-size: 12px; line-height: 1.4; color: var(--ink-2); } .kdue.late { color: var(--bad); font-weight: 700; }
.drawer { position: absolute; top: 0; right: 0; bottom: 0; width: min(400px, 100%); background: var(--panel); border-left: 1px solid var(--line); box-shadow: -12px 0 40px rgba(var(--shade),.14); overflow: auto; padding: 20px; display: flex; flex-direction: column; gap: 14px; z-index: 5; }
.drawer > *, .side > * { flex-shrink: 0; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.drawer-head .who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.drawer-head h2 { margin: 0; font-size: 17px; font-weight: 700; overflow-wrap: anywhere; }
.drawer h3 { margin: 6px 0 0; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.drawer .field input:disabled, .drawer .field select:disabled { background: var(--disabled); color: var(--muted); }
.counters { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.counters > div { border: 1px solid var(--line); border-radius: 16px; padding: 12px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 8px; }
.counters span { font-size: 11px; font-weight: 700; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; grid-column: 1; }
.counters b { font-family: var(--display); font-size: 22px; font-weight: 600; grid-column: 1; }
.counters .btn { grid-column: 2; grid-row: 1 / 3; height: 36px; padding: 0 12px; border-radius: 12px; }
.note-add { display: grid; gap: 8px; }
.note-add textarea { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; resize: vertical; background: var(--soft); outline: none; }
.notes { display: grid; gap: 8px; }
.note { border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; }
.note p { margin: 0 0 4px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; line-height: 1.5; }
.note span { font-size: 11px; color: var(--muted); }
.next-box { padding: 14px; border-radius: 18px; background: var(--gold-bg); display: grid; gap: 4px; }
.next-box .lab { color: var(--gold); }

/* meu dia */
.dayview { display: none; grid-column: 2 / -1; grid-row: 2; overflow: auto; padding: 28px; background: var(--panel); }
.myday { max-width: 880px; display: flex; flex-direction: column; gap: 14px; }
.myday .h { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.myday h2 { margin: 0; font-family: var(--display); font-weight: 600; font-size: 22px; }
.myday h3 { margin: 10px 0 0; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.meters { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.meter { padding: 18px 20px; border-radius: 22px; border: 1px solid var(--gold-line); background: var(--gold-wash); display: grid; gap: 10px; }
.meter:first-child { background: var(--hero); border-color: var(--hero); color: var(--on-hero); }
.meter:first-child .meter-top span, .meter:first-child .hint { color: var(--on-hero-muted); }
.meter:first-child .bar { background: rgba(255,255,255,.16); }
.meter:first-child .bar i { background: var(--gold-light); }
.meter-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.meter-top span { font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.meter-top b { font-family: var(--display); font-size: 30px; font-weight: 600; font-variant-numeric: tabular-nums; }
.meter.ok .bar i { background: var(--ok-dot); }
.bar { height: 10px; border-radius: 999px; background: var(--track); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 999px; background: var(--gold-bar); }
.task { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 16px 20px; border-radius: 20px; background: var(--panel); border: 1px solid var(--line); }
.task.late { border-color: var(--bad-line); background: var(--bad-wash); }
.task-main { flex: 1; min-width: 180px; display: grid; gap: 3px; }
.task-main b { font-size: 15px; font-weight: 600; }
.task-main span { font-size: 13px; color: var(--muted); }
.task.late .task-main span { color: var(--bad); font-weight: 600; }
.task-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.task-actions .btn { height: 40px; padding: 0 14px; border-radius: 12px; font-size: 13px; }

/* janelas (metas, planilha, relatório) */
.modal-back { position: fixed; inset: 0; background: rgba(var(--shade),.28); backdrop-filter: blur(3px); display: grid; place-items: center; z-index: 20; padding: 16px; }
.modal { background: var(--panel); border-radius: 26px; padding: 28px; width: min(440px, 100%); display: grid; gap: 14px; box-shadow: 0 30px 80px rgba(var(--shade),.18); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow-y: auto; overscroll-behavior: contain; }
.modal h2 { margin: 0; font-family: var(--display); font-weight: 600; font-size: 22px; }
.modal select, .report select { height: 44px; border: 1px solid var(--line); border-radius: 14px; padding: 0 14px; background: var(--soft); font-weight: 500; }
.actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.report-overlay { position: fixed; inset: 0; background: var(--soft); overflow: auto; z-index: 30; padding: 24px 16px; }
.report { max-width: 900px; margin: 0 auto; background: var(--panel); border: 1px solid var(--line); border-radius: 26px; padding: 32px; display: grid; gap: 16px; }
.report-actions { display: flex; justify-content: space-between; gap: 10px; }
.report h3 { margin: 10px 0 0; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.kpi { border: 1px solid var(--line); border-radius: 22px; padding: 18px; display: grid; gap: 4px; }
.kpi:first-child { background: var(--hero); border-color: var(--hero); color: var(--on-hero); }
.kpi:first-child .kpi-l { color: var(--gold-light); } .kpi:first-child .kpi-s { color: var(--on-hero-muted); }
.kpis.plain .kpi:first-child { background: var(--panel); color: var(--ink); border-color: var(--line); }
.kpis.plain .kpi:first-child .kpi-l { color: var(--muted); }
.kpi b { font-family: var(--display); font-size: 30px; font-weight: 600; font-variant-numeric: tabular-nums; }
.kpi-l { font-size: 12px; font-weight: 600; color: var(--muted); } .kpi-s { font-size: 12px; color: var(--ok); font-weight: 600; }
.funnel { display: grid; gap: 8px; }
.frow { display: grid; grid-template-columns: 120px 1fr 40px; gap: 12px; align-items: center; font-size: 14px; }
.frow b { text-align: right; font-variant-numeric: tabular-nums; }
.frow .bar { height: 14px; }
.reasons { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.reasons li { font-size: 13px; font-weight: 600; padding: 7px 12px; border-radius: 999px; background: var(--warn-bg); color: var(--warn); }
@media print {
  .shell, .modal-back, .no-print { display: none !important; }
  html, body { background: var(--panel); height: auto; }
  .report-overlay { position: static; overflow: visible; padding: 0; background: var(--panel); }
  .report { border: 0; max-width: none; padding: 0; }
  .kpi:first-child { background: var(--panel); color: var(--ink); border-color: var(--line); }
}

/* modos de tela */
.shell.funil .list, .shell.funil .chat, .shell.funil .side,
.shell.meudia .list, .shell.meudia .chat, .shell.meudia .side, .shell.meudia .board { display: none; }
.shell.funil .board { display: grid; }
.shell.meudia .dayview { display: block; }

/* telas médias: a ficha sai da lateral */
@media (max-width: 1180px) {
  .shell { grid-template-columns: 92px 320px minmax(0, 1fr); }
  .side { display: none; }
  .top-kpis { display: none; }
}
@media (min-width: 761px) { #chat-head > button[aria-label="Voltar"] { display: none; } }

/* celular: menu embaixo, uma coluna */
@media (max-width: 760px) {
  .shell { grid-template-columns: minmax(0, 1fr); grid-template-rows: 64px minmax(0, 1fr); padding-bottom: 70px; }
  .rail { position: fixed; left: 0; right: 0; bottom: 0; height: calc(70px + env(safe-area-inset-bottom, 0px)); flex-direction: row; justify-content: space-around; padding: 6px 8px env(safe-area-inset-bottom, 0px); border-right: 0; border-top: 1px solid var(--line); z-index: 15; }
  .rail .logo, .rail .grow, .rail .mark, .rail .me { display: none; }
  .rail .nav-btn { flex: 1; height: 56px; width: auto; }
  .top { grid-column: 1; padding: 0 16px; gap: 8px; overflow-x: auto; scrollbar-width: none; }
  .top > * { flex-shrink: 0; }
  .top .title { flex-shrink: 1; min-width: 0; }
  .top-actions { gap: 6px; }
  .top-actions .enable-push { display: none; }
  .chat-head .vera-ctl { flex: 1 1 100%; }
  .chat-head .vera-switch { flex: 1; min-width: 0; }
  .top .title b { font-size: 17px; }
  .top .title span { display: none; }
  .top-actions .pill-btn .txt { display: none; }
  .top-actions .pill-btn { width: 40px; padding: 0; justify-content: center; }
  .list, .chat, .board, .dayview { grid-column: 1; }
  .shell.has-conv .list { display: none; }
  .shell:not(.has-conv) .chat { display: none; }
  .msgs { padding: 16px; }
  .chat-head, .composer { padding-left: 12px; padding-right: 12px; }
  .notif-panel { position: fixed; top: 70px; right: 8px; left: 8px; width: auto; }
  .kscroll, .ktools { padding-left: 16px; padding-right: 16px; }
  .kcol { flex-basis: 80vw; }
  .dayview { padding: 16px; }
  .task-actions { width: 100%; }
  .task-actions .btn { flex: 1; }
}

/* controle da Vera na conversa */
.vera-ctl { display: flex; align-items: center; gap: 10px; }
.vera-switch { display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 16px 0 8px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); text-align: left; }
.vera-switch .track { width: 46px; height: 28px; border-radius: 999px; background: var(--track-off); position: relative; flex-shrink: 0; transition: background .2s; }
.vera-switch .knob { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--knob); box-shadow: 0 1px 4px rgba(var(--shade),.2); display: flex; align-items: center; justify-content: center; color: var(--muted); transition: left .2s; }
.vera-switch.on { border-color: var(--blue-line); background: var(--blue-bg); }
.vera-switch.on .track { background: var(--btn); }
.vera-switch.on .knob { left: 21px; color: var(--hero); }
.vs-txt { display: grid; line-height: 1.2; }
.vs-txt b { font-size: 13px; } .vs-txt small { font-size: 11px; color: var(--muted); }
.link-btn { border: 0; background: none; color: var(--muted); font-size: 12px; text-decoration: underline; padding: 4px; }
.vera-off { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--muted); padding: 8px 12px; border-radius: 999px; background: var(--soft); border: 1px solid var(--line); }
@media (prefers-reduced-motion: reduce) { .vera-switch .track, .vera-switch .knob { transition: none; } }

/* ações rápidas, ligação e sugestão da Vera */
.quick { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.pill-btn.on { background: var(--btn); color: var(--on-btn); border-color: var(--btn); }
.flash { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ok); }
.call-box { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 16px; background: var(--gold-bg); border: 1px solid var(--gold-line); }
.call-box b { font-size: 13px; color: var(--warn); margin-right: 4px; }
.call-box .pill-btn { background: var(--panel); height: 34px; }
.suggestion { padding: 12px 14px; border-radius: 16px; border: 1px solid var(--blue-line); background: var(--blue-bg); display: grid; gap: 8px; }
.sg-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .sg-head b { font-size: 13px; } .sg-head span:last-child { font-size: 11px; color: var(--muted); }
.suggestion p { margin: 0; font-size: 14px; line-height: 1.5; white-space: pre-wrap; }
.sg-actions { display: flex; gap: 8px; flex-wrap: wrap; }
/* pergunta interna da Vera para a SDR (a paciente não vê) */
.vera-ask { padding: 12px 14px; border-radius: 16px; border: 1px solid var(--gold-line); background: var(--gold-bg); display: grid; gap: 8px; }
.vera-ask .sg-head b { color: var(--warn); }
.vera-ask .vq { margin: 0; font-size: 14px; font-weight: 600; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.vera-ask .vq-from { margin: 0; font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.vera-ask textarea { width: 100%; min-height: 56px; resize: vertical; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); font: inherit; font-size: 14px; }
/* "Vera digitando" na conversa */
.msg.typing { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.msg.typing .dots { display: inline-flex; gap: 3px; }
.msg.typing .dots i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .35; animation: vdot 1.2s infinite ease-in-out; }
.msg.typing .dots i:nth-child(2) { animation-delay: .15s; } .msg.typing .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes vdot { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: .9; transform: translateY(-2px); } }
@media (prefers-reduced-motion: reduce) { .msg.typing .dots i { animation: none; opacity: .6; } }

/* ficha ao lado da conversa */
.facts { padding: 16px; border-radius: 20px; background: var(--soft); display: grid; gap: 10px; }
.facts-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.fact { display: grid; gap: 2px; }
.fact span { font-size: 11px; color: var(--muted); }
.fact b { font-size: 14px; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.fact.strong b { font-size: 16px; color: var(--ink); }
.more summary { cursor: pointer; font-size: 12px; font-weight: 600; color: var(--muted); }
.more .qa { margin-top: 6px; background: var(--panel); }
.stat.warn { border-color: var(--gold-line); background: var(--warn-bg); }
.warn-txt { font-size: 11px; font-weight: 700; color: var(--warn); }
.stage-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.stage-chip { height: 32px; padding: 0 12px; border-radius: 999px; font-size: 12px; font-weight: 600; border: 1px solid var(--line); background: var(--panel); color: var(--muted); }
.stage-chip:hover:not(:disabled) { border-color: var(--gold-line); color: var(--ink); }
.stage-chip:disabled { cursor: default; opacity: .6; }
.next-box input { height: 40px; border: 1px solid var(--gold-line); border-radius: 12px; padding: 0 12px; background: var(--panel); font-size: 13px; min-width: 0; width: 100%; }
.next-row { display: flex; gap: 8px; } .next-row input { flex: 1; }
.next-box .due { font-size: 12px; font-weight: 600; color: var(--ink-2); } .next-box .due.late { color: var(--bad); }
.kv-mini { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); } .kv-mini b { color: var(--ink); }

/* janela de metas e Vera */
.switch-row { position: relative; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 12px; padding: 14px; border-radius: 16px; border: 1px solid var(--line); cursor: pointer; }
.switch-row input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-row .sw { width: 46px; height: 28px; border-radius: 999px; background: var(--track-off); position: relative; }
.switch-row .sw::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--knob); box-shadow: 0 1px 4px rgba(var(--shade),.2); transition: left .2s; }
.switch-row input:checked + .sw { background: var(--btn); }
.switch-row input:checked + .sw::after { left: 21px; }
.switch-row input:focus-visible + .sw { outline: 2px solid var(--gold-bar); outline-offset: 2px; }
.switch-row > span:last-child { display: grid; gap: 2px; }
.switch-row > span:last-child b { font-size: 14px; }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.hint-xs { font-size: 11px; color: var(--muted); }

/* telas de operação (Agenda, Consultas, Kit, Dados, Painel, Anúncios, Valores, Equipe) */
.pageview { display: none; grid-column: 2 / -1; grid-row: 2; overflow: auto; min-height: 0; background: var(--panel); }
.pageview.active { display: block; }
.shell[data-view]:not([data-view="conversas"]) .list, .shell[data-view]:not([data-view="conversas"]) .chat, .shell[data-view]:not([data-view="conversas"]) .side { display: none; }
.page { padding: 28px; display: flex; flex-direction: column; gap: 14px; max-width: 1180px; }
.page.split { flex-direction: row; align-items: flex-start; gap: 20px; }
.col-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.col-side { width: 320px; flex-shrink: 0; display: flex; flex-direction: column; gap: 12px; }
.page-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.page h2, .col-side h2 { margin: 0; font-family: var(--display); font-weight: 600; font-size: 22px; }
.scope, .col-side select { height: 40px; border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; background: var(--soft); font-weight: 600; }
.empty-card { padding: 22px; border-radius: 20px; border: 1px dashed var(--gold-line); color: var(--muted); font-size: 13px; text-align: center; background: var(--gold-wash); }
.appt { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; padding: 16px 20px; border-radius: 20px; background: var(--panel); border: 1px solid var(--line); }
.appt.due { border-color: var(--gold-line); background: var(--gold-wash); }
.appt-time { width: 96px; display: grid; gap: 2px; border-right: 1px solid var(--line); }
.appt-time b { font-family: var(--display); font-size: 22px; font-weight: 600; }
.appt-time span { font-size: 12px; color: var(--muted); }
.appt-main { flex: 1; min-width: 160px; display: grid; gap: 3px; } .appt-main b { font-size: 15px; } .appt-main span { font-size: 13px; color: var(--muted); }
.appt-side { display: grid; justify-items: end; gap: 6px; } .drink { font-size: 13px; color: var(--ink-2); }
.appt-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.btn.bad { color: var(--bad); }
.slots { padding: 14px; border-radius: 20px; background: var(--panel); border: 1px solid var(--line); display: grid; gap: 8px; }
.slot { display: flex; justify-content: space-between; padding: 10px 12px; border-radius: 12px; background: var(--soft); font-size: 13px; } .slot span { color: var(--muted); }
.note-warn { padding: 14px; border-radius: 18px; background: var(--warn-bg); border: 1px solid var(--warn-line); font-size: 13px; line-height: 1.5; color: var(--warn-ink); }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.stat-card { padding: 18px 20px; border-radius: 22px; background: var(--panel); border: 1px solid var(--line); display: grid; gap: 4px; }
.stat-card span { font-size: 12px; font-weight: 600; color: var(--muted); }
.stat-card b { font-family: var(--display); font-size: clamp(22px, 2.1vw, 30px); font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.stat-card small { font-size: 12px; color: var(--muted); }
.stat-card.dark { background: var(--hero); border-color: var(--hero); color: var(--on-hero); } .stat-card.dark span { color: var(--gold-light); } .stat-card.dark small { color: var(--on-hero-muted); }
.goal { padding: 18px 20px; border-radius: 22px; border: 1px solid var(--gold-line); background: var(--gold-wash); display: grid; gap: 10px; }
.goal-top { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 14px; } .goal-top span { color: var(--gold); font-weight: 700; }
.reminder { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 18px; background: var(--hero); color: var(--on-hero); font-size: 14px; line-height: 1.5; }
.reminder .ico { width: 34px; height: 34px; border-radius: 50%; background: var(--gold-light); color: var(--ink); justify-content: center; align-items: center; flex-shrink: 0; }
.card { padding: 20px; border-radius: 22px; background: var(--panel); border: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; align-content: start; }
.kit-folder { padding: 18px; border-radius: 22px; border: 1px solid var(--line); background: var(--panel); display: grid; gap: 14px; }
.kit-folder.sug { border-color: var(--gold-line); background: var(--gold-wash); }
.kit-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; } .kit-head b { font-size: 15px; }
.kit-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.kit-item { display: grid; gap: 8px; }
.kit-item img, .kit-ph { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 16px; background: var(--ph); border: 1px solid var(--line); }
.kit-ph { display: grid; place-items: center; color: var(--muted); font-size: 12px; font-weight: 600; border-style: dashed; }
.offer-box { padding: 12px 14px; border-radius: 16px; background: var(--soft); border: 1px solid var(--line); display: grid; gap: 10px; }
.offer-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; } .offer-head b { font-size: 13px; }
.offer-head select { height: 36px; border: 1px solid var(--line); border-radius: 10px; padding: 0 10px; background: var(--panel); font-size: 13px; }
.offer-slots { display: flex; gap: 6px; flex-wrap: wrap; } .offer-slots .pill-btn { background: var(--panel); height: 34px; }
.appt-box { padding: 14px; border-radius: 18px; border: 1px solid var(--line); display: grid; gap: 8px; }
.reason-prompt { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 12; width: min(560px, calc(100% - 32px)); padding: 16px 18px; border-radius: 20px; background: var(--panel); border: 1px solid var(--gold-line); box-shadow: 0 20px 50px rgba(var(--shade),.18); display: grid; gap: 10px; }
.side .reason-prompt { position: static; transform: none; width: auto; box-shadow: none; }
.stage-chip[aria-pressed="true"] { background: var(--btn); color: var(--on-btn); border-color: var(--btn); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 40; background: var(--hero); color: var(--on-hero); padding: 12px 18px; border-radius: 14px; font-size: 13px; box-shadow: 0 16px 40px rgba(var(--shade),.2); max-width: calc(100% - 32px); }
.rail { overflow-y: auto; scrollbar-width: none; }
.rail .nav-btn { flex-shrink: 0; height: 60px; }
@media (max-width: 1000px) { .page.split { flex-direction: column; } .col-side { width: 100%; } }
@media (max-width: 760px) {
  .pageview { grid-column: 1; }
  .page { padding: 16px; }
  .rail { overflow-x: auto; justify-content: flex-start; }
  .rail .nav-btn { flex: 0 0 72px; }
  .appt-time { width: auto; border-right: 0; }
}

/* painel da doutora */
.fin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.fin { padding: 12px 14px; border-radius: 14px; background: var(--soft); display: grid; gap: 2px; } .fin span { font-size: 12px; color: var(--muted); } .fin b { font-size: 16px; }
.split2 { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 14px; }
.ad { display: grid; gap: 12px; padding: 16px 20px; border-radius: 20px; border: 1px solid var(--line); }
.ad-main { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; } .ad-main b { font-size: 15px; }
.ad-metrics { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.ad-metrics div { padding: 10px 12px; border-radius: 12px; background: var(--soft); display: grid; } .ad-metrics span { font-size: 11px; color: var(--muted); } .ad-metrics b { font-size: 15px; }
.price-row, .team-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 16px 20px; border-radius: 20px; border: 1px solid var(--line); }
.price-row > div:first-child, .team-row > div { flex: 1; min-width: 160px; display: grid; gap: 2px; }
.inline { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.inline input { width: 96px; height: 40px; border: 1px solid var(--line); border-radius: 12px; padding: 0 10px; background: var(--soft); font-weight: 600; }

/* implantação */
.ob-shell { min-height: 100%; background: linear-gradient(180deg, var(--panel), var(--soft)); position: relative; }
.ob-exit { position: absolute; top: 20px; right: 20px; }
.ob { max-width: 1180px; margin: 0 auto; padding: 28px 24px 40px; display: grid; gap: 22px; }
.ob-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; padding-right: 80px; }
.ob-top .hint { max-width: 60ch; }
.ob-progress { width: min(320px, 100%); display: grid; gap: 8px; } .ob-progress b { font-size: 13px; }
.ob-body { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 22px; align-items: start; }
.ob-steps { display: grid; gap: 4px; position: sticky; top: 16px; }
.ob-step { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; border: 0; background: transparent; text-align: left; color: var(--muted); font-weight: 600; font-size: 13px; }
.ob-step .n { width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--panel); border: 1px solid var(--line); font-size: 12px; flex-shrink: 0; }
.ob-step.ok .n { background: var(--ok-bg); color: var(--ok); border-color: var(--ok-line); }
.ob-step.cur { background: var(--hero); color: var(--on-hero); } .ob-step.cur .n { background: var(--gold-light); color: #1F2D4A; border-color: var(--gold-light); }
.ob-card { background: var(--panel); border: 1px solid var(--line); border-radius: 28px; padding: 28px; display: grid; gap: 18px; box-shadow: 0 20px 60px rgba(var(--shade),.06); }
.ob-head h2 { margin: 6px 0 4px; font-family: var(--display); font-weight: 600; font-size: 26px; }
.ob-fields { display: grid; gap: 16px; }
.field.obf input { height: 48px; }
.ob-chips .chip { height: 40px; padding: 0 16px; font-size: 13px; }
.ob-chips .chip[aria-pressed="true"] { background: var(--btn); color: var(--on-btn); border-color: var(--btn); }
.chip.on-chip { background: var(--gold-bg); color: var(--gold); border-color: var(--gold-line); } .chip .x { border: 0; background: none; font-size: 16px; line-height: 1; padding: 0 0 0 4px; color: inherit; }
.ob-list { display: grid; gap: 8px; }
.ob-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 14px; border-radius: 14px; background: var(--soft); } .ob-row b { font-size: 14px; } .ob-row .hint { flex: 1; }
.ob-add { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; } .ob-add.col { flex-direction: column; align-items: stretch; }
.ob-add input { height: 44px; border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; background: var(--soft); flex: 1; min-width: 120px; }
.ob-hours { display: grid; gap: 6px; }
.ob-day { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--line); }
.ob-day.on { background: var(--soft); } .ob-day input[type=time] { height: 36px; border: 1px solid var(--line); border-radius: 10px; padding: 0 8px; background: var(--panel); }
.ob-check { display: inline-flex; align-items: center; gap: 8px; width: 110px; font-weight: 600; font-size: 13px; } .ob-check input { accent-color: var(--ink); width: 16px; height: 16px; }
.ob-folders { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.ob-folder { padding: 16px; border-radius: 18px; border: 1px solid var(--line); display: grid; gap: 8px; } .ob-folder.ok { border-color: var(--ok-line); background: var(--ok-wash); } .ob-folder.ok .bar i { background: var(--ok-dot); }
.sr-file { position: absolute; width: 1px; height: 1px; opacity: 0; }
.ob-folder label.btn { position: relative; cursor: pointer; }
.ob-review { display: grid; gap: 8px; }
.ob-rev { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); text-align: left; } .ob-rev b { flex: 1; font-size: 14px; } .ob-rev span:last-child { font-size: 12px; color: var(--warn); font-weight: 600; }
.ob-rev.ok span:last-child { color: var(--ok); } .ob-rev.ok .ico { color: var(--ok); }
.ob-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 18px; }
.ob-state { font-size: 12px; color: var(--muted); } .ob-state.ok { color: var(--ok); font-weight: 600; }
@media (max-width: 900px) { .ob-body { grid-template-columns: 1fr; } .ob-steps { position: static; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); } .split2 { grid-template-columns: 1fr; } }

/* painel da Velloce */
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.row-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.link-btn.bad { color: var(--bad); }
.clinic-row { display: grid; grid-template-columns: minmax(200px, 1.1fr) minmax(0, 2fr) minmax(200px, 1fr); gap: 18px; align-items: center; padding: 16px 18px; border-radius: 20px; border: 1px solid var(--line); background: var(--panel); }
.clinic-row:hover { border-color: var(--gold-line); }
.cr-name { border: 0; background: none; padding: 0; text-align: left; display: grid; gap: 4px; color: var(--ink); cursor: pointer; }
.cr-name > b { font-size: 16px; font-family: var(--display); font-weight: 600; }
.cr-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.cr-metrics { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.cr-metrics div { padding: 10px 12px; border-radius: 12px; background: var(--soft); display: grid; gap: 2px; }
.cr-metrics span { font-size: 11px; color: var(--muted); } .cr-metrics b { font-family: var(--display); font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }
.cr-goal { display: grid; gap: 6px; } .cr-goal .goal-top b { font-family: var(--display); font-size: 18px; }
.cr-links { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; } .cr-links .link-btn { color: var(--gold); font-weight: 600; padding: 0; }
.alert-row { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.ar-main { display: grid; gap: 2px; font-size: 13px; }
.ob-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px; }
.ob-item { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px; background: var(--soft); font-size: 13px; }
.kv-list { display: grid; gap: 6px; }
.number, .sdr-card, .kb-row, .script-row { display: grid; gap: 10px; padding: 16px; border-radius: 18px; border: 1px solid var(--line); background: var(--panel); }
.kb-row.draft { background: var(--soft); border-style: dashed; }
.kb-answer { margin: 0; font-size: 13px; line-height: 1.55; color: var(--ink-2); white-space: pre-wrap; }
.num-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .num-head > b { font-size: 15px; }
.add-number summary { cursor: pointer; font-weight: 600; font-size: 13px; color: var(--gold); padding: 6px 0; }
.add-number[open] { display: grid; gap: 10px; }
.share-box { display: grid; gap: 8px; padding: 16px; border-radius: 18px; background: var(--gold-bg); border: 1px solid var(--gold-line); }
.link-code { display: block; font-size: 12px; padding: 10px 12px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); overflow-wrap: anywhere; color: var(--ink-2); }
.file-btn { width: fit-content; cursor: pointer; }
.imp-preview { display: grid; gap: 8px; padding: 14px; border-radius: 16px; background: var(--soft); }
.imp-table { display: grid; gap: 4px; overflow-x: auto; }
.imp-row { display: grid; grid-template-columns: repeat(6, minmax(90px, 1fr)); gap: 8px; font-size: 12px; color: var(--ink-2); }
.imp-row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.new-user { display: grid; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.deal-row { display: grid; grid-template-columns: minmax(180px, 1.2fr) minmax(140px, 1fr) 120px auto; gap: 10px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.deal-row input, .row-actions > input, .kb-row textarea, .script-row textarea, .card > textarea, #vera-test textarea { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: var(--soft); font: inherit; color: var(--ink); min-width: 0; }
.deal-row input { height: 40px; padding: 0 12px; } .row-actions > input { height: 36px; flex: 1; min-width: 160px; }
.deal-who { display: grid; gap: 2px; }
.field textarea { border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; background: var(--soft); font: inherit; font-weight: 500; color: var(--ink); resize: vertical; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.phone { background: var(--soft); }
.bubble-wrap { display: grid; gap: 4px; }
.bubble { background: var(--panel); border: 1px solid var(--line); border-radius: 16px 16px 16px 4px; padding: 12px 14px; font-size: 13px; line-height: 1.55; white-space: pre-wrap; max-width: 92%; }
@media (max-width: 1100px) { .clinic-row { grid-template-columns: 1fr; } .cr-metrics { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); } }
@media (max-width: 760px) { .three { grid-template-columns: 1fr; } .deal-row { grid-template-columns: 1fr; } .alert-row { grid-template-columns: 1fr; } }
.stat-grid.six { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .stat-grid.six { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .stat-grid.six { grid-template-columns: 1fr; } .two { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) { .imp-row { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.enable-push-row { display: grid; gap: 3px; width: 100%; text-align: left; border: 1px solid var(--gold-line); border-radius: 16px; background: var(--soft); padding: 12px 14px; margin-bottom: 6px; }
.enable-push-row b { font-size: 14px; } .enable-push-row span { color: var(--muted); font-size: 12px; }
/* menu de baixo no celular: sombra na borda enquanto houver abas escondidas (some quando a rolagem chega ao fim) */
@media (max-width: 760px) {
  .rail {
    background:
      linear-gradient(90deg, var(--panel) 30%, transparent) left center / 36px 100% no-repeat local,
      linear-gradient(270deg, var(--panel) 30%, transparent) right center / 36px 100% no-repeat local,
      radial-gradient(farthest-side at 0 50%, rgba(var(--shade), .22), rgba(var(--shade), 0)) left center / 12px 100% no-repeat scroll,
      radial-gradient(farthest-side at 100% 50%, rgba(var(--shade), .22), rgba(var(--shade), 0)) right center / 12px 100% no-repeat scroll,
      var(--panel);
  }
}
/* celulares bem estreitos (320 a 360px): barra superior mais compacta para o título da clínica caber */
@media (max-width: 360px) { .top { padding: 0 12px; } .top-actions { gap: 4px; } .top-actions .pill-btn { width: 36px; height: 36px; } .top-actions .bell { width: 40px; height: 40px; } }

/* foto de perfil da equipe */
.avatar { position: relative; overflow: hidden; }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.rail .me { border: 0; padding: 0; cursor: pointer; overflow: hidden; }
.rail .me:hover { box-shadow: 0 0 0 2px var(--gold-line); }
.me-btn { flex-shrink: 0; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--panel); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.me-btn:hover { border-color: var(--gold-line); }
.me-btn .avatar { width: 36px !important; height: 36px !important; }
.profile-head { display: flex; align-items: center; gap: 16px; min-width: 0; }
.profile-head > div { display: grid; gap: 2px; min-width: 0; }
.profile-head b { overflow-wrap: anywhere; }
@media (max-width: 760px) { .me-btn { width: 40px; height: 40px; } .me-btn .avatar { width: 32px !important; height: 32px !important; } }
@media (max-width: 360px) { .me-btn { width: 36px; height: 36px; } .me-btn .avatar { width: 28px !important; height: 28px !important; } }
.btn[hidden], .modal [hidden] { display: none !important; }
.profile-sec { display: grid; gap: 4px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); justify-items: start; }
.profile-sec .link-btn { padding-left: 0; color: var(--gold); font-weight: 600; font-size: 13px; }


/* ---------- Conteúdo: cronograma e carrosséis ---------- */
.ct { max-width: 1240px; }
.ct-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.ct-tabs button { border: 0; background: transparent; padding: 10px 14px; min-height: 44px; font-weight: 600; font-size: 13.5px; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; }
.ct-tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--gold-bar); }
.ct-stack { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.ct-two { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.ct-card { background: var(--panel); border: 1px solid var(--line); border-radius: 22px; padding: 18px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.ct-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; justify-content: space-between; }
.ct-month { display: flex; align-items: center; gap: 10px; }
.ct-month b { font-family: var(--display); font-weight: 600; font-size: 20px; text-transform: capitalize; min-width: 150px; text-align: center; }
.ct-week, .ct-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.ct-week span { font-size: 11px; font-weight: 700; color: var(--faint); text-align: center; }
.ct-day { min-height: 78px; border-radius: 12px; background: var(--soft); padding: 5px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ct-day.out { background: transparent; }
.ct-day.today { box-shadow: inset 0 0 0 1.5px var(--gold-bar); }
.ct-day .d { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ct-post { border: 0; border-radius: 8px; padding: 4px 6px; font-size: 11px; font-weight: 600; text-align: left; background: var(--panel); color: var(--ink); box-shadow: 0 0 0 1px var(--line); display: flex; align-items: center; gap: 5px; min-height: 26px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ct-post i { width: 7px; height: 7px; border-radius: 50%; flex: none; background: var(--faint); }
.st-revisao_adm i { background: var(--amber); } .st-aprovacao_dra i { background: var(--slate); } .st-ajuste i { background: var(--bad); }
.st-aprovado i { background: var(--ok-dot); } .st-postado i { background: var(--gold-bar); }
.ct-line { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; align-items: center; text-align: left; border: 0; border-top: 1px solid var(--line); background: transparent; padding: 12px 2px; }
.ct-line:first-of-type { border-top: 0; }
.ct-date { font-size: 15px; color: var(--gold); }
.ct-l-main { display: flex; flex-direction: column; min-width: 0; } .ct-l-main b { overflow-wrap: anywhere; } .ct-l-main small { color: var(--muted); font-size: 12px; }
.ct-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ct-form .wide { grid-column: 1 / -1; }
.ct-form textarea, .ct-slide textarea, .ct-acts textarea { height: auto; min-height: 64px; padding: 10px 14px; resize: vertical; font-family: inherit; line-height: 1.45; }
.ct-inline { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ct-inline input { height: 40px; border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; background: var(--soft); min-width: 0; flex: 1 1 200px; }
.ct-inline input.ct-letter { flex: 0 0 56px; text-align: center; text-transform: uppercase; font-weight: 700; }
.ct-title { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ct-title h3 { margin: 0; font-family: var(--display); font-weight: 600; font-size: 22px; overflow-wrap: anywhere; }
.ct-flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.ct-flow li { font-size: 12px; font-weight: 600; color: var(--faint); padding: 8px 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--soft); text-align: center; }
.ct-flow li.done { color: var(--ok); background: var(--ok-bg); border-color: transparent; }
.ct-flow li.on { color: var(--gold); background: var(--gold-bg); border-color: var(--gold-line); }
.ct-strip { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x proximity; }
.ct-strip figure { margin: 0; flex: 0 0 clamp(150px, 19vw, 220px); display: flex; flex-direction: column; gap: 4px; scroll-snap-align: start; }
.ct-strip canvas { width: 100%; height: auto; aspect-ratio: 4 / 5; border-radius: 6px; background: var(--soft); cursor: zoom-in; display: block; }
.ct-strip figcaption { display: flex; justify-content: space-between; gap: 6px; font-size: 11px; color: var(--muted); }
.ct-acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; }
.ct-acts .field.wide { flex: 1 1 100%; }
.btn.danger { color: var(--bad); }
.ct-checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.ct-checks li { display: flex; gap: 8px; align-items: baseline; }
.ct-slides { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 10px; }
.ct-slide { border: 1px solid var(--line); border-radius: 16px; padding: 12px; display: flex; flex-direction: column; gap: 10px; min-width: 0; background: var(--paper); }
.ct-slide header { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ct-slide header select { height: 34px; border: 1px solid var(--line); border-radius: 10px; padding: 0 8px; background: var(--panel); font-weight: 600; flex: 1 1 120px; min-width: 0; }
.ct-slide .field select { height: 40px; }
.ct-move { display: inline-flex; gap: 4px; } .ct-move .btn.sm { width: 34px; padding: 0; }
.ct-slide.ro p { margin: 0; display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.ct-hl { display: flex; flex-direction: column; gap: 6px; }
.ct-hl .chip { font-weight: 500; text-transform: none; }
.ct-hl .chip[aria-pressed="true"] { font-style: italic; }
.ct-wc { font-size: 11.5px; color: var(--ok); align-self: flex-start; background: var(--ok-bg); padding: 2px 8px; border-radius: 999px; }
.ct-wc.over { color: var(--warn); background: var(--warn-bg); }
.ct-hist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.ct-hist li { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 13px; align-items: baseline; }
.ct-hist li:first-child { border-top: 0; }
.ct-hist time { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.ct-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.ct-photos figure { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.ct-photos figure.off { opacity: .5; }
.ct-photos img, .ct-photos .kit-ph { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 10px; background: var(--soft); display: grid; place-items: center; color: var(--muted); }
.ct-photos figcaption { display: flex; justify-content: space-between; gap: 6px; font-size: 11.5px; color: var(--muted); } .ct-photos figcaption span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ct-colors { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.ct-color { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); font-weight: 600; }
.ct-color input { width: 44px; height: 36px; border: 1px solid var(--line); border-radius: 10px; padding: 2px; background: var(--panel); }
.ct-preview { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ct-preview canvas { width: 100%; height: auto; aspect-ratio: 4 / 5; border-radius: 6px; background: var(--soft); }
.ct-code { font-size: 12px; background: var(--soft); border: 1px solid var(--line); border-radius: 14px; padding: 14px; overflow-x: auto; white-space: pre; margin: 0; }
.ct-key { display: block; margin: 8px 0; font-size: 13px; overflow-wrap: anywhere; user-select: all; }
.ct-lightbox { background: var(--panel); border-radius: 22px; padding: 14px; display: flex; flex-direction: column; gap: 10px; width: min(560px, 100%); max-height: calc(100vh - 32px); }
.ct-lightbox .ct-big { width: 100%; height: auto; max-height: calc(100vh - 140px); object-fit: contain; aspect-ratio: 4 / 5; border-radius: 8px; }
@media (max-width: 1000px) { .ct-two { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) {
  .ct-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ct-form { grid-template-columns: minmax(0, 1fr); }
  .ct-day { min-height: 54px; padding: 3px; }
  .ct-post { font-size: 0; padding: 0; min-height: 14px; box-shadow: none; background: transparent; }
  .ct-post i { width: 10px; height: 10px; }
  .ct-hist li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}
.ct [hidden] { display: none !important; }
.ct-post span { overflow: hidden; text-overflow: ellipsis; }

/* ---------- Revitalização de base ---------- */
.pill.rev { background: var(--rev-bg); color: var(--rev); border: 1px solid var(--rev-line); }
.rv .notice { margin: 0; }
.rv-drop { display: flex; flex-direction: column; gap: 6px; padding: 26px 22px; border: 1.5px dashed var(--rev-line); border-radius: 20px; background: var(--rev-bg); cursor: pointer; text-align: center; align-items: center; }
.rv-drop b { font-family: var(--display); font-size: 18px; font-weight: 600; color: var(--rev); }
.rv-drop span { font-size: 13px; color: var(--muted); max-width: 62ch; }
.rv-drop.over, .rv-drop:hover { border-color: var(--rev); }
.rv-drop.busy { opacity: .6; pointer-events: none; }
.rv-sum { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.rv-sum > div { background: var(--soft); border-radius: 16px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rv-sum b { font-family: var(--display); font-size: 24px; font-weight: 600; }
.rv-sum span { font-size: 12px; color: var(--muted); }
.rv-sum .warn { background: var(--warn-bg); } .rv-sum .warn b { color: var(--warn); }
.num { font-variant-numeric: tabular-nums; }
.rv-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; }
.rv-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 720px; }
.rv-table th { text-align: left; font-size: 11px; font-weight: 700; color: var(--faint); text-transform: uppercase; letter-spacing: .04em; padding: 10px; background: var(--soft); }
.rv-table td { padding: 6px 10px; border-top: 1px solid var(--line); vertical-align: middle; }
.rv-table td input:not([type=checkbox]) { width: 100%; min-width: 0; height: 34px; border: 1px solid transparent; border-radius: 10px; padding: 0 8px; background: transparent; }
.rv-table td input:not([type=checkbox]):hover, .rv-table td input:focus { border-color: var(--line); background: var(--panel); outline: none; }
.rv-table td input.bad { border-color: var(--bad); background: var(--bad-bg); }
.rv-table tr.issue td { background: var(--gold-wash); }
.rv-table.ro td b { display: block; } .rv-table.ro td small { color: var(--muted); }
.rv-table select { height: 34px; border: 1px solid var(--line); border-radius: 10px; padding: 0 8px; background: var(--soft); max-width: 180px; }
.rv-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; align-items: end; }
.rv-check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.rv-check input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--rev); flex: none; }
.rv-skips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.rv-done { border-color: var(--rev-line); }
.rv-big { font-family: var(--display); font-size: 22px; font-weight: 600; color: var(--rev); }
.rv-done p { margin: 0; color: var(--ink-2); }
.rv-how ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; color: var(--ink-2); font-size: 13.5px; max-width: 80ch; }
.rv-bhead { display: flex; flex-direction: column; gap: 2px; min-width: 0; } .rv-bhead small { color: var(--muted); }
.rv-confirm { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 12px; border-radius: 14px; background: var(--bad-bg); font-size: 13px; }
.rv-confirm span { flex: 1 1 260px; }
.rv-steps { display: flex; flex-direction: column; gap: 10px; }
.rv-step { display: grid; grid-template-columns: 30px 90px minmax(140px, 1fr) minmax(200px, 2fr) auto; gap: 10px; align-items: end; }
.rv-n { width: 30px; height: 30px; border-radius: 50%; background: var(--rev-bg); color: var(--rev); display: grid; place-items: center; font-weight: 700; margin-bottom: 7px; }
.rv-narrow { max-width: 340px; }
.rv-script { background: var(--soft); border-radius: 14px; padding: 10px 14px; display: flex; flex-direction: column; gap: 4px; }
.rv-script p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink); max-width: 75ch; }
.rv-tip { font-size: 13px; color: var(--rev); background: var(--rev-bg); border-radius: 12px; padding: 8px 12px; }
@media (max-width: 760px) { .rv-step { grid-template-columns: 30px 1fr; } .rv-step .field { grid-column: 2; } .rv-step > button { grid-column: 2; justify-self: start; } }

/* fila da SDR no Meu dia */
.rv-queue { display: flex; flex-direction: column; gap: 8px; }
.rv-c { padding: 0; gap: 0; flex-direction: column; align-items: stretch; border-left: 3px solid var(--rev-line); }
.rv-c.late { border-left-color: var(--bad); }
.rv-c-head { display: flex; gap: 12px; align-items: center; justify-content: space-between; width: 100%; padding: 12px 14px; background: none; border: 0; text-align: left; }
.rv-c-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.rv-c-main > span { font-size: 12.5px; color: var(--muted); }
.rv-c-l1 { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.rv-c-go { font-size: 12.5px; font-weight: 700; color: var(--rev); white-space: nowrap; }
.rv-c-body { display: flex; flex-direction: column; gap: 10px; padding: 0 14px 14px; }
.rv-c-phone { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.rv-c-phone a { text-decoration: none; font-variant-numeric: tabular-nums; }
.rv-c-body textarea { border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; background: var(--soft); font: inherit; resize: vertical; min-width: 0; }
.rv-hist { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; } .rv-hist div { display: flex; flex-wrap: wrap; gap: 6px; } .rv-hist span:not(.hint) { color: var(--muted); }
.rv-outcomes { display: flex; flex-direction: column; gap: 8px; }
.rv-outcomes > div { display: flex; flex-wrap: wrap; gap: 8px; }
.rv-pick { display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: 14px; background: var(--rev-bg); }
.rv-pick p { margin: 0; font-size: 13px; }
.rv-banner { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding: 12px 14px; border-radius: 16px; background: var(--ok-bg); border: 1px solid var(--ok-dot); }
.rv-banner > div:first-child { display: flex; flex-direction: column; gap: 3px; flex: 1 1 280px; } .rv-banner span { font-size: 13px; color: var(--ink-2); }
.rv-origin { border: 1px solid var(--rev-line); background: var(--rev-bg); }
.rv-origin p { margin: 0; }
.rail #nav-revitalizacao { font-size: 9.5px; letter-spacing: -.01em; }

/* ================= céu (prévia aprovada em 01/10) ================= */
@property --sky-a { syntax: '<color>'; inherits: true; initial-value: #FFF9EC; }
@property --sky-b { syntax: '<color>'; inherits: true; initial-value: #FBEFD2; }
@property --sky-c { syntax: '<color>'; inherits: true; initial-value: #F7F3EA; }
@property --sky-o1 { syntax: '<color>'; inherits: true; initial-value: #FFD98A; }
@property --sky-o2 { syntax: '<color>'; inherits: true; initial-value: #F0A93E; }
@property --sky-glow { syntax: '<color>'; inherits: true; initial-value: rgba(240,185,90,.35); }
.sky { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; --hz: 47vh; --s: min(66vmin, 560px);
  background: linear-gradient(180deg, var(--sky-a) 0%, var(--sky-b) 52%, var(--sky-c) 100%);
  transition: --sky-a 1.4s, --sky-b 1.4s, --sky-c 1.4s, --sky-o1 1.4s, --sky-o2 1.4s, --sky-glow 1.4s, opacity .8s; }
.sky-glow { position: absolute; left: 50%; top: var(--hz); width: calc(var(--s) * 2.1); height: calc(var(--s) * 2.1); transform: translate(-50%, -50%); background: radial-gradient(circle, var(--sky-glow) 0%, transparent 62%); }
.sky-clip-top, .sky-clip-bot { position: absolute; left: 0; right: 0; overflow: hidden; }
.sky-clip-top { top: 0; height: var(--hz); } .sky-clip-bot { top: var(--hz); bottom: 0; }
.sky-ball { position: absolute; left: 50%; width: var(--s); height: var(--s); margin-left: calc(var(--s) / -2); border-radius: 50%; background: radial-gradient(circle at 50% 55%, var(--sky-o1) 0%, var(--sky-o1) 18%, var(--sky-o2) 100%); transition: opacity 1.2s; }
.sky-clip-top .sky-ball { top: calc(var(--hz) - var(--s) / 2); }
.sky-clip-bot .sky-ball { top: calc(var(--s) / -2); filter: blur(30px); opacity: .8; }
.sky-horizon { position: absolute; left: 0; right: 0; top: var(--hz); height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent); }
.sky.moving .sky-ball, .sky.moving .sky-glow { animation: sky-breathe 9s ease-in-out infinite; }
@keyframes sky-breathe { 0%, 100% { scale: 1; } 50% { scale: 1.035; } }
.sky-layer { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 1.4s; }
.sky[data-sky="nuvens"] .sky-clouds, .sky[data-sky="chuva"] .sky-clouds, .sky[data-sky="raios"] .sky-clouds { opacity: 1; }
.sky[data-sky="chuva"] .sky-rain, .sky[data-sky="raios"] .sky-rain { opacity: 1; }
.sky[data-sky="noite"] .sky-stars { opacity: 1; }
.sky[data-sky="neblina"] .sky-fog { opacity: 1; }
.sky[data-sky="raios"] .sky-bolts { opacity: 1; }
.sky[data-sky="neblina"] .sky-ball, .sky[data-sky="nuvens"] .sky-ball { opacity: .6; }
.sky[data-sky="chuva"] .sky-ball, .sky[data-sky="raios"] .sky-ball { opacity: .45; }
.sky-cloud { position: absolute; border-radius: 50%; filter: blur(32px); background: var(--cloud, rgba(255,255,255,.85)); }
.sky.moving .sky-cloud { animation: sky-drift linear infinite; }
.sky[data-sky="chuva"] { --cloud: rgba(238,242,248,.8); --dropc: rgba(60,82,120,.75); }
.sky[data-sky="raios"] { --cloud: rgba(58,66,88,.78); --dropc: rgba(235,240,255,.8); }
@keyframes sky-drift { from { transform: translateX(-35vw); } to { transform: translateX(135vw); } }
.sky-drop { position: absolute; top: -14vh; left: var(--x); width: 1.3px; height: var(--h); opacity: var(--op); background: linear-gradient(180deg, transparent, var(--dropc, rgba(255,255,255,.85))); display: none; }
.sky.moving .sky-drop { display: block; animation: sky-fall var(--d) linear var(--dl) infinite; }
@keyframes sky-fall { to { transform: translate3d(-40px, 124vh, 0); } }
.sky-star { position: absolute; width: 2px; height: 2px; border-radius: 50%; background: #fff; opacity: .4; }
.sky.moving .sky-star { animation: sky-twinkle var(--d) ease-in-out var(--dl) infinite; }
@keyframes sky-twinkle { 50% { opacity: .95; } }
.sky-fogband { position: absolute; left: -30%; width: 160%; height: 26vh; background: radial-gradient(ellipse at center, rgba(255,255,255,.72), transparent 68%); filter: blur(22px); }
.sky.moving .sky-fogband { animation: sky-fog ease-in-out infinite alternate; }
@keyframes sky-fog { from { transform: translateX(-8vw); } to { transform: translateX(8vw); } }
.sky-bolts svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.sky-bolt-glow, .sky-flash { position: absolute; inset: 0; opacity: 0; mix-blend-mode: screen; }
.sky-bolt-path { fill: none; stroke: #FFF4D4; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 6px #FFD98A) drop-shadow(0 0 16px rgba(255,217,138,.8)); }
.sky.paused *, .sky.paused { animation-play-state: paused !important; }
/* no tema noturno o céu escurece para não clarear a tela */
:root[data-tema="escuro"] .sky { filter: brightness(.55) saturate(.85); }
:root[data-tema="escuro"] .sky.dark { filter: brightness(.8); }
@media (prefers-reduced-motion: reduce) { .sky * { animation: none !important; } .sky-drop { display: none !important; } }

/* ================= entrada ================= */
.login { position: relative; min-height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px 16px 40px; overflow-y: auto; isolation: isolate; }
.login-card { position: relative; z-index: 1; width: min(400px, 100%); display: grid; gap: 16px; padding: 40px 34px 28px; border-radius: 30px; color: #1F2D4A;
  background: rgba(255,255,255,.8); -webkit-backdrop-filter: blur(18px) saturate(1.2); backdrop-filter: blur(18px) saturate(1.2); border: 1px solid rgba(255,255,255,.7);
  box-shadow: 0 30px 80px rgba(31,45,74,.14), 0 1px 0 rgba(255,255,255,.9) inset; animation: card-in .9s cubic-bezier(.2,.7,.2,1) both; }
:root[data-tema="escuro"] .login-card { color: #ECE8E0; background: rgba(20,25,37,.78); border-color: rgba(255,255,255,.09); box-shadow: 0 30px 80px rgba(0,0,0,.4); }
@keyframes card-in { from { opacity: 0; transform: translateY(16px) scale(.985); } to { opacity: 1; transform: none; } }
.v-logo { margin: 0 0 6px; display: grid; justify-items: center; text-align: center; font-weight: 400; }
.v-logo .v-mark { width: 62px; height: auto; overflow: visible; margin-bottom: 18px; }
.v-mark.arms .arm-l { animation: arm-in 1s cubic-bezier(.2,.7,.2,1) .15s both; } .v-mark.arms .arm-r { animation: arm-in 1s cubic-bezier(.2,.7,.2,1) .38s both; }
@keyframes arm-in { from { opacity: 0; transform: translateY(-22px); } to { opacity: 1; transform: none; } }
.v-logo .word { font-family: 'Jost', var(--display); font-weight: 300; font-size: 30px; line-height: 1; letter-spacing: .42em; margin-right: -.42em; color: #1E1E22; animation: fade-in 1s .55s both; }
.v-logo .tagline { font-size: 10.5px; letter-spacing: .38em; margin-right: -.38em; text-transform: uppercase; color: #6F5C42; margin-top: 12px; animation: fade-in 1s .75s both; }
:root[data-tema="escuro"] .v-logo .word { color: #F4F1EA; } :root[data-tema="escuro"] .v-logo .tagline { color: #C9B48E; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.login-card .field { color: inherit; }
.login-card .field > span, .login-card label.field { font-size: 12px; font-weight: 600; color: #5E6270; }
:root[data-tema="escuro"] .login-card label.field { color: #A5ABB8; }
.login-card input { height: 46px; border-radius: 14px; border: 1px solid #E4DCCB; background: rgba(250,248,244,.92); padding: 0 14px; font-size: 15px; color: #1F2D4A; }
:root[data-tema="escuro"] .login-card input { border-color: #2B3243; background: rgba(15,19,28,.7); color: #ECE8E0; }
.login-card input:focus { border-color: #B8893A; outline: none; }
.login-card .go { height: 50px; border: 0; border-radius: 999px; background: #1F2D4A; color: #fff; font-weight: 600; font-size: 15px; margin-top: 4px; transition: transform .2s, box-shadow .2s; }
:root[data-tema="escuro"] .login-card .go { background: #E2C287; color: #141925; }
.login-card .go:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(31,45,74,.25); }
.login-card .go:disabled { opacity: .6; transform: none; }
.login-card .forgot { justify-self: center; border: 0; background: none; color: inherit; opacity: .75; font-size: 13px; text-decoration: underline; padding: 4px; }
.login-card .hint { margin: 0; text-align: center; font-size: 13.5px; line-height: 1.5; color: inherit; opacity: .8; }
.login-card .err:empty { display: none; }
.login-card .err { color: #9E3A25; font-size: 13px; text-align: center; } :root[data-tema="escuro"] .login-card .err { color: #F0A493; }
.login-card .notice { text-align: center; }
.login-legal { position: relative; z-index: 1; margin-top: 16px; font-size: 11.5px; color: #3D4A63; display: flex; gap: 14px; padding: 5px 14px; border-radius: 999px; background: rgba(255,255,255,.6); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.login-legal a { color: inherit; } :root[data-tema="escuro"] .login-legal { color: rgba(236,232,224,.8); background: rgba(20,25,37,.55); }
@media (max-width: 760px) {
  .sky[data-place="login"] { --hz: 27vh; --s: min(70vw, 330px); }
  .login { justify-content: flex-end; padding: 16px 14px calc(28px + env(safe-area-inset-bottom, 0px)); }
  .login-card { padding: 26px 22px 20px; gap: 12px; border-radius: 26px; }
  .v-logo .v-mark { width: 50px; margin-bottom: 14px; } .v-logo .word { font-size: 26px; } .v-logo .tagline { font-size: 9.5px; margin-top: 10px; }
  .login-card input { height: 44px; } .login-card .go { height: 48px; margin-top: 2px; }
}
@media (prefers-reduced-motion: reduce) { .login-card, .v-mark.arms .arm-l, .v-mark.arms .arm-r, .v-logo .word, .v-logo .tagline { animation: none !important; } }

/* ================= saudação depois de entrar ================= */
.hello { position: fixed; inset: 0; z-index: 60; display: grid; place-content: center; text-align: center; padding: 24px; opacity: 0; transition: opacity .7s; cursor: pointer; color: #1F2D4A;
  background: radial-gradient(circle at 50% 46%, rgba(255,255,255,.62), rgba(255,255,255,.22) 70%); -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px); }
:root[data-tema="escuro"] .hello { color: #ECE8E0; background: radial-gradient(circle at 50% 46%, rgba(26,32,48,.72), rgba(15,19,28,.5) 70%); }
.hello.on { opacity: 1; }
.hello .v-mark { width: 44px; height: auto; margin: 0 auto 22px; display: block; }
.hello h2 { margin: 0; font-family: 'Jost', var(--display); font-weight: 300; font-size: clamp(42px, 10vw, 92px); letter-spacing: .03em; line-height: 1.04; transform: translateY(14px); transition: transform 1s cubic-bezier(.2,.7,.2,1) .1s; text-wrap: balance; }
.hello p { margin: 18px 0 0; min-height: 1.4em; font-size: 12.5px; letter-spacing: .24em; text-transform: uppercase; color: #7A5A22; font-weight: 600; transform: translateY(10px); transition: transform 1s cubic-bezier(.2,.7,.2,1) .25s; }
:root[data-tema="escuro"] .hello p { color: #E2C287; }
.hello.on h2, .hello.on p { transform: none; }
.hello .skip { position: absolute; bottom: calc(26px + env(safe-area-inset-bottom, 0px)); left: 0; right: 0; font-size: 11.5px; opacity: .7; letter-spacing: .08em; }
@media (prefers-reduced-motion: reduce) { .hello, .hello h2, .hello p { transition: none; } }

/* ================= área de trabalho com céu (Céu do dia / Clima ao vivo) ================= */
.sky[data-place="app"] { --hz: 76px; --s: 300px; z-index: 0; }
.sky[data-place="app"] .sky-ball, .sky[data-place="app"] .sky-glow { left: 72%; }
.sky[data-place="app"] .sky-glow { width: 900px; height: 900px; }
.sky[data-place="app"] .sky-bolts { display: none; }
/* céu de noite ou tempestade: as bordas escurecem e o texto delas fica claro */
:root.sky-dark-edges:not([data-estilo="classico"]) .top, :root.sky-dark-edges:not([data-estilo="classico"]) .rail { --glass: rgba(31,45,74,.42); --glass-line: rgba(255,255,255,.14); }
:root.sky-dark-edges:not([data-estilo="classico"]) .top .title span, :root.sky-dark-edges:not([data-estilo="classico"]) .rail .nav-btn { color: rgba(244,241,234,.78); }
:root.sky-dark-edges:not([data-estilo="classico"]) .top .title b { color: #F4F1EA; }

/* ================= Aparência (Meu perfil) ================= */
.look { display: grid; gap: 12px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.look > b { font-size: 14px; }
.look-row { display: grid; gap: 6px; } .look-row > span { font-size: 12px; font-weight: 600; color: var(--muted); }
.seg { display: inline-grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); padding: 3px; border-radius: 12px; background: var(--soft); border: 1px solid var(--line); max-width: 100%; }
.seg button { border: 0; background: transparent; min-height: 34px; padding: 0 12px; border-radius: 9px; font-size: 13px; color: var(--muted); white-space: nowrap; }
.seg button[aria-pressed="true"] { background: var(--panel); color: var(--ink); font-weight: 600; box-shadow: 0 1px 4px rgba(var(--shade), .12); }
.seg button:disabled { opacity: .45; cursor: default; }
.look .hint-xs { margin: 0; }
.city-pick { display: grid; gap: 8px; min-width: 0; }
.city-row { display: flex; gap: 8px; } .city-row input { flex: 1; min-width: 0; height: 40px; border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; background: var(--soft); color: var(--ink); }
.city-results { display: flex; flex-wrap: wrap; gap: 6px; }
.city-opt { border: 1px solid var(--line); background: var(--panel); color: var(--ink); border-radius: 999px; height: 32px; padding: 0 12px; font-size: 13px; }
.city-opt:hover { border-color: var(--gold-line); background: var(--gold-bg); }
.weather-card { display: grid; gap: 10px; }
.weather-card .opts { display: grid; gap: 8px; }
.weather-card .opts > button { text-align: left; border: 1px solid var(--line); background: var(--soft); color: var(--ink); border-radius: 14px; padding: 12px 14px; display: grid; gap: 2px; }
.weather-card .opts > button b { font-size: 14px; } .weather-card .opts > button span { font-size: 12.5px; color: var(--muted); }
.weather-card .opts > button[aria-pressed="true"] { border-color: var(--gold-bar); background: var(--gold-bg); }
.login-card .geo { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding-top: 14px; border-top: 1px solid rgba(228,220,203,.9); font-size: 12.5px; }
:root[data-tema="escuro"] .login-card .geo { border-top-color: rgba(255,255,255,.1); }
.login-card .geo div { display: flex; gap: 4px; }
.login-card .geo button { border: 0; border-radius: 999px; height: 30px; padding: 0 14px; font-size: 12.5px; font-weight: 600; background: transparent; color: inherit; opacity: .8; }
.login-card .geo button.yes { background: #1F2D4A; color: #fff; opacity: 1; } :root[data-tema="escuro"] .login-card .geo button.yes { background: #E2C287; color: #141925; }
.look .city-row { align-items: center; justify-content: space-between; }
.drink-panel { display: grid; gap: 8px; padding: 12px 14px; border-radius: 16px; background: var(--gold-wash); border: 1px solid var(--gold-line); }
.drink-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; } .drink-head b { font-size: 14px; flex: 1; min-width: 0; }
.drink-opts { display: flex; flex-wrap: wrap; gap: 6px; } .drink-opts .pill-btn { height: 32px; padding: 0 12px; font-size: 12.5px; }
.drink-other { display: flex; gap: 8px; } .drink-other input { flex: 1; min-width: 0; height: 36px; border: 1px solid var(--line); border-radius: 10px; padding: 0 10px; background: var(--panel); color: var(--ink); }
.drink-msg { color: var(--gold); }
.composer .drink-panel { margin-bottom: 4px; }
.pill-btn.attn { border-color: var(--gold-line); background: var(--gold-bg); color: var(--gold); }

/* ================= Base visual da prévia aprovada (Central Velloce) =================
   Menu lateral de vidro, barra do topo de vidro com indicadores em pílula, painéis soltos e arredondados
   numa área central de até 1180 px, títulos grandes em serifa. Vale para os três fundos (no Clássico o céu some). */
:root { --pagebg: #F7F3EA; --chip: rgba(255,255,255,.78); --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --body: 'Jost', 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gut: max(0px, calc((100vw - 98px - 1180px) / 2)); }
:root[data-tema="escuro"] { --pagebg: #0F131C; --chip: rgba(255,255,255,.08); }
html, body { background: var(--pagebg); }
.shell { grid-template-columns: 84px calc(330px + var(--gut)) minmax(0, 1fr) 320px; grid-template-rows: 66px minmax(0, 1fr); column-gap: 14px; row-gap: 14px;
  padding: 0 calc(14px + var(--gut)) 14px 0; background: transparent; position: relative; z-index: 1; }
.rail { margin-bottom: -14px; width: 84px; padding: 16px 0; gap: 6px; background: var(--glass); border-right: 1px solid var(--glass-line); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); overflow-y: auto; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail .rail-mark { width: 34px; height: auto; margin: 4px 0 18px; flex: none; }
.rail .nav-btn { width: 66px; height: auto; min-height: 0; padding: 9px 0 7px; border-radius: 14px; gap: 4px; font-size: 10.5px; font-weight: 500; color: var(--muted); background: transparent; flex: none; }
.rail .nav-btn .nav-l { line-height: 1.15; text-align: center; }
.rail .nav-btn:hover { background: rgba(184,137,58,.1); color: var(--ink); }
.rail .nav-btn[aria-current="page"] { background: rgba(184,137,58,.2); color: var(--ink); }
.rail .me { width: 38px; height: 38px; padding: 0; border: 2px solid var(--glass-line); background: var(--gold-bg); overflow: hidden; flex: none; margin-top: 6px; }
.mob-only { display: none !important; }
.top { margin-right: calc(-14px - var(--gut)); height: 66px; padding: 0 20px; gap: 12px; background: var(--glass); border-bottom: 1px solid var(--glass-line); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-radius: 0; }
.top .title { min-width: 0; gap: 1px; }
.top .title b { font-family: var(--body); font-size: 16px; font-weight: 600; }
.top .title span { font-size: 12px; color: var(--muted); }
.top-kpis { gap: 8px; }
.kp { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border-radius: 999px; background: var(--chip); color: var(--ink); font-size: 12px; white-space: nowrap; }
.kp b { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; } .kp.alert b { color: var(--bad); }
.bell { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--chip); }
.badge { top: -3px; right: -4px; min-width: 18px; height: 18px; font-size: 10px; }
.top .pill-btn { height: 34px; background: var(--chip); border-color: transparent; }
.list { margin-left: var(--gut); }
.board, .dayview, .pageview { margin-left: var(--gut); }
.list, .chat, .side, .board, .dayview, .pageview { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 6px 24px rgba(var(--shade), .05); min-height: 0; }
.list, .side, .dayview, .pageview { overflow: auto; }
.chat, .board { overflow: hidden; }
:root[data-tema="escuro"] .list, :root[data-tema="escuro"] .chat, :root[data-tema="escuro"] .side, :root[data-tema="escuro"] .board, :root[data-tema="escuro"] .dayview, :root[data-tema="escuro"] .pageview { box-shadow: 0 6px 24px rgba(0,0,0,.25); }
:root[data-estilo="classico"] .list, :root[data-estilo="classico"] .chat, :root[data-estilo="classico"] .side, :root[data-estilo="classico"] .board, :root[data-estilo="classico"] .dayview, :root[data-estilo="classico"] .pageview { box-shadow: none; }
.chat-head, .composer { background: transparent; }
.hello h2 { font-family: var(--serif); font-weight: 300; font-size: clamp(46px, 11vw, 96px); letter-spacing: .05em; line-height: 1.02; }
/* Mais */
.more-sheet { display: grid; gap: 14px; max-width: 480px; }
.more-head { display: flex; align-items: center; gap: 12px; } .more-head > div { flex: 1; min-width: 0; display: grid; gap: 2px; } .more-head b { font-size: 16px; } .more-head span { font-size: 12.5px; color: var(--muted); }
.more-list { display: grid; gap: 2px; }
.more-list button { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; border: 0; background: transparent; text-align: left; font-size: 15px; color: var(--ink); }
.more-list button .ico { color: var(--muted); }
.more-list button:hover, .more-list button[aria-current="page"] { background: var(--gold-bg); }
@media (max-width: 1180px) {
  .shell { grid-template-columns: 84px 300px minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .shell { grid-template-columns: minmax(0, 1fr); grid-template-rows: calc(56px + env(safe-area-inset-top, 0px)) minmax(0, 1fr); column-gap: 0; row-gap: 10px; padding: 0 10px calc(78px + env(safe-area-inset-bottom, 0px)) 10px; }
  .top { margin: 0 -10px; height: auto; padding: env(safe-area-inset-top, 0px) 14px 0; }
  .list, .board, .dayview, .pageview { margin-left: 0; }
  .rail { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; top: auto; width: auto; height: auto; margin: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 0; padding: 4px 4px calc(4px + env(safe-area-inset-bottom, 0px)); border-right: 0; border-top: 1px solid var(--glass-line); overflow: visible; }
  .rail .rail-mark, .rail .grow, .rail .me, .desk-only { display: none !important; }
  .mob-only { display: flex !important; }
  .rail .nav-btn { width: auto; padding: 7px 0 5px; }
  .modal-back.more-back { align-items: flex-end; }
  .more-sheet { border-radius: 24px 24px 0 0; width: 100%; max-width: none; padding-bottom: calc(22px + env(safe-area-inset-bottom, 0px)); }
}
.modal-back.more-back { z-index: 40; }
.list { grid-template-columns: minmax(0, 1fr); }
/* tabelas simples */
.table-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { text-align: left; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); padding: 6px 8px; font-weight: 600; white-space: nowrap; }
.tbl td { padding: 10px 8px; border-top: 1px solid var(--line); white-space: nowrap; font-variant-numeric: tabular-nums; }
.tbl .r { text-align: right; }
/* relatórios da doutora */
.wa-preview { align-self: start; max-width: 100%; padding: 10px 14px; border-radius: 14px 14px 14px 4px; background: var(--ok-wash); border: 1px solid var(--ok-line); font-size: 13.5px; line-height: 1.5; white-space: pre-wrap; display: grid; gap: 4px; }
.wa-preview .wa-from { font-size: 11px; font-weight: 600; color: var(--ok); letter-spacing: .04em; }
.dr-log { display: grid; gap: 6px; padding-top: 6px; border-top: 1px solid var(--line); }
.dr-log .kv { display: flex; justify-content: space-between; gap: 10px; align-items: center; font-size: 12.5px; color: var(--muted); }
.report-card { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 16px 18px; border-radius: 20px; background: var(--gold-bg); border: 1px solid var(--gold-line); }
.report-card.on { background: var(--panel); border-color: var(--line); }
.report-card .rc-text { display: grid; gap: 4px; flex: 1 1 320px; min-width: 0; }
.report-card .rc-text b { font-size: 15px; }
.report-card .lab { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.stat-card b { white-space: nowrap; overflow-wrap: normal; }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.top .title { flex: 1 1 auto; }

/* Lista de conversas no formato da prévia: nome, clínica (quando há mais de uma), assunto, etiquetas e o tempo de espera à direita */
.list-clinics { padding: 12px 12px 0; display: grid; gap: 6px; }
.list-clinics .cl8 button { min-height: 36px; padding: 0 12px; font-size: 13px; }
.row { align-items: center; }
.row-main > .name { flex: none; }
.row .tagc { display: inline-flex; align-self: flex-start; align-items: center; gap: 5px; font-size: 11.5px; padding: 1px 8px; border-radius: 999px; background: var(--soft); border: 1px solid var(--line); color: var(--ink); white-space: nowrap; }
.row .tagc i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.row .tags { flex-wrap: wrap; }
.row > .time { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--muted); align-self: center; }
.row > .time.warn { color: var(--warn, #B5651D); }
.row > .time.late { color: var(--bad); font-weight: 700; }
.list:has(> .list-clinics) { grid-template-rows: auto auto minmax(0, 1fr); }
.list-clinics .mut { color: var(--muted); }
.row .tags { row-gap: 4px; }
.row > .time { font-size: 13px; }
.list-head .watch-note { white-space: normal; justify-self: start; line-height: 1.35; }
@media (max-width: 760px) { .list-head .watch-note { justify-self: stretch; border-radius: 12px; padding: 7px 11px; font-size: 12px; font-weight: 500; } }
/* As barras de cima e de baixo já recuam a área segura do celular; se a página vier dentro de algo que também recua o :root (o visualizador de artefatos do iPhone, por exemplo), o recuo dobraria */
:root { padding: 0; }
/* "Mais" com muitas telas (doutora e sócia): rola dentro da folha e, no computador, em duas colunas */
.more-sheet { max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow-y: auto; overscroll-behavior: contain; }
@media (min-width: 761px) { .more-sheet:has(.more-list > button:nth-child(9)) { max-width: 620px; width: min(620px, calc(100vw - 48px)); } .more-sheet .more-list:has(> button:nth-child(9)) { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 6px; } }
@media (max-width: 760px) { .more-sheet { max-height: calc(100dvh - 24px - env(safe-area-inset-top, 0px)); } }

/* Instagram na conversa (0035): etiqueta do canal, comentário que abriu o direct, mensagem automática, origem na ficha */
.pill.ig { background: var(--ig-bg); color: var(--ig); border: 1px solid var(--ig-line); display: inline-flex; align-items: center; gap: 5px; }
.row .name .chan { display: inline-flex; align-items: center; gap: 3px; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ig); margin-right: 6px; vertical-align: 1px; }
.msg.comment { align-self: center; max-width: min(420px, 92%); background: var(--ig-bg); border: 1px dashed var(--ig-line); border-radius: 14px; font-style: italic; text-align: center; }
.msg.comment .lab { display: block; font-style: normal; font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ig); margin-bottom: 4px; }
.msg.auto { border-style: dashed; }
.entry-box { display: grid; gap: 8px; padding: 12px 14px; border: 1px solid var(--ig-line); border-radius: 16px; background: var(--ig-bg); }
.entry-box .trail { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.entry-box .trail li { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); }
.entry-box .trail li i { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--ig-line); }
.entry-box .trail li.done { color: var(--ink); }
.entry-box .trail li.done i { background: var(--ig); border-color: var(--ig); }
.entry-box .trail small { font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
/* caixa de mandar o formulário no direct: texto ocupa a linha toda */
#form-box { display: grid; gap: 8px; }
#form-box textarea { width: 100%; min-height: 72px; resize: vertical; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); padding: 10px 12px; font: inherit; font-size: 14px; }
#form-box .sg-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* botões das mensagens interativas (como a lead vê no WhatsApp) */
.msg .msg-btns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.msg .msg-btn { display: inline-flex; align-items: center; padding: 5px 10px; border-radius: 999px; border: 1px solid currentColor; font-size: 12px; opacity: .85; white-space: nowrap; }

/* modelo da Meta no chat */
.tpl-box { display: grid; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); margin-bottom: 8px; }
.tpl-box .tpl-vars { display: grid; gap: 6px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.tpl-box .tpl-vars input { width: 100%; }
.tpl-box .tpl-preview { padding: 10px 12px; border-radius: 12px; border: 1px dashed var(--line); font-size: 13px; line-height: 1.5; white-space: pre-wrap; }
.tpl-box .tpl-preview p { margin: 0; }
.pill-btn.attn { border-color: currentColor; font-weight: 600; }

/* ---------- fotos, áudios e vídeos na conversa ---------- */
.msg .msg-media { display: block; margin-bottom: 6px; }
.msg .msg-media img { max-width: min(260px, 100%); max-height: 320px; object-fit: cover; margin: 0; }
.msg .msg-media.sticker img { max-width: 120px; border-radius: 0; }
.msg .msg-audio { display: block; width: min(280px, 100%); height: 40px; margin: 2px 0 4px; }
.msg .msg-video { display: block; width: min(280px, 100%); max-height: 360px; border-radius: 14px; background: var(--soft); margin-bottom: 6px; }
.msg .msg-doc { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.msg .transcript { display: flex; gap: 6px; align-items: flex-start; margin-top: 4px; padding: 8px 10px; border-radius: 12px; background: var(--soft); color: var(--ink-2); font-size: 13px; font-style: italic; white-space: pre-wrap; }
.msg .transcript svg { flex: none; margin-top: 2px; color: var(--muted); }

/* ---------- gravação de áudio da SDR ---------- */
.composer .btn.mic { padding-inline: 12px; }
.rec-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 16px; background: var(--soft); min-height: 52px; }
.rec-bar.on { border-color: var(--bad-line); }
.rec-bar .grow { flex: 1 1 auto; }
.rec-bar .rec-time { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 13px; }
.rec-bar .rec-preview { height: 36px; width: min(260px, 100%); }
.rec-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--bad); animation: rec-pulse 1.2s ease-in-out infinite; }
@keyframes rec-pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .rec-dot { animation: none; } }

/* ---------- conexão do Clinicorp (implantação e Conexões) ---------- */
.cc { display: grid; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--soft); min-width: 0; }
.cc-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cc-head b { font-size: 15px; }
.cc-status { margin-left: auto; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--panel); color: var(--muted); border: 1px solid var(--line); }
.cc-status.ok { color: var(--ok); border-color: transparent; background: var(--ok-bg, var(--panel)); }
.cc-status.bad { color: var(--bad); border-color: var(--bad-line); }
.cc-steps { margin: 0; padding-left: 20px; display: grid; gap: 6px; color: var(--ink-2); font-size: 13px; }
.cc-summary { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0; font-size: 13px; }
.cc-summary dt { color: var(--muted); } .cc-summary dd { margin: 0; font-weight: 600; }
.cc-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cc select, .cc input { width: 100%; min-width: 0; }
/* caminho para o selo azul (Clínicas > número) */
.selo { display: grid; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 16px; background: var(--soft); }
.selo .num-head { align-items: center; }
.selo .selo-pct { margin-left: auto; font-variant-numeric: tabular-nums; }
.selo .bar { height: 10px; background: var(--track); }
.selo .bar > div { height: 100%; border-radius: 999px; background: var(--gold-bar); }
.selo-todo { margin: 0; padding-left: 18px; display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.selo-todo b { color: var(--ink); font-weight: 600; }
.selo-brand summary { cursor: pointer; font-size: 13px; font-weight: 600; }
.selo-brand[open] { display: grid; gap: 8px; }

.ob-why { display: flex; flex-direction: column; gap: 4px; margin-top: 10px; max-width: 68ch; }

/* ---------- app na tela de início ---------- */
.ig { display: flex; flex-direction: column; gap: 14px; }
.ig-lead { margin: 0; color: var(--ink-2); line-height: 1.5; }
.ig-tabs { align-self: flex-start; }
.ig-steps { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; line-height: 1.5; }
.ig-steps li::marker { color: var(--gold-bar); font-weight: 600; }
.ig-key { display: inline-block; padding: 1px 8px; border-radius: 8px; border: 1px solid var(--gold-line); background: var(--gold-wash); font-weight: 600; white-space: nowrap; }
.ig-glyph { vertical-align: -4px; color: #0A84FF; }
.ig-warn { margin: 0; padding: 10px 14px; border-radius: 14px; background: var(--warn-bg); color: var(--warn); border: 1px solid var(--warn-line); font-size: 13px; line-height: 1.45; }
.ig-quick { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.ig-install { min-width: 200px; }

/* ---------- avisos e sons ---------- */
.notif-prefs .np-tone { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.notif-prefs input[type=range] { width: min(220px, 100%); accent-color: var(--gold-bar); }
.np-kinds, .np-quiet { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.np-sub { font-size: 13px; color: var(--muted); }
.np-kind { display: flex; gap: 10px; align-items: center; font-size: 14px; cursor: pointer; }
.np-kind input { width: 18px; height: 18px; accent-color: var(--gold-bar); }
.np-times { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 14px; padding-left: 28px; }
.np-times input { font: inherit; padding: 4px 8px; border-radius: 10px; border: 1px solid var(--gold-line); background: var(--card, transparent); color: var(--ink); }
.np-device-state { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 13px; }
.np-ok { color: var(--ok); }

/* Outras conversas (0049): o que chega no direct e não é atendimento */
.chip.other { border-style: dashed; }
.chip.other.unread .n { color: var(--bad); opacity: 1; }
.row.other { opacity: .86; }
.row.other.unread { opacity: 1; }
.row.other .prev { color: var(--faint); }
.pill.other { background: var(--soft); color: var(--muted); border: 1px solid var(--line); }
.other-ctl { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; margin-left: auto; min-width: 0; }
.other-reasons { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 8px; }
.other-reasons .btn { justify-content: flex-start; height: auto; min-height: 44px; padding: 10px 14px; text-align: left; }
