/* =====================================================================
   Lab Walden4 — Instrução Baseada em Equivalência
   ---------------------------------------------------------------------
   Estilos desta página. Carrega depois do tema do site
   (/assets/css/theme.css), de que usa os tokens, e NÃO depende de
   /experimentos/assets/experimentos.css: a primeira parte copia de lá só o
   que a página usa (menu, herói, botões, palco, painéis, lista de passos,
   resultados, rodapé), para que mudanças no CSS compartilhado do Lab não a
   quebrem. Se a página passar para o núcleo comum do Lab, essa parte sai.
   ===================================================================== */

/* ===== Reset (idêntico ao tema; mantido por segurança) ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
}

img { display: block; max-width: 100%; }

/* ===== Navigation ===== */
.nav-bar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(251, 247, 241, 0.82);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--color-border);
    transition: all var(--dur-mid) var(--ease-out);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .nav-bar { background: rgba(251, 247, 241, 0.97); }
}

.nav-container {
    max-width: var(--max-wide);
    margin: 0 auto;
    padding: 0 32px;
    height: 68px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo { display: flex; flex-direction: column; gap: 2px; text-decoration: none; }

.nav-logo-name {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--navy-900);
    line-height: 1.1;
}

.nav-logo-tagline {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--clay-600);
    line-height: 1;
}

.nav-menu { display: flex; list-style: none; align-items: center; gap: 4px; }

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--grey-600);
    text-decoration: none;
    padding: 8px 14px;
    border-radius: var(--r-sm);
    transition: all var(--dur-fast) var(--ease-out);
}

.nav-link .material-icons { font-size: 18px; }
.nav-link:hover { background-color: var(--clay-50); color: var(--clay-600); }

/* ===== Page hero ===== */
.page-hero {
    position: relative;
    overflow: hidden;
    background: var(--navy-950);
    padding: 140px 32px 64px;
    text-align: center;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 50% -8%, rgba(197, 107, 75, 0.10) 0%, transparent 55%),
        radial-gradient(circle at 88% 18%, rgba(126, 155, 129, 0.08) 0%, transparent 45%),
        radial-gradient(rgba(176, 87, 59, 0.05) 1px, transparent 1px);
    background-size: auto, auto, 24px 24px;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 92%);
    mask-image: linear-gradient(180deg, #000 0%, transparent 92%);
}

.page-hero-inner { position: relative; z-index: 1; max-width: var(--max-content); margin: 0 auto; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px 6px 10px;
    border: 1px solid rgba(214, 164, 136, 0.5);
    border-radius: var(--r-full);
    background: rgba(214, 164, 136, 0.14);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--clay-300);
    margin-bottom: 28px;
}

.eyebrow .material-icons { font-size: 16px; color: var(--clay-300); }

.page-title {
    font-size: clamp(34px, 6vw, 56px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.025em;
    color: var(--mist);
    margin-bottom: 20px;
}

.page-title em { font-style: normal; color: var(--clay-300); }

.page-subtitle {
    font-size: clamp(16px, 2.2vw, 19px);
    font-weight: 400;
    line-height: 1.7;
    color: var(--color-on-dark);
    max-width: 640px;
    margin: 0 auto;
}

/* ===== Buttons ===== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 32px;
    background: var(--navy-800);
    color: var(--white);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: var(--r-full);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all var(--dur-mid) var(--ease-spring);
}

.btn-primary .material-icons { font-size: 19px; }
.btn-primary:hover { transform: translateY(-3px); background: var(--navy-700); box-shadow: 0 10px 28px rgba(27, 45, 71, 0.30); }
.btn-primary:disabled { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: var(--shadow-sm); }

.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    background: transparent;
    color: var(--clay-600);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border: 1.5px solid var(--clay-300);
    border-radius: var(--r-full);
    cursor: pointer;
    transition: all var(--dur-mid) var(--ease-out);
}

.btn-ghost .material-icons { font-size: 19px; }
.btn-ghost:hover { border-color: var(--clay-500); background: var(--clay-50); transform: translateY(-2px); }

/* ===== Experiment page scaffold ===== */
.exp-main { padding: 24px 20px 96px; }
.exp-stage {
    max-width: 720px;
    margin: 0 auto;
    background: var(--warm-white);
    border: 1px solid var(--color-border);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-md);
    padding: 40px 36px;
}

