/* BioSphere · Início — camadas interativas (painéis, modais, pop-ups, toasts, copiloto) */

/* ---------- Gatilhos na página ---------- */
[data-open], [data-act] { cursor: pointer; }
.kpi--btn { text-align: left; border-radius: 22px; padding: 10px 12px; margin: -10px -12px; transition: background .3s; }
.kpi--btn:hover { background: rgba(255, 255, 255, .55); }
.strip__pill { cursor: pointer; transition: transform .4s var(--ease); }
.strip__pill:hover { transform: translateY(-2px); }
.tile { text-align: left; transition: background .3s; }
.tile:hover { background: rgba(255, 255, 255, .26); }
.trl-chip { cursor: pointer; }
.q-item { width: 100%; text-align: left; }
button.ev-row { width: calc(100% + 12px); text-align: left; border-radius: 12px; padding: 4px 6px; margin: -4px -6px; transition: background .25s; }
button.ev-row:hover { background: var(--n-50); }
button.month { transition: background .25s, transform .3s var(--ease); }
button.month:hover { background: rgba(255, 255, 255, .24); transform: translateY(-2px); }
.fcol .fdot { width: 12px; height: 12px; border-radius: 50%; background: var(--ink); transition: transform .25s var(--ease); }
.fcol .fdot:hover { transform: scale(1.35); }
.fcol .fdot.focus { background: var(--p-500); box-shadow: 0 0 0 4px var(--p-100); }
.rdot { cursor: pointer; }
.radar__callout { cursor: pointer; text-align: left; }
.diverge { width: 100%; text-align: left; }
.src { cursor: pointer; transition: background .2s; }
.src:hover { background: var(--n-100); }
.c-sim .go { margin-left: auto; }
.brief__foot .btn.is-playing { background: var(--accent); color: var(--ink); }
.c-brief p.reading { color: var(--ink); }
.c-brief p { transition: color .4s; }
.q-empty { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 26px 0; color: var(--muted); font-size: 13px; text-align: center; }

/* ---------- Base das camadas ---------- */
.layer-backdrop { position: fixed; inset: 0; background: rgba(21, 21, 21, .28); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); animation: lfade .3s ease; }
@keyframes lfade { from { opacity: 0; } }
@keyframes lslide { from { transform: translateX(104%); } }
@keyframes lpop { from { opacity: 0; transform: translateY(8px) scale(.98); } }
@keyframes lup { from { transform: translateY(100%); } }

/* ---------- Painel lateral (drawer) ---------- */
.drawer-wrap { position: fixed; inset: 0; z-index: 60; }
.drawer {
  position: absolute; top: 12px; right: 12px; bottom: 12px; width: min(560px, calc(100vw - 24px));
  display: flex; flex-direction: column; overflow: hidden; outline: none;
  background: var(--surface); border-radius: 36px; box-shadow: 0 40px 90px -30px rgba(21, 21, 21, .5);
  animation: lslide .55s var(--ease);
}
.drawer--narrow { width: min(460px, calc(100vw - 24px)); }
.dw__head { position: relative; isolation: isolate; display: flex; align-items: flex-start; gap: 14px; padding: 24px 24px 20px; flex-wrap: wrap; }
.dw__ttl { flex: 1; min-width: 0; }
.dw__ttl small { display: block; font-size: 12px; opacity: .7; margin-bottom: 4px; }
.dw__ttl h2 { font-weight: 400; font-size: 24px; line-height: 1.12; letter-spacing: -.025em; }
.dw__ttl p { font-size: 13px; opacity: .72; margin-top: 6px; }
.dw__close { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; flex: none; transition: transform .4s var(--ease); }
.dw__close:hover { transform: rotate(90deg); }
.dw__extra { flex-basis: 100%; }
.dw__tabs { padding: 0 24px 4px; }
.dw__tabs .seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.dw__tabs .seg button { white-space: nowrap; }
.dw__body { flex: 1; overflow-y: auto; padding: 16px 24px 28px; overscroll-behavior: contain; }
.dw__foot { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 16px 16px; border-top: 1px solid var(--line); background: rgba(255, 255, 255, .7); }
.dw__foot .btn { flex: 1 1 auto; justify-content: center; }
.dw__metric { display: flex; align-items: flex-end; gap: 14px; margin-top: 16px; }
.dw__metric span:last-child { font-size: 13px; opacity: .8; padding-bottom: 4px; }

