/* ============================================================
   BitNR1 — Protótipo navegável (telas do produto)
   Layout da página + design system da interface do produto (.ui)
   ============================================================ */

/* ---------- Layout da página do protótipo ---------- */
.proto { display: grid; grid-template-columns: 260px 1fr 320px; min-height: calc(100vh - 61px); }
.rail { border-right: 1px solid var(--line); padding: 1.2rem .9rem; background: var(--surface); position: sticky; top: 61px; height: calc(100vh - 61px); overflow-y: auto; }
.rail h4 { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 1rem .5rem .4rem; font-weight: 500; }
.rail h4:first-child { margin-top: 0; }
.rail button { display: grid; grid-template-columns: 26px 1fr; gap: .5rem; align-items: center; width: 100%; text-align: left; border: 0; background: transparent; padding: .5rem .5rem; border-radius: 8px; cursor: pointer; font-size: .88rem; color: var(--ink-2); }
.rail button:hover { background: var(--surface-2); color: var(--ink); }
.rail button[aria-current="true"] { background: var(--accent-soft); color: var(--ink); font-weight: 600; }
.rail button .ic { width: 26px; height: 26px; border-radius: 7px; background: var(--surface-2); display: grid; place-items: center; font-family: var(--font-mono); font-size: .68rem; color: var(--muted); }
.rail button[aria-current="true"] .ic { background: var(--accent); color: var(--accent-ink); }
.stage { padding: 1.5rem; display: grid; align-content: start; gap: 1rem; background: var(--bg); min-width: 0; }
.stage-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.stage-head h2 { font-size: 1.3rem; }
.stage-head .who { font-family: var(--font-mono); font-size: .74rem; color: var(--muted); }
.fit { width: 100%; overflow: hidden; }
.fit-inner { transform-origin: top left; }
.guide { border-left: 1px solid var(--line); padding: 1.4rem 1.2rem; background: var(--surface); position: sticky; top: 61px; height: calc(100vh - 61px); overflow-y: auto; display: grid; gap: 1rem; align-content: start; }
.guide h3 { font-size: 1.05rem; }
.guide .try { border: 1px dashed var(--accent); border-radius: var(--r-sm); padding: .8rem .9rem; background: var(--accent-soft); }
.guide .try h4 { font-size: .78rem; font-family: var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: .4rem; }
.guide .try ol { margin: 0; padding-left: 1.2em; font-size: .88rem; }
.guide .try li { margin: .25em 0; }
.guide .nav-row { display: flex; gap: .5rem; flex-wrap: wrap; }
.guide .notes { font-size: .88rem; color: var(--ink-2); }
.guide .notes li { margin: .3em 0; }
.mobile-pick { display: none; }
@media (max-width: 1100px) {
  .proto { grid-template-columns: 1fr; }
  .rail { display: none; }
  .guide { position: static; height: auto; border-left: 0; border-top: 1px solid var(--line); }
  .mobile-pick { display: block; padding: 1rem 1.5rem 0; }
  .mobile-pick select { width: 100%; font: inherit; padding: .6em .8em; border-radius: 8px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); }
}


