* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--text); font: 17px/1.5 var(--font); }
button, input, select { font: inherit; }
[hidden] { display: none !important; }

/* Área da profissional (estilo calmo; specs/04, seção 8.6) */
.pro { max-width: 960px; margin: 0 auto; padding: 16px; }
.pro header { display: flex; align-items: baseline; gap: 12px; margin: 8px 0 20px; }
.logo { font-weight: 800; font-size: 2rem; letter-spacing: 0.01em; }
.logo i { font-style: normal; color: var(--teal-escuro); }
.sub { color: var(--text-muted); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; margin: 12px 0; }
.card h2 { margin: 0 0 12px; font-size: 1.15rem; }
.learners { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.learner { display: flex; flex-direction: column; gap: 8px; }
.learner .name { font-weight: 700; font-size: 1.2rem; }
.muted { color: var(--text-muted); font-size: 0.9rem; }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.form { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; align-items: end; }
label span { display: block; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 4px; }
input[type=text], input[type=number], select { width: 100%; padding: 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
.btn { border: 0; border-radius: 12px; padding: 10px 16px; min-height: 44px; cursor: pointer; background: var(--action); color: #fff;
  box-shadow: 0 3px 0 #0b5c55; transition: transform 80ms; }
.btn:active { transform: translateY(3px); box-shadow: none; }
.btn.secondary { background: var(--papel-2); color: var(--text); box-shadow: 0 3px 0 var(--linha); }
.btn.big { font-size: 1.2rem; padding: 14px 22px; min-height: 56px; }
table.data { border-collapse: collapse; width: 100%; }
table.data th, table.data td { text-align: left; padding: 8px; border-bottom: 1px solid var(--border); }
.tag { display: inline-block; padding: 2px 8px; border-radius: 99px; font-size: 0.8rem; background: var(--papel-2); }
.tag.mastered { background: #dff3d4; color: var(--folha-escura); }
.tag.learning { background: #fff3c4; color: #7a5a00; }
.empty { color: var(--text-muted); font-style: italic; }
.notice { background: #fff3c4; border-radius: 8px; padding: 8px 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Dica do sistema (ui/tooltip.js) e do gráfico: mesmo visual "Nintendo" (pílula escura, texto branco em negrito) */
.tip, .chart-tip { background: var(--tinta); color: #fff; border-radius: 10px; padding: 6px 10px; font: 700 0.85rem/1.3 var(--font);
  box-shadow: 0 4px 12px rgba(18, 52, 90, 0.25); }
.tip { position: fixed; left: var(--tx, 0); top: var(--ty, 0); z-index: 200; max-width: min(280px, calc(100vw - 24px)); width: max-content;
  animation: tip-in 120ms ease-out; }
.tip[hidden] { display: none; }
@keyframes tip-in { from { opacity: 0; transform: translateY(3px); } }
.tip.below { animation-name: tip-in-below; }
@keyframes tip-in-below { from { opacity: 0; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .tip { animation: none; } }
@media (forced-colors: active) { .tip, .chart-tip { border: 1px solid CanvasText; } }
