:root {
    --bg: #f8fafc;
    --surface: #ffffff;
    --surface-raised: #ffffff;
    --surface-soft: #eef8f6;
    --surface-glass: rgba(255, 255, 255, 0.90);
    --ink: #172033;
    --muted: #64748b;
    --line: #e2e8f0;
    --primary: #0f9f8f;
    --primary-dark: #087a70;
    --coral: #f9735b;
    --gold: #f2b84b;
    --violet: #7065d8;
    --blue: #2f6fdd;
    --nav-text: #344054;
    --hero-ink: #172033;
    --hero-muted: #53627a;
    --hero-card-bg:
        linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(244, 249, 252, 0.9)),
        linear-gradient(135deg, rgba(15, 159, 143, 0.14), rgba(112, 101, 216, 0.12) 50%, rgba(249, 115, 91, 0.12));
    --hero-card-border: rgba(15, 159, 143, 0.18);
    --hero-grid-line: rgba(15, 159, 143, 0.08);
    --hero-progress-bg: rgba(23, 32, 51, 0.12);
    --hero-screen-bg:
        linear-gradient(90deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.68)),
        linear-gradient(135deg, rgba(40, 198, 184, 0.3), rgba(112, 101, 216, 0.22) 52%, rgba(249, 115, 91, 0.24));
    --hero-queue-bg: rgba(255, 255, 255, 0.74);
    --hero-queue-border: rgba(23, 32, 51, 0.1);

    /* Layout Container & Fluid Gutter */
    --container-width: 1220px;
    --container-gutter: clamp(16px, 3.5vw, 36px);

    /* Modern Multi-layer Elevation */
    --shadow-xs: 0 1px 2px 0 rgba(15, 23, 42, 0.04);
    --shadow-sm: 0 2px 4px -1px rgba(15, 23, 42, 0.06), 0 1px 2px -1px rgba(15, 23, 42, 0.04);
    --shadow: 0 4px 18px -2px rgba(15, 23, 42, 0.07), 0 2px 6px -1px rgba(15, 23, 42, 0.03);
    --shadow-md: 0 10px 26px -4px rgba(15, 23, 42, 0.09), 0 4px 10px -2px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 20px 40px -6px rgba(15, 23, 42, 0.12), 0 8px 16px -4px rgba(15, 23, 42, 0.05);

    /* Harmonious Border Radius Scale */
    --radius-sm: 6px;
    --radius: 10px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 22px;
    --radius-full: 9999px;

    /* Typography & Spacing Scale */
    --line-height-base: 1.62;
    --line-height-heading: 1.25;
}

html[data-theme="dark"] {
    --bg: #0d111a;
    --surface: #151b27;
    --surface-raised: #1b2332;
    --surface-soft: #0f2f2c;
    --surface-glass: rgba(15, 20, 31, 0.88);
    --ink: #f4f7fb;
    --muted: #aeb8c7;
    --line: #2d384a;
    --primary: #28c6b8;
    --primary-dark: #64dfd2;
    --coral: #ff725e;
    --gold: #f4b34c;
    --violet: #8c7cf1;
    --blue: #4d8cff;
    --nav-text: #d9e1ee;
    --hero-ink: #ffffff;
    --hero-muted: rgba(255, 255, 255, 0.78);
    --hero-card-bg:
        linear-gradient(90deg, rgba(7, 10, 16, 0.94), rgba(7, 10, 16, 0.58) 52%, rgba(7, 10, 16, 0.18)),
        linear-gradient(135deg, #102f37 0%, #171b2b 46%, #362119 100%);
    --hero-card-border: rgba(255, 255, 255, 0.14);
    --hero-grid-line: rgba(255, 255, 255, 0.07);
    --hero-progress-bg: rgba(255, 255, 255, 0.18);
    --hero-screen-bg:
        linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.18)),
        linear-gradient(135deg, rgba(40, 198, 184, 0.42), rgba(112, 101, 216, 0.32) 52%, rgba(249, 115, 91, 0.38));
    --hero-queue-bg: rgba(255, 255, 255, 0.08);
    --hero-queue-border: rgba(255, 255, 255, 0.12);
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-sm: 0 2px 4px -1px rgba(0, 0, 0, 0.35), 0 1px 2px -1px rgba(0, 0, 0, 0.25);
    --shadow: 0 4px 18px -2px rgba(0, 0, 0, 0.4), 0 2px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 10px 28px -4px rgba(0, 0, 0, 0.5), 0 4px 10px -2px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 18px 40px -6px rgba(0, 0, 0, 0.6), 0 8px 16px -4px rgba(0, 0, 0, 0.45);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: var(--line-height-base, 1.62);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: 0;
    transition: background 180ms ease, color 180ms ease;
}

a {
    color: inherit;
    text-decoration: none;
}

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

button,
input,
textarea,
select {
    font: inherit;
}

main {
    min-height: 72vh;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 12px max(var(--container-gutter, 24px), calc((100% - var(--container-width, 1220px)) / 2));
    background: var(--surface-glass);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
    transition: padding 0.2s ease;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 170px;
}

.brand-mark,
.brand-logo-wrap {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    color: #ffffff;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--violet));
    border-radius: var(--radius);
}

.brand-logo-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    max-width: 44px;
    padding: 0;
    background: transparent;
    border-radius: var(--radius);
    overflow: hidden;
    flex-shrink: 0;
}

.brand-logo {
    display: block;
    width: 44px !important;
    height: 44px !important;
    max-width: 44px;
    max-height: 44px;
    object-fit: contain;
}

.brand strong,
.brand small {
    display: block;
}

.brand small {
    color: var(--muted);
    font-size: 12px;
}

.topbar-search {
    display: flex;
    align-items: center;
    flex: 0 1 320px;
    max-width: 340px;
    min-width: 200px;
    height: 38px;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 999px;
}

.topbar-search input {
    width: 100%;
    height: 100%;
    padding: 0 14px;
    color: var(--ink);
    background: transparent;
    border: 0;
    outline: 0;
}

.topbar-search button {
    height: 100%;
    padding: 0 12px;
    color: #ffffff;
    background: var(--primary);
    border: 0;
    cursor: pointer;
    font-weight: 800;
    font-size: 13px;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    color: var(--nav-text);
    font-weight: 650;
}

.nav form {
    margin: 0;
}

.nav-cta,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 750;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover,
.nav-cta:hover {
    transform: translateY(-1px);
}

.button.primary,
.nav-cta {
    color: #ffffff;
    background: var(--primary);
    box-shadow: 0 12px 28px rgba(15, 159, 143, 0.22);
}

.button.primary:hover,
.nav-cta:hover {
    background: var(--primary-dark);
}

.button.ghost {
    color: var(--ink);
    background: var(--surface);
    border-color: var(--line);
}

.button.disabled-button {
    cursor: not-allowed;
    opacity: .62;
    box-shadow: none;
}

.button.disabled-button:hover {
    transform: none;
}

.button.full {
    width: 100%;
}

.button.small {
    min-height: 34px;
    padding: 0 12px;
    font-size: 14px;
}

.link-button {
    color: var(--nav-text);
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
    font-weight: 650;
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 12px;
    color: var(--nav-text);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 999px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 800;
}

.flash {
    width: min(var(--container-width, 1220px), calc(100% - (var(--container-gutter, 24px) * 2)));
    margin: 16px auto 0;
    padding: 14px 18px;
    border-radius: var(--radius-md, 12px);
    border: 1px solid var(--line);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.flash-success {
    border-color: rgba(15, 159, 143, 0.28);
    background: #eaf9f6;
}

.flash-error {
    border-color: rgba(249, 115, 91, 0.34);
    background: #fff0ed;
}

.flash-info {
    border-color: rgba(112, 101, 216, 0.28);
    background: #f0efff;
}

.hero-band,
.analytics-hero,
.metric-ribbon,
.dashboard-canvas,
.page-header,
.section,
.track-hero,
.progress-panel,
.lesson-shell,
.checkout-shell,
.auth-shell,
.certificate-page,
.admin-metrics,
.admin-forms,
.ops-grid,
.editor-shell,
.error-page,
.workspace-hero,
.flash,
.notice-panel,
.method-section,
.breadcrumb-container,
.demo-interactive-header,
.collaborator-passport-sheet,
.landing-page-container,
.b2b-hero-grid,
.cert-view-container {
    width: min(var(--container-width, 1220px), calc(100% - (var(--container-gutter, 24px) * 2)));
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

/* Breadcrumbs alinhados com o layout global */
.breadcrumb-container {
    padding: 14px 0 0;
}

.breadcrumb-container nav ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 0;
    margin: 0;
    list-style: none;
    font-size: 0.88rem;
    color: var(--muted);
}

.breadcrumb-container nav ol a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.15s ease;
}

.breadcrumb-container nav ol a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.hero-band {
    display: grid;
    grid-template-columns: minmax(0, 1.03fr) minmax(340px, 0.97fr);
    gap: 34px;
    align-items: center;
    padding: 58px 0 28px;
}

.home-hero {
    grid-template-columns: minmax(0, 0.86fr) minmax(360px, 1.14fr);
    min-height: 520px;
    padding-top: 34px;
}

.home-hero .hero-copy h1 {
    max-width: 760px;
    text-transform: uppercase;
}

.hero-device {
    position: relative;
    display: grid;
    gap: 14px;
    padding: 18px;
    overflow: hidden;
    color: var(--hero-ink);
    background: var(--hero-card-bg);
    border: 1px solid var(--hero-card-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.hero-device::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, var(--hero-grid-line) 1px, transparent 1px),
        linear-gradient(180deg, var(--hero-grid-line) 1px, transparent 1px);
    background-size: 56px 56px;
    opacity: 0.18;
    pointer-events: none;
}

.device-top,
.device-queue,
.hero-screen {
    position: relative;
    z-index: 1;
}

.device-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--hero-muted);
    font-weight: 800;
}

.hero-device .progress-bar {
    position: relative;
    z-index: 1;
    background: var(--hero-progress-bg);
}

.hero-screen {
    display: grid;
    min-height: 260px;
    align-items: end;
    padding: 28px;
    background: var(--hero-screen-bg);
    border: 1px solid var(--hero-card-border);
    border-radius: var(--radius);
}

.hero-screen h2 {
    max-width: 560px;
    margin: 10px 0 10px;
    font-size: clamp(20px, 2.2vw, 26px);
    line-height: 1.18;
    text-transform: uppercase;
}

.hero-screen p {
    max-width: 430px;
    color: var(--hero-muted);
}

.device-queue {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.device-queue span {
    min-height: 58px;
    padding: 12px;
    color: var(--hero-muted);
    background: var(--hero-queue-bg);
    border: 1px solid var(--hero-queue-border);
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 800;
}

.hero-copy h1,
.page-header h1,
.track-hero h1 {
    margin: 10px 0 16px;
    font-size: clamp(28px, 3.4vw, 40px);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.hero-copy p,
.page-header p,
.track-hero p {
    max-width: 680px;
    color: var(--muted);
    font-size: 16.5px;
    line-height: 1.65;
}

.eyebrow {
    display: inline-block;
    color: var(--primary-dark);
    font-size: 13px;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: 0;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.analytics-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, .88fr);
    gap: 22px;
    align-items: stretch;
    padding: 42px 0 22px;
}

.analytics-hero h1 {
    max-width: 760px;
    margin: 10px 0 14px;
    font-size: clamp(26px, 3.1vw, 36px);
    line-height: 1.12;
    letter-spacing: -0.015em;
}

.analytics-hero p {
    max-width: 700px;
    color: var(--muted);
    font-size: 16.5px;
    line-height: 1.65;
}

.analytics-hero > div:first-child,
.analytics-spotlight,
.dashboard-widget,
.metric-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.analytics-hero > div:first-child {
    display: grid;
    align-content: center;
    min-height: 286px;
    padding: 34px;
    background:
        linear-gradient(120deg, rgba(15, 159, 143, .1), transparent 34%),
        linear-gradient(145deg, var(--surface), var(--surface-raised));
}

.analytics-spotlight {
    position: relative;
    display: grid;
    gap: 18px;
    align-content: space-between;
    min-height: 286px;
    padding: 26px;
    overflow: hidden;
    color: #ffffff;
    background:
        linear-gradient(135deg, rgba(6, 18, 31, .96), rgba(17, 24, 39, .9) 45%, rgba(52, 33, 42, .92)),
        radial-gradient(circle at top right, rgba(249, 115, 91, .28), transparent 38%);
    border-color: rgba(255, 255, 255, .1);
}

html[data-theme="light"] .learning-focus,
html[data-theme="light"] .corporate-focus,
html[data-theme="light"] .role-card-visual {
    color: var(--ink);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .98), rgba(245, 249, 252, .9)),
        linear-gradient(135deg, rgba(15, 159, 143, .14), rgba(47, 111, 221, .12) 52%, rgba(249, 115, 91, .1));
    border-color: rgba(15, 159, 143, .16);
}

.spotlight-topline,
.spotlight-foot,
.widget-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.spotlight-topline span,
.spotlight-foot,
.analytics-spotlight small {
    color: rgba(255, 255, 255, .72);
}

html[data-theme="light"] .learning-focus small,
html[data-theme="light"] .corporate-focus small,
html[data-theme="light"] .role-card-visual small,
html[data-theme="light"] .learning-focus span,
html[data-theme="light"] .corporate-focus span,
html[data-theme="light"] .role-card-visual span {
    color: var(--muted);
}

.spotlight-topline strong {
    font-size: 44px;
    line-height: 1;
}

.sparkline-bars {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 9px;
    align-items: end;
    min-height: 132px;
    padding: 16px 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .22);
}

.sparkline-bars span {
    display: block;
    min-height: 22px;
    border-radius: 999px 999px 0 0;
    background: linear-gradient(180deg, var(--primary), var(--blue));
}

.sparkline-bars span:nth-child(2n) {
    background: linear-gradient(180deg, var(--gold), var(--coral));
}

.metric-ribbon {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
    padding: 8px 0 18px;
}

.metric-card {
    position: relative;
    display: grid;
    gap: 6px;
    min-height: 126px;
    padding: 18px;
    overflow: hidden;
}

.metric-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: var(--accent, var(--primary));
}

.metric-card::after {
    content: "";
    position: absolute;
    right: 16px;
    bottom: 16px;
    width: 70px;
    height: 38px;
    opacity: .34;
    background:
        linear-gradient(90deg, transparent 0 16%, var(--accent, var(--primary)) 16% 26%, transparent 26% 42%, var(--accent, var(--primary)) 42% 54%, transparent 54% 70%, var(--accent, var(--primary)) 70% 82%, transparent 82%);
}

.metric-card span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 850;
    text-transform: uppercase;
}

.metric-card strong {
    position: relative;
    z-index: 1;
    font-size: 30px;
    line-height: 1.05;
}

.metric-card small {
    position: relative;
    z-index: 1;
    color: var(--muted);
}

.accent-teal { --accent: var(--primary); }
.accent-blue { --accent: var(--blue); }
.accent-violet { --accent: var(--violet); }
.accent-gold { --accent: var(--gold); }
.accent-coral { --accent: var(--coral); }

.dashboard-canvas {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, .75fr);
    gap: 18px;
    padding: 14px 0 24px;
}

.dashboard-canvas.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dashboard-widget {
    display: grid;
    gap: 18px;
    align-content: start;
    padding: 22px;
}

.dashboard-widget.wide {
    min-height: 310px;
}

.widget-heading {
    align-items: flex-start;
}

.widget-heading h2 {
    margin: 4px 0 0;
    font-size: 24px;
    line-height: 1.18;
}

.widget-heading a {
    color: var(--primary-dark);
    font-weight: 850;
}

.visual-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.gauge-tile {
    display: grid;
    justify-items: center;
    gap: 10px;
    padding: 18px 12px;
    text-align: center;
    background: linear-gradient(180deg, var(--surface-raised), var(--surface));
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.gauge-tile small {
    color: var(--muted);
    font-weight: 750;
}

.ring-gauge {
    --value: 0;
    --ring: var(--primary);
    position: relative;
    display: inline-grid;
    width: 106px;
    height: 106px;
    place-items: center;
    border-radius: 50%;
    background:
        conic-gradient(var(--ring) calc(var(--value) * 1%), rgba(102, 112, 133, .18) 0);
}

.ring-gauge.large {
    width: 132px;
    height: 132px;
}

.ring-gauge::before {
    content: "";
    position: absolute;
    inset: 12px;
    border-radius: 50%;
    background: var(--surface);
    box-shadow: inset 0 0 0 1px var(--line);
}

.analytics-spotlight .ring-gauge::before {
    background: rgba(15, 20, 31, .92);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1);
}

html[data-theme="light"] .learning-focus .ring-gauge::before,
html[data-theme="light"] .corporate-focus .ring-gauge::before {
    background: var(--surface);
    box-shadow: inset 0 0 0 1px var(--line);
}

.ring-gauge strong {
    position: relative;
    z-index: 1;
    color: var(--ink);
    font-size: 22px;
}

.analytics-spotlight .ring-gauge strong {
    color: #ffffff;
}

html[data-theme="light"] .learning-focus .ring-gauge strong,
html[data-theme="light"] .corporate-focus .ring-gauge strong {
    color: var(--ink);
}

.bar-analytics {
    display: grid;
    gap: 12px;
}

.bar-analytics div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 132px;
    gap: 12px;
    align-items: center;
}

.bar-analytics div::before {
    content: "";
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    height: 11px;
    background: rgba(102, 112, 133, .14);
    border-radius: 999px;
}

.bar-analytics span {
    grid-column: 1;
    grid-row: 1;
    display: block;
    min-width: 8px;
    height: 11px;
    background: linear-gradient(90deg, var(--primary), var(--gold), var(--coral));
    border-radius: 999px;
}

.bar-analytics strong {
    grid-column: 2;
    color: var(--muted);
    font-size: 13px;
    text-transform: uppercase;
}

.bar-analytics.compact {
    align-content: center;
}

.quick-action-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.quick-action-grid a {
    display: grid;
    min-height: 68px;
    align-content: center;
    padding: 13px;
    color: var(--nav-text);
    background:
        linear-gradient(135deg, rgba(15, 159, 143, .08), transparent),
        var(--surface-raised);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-weight: 850;
}

