:root {
  --bg: #0d1017; --bg2: #151a24; --card: #1a2030; --line: #2a3246;
  --text: #e9edf5; --muted: #8e98ad; --accent: #3b82f6; --accent2: #60a5fa;
  --green: #22c55e; --yellow: #eab308; --red: #ef4444; --gray: #64748b;
  --radius: 14px; --tab-h: 64px;
}
:root[data-theme="light"] {
  --bg: #f3f5f9; --bg2: #ffffff; --card: #ffffff; --line: #dfe4ee;
  --text: #121826; --muted: #5b667c; --accent: #2563eb; --accent2: #1d4ed8;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
body { padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom)); }
a { color: var(--accent2); }
h2 { font-size: 18px; margin: 18px 0 10px; } h3 { font-size: 15px; margin: 14px 0 8px; }
.muted { color: var(--muted); } .small { font-size: 12.5px; } .center { text-align: center; }

#topbar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
#title { font-size: 17px; margin: 0; flex: 1; letter-spacing: .3px; }
.icon-btn { background: none; border: 0; color: var(--text); font-size: 26px; line-height: 1; padding: 0 6px; cursor: pointer; }
#view { padding: 12px 16px 24px; max-width: 760px; margin: 0 auto; outline: none; }

#tabbar { position: fixed; bottom: 0; left: 0; right: 0; height: calc(var(--tab-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); display: flex; background: var(--bg2); border-top: 1px solid var(--line); z-index: 10; }
#tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 11.5px; color: var(--muted); text-decoration: none; gap: 2px; }
#tabbar a span { font-size: 20px; }
#tabbar a.active { color: var(--accent2); }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin: 10px 0; }
.grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.grid.two { grid-template-columns: 1fr 1fr; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.stat .k { color: var(--muted); font-size: 12px; } .stat .v { font-size: 20px; font-weight: 700; margin-top: 2px; }
.stat .v.pos { color: var(--green); } .stat .v.neg { color: var(--red); }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; } .row.end { justify-content: flex-end; } .row.between { justify-content: space-between; }
.stack > * + * { margin-top: 8px; }

