/* Ferramentas gratuitas */
.tools-cards .tool-card { text-decoration: none; color: inherit; flex-direction: row; align-items: flex-start; gap: 4px; padding-left: 16px; }
.tool-card:hover { border-color: var(--teal); }
.tool-icon { font-size: 40px; line-height: 1; padding-top: 16px; }
.tool-cta { color: var(--teal); font-weight: 700; margin: 0; font-size: 15px; }
.tool-head { display: flex; gap: 16px; align-items: center; margin-bottom: 10px; }
.tool-head .tool-icon { font-size: 54px; padding: 0; }
.tool-head h1 { font: 700 32px/1.2 Georgia, serif; color: var(--blue-dark); margin: 0 0 4px; }
.tool-head p { margin: 0; }
.privacy-note { background: var(--teal-soft); border-radius: 10px; padding: 10px 14px; font-size: 15px; }
.tool-app { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin: 18px 0 28px; box-shadow: var(--shadow); }
.tool-faq details { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; margin-bottom: 8px; }
.tool-faq summary { font-weight: 700; color: var(--blue-dark); cursor: pointer; }
.tool-faq p { margin: 8px 0 0; }
.tool-faq h2 { font: 700 22px Georgia, serif; color: var(--blue-dark); }

/* Controles comuns */
.t-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-bottom: 14px; }
.t-field { display: flex; flex-direction: column; gap: 4px; font-weight: 700; font-size: 14px; color: var(--blue-dark); }
.t-field input, .t-field select, .t-field textarea {
  font: 16px Arial, sans-serif; padding: 9px 11px; border: 1px solid #C5D3D0; border-radius: 8px; background: #fff; color: var(--text); min-width: 0;
}
.t-field textarea { resize: vertical; }
.t-grow { flex: 1 1 240px; }
.t-btn { font: 700 15px Arial, sans-serif; background: var(--box); color: var(--blue-dark); border: 1px solid var(--line); border-radius: 8px; padding: 9px 16px; cursor: pointer; }
.t-btn:hover { border-color: var(--teal); }
.t-btn.primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.t-btn.danger { color: #8A1C1C; }
.t-btn.small { padding: 5px 10px; font-size: 13px; }
.t-muted { color: var(--muted); font-size: 14px; }
.t-section { font: 700 18px Arial, sans-serif; color: var(--blue-dark); margin: 22px 0 10px; }
.t-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.t-chip { display: inline-flex; gap: 6px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: 14px; cursor: pointer; }
.t-chip input { margin: 0; }
.t-chip.on { background: var(--teal-soft); border-color: var(--teal); }
.t-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.t-tabs button { font: 700 14px Arial, sans-serif; background: var(--box); border: 1px solid var(--line); color: var(--blue-dark); border-radius: 999px; padding: 7px 14px; cursor: pointer; }
.t-tabs button.on { background: var(--blue); color: #fff; border-color: var(--blue); }
.t-ok { color: #11643A; font-weight: 700; }

/* Rotina visual */
.rv-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 22px; }
.rv-lib { max-height: 560px; overflow: auto; padding-right: 6px; }
.rv-group { font-weight: 700; color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; margin: 12px 0 6px; }
.rv-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.rv-pick button { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px 4px; cursor: pointer; font: 13px Arial, sans-serif; color: var(--text); }
.rv-pick button:hover { border-color: var(--teal); background: var(--teal-soft); }
.rv-pick .em { display: block; font-size: 30px; line-height: 1.2; }
.rv-steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.rv-steps li { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 8px 10px; margin-bottom: 8px; }
.rv-steps .em { font-size: 34px; width: 46px; text-align: center; }
.rv-steps input.lbl { flex: 1; font: 16px Arial, sans-serif; border: 1px solid transparent; border-radius: 6px; padding: 6px; min-width: 0; }
.rv-steps input.lbl:focus { border-color: var(--line); }
.rv-steps input.tm { width: 88px; font: 14px Arial, sans-serif; padding: 5px; border: 1px solid var(--line); border-radius: 6px; }
.rv-steps .acts { display: flex; gap: 2px; }
.rv-steps .acts button { background: none; border: 0; cursor: pointer; font-size: 16px; padding: 4px 6px; border-radius: 6px; }
.rv-steps .acts button:hover { background: var(--box); }
.rv-empty { border: 2px dashed var(--line); border-radius: 12px; padding: 26px; text-align: center; color: var(--muted); }

/* Diário */
.dg-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.dg-scale { display: flex; gap: 6px; flex-wrap: wrap; }
.dg-scale label { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; font-size: 22px; background: #fff; }
.dg-scale input { position: absolute; opacity: 0; pointer-events: none; }
.dg-scale input:checked + span { outline: 3px solid var(--teal); border-radius: 8px; }
.dg-scale input:focus-visible + span { outline: 3px solid var(--blue); }
.dg-list { width: 100%; border-collapse: collapse; font-size: 14px; }
.dg-list th, .dg-list td { border-bottom: 1px solid var(--line); padding: 8px 6px; text-align: left; vertical-align: top; }
.dg-list th { color: var(--muted); font-size: 12px; text-transform: uppercase; }
.dg-sum { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 16px; }
.dg-sum div { background: var(--box); border-radius: 10px; padding: 12px; }
.dg-sum strong { display: block; font-size: 24px; color: var(--blue); }
.dg-chart { display: flex; align-items: flex-end; gap: 3px; height: 140px; border-bottom: 1px solid var(--line); padding-top: 10px; }
.dg-chart .c { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; font-size: 10px; color: var(--muted); }
.dg-chart .b { width: 100%; background: #9FD3CB; border-radius: 3px 3px 0 0; }
.dg-chart .b.crise { background: #E3A7A0; }

/* Guia de direitos */
.gd-q { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-bottom: 12px; background: #fff; }
.gd-q legend { font-weight: 700; color: var(--blue-dark); padding: 0 4px; }
.gd-q label { display: inline-flex; align-items: center; gap: 6px; margin: 6px 14px 0 0; font-size: 15px; cursor: pointer; }
.gd-result h3 { color: var(--blue-dark); margin: 18px 0 6px; font-size: 18px; }
.gd-right { border-left: 4px solid var(--teal); background: var(--box); border-radius: 0 10px 10px 0; padding: 12px 16px; margin-bottom: 10px; }
.gd-right h4 { margin: 0 0 4px; font-size: 17px; color: var(--blue-dark); }
.gd-right p { margin: 4px 0; font-size: 15px; }
.gd-law { font-size: 13px !important; color: var(--muted); }

/* Impressão: só a área de impressão da ferramenta */
.print-only { display: none; }
@media print {
  @page { size: A4; margin: 12mm; }
  body { background: #fff !important; }
  body > *:not(.print-area) { display: none !important; }
  .print-area { display: block !important; }
}
.print-area h1 { font: 700 26px Georgia, serif; text-align: center; margin: 0 0 14px; color: #12324F; }
.print-area .pf { text-align: center; font-size: 11px; color: #666; margin-top: 14px; }
.pr-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pr-grid.list { grid-template-columns: 1fr; }
.pr-card { border: 2px solid #1E4E79; border-radius: 14px; padding: 10px; text-align: center; page-break-inside: avoid; position: relative; }
.pr-card .em { font-size: 64px; line-height: 1.1; }
.pr-card .t { font: 700 20px Arial, sans-serif; color: #12324F; }
.pr-card .h { font-size: 14px; color: #555; }
.pr-card .ck { position: absolute; top: 8px; right: 8px; width: 22px; height: 22px; border: 2px solid #1E4E79; border-radius: 4px; }
.pr-grid.list .pr-card { display: flex; align-items: center; gap: 16px; text-align: left; padding: 6px 14px; }
.pr-grid.list .pr-card .em { font-size: 44px; }
.pr-grid.list .pr-card .ck { position: static; margin-left: auto; }
.pr-first { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pr-first .lab { font: 700 28px Arial, sans-serif; text-align: center; color: #12324F; }
.pr-first .pr-card .em { font-size: 120px; }
.pr-first .pr-card .t { font-size: 26px; }
.print-area table { width: 100%; border-collapse: collapse; font-size: 11px; }
.print-area th, .print-area td { border: 1px solid #999; padding: 4px; text-align: left; vertical-align: top; }

@media (max-width: 760px) {
  .rv-cols { grid-template-columns: 1fr; }
  .rv-lib { max-height: 320px; }
  .tool-app { padding: 14px; margin-left: -4px; margin-right: -4px; }
  .tool-head h1 { font-size: 26px; }
}

/* ---------- Compartilhar ferramenta (viralização) ---------- */
.tool-top-share { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0 0 !important; }
.ts-mini { display: inline-flex; align-items: center; gap: 6px; font: 700 13px Arial, sans-serif; border: 1px solid var(--line); background: #fff; color: var(--blue-dark); border-radius: 999px; padding: 6px 12px; cursor: pointer; text-decoration: none; }
.ts-mini.wa { background: #25D366; border-color: #25D366; color: #fff; }
.tool-share { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 22px; align-items: center; background: linear-gradient(135deg, #1F8A5B, #146B45); color: #fff; border-radius: 18px; padding: 26px 28px; margin: 0 0 30px; }
.tool-share h2 { font: 700 28px/1.15 Arial, sans-serif; margin: 4px 0 8px; color: #fff; }
.tool-share p { margin: 0; color: #E3F5EB; }
.ts-kicker { font: 800 12px Arial, sans-serif; letter-spacing: 1px; text-transform: uppercase; color: #F6C453 !important; }
.ts-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.ts-btn { display: inline-flex; align-items: center; gap: 6px; font: 700 15px Arial, sans-serif; background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.35); border-radius: 10px; padding: 10px 14px; cursor: pointer; text-decoration: none; }
.ts-btn:hover { background: rgba(255,255,255,.24); color: #fff; }
.ts-btn.ts-wa { background: #fff; color: #146B45; border-color: #fff; font-size: 17px; padding: 12px 18px; flex-basis: 100%; justify-content: center; }
.cat-toast { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 50; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; max-width: min(560px, calc(100vw - 24px)); background: #0B2F4F; color: #fff; border-radius: 14px; padding: 14px 44px 14px 18px; box-shadow: 0 14px 34px rgba(0,0,0,.3); animation: catIn .3s ease-out; }
.cat-toast p { margin: 0; font-size: 15px; }
.cat-wa { background: #25D366; color: #fff; font-weight: 700; text-decoration: none; border-radius: 999px; padding: 8px 14px; }
.cat-x { position: absolute; top: 8px; right: 10px; background: none; border: 0; color: #fff; font-size: 18px; cursor: pointer; }
@keyframes catIn { from { opacity: 0; transform: translate(-50%, 20px); } to { opacity: 1; transform: translate(-50%, 0); } }
.cat-confetti { position: fixed; inset: 0; pointer-events: none; z-index: 60; }

/* Timer visual */
.tm-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 26px; align-items: start; }
.tm-stage { background: #fff; border-radius: 18px; text-align: center; padding: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.tm-stage:fullscreen { background: #fff; padding: 4vh; }
.tm-disk { width: min(100%, 360px); height: auto; cursor: pointer; }
.tm-stage:fullscreen .tm-disk { width: min(80vw, 70vh); }
.tm-num { font: 700 46px Arial, sans-serif; color: #0B2F4F; margin: 6px 0 0; font-variant-numeric: tabular-nums; }
.tm-now, .tm-next { font: 700 22px Arial, sans-serif; color: #0B2F4F; margin: 6px 0; }
.tm-now span, .tm-next span { display: inline-block; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; background: #DCEBF7; border-radius: 6px; padding: 3px 8px; vertical-align: middle; }
.tm-next span { background: #E8F5EE; }
.tm-done { font: 700 28px Arial, sans-serif; color: #C8102E; margin: 8px 0 0; animation: tmPulse 1s ease-in-out infinite alternate; }
@keyframes tmPulse { to { transform: scale(1.06); } }
.tm-presets { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.tm-big { font-size: 18px; padding: 12px 22px; }

/* Prancha de comunicação */
.pc-bar { display: flex; gap: 10px; align-items: center; background: #F3F8FC; border: 2px solid #D8E5EF; border-radius: 14px; padding: 10px; margin-bottom: 14px; position: sticky; top: 6px; z-index: 3; }
.pc-sent { flex: 1; display: flex; gap: 6px; overflow-x: auto; min-height: 64px; align-items: center; }
.pc-w { display: inline-flex; flex-direction: column; align-items: center; background: #fff; border: 1px solid #D8E5EF; border-radius: 10px; padding: 4px 8px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.pc-w .em { font-size: 28px; }
.pc-bar-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.pc-grid { display: grid; gap: 10px; }
.pc-grid.pc-p { grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); }
.pc-grid.pc-m { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); }
.pc-grid.pc-g { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.pc-card { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; background: #fff; border: 2px solid #D8E5EF; border-radius: 14px; padding: 10px 6px; cursor: pointer; font: 700 15px Arial, sans-serif; color: #0B2F4F; min-height: 110px; transition: transform .12s, border-color .12s; }
.pc-card:hover { border-color: var(--blue); }
.pc-card.hit { transform: scale(.94); border-color: #1F8A5B; background: #E8F5EE; }
.pc-card .em { font-size: 44px; line-height: 1.1; }
.pc-g .pc-card .em { font-size: 64px; } .pc-g .pc-card { min-height: 150px; font-size: 18px; }
.pc-p .pc-card .em { font-size: 32px; } .pc-p .pc-card { min-height: 84px; font-size: 13px; }
.pc-own { margin-top: 14px; border: 1px dashed var(--line); border-radius: 12px; padding: 10px 14px; }
.pc-own summary { cursor: pointer; font-weight: 700; color: var(--blue-dark); }

/* Termômetro das emoções */
.em-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 24px; }
.em-thermo { display: flex; flex-direction: column; gap: 8px; }
.em-lv { display: grid; grid-template-columns: 44px 54px 1fr; align-items: center; gap: 10px; background: #fff; border: 3px solid var(--c); border-radius: 16px; padding: 10px 14px; cursor: pointer; font: 700 18px Arial, sans-serif; color: #0B2F4F; text-align: left; transition: transform .12s; }
.em-lv:hover { transform: translateX(4px); }
.em-lv.on { background: var(--c); color: #fff; box-shadow: 0 8px 20px rgba(0,0,0,.15); }
.em-num { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--c); color: #fff; font-size: 20px; }
.em-lv.on .em-num { background: #fff; color: var(--c); }
.em-face { font-size: 38px; }
.em-card { border-left: 8px solid var(--c, #D8E5EF); background: #F3F8FC; border-radius: 0 14px 14px 0; padding: 16px 18px; margin-bottom: 16px; }
.em-card.em-empty { color: var(--muted); }
.em-big { font: 700 26px Arial, sans-serif; margin: 0 0 6px; color: #0B2F4F; }
.em-help { margin: 0 0 10px; padding-left: 1.2em; font-size: 17px; }
.em-breath { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.em-ball { width: 120px; height: 120px; margin: 10px auto 16px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #9CCBF0, #0A64AD); display: flex; align-items: center; justify-content: center; color: #fff; font: 700 15px Arial, sans-serif; transform: scale(.75); transition-property: transform; transition-timing-function: ease-in-out; }
.em-ball.grow, .em-ball.hold { transform: scale(1.35); }
.em-ball.shrink, .em-ball.rest { transform: scale(.75); }
.em-edit { margin-top: 18px; border: 1px dashed var(--line); border-radius: 12px; padding: 10px 14px; }
.em-edit summary { cursor: pointer; font-weight: 700; color: var(--blue-dark); }

/* Cartão "Sou autista" */
.cc-cols, .pf-cols, .rq-cols { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.cc-prev { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.cc-card { width: 85.6mm; height: 54mm; box-sizing: border-box; border-radius: 3.5mm; padding: 3mm 4mm; font-family: Arial, sans-serif; overflow: hidden; position: relative; border: 0.4mm solid var(--c); -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.cc-front { background: var(--c); color: #fff; }
.cc-back { background: #fff; color: #0B2F4F; }
.cc-top { display: flex; align-items: center; gap: 2mm; font-size: 4.6mm; }
.cc-inf { display: inline-flex; align-items: center; justify-content: center; width: 6mm; height: 6mm; border-radius: 1.4mm; background: #fff; color: var(--c); font-weight: 700; }
.cc-name { font-size: 3.4mm; font-weight: 700; margin: 1mm 0 0; }
.cc-card ul { margin: 1.4mm 0 0; padding-left: 3.6mm; font-size: 2.75mm; line-height: 1.32; }
.cc-foot { position: absolute; left: 4mm; bottom: 2mm; font-size: 2.1mm; margin: 0; opacity: .85; }
.cc-h { font-weight: 700; font-size: 3.4mm; margin: 0; color: var(--c); }
.cc-ct { font-size: 3mm; margin: 1.6mm 0 0; }
.cc-obs { font-size: 2.6mm; margin: 1mm 0 0; color: #5F6B76; }

/* Histórias sociais */
.hs-book { background: linear-gradient(180deg, #F3F8FC, #fff); border: 2px solid #D8E5EF; border-radius: 18px; padding: 22px; text-align: center; }
.hs-count { font-size: 13px; font-weight: 700; color: var(--muted); margin: 0; }
.hs-em { font-size: 110px; line-height: 1.15; margin: 6px 0; }
.hs-txt { font: 700 24px/1.4 Arial, sans-serif; color: #0B2F4F; max-width: 640px; margin: 0 auto 16px; }

/* Quadro de fichas */
.fx-board { background: linear-gradient(180deg, #FFF9EC, #fff); border: 3px solid #F6C453; border-radius: 22px; padding: 22px; text-align: center; }
.fx-board.done { border-color: #1F8A5B; background: linear-gradient(180deg, #E8F5EE, #fff); }
.fx-head { font: 700 18px Arial, sans-serif; color: #0B2F4F; margin: 0; }
.fx-prize { display: inline-flex; flex-direction: column; align-items: center; background: #fff; border: 2px dashed #E07B24; border-radius: 16px; padding: 8px 22px; margin: 10px 0; }
.fx-prize .em { font-size: 64px; } .fx-prize strong { font-size: 20px; color: #0B2F4F; }
.fx-task { margin: 4px 0 12px; }
.fx-slots { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-bottom: 12px; }
.fx-slot { width: 76px; height: 76px; border-radius: 50%; border: 3px dashed #C9D3DC; background: #fff; font: 700 22px Arial, sans-serif; color: #C9D3DC; cursor: pointer; transition: transform .2s; }
.fx-slot.on { border: 3px solid #F6C453; background: #FFF4D6; font-size: 40px; color: inherit; animation: fxPop .35s ease-out; }
@keyframes fxPop { 0% { transform: scale(.4); } 70% { transform: scale(1.18); } 100% { transform: scale(1); } }
.fx-win { font: 700 24px Arial, sans-serif; color: #1F8A5B; }

/* Marcos do desenvolvimento */
.mc-it { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.mc-it:last-child { border-bottom: 0; }
.mc-op { display: flex; gap: 4px; flex: none; }
.mc-b { font: 700 13px Arial, sans-serif; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 10px; cursor: pointer; color: var(--blue-dark); }
.mc-b.on.mc-s { background: #1F8A5B; border-color: #1F8A5B; color: #fff; }
.mc-b.on.mc-n { background: #E07B24; border-color: #E07B24; color: #fff; }
.mc-b.on.mc-x { background: #5F6B76; border-color: #5F6B76; color: #fff; }

/* Perfil "Sobre mim" */
.pf-sens td { padding: 4px 6px 4px 0; vertical-align: middle; font-weight: 700; }
.pf-sheet { border: 3px solid var(--c); border-radius: 18px; overflow: hidden; font-family: Arial, sans-serif; background: #fff; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.pf-top { display: flex; align-items: center; gap: 16px; background: var(--c); color: #fff; padding: 16px 18px; }
.pf-top img, .pf-ph { width: 92px; height: 92px; border-radius: 50%; object-fit: cover; border: 4px solid #fff; background: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 50px; flex: none; }
.pf-hi { margin: 0; font-size: 15px; opacity: .9; } .pf-name { margin: 0; font: 700 30px Arial, sans-serif; } .pf-age { margin: 0; font-size: 15px; }
.pf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 14px; }
.pf-box { background: #F3F8FC; border-radius: 12px; padding: 10px 12px; break-inside: avoid; }
.pf-box h4 { margin: 0 0 4px; font-size: 14px; color: #0B2F4F; } .pf-box p { margin: 0; font-size: 13px; line-height: 1.45; }
.pf-wide { grid-column: 1 / -1; }
.pf-sc { display: inline-block; margin: 2px 8px 2px 0; }

/* Requerimentos */
.rq-prev { white-space: pre-wrap; font: 14px/1.55 Georgia, serif; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px; max-height: 560px; overflow: auto; margin: 0 0 12px; }

/* ---------- Impressão das ferramentas novas ---------- */
.print-area .pr-tip { text-align: center; font-size: 12px; color: #555; margin: 0 0 10px; }
.print-area .pr-h2 { font: 700 16px Arial, sans-serif; color: #12324F; margin: 14px 0 6px; }
.pr-pc { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.pr-pcc { border: 1px dashed #999; height: 40mm; display: flex; flex-direction: column; align-items: center; justify-content: center; page-break-inside: avoid; }
.pr-pcc .em { font-size: 52px; line-height: 1.1; } .pr-pcc .tx { font: 700 15px Arial, sans-serif; color: #12324F; text-align: center; padding: 0 4px; }
.pr-em { display: flex; flex-direction: column; gap: 6px; }
.pr-eml { display: grid; grid-template-columns: 16mm 22mm 1fr; align-items: center; border: 3px solid; border-radius: 12px; padding: 6px 10px; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.pr-emn { width: 13mm; height: 13mm; border-radius: 50%; color: #fff; font: 700 22px Arial, sans-serif; display: flex; align-items: center; justify-content: center; }
.pr-emf { font-size: 46px; text-align: center; } .pr-emt strong { font-size: 18px; } .pr-emt p { margin: 2px 0; font-size: 13px; }
.pr-cc-pair { display: flex; gap: 0; margin: 0 0 8mm; justify-content: center; }
.pr-cc-pair .cc-card { border: 0.3mm dashed #888; outline: 0; }
.pr-crg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pr-cr { border: 2px solid #D8E5EF; border-radius: 10px; padding: 6px 10px; page-break-inside: avoid; }
.pr-cr h3 { margin: 0 0 4px; font: 700 15px Arial, sans-serif; color: #12324F; } .pr-cr ul { margin: 0; padding-left: 1.1em; font-size: 13px; }
.pr-cr-evi { border-color: #F2C4CB; } .pr-cr-aju { border-color: #BFE3CF; } .pr-cr-sin { border-color: #F5D3B3; }
.pr-crg2 { margin-top: 8px; border-top: 2px solid #D8E5EF; padding-top: 6px; font-size: 14px; } .pr-crg2 p { margin: 3px 0; }
.pr-hs { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.pr-hsp { border: 1px dashed #999; min-height: 62mm; padding: 6mm; text-align: center; position: relative; page-break-inside: avoid; }
.pr-hsp .em { font-size: 64px; } .pr-hsp p { font: 700 17px/1.35 Arial, sans-serif; color: #12324F; margin: 6px 0 0; }
.pr-hsn { position: absolute; top: 3mm; left: 4mm; font-size: 12px; color: #888; }
.pr-fx { text-align: center; } .pr-fxh { font: 700 20px Arial, sans-serif; margin: 0; }
.pr-fxp { display: inline-flex; flex-direction: column; border: 3px dashed #E07B24; border-radius: 16px; padding: 6px 30px; margin: 10px 0; font: 700 22px Arial, sans-serif; } .pr-fxp span { font-size: 70px; }
.pr-fxs { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 10px 0; }
.pr-fxs div { width: 26mm; height: 26mm; border-radius: 50%; border: 3px dashed #999; display: flex; align-items: center; justify-content: center; font: 700 20px Arial, sans-serif; color: #bbb; }
.pr-fxk { display: flex; gap: 0; justify-content: center; flex-wrap: wrap; } .pr-fxk div { width: 24mm; height: 24mm; border: 1px dashed #999; display: flex; align-items: center; justify-content: center; font-size: 48px; }
.print-area td.mc-pn { font-weight: 700; color: #B35A00; }
.pr-lines { height: 40mm; background: repeating-linear-gradient(#fff 0 9mm, #bbb 9mm calc(9mm + 1px)); }
.pr-rq { white-space: pre-wrap; font: 12.5pt/1.6 Georgia, serif; color: #000; }
.pr-break { page-break-after: always; break-after: page; height: 0; }
@media print { .print-area .pf-sheet, .print-area .cc-card { box-shadow: none; } }

@media (max-width: 760px) {
  .tool-share { grid-template-columns: 1fr; padding: 20px; }
  .tm-wrap, .em-wrap, .cc-cols, .pf-cols, .rq-cols { grid-template-columns: 1fr; }
  .mc-it { flex-direction: column; align-items: flex-start; }
  .hs-txt { font-size: 20px; } .hs-em { font-size: 84px; }
  .pf-grid { grid-template-columns: 1fr; }
  .fx-slot { width: 60px; height: 60px; }
}

/* ===== Melhorias e ferramentas de 2026-10-20 ===== */

/* --- agenda-casa-escola.css --- */
/* Agenda casa-escola (prefixo ce-, impressão pr-ce*) */
.ce-lead { font-size: 16px; margin: 0 0 12px; }
.ce-edit { background: #FFF7E0; border: 1px solid #F1D48A; border-radius: 10px; padding: 8px 12px; font-size: 14px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ce-f { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin: 0 0 12px; background: #fff; }
.ce-f legend { font-weight: 700; color: var(--blue-dark); padding: 0 4px; font-size: 16px; }
.ce-f legend .t-muted { font-weight: 400; font-size: 13px; }
.ce-ops { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.ce-op { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 4px; min-height: 84px; background: #fff; border: 2px solid var(--line); border-radius: 12px; padding: 8px 6px; cursor: pointer; font: 13px/1.25 Arial, sans-serif; color: var(--text, #1d2a36); text-align: center; }
.ce-op:hover { border-color: var(--teal); }
.ce-op:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.ce-op .ce-ic { font-size: 30px; line-height: 1.1; }
.ce-op.on { background: #E3F2EA; border-color: #1F8A5B; box-shadow: inset 0 0 0 1px #1F8A5B; font-weight: 700; }
.ce-note, .ce-txt { width: 100%; box-sizing: border-box; margin-top: 8px; font: 15px Arial, sans-serif; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; }
.ce-txt { margin-top: 0; resize: vertical; }
.ce-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.ce-acts .ce-wa { background: #1F8A5B; border-color: #1F8A5B; color: #fff; }
.ce-msg { min-height: 1.4em; margin: 8px 0; font-weight: 700; color: #11643A; }
.ce-prev { white-space: pre-wrap; font: 14px/1.5 Arial, sans-serif; background: #F0F7F2; border: 1px solid #CFE6D7; border-radius: 10px; padding: 12px; margin: 10px 0 0; }
.ce-filt { margin-bottom: 12px; }
.ce-hist { list-style: none; margin: 0; padding: 0; }
.ce-hist li { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; background: #fff; }
.ce-hh { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ce-badge { font-size: 12px; font-weight: 700; border-radius: 999px; padding: 3px 10px; }
.ce-badge.ce-casa { background: #FFF1DD; color: #8A4B00; }
.ce-badge.ce-escola { background: #E1EEFA; color: #0B2F4F; }
.ce-res { margin: 6px 0; font-size: 14px; }
.ce-hb { display: flex; flex-wrap: wrap; gap: 6px; }
.ce-imp { position: relative; display: inline-block; }
.ce-imp:focus-within { outline: 3px solid var(--blue); outline-offset: 2px; }

@media (max-width: 760px) {
  .ce-ops { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .ce-op { min-height: 76px; font-size: 12px; padding: 6px 3px; }
  .ce-op .ce-ic { font-size: 26px; }
  .ce-acts .t-btn { flex: 1 1 45%; }
}
@media (max-width: 380px) { .ce-ops { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Impressão: bilhete do dia */
.pr-ce { border: 3px solid #0A64AD; border-radius: 16px; padding: 10px 16px 14px; font-family: Arial, sans-serif; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.pr-ce-h { display: flex; gap: 12px; align-items: center; border-bottom: 2px solid #D8E5EF; padding-bottom: 8px; margin-bottom: 8px; }
.pr-ce-ic { font-size: 34px; }
.print-area .pr-ce-h h1 { margin: 0; text-align: left; font-size: 22px; }
.pr-ce-h p { margin: 2px 0 0; font-size: 14px; color: #333; }
.print-area .pr-ce-t { font-size: 14px; }
.print-area .pr-ce-t th { width: 34%; background: #F3F8FC; color: #12324F; border-color: #D8E5EF; }
.print-area .pr-ce-t td { border-color: #D8E5EF; }
.pr-ce-n { color: #444; font-style: italic; margin-top: 3px; }
.pr-ce-por { text-align: right; font-style: italic; margin: 10px 0 0; }

/* Impressão: folha semanal em branco */
.pr-cew { font-family: Arial, sans-serif; }
.print-area .pr-cew h1 { font-size: 22px; margin-bottom: 4px; }
.print-area .pr-cew-t { table-layout: fixed; font-size: 10px; }
.print-area .pr-cew-t th, .print-area .pr-cew-t td { border: 1px solid #888; padding: 3px; }
.print-area .pr-cew-t thead th { text-align: center; background: #E1EEFA; color: #12324F; font-size: 12px; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.print-area .pr-cew-t thead th span { font-weight: 400; font-size: 10px; }
.print-area .pr-cew-t th.pr-cew-l { width: 30%; text-align: left; font-size: 11px; color: #12324F; }
.pr-cew-lg { font-weight: 400; font-size: 8.5px; color: #444; margin-top: 2px; line-height: 1.3; }
.pr-cew-o { display: inline-flex; align-items: center; gap: 1px; margin: 1px 3px 1px 0; font-size: 13px; white-space: nowrap; }
.pr-cew-o i { display: inline-block; width: 8px; height: 8px; border: 1px solid #555; border-radius: 2px; }
.print-area .pr-cew-rt td, .print-area td.pr-cew-tx { height: 22mm; }
.print-area td.pr-cew-as { height: 9mm; }
.print-area .pr-cew-t tr { page-break-inside: avoid; }

/* --- comidas-seguras.css --- */
/* Comidas seguras e novas descobertas (comidas.js) — prefixo cm- */
.cm-sum div { font-size: 14px; color: var(--blue-dark); }
.cm-intro { margin: 0 0 14px; }
.cm-groups { margin-bottom: 4px; }
.cm-groups .t-chip { font-weight: 700; color: var(--blue-dark); }
.cm-n { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 999px; background: #1F8A5B; color: #fff; font-size: 12px; line-height: 20px; text-align: center; }
.cm-foods { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.cm-food { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: #fff; }
.cm-food.cm-s-sim { border-color: #1F8A5B; background: #EEF8F2; }
.cm-food.cm-s-as { border-color: #C98A12; background: #FFF8E8; }
.cm-food.cm-s-nao { border-color: #C9CED3; background: #F4F5F6; }
.cm-fh { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.cm-em { font-size: 30px; line-height: 1; }
.cm-fn { font-weight: 700; color: var(--blue-dark); flex: 1; }
.cm-st { display: flex; gap: 4px; flex-wrap: wrap; }
.cm-b { flex: 1 1 0; min-width: 76px; font: 700 13px Arial, sans-serif; border: 1px solid var(--line); background: #fff; color: #333; border-radius: 8px; padding: 7px 4px; cursor: pointer; }
.cm-b:hover { border-color: var(--teal); }
.cm-b-sim.on { background: #1F8A5B; border-color: #1F8A5B; color: #fff; }
.cm-b-as.on { background: #8A5A00; border-color: #8A5A00; color: #fff; }
.cm-b-nao.on { background: #5F6B76; border-color: #5F6B76; color: #fff; }
.cm-ch { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.cm-chl { font-size: 12px; font-weight: 700; color: var(--muted); width: 100%; }
.cm-tag { font: 12px Arial, sans-serif; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 4px 9px; cursor: pointer; color: #333; }
.cm-tag.on { background: #0057A8; border-color: #0057A8; color: #fff; }
.cm-det { width: 100%; margin-top: 4px; box-sizing: border-box; border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; font-size: 13px; }
.cm-del { border: 0; background: none; color: #8A1C1C; cursor: pointer; font-size: 14px; padding: 2px 6px; }
.cm-empty { background: var(--box); border-radius: 10px; padding: 14px 16px; }

.cm-sugs { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; margin-bottom: 14px; }
.cm-sug { border: 1px solid var(--box-line, #D8E5EF); background: var(--box); border-radius: 12px; padding: 12px 14px; }
.cm-sgh { display: flex; gap: 10px; align-items: flex-start; }
.cm-sgh .cm-em { font-size: 38px; }
.cm-sgh strong { font-size: 17px; color: var(--blue-dark); }
.cm-pill { display: inline-block; margin-left: 6px; font-size: 12px; background: #FFF1CC; color: #6B4700; border-radius: 999px; padding: 2px 8px; }
.cm-why { margin: 4px 0 0; font-size: 14px; }
.cm-how { font-size: 14px; margin: 8px 0 10px; color: #333; }

.cm-ladder-key { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 4px; font-size: 14px; }
.cm-ladder-key li { background: var(--box); border-radius: 8px; padding: 6px 10px; }
.cm-disc { border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin-bottom: 14px; background: #fff; }
.cm-dh { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.cm-dh h3 { margin: 0; flex: 1; font: 700 19px Arial, sans-serif; color: var(--blue-dark); }
.cm-rungs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin-bottom: 12px; align-items: end; }
.cm-rung { text-align: center; border: 2px solid var(--line); border-radius: 10px; padding: 6px 2px; background: #fff; color: var(--muted); }
.cm-rung:nth-child(1) { min-height: 54px; } .cm-rung:nth-child(2) { min-height: 62px; } .cm-rung:nth-child(3) { min-height: 70px; }
.cm-rung:nth-child(4) { min-height: 78px; } .cm-rung:nth-child(5) { min-height: 86px; } .cm-rung:nth-child(6) { min-height: 94px; }
.cm-rung span { display: block; font-size: 24px; }
.cm-rung small { display: block; font-size: 11px; line-height: 1.2; }
.cm-rung.on { border-color: #1F8A5B; background: #E3F4EA; color: #11643A; font-weight: 700; }
.cm-win { background: #EEF8F2; border-radius: 10px; padding: 10px 12px; color: #11643A; }
.cm-tryf { margin-bottom: 8px; }
.cm-hist { list-style: none; padding: 0; margin: 6px 0; font-size: 14px; }
.cm-hist li { border-bottom: 1px dashed var(--line); padding: 4px 0; }
.cm-hist li span { font-weight: 700; color: var(--blue-dark); }

.cm-alert { margin-top: 20px; border-left: 5px solid #C8102E; background: #FDF1F2; border-radius: 10px; padding: 12px 16px; }
.cm-alert strong { color: #8A1C1C; }
.cm-alert p { margin: 6px 0 0; font-size: 14px; }

@media (max-width: 760px) {
  .cm-foods, .cm-sugs { grid-template-columns: 1fr; }
  .cm-rungs { grid-template-columns: repeat(3, 1fr); }
  .cm-rung { min-height: 0 !important; }
}

/* Impressão: "Meu cardápio seguro" */
.print-area .pr-cm { font-family: Arial, sans-serif; font-size: 12px; color: #222; }
.print-area .pr-cmobs { border: 2px solid #C8102E; border-radius: 8px; padding: 6px 10px; margin: 0 0 8px; }
.print-area .pr-cms { border: 2px solid #1E4E79; border-radius: 12px; padding: 6px 12px 8px; margin-bottom: 8px; page-break-inside: avoid; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.print-area .pr-cms h2 { font: 700 15px Arial, sans-serif; margin: 2px 0 6px; color: #12324F; }
.print-area .pr-cm-sim { border-color: #1F8A5B; background: #F1FAF4; }
.print-area .pr-cm-sim > div, .print-area .pr-cm-as > div { break-inside: avoid; }
.print-area .pr-cm-sim, .print-area .pr-cm-as { columns: 2; column-gap: 16px; }
.print-area .pr-cm-sim h2, .print-area .pr-cm-as h2 { column-span: all; }
.print-area .pr-cm-as { border-color: #C98A12; background: #FFF9EC; }
.print-area .pr-cm-dis { border-color: #0A64AD; background: #F3F8FC; }
.print-area .pr-cm-nao { border-color: #999; }
.print-area .pr-cm-tips { border-color: #1E4E79; }
.print-area .pr-cmg h3 { font: 700 13px Arial, sans-serif; margin: 4px 0 2px; color: #12324F; }
.print-area .pr-cms ul { margin: 0; padding-left: 16px; }
.print-area .pr-cms li { margin: 1px 0; }
.print-area .pr-cms li span { color: #555; }
.print-area .pr-cmal { font-size: 11px; color: #8A1C1C; text-align: center; margin: 6px 0 0; }

/* --- crise-extra.css --- */
/* Plano de crise — extras (kit de regulação, plano de saída, modo adulto e modo de bolso). Prefixos: cr- (tela), cbk- (impressão de bolso) */
.cr-mode { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; background: #F3F8FC; border: 1px solid #D8E5EF; border-radius: 12px; padding: 10px 14px; margin-bottom: 14px; }
.cr-mode .t-chip { font-weight: 700; font-size: 15px; }
.cr-mode .t-muted { margin: 0; font-size: 14px; }
.cr-kit { border-color: #CFE0F2; background: #FBFDFF; }
.cr-sai { border-color: #F5D3B3; background: #FFFCF8; }
.cr-saif { margin-bottom: 10px; }

/* Impressão completa: cores das caixas novas */
.pr-cr-kit { border-color: #CFE0F2; }
.pr-cr-sai { border-color: #F5D3B3; }
.pr-cr-sai p { margin: 0 0 3px; font-size: 13px; }

/* Modo de bolso: meia folha A4 (186 x 130 mm dentro da margem), duas metades que viram A6 ao dobrar */
.print-area.pk { font-family: Arial, sans-serif; color: #12324F; }
.cbk-sheet { width: 186mm; height: 128mm; display: grid; grid-template-columns: 1fr 1px 1fr; border: 1px dashed #777; box-sizing: border-box; page-break-inside: avoid; break-inside: avoid; overflow: hidden; }
.cbk-half { padding: 4mm 5mm; font-size: 8.6pt; line-height: 1.3; overflow: hidden; }
.cbk-fold { border-left: 1px dashed #999; }
.cbk-title { font: 700 11.5pt/1.25 Arial, sans-serif; text-align: center; margin: 0 0 2.5mm; color: #003B71; }
.cbk-title b { font-size: 13pt; color: #0B2F4F; }
.cbk-b { border: 1.5px solid #D8E5EF; border-radius: 6px; padding: 1.5mm 2.5mm; margin-bottom: 2mm; }
.cbk-b h3 { margin: 0 0 1mm; font: 700 9.5pt Arial, sans-serif; color: #12324F; }
.cbk-b ul { margin: 0; padding-left: 1em; }
.cbk-b p, .cbk-half > p { margin: 0 0 1.2mm; }
.cbk-aju { border-color: #BFE3CF; } .cbk-evi { border-color: #F2C4CB; } .cbk-sin { border-color: #F5D3B3; }
.cbk-sai { border-color: #F5D3B3; } .cbk-kit { border-color: #CFE0F2; }
.cbk-sos { font-weight: 700; color: #B3261E; margin-top: 2mm !important; }
.cbk-cut { width: 186mm; text-align: center; font-size: 8pt; color: #777; margin: 1.5mm 0 0; }

@media (max-width: 760px) {
  .cr-mode { flex-direction: column; align-items: flex-start; }
}

/* --- diario-extra.css --- */
/* Diário de comportamento e sono — extras: modo adulto, bateria de energia, gráfico de energia/humor */
.dx-mode { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; background: var(--box); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 14px; }
.dx-mode .t-chip { font-weight: 700; }
.dx-mode .t-muted { font-size: 13px; }
.dx-opt { margin: 4px 0 0; font-size: 13px; }

/* Bateria (1 a 5) */
.dx-bat { display: inline-flex; gap: 2px; align-items: center; padding: 2px; border: 2px solid #5B6B7A; border-radius: 4px; position: relative; margin-right: 4px; vertical-align: middle; }
.dx-bat::after { content: ""; position: absolute; right: -5px; top: 50%; width: 3px; height: 8px; margin-top: -4px; background: #5B6B7A; border-radius: 0 2px 2px 0; }
.dx-bat i { display: block; width: 5px; height: 14px; border-radius: 1px; background: #EAF1F7; }
.dx-bat.l1 i.f { background: #C8102E; }
.dx-bat.l2 i.f { background: #E07B24; }
.dx-bat.l3 i.f { background: #D9A400; }
.dx-bat.l4 i.f, .dx-bat.l5 i.f { background: #1F8A5B; }
.dx-bat.sm i { width: 4px; height: 10px; }
.dx-bscale label { min-width: 62px; padding: 0 6px; }
.dx-bscale span { display: inline-flex; align-items: center; gap: 4px; }
.dx-bscale small { font: 700 14px Arial, sans-serif; color: var(--blue-dark); }
.dx-n { font-size: 14px; color: var(--muted); font-weight: 700; }
.dg-sum strong .dx-bat { margin-right: 2px; }

/* Gráfico de energia e humor */
.dx-ch-t { margin-top: 22px; }
.dx-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: var(--muted); margin: 0 0 6px; }
.dx-legend span { display: inline-flex; align-items: center; gap: 6px; }
.dx-legend i { display: inline-block; width: 22px; height: 3px; border-radius: 2px; }
.dx-legend i.dash { height: 0; border-top: 3px dashed; background: none; }
.dx-chart { border: 1px solid var(--line); border-radius: 10px; padding: 6px; background: #fff; }
.dx-chart svg { display: block; max-width: 100%; height: auto; margin: 0 auto; }
.dx-scroll { overflow-x: auto; }

@media (max-width: 760px) {
  .dx-bscale label { min-width: 54px; }
  .dx-mode { flex-direction: column; align-items: flex-start; }
}

/* Impressão */
.print-area .dx-print-chart { margin: 8px 0 12px; page-break-inside: avoid; }
.print-area .dx-print-chart .t-section { font: 700 14px Arial, sans-serif; margin: 6px 0 4px; color: #12324F; }
.print-area .dx-nochart { display: none; }
.print-area .dx-chart { border-color: #999; }
.print-area .dx-bat, .print-area .dx-legend i, .print-area .dx-chart svg { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.print-area .dg-sum { grid-template-columns: repeat(4, 1fr); gap: 6px; }
.print-area .dg-sum div { padding: 6px 8px; border: 1px solid #ccc; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.print-area .dg-sum strong { font-size: 18px; }

/* --- direitos-extra.css --- */
/* Guia de direitos: Calculadora do BPC (prefixo bp-). Juntar ao tools.css ou carregar depois dele. */
.bp-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr) minmax(0, 1.8fr) auto; gap: 10px; align-items: end; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-bottom: 10px; }
.bp-row .t-field select { width: 100%; }
.bp-del { align-self: end; margin-bottom: 2px; }
.bp-nums { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0 0 14px; }
.bp-nums div { background: var(--box); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.bp-nums span { display: block; font-size: 13px; color: var(--muted); }
.bp-nums strong { display: block; font-size: 20px; color: var(--blue-dark); margin-top: 2px; }
.bp-bar { position: relative; height: 18px; background: #E9EEF3; border-radius: 999px; margin: 6px 0 30px; }
.bp-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; transition: width .3s ease; }
.bp-fill.bp-q { background: #1F8A5B; }
.bp-fill.bp-m { background: #C98A12; }
.bp-fill.bp-a { background: #6B7C8F; }
.bp-mark { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--blue-dark); }
.bp-mark em { position: absolute; top: 24px; left: 50%; transform: translateX(-50%); font: 700 12px Arial, sans-serif; font-style: normal; color: var(--blue-dark); white-space: nowrap; }
.bp-res p { margin: 0; font-size: 15px; }
.bp-rq { border-left-color: #1F8A5B; }
.bp-rm { border-left-color: #C98A12; background: #FFF8EA; }
.bp-ra { border-left-color: #6B7C8F; }
.bp-list { margin: 8px 0; padding-left: 20px; }
.bp-list li { margin: 4px 0; }
.bp-info { margin-top: 16px; }
.bp-info p { margin: 0 0 10px; font-size: 15px; }
.bp-info p:last-child { margin-bottom: 0; }
.bp-who { margin: 10px 0 14px; }
.bp-who p { margin: 8px 0 0; font-size: 15px; }
@media (prefers-reduced-motion: reduce) { .bp-fill { transition: none; } }
@media (max-width: 760px) {
  .bp-row { grid-template-columns: 1fr; }
  .bp-del { justify-self: end; }
  .bp-nums { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media print {
  .bp-bar { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .bp-nums div { border-color: #999; }
}

/* --- emocoes-extra.css --- */
/* Termômetro das emoções — extra: cantinho calmo (ec-) e mapa sensorial (es-). Junte ao final de assets/tools/tools.css */
.em-tabs button { font-size: 15px; padding: 9px 16px; }

/* Cantinho calmo: configuração */
.ec-intro { background: #F3F8FC; border: 1px solid #D8E5EF; border-radius: 14px; padding: 12px 16px; margin-bottom: 8px; }
.ec-intro p { margin: 0; }
.ec-ok { background: #E8F5EE; border: 1px solid #BFE3CF; color: #14593A; border-radius: 12px; padding: 12px 16px; margin-bottom: 12px; font-weight: 700; }
.ec-pal { display: inline-flex; align-items: center; gap: 6px; }
.ec-sw { width: 18px; height: 18px; border-radius: 50%; background: linear-gradient(135deg, var(--a) 50%, var(--b) 50%); border: 1px solid rgba(0,0,0,.2); }
.ec-go { font-size: 18px; padding: 14px 22px; }

/* Cantinho calmo: tela cheia */
html.ec-lock, html.ec-lock body { overflow: hidden; }
.ec-calm { position: fixed; inset: 0; z-index: 1000; background: #0E2A47; color: #fff; overflow: hidden; font-family: Arial, sans-serif; }
.ec-cv { position: absolute; inset: 0; display: block; touch-action: none; }
.ec-hint { position: absolute; top: max(16px, env(safe-area-inset-top)); left: 0; right: 0; margin: 0; text-align: center; font-size: 17px; color: rgba(255,255,255,.85); text-shadow: 0 1px 4px rgba(0,0,0,.4); pointer-events: none; padding: 0 16px; }
.ec-num { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); text-align: center; font: 700 clamp(80px, 26vmin, 220px)/1 Arial, sans-serif; color: rgba(255,255,255,.9); text-shadow: 0 2px 18px rgba(0,0,0,.25); pointer-events: none; opacity: .9; }
.ec-num.on { animation: ecNum 2.6s ease-in-out; }
@keyframes ecNum { 0% { opacity: 0; } 25% { opacity: .9; } 75% { opacity: .9; } 100% { opacity: .15; } }
.ec-bar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; padding: 12px 12px max(14px, env(safe-area-inset-bottom)); background: linear-gradient(transparent, rgba(0,0,0,.35)); }
.ec-b { min-height: 52px; padding: 10px 18px; border-radius: 999px; border: 2px solid rgba(255,255,255,.7); background: rgba(255,255,255,.14); color: #fff; font: 700 16px Arial, sans-serif; cursor: pointer; touch-action: manipulation; }
.ec-b:hover { background: rgba(255,255,255,.24); }
.ec-b:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.ec-done { background: #fff; color: #0B2F4F; border-color: #fff; font-size: 18px; padding: 12px 24px; }
.ec-done:hover { background: #E6F2FB; }
.ec-x { width: 52px; padding: 0; font-size: 20px; }

/* Mapa dos gatilhos sensoriais */
.es-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.es-sense { margin: 0; }
.es-it { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 0; border-top: 1px solid #E6EEF5; }
.es-it:first-of-type { border-top: 0; }
.es-lb { font-size: 15px; color: #0B2F4F; }
.es-bt { display: flex; gap: 6px; flex: none; }
.es-b { min-height: 38px; padding: 6px 10px; border-radius: 999px; border: 2px solid #D8E5EF; background: #fff; color: #0B2F4F; font: 700 13px Arial, sans-serif; cursor: pointer; white-space: nowrap; }
.es-b.es-i.on { background: #FCE8EB; border-color: #C8102E; color: #8A0B20; }
.es-b.es-c.on { background: #E8F5EE; border-color: #1F8A5B; color: #14593A; }
.es-b:focus-visible { outline: 3px solid #0A64AD; outline-offset: 2px; }
.es-kit { margin-top: 16px; background: #F3F8FC; border: 2px solid #D8E5EF; border-radius: 14px; padding: 14px 18px; }
.es-kit p { margin: 4px 0; }
.es-kitl { margin: 0; padding-left: 1.2em; font-size: 16px; }
.es-kitl li { margin: 3px 0; }

/* Impressão: mapa sensorial no cartaz */
.pr-es { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-top: 10px; }
.pr-esb { border: 2px solid #D8E5EF; border-radius: 10px; padding: 6px 10px; page-break-inside: avoid; break-inside: avoid; }
.pr-esb h3 { margin: 0 0 4px; font: 700 15px Arial, sans-serif; color: #12324F; }
.pr-esb ul { margin: 0; padding-left: 1.1em; font-size: 12.5px; }
.pr-esi { border-color: #F2C4CB; } .pr-esc { border-color: #BFE3CF; } .pr-esk { border-color: #0A64AD; }

@media (max-width: 760px) {
  .es-grid { grid-template-columns: 1fr; }
  .es-it { flex-direction: column; align-items: flex-start; }
  .es-bt { width: 100%; } .es-b { flex: 1; }
  .ec-b { flex: 1 1 auto; } .ec-x { flex: 0 0 52px; }
}
@media (prefers-reduced-motion: reduce) {
  .ec-num.on { animation: none; }
}

/* --- historia-extra.css --- */
/* Histórias sociais — extras (criar história do zero). Prefixo: hs- */
.hs-newrow { align-items: center; margin: 4px 0 12px; }
.hs-tag { font-size: 13px; font-weight: 700; color: #1F8A5B; background: #E8F5EE; border: 1px solid #BFE3CF; border-radius: 999px; padding: 4px 10px; }
.hs-er { align-items: center; flex-wrap: nowrap; }
.hs-pn { min-width: 22px; font-weight: 700; color: var(--muted); text-align: right; }
.hs-ops { display: inline-flex; gap: 4px; }
.hs-ops .t-btn { min-width: 36px; padding-left: 8px; padding-right: 8px; }
.hs-figs { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; margin: 12px 0 6px; }
.hs-figs .t-muted { margin: 0 6px 0 0; font-size: 14px; }
.hs-fig { font-size: 24px; line-height: 1; width: 42px; height: 42px; border: 1px solid #D8E5EF; border-radius: 10px; background: #fff; cursor: pointer; }
.hs-fig:hover, .hs-fig:focus-visible { border-color: var(--blue); background: #F3F8FC; }
.hs-mine #hs-title { padding: 9px; font: 700 17px Arial, sans-serif; }

@media (max-width: 760px) {
  .hs-er { flex-wrap: wrap; }
  .hs-er .hs-t { flex-basis: 100%; order: 3; }
  .hs-ops { margin-left: auto; }
}

/* --- jogo-das-emocoes.css --- */
/* Jogo das emoções (prefixo je-, impressão pr-je*) */
.je-face { display: block; width: 100%; height: auto; }
.je-set { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.je-lv, .je-tg { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.je-lv small { font-weight: 400; color: var(--muted); }
.je-total { font: 700 16px Arial, sans-serif; color: #8A5A00; background: #FFF4D6; border-radius: 999px; padding: 6px 12px; }
.je-start { display: grid; grid-template-columns: 180px 1fr; gap: 22px; align-items: center; background: var(--box); border-radius: 16px; padding: 18px; }
.je-start h2 { font: 700 26px Arial, sans-serif; color: var(--blue-dark); margin: 0 0 6px; }
.je-start p { margin: 0 0 10px; }
.je-go { font-size: 20px; padding: 12px 28px; border-radius: 999px; }
.je-cores { display: flex; gap: 6px; }
.je-cor { width: 36px; height: 36px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); cursor: pointer; }
.je-cor.on { box-shadow: 0 0 0 3px var(--blue); }
.je-fig { font-size: 96px; line-height: 1; text-align: center; }

.je-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-weight: 700; color: var(--blue-dark); margin-bottom: 12px; }
.je-bar { flex: 1 1 120px; height: 10px; background: var(--box); border-radius: 999px; overflow: hidden; border: 1px solid var(--line); }
.je-bar i { display: block; height: 100%; background: #1F8A5B; transition: width .4s; }
.je-q { text-align: center; }
.je-stage { width: 230px; max-width: 70%; margin: 0 auto; }
.je-stage .je-fig { font-size: 110px; }
.je-sit { font: 700 22px/1.35 Arial, sans-serif; color: var(--blue-dark); margin: 8px 0 0; }
.je-stage.je-st-sit { width: auto; max-width: 560px; }
.je-ask { font: 700 24px Arial, sans-serif; color: var(--blue-dark); margin: 12px 0 6px; }
.je-hear { margin-bottom: 10px; }
.je-ops { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 620px; margin: 6px auto 0; }
.je-op { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 76px; background: #fff; border: 3px solid var(--line); border-radius: 16px; padding: 10px 6px; cursor: pointer; font: 700 19px Arial, sans-serif; color: var(--blue-dark); }
.je-op .je-face { width: 78px; }
.je-op:hover { border-color: var(--teal); }
.je-op:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.je-op.no { opacity: .45; border-style: dashed; cursor: default; }
.je-op.ok { background: #E3F2EA; border-color: #1F8A5B; }
.je-fb { min-height: 2.6em; margin-top: 12px; }
.je-ok { font: 700 19px Arial, sans-serif; color: #11643A; margin: 0 0 4px; }
.je-pts { display: inline-block; background: #FFF4D6; color: #8A5A00; border-radius: 999px; padding: 1px 10px; font-size: 15px; }
.je-try { font-size: 17px; color: #6B4A00; background: #FFF7E0; border: 1px solid #F1D48A; border-radius: 12px; padding: 10px 14px; display: inline-block; max-width: 560px; margin: 0; }
.je-next { font-size: 18px; padding: 11px 26px; border-radius: 999px; margin-top: 6px; }
.je-stage.yay { animation: je-pop .5s ease-out; }
@keyframes je-pop { 0% { transform: scale(1); } 45% { transform: scale(1.08); } 100% { transform: scale(1); } }

.je-end { text-align: center; padding: 10px 0; }
.je-end h2 { font: 700 28px Arial, sans-serif; color: var(--blue-dark); margin: 0 0 6px; }
.je-big { font-size: 70px; margin: 0; line-height: 1.1; }
.je-stars span { font-size: 44px; color: #D5DBE1; }
.je-stars span.on { color: #F6B400; }
.je-start .je-stars span, .t-muted .je-stars span { font-size: 20px; }
.je-note { margin-top: 18px; }

.je-lead { font-size: 16px; margin: 0 0 14px; }
.je-know { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.je-kc { display: flex; flex-direction: column; align-items: center; gap: 6px; background: #fff; border: 2px solid var(--line); border-radius: 16px; padding: 12px 10px; cursor: pointer; text-align: center; font: 14px/1.35 Arial, sans-serif; color: var(--muted); }
.je-kc .je-face { width: 110px; }
.je-kc strong { font-size: 18px; color: var(--blue-dark); }
.je-kc:hover { border-color: var(--teal); }
.je-kc:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.je-ideas { margin-top: 16px; }
.je-ideas h3 { margin: 0 0 6px; color: var(--blue-dark); }
.je-ideas ul { margin: 0; padding-left: 1.2em; }
.je-ideas li { margin-bottom: 4px; }

@media (prefers-reduced-motion: reduce) {
  .je-stage.yay { animation: none; }
  .je-bar i { transition: none; }
}
@media (max-width: 760px) {
  .je-start { grid-template-columns: 1fr; text-align: center; }
  .je-start .je-face, .je-start .je-fig { width: 130px; margin: 0 auto; }
  .je-start .t-row { justify-content: center; }
  .je-set { justify-content: center; }
  .je-ops { grid-template-columns: 1fr; gap: 8px; }
  .je-op { flex-direction: row; justify-content: flex-start; padding: 8px 14px; min-height: 60px; }
  .je-op .je-face { width: 52px; }
  .je-stage { width: 190px; }
  .je-stage.je-st-sit { width: auto; }
  .je-sit { font-size: 19px; }
  .je-know { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .je-kc .je-face { width: 90px; }
}

/* Impressão: cartas (3 x 4 por folha A4) */
.pr-je { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.pr-je-c { border: 1px dashed #999; height: 62mm; box-sizing: border-box; padding: 4mm; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2mm; page-break-inside: avoid; break-inside: avoid; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.pr-je-c .je-face { width: 40mm; height: 40mm; }
.pr-je-c b { font: 700 17px Arial, sans-serif; color: #12324F; }
.pr-je-s .em { font-size: 46px; line-height: 1; }
.pr-je-s p { font: 700 14px/1.3 Arial, sans-serif; color: #12324F; text-align: center; margin: 0; }
.pr-je-s small { font-size: 11px; color: #666; }

/* --- medidor-de-energia.css --- */
/* Medidor de energia (bateria social) */
.en-wrap { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 26px; align-items: start; }
.en-side { position: sticky; top: 12px; background: #F3F8FC; border: 1px solid #D8E5EF; border-radius: 16px; padding: 18px 14px; text-align: center; }
.en-bat { position: relative; width: 120px; margin: 0 auto; }
.en-cap { width: 44px; height: 12px; margin: 0 auto; background: #0B2F4F; border-radius: 6px 6px 0 0; }
.en-body { position: relative; height: 230px; border: 6px solid #0B2F4F; border-radius: 18px; background: #fff; overflow: hidden; }
.en-fill { position: absolute; left: 0; right: 0; bottom: 0; background: #1F8A5B; transition: height .7s cubic-bezier(.3, .8, .4, 1), background-color .5s; }
.en-mid .en-fill { background: #E0A526; }
.en-low .en-fill { background: #E07B24; }
.en-over .en-fill { background: #C8102E; }
.en-over .en-body { border-color: #C8102E; animation: enPulse 1.2s ease-in-out infinite alternate; }
.en-val { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font: 800 22px/1.1 Arial, sans-serif; color: #0B2F4F; text-shadow: 0 0 6px #fff, 0 0 3px #fff; padding: 0 6px; }
@keyframes enPulse { to { box-shadow: 0 0 0 6px rgba(200, 16, 46, .18); } }
.en-lvl { font: 700 17px Arial, sans-serif; margin: 10px 0 2px; }
.en-when { font-size: 14px; color: var(--muted); margin: 0 0 8px; min-height: 1.3em; }
.en-t-ok { color: #11643A; }
.en-t-mid { color: #8A5A00; }
.en-t-low { color: #A4480A; }
.en-t-over { color: #C8102E; }
.en-simrow { justify-content: center; margin: 6px 0 10px; }
.en-alert { text-align: left; background: #FFF3E6; border: 2px solid #E07B24; border-radius: 12px; padding: 10px 12px; }
.en-alert strong { color: #8A2D0A; font-size: 16px; }
.en-alert p { margin: 6px 0; font-size: 14px; }
.en-alert .t-chip { font-size: 13px; padding: 5px 10px; }
.en-okmsg { background: #E8F5EE; border-radius: 12px; padding: 10px 12px; color: #11643A; font-weight: 700; font-size: 15px; text-align: left; }
.en-help { margin-top: -6px; }
.en-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.en-pick button { display: flex; flex-direction: column; align-items: center; gap: 2px; background: #fff; border: 1px solid #D8E5EF; border-radius: 12px; padding: 8px 6px; cursor: pointer; font: 13px/1.25 Arial, sans-serif; color: #0B2F4F; min-height: 92px; }
.en-pick button .em { font-size: 28px; line-height: 1.2; }
.en-pick button b { font-size: 14px; margin-top: auto; }
.en-pick button.down b { color: #A4480A; }
.en-pick button.up b { color: #11643A; }
.en-pick button.up { background: #F2FAF5; }
.en-pick button:hover { border-color: var(--blue); }
.en-plan { list-style: none; margin: 0; padding: 0; }
.en-plan li { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; border: 1px solid #D8E5EF; border-left: 6px solid #E07B24; background: #fff; border-radius: 12px; padding: 7px 10px; margin-bottom: 8px; transition: background-color .3s; }
.en-plan li.en-up { border-left-color: #1F8A5B; background: #F7FCF9; }
.en-plan li.en-cur { background: #DCEBF7; box-shadow: 0 0 0 2px #0A64AD; }
.en-plan .em { font-size: 28px; width: 38px; text-align: center; }
.en-n { flex: 1 1 140px; font-weight: 700; color: #0B2F4F; min-width: 0; }
.en-h { width: 104px; font: 14px Arial, sans-serif; padding: 5px; border: 1px solid #D8E5EF; border-radius: 6px; }
.en-c input { width: 62px; font: 700 15px Arial, sans-serif; padding: 5px; border: 1px solid #D8E5EF; border-radius: 6px; text-align: center; }
.en-after { min-width: 86px; font: 700 14px Arial, sans-serif; text-align: right; }
.en-plan .acts { display: flex; gap: 2px; margin-left: auto; }
.en-plan .acts button { background: none; border: 0; cursor: pointer; font-size: 15px; padding: 6px 7px; border-radius: 6px; color: #0B2F4F; }
.en-plan .acts button:hover { background: var(--box); }
.en-empty { border: 2px dashed #D8E5EF; border-radius: 12px; padding: 22px; text-align: center; color: var(--muted); }
.en-costs { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 6px 14px; margin: 8px 0; }
.en-costs label { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.en-costs label span { flex: 1; }
.en-costs input { width: 60px; font: 15px Arial, sans-serif; padding: 4px; border: 1px solid #D8E5EF; border-radius: 6px; text-align: center; }
.en-tips { margin-top: 18px; }
.en-tips h3 { margin: 0 0 6px; font-size: 17px; color: #0B2F4F; }
.en-tips ul { margin: 0 0 8px; padding-left: 1.2em; }
@media (max-width: 760px) {
  .en-wrap { grid-template-columns: 1fr; }
  .en-side { position: static; display: grid; grid-template-columns: 110px 1fr; gap: 6px 14px; text-align: left; align-items: center; }
  .en-side .en-bat { width: 90px; grid-row: span 3; }
  .en-side .en-body { height: 150px; border-width: 5px; }
  .en-side .en-val { font-size: 17px; }
  .en-side .en-simrow { justify-content: flex-start; margin: 0; }
  .en-side .en-alert, .en-side .en-okmsg, .en-side > .t-muted { grid-column: 1 / -1; }
  .en-after { min-width: 0; }
  .en-pick { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .en-pick button { min-height: 84px; font-size: 12px; padding: 6px 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .en-fill, .en-plan li { transition: none; }
  .en-over .en-body { animation: none; }
}

/* Impressão do plano do dia */
.pr-en-sub { text-align: center; font-size: 14px; margin: -6px 0 12px; }
.print-area table.pr-en { font-size: 14px; }
.print-area .pr-en th, .print-area .pr-en td { padding: 6px 8px; vertical-align: middle; }
.pr-en .em { font-size: 22px; }
.pr-en tr.pr-up td { background: #EEF8F2; }
.pr-enbar { display: inline-block; width: 70px; height: 12px; border: 1px solid #555; border-radius: 3px; vertical-align: middle; overflow: hidden; }
.pr-enbar span { display: block; height: 100%; background: #1F8A5B; }
.pr-enbar .pr-en-mid { background: #E0A526; }
.pr-enbar .pr-en-low { background: #E07B24; }
.pr-enbar .pr-en-over { background: #C8102E; }
.pr-ck { display: inline-block; width: 18px; height: 18px; border: 2px solid #1E4E79; border-radius: 4px; }
.pr-en-end { font-size: 16px; margin: 12px 0; }
.pr-en-rec { border: 2px solid #1F8A5B; border-radius: 12px; padding: 8px 14px; page-break-inside: avoid; }
.pr-en-rec h3 { margin: 0 0 4px; font-size: 16px; color: #11643A; }
.pr-en-rec p { margin: 0; font-size: 15px; }
.print-area .pr-en, .print-area .pr-en-rec, .print-area .pr-enbar { -webkit-print-color-adjust: exact; print-color-adjust: exact; }

/* --- planejador-de-saida.css --- */
/* Planejador de saída (saida.js) — prefixo sd- */
.sd-plans { margin-bottom: 8px; }
.sd-places { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; margin-bottom: 16px; }
.sd-place { display: flex; flex-direction: column; align-items: center; gap: 4px; font: 700 14px Arial, sans-serif; color: var(--blue-dark); background: #fff; border: 2px solid var(--line); border-radius: 12px; padding: 10px 6px; cursor: pointer; }
.sd-place span { font-size: 34px; line-height: 1.1; }
.sd-place:hover { border-color: var(--teal); }
.sd-place.on { border-color: #0057A8; background: var(--box); box-shadow: inset 0 0 0 1px #0057A8; }
.sd-avi { margin-bottom: 4px; }
.sd-tip { background: #FFF8E8; border-left: 4px solid #C98A12; border-radius: 8px; padding: 10px 14px; font-size: 15px; }
.sd-foot { margin-top: 18px; }

.sd-kit { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 6px; }
.sd-ki { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; background: #fff; cursor: pointer; font-size: 15px; }
.sd-ki span { font-size: 22px; }
.sd-ki input { width: 18px; height: 18px; margin: 0; }
.sd-ki.on { border-color: #1F8A5B; background: #EEF8F2; }
.sd-star { margin-left: auto; font-size: 14px; }

.sd-route { list-style: none; padding: 0; margin: 0 0 8px; counter-reset: sd; }
.sd-rs { display: flex; gap: 6px; align-items: center; border: 1px solid var(--line); border-radius: 10px; padding: 6px 8px; margin-bottom: 6px; background: #fff; counter-increment: sd; }
.sd-rs::before { content: counter(sd); font-weight: 700; color: #fff; background: #0057A8; border-radius: 50%; min-width: 24px; height: 24px; line-height: 24px; text-align: center; font-size: 13px; }
.sd-rs input { border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; font-size: 15px; }
.sd-rs input[type="time"] { width: 104px; }
.sd-re { width: 52px; text-align: center; font-size: 20px !important; }
.sd-rt { flex: 1; min-width: 0; }
.sd-rb { display: flex; gap: 4px; }

.sd-run { background: #fff; border: 2px solid var(--line); border-radius: 18px; padding: 16px; text-align: center; }
.sd-run:fullscreen { display: flex; flex-direction: column; justify-content: center; padding: 30px; overflow: auto; }
.sd-dots { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-bottom: 12px; }
.sd-dots span { font-size: 20px; width: 38px; height: 38px; line-height: 34px; border: 2px solid var(--line); border-radius: 50%; opacity: .55; }
.sd-dots span.ok { opacity: .35; border-color: #1F8A5B; background: #E3F4EA; }
.sd-dots span.cur { opacity: 1; border-color: #0057A8; box-shadow: 0 0 0 3px #CFE3F6; }
.sd-lab { margin: 0; font-weight: 700; color: var(--muted); text-transform: uppercase; font-size: 13px; letter-spacing: .04em; }
.sd-now { margin: 8px auto; max-width: 520px; background: var(--box); border-radius: 18px; padding: 16px; }
.sd-big { display: block; font-size: 110px; line-height: 1.1; }
.sd-h { margin: 4px 0 0; font: 700 22px Arial, sans-serif; color: #0057A8; }
.sd-nt { margin: 4px 0 0; font: 700 30px/1.2 Arial, sans-serif; color: var(--blue-dark); }
.sd-nx { color: var(--muted); font-size: 17px; margin: 6px 0 10px; }
.sd-ctl { justify-content: center; margin-bottom: 8px; }
.sd-ctl .t-btn { font-size: 17px; padding: 12px 20px; }
.sd-done { background: #1F8A5B !important; border-color: #1F8A5B !important; }
.sd-help { color: #8A1C1C; }
.sd-hbox { text-align: left; max-width: 520px; margin: 8px auto 0; background: #FFF8E8; border: 2px solid #C98A12; border-radius: 14px; padding: 12px 16px; font-size: 17px; }
.sd-hbox ul { margin: 6px 0; padding-left: 20px; }
.sd-ht { margin: 0; font-weight: 700; color: #6B4700; }
.sd-run.done .sd-now { background: #EEF8F2; }
@media (prefers-reduced-motion: no-preference) {
  .sd-now { animation: sd-in .25s ease-out; }
  @keyframes sd-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
}

@media (max-width: 760px) {
  .sd-places { grid-template-columns: repeat(3, 1fr); }
  .sd-place { font-size: 12px; padding: 8px 2px; }
  .sd-place span { font-size: 28px; }
  .sd-kit { grid-template-columns: 1fr; }
  .sd-rs { flex-wrap: wrap; }
  .sd-rs input[type="time"] { width: 96px; }
  .sd-rt { flex: 1 1 100%; order: 3; }
  .sd-rb { order: 4; margin-left: auto; }
  .sd-big { font-size: 84px; }
  .sd-nt { font-size: 24px; }
}

/* Impressão: folha do passeio */
.print-area .pr-sd { font-family: Arial, sans-serif; color: #222; font-size: 12px; }
.print-area .pr-sdr { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 6px 0 10px; }
.print-area .pr-sds { position: relative; border: 2px solid #1E4E79; border-radius: 12px; padding: 6px 6px 8px; text-align: center; page-break-inside: avoid; }
.print-area .pr-sdn { position: absolute; top: 4px; left: 6px; font-weight: 700; color: #1E4E79; }
.print-area .pr-sdck { position: absolute; top: 5px; right: 5px; width: 16px; height: 16px; border: 2px solid #1E4E79; border-radius: 3px; }
.print-area .pr-sde { font-size: 44px; line-height: 1.15; }
.print-area .pr-sdh { font-weight: 700; color: #0057A8; font-size: 13px; }
.print-area .pr-sdt { font: 700 14px Arial, sans-serif; color: #12324F; }
.print-area .pr-sddep { text-align: center; font-size: 14px; margin: 0 0 10px; }
.print-area .pr-sdg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.print-area .pr-sdb { border: 2px solid #1E4E79; border-radius: 12px; padding: 6px 12px 8px; page-break-inside: avoid; }
.print-area .pr-sdb-pb { border-color: #C98A12; background: #FFF9EC; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.print-area .pr-sdb h2 { font: 700 15px Arial, sans-serif; margin: 2px 0 6px; color: #12324F; }
.print-area .pr-sdb ul { margin: 0; padding-left: 16px; }
.print-area .pr-sdb li { margin: 2px 0; }
.print-area .pr-sdchk { list-style: none; padding-left: 0 !important; }
.print-area .pr-sdchk li::before { content: ''; display: inline-block; width: 11px; height: 11px; border: 1.5px solid #1E4E79; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.print-area .pr-sdsig { border-top: 1px dashed #C98A12; padding-top: 4px; margin: 6px 0 2px; font-size: 13px; }

/* --- prancha-extra.css --- */
/* Prancha de comunicação — extra: modo crise (prefixo pk-). Junte ao final de assets/tools/tools.css */
.pk-open { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; width: 100%; min-height: 72px; margin: 0 0 14px; padding: 12px 16px; background: #111820; color: #FFD54A; border: 3px solid #FFD54A; border-radius: 16px; font: 700 24px/1.2 Arial, sans-serif; cursor: pointer; }
.pk-open small { font: 400 14px Arial, sans-serif; color: #fff; }
.pk-open:hover { background: #1B2530; }
.pk-open:focus-visible, .pk-card:focus-visible, .pk-b:focus-visible { outline: 4px solid #fff; outline-offset: 3px; }
.pk-cfg { margin-top: 10px; }

html.pk-lock, html.pk-lock body { overflow: hidden; }
.pk-ov { position: fixed; inset: 0; z-index: 1000; background: #000; color: #fff; display: flex; flex-direction: column; height: 100vh; height: 100dvh; padding: 10px; padding-bottom: max(10px, env(safe-area-inset-bottom)); box-sizing: border-box; font-family: Arial, sans-serif; overscroll-behavior: contain; }
.pk-ov:fullscreen { background: #000; }
.pk-grid { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(4, minmax(0, 1fr)); gap: 8px; }
.pk-card { min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 4px; background: #121212; color: var(--k, #fff); border: 3px solid var(--k, #fff); border-radius: 16px; cursor: pointer; font: 700 clamp(17px, 5.2vw, 40px)/1.12 Arial, sans-serif; text-align: center; touch-action: manipulation; overflow: hidden; }
.pk-card:active { background: #262626; }
.pk-em { font-size: clamp(26px, 8vw, 60px); line-height: 1; }
.pk-tx { overflow-wrap: break-word; hyphens: auto; }
.pk-bar { flex: none; display: flex; gap: 8px; padding-top: 8px; }
.pk-b { flex: 1; min-height: 60px; padding: 8px 12px; background: #fff; color: #000; border: 0; border-radius: 14px; font: 700 20px Arial, sans-serif; cursor: pointer; text-align: center; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; touch-action: manipulation; }
.pk-x, .pk-back { background: #FFD54A; }
.pk-full { flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 2vh; border: 6px solid var(--k, #fff); border-radius: 20px; padding: 3vh 4vw; overflow: hidden; }
.pk-fem { font-size: clamp(64px, 22vmin, 200px); line-height: 1; }
.pk-ftx { margin: 0; color: var(--k, #fff); font: 700 clamp(34px, 10vmin, 110px)/1.1 Arial, sans-serif; overflow-wrap: anywhere; }
.pk-ftel { margin: 0; color: #fff; font: 700 clamp(26px, 7vmin, 60px) Arial, sans-serif; }
.pk-call { flex: none; min-width: 60%; background: #9FE3C4; }
/* Celular deitado ou tela larga: 4 colunas x 2 linhas */
@media (min-aspect-ratio: 4/3) {
  .pk-grid { grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(2, minmax(0, 1fr)); }
  .pk-card { font-size: clamp(16px, 2.6vw, 34px); }
  .pk-em { font-size: clamp(28px, 6vh, 64px); }
}
@media (prefers-reduced-motion: reduce) { .pk-card, .pk-b { transition: none; } }

/* --- roteiros-de-conversa.css --- */
/* Roteiros de conversa (prefixo rc-) */
.rc-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; margin-bottom: 18px; }
.rc-sit { display: flex; align-items: center; gap: 10px; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; cursor: pointer; font: 700 14px/1.25 Arial, sans-serif; color: var(--blue-dark); }
.rc-sit .em { font-size: 26px; line-height: 1; flex: 0 0 auto; }
.rc-sit:hover { border-color: var(--teal); background: var(--teal-soft); }
.rc-sit.on { background: var(--blue); border-color: var(--blue); color: #fff; }
.rc-sit:focus-visible, .rc-ov button:focus-visible { outline: 3px solid #F6C453; outline-offset: 2px; }
.rc-script { border-top: 1px solid var(--line); padding-top: 6px; scroll-margin-top: 80px; }
.rc-h { font: 700 24px/1.25 Arial, sans-serif; color: var(--blue-dark); margin: 12px 0 10px; }
.rc-sub { font: 700 13px Arial, sans-serif; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 18px 0 8px; }
.rc-steps { background: #F3F8FC; border: 1px solid #D8E5EF; border-radius: 12px; padding: 4px 16px 10px; }
.rc-steps ol { margin: 0; padding-left: 1.3em; }
.rc-steps li { margin: 4px 0; font-size: 16px; }
.rc-list { list-style: none; margin: 0; padding: 0; }
.rc-ph { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; }
.rc-ph.rc-qa { border-left: 5px solid #0A64AD; }
.rc-q { margin: 0 0 4px; font: 700 17px Arial, sans-serif; color: #0B2F4F; }
.rc-ql { display: block; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.rc-txt { width: 100%; box-sizing: border-box; font: 17px/1.45 Arial, sans-serif; color: var(--text); border: 1px solid transparent; border-radius: 8px; padding: 6px 8px; background: #F7FAFC; resize: vertical; }
.rc-txt:hover { border-color: var(--line); }
.rc-txt:focus { border-color: var(--blue); background: #fff; outline: none; box-shadow: 0 0 0 3px rgba(10, 100, 173, .18); }
.rc-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.rc-fav.on { background: #FFF4D6; border-color: #E0B23A; color: #6B4A00; }
.rc-new { margin-top: 14px; }
.rc-empty { border: 2px dashed var(--line); border-radius: 12px; padding: 26px; text-align: center; color: var(--muted); }

/* Mostrar na tela: camada de tela cheia */
body.rc-lock { overflow: hidden; }
.rc-ov { position: fixed; inset: 0; z-index: 80; background: #fff; color: #0B2F4F; display: flex; flex-direction: column; padding: 14px max(14px, 3vw) 18px; box-sizing: border-box; }
.rc-ov.rc-inv { background: #0B2F4F; color: #fff; }
.rc-ovbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.rc-ovn { margin-right: auto; font: 700 15px Arial, sans-serif; opacity: .75; }
.rc-ov button { font: 700 16px Arial, sans-serif; min-width: 48px; min-height: 48px; padding: 8px 14px; border-radius: 12px; border: 2px solid currentColor; background: transparent; color: inherit; cursor: pointer; }
.rc-ov button:disabled { opacity: .3; cursor: default; }
.rc-ovtxt { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; font-family: Arial, sans-serif; font-weight: 700; line-height: 1.25; overflow: auto; padding: 2vh 0; overflow-wrap: anywhere; }
.rc-ovtxt small { display: block; font-size: .45em; font-weight: 400; opacity: .75; margin-bottom: .5em; }
.rc-fs1 .rc-ovtxt { font-size: clamp(22px, 4.5vw, 44px); }
.rc-fs2 .rc-ovtxt { font-size: clamp(28px, 6.5vw, 64px); }
.rc-fs3 .rc-ovtxt { font-size: clamp(34px, 8.5vw, 86px); }
.rc-fs4 .rc-ovtxt { font-size: clamp(40px, 11vw, 110px); }
.rc-ovnav { display: flex; gap: 10px; justify-content: center; }
.rc-ovnav button { flex: 1 1 0; max-width: 260px; font-size: 18px; }

/* Impressão: cartões para recortar e folha da consulta */
.pr-rcg { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.pr-rc { border: 1px dashed #888; padding: 5mm 6mm; min-height: 32mm; box-sizing: border-box; page-break-inside: avoid; break-inside: avoid; display: flex; flex-direction: column; justify-content: center; position: relative; font-family: Arial, sans-serif; }
.pr-rc p { margin: 0; font: 700 15pt/1.3 Arial, sans-serif; color: #000; }
.pr-rcq { font-size: 10pt; color: #333; font-weight: 700; margin-bottom: 2mm; }
.pr-rct { position: absolute; bottom: 1.5mm; right: 3mm; font-size: 7pt; color: #777; }
.pr-rcs { grid-column: 1 / -1; background: #F3F8FC; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.pr-rcs ol { margin: 2mm 0 0; padding-left: 5mm; font-size: 10.5pt; }
.pr-cs { font-family: Arial, sans-serif; color: #000; }
.pr-csm { font-size: 13pt; border: 2px solid #0B2F4F; border-radius: 3mm; padding: 3mm 4mm; margin: 0 0 4mm; }
.print-area table.pr-cst { font-size: 11pt; margin-bottom: 4mm; }
.print-area table.pr-cst th { width: 30%; background: #F3F8FC; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.print-area table.pr-cst th, .print-area table.pr-cst td { padding: 2mm 3mm; }
.pr-csc { border: 1px solid #999; border-radius: 2mm; padding: 2mm 4mm; font-size: 11pt; margin-bottom: 3mm; }
.pr-csc ul { margin: 1mm 0 0; padding-left: 5mm; columns: 2; }
.pr-csd { page-break-inside: avoid; break-inside: avoid; margin-bottom: 2mm; }
.pr-csd p { margin: 0 0 1mm; font-size: 11.5pt; }
.pr-csl { height: 14mm; background: repeating-linear-gradient(#fff 0 6.5mm, #bbb 6.5mm calc(6.5mm + 1px)); -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.pr-csl3 { height: 40mm; }

@media (max-width: 760px) {
  .rc-pick { grid-template-columns: 1fr 1fr; }
  .rc-sit { font-size: 13px; padding: 8px; }
  .rc-h { font-size: 20px; }
  .rc-acts .t-btn { flex: 1 1 auto; }
  .rc-ovbar button { min-width: 44px; padding: 6px 10px; font-size: 14px; }
}
@media (max-width: 380px) { .rc-pick { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .rc-script { scroll-behavior: auto; } }

/* --- rotina-extra.css --- */
/* Rotina visual — extras: modelos prontos, campo de minutos e modo "Fazer agora" (passo a passo) */
.rv-models { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; background: var(--box); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin: 4px 0 14px; }
.rv-models-l { font-weight: 700; font-size: 14px; color: var(--blue-dark); margin-right: 4px; }
.rv-steps input.mn { width: 62px; font: 14px Arial, sans-serif; padding: 5px; border: 1px solid var(--line); border-radius: 6px; }
.rv-mn-tip { margin: 4px 0 0; font-size: 13px; }
.rv-go { font-size: 16px; }
.t-btn[disabled] { opacity: .55; cursor: not-allowed; }

/* Palco do passo a passo */
.rv-stage { background: #fff; border-radius: 18px; padding: 8px 4px 16px; display: flex; flex-direction: column; }
.rv-stage:fullscreen { padding: 3vh 4vw; overflow: auto; }
.rv-pbar-top { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.rv-pname { font: 700 18px Arial, sans-serif; color: var(--blue-dark); }
.rv-ptools { display: flex; flex-wrap: wrap; gap: 6px; }
.rv-prog { height: 14px; background: #EAF1F7; border-radius: 999px; overflow: hidden; border: 1px solid #D8E5EF; }
.rv-prog span { display: block; height: 100%; background: #1F8A5B; border-radius: 999px; transition: width .4s ease; }
.rv-pcount { text-align: center; font: 700 15px Arial, sans-serif; color: var(--muted); margin: 6px 0 8px; }
.rv-strip { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0 0 12px; padding: 0; }
.rv-strip li { position: relative; width: 42px; height: 42px; border: 2px solid #D8E5EF; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 22px; background: #fff; }
.rv-strip li.now { border-color: #0057A8; box-shadow: 0 0 0 3px #CFE3F5; }
.rv-strip li.ok { background: #E8F5EE; border-color: #1F8A5B; }
.rv-strip li.ok > span:first-child { opacity: .45; }
.rv-strip li b { position: absolute; right: -5px; bottom: -6px; background: #1F8A5B; color: #fff; border-radius: 50%; width: 20px; height: 20px; font-size: 12px; line-height: 20px; text-align: center; }
.rv-strip .sr, .rv-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.rv-pcard { text-align: center; border: 3px solid #D8E5EF; border-radius: 22px; padding: 18px 12px; background: #F3F8FC; }
.rv-pem { font-size: clamp(110px, 22vw, 200px); line-height: 1.1; animation: rv-pop .35s ease-out; }
.rv-ptxt { font: 700 clamp(28px, 5vw, 46px)/1.2 Arial, sans-serif; color: #0B2F4F; margin: 8px 0 0; }
.rv-psub { font: 700 18px Arial, sans-serif; color: var(--muted); margin: 6px 0 0; }
.rv-win { border-color: #1F8A5B; background: #E8F5EE; }
.rv-timer { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 14px 0 0; flex-wrap: wrap; }
.rv-disk { width: 140px; height: 140px; }
.rv-tnum { font: 700 34px Arial, sans-serif; color: #0B2F4F; margin: 0 0 8px; font-variant-numeric: tabular-nums; }
.rv-pacts { display: flex; gap: 12px; justify-content: center; align-items: center; flex-wrap: wrap; margin-top: 18px; }
.t-btn.rv-done { font-size: clamp(22px, 4vw, 30px); padding: 16px 44px; border-radius: 14px; background: #1F8A5B; border-color: #1F8A5B; min-width: 220px; }
.t-btn.rv-done:hover { border-color: #156B45; background: #156B45; }
.rv-done:focus-visible, .rv-pacts .t-btn:focus-visible { outline: 3px solid #0057A8; outline-offset: 3px; }
.rv-next { text-align: center; font-size: 18px; color: var(--text); margin: 14px 0 0; }
.rv-next span:first-child { font-weight: 700; color: var(--muted); }
.rv-stage:fullscreen .rv-pem { font-size: min(30vh, 34vw); }
.rv-stage:fullscreen .rv-ptxt { font-size: min(7vh, 8vw); }
.rv-stage:fullscreen .rv-disk { width: min(22vh, 40vw); height: min(22vh, 40vw); }
@keyframes rv-pop { from { transform: scale(.7); opacity: .2; } to { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .rv-pem { animation: none; }
  .rv-prog span { transition: none; }
}
@media (max-width: 760px) {
  .rv-steps li { flex-wrap: wrap; }
  .rv-steps input.lbl { flex: 1 1 calc(100% - 60px); }
  .rv-steps .acts { margin-left: auto; }
  .rv-strip li { width: 34px; height: 34px; font-size: 18px; }
  .rv-done { width: 100%; }
  .rv-pacts .t-btn:not(.rv-done) { order: 2; }
}

/* --- sons-calmos.css --- */
/* Sons calmos e ruído */
.sn-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 26px; align-items: start; }
.sn-stage { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 340px; background: linear-gradient(160deg, #F3F8FC, #E3EEF8); border: 1px solid #D8E5EF; border-radius: 20px; padding: 24px 16px; overflow: hidden; text-align: center; }
.sn-stage.on { background: linear-gradient(160deg, #0B2F4F, #0A4C7E); }
.sn-play { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; width: 168px; height: 168px; border-radius: 50%; border: 0; cursor: pointer; background: #0057A8; color: #fff; box-shadow: 0 10px 28px rgba(0, 59, 113, .35); font: 700 20px Arial, sans-serif; }
.sn-play span { font-size: 54px; line-height: 1; }
.sn-play:hover { background: #003B71; }
.sn-play:focus-visible { outline: 4px solid #F6C453; outline-offset: 4px; }
.sn-play.on { background: #1F8A5B; animation: snGlow 4s ease-in-out infinite alternate; }
@keyframes snGlow { from { box-shadow: 0 0 0 0 rgba(255, 255, 255, .25); } to { box-shadow: 0 0 0 26px rgba(255, 255, 255, .06); } }
.sn-now { font: 700 17px Arial, sans-serif; color: #0B2F4F; margin: 10px 0 0; position: relative; z-index: 2; }
.sn-left { font: 15px Arial, sans-serif; color: #3A5670; margin: 0; min-height: 1.3em; position: relative; z-index: 2; font-variant-numeric: tabular-nums; }
.sn-stage.on .sn-now { color: #fff; }
.sn-stage.on .sn-left { color: #CFE3F5; }
.sn-ball { position: absolute; z-index: 1; top: 50%; left: 50%; width: 240px; height: 240px; margin: -160px 0 0 -120px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, rgba(156, 203, 240, .55), rgba(10, 100, 173, .25)); display: flex; transform: scale(.72); transition: transform 4s ease-in-out; }
.sn-ball.in { transform: scale(1.18); transition-duration: 4s; }
.sn-ball.out { transform: scale(.72); transition-duration: 6s; }
.sn-phase { position: relative; z-index: 2; font: 700 24px Arial, sans-serif; color: #fff; margin: 4px 0 0; }
.sn-stage.still .sn-ball { transition: none; transform: none; }
.sn-ctrl input[type=range] { width: 100%; accent-color: #0057A8; padding: 0; border: 0; min-height: 32px; }
.sn-pct { font-weight: 400; color: var(--muted); }
.sn-warn { background: #F3F8FC; border-left: 5px solid #0A64AD; border-radius: 0 10px 10px 0; padding: 10px 12px; font-size: 14px; margin: 6px 0 14px; }
.sn-warn.loud { background: #FFF3E6; border-left-color: #E07B24; }
.sn-warn #sn-loud { color: #8A2D0A; }
.sn-ctrl .gd-q label.t-field { display: flex; align-items: stretch; margin: 6px 0 0; }
.sn-ctrl .gd-q .t-field select { width: 100%; }
.sn-ctrl .gd-q .t-muted { margin: 6px 0 4px; }
.sn-check { display: flex; align-items: center; gap: 8px; font-weight: 700; color: #0B2F4F; margin: 6px 0; cursor: pointer; }
.sn-check input { width: 20px; height: 20px; }
@media (max-width: 760px) {
  .sn-wrap { grid-template-columns: 1fr; }
  .sn-stage { min-height: 280px; }
  .sn-play { width: 150px; height: 150px; }
}
@media (prefers-reduced-motion: reduce) {
  .sn-play.on { animation: none; }
  .sn-ball { transition: none !important; transform: none !important; }
}

/* --- tradutor-de-expressoes.css --- */
/* Tradutor de expressões (prefixo ex-) */
.ex-cats { margin-bottom: 14px; }
.ex-cats .t-chip small { color: var(--muted); font-weight: 400; }
.ex-onlyfav { align-self: flex-end; margin-bottom: 4px; }
.ex-tip { background: #F3F8FC; border: 1px solid #D8E5EF; border-radius: 12px; padding: 10px 14px; margin-bottom: 14px; }
.ex-tip summary { cursor: pointer; font-weight: 700; color: var(--blue-dark); }
.ex-tip ul { margin: 8px 0 0; padding-left: 1.2em; }
.ex-count { font-size: 14px; color: var(--muted); margin: 0 0 8px; }
.ex-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.ex-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; }
.ex-card header { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.ex-card h3 { margin: 0 0 8px; font: 700 19px/1.25 Arial, sans-serif; color: #0B2F4F; }
.ex-tag { flex: 0 0 auto; font-size: 12px; background: #F3F8FC; border: 1px solid #D8E5EF; border-radius: 999px; padding: 2px 8px; white-space: nowrap; }
.ex-two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ex-two > div { border-radius: 10px; padding: 8px 10px; font-size: 14.5px; }
.ex-two b { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.ex-two p { margin: 4px 0 0; }
.ex-lit { background: #F4F4F4; color: #444; }
.ex-lit p { text-decoration: line-through; text-decoration-color: rgba(0, 0, 0, .25); }
.ex-real { background: #E8F5EE; color: #0F4D30; }
.ex-ex { font-size: 14.5px; color: #333; margin: 10px 0 0; font-style: italic; }
.ex-ex b { font-style: normal; }
.ex-acts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; padding-top: 10px; }
.ex-fav.on { background: #FFF4D6; border-color: #E0B23A; color: #6B4A00; }
.ex-empty { border: 2px dashed var(--line); border-radius: 12px; padding: 26px; text-align: center; color: var(--muted); }

/* Quiz */
.ex-qstart, .ex-end { text-align: center; max-width: 640px; margin: 0 auto; }
.ex-qstart .ex-cats { justify-content: center; }
.ex-qbig { font: 700 34px Arial, sans-serif; color: #0B2F4F; margin: 6px 0 8px; }
.ex-go { font-size: 18px; padding: 12px 26px; }
.ex-endm { font-size: 20px; font-weight: 700; color: #0B2F4F; }
.ex-quiz { max-width: 680px; margin: 0 auto; }
.ex-qtop { display: flex; justify-content: space-between; gap: 10px; font: 700 14px Arial, sans-serif; color: var(--muted); }
.ex-bar { height: 8px; border-radius: 99px; background: #E6EEF4; margin: 8px 0 14px; overflow: hidden; }
.ex-bar span { display: block; height: 100%; background: #1F8A5B; border-radius: 99px; transition: width .3s; }
.ex-qx { font: 700 30px/1.25 Arial, sans-serif; text-align: center; color: #003B71; margin: 10px 0; }
.ex-opts { display: grid; gap: 8px; }
.ex-opt { text-align: left; font: 16px/1.4 Arial, sans-serif; color: var(--text); background: #fff; border: 2px solid var(--line); border-radius: 12px; padding: 12px 14px; cursor: pointer; }
.ex-opt:hover:not(:disabled) { border-color: #0A64AD; background: #F3F8FC; }
.ex-opt:focus-visible, .ex-card button:focus-visible { outline: 3px solid #F6C453; outline-offset: 2px; }
.ex-opt:disabled { cursor: default; }
.ex-opt.ok { border-color: #1F8A5B; background: #E8F5EE; color: #0F4D30; font-weight: 700; }
.ex-opt.ok::before { content: '✔ '; }
.ex-opt.bad { border-color: #B3261E; background: #FBEAEA; color: #7A1A14; }
.ex-opt.bad::before { content: '✖ '; }
.ex-opt.dim { opacity: .55; }
.ex-fb { margin-top: 14px; }
.ex-fb > * { margin: 6px 0; }
.ex-good { color: #11643A; font: 700 19px Arial, sans-serif; }
.ex-miss { color: #8A1C1C; font: 700 17px Arial, sans-serif; }
.ex-fb .t-btn { margin-top: 8px; }

/* Impressão do glossário */
.pr-exg { display: grid; grid-template-columns: 1fr 1fr; gap: 3mm; }
.pr-ex { border: 1px solid #999; border-radius: 2mm; padding: 2.5mm 3mm; page-break-inside: avoid; break-inside: avoid; font-family: Arial, sans-serif; font-size: 10pt; color: #000; }
.pr-ex b { font-size: 11.5pt; }
.pr-ex p { margin: 1mm 0 0; }
.pr-exl { color: #555; font-size: 9pt; }
.pr-exe { font-style: italic; color: #333; font-size: 9pt; }

@media (max-width: 760px) {
  .ex-grid { grid-template-columns: 1fr; }
  .ex-two { grid-template-columns: 1fr; }
  .ex-qx { font-size: 24px; }
  .ex-qbig { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) { .ex-bar span { transition: none; } }