/* temas do cabeçalho: repetem o material do card de origem */
.theme-mesh .dw__head, .theme-image .dw__head, .theme-terra .dw__head, .theme-ink .dw__head { color: #fff; }
.theme-mesh .dw__head::before, .theme-image .dw__head::before, .theme-terra .dw__head::before, .theme-ink .dw__head::before { content: ""; position: absolute; inset: 0; z-index: -1; }
.theme-mesh .dw__head::before {
  background:
    radial-gradient(40% 70% at 85% 10%, rgba(255, 179, 92, .9), transparent 70%),
    radial-gradient(50% 80% at 10% 20%, rgba(182, 124, 255, .95), transparent 70%),
    radial-gradient(60% 90% at 60% 100%, #770ccd, transparent 75%), #6b20b8;
}
.theme-image .dw__head::before { background: linear-gradient(180deg, rgba(20, 10, 40, .55), rgba(20, 10, 40, .35)), url(img/cell.jpg) 55% 45% / 180% auto; }
.theme-terra .dw__head::before { background: linear-gradient(135deg, #c77a45 0%, #a4604f 40%, #7b4a86 75%, #5b2d8c 100%); }
.theme-ink .dw__head::before { background: linear-gradient(180deg, rgba(21, 21, 21, .86), rgba(21, 21, 21, .94)), url(img/micro.jpg) center / cover; }
.theme-mesh .dw__close, .theme-image .dw__close, .theme-terra .dw__close, .theme-ink .dw__close { background: rgba(255, 255, 255, .18); backdrop-filter: blur(10px); }
.dw__head .card__icon { background: #fff; }
.theme-mesh .dw__head .card__icon, .theme-image .dw__head .card__icon, .theme-terra .dw__head .card__icon, .theme-ink .dw__head .card__icon { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .25); }

/* ---------- Blocos de conteúdo ---------- */
.sec { font-size: 12px; color: var(--faint); margin: 22px 0 10px; display: flex; align-items: center; gap: 8px; }
.sec:first-child { margin-top: 4px; }
.sec b { font-weight: 400; color: var(--ink); font-size: 14px; }
.sec .grow { flex: 1; }
.rows { display: flex; flex-direction: column; gap: 8px; }
.row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border-radius: 20px; background: #fff; text-align: left; transition: background .25s, opacity .3s; }
button.row:hover, .row[data-open]:hover, .row[data-act]:hover { background: var(--n-50); }
.row__ico { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--n-50); flex: none; position: relative; }
.row__main { flex: 1; min-width: 0; }
.row__main b { display: block; font-weight: 400; font-size: 14px; line-height: 1.35; }
.row__main small { display: block; font-size: 12px; color: var(--faint); margin-top: 2px; }
.row__side { flex: none; font: 400 12px var(--font-mono); color: var(--muted); text-align: right; }
.row__acts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.row--col { flex-direction: column; align-items: stretch; }
.row--dim { opacity: .45; }
.row .more { display: none; font-size: 13px; color: var(--n-700); line-height: 1.5; margin-top: 8px; }
.row.is-open .more { display: block; }
.mini { height: 32px; padding: 0 12px; border-radius: 999px; font-size: 12px; background: var(--n-100); display: inline-flex; align-items: center; gap: 6px; }
.mini--ink { background: var(--ink); color: #fff; }
.mini--accent { background: var(--accent); }
.mini--ghost { background: transparent; color: var(--muted); }
.mini[disabled], .btn[disabled] { opacity: .4; pointer-events: none; }
.kv { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.kv > div { background: #fff; border-radius: 18px; padding: 12px 14px; min-width: 0; }
.kv small { display: block; font-size: 11px; color: var(--faint); margin-bottom: 3px; }
.kv b { font-weight: 400; font-size: 14.5px; }
.kv--3 { grid-template-columns: repeat(3, 1fr); }
.box { border-radius: 20px; padding: 14px 16px; font-size: 13px; line-height: 1.5; background: #fff; }
.box--warn { background: var(--o-50); color: #7a4300; display: flex; gap: 10px; align-items: flex-start; }
.box--warn svg.tri { width: 22px; height: 20px; flex: none; margin-top: 1px; }
.box--mint { background: var(--m-50); color: #17602f; }
.box--p { background: var(--p-50); color: var(--p-700); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { height: 32px; padding: 0 14px; border-radius: 999px; font-size: 12.5px; background: #fff; border: 1px solid var(--line); color: var(--muted); }
.chip.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
.lad { display: inline-flex; gap: 4px; }
.lad i { width: 9px; height: 9px; border-radius: 50%; border: 1.2px solid var(--n-300); }
.lad i.on { background: var(--ink); border-color: var(--ink); }
.lad i.prop { border-color: var(--p-500); box-shadow: 0 0 0 3px var(--p-100); }
.bar100 { display: flex; height: 12px; border-radius: 999px; overflow: hidden; gap: 2px; }
.bar100 i { display: block; height: 100%; }
.hbar { height: 8px; border-radius: 999px; background: var(--n-100); overflow: hidden; margin-top: 6px; }
.hbar i { display: block; height: 100%; border-radius: 999px; background: var(--ink); }
.big-n { font: 400 28px/1 var(--font-mono); letter-spacing: -.03em; }
.rel { font: 500 18px/1 var(--font-mono); width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--n-50); }
.rel.hot { background: var(--accent); }
.ct-interp { background: #e7ebff; color: #2a3aa8; }
.ct-prev { background: var(--p-50); color: var(--p-500); }
.mk--part { background: linear-gradient(90deg, var(--accent) 50%, var(--n-100) 50%); color: var(--ink); }
.mk--miss { background: var(--o-100); color: var(--o-600); }
.mk--ink { background: var(--ink); color: #fff; }
.tl { position: relative; padding-left: 22px; }
.tl::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 1px; background: var(--n-200); }
.tl__it { position: relative; padding: 0 0 18px; }
.tl__it::before { content: ""; position: absolute; left: -20px; top: 5px; width: 9px; height: 9px; border-radius: 50%; background: var(--n-400); box-shadow: 0 0 0 4px var(--surface); }
.tl__it[data-k="decisao"]::before { background: var(--m-600); }
.tl__it[data-k="lacuna"]::before { background: var(--alert); }
.tl__it[data-k="hip"]::before { background: var(--p-500); }
.tl__it small { font: 400 11px var(--font-mono); color: var(--faint); }
.tl__it p { font-size: 14px; margin-top: 2px; }
.avatars { display: flex; }
.avatars span { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 500; color: #fff; margin-left: -8px; box-shadow: 0 0 0 3px var(--surface); background: linear-gradient(135deg, var(--p-400), var(--o-400)); }
.avatars span:first-child { margin-left: 0; }
.avatars span:nth-child(2n) { background: linear-gradient(135deg, #22a84c, #9ff4b3); color: var(--ink); }
.avatars span:nth-child(3n) { background: linear-gradient(135deg, #363b44, #8e939d); }
.matrix { width: 100%; border-collapse: separate; border-spacing: 4px; font-size: 12px; }
.matrix th { font-weight: 400; color: var(--faint); font-size: 10.5px; padding: 0 2px 4px; text-align: center; }
.matrix th:first-child { text-align: left; }
.matrix td { background: #fff; border-radius: 12px; padding: 8px; text-align: center; }
.matrix td:first-child { text-align: left; font-size: 12.5px; line-height: 1.35; color: var(--n-700); min-width: 150px; }
.cell { width: 24px; height: 24px; border-radius: 50%; display: inline-grid; place-items: center; font: 500 11px var(--font-mono); }
.cell--c { background: var(--accent); color: var(--ink); }
.cell--d { background: var(--alert); color: #fff; }
.cell--n { background: var(--n-100); color: var(--faint); }
.table-wrap { overflow-x: auto; margin: 0 -4px; }
.log { font: 400 11.5px/1.7 var(--font-mono); color: var(--muted); background: #fff; border-radius: 18px; padding: 12px 14px; }
.log b { font-weight: 400; color: var(--ink); }
.orb-sm { width: 30px; height: 30px; }
.player { display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; border-radius: 999px; background: #fff; }
.player .track { flex: 1; height: 3px; border-radius: 3px; background: var(--n-200); position: relative; }
.player .track i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px; background: var(--ink); width: 0; }
.player .t { font: 400 11px var(--font-mono); color: var(--muted); }
.search { height: 44px; width: 100%; border-radius: 999px; border: 1px solid var(--line); background: #fff; padding: 0 16px 0 42px; font: inherit; font-size: 14px; color: var(--ink); outline: none; }
.search:focus { border-color: var(--p-300); box-shadow: 0 0 0 4px var(--p-50); }
.search-wrap { position: relative; }
.search-wrap svg { position: absolute; left: 14px; top: 13px; color: var(--faint); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field > span { font-size: 12px; color: var(--muted); }
.field textarea, .field select, .field input[type="text"] {
  font: inherit; font-size: 14px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 18px;
  padding: 12px 14px; outline: none; resize: vertical;
}
.field textarea:focus, .field select:focus, .field input:focus { border-color: var(--p-300); box-shadow: 0 0 0 4px var(--p-50); }
.field .hint2 { font-size: 11px; color: var(--faint); }
.radio-list { display: flex; flex-direction: column; gap: 6px; }
.radio-list label, .check { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 18px; background: #fff; font-size: 13.5px; cursor: pointer; border: 1px solid transparent; }
.radio-list label:has(input:checked) { border-color: var(--ink); }
.radio-list input, .check input { accent-color: var(--p-500); margin-top: 2px; }
.radio-list small { display: block; color: var(--faint); font-size: 12px; margin-top: 2px; }
.range { width: 100%; accent-color: var(--p-500); }
.switch { position: relative; width: 40px; height: 24px; border-radius: 999px; background: var(--n-200); flex: none; transition: background .25s; }
.switch::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .3s var(--ease); box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.switch.is-on { background: var(--ink); }
.switch.is-on::after { transform: translateX(16px); }
.progress { height: 6px; border-radius: 999px; background: var(--n-100); overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; background: var(--p-500); border-radius: 999px; transition: width .3s linear; }
.empty { padding: 30px 10px; text-align: center; color: var(--muted); font-size: 13px; }

/* ---------- Modal ---------- */
.modal-wrap { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 16px; }
.modal {
  position: relative; width: min(560px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; outline: none;
  background: var(--surface); border-radius: 32px; padding: 24px; box-shadow: 0 40px 90px -30px rgba(21, 21, 21, .5);
  animation: lpop .35s var(--ease);
}
.modal--wide { width: min(680px, 100%); }
.modal__head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
.modal__head h2 { font-weight: 400; font-size: 22px; letter-spacing: -.02em; line-height: 1.15; flex: 1; }
.modal__head p { font-size: 13px; color: var(--muted); margin-top: 4px; }
.modal__head .dw__close { width: 40px; height: 40px; }
.modal__foot { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; margin-top: 18px; }
.sig { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 20px; background: var(--m-50); }
.sig b { font-weight: 500; }

/* paleta de comandos */
.palette { align-self: start; margin-top: 10vh; padding: 12px; width: min(640px, 100%); }
.palette .search { height: 52px; font-size: 16px; }
.palette .search-wrap svg { top: 17px; }
.pal__list { margin-top: 10px; max-height: 52vh; overflow-y: auto; }
.pal__grp { font-size: 11px; color: var(--faint); padding: 10px 12px 6px; }
.pal__it { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border-radius: 16px; text-align: left; font-size: 14px; }
.pal__it small { margin-left: auto; font: 400 11px var(--font-mono); color: var(--faint); }
.pal__it.is-sel { background: var(--ink); color: #fff; }
.pal__it.is-sel small { color: var(--n-400); }
.pal__foot { display: flex; gap: 14px; padding: 10px 12px 2px; font-size: 11px; color: var(--faint); border-top: 1px solid var(--line); margin-top: 8px; }

/* ---------- Pop-up ancorado ---------- */
.pop {
  position: fixed; z-index: 80; width: 340px; max-width: calc(100vw - 24px); max-height: min(560px, calc(100vh - 24px)); overflow-y: auto;
  background: var(--surface); border-radius: 26px; padding: 14px; box-shadow: 0 30px 70px -24px rgba(21, 21, 21, .45), 0 0 0 1px var(--line);
  animation: lpop .25s var(--ease); outline: none;
}
.pop--wide { width: 400px; }
.pop__head { display: flex; align-items: center; gap: 10px; padding: 4px 4px 12px; }
.pop__head b { font-weight: 400; font-size: 16px; flex: 1; }
.pop__head small { display: block; font-size: 11.5px; color: var(--faint); }
.pop .row { padding: 10px 12px; border-radius: 16px; }
.menu-it { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border-radius: 16px; font-size: 14px; text-align: left; }
.menu-it:hover { background: #fff; }
.menu-it .grow { flex: 1; }
.menu-it small { color: var(--faint); font-size: 12px; }
.menu-it.is-on { background: #fff; }
.menu-it.is-on::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--m-100); }
.hr { height: 1px; background: var(--line); margin: 8px 4px; }
.unread { width: 8px; height: 8px; border-radius: 50%; background: var(--p-500); flex: none; }
.quote { border-left: 2px solid var(--p-300); padding: 4px 0 4px 12px; font-size: 13.5px; line-height: 1.5; color: var(--n-700); margin: 10px 0; }
.chain { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 11px; }
.chain span { padding: 4px 8px; border-radius: 999px; background: var(--n-100); color: var(--faint); }
.chain span.on { background: var(--ink); color: #fff; }
.chain i { color: var(--n-300); font-style: normal; }

/* ---------- Toast e tooltip ---------- */
.toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 90; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; width: max-content; max-width: calc(100vw - 24px); }
.toast {
  pointer-events: auto; display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 16px; min-height: 48px; border-radius: 999px;
  background: var(--ink); color: #fff; font-size: 13.5px; box-shadow: 0 20px 40px -16px rgba(21, 21, 21, .6); animation: lpop .35s var(--ease);
}
.toast .ok { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--ink); flex: none; margin-left: -8px; }
.toast button { height: 32px; padding: 0 14px; border-radius: 999px; background: rgba(255, 255, 255, .12); font-size: 12.5px; }
.toast.out { opacity: 0; transform: translateY(8px); transition: .3s; }
.tip { position: fixed; z-index: 95; pointer-events: none; max-width: 260px; padding: 8px 12px; border-radius: 14px; background: var(--ink); color: #fff; font-size: 12px; line-height: 1.4; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .5); }
.tip small { display: block; color: var(--n-400); font: 400 10.5px var(--font-mono); margin-bottom: 2px; }

/* ---------- Copiloto ---------- */
.cp .dw__body { display: flex; flex-direction: column; gap: 12px; padding-bottom: 12px; }
.cp__ctx { display: flex; flex-wrap: wrap; gap: 6px; }
.cp__msgs { display: flex; flex-direction: column; gap: 12px; }
.msg { max-width: 92%; border-radius: 22px; padding: 12px 14px; font-size: 14px; line-height: 1.5; background: #fff; animation: lpop .3s var(--ease); }
.msg--me { align-self: flex-end; background: var(--ink); color: #fff; border-bottom-right-radius: 8px; }
.msg--ai { border-bottom-left-radius: 8px; }
.msg__who { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--faint); margin-bottom: 6px; }
.msg__who .orb { width: 18px; height: 18px; }
.msg__who .orb::after { display: none; }
.msg__src { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 8px; }
.msg .row__acts { margin-top: 10px; }
.msg--sys { align-self: center; background: transparent; color: var(--faint); font-size: 12px; padding: 0 8px; text-align: center; }
.typing { display: inline-flex; gap: 4px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--n-300); animation: tdot 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes tdot { 50% { transform: translateY(-4px); background: var(--p-400); } }
.cp__sugg { display: flex; flex-wrap: wrap; gap: 6px; }
.cp__sugg .chip { height: auto; min-height: 32px; padding: 7px 12px; text-align: left; line-height: 1.3; }
.cp__bar { padding: 12px 14px 14px; border-top: 1px solid var(--line); background: rgba(255, 255, 255, .8); }
.cp__input { display: flex; align-items: flex-end; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 26px; padding: 6px 6px 6px 16px; }
.cp__input textarea { flex: 1; border: 0; outline: none; resize: none; font: inherit; font-size: 14px; line-height: 1.4; padding: 8px 0; max-height: 120px; background: transparent; color: var(--ink); }
.cp__mic, .cp__send { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--n-100); }
.cp__send { background: var(--ink); color: #fff; }
.cp__mic.is-on { background: var(--alert); color: #fff; box-shadow: 0 0 0 6px rgba(245, 102, 27, .18); animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 10px rgba(245, 102, 27, .08); } }
.cp__note { font-size: 11px; color: var(--faint); margin-top: 8px; display: flex; gap: 6px; align-items: center; }
.listen { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); padding: 8px 4px; }
.listen .wave { color: var(--alert); }
.draft { border: 1px dashed var(--p-300); background: var(--p-50); }
.draft .kv > div { background: #fff; }
.rec { display: inline-flex; align-items: center; gap: 8px; font: 400 12px var(--font-mono); color: var(--alert); }
.rec::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--alert); animation: pulse2 1s infinite; }
@keyframes pulse2 { 50% { opacity: .3; } }

/* ---------- Mobile: tudo vira folha inferior ---------- */
@media (max-width: 900px) {
  .drawer { top: max(28px, env(safe-area-inset-top)); left: 0; right: 0; bottom: 0; width: auto; border-radius: 30px 30px 0 0; animation: lup .5s var(--ease); }
  .drawer .dw__foot { padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
  .dw__head { padding: 20px 18px 16px; }
  .dw__body { padding: 14px 16px 24px; }
  .dw__tabs { padding: 0 16px 4px; }
  .modal-wrap { place-items: end stretch; padding: 0; }
  .modal { width: 100%; max-height: 92vh; border-radius: 30px 30px 0 0; padding: 20px 16px calc(20px + env(safe-area-inset-bottom)); animation: lup .45s var(--ease); }
  .palette { margin-top: 0; align-self: end; }
  .pop { left: 8px !important; right: 8px; top: auto !important; bottom: calc(8px + env(safe-area-inset-bottom)) !important; width: auto; max-height: 80vh; border-radius: 28px; animation: lup .35s var(--ease); }
  .toasts { bottom: calc(96px + env(safe-area-inset-bottom)); }
  .kv--3 { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .drawer, .modal, .pop, .toast, .msg, .layer-backdrop { animation: none; }
}

/* ---------- Briefing lido em voz alta ---------- */
#briefLines.is-reading p { color: var(--n-400); }
#briefLines.is-reading p.reading { color: var(--ink); }
.q-list li { list-style: none; }
.c-queue .count { background: none; padding: 0; }
.radar__callout[hidden] { display: none; }