.mini-list.elevated a,
.mini-list.elevated span,
.certificate-list.elevated a {
    background:
        linear-gradient(135deg, rgba(47, 111, 221, .08), transparent),
        var(--surface-raised);
    box-shadow: 0 10px 24px rgba(23, 32, 51, .06);
}

.learning-focus,
.corporate-focus {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
}

.learning-focus > div,
.corporate-focus > div {
    display: grid;
    gap: 6px;
}

.learning-focus strong,
.corporate-focus strong {
    font-size: 24px;
}

.learning-roadmap {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(280px, 1.1fr);
    gap: 18px;
    align-items: center;
}

.premium-grid {
    align-items: stretch;
}

.premium-card {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(180deg, var(--surface-raised), var(--surface)),
        linear-gradient(135deg, rgba(15, 159, 143, .12), rgba(47, 111, 221, .1));
}

.premium-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--blue), var(--coral));
}

.role-card-visual {
    place-content: center;
    justify-items: center;
    text-align: center;
}

.role-card-visual > span {
    display: grid;
    width: 86px;
    height: 86px;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--violet));
    border-radius: 50%;
    font-size: 38px;
    font-weight: 900;
}

html[data-theme="light"] .role-card-visual > span {
    color: #ffffff;
}

.role-card-visual strong {
    font-size: 26px;
}

.notice-panel {
    width: min(var(--container-width, 1220px), calc(100% - (var(--container-gutter, 24px) * 2)));
    margin: 0 auto 16px;
    padding: 18px 22px;
    color: var(--primary-dark);
    background: var(--surface-soft);
    border: 1px solid rgba(15, 159, 143, .22);
    border-radius: var(--radius-md, 12px);
    box-shadow: var(--shadow-xs);
}

.notice-panel p {
    margin: 0;
}

.corporate-focus {
    align-content: center;
}

.corporate-focus .company-switcher {
    grid-column: 1 / -1;
    min-width: 0;
}

.flush-table {
    box-shadow: none;
}

.learning-map {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 18px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.learning-map div {
    min-height: 116px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(180deg, var(--surface-raised), var(--surface));
}

.method-section {
    width: min(var(--container-width, 1220px), calc(100% - (var(--container-gutter, 24px) * 2)));
    margin: 0 auto;
    padding: 22px 0 10px;
}

.method-map {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
}

.method-map div {
    min-height: 238px;
    padding: 20px;
    color: #ffffff;
    background: linear-gradient(145deg, rgba(15, 159, 143, 0.9), rgba(18, 53, 52, 0.92));
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow: var(--shadow);
}

.method-map div:nth-child(2) {
    background: linear-gradient(145deg, rgba(112, 101, 216, 0.92), rgba(42, 32, 78, 0.95));
}

.method-map div:nth-child(3) {
    background: linear-gradient(145deg, rgba(242, 184, 75, 0.96), rgba(78, 48, 18, 0.95));
}

.method-map div:nth-child(4) {
    background: linear-gradient(145deg, rgba(40, 198, 184, 0.94), rgba(22, 67, 84, 0.95));
}

.method-map div:nth-child(5) {
    background: linear-gradient(145deg, rgba(47, 111, 221, 0.9), rgba(24, 36, 82, 0.95));
}

.method-map div:nth-child(6) {
    background: linear-gradient(145deg, rgba(249, 115, 91, 0.94), rgba(83, 38, 32, 0.95));
}

.learning-map span {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    color: #ffffff;
    font-weight: 900;
    border-radius: 50%;
    background: var(--primary);
}

.learning-map div:nth-child(2) span,
.learning-map div:nth-child(5) span {
    background: var(--violet);
}

.learning-map div:nth-child(3) span,
.learning-map div:nth-child(6) span {
    background: var(--coral);
}

.learning-map strong {
    display: block;
    margin-top: 14px;
}

.learning-map small,
.track-meta,
.cell-list small,
.dashboard-card small,
table small {
    color: var(--muted);
}

.method-map span {
    width: 54px;
    height: 54px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.24);
    font-size: 22px;
}

.method-map strong {
    margin-top: 28px;
    font-size: 22px;
    line-height: 1.15;
}

.method-map em {
    color: rgba(255, 255, 255, 0.76);
    font-style: normal;
    font-weight: 650;
}

.method-map small {
    display: block;
    margin-top: 12px;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.45;
}

.metrics-strip,
.admin-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 22px;
}

.admin-metrics {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.metrics-strip div,
.admin-metrics div {
    padding: 20px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.metrics-strip strong,
.admin-metrics strong {
    display: block;
    font-size: 26px;
}

.metrics-strip span,
.admin-metrics span {
    color: var(--muted);
}

.section {
    padding: 46px 0;
}

.section.narrow {
    width: min(900px, calc(100% - 32px));
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}

.section-heading.compact {
    align-items: center;
}

.section-heading h2 {
    margin: 4px 0 0;
    font-size: clamp(22px, 2.1vw, 26px);
    line-height: 1.22;
    letter-spacing: -0.015em;
}

.section-heading p {
    max-width: 680px;
    color: var(--muted);
}

.card-grid,
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.track-card,
.dashboard-card,
.purchase-box,
.auth-card,
.checkout-card,
.admin-panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.track-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: calc(var(--radius) + 4px);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.28s ease;
}

.track-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 45px -10px rgba(15, 159, 143, 0.22), 0 10px 20px -6px rgba(0, 0, 0, 0.08);
    border-color: rgba(15, 159, 143, 0.4);
}

.recommendation-band {
    padding-top: 28px;
}

.recommendation-grid {
    margin-top: 14px;
}

.suggestion-cell-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.suggestion-cell-card {
    display: grid;
    gap: 10px;
    align-content: start;
    padding: 18px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.suggestion-cell-card h3 {
    margin: 4px 0 0;
    font-size: 19px;
    line-height: 1.25;
}

.suggestion-cell-card p {
    color: var(--muted);
    line-height: 1.55;
}

.track-media {
    position: relative;
    display: grid;
    min-height: 160px;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--accent, #0f9f8f), #0f172a);
    overflow: hidden;
}

.track-media img {
    width: 100%;
    height: 185px;
    object-fit: cover;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.track-card:hover .track-media img {
    transform: scale(1.06);
}

.track-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.65) 0%, rgba(15, 23, 42, 0.05) 50%, transparent 80%);
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.track-card:hover .track-media::after {
    opacity: 0.35;
}

/* Fallback de monograma apenas quando não há imagem nem badge/botão */
.track-media > span:not([class]) {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.track-media .track-media-badge,
.track-media-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.25;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.86);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 6px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.track-media .track-play-hint,
.track-play-hint {
    position: absolute;
    bottom: 12px;
    right: 12px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    color: #ffffff;
    background: rgba(7, 99, 89, 0.95);
    backdrop-filter: blur(8px);
    border-radius: 999px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
}

.track-card:hover .track-play-hint,
.track-media:focus-visible .track-play-hint {
    opacity: 1;
    transform: translateY(0);
}

.track-level-tag {
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
}

.track-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 16px 18px 18px;
}

.dashboard-card {
    padding: 18px;
}

.track-body h3 {
    margin: 10px 0 6px;
    font-size: 16.5px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.01em;
}

.dashboard-card h3,
.cell-list h3 {
    margin: 10px 0 8px;
    font-size: 17.5px;
    line-height: 1.3;
}

.track-body p,
.dashboard-card p {
    margin: 0;
    font-size: 13.75px;
    color: var(--muted);
    line-height: 1.55;
}

.pill,
.status {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 2px 10px;
    color: var(--primary-dark);
    background: var(--surface-soft);
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 700;
    line-height: 1.35;
}

.track-body .pill {
    display: inline-block;
    align-self: flex-start;
    max-width: 100%;
    min-height: 0;
    padding: 4px 10px;
    border-radius: 7px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: 0.01em;
}

.track-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    font-size: 13px;
}

.track-meta strong {
    color: var(--ink);
}

.page-header {
    padding: 48px 0 20px;
}

.nucleo-block + .nucleo-block {
    margin-top: 44px;
}

.track-hero,
.checkout-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 26px;
    align-items: start;
    padding: 48px 0 24px;
}

.track-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.track-stats span {
    padding: 9px 12px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--nav-text);
    font-weight: 700;
}

.purchase-box,
.checkout-card,
.admin-panel {
    padding: 22px;
}

.purchase-box strong,
.price-line {
    display: block;
    margin-bottom: 10px;
    font-size: 30px;
    font-weight: 900;
}

.purchase-box p,
.checkout-card p {
    color: var(--muted);
    line-height: 1.55;
}

.progress-panel {
    padding: 18px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.progress-panel div:first-child {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 10px;
}

.progress-panel strong {
    font-size: 28px;
}

.progress-bar {
    width: 100%;
    height: 10px;
    overflow: hidden;
    background: rgba(217, 224, 232, 0.64);
    background: color-mix(in srgb, var(--line) 64%, transparent);
    border-radius: 999px;
}

.progress-bar span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--gold));
}

.cell-list {
    display: grid;
    gap: 12px;
}

.cell-list article {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.cell-number {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    color: #ffffff;
    font-weight: 900;
    background: var(--ink);
    border-radius: var(--radius);
}

.lesson-shell {
    display: grid;
    grid-template-columns: 310px minmax(0, 1fr);
    gap: 28px;
    padding: 28px 0 54px;
    align-items: start;
}

.lesson-aside {
    position: sticky;
    top: 86px;
    align-self: start;
    padding: 24px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-md, 12px);
    box-shadow: var(--shadow);
    transition: box-shadow 0.2s ease;
}

.lesson-aside h1 {
    margin: 10px 0;
    font-size: 28px;
    line-height: 1.15;
}

.lesson-aside p,
.content-block p,
.lab-block p {
    color: var(--muted);
    line-height: 1.7;
}

.back-link {
    display: inline-flex;
    margin-bottom: 20px;
    color: var(--primary-dark);
    font-weight: 800;
}

.lesson-content {
    display: grid;
    gap: 18px;
}

.video-frame {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #090d16;
    border-radius: calc(var(--radius) + 6px);
    box-shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.08);
    transition: box-shadow 0.3s ease;
}

.video-frame:hover {
    box-shadow: 0 28px 70px -12px rgba(15, 159, 143, 0.28), 0 0 0 1px rgba(15, 159, 143, 0.3);
}

.video-frame iframe,
.video-frame video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.media-panel {
    display: grid;
    gap: 18px;
}

.cde-audiovisual-box {
    margin: 24px 0;
    padding: 20px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-left: 4px solid var(--primary);
    border-radius: calc(var(--radius) + 2px);
    box-shadow: 0 12px 32px -10px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cde-audiovisual-box:hover {
    box-shadow: 0 16px 36px -10px rgba(15, 159, 143, 0.16);
}

.cde-audiovisual-box h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 750;
    color: var(--ink);
    margin-bottom: 8px;
}

.cde-audiovisual-box p {
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 12px;
}

.cde-audiovisual-box ul {
    list-style: none;
    padding: 0;
    margin: 12px 0 0;
    display: grid;
    gap: 10px;
}

.cde-audiovisual-box li {
    display: flex;
    flex-direction: column;
    padding: 12px 14px;
    background: var(--surface-soft);
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    font-size: 13.5px;
    line-height: 1.55;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.cde-audiovisual-box li:hover {
    transform: translateX(4px);
    border-color: var(--primary);
}

.cde-audiovisual-box li strong {
    color: var(--primary-dark);
    margin-bottom: 3px;
    font-weight: 750;
}

.cde-audiovisual-box a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.audio-frame,
.slide-deck {
    padding: 18px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.audio-frame audio,
.lesson-slide audio {
    width: 100%;
    margin-top: 10px;
}

.slide-deck {
    display: grid;
    gap: 12px;
}

.slide-viewport {
    position: relative;
    min-height: 320px;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--surface);
    background: linear-gradient(145deg, color-mix(in srgb, var(--primary) 12%, var(--surface)), var(--surface));
    border: 1px solid var(--line);
}

.lesson-slide {
    display: none;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: 20px;
    align-items: center;
    min-height: 320px;
    padding: 24px;
}

.lesson-slide.active {
    display: grid;
}

.lesson-slide img {
    width: 100%;
    max-height: 280px;
    object-fit: cover;
    border-radius: var(--radius);
    border: 1px solid var(--line);
}

.lesson-slide h2 {
    margin: 8px 0 10px;
    font-size: 28px;
    line-height: 1.16;
}

.lesson-slide p {
    color: var(--muted);
    line-height: 1.7;
}

.slide-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.slide-controls span {
    color: var(--muted);
    font-weight: 800;
}

.content-block,
.lab-block,
.completion-form {
    padding: 24px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.prose {
    line-height: 1.75;
}

.prose h2,
.prose h3,
.lab-block h2 {
    margin-top: 8px;
}

.prose a {
    color: var(--primary-dark);
    text-decoration: underline;
}

.lab-block {
    border-color: rgba(249, 115, 91, 0.28);
    background: color-mix(in srgb, var(--coral) 9%, var(--surface));
}

.completion-form {
    display: grid;
    gap: 12px;
}

.certificate-action-panel {
    gap: 14px;
}

label {
    display: grid;
    gap: 8px;
    color: var(--nav-text);
    font-weight: 750;
}

input,
textarea,
select {
    width: 100%;
    padding: 12px 13px;
    color: var(--ink);
    background: var(--surface-raised);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    outline: none;
}

textarea {
    resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(15, 159, 143, 0.12);
}

.lesson-nav {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.lesson-nav a {
    padding: 12px 14px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-weight: 750;
}

.auth-shell,
.certificate-page {
    display: grid;
    min-height: 68vh;
    place-items: center;
    padding: 40px 0;
}

.auth-card {
    width: min(440px, 100%);
    padding: 26px;
}

.auth-card h1,
.checkout-card h2,
.admin-panel h2,
.admin-forms h2 {
    margin: 8px 0 18px;
}

.auth-card form,
.auth-card,
.checkout-card,
.admin-forms form {
    display: grid;
    gap: 14px;
}

.checkout-card {
    display: grid;
    gap: 14px;
}

.pix-box {
    padding: 14px;
    background: var(--surface-soft);
    border: 1px solid rgba(15, 159, 143, 0.2);
    border-radius: var(--radius);
}

.pix-box span,
.pix-box small {
    display: block;
    color: var(--muted);
}

.pix-box strong {
    display: block;
    margin: 4px 0;
    word-break: break-word;
}

.dashboard-card {
    display: grid;
    align-content: start;
    gap: 10px;
}

.two-columns {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px;
}

.table-wrap {
    overflow-x: auto;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 14px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

th {
    color: var(--nav-text);
    font-size: 13px;
    text-transform: uppercase;
}

tr:last-child td {
    border-bottom: 0;
}

.status.pending,
.status.requested,
.status.assigned,
.status.submitted,
.status.reviewing {
    color: #9a5b00;
    background: #fff3d7;
}

.status.paid,
.status.active,
.status.completed,
.status.invited,
.status.hired {
    color: var(--primary-dark);
    background: var(--surface-soft);
}

.status.canceled,
.status.rejected {
    color: #a33a2b;
    background: #ffe2dd;
}

.certificate-list,
.mini-list {
    display: grid;
    gap: 10px;
}

.certificate-list a,
.mini-list a {
    display: grid;
    gap: 4px;
    padding: 14px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.certificate-list span,
.mini-list span {
    color: var(--muted);
    font-size: 14px;
}

.certificate {
    width: min(760px, 100%);
    padding: 44px;
    text-align: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.certificate h1 {
    margin: 10px 0 18px;
    font-size: 38px;
}

.certificate p {
    color: var(--muted);
    font-size: 18px;
    line-height: 1.7;
}

.certificate-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 24px;
}

.certificate-meta span {
    padding: 10px 12px;
    background: var(--surface-soft);
    border-radius: var(--radius);
    font-weight: 800;
}

.certificate-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 24px;
}

.admin-forms {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    align-items: start;
    padding: 20px 0 30px;
}

.admin-forms form {
    padding: 20px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.editor-shell {
    padding: 18px 0;
}

.workspace-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 24px;
    align-items: stretch;
    padding: 48px 0 22px;
}

.workspace-card,
.workspace-module,
.profile-role-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.workspace-card {
    display: grid;
    gap: 12px;
    padding: 24px;
}

.workspace-card h2 {
    margin: 4px 0 0;
}

.workspace-module-grid,
.profile-role-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.workspace-module,
.profile-role-card {
    display: grid;
    gap: 9px;
    align-content: start;
    padding: 18px;
}

.workspace-module span,
.profile-role-card span {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--blue));
    border-radius: var(--radius);
    font-weight: 900;
}

.workspace-module small,
.profile-role-card small,
.profile-role-card p {
    color: var(--muted);
    line-height: 1.55;
}

.search-inline {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    width: min(620px, 100%);
    margin-top: 22px;
}

.help-drawer {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: grid;
    justify-items: end;
    background: rgba(15, 23, 42, 0.36);
}

.help-drawer[hidden] {
    display: none;
}

.help-drawer-card {
    width: min(420px, calc(100vw - 28px));
    min-height: 100%;
    padding: 24px;
    background: var(--surface);
    border-left: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.preview-banner {
    position: sticky;
    top: 72px;
    z-index: 18;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 10px 18px;
    color: #ffffff;
    background: linear-gradient(90deg, var(--primary-dark), var(--violet));
    box-shadow: 0 10px 24px rgba(4, 20, 44, .16);
}

.preview-banner form {
    margin: 0;
}

.preview-device-form {
    display: inline-flex;
    gap: 6px;
    padding: 3px;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 999px;
}

.device-pill {
    min-height: 28px;
    padding: 0 10px;
    color: #ffffff;
    background: transparent;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 800;
}

.device-pill.active {
    color: var(--primary-dark);
    background: #ffffff;
}

.preview-banner .link-button {
    color: #ffffff;
    text-decoration: underline;
}

.superadmin-lab {
    position: sticky;
    top: 71px;
    z-index: 19;
    display: grid;
    grid-template-columns: minmax(180px, .7fr) minmax(420px, 1.4fr) auto;
    gap: 12px;
    align-items: center;
    padding: 10px max(var(--container-gutter, 24px), calc((100% - var(--container-width, 1220px)) / 2));
    color: var(--ink);
    background: linear-gradient(90deg, rgba(15, 159, 143, .12), rgba(47, 111, 221, .08)), var(--surface-glass);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
}

.superadmin-lab-status {
    display: grid;
    gap: 2px;
}

.superadmin-lab-status span {
    color: var(--muted);
    font-size: 12px;
}

.superadmin-lab-form,
.superadmin-lab-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: end;
}

.superadmin-lab-form label {
    display: grid;
    gap: 3px;
    min-width: 150px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 850;
    text-transform: uppercase;
}

.superadmin-lab-form select {
    min-height: 34px;
    padding: 0 10px;
}

.superadmin-lab-links {
    justify-content: flex-end;
}

.superadmin-lab-links a,
.superadmin-lab-links .link-button {
    color: var(--primary-dark);
    font-size: 13px;
    font-weight: 850;
}

.preview-frame-mobile,
.preview-frame-tablet {
    margin: 24px auto;
    overflow: hidden;
    background: var(--bg);
    border: 1px solid var(--line);
    box-shadow: 0 26px 70px rgba(8, 20, 44, .28);
}

.preview-frame-mobile {
    width: min(390px, calc(100vw - 24px));
    border-radius: 28px;
}

.preview-frame-tablet {
    width: min(820px, calc(100vw - 28px));
    border-radius: 20px;
}

body.preview-mobile .topbar,
body.preview-mobile .superadmin-lab,
body.preview-mobile .preview-banner,
body.preview-mobile .footer {
    width: min(390px, calc(100vw - 24px));
    margin-right: auto;
    margin-left: auto;
}

body.preview-mobile .topbar,
.preview-frame-mobile {
    container-type: inline-size;
}

body.preview-mobile .topbar {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 10px;
    padding: 10px 14px;
}

body.preview-mobile .brand {
    min-width: 0;
}

body.preview-mobile .brand-logo-wrap,
body.preview-mobile .brand-logo {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px;
    max-width: 36px;
}

body.preview-mobile .brand strong {
    font-size: 13px;
}

body.preview-mobile .brand small {
    font-size: 10px;
}

body.preview-mobile .nav {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 12px;
}

body.preview-mobile .topbar-search {
    width: 100%;
    max-width: none;
    min-width: 0;
    height: 38px;
    flex-basis: auto;
    border-radius: var(--radius);
}

body.preview-mobile .topbar-search input {
    min-width: 0;
    padding: 0 10px;
    font-size: 13px;
}

body.preview-mobile .topbar-search button {
    flex: 0 0 auto;
    padding: 0 10px;
    font-size: 12px;
}

body.preview-mobile .topbar,
.preview-frame-mobile .analytics-hero,
.preview-frame-mobile .dashboard-canvas,
.preview-frame-mobile .dashboard-canvas.two,
.preview-frame-mobile .learning-roadmap,
.preview-frame-mobile .ops-grid,
.preview-frame-mobile .two-columns,
.preview-frame-mobile .track-hero,
.preview-frame-mobile .lesson-shell,
.preview-frame-mobile .checkout-shell {
    grid-template-columns: 1fr;
}

.preview-frame-mobile .metric-ribbon,
.preview-frame-mobile .visual-grid,
.preview-frame-mobile .quick-action-grid,
.preview-frame-mobile .dashboard-grid,
.preview-frame-mobile .card-grid,
.preview-frame-mobile .position-grid,
.preview-frame-mobile .exclusive-cell-grid,
.preview-frame-mobile .workspace-module-grid,
.preview-frame-mobile .profile-role-grid,
.preview-frame-mobile .media-grid,
.preview-frame-mobile .cell-editor-grid,
.preview-frame-mobile .talent-bank-panel,
.preview-frame-mobile .opportunity-row {
    grid-template-columns: 1fr;
}

.preview-frame-mobile .metric-card,
.preview-frame-mobile .dashboard-widget,
.preview-frame-mobile .analytics-hero > div:first-child,
.preview-frame-mobile .analytics-spotlight {
    min-width: 0;
    padding: 18px;
}

.preview-frame-mobile .analytics-hero h1,
.preview-frame-mobile .page-header h1,
.preview-frame-mobile .track-hero h1 {
    font-size: 34px;
}

.preview-frame-mobile .learning-focus,
.preview-frame-mobile .corporate-focus {
    grid-template-columns: 1fr;
    justify-items: start;
}

.preview-frame-mobile .opportunity-search {
    align-items: stretch;
    flex-direction: column;
}

.preview-frame-mobile .bar-analytics div {
    grid-template-columns: 1fr;
}

.preview-frame-mobile .bar-analytics strong {
    grid-column: 1;
    grid-row: 2;
}

.search-hero {
    display: flex;
    gap: 12px;
    width: min(760px, 100%);
    margin-top: 22px;
}

.search-hero input {
    min-height: 48px;
    flex: 1;
}

.opportunity-search {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 20px;
}

.opportunity-search input {
    min-width: 0;
}

.talent-bank-panel,
.imported-note {
    background: linear-gradient(135deg, rgba(15, 159, 143, .1), transparent), var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.talent-bank-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, .55fr);
    gap: 18px;
    align-items: center;
    padding: 22px;
}

.talent-bank-panel h2 {
    margin: 4px 0 8px;
}

.talent-bank-panel p {
    color: var(--muted);
}

.imported-note {
    margin: 16px 0;
    padding: 14px 16px;
    color: var(--nav-text);
}

.track-picker {
    display: grid;
    gap: 12px;
}

.track-picker-list {
    display: grid;
    max-height: 320px;
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.track-picker-list label {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
    cursor: pointer;
}

.track-picker-list label:last-child {
    border-bottom: 0;
}

.track-picker-list input {
    width: auto;
}

.selected-cell-list {
    min-height: 34px;
}

.search-results-list {
    display: grid;
    gap: 14px;
}

.search-results-list article {
    padding: 18px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--soft-shadow);
}

.search-results-list h3 {
    margin: 10px 0 8px;
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.media-card {
    display: grid;
    gap: 10px;
    padding: 12px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--soft-shadow);
}

.media-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: calc(var(--radius) - 2px);
    background: var(--surface-muted);
}