/* ---------- Molduras de dispositivo ---------- */
.frame { background: #0B1416; border-radius: 18px; padding: 10px; box-shadow: 0 20px 50px rgba(0,0,0,.28); }
.frame-desktop { width: 1180px; }
.frame-desktop .chrome { display: flex; align-items: center; gap: .6rem; padding: 6px 10px 12px; }
.frame-desktop .chrome i { width: 10px; height: 10px; border-radius: 50%; background: #3a4a4e; }
.frame-desktop .chrome i:nth-child(1) { background: #ff5f57; } .frame-desktop .chrome i:nth-child(2) { background: #febc2e; } .frame-desktop .chrome i:nth-child(3) { background: #28c840; }
.frame-desktop .url { flex: 1; background: #1a2a2e; color: #9fb4b8; font-family: var(--font-mono); font-size: 11px; padding: 4px 10px; border-radius: 6px; margin-left: 1rem; }
.frame-desktop .screen { width: 1160px; height: 780px; border-radius: 8px; overflow: hidden; background: #F3F6F5; }
.frame-phone { width: 390px; border-radius: 44px; padding: 12px; }
.frame-phone .screen { width: 366px; height: 700px; border-radius: 34px; overflow: hidden; background: #fff; position: relative; display: flex; flex-direction: column; }
.frame-phone .notch { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 110px; height: 26px; background: #0B1416; border-radius: 20px; z-index: 3; }
.frame-tablet { width: 1000px; border-radius: 26px; padding: 22px; }
.frame-tablet .screen { width: 956px; height: 640px; border-radius: 10px; overflow: hidden; background: #fff; position: relative; }
.frame-call { width: 390px; border-radius: 44px; padding: 12px; }
.frame-call .screen { width: 366px; height: 700px; border-radius: 34px; overflow: hidden; background: #0f1b1e; position: relative; display: flex; flex-direction: column; }

/* ---------- Design system do produto (.ui) — tema único, claro ---------- */
.ui { --ui-bg: #F3F6F5; --ui-surface: #FFFFFF; --ui-ink: #10262C; --ui-ink2: #46595E; --ui-muted: #7A8C90; --ui-line: #DDE6E4; --ui-accent: #0F8F7A; --ui-accent-soft: #DDF2EC; --ui-side: #0E3B47; --ui-side-ink: #DCEBEA; --ui-warn: #E39A2D; --ui-crit: #D03B3B; --ui-ok: #0CA30C; --ui-info: #1E7FD8;
  color: var(--ui-ink); background: var(--ui-bg); font-family: var(--font-body); font-size: 13px; line-height: 1.45; height: 100%; display: grid; grid-template-columns: 220px 1fr; }
.ui * { box-sizing: border-box; }
.ui h1, .ui h2, .ui h3, .ui h4 { font-family: var(--font-display); margin: 0; line-height: 1.2; }
.ui h1 { font-size: 20px; font-weight: 700; } .ui h2 { font-size: 15px; font-weight: 600; } .ui h3 { font-size: 13.5px; font-weight: 600; }
.ui p { margin: 0; max-width: none; }
.ui .mono { font-family: var(--font-mono); }
.ui-side { background: var(--ui-side); color: var(--ui-side-ink); padding: 18px 12px; display: flex; flex-direction: column; gap: 4px; }
.ui-side .brand { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 700; font-size: 15px; color: #fff; padding: 4px 8px 16px; }
.ui-side .brand .mk { width: 22px; height: 22px; border-radius: 6px; background: #35D0B4; display: grid; grid-template-columns: repeat(4,1fr); gap: 2px; padding: 4px; align-items: end; }
.ui-side .brand .mk i { background: var(--ui-side); border-radius: 1px; display: block; height: var(--h); }
.ui-side .tenant { font-size: 11px; color: #9DB7BA; padding: 0 8px 14px; font-family: var(--font-mono); }
.ui-side a { color: inherit; text-decoration: none; padding: 8px 10px; border-radius: 8px; font-size: 13px; display: flex; gap: 8px; align-items: center; cursor: pointer; }
.ui-side a:hover { background: rgba(255,255,255,.07); }
.ui-side a.on { background: rgba(53,208,180,.16); color: #fff; font-weight: 600; }
.ui-side a .n { margin-left: auto; font-family: var(--font-mono); font-size: 10px; background: rgba(255,255,255,.12); padding: 1px 6px; border-radius: 999px; }
.ui-side .sp { flex: 1; }
.ui-side .user { border-top: 1px solid rgba(255,255,255,.1); padding-top: 12px; font-size: 11.5px; color: #9DB7BA; display: flex; gap: 8px; align-items: center; }
.ui-side .user b { display: block; color: #fff; font-weight: 600; }
.ui-side .av { width: 28px; height: 28px; border-radius: 50%; background: #35D0B4; color: #0E3B47; display: grid; place-items: center; font-weight: 700; font-size: 11px; }
.ui-main { display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
.ui-top { display: flex; align-items: center; gap: 12px; padding: 12px 22px; background: var(--ui-surface); border-bottom: 1px solid var(--ui-line); }
.ui-top .crumb { font-size: 12px; color: var(--ui-muted); }
.ui-top .crumb b { color: var(--ui-ink); font-weight: 600; }
.ui-top .sp { flex: 1; }
.ui-top .search { border: 1px solid var(--ui-line); border-radius: 8px; padding: 6px 10px; font-size: 12px; color: var(--ui-muted); width: 240px; background: var(--ui-bg); }
.ui-body { padding: 18px 22px; overflow-y: auto; display: grid; gap: 14px; align-content: start; }
.ui-row { display: grid; gap: 14px; }
.ui-row.c4 { grid-template-columns: repeat(4, 1fr); } .ui-row.c3 { grid-template-columns: repeat(3, 1fr); } .ui-row.c2 { grid-template-columns: 1fr 1fr; } .ui-row.c21 { grid-template-columns: 2fr 1fr; } .ui-row.c12 { grid-template-columns: 1fr 2fr; }
.ui-card { background: var(--ui-surface); border: 1px solid var(--ui-line); border-radius: 12px; padding: 14px 16px; min-width: 0; }
.ui-card .hd { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; }
.ui-card .hd small { font-size: 11px; color: var(--ui-muted); font-family: var(--font-mono); }
.ui-kpi .lbl { font-size: 11.5px; color: var(--ui-muted); }
.ui-kpi .val { font-family: var(--font-display); font-size: 26px; font-weight: 700; margin: 2px 0; }
.ui-kpi .sub { font-size: 11px; color: var(--ui-ink2); }
.ui-kpi .sub.up { color: var(--ui-ok); } .ui-kpi .sub.down { color: var(--ui-crit); }
.ui-btn { border: 1px solid var(--ui-line); background: var(--ui-surface); border-radius: 8px; padding: 7px 12px; font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; color: var(--ui-ink); display: inline-flex; align-items: center; gap: 6px; }
.ui-btn:hover { border-color: var(--ui-accent); }
.ui-btn.p { background: var(--ui-accent); color: #fff; border-color: var(--ui-accent); }
.ui-btn.sm { padding: 4px 9px; font-size: 11.5px; }
.ui-btn.ghost { background: transparent; }
.ui-btn.danger { color: var(--ui-crit); }
.chip { display: inline-flex; align-items: center; gap: 5px; font-family: var(--font-mono); font-size: 10.5px; padding: 2px 8px; border-radius: 999px; background: var(--ui-bg); border: 1px solid var(--ui-line); white-space: nowrap; }
.chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--ui-muted); }
.chip.ok i { background: var(--ui-ok); } .chip.warn i { background: var(--ui-warn); } .chip.crit i { background: var(--ui-crit); } .chip.info i { background: var(--ui-info); } .chip.acc i { background: var(--ui-accent); }
.ui-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.ui-table th { text-align: left; font-family: var(--font-mono); font-size: 10.5px; font-weight: 500; color: var(--ui-muted); text-transform: uppercase; letter-spacing: .06em; padding: 6px 8px; border-bottom: 1px solid var(--ui-line); }
.ui-table td { padding: 8px; border-bottom: 1px solid var(--ui-line); vertical-align: middle; }
.ui-table tr:last-child td { border-bottom: 0; }
.ui-table tr.click { cursor: pointer; } .ui-table tr.click:hover td { background: var(--ui-bg); }
.ui-table .num { font-family: var(--font-mono); text-align: right; }
.bars { display: grid; gap: 7px; }
.bar { display: grid; grid-template-columns: 130px 1fr 44px; gap: 8px; align-items: center; font-size: 12px; }
.bar .tr { height: 10px; background: var(--ui-bg); border-radius: 999px; overflow: hidden; }
.bar .tr i { display: block; height: 100%; background: var(--ui-accent); border-radius: 999px; width: var(--w); transition: width .8s ease; }
.bar .tr i.h4 { background: #D7782C; } .bar .tr i.h5 { background: #A44E12; } .bar .tr i.h3 { background: #EDAB62; } .bar .tr i.h2 { background: #F6D3A2; }
.bar .v { font-family: var(--font-mono); text-align: right; font-size: 11.5px; }
.mini-heat { border-collapse: separate; border-spacing: 2px; font-size: 11px; width: 100%; }
.mini-heat th { font-weight: 500; color: var(--ui-muted); font-family: var(--font-mono); font-size: 10px; text-align: left; padding: 2px 4px; }
.mini-heat thead th { text-align: center; }
.mini-heat td { text-align: center; padding: 6px 2px; border-radius: 3px; font-family: var(--font-mono); cursor: pointer; }
.mini-heat td.na { background: #E9EFEE; color: var(--ui-muted); font-size: 9.5px; }
.mini-heat td:hover { outline: 2px solid var(--ui-ink); }
.h-1 { background: #FBEEDC; } .h-2 { background: #F6D3A2; } .h-3 { background: #EDAB62; } .h-4 { background: #D7782C; color: #fff; } .h-5 { background: #A44E12; color: #fff; } .h-6 { background: #6B3007; color: #fff; }
.alerts { display: grid; gap: 8px; }
.alert { display: grid; grid-template-columns: 8px 1fr auto; gap: 10px; align-items: center; padding: 8px 10px; border: 1px solid var(--ui-line); border-radius: 8px; font-size: 12px; }
.alert i { width: 8px; height: 8px; border-radius: 50%; }
.alert.crit i { background: var(--ui-crit); } .alert.warn i { background: var(--ui-warn); } .alert.info i { background: var(--ui-info); }
.alert small { color: var(--ui-muted); display: block; font-size: 11px; }
.progress-ring { width: 110px; height: 110px; }
.progress-ring circle { fill: none; stroke-width: 10; }
.progress-ring .bg { stroke: var(--ui-bg); } .progress-ring .fg { stroke: var(--ui-accent); stroke-linecap: round; transition: stroke-dashoffset 1s ease; }
.progress-ring text { font-family: var(--font-display); font-weight: 700; font-size: 22px; fill: var(--ui-ink); text-anchor: middle; }
.kanban { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.kcol { background: var(--ui-bg); border-radius: 10px; padding: 10px; display: grid; gap: 8px; align-content: start; }
.kcol h3 { font-size: 12px; display: flex; justify-content: space-between; color: var(--ui-ink2); padding: 0 2px 4px; }
.kcard { background: var(--ui-surface); border: 1px solid var(--ui-line); border-radius: 8px; padding: 10px; font-size: 12px; cursor: pointer; display: grid; gap: 5px; }
.kcard:hover { border-color: var(--ui-accent); box-shadow: 0 4px 12px rgba(16,38,44,.08); }
.kcard .f { font-family: var(--font-mono); font-size: 10px; color: var(--ui-accent); }
.kcard b { font-weight: 600; }
.kcard .m { display: flex; justify-content: space-between; color: var(--ui-muted); font-size: 11px; }
.drawer { position: absolute; top: 0; right: 0; bottom: 0; width: 420px; background: var(--ui-surface); border-left: 1px solid var(--ui-line); box-shadow: -12px 0 30px rgba(0,0,0,.12); padding: 18px; overflow-y: auto; display: grid; gap: 12px; align-content: start; transform: translateX(100%); transition: transform .3s ease; z-index: 4; }
.drawer.open { transform: none; }
.drawer .close { position: absolute; top: 12px; right: 12px; }
.field { display: grid; gap: 4px; font-size: 12px; }
.field label { color: var(--ui-muted); font-size: 11px; font-family: var(--font-mono); }
.field .in { border: 1px solid var(--ui-line); border-radius: 6px; padding: 7px 9px; background: var(--ui-surface); min-height: 32px; }
.field .in.area { min-height: 64px; }
.upload { border: 1.5px dashed var(--ui-line); border-radius: 8px; padding: 12px; text-align: center; color: var(--ui-muted); font-size: 12px; cursor: pointer; }
.upload:hover { border-color: var(--ui-accent); color: var(--ui-accent); }
.evid { display: flex; gap: 6px; flex-wrap: wrap; }
.evid span { border: 1px solid var(--ui-line); border-radius: 6px; padding: 3px 8px; font-size: 11px; background: var(--ui-bg); }
.toast { position: absolute; left: 50%; bottom: 20px; transform: translate(-50%, 20px); background: #10262C; color: #fff; padding: 9px 14px; border-radius: 8px; font-size: 12.5px; opacity: 0; transition: all .3s; z-index: 6; pointer-events: none; white-space: nowrap; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.ui-main { position: relative; }
.doc { background: #fff; border: 1px solid var(--ui-line); padding: 26px 30px; font-size: 12px; line-height: 1.5; box-shadow: 0 2px 8px rgba(0,0,0,.05); }
.doc h2 { font-size: 15px; margin-bottom: 6px; } .doc h3 { font-size: 12.5px; margin: 12px 0 4px; }
.doc .meta { font-family: var(--font-mono); font-size: 10.5px; color: var(--ui-muted); border-bottom: 1px solid var(--ui-line); padding-bottom: 8px; margin-bottom: 10px; display: flex; gap: 14px; flex-wrap: wrap; }
.doc table { width: 100%; border-collapse: collapse; font-size: 11px; margin-top: 4px; }
.doc th, .doc td { border: 1px solid var(--ui-line); padding: 5px 6px; text-align: left; vertical-align: top; }
.doc th { background: var(--ui-bg); font-weight: 600; }
.sig { margin-top: 16px; display: flex; gap: 40px; font-size: 11px; }
.sig div { border-top: 1px solid var(--ui-ink); padding-top: 4px; min-width: 200px; }
.ai-box { border: 1px solid var(--ui-accent); background: var(--ui-accent-soft); border-radius: 8px; padding: 10px 12px; font-size: 12px; }
.ai-box .t { font-family: var(--font-mono); font-size: 10px; color: var(--ui-accent); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 4px; display: flex; gap: 6px; align-items: center; }
.caret::after { content: "▍"; animation: blink 1s steps(1) infinite; color: var(--ui-accent); }
@keyframes blink { 50% { opacity: 0; } }
.editor { border: 1px solid var(--ui-line); border-radius: 8px; min-height: 260px; padding: 14px; font-size: 12.5px; line-height: 1.6; background: #fff; }
.editor h3 { margin-bottom: 6px; }
.pub-preview { border: 1px solid var(--ui-line); border-radius: 10px; overflow: hidden; background: #fff; }
.pub-preview .ph { background: var(--ui-side); color: #fff; padding: 12px 14px; font-family: var(--font-display); font-weight: 600; }
.pub-preview .pb { padding: 12px 14px; display: grid; gap: 8px; font-size: 12px; }
.pub-preview .blk { border-left: 3px solid var(--ui-accent); padding-left: 8px; }
.pub-preview .blk b { display: block; font-family: var(--font-mono); font-size: 10px; color: var(--ui-accent); text-transform: uppercase; letter-spacing: .08em; }
.timeline { display: grid; gap: 0; font-size: 12px; }
.tl { display: grid; grid-template-columns: 90px 14px 1fr; gap: 10px; }
.tl .t { font-family: var(--font-mono); font-size: 10.5px; color: var(--ui-muted); padding-top: 2px; }
.tl .d { position: relative; }
.tl .d::before { content: ""; position: absolute; left: 4px; top: 5px; width: 6px; height: 6px; border-radius: 50%; background: var(--ui-accent); }
.tl .d::after { content: ""; position: absolute; left: 6.5px; top: 12px; bottom: -4px; width: 1px; background: var(--ui-line); }
.tl:last-child .d::after { display: none; }
.tl .b { padding-bottom: 12px; }
.tl .b small { color: var(--ui-muted); display: block; }
.badge-k { font-family: var(--font-mono); font-size: 10px; background: var(--ui-accent-soft); color: var(--ui-accent); padding: 2px 6px; border-radius: 4px; }
.pill-row { display: flex; gap: 6px; flex-wrap: wrap; }
.seg { display: inline-flex; border: 1px solid var(--ui-line); border-radius: 8px; overflow: hidden; }
.seg button { border: 0; background: transparent; padding: 5px 10px; font: inherit; font-size: 12px; cursor: pointer; color: var(--ui-ink2); }
.seg button.on { background: var(--ui-ink); color: #fff; }
.spark { width: 100%; height: 44px; }
.spark path { fill: none; stroke: var(--ui-accent); stroke-width: 2; }
.spark .a { fill: var(--ui-accent); opacity: .12; stroke: none; }
.live { display: inline-flex; align-items: center; gap: 5px; font-family: var(--font-mono); font-size: 10.5px; color: var(--ui-crit); }
.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--ui-crit); animation: blink 1.2s steps(1) infinite; }
.client-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.client { background: var(--ui-surface); border: 1px solid var(--ui-line); border-radius: 12px; padding: 14px; cursor: pointer; display: grid; gap: 6px; }
.client:hover { border-color: var(--ui-accent); }
.client .lg { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 13px; color: #fff; }
.client .st { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--ui-muted); }
.wl-bar { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--ui-line); border-radius: 10px; padding: 10px 14px; font-size: 12px; }
.wl-bar .sw { width: 22px; height: 22px; border-radius: 6px; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--ui-line); }

/* ---------- App do colaborador (mobile) ---------- */
.m { --m-accent: #0F8F7A; --m-ink: #10262C; --m-muted: #6B7F84; --m-line: #E2E9E7; --m-bg: #F5F8F7; font-family: var(--font-body); color: var(--m-ink); background: var(--m-bg); height: 100%; display: flex; flex-direction: column; font-size: 14px; }
.m * { box-sizing: border-box; }
.m p { margin: 0; max-width: none; }
.m .status { height: 44px; display: flex; justify-content: space-between; align-items: flex-end; padding: 0 22px 6px; font-family: var(--font-mono); font-size: 11px; color: var(--m-ink); }
.m .mh { padding: 10px 20px; display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--m-muted); }
.m .mh b { font-family: var(--font-display); color: var(--m-ink); font-size: 14px; }
.m .mb { flex: 1; padding: 6px 20px 20px; display: flex; flex-direction: column; gap: 14px; overflow-y: auto; }
.m .card { background: #fff; border: 1px solid var(--m-line); border-radius: 14px; padding: 16px; }
.m h1 { font-family: var(--font-display); font-size: 22px; line-height: 1.2; margin: 0; }
.m h2 { font-family: var(--font-display); font-size: 17px; line-height: 1.3; margin: 0; }
.m .muted { color: var(--m-muted); font-size: 13px; }
.m .btn { display: block; width: 100%; border: 0; background: var(--m-accent); color: #fff; font: inherit; font-weight: 600; padding: 14px; border-radius: 12px; cursor: pointer; text-align: center; }
.m .btn.o { background: #fff; color: var(--m-ink); border: 1.5px solid var(--m-line); }
.m .btn:disabled { opacity: .4; cursor: default; }
.m .tok { display: flex; gap: 6px; justify-content: center; }
.m .tok span { width: 34px; height: 44px; border: 1.5px solid var(--m-line); border-radius: 8px; display: grid; place-items: center; font-family: var(--font-mono); font-size: 18px; font-weight: 600; background: #fff; }
.m .tok span.on { border-color: var(--m-accent); }
.m .prog { height: 6px; background: var(--m-line); border-radius: 999px; overflow: hidden; }
.m .prog i { display: block; height: 100%; background: var(--m-accent); width: var(--w); transition: width .4s; }
.m .dim { font-family: var(--font-mono); font-size: 11px; color: var(--m-accent); text-transform: uppercase; letter-spacing: .08em; }
.m .q { font-family: var(--font-display); font-size: 18px; line-height: 1.35; font-weight: 600; }
.m .opts { display: grid; gap: 8px; }
.m .opts button { border: 1.5px solid var(--m-line); background: #fff; border-radius: 12px; padding: 13px 14px; text-align: left; font: inherit; font-size: 14.5px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.m .opts button:hover { border-color: var(--m-accent); }
.m .opts button.sel { border-color: var(--m-accent); background: #E6F5F1; font-weight: 600; }
.m .opts button i { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--m-line); display: grid; place-items: center; font-size: 11px; color: var(--m-muted); font-family: var(--font-mono); }
.m .tools { display: flex; gap: 8px; justify-content: space-between; }
.m .tools button { flex: 1; border: 1px solid var(--m-line); background: #fff; border-radius: 10px; padding: 8px 4px; font: inherit; font-size: 11px; cursor: pointer; color: var(--m-ink); }
.m .tools button.on { border-color: var(--m-accent); color: var(--m-accent); }
.m .lang { display: flex; gap: 6px; }
.m .lang span { border: 1px solid var(--m-line); border-radius: 999px; padding: 3px 9px; font-size: 11px; font-family: var(--font-mono); }
.m .lang span.on { background: var(--m-ink); color: #fff; border-color: var(--m-ink); }
.m .shield { display: flex; gap: 10px; align-items: flex-start; background: #E6F5F1; border-radius: 12px; padding: 12px; font-size: 12.5px; }
.m .shield b { display: block; }
.m .big { font-family: var(--font-display); font-size: 40px; font-weight: 700; line-height: 1; color: var(--m-accent); }
.m .list { display: grid; gap: 8px; }
.m .li { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; font-size: 13px; }
.m .li i { width: 22px; height: 22px; border-radius: 50%; background: #E6F5F1; color: var(--m-accent); display: grid; place-items: center; font-size: 11px; font-weight: 700; }
.m .nav { display: flex; border-top: 1px solid var(--m-line); background: #fff; padding: 8px 6px 18px; }
.m .nav span { flex: 1; text-align: center; font-size: 10.5px; color: var(--m-muted); }
.m .nav span.on { color: var(--m-accent); font-weight: 600; }
.m .nav em { display: block; font-style: normal; font-size: 18px; }
.m .blk { border-left: 3px solid var(--m-accent); padding-left: 10px; }
.m .blk b { display: block; font-family: var(--font-mono); font-size: 10px; color: var(--m-accent); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 2px; }
.m .proto-code { font-family: var(--font-mono); font-size: 22px; font-weight: 600; letter-spacing: .06em; text-align: center; background: #fff; border: 1.5px dashed var(--m-accent); border-radius: 12px; padding: 14px; }
.m textarea, .m .ta { width: 100%; border: 1.5px solid var(--m-line); border-radius: 12px; padding: 12px; font: inherit; font-size: 13.5px; min-height: 110px; background: #fff; resize: none; color: var(--m-ink); }
.m .radio { display: grid; gap: 6px; }
.m .radio label { display: flex; gap: 8px; align-items: center; border: 1.5px solid var(--m-line); border-radius: 10px; padding: 9px 12px; background: #fff; font-size: 13px; cursor: pointer; }
.m .radio input { accent-color: var(--m-accent); }
.m .speak { display: grid; place-items: center; gap: 8px; padding: 14px; }
.m .speak .mic { width: 72px; height: 72px; border-radius: 50%; background: var(--m-accent); color: #fff; display: grid; place-items: center; font-size: 28px; box-shadow: 0 0 0 0 rgba(15,143,122,.4); animation: pulse 1.6s ease-out infinite; }
.m .speak .heard { font-style: italic; color: var(--m-muted); font-size: 13px; text-align: center; min-height: 20px; }

/* ---------- Totem (kiosk) ---------- */
.k { --k-accent: #0F8F7A; font-family: var(--font-body); background: #F5F8F7; color: #10262C; height: 100%; display: grid; grid-template-rows: auto 1fr auto; }
.k * { box-sizing: border-box; }
.k p { margin: 0; max-width: none; }
.k .kh { display: flex; justify-content: space-between; align-items: center; padding: 14px 28px; font-size: 13px; color: #6B7F84; border-bottom: 1px solid #E2E9E7; background: #fff; }
.k .kh b { font-family: var(--font-display); font-size: 16px; color: #10262C; }
.k .kh .ind { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 11px; }
.k .kh .ind i { width: 9px; height: 9px; border-radius: 50%; background: #D03B3B; }
.k .kh .ind.free i { background: #0CA30C; }
.k .kb { padding: 28px 48px; display: grid; gap: 22px; align-content: center; text-align: center; }
.k .kf { display: flex; justify-content: space-between; align-items: center; padding: 12px 28px; border-top: 1px solid #E2E9E7; background: #fff; font-size: 12px; color: #6B7F84; }
.k .kf .tools { display: flex; gap: 8px; }
.k .kf .tools span { border: 1.5px solid #DDE6E4; border-radius: 999px; padding: 6px 14px; font-size: 13px; color: #10262C; cursor: pointer; background: #fff; }
.k .kf .tools span.on { border-color: var(--k-accent); color: var(--k-accent); }
.k h1 { font-family: var(--font-display); font-size: 34px; margin: 0; line-height: 1.15; }
.k h2 { font-family: var(--font-display); font-size: 26px; margin: 0; line-height: 1.3; }
.k .lead { font-size: 17px; color: #46595E; max-width: 640px; margin-inline: auto; }
.k .kbtn { border: 0; background: var(--k-accent); color: #fff; font: inherit; font-size: 20px; font-weight: 600; padding: 18px 40px; border-radius: 16px; cursor: pointer; margin-inline: auto; }
.k .kbtn.o { background: #fff; color: #10262C; border: 2px solid #DDE6E4; }
.k .video { width: 520px; aspect-ratio: 16/9; margin-inline: auto; border-radius: 16px; background: linear-gradient(135deg, #0E3B47, #155E6E); color: #fff; display: grid; place-items: center; position: relative; overflow: hidden; }
.k .video .av { width: 90px; height: 90px; border-radius: 50%; background: #35D0B4; display: grid; place-items: center; font-size: 40px; }
.k .video .cap { position: absolute; bottom: 12px; left: 12px; right: 12px; background: rgba(0,0,0,.45); padding: 8px 12px; border-radius: 8px; font-size: 14px; text-align: left; }
.k .video .libras { position: absolute; top: 12px; right: 12px; width: 110px; height: 80px; border-radius: 8px; background: rgba(255,255,255,.14); display: grid; place-items: center; font-size: 11px; border: 1px solid rgba(255,255,255,.3); }
.k .opts5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; max-width: 820px; margin-inline: auto; width: 100%; }
.k .opts5 button { border: 2.5px solid #DDE6E4; background: #fff; border-radius: 18px; padding: 22px 6px; font: inherit; cursor: pointer; display: grid; gap: 6px; }
.k .opts5 button b { font-family: var(--font-display); font-size: 30px; }
.k .opts5 button span { font-size: 14px; color: #46595E; }
.k .opts5 button:hover, .k .opts5 button.sel { border-color: var(--k-accent); background: #E6F5F1; }
.k .prog { height: 8px; background: #E2E9E7; border-radius: 999px; overflow: hidden; max-width: 820px; margin-inline: auto; width: 100%; }
.k .prog i { display: block; height: 100%; background: var(--k-accent); width: var(--w); transition: width .4s; }
.k .dim { font-family: var(--font-mono); font-size: 12px; color: var(--k-accent); letter-spacing: .1em; text-transform: uppercase; }
.k .keypad { display: grid; grid-template-columns: repeat(3, 84px); gap: 10px; justify-content: center; }
.k .keypad button { height: 64px; border: 2px solid #DDE6E4; background: #fff; border-radius: 14px; font: inherit; font-family: var(--font-display); font-size: 24px; cursor: pointer; }
.k .keypad button:hover { border-color: var(--k-accent); }
.k .tokdisp { font-family: var(--font-mono); font-size: 34px; letter-spacing: .25em; font-weight: 600; background: #fff; border: 2px solid #DDE6E4; border-radius: 14px; padding: 12px 20px; display: inline-block; min-width: 320px; }
.k .wave { display: flex; gap: 5px; align-items: center; justify-content: center; height: 60px; }
.k .wave i { width: 6px; border-radius: 3px; background: var(--k-accent); height: 10px; animation: wv 1.1s ease-in-out infinite; animation-delay: calc(var(--i) * .07s); }
.k .heard { font-size: 20px; font-style: italic; color: #46595E; }
.k .timer { font-family: var(--font-mono); font-size: 12px; }
.k .clear { display: grid; gap: 6px; justify-items: center; }
.k .clear .chk { width: 70px; height: 70px; border-radius: 50%; background: #E6F5F1; color: var(--k-accent); display: grid; place-items: center; font-size: 34px; }

/* ---------- BitCall (ligação) ---------- */
.c { font-family: var(--font-body); background: #0f1b1e; color: #E6F0EF; height: 100%; display: flex; flex-direction: column; }
.c * { box-sizing: border-box; }
.c p { margin: 0; max-width: none; }
.c .status { height: 44px; display: flex; justify-content: space-between; align-items: flex-end; padding: 0 22px 6px; font-family: var(--font-mono); font-size: 11px; color: #9DB7BA; }
.c .ch { text-align: center; padding: 18px 20px 10px; }
.c .ch .num { font-family: var(--font-display); font-size: 22px; font-weight: 600; }
.c .ch .sub { font-size: 12px; color: #9DB7BA; margin-top: 2px; }
.c .ch .tm { font-family: var(--font-mono); font-size: 13px; color: #35D0B4; margin-top: 6px; }
.c .flags { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; padding: 0 16px 8px; }
.c .flags span { font-family: var(--font-mono); font-size: 9.5px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; padding: 2px 8px; color: #9DB7BA; }
.c .flags span.on { border-color: #35D0B4; color: #35D0B4; }
.c .tr { flex: 1; overflow-y: auto; padding: 8px 16px; display: flex; flex-direction: column; gap: 8px; }
.c .ln { display: grid; grid-template-columns: 52px 1fr; gap: 8px; font-size: 12.5px; line-height: 1.4; }
.c .ln .w { font-family: var(--font-mono); font-size: 10px; color: #7A9296; padding-top: 3px; }
.c .ln.ia .b { background: rgba(255,255,255,.06); border-radius: 10px; padding: 8px 10px; }
.c .ln.me .b { color: #35D0B4; font-weight: 600; padding: 4px 0; }
.c .ln.sys .b { font-family: var(--font-mono); font-size: 10.5px; color: #7A9296; }
.c .wave { display: flex; gap: 3px; align-items: center; justify-content: center; height: 40px; }
.c .wave i { width: 4px; border-radius: 2px; background: #35D0B4; height: 6px; animation: wv 1.1s ease-in-out infinite; animation-delay: calc(var(--i) * .07s); }
.c .wave.off i { animation: none; height: 4px; background: #3a4f53; }
.c .pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 6px 70px; }
.c .pad button { height: 42px; font-size: 16px; border-radius: 50%; border: 0; background: rgba(255,255,255,.08); color: #fff; font: inherit; font-family: var(--font-display); font-size: 20px; cursor: pointer; width: 42px; margin-inline: auto; }
.c .pad button.on { background: #35D0B4; color: #0f1b1e; }
.c .ctl { display: flex; justify-content: center; gap: 22px; padding: 8px 0 20px; }
.c .ctl button { width: 50px; height: 50px; border-radius: 50%; border: 0; background: rgba(255,255,255,.1); color: #fff; font-size: 20px; cursor: pointer; }
.c .ctl button.end { background: #D03B3B; }
.c .ctl button.play { background: #35D0B4; color: #0f1b1e; }

/* ---------- WhatsApp ---------- */
.wa { font-family: var(--font-body); background: #E5DDD5; height: 100%; display: flex; flex-direction: column; color: #111; }
.wa * { box-sizing: border-box; }
.wa p { margin: 0; max-width: none; }
.wa .status { height: 44px; background: #075E54; display: flex; justify-content: space-between; align-items: flex-end; padding: 0 22px 4px; font-family: var(--font-mono); font-size: 11px; color: #fff; }
.wa .hd { background: #075E54; color: #fff; padding: 8px 12px 10px; display: flex; gap: 10px; align-items: center; }
.wa .hd .av { width: 36px; height: 36px; border-radius: 50%; background: #35D0B4; color: #075E54; display: grid; place-items: center; font-weight: 700; font-size: 12px; }
.wa .hd b { display: block; font-size: 14px; }
.wa .hd small { font-size: 11px; opacity: .85; }
.wa .hd .ver { margin-left: auto; font-size: 10px; background: rgba(255,255,255,.18); padding: 2px 6px; border-radius: 4px; }
.wa .chat { flex: 1; overflow-y: auto; padding: 12px 10px; display: flex; flex-direction: column; gap: 6px; background-image: radial-gradient(rgba(0,0,0,.035) 1px, transparent 1px); background-size: 14px 14px; }
.wa .b { max-width: 84%; padding: 7px 9px; border-radius: 8px; font-size: 13px; line-height: 1.35; box-shadow: 0 1px 1px rgba(0,0,0,.08); position: relative; animation: msgin .3s ease; }
.wa .b.in { background: #fff; align-self: flex-start; border-top-left-radius: 2px; }
.wa .b.out { background: #DCF8C6; align-self: flex-end; border-top-right-radius: 2px; }
.wa .b .tm { display: block; text-align: right; font-size: 9.5px; color: #7a7a7a; margin-top: 2px; }
.wa .b.sys { align-self: center; background: #FFF5C4; font-size: 11px; text-align: center; max-width: 92%; }
.wa .qr { display: flex; flex-direction: column; gap: 4px; align-self: stretch; }
.wa .qr button { border: 0; background: #fff; color: #00A884; font: inherit; font-size: 13px; font-weight: 600; padding: 9px; border-radius: 8px; cursor: pointer; box-shadow: 0 1px 1px rgba(0,0,0,.08); }
.wa .qr button:hover { background: #F0FAF7; }
.wa .in-bar { background: #F0F0F0; padding: 8px 10px 18px; display: flex; gap: 8px; align-items: center; }
.wa .in-bar .f { flex: 1; background: #fff; border-radius: 20px; padding: 8px 12px; font-size: 13px; color: #999; }
.wa .in-bar .s { width: 36px; height: 36px; border-radius: 50%; background: #00A884; color: #fff; display: grid; place-items: center; }
.wa .prog { font-size: 10.5px; color: #555; text-align: center; font-family: var(--font-mono); }

/* ---------- Página pública (transparência / auditoria) ---------- */
.pubdoc { background: #fff; height: 100%; overflow-y: auto; font-family: var(--font-body); color: #10262C; font-size: 13px; }
.pubdoc * { box-sizing: border-box; }
.pubdoc p { margin: 0; max-width: none; }
.pubdoc .top { background: #0E3B47; color: #fff; padding: 22px 34px; }
.pubdoc .top h1 { font-family: var(--font-display); font-size: 22px; margin: 0; }
.pubdoc .top .s { color: #9DB7BA; font-family: var(--font-mono); font-size: 11px; margin-top: 4px; }
.pubdoc .cnt { padding: 22px 34px; display: grid; gap: 14px; max-width: 820px; }
.pubdoc h2 { font-family: var(--font-display); font-size: 15px; margin: 6px 0 0; }
.pubdoc .two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pubdoc .box { border: 1px solid #DDE6E4; border-radius: 10px; padding: 12px 14px; }
.pubdoc .box h3 { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 6px; color: #0F8F7A; }
.pubdoc ul { margin: 0; padding-left: 1.1em; }
.pubdoc li { margin: .2em 0; }
.pubdoc .no { color: #D03B3B; }
.pubdoc .yes { color: #0F8F7A; }
.pubdoc .kv { display: grid; grid-template-columns: 180px 1fr; gap: 4px 12px; font-size: 12.5px; }
.pubdoc .kv b { font-weight: 600; }