.panel { display: none; }
.panel.active { display: block; animation: fade-in var(--dur-mid) var(--ease-out); }

@keyframes fade-in {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.panel-lead {
    font-size: 16px;
    line-height: 1.75;
    color: var(--color-text);
    margin-bottom: 24px;
}

.panel h3 {
    font-size: 18px;
    color: var(--ink);
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.steps { list-style: none; margin: 0 0 28px; display: grid; gap: 14px; }
/* Em bloco, não flex: o texto de cada passo mistura <strong> e texto solto, e
   num contêiner flex cada pedaço vira uma coluna. O número fica posicionado à
   esquerda, centrado na primeira linha. */
.steps li { position: relative; padding-left: 42px; min-height: 28px; font-size: 15px; line-height: 1.6; color: var(--color-text); }
.steps .num {
    position: absolute;
    left: 0; top: -2px;
    width: 28px; height: 28px;
    border-radius: var(--r-full);
    background: var(--clay-50);
    border: 1px solid var(--clay-100);
    color: var(--clay-600);
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.actions-row { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }

/* Results */
.result-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; margin: 24px 0 28px; }
.result-stat {
    background: var(--off-white);
    border: 1px solid var(--color-border);
    border-radius: var(--r-lg);
    padding: 22px 18px;
    text-align: center;
}
.result-stat .value { font-size: 32px; font-weight: 800; color: var(--clay-500); letter-spacing: -0.02em; line-height: 1; }
.result-stat .value small { font-size: 15px; font-weight: 600; color: var(--clay-400); }
.result-stat .label { font-size: 12px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--grey-500); margin-top: 8px; }

.explain {
    background: var(--clay-50);
    border: 1px solid var(--clay-100);
    border-radius: var(--r-lg);
    padding: 24px 26px;
    margin-top: 8px;
}
.explain h3 { color: var(--clay-600); }
.explain p { font-size: 14.5px; line-height: 1.75; color: var(--grey-700); }
.explain p + p { margin-top: 12px; }

.disclaimer { font-size: 12.5px; color: var(--grey-500); text-align: center; margin-top: 28px; line-height: 1.6; }

/* ===== Footer ===== */
.footer {
    background: var(--grey-50);
    color: var(--color-text);
    padding: 56px 32px 32px;
    border-top: 1px solid var(--color-border);
}

.footer-inner {
    max-width: var(--max-wide);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-brand-name { font-size: 18px; font-weight: 700; color: var(--navy-900); }
.footer-brand-sub { font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--clay-600); }

/* O tema empilha os links do rodapé do site em coluna; aqui eles ficam em linha. */
.footer-links { display: flex; flex-direction: row; align-items: center; gap: 8px; flex-wrap: wrap; }
.footer-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--grey-600);
    text-decoration: none;
    padding: 6px 12px;
    border-radius: var(--r-sm);
    transition: all var(--dur-fast) var(--ease-out);
}
.footer-link:hover { color: var(--clay-600); background: var(--warm-white); }

/* display: block desfaz o flex que o tema dá a .footer-bottom: aqui o
   copyright é uma linha só de texto, que o flex espalhava em três pedaços. */
.footer-bottom {
    display: block;
    max-width: var(--max-wide);
    margin: 32px auto 0;
    padding-top: 24px;
    border-top: 1px solid var(--color-border);
    font-size: 13px;
    color: var(--grey-600);
    text-align: center;
}

