/* ===== Oral Cartórios — visual: fundo azul-escuro líquido, caixas vermelhas, botões amarelos ===== */
:root {
  --font: "Segoe UI Variable Display", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-read: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --radius: 18px;
  --radius-sm: 12px;
  --t: 200ms cubic-bezier(.2,.7,.2,1);
  --maxw: 1180px;
  --read-size: 1.05rem;

  /* paleta */
  --navy-0: #040b1f;
  --navy-1: #071536;
  --navy-2: #0b1f4d;
  --yellow: #ffc83d;
  --yellow-2: #ffd970;
  --yellow-ink: #1d1500;
  --red: #e63946;
  --red-2: #c1121f;
  --red-3: #8f0d19;
  --red-box: linear-gradient(150deg, #e8424f 0%, #c81d2c 55%, #9e1220 100%);

  /* tokens */
  --bg: var(--navy-0);
  --glass: rgba(14, 34, 82, .55);
  --glass-2: rgba(10, 26, 64, .72);
  --glass-line: rgba(140, 175, 255, .14);
  --glass-line-2: rgba(140, 175, 255, .26);
  --ink: #f1f5ff;
  --ink-2: #c0cbe6;
  --ink-3: #8d9bc2;
  --ok: #5fe0a0;
  --ok-bg: rgba(95, 224, 160, .14);
  --warn: var(--yellow);
  --warn-bg: rgba(255, 200, 61, .14);
  --bad: #ff7b84;
  --bad-bg: rgba(230, 57, 70, .18);
  --shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 18px 40px rgba(0, 4, 20, .45);
  --blur: saturate(1.5) blur(20px);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body { margin: 0; font-family: var(--font); color: var(--ink); background: transparent; line-height: 1.55; font-size: 16px; min-height: 100vh; -webkit-font-smoothing: antialiased; }
a { color: var(--yellow); }
button, input, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 99; background: var(--yellow); color: var(--yellow-ink); padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 3px solid rgba(255, 200, 61, .75); outline-offset: 2px; border-radius: 8px; }
::selection { background: rgba(255, 200, 61, .35); }

/* ===== Fundo líquido azul ===== */
.liquid { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 0%, #0a1c48 0%, var(--navy-0) 60%); }
.liquid i { position: absolute; border-radius: 50%; filter: blur(80px); will-change: transform; }
.liquid .b1 { width: 60vmax; height: 60vmax; left: -20vmax; top: -24vmax; background: radial-gradient(circle, #1846b8 0%, rgba(24,70,184,0) 68%); opacity: .75; animation: drift1 28s ease-in-out infinite alternate; }
.liquid .b2 { width: 50vmax; height: 50vmax; right: -18vmax; top: 4vmax; background: radial-gradient(circle, #0d3796 0%, rgba(13,55,150,0) 68%); opacity: .7; animation: drift2 34s ease-in-out infinite alternate; }
.liquid .b3 { width: 56vmax; height: 56vmax; left: 20vmax; bottom: -30vmax; background: radial-gradient(circle, #1a5bd6 0%, rgba(26,91,214,0) 66%); opacity: .45; animation: drift3 40s ease-in-out infinite alternate; }
.liquid .b4 { width: 36vmax; height: 36vmax; left: -8vmax; bottom: -10vmax; background: radial-gradient(circle, #2a6df0 0%, rgba(42,109,240,0) 66%); opacity: .3; animation: drift2 46s ease-in-out infinite alternate-reverse; }
.liquid::after { content: ""; position: absolute; inset: 0; opacity: .5;
  background-image: radial-gradient(rgba(255,255,255,.035) 1px, transparent 1px); background-size: 3px 3px; }
@keyframes drift1 { to { transform: translate(16vmax, 12vmax) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-14vmax, 16vmax) scale(.88); } }
@keyframes drift3 { to { transform: translate(-18vmax, -12vmax) scale(1.18); } }

/* ===== Superfícies ===== */
.glass, .panel, .paper, .content-card, .start-card, .qitem, .tbl, .tabs, .quesito, .empty, .tip {
  background: var(--glass); border: 1px solid var(--glass-line); box-shadow: var(--shadow);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
}
/* caixas vermelhas */
.redbox, .mode-card, .materia, .kpi, .score-box, .result-hero {
  background: var(--red-box); color: #fff; border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 1px 0 rgba(255,255,255,.22) inset, 0 18px 40px rgba(120, 8, 20, .35);
}

/* ===== Topbar ===== */
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(4, 11, 31, .62); border-bottom: 1px solid var(--glass-line); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); }
.topbar-inner { max-width: var(--maxw); margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; gap: 18px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); }
.brand-mark { display: grid; color: var(--red); }
.brand-mark svg rect { fill: var(--red); }
.brand-mark svg path, .brand-mark svg rect + path { stroke: var(--yellow); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 1.04rem; letter-spacing: -.01em; }
.brand-text small { color: var(--ink-3); font-size: .74rem; }
.nav { display: flex; gap: 4px; margin-left: 14px; }
.nav a { text-decoration: none; color: var(--ink-2); padding: 8px 14px; border-radius: 999px; font-size: .93rem; font-weight: 600; transition: background var(--t), color var(--t); }
.nav a:hover { color: var(--ink); background: rgba(255,255,255,.06); }
.nav a.active { color: var(--yellow-ink); background: var(--yellow); }
.topbar-actions { margin-left: auto; display: flex; gap: 6px; }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; border: 1px solid rgba(255,200,61,.45); background: transparent; cursor: pointer; color: var(--yellow); transition: var(--t); }
.icon-btn:hover { background: rgba(255,200,61,.12); }

main { max-width: var(--maxw); margin: 0 auto; padding: 34px 20px 90px; outline: none; }
.loading { display: flex; gap: 10px; align-items: center; color: var(--ink-3); padding: 60px 0; justify-content: center; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255,255,255,.15); border-top-color: var(--yellow); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== Botões (uma cor: amarelo) ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; border-radius: 12px; border: 1.5px solid rgba(255,200,61,.7); background: transparent; color: var(--yellow); cursor: pointer; font-weight: 700; font-size: .94rem; text-decoration: none; transition: transform var(--t), background var(--t), color var(--t), box-shadow var(--t); white-space: nowrap; letter-spacing: -.005em; }
.btn:hover { background: rgba(255,200,61,.12); }
.btn:active { transform: translateY(1px); }
.btn.primary, .btn.accent { background: var(--yellow); border-color: var(--yellow); color: var(--yellow-ink); box-shadow: 0 10px 24px rgba(255, 200, 61, .22); }
.btn.primary:hover, .btn.accent:hover { background: var(--yellow-2); }
.btn.danger { border-color: rgba(255,123,132,.7); color: var(--bad); }
.btn.danger:hover { background: var(--bad-bg); }
.btn.ghost { border-color: transparent; }
.btn.lg { padding: 14px 22px; font-size: 1.02rem; border-radius: 14px; }
.btn.sm { padding: 7px 12px; font-size: .85rem; border-radius: 10px; }
.btn[disabled] { opacity: .4; cursor: not-allowed; }
.btn svg { flex: none; }
.btn.on { background: var(--red); border-color: var(--red); color: #fff; }
/* dentro das caixas vermelhas os botões continuam amarelos */
.redbox .btn:not(.primary), .materia .btn:not(.primary) { border-color: rgba(255,217,112,.85); color: var(--yellow-2); }
.materia .btn:not(.primary):hover { background: rgba(0,0,0,.14); }

/* ===== Badges ===== */
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: .74rem; font-weight: 800; padding: 4px 9px; border-radius: 999px; background: rgba(255,255,255,.09); color: var(--ink-2); letter-spacing: .01em; }
.badge.ok { background: var(--ok-bg); color: var(--ok); }
.badge.warn { background: var(--warn-bg); color: var(--warn); }
.badge.bad { background: var(--bad-bg); color: var(--bad); }
.materia .badge, .mode-card .badge, .kpi .badge { background: rgba(0,0,0,.2); color: #fff; }
.materia .badge.ok, .materia .badge.warn, .materia .badge.bad { background: var(--yellow); color: var(--yellow-ink); }

/* ===== Início ===== */
.hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 30px; align-items: center; margin-bottom: 34px; }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: .72rem; color: var(--yellow); font-weight: 800; }
.hero h1 { font-size: clamp(2rem, 4vw, 3.1rem); margin: 10px 0 14px; font-weight: 800; }
.hero h1 .grad { color: var(--yellow); }
.hero p { color: var(--ink-2); max-width: 54ch; margin: 0 0 22px; font-size: 1.04rem; }
.hero-stats { display: flex; gap: 28px; flex-wrap: wrap; }
.hero-stats div { display: flex; flex-direction: column; padding-left: 14px; border-left: 3px solid var(--red); }
.hero-stats b { font-size: 1.7rem; font-weight: 800; }
.hero-stats span { color: var(--ink-3); font-size: .85rem; }
.mode-cards { display: grid; gap: 14px; }
.mode-card { position: relative; text-align: left; padding: 20px; border-radius: var(--radius); cursor: pointer; transition: transform var(--t), box-shadow var(--t), filter var(--t); display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; }
.mode-card:hover { transform: translateY(-3px); filter: brightness(1.06); }
.mode-card .ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: rgba(0,0,0,.18); color: var(--yellow); }
.mode-card.featured .ic { background: var(--yellow); color: var(--yellow-ink); }
.mode-card h3 { margin: 0 0 3px; font-size: 1.1rem; }
.mode-card small { color: rgba(255,255,255,.82); display: block; }
.mode-card .go { color: var(--yellow); }

.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 40px 0 16px; flex-wrap: wrap; }
.section-title h2 { font-size: 1.35rem; margin: 0; font-weight: 800; }
.section-title span { color: var(--ink-3); font-size: .9rem; }

.materias { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 16px; }
.materia { position: relative; padding: 20px; border-radius: var(--radius); display: flex; flex-direction: column; gap: 14px; overflow: hidden; transition: transform var(--t); }
.materia:hover { transform: translateY(-3px); }
.materia::after { content: ""; position: absolute; right: -40px; top: -40px; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.18), transparent 70%); pointer-events: none; }
.materia-head { display: flex; justify-content: space-between; gap: 8px; align-items: start; }
.materia h3 { font-size: 1.08rem; margin: 0; }
.materia .meta { color: rgba(255,255,255,.8); font-size: .85rem; }
.bar { height: 7px; border-radius: 99px; background: rgba(0,0,0,.25); overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--yellow); border-radius: inherit; transition: width .5s; }
.materia-actions { display: flex; gap: 8px; margin-top: auto; }
.materia-actions .btn { flex: 1; }