.media-card input {
    min-height: 34px;
    padding: 0 10px;
    font-size: 12px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
}

.legal-content {
    display: grid;
    gap: 14px;
    max-width: 860px;
}

.legal-content h2 {
    margin: 8px 0 0;
}

.cookie-consent {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 99999;
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 18px;
    width: min(620px, calc(100vw - 36px));
    padding: 16px;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

#cde-cookie-consent-banner[hidden],
#cde-cookie-consent-banner.is-hidden,
.cookie-consent[hidden],
.cookie-consent.is-hidden {
    display: none !important;
}

#cde-cookie-consent-banner button,
.cookie-consent button {
    cursor: pointer;
    pointer-events: auto;
}

.cookie-consent div {
    display: grid;
    gap: 4px;
}

.cookie-consent > div:last-child {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.exclusive-total-panel .metrics-strip {
    margin: 12px 0;
}

.metrics-strip.compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.exclusive-cell-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.exclusive-cell-card {
    position: relative;
    display: grid;
    gap: 9px;
    min-height: 162px;
    padding: 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--soft-shadow);
    cursor: pointer;
}

.exclusive-cell-card input {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 18px;
    height: 18px;
}

.exclusive-cell-card:has(input:checked),
.exclusive-cell-card.selected {
    border-color: var(--primary);
    box-shadow: 0 16px 40px rgba(15, 159, 143, .18);
}

.exclusive-cell-card strong {
    padding-right: 24px;
}

.exclusive-price {
    font-weight: 900;
    color: var(--primary-dark);
}

.editor-selector {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: end;
    padding: 18px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.editor-section {
    padding-top: 30px;
}

.editor-list {
    display: grid;
    gap: 12px;
}

.editor-item {
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.editor-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    cursor: pointer;
    color: var(--nav-text);
    font-weight: 850;
}

.editor-item summary small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-weight: 650;
}

.editor-form {
    display: grid;
    gap: 14px;
    padding: 18px;
    border-top: 1px solid var(--line);
}

.editor-form.wide textarea[name="content_html"] {
    min-height: 320px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 14px;
    line-height: 1.55;
}

.form-row.compact {
    grid-template-columns: minmax(120px, 0.35fr) repeat(2, minmax(160px, 1fr));
    align-items: end;
}

.editor-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.empty-state-panel {
    display: grid;
    gap: 8px;
    padding: 20px;
    color: var(--muted);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.empty-state-panel strong {
    color: var(--ink);
}

.corporate-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
}

.company-switcher {
    min-width: 260px;
}

.ops-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    align-items: start;
    padding: 20px 0;
}

.ops-grid .ops-panel:nth-child(3) {
    grid-column: span 2;
}

.ops-panel {
    display: grid;
    gap: 14px;
    padding: 20px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.ops-panel h2,
.ops-panel h3 {
    margin: 0;
}

.ops-panel p {
    color: var(--muted);
    line-height: 1.55;
}

.chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip-list span,
.small-link {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    color: var(--nav-text);
    background: var(--surface-raised);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 750;
}

.chip-list button {
    display: inline-grid;
    width: 18px;
    height: 18px;
    margin-left: 4px;
    place-items: center;
    color: var(--muted);
    background: transparent;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 900;
}

.chip-list button:hover {
    color: #ffffff;
    background: var(--coral);
}

.position-grid,
.opportunity-list {
    display: grid;
    gap: 14px;
}

.position-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.position-grid h3 {
    margin: 8px 0 0;
    font-size: 20px;
}

.mini-list.plain {
    gap: 6px;
}

.mini-list.plain span {
    color: var(--muted);
    font-size: 14px;
}

.opportunity-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 160px;
    gap: 20px;
    align-items: center;
    padding: 18px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.opportunity-row h2 {
    margin: 8px 0;
    font-size: 24px;
}

.opportunity-row p {
    color: var(--muted);
    line-height: 1.55;
}

.opportunity-action {
    display: grid;
    gap: 10px;
    justify-items: end;
}

.requirements-box {
    margin-top: 18px;
    padding: 16px;
    color: var(--nav-text);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    line-height: 1.65;
}

.recovery-link-panel {
    border-color: rgba(15, 159, 143, 0.42);
}

.copy-field {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}

.copy-field input {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 13px;
}

.inline-form {
    margin: 0;
}

.password-actions,
.temp-password-form {
    display: grid;
    gap: 8px;
}

.temp-password-form {
    grid-template-columns: minmax(120px, 1fr) minmax(120px, 1fr) auto;
    align-items: end;
    margin-top: 8px;
}

.temp-password-form input {
    min-height: 36px;
    padding: 8px 10px;
    font-size: 13px;
}

.competency-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0;
}

.competency-stack span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    color: var(--primary-dark);
    background: var(--surface-soft);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.assessment-block {
    display: grid;
    gap: 14px;
    padding: 24px;
    background: var(--surface);
    border: 1px solid rgba(112, 101, 216, 0.24);
    border-radius: var(--radius);
}

.assessment-block h2 {
    margin: 4px 0;
    font-size: 22px;
}

.assessment-block p {
    color: var(--muted);
    line-height: 1.6;
}

.assessment-question {
    display: grid;
    gap: 10px;
    padding: 16px;
    background: var(--surface-raised);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.assessment-question h3 {
    margin: 0;
    font-size: 18px;
    line-height: 1.35;
}

.option-list {
    display: grid;
    gap: 10px;
    margin-bottom: 12px;
}

.option-list label {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface-raised);
}

.option-list input {
    width: auto;
    margin-top: 4px;
}

.answer-good {
    color: var(--primary-dark) !important;
}

.answer-warn {
    color: #9a5b00 !important;
}

.method-form-step {
    display: grid;
    gap: 8px;
    padding: 16px;
    background: var(--surface-raised);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.method-form-step p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.evidence-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.evidence-grid h3 {
    margin: 4px 0 0;
    font-size: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.checkline {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkline input {
    width: auto;
}

.editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px;
    background: var(--surface-raised);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.editor-toolbar button {
    min-height: 30px;
    padding: 0 10px;
    color: var(--nav-text);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
}

.rich-editor,
.media-picker,
.slide-builder {
    display: grid;
    gap: 10px;
}

.rich-editor,
.slide-builder {
    padding: 12px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.rich-editor-toolbar,
.rich-editor-media,
.media-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.rich-editor-toolbar {
    padding: 10px;
    background: var(--surface-raised);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.rich-editor-toolbar button,
.rich-editor-toolbar select,
.rich-editor-toolbar label,
.rich-editor-media select,
.media-picker select {
    min-height: 34px;
    color: var(--nav-text);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 800;
}

.rich-editor-toolbar button {
    padding: 0 10px;
    cursor: pointer;
}

.rich-editor-toolbar button.active {
    color: #ffffff;
    background: var(--primary);
}

.rich-editor-toolbar label {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    padding: 0 8px;
}

.rich-editor-toolbar input[type="color"] {
    width: 28px;
    height: 24px;
    padding: 0;
    border: 0;
}

.rich-editor-media,
.media-picker {
    padding: 10px;
    background: linear-gradient(135deg, rgba(15, 159, 143, .08), transparent), var(--surface-raised);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.slide-builder {
    margin: 8px 0;
}

.slide-builder .form-row {
    margin: 0;
}

.cell-editor-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.cell-editor-grid > div {
    min-width: 0;
}

.cell-editor-grid .rich-editor-canvas,
.cell-editor-grid .rich-editor-code {
    min-height: 220px;
}

.rich-editor-media select,
.media-picker select {
    min-width: 240px;
    flex: 1;
    padding: 0 10px;
}

.rich-upload-button,
.media-upload-button {
    position: relative;
    overflow: hidden;
}

.rich-upload-button input,
.media-upload-button input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.rich-editor-status,
.media-picker-status {
    color: var(--muted);
    font-size: 13px;
    font-weight: 750;
}

.rich-editor-canvas,
.rich-editor-code {
    width: 100%;
    min-height: 320px;
    padding: 18px;
    overflow: auto;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    outline: 0;
    line-height: 1.68;
}

.rich-editor-canvas:focus,
.rich-editor-code:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(15, 159, 143, .12);
}

.rich-editor-canvas h2,
.rich-editor-canvas h3 {
    margin: 18px 0 10px;
}

.rich-editor-canvas p {
    margin: 0 0 12px;
}

.rich-editor-canvas blockquote {
    margin: 14px 0;
    padding: 14px 16px;
    background: var(--surface-soft);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius);
}

.rich-editor-canvas figure {
    margin: 16px 0;
}

.rich-editor-canvas figcaption {
    margin-top: 6px;
    color: var(--muted);
    font-size: 13px;
}

.rich-editor-canvas img,
.rich-editor-canvas video,
.rich-editor-canvas iframe {
    max-width: 100%;
    border-radius: var(--radius);
}

.rich-editor-canvas iframe {
    width: 100%;
    min-height: 320px;
    border: 0;
}

.rich-editor-canvas table {
    margin: 14px 0;
}

.rich-editor-code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 13px;
}

.actions-cell {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.actions-cell form {
    margin: 0;
}

.empty-state {
    margin: 0;
    color: var(--muted);
}

.error-page {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
    gap: 22px;
    align-items: stretch;
    padding: 58px 0 40px;
}

.error-card,
.error-helper div {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.error-card {
    position: relative;
    overflow: hidden;
    padding: 34px;
}

.error-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--primary) 12%, transparent), transparent 44%),
        linear-gradient(315deg, color-mix(in srgb, var(--coral) 12%, transparent), transparent 50%);
    pointer-events: none;
}

.error-card > * {
    position: relative;
}

.error-code {
    display: inline-grid;
    min-width: 92px;
    min-height: 54px;
    place-items: center;
    margin-bottom: 18px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--violet));
    border-radius: var(--radius);
    font-size: 30px;
    font-weight: 950;
}

.error-card h1 {
    max-width: 720px;
    margin: 12px 0;
    font-size: 42px;
    line-height: 1.08;
}

.error-card p,
.error-helper p {
    color: var(--muted);
    line-height: 1.65;
}

.error-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.error-helper {
    display: grid;
    gap: 14px;
}

.error-helper div {
    display: grid;
    gap: 8px;
    padding: 22px;
}

.error-helper strong {
    font-size: 18px;
}

.error-helper a {
    color: var(--primary-dark);
    font-weight: 850;
}

.footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 48px;
    padding: 32px max(var(--container-gutter, 24px), calc((100% - var(--container-width, 1220px)) / 2));
    color: var(--muted);
    background: var(--surface);
    border-top: 1px solid var(--line);
}

.footer strong,
.footer span {
    display: block;
}

html[data-theme="dark"] .flash-success {
    background: #12332f;
}

html[data-theme="dark"] .flash-error {
    background: #3b1d19;
}

html[data-theme="dark"] .flash-info {
    background: #211f43;
}

html[data-theme="dark"] .status.pending,
html[data-theme="dark"] .status.requested,
html[data-theme="dark"] .status.assigned,
html[data-theme="dark"] .status.submitted,
html[data-theme="dark"] .status.reviewing {
    color: #ffd58c;
    background: #3a2b11;
}

html[data-theme="dark"] .status.canceled,
html[data-theme="dark"] .status.rejected {
    color: #ffb2a6;
    background: #3d1d19;
}