.btn { appearance: none; border: 1px solid var(--line); background: var(--bg2); color: var(--text); border-radius: 10px; padding: 10px 14px; font-weight: 600; font-size: 14.5px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.danger { background: var(--red); border-color: var(--red); color: #fff; }
.btn.ghost { background: transparent; }
.btn.block { width: 100%; } .btn.sm { min-height: 34px; padding: 6px 10px; font-size: 13px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

label { display: block; font-size: 12.5px; color: var(--muted); margin: 8px 0 4px; }
input, select, textarea { width: 100%; background: var(--bg2); color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; font: inherit; min-height: 44px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
input[type=checkbox] { width: auto; min-height: 0; }
.check { display: flex; align-items: center; gap: 8px; color: var(--text); font-size: 14px; margin: 10px 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
.form-grid .full { grid-column: 1 / -1; }

.tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; margin: 6px 0 4px; scrollbar-width: none; }
.tabs button, .tabs a { flex: none; background: var(--bg2); border: 1px solid var(--line); color: var(--muted); border-radius: 999px; padding: 7px 12px; font-size: 13px; cursor: pointer; text-decoration: none; }
.tabs .on { background: var(--accent); color: #fff; border-color: var(--accent); }

.badge { font-size: 11px; padding: 3px 8px; border-radius: 999px; background: var(--bg2); border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.badge.green { color: var(--green); border-color: var(--green); } .badge.yellow { color: var(--yellow); border-color: var(--yellow); }
.badge.red { color: var(--red); border-color: var(--red); } .badge.blue { color: var(--accent2); border-color: var(--accent2); }

/* Cartão de análise */
.verdict { border-radius: var(--radius); padding: 14px; margin: 10px 0; border: 2px solid var(--gray); background: var(--card); }
.verdict.green { border-color: var(--green); } .verdict.yellow { border-color: var(--yellow); } .verdict.red { border-color: var(--red); }
.verdict .head { display: flex; align-items: center; gap: 10px; }
.light { width: 18px; height: 18px; border-radius: 50%; background: var(--gray); flex: none; box-shadow: 0 0 12px currentColor; }
.light.green { background: var(--green); color: var(--green); } .light.yellow { background: var(--yellow); color: var(--yellow); } .light.red { background: var(--red); color: var(--red); }
.verdict .label { font-weight: 800; font-size: 17px; }
.big-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0 6px; }
.big-metrics div { text-align: center; } .big-metrics .v { font-size: 22px; font-weight: 800; } .big-metrics .k { font-size: 11.5px; color: var(--muted); }
.reasons { margin: 6px 0 0; padding-left: 18px; font-size: 13.5px; }
.fields-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.fields-table td { padding: 7px 4px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.fields-table input { min-height: 36px; padding: 6px 8px; }
.conf { font-size: 11px; padding: 2px 6px; border-radius: 6px; }
.conf.alta { background: color-mix(in srgb, var(--green) 20%, transparent); color: var(--green); }
.conf.média { background: color-mix(in srgb, var(--yellow) 20%, transparent); color: var(--yellow); }
.conf.baixa, .conf.nenhuma { background: color-mix(in srgb, var(--red) 20%, transparent); color: var(--red); }
.issue { font-size: 13px; padding: 8px 10px; border-radius: 8px; margin: 6px 0; background: var(--bg2); border-left: 3px solid var(--gray); }
.issue.confirm { border-color: var(--yellow); } .issue.warn { border-color: var(--red); }

.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; gap: 10px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); }
.list li .grow { flex: 1; min-width: 0; } .list li .t { font-weight: 600; } .list li .s { font-size: 12.5px; color: var(--muted); }
.menu-list a { display: flex; align-items: center; gap: 12px; padding: 13px 4px; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; }
.menu-list a span:first-child { font-size: 20px; width: 28px; text-align: center; }
.menu-list a .grow { flex: 1; } .menu-list a::after { content: '›'; color: var(--muted); font-size: 20px; }

.progress { height: 8px; background: var(--bg2); border-radius: 99px; overflow: hidden; border: 1px solid var(--line); }
.progress > div { height: 100%; background: var(--accent); }
.chart { width: 100%; height: 140px; display: block; }
.chart-labels { display: flex; font-size: 10px; color: var(--muted); } .chart-labels span { flex: 1; text-align: center; overflow: hidden; white-space: nowrap; }
.empty { text-align: center; padding: 22px 8px; color: var(--muted); }
.alert-line { padding: 8px 10px; border-radius: 8px; font-size: 13.5px; margin: 6px 0; background: var(--bg2); border-left: 3px solid var(--yellow); }
.alert-line.red { border-color: var(--red); }
.alert-line.green { border-color: var(--green); }

.dropzone { border: 2px dashed var(--line); border-radius: var(--radius); padding: 22px; text-align: center; color: var(--muted); cursor: pointer; }
.dropzone.drag { border-color: var(--accent); color: var(--text); }
.chat { display: flex; flex-direction: column; gap: 8px; min-height: 240px; }
.msg { max-width: 88%; padding: 10px 12px; border-radius: 12px; white-space: pre-wrap; font-size: 14px; }
.msg.me { align-self: flex-end; background: var(--accent); color: #fff; } .msg.bot { align-self: flex-start; background: var(--card); border: 1px solid var(--line); }
.msg .src { display: block; font-size: 11px; color: var(--muted); margin-top: 6px; }

/* Diálogo centralizado: no celular, barras do navegador/sistema escondiam os botões de um "bottom sheet". */
.modal-wrap { position: fixed; inset: 0; background: rgba(0,0,0,.55); display: flex; align-items: center; justify-content: center; z-index: 50; padding: 16px 12px calc(16px + env(safe-area-inset-bottom)); }
.modal { background: var(--bg2); width: 100%; max-width: 560px; max-height: calc(100dvh - 48px); max-height: calc(100vh - 48px); overflow: auto; border-radius: 18px; padding: 18px 16px 20px; position: relative; border: 1px solid var(--line); }
@supports (height: 100dvh) { .modal { max-height: calc(100dvh - 48px); } }
.modal-x { position: absolute; right: 10px; top: 8px; background: none; border: 0; color: var(--muted); font-size: 26px; cursor: pointer; }
#toasts { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--tab-h) + 16px); z-index: 60; display: flex; flex-direction: column; gap: 6px; width: min(92vw, 420px); }
.toast { line-height: 1.4; background: #111827; color: #fff; padding: 11px 14px; border-radius: 10px; font-size: 14px; transition: opacity .3s; border-left: 4px solid var(--accent); }
.toast.ok { border-color: var(--green); } .toast.err { border-color: var(--red); } .toast.out { opacity: 0; }

.hero { text-align: center; padding: 26px 8px 10px; } .hero .logo { font-size: 44px; } .hero h2 { font-size: 24px; margin: 8px 0 4px; }
.driving-mode .big-metrics .v { font-size: 30px; }
#map { height: 420px; border-radius: var(--radius); border: 1px solid var(--line); }
@media print { #topbar, #tabbar, .no-print { display: none !important; } body { background: #fff; color: #000; } .card { border-color: #ccc; } }
#tabbar a { position: relative; }
#tabbar a[data-badge]:not([data-badge=""])::after { content: attr(data-badge); position: absolute; top: 6px; left: calc(50% + 6px); background: var(--red); color: #fff; font-size: 10px; line-height: 16px; min-width: 16px; padding: 0 4px; border-radius: 8px; text-align: center; }
.msg-team { background: color-mix(in srgb, var(--accent) 14%, var(--card)); }
.issue img { max-width: 200px; display: block; margin-top: 6px; border-radius: 8px; }
/* Tempo restante do plano (mesmas cores do painel) */
#plan-badge { display: inline-flex; align-items: center; gap: 6px; }
.rem { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 700; white-space: nowrap; border: 1px solid transparent; vertical-align: middle; }
.rem-ok { background: #fff; color: #1f2937; border-color: #d1d5db; }
.rem-14 { background: #fecaca; color: #7f1d1d; border-color: #fca5a5; }
.rem-7 { background: #dc2626; color: #fff; }
.rem-3 { background: #dc2626; color: #fff; animation: rem-blink 1s ease-in-out infinite; }
@keyframes rem-blink { 50% { opacity: .2; } }
@media (prefers-reduced-motion: reduce) { .rem-3 { animation-duration: 2s; box-shadow: 0 0 0 2px #fff, 0 0 0 4px #dc2626; } }

.acct-code { font-family: ui-monospace, Consolas, monospace; font-weight: 700; letter-spacing: .5px; padding: 1px 6px; border-radius: 6px; background: var(--bg2); border: 1px solid var(--line); white-space: nowrap; }
.sv-scale { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0; }
.sv-scale .btn { min-width: 34px; padding: 6px 0; justify-content: center; }
.chat-thread { display: grid; gap: 8px; max-height: 55vh; overflow-y: auto; padding: 10px 2px; }
.chat-msg { max-width: 82%; padding: 8px 12px; border-radius: 14px; background: var(--bg2); font-size: 14px; }
.chat-msg.motorista { justify-self: end; background: color-mix(in srgb, var(--accent) 22%, var(--card)); }
.chat-msg.sistema { justify-self: center; background: transparent; font-size: 12px; color: var(--muted); text-align: center; }
/* Assistente */
.as-root .chip { flex: none; background: var(--bg2); border: 1px solid var(--line); color: var(--text); border-radius: 999px; padding: 7px 12px; font-size: 13px; cursor: pointer; font: inherit; font-size: 13px; }
.as-root .chip:hover { border-color: var(--accent); }
.as-chips { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 10px; scrollbar-width: none; }
.as-chips::-webkit-scrollbar { display: none; }
.as-tips { padding: 10px 12px; }
.as-tip { display: flex; gap: 10px; align-items: center; width: 100%; text-align: left; background: transparent; border: none; border-top: 1px solid var(--line); color: var(--text); padding: 9px 0; font: inherit; font-size: 14px; cursor: pointer; }
.as-tip span:nth-child(2) { flex: 1; }
.as-root .msg.bot { position: relative; padding-right: 34px; }
.as-chart { margin-top: 8px; }
.as-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.as-acts .btn { min-height: 34px; padding: 6px 10px; font-size: 13px; }
.as-follow { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; white-space: normal; }
.as-copy { position: absolute; top: 6px; right: 6px; background: transparent; border: none; cursor: pointer; opacity: .55; font-size: 13px; padding: 2px; }
.as-copy:hover { opacity: 1; }
.as-input { display: flex; gap: 6px; margin-top: 12px; position: sticky; bottom: calc(var(--tab-h) + 8px); background: var(--bg); padding: 6px 0; }
.as-input input { flex: 1; min-width: 0; }
.as-input .btn { flex: none; min-width: 46px; padding: 10px; }
#mic.rec { color: var(--red); border-color: var(--red); animation: as-pulse 1s infinite; }
@keyframes as-pulse { 50% { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { #mic.rec { animation: none; } }
.as-root .chat { padding-bottom: 8px; }
.as-chart .chart-labels { white-space: normal; }
/* Modo dados fictícios */
.demo-badge { flex: none; appearance: none; border: 2px solid #b45309; background: repeating-linear-gradient(-45deg, #fbbf24 0 8px, #f59e0b 8px 16px); color: #1c1300; font: inherit; font-size: 11px; font-weight: 900; letter-spacing: .6px; padding: 4px 9px; border-radius: 8px; cursor: pointer; white-space: nowrap; box-shadow: 0 0 0 0 rgba(245, 158, 11, .7); animation: demo-glow 1.8s ease-in-out infinite; }
@keyframes demo-glow { 50% { box-shadow: 0 0 0 5px rgba(245, 158, 11, 0); transform: scale(1.04); } }
@media (prefers-reduced-motion: reduce) { .demo-badge { animation: none; } }
@media (max-width: 380px) { .demo-badge { font-size: 10px; padding: 3px 6px; letter-spacing: .2px; } }
body.demo-on #topbar { border-bottom: 3px solid #f59e0b; }
.demo-card.on { border-color: #f59e0b; }
.choice { display: flex; gap: 10px; align-items: flex-start; padding: 10px; border: 1px solid var(--line); border-radius: 10px; margin-top: 8px; cursor: pointer; }
.choice input { width: auto; min-height: 0; margin-top: 3px; }
.choice:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); }
/* Foto de perfil */
.avatar { position: relative; flex: none; width: 58px; height: 58px; border-radius: 50%; border: 2px solid var(--line); background: var(--bg2); display: grid; place-items: center; font-size: 30px; cursor: pointer; padding: 0; overflow: visible; }
.avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.avatar-cam { position: absolute; right: -4px; bottom: -4px; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); border: 2px solid var(--card); display: grid; place-items: center; font-size: 12px; }
.avatar:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.photo-preview { width: 120px; height: 120px; margin: 6px auto 14px; border-radius: 50%; overflow: hidden; background: var(--bg2); display: grid; place-items: center; font-size: 60px; border: 2px solid var(--line); }
.photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.photo-opt { margin-top: 8px; cursor: pointer; }
/* Analisador: nota, valor necessário, comparação e decisão */
.score-pill { display: inline-flex; flex-direction: column; align-items: center; min-width: 54px; padding: 4px 8px; border-radius: 12px; border: 2px solid var(--gray); font-weight: 800; line-height: 1.05; }
.score-pill b { font-size: 20px; } .score-pill span { font-size: 10px; font-weight: 600; color: var(--muted); }
.score-pill.green { border-color: var(--green); color: var(--green); } .score-pill.yellow { border-color: var(--yellow); color: var(--yellow); } .score-pill.red { border-color: var(--red); color: var(--red); }
.need-line { margin: 8px 0 2px; padding: 8px 10px; border-radius: 10px; background: var(--bg2); font-size: 14px; }
.need-line.ok { border-left: 4px solid var(--green); } .need-line.short { border-left: 4px solid var(--yellow); }
.cmp-line { font-size: 13px; color: var(--muted); margin-top: 6px; }
.check-bars { display: grid; gap: 7px; margin-top: 6px; }
.check-bars .cb-head { display: flex; justify-content: space-between; font-size: 12.5px; }
.check-bars .progress > div.green { background: var(--green); } .check-bars .progress > div.yellow { background: var(--yellow); } .check-bars .progress > div.red { background: var(--red); }
.decide { display: grid; grid-template-columns: 1fr 1.2fr 1.2fr; gap: 8px; }
.btn.accept { border-color: var(--green); color: var(--green); } .btn.decline { border-color: var(--red); color: var(--red); }
.driving-mode .score-pill b { font-size: 26px; } .driving-mode .need-line { font-size: 17px; }
/* Minhas metas */
.goals-form .goal-row { display: grid; grid-template-columns: 1fr 150px; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.goals-form .goal-row.off .goal-val { opacity: .45; }
.goals-form .goal-on { margin: 0; align-items: flex-start; }
.goals-form .goal-val { display: flex; flex-direction: column; gap: 2px; text-align: right; }
.goals-form .goal-val input { text-align: right; font-size: 17px; font-weight: 700; }
@media (max-width: 380px) { .goals-form .goal-row { grid-template-columns: 1fr 112px; } }
/* Escolha de marca/modelo/versão */
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 4px; }
.seg button { appearance: none; border: 1px solid var(--line); background: var(--bg2); color: var(--text); border-radius: 10px; padding: 10px; font-weight: 600; font-size: 14.5px; cursor: pointer; min-height: 44px; }
.seg button.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 18%, var(--bg2)); }
.pick-btn { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 8px; text-align: left; appearance: none; border: 1px solid var(--line); background: var(--bg2); color: var(--text); border-radius: 10px; padding: 11px 12px; min-height: 46px; font-size: 15px; cursor: pointer; }
.pick-btn:disabled { opacity: .5; cursor: default; }
.pick-btn b { font-weight: 700; }
.pick-sheet { position: fixed; inset: 0; z-index: 70; background: rgba(0,0,0,.55); display: flex; align-items: flex-end; justify-content: center; }
.pick-panel { background: var(--card); width: min(100%, 560px); height: min(92vh, 760px); border-radius: 16px 16px 0 0; display: flex; flex-direction: column; padding: 12px 12px 0; box-shadow: 0 -8px 30px rgba(0,0,0,.35); }
@media (min-width: 700px) { .pick-sheet { align-items: center; } .pick-panel { border-radius: 16px; } }
.pick-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 16px; }
.pick-search { width: 100%; font-size: 16px; padding: 12px; border-radius: 10px; }
.pick-list { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; margin: 8px -12px 0; padding: 0 12px calc(12px + env(safe-area-inset-bottom)); overscroll-behavior: contain; }
.pick-sec { position: sticky; top: 0; background: var(--card); font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; padding: 10px 2px 6px; }
.pick-item { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 10px; text-align: left; appearance: none; background: none; border: 0; border-bottom: 1px solid var(--line); color: var(--text); padding: 13px 4px; font-size: 15.5px; cursor: pointer; min-height: 48px; }
.pick-item:hover, .pick-item:focus-visible { background: var(--bg2); }
.pick-item.on { color: var(--accent); font-weight: 700; }
.pick-item.on::after { content: '✓'; }
.pick-item.skip { color: var(--muted); font-style: italic; }
/* Resultado da análise — versão simples */
.verdict.v2 { padding: 14px; }
.verdict.v2 .v-top { display: flex; align-items: center; gap: 10px; }
.verdict.v2 .v-title { font-size: 22px; font-weight: 800; line-height: 1.15; }
.verdict.v2.green .v-title { color: var(--green); } .verdict.v2.yellow .v-title { color: var(--yellow); } .verdict.v2.red .v-title { color: var(--red); }
.verdict.v2 .v-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0 10px; }
.verdict.v2 .v-cell { background: var(--bg2); border-radius: 12px; padding: 10px 12px; }
.verdict.v2 .v-cell .k { font-size: 12px; color: var(--muted); }
.verdict.v2 .v-cell .v { font-size: 24px; font-weight: 800; line-height: 1.2; }
.verdict.v2 .v-cell .v.neg { color: var(--red); }
.verdict.v2 .v-cell .s { font-size: 11.5px; color: var(--muted); }
.verdict.v2 .v-legs { display: grid; gap: 8px; font-size: 14px; }
.verdict.v2 .leg { display: flex; gap: 8px; align-items: flex-start; }
.verdict.v2 .leg .ico { font-size: 18px; line-height: 1.2; }
.verdict.v2 .addr { color: var(--muted); font-size: 13px; margin-top: 2px; }
.verdict.v2 .v-maps { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.verdict.v2 .v-actions { display: flex; gap: 8px; margin-top: 10px; }
.verdict.v2 .v-actions .btn { flex: 1; }
.driving-mode.v2 .v-title { font-size: 28px; } .driving-mode.v2 .v-cell .v { font-size: 30px; }
#more h4 { margin: 14px 0 6px; font-size: 14.5px; }
#more summary { cursor: pointer; }
.day-table { display: grid; grid-template-columns: repeat(8, 1fr); text-align: center; gap: 2px; margin-top: 6px; line-height: 1.35; }
/* Enviar oferta — tela simples */
.offer-in-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.offer-in-head h3 { margin: 0; font-size: 19px; }
.plat-pick { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); margin: 0; }
.plat-pick select { width: auto; padding: 6px 8px; font-size: 13px; min-height: 34px; }
.method-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
@media (max-width: 420px) { .method-grid { grid-template-columns: repeat(2, 1fr); } }
.method-tile { appearance: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 78px; padding: 10px 6px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--bg2); color: var(--text); font-weight: 600; font-size: 14px; cursor: pointer; text-align: center; }
.method-tile .mi { font-size: 26px; line-height: 1; }
.method-tile.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 16%, var(--bg2)); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 35%, transparent); }
.method-tile:disabled { opacity: .45; cursor: default; }
.quick-form .qf-block { margin-bottom: 12px; }
.quick-form .qf-title { font-weight: 700; font-size: 14.5px; margin-bottom: 6px; }
.quick-form .qf-two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.quick-form .qf-in { display: flex; align-items: center; gap: 8px; background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; }
.quick-form .qf-in:focus-within { border-color: var(--accent); }
.quick-form .qf-in input { border: 0; background: transparent; padding: 12px 0; font-size: 18px; font-weight: 700; min-width: 0; flex: 1; box-shadow: none; outline: none; }
.quick-form .qf-in input::placeholder { color: color-mix(in srgb, var(--muted) 55%, transparent); font-weight: 500; }
.quick-form .qf-in span { color: var(--muted); font-weight: 600; }
.quick-form .qf-in.big input { font-size: 26px; padding: 14px 0; }
.quick-form .qf-in.big span { font-size: 18px; }
.quick-form .qf-more { margin-top: 4px; }
.quick-form .qf-more summary { cursor: pointer; font-weight: 600; font-size: 14px; padding: 6px 0; }
.dropzone b { font-size: 16px; }
#result { scroll-margin-top: 72px; }
/* Análise automática: prévia do card flutuante (mesmo visual do card nativo) */
.fcard-stage { display: flex; justify-content: center; margin: 4px 0 6px; }
.fcard-phone { position: relative; width: min(100%, 380px); min-height: 330px; border-radius: 26px; padding: 14px 10px; background: linear-gradient(180deg, #2a3140 0%, #1b2029 55%, #11151c 100%); border: 1px solid var(--line); overflow: hidden; }
.fcard-fake { position: absolute; left: 10px; right: 10px; bottom: 10px; background: #0b0d12; color: #e8eaf0; border-radius: 14px; padding: 10px 12px; font-size: 12.5px; line-height: 1.5; opacity: .75; }
.fcard-fake b { font-size: 20px; }
.fcard-bubble { position: absolute; right: 8px; top: 52%; width: 50px; height: 50px; border-radius: 50%; background: #0d1017; border: 2px solid #3b82f6; display: grid; place-items: center; box-shadow: 0 6px 16px rgba(0,0,0,.4); }
.fcard-bubble img { width: 38px; height: 38px; border-radius: 50%; }
.fcard { position: relative; z-index: 2; background: rgba(13,16,23,.96); color: #fff; border-radius: 20px; border: 3px solid #64748b; padding: 12px 14px; box-shadow: 0 10px 28px rgba(0,0,0,.45); font-family: system-ui, sans-serif; }
.fcard.green { border-color: #22c55e; } .fcard.yellow { border-color: #eab308; } .fcard.red { border-color: #ef4444; }
.fcard .fc-top { display: flex; align-items: center; gap: 8px; }
.fcard .fc-logo { width: 30px; height: 30px; border-radius: 50%; }
.fcard .fc-top b { font-size: 13px; } .fcard .fc-sub { font-size: 11px; color: #9aa4b2; }
/* Tela estreita: o nome encolhe (com reticências) em vez de ficar por baixo do selo do veredito. */
.fcard .fc-top .grow { min-width: 0; } .fcard .fc-top .grow b, .fcard .fc-sub { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fcard .fc-pill { font-size: 12.5px; font-weight: 800; padding: 4px 10px; border-radius: 99px; white-space: nowrap; }
.fcard.green .fc-pill { color: #22c55e; background: rgba(34,197,94,.18); } .fcard.yellow .fc-pill { color: #eab308; background: rgba(234,179,8,.18); } .fcard.red .fc-pill { color: #ef4444; background: rgba(239,68,68,.18); }
.fcard .fc-x { color: #9aa4b2; padding-left: 6px; }
.fcard .fc-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.fcard .fc-chips span { background: #1e2634; border-radius: 10px; padding: 4px 9px; font-size: 12px; font-weight: 700; }
.fcard .fc-chips .green { color: #22c55e; } .fcard .fc-chips .yellow { color: #eab308; } .fcard .fc-chips .red { color: #ef4444; }
.fcard .fc-nums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 10px; }
.fcard .fc-nums span { display: block; font-size: 11px; color: #9aa4b2; }
.fcard .fc-nums b { font-size: 18px; white-space: nowrap; }
.fcard .dot { font-style: normal; font-size: 11px; margin-right: 3px; vertical-align: 2px; }
.fcard .dot.green { color: #22c55e; } .fcard .dot.yellow { color: #eab308; } .fcard .dot.red { color: #ef4444; }
.fcard .fc-need { color: #eab308; font-weight: 700; font-size: 12.5px; margin-top: 8px; }
.fcard .fc-dest { color: #9aa4b2; font-size: 12px; margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Celular (menos de 400 px de largura): tudo um pouco menor, para o nome e o selo do veredito caberem lado a lado. */
@media (max-width: 399px) {
  .fcard { padding: 10px; } .fcard .fc-top { gap: 6px; } .fcard .fc-logo { width: 24px; height: 24px; } .fcard .fc-top b { font-size: 12px; }
  .fcard .fc-pill { font-size: 11px; padding: 3px 6px; } .fcard .fc-x { padding-left: 0; } .fcard .fc-nums { gap: 2px; } .fcard .fc-nums b { font-size: 15px; }
}
.fcard .fc-hint { color: #9aa4b2; font-size: 10.5px; margin-top: 6px; }
.steps { padding-left: 20px; margin: 6px 0 12px; } .steps li { margin-bottom: 8px; }
.auto-banner { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; margin: 0 0 12px; text-decoration: none; color: var(--text); background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 22%, var(--card)), var(--card)); border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line)); }
.auto-banner .ab-ico { font-size: 24px; } .auto-banner b { display: block; font-size: 14.5px; } .auto-banner span.small { color: var(--muted); }
/* Minhas metas — no visual do card */
.preset-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 4px 0 12px; }
.preset { appearance: none; display: flex; flex-direction: column; gap: 2px; align-items: center; text-align: center; padding: 10px 6px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--bg2); color: var(--text); cursor: pointer; }
.preset b { font-size: 14px; } .preset span { font-size: 11.5px; color: var(--muted); }
.preset.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 16%, var(--bg2)); }
.goals-preview { background: linear-gradient(180deg, #2a3140, #151a22); border-radius: 18px; padding: 10px; margin-bottom: 12px; color: #e8eaf0; }
.goals-preview .gp-card { margin-top: 8px; }
.ex-pick { display: flex; gap: 4px; }
.ex-pick button { appearance: none; border: 1px solid #3a4352; background: #1e2634; color: #cbd5e1; border-radius: 99px; padding: 3px 9px; font-size: 11.5px; cursor: pointer; }
.ex-pick button.on { background: #3b82f6; border-color: #3b82f6; color: #fff; }
/* minmax(0, 1fr): a coluna nunca fica mais larga que a tela (com "1fr" puro, em celular de 320 px o quadro passava da borda). */
.goal-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
@media (min-width: 640px) { .goal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 359px) { .goal-tile .gt-val { flex-wrap: wrap; } .goal-tile .gt-val .gt-kind { flex-basis: 100%; } }
.goal-tile { background: var(--bg2); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; transition: opacity .15s; }
.goal-tile.off { opacity: .55; }
.goal-tile .gt-head { display: flex; align-items: center; gap: 10px; }
.goal-tile .gt-ico { font-size: 22px; width: 28px; text-align: center; }
.goal-tile .gt-head b { font-size: 15px; } .goal-tile .gt-hint { font-size: 11.5px; color: var(--muted); }
.goal-tile .gt-val { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.goal-tile .gt-kind { font-size: 12px; color: var(--muted); flex: 1; }
.goal-tile .gt-val input { width: 86px; text-align: center; font-size: 18px; font-weight: 800; padding: 6px; }
.goal-tile .gt-unit { font-size: 12.5px; color: var(--muted); min-width: 44px; }
.gt-step { appearance: none; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--text); font-size: 20px; font-weight: 700; cursor: pointer; line-height: 1; }
.switch { position: relative; display: inline-block; width: 44px; height: 26px; margin: 0; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: var(--line); border-radius: 99px; transition: .15s; cursor: pointer; }
.switch span::before { content: ''; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .15s; }
.switch input:checked + span { background: var(--green); }
.switch input:checked + span::before { transform: translateX(18px); }
.more-goals { margin-top: 10px; } .more-goals summary { cursor: pointer; font-weight: 600; padding: 6px 0; }
.more-goals .goal-grid { margin: 6px 0 10px; }
.fcard .fc-top b { white-space: nowrap; } .fcard .fc-top .grow { min-width: 0; }
/* Metas: quando cada cor aparece */
.color-rule { margin-top: 12px; background: var(--bg2); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; }
.color-rule .cr-title { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.cr-row { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px solid var(--line); }
.cr-row:first-of-type { border-top: 0; }
.cr-row .grow { flex: 1; min-width: 0; } .cr-row .grow b { display: block; font-size: 15px; } .cr-row .grow span { font-size: 12.5px; color: var(--muted); }
.cr-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; flex: none; }
.cr-dot.green { background: var(--green); } .cr-dot.yellow { background: var(--yellow); } .cr-dot.red { background: var(--red); }
.cr-row > .cr-dot { width: 16px; height: 16px; }
.cr-ctl-line { display: flex; align-items: center; justify-content: space-between; gap: 6px 10px; flex-wrap: wrap; margin-top: 2px; }
.cr-ctl-line > span { white-space: nowrap; }
.cr-ctl { display: flex; align-items: center; gap: 5px; }
.cr-ctl input { width: 52px; text-align: center; font-size: 18px; font-weight: 800; padding: 6px; }
.cr-ctl > span { font-weight: 700; color: var(--muted); }
.cr-table { margin-top: 6px; border-top: 1px dashed var(--line); padding-top: 6px; }
.cr-line { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 5px 0; font-size: 13px; }
.cr-line .cr-name { flex: 1 1 100%; font-weight: 600; } .cr-line .cr-name small { color: var(--muted); font-weight: 400; }
.cr-line .cr-r { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.cr-line .cr-r .cr-dot { width: 9px; height: 9px; }
/* Abas que sempre cabem inteiras (Central de ofertas): dividem a largura e encolhem a letra em telas estreitas */
.tabs.fit { overflow: visible; }
.tabs.fit > * { flex: 1 1 auto; min-width: 0; text-align: center; white-space: nowrap; padding: 7px clamp(4px, 2vw, 12px); font-size: clamp(11.5px, 3.5vw, 13px); }
/* Início: metas do dia e do mês — cada uma com o seu botão de editar à direita */
.income-goals { padding-top: 6px; padding-bottom: 10px; }
.income-goals .ig-row { padding: 10px 0 12px; }
.income-goals .ig-row + .ig-row { border-top: 1px solid var(--line); }
.income-goals .ig-top { display: flex; align-items: center; gap: 10px; min-width: 0; }
.income-goals .ig-top .grow { flex: 1; min-width: 0; }
.income-goals .ig-ico { flex: none; width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; font-size: 18px; background: color-mix(in srgb, var(--accent) 14%, transparent); }
.income-goals .ig-row.hit .ig-ico { background: color-mix(in srgb, var(--green) 18%, transparent); }
.income-goals .ig-val { font-size: 13px; color: var(--muted); margin-top: 2px; overflow-wrap: anywhere; }
.income-goals .ig-val b { color: var(--text); font-weight: 700; }
.income-goals .ig-bar { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.income-goals .ig-bar .progress { flex: 1; margin: 0; }
.income-goals .ig-pct { flex: none; min-width: 38px; text-align: right; font-size: 12px; font-weight: 700; color: var(--muted); }
.income-goals .ig-row.hit .ig-pct { color: var(--green); }
.income-goals .ig-row.hit .progress > div { background: var(--green); }
.income-goals .ig-note { margin: 2px 0 0; }
.ig-edit { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: 999px; cursor: pointer;
  font: inherit; font-size: 13px; font-weight: 700; color: var(--accent2); white-space: nowrap;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); background: color-mix(in srgb, var(--accent) 12%, transparent); transition: background .15s, transform .1s; }
.ig-edit span { font-size: 12px; }
.ig-edit:hover { background: color-mix(in srgb, var(--accent) 22%, transparent); }
.ig-edit:active { transform: scale(.96); }
.ig-edit:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ig-also { margin-top: 8px; } .ig-also.on { color: var(--green); }
@media (max-width: 360px) { .ig-edit { padding: 0 10px; } .income-goals .ig-ico { width: 32px; height: 32px; font-size: 16px; } }
.ig-calc { background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: grid; gap: 8px; }
.ig-days { display: inline-flex; gap: 4px; margin: 0 4px; }
.ig-days button { appearance: none; width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); color: var(--text); font-weight: 700; cursor: pointer; }
.ig-days button.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.ig-sugg .btn { margin-left: 4px; }
/* Equivalência entre as metas (dia ↔ semana ↔ mês ↔ ano) no editor */
.ig-eqs { display: grid; gap: 6px; margin-top: 6px; }
.ig-eq { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 4px 8px; padding: 6px 8px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); color: var(--text); }
.ig-eq > span:first-child { color: var(--muted); }
.ig-eq b { font-variant-numeric: tabular-nums; }
.ig-eq .btn { margin: 0; }
.ig-eq.on { border-color: color-mix(in srgb, var(--green) 55%, transparent); background: color-mix(in srgb, var(--green) 10%, var(--card)); }
.ig-eq .ig-ok { font-size: 12px; color: var(--green); font-weight: 700; }
.ig-eq .ig-cur { grid-column: 1 / -1; font-size: 11.5px; color: var(--muted); margin-top: -2px; }
/* Planos: cards na estrutura Gratuito · Pro · Premium · Anual Pro · Parceiro */
.plan-list { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 10px 0; }
@media (min-width: 700px) { .plan-list { grid-template-columns: 1fr 1fr; } }
.plan-card { --pc: var(--line); position: relative; background: var(--card); border: 1.5px solid var(--line); border-top: 4px solid var(--pc); border-radius: 16px; padding: 14px 16px 16px; }
.plan-card.tier-free { --pc: #64748b; } .plan-card.tier-pro { --pc: #3b82f6; } .plan-card.tier-premium { --pc: #a855f7; } .plan-card.tier-ultra { --pc: #b45309; } .plan-card.tier-parceiro { --pc: #14b8a6; }
.plan-card.current { border-color: var(--pc); box-shadow: 0 0 0 2px color-mix(in srgb, var(--pc) 35%, transparent); }
.pc-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.pc-name { font-size: 15px; letter-spacing: 1.2px; text-transform: uppercase; }
.pc-tag { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 99px; color: var(--pc); background: color-mix(in srgb, var(--pc) 16%, transparent); }
.plan-card.tier-free .pc-tag { color: var(--muted); }
.pc-periods { display: flex; gap: 4px; margin: 10px 0 2px; background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 3px; }
.pc-periods button { flex: 1; appearance: none; border: 0; background: none; color: var(--muted); font-size: 12.5px; font-weight: 600; padding: 7px 4px; border-radius: 9px; cursor: pointer; white-space: nowrap; }
.pc-periods button.on { background: var(--pc); color: #fff; }
.pc-price { display: flex; align-items: baseline; gap: 4px; margin: 10px 0 0; }
.pc-price b { font-size: 30px; font-weight: 800; letter-spacing: -0.5px; }
.pc-price span { color: var(--muted); font-size: 14px; }
.pc-eq { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.pc-list { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 6px; }
.pc-list li { position: relative; padding-left: 24px; font-size: 14.5px; line-height: 1.35; }
.pc-list li::before { content: '✓'; position: absolute; left: 0; top: 0; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 800; color: #fff; background: var(--pc); }
.plan-card.tier-free .pc-list li::before { background: #64748b; }
.pc-note { margin-top: 10px; font-size: 13px; font-weight: 700; }
.pc-note.good { color: var(--green); }
.pc-note.ads { color: var(--muted); font-weight: 600; }
.pc-act { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pc-act:empty { display: none; }
/* Anúncios do plano Gratuito: sempre identificados */
.ad-slot { position: relative; display: grid; gap: 8px; background: var(--bg2); border: 1px dashed color-mix(in srgb, var(--muted) 45%, transparent); border-radius: 14px; padding: 22px 14px 12px; margin: 12px 0; }
.ad-slot .ad-label { position: absolute; top: 6px; left: 12px; font-size: 10.5px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; color: var(--muted); }
.ad-slot .ad-main b { font-size: 15px; } .ad-slot .ad-main p { margin: 4px 0 2px; font-size: 14px; } .ad-slot .ad-main small { color: var(--muted); }
.ad-slot .ad-act { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ad-slot .ad-remove { margin-left: auto; font-size: 12px; color: var(--muted); }
.locked { opacity: .75; } .lock-tile { cursor: pointer; border-style: dashed !important; }
.lock-note { display: flex; align-items: center; gap: 10px; background: color-mix(in srgb, var(--accent) 10%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); border-radius: 12px; padding: 10px 12px; margin: 10px 0; font-size: 13.5px; }
.lock-note .grow { flex: 1; } .lock-note .btn { flex: none; }
button.stat { font: inherit; color: inherit; text-align: left; width: 100%; cursor: pointer; }
/* ---- Anúncios (sistema do painel → Anúncios) ---- */
.ad-slot.native .ad-row { display: flex; gap: 12px; align-items: flex-start; }
.ad-slot .ad-img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; flex: none; background: var(--card); }
.ad-slot .ad-ico { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; font-size: 24px; background: var(--card); flex: none; }
.ad-slot.banner { display: flex; align-items: center; gap: 10px; padding: 20px 12px 10px; margin: 18px 0 6px; }
.ad-slot.banner .ad-img, .ad-slot.banner .ad-logo { width: 40px; height: 40px; border-radius: 10px; flex: none; object-fit: cover; }
.ad-slot.banner .ad-main { flex: 1; min-width: 0; } .ad-slot.banner .ad-main b { display: block; font-size: 14px; } .ad-slot.banner .ad-main small { display: block; color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ad-slot.banner .btn { flex: none; }
.ad-slot.house { background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 10%, var(--bg2)), var(--bg2)); border-style: solid; border-color: color-mix(in srgb, var(--accent) 30%, transparent); }
.house-brand { display: flex; align-items: center; gap: 8px; } .house-brand img { width: 26px; height: 26px; border-radius: 50%; } .house-brand b { letter-spacing: .5px; }
.house-title { font-weight: 800; font-size: 16px; margin: 6px 0 2px; } .house-text { font-size: 13.5px; color: var(--muted); margin: 0; }
.house-offer { margin-top: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.house-offer > div { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.house-price { font-weight: 800; font-size: 18px; } .house-price small { font-size: 12px; color: var(--muted); font-weight: 600; }
.house-offer p { margin: 4px 0 8px; font-size: 13px; }
.list li.ad-li { display: block; padding: 0; border: 0; background: none; cursor: default; }
.list li.ad-li .ad-slot { margin: 6px 0; }
/* Tokens e recompensas */
.tk-hero { display: flex; align-items: center; gap: 14px; background: linear-gradient(135deg, #f59e0b22, var(--card)); }
.tk-coin { font-size: 40px; } .tk-bal { font-size: 30px; font-weight: 800; } .tk-bal span { font-size: 14px; color: var(--muted); font-weight: 600; }
.tk-list { display: grid; gap: 8px; }
.tk-item { display: flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.tk-item.on { border-color: var(--green); } .tk-ico { font-size: 22px; width: 28px; text-align: center; }
.tk-offer { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #f59e0b14; border: 1px solid #f59e0b55; border-radius: 12px; padding: 10px 12px; margin-top: 8px; }
/* Anúncio recompensado (opcional) */
.rw-view { display: grid; gap: 10px; text-align: center; }
.rw-view .ad-label { position: static; }
.rw-body { display: grid; gap: 6px; justify-items: center; padding: 8px 0; }
.rw-img { max-width: 100%; max-height: 220px; border-radius: 12px; object-fit: contain; }
.rw-timer { display: grid; gap: 6px; }
.rw-bar { height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; } .rw-bar i { display: block; height: 100%; width: 0; background: #f59e0b; transition: width 1s linear; }
/* Saldo de tokens no topo (à esquerda do plano) */
.token-badge { display: inline-flex; align-items: center; gap: 4px; flex: none; padding: 4px 10px; border-radius: 999px; background: #f59e0b1f; border: 1px solid #f59e0b66; color: var(--text); font-size: 13px; font-weight: 600; text-decoration: none; line-height: 1.2; }
.token-badge b { font-weight: 800; }
.token-badge:active { transform: scale(.96); }
#title { min-width: 0; overflow-wrap: anywhere; }
#plan-badge { flex: none; }
@media (max-width: 360px) { .token-badge { padding: 3px 8px; font-size: 12px; } #title { font-size: 16px; } }

/* "hidden" esconde de verdade: sem isto, .btn/.token-badge (display: inline-flex) apareciam mesmo escondidos
   (selo de tokens para quem é Pro/Premium, 🎤 sem suporte a voz, "Limpar conversa" com o chat vazio). */
[hidden] { display: none !important; }

/* Central de ajuda: tutoriais do app */
.ht-cat { margin: 14px 2px 6px; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.help-topic { padding: 0; overflow: hidden; }
.help-topic > summary { display: flex; align-items: center; gap: 10px; padding: 12px 14px; cursor: pointer; list-style: none; }
.help-topic > summary::-webkit-details-marker { display: none; }
.help-topic > summary::after { content: '›'; margin-left: auto; color: var(--muted); font-size: 20px; line-height: 1; transition: transform .15s; }
.help-topic[open] > summary::after { transform: rotate(90deg); }
.help-topic > summary b { min-width: 0; overflow-wrap: anywhere; }
.help-topic .ht-ico { font-size: 20px; flex: none; }
.help-topic > :not(summary) { margin-left: 14px; margin-right: 14px; }
.help-topic .ht-intro { margin-top: 0; line-height: 1.5; }
.help-topic .ht-tips { list-style: none; padding: 0; margin: 0 14px 10px; } .help-topic .ht-tips li { margin-bottom: 6px; line-height: 1.45; }
.help-topic .ht-acts { flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
/* Cupom de parceiro (indicação): cadastro, Planos e a tela "Meu cupom de parceiro" */
.coupon-in { margin-top: 12px; padding: 10px 12px; border-radius: 12px; border: 1px dashed color-mix(in srgb, #f59e0b 55%, var(--line)); background: color-mix(in srgb, #f59e0b 6%, transparent); }
.coupon-in label { margin-top: 0; }
.cp-open { margin-top: 10px; }
.cp-msg { margin-top: 6px; min-height: 1em; } .cp-msg.ok { color: var(--green); } .cp-msg.bad { color: var(--red); }
.coupon-card { border-color: color-mix(in srgb, #f59e0b 45%, var(--line)); }
.cp-chip { font-family: ui-monospace, Consolas, monospace; font-weight: 800; letter-spacing: .8px; padding: 3px 10px; border-radius: 8px; color: #f59e0b; background: color-mix(in srgb, #f59e0b 12%, transparent); border: 1px dashed color-mix(in srgb, #f59e0b 60%, transparent); white-space: nowrap; }
.cp-hero { text-align: center; }
.cp-big { font-family: ui-monospace, Consolas, monospace; font-size: clamp(26px, 9vw, 38px); font-weight: 900; letter-spacing: 2px; margin: 6px 0 8px; color: #f59e0b; overflow-wrap: anywhere;
  padding: 8px 12px; border: 2px dashed color-mix(in srgb, #f59e0b 60%, transparent); border-radius: 14px; background: color-mix(in srgb, #f59e0b 8%, transparent); }
.cp-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.cp-actions .btn { text-align: center; justify-content: center; }
.cp-url { margin: 10px 0 0; overflow-wrap: anywhere; font-family: ui-monospace, Consolas, monospace; font-size: 11.5px; }
.cp-list { padding: 4px 14px; }
.cp-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; }
.cp-row + .cp-row { border-top: 1px solid var(--line); }
.cp-row .badge { flex: none; }
.cp-line { display: flex; gap: 6px; align-items: center; }
.cp-line input { flex: 1; min-width: 0; width: auto; margin: 0; text-transform: uppercase; letter-spacing: .5px; }
.cp-line .btn { flex: none; min-width: 44px; }

/* Chat ao vivo (app): cabeçalho, prints, digitando, lida, encerramento com avaliação e histórico */
.chat-head { padding: 10px 12px; margin-bottom: 6px; }
.chat-head #cinfo { margin-top: 4px; }
.chat-msg > span.small { display: block; margin-top: 3px; }
.chat-msg.sistema > span.small { display: none; }
.chat-img { display: block; max-width: 220px; max-height: 240px; margin-top: 6px; border-radius: 10px; object-fit: contain; cursor: zoom-in; }
.chat-img.big { max-width: 100%; max-height: 70vh; cursor: zoom-out; }
.chat-typing { margin: -2px 4px 6px; font-style: italic; }
.chat-compose { margin-top: 6px; }
.chat-clip { padding: 8px 10px; font-size: 17px; cursor: pointer; }
.chat-prev { display: flex; align-items: center; gap: 8px; }
.chat-prev:empty { display: none; }
.chat-prev img { max-height: 70px; border-radius: 8px; border: 1px solid var(--line); }
.chat-attach-row { display: flex; align-items: center; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.chat-push { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.chat-closed { margin-top: 10px; border: 1px solid color-mix(in srgb, var(--green) 35%, var(--line)); }
.chat-stars { display: flex; gap: 6px; }
.chat-star { appearance: none; border: 0; background: none; font-size: 34px; line-height: 1; color: var(--line); cursor: pointer; padding: 2px; transition: transform .1s, color .1s; }
.chat-star.on { color: #f5b301; }
.chat-star:active { transform: scale(.9); }
.chat-star:focus-visible { outline: 2px solid var(--accent); border-radius: 6px; }
.chat-stars-done { color: #f5b301; letter-spacing: 1px; }
.chat-rate textarea { margin-top: 8px; }
.chat-hist { display: block; color: inherit; text-decoration: none; margin-bottom: 8px; }
.chat-hist:hover { border-color: var(--accent); }
.chat-banner { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: inherit; text-decoration: none; border-color: var(--accent); border-width: 2px; }
/* Conta e segurança: campos de senha com 👁, força da senha, autenticador, códigos de recuperação e aparelhos */
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 46px; }
.pw-eye { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border: 0; background: transparent; color: var(--muted); font-size: 18px; cursor: pointer; border-radius: 8px; }
.pw-eye:hover, .pw-eye:focus-visible { background: var(--bg2); color: var(--text); }
.pw-meter { font-size: 12.5px; min-height: 16px; margin: 4px 0 2px; color: var(--muted); }
.pw-meter.weak { color: var(--red); } .pw-meter.ok { color: var(--yellow); } .pw-meter.strong { color: var(--green); }
.acc { display: grid; gap: 12px; }
.acc .card { margin: 0; }
.acc h3 { margin: 0 0 8px; }
.acc-head { display: flex; align-items: center; gap: 12px; }
.acc-head .grow { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.acc-head .acct-code { cursor: pointer; color: var(--text); font-size: 12.5px; }
.acc-av { flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent2)); }
.acc-links { display: flex; gap: 8px; flex-wrap: wrap; }
.dev-list { display: grid; gap: 8px; }
.dev-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; }
.dev-row.cur { border-color: color-mix(in srgb, var(--green) 50%, var(--line)); }
.dev-row .grow { flex: 1; min-width: 0; }
.dev-ico { font-size: 22px; flex: none; }
.mfa-code { font-family: ui-monospace, Consolas, monospace; font-size: 26px !important; letter-spacing: 6px; text-align: center; }
.mfa-steps { margin: 4px 0 10px; padding-left: 18px; display: grid; gap: 4px; }
.mfa-key { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 10px; padding: 8px 10px; border: 1px dashed var(--line); border-radius: 10px; }
.mfa-key b { letter-spacing: 1px; overflow-wrap: anywhere; flex: 1; min-width: 160px; }
.rc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-top: 8px; }
.rc-grid span { padding: 8px; border-radius: 8px; background: var(--bg2); border: 1px solid var(--line); text-align: center; font-weight: 700; letter-spacing: 1px; }
/* Seus dados: plataformas em "chips", dados opcionais recolhíveis e aviso do CPF */
.plat-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 2px; }
.chip-check { position: relative; cursor: pointer; }
.chip-check input { position: absolute; opacity: 0; pointer-events: none; }
.chip-check span { display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg2); font-weight: 600; }
.chip-check input:checked + span { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 18%, var(--bg2)); color: var(--text); }
.chip-check input:checked + span::before { content: '✓ '; margin-right: 4px; color: var(--accent2); }
.chip-check input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.acc-opt { margin-top: 12px; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.acc-opt summary { cursor: pointer; font-weight: 700; }
.acc-opt[open] summary { margin-bottom: 6px; }
.field-msg { min-height: 16px; margin-top: 2px; } .field-msg.ok { color: var(--green); } .field-msg.bad { color: var(--red); }
.cpick { display: grid; gap: 4px; }

/* ===== Central de emergência: 190/192/193, pedir ajuda, pânico, corrida segura, rede de confiança, mapa do alerta ===== */
.emg-calls-h { margin: 4px 0 6px; }
.emg-calls { display: grid; gap: 8px; }
.emg-call { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 78px; padding: 10px 14px; border: 0; border-radius: var(--radius); color: #fff; font: inherit; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.emg-call-ic { font-size: 30px; line-height: 1; flex: none; } .emg-call-go { font-size: 22px; flex: none; opacity: .9; }
.emg-call-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.emg-call-tx b { font-size: 19px; line-height: 1.2; } .emg-call-tx small { font-size: 14px; opacity: .95; }
.emg-call.c190 { background: #1d4ed8; } .emg-call.c192 { background: #b91c1c; } .emg-call.c193 { background: #c2410c; }
.emg-call:active { transform: scale(.97); } .emg-call:focus-visible { outline: 3px solid var(--text); outline-offset: 2px; }
.btn.emg-big { min-height: 60px; font-size: 17px; font-weight: 800; border-radius: 14px; }
.btn.emg-mid { min-height: 54px; font-size: 15.5px; }
.emg-row2 { margin-top: 8px; } #emg-ci { margin-top: 8px; }
.btn.emg-green { background: #15803d; border-color: #15803d; color: #fff; }
.btn.emg-white { background: #fff; border-color: #fff; color: #111827; }
.emg-menu { margin-top: 6px; }
.emg-banner { border-width: 2px; } .emg-banner p { margin: 0 0 10px; }
.emg-banner.alert { border-color: var(--red); background: color-mix(in srgb, var(--red) 14%, var(--card)); }
.emg-banner.test { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--card)); }
.emg-banner.checkin { border-color: var(--yellow); }
.emg-banner.invite, .emg-banner.warn { border-color: var(--yellow); background: color-mix(in srgb, var(--yellow) 10%, var(--card)); }
.emg-info { font-size: 13.5px; } .emg-ul { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 4px; }
.emg-sec h3 { margin-top: 0; }
.emg-seg { display: flex; gap: 6px; }
.emg-seg button { flex: 1 1 0; min-width: 0; min-height: 44px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg2); color: var(--text); font: inherit; font-weight: 600; cursor: pointer; padding: 6px 4px; }
.emg-seg button.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.emg-types { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.emg-chip { position: relative; display: inline-flex; margin: 0; cursor: pointer; }
.emg-chip input { position: absolute; opacity: 0; pointer-events: none; }
.emg-chip span { display: inline-flex; align-items: center; min-height: 36px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg2); color: var(--muted); font-size: 12.5px; font-weight: 600; }
.emg-chip input:checked + span { border-color: var(--accent); color: var(--text); background: color-mix(in srgb, var(--accent) 18%, var(--bg2)); }
.emg-chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.emg-clist li { align-items: flex-start; } .emg-clist .grow { overflow-wrap: anywhere; }
.emg-code-in { font-family: ui-monospace, Consolas, monospace; font-size: 22px; letter-spacing: 2px; text-transform: uppercase; text-align: center; }
.emg-consent { align-items: flex-start; } .emg-consent input { margin-top: 3px; }
.emg-ci-pick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.emg-saved { min-height: 18px; color: var(--green); }

/* camadas por cima de tudo (o .modal-wrap e os avisos ficam acima delas) */
body.emg-noscroll { overflow: hidden; }
.emg-overlay { position: fixed; inset: 0; z-index: 45; display: flex; align-items: stretch; justify-content: center; background: rgba(0, 0, 0, .6); }
.emg-ov-inner { width: 100%; max-width: 560px; overflow-y: auto; background: var(--bg2); padding: calc(14px + env(safe-area-inset-top)) 16px calc(24px + env(safe-area-inset-bottom)); }
@media (min-width: 600px) { .emg-overlay { align-items: center; padding: 16px; } .emg-ov-inner { border-radius: 18px; max-height: calc(100vh - 32px); border: 1px solid var(--line); } }
.emg-red .emg-ov-inner { background: #7f1d1d; color: #fff; }
.emg-blue .emg-ov-inner { background: #1e3a8a; color: #fff; }
.emg-red .small, .emg-blue .small, .emg-flash .small { color: #fde8e8; }
.emg-count, .emg-ok, .emg-in { min-height: calc(100vh - 64px); display: flex; flex-direction: column; justify-content: center; gap: 12px; text-align: center; }
.emg-count-t { font-size: 20px; font-weight: 700; margin: 0; }
.emg-count-n { font-size: 120px; font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; }
.btn.emg-cancel { background: #fff; border-color: #fff; color: #7f1d1d; font-size: 21px; min-height: 76px; }
.emg-flash .emg-ov-inner { background: #b91c1c; color: #fff; animation: emg-flash 1s infinite; }
@keyframes emg-flash { 0%, 49% { background: #b91c1c; } 50%, 100% { background: #7c2d12; } }
@media (prefers-reduced-motion: reduce) { .emg-flash .emg-ov-inner { animation: none; } }
.emg-ok-k { margin: 0; font-weight: 800; letter-spacing: .5px; } .emg-ok-t { font-size: 42px; margin: 0; } .emg-ok-s { margin: 0 0 4px; font-size: 16px; }
.emg-ok .btn.emg-big { min-height: 66px; }
.emg-in h2 { font-size: 26px; margin: 0; line-height: 1.25; } .emg-in p { font-size: 16px; margin: 0; }
.emg-disc { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--tab-h) + 16px + env(safe-area-inset-bottom)); z-index: 60; display: flex; align-items: center; gap: 10px; background: #111827; color: #fff; border-radius: 10px; padding: 6px 8px 6px 14px; font-size: 14px; border-left: 4px solid var(--accent); box-shadow: 0 6px 20px rgba(0, 0, 0, .35); max-width: calc(100vw - 32px); white-space: nowrap; }
.emg-disc .btn { min-height: 40px; background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }

/* "Você está aqui" */
.emg-here-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.emg-here-k { margin: 14px 0 4px; font-size: 13px; font-weight: 800; letter-spacing: 2px; color: var(--muted); text-align: center; }
.emg-coords { display: flex; flex-direction: column; align-items: center; font-family: ui-monospace, Consolas, monospace; font-size: clamp(26px, 9vw, 40px); font-weight: 800; line-height: 1.15; font-variant-numeric: tabular-nums; }
.emg-acc { text-align: center; margin: 6px 0 10px; font-size: 14px; }
.emg-addr { font-size: 18px; font-weight: 700; text-align: center; margin: 6px 0 2px; overflow-wrap: anywhere; }
.emg-say { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin: 10px 0; } .emg-say p { margin: 6px 0 0; font-size: 15.5px; }
.emg-med-box { border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; margin: 8px 0; } .emg-med-box summary { font-weight: 700; cursor: pointer; }
.emg-med { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; margin: 8px 0 0; font-size: 14px; } .emg-med dt { color: var(--muted); } .emg-med dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.emg-here-btns { margin-top: 10px; }

/* painel do alerta em andamento */
.emg-sheet h3 { margin: 14px 0 6px; }
.emg-line { margin: 10px 0; padding: 10px 12px; border-radius: 10px; background: var(--card); border-left: 4px solid var(--gray); font-size: 14px; }
.emg-line.ok { border-color: var(--green); } .emg-line.warn { border-color: var(--yellow); }
.emg-phone { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.emg-phone .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; overflow-wrap: anywhere; }
.emg-phone .btn { min-height: 48px; padding: 8px 12px; }
.emg-phone .btn.emg-wa { background: #128c4a; border-color: #128c4a; color: #fff; }
.emg-phone .btn.sent::after { content: " ✓"; }
.emg-sheet .btn.block { margin-top: 8px; }
.emg-call192 { margin: 10px 0; }

/* faixa "alerta ativo", botão 🆘 visível e gatilhos discretos */
.emg-pill { position: fixed; left: 12px; right: 12px; bottom: calc(var(--tab-h) + 10px + env(safe-area-inset-bottom)); z-index: 20; min-height: 48px; max-width: 736px; margin: 0 auto; border-radius: 14px; border: 0; font: inherit; font-weight: 800; color: #fff; background: #b91c1c; box-shadow: 0 6px 18px rgba(0, 0, 0, .35); cursor: pointer; padding: 8px 12px; }
.emg-pill.test { background: #1d4ed8; } .emg-pill.checkin { background: #a16207; }
body.emg-pill-on #view { padding-bottom: 84px; }
.emg-fab { position: fixed; right: 14px; bottom: calc(var(--tab-h) + 14px + env(safe-area-inset-bottom)); z-index: 21; width: 58px; height: 58px; border-radius: 50%; border: 3px solid #fff; background: #dc2626; color: #fff; font-size: 26px; box-shadow: 0 6px 18px rgba(0, 0, 0, .4); cursor: pointer; }
body.emg-pill-on .emg-fab { bottom: calc(var(--tab-h) + 70px + env(safe-area-inset-bottom)); }
body.emg-trig-title #title { user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; touch-action: manipulation; }
body.emg-trig-badge #plan-badge { user-select: none; -webkit-user-select: none; touch-action: manipulation; }

/* mapa do alerta (página pública e app de quem protege) */
.emg-vhead { border-radius: var(--radius); padding: 14px; color: #fff; background: #b91c1c; margin-bottom: 8px; }
.emg-vhead.emg-k-teste { background: #1d4ed8; } .emg-vhead.emg-k-checkin { background: #a16207; } .emg-vhead.emg-k-acidente { background: #c2410c; } .emg-vhead.emg-k-assalto { background: #7f1d1d; }
.emg-vtitle { font-size: 20px; font-weight: 800; line-height: 1.25; } .emg-vsub { font-size: 13px; margin-top: 4px; } .emg-vmsg { margin: 8px 0 0; font-size: 15px; overflow-wrap: anywhere; }
.emg-vstatus { margin: 6px 0; }
.emg-map { height: 46vh; min-height: 260px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--card); }
.emg-vcoords { text-align: center; font-family: ui-monospace, Consolas, monospace; font-size: 17px; margin: 8px 0; }
.emg-vbtns { margin: 6px 0; }
.emg-todo ul { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 4px; }
.emg-ended h2 { margin-top: 0; }
body.emg-public { padding-bottom: 0; }
.btn.emg-two { flex-direction: column; gap: 2px; padding-top: 8px; padding-bottom: 8px; text-align: center; }
body.emg-fab-on #view { padding-bottom: 90px; }
/* caixinha antes de ligar para 190/192/193: título, para que serve, onde você está e o botão vermelho */
.emg-cb-modal { max-width: 440px; }
.emg-callbox { display: grid; gap: 10px; }
.emg-cb-t { font-size: 22px; margin: 4px 30px 0 0; line-height: 1.25; }
.emg-cb-d { font-size: 17px; line-height: 1.45; margin: 0; }
.emg-cb-where { font-size: 15px; margin: 0; padding: 8px 10px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); overflow-wrap: anywhere; }
.btn.emg-cb-call { font-size: 20px; min-height: 64px; }
.btn.emg-cb-cancel { min-height: 52px; font-size: 16px; }
.emg-here-call { font-size: 17px; }
.emg-vcalls .btn { min-height: 64px; }

/* ---------- Jornada (sistema de tempo): cartão, cronômetro, resumo, histórico e ajustes ---------- */
.jr-card { border-width: 2px; }
.jr-card.run { border-color: color-mix(in srgb, var(--green) 55%, var(--line)); }
.jr-card.brk, .jr-card.warn { border-color: color-mix(in srgb, var(--yellow) 65%, var(--line)); }
.jr-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.jr-top b { font-size: 15.5px; } .jr-top .grow { flex: 1; text-align: right; }
.jr-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green); flex: none; animation: jr-pulse 2s infinite; }
.jr-card.brk .jr-dot { background: var(--yellow); animation: none; }
@keyframes jr-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--green) 55%, transparent); } 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@media (prefers-reduced-motion: reduce) { .jr-dot { animation: none; } }
.jr-clock { font-size: clamp(34px, 12vw, 46px); font-weight: 800; text-align: center; font-variant-numeric: tabular-nums; letter-spacing: 1px; margin: 6px 0 0; line-height: 1.15; }
.jr-sub { text-align: center; color: var(--muted); font-size: 12.5px; margin: 0 0 8px; }
.jr-sub.over { color: var(--red); font-weight: 700; }
.jr-prog { margin: 6px 0 4px; } .jr-prog.over > div { background: var(--red); }
.jr-chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin: 8px 0 10px; }
.jr-chips > span { background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 6px 9px; font-size: 12px; color: var(--muted); display: flex; flex-direction: column; min-width: 0; }
.jr-chips b { color: var(--text); font-size: 14.5px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.jr-acts { display: grid; grid-template-columns: repeat(auto-fit, minmax(78px, 1fr)); gap: 8px; margin: 8px 0; }
.jr-acts .btn { padding: 10px 4px; font-size: 13.5px; }
.btn.jr-main { min-height: 52px; font-size: 16px; margin-top: 8px; }
.jr-foot { margin-top: 10px; gap: 8px; } .jr-foot > span { flex: 1; min-width: 0; }
.jr-gps { font-size: 12.5px; color: var(--muted); margin: 10px 0 0; }
.jr-gps .btn { margin: 4px 0 0 4px; }
.alert-line.jr-gps { color: var(--text); }
.jr-home-foot { margin: -4px 2px 6px; gap: 8px; } .jr-home-foot > span { flex: 1; min-width: 0; } .jr-home-foot > a { flex: none; }
.jr-home-warn { display: block; color: var(--text); text-decoration: none; }
.jr-link { text-decoration: none; color: inherit; gap: 10px; flex-wrap: nowrap; } .jr-link > span:first-child { flex: 1; min-width: 0; }
.jr-nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 6px 0 10px; }
.jr-nav b { flex: 1; text-align: center; font-size: 15px; } .jr-nav .btn { min-width: 44px; min-height: 40px; font-size: 20px; }
.jr-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 8px; }
.jr-stats .stat { padding: 10px; min-width: 0; } .jr-stats .stat .v { font-size: 18px; overflow-wrap: anywhere; }
@media (min-width: 640px) { .jr-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.jr-list li { cursor: pointer; } .jr-list li:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.jr-right { flex: none; display: flex; flex-direction: column; align-items: flex-end; text-align: right; font-variant-numeric: tabular-nums; }
.jr-row { padding: 7px 0; border-bottom: 1px solid var(--line); flex-wrap: nowrap; } .jr-row b { text-align: right; }
.jr-notice { padding-left: 18px; margin: 8px 0 14px; } .jr-notice li { margin-bottom: 8px; }
/* editor: pausas (tipo, hora, minutos) e tempos rodando e parado */
.jr-fs { border: 0; padding: 0; margin: 12px 0 0; min-width: 0; }
.jr-bhead, .jr-brow { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, .8fr) 36px; gap: 6px; align-items: center; }
.jr-bhead { margin-top: 6px; } .jr-brow { margin-top: 6px; }
.jr-brow input, .jr-brow select { padding: 8px 6px; min-height: 42px; font-size: 14px; }
.jr-brow .btn { padding: 0; min-width: 36px; }
.jr-hm { display: grid; grid-template-columns: auto minmax(0, 1fr) auto minmax(0, 1fr) auto; gap: 6px 6px; align-items: center; margin-top: 6px; }
.jr-hm label { margin: 0; } .jr-hm span { font-size: 12.5px; color: var(--muted); }
.jr-hm input { padding: 8px 6px; min-height: 42px; text-align: center; }
.jr-hm .jr-km { grid-column: 2 / 4; } .jr-hm .jr-kmu { grid-column: 4 / 6; }
.jr-hint { margin: 6px 0 2px; color: var(--muted); } .jr-hint .btn { margin-left: 4px; }
/* ajustes: quadros com interruptor, no estilo das metas */
.jr-tile.locked { opacity: .4; }
.jr-subtile { margin-left: 14px; }
.jr-tile .gt-val + .gt-val { margin-top: 6px; }
.jr-tile .gt-val input { width: 64px; }
.jr-tile .gt-unit { min-width: 52px; }
.jr-tnote { margin: 8px 0 4px; }
.jr-tile .row .btn { flex: 1 1 auto; }
@media (min-width: 640px) { .jr-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 359px) { .jr-tile .gt-val { flex-wrap: wrap; } .jr-tile .gt-val .gt-kind { flex-basis: 100%; } .jr-subtile { margin-left: 8px; } }