.tips { margin-top: 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.tip { padding: 18px; border-radius: var(--radius); color: var(--ink-2); font-size: .92rem; border-top: 3px solid var(--red); }
.tip b { color: var(--ink); display: block; margin-bottom: 4px; }

/* ===== Prova ===== */
.exam-top { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.crumbs { display: flex; gap: 6px; flex-wrap: wrap; }
.crumb { font-size: .78rem; font-weight: 800; padding: 6px 11px; border-radius: 999px; background: rgba(255,255,255,.06); color: var(--ink-3); border: 1px solid var(--glass-line); }
.crumb.done { background: rgba(230,57,70,.22); color: #ffd3d6; border-color: rgba(230,57,70,.4); }
.crumb.cur { background: var(--yellow); color: var(--yellow-ink); border-color: var(--yellow); }
.exam-top .spacer { flex: 1; }

.exam { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 22px; align-items: start; }
.paper { border-radius: var(--radius); overflow: hidden; border-top: 4px solid var(--red); }
.paper-head { padding: 22px 28px 16px; border-bottom: 1px solid var(--glass-line); }
.paper-head .kicker { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); font-weight: 800; }
.qtag { display: inline-flex; align-items: center; gap: 10px; margin-top: 12px; }
.qtag .qnum { background: var(--red); color: #fff; font-weight: 800; letter-spacing: .08em; font-size: .78rem; padding: 7px 16px 7px 12px; clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%); }
.paper-body { padding: 24px 28px 28px; font-family: var(--font-read); font-size: var(--read-size); line-height: 1.75; color: var(--ink); }
.paper-body p { margin: 0 0 .9em; }
.case { background: rgba(230, 57, 70, .10); border: 1px solid rgba(230,57,70,.28); border-left: 4px solid var(--red); padding: 16px 20px; border-radius: 4px var(--radius-sm) var(--radius-sm) 4px; margin: 0 0 18px; color: #f6f0f2; }
.case p { text-indent: 1.6em; margin: 0 0 .6em; }
.case p:first-child { text-indent: 0; }
.case p:last-child { margin-bottom: 0; }
.comando { font-weight: 700; margin: 4px 0 12px; }
ol.perguntas { margin: 0; padding: 0; list-style: none; counter-reset: q; }
ol.perguntas li { counter-increment: q; position: relative; padding: 11px 14px 11px 50px; border-radius: var(--radius-sm); margin-bottom: 8px; background: rgba(255,255,255,.04); border: 1px solid var(--glass-line); }
ol.perguntas li::before { content: counter(q); position: absolute; left: 12px; top: 10px; width: 27px; height: 27px; border-radius: 9px; display: grid; place-items: center; font-family: var(--font); font-weight: 800; font-size: .85rem; background: var(--red); color: #fff; }
.topicos { margin-top: 18px; font-size: .82rem; color: var(--ink-3); border-top: 1px dashed var(--glass-line-2); padding-top: 12px; }

.side { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 14px; }
.panel { border-radius: var(--radius); padding: 18px; }
.panel h3 { font-size: .74rem; text-transform: uppercase; letter-spacing: .16em; color: var(--ink-3); margin: 0 0 12px; font-weight: 800; }

.timer { display: grid; place-items: center; position: relative; margin: 4px auto 12px; width: 196px; height: 196px; }
.timer svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.timer .track { stroke: rgba(255,255,255,.08); }
.timer .prog { stroke: var(--yellow) !important; transition: stroke-dashoffset .25s linear, stroke .3s; stroke-linecap: round; filter: drop-shadow(0 0 8px rgba(255,200,61,.45)); }
.timer.warn .prog { stroke: #ff9f43 !important; filter: drop-shadow(0 0 8px rgba(255,159,67,.5)); }
.timer.crit .prog { stroke: var(--red) !important; filter: drop-shadow(0 0 10px rgba(230,57,70,.6)); }
.timer .digits { font-variant-numeric: tabular-nums; font-size: 2.7rem; font-weight: 800; letter-spacing: -.03em; }
.timer .lbl { position: absolute; bottom: 48px; font-size: .78rem; color: var(--ink-3); }
.timer.crit .digits { color: #ff8a92; animation: pulse 1s ease-in-out infinite; }
.timer.paused .digits { opacity: .5; }
@keyframes pulse { 50% { opacity: .5; } }
.side .row { display: flex; gap: 8px; }
.side .row .btn { flex: 1; }
.side .stack { display: grid; gap: 8px; }
.rec-dot { width: 9px; height: 9px; border-radius: 50%; background: #fff; display: inline-block; animation: pulse 1s infinite; }
.hint { font-size: .82rem; color: var(--ink-3); margin: 10px 0 0; }

.start-card { max-width: 660px; margin: 26px auto; text-align: center; border-radius: 24px; padding: 42px 34px; border-top: 4px solid var(--red); }
.start-card .big-ic { width: 76px; height: 76px; margin: 0 auto 18px; border-radius: 22px; display: grid; place-items: center; background: var(--red-box); color: var(--yellow); box-shadow: 0 14px 30px rgba(120,8,20,.4); }
.start-card h2 { font-size: 1.8rem; font-weight: 800; }
.start-card p { color: var(--ink-2); }
.start-card ul { text-align: left; color: var(--ink-2); margin: 18px auto 26px; max-width: 460px; padding-left: 20px; }
.start-card li::marker { color: var(--red); }
.start-card .row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ===== Gabarito ===== */
.gab { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 22px; align-items: start; }
.tabs { display: flex; gap: 4px; padding: 6px; border-radius: 14px; margin-bottom: 14px; flex-wrap: wrap; }
.tabs button { flex: 1 1 auto; border: 0; background: transparent; padding: 10px 12px; border-radius: 10px; cursor: pointer; font-weight: 700; color: var(--ink-2); font-size: .9rem; white-space: nowrap; transition: var(--t); }
.tabs button:hover { color: var(--ink); }
.tabs button.active { background: var(--yellow); color: var(--yellow-ink); }
.tabs button.active .badge { background: rgba(0,0,0,.12); color: var(--yellow-ink); }
.content-card { border-radius: var(--radius); padding: 26px 30px; border-top: 4px solid var(--red); }
.content-card .paper { background: transparent; border: 0; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.content-card .paper-head, .content-card .paper-body { padding-left: 0; padding-right: 0; }
.content-card .read { font-family: var(--font-read); font-size: var(--read-size); line-height: 1.8; }
.content-card .read p { margin: 0 0 1em; }
.fund { border: 1px solid var(--glass-line); border-radius: var(--radius-sm); padding: 15px 17px; margin-bottom: 12px; background: rgba(255,255,255,.035); }
.fund-head { display: flex; gap: 8px; align-items: center; margin-bottom: 7px; flex-wrap: wrap; }
.fund-type { font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 800; padding: 4px 9px; border-radius: 6px; background: var(--red); color: #fff; }
.fund-type.juris { background: var(--yellow); color: var(--yellow-ink); }
.fund-type.doutrina { background: rgba(255,255,255,.14); color: var(--ink); }
.fund-ref { font-weight: 700; font-size: .92rem; }
.fund-text { font-family: var(--font-read); font-size: .97rem; color: var(--ink-2); white-space: pre-line; line-height: 1.7; }
.fund.lei .fund-text { border-left: 3px solid rgba(230,57,70,.6); padding-left: 12px; }
ol.roteiro { padding-left: 22px; margin: 0; }
ol.roteiro li { margin-bottom: 10px; font-size: var(--read-size); }
ol.roteiro li::marker { color: var(--yellow); font-weight: 800; }
.roteiro-note { color: var(--ink-3); font-size: .88rem; margin-bottom: 14px; }

.sheet { position: sticky; top: 84px; }
.score-box { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: var(--radius); margin-bottom: 14px; }
.score-box .n { font-size: 2.6rem; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1; }
.score-box .n small { font-size: 1rem; opacity: .75; font-weight: 700; }
.score-box .verdict { font-size: .85rem; color: rgba(255,255,255,.88); }
.score-box .verdict b { display: block; font-size: 1.02rem; color: var(--yellow-2); }
.quesito { border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 10px; box-shadow: none; background: rgba(255,255,255,.03); backdrop-filter: none; -webkit-backdrop-filter: none; }
.quesito-head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; margin-bottom: 8px; }
.quesito-head b { font-size: .92rem; }
.quesito-head span { font-size: .78rem; color: var(--ink-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.conceitos { display: grid; gap: 6px; }
.conceito { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; text-align: left; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--glass-line); background: rgba(0,0,0,.18); cursor: pointer; font-size: .85rem; color: var(--ink-2); transition: border-color var(--t), background var(--t); }
.conceito:hover { border-color: rgba(255,200,61,.5); }
.conceito .c { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-weight: 800; background: rgba(255,255,255,.08); color: var(--ink-2); font-size: .82rem; }
.conceito.sel { border-color: var(--yellow); background: rgba(255,200,61,.1); color: var(--ink); }
.conceito.sel .c { background: var(--yellow); color: var(--yellow-ink); }
.sheet-group { font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; color: var(--ink-3); font-weight: 800; margin: 16px 2px 8px; display: flex; justify-content: space-between; }
.sheet-group:first-of-type { margin-top: 4px; }
.sheet-actions { display: grid; gap: 8px; margin-top: 14px; }
.audio-box audio { width: 100%; }

/* ===== Listas e tabelas ===== */
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.input, .select { padding: 11px 14px; border-radius: 12px; border: 1px solid var(--glass-line-2); background: var(--glass-2); color: var(--ink); min-width: 0; }
.input::placeholder { color: var(--ink-3); }
.input { flex: 1; min-width: 220px; }
.select option { background: var(--navy-1); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { border: 1px solid var(--glass-line-2); background: rgba(255,255,255,.04); border-radius: 999px; padding: 7px 13px; cursor: pointer; font-size: .85rem; font-weight: 700; color: var(--ink-2); transition: var(--t); }
.chip:hover { color: var(--ink); border-color: rgba(255,200,61,.5); }
.chip.active { background: var(--yellow); color: var(--yellow-ink); border-color: var(--yellow); }
.qlist { display: grid; gap: 10px; }
.qitem { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 14px 16px; border-radius: var(--radius-sm); transition: border-color var(--t); }
.qitem:hover { border-color: var(--glass-line-2); }
.qitem .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(230,57,70,.18); }
.qitem h4 { margin: 0; font-size: .98rem; }
.qitem p { margin: 2px 0 0; color: var(--ink-3); font-size: .84rem; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.qitem .acts { display: flex; gap: 6px; align-items: center; }
.empty { text-align: center; color: var(--ink-3); padding: 40px; border-radius: var(--radius); border-style: dashed; }

.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 22px; }
.kpi { padding: 18px 20px; border-radius: var(--radius); }
.kpi span { color: rgba(255,255,255,.82); font-size: .82rem; }
.kpi b { display: block; font-size: 1.9rem; font-variant-numeric: tabular-nums; font-weight: 800; }
.kpi b small { color: rgba(255,255,255,.7) !important; }
table.tbl { width: 100%; border-collapse: separate; border-spacing: 0; border-radius: var(--radius); overflow: hidden; font-size: .92rem; }
.tbl th, .tbl td { padding: 12px 15px; text-align: left; border-bottom: 1px solid var(--glass-line); }
.tbl th { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); background: rgba(0,0,0,.18); }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover td { background: rgba(255,255,255,.03); }
.tbl td.num { font-variant-numeric: tabular-nums; font-weight: 800; }
.tbl-wrap { overflow-x: auto; border-radius: var(--radius); }

.result-hero { text-align: center; padding: 36px 20px; border-radius: 24px; margin-bottom: 22px; }
.result-hero .eyebrow { color: var(--yellow-2); }
.result-hero .n { font-size: 4rem; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; margin: 8px 0; }
.result-hero p { color: rgba(255,255,255,.88); }
.result-hero .btn:not(.primary) { border-color: rgba(255,217,112,.85); color: var(--yellow-2); }

/* ===== Diálogo / toast ===== */
.dialog { border: 1px solid var(--glass-line-2); padding: 0; border-radius: 20px; background: rgba(8, 20, 52, .92); color: var(--ink); box-shadow: 0 30px 80px rgba(0,0,0,.55); width: min(520px, 94vw); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); }
.dialog::backdrop { background: rgba(2, 6, 18, .6); backdrop-filter: blur(4px); }
.dialog-body { padding: 26px; display: grid; gap: 14px; border-top: 4px solid var(--red); border-radius: 20px; }
.dialog-body h2 { margin: 0 0 4px; font-size: 1.3rem; }
.field { display: grid; gap: 6px; }
.field > span { font-weight: 700; font-size: .92rem; display: flex; justify-content: space-between; }
.field input[type=number], .field select { padding: 10px 12px; border-radius: 10px; border: 1px solid var(--glass-line-2); background: rgba(0,0,0,.25); color: var(--ink); }
.field select option { background: var(--navy-1); }
.field input[type=range] { accent-color: var(--yellow); }
.field small { color: var(--ink-3); font-size: .8rem; }
.check { display: flex; gap: 10px; align-items: center; font-size: .93rem; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--yellow); }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 6px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 30px); background: var(--yellow); color: var(--yellow-ink); padding: 12px 20px; border-radius: 14px; font-weight: 700; font-size: .92rem; opacity: 0; pointer-events: none; transition: var(--t); z-index: 50; box-shadow: 0 14px 30px rgba(0,0,0,.4); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.speaking { outline: 2px dashed rgba(255,200,61,.7); outline-offset: 6px; border-radius: 8px; }

/* ===== Responsivo ===== */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }
  .exam, .gab { grid-template-columns: 1fr; }
  .side, .sheet { position: static; }
  .exam .side { display: contents; }
  .exam .side .panel:first-child { order: -1; position: sticky; top: 66px; z-index: 5; display: flex; align-items: center; gap: 14px; padding: 10px 14px; background: rgba(8,20,52,.9); }
  .exam .side .panel:first-child h3, .exam .side .panel:first-child .lbl { display: none; }
  .exam .side .panel:first-child .timer { width: 78px; height: 78px; margin: 0; flex: none; }
  .exam .side .panel:first-child .timer .digits { font-size: 1.2rem; }
  .exam .side .panel:first-child .stack { flex: 1; grid-template-columns: 1fr auto; align-items: center; }
  .exam .side .panel:first-child .stack .btn.lg { padding: 11px 14px; font-size: .95rem; }
  .exam .side .panel:not(:first-child) { order: 1; }
}
@media (max-width: 640px) {
  .topbar-inner { flex-wrap: wrap; row-gap: 8px; }
  .nav { order: 3; width: 100%; margin: 0; overflow-x: auto; }
  .nav a { white-space: nowrap; padding: 7px 12px; font-size: .88rem; }
  .exam .side .panel:first-child { top: 108px; gap: 10px; padding: 8px 10px; }
  .exam .side .panel:first-child .timer { width: 64px; height: 64px; }
  .exam .side .panel:first-child .timer .digits { font-size: 1rem; }
  .exam .side .panel:first-child .stack { gap: 6px; }
  .exam .side .panel:first-child .stack .btn { padding: 10px 11px; font-size: .88rem; }
  main { padding: 20px 14px 70px; }
  .paper-head, .paper-body, .content-card { padding-left: 18px; padding-right: 18px; }
  .qitem { grid-template-columns: auto 1fr; }
  .qitem .acts { grid-column: 1 / -1; }
  .brand-text small { display: none; }
  .hero h1 { font-size: 2rem; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
@media print { .topbar, .side, .sheet, .tabs, .liquid { display: none !important; } body { color: #000; } .gab, .exam { grid-template-columns: 1fr; } }