@media (max-width: 960px) {
    .hero-band,
    .analytics-hero,
    .track-hero,
    .checkout-shell,
    .lesson-shell,
    .two-columns,
    .admin-forms,
    .ops-grid,
    .error-page,
    .workspace-hero,
    .dashboard-canvas,
    .dashboard-canvas.two,
    .learning-roadmap {
        grid-template-columns: 1fr;
    }

    .corporate-header {
        display: grid;
        align-items: start;
    }

    .card-grid,
    .dashboard-grid,
    .position-grid,
    .evidence-grid,
    .suggestion-cell-grid,
    .workspace-module-grid,
    .profile-role-grid,
    .media-grid,
    .exclusive-cell-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-metrics,
    .metric-ribbon,
    .metrics-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-widget.wide {
        min-height: auto;
    }

    .lesson-aside {
        position: static;
    }

    .ops-grid .ops-panel:nth-child(3) {
        grid-column: auto;
    }

    .home-hero,
    .method-map {
        grid-template-columns: 1fr;
    }

    .method-map {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .topbar {
        position: static;
        display: grid;
        grid-template-columns: 1fr;
        align-items: stretch;
        gap: 10px;
        padding: 10px 14px;
    }

    .brand {
        min-width: 0;
    }

    .brand strong {
        font-size: 13px;
    }

    .brand small {
        font-size: 10px;
    }

    .brand-logo-wrap,
    .brand-logo {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px;
        max-width: 36px;
    }

    .nav {
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 10px;
        font-size: 13px;
    }

    .hero-copy h1,
    .analytics-hero h1,
    .page-header h1,
    .track-hero h1 {
        font-size: 36px;
    }

    .hero-copy p,
    .page-header p,
    .track-hero p {
        font-size: 16px;
    }

    .learning-map,
    .method-map,
    .card-grid,
    .dashboard-grid,
    .position-grid,
    .evidence-grid,
    .suggestion-cell-grid,
    .workspace-module-grid,
    .profile-role-grid,
    .media-grid,
    .exclusive-cell-grid,
    .metric-ribbon,
    .visual-grid,
    .quick-action-grid,
    .dashboard-canvas,
    .dashboard-canvas.two,
    .learning-roadmap,
    .metrics-strip,
    .admin-metrics {
        grid-template-columns: 1fr;
    }

    .analytics-hero {
        padding-top: 24px;
    }

    .analytics-hero > div:first-child,
    .analytics-spotlight,
    .dashboard-widget,
    .metric-card {
        padding: 18px;
    }

    .learning-focus,
    .corporate-focus {
        grid-template-columns: 1fr;
        justify-items: start;
    }

    .bar-analytics div {
        grid-template-columns: 1fr;
    }

    .bar-analytics strong {
        grid-column: 1;
        grid-row: 2;
    }

    .topbar-search,
    .search-hero {
        width: 100%;
        max-width: none;
        min-width: 0;
    }

    .topbar-search {
        flex-basis: auto;
        height: 38px;
        border-radius: var(--radius);
    }

    .topbar-search input {
        min-width: 0;
        padding: 0 10px;
        font-size: 13px;
    }

    .topbar-search button {
        flex: 0 0 auto;
        padding: 0 10px;
        font-size: 12px;
    }

    .search-hero {
        flex-direction: column;
    }

    .opportunity-search {
        align-items: stretch;
        flex-direction: column;
    }

    .preview-banner {
        position: static;
        flex-direction: column;
        gap: 6px;
        text-align: center;
    }

    .superadmin-lab {
        position: static;
        grid-template-columns: 1fr;
    }

    .superadmin-lab-form,
    .superadmin-lab-links {
        justify-content: flex-start;
    }

    .superadmin-lab-form label,
    .rich-editor-media select,
    .media-picker select {
        width: 100%;
        min-width: 0;
    }

    .rich-editor-toolbar,
    .rich-editor-media,
    .media-picker {
        align-items: stretch;
        flex-direction: column;
    }

    .rich-editor-toolbar button,
    .rich-editor-toolbar select,
    .rich-editor-toolbar label,
    .rich-editor-media .button,
    .media-picker .button {
        width: 100%;
    }

    .opportunity-row {
        grid-template-columns: 1fr;
    }

    .talent-bank-panel {
        grid-template-columns: 1fr;
        padding: 18px;
    }

    .opportunity-action {
        justify-items: start;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .cell-list article {
        grid-template-columns: 42px minmax(0, 1fr);
    }

    .cell-list article .button {
        grid-column: 2;
        justify-self: start;
    }

    .form-row,
    .cell-editor-grid {
        grid-template-columns: 1fr;
    }

    .form-row.compact,
    .editor-selector,
    .search-inline {
        grid-template-columns: 1fr;
    }

    .temp-password-form {
        grid-template-columns: 1fr;
    }

    .footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-links,
    .cookie-consent,
    .cookie-consent > div:last-child {
        align-items: flex-start;
        flex-direction: column;
        justify-content: flex-start;
    }

    .lesson-slide {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .slide-viewport {
        min-height: 0;
    }

    .slide-controls {
        justify-content: flex-start;
    }

    .home-hero {
        min-height: auto;
        padding-top: 24px;
    }

    .hero-device {
        min-width: 0;
        padding: 12px;
    }

    .hero-screen {
        min-height: 220px;
        padding: 20px;
    }

    .hero-screen h2 {
        font-size: 26px;
    }

    .device-queue {
        grid-template-columns: 1fr;
    }

    .method-map div {
        min-height: 168px;
    }

    .error-card h1 {
        font-size: 32px;
    }
}

/* =========================================================================
   Módulo de Gestão Financeira & Fiscal SP
   ========================================================================= */
.badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.78rem;
    font-weight: 600;
}
.method-option {
    transition: all 150ms ease;
}
.method-option:hover {
    border-color: var(--primary) !important;
}
.pix-generated-card {
    background: var(--surface);
    padding: 24px;
    border-radius: 12px;
    border: 1px solid var(--line);
}

/* =========================================================================
   Módulo de Autenticação Otimizada, Social OAuth e Tipos de Perfil (Estudante/Profissional)
   ========================================================================= */

.modern-auth-card {
    width: min(540px, 100%);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 36px 32px;
    box-shadow: 0 20px 50px rgba(15, 30, 50, 0.08);
}

.register-auth-card {
    width: min(600px, 100%);
}

.recovery-card {
    width: min(520px, 100%);
}

.auth-header {
    text-align: center;
    margin-bottom: 24px;
}

.auth-badge {
    display: inline-block;
    padding: 4px 12px;
    background: var(--surface-soft);
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 750;
    border-radius: 20px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 8px;
    border: 1px solid rgba(15, 159, 143, 0.2);
}

.auth-header h1 {
    font-size: 1.85rem;
    color: var(--ink);
    margin: 4px 0 8px;
    font-weight: 850;
    line-height: 1.2;
}

.auth-subtitle {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

/* Social Buttons */
.social-login-grid {
    display: grid;
    gap: 12px;
    margin-bottom: 20px;
}

.button-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 12px 18px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
    cursor: pointer;
}

.button-google {
    background: var(--surface);
    color: var(--ink);
    border: 1.5px solid var(--line);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.button-google:hover {
    border-color: #4285F4;
    background: rgba(66, 133, 244, 0.04);
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.12);
}

.button-linkedin {
    background: #0077B5;
    color: #ffffff !important;
    border: 1.5px solid #0077B5;
}

.button-linkedin:hover {
    background: #005f93;
    border-color: #005f93;
    box-shadow: 0 4px 12px rgba(0, 119, 181, 0.25);
}

.social-icon {
    flex-shrink: 0;
}

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 22px 0;
    color: var(--muted);
    font-size: 0.85rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--line);
}

.auth-divider span {
    padding: 0 14px;
    font-weight: 600;
}

/* Form Fields */
.auth-form {
    display: grid;
    gap: 16px;
}

.form-field {
    display: grid;
    gap: 6px;
}

.field-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.field-label {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--ink);
}

.forgot-link {
    font-size: 0.85rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 650;
}

.forgot-link:hover {
    text-decoration: underline;
}

.input-icon-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon-wrap input {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px 12px 38px;
    border: 1.5px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    color: var(--ink);
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.input-icon-wrap input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(15, 159, 143, 0.15);
}

.input-icon-wrap .input-icon {
    position: absolute;
    left: 12px;
    color: var(--muted);
    font-size: 1rem;
    pointer-events: none;
}

.input-icon-wrap.password-field input {
    padding-left: 14px;
    padding-right: 44px;
}

.btn-toggle-password {
    position: absolute;
    right: 8px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px;
    color: var(--muted);
    font-size: 1.1rem;
    line-height: 1;
    border-radius: 4px;
}

.btn-toggle-password:hover,
.btn-toggle-password.active {
    color: var(--primary);
}

.field-hint {
    font-size: 0.8rem;
    color: var(--muted);
    margin-top: 3px;
}

.auth-submit-btn {
    margin-top: 8px;
    padding: 14px 20px;
    font-size: 1rem;
    font-weight: 800;
    border-radius: 8px;
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    font-size: 0.92rem;
    color: var(--muted);
}

.auth-footer a {
    color: var(--primary);
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Account Type Selector (Estudante vs Profissional) */
.account-type-selector-wrapper {
    margin-bottom: 20px;
}

.selector-title {
    display: block;
    font-weight: 750;
    font-size: 0.9rem;
    color: var(--ink);
    margin-bottom: 10px;
}

.account-type-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.account-type-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: var(--surface);
    border: 2px solid var(--line);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.account-type-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.account-type-card .card-icon {
    font-size: 1.8rem;
    line-height: 1;
    flex-shrink: 0;
}

.account-type-card .card-content {
    display: grid;
    gap: 4px;
}

.account-type-card .card-content strong {
    font-size: 0.98rem;
    color: var(--ink);
    font-weight: 800;
}

.account-type-card .card-content p {
    font-size: 0.8rem;
    color: var(--muted);
    line-height: 1.35;
    margin: 0;
}

.type-tag {
    display: inline-block;
    padding: 2px 7px;
    background: var(--surface-soft);
    color: var(--primary);
    font-size: 0.72rem;
    font-weight: 750;
    border-radius: 6px;
    margin-top: 4px;
    width: fit-content;
}

.type-tag.corporate {
    background: rgba(112, 101, 216, 0.12);
    color: var(--violet);
}

.account-type-card:hover {
    border-color: rgba(15, 159, 143, 0.5);
    background: var(--surface-soft);
}

.account-type-card.is-active {
    border-color: var(--primary);
    background: var(--surface-soft);
    box-shadow: 0 4px 14px rgba(15, 159, 143, 0.14);
}

/* Password Requirements Checklist */
.password-requirements {
    background: var(--surface-soft);
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid rgba(15, 159, 143, 0.18);
    font-size: 0.82rem;
}

.req-title {
    font-weight: 750;
    color: var(--ink);
    display: block;
    margin-bottom: 6px;
}

.req-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 4px;
}

.req-item {
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.15s;
}

.req-item::before {
    content: '○';
    color: var(--muted);
    font-size: 0.85rem;
}

.req-item.is-valid {
    color: var(--primary);
    font-weight: 650;
}

.req-item.is-valid::before {
    content: '✓';
    color: var(--primary);
    font-weight: 800;
}

/* Super Admin Notice */
.superadmin-notice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    background: rgba(242, 184, 75, 0.12);
    border: 1px solid rgba(242, 184, 75, 0.35);
    border-radius: 10px;
    margin-top: 16px;
    font-size: 0.82rem;
    color: var(--ink);
}

.notice-icon {
    font-size: 1.4rem;
    line-height: 1;
}

.superadmin-notice strong {
    display: block;
    color: #925400;
    font-weight: 800;
    margin-bottom: 2px;
}

html[data-theme="dark"] .superadmin-notice strong {
    color: #f7ba52;
}

.superadmin-notice p {
    margin: 0;
    line-height: 1.4;
    color: var(--muted);
}

.superadmin-notice code {
    background: var(--surface);
    padding: 1px 4px;
    border-radius: 4px;
    border: 1px solid var(--line);
    font-size: 0.8rem;
    color: var(--ink);
}

/* Recovery Step Bar */
.recovery-steps-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding: 12px 16px;
    background: var(--surface-soft);
    border-radius: 10px;
    border: 1px solid var(--line);
}

.step-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 650;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--line);
    color: var(--ink);
    font-weight: 800;
    font-size: 0.78rem;
}

.step-item.is-current {
    color: var(--primary);
    font-weight: 800;
}

.step-item.is-current .step-number {
    background: var(--primary);
    color: #ffffff;
}

.step-item.is-completed {
    color: var(--primary);
}

.step-item.is-completed .step-number {
    background: rgba(15, 159, 143, 0.2);
    color: var(--primary);
}

.step-divider {
    flex: 1;
    height: 1.5px;
    background: var(--line);
    margin: 0 10px;
}

/* Recovery Sent Box */
.recovery-sent-box {
    display: grid;
    gap: 16px;
    text-align: center;
}

.sent-icon-circle {
    width: 64px;
    height: 64px;
    background: var(--surface-soft);
    border: 2px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto;
}

.recovery-sent-box h2 {
    font-size: 1.45rem;
    color: var(--ink);
    margin: 0;
}

.recovery-sent-box p {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
}

.masked-email-pill {
    display: inline-block;
    padding: 8px 18px;
    background: var(--surface-soft);
    border-radius: 20px;
    border: 1px solid rgba(15, 159, 143, 0.3);
    color: var(--primary);
    font-size: 1rem;
    margin: 0 auto;
}

.recovery-tips-box {
    text-align: left;
    background: var(--surface-soft);
    padding: 14px 18px;
    border-radius: 8px;
    border: 1px solid var(--line);
    font-size: 0.85rem;
}

.recovery-tips-box strong {
    display: block;
    margin-bottom: 6px;
    color: var(--ink);
}

.recovery-tips-box ul {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 4px;
    color: var(--muted);
}

.dev-quick-link-box {
    text-align: left;
    padding: 14px;
    background: rgba(112, 101, 216, 0.08);
    border: 1px dashed var(--violet);
    border-radius: 8px;
}

.dev-tag {
    display: inline-block;
    font-weight: 750;
    color: var(--violet);
    text-transform: uppercase;
    font-size: 0.75rem;
    margin-bottom: 4px;
}

.sent-actions {
    display: grid;
    gap: 10px;
    margin-top: 10px;
}

.account-target-pill {
    padding: 10px 14px;
    background: var(--surface-soft);
    border-radius: 8px;
    border: 1px solid var(--line);
    margin-bottom: 16px;
    font-size: 0.9rem;
    display: flex;
    gap: 8px;
    align-items: center;
}

/* Sandbox Box */
.sandbox-dev-box {
    margin-top: 20px;
    padding: 16px;
    background: var(--surface-soft);
    border: 1px dashed var(--line);
    border-radius: 10px;
    font-size: 0.82rem;
}

.sandbox-tag {
    font-weight: 750;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: block;
    margin-bottom: 4px;
}

.sandbox-dev-box p {
    margin: 0 0 10px;
    color: var(--muted);
}

.sandbox-quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sandbox-page-card {
    width: min(620px, 100%);
}

.sandbox-group {
    margin-bottom: 22px;
}

.sandbox-group h3 {
    font-size: 1.05rem;
    margin: 0 0 4px;
    color: var(--ink);
}

.group-desc {
    color: var(--muted);
    font-size: 0.85rem;
    margin: 0 0 12px;
}

.sandbox-buttons-list {
    display: grid;
    gap: 10px;
}

.avatar-letter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(15, 159, 143, 0.15);
    color: var(--primary);
    font-weight: 800;
    font-size: 0.88rem;
    flex-shrink: 0;
}

.btn-text-block {
    text-align: left;
    display: grid;
    gap: 1px;
}

.btn-text-block strong {
    font-size: 0.92rem;
    color: var(--ink);
}

.btn-text-block small {
    font-size: 0.78rem;
    color: var(--muted);
}

.sandbox-config-help {
    padding: 16px;
    background: var(--surface-soft);
    border-radius: 8px;
    border: 1px solid var(--line);
    font-size: 0.85rem;
    margin-top: 16px;
}

.sandbox-config-help pre {
    margin: 8px 0 0;
    padding: 10px;
    background: var(--bg);
    border-radius: 6px;
    overflow-x: auto;
    font-size: 0.8rem;
}

@media (max-width: 600px) {
    .modern-auth-card {
        padding: 24px 18px;
    }
    .account-type-grid {
        grid-template-columns: 1fr;
    }
    .recovery-steps-bar {
        font-size: 0.75rem;
    }
    .step-item {
        flex-direction: column;
        gap: 4px;
        text-align: center;
    }
}

/* ---------- Poka-yoke para icones administrativos e de trabalho ---------- */
.adm-ico,
svg.adm-ico,
.adm-nav-link svg,
.adm-bottom svg,
.adm-tile-ico svg,
.adm-search-trigger svg {
    width: 20px !important;
    height: 20px !important;
    max-width: 20px !important;
    max-height: 20px !important;
    flex-shrink: 0 !important;
    display: inline-block;
    vertical-align: middle;
}




/* ==========================================================================
   CDE CORPORATIVO, METODOLOGIA CELULA, TREINAMENTOS EXTERNOS & COMPROVANTES
   ========================================================================== */