/* ===== Responsive ===== */
@media (max-width: 640px) {
    .nav-container { padding: 0 20px; height: 60px; }
    .nav-menu { gap: 0; }
    .nav-link span:not(.material-icons) { display: none; }
    .nav-link { padding: 8px 10px; }
    .page-hero { padding: 110px 20px 48px; }
    .exp-stage { padding: 28px 22px; }
    .footer-inner { flex-direction: column; text-align: center; }
    .footer-links { justify-content: center; }
}

/* ===== Accessibility ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

:focus-visible { outline: 2px solid var(--clay-500); outline-offset: 3px; border-radius: 4px; }
::selection { background-color: var(--clay-500); color: var(--white); }

/* =====================================================================
   Componentes desta página
   ===================================================================== */

/* O palco é mais largo que o dos outros experimentos: o treino mostra
   quatro cartões lado a lado, como na tela do estudo. */
.exp-stage.ibe-stage { max-width: 1100px; padding: 40px 36px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ibe-narrow { max-width: 760px; margin: 0 auto; }
.ibe-h { font-size: 22px; color: var(--ink); text-align: center; margin-bottom: 8px; letter-spacing: -0.01em; }
.ibe-sub { text-align: center; color: var(--color-text-muted); margin: 0 auto 24px; max-width: 620px; }
.ibe-note { font-size: 13.5px; line-height: 1.65; color: var(--grey-500); }
.ibe-note a, .ibe-prose a { color: var(--clay-600); font-weight: 600; }

/* ---------- Introdução ---------- */
.ibe-cite {
    display: flex; gap: 14px; align-items: flex-start;
    background: var(--off-white); border: 1px solid var(--color-border); border-radius: var(--r-lg);
    padding: 16px 18px; margin: 4px 0 28px; font-size: 14px; line-height: 1.6; color: var(--grey-600);
}
.ibe-cite .material-icons { color: var(--clay-500); font-size: 26px; flex-shrink: 0; margin-top: 1px; }
.ibe-cite a { color: var(--clay-600); font-weight: 600; }
.ibe-diagram { margin: 8px auto 28px; max-width: 560px; }
.ibe-diagram svg { width: 100%; height: auto; display: block; }
.ibe-diagram-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; font-size: 12.5px; color: var(--grey-600); margin-top: 6px; }
.ibe-diagram-legend span { display: inline-flex; align-items: center; gap: 8px; }
.ibe-sw { width: 26px; height: 0; border-top: 3px solid var(--navy-600); }
.ibe-sw.dash { border-top-style: dashed; border-top-color: var(--clay-500); }
.ibe-field { margin: 0 auto 22px; max-width: 420px; }
.ibe-field label { display: block; font-size: 13px; font-weight: 600; color: var(--grey-600); margin-bottom: 6px; }
.ibe-field input {
    width: 100%; font: inherit; font-size: 15px; padding: 11px 14px; color: var(--ink);
    border: 1.5px solid var(--grey-200); border-radius: var(--r-md); background: var(--white);
}
.ibe-field input:focus { outline: none; border-color: var(--navy-400); box-shadow: 0 0 0 3px rgba(63, 106, 134, 0.15); }
.ibe-field small { display: block; font-size: 12px; color: var(--grey-500); margin-top: 6px; }
.ibe-resume {
    background: var(--clay-50); border: 1px solid var(--clay-100); border-radius: var(--r-lg);
    padding: 16px 18px; margin: 0 auto 20px; max-width: 560px; text-align: center; font-size: 14.5px; color: var(--grey-700);
}
.ibe-link-btn { background: none; border: 0; font: inherit; font-size: 13.5px; color: var(--grey-500); text-decoration: underline; cursor: pointer; padding: 6px; }
.ibe-link-btn:hover { color: var(--clay-600); }

