@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(../fonts/inter-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(../fonts/inter-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --navy: #0f1b2e; --navy2: #16263f; --navy3: #1d3150; --navy4: #284268;
  --menta: #97ccb4; --menta2: #b9e2cf; --ciano: #5fd4f4; --ouro: #f2c96b; --verm: #ff6b5a; --verde: #3ddc8a;
  --txt: #e8f1ee; --txt2: #9fb3c8; --txt3: #6f86a0;
  --borda: rgba(151, 204, 180, .16); --vidro: rgba(22, 38, 63, .72);
  --raio: 18px; --sombra: 0 18px 50px rgba(3, 8, 18, .45);
  --fs: clamp(14px, .55vw + 10px, 22px);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Arial, sans-serif; font-size: var(--fs); color: var(--txt);
  background: radial-gradient(1200px 700px at 85% -10%, rgba(95, 212, 244, .13), transparent 60%), radial-gradient(900px 600px at -10% 110%, rgba(151, 204, 180, .12), transparent 60%), var(--navy);
  -webkit-font-smoothing: antialiased; overscroll-behavior: none;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--menta); }
[hidden] { display: none !important; }
.ic { width: 1.25em; height: 1.25em; flex: none; }

/* ---------- Shell ---------- */
#app { min-height: 100%; }
.tela { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.topo {
  display: flex; align-items: center; gap: 14px; padding: 14px clamp(16px, 3vw, 40px); padding-top: max(14px, env(safe-area-inset-top));
  position: sticky; top: 0; z-index: 20; background: linear-gradient(180deg, rgba(15, 27, 46, .95), rgba(15, 27, 46, .75)); backdrop-filter: blur(14px); border-bottom: 1px solid var(--borda);
}
.marca { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.selo {
  width: 46px; height: 46px; border-radius: 13px; border: 2px solid var(--menta); display: grid; place-items: center;
  font-weight: 900; color: var(--menta); letter-spacing: .5px; font-size: 15px; background: rgba(151, 204, 180, .06); box-shadow: inset 0 0 18px rgba(151, 204, 180, .12);
}
.selo.grande { width: 92px; height: 92px; border-radius: 26px; font-size: 30px; border-width: 3px; }
.marca-txt strong { display: block; font-size: 1.05em; letter-spacing: .2px; }
.marca-txt small { display: block; font-size: .62em; letter-spacing: 2.4px; color: var(--menta); font-weight: 700; white-space: nowrap; }
.topo .esp { flex: 1; }
.chip-user { display: flex; align-items: center; gap: 10px; padding: 6px 8px 6px 14px; border-radius: 999px; border: 1px solid var(--borda); background: rgba(255, 255, 255, .03); font-size: .85em; }
.chip-user b { font-weight: 700; }
.chip-user small { color: var(--txt2); display: block; font-size: .78em; }
.btn-sair { width: 40px; height: 40px; border-radius: 50%; border: 0; background: #d8392b; color: #fff; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(216, 57, 43, .35); }
.btn-sair:hover { filter: brightness(1.1); }
.conteudo { flex: 1; width: 100%; max-width: 1280px; margin: 0 auto; padding: clamp(18px, 3vw, 40px); padding-bottom: max(40px, env(safe-area-inset-bottom)); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 0; border-radius: 999px; padding: .78em 1.4em;
  font-weight: 700; letter-spacing: .2px; transition: transform .15s, box-shadow .2s, filter .2s; text-decoration: none; min-height: 46px;
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .55; pointer-events: none; }
.btn-pri { background: linear-gradient(135deg, var(--menta), var(--ciano)); color: #062019; box-shadow: 0 10px 28px rgba(95, 212, 244, .25); }
.btn-pri:hover { filter: brightness(1.06); box-shadow: 0 14px 34px rgba(95, 212, 244, .35); }
.btn-sec { background: rgba(255, 255, 255, .06); color: var(--txt); border: 1px solid var(--borda); }
.btn-sec:hover { background: rgba(255, 255, 255, .1); }
.btn-perigo { background: rgba(255, 107, 90, .14); color: #ffb3a8; border: 1px solid rgba(255, 107, 90, .35); }
.btn-ouro { background: linear-gradient(135deg, #f7dc93, var(--ouro)); color: #3a2900; }
.btn-peq { min-height: 36px; padding: .45em 1em; font-size: .86em; }

.campo { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.campo label { font-size: .8em; font-weight: 700; color: var(--txt2); letter-spacing: .4px; text-transform: uppercase; }
.campo input, .campo select, .campo textarea {
  width: 100%; border-radius: 999px; border: 1.5px solid rgba(151, 204, 180, .22); background: rgba(5, 12, 24, .45); padding: .85em 1.25em; outline: none; transition: border .2s, box-shadow .2s; min-height: 50px;
}
.campo textarea { border-radius: 18px; min-height: 90px; resize: vertical; }
.campo select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--menta) 50%), linear-gradient(135deg, var(--menta) 50%, transparent 50%); background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%; background-size: 6px 6px; background-repeat: no-repeat; }
.campo select option { background: var(--navy2); }
.campo input:focus, .campo select:focus, .campo textarea:focus { border-color: var(--menta); box-shadow: 0 0 0 4px rgba(151, 204, 180, .14); }
.campo .ajuda { font-size: .78em; color: var(--txt3); }
.campo-codigo input { text-align: center; font-size: 1.6em; letter-spacing: .5em; font-weight: 800; padding-left: 1.6em; }
.linha { display: flex; gap: 14px; flex-wrap: wrap; }
.linha > * { flex: 1 1 200px; }
.erro-msg { color: #ffb3a8; font-size: .86em; min-height: 1.2em; margin: 4px 0 10px; }

.cartao { background: var(--vidro); border: 1px solid var(--borda); border-radius: var(--raio); padding: clamp(18px, 2.2vw, 30px); box-shadow: var(--sombra); backdrop-filter: blur(12px); }
.titulo-sec { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin: 6px 0 20px; flex-wrap: wrap; }
.titulo-sec h1, .titulo-sec h2 { margin: 0; font-size: clamp(1.35em, 2vw, 1.9em); letter-spacing: -.4px; }
.titulo-sec p { margin: 6px 0 0; color: var(--txt2); }
.vazio { text-align: center; padding: 50px 20px; color: var(--txt2); }
.vazio .ic { width: 52px; height: 52px; color: var(--menta); opacity: .6; margin-bottom: 10px; }

/* ---------- Entrada ---------- */
.entrada { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px; position: relative; overflow: hidden; }
.entrada-fundo { position: absolute; inset: 0; pointer-events: none; opacity: .55; }
.entrada-fundo path { fill: none; stroke: var(--menta); stroke-width: 2; stroke-opacity: .25; stroke-dasharray: 6 18; animation: fluxo 3s linear infinite; }
.entrada-fundo path.c2 { stroke: var(--ciano); animation-duration: 4.2s; }
.entrada-fundo circle { fill: var(--menta); opacity: .5; }
@keyframes fluxo { to { stroke-dashoffset: -96; } }
.entrada-box { position: relative; width: min(980px, 100%); text-align: center; animation: subir .7s cubic-bezier(.2, .8, .2, 1) both; }
.entrada-box h1 { font-size: clamp(2em, 4.6vw, 3.6em); margin: 18px 0 6px; letter-spacing: -1.2px; line-height: 1.05; }
.entrada-box h1 span { background: linear-gradient(90deg, var(--menta), var(--ciano)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.entrada-box .sub { color: var(--txt2); font-size: 1.05em; margin: 0 auto 34px; max-width: 640px; }
.portas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.porta {
  position: relative; text-align: left; text-decoration: none; color: inherit; display: block; border: 1px solid var(--borda); border-radius: 26px; padding: 28px; background: linear-gradient(160deg, rgba(29, 49, 80, .9), rgba(15, 27, 46, .9));
  box-shadow: var(--sombra); transition: transform .25s, border-color .25s, box-shadow .25s; overflow: hidden; min-height: 210px;
}
.porta:hover { transform: translateY(-6px); border-color: rgba(151, 204, 180, .5); box-shadow: 0 26px 60px rgba(3, 8, 18, .55), 0 0 0 1px rgba(151, 204, 180, .2); }
.porta .porta-ic { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: rgba(151, 204, 180, .12); color: var(--menta); margin-bottom: 18px; }
.porta .porta-ic .ic { width: 34px; height: 34px; }
.porta.prof .porta-ic { background: rgba(242, 201, 107, .12); color: var(--ouro); }
.porta h2 { margin: 0 0 6px; font-size: 1.4em; }
.porta p { margin: 0; color: var(--txt2); }
.porta .seta { position: absolute; right: 24px; bottom: 24px; color: var(--menta); transition: transform .25s; }
.porta:hover .seta { transform: translateX(6px); }
.porta::after { content: ''; position: absolute; width: 240px; height: 240px; right: -90px; top: -90px; border-radius: 50%; background: radial-gradient(circle, rgba(151, 204, 180, .18), transparent 70%); }
.rodape { margin-top: 34px; color: var(--txt3); font-size: .8em; }
.rodape b { color: var(--menta); }
.form-entrada { width: min(470px, 100%); margin: 0 auto; text-align: left; }
.form-entrada .cartao { padding: 30px; }
.form-entrada h2 { margin: 0 0 6px; }
.form-entrada .sub2 { color: var(--txt2); margin: 0 0 22px; font-size: .92em; }
.voltar-link { text-decoration: none; display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; color: var(--txt2); margin-bottom: 14px; padding: 6px 0; }
.voltar-link:hover { color: var(--menta); }
@keyframes subir { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* ---------- Aluno: atividades ---------- */
.grade-ativ { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 20px; }
.ativ {
  position: relative; border-radius: 24px; padding: 22px; border: 1px solid var(--borda); background: linear-gradient(165deg, rgba(29, 49, 80, .95), rgba(15, 27, 46, .95));
  box-shadow: var(--sombra); display: flex; flex-direction: column; gap: 14px; overflow: hidden; animation: subir .5s both; transition: transform .2s, border-color .2s;
}
.ativ:hover { transform: translateY(-4px); border-color: rgba(151, 204, 180, .4); }
.ativ-diag { height: 120px; border-radius: 16px; background: rgba(5, 12, 24, .5); border: 1px solid rgba(151, 204, 180, .1); display: grid; place-items: center; overflow: hidden; }
.ativ-diag svg { width: 100%; height: 100%; }
.ativ h3 { margin: 0; font-size: 1.15em; }
.ativ p { margin: 0; color: var(--txt2); font-size: .9em; }
.ativ-rodape { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; flex-wrap: wrap; }
.status { white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-size: .78em; font-weight: 800; letter-spacing: .3px; }
.st-nova { background: rgba(95, 212, 244, .12); color: var(--ciano); }
.st-andamento { background: rgba(242, 201, 107, .14); color: var(--ouro); }
.st-concluida { background: rgba(61, 220, 138, .14); color: var(--verde); }
.st-fechada { background: rgba(159, 179, 200, .12); color: var(--txt2); }
.ativ-nota { font-size: 1.6em; font-weight: 900; color: var(--menta); }
.ativ-nota small { font-size: .45em; color: var(--txt2); font-weight: 600; }

/* ---------- Professor ---------- */
.prof-nav { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.prof-nav button { border: 1px solid var(--borda); background: rgba(255, 255, 255, .03); padding: .6em 1.15em; border-radius: 999px; color: var(--txt2); font-weight: 700; }
.prof-nav button.ativo { background: rgba(151, 204, 180, .15); color: var(--menta); border-color: rgba(151, 204, 180, .4); }
.lista-turmas { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 18px; }
.turma { cursor: pointer; transition: transform .2s, border-color .2s; }
.turma:hover { transform: translateY(-3px); border-color: rgba(151, 204, 180, .45); }
.turma h3 { margin: 0 0 4px; }
.codigo-turma { display: inline-flex; align-items: center; gap: 8px; font-weight: 900; letter-spacing: .35em; font-size: 1.35em; color: var(--ouro); padding: 6px 14px; border-radius: 12px; background: rgba(242, 201, 107, .08); border: 1px dashed rgba(242, 201, 107, .4); }
.mini-stats { display: flex; gap: 18px; margin-top: 14px; color: var(--txt2); font-size: .85em; }
.mini-stats b { display: block; color: var(--txt); font-size: 1.4em; }
.tabela-wrap { overflow-x: auto; border-radius: 16px; border: 1px solid var(--borda); }
table.tab { width: 100%; border-collapse: collapse; font-size: .9em; min-width: 640px; }
.tab th { text-align: left; font-size: .75em; letter-spacing: .6px; text-transform: uppercase; color: var(--txt2); padding: 12px 14px; background: rgba(5, 12, 24, .35); position: sticky; top: 0; }
.tab td { padding: 12px 14px; border-top: 1px solid rgba(151, 204, 180, .08); vertical-align: middle; }
.tab tr:hover td { background: rgba(151, 204, 180, .04); }
.tab .num { text-align: right; font-variant-numeric: tabular-nums; }
.barra-idx { position: relative; width: 90px; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .08); overflow: hidden; display: inline-block; vertical-align: middle; margin-right: 8px; }
.barra-idx i { position: absolute; inset: 0 auto 0 0; border-radius: 4px; background: linear-gradient(90deg, var(--verde), var(--ouro), var(--verm)); background-size: 90px 8px; }
.acoes-linha { display: flex; gap: 8px; flex-wrap: wrap; }
.pratica-op { display: flex; gap: 14px; align-items: flex-start; padding: 14px; border-radius: 16px; border: 1px solid var(--borda); background: rgba(5, 12, 24, .3); cursor: pointer; transition: border-color .2s, background .2s; }
.pratica-op input { width: 22px; height: 22px; accent-color: var(--menta); margin-top: 2px; flex: none; }
.pratica-op:has(input:checked) { border-color: var(--menta); background: rgba(151, 204, 180, .08); }
.pratica-op strong { display: block; }
.pratica-op small { color: var(--txt2); }
.grade-praticas { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 12px; margin-bottom: 18px; }
.secao-tit { font-size: .78em; letter-spacing: 1.6px; text-transform: uppercase; color: var(--menta); font-weight: 800; margin: 22px 0 12px; }
.ativ-linha { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 16px; border: 1px solid var(--borda); background: rgba(5, 12, 24, .28); margin-bottom: 12px; flex-wrap: wrap; }
.ativ-linha .info { flex: 1 1 260px; }
.ativ-linha .info strong { display: block; font-size: 1.05em; }
.ativ-linha .info small { color: var(--txt2); }
.pilha-tent { display: flex; gap: 4px; flex-wrap: wrap; }
.pilha-tent span { width: 14px; height: 14px; border-radius: 4px; background: rgba(255, 107, 90, .7); }
.pilha-tent span.ok { background: var(--verde); }

/* ---------- Toast / Modal app ---------- */
.toasts { position: fixed; left: 50%; bottom: max(24px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 999; display: flex; flex-direction: column; gap: 10px; align-items: center; pointer-events: none; }
.toast { padding: 12px 20px; border-radius: 999px; background: rgba(15, 27, 46, .96); border: 1px solid var(--borda); box-shadow: var(--sombra); font-weight: 600; animation: subir .35s both; max-width: 90vw; }
.toast.erro { border-color: rgba(255, 107, 90, .5); color: #ffc6bd; }
.toast.ok { border-color: rgba(61, 220, 138, .5); }
.modal-app { position: fixed; inset: 0; z-index: 900; display: grid; place-items: center; padding: 18px; background: rgba(4, 9, 18, .66); backdrop-filter: blur(6px); animation: fade .2s both; }
.modal-app .cartao { width: min(560px, 100%); max-height: 92vh; overflow: auto; animation: subir .3s both; }
.modal-app h3 { margin: 0 0 8px; font-size: 1.3em; }
.modal-app .bts { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; flex-wrap: wrap; }
@keyframes fade { from { opacity: 0; } }

/* ===================== BANCADA ===================== */
.tela-bancada { height: 100vh; height: 100dvh; }
.bc { position: relative; height: 100%; display: flex; flex-direction: column; background: var(--navy); overflow: hidden; user-select: none; -webkit-user-select: none; }
.bc-topo { display: flex; align-items: center; gap: 12px; padding: 10px 14px; padding-top: max(10px, env(safe-area-inset-top)); border-bottom: 1px solid var(--borda); background: linear-gradient(180deg, var(--navy2), var(--navy)); z-index: 5; }
.bc-btn { width: 42px; height: 42px; border-radius: 13px; border: 1px solid var(--borda); background: rgba(255, 255, 255, .04); color: var(--txt); display: inline-grid; place-items: center; flex: none; transition: background .2s, transform .12s; }
.bc-btn:hover { background: rgba(151, 204, 180, .14); }
.bc-btn:active { transform: scale(.94); }
.bc-titulo { min-width: 0; }
.bc-titulo small { display: block; color: var(--menta); font-size: .68em; letter-spacing: 1.8px; text-transform: uppercase; font-weight: 800; }
.bc-titulo strong { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 1.02em; }
.bc-etapas { display: flex; gap: 6px; margin: 0 auto; padding: 5px; border-radius: 999px; background: rgba(5, 12, 24, .5); border: 1px solid var(--borda); }
.bc-etapa { display: flex; align-items: center; gap: 8px; border: 0; background: none; padding: 7px 16px 7px 8px; border-radius: 999px; color: var(--txt2); font-weight: 700; transition: background .25s, color .25s; }
.bc-etapa b { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .07); font-size: .85em; transition: background .25s, color .25s; }
.bc-etapa.ativa { background: rgba(151, 204, 180, .16); color: var(--menta); }
.bc-etapa.ativa b { background: var(--menta); color: var(--navy); box-shadow: 0 0 16px rgba(151, 204, 180, .6); }
.bc-acoes { display: flex; gap: 8px; margin-left: auto; }
.bc-leitura .bc-acoes { margin-left: auto; }
.bc-corpo { flex: 1; display: flex; min-height: 0; position: relative; }

.bc-paleta { width: 268px; flex: none; display: flex; flex-direction: column; border-right: 1px solid var(--borda); background: linear-gradient(180deg, rgba(22, 38, 63, .9), rgba(15, 27, 46, .95)); overflow-y: auto; z-index: 4; }
.bc-paleta-cab { display: none; }
.bc-materiais { padding: 14px; border-bottom: 1px solid var(--borda); }
.bc-mat-cab { display: flex; justify-content: space-between; font-size: .72em; letter-spacing: 1.4px; text-transform: uppercase; color: var(--menta); font-weight: 800; margin-bottom: 8px; }
.bc-materiais ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.bc-materiais li { display: flex; align-items: center; gap: 8px; font-size: .82em; color: var(--txt2); padding: 4px 6px; border-radius: 8px; transition: background .3s, color .3s; }
.bc-materiais li b { margin-left: auto; font-variant-numeric: tabular-nums; }
.bc-materiais li.ok { color: var(--txt); }
.bc-mat-ic { width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; background: rgba(255, 255, 255, .06); }
.bc-mat-ic .ic { width: 13px; height: 13px; }
.bc-materiais li.ok .bc-mat-ic { background: var(--verde); color: #04281a; }
.bc-lista { padding: 6px 12px 20px; }
.bc-grupo h4 { margin: 12px 4px 8px; font-size: .7em; letter-spacing: 1.6px; text-transform: uppercase; color: var(--txt3); }
.bc-itens { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.bc-item { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 6px 8px; border-radius: 14px; border: 1px solid rgba(151, 204, 180, .1); background: rgba(232, 238, 242, .06); touch-action: none; transition: background .2s, transform .15s, border-color .2s; }
.bc-item:hover { background: rgba(232, 238, 242, .12); border-color: rgba(151, 204, 180, .35); transform: translateY(-2px); }
.bc-item-ic { width: 70px; height: 62px; display: grid; place-items: center; border-radius: 10px; background: radial-gradient(circle at 50% 40%, #eef2f4, #c8d0d6); }
.bc-item-ic svg { width: 64px; height: 58px; }
.bc-item-nome { font-size: .72em; font-weight: 700; color: var(--txt); text-align: center; line-height: 1.15; }
.bc-fantasma { position: fixed; left: 0; top: 0; z-index: 9999; pointer-events: none; opacity: 0; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .45)); transition: opacity .15s; }
.bc-fantasma.ativo { opacity: .92; }
.bc-fantasma svg { width: 110px; height: 110px; }

.bc-palco { flex: 1; position: relative; overflow: hidden; touch-action: none; background: radial-gradient(1000px 600px at 50% 0%, #1d3150, #0d1828); }
.bc-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.bc-fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 3; }
.bc-placa { fill: #e9edf0; stroke: #b9c3cc; stroke-width: 2; }
.bc-placa-sombra { fill: #0a1220; opacity: .55; filter: blur(12px); }
.bc-palco.arrastando { cursor: grabbing; }
.bc-palco.tremer { animation: tremer .45s; }
@keyframes tremer { 10%, 90% { transform: translate(-2px, 1px); } 20%, 80% { transform: translate(4px, -2px); } 30%, 50%, 70% { transform: translate(-6px, 3px); } 40%, 60% { transform: translate(6px, -2px); } }

.cp { cursor: grab; }
.cp-alimentacao { cursor: default; }
.cp-sel { fill: transparent; stroke: transparent; stroke-width: 2.5; stroke-dasharray: 8 6; transition: stroke .2s; }
.cp.selecionado .cp-sel { fill: rgba(151, 204, 180, .1); stroke: #2f9e74; animation: formigas 1s linear infinite; }
@keyframes formigas { to { stroke-dashoffset: -28; } }
.cp.movendo { filter: drop-shadow(0 16px 18px rgba(11, 20, 36, .35)); }
.cp.entrando > *:not(.cp-sel) { animation: pop .45s cubic-bezier(.2, 1.6, .4, 1) both; transform-box: fill-box; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }
.cp.destaque .cp-sel { stroke: #e2382a; stroke-width: 4; stroke-dasharray: none; fill: rgba(226, 56, 42, .1); animation: alerta 0.9s ease-in-out infinite; }
@keyframes alerta { 50% { stroke-opacity: .25; fill-opacity: .02; } }
.cp .alavanca, .cp .armadura { transition: transform .16s cubic-bezier(.3, 1.4, .5, 1); }
.cp .face { transition: transform .1s; transform-box: fill-box; transform-origin: center; }
.cp.pressionado .face { transform: scale(.86); }
.cp-emergencia.pressionado .face { transform: scale(.9) rotate(18deg); }
.cp.ligado .led-bobina { filter: drop-shadow(0 0 6px #38f28f); }
.cp.zumbindo .armadura { animation: zumbir .08s linear infinite; }
@keyframes zumbir { 50% { transform: translateY(2px); } }
.cp.queimado > *:not(.cp-sel) { filter: grayscale(.7) brightness(.55); }
.cp.desarmado .janela { animation: piscar .6s steps(2) infinite; }
@keyframes piscar { 50% { opacity: .2; } }
.cp.manual .tag-manual { animation: piscar 1s steps(2) infinite; }
.cp.disparado .bandeira { animation: piscar .7s steps(2) infinite; }
.cp-motor3 .corpo-motor, .cp-motor6 .corpo-motor { transition: transform .05s; }
.cp .aura { transition: opacity .6s; pointer-events: none; }
.cp.girando .aura { opacity: .22; animation: aura 1.6s ease-in-out infinite; }
.cp.roncando .aura { opacity: .25; fill: #ffb020; animation: aura .3s ease-in-out infinite; }
@keyframes aura { 50% { opacity: .1; } }
.fio.acendendo .fio-corrente { opacity: 1; stroke: #fffbe0; stroke-dasharray: 60 2400; animation: varrer .85s ease-out; stroke-width: 5; }
@keyframes varrer { from { stroke-dashoffset: 60; } to { stroke-dashoffset: -1600; } }
.cp.girando .seta-arco { stroke-dasharray: 10 8; animation: fluxo 1s linear infinite; }

.fio .fio-hit { stroke: transparent; stroke-width: 20; fill: none; pointer-events: stroke; cursor: pointer; }
.fio .fio-capa { fill: none; stroke-linecap: round; stroke-linejoin: round; transition: stroke .3s; }
.fio .fio-sombra { fill: none; stroke: rgba(10, 18, 30, .26); stroke-linecap: round; stroke-linejoin: round; pointer-events: none; transform: translate(0, 2.6px); transition: stroke .3s; }
.fio-f .fio-sombra { stroke-width: 9; }
.fio-c .fio-sombra { stroke-width: 6.5; }
.fio .fio-brilho { fill: none; stroke: #fff; stroke-opacity: .28; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; transform: translate(-1px, -1.2px); }
.fio .fio-corrente { fill: none; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; opacity: 0; }
.fio .fio-ponta { fill: #d8b65a; stroke: #6d5713; stroke-width: 1.2; pointer-events: none; }
.fio-f .fio-capa { stroke-width: 6.5; }
.fio-f .fio-brilho { stroke-width: 1.6; }
.fio-c .fio-capa { stroke-width: 4.2; }
.fio-c .fio-brilho { stroke-width: 1.1; }
.cor-preto .fio-capa { stroke: #24282e; }
.cor-vermelho .fio-capa { stroke: #d42f27; }
.cor-azul .fio-capa { stroke: #2b84d8; }
.fio.energ .fio-sombra { stroke: rgba(90, 210, 255, .42); transform: none; }
.fio .fio-aura, .fio .fio-nucleo, .fio .fio-raio { fill: none; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; opacity: 0; }
.fio .fio-aura { stroke: #63dcff; }
.fio-f .fio-aura { stroke-width: 22; }
.fio-c .fio-aura { stroke-width: 17; }
.fio.energ .fio-aura { opacity: .2; animation: auraFio 1.1s ease-in-out infinite; }
.fio.corrente .fio-aura { animation: auraFioForte .45s ease-in-out infinite; }
@keyframes auraFio { 50% { opacity: .1; } }
@keyframes auraFioForte { 0%, 100% { opacity: .32; } 35% { opacity: .14; } 60% { opacity: .4; } }
.fio .fio-nucleo { stroke: #e6fbff; }
.fio-f .fio-nucleo { stroke-width: 2.2; }
.fio-c .fio-nucleo { stroke-width: 1.6; }
.fio.energ .fio-nucleo { opacity: .55; animation: nucleo .16s steps(2) infinite; }
.fio.corrente .fio-nucleo { opacity: .9; }
@keyframes nucleo { 50% { opacity: .35; } }
.fio .fio-raio1 { stroke: #bdf3ff; stroke-width: 1.8; }
.fio .fio-raio2 { stroke: #ffffff; stroke-width: 2.6; }
.fio:not(.energ) .fio-raio { opacity: 0 !important; }
.fio-f.energ .fio-sombra { stroke-width: 12; }
.fio-c.energ .fio-sombra { stroke-width: 9; }
.fio.corrente .fio-corrente { opacity: 1; stroke: #fff6b0; stroke-dasharray: 3 15; animation: corrente .55s linear infinite; }
.fio-f.corrente .fio-corrente { stroke-width: 3.4; }
.fio-c.corrente .fio-corrente { stroke-width: 2.4; }
@keyframes corrente { to { stroke-dashoffset: -18; } }
.fio.selecionado .fio-hit { stroke: rgba(47, 158, 116, .45); stroke-width: 16; }
.fio.novo .fio-capa { animation: novoFio .6s ease-out; }
@keyframes novoFio { from { stroke-dasharray: 1 2000; } to { stroke-dasharray: 2000 0; } }
.etapa-comando .fio-f, .etapa-forca .fio-c { opacity: .32; }
.bc-temp-pts circle { fill: #fff; stroke: #18c48a; stroke-width: 3; pointer-events: none; }
.bc-alcas .alca { cursor: move; }
.bc-alcas .alca-hit { fill: transparent; }
.bc-alcas .alca-vis { fill: #fff; stroke: #2f9e74; stroke-width: 3; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .3)); transition: transform .12s; }
.bc-alcas .alca:hover .alca-vis { transform: scale(1.25); }
.bc-alcas .alca-meio .alca-vis { fill: rgba(47, 158, 116, .85); stroke: #fff; stroke-width: 2; }
.bc-alcas .alca-meio path { stroke: #fff; stroke-width: 1.8; stroke-linecap: round; pointer-events: none; }
.bc-alcas .alca-meio { opacity: .8; }
.modo-livre .bc-alcas, .modo-teste .bc-alcas { display: none; }
.bc-sel-dica { color: var(--txt2); font-size: .9em; }
.bc-ligando { position: absolute; left: 50%; bottom: max(18px, env(safe-area-inset-bottom)); transform: translate(-50%, 20px); z-index: 7; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center;
  padding: 8px 8px 8px 16px; border-radius: 22px; background: rgba(15, 27, 46, .96); border: 1px solid rgba(24, 196, 138, .45); box-shadow: var(--sombra); font-size: .82em; max-width: calc(100% - 24px);
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.bc-ligando span { color: var(--txt); }
.ligando .bc-ligando { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
.ligando .bc-fab-pecas, .ligando .bc-play-area { opacity: 0; pointer-events: none; }
.bc-fio-temp { fill: none; stroke-linejoin: round; stroke: #24282e; stroke-width: 4.5; stroke-dasharray: 10 8; stroke-linecap: round; pointer-events: none; opacity: .85; animation: corrente .6s linear infinite; }
.bc-fio-temp.cor-vermelho { stroke: #d42f27; }
.bc-fio-temp.cor-azul { stroke: #2b84d8; }

.tm { cursor: crosshair; }
.tm .tm-hit { fill: transparent; }
.tm .tm-anel { fill: transparent; stroke: transparent; stroke-width: 3; transition: stroke .15s, fill .15s; }
.tm:hover .tm-anel { stroke: #2f9e74; fill: rgba(151, 204, 180, .25); }
.tm .tm-n { font-size: 9px; font-weight: 900; fill: #fff; paint-order: stroke; stroke: #0f1b2e; stroke-width: 3px; font-family: Inter, Arial; pointer-events: none; }
.tm.origem .tm-anel { stroke: #18c48a; fill: rgba(24, 196, 138, .3); animation: pulsoTm 1s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes pulsoTm { 50% { transform: scale(1.35); } }
.ligando .tm:not(.origem) .tm-anel { stroke: rgba(47, 158, 116, .55); }
.etapa-comando .tm-f .tm-anel, .etapa-forca .tm-c .tm-anel, .etapa-teste .tm .tm-anel { fill: rgba(15, 27, 46, .42); stroke: none; }
.etapa-comando .tm-f, .etapa-forca .tm-c { cursor: not-allowed; }
.etapa-teste .tm { pointer-events: none; }
.etapa-teste .tm .tm-anel { fill: transparent; }
.modo-livre .fio, .modo-teste .fio, .modo-livre .tm, .modo-teste .tm { pointer-events: none; }
.modo-livre .cp { cursor: pointer; }

.bc-mao { pointer-events: none; transition: transform .45s cubic-bezier(.3, .9, .3, 1), opacity .3s; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .35)); }

.bc-dica-tela { position: absolute; top: 14px; left: 50%; transform: translate(-50%, -16px); max-width: min(680px, 92%); padding: 12px 18px; border-radius: 16px; background: rgba(15, 27, 46, .94); border: 1px solid var(--borda); box-shadow: var(--sombra); font-size: .86em; color: var(--txt); opacity: 0; transition: opacity .3s, transform .3s; pointer-events: none; z-index: 6; text-align: center; }
.bc-dica-tela.vis { opacity: 1; transform: translate(-50%, 0); }
.bc-dica-tela b { color: var(--menta); }

.bc-barra-sel { position: absolute; z-index: 7; transform: translate(-50%, -100%) scale(.9); display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 14px; border-radius: 999px; background: rgba(15, 27, 46, .96); border: 1px solid var(--borda); box-shadow: var(--sombra); opacity: 0; pointer-events: none; transition: opacity .18s, transform .18s; white-space: nowrap; font-size: .82em; }
.bc-barra-sel.vis { opacity: 1; pointer-events: auto; transform: translate(-50%, -100%) scale(1); }
.bc-sel-info b { color: var(--menta); }
.bc-sel-btn { display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 999px; padding: 7px 12px; background: rgba(255, 255, 255, .08); font-weight: 700; min-width: 34px; justify-content: center; }
.bc-sel-btn.perigo { background: rgba(255, 107, 90, .18); color: #ffb3a8; }
.bc-sel-btn .ic { width: 16px; height: 16px; }
.bc-sel-tempo { display: inline-flex; align-items: center; gap: 6px; }
.bc-sel-cores { display: inline-flex; gap: 5px; }
.bc-cor { width: 24px; height: 24px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .25); background: var(--c); }
.bc-cor.ativa { border-color: #fff; box-shadow: 0 0 0 2px var(--menta); }

.bc-zoom { position: absolute; left: 14px; bottom: 14px; bottom: max(14px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 8px; z-index: 5; }
.bc-zoom .bc-btn { background: rgba(15, 27, 46, .88); box-shadow: 0 8px 20px rgba(0, 0, 0, .3); }
.bc-play-area { position: absolute; right: 18px; bottom: 18px; bottom: max(18px, env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 12px; z-index: 5; }
.bc-play, .bc-livre { display: inline-flex; align-items: center; gap: 10px; border: 0; border-radius: 999px; font-weight: 800; letter-spacing: .3px; transition: transform .15s, filter .2s, box-shadow .2s; }
.bc-play { padding: 16px 28px 16px 22px; font-size: 1.12em; color: #062019; background: linear-gradient(135deg, var(--menta), var(--ciano)); box-shadow: 0 14px 36px rgba(95, 212, 244, .35), 0 0 0 0 rgba(151, 204, 180, .55); animation: respira 2.4s ease-in-out infinite; }
.bc-play .ic { width: 22px; height: 22px; }
@keyframes respira { 50% { box-shadow: 0 14px 36px rgba(95, 212, 244, .35), 0 0 0 12px rgba(151, 204, 180, 0); } }
.bc-livre { padding: 13px 20px; background: rgba(15, 27, 46, .9); color: var(--ouro); border: 1px solid rgba(242, 201, 107, .4); box-shadow: 0 10px 24px rgba(0, 0, 0, .3); }
.bc-livre:hover { background: rgba(242, 201, 107, .12); }
.modo-livre .bc-livre { background: linear-gradient(135deg, #f7dc93, var(--ouro)); color: #3a2900; box-shadow: 0 0 30px rgba(242, 201, 107, .5); }
.bc-play:active, .bc-livre:active { transform: scale(.95); }
.modo-teste .bc-play-area, .modo-teste .bc-zoom { opacity: 0; pointer-events: none; }
.modo-teste .bc-paleta, .modo-livre .bc-paleta { opacity: .45; pointer-events: none; }
.bc-fab-pecas { display: none; }

.bc-teste { position: absolute; right: 14px; top: 76px; bottom: 14px; width: min(380px, 40%); z-index: 8; display: flex; flex-direction: column; border-radius: 22px; background: rgba(12, 22, 38, .94); border: 1px solid var(--borda); box-shadow: var(--sombra); backdrop-filter: blur(14px); transform: translateX(30px); opacity: 0; transition: transform .35s cubic-bezier(.2, .8, .2, 1), opacity .35s; }
.bc-teste.vis { transform: none; opacity: 1; }
.bc-teste-cab { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 14px 12px 18px; border-bottom: 1px solid var(--borda); }
.bc-teste-tit { display: flex; align-items: center; gap: 10px; }
.bc-pulso { width: 12px; height: 12px; border-radius: 50%; background: var(--ciano); box-shadow: 0 0 0 0 rgba(95, 212, 244, .7); animation: pulsoAn 1.2s infinite; }
@keyframes pulsoAn { 70% { box-shadow: 0 0 0 12px rgba(95, 212, 244, 0); } 100% { box-shadow: 0 0 0 0 rgba(95, 212, 244, 0); } }
.bc-teste.ok .bc-pulso { background: var(--verde); animation: none; }
.bc-teste.falhou .bc-pulso { background: var(--verm); animation: none; }
.bc-teste-ctl { display: flex; gap: 6px; }
.bc-teste-ctl .bc-btn { width: auto; padding: 0 12px; gap: 6px; display: inline-flex; align-items: center; font-weight: 700; font-size: .82em; }
.bc-teste-ctl .bc-btn .ic { width: 16px; height: 16px; }
.bc-narra { list-style: none; margin: 0; padding: 12px 14px 18px; overflow-y: auto; flex: 1; display: flex; flex-direction: column; gap: 6px; scroll-behavior: smooth; }
.bc-narra li { display: flex; gap: 10px; align-items: flex-start; font-size: .84em; line-height: 1.35; padding: 8px 10px; border-radius: 12px; animation: subir .3s both; color: var(--txt2); }
.bc-narra li .ic { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.bc-narra .n-ok { color: var(--txt); background: rgba(61, 220, 138, .07); }
.bc-narra .n-ok .ic { color: var(--verde); }
.bc-narra .n-erro { color: #ffd3cc; background: rgba(255, 107, 90, .12); border: 1px solid rgba(255, 107, 90, .35); }
.bc-narra .n-erro .ic { color: var(--verm); }
.bc-ponto { width: 8px; height: 8px; border-radius: 50%; background: var(--ciano); margin: 6px 5px 0; flex: none; }

.bc-modal { position: absolute; inset: 0; z-index: 30; display: grid; place-items: center; padding: 18px; }
.bc-modal-fundo { position: absolute; inset: 0; background: rgba(4, 9, 18, .5); opacity: 0; transition: opacity .25s; }
.bc-teste.revisao { z-index: 35; }
.revisao-aberta .bc-teste.revisao:not(.mini) { bottom: 100px; }
@media (min-width: 761px) { .modo-teste .bc-modal { padding-right: calc(min(380px, 40%) + 32px); } }
@media (min-width: 1800px) { .modo-teste .bc-modal { padding-right: 492px; } }
.bc-teste .bc-pos { display: none; }
.bc-teste.revisao .bc-pos { display: inline-flex; }
.bc-teste.revisao [data-acao="vel"], .bc-teste.revisao [data-acao="pular"] { display: none; }
.bc-teste.mini { bottom: auto; cursor: pointer; }
.bc-teste.mini .bc-narra { display: none; }
.bc-teste.mini .bc-teste-cab { border-bottom: 0; }
.bc-teste.ok .bc-teste-tit strong { color: var(--verde); }
.bc-teste.falhou .bc-teste-tit strong { color: #ffb3a8; }
.bc-modal.vis .bc-modal-fundo { opacity: 1; }
.bc-modal-card { position: relative; width: min(520px, 100%); max-height: 90%; overflow: auto; text-align: center; padding: 30px 28px 24px; border-radius: 28px; background: linear-gradient(165deg, #1d3150, #0f1b2e); border: 1px solid var(--borda); box-shadow: var(--sombra); transform: scale(.9) translateY(20px); opacity: 0; transition: transform .35s cubic-bezier(.2, 1.4, .4, 1), opacity .25s; }
.bc-modal.vis .bc-modal-card { transform: none; opacity: 1; }
.bc-modal-card h3 { margin: 10px 0 6px; font-size: 1.45em; }
.bc-modal-card p { color: var(--txt2); margin: 6px 0; }
.bc-res-ic { width: 84px; height: 84px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; font-size: 2.2em; font-weight: 900; }
.bc-res-ic .ic { width: 46px; height: 46px; stroke-width: 3; }
.bc-res-ic.ok { background: radial-gradient(circle, rgba(61, 220, 138, .3), rgba(61, 220, 138, .08)); color: var(--verde); box-shadow: 0 0 0 10px rgba(61, 220, 138, .06), 0 0 50px rgba(61, 220, 138, .35); animation: pop .6s cubic-bezier(.2, 1.6, .4, 1) both; }
.bc-res-ic.erro { background: rgba(255, 107, 90, .15); color: var(--verm); }
.bc-res-ic.aviso { background: rgba(242, 201, 107, .15); color: var(--ouro); }
.bc-nota { margin: 16px 0 4px; }
.bc-nota-n { font-size: 3.6em; font-weight: 900; background: linear-gradient(90deg, var(--menta), var(--ciano)); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }
.bc-nota small { display: block; color: var(--txt2); letter-spacing: 2px; text-transform: uppercase; font-size: .72em; font-weight: 700; }
.bc-selo { display: inline-block; margin: 10px 0; padding: 6px 14px; border-radius: 999px; background: rgba(242, 201, 107, .15); color: var(--ouro); font-weight: 800; font-size: .86em; }
.bc-obs { font-size: .84em; }
.bc-diag { text-align: left; margin: 16px 0 6px; padding: 14px 16px; border-radius: 16px; background: rgba(255, 107, 90, .08); border: 1px solid rgba(255, 107, 90, .3); }
.bc-diag small { display: block; font-size: .72em; letter-spacing: 1.2px; text-transform: uppercase; color: #ff9d8f; font-weight: 800; margin-bottom: 4px; }
.bc-diag strong { color: #ffd3cc; display: block; margin-bottom: 6px; }
.bc-diag p { margin: 0; font-size: .9em; color: var(--txt); }
.bc-modal-bts { display: flex; gap: 10px; justify-content: center; margin-top: 20px; flex-wrap: wrap; }
.bc-bt-pri, .bc-bt-sec { border: 0; border-radius: 999px; padding: 13px 22px; font-weight: 800; min-height: 48px; }
.bc-bt-pri { background: linear-gradient(135deg, var(--menta), var(--ciano)); color: #062019; }
.bc-bt-pri.perigo { background: linear-gradient(135deg, #ff8c7a, #e2382a); color: #fff; }
.bc-bt-sec { background: rgba(255, 255, 255, .07); border: 1px solid var(--borda); }

/* Celular */
@media (max-width: 760px) {
  .bc-topo { flex-wrap: wrap; gap: 8px; padding: 8px 10px; padding-top: max(8px, env(safe-area-inset-top)); }
  .bc-titulo { flex: 1; }
  .bc-etapas { order: 3; width: 100%; justify-content: space-between; margin: 0; }
  .bc-etapa { flex: 1; justify-content: center; padding: 6px 8px; }
  .bc-acoes { gap: 6px; }
  .bc-btn { width: 38px; height: 38px; border-radius: 12px; }
  .bc-paleta { position: absolute; left: 0; right: 0; bottom: 0; top: auto; width: auto; height: 62%; border-right: 0; border-top: 1px solid var(--borda); border-radius: 24px 24px 0 0; transform: translateY(105%); transition: transform .35s cubic-bezier(.2, .8, .2, 1); box-shadow: 0 -20px 50px rgba(0, 0, 0, .5); z-index: 12; }
  .paleta-aberta .bc-paleta { transform: none; }
  .bc-paleta-cab { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px 4px 18px; font-weight: 800; position: sticky; top: 0; background: var(--navy2); z-index: 2; }
  .bc-itens { grid-template-columns: repeat(3, 1fr); }
  .bc-fab-pecas { display: inline-flex; position: absolute; left: 50%; transform: translateX(-50%); bottom: max(14px, env(safe-area-inset-bottom)); z-index: 5; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 999px; border: 1px solid var(--borda); background: rgba(15, 27, 46, .95); color: var(--menta); font-weight: 800; box-shadow: 0 10px 24px rgba(0, 0, 0, .35); }
  .etapa-teste .bc-fab-pecas, .modo-livre .bc-fab-pecas, .modo-teste .bc-fab-pecas { display: none; }
  .bc-play-area { right: 10px; bottom: max(76px, calc(env(safe-area-inset-bottom) + 64px)); flex-direction: column; align-items: flex-end; }
  .etapa-teste .bc-play-area { bottom: max(14px, env(safe-area-inset-bottom)); flex-direction: row; }
  .bc-play { padding: 13px 22px 13px 18px; font-size: 1em; }
  .bc-livre { padding: 11px 16px; font-size: .9em; }
  .bc-zoom { bottom: max(76px, calc(env(safe-area-inset-bottom) + 64px)); left: 10px; }
  .etapa-teste .bc-zoom { bottom: max(14px, env(safe-area-inset-bottom)); }
  .bc-teste { left: 8px; right: 8px; top: auto; bottom: 8px; width: auto; height: 42%; transform: translateY(30px); }
  .bc-teste.mini { height: auto; bottom: max(8px, env(safe-area-inset-bottom)); left: 8px; right: 8px; }
  .revisao-aberta .bc-teste.revisao:not(.mini) { bottom: 8px; }
  .revisao-aberta .bc-play-area, .revisao-aberta .bc-zoom, .revisao-aberta .bc-fab-pecas { margin-bottom: 70px; }
  .bc-modal { place-items: start center; padding-top: 12px; }
  .bc-modal-card { max-height: 52%; padding: 22px 18px 18px; }
  .bc-modal-card .bc-res-ic { width: 60px; height: 60px; }
  .bc-dica-tela { font-size: .8em; top: 8px; }
  .bc-ligando { width: calc(100% - 20px); bottom: max(10px, env(safe-area-inset-bottom)); padding: 8px; }
  .bc-ligando span { width: 100%; text-align: center; }
  .portas { grid-template-columns: 1fr; }
  .chip-user small { display: none; }
  .chip-user b { display: block; max-width: 110px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .marca-txt small { letter-spacing: 1.2px; }
  .bc-paleta { background: var(--navy2); }
  .bc-materiais { padding: 10px 14px; }
  .bc-materiais ul { grid-template-columns: 1fr 1fr; gap: 2px 8px; }
  .bc-materiais li { font-size: .74em; padding: 2px 4px; }
  .bc-mat-ic { width: 16px; height: 16px; }
}
/* TV / telas grandes */
@media (min-width: 1800px) {
  .bc-paleta { width: 340px; }
  .bc-item-ic { width: 92px; height: 80px; }
  .bc-item-ic svg { width: 86px; height: 76px; }
  .bc-btn { width: 56px; height: 56px; border-radius: 16px; }
  .bc-btn .ic { width: 28px; height: 28px; }
  .bc-play { padding: 22px 38px 22px 30px; }
  .bc-teste { width: 460px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
@media print {
  body { background: #fff; color: #000; }
  .topo, .prof-nav, .acoes-linha, .btn, .toasts { display: none !important; }
  .cartao { box-shadow: none; border: 1px solid #ccc; background: #fff; }
  .tab td, .tab th { color: #000; background: #fff; }
}