/* Hero B2B */
.b2b-hero-section {
    padding: 48px 24px;
    background: linear-gradient(135deg, rgba(15, 159, 143, 0.08), rgba(47, 111, 221, 0.06) 60%, rgba(112, 101, 216, 0.08));
    border-bottom: 1px solid var(--line);
    margin-bottom: 30px;
}
.b2b-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--surface);
    border: 1px solid rgba(15, 159, 143, 0.3);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 20px;
}
.b2b-hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.9fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}
.b2b-hero-content h1 {
    font-size: 2.4rem;
    line-height: 1.2;
    margin-bottom: 18px;
    color: var(--ink);
}
.b2b-hero-content h1 em {
    font-style: normal;
    color: var(--primary);
    text-decoration: underline;
    text-decoration-color: rgba(15, 159, 143, 0.4);
}
.b2b-hero-subtitle {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--muted);
    margin-bottom: 24px;
}
.b2b-hero-highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 28px;
}
.b2b-hero-highlights div {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    color: var(--ink);
}
.b2b-hero-highlights span {
    color: var(--primary);
    font-weight: bold;
}
.b2b-hero-ctas {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.b2b-hero-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 12px 32px rgba(15, 159, 143, 0.08);
}
.b2b-form-header {
    margin-bottom: 18px;
}
.b2b-form-header h3 {
    margin: 4px 0 6px;
    font-size: 1.3rem;
}
.b2b-form-header p {
    color: var(--muted);
    font-size: 0.9rem;
    margin: 0;
}
.b2b-lead-form .form-group {
    margin-bottom: 12px;
}
.b2b-lead-form label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--ink);
}
.b2b-lead-form input,
.b2b-lead-form select,
.b2b-lead-form textarea {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: var(--bg);
    color: var(--ink);
    font-size: 0.95rem;
}
.form-feedback {
    margin-top: 14px;
    padding: 12px;
    border-radius: 8px;
    font-size: 0.9rem;
}
.form-feedback.success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}
.form-feedback.error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Feature grid */
.b2b-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 24px;
}
.b2b-feature-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 24px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.b2b-feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.05);
}
.feature-icon-badge {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 16px;
}
.feature-bullets {
    margin: 14px 0 0;
    padding-left: 20px;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Celula horizontal steps */
.celula-steps-horizontal {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 16px;
    margin-top: 30px;
}
.celula-step-box {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 20px 16px;
    text-align: center;
    position: relative;
    border-top: 4px solid var(--primary);
}
.step-letter {
    width: 40px;
    height: 40px;
    line-height: 40px;
    border-radius: 50%;
    margin: 0 auto 12px;
    background: var(--primary);
    color: #fff;
    font-weight: 800;
    font-size: 1.2rem;
}
.celula-step-box h3,
.celula-step-box h4 {
    margin: 0 0 8px;
    font-size: 1.05rem;
}
.celula-step-box p {
    font-size: 0.85rem;
    color: var(--muted);
    margin: 0;
    line-height: 1.4;
}

/* Demo callout banner */
.b2b-demo-banner {
    background: linear-gradient(135deg, #0b6c61, #084c44);
    color: #ffffff;
    border-radius: 16px;
    padding: 40px;
    margin: 40px 0;
    text-align: center;
}
.b2b-demo-banner h2 {
    color: #ffffff;
    font-size: 2rem;
    margin: 8px 0 12px;
}
.b2b-demo-banner p {
    color: rgba(255, 255, 255, 0.88);
    max-width: 650px;
    margin: 0 auto 24px;
    font-size: 1.05rem;
}
.demo-banner-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

/* Comparison table */
.b2b-table th.highlight-col,
.b2b-table td.highlight-col {
    background: rgba(15, 159, 143, 0.08);
}

/* AI & Governance Comparison: NotebookLM/ChatGPT vs CDE Corporativo */
.b2b-vs-section {
    margin: 48px 0;
}
.b2b-vs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 28px;
}
.b2b-vs-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 28px;
    position: relative;
    display: flex;
    flex-direction: column;
}
.b2b-vs-card.negative {
    border-top: 4px solid #ef4444;
}
.b2b-vs-card.positive {
    border-top: 4px solid var(--primary);
    background: linear-gradient(180deg, rgba(15, 159, 143, 0.05), var(--surface));
    box-shadow: 0 10px 28px rgba(15, 159, 143, 0.09);
}
.b2b-vs-header {
    margin-bottom: 20px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 16px;
}
.b2b-vs-header .vs-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 10px;
}
.b2b-vs-card.negative .vs-badge {
    background: #fee2e2;
    color: #b91c1c;
}
.b2b-vs-card.positive .vs-badge {
    background: rgba(15, 159, 143, 0.15);
    color: var(--primary);
}
.b2b-vs-header h3 {
    margin: 0 0 6px;
    font-size: 1.35rem;
}
.b2b-vs-header p {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.45;
}
.b2b-vs-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.b2b-vs-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.93rem;
    line-height: 1.5;
}
.b2b-vs-list li .vs-icon {
    font-size: 1.15rem;
    flex-shrink: 0;
    margin-top: 2px;
}
.b2b-vs-list li strong {
    color: var(--ink);
    display: block;
    margin-bottom: 2px;
}
.b2b-vs-list li span {
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.4;
    display: block;
}

/* Header do Modo Demonstrativo */
.demo-interactive-header {
    background: var(--surface);
    border: 2px solid var(--primary);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 8px 24px rgba(15, 159, 143, 0.08);
}
.demo-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
}
.demo-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(15, 159, 143, 0.15);
    color: var(--primary);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.85rem;
}
.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 0 4px rgba(15, 159, 143, 0.3);
    animation: pulseAnim 2s infinite;
}
@keyframes pulseAnim {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(15, 159, 143, 0.5); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(15, 159, 143, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(15, 159, 143, 0); }
}
.demo-tour-steps {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 8px 0 4px;
    margin-top: 14px;
    scrollbar-width: thin;
}
.tour-pill {
    white-space: nowrap;
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: var(--bg);
    color: var(--ink);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}
.tour-pill:hover,
.tour-pill.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.demo-guide-callout {
    background: var(--surface-soft);
    border-left: 4px solid var(--primary);
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 24px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
}
.guide-icon {
    font-size: 1.5rem;
}
.guide-text strong {
    display: block;
    margin-bottom: 4px;
    font-size: 1rem;
    color: var(--ink);
}
.guide-text p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--muted);
}
.demo-tab-content {
    display: none;
}
.demo-tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Cards de Procedimento POP */
.procedure-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin-top: 20px;
}
.procedure-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 20px;
}
.procedure-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
}
.procedure-code-badge {
    background: #0f172a;
    color: #38bdf8;
    padding: 3px 8px;
    border-radius: 6px;
    font-family: monospace;
    font-weight: bold;
    font-size: 0.85rem;
    margin-right: 6px;
}
.procedure-hours {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    background: var(--surface-soft);
    padding: 3px 8px;
    border-radius: 6px;
}
.procedure-card h3 {
    font-size: 1.15rem;
    margin: 0 0 8px;
}
.procedure-summary {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 14px;
}
.celula-accordion {
    background: var(--bg);
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 14px;
    font-size: 0.85rem;
}
.celula-accordion summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--ink);
}
.celula-accordion-body {
    padding-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.celula-step-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.85rem;
}
.step-tag {
    display: inline-block;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    border-radius: 4px;
    color: #fff;
    font-weight: bold;
    font-size: 0.75rem;
    flex-shrink: 0;
}
.step-tag.c { background: #0f9f8f; }
.step-tag.e { background: #2f6fdd; }
.step-tag.l { background: #7065d8; }
.step-tag.u { background: #f2b84b; color: #172033; }
.step-tag.l2 { background: #f9735b; }
.step-tag.a { background: #10b981; }
.procedure-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--muted);
    border-top: 1px solid var(--line);
    padding-top: 12px;
}

/* Colaboradores cards */
.collaborator-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 20px;
    margin-top: 20px;
}
.collaborator-profile-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 20px;
}
.colab-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}
.colab-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--blue));
    color: #fff;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}
.colab-card-header h3 {
    margin: 0 0 2px;
    font-size: 1.05rem;
}
.colab-role {
    font-size: 0.85rem;
    color: var(--muted);
    display: block;
}
.colab-card-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    text-align: center;
    background: var(--bg);
    border-radius: 8px;
    padding: 10px 6px;
    margin-bottom: 12px;
}
.colab-card-stats strong {
    display: block;
    font-size: 1.1rem;
    color: var(--ink);
}
.colab-card-stats span {
    font-size: 0.75rem;
    color: var(--muted);
}
.colab-compliance-line {
    font-size: 0.85rem;
    margin-bottom: 14px;
}
.colab-card-footer button {
    width: 100%;
}

/* Avaliacoes de Eficacia (Reviews) */
.effectiveness-reviews-list {
    margin-top: 25px;
}
.eval-review-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 14px;
}
.eval-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}
.eval-rating {
    color: #f59e0b;
    font-weight: 700;
}
.eval-impact-quote {
    margin: 8px 0 12px;
    padding-left: 14px;
    border-left: 3px solid var(--primary);
    font-style: italic;
    color: var(--ink);
    font-size: 0.95rem;
}
.eval-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--muted);
    border-top: 1px solid var(--line);
    padding-top: 8px;
}

/* Folha Oficial de Certificado / Atestado de Capacitacao */
.certificate-official-sheet {
    max-width: 900px;
    margin: 20px auto 40px;
    background: #ffffff;
    color: #0f172a;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    font-family: 'Times New Roman', serif;
}
.sheet-frame {
    padding: 30px;
    border: 8px double #0f9f8f;
    border-radius: 4px;
}
.sheet-inner-border {
    padding: 30px;
    border: 1px solid rgba(15, 159, 143, 0.3);
    position: relative;
    background: radial-gradient(circle at center, #ffffff 60%, #fbfdfc 100%);
}
.sheet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #0f9f8f;
    padding-bottom: 18px;
    margin-bottom: 24px;
    font-family: system-ui, sans-serif;
}
.sheet-company-brand h2 {
    margin: 0 0 4px;
    font-size: 1.5rem;
    color: #087a70;
}
.sheet-company-brand small {
    color: #64748b;
    font-size: 0.85rem;
}
.sheet-seal-badge {
    text-align: center;
    background: linear-gradient(135deg, #0f9f8f, #087a70);
    color: #fff;
    padding: 10px 16px;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(15, 159, 143, 0.3);
}
.seal-icon {
    font-size: 1.3rem;
    line-height: 1;
}
.sheet-seal-badge span {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 1px;
}
.sheet-seal-badge small {
    font-size: 0.55rem;
}
.sheet-title-block {
    text-align: center;
    margin-bottom: 26px;
    font-family: system-ui, sans-serif;
}
.sheet-title-block h1 {
    font-size: 1.6rem;
    color: #0f172a;
    letter-spacing: 1.5px;
    margin: 0 0 6px;
}
.sheet-code-tag {
    font-size: 0.85rem;
    color: #64748b;
    font-family: monospace;
}
.sheet-body-content {
    text-align: center;
    line-height: 1.7;
    margin-bottom: 30px;
}
.sheet-intro {
    font-size: 1.1rem;
    color: #334155;
    margin: 12px 0;
}
.sheet-person-name {
    font-size: 2.2rem;
    color: #087a70;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 12px 0;
    font-weight: 700;
}
.sheet-training-title {
    font-size: 1.5rem;
    color: #0f172a;
    margin: 10px 0 18px;
    font-family: system-ui, sans-serif;
}
.sheet-metadata-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 12px;
    margin: 20px 0;
    font-family: system-ui, sans-serif;
    text-align: center;
}
.sheet-metadata-grid span {
    display: block;
    font-size: 0.75rem;
    color: #64748b;
}
.sheet-metadata-grid strong {
    font-size: 0.95rem;
    color: #0f172a;
}
.sheet-program-box {
    text-align: left;
    background: #fdfefe;
    border-left: 3px solid #0f9f8f;
    padding: 10px 14px;
    margin: 16px 0;
    font-family: system-ui, sans-serif;
    font-size: 0.85rem;
    color: #475569;
}
.sheet-methodology-note {
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 14px;
    font-family: system-ui, sans-serif;
}
.sheet-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 36px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
    font-family: system-ui, sans-serif;
}
.sheet-signature {
    text-align: center;
    width: 220px;
}
.signature-line {
    border-top: 1px solid #0f172a;
    margin-bottom: 6px;
}
.sheet-signature strong {
    display: block;
    font-size: 0.9rem;
}
.sheet-signature small {
    color: #64748b;
    font-size: 0.75rem;
}
.sheet-qr-auth {
    text-align: center;
}
.qr-mock-box {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.qr-verify-text {
    font-size: 0.65rem;
    color: #64748b;
    display: block;
    margin-top: 4px;
}

/* Toolbar no view de certificado */
.cert-view-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}
.cert-view-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 14px 20px;
    margin-bottom: 24px;
}

/* Passaporte / Curriculo de Capacitações */
.collaborator-passport-sheet {
    max-width: 960px;
    margin: 0 auto 50px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
}
.passport-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 18px;
    margin-bottom: 20px;
}
.passport-header h2 {
    margin: 0 0 4px;
    color: var(--primary);
}
.passport-stamp {
    border: 2px dashed var(--primary);
    padding: 8px 14px;
    border-radius: 8px;
    text-align: center;
}
.passport-stamp strong {
    display: block;
    font-size: 0.8rem;
    color: var(--primary);
}
.passport-stamp small {
    font-size: 0.7rem;
    color: var(--muted);
}
.passport-collaborator-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    background: var(--bg);
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 0.9rem;
}
.passport-collaborator-meta span {
    color: var(--muted);
}
.passport-section h3 {
    font-size: 1.1rem;
    color: var(--ink);
    border-bottom: 1px solid var(--line);
    padding-bottom: 8px;
    margin-bottom: 14px;
}

/* Passport Collaborator Card with Photo */
.passport-collaborator-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--bg);
    padding: 18px 20px;
    border-radius: 12px;
    border: 1px solid var(--line);
    margin-bottom: 20px;
}
.passport-avatar-wrapper {
    flex-shrink: 0;
}
.passport-avatar-img {
    width: 100px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid var(--line);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}
.passport-avatar-placeholder {
    width: 100px;
    height: 120px;
    border-radius: 8px;
    background: var(--surface-soft);
    border: 2px dashed var(--line);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 2rem;
    font-weight: 700;
}
.passport-avatar-placeholder small {
    font-size: 0.65rem;
    text-transform: uppercase;
    font-weight: 600;
    margin-top: 4px;
}
.passport-photo-uploader {
    background: var(--surface-soft);
    border: 1px dashed var(--primary);
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
}
.passport-regulatory-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 12px;
    margin: 20px 0 28px;
}
.regulatory-badge-box {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 12px 14px;
    border-left: 3px solid var(--primary);
}
.regulatory-badge-box.anvisa {
    border-left-color: #0284c7;
}
.regulatory-badge-box.mapa {
    border-left-color: #16a34a;
}
.regulatory-badge-box.mte {
    border-left-color: #ea580c;
}
.regulatory-badge-box.iso {
    border-left-color: #7c3aed;
}
.regulatory-badge-box strong {
    display: block;
    font-size: 0.85rem;
    color: var(--ink);
    margin-bottom: 2px;
}
.regulatory-badge-box small {
    display: block;
    font-size: 0.75rem;
    color: var(--muted);
    line-height: 1.35;
}

/* Home Corporate Band */
.home-corporate-band {
    background: linear-gradient(135deg, rgba(15, 159, 143, 0.08), rgba(47, 111, 221, 0.08));
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 50px 24px;
    margin: 30px 0;
}
.home-corp-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.3fr 0.8fr;
    gap: 40px;
    align-items: center;
}
.home-corp-content h2 {
    font-size: 2.1rem;
    margin: 0 0 14px;
}
.home-corp-content p {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--muted);
    margin-bottom: 20px;
}
.home-corp-bullets {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
}
.home-corp-bullets div {
    font-size: 0.95rem;
}
.home-corp-bullets span {
    color: var(--primary);
    font-weight: bold;
}
.home-corp-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.preview-metric-box {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}
.p-gauge {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 16px;
}
.p-list .p-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

/* Modal Demonstrativo */
.demo-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}
.demo-modal-content {
    background: var(--surface);
    border-radius: 14px;
    max-width: 650px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}
.demo-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 12px;
}
.close-btn {
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--muted);
}
.demo-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
    border-top: 1px solid var(--line);
    padding-top: 14px;
}

/* Impressão Limpa */
@media print {
    body {
        background: #ffffff !important;
        color: #000000 !important;
    }
    .topbar,
    .no-print,
    .cert-view-toolbar,
    .hero-actions,
    .theme-toggle,
    footer,
    .superadmin-lab,
    .preview-banner {
        display: none !important;
    }
    .cert-view-container,
    .collaborator-passport-sheet {
        box-shadow: none !important;
        border: none !important;
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    .certificate-official-sheet {
        box-shadow: none !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
    }
    .sheet-frame {
        border: 4px double #000 !important;
    }
}

/* Responsividade Mobile */
@media (max-width: 900px) {
    .b2b-hero-grid,
    .home-corp-inner {
        grid-template-columns: 1fr;
    }
    .sheet-metadata-grid {
        grid-template-columns: 1fr 1fr;
    }
    .sheet-footer {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    .b2b-hero-content h1 {
        font-size: 1.8rem;
    }
}


/* ==========================================================================
   MELHORIAS DE LAYOUT GLOBAL: DESKTOP, TABLET & CELULAR (AREJAMENTO E BORDAS)
   ========================================================================== */

/* Suavização de cartões, formulários e foco acessível */
.ops-panel,
.dashboard-widget,
.metric-card,
.track-card,
.method-form-step,
.learning-focus,
.corporate-focus,
.collaborator-passport-sheet,
.demo-interactive-header,
.b2b-cta-card {
    border-radius: var(--radius-md, 12px);
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
    background: var(--surface);
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, border-color 0.2s ease;
}

.ops-panel:hover,
.track-card:hover,
.dashboard-widget:hover {
    box-shadow: var(--shadow-md);
}

/* Foco amigável em inputs para evitar bordas duras */
input:not([type="checkbox"]):not([type="radio"]):focus,
textarea:focus,
select:focus {
    outline: none !important;
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3.5px rgba(15, 159, 143, 0.16) !important;
}

/* Evitar que tabelas e códigos quebrem as laterais do layout no mobile */
.table-wrap,
.table-responsive,
table {
    max-width: 100%;
}
.table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    border-radius: var(--radius-md, 12px);
}

/* Links longos e evidências de laboratório com quebra de linha segura */
.lab-card a,
.evidence-card a,
.passport-table a,
.break-words {
    word-break: break-word;
    overflow-wrap: anywhere;
}

/* TABLET LANDSCAPE & TELAS MÉDIAS (1024px a 1180px) */
@media (max-width: 1180px) {
    .hero-band {
        grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
        gap: 24px;
        padding: 42px 0 24px;
    }
    .track-hero {
        grid-template-columns: minmax(0, 1.2fr) minmax(260px, .8fr);
        gap: 22px;
    }
    .lesson-shell {
        grid-template-columns: 280px minmax(0, 1fr);
        gap: 22px;
    }
}

/* TABLETS PORTRAIT & TELAS MÉDIAS (769px a 960px) */
@media (max-width: 960px) {
    .lesson-shell {
        grid-template-columns: 1fr;
        gap: 22px;
        padding: 22px 0 44px;
    }
    .lesson-aside {
        position: static;
        padding: 20px;
    }
    .b2b-hero-section {
        padding: 36px var(--container-gutter, 24px);
    }
}

/* CELULARES E SMARTPHONES (720px ou menos) */
@media (max-width: 720px) {
    .topbar {
        padding: 12px var(--container-gutter, 16px);
    }
    .footer {
        padding: 26px var(--container-gutter, 16px);
        gap: 16px;
    }
    .hero-band,
    .analytics-hero,
    .page-header,
    .track-hero {
        padding: 24px 0 16px;
    }
    .hero-copy h1,
    .analytics-hero h1,
    .page-header h1,
    .track-hero h1 {
        font-size: clamp(1.65rem, 6vw, 2.1rem);
        line-height: 1.22;
    }
    .ops-panel,
    .dashboard-widget,
    .metric-card,
    .method-form-step,
    .collaborator-passport-sheet,
    .demo-interactive-header {
        padding: 18px 16px;
    }
    .button {
        min-height: 44px; /* Touch target otimizado para polegar */
    }
}

/* CELULARES COMPACTOS (480px ou menos) */
@media (max-width: 480px) {
    .breadcrumb-container nav ol {
        font-size: 0.8rem;
        gap: 6px;
    }
    .nav {
        gap: 8px;
    }
    .button.small {
        min-height: 38px;
        padding: 0 12px;
    }
    .flash {
        padding: 12px 14px;
        font-size: 0.88rem;
    }
}

/* ========================================================================= */
/* MULTI-AUDIENCE FAQ COMPONENT (Estudantes, Profissionais, Curiosos, Empresas) */
/* ========================================================================= */
.faq-section {
    padding: 60px 0;
}
.faq-container {
    max-width: 880px;
    margin: 0 auto;
}
.faq-tabs {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 28px 0 32px;
}
.faq-tab-btn {
    background: var(--surface);
    color: var(--muted);
    border: 1px solid var(--line);
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.faq-tab-btn:hover {
    color: var(--ink);
    border-color: var(--primary);
    transform: translateY(-1px);
}
.faq-tab-btn.active {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(15, 159, 143, 0.25);
}
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.faq-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.faq-card:hover {
    border-color: rgba(15, 159, 143, 0.4);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}
.faq-card[open] {
    border-color: var(--primary);
    box-shadow: 0 6px 20px rgba(15, 159, 143, 0.08);
}
.faq-summary {
    padding: 18px 22px;
    cursor: pointer;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ink);
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    user-select: none;
}
.faq-summary::-webkit-details-marker {
    display: none;
}
.faq-summary-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
}
.faq-audience-tag {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary);
    width: fit-content;
}
.faq-icon-chevron {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--surface-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: var(--muted);
    flex-shrink: 0;
    transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}