/* ---------- Roteiro (o "documento com os links" do estudo) ---------- */
.rt-banner {
    display: flex; gap: 12px; align-items: flex-start;
    border-radius: var(--r-lg); padding: 14px 16px; margin-bottom: 18px; font-size: 14.5px; line-height: 1.6;
    background: var(--navy-50); border: 1px solid var(--navy-100); color: var(--grey-700);
}
.rt-banner .material-icons { color: var(--navy-500); flex-shrink: 0; }
.rt-banner.warn { background: var(--clay-50); border-color: var(--clay-100); }
.rt-banner.warn .material-icons { color: var(--clay-500); }
.rt-banner.good { background: #EEF8F1; border-color: #CDEBD6; }
.rt-banner.good .material-icons { color: #1E7A44; }
.rt-enc { border: 1px solid var(--color-border); border-radius: var(--r-lg); padding: 16px 18px 8px; margin-bottom: 14px; background: var(--white); }
.rt-enc.past { background: var(--grey-50); }
.rt-enc-h { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; margin-bottom: 6px; }
.rt-enc-h b { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--clay-600); }
.rt-enc-h span { font-size: 12.5px; color: var(--grey-500); }
.rt-item { display: flex; gap: 12px; align-items: flex-start; padding: 9px 0; border-top: 1px solid var(--grey-100); }
.rt-item:first-of-type { border-top: 0; }
.rt-item > .material-icons { font-size: 22px; color: var(--grey-300); flex-shrink: 0; margin-top: 1px; }
.rt-item.ok > .material-icons { color: #1E8E4E; }
.rt-item.fail > .material-icons { color: var(--clay-400); }
.rt-item.now > .material-icons { color: var(--clay-500); }
.rt-item.now { background: var(--clay-50); margin: 0 -18px; padding: 12px 18px; border-top-color: var(--clay-100); }
.rt-body { flex: 1; min-width: 0; }
.rt-title { font-weight: 700; color: var(--ink); font-size: 15px; }
.rt-title em { font-style: normal; font-weight: 600; color: var(--clay-600); font-size: 12.5px; margin-left: 4px; }
.rt-desc { font-size: 13px; color: var(--grey-500); line-height: 1.5; }
.rt-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.rt-chip { font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: var(--r-full); background: var(--grey-100); color: var(--grey-600); }
.rt-chip.ok { background: #E4F4EA; color: #1E6B3E; }
.rt-chip.no { background: var(--clay-50); color: var(--clay-600); }
.rt-go { margin-top: 10px; }
.rt-go .btn-primary { padding: 11px 24px; font-size: 14.5px; }
.rt-foot { display: flex; flex-wrap: wrap; gap: 10px 18px; justify-content: center; margin-top: 18px; }

/* ---------- Treino: questionário de cartões (como o do estudo) ---------- */
.ww {
    position: relative; background: #fff; border: 1px solid var(--grey-200); border-radius: var(--r-lg);
    min-height: 620px; padding: 14px 18px 76px; color: #1f1f1f; overflow: hidden;
}
.ww-top { display: flex; justify-content: space-between; align-items: center; font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ww-score { display: inline-flex; align-items: center; gap: 8px; }
.ww-score .material-icons { font-size: 30px; }
.ww-tag { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--grey-400); }
.ww-sample { text-align: center; color: #111; font-weight: 700; margin: 14px auto 26px; max-width: 1000px; line-height: 1.12; overflow-wrap: anywhere; }
.ww-sample.is-rotulo { font-size: clamp(42px, 7.4vw, 84px); letter-spacing: -0.01em; }
.ww-sample.is-texto  { font-size: clamp(22px, 3.3vw, 40px); line-height: 1.22; }
.ww-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.ww-card {
    position: relative; display: flex; flex-direction: column; align-items: center;
    min-height: 330px; padding: 12px 12px 58px; border: 0; border-radius: 6px; color: #fff;
    background: var(--c);
    background: linear-gradient(180deg, color-mix(in srgb, var(--c) 82%, #fff) 0%, var(--c) 30%, color-mix(in srgb, var(--c) 86%, #000) 100%);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.20), inset 0 0 0 6px rgba(255, 255, 255, 0.10);
    font: inherit; text-align: center; cursor: pointer; touch-action: manipulation;
    transition: opacity 0.3s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.ww-card:hover:not(:disabled) { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(0, 0, 0, 0.24), inset 0 0 0 6px rgba(255, 255, 255, 0.12); }
.ww-card:disabled { cursor: default; }
.ww-card:focus-visible { outline: 3px solid #111; outline-offset: 3px; }
.ww-letter { font-size: 44px; font-weight: 400; line-height: 1; opacity: 0.78; margin: 2px 0 12px; }
.ww-content { flex: 1; width: 100%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 17px; line-height: 1.32; }
.ww-content.is-rotulo { font-size: 24px; }
.ww-content.is-vinheta { font-size: 13.5px; font-weight: 600; line-height: 1.42; }
.ww-graph { display: block; background: #fff; padding: 6px 4px; border-radius: 2px; width: 100%; align-self: center; }
.ww-graph svg { display: block; width: 100%; height: auto; }
.ww-mark { position: absolute; left: 0; right: 0; bottom: 8px; display: flex; justify-content: center; }
.ww-mark .material-icons { font-size: 54px; color: rgba(255, 255, 255, 0.92); text-shadow: 0 2px 6px rgba(0, 0, 0, 0.25); }
.ww-card.apagada { opacity: 0.22; }
.ww-nav { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; align-items: center; gap: 14px; font-size: 24px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ww-arrow { width: 46px; height: 46px; border: 0; background: none; color: #222; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; }
.ww-arrow svg { width: 34px; height: 34px; }
.ww-arrow:disabled { color: #c4c4c4; cursor: default; }
.ww-arrow:not(:disabled):hover { background: #f1f1f1; }
.ww-exit { position: absolute; right: 12px; bottom: 16px; border: 0; background: none; color: #333; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; font: inherit; font-size: 13px; font-weight: 600; padding: 8px; border-radius: 6px; }
.ww-exit:hover { background: #f1f1f1; }
.ww-exit .material-icons { font-size: 26px; }
.ww-review { position: absolute; left: 16px; bottom: 26px; font-size: 12.5px; font-weight: 700; color: var(--grey-500); letter-spacing: 0.04em; }

.ww-overlay {
    position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 28px; text-align: center; color: #fff; background: rgba(24, 24, 24, 0.92);
}
.ww-overlay[hidden], .ww-end[hidden] { display: none; }
.ww-ov-kicker { font-size: 24px; font-weight: 600; }
.ww-ov-title { font-size: clamp(26px, 4.8vw, 54px); font-weight: 700; line-height: 1.12; margin: 6px 0 28px; }
.ww-play {
    width: 156px; height: 156px; border: 0; border-radius: 6px; background: #33AAF2; color: #fff; cursor: pointer;
    display: flex; flex-direction: column; align-items: center; justify-content: center; font: inherit; font-size: 22px; font-weight: 700; letter-spacing: 0.02em;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35); transition: transform 0.15s ease;
}
.ww-play:hover { transform: scale(1.04); }
.ww-play .material-icons { font-size: 92px; line-height: 0.9; }
.ww-ov-instr { font-size: clamp(16px, 2.3vw, 25px); line-height: 1.4; margin-top: 28px; max-width: 800px; }
.ww-ov-meta { font-size: 13.5px; color: rgba(255, 255, 255, 0.7); margin-top: 18px; }
.ww-sound { position: absolute; top: 12px; right: 14px; border: 0; background: none; color: #fff; cursor: pointer; padding: 6px; }
.ww-sound .material-icons { font-size: 34px; }

.ww-end { position: absolute; inset: 0; z-index: 6; background: #fff; display: flex; align-items: center; justify-content: center; padding: 28px; }
.ww-end-box { max-width: 560px; width: 100%; text-align: center; }
.ww-end-k { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--grey-500); }
.ww-end-score { font-size: 64px; font-weight: 800; color: var(--ink); line-height: 1.05; margin: 6px 0 2px; font-variant-numeric: tabular-nums; }
.ww-end-score small { font-size: 26px; color: var(--grey-400); font-weight: 700; }
.ww-end-time { color: var(--grey-500); font-size: 14px; margin-bottom: 16px; }
.ww-end-blocks { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-bottom: 18px; }
.ww-end-msg { font-size: 15.5px; line-height: 1.65; color: var(--grey-700); margin-bottom: 22px; }
.ww-end-msg strong { color: var(--ink); }

/* ---------- Testes: formulário de uma questão por página (como o do estudo) ---------- */
.gf { --gf-cor: #5E35B1; --gf-fundo: #EDE7F6; background: var(--gf-fundo); border-radius: var(--r-lg); padding: 24px 14px 30px; color: #202124; }
.gf-inner { max-width: 690px; margin: 0 auto; }
.gf-card { background: #fff; border: 1px solid #dadce0; border-radius: 8px; padding: 22px 24px; margin-bottom: 12px; }
.gf-head { border-top: 10px solid var(--gf-cor); }
.gf-head h2 { font-size: 30px; font-weight: 400; line-height: 1.25; color: #202124; letter-spacing: 0; }
.gf-desc { font-size: 14.5px; line-height: 1.6; margin-top: 12px; }
.gf-desc p + p { margin-top: 10px; }
.gf-meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 16px; margin-top: 16px; padding-top: 12px; border-top: 1px solid #dadce0; font-size: 13.5px; color: #5f6368; }
.gf-req { color: #d93025; }
.gf-q { padding: 0; overflow: hidden; }
.gf-band { background: var(--gf-cor); color: #fff; padding: 10px 24px; font-size: 14px; font-weight: 500; min-height: 40px; }
.gf-q-body { padding: 22px 24px; }
.gf-q-title { font-size: 16px; line-height: 1.55; margin-bottom: 16px; }
.gf-star { color: #d93025; margin-left: 2px; }
.gf-q-graph { margin: 4px 0 18px; max-width: 520px; }
.gf-q-graph svg { display: block; width: 100%; height: auto; }
.gf-opts { display: grid; gap: 4px; }
.gf-opt { display: flex; gap: 14px; align-items: flex-start; padding: 8px 4px; border-radius: 6px; cursor: pointer; font-size: 14.5px; line-height: 1.5; }
.gf-opt:hover { background: #f8f9fa; }
.gf-opt input { appearance: none; -webkit-appearance: none; width: 20px; height: 20px; margin: 1px 0 0; flex-shrink: 0; border: 2px solid #5f6368; border-radius: 50%; cursor: pointer; }
.gf-opt input:checked { border-color: var(--gf-cor); background: radial-gradient(circle, var(--gf-cor) 0 4.5px, transparent 5px); }
.gf-opt input:focus-visible { outline: 2px solid var(--gf-cor); outline-offset: 2px; }
.gf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; }
.gf-imgopt { display: flex; flex-direction: column; gap: 10px; cursor: pointer; }
.gf-imgopt-pic { border: 1px solid #dadce0; border-radius: 6px; padding: 8px 6px; background: #fff; box-shadow: 0 1px 2px rgba(60, 64, 67, 0.15); }
.gf-imgopt-pic svg { display: block; width: 100%; height: auto; }
.gf-imgopt .gf-opt { padding: 2px 4px; }
.gf-error { display: none; align-items: center; gap: 8px; margin-top: 12px; color: #d93025; font-size: 13px; }
.gf-error .material-icons { font-size: 19px; }
.gf-q.erro { border-color: #d93025; }
.gf-q.erro .gf-error { display: flex; }
.gf-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 4px; }
.gf-btn {
    border: 0; border-radius: 4px; padding: 10px 24px; font: inherit; font-size: 14px; font-weight: 600; letter-spacing: 0.01em; cursor: pointer;
    background: #fff; color: var(--gf-cor); box-shadow: 0 1px 2px rgba(60, 64, 67, 0.3), 0 1px 3px 1px rgba(60, 64, 67, 0.15);
}
.gf-btn:hover { background: #f6f3fb; }
.gf-btn.primary { background: var(--gf-cor); color: #fff; }
.gf-btn.primary:hover { filter: brightness(1.08); }
.gf-progress { display: inline-flex; align-items: center; gap: 10px; margin-left: auto; font-size: 13px; color: #5f6368; }
.gf-bar { width: 130px; height: 10px; border-radius: 5px; background: rgba(0, 0, 0, 0.1); overflow: hidden; }
.gf-bar i { display: block; height: 100%; background: var(--gf-cor); border-radius: 5px; }
.gf-leave { display: block; margin: 18px auto 0; }
.gf-likert { display: grid; grid-template-columns: minmax(70px, auto) repeat(5, 1fr) minmax(70px, auto); align-items: end; gap: 4px; text-align: center; font-size: 13px; color: #5f6368; }
.gf-likert label { display: flex; flex-direction: column; align-items: center; gap: 8px; cursor: pointer; padding: 4px 0; font-size: 14px; color: #202124; }
.gf-likert input { appearance: none; -webkit-appearance: none; width: 20px; height: 20px; border: 2px solid #5f6368; border-radius: 50%; margin: 0; cursor: pointer; }
.gf-likert input:checked { border-color: var(--gf-cor); background: radial-gradient(circle, var(--gf-cor) 0 4.5px, transparent 5px); }
.gf-likert input:focus-visible { outline: 2px solid var(--gf-cor); outline-offset: 2px; }
.gf-likert .gf-end { padding-bottom: 6px; line-height: 1.3; }
.gf-sent { text-align: left; }
.gf-sent h2 { margin-bottom: 14px; }

/* ---------- Avisos do protocolo ---------- */
.ibe-icon {
    width: 64px; height: 64px; margin: 0 auto 18px; border-radius: var(--r-full);
    background: var(--navy-50); border: 1px solid var(--navy-100); display: flex; align-items: center; justify-content: center;
}
.ibe-icon .material-icons { font-size: 32px; color: var(--navy-500); }
.ibe-icon.warm { background: var(--clay-50); border-color: var(--clay-100); }
.ibe-icon.warm .material-icons { color: var(--clay-500); }
.ibe-aviso p { text-align: center; font-size: 16px; line-height: 1.7; color: var(--color-text); max-width: 580px; margin: 0 auto 12px; }

/* ---------- Resultados ---------- */
.ibe-figs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 18px 0 8px; }
.ibe-fig { border: 1px solid var(--color-border); border-radius: var(--r-lg); padding: 16px 14px 10px; background: var(--white); }
.ibe-fig.wide { grid-column: 1 / -1; }
.so-estreito { display: none; }
.ibe-fig h4 { font-size: 13.5px; color: var(--ink); line-height: 1.4; margin-bottom: 2px; }
.ibe-fig p { font-size: 12.5px; color: var(--grey-500); line-height: 1.5; }
.ibe-fig svg { width: 100%; height: auto; display: block; margin-top: 8px; }
.ibe-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; color: var(--grey-600); margin-top: 6px; }
.ibe-legend span { display: inline-flex; align-items: center; gap: 6px; }
.ibe-legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.ibe-sec { font-size: 18px; color: var(--ink); margin: 34px 0 6px; letter-spacing: -0.01em; }
.ibe-sec + p { font-size: 14px; color: var(--grey-500); margin-bottom: 8px; }
.ibe-table-wrap { overflow-x: auto; margin: 12px 0 6px; border: 1px solid var(--color-border); border-radius: var(--r-lg); }
.ibe-table { width: 100%; border-collapse: collapse; font-size: 13.5px; background: var(--white); }
.ibe-table th, .ibe-table td { padding: 9px 12px; border-bottom: 1px solid var(--grey-100); text-align: center; vertical-align: top; }
.ibe-table th { font-size: 12px; font-weight: 700; letter-spacing: 0.04em; color: var(--grey-600); background: var(--grey-50); }
.ibe-table td:first-child, .ibe-table th:first-child { text-align: left; }
.ibe-table tr:last-child td { border-bottom: 0; }
.ibe-table .voce { background: var(--clay-50); color: var(--clay-600); font-weight: 700; }
.ibe-stim td { text-align: left; font-size: 13px; line-height: 1.5; min-width: 150px; }
.ibe-stim td:first-child { font-weight: 700; color: var(--grey-600); min-width: 90px; }
.ibe-stim svg { width: 100%; min-width: 150px; height: auto; display: block; }
.ibe-prose p { font-size: 14.5px; line-height: 1.75; color: var(--grey-700); }
.ibe-prose p + p { margin-top: 12px; }
.ibe-list { margin: 10px 0 0 0; padding-left: 20px; display: grid; gap: 8px; font-size: 14px; line-height: 1.65; color: var(--grey-700); }
.ibe-list strong { color: var(--ink); }
.ibe-funcs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 14px 0 4px; }
.ibe-func { border: 1px solid var(--color-border); border-radius: var(--r-md); padding: 14px 16px; background: var(--white); font-size: 13.5px; line-height: 1.6; color: var(--grey-700); }
.ibe-func b { display: block; color: var(--ink); font-size: 14.5px; margin-bottom: 2px; }
.ibe-flag { display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: 0.03em; color: var(--clay-600); background: var(--clay-50); border: 1px solid var(--clay-100); border-radius: var(--r-full); padding: 1px 9px; margin-left: 6px; vertical-align: 2px; }

@media (max-width: 900px) {
    .ww-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ww-card { min-height: 240px; }
    .ibe-figs { grid-template-columns: 1fr; }
    .so-largo { display: none; }
    .so-estreito { display: block; }
}
@media (max-width: 640px) {
    .exp-stage.ibe-stage { padding: 24px 14px; }
    .ww { padding: 12px 10px 74px; min-height: 0; }
    .ww-sample.is-rotulo { font-size: 38px; }
    .ww-sample.is-texto { font-size: 21px; }
    .ww-cards { grid-template-columns: 1fr; gap: 10px; }
    /* no celular, cartões de texto viram linhas: letra, texto e ✓/✗ ao lado */
    .ww-card { min-height: 0; flex-direction: row; align-items: center; gap: 14px; padding: 12px 52px 12px 14px; text-align: left; }
    .ww-letter { font-size: 26px; margin: 0; min-width: 20px; text-align: center; }
    .ww-content { justify-content: flex-start; font-size: 15.5px; }
    .ww-content.is-vinheta { font-size: 14px; }
    .ww-mark { left: auto; right: 10px; bottom: auto; top: 50%; transform: translateY(-50%); }
    .ww-mark .material-icons { font-size: 34px; }
    .ww-card.tem-grafico { flex-direction: column; gap: 0; padding: 10px 10px 46px; text-align: center; }
    .ww-card.tem-grafico .ww-letter { margin-bottom: 8px; }
    .ww-card.tem-grafico .ww-mark { left: 0; right: 0; top: auto; bottom: 6px; transform: none; }
    .ww-overlay { justify-content: flex-start; padding-top: 56px; }
    .ww-top { font-size: 18px; }
    .rt-enc-h { flex-direction: column; gap: 2px; }
    .ww-exit span:not(.material-icons) { display: none; }
    .ww-review { display: none; }
    .gf { padding: 14px 6px 22px; }
    .gf-card { padding: 18px 16px; }
    .gf-q { padding: 0; }
    .gf-band { padding: 10px 16px; }
    .gf-q-body { padding: 18px 16px; }
    .gf-head h2 { font-size: 24px; }
    .gf-grid { grid-template-columns: 1fr; }
    .gf-progress { margin-left: 0; width: 100%; }
    .gf-likert { grid-template-columns: repeat(5, 1fr); }
    .gf-likert .gf-end { display: none; }
    .ibe-funcs { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    .ww-card, .ww-play { transition: none; }
}
