/* Canonical interface palette. Shared verbatim with the domain gateway.
   Never recolor teaching images, canvases, diagrams or printable records. */
@media screen {
  :root, html[data-theme="light"] {
    color-scheme: light;
    --eco-bg: #faf7f2; --eco-panel: #fffcf9; --eco-ink: #28121a;
    --eco-muted: #695e5b; --eco-line: #dfd4c9; --eco-input: #927668;
    --eco-accent: #841638; --eco-primary: #841638; --eco-primary-hover: #68102c;
    --eco-on-primary: #ffffff; --eco-soft: #f3ebe1; --eco-gold: #895c25;
    --eco-violet: #841638; --eco-focus: #841638; --eco-brand: #071a32;
    --eco-success: #216441; --eco-success-bg: #e9f3e9;
    --eco-danger: #a42338; --eco-danger-bg: #fff0f1;
    --eco-shadow: 0 8px 30px #42271908;
    --eco-art-glow: radial-gradient(ellipse at 52% 56%, #f1dfc3 0%, #f5ede3 48%, transparent 72%);
  }
  html[data-theme="dark"] {
    color-scheme: dark;
    --eco-bg: #0a1223; --eco-panel: #131e33; --eco-ink: #f4f6ff;
    --eco-muted: #b8c4e0; --eco-line: #34435f; --eco-input: #7383a4;
    --eco-accent: #b4c2ff; --eco-primary: #2455e8; --eco-primary-hover: #1742c6;
    --eco-on-primary: #ffffff; --eco-soft: #1d2b48; --eco-gold: #edca84;
    --eco-violet: #c7b6ff; --eco-focus: #b4c2ff; --eco-brand: #f4f6ff;
    --eco-success: #9be3b9; --eco-success-bg: #123b2c;
    --eco-danger: #ffb4bf; --eco-danger-bg: #411e2a;
    --eco-shadow: 0 8px 30px #00000018;
    --eco-art-glow: radial-gradient(ellipse at 52% 56%, #19397a 0%, #102141 48%, transparent 73%);
  }
  html[data-theme] {
    --background: var(--eco-bg); --foreground: var(--eco-ink);
    --card: var(--eco-panel); --card-foreground: var(--eco-ink);
    --popover: var(--eco-panel); --popover-foreground: var(--eco-ink);
    --primary: var(--eco-primary); --primary-foreground: var(--eco-on-primary);
    --secondary: var(--eco-soft); --secondary-foreground: var(--eco-ink);
    --muted: var(--eco-soft); --muted-foreground: var(--eco-muted);
    --accent: var(--eco-soft); --accent-foreground: var(--eco-accent);
    --destructive: var(--eco-danger); --border: var(--eco-line);
    --input: var(--eco-input); --ring: var(--eco-focus);
    --sidebar: var(--eco-panel); --sidebar-foreground: var(--eco-ink);
    --sidebar-primary: var(--eco-primary); --sidebar-primary-foreground: var(--eco-on-primary);
    --sidebar-accent: var(--eco-soft); --sidebar-accent-foreground: var(--eco-accent);
    --sidebar-border: var(--eco-line); --sidebar-ring: var(--eco-focus);
    --su-page: var(--eco-bg); --su-panel: var(--eco-panel); --su-panel-soft: var(--eco-soft);
    --su-glass: var(--eco-panel); --su-ink: var(--eco-ink); --su-muted: var(--eco-muted);
    --su-line: var(--eco-line); --su-link: var(--eco-accent); --su-focus: var(--eco-focus); --su-shadow: var(--eco-shadow);
  }
  html[data-theme] body { background: var(--eco-bg); color: var(--eco-ink); }
  html[data-theme] :is(.eco-public-header,.eco-sidebar,.eco-public-footer) .superava-brand-name,
  html[data-theme] :is(.eco-public-header,.eco-sidebar,.eco-public-footer) .superava-brand-name span { color: var(--eco-brand) !important; }
  .eco-public-header { padding-block: 14px; }
  .eco-public-header .superava-brand-name { font-size: 28px; }
  .eco-public-links a:hover, .eco-public-links a:focus-visible { color: var(--eco-accent); background: var(--eco-soft); border-radius: 10px; }
  .eco-button, .eco-tabs a[aria-current="page"], html[data-theme] .fic-exterior .fic-primary { background: var(--eco-primary); border-color: var(--eco-primary); color: var(--eco-on-primary); }
  .eco-button:hover { background: var(--eco-primary-hover); }
  .eco-secondary { border-color: var(--eco-input); }
  .eco-secondary:hover { background: var(--eco-soft); }
  .eco-eyebrow, .eco-card-meta { color: var(--eco-gold) !important; }
  html[data-theme="dark"] :is(.eco-eyebrow,.eco-card-meta) { color: var(--eco-accent) !important; }
  .eco-page p, .eco-area-description { line-height: 1.65; }
  .eco-page-heading h1 span { color: var(--eco-accent); }
  .eco-page { width: 100%; }
  .eco-hero { grid-template-columns: minmax(0,1.1fr) minmax(0,1fr); grid-template-areas: "copy art" "actions art"; column-gap: 24px; row-gap: 0; padding: 44px 32px 28px; }
  .eco-hero-copy { grid-area: copy; align-self: end; min-width: 0; }
  .eco-hero h1 { font-size: clamp(38px,4.6vw,64px); font-weight: 800; line-height: 1.08; letter-spacing: -.045em; }
  .eco-hero .eco-eyebrow { font-size: 13px; letter-spacing: .16em; margin: 0 0 20px; line-height: 1.6; }
  .eco-hero p { margin: 20px 0 0; line-height: 1.6; }
  .eco-hero-actions { grid-area: actions; align-self: start; margin: 28px 0 24px; }
  .eco-hero-actions a { min-height: 56px; font-size: 16px; }
  .eco-hero-art { grid-area: art; display: block; background: var(--eco-art-glow); overflow: visible; border-radius: 42% 35% 36% 38%; }
  .eco-hero-art img { max-height: 470px; width: 100%; object-fit: contain; }
  .eco-home-band { border: 0; border-radius: 18px; background: var(--eco-soft); padding: 16px 24px; margin-top: 0; align-items: center; justify-content: space-between; gap: 16px; }
  .eco-home-band :is(span,a) { display: flex; align-items: center; gap: 14px; min-height: 40px; }
  .eco-home-band svg { color: var(--eco-gold); width: 26px; height: 26px; flex: none; }
  .eco-areas-grid { gap: 16px; }
  .eco-area-card { display: grid; grid-template-columns: 64px minmax(0,1fr) 22px; gap: 18px; align-items: start; min-height: 172px; padding: 24px 20px; box-shadow: var(--eco-shadow); }
  .eco-area-card:hover { background: var(--eco-soft); }
  .eco-area-icon { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 17px; background: var(--eco-soft); color: var(--eco-accent); }
  .eco-area-icon svg { width: 34px; height: 34px; }
  .eco-area-card[data-area="trilhas"] .eco-area-icon, .eco-area-card[data-area="enem"] .eco-area-icon { color: var(--eco-gold); }
  .eco-area-copy { min-width: 0; display: block; }
  .eco-area-card :is(h2,h3) { font-size: 20px; line-height: 1.3; margin: 7px 0; letter-spacing: -.02em; overflow-wrap: break-word; }
  .eco-area-description { display: block; font-size: 14px; color: var(--eco-muted); }
  .eco-area-arrow { align-self: center; color: var(--eco-accent); }
  .eco-free-badge { display: inline-flex; width: max-content; margin-top: 10px; padding: 3px 10px; border-radius: 999px; background: var(--eco-soft); color: var(--eco-accent); font-size: 12px; line-height: 1.5; font-weight: 700; }
  html[data-theme="dark"] .eco-free-badge { background: var(--eco-success-bg); color: var(--eco-success); }
  html[data-theme="dark"] .eco-area-icon { background: #bcc7ff; color: #112245; }
  html[data-theme="dark"] .eco-area-card[data-area="disciplinas"] .eco-area-icon,
  html[data-theme="dark"] .eco-area-card[data-area="laboratorios"] .eco-area-icon { background: #2455e8; color: #fff; }
  html[data-theme="dark"] .eco-area-card[data-area="enem"] .eco-area-icon { background: #f1c96f; color: #112245; }
  html[data-theme="dark"] .eco-area-card[data-area="trilhas"] .eco-area-icon,
  html[data-theme="dark"] .eco-area-card[data-area="jornais"] .eco-area-icon { background: #8ce4d0; color: #112245; }
  html[data-theme="dark"] .eco-area-card[data-area="audios"] .eco-area-icon { background: #90dbef; color: #112245; }
  .eco-discovery-top { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(300px,1fr); align-items: center; gap: 32px; }
  .eco-discovery-top .eco-page-heading { margin-bottom: 0; }
  .eco-discovery-top h1 { font-size: clamp(30px,3.6vw,46px); }
  .eco-discovery-search { border: 1px solid var(--eco-input); border-radius: 14px; background: var(--eco-panel); padding: 4px 4px 4px 14px; gap: 4px; }
  .eco-discovery-search > svg { flex: none; color: var(--eco-muted); }
  .eco-discovery-search input[type="search"] { border: 0; background: transparent; padding-inline: 10px; width: 100%; }
  .eco-discovery-search:focus-within { outline: 3px solid var(--eco-focus); outline-offset: 3px; }
  .eco-discovery-search input:focus-visible { outline: none; }
  .eco-discovery-search .eco-button { padding-inline: 14px; }
  .eco-search input::placeholder, .eco-header-search input::placeholder { color: var(--eco-muted); opacity: 1; }
  .eco-search:not(.eco-discovery-search) :is(input,select), .eco-search-form select { border-color: var(--eco-input); }
  .eco-theme-menu { position: relative; flex: none; }
  .eco-theme-menu > summary { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; cursor: pointer; color: var(--eco-ink); list-style: none; }
  .eco-theme-menu > summary::-webkit-details-marker { display: none; }
  .eco-theme-menu > summary:hover, .eco-theme-menu[open] > summary { background: var(--eco-soft); }
  .eco-theme-menu .eco-theme-moon { display: none; }
  html[data-theme="dark"] .eco-theme-menu .eco-theme-sun { display: none; }
  html[data-theme="dark"] .eco-theme-menu .eco-theme-moon { display: block; }
  .eco-theme-popover { position: absolute; z-index: 80; top: calc(100% + 8px); right: 0; width: min(300px,calc(100vw - 32px)); padding: 16px; border: 1px solid var(--eco-input); border-radius: 16px; background: var(--eco-panel); color: var(--eco-ink); box-shadow: 0 14px 36px #0002; }
  .eco-theme-popover > strong { font-size: 15px; }
  .eco-theme-popover > p { margin: 8px 0 0; font-size: 13px; line-height: 1.5; color: var(--eco-muted); }
  html[data-theme] .superava-theme-controls.superava-theme-controls-menu { border-color: var(--eco-input); }
  html[data-theme] .superava-theme-controls-menu button { font-size: 12px; font-weight: 650; width: auto; }
  html[data-theme] .superava-theme-controls-menu button[aria-pressed="true"] { background: var(--eco-primary); color: var(--eco-on-primary); box-shadow: none; }
  html[data-theme] .superava-theme-controls button:focus-visible { outline-color: var(--eco-focus); }
  .eco-workspace-header { position: relative; z-index: 46; }
  .eco-header-context { flex: 1; }
  .eco-workspace :is(input,textarea,select) { accent-color: var(--eco-primary); }

  /* Bind existing learning shells to the same tokens, retaining their layouts. */
  html[data-theme] .discipline-simple-shell { --ds-bg: var(--eco-bg); --ds-panel: var(--eco-panel); --ds-ink: var(--eco-ink); --ds-muted: var(--eco-muted); --ds-line: var(--eco-input); --ds-accent: var(--eco-accent); }
  html[data-theme] :is(.presencial-theme,body:has(.presencial-theme) [data-slot$="content"]) {
    --pc-bg: var(--eco-bg); --pc-panel: var(--eco-panel); --pc-raised: var(--eco-soft); --pc-ink: var(--eco-ink); --pc-muted: var(--eco-muted); --pc-line: var(--eco-line); --pc-cyan: var(--eco-accent); --pc-coral: var(--eco-accent);
    --background: var(--eco-bg); --foreground: var(--eco-ink); --card: var(--eco-panel); --card-foreground: var(--eco-ink); --popover: var(--eco-panel); --popover-foreground: var(--eco-ink); --primary: var(--eco-primary); --primary-foreground: var(--eco-on-primary); --muted: var(--eco-soft); --muted-foreground: var(--eco-muted); --accent: var(--eco-soft); --accent-foreground: var(--eco-accent); --secondary: var(--eco-soft); --secondary-foreground: var(--eco-ink); --border: var(--eco-line); --input: var(--eco-input); --ring: var(--eco-focus);
  }
  html[data-theme] .fic-study-theme { --fic-accent: var(--eco-accent); --fic-accent-strong: var(--eco-accent); --fic-bg: var(--eco-bg); --fic-surface: var(--eco-panel); --fic-soft: var(--eco-soft); --fic-track: var(--eco-line); --fic-line: var(--eco-line); --fic-ink: var(--eco-ink); --fic-muted: var(--eco-muted); }
  html[data-theme] .fic-study-theme :is(.fic-premium-hero,.fic-sidebar,.fic-native-sidebar) { background: var(--eco-panel) !important; border-color: var(--eco-line) !important; color: var(--eco-ink) !important; }
  html[data-theme] .fic-study-theme .fic-premium-hero :is(h1,h2) { color: var(--eco-ink) !important; }
  html[data-theme] .fic-study-theme .fic-premium-hero :is(p,.fic-premium-meta,.fic-premium-eyebrow) { color: var(--eco-muted); }
  html[data-theme] .fic-study-theme :is(.fic-premium-primary,.course-button:not(.secondary):not(.course-button-secondary),.fic-story-confirm) { background: var(--eco-primary) !important; color: var(--eco-on-primary) !important; border-color: var(--eco-primary) !important; }
  html[data-theme] .fic-study-theme .fic-premium-quiet { color: var(--eco-ink) !important; background: var(--eco-soft) !important; border-color: var(--eco-input) !important; }
  html[data-theme] .pe-root { --pe-ink: var(--eco-ink); --pe-muted: var(--eco-muted); --pe-blue: var(--eco-accent); --pe-line: var(--eco-line); color: var(--eco-ink); background: var(--eco-bg); color-scheme: inherit; font-family: inherit; }
  html[data-theme] .pe-root :is(.pe-hero,.pe-card,.pe-panel,.pe-stat-strip,.pe-subject-tile) { background: var(--eco-panel); color: var(--eco-ink); border-color: var(--eco-line); }
  html[data-theme] .pe-root :is(.pe-hero p,.pe-subject-tile p) { color: var(--eco-muted); }
  html[data-theme] .pe-root :is(.pe-pill,.pe-wiki) { background: var(--eco-soft); color: var(--eco-accent); }
  html[data-theme] :is(.pe-button:not(.pe-outline),.course-button:not(.secondary):not(.course-button-secondary)) { background: var(--eco-primary); color: var(--eco-on-primary); }
  html[data-theme] .pe-root :is(.pe-outline,.pe-text-link) { color: var(--eco-accent); border-color: var(--eco-input); }
  html[data-theme] .pe-root .pe-outline { background: var(--eco-panel); }
  html[data-theme] :is(.hub-cinematic .hub-hero,.hub-enem .hub-enem-hero,.pe-root .hub-subject-hero) { background-color: var(--eco-panel); color: var(--eco-ink); }
  html[data-theme] :is(.hub-cinematic .hub-hero,.hub-enem .hub-enem-hero,.pe-root .hub-subject-hero)::before { background: linear-gradient(90deg,var(--eco-panel) 0%,color-mix(in srgb,var(--eco-panel),transparent 8%) 40%,color-mix(in srgb,var(--eco-panel),transparent 30%) 100%); }
  html[data-theme] :is(.hub-cinematic .hub-hero h1,.hub-enem .hub-enem-hero h1,.pe-root .hub-subject-hero h1) { color: var(--eco-ink); }
  html[data-theme] :is(.hub-cinematic .hub-hero p,.hub-enem .hub-enem-hero p,.pe-root .hub-subject-hero p,.hub-section-heading>span) { color: var(--eco-muted); }
  html[data-theme] :is(.hub-section-heading>p,.hub-cinematic .hub-hero .text-cyan-300,.hub-cinematic .hub-hero .text-cyan-100,.pe-root .hub-subject-hero .pe-eyebrow) { color: var(--eco-accent); }
  html[data-theme] :is(.hub-cinematic .hub-hero-content>div:last-child:not(:first-child),.hub-cinematic .hub-hero-note,.trails-hero) { background: var(--eco-soft); color: var(--eco-ink); }
  html[data-theme] .hub-cinematic .hub-hero-content>div:last-child p.text-3xl { color: var(--eco-ink); }
  html[data-theme] :is(.trails-manager button,.trails-manager a,.trails-public a,.hub-enem .pe-button) { background: var(--eco-primary); border-color: var(--eco-primary); color: var(--eco-on-primary); }
  html[data-theme] :is(.trails-badge,.fic-pills>span,.fic-art-badge,.fic-filter-toggle[aria-expanded="true"]) { background: var(--eco-soft); color: var(--eco-accent); }
  html[data-theme] .fic-exterior { --fic-muted: var(--eco-muted); }
  html[data-theme] :is(.fic-filter-toggle,.fic-filters label,.fic-filters select) { color: var(--eco-ink); background: var(--eco-panel); border-color: var(--eco-input); }
  html[data-theme] :is(.fic-results button,.fic-filters svg,.fic-filter-toggle svg,.fic-art-badge svg) { color: var(--eco-accent); }
  html[data-theme] .fic-course-subtitle { color: var(--eco-muted); }
  html[data-theme] :is(.hub-lab-card,.hub-edition,.library-book-card,.eco-catalog-controls) { background: var(--eco-panel); border-color: var(--eco-line); }
  html[data-theme] :is(.hub-lab-copy,.eco-catalog-copy) :is(h2,h3,label) { color: var(--eco-ink); }
  html[data-theme] :is(.hub-lab-copy,.eco-catalog-copy) p { color: var(--eco-muted); }
  html[data-theme] .eco-catalog-controls :is(input,select) { background: var(--eco-panel); color: var(--eco-ink); border-color: var(--eco-input); }
  html[data-theme] .eco-catalog-controls :is(input,select)::placeholder { color: var(--eco-muted); opacity: 1; }
  html[data-theme] :is(.eco-catalog-primary,.hub-lab-copy>span:last-child) { background: var(--eco-primary) !important; color: var(--eco-on-primary) !important; border-color: var(--eco-primary); }
  html[data-theme] .eco-catalog-secondary { background: var(--eco-panel); color: var(--eco-accent); border-color: var(--eco-input); }
  html[data-theme] .eco-catalog-link { color: var(--eco-accent); }
  html[data-theme] .hub-edition .text-emerald-700 { color: var(--eco-success); }
  html[data-theme] .fic-pills .fic-certified { background: var(--eco-success-bg); color: var(--eco-success); }
  html[data-theme] .arena-themed-shell .arena-catalog { color: var(--eco-ink); }
  html[data-theme] .arena-themed-shell .arena-catalog>header :is(h1,p) { color: var(--eco-ink); }
  html[data-theme] .arena-themed-shell .arena-catalog :is(.arena-cover-description,.arena-start-links>a,.arena-saved-lesson) { background: var(--eco-panel); color: var(--eco-ink); border-color: var(--eco-line); }
  html[data-theme] .arena-themed-shell .arena-catalog .arena-cover-description h2 { color: var(--eco-ink); }
  html[data-theme] .arena-themed-shell .arena-catalog :is(.arena-cover-description p,.arena-start-links small) { color: var(--eco-muted); }
  html[data-theme] .arena-themed-shell .arena-catalog .arena-cover-description>.arena-primary { background: var(--eco-primary) !important; color: var(--eco-on-primary) !important; border-color: var(--eco-primary) !important; box-shadow: none; }
  html[data-theme] :is(.sa-public-shell,.fic-exterior,.trails-public,.trails-manager,.course-layer,.sa-public,.sa-empty) { background: var(--eco-bg); color: var(--eco-ink); }
  html[data-theme] :is(.sa-copy h1,.sa-copy h1 span,.sa-empty h1,.trail-heading,.trail-featured h2) { color: var(--eco-ink); background: none; -webkit-text-fill-color: currentColor; }
  html[data-theme] :is(.sa-copy>p,.sa-note,.sa-features p,.sa-mobile-note p) { color: var(--eco-muted); }
  html[data-theme] :is(.sa-features article,.sa-mobile-note,.trail-benefits article,.trail-course-card,.trail-featured) { background: var(--eco-panel); color: var(--eco-ink); border-color: var(--eco-line); }
  html[data-theme] :is(.sa-access a,.sa-empty>a) { background: var(--eco-primary); color: var(--eco-on-primary); }
  html[data-theme] :is(.eco-public-page,.eco-workspace) [data-slot="tabs-trigger"] { min-height: 44px; }
  html[data-theme] :is(.eco-public-page,.eco-workspace) [data-slot="tabs-trigger"][data-state="active"] { color: var(--eco-accent); background: var(--eco-panel); }
  html[data-theme] :is(.eco-public-page,.eco-workspace) [data-slot="button"][data-variant="default"] { background: var(--eco-primary); color: var(--eco-on-primary); }
  /* Native profile, recovery and course screens use the same interface palette. */
  html[data-theme] :is(.presencial-account,.superava-native-account,.superava-privacy) { --navy: var(--eco-ink); --navy-2: var(--eco-ink); --blue: var(--eco-accent); --cyan: var(--eco-accent); --cyan-soft: var(--eco-soft); --red: var(--eco-primary); --red-dark: var(--eco-primary-hover); --ink: var(--eco-ink); --muted: var(--eco-muted); --paper: var(--eco-panel); --page: var(--eco-bg); --line: var(--eco-line); --success: var(--eco-success); --danger: var(--eco-danger); background: var(--eco-bg); color: var(--eco-ink); }
  html[data-theme] :is(.presencial-account,.superava-native-account) :is(.panel,.card,.card.tint,.hero,.result,.registration,.password-note) { background: var(--eco-panel); color: var(--eco-ink); border-color: var(--eco-line); }
  html[data-theme] :is(.presencial-account,.superava-native-account) :is(.input,.textarea,.input[readonly],.photo-label,.login-code,.button.secondary) { color: var(--eco-ink); background: var(--eco-panel); border-color: var(--eco-input); font-size: 16px; }
  html[data-theme] :is(.presencial-account,.superava-native-account) :is(.brand,.back,.footer,.footer a,.registration span) { color: var(--eco-ink); }
  html[data-theme] :is(.presencial-account,.superava-native-account) .button:not(.secondary) { background: var(--eco-primary); color: var(--eco-on-primary); }
  html[data-theme] :is(.presencial-account,.superava-native-account) .avatar { background: var(--eco-primary); color: var(--eco-on-primary); }
  html[data-theme] :is(.presencial-account,.superava-native-account) .status.success { background: var(--eco-success-bg); color: var(--eco-success); }
  html[data-theme] :is(.presencial-account,.superava-native-account) .status.error { background: var(--eco-danger-bg); color: var(--eco-danger); }
  html[data-theme] :is(.presencial-account,.superava-native-account) .status.info { background: var(--eco-soft); color: var(--eco-accent); }
  html[data-theme] .sava-native-preferences .superava-theme-controls button[aria-pressed="true"] { background: var(--eco-primary); color: var(--eco-on-primary); border-color: var(--eco-primary); }
  .sava-ecosystem-sidebar .eco-theme-menu { margin: 0 12px; }
  .sava-ecosystem-sidebar .eco-theme-popover { left: 0; right: auto; top: auto; bottom: calc(100% + 8px); width: 210px; }
  .sava-mobile-header .eco-theme-popover { right: 0; font-weight: 400; }
  @media (max-width: 1100px) { .eco-area-card { grid-template-columns: 56px minmax(0,1fr) 20px; gap: 14px; } .eco-area-icon { width: 56px; height: 56px; } .eco-discovery-top { grid-template-columns: 1fr; gap: 0; } .eco-discovery-search { max-width: 600px; } }
  @media (max-width: 1000px) { .eco-public-links { display: none; } .eco-public-menu { display: block; } }
  @media (max-width: 767px) {
    .eco-public-header { padding: max(10px,env(safe-area-inset-top)) 16px 10px; gap: 8px; }
    .eco-public-header .superava-brand-name { font-size: 23px; }
    .eco-public-header img { width: 36px; height: 36px; }
    .eco-public-actions { gap: 2px; }
    .eco-public-actions > .eco-button { padding-inline: 14px; }
    .eco-public-actions .eco-theme-popover { right: -110px; }
    .eco-workspace-header { position: sticky; z-index: 46; }
    .eco-workspace-header .eco-theme-popover { right: -88px; }
    .eco-header-context>span { max-width: calc(100vw - 210px); }
    .eco-hero { grid-template-columns: minmax(0,1fr); grid-template-areas: "copy" "art" "actions"; padding: 28px 20px 20px; gap: 0; }
    .eco-hero h1 { font-size: clamp(34px,8.8vw,52px); }
    .eco-hero .eco-eyebrow { margin-bottom: 16px; font-size: 11px; letter-spacing: .14em; }
    .eco-hero p { font-size: 17px; line-height: 1.55; margin-top: 16px; }
    .eco-hero-art { display: block; width: 100%; max-width: 430px; margin: 12px auto 0; }
    .eco-hero-art img { max-height: 340px; }
    .eco-hero-actions { display: grid; grid-template-columns: 1fr; margin: 8px 0 0; gap: 10px; }
    .eco-hero-actions a { width: 100%; min-height: 52px; }
    .eco-home-band { display: grid; padding: 14px 16px; margin: 0 20px; gap: 8px; font-size: 14px; }
    .eco-home-band :is(span,a) { gap: 12px; }
    .eco-home-band a { border-top: 1px solid var(--eco-line); padding-top: 12px; }
    .eco-section-title { align-items: center; gap: 12px; }
    .eco-section-title h2 { font-size: 25px; }
    .eco-section-title a { white-space: nowrap; }
    .eco-areas-grid { gap: 12px; }
    .eco-area-card { grid-template-columns: 52px minmax(0,1fr) 20px; align-items: center; min-height: 106px; padding: 18px 16px; gap: 14px; }
    .eco-area-icon { width: 52px; height: 56px; border-radius: 14px; }
    .eco-area-icon svg { width: 30px; height: 30px; }
    .eco-area-card :is(h2,h3) { font-size: 18px; margin: 0 0 5px; line-height: 1.3; }
    .eco-area-card .eco-card-meta { display: none; }
    .eco-area-description { font-size: 14px; line-height: 1.5; }
    .eco-discovery-search { flex-wrap: nowrap; width: 100%; }
    .eco-discovery-search input[type="search"] { flex: 1; flex-basis: auto; min-width: 0; }
    .eco-discovery-search .eco-button { font-size: 14px; padding-inline: 10px; }
    .eco-tabs { gap: 6px; }
    .eco-tabs a { font-size: 14px; }
    .eco-theme-menu > summary:focus-visible { outline: 3px solid var(--eco-focus); outline-offset: 2px; }
  }
  @media (max-width: 380px) {
    .eco-public-header .superava-brand-name { font-size: 19px; }
    .eco-public-header img { width: 30px; height: 30px; }
    .eco-public-header > a > span { gap: 6px; }
    .eco-public-actions > .eco-button { padding-inline: 10px; font-size: 14px; }
    .eco-area-card { grid-template-columns: 44px minmax(0,1fr) 18px; padding-inline: 12px; gap: 10px; }
    .eco-area-icon { width: 44px; height: 50px; }
    .eco-area-card :is(h2,h3) { font-size: 17px; }
    .eco-discovery-search > svg { width: 18px; }
    .eco-discovery-search input[type="search"] { padding-inline: 6px; }
  }
  @media (prefers-reduced-motion: reduce) { .eco-area-card, .eco-theme-menu, .eco-button { transition: none; animation: none; } }
  @media (forced-colors: active) { .eco-button, .eco-area-card, .eco-area-icon, .superava-theme-controls button[aria-pressed="true"] { border: 1px solid ButtonText; } }
}
@media print { .eco-theme-menu { display: none !important; } }

@media screen {
  :root, html[data-theme="light"] {
    --neon-edge: #b1225b; --neon-flare: #b27626; --neon-halo: #ac27551c;
    --neon-shadow: #55133217; --neon-inset: #ffffffd9;
    --neon-selection: #841638; --neon-selection-ink: #ffffff;
  }
  html[data-theme="dark"] {
    --neon-edge: #85a4ff; --neon-flare: #68ddef; --neon-halo: #7176ff25;
    --neon-shadow: #00000070; --neon-inset: #b4d4ff1a;
    --neon-selection: #b4c2ff; --neon-selection-ink: #0a1223;
  }
  ::selection { background: var(--neon-selection); color: var(--neon-selection-ink); }
  html[data-theme] :is(.eco-area-card,.fic-course-card,.hub-lab-card,.hub-edition,.library-book-card,.trail-course-card,.access-card,.arena-start-links>a) {
    position: relative; isolation: isolate;
    border-color: color-mix(in srgb,var(--eco-line) 60%,var(--neon-edge));
    background: linear-gradient(145deg,var(--eco-panel),var(--eco-panel) 65%,var(--eco-soft));
    box-shadow: inset 0 1px 0 var(--neon-inset), 0 7px 0 -4px var(--eco-line), 0 16px 30px -14px var(--neon-shadow), 0 0 22px var(--neon-halo);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
  }
  html[data-theme] :is(.eco-area-card,.fic-course-card,.hub-lab-card,.hub-edition,.library-book-card,.trail-course-card,.access-card,.arena-start-links>a):focus-within {
    border-color: var(--neon-edge); box-shadow: inset 0 1px 0 var(--neon-inset), 0 14px 32px -14px var(--neon-shadow), 0 0 0 2px var(--neon-halo), 0 0 28px var(--neon-halo);
  }
  html[data-theme] :is(.eco-area-card,.fic-course-card,.hub-lab-card,.hub-edition,.library-book-card,.trail-course-card,.access-card) :is(h2,h3) { color: var(--eco-ink); }
  html[data-theme] :is(.fic-course-description,.fic-course-subtitle,.access-card-description,.access-card-detail) { color: var(--eco-muted); }
  html[data-theme] :is(.eco-area-icon,.entry-area-icon) { box-shadow: inset 0 1px 0 var(--neon-inset), 0 5px 12px -7px var(--eco-accent), 0 0 20px var(--neon-halo); border: 1px solid color-mix(in srgb,var(--neon-edge) 24%,transparent); }
  html[data-theme] :is(.eco-button,.eco-catalog-primary,.fic-primary,.pe-button:not(.pe-outline)) { box-shadow: inset 0 1px 0 #ffffff30, 0 5px 13px -5px var(--neon-shadow), 0 0 18px var(--neon-halo); }
  html[data-theme] :is(.eco-tabs a[aria-current="page"],[data-slot="tabs-trigger"][data-state="active"],.superava-theme-controls button[aria-pressed="true"]) { box-shadow: inset 0 -3px 0 var(--neon-flare), 0 0 16px var(--neon-halo); }
  html[data-theme] :is(.eco-sidebar,.sava-ecosystem-sidebar) a[aria-current="page"] { border-color: var(--neon-edge); box-shadow: inset 3px 0 0 var(--neon-flare), 0 0 16px var(--neon-halo); }
  html[data-theme] :is(.eco-discovery-search,.eco-search input,.eco-search select,.eco-catalog-controls input,.eco-catalog-controls select):focus-within { border-color: var(--eco-focus); box-shadow: 0 0 0 3px var(--neon-halo), 0 0 22px var(--neon-halo); }
  html[data-theme] :is(.eco-hero,.eco-discovery-top) { background-image: radial-gradient(ellipse at 92% 10%,var(--neon-halo),transparent 62%); }
  html[data-theme] .eco-home-band { box-shadow: inset 0 1px 0 var(--neon-inset), 0 10px 26px -20px var(--neon-shadow); border: 1px solid var(--eco-line); }
  html[data-theme] :is(.study-transition,#superava-app-transition) {
    --study-ink: var(--eco-ink); --study-muted: var(--eco-muted); --study-accent: var(--eco-accent);
    background: radial-gradient(ellipse at 15% 25%,var(--neon-halo),transparent 55%),radial-gradient(ellipse at 85% 75%,var(--neon-halo),transparent 60%),var(--eco-bg);
  }
  html[data-theme] .study-transition-mark { background: var(--eco-panel); border-color: var(--neon-edge); box-shadow: 0 0 26px var(--neon-halo); }
  html[data-theme] .study-transition-track { background: var(--eco-line); }
  html[data-theme] .study-transition-track>span { background: linear-gradient(90deg,var(--eco-accent),var(--neon-flare)); }
  html[data-theme] .study-transition .sava-education-particle { color: var(--eco-accent); border-color: var(--neon-edge); background: var(--neon-halo); }
  html[data-theme] .study-transition .sava-education-particle--gold { color: var(--eco-gold); border-color: var(--eco-gold); }

  #sava-universal-appearance { position: fixed; z-index: 2147483647; right: max(12px,env(safe-area-inset-right)); bottom: calc(96px + env(safe-area-inset-bottom)); margin: 0; font: 500 14px/1.5 system-ui,sans-serif; color: var(--eco-ink); text-align: left; }
  #sava-universal-appearance > summary { display: flex; align-items: center; justify-content: center; gap: 6px; min-width: 44px; height: 46px; padding: 0 12px; border: 1px solid var(--neon-edge); border-radius: 16px; cursor: pointer; list-style: none; background: var(--eco-panel); color: var(--eco-ink); box-shadow: 0 6px 20px var(--neon-shadow),0 0 16px var(--neon-halo); }
  #sava-universal-appearance > summary::-webkit-details-marker { display: none; }
  #sava-universal-appearance > summary svg { width: 20px; height: 20px; flex: none; }
  #sava-universal-appearance .sava-light-moon { display: none; }
  html[data-theme="dark"] #sava-universal-appearance .sava-light-sun { display: none; }
  html[data-theme="dark"] #sava-universal-appearance .sava-light-moon { display: block; }
  #sava-universal-appearance .sava-light-panel { position: absolute; right: 0; bottom: calc(100% + 10px); width: min(292px,calc(100vw - 32px)); max-height: calc(100dvh - 170px); overflow: auto; box-sizing: border-box; padding: 16px; border: 1px solid var(--eco-input); border-radius: 18px; background: var(--eco-panel); color: var(--eco-ink); box-shadow: 0 16px 46px var(--neon-shadow),0 0 28px var(--neon-halo); }
  #sava-universal-appearance h2 { margin: 0 0 12px; color: var(--eco-ink); font: 750 17px/1.4 system-ui,sans-serif; letter-spacing: 0; }
  #sava-universal-appearance p { margin: 10px 0 0; color: var(--eco-muted); font: 400 13px/1.5 system-ui,sans-serif; }
  #sava-universal-appearance [role="group"] { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; }
  #sava-universal-appearance button { min-width: 0; min-height: 46px; margin: 0; padding: 8px 4px; border: 1px solid var(--eco-input); border-radius: 10px; background: var(--eco-panel); color: var(--eco-ink); font: 650 13px/1.4 system-ui,sans-serif; cursor: pointer; }
  #sava-universal-appearance button[aria-pressed="true"] { color: var(--eco-on-primary); background: var(--eco-primary); border-color: var(--eco-primary); box-shadow: inset 0 -3px 0 var(--neon-flare),0 0 16px var(--neon-halo); }
  #sava-universal-appearance :is(button,summary):focus-visible { outline: 3px solid var(--eco-focus); outline-offset: 3px; }
  @media (hover:hover) and (pointer:fine) { html[data-theme] :is(.eco-area-card,.fic-course-card,.hub-lab-card,.hub-edition,.library-book-card,.trail-course-card,.access-card,.arena-start-links>a):hover { transform: translateY(-4px); border-color: var(--neon-edge); box-shadow: inset 0 1px 0 var(--neon-inset),0 9px 0 -5px var(--eco-line),0 20px 34px -14px var(--neon-shadow),0 0 28px var(--neon-halo); } }
  @media (max-width:767px) { #sava-universal-appearance > summary { width: 44px; padding: 0; } #sava-universal-appearance > summary span { display: none; } }
  @media (max-height:450px) { #sava-universal-appearance { bottom: max(12px,env(safe-area-inset-bottom)); } #sava-universal-appearance .sava-light-panel { max-height: calc(100dvh - 80px); } }
  @media (prefers-reduced-motion:reduce) { html[data-theme] :is(.eco-area-card,.fic-course-card,.hub-lab-card,.hub-edition,.library-book-card,.trail-course-card,.access-card,.arena-start-links>a) { transition: none; transform: none !important; } }
  @media (forced-colors:active) { #sava-universal-appearance :is(button,summary),html[data-theme] .eco-area-card { border: 2px solid ButtonText; box-shadow: none; } #sava-universal-appearance button[aria-pressed="true"] { border-color: Highlight; outline: 2px solid Highlight; } }
}
@media print { #sava-universal-appearance { display: none !important; } }

@media screen {
  html[data-theme] :is(.discipline-shell,.discipline-simple-shell) {
    --discipline-navy: var(--eco-ink); --discipline-muted: var(--eco-muted);
    color: var(--eco-ink);
  }
  html[data-theme] :is(.discipline-simple-context strong,.discipline-overview-simple,.discipline-notice-list,.discipline-account,.discipline-teacher-access) { color: var(--eco-ink); }
  html[data-theme] .discipline-overview-simple :is(p,h1,h2,h3,label,legend) { color: var(--eco-ink); }
  html[data-theme] :is(.discipline-simple-context small,.discipline-simple-footer,.discipline-notice-list time) { color: var(--eco-muted); }
  html[data-theme] :is(.discipline-simple-context-actions>a,.discipline-simple-footer a,.discipline-teacher-access summary,.discipline-account-menu a,.discipline-shortcuts a,.discipline-record-tabs a) { color: var(--eco-accent); }
  html[data-theme] .discipline-account-menu { background: var(--eco-panel); color: var(--eco-ink); border-color: var(--eco-input); }
  html[data-theme] .discipline-account-menu button { color: var(--eco-ink); }
  html[data-theme] :is(.presencial-progress-copy label strong,.presencial-planning strong) { color: var(--eco-ink); }
  html[data-theme] .management-portal { --management-navy: var(--eco-ink); --management-muted: var(--eco-muted); }

  /* Pair legacy text utilities and their surfaces, excluding teaching media. */
  html[data-theme] :is(.eco-page,.discipline-simple-shell,.management-portal,.portal-account-controls,.entry-access-form,.fic-interior-main,.pe-root) :is([class~="text-slate-700"],[class~="text-slate-800"],[class~="text-slate-900"],[class~="text-slate-950"],[class~="text-gray-700"],[class~="text-gray-800"],[class~="text-gray-900"],[class~="text-gray-950"],[class~="text-neutral-700"],[class~="text-neutral-800"],[class~="text-neutral-900"],[class~="text-neutral-950"],[class~="text-zinc-700"],[class~="text-zinc-800"],[class~="text-zinc-900"],[class~="text-zinc-950"],[class~="text-[#0b2545]"],[class~="text-[#071a32]"],[class~="text-[#061e49]"]):not(:where(.superava-aula,.superava-aula *,.ia-slide,.ia-slide *,.ia-pdf-page,.ia-pdf-page *,.ia-crisp-slide,.ia-crisp-slide *,.ia-pdf-supplement,.ia-pdf-supplement *,.wc-document,.wc-document *,.fic-story-game,.fic-story-game *,.arena-room,.arena-room *)) { color: var(--eco-ink) !important; }
html[data-theme] :is(.eco-page,.discipline-simple-shell,.management-portal,.portal-account-controls,.entry-access-form,.fic-interior-main,.pe-root) :is([class~="text-slate-500"],[class~="text-slate-600"],[class~="text-gray-500"],[class~="text-gray-600"],[class~="text-neutral-500"],[class~="text-neutral-600"],[class~="text-zinc-500"],[class~="text-zinc-600"]):not(:where(.superava-aula,.superava-aula *,.ia-slide,.ia-slide *,.ia-pdf-page,.ia-pdf-page *,.ia-crisp-slide,.ia-crisp-slide *,.ia-pdf-supplement,.ia-pdf-supplement *,.wc-document,.wc-document *,.fic-story-game,.fic-story-game *,.arena-room,.arena-room *)) { color: var(--eco-muted) !important; }
html[data-theme] :is(.eco-page,.discipline-simple-shell,.management-portal,.portal-account-controls,.entry-access-form,.fic-interior-main,.pe-root) :is([class~="text-blue-600"],[class~="text-blue-700"],[class~="text-blue-800"],[class~="text-blue-900"],[class~="text-blue-950"],[class~="text-sky-600"],[class~="text-sky-700"],[class~="text-sky-800"],[class~="text-sky-900"],[class~="text-sky-950"],[class~="text-cyan-600"],[class~="text-cyan-700"],[class~="text-cyan-800"],[class~="text-cyan-900"],[class~="text-cyan-950"],[class~="text-indigo-600"],[class~="text-indigo-700"],[class~="text-indigo-800"],[class~="text-indigo-900"],[class~="text-indigo-950"],[class~="text-violet-600"],[class~="text-violet-700"],[class~="text-violet-800"],[class~="text-violet-900"],[class~="text-violet-950"],[class~="text-purple-600"],[class~="text-purple-700"],[class~="text-purple-800"],[class~="text-purple-900"],[class~="text-purple-950"]):not(:where(.superava-aula,.superava-aula *,.ia-slide,.ia-slide *,.ia-pdf-page,.ia-pdf-page *,.ia-crisp-slide,.ia-crisp-slide *,.ia-pdf-supplement,.ia-pdf-supplement *,.wc-document,.wc-document *,.fic-story-game,.fic-story-game *,.arena-room,.arena-room *)) { color: var(--eco-accent) !important; }
html[data-theme] :is(.eco-page,.discipline-simple-shell,.management-portal,.portal-account-controls,.entry-access-form,.fic-interior-main,.pe-root) :is([class~="text-emerald-600"],[class~="text-emerald-700"],[class~="text-emerald-800"],[class~="text-emerald-900"],[class~="text-emerald-950"],[class~="text-green-600"],[class~="text-green-700"],[class~="text-green-800"],[class~="text-green-900"],[class~="text-green-950"],[class~="text-teal-600"],[class~="text-teal-700"],[class~="text-teal-800"],[class~="text-teal-900"],[class~="text-teal-950"],[class~="text-lime-600"],[class~="text-lime-700"],[class~="text-lime-800"],[class~="text-lime-900"],[class~="text-lime-950"]):not(:where(.superava-aula,.superava-aula *,.ia-slide,.ia-slide *,.ia-pdf-page,.ia-pdf-page *,.ia-crisp-slide,.ia-crisp-slide *,.ia-pdf-supplement,.ia-pdf-supplement *,.wc-document,.wc-document *,.fic-story-game,.fic-story-game *,.arena-room,.arena-room *)) { color: var(--eco-success) !important; }
html[data-theme] :is(.eco-page,.discipline-simple-shell,.management-portal,.portal-account-controls,.entry-access-form,.fic-interior-main,.pe-root) :is([class~="text-red-600"],[class~="text-red-700"],[class~="text-red-800"],[class~="text-red-900"],[class~="text-red-950"],[class~="text-rose-600"],[class~="text-rose-700"],[class~="text-rose-800"],[class~="text-rose-900"],[class~="text-rose-950"]):not(:where(.superava-aula,.superava-aula *,.ia-slide,.ia-slide *,.ia-pdf-page,.ia-pdf-page *,.ia-crisp-slide,.ia-crisp-slide *,.ia-pdf-supplement,.ia-pdf-supplement *,.wc-document,.wc-document *,.fic-story-game,.fic-story-game *,.arena-room,.arena-room *)) { color: var(--eco-danger) !important; }
html[data-theme] :is(.eco-page,.discipline-simple-shell,.management-portal,.portal-account-controls,.entry-access-form,.fic-interior-main,.pe-root) :is([class~="text-amber-600"],[class~="text-amber-700"],[class~="text-amber-800"],[class~="text-amber-900"],[class~="text-amber-950"],[class~="text-yellow-600"],[class~="text-yellow-700"],[class~="text-yellow-800"],[class~="text-yellow-900"],[class~="text-yellow-950"],[class~="text-orange-600"],[class~="text-orange-700"],[class~="text-orange-800"],[class~="text-orange-900"],[class~="text-orange-950"]):not(:where(.superava-aula,.superava-aula *,.ia-slide,.ia-slide *,.ia-pdf-page,.ia-pdf-page *,.ia-crisp-slide,.ia-crisp-slide *,.ia-pdf-supplement,.ia-pdf-supplement *,.wc-document,.wc-document *,.fic-story-game,.fic-story-game *,.arena-room,.arena-room *)) { color: var(--eco-gold) !important; }
html[data-theme="dark"] :is(.eco-page,.discipline-simple-shell,.management-portal,.portal-account-controls,.entry-access-form,.fic-interior-main,.pe-root) :is([class~="bg-white"],[class~="bg-slate-50"],[class~="bg-slate-100"],[class~="bg-slate-200"],[class~="bg-gray-50"],[class~="bg-gray-100"],[class~="bg-gray-200"],[class~="bg-neutral-50"],[class~="bg-neutral-100"],[class~="bg-neutral-200"],[class~="bg-zinc-50"],[class~="bg-zinc-100"],[class~="bg-zinc-200"]):not(:where(.superava-aula,.superava-aula *,.ia-slide,.ia-slide *,.ia-pdf-page,.ia-pdf-page *,.ia-crisp-slide,.ia-crisp-slide *,.ia-pdf-supplement,.ia-pdf-supplement *,.wc-document,.wc-document *,.fic-story-game,.fic-story-game *,.arena-room,.arena-room *)) { background-color: var(--eco-panel) !important; color: var(--eco-ink); border-color: var(--eco-line); }
html[data-theme="dark"] :is(.eco-page,.discipline-simple-shell,.management-portal,.portal-account-controls,.entry-access-form,.fic-interior-main,.pe-root) :is([class~="bg-emerald-50/60"],[class~="bg-emerald-50"],[class~="bg-emerald-100"],[class~="bg-emerald-200"],[class~="bg-green-50"],[class~="bg-green-100"],[class~="bg-green-200"],[class~="bg-teal-50"],[class~="bg-teal-100"],[class~="bg-teal-200"],[class~="bg-lime-50"],[class~="bg-lime-100"],[class~="bg-lime-200"]):not(:where(.superava-aula,.superava-aula *,.ia-slide,.ia-slide *,.ia-pdf-page,.ia-pdf-page *,.ia-crisp-slide,.ia-crisp-slide *,.ia-pdf-supplement,.ia-pdf-supplement *,.wc-document,.wc-document *,.fic-story-game,.fic-story-game *,.arena-room,.arena-room *)) { background-color: var(--eco-success-bg) !important; border-color: var(--eco-line); }
html[data-theme="dark"] :is(.eco-page,.discipline-simple-shell,.management-portal,.portal-account-controls,.entry-access-form,.fic-interior-main,.pe-root) :is([class~="bg-red-50"],[class~="bg-red-100"],[class~="bg-red-200"],[class~="bg-rose-50"],[class~="bg-rose-100"],[class~="bg-rose-200"]):not(:where(.superava-aula,.superava-aula *,.ia-slide,.ia-slide *,.ia-pdf-page,.ia-pdf-page *,.ia-crisp-slide,.ia-crisp-slide *,.ia-pdf-supplement,.ia-pdf-supplement *,.wc-document,.wc-document *,.fic-story-game,.fic-story-game *,.arena-room,.arena-room *)) { background-color: var(--eco-danger-bg) !important; border-color: var(--eco-line); }
html[data-theme="dark"] :is(.eco-page,.discipline-simple-shell,.management-portal,.portal-account-controls,.entry-access-form,.fic-interior-main,.pe-root) :is([class~="bg-blue-50"],[class~="bg-blue-100"],[class~="bg-blue-200"],[class~="bg-sky-50"],[class~="bg-sky-100"],[class~="bg-sky-200"],[class~="bg-cyan-50"],[class~="bg-cyan-100"],[class~="bg-cyan-200"],[class~="bg-indigo-50"],[class~="bg-indigo-100"],[class~="bg-indigo-200"],[class~="bg-violet-50"],[class~="bg-violet-100"],[class~="bg-violet-200"],[class~="bg-purple-50"],[class~="bg-purple-100"],[class~="bg-purple-200"],[class~="bg-amber-50"],[class~="bg-amber-100"],[class~="bg-amber-200"],[class~="bg-yellow-50"],[class~="bg-yellow-100"],[class~="bg-yellow-200"],[class~="bg-orange-50"],[class~="bg-orange-100"],[class~="bg-orange-200"]):not(:where(.superava-aula,.superava-aula *,.ia-slide,.ia-slide *,.ia-pdf-page,.ia-pdf-page *,.ia-crisp-slide,.ia-crisp-slide *,.ia-pdf-supplement,.ia-pdf-supplement *,.wc-document,.wc-document *,.fic-story-game,.fic-story-game *,.arena-room,.arena-room *)) { background-color: var(--eco-soft) !important; border-color: var(--eco-line); }
html[data-theme] :is(.eco-page,.discipline-simple-shell,.management-portal,.portal-account-controls,.entry-access-form,.fic-interior-main,.pe-root) :is([class~="bg-cyan-300"]):not(:where(.superava-aula,.superava-aula *,.ia-slide,.ia-slide *,.ia-pdf-page,.ia-pdf-page *,.ia-crisp-slide,.ia-crisp-slide *,.ia-pdf-supplement,.ia-pdf-supplement *,.wc-document,.wc-document *,.fic-story-game,.fic-story-game *,.arena-room,.arena-room *)) { background-color: var(--eco-soft) !important; color: var(--eco-ink) !important; }

  html[data-theme] .fic-story { --story-ink:var(--eco-ink); --story-accent:var(--eco-accent); --story-soft:var(--eco-soft); color:var(--eco-ink); }
  html[data-theme] .fic-story :is(.fic-story-frame,.fic-story-frame-head,.fic-story-controls,.fic-story-utilities,.fic-story-index,.fic-story-modules>button) { background:var(--eco-panel); color:var(--eco-ink); border-color:var(--eco-line); }
  html[data-theme] .fic-story-stage :is(h1,h2,h3,h4,p,li) { color:var(--eco-ink); }
  html[data-theme] .fic-story-stage p:not(.fic-story-kind):not(.fic-story-source):not(.fic-story-eyebrow):not(.fic-story-authorial) { color:var(--eco-ink); }
  html[data-theme] .fic-story :is(.fic-story-kind,.fic-story-source,.fic-story-eyebrow,.fic-story-xp span,.fic-story-controls>div) { color:var(--eco-muted); }
  html[data-theme] .fic-story :is(.fic-story-modules button.active,.fic-story-index [aria-current=step]) { background:var(--eco-primary)!important; color:var(--eco-on-primary)!important; border-color:var(--eco-primary); }
  html[data-theme] .fic-story-modules button.active>span { color:var(--eco-on-primary); }
  html[data-theme] :is(.pe-course-blocks,.fic-enem-room) { color:var(--eco-ink); --pe-ink:var(--eco-ink); --pe-muted:var(--eco-muted); }
  html[data-theme] .pe-root :is(.pe-lesson-card,.pe-room-progress,.pe-lesson-copy,.pe-course-blocks article,.pe-room-save,.pe-mobile-top details nav) { background:var(--eco-panel)!important; color:var(--eco-ink); border-color:var(--eco-line)!important; }
  html[data-theme] :is(.fic-study-theme,.pe-root) :is(.fic-premium-section-title,.fic-premium-section-heading,.pe-catalog-heading,.pe-room-title) { color:var(--eco-ink); }
  html[data-theme] :is(.course-focus-dialog,.course-embedded-dialog,.fic-story-activity-dialog,.fic-story-image-dialog) { color:var(--eco-ink); --foreground:var(--eco-ink); --muted-foreground:var(--eco-muted); }

  /* Keep the root rem unchanged: instructional layouts retain their scale. */
  html[data-theme] :is(.eco-workspace,.eco-public-page,.presencial-account,.superava-native-account,.entry-access-form,.management-portal) { font-size: 1.125rem; line-height: 1.6; }
  html[data-theme] :is(.eco-card p,.eco-list-item p,.eco-area-description,.eco-page-heading>p,.discipline-overview-simple p,.discipline-notice-list p,.presencial-account .card p,.superava-native-account .card p,.superava-native-account .lead,.presencial-account .lead) { font-size: 1.125rem; line-height: 1.65; overflow-wrap: anywhere; }
  html[data-theme] :is(.eco-area-card h2,.eco-area-card h3,.eco-card h2,.eco-list-item h2,.eco-list-item h3) { font-size: 1.375rem; line-height: 1.35; }
  html[data-theme] .discipline-overview-simple :is(h1,h2) { font-size: clamp(1.5rem,2.5vw,1.875rem); line-height: 1.35; }
  html[data-theme] .discipline-simple-context strong { font-size: 1.125rem; line-height: 1.4; overflow-wrap: anywhere; }
  html[data-theme] .discipline-simple-context small { font-size: 1rem; line-height: 1.5; }
  html[data-theme] :is(.eco-tabs a,.eco-context-nav a,.eco-button,.eco-secondary,.eco-text-link,.eco-profile-link,.eco-personal-nav a,.eco-sidebar-bottom>a,.sava-ecosystem-sidebar nav a,.sava-area-links a,.discipline-primary-nav>a,.discipline-simple-context-actions>a,.discipline-account-menu a,.discipline-account-menu button,.discipline-record-tabs a,.discipline-shortcuts a) { font-size: 1rem; line-height: 1.4; min-height: 44px; }
  html[data-theme] :is(.eco-workspace,.presencial-account,.superava-native-account) :is(input:not([type="checkbox"]):not([type="radio"]):not([type="color"]),textarea,select) { font-size: 1.0625rem; line-height: 1.5; }
  html[data-theme] :is(.presencial-account,.superava-native-account) :is(label,.label,.button,.photo-label,.field-label) { font-size: 1rem; line-height: 1.5; }
  html[data-theme] :is(.eco-page,.discipline-overview-simple,.management-portal,.portal-account-controls,.entry-access-form) .text-sm:not(:where(.superava-aula,.superava-aula *,.ia-slide,.ia-slide *,.ia-pdf-page,.ia-pdf-page *,.ia-crisp-slide,.ia-crisp-slide *,.ia-pdf-supplement,.ia-pdf-supplement *,.wc-document,.wc-document *,.fic-story-game,.fic-story-game *,.arena-room,.arena-room *)) { font-size: 1rem; line-height: 1.6; }
  html[data-theme] :is(.eco-page,.discipline-overview-simple,.management-portal,.portal-account-controls,.entry-access-form) .text-xs:not(:where(.superava-aula,.superava-aula *,.ia-slide,.ia-slide *,.ia-pdf-page,.ia-pdf-page *,.ia-crisp-slide,.ia-crisp-slide *,.ia-pdf-supplement,.ia-pdf-supplement *,.wc-document,.wc-document *,.fic-story-game,.fic-story-game *,.arena-room,.arena-room *)) { font-size: .9375rem; line-height: 1.5; }
  html[data-theme] :is(.eco-page,.discipline-overview-simple,.management-portal,.portal-account-controls,.entry-access-form) .text-base:not(:where(.superava-aula,.superava-aula *,.ia-slide,.ia-slide *,.ia-pdf-page,.ia-pdf-page *,.ia-crisp-slide,.ia-crisp-slide *,.ia-pdf-supplement,.ia-pdf-supplement *,.wc-document,.wc-document *,.fic-story-game,.fic-story-game *,.arena-room,.arena-room *)) { font-size: 1.125rem; line-height: 1.6; }
  html[data-theme] :is(.eco-mobile-nav a,.sava-mobile-dock>a) { font-size: .8125rem; line-height: 1.3; }
  html[data-theme] :is(.eco-header-context>span,.sava-mobile-header>span) { font-size: 1rem; }
  html[data-theme] :is(.eco-card-meta,.eco-free-badge,.eco-status,.eco-workspace-footer,.eco-public-footer p,.eco-public-footer a,.discipline-simple-footer) { font-size: .9375rem; line-height: 1.5; }
  html[data-theme] .discipline-primary-nav { align-items: stretch; }
  html[data-theme] .discipline-primary-nav>a { white-space: normal; overflow-wrap: normal; word-break: normal; padding: .75rem .45rem; }

  /* Static bevels and short cast shadows create depth without animation loops,
     new downloads, canvas work or a 3D engine. Preserve each category's color. */
  html[data-theme] :is(.eco-area-icon,.entry-area-icon,.presencial-destination-icon,.discipline-icon,.discipline-heading-icon,.management-shortcut-icon) {
    position: relative; flex-shrink: 0; overflow: visible;
    background-image: radial-gradient(ellipse at 25% 8%,#ffffff70,transparent 57%),linear-gradient(145deg,#ffffff16 45%,#0000001a);
    border: 1px solid color-mix(in srgb,var(--eco-accent) 28%,transparent);
    box-shadow: inset 1px 2px 1px #ffffff66,inset -2px -3px 2px #00000020,2px 5px 0 -1px color-mix(in srgb,var(--eco-accent) 32%,var(--eco-panel)),4px 10px 12px -7px var(--neon-shadow);
    transform: perspective(400px) rotateX(7deg) rotateY(-9deg);
  }
  html[data-theme] :is(.eco-area-icon,.entry-area-icon,.presencial-destination-icon,.discipline-icon,.discipline-heading-icon,.management-shortcut-icon)>svg { filter: drop-shadow(0 1px 0 #ffffff70) drop-shadow(1px 3px 1px #00000026); }
  html[data-theme] .discipline-primary-nav>a>svg { width: 36px; height: 36px; padding: 7px; box-sizing: border-box; border-radius: 10px; background: linear-gradient(145deg,var(--eco-panel),var(--eco-soft)); color: var(--eco-accent); box-shadow: inset 1px 1px 0 var(--neon-inset),0 3px 0 var(--eco-line),0 6px 10px -6px var(--neon-shadow); }
  html[data-theme] :is(.eco-personal-nav,.eco-mobile-nav,.sava-ecosystem-sidebar nav,.sava-mobile-dock)>a>svg { filter: drop-shadow(0 2px 0 var(--neon-shadow)); }

  .sava-session-exit { display: inline-flex; flex: none; margin: 0; }
  html[data-theme] .eco-theme-menu>summary { width:44px; height:44px; padding:0; }
  html[data-theme] .eco-theme-menu>summary>svg { width:20px!important; height:20px!important; min-width:20px; max-width:20px; min-height:20px; max-height:20px; flex:none; padding:0; }
  html[data-theme] .superava-theme-controls button>svg { width:16px!important; height:16px!important; min-width:16px; max-width:16px; min-height:16px; max-height:16px; flex:none; padding:0; }
  #sava-universal-appearance[hidden] { display:none!important; }
  #sava-universal-appearance>summary { width:44px!important; height:44px!important; min-width:44px!important; padding:0!important; }
  #sava-universal-appearance>summary>span { display:none!important; }
  #sava-universal-appearance>summary>svg { width:20px!important; height:20px!important; min-width:20px; max-width:20px; min-height:20px; max-height:20px; padding:0; }
  html[data-theme] .sava-session-exit>button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 44px; min-height: 44px; padding: 9px 12px; border: 1px solid var(--eco-input); border-radius: 12px; background: var(--eco-panel); color: var(--eco-ink); font: 650 1rem/1.3 system-ui,sans-serif; cursor: pointer; }
  .sava-session-exit svg { width: 22px; height: 22px; flex: none; }
  html[data-theme] .sava-session-exit>button:hover { background: var(--eco-soft); border-color: var(--eco-accent); }
  html[data-theme] .sava-session-exit>button:focus-visible { outline: 3px solid var(--eco-focus); outline-offset: 3px; }
  .eco-public-actions:has(.sava-session-exit)>a[href="/acesso"] { display: none; }
  @media (max-width:767px) {
    html[data-theme] .eco-area-card { grid-template-columns: 52px minmax(0,1fr) 18px; gap: 14px; }
    html[data-theme] .eco-area-card :is(h2,h3) { font-size: 1.25rem; }
    html[data-theme] .eco-area-description { font-size: 1rem; }
    html[data-theme] .discipline-simple-header { flex-wrap: wrap; }
    html[data-theme] .discipline-simple-header>a { max-width: 48px; }
    html[data-theme] .discipline-simple-context { min-width: min(160px,60vw); }
    html[data-theme] .sava-session-exit>button { width: 44px; padding: 9px; }
    .sava-session-exit>button>span { display: none; }
  }
  @media (max-width:600px) {
    .eco-workspace-header:has(.sava-session-exit) { flex-wrap: wrap; row-gap: 0; }
    .eco-workspace-header:has(.sava-session-exit) .eco-header-context { flex: 1 0 100%; min-height: 44px; }
    html[data-theme] .eco-workspace-header:has(.sava-session-exit) .eco-header-context>span { max-width: none; white-space: normal; overflow-wrap: anywhere; }
    .eco-workspace-header:has(.sava-session-exit)>.eco-theme-menu { margin-left: auto; }
  }
  @media (max-width:480px) {
    html[data-theme] .discipline-primary-nav { grid-template-columns: repeat(2,minmax(0,1fr)); }
    html[data-theme] .discipline-primary-nav>a { flex-direction: row; justify-content: flex-start; text-align: left; padding-inline: .6rem; }
  }
  @media (max-width:380px) {
    html[data-theme] .eco-area-card { grid-template-columns: 44px minmax(0,1fr) 16px; padding-inline: 12px; gap: 12px; }
    html[data-theme] .sava-mobile-header { gap: 4px; padding-inline: 8px; }
  }
  @media (forced-colors:active) {
    html[data-theme] :is(.eco-area-icon,.entry-area-icon,.discipline-primary-nav>a>svg,.sava-session-exit>button) { background: Canvas; color: CanvasText; border: 1px solid ButtonText; box-shadow: none; filter: none; transform: none; }
  }
}
@media print { .sava-session-exit { display: none !important; } }
@media screen { [data-sava-contrast="text"] { color:var(--sava-readable-ink)!important; -webkit-text-fill-color:currentColor!important; } }
/* Stable first-paint pairs for the existing FIC access and enrollment forms. */
html[data-theme=dark] body .fic-exterior :is(.course-auth-card,.course-layer-card) .text-cyan-800{color:#9cddff!important;-webkit-text-fill-color:currentColor!important}
html[data-theme=dark] body .fic-exterior :is(.course-auth-card,.course-layer-card) .bg-cyan-100{background:#174967!important;color:#a4e7fc!important}
html[data-theme=dark] body .fic-exterior :is(.course-auth-card,.course-layer-card) .text-slate-500{color:#d3ddeb!important}
html[data-theme=dark] body .fic-exterior :is(.course-auth-card,.course-layer-card) :is(.text-red-700,.wc-status.error){color:#ffb6c3!important}
html[data-theme=dark] body .fic-exterior :is(.course-auth-card,.course-layer-card) .bg-red-50{background:#471e2b!important;color:#ffcfda!important}
html[data-theme] body .student-reference .status.error{color:#a41a35!important}
html[data-theme=dark] body .student-reference .status.error{color:#ffb6c3!important}
@media(max-width:700px){html[data-theme] body .fic-exterior .course-auth-card .course-input{font-size:16px!important;min-height:50px!important}}

.eco-theme-menu.sava-theme-direct,.sava-theme-direct .superava-theme-controls {display:inline-flex!important;align-items:center;gap:5px;margin:0!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;width:auto!important}
.sava-theme-direct>summary,.sava-theme-direct .eco-theme-popover>strong,.sava-theme-direct .eco-theme-popover>p,.sava-theme-direct .sava-light-panel>h2,.sava-theme-direct .sava-light-panel>p,.superava-theme-controls button[aria-label="Aparência: sistema"],[data-appearance="system"],[data-universal-appearance="system"] {display:none!important}
.sava-theme-direct>.eco-theme-popover,.sava-theme-direct>.sava-light-panel {display:contents!important;position:static!important;inset:auto!important;padding:0!important;border:0!important;box-shadow:none!important;width:auto!important;background:transparent!important}
.sava-theme-direct [role="group"],.eco-theme-menu>[data-native-appearance] {display:inline-flex!important;gap:5px!important;flex-wrap:nowrap!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;margin:0!important}
.superava-theme-controls button:not([data-appearance="system"]):not([aria-label="Aparência: sistema"]),.sava-theme-direct [data-universal-appearance]:not([data-universal-appearance="system"]) {display:inline-flex;align-items:center;justify-content:center;flex:none!important;min-width:36px!important;width:36px!important;min-height:36px!important;height:36px!important;padding:7px!important;border-radius:50%!important;gap:0!important;font-size:0!important;border:1px solid var(--eco-line,#cedded);background:var(--eco-panel,#f5fbff);color:var(--eco-ink,#10244d)}
.superava-theme-controls button>span,.sava-theme-direct [data-universal-appearance]>span {display:none!important}
.superava-theme-controls button>svg,.sava-theme-direct [data-universal-appearance]>svg {display:block!important;width:20px!important;height:20px!important;flex:none!important}
.superava-theme-controls button[aria-pressed="true"] {outline-offset:3px;box-shadow:inset 0 0 8px #76dfff33,0 0 10px #2b9aff2b!important}
.sava-theme-direct:focus-visible {outline:none}
@media(max-width:390px){.superava-theme-controls button:not([data-appearance="system"]):not([aria-label="Aparência: sistema"]) {min-width:30px!important;width:30px!important;min-height:34px!important;height:34px!important;padding:6px!important}.sava-theme-direct [role="group"] {gap:3px!important}}
html[data-theme] body .superava-theme-controls button[aria-pressed="true"],html[data-theme] body .sava-theme-direct [data-universal-appearance][aria-pressed="true"] {color:#fff!important;background:linear-gradient(135deg,#009fea,#075af4 58%,#7938ee)!important;border-color:#71dfff!important;box-shadow:inset 0 1px 3px #fff6,0 0 12px #078fff55!important}
html[data-theme] body .superava-theme-controls button:not([aria-pressed="true"]) {color:var(--eco-ink,var(--cover-ink,#10244d))!important;background:var(--eco-panel,var(--cover-panel,#f5fbff))!important;border-color:var(--eco-line,var(--cover-line,#cedded))!important}
.eco-theme-menu.sava-theme-direct::details-content {content-visibility:visible!important}
.superava-theme-controls button:focus-visible {outline:3px solid #27c8ff;outline-offset:3px}
 .superava-theme-controls button[hidden],[data-universal-appearance][hidden]{display:none!important}
@media print {.sava-theme-direct {display:none!important}}