.faq-card[open] .faq-icon-chevron {
    transform: rotate(180deg);
    background: var(--primary);
    color: #ffffff;
}
.faq-body {
    padding: 0 22px 22px;
    color: var(--muted);
    font-size: 0.96rem;
    line-height: 1.65;
    border-top: 1px solid transparent;
}
.faq-card[open] .faq-body {
    border-top-color: var(--line);
    padding-top: 16px;
}
.faq-body p {
    margin: 0 0 10px;
}
.faq-body p:last-child {
    margin-bottom: 0;
}
.faq-body ul {
    margin: 8px 0 12px;
    padding-left: 20px;
}
.faq-body li {
    margin-bottom: 6px;
}
.faq-highlight-box {
    background: var(--surface-soft);
    border-left: 3px solid var(--primary);
    padding: 10px 14px;
    border-radius: 0 8px 8px 0;
    margin: 10px 0;
    font-size: 0.9rem;
    color: var(--ink);
}

/* =========================================================================
   Central de Certificados do Aluno Logado, Relatório Público LGPD & QR Code
   ========================================================================= */
.owner-cert-status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    background: var(--surface);
    border: 1.5px solid var(--primary);
    border-radius: 14px;
    padding: 16px 22px;
    margin-bottom: 20px;
    box-shadow: 0 10px 28px rgba(15, 159, 143, 0.1);
}
.owner-status-info {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}
.owner-status-info strong {
    display: block;
    color: var(--ink);
    font-size: 0.98rem;
}
.owner-status-info small {
    color: var(--muted);
    font-size: 0.84rem;
}
.owner-valid-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(15, 159, 143, 0.14);
    color: var(--primary);
    font-weight: 800;
    font-size: 0.84rem;
    border: 1px solid rgba(15, 159, 143, 0.35);
    white-space: nowrap;
}
.owner-mode-switch {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.certificate-owner-sheet {
    position: relative;
    padding: 36px 34px 24px;
    border: 2px solid var(--primary);
    border-radius: 16px;
    background: var(--surface);
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
}
.cert-sheet-header-brand {
    margin-bottom: 6px;
}
.cert-academy-label {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: var(--primary);
    text-transform: uppercase;
}
.cert-statement {
    font-size: 1.08rem;
    line-height: 1.65;
    margin: 18px auto;
    max-width: 720px;
}
.cert-holder-name {
    font-size: 1.35rem;
    color: var(--ink);
    border-bottom: 2px solid rgba(15, 159, 143, 0.35);
    padding-bottom: 2px;
}
.cert-verification-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    align-items: center;
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 18px 22px;
    margin-top: 20px;
    text-align: left;
}
.cert-meta-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 14px;
}
.cert-meta-item small {
    display: block;
    font-size: 0.75rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 3px;
}
.cert-meta-item strong {
    font-size: 0.96rem;
    color: var(--ink);
}
.mono-code {
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    letter-spacing: 0.05em;
    color: var(--primary) !important;
}
.cert-qr-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    background: #ffffff;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--line);
    text-align: center;
}
.qr-svg-wrap {
    display: inline-flex;
    padding: 4px;
    background: #ffffff;
    border-radius: 6px;
}
.qr-caption strong {
    display: block;
    font-size: 0.74rem;
    color: #0f172a;
}
.qr-caption small {
    display: block;
    font-size: 0.68rem;
    color: #475569;
}

/* Rodapé discreto obrigatório em todos os certificados */
.certificate-legal-footer {
    margin-top: 24px;
    padding-top: 12px;
    border-top: 1px dashed var(--line);
    text-align: center;
    font-size: 0.74rem;
    color: var(--muted);
    letter-spacing: 0.01em;
    line-height: 1.4;
}
.footer-legal-line {
    display: block;
    margin-top: 6px;
    font-size: 0.74rem;
    color: var(--muted);
}

/* Relatório Público de Validação (LGPD) */
.validation-report-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 30px 28px 22px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
}
.report-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}
.report-top-bar h1 {
    margin: 4px 0 0;
    font-size: 1.65rem;
}
.report-status-banner {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 18px;
}
.report-status-banner.is-valid {
    background: rgba(15, 159, 143, 0.1);
    border: 1.5px solid rgba(15, 159, 143, 0.4);
}
.report-status-banner.is-invalid {
    background: rgba(220, 38, 38, 0.08);
    border: 1.5px solid rgba(220, 38, 38, 0.35);
}
.report-status-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    font-weight: 900;
    flex-shrink: 0;
}
.report-status-banner.is-valid .report-status-icon {
    background: var(--primary);
    color: #ffffff;
}
.report-status-banner.is-invalid .report-status-icon {
    background: #dc2626;
    color: #ffffff;
}
.report-status-text strong {
    display: block;
    font-size: 1.05rem;
    color: var(--ink);
    margin-bottom: 2px;
}
.report-status-text span {
    font-size: 0.9rem;
    color: var(--muted);
}
.report-lgpd-notice {
    background: var(--surface-soft);
    border-left: 4px solid #0284c7;
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 22px;
    font-size: 0.88rem;
    line-height: 1.55;
    color: var(--ink);
}
.report-lgpd-notice p {
    margin: 6px 0 0;
    color: var(--muted);
}
.report-main-grid {
    display: grid;
    grid-template-columns: 1fr 210px;
    gap: 22px;
    align-items: start;
}
.report-data-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 14px;
}
.report-field {
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 12px 14px;
}
.report-label {
    display: block;
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
    margin-bottom: 4px;
}
.report-value {
    display: block;
    font-size: 0.96rem;
    color: var(--ink);
}
.report-subnote {
    display: block;
    margin-top: 4px;
    font-size: 0.75rem;
    color: var(--muted);
}
.report-qr-card {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 14px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.report-qr-card strong {
    font-size: 0.82rem;
    color: #0f172a;
}
.report-qr-card small {
    font-size: 0.74rem;
    color: #475569;
    line-height: 1.35;
}
.report-owner-callout {
    margin-top: 20px;
    padding: 16px 20px;
    border-radius: 12px;
    background: rgba(15, 159, 143, 0.07);
    border: 1px dashed rgba(15, 159, 143, 0.45);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}
.report-owner-callout strong {
    display: block;
    color: var(--ink);
    font-size: 0.95rem;
}
.report-owner-callout span {
    font-size: 0.86rem;
    color: var(--muted);
}

/* Central de Certificados do Aluno Logado (Painel & Portfólio) */
.student-cert-hub {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}
.sch-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
}
.sch-header h2 {
    margin: 4px 0 6px;
}
.sch-header p {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
    max-width: 640px;
}
.sch-verify-form {
    min-width: min(380px, 100%);
    flex: 1;
    max-width: 460px;
}
.sch-verify-form label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 6px;
}
.sch-verify-row {
    display: flex;
    gap: 8px;
}
.sch-verify-row input {
    flex: 1;
    padding: 9px 12px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: var(--surface-soft);
    color: var(--ink);
    font-size: 0.88rem;
}
.student-quick-certs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}
.student-quick-cert-card {
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: border-color 0.2s ease, transform 0.15s ease;
}
.student-quick-cert-card:hover,
.student-quick-cert-card.is-current {
    border-color: var(--primary);
    transform: translateY(-2px);
}
.sqc-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.sqc-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 750;
}
.sqc-badge.valid {
    background: rgba(15, 159, 143, 0.14);
    color: var(--primary);
    border: 1px solid rgba(15, 159, 143, 0.3);
}
.sqc-badge.revoked {
    background: rgba(220, 38, 38, 0.12);
    color: #dc2626;
}
.sqc-code {
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 0.78rem;
    padding: 2px 7px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--ink);
}
.student-quick-cert-card h3 {
    margin: 2px 0;
    font-size: 1.02rem;
    color: var(--ink);
}
.sqc-meta {
    color: var(--muted);
    font-size: 0.82rem;
}
.sqc-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: 8px;
}

/* Guia de Verificação Pública para Pessoas Não Logadas (QR Code + 18 dígitos discreto) */
.public-verification-guide {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 28px 26px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.05);
}
.pvg-header {
    margin-bottom: 20px;
}
.pvg-header h2 {
    margin: 4px 0 8px;
    font-size: 1.45rem;
}
.pvg-header p {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.55;
}
.pvg-steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}
.pvg-step-card {
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 18px 20px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
.pvg-step-card.primary-step {
    border-color: rgba(15, 159, 143, 0.4);
}
.pvg-step-icon {
    font-size: 1.75rem;
    line-height: 1;
    flex-shrink: 0;
}
.pvg-step-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--primary);
    margin-bottom: 4px;
}
.pvg-step-card h3 {
    margin: 0 0 6px;
    font-size: 1.04rem;
    color: var(--ink);
}
.pvg-step-card p {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.55;
    color: var(--muted);
}

/* Bloco discreto para digitação manual dos 18 dígitos */
.discreet-code-lookup {
    background: var(--surface-soft);
    border: 1px dashed var(--line);
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 0.86rem;
    color: var(--muted);
}
.discreet-code-lookup summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--muted);
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.discreet-code-lookup summary::-webkit-details-marker {
    display: none;
}
.discreet-code-lookup summary:hover {
    color: var(--ink);
}
.discreet-lookup-form {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
    display: grid;
    gap: 8px;
}
.discreet-lookup-form label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--ink);
}
.discreet-lookup-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.discreet-lookup-row input {
    flex: 1;
    min-width: 220px;
    max-width: 360px;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--ink);
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.9rem;
}

@media (max-width: 780px) {
    .cert-verification-grid,
    .report-main-grid {
        grid-template-columns: 1fr;
    }
    .cert-qr-box,
    .report-qr-sidebar {
        justify-self: center;
    }
}

@media print {
    .topbar,
    .footer,
    .superadmin-lab,
    .preview-banner,
    .no-print {
        display: none !important;
    }
    body, main {
        background: #ffffff !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    .certificate-owner-sheet,
    .validation-report-card,
    .certificate-official-sheet {
        box-shadow: none !important;
        border-color: #0f9f8f !important;
    }
}


/* ==========================================================================
   Polish layer: visual refinement, attractiveness and usability
   ========================================================================== */
:root {
    --grad-brand: linear-gradient(135deg, #0f9f8f 0%, #2f6fdd 55%, #7065d8 100%);
    --ease-out: cubic-bezier(.22, .8, .3, 1);
    --focus-ring: 0 0 0 3px rgba(15, 159, 143, .35);
}

body { text-rendering: optimizeLegibility; }
::selection { background: rgba(15, 159, 143, .25); }

/* Accessible, consistent focus */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, summary:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
    border-radius: var(--radius);
}

/* Header */
.topbar {
    box-shadow: 0 1px 0 var(--line), 0 8px 24px -16px rgba(15, 23, 42, .18);
}
.nav a { position: relative; transition: color 160ms ease; }
.nav a:not(.nav-cta)::after {
    content: "";
    position: absolute;
    left: 10%; right: 10%; bottom: -4px;
    height: 2px;
    border-radius: 2px;
    background: var(--primary);
    transform: scaleX(0);
    transition: transform 220ms var(--ease-out);
}
.nav a:not(.nav-cta):hover::after { transform: scaleX(1); }
.nav a:not(.nav-cta):hover { color: var(--primary-dark); }

/* Buttons */
.button { letter-spacing: .01em; }
.button:active { transform: translateY(0) scale(.98); }
.button.primary, .nav-cta {
    background: var(--grad-brand);
    background-size: 140% 140%;
    background-position: 0% 50%;
    transition: transform 160ms ease, box-shadow 200ms ease, background-position 400ms ease;
}
.button.primary:hover, .nav-cta:hover {
    background: var(--grad-brand);
    background-position: 100% 50%;
    box-shadow: 0 14px 32px rgba(47, 111, 221, .28);
}
.button.ghost:hover {
    border-color: var(--primary);
    color: var(--primary-dark);
    box-shadow: var(--shadow-sm);
}

/* Hero: clear primary action, secondary ones less noisy */
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 12px;
}
.hero-actions .button.primary { min-height: 48px; padding: 0 26px; font-size: 1.02rem; }
.hero-actions .button.ghost:nth-child(n+3) {
    min-height: 36px;
    padding: 0 6px;
    background: transparent;
    border-color: transparent;
    color: var(--muted);
    font-weight: 650;
    font-size: .92rem;
    text-decoration: underline;
    text-decoration-color: transparent;
    text-underline-offset: 4px;
}
.hero-actions .button.ghost:nth-child(n+3):hover {
    color: var(--primary-dark);
    text-decoration-color: currentColor;
    box-shadow: none;
}
.home-hero h1 {
    background: var(--grad-brand);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
.hero-device {
    box-shadow: var(--shadow-lg);
    transition: transform 400ms var(--ease-out), box-shadow 400ms ease;
}
.hero-device:hover { transform: translateY(-4px); }

.eyebrow { letter-spacing: .06em; }

/* Cards: lift and soft glow on hover */
.card-grid > *, .metric-card, .p-item {
    transition: transform 220ms var(--ease-out), box-shadow 220ms ease, border-color 220ms ease;
}
.card-grid > *:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(15, 159, 143, .45);
}
.metric-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

/* Section titles */
.section-heading h2 { text-wrap: balance; }
.section-heading.center { text-align: center; }

/* Forms: bigger, clearer inputs */
input[type="text"], input[type="email"], input[type="password"], input[type="search"],
input[type="tel"], input[type="number"], select, textarea {
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
input:hover, select:hover, textarea:hover { border-color: rgba(15, 159, 143, .5); }
input:focus, select:focus, textarea:focus {
    border-color: var(--primary);
    box-shadow: var(--focus-ring);
}

/* FAQ tabs */
.faq-tab-btn { transition: all 160ms ease; }
.faq-tab-btn:hover { transform: translateY(-1px); }

/* Footer */
.footer a { transition: color 160ms ease; }
.footer a:hover { color: var(--primary); }

/* Smooth reveal for main content */
@keyframes polish-fade-up {
    from { opacity: 1; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
}
.hero-copy, .hero-device, .section, .method-section, .metrics-strip {
    animation: polish-fade-up 600ms var(--ease-out) both;
}

/* Mobile: easier tapping */
@media (max-width: 720px) {
    .button { min-height: 46px; }
    .hero-actions .button.primary { width: 100%; }
    .card-grid > *:hover { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

html[data-theme="dark"] .topbar { box-shadow: 0 1px 0 var(--line), 0 8px 24px -16px rgba(0, 0, 0, .7); }
html[data-theme="dark"] .home-hero h1 {
    background: linear-gradient(135deg, #64dfd2 0%, #8cb4ff 55%, #b3a8ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
}


/* ==========================================================================
   Catálogo estilo streaming (Netflix / Globoplay)
   ========================================================================== */
.nf-hero {
    position: relative;
    min-height: clamp(380px, 56vh, 560px);
    display: flex;
    align-items: flex-end;
    color: #fff;
    background:
        linear-gradient(90deg, rgba(8, 11, 18, .95) 0%, rgba(8, 11, 18, .72) 42%, rgba(8, 11, 18, .15) 100%),
        linear-gradient(0deg, var(--bg) 0%, rgba(8, 11, 18, 0) 28%),
        var(--hero-img) center / cover no-repeat;
    padding: clamp(28px, 6vw, 72px) max(var(--container-gutter, 24px), calc((100% - var(--container-width, 1220px)) / 2));
    animation: none !important;
}
.nf-hero-inner { max-width: 620px; padding-bottom: 28px; }
.nf-hero-tag {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--accent) 80%, #000);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}
.nf-hero h1 {
    margin: 14px 0 10px;
    font-size: clamp(1.65rem, 3.2vw, 2.35rem);
    line-height: 1.14;
    color: #fff;
    -webkit-text-fill-color: #fff;
    background: none;
    text-shadow: 0 4px 24px rgba(0, 0, 0, .5);
}
.nf-hero p {
    margin: 0 0 14px;
    color: rgba(255, 255, 255, .86);
    font-size: 1.05rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.nf-hero-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-bottom: 20px; font-size: .9rem; font-weight: 700; color: rgba(255, 255, 255, .8); }
.nf-hero-meta span:not(:last-child)::after { content: "•"; margin-left: 14px; opacity: .5; }
.nf-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.nf-btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 48px; padding: 0 26px;
    border-radius: 8px; font-weight: 800; font-size: 1rem;
    transition: transform 160ms ease, background 160ms ease;
}
.nf-btn:hover { transform: scale(1.04); }
.nf-btn-play { background: #fff; color: #111; }
.nf-btn-play:hover { background: rgba(255, 255, 255, .85); }
.nf-btn-info { background: rgba(255, 255, 255, .22); color: #fff; backdrop-filter: blur(6px); }
.nf-btn-info:hover { background: rgba(255, 255, 255, .32); }

/* Barra de busca e filtros */
.nf-toolbar {
    position: sticky; top: 64px; z-index: 15;
    display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px;
    padding: 12px max(var(--container-gutter, 24px), calc((100% - var(--container-width, 1220px)) / 2));
    background: var(--surface-glass);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}
.nf-search {
    display: flex; align-items: center; gap: 8px;
    flex: 1 1 260px; max-width: 380px;
    padding: 0 14px; min-height: 44px;
    border: 1px solid var(--line); border-radius: 999px;
    background: var(--surface);
    transition: border-color 160ms ease, box-shadow 160ms ease;
}
.nf-search:focus-within { border-color: var(--primary); box-shadow: var(--focus-ring, 0 0 0 3px rgba(15,159,143,.3)); }
.nf-search input { flex: 1; border: 0 !important; outline: 0; background: transparent; box-shadow: none !important; color: var(--ink); font: inherit; padding: 8px 0; min-width: 0; }
.nf-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; flex: 1 1 320px; padding: 2px; }
.nf-chips::-webkit-scrollbar { display: none; }
.nf-chip {
    flex: none; cursor: pointer;
    padding: 8px 16px; border-radius: 999px;
    border: 1px solid var(--line); background: var(--surface); color: var(--ink);
    font: inherit; font-size: .9rem; font-weight: 700;
    transition: all 160ms ease;
}
.nf-chip small { opacity: .65; margin-left: 4px; }
.nf-chip:hover { border-color: var(--accent, var(--primary)); transform: translateY(-1px); }
.nf-chip.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* Fileiras */
.nf-rows { padding: 12px 0 56px; }
.nf-row { padding: 18px 0 6px; animation: none !important; }
.nf-row-head, .nf-track {
    padding-left: max(var(--container-gutter, 24px), calc((100% - var(--container-width, 1220px)) / 2));
    padding-right: max(var(--container-gutter, 24px), calc((100% - var(--container-width, 1220px)) / 2));
}
.nf-row-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.nf-row-head h2 { margin: 0; font-size: clamp(1.15rem, 2.2vw, 1.5rem); display: flex; align-items: center; gap: 10px; }
.nf-row-head p { margin: 4px 0 0; color: var(--muted); font-size: .92rem; max-width: 70ch; }
.nf-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 25%, transparent); }
.nf-arrows { display: flex; gap: 6px; flex: none; }
.nf-arrow {
    width: 38px; height: 38px; border-radius: 50%;
    border: 1px solid var(--line); background: var(--surface); color: var(--ink);
    font-size: 1.4rem; line-height: 1; cursor: pointer;
    transition: all 160ms ease;
}
.nf-arrow:hover { background: var(--ink); color: var(--bg); }

.nf-track {
    display: flex; gap: 14px;
    overflow-x: auto; scroll-snap-type: x proximity;
    padding-top: 8px; padding-bottom: 28px;
    scroll-padding-left: max(var(--container-gutter, 24px), calc((100% - var(--container-width, 1220px)) / 2));
    scrollbar-width: none;
}
.nf-track::-webkit-scrollbar { display: none; }
.nf-row.nf-grid .nf-track { flex-wrap: wrap; overflow: visible; }
.nf-row.nf-grid .nf-arrows { display: none; }

.nf-card {
    position: relative; flex: none;
    width: clamp(220px, 22vw, 290px);
    scroll-snap-align: start;
    border-radius: 12px; overflow: hidden;
    background: var(--surface-raised);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    transition: transform 260ms var(--ease-out, ease), box-shadow 260ms ease, border-color 260ms ease;
}
.nf-card[hidden] { display: none; }
.nf-card:hover, .nf-card:focus-visible {
    transform: scale(1.06); z-index: 5;
    border-color: var(--accent);
    box-shadow: 0 22px 44px -10px rgba(0, 0, 0, .45);
}
.nf-card-img { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #111; }
.nf-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms ease; }
.nf-card:hover .nf-card-img img { transform: scale(1.06); }
.nf-card-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0, 0, 0, .55), transparent 55%); }
.nf-badge {
    position: absolute; top: 10px; left: 10px; z-index: 2;
    padding: 4px 10px; border-radius: 6px;
    background: rgba(0, 0, 0, .7); color: #fff;
    font-size: .76rem; font-weight: 800; backdrop-filter: blur(4px);
}
.nf-badge.free { background: #12b76a; }
.nf-card-info { padding: 12px 14px 14px; }
.nf-card-info h3 { margin: 0 0 6px; font-size: 1rem; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nf-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: .78rem; color: var(--muted); font-weight: 650; }
.nf-level { color: var(--accent); }
.nf-card-info p {
    margin: 8px 0 0; font-size: .85rem; color: var(--muted);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.nf-play {
    display: block; max-height: 0; opacity: 0; overflow: hidden;
    font-weight: 800; font-size: .86rem; color: var(--accent);
    transition: max-height 260ms ease, opacity 260ms ease, margin 260ms ease;
}
.nf-card:hover .nf-play, .nf-card:focus-visible .nf-play { max-height: 28px; opacity: 1; margin-top: 10px; }
.nf-empty { text-align: center; padding: 56px 20px; color: var(--muted); font-weight: 650; }

@media (max-width: 720px) {
    .nf-toolbar { top: 56px; }
    .nf-search { max-width: none; }
    .nf-arrows { display: none; }
    .nf-card { width: 72vw; }
    .nf-card:hover { transform: none; }
    .nf-play { max-height: 28px; opacity: 1; margin-top: 10px; }
    .nf-hero { min-height: 420px; background-position: 70% center; }
    .nf-btn { flex: 1 1 100%; }
}

/* Catálogo: versão clara (padrão). O tema escuro mantém o visual cinematográfico. */
html:not([data-theme="dark"]) .nf-hero {
    color: var(--ink);
    background:
        linear-gradient(90deg, rgba(248, 250, 252, .97) 0%, rgba(248, 250, 252, .86) 45%, rgba(248, 250, 252, .1) 100%),
        linear-gradient(0deg, var(--bg) 0%, rgba(248, 250, 252, 0) 25%),
        var(--hero-img) center / cover no-repeat;
}
html:not([data-theme="dark"]) .nf-hero h1 { color: var(--ink); -webkit-text-fill-color: var(--ink); text-shadow: none; }
html:not([data-theme="dark"]) .nf-hero p { color: var(--hero-muted, #53627a); }
html:not([data-theme="dark"]) .nf-hero-meta { color: var(--muted); }
html:not([data-theme="dark"]) .nf-btn-play { background: var(--primary); color: #fff; box-shadow: 0 10px 24px rgba(15, 159, 143, .28); }
html:not([data-theme="dark"]) .nf-btn-play:hover { background: var(--primary-dark); }
html:not([data-theme="dark"]) .nf-btn-info { background: #fff; color: var(--ink); border: 1px solid var(--line); backdrop-filter: none; }
html:not([data-theme="dark"]) .nf-btn-info:hover { background: var(--surface-soft); }
html:not([data-theme="dark"]) .nf-card:hover, html:not([data-theme="dark"]) .nf-card:focus-visible { box-shadow: 0 18px 36px -12px rgba(15, 23, 42, .28); }
html:not([data-theme="dark"]) .nf-card-img::after { background: linear-gradient(0deg, rgba(15, 23, 42, .22), transparent 50%); }
/* Ajuste: mais imagem no tema claro (lavagem apenas atrás do texto) */
html:not([data-theme="dark"]) .nf-hero {
    background:
        linear-gradient(90deg, rgba(248, 250, 252, .94) 0%, rgba(248, 250, 252, .82) 28%, rgba(248, 250, 252, .38) 48%, rgba(248, 250, 252, 0) 66%),
        linear-gradient(0deg, var(--bg) 0%, rgba(248, 250, 252, 0) 10%),
        var(--hero-img) center / cover no-repeat;
}
html:not([data-theme="dark"]) .nf-hero-inner { text-shadow: 0 0 18px rgba(248, 250, 252, .9); }
html:not([data-theme="dark"]) .nf-hero p, html:not([data-theme="dark"]) .nf-hero-meta { color: #3b4a63; font-weight: 600; }
/* Carrossel do destaque */
.nf-carousel { position: relative; overflow: hidden; }
.nf-slides { display: grid; }
.nf-slide {
    grid-area: 1 / 1;
    opacity: 0; visibility: hidden;
    transform: scale(1.02);
    transition: opacity 700ms ease, transform 1200ms var(--ease-out, ease), visibility 0s linear 700ms;
}
.nf-slide.is-active { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; z-index: 1; }
.nf-slide .nf-hero-inner { transform: translateY(12px); opacity: 0; transition: opacity 600ms ease 250ms, transform 600ms var(--ease-out, ease) 250ms; }
.nf-slide.is-active .nf-hero-inner { transform: none; opacity: 1; }

.nf-car-arrow {
    position: absolute; top: 50%; z-index: 3; transform: translateY(-50%);
    width: 46px; height: 46px; border-radius: 50%;
    border: 0; cursor: pointer; font-size: 1.9rem; line-height: 1;
    background: rgba(255, 255, 255, .85); color: #172033;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .2);
    opacity: 0; transition: opacity 200ms ease, background 160ms ease;
}
.nf-car-arrow.prev { left: 14px; }
.nf-car-arrow.next { right: 14px; }
.nf-carousel:hover .nf-car-arrow, .nf-car-arrow:focus-visible { opacity: 1; }
.nf-car-arrow:hover { background: #fff; }

.nf-dots {
    position: absolute; z-index: 3; left: 0; right: 0; bottom: 18px;
    display: flex; justify-content: center; gap: 8px;
}
.nf-dot-btn {
    width: 34px; height: 6px; padding: 0; border: 0; border-radius: 6px; cursor: pointer;
    background: rgba(120, 130, 150, .45); overflow: hidden; position: relative;
}
.nf-dot-btn span { position: absolute; inset: 0; transform: scaleX(0); transform-origin: left; background: var(--primary); }
.nf-dot-btn.active span { animation: nf-progress var(--delay, 6000ms) linear forwards; }
.nf-carousel.paused .nf-dot-btn.active span { animation: none; transform: scaleX(1); }
@keyframes nf-progress { to { transform: scaleX(1); } }
html[data-theme="dark"] .nf-dot-btn { background: rgba(255, 255, 255, .3); }
html[data-theme="dark"] .nf-dot-btn span { background: #fff; }

@media (max-width: 720px) {
    .nf-car-arrow { display: none; }
    .nf-dots { bottom: 10px; }
}
@media (prefers-reduced-motion: reduce) {
    .nf-slide, .nf-slide .nf-hero-inner { transition: none !important; }
    .nf-dot-btn.active span { animation: none !important; transform: scaleX(1); }
}
/* Carrossel de prateleiras da home */
.home-shelves { margin-top: 8px; }
.home-shelves .nf-hero { min-height: clamp(340px, 46vh, 460px); }
.nf-hero-title {
    margin: 12px 0 10px;
    font-size: clamp(1.5rem, 2.9vw, 2.15rem);
    line-height: 1.16;
    color: #fff;
    text-shadow: 0 4px 24px rgba(0, 0, 0, .5);
}
html:not([data-theme="dark"]) .nf-hero-title { color: var(--ink); text-shadow: none; }
.nf-old-price { opacity: .6; font-weight: 600; }
.nf-promo-price { color: #e0a21a; font-size: 1.15em; }
html:not([data-theme="dark"]) .nf-promo-price { color: #c2410c; }
.nf-dot-btn[title] { cursor: pointer; }
/* ==========================================================================
   Menu superior elegante
   ========================================================================== */
.topbar {
    gap: 18px;
    padding-top: 10px;
    padding-bottom: 10px;
    padding-left: max(var(--container-gutter, 24px), calc((100% - 1360px) / 2));
    padding-right: max(var(--container-gutter, 24px), calc((100% - 1360px) / 2));
    background: color-mix(in srgb, var(--surface) 82%, transparent);
    backdrop-filter: saturate(1.6) blur(18px);
    -webkit-backdrop-filter: saturate(1.6) blur(18px);
}
.brand { flex: none; gap: 10px; }
.brand strong { letter-spacing: -.01em; white-space: nowrap; }
.brand small { display: none; white-space: nowrap; }
@media (min-width: 1480px) { .brand small { display: block; } }

/* Busca compacta, estilo "pílula" */
.topbar-search {
    flex: 1 1 240px;
    max-width: 300px;
    min-width: 150px;
    height: 40px;
    background: color-mix(in srgb, var(--ink) 4%, var(--surface));
    border-color: transparent;
    transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease, max-width 260ms var(--ease-out, ease);
}
.topbar-search:hover { border-color: var(--line); }
.topbar-search:focus-within {
    max-width: 380px;
    background: var(--surface);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(15, 159, 143, .22);
}
.topbar-search input { padding: 0 6px 0 16px; font-size: .92rem; }
.topbar-search input::placeholder { color: var(--muted); }
.topbar-search button {
    width: 46px; padding: 0;
    font-size: 0; /* esconde o texto, mostra só o ícone */
    background: transparent;
    position: relative;
}
.topbar-search button::before {
    content: "";
    position: absolute; inset: 0;
    margin: auto; width: 18px; height: 18px;
    background: var(--primary);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.topbar-search button:hover::before { background: var(--primary-dark); }

/* Links do menu */
.nav { gap: 2px; margin-left: auto; flex-wrap: wrap; row-gap: 4px; }
.nav > a:not(.nav-cta), .nav .link-button {
    padding: 8px 13px;
    border-radius: 999px;
    white-space: nowrap;
    font-size: .93rem;
    font-weight: 650;
    color: var(--nav-text);
    transition: background 160ms ease, color 160ms ease;
}
.nav > a:not(.nav-cta)::after { display: none; } /* substitui o sublinhado antigo */
.nav > a:not(.nav-cta):hover, .nav .link-button:hover {
    background: color-mix(in srgb, var(--primary) 11%, transparent);
    color: var(--primary-dark);
}
.nav > a.is-active {
    color: var(--primary-dark);
    background: color-mix(in srgb, var(--primary) 14%, transparent);
}
.nav .link-button { border: 0; cursor: pointer; background: transparent; font-family: inherit; }

/* Botão principal do menu */
.nav-cta {
    white-space: nowrap;
    margin-left: 8px;
    padding: 9px 20px;
    border-radius: 999px;
    font-size: .93rem;
    font-weight: 750;
}

/* Tema / Ajuda: discretos */
.nav .theme-toggle {
    margin-left: 6px;
    min-height: 34px;
    padding: 0 13px;
    font-size: .8rem;
    font-weight: 700;
    border-color: transparent;
    background: color-mix(in srgb, var(--ink) 6%, transparent);
    transition: background 160ms ease, transform 160ms ease;
}
.nav .theme-toggle:hover { background: color-mix(in srgb, var(--primary) 16%, transparent); transform: translateY(-1px); }

/* Pílula do usuário logado */
.nav-user-pill { margin-right: 4px; }

/* Botão hambúrguer (somente telas menores) */
.nav-burger {
    display: none;
    width: 42px; height: 42px;
    margin-left: auto;
    flex-direction: column; align-items: center; justify-content: center; gap: 5px;
    border: 1px solid var(--line); border-radius: 12px;
    background: var(--surface); cursor: pointer;
}
.nav-burger span {
    display: block; width: 18px; height: 2px; border-radius: 2px;
    background: var(--ink);
    transition: transform 220ms var(--ease-out, ease), opacity 160ms ease;
}
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1080px) {
    .topbar {
        position: sticky; top: 0;
        display: flex; flex-wrap: wrap; align-items: center;
        padding: 10px var(--container-gutter, 16px);
    }
    .brand small { display: none; }
    .nav-burger { display: inline-flex; }
    .topbar-search { order: 3; flex: 1 1 100%; max-width: none; }
    .topbar-search:focus-within { max-width: none; }
    .nav {
        order: 4;
        flex: 1 1 100%;
        display: none;
        flex-direction: column; align-items: stretch;
        gap: 4px;
        margin: 0;
        padding: 10px;
        border: 1px solid var(--line);
        border-radius: 16px;
        background: var(--surface);
        box-shadow: var(--shadow-md);
        font-size: 1rem;
    }
    .nav.is-open { display: flex; animation: nav-drop 200ms var(--ease-out, ease) both; }
    .nav > a:not(.nav-cta), .nav .link-button { display: block; width: 100%; text-align: left; padding: 12px 14px; border-radius: 12px; font-size: 1rem; }
    .nav form { width: 100%; }
    .nav-cta { margin: 6px 0 0; text-align: center; padding: 13px 20px; }
    .nav .theme-toggle { margin: 6px 0 0; width: 100%; min-height: 42px; }
    .nav-user-pill { margin: 0 0 4px; }
}
@keyframes nav-drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

html[data-theme="dark"] .topbar-search { background: rgba(255, 255, 255, .06); }
html[data-theme="dark"] .nav-burger { background: var(--surface-raised); }
/* Até 10 slides: indicadores mais compactos em telas pequenas */
@media (max-width: 720px) {
    .nf-dots { gap: 5px; }
    .nf-dot-btn { width: 20px; }
}
/* Acessibilidade */
.skip-link {
    position: absolute; left: 12px; top: -60px; z-index: 1000;
    padding: 10px 16px; border-radius: 10px;
    background: var(--ink); color: var(--bg); font-weight: 800;
    transition: top 160ms ease;
}
.skip-link:focus { top: 10px; }
main:focus { outline: none; }
.nf-pause {
    position: absolute; z-index: 4; left: max(var(--container-gutter, 24px), calc((100% - var(--container-width, 1220px)) / 2)); bottom: 10px;
    width: 34px; height: 34px; border-radius: 50%;
    border: 1px solid rgba(120, 130, 150, .45); cursor: pointer;
    background: rgba(255, 255, 255, .9); color: #172033;
    font-size: .7rem; line-height: 1; letter-spacing: -.1em;
    transition: transform 160ms ease;
}
.nf-pause:hover { transform: scale(1.08); }
html[data-theme="dark"] .nf-pause { background: rgba(20, 26, 38, .85); color: #fff; border-color: rgba(255, 255, 255, .4); }
.nf-dot-btn { min-height: 6px; }
.nf-dot-btn:focus-visible, .nf-pause:focus-visible, .nf-car-arrow:focus-visible, .nf-chip:focus-visible, .nf-arrow:focus-visible {
    outline: 3px solid var(--primary); outline-offset: 3px; box-shadow: none;
}
/* ==========================================================================
   Barra de acessibilidade
   ========================================================================== */
.a11y-widget { position: fixed; left: 16px; bottom: 16px; z-index: 900; font-family: inherit; }
.a11y-fab {
    width: 52px; height: 52px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    border: 2px solid #fff; cursor: pointer;
    background: #1d4ed8; color: #fff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .35);
    transition: transform 160ms ease;
}
.a11y-fab:hover { transform: scale(1.07); }
.a11y-fab:focus-visible, .a11y-widget button:focus-visible { outline: 3px solid #f59e0b; outline-offset: 3px; box-shadow: none; }
.a11y-panel {
    position: absolute; left: 0; bottom: 64px;
    width: min(320px, calc(100vw - 32px));
    padding: 14px;
    border: 1px solid var(--line); border-radius: 16px;
    background: var(--surface); color: var(--ink);
    box-shadow: var(--shadow-lg);
}
.a11y-panel[hidden] { display: none; }
.a11y-panel header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.a11y-close { border: 0; background: transparent; color: var(--ink); font-size: 1.1rem; cursor: pointer; padding: 6px 8px; border-radius: 8px; }
.a11y-size { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0 12px; font-weight: 650; font-size: .92rem; }
.a11y-size > div { display: flex; align-items: center; gap: 6px; }
.a11y-size button {
    min-width: 44px; min-height: 40px; border-radius: 10px; cursor: pointer;
    border: 1px solid var(--line); background: var(--surface-soft, #eef8f6); color: var(--ink); font-weight: 800;
}
.a11y-size button:disabled { opacity: .4; cursor: not-allowed; }
.a11y-size-val { min-width: 46px; text-align: center; font-weight: 800; }
.a11y-opts { display: grid; gap: 6px; }
.a11y-opts button, .a11y-reset {
    width: 100%; min-height: 42px; padding: 0 12px; text-align: left; cursor: pointer;
    border: 1px solid var(--line); border-radius: 10px;
    background: var(--surface); color: var(--ink); font: inherit; font-weight: 650; font-size: .92rem;
    transition: background 140ms ease, border-color 140ms ease;
}
.a11y-opts button:hover, .a11y-reset:hover { border-color: var(--primary); }
.a11y-opts button[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: #fff; }
.a11y-opts button[aria-pressed="true"]::after { content: "  ✓"; font-weight: 900; }
.a11y-reset { margin-top: 10px; text-align: center; background: transparent; }

/* Tamanho do texto (zoom preserva o layout proporcional) */
html[data-a11y-size="1"] body { zoom: 1.1; }
html[data-a11y-size="2"] body { zoom: 1.2; }
html[data-a11y-size="3"] body { zoom: 1.35; }
html[data-a11y-size="4"] body { zoom: 1.5; }
html[data-a11y-size="1"] .a11y-widget, html[data-a11y-size="2"] .a11y-widget,
html[data-a11y-size="3"] .a11y-widget, html[data-a11y-size="4"] .a11y-widget { zoom: 1; }

/* Links destacados */
html.a11y-links a:not(.button):not(.nf-btn):not(.nav-cta):not(.nf-card):not(.brand) {
    text-decoration: underline !important; text-underline-offset: 3px; text-decoration-thickness: 2px;
}

/* Fonte legível + espaçamento */
html.a11y-readable body, html.a11y-readable input, html.a11y-readable button, html.a11y-readable select, html.a11y-readable textarea {
    font-family: Verdana, "Atkinson Hyperlegible", Tahoma, Arial, sans-serif !important;
}
html.a11y-spacing body { line-height: 1.9 !important; letter-spacing: .04em; word-spacing: .12em; }
html.a11y-spacing p, html.a11y-spacing li { line-height: 1.9 !important; }

/* Reduzir animações */
html.a11y-motion *, html.a11y-motion *::before, html.a11y-motion *::after {
    animation: none !important; transition: none !important; scroll-behavior: auto !important;
}

/* Alto contraste (fundo preto, texto branco, destaque amarelo) */
html.a11y-contrast, html.a11y-contrast[data-theme="light"], html.a11y-contrast[data-theme="dark"] {
    --bg: #000; --surface: #000; --surface-raised: #0a0a0a; --surface-soft: #111; --surface-glass: rgba(0, 0, 0, .96);
    --ink: #fff; --muted: #f0f0f0; --line: #fff; --nav-text: #fff;
    --primary: #ffd400; --primary-dark: #ffe760; --coral: #ff9a8a; --gold: #ffd400; --violet: #d0c8ff; --blue: #9cc4ff;
    --hero-ink: #fff; --hero-muted: #fff;
    color-scheme: dark;
}
html.a11y-contrast body { background: #000 !important; color: #fff !important; }
html.a11y-contrast a { color: #ffd400; }
html.a11y-contrast .button.primary, html.a11y-contrast .nav-cta, html.a11y-contrast .nf-btn-play,
html.a11y-contrast .topbar-search button { background: #ffd400 !important; color: #000 !important; box-shadow: none !important; }
html.a11y-contrast .nf-hero { color: #fff; background: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, .88) 55%, rgba(0, 0, 0, .5) 100%), var(--hero-img) center / cover no-repeat !important; }
html.a11y-contrast .nf-hero h1, html.a11y-contrast .nf-hero-title { color: #fff !important; -webkit-text-fill-color: #fff !important; text-shadow: none !important; }
html.a11y-contrast .nf-hero p, html.a11y-contrast .nf-hero-meta { color: #fff !important; }
html.a11y-contrast .home-hero h1 { -webkit-text-fill-color: #fff; color: #fff; background: none; }
html.a11y-contrast .nf-btn-info { background: #000 !important; color: #fff !important; border: 2px solid #fff !important; }
html.a11y-contrast .nf-card, html.a11y-contrast .track-card, html.a11y-contrast .topbar, html.a11y-contrast .a11y-panel { border: 2px solid #fff !important; }
html.a11y-contrast .nf-chip.active, html.a11y-contrast .nf-dot-btn.active span { background: #ffd400 !important; color: #000 !important; }
html.a11y-contrast .nav > a.is-active { background: #ffd400; color: #000; }
html.a11y-contrast .a11y-opts button[aria-pressed="true"] { background: #ffd400; color: #000; }
html.a11y-contrast .a11y-fab { background: #ffd400; color: #000; border-color: #000; }
html.a11y-contrast *:focus-visible { outline: 3px solid #ffd400 !important; outline-offset: 3px; }
/* Correções de contraste (auditoria axe-core, WCAG 2.1 AA) */
.sr-only {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
:root {
    --primary: #0a7a6e;       /* teal da marca, levemente mais escuro: texto branco e links passam em 4.5:1 */
    --primary-dark: #065f56;
    --muted: #566377;
    --grad-brand: linear-gradient(135deg, #0a7a6e 0%, #2a62c9 55%, #5b50c4 100%);
}
html[data-theme="dark"] { --muted: #aeb8c7; }
.footer-legal-line { color: var(--muted) !important; }
.nf-hero-tag { color: #fff; background: color-mix(in srgb, var(--accent) 55%, #000); }
.nf-level { color: var(--ink); font-weight: 750; }
.nav > a.is-active { color: var(--primary-dark); }
html:not([data-theme="dark"]) .nav > a.is-active { background: color-mix(in srgb, var(--primary) 16%, #fff); }
.auth-badge, .pvg-step-tag, .eyebrow { color: var(--primary-dark); }
html[data-theme="dark"] .auth-badge, html[data-theme="dark"] .pvg-step-tag, html[data-theme="dark"] .eyebrow { color: var(--primary); }
.forgot-link { color: var(--primary-dark); text-decoration: underline; }
/* Correções de contraste, rodada 2 */
.footer-legal-line { opacity: 1 !important; }
html:not([data-theme="dark"]) .nf-btn-play { background: #076359; color: #fff; }
html:not([data-theme="dark"]) .nf-btn-play:hover { background: #054a43; }
.nf-play { color: var(--primary-dark); }
html[data-theme="dark"] .nf-play { color: var(--primary); }
html[data-theme="dark"] .faq-tab-btn.active { color: #04201d; font-weight: 800; }
.status.corporate, .pill.corporate, span.corporate, small.corporate { color: #4a3fb0; }
html[data-theme="dark"] .status.corporate, html[data-theme="dark"] .pill.corporate,
html[data-theme="dark"] span.corporate, html[data-theme="dark"] small.corporate { color: #c4bcff; }
/* Mantém a barra de acessibilidade com tamanho constante quando o texto da página é ampliado */
html[data-a11y-size="1"] .a11y-widget { zoom: .9091; }
html[data-a11y-size="2"] .a11y-widget { zoom: .8333; }
html[data-a11y-size="3"] .a11y-widget { zoom: .7407; }
html[data-a11y-size="4"] .a11y-widget { zoom: .6667; }
html.a11y-contrast:not([data-theme="dark"]) .nav > a.is-active, html.a11y-contrast .nav > a.is-active { background: #ffd400 !important; color: #000 !important; }
html.a11y-contrast .brand-logo-wrap { background: #fff !important; border-radius: 10px; }
.type-tag.corporate { color: #4a3fb0; }
html[data-theme="dark"] .type-tag.corporate { color: #c4bcff; }
html.a11y-contrast button.active, html.a11y-contrast .faq-tab-btn.active { color: #000 !important; }
html[data-theme="dark"] .superadmin-notice strong, html.a11y-contrast .superadmin-notice strong { color: #ffc266; }
.b2b-form-header h2 { margin: 0 0 8px; font-size: inherit; }
html.a11y-contrast .type-tag.corporate { color: #c4bcff; }
.b2b-form-header h2 { margin: 4px 0 6px; font-size: 1.3rem; }

/* Responsividade e contraste adicionais */
.b2b-hero-grid > *, .b2b-hero-content, .b2b-hero-highlights { min-width: 0; max-width: 100%; }
.b2b-hero-highlights { flex-wrap: wrap; }
html[data-theme="dark"] .upsell-ladder-section .eyebrow { color: #5eead4; }
/* Responsividade .b2b-hero-highlights */
.b2b-hero-highlights { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.b2b-hero-highlights > div { min-width: 0; max-width: 100%; flex-wrap: wrap; overflow-wrap: anywhere; }
@media (max-width: 720px) {
    .b2b-hero-highlights { grid-template-columns: minmax(0, 1fr); }
}

/* ============================================================================
   FUNIL ACE (ATRAIR, CONVERTER, ESCALAR) & CONSENTIMENTO LGPD
   ============================================================================ */
.persona-routing-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin: 24px auto 0;
}

.persona-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 18px 20px;
    border-radius: var(--radius, 14px);
    background: var(--surface, #ffffff);
    border: 1px solid var(--line, #e2e8f0);
    color: var(--ink, #0f172a);
    text-decoration: none;
    transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.persona-card:hover {
    transform: translateY(-2px);
    border-color: var(--primary, #0a7a6e);
    box-shadow: var(--shadow, 0 12px 28px rgba(15, 23, 42, 0.08));
}

.persona-card.is-highlight {
    border-color: var(--primary, #0a7a6e);
    background: linear-gradient(135deg, rgba(10, 122, 110, 0.08), var(--surface, #ffffff) 65%);
}

.persona-tag {
    display: inline-block;
    width: fit-content;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    background: var(--surface-soft, #f1f5f9);
    color: var(--primary-dark, #065f56);
    border: 1px solid var(--line, #e2e8f0);
}

.persona-card p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--muted, #475569);
    line-height: 1.45;
    flex: 1;
}

.persona-cta {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--primary, #0a7a6e);
    margin-top: 4px;
}

.free-ai-hero {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin: 22px auto 0;
    padding: 24px 26px;
    border-radius: var(--radius, 16px);
    background: linear-gradient(135deg, rgba(10, 122, 110, 0.12), rgba(15, 118, 110, 0.04));
    border: 1px solid rgba(10, 122, 110, 0.28);
}

.free-ai-hero-copy {
    flex: 1 1 520px;
}

.free-ai-hero-copy h2 {
    margin: 6px 0 8px;
}

.free-ai-hero-copy p {
    margin: 0 0 12px;
    color: var(--muted, #475569);
    max-width: 720px;
}

.free-ai-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--ink, #0f172a);
}

.free-ai-hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.pricing-ladder-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 16px;
}

.pricing-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
    border-radius: var(--radius, 14px);
    background: var(--surface, #ffffff);
    border: 1px solid var(--line, #e2e8f0);
}

.pricing-card.is-featured {
    border: 2px solid var(--primary, #0a7a6e);
    box-shadow: var(--shadow, 0 12px 28px rgba(15, 23, 42, 0.08));
}

.pricing-card h3 {
    margin: 0;
}

.pricing-value {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-dark, #065f56);
}

.pricing-value small {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--muted, #64748b);
}

.pricing-desc {
    margin: 0;
    font-size: 0.9rem;
    color: var(--muted, #475569);
}

.pricing-list {
    margin: 0 0 8px;
    padding-left: 18px;
    font-size: 0.86rem;
    color: var(--ink, #0f172a);
    flex: 1;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.testimonial-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
    border-radius: var(--radius, 14px);
    background: var(--surface, #ffffff);
    border: 1px solid var(--line, #e2e8f0);
}

.testimonial-card blockquote {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--ink, #0f172a);
    flex: 1;
}

.testimonial-author strong {
    display: block;
    font-size: 0.92rem;
}

.testimonial-author small {
    color: var(--muted, #64748b);
    font-size: 0.82rem;
}

/* Landing da Trilha Gratuita de IA */
.free-track-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.95fr);
    gap: 28px;
    align-items: start;
    padding: 26px;
    border-radius: var(--radius, 16px);
    background: var(--surface, #ffffff);
    border: 1px solid var(--line, #e2e8f0);
    margin-bottom: 28px;
}

.free-track-form-card {
    padding: 22px;
    border-radius: var(--radius, 14px);
    background: var(--surface-soft, #f8fafc);
    border: 1px solid var(--line, #e2e8f0);
}

.free-track-compare-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--surface, #ffffff);
    border: 1px solid var(--line, #e2e8f0);
    border-radius: 12px;
    overflow: hidden;
}

.free-track-compare-table th,
.free-track-compare-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--line, #e2e8f0);
    text-align: left;
    font-size: 0.92rem;
}

.free-track-compare-table th {
    background: var(--surface-soft, #f8fafc);
}

/* Banner granular de cookies LGPD */
.cde-cookie-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 9990;
    max-width: 960px;
    margin: 0 auto;
    padding: 18px 20px;
    border-radius: 14px;
    background: var(--surface, #ffffff);
    color: var(--ink, #0f172a);
    border: 1px solid var(--line, #cbd5e1);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.18);
}

.cde-cookie-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
}

.cde-cookie-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cde-cookie-settings {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--line, #e2e8f0);
    display: grid;
    gap: 8px;
}

.b2b-demo-slots {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 8px;
    margin: 12px 0;
}

.demo-slot-chip {
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--line, #cbd5e1);
    background: var(--surface, #ffffff);
    color: var(--ink, #0f172a);
    font-weight: 600;
    font-size: 0.86rem;
    cursor: pointer;
    text-align: center;
}

.demo-slot-chip.is-selected,
.demo-slot-chip:hover {
    border-color: var(--primary, #0a7a6e);
    background: rgba(10, 122, 110, 0.1);
}

@media (max-width: 900px) {
    .free-track-hero {
        grid-template-columns: 1fr;
    }
}

/* Garante visibilidade correta do painel granular de preferências de cookies */
#cde-cookie-prefs-panel[hidden] {
    display: none !important;
}
#cde-cookie-prefs-panel:not([hidden]) {
    display: flex !important;
    flex-wrap: wrap;
    gap: 10px 14px;
    align-items: center;
}

/* Layout da Landing Trilha Gratuita de IA e grades 3 colunas */
.free-ai-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.95fr);
    gap: 28px;
    align-items: start;
    width: 100%;
}

.free-ai-trust-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-top: 18px;
}

.free-ai-trust-pills span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--surface, #ffffff);
    border: 1px solid var(--line, #cbd5e1);
    font-size: 0.84rem;
    font-weight: 600;
}

.grid.three {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}

.step-card {
    padding: 20px;
    border-radius: var(--radius, 14px);
    background: var(--surface, #ffffff);
    border: 1px solid var(--line, #e2e8f0);
}

.step-card > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--primary, #0a7a6e);
    color: #fff;
    font-weight: 800;
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.step-card h3 {
    margin: 0 0 6px;
}

.step-card p {
    margin: 0;
    color: var(--muted, #475569);
    font-size: 0.92rem;
}

.stack-form {
    display: grid;
    gap: 10px;
}

.checkline {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.84rem;
    font-weight: 500;
    min-height: 24px;
    cursor: pointer;
}

.legal-consents {
    display: grid;
    gap: 10px;
}

.checkline input[type="checkbox"],
.b2b-lead-form .checkline input[type="checkbox"],
#lead-form input[type="checkbox"] {
    width: 24px;
    height: 24px;
    min-width: 24px;
    min-height: 24px;
    margin: 0;
    flex-shrink: 0;
    accent-color: var(--primary, #0a7a6e);
    cursor: pointer;
}

.b2b-lead-form label.checkline {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 0;
    min-height: 24px;
    cursor: pointer;
}

/* Acessibilidade WCAG 2.1/2.2 AA: contraste para selos/etapas e sublinhado em links de texto */
.badge-primary {
    background: var(--primary, #0a7a6e);
    color: #fff;
}

html[data-theme="dark"] .step-card > span,
html[data-theme="dark"] .badge-primary {
    color: #04201d;
    font-weight: 800;
}

html.a11y-contrast .step-card > span,
html.a11y-contrast .badge-primary {
    background: #ffd400 !important;
    color: #000 !important;
}

html.a11y-contrast p a,
html.a11y-contrast small a,
html.a11y-contrast li a,
html.a11y-contrast .checkline a,
html.a11y-contrast label a {
    text-decoration: underline !important;
    text-underline-offset: 2px;
}

.opportunity-report-btn {
    background: none;
    border: none;
    color: #b91c1c;
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: underline;
    margin-top: 0.25rem;
    padding: 4px 2px;
}

html[data-theme="dark"] .opportunity-report-btn {
    color: #fca5a5;
}

html.a11y-contrast .opportunity-report-btn {
    color: #ffd400 !important;
}

@media (max-width: 900px) {
    .free-ai-hero-grid {
        grid-template-columns: 1fr;
    }
}
