/* Recreo components: the building blocks the approved mocks are made of (docs/design/DESIGN.md, audit.md "Review").
   One class per mock helper: card, button, pill, exam code, bar, headings, fields. Colours come from tokens.css.
   Loaded last. Selectors start with :root:root so they win over the older sheets without !important. */

:root {
  --rc-line: var(--cp-border);           /* outlines */
  --rc-hard: var(--cp-hard);             /* hard drop shadows */
  --rc-card: var(--cp-surface);          /* plain card */
  --rc-ground: var(--cp-bg);
  --rc-text: var(--cp-text);
  --rc-note: var(--cp-text-soft);
}

/* ---------------------------------------------------------------- Page frame */
:root:root .rc-main { max-width: 1180px; margin: 0 auto; padding: 32px 24px 72px; display: flex; flex-direction: column; gap: 28px; }
:root:root .rc-main.is-narrow { max-width: 980px; }
:root:root .rc-main > * { margin: 0; min-width: 0; }
:root:root .rc-row { display: flex; flex-wrap: wrap; gap: 24px; align-items: stretch; }
:root:root .rc-row.is-tight { gap: 20px; }
:root:root .rc-row.is-start { align-items: flex-start; }
:root:root .rc-col { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
:root:root .rc-col.is-wide { flex: 999 1 520px; }
:root:root .rc-col.is-side { flex: 1 1 320px; }
:root:root .rc-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; }
:root:root .rc-head.is-center { align-items: center; }
:root:root .rc-stack { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
:root:root .rc-inline { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
:root:root .rc-between { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
:root:root .rc-grow { flex: 999 1 420px; min-width: 0; }

/* ---------------------------------------------------------------- Type */
:root:root .rc-h1 { margin: 0; font-family: var(--cp-font-heading); font-weight: 700; font-size: clamp(1.875rem, 4.4vw, 2.875rem); line-height: 1.05; letter-spacing: 0; color: inherit; }
:root:root .rc-h2 { margin: 0; font-family: var(--cp-font-heading); font-weight: 700; font-size: 1.625rem; line-height: 1.15; letter-spacing: 0; color: inherit; }
:root:root .rc-h2.is-lg { font-size: 1.75rem; }
:root:root .rc-h2.is-xl { font-size: 2.125rem; }
:root:root .rc-h2.is-md { font-size: 1.5rem; }
:root:root .rc-h2.is-sm { font-size: 1.375rem; }
:root:root .rc-h2.is-xs { font-size: 1.25rem; }
:root:root .rc-h3 { margin: 0; font-family: var(--cp-font-heading); font-weight: 700; font-size: 1.25rem; line-height: 1.2; letter-spacing: 0; color: inherit; }
:root:root .rc-h3.is-lg { font-size: 1.5rem; }
:root:root .rc-h3.is-md { font-size: 1.375rem; }
:root:root .rc-p { margin: 0; font-size: 1.0625rem; font-weight: 700; line-height: 1.45; color: inherit; }
:root:root .rc-p.is-sm { font-size: .9375rem; }
:root:root .rc-note { margin: 0; font-size: .9375rem; font-weight: 700; line-height: 1.45; color: var(--rc-note); }
:root:root .rc-strong { font-weight: 800; }
:root:root .rc-num { font-family: var(--cp-font-display); font-weight: 400; line-height: .9; letter-spacing: 0; }
:root:root .rc-num.is-xl { font-size: clamp(2.6rem, 7vw, 4rem); }
:root:root .rc-num.is-lg { font-size: clamp(2.4rem, 6vw, 3.75rem); }
:root:root .rc-num.is-md { font-size: clamp(2rem, 5vw, 2.875rem); line-height: .95; }
:root:root .rc-link { font-weight: 800; color: var(--cp-link); overflow-wrap: anywhere; }
:root:root .rc-link.is-tall { min-height: 44px; display: inline-flex; align-items: center; }

/* ---------------------------------------------------------------- Card and tile */
:root:root .rc-card {
  display: flex; flex-direction: column; gap: 14px; min-width: 0; padding: 22px;
  background: var(--rc-card); color: var(--rc-text);
  border: 4px solid var(--rc-line); border-radius: 24px; box-shadow: 7px 7px 0 var(--rc-hard);
}
:root:root .rc-card.is-row { flex-direction: row; flex-wrap: wrap; align-items: center; }
:root:root .rc-card.is-roomy { padding: 26px; gap: 18px; }
:root:root .rc-card.is-snug { padding: 18px; gap: 6px; }
:root:root .rc-card.is-flat { box-shadow: none; }
/* Filled cards keep the palette's own colours and dark text in both themes. */
:root:root .rc-card:is(.is-accent, .is-highlight, .is-soft, .is-white) { color: var(--tinta-ink); border-color: var(--tinta-ink); }
:root:root .rc-card.is-accent { background: var(--tinta-accent); }
:root:root .rc-card.is-highlight { background: var(--tinta-highlight); }
:root:root .rc-card.is-soft { background: var(--tinta-soft); }
:root:root .rc-card.is-white { background: var(--tinta-white); }
:root:root .rc-card.is-primary { background: var(--tinta-primary); color: var(--tinta-white); border-color: var(--rc-line); }
:root:root .rc-card.is-ink { background: var(--tinta-ink); color: var(--tinta-white); border-color: var(--rc-line); }
:root:root .rc-card:is(.is-accent, .is-highlight, .is-soft, .is-white) :where(.rc-note, .rc-link) { color: var(--tinta-primary); }
:root:root .rc-card:is(.is-primary, .is-ink) :where(.rc-note, .rc-soft-text) { color: var(--tinta-soft); }
:root:root .rc-card:is(.is-primary, .is-ink) .rc-link { color: var(--tinta-highlight); }
:root:root .rc-tile { transition: transform .25s cubic-bezier(.34, 1.56, .64, 1); }
:root:root .rc-sticker { transition: transform .3s cubic-bezier(.34, 1.56, .64, 1); }
@media (hover: hover) {
  :root:root .rc-tile:hover { transform: translate(-2px, -3px); }
  :root:root:root .rc-sticker:hover { transform: rotate(0deg) scale(1.05); }
}
/* An inner panel: outlined, no shadow. */
:root:root .rc-box { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 12px 14px; border: 3px solid var(--rc-line); border-radius: 16px; background: var(--rc-card); color: var(--rc-text); }
:root:root .rc-box.is-ground { background: var(--rc-ground); }
:root:root .rc-box.is-soft { background: var(--tinta-soft); color: var(--tinta-ink); border-color: var(--tinta-ink); }
:root:root .rc-box.is-white { background: var(--tinta-white); color: var(--tinta-ink); border-color: var(--tinta-ink); }
:root:root .rc-box.is-dashed { border-style: dashed; }
:root:root .rc-box.is-row { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
:root:root .rc-dash-top { border-top: 3px dashed var(--rc-line); padding-top: 14px; }
:root:root .rc-dash-bottom { border-bottom: 3px dashed var(--rc-line); padding-bottom: 14px; }

/* ---------------------------------------------------------------- Press button */
:root:root:root .rc-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 22px; margin: 0; width: auto;
  border: 4px solid var(--tinta-ink); border-radius: 16px; background: var(--tinta-highlight); color: var(--tinta-ink);
  font-family: var(--cp-font-heading); font-weight: 700; font-size: 1.0625rem; line-height: 1.1; text-decoration: none; text-transform: none; letter-spacing: 0;
  cursor: pointer; box-shadow: 0 6px 0 var(--rc-hard); transition: transform .08s ease, box-shadow .08s ease;
}
/* The hit area stays where the button was drawn, so a button that lifts cannot slip from under the pointer. */
:root:root:root .rc-btn::after { content: ""; position: absolute; inset: -4px -4px -10px; }
@media (hover: hover) { :root:root:root .rc-btn:hover:not(:disabled, [aria-disabled="true"]) { transform: translateY(-2px); } }
:root:root:root .rc-btn:active:not(:disabled, [aria-disabled="true"]) { transform: translateY(5px); box-shadow: 0 1px 0 var(--rc-hard); }
:root:root:root .rc-btn:is(:disabled, [aria-disabled="true"]) { opacity: .55; cursor: not-allowed; box-shadow: 0 2px 0 var(--rc-hard); }
:root:root:root .rc-btn.is-white { background: var(--tinta-white); }
:root:root:root .rc-btn.is-soft { background: var(--tinta-soft); }
:root:root:root .rc-btn.is-accent { background: var(--tinta-accent); }
:root:root:root .rc-btn.is-primary { background: var(--tinta-primary); color: var(--tinta-white); }
:root:root:root .rc-btn.is-sm { min-height: 46px; padding: 0 16px; border-width: 3px; box-shadow: 0 4px 0 var(--rc-hard); }
:root:root:root .rc-btn.is-xs { min-height: 44px; padding: 0 14px; border-width: 3px; box-shadow: 0 4px 0 var(--rc-hard); }
:root:root:root .rc-btn.is-big { min-height: 60px; padding: 0 30px; font-family: var(--cp-font-display); font-weight: 400; font-size: 1.25rem; text-transform: uppercase; box-shadow: 0 7px 0 var(--rc-hard); }
:root:root:root .rc-btn.is-stretch { align-self: stretch; }
:root:root:root .rc-btn.is-start { align-self: flex-start; }
:root:root:root .rc-btn .rc-arrow, :root:root .rc-arrow { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
/* Round icon button (top bar, composer). */
:root:root:root .rc-round {
  position: relative; display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 48px; height: 48px; min-height: 0; padding: 0; margin: 0;
  border: 3px solid var(--tinta-ink); border-radius: 50%; background: var(--tinta-white); color: var(--tinta-ink);
  font-family: var(--cp-font-heading); font-weight: 700; font-size: 1.0625rem; text-decoration: none;
  cursor: pointer; box-shadow: 0 4px 0 var(--rc-hard); transition: transform .08s ease, box-shadow .08s ease;
}
:root:root:root .rc-round::after { content: ""; position: absolute; inset: -4px -4px -8px; border-radius: 50%; }
@media (hover: hover) { :root:root:root .rc-round:hover:not(:disabled) { transform: translateY(-2px); } }
:root:root:root .rc-round:active:not(:disabled) { transform: translateY(4px); box-shadow: 0 0 0 var(--rc-hard); }
:root:root:root .rc-round:disabled { opacity: .55; cursor: not-allowed; }
:root:root:root .rc-round.is-soft { background: var(--tinta-soft); }
:root:root:root .rc-round.is-highlight, :root:root:root .rc-round[aria-current="page"], :root:root:root .rc-round[aria-pressed="true"] { background: var(--tinta-highlight); }
:root:root:root .rc-round.is-lg { width: 56px; height: 56px; box-shadow: 0 5px 0 var(--rc-hard); }
:root:root:root .rc-round.is-xl { width: 64px; height: 64px; border-width: 4px; background: var(--tinta-highlight); box-shadow: 0 6px 0 var(--rc-hard); }
:root:root:root .rc-round svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
/* A choice that toggles: pressed is highlighted and stands taller. */
:root:root:root .rc-choice {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 18px; margin: 0;
  border: 3px solid var(--tinta-ink); border-radius: 999px; background: var(--tinta-white); color: var(--tinta-ink);
  font-family: var(--cp-font-heading); font-weight: 600; font-size: 1.0625rem; cursor: pointer; text-decoration: none;
  box-shadow: 0 2px 0 var(--rc-hard); transition: transform .08s ease, box-shadow .08s ease, background .15s ease;
}
:root:root:root .rc-choice:is([aria-pressed="true"], [aria-selected="true"], [aria-current="true"], .is-on) { background: var(--tinta-highlight); box-shadow: 0 5px 0 var(--rc-hard); }
:root:root:root .rc-choice:active { transform: translateY(3px); box-shadow: 0 0 0 var(--rc-hard); }
:root:root:root .rc-choice.is-code { font-family: var(--cp-font-display); font-weight: 400; font-size: .9375rem; min-height: 44px; }
:root:root:root .rc-choice.is-block { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; width: 100%; min-height: 68px; padding: 10px 14px; border-radius: 16px; text-align: left; }
:root:root:root .rc-choice.is-block > b { font-family: var(--cp-font-heading); font-weight: 700; font-size: 1.125rem; }
:root:root:root .rc-choice.is-block > span { font-family: var(--cp-font-body); font-weight: 700; font-size: .875rem; }
:root:root:root .rc-choice.is-count { min-width: 64px; min-height: 52px; padding: 0 16px; border-radius: 16px; font-family: var(--cp-font-display); font-weight: 400; font-size: 1.25rem; }
:root:root:root .rc-choice.is-day { width: 56px; height: 56px; min-height: 0; padding: 0; border-radius: 50%; font-weight: 700; font-size: 1rem; }
:root:root:root .rc-choice:disabled { opacity: .5; cursor: not-allowed; }

/* ---------------------------------------------------------------- Pill, exam code, bar, switch */
:root:root .rc-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 14px; border: 3px solid var(--tinta-ink); border-radius: 999px; background: var(--tinta-white); color: var(--tinta-ink); font-weight: 800; font-size: 1rem; line-height: 1.3; }
:root:root .rc-pill.is-sm { font-size: .875rem; }
:root:root .rc-pill.is-highlight { background: var(--tinta-highlight); }
:root:root .rc-pill.is-soft { background: var(--tinta-soft); }
:root:root .rc-pill.is-ink { background: var(--tinta-ink); color: var(--tinta-highlight); font-family: var(--cp-font-display); font-weight: 400; }
:root:root .rc-pill.is-dashed { border-style: dashed; }
:root:root .rc-pill.is-nowrap { white-space: nowrap; }
:root:root .rc-code { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--tinta-ink); color: var(--tinta-highlight); font-family: var(--cp-font-display); font-weight: 400; font-size: .9375rem; line-height: 1.3; white-space: nowrap; }
html[data-theme="dark"]:root .rc-code { box-shadow: 0 0 0 2px var(--tinta-accent); }
:root:root .rc-bar { height: 20px; border: 3px solid var(--tinta-ink); border-radius: 999px; background: var(--tinta-ground); overflow: hidden; }
:root:root .rc-bar.is-sm { height: 16px; }
:root:root .rc-bar.is-md { height: 18px; }
:root:root .rc-bar.is-lg { height: 24px; }
:root:root .rc-bar.is-white { background: var(--tinta-white); }
:root:root .rc-bar > i { display: block; height: 100%; width: 0; background: var(--tinta-primary); transition: width .9s cubic-bezier(.34, 1.3, .64, 1); }
:root:root .rc-bar.is-weak > i, :root:root .rc-bar > i.is-accent { background: var(--tinta-accent); border-right: 3px solid var(--tinta-ink); }
:root:root .rc-bar-row { display: flex; align-items: center; gap: 12px; }
:root:root .rc-bar-row > .rc-bar { flex: 1 1 auto; }
:root:root .rc-labelled { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
:root:root .rc-labelled > div:first-child { display: flex; justify-content: space-between; gap: 12px; font-weight: 800; }
:root:root .rc-toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
:root:root .rc-toggle-row > div { min-width: 0; }
:root:root:root .rc-switch { position: relative; flex: none; width: 68px; height: 40px; min-height: 0; padding: 0; margin: 0; border: 3px solid var(--tinta-ink); border-radius: 999px; background: var(--tinta-white); cursor: pointer; box-shadow: none; transform: none; }
:root:root:root .rc-switch::before { content: ""; position: absolute; top: 3px; left: 3px; width: 28px; height: 28px; box-sizing: border-box; border: 3px solid var(--tinta-ink); border-radius: 50%; background: var(--tinta-soft); transition: left .18s ease, background .18s ease; }
:root:root:root .rc-switch[aria-checked="true"] { background: var(--tinta-primary); }
:root:root:root .rc-switch[aria-checked="true"]::before { left: 31px; background: var(--tinta-highlight); }

/* ---------------------------------------------------------------- Fields */
:root:root .rc-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
:root:root .rc-field > label, :root:root .rc-label { font-weight: 800; font-size: 1.0625rem; color: inherit; margin: 0; }
:root:root:root .rc-input { min-height: 52px; box-sizing: border-box; width: 100%; padding: 0 16px; margin: 0; border: 3px solid var(--tinta-ink); border-radius: 14px; background: var(--tinta-white); color: var(--tinta-ink); font-family: inherit; font-size: 1.0625rem; font-weight: 700; box-shadow: none; }
:root:root:root textarea.rc-input { padding: 12px 16px; min-height: 64px; resize: vertical; line-height: 1.4; }
:root:root .rc-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 16px; }
:root:root .rc-group { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
:root:root .rc-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
:root:root .rc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 12px; }
:root:root .rc-grid.is-340 { grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); }
:root:root .rc-grid.is-220 { grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 10px; }
:root:root .rc-grid.is-240 { grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }

/* ---------------------------------------------------------------- Icons and decoration */
:root:root .rc-icon-box { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 64px; height: 64px; border: 3px solid var(--tinta-ink); border-radius: 18px; background: var(--tinta-white); }
:root:root .rc-icon-box.is-sm { width: 48px; height: 48px; border-radius: 14px; }
:root:root .rc-icon-box img { width: 38px; height: 38px; }
:root:root .rc-icon-box.is-sm img { width: 28px; height: 28px; }
:root:root .rc-medal { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 64px; height: 64px; border: 4px solid var(--tinta-ink); border-radius: 50%; background: var(--tinta-white); color: var(--tinta-ink); }
:root:root .rc-medal.is-done { background: var(--tinta-highlight); }
:root:root .rc-medal svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
:root:root .rc-medal:not(.is-done) svg { width: 20px; height: 20px; stroke-width: 3; }
:root:root .rc-flame { flex: none; transform-origin: 50% 100%; animation: rc-flame 1.1s ease-in-out infinite; }
:root:root .rc-flame path { fill: var(--tinta-highlight); stroke: var(--tinta-ink); stroke-width: 2; stroke-linejoin: round; }
:root:root .rc-zig { position: absolute; pointer-events: none; }
:root:root .rc-zig path { fill: none; stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
:root:root .rc-zig.is-accent path { stroke: var(--tinta-accent); }
:root:root .rc-zig.is-highlight path { stroke: var(--tinta-highlight); }
:root:root .rc-star { position: absolute; pointer-events: none; animation: rc-spin 16s linear infinite; }
:root:root .rc-star path { fill: var(--tinta-accent); stroke: var(--tinta-ink); stroke-width: 5; stroke-linejoin: round; }
:root:root .rc-marquee { overflow: hidden; padding: 10px 0; }
:root:root .rc-marquee > div { display: flex; gap: 36px; width: max-content; white-space: nowrap; animation: rc-marquee 30s linear infinite; }
:root:root .rc-marquee.is-highlight { background: var(--tinta-highlight); color: var(--tinta-ink); border-bottom: 4px solid var(--tinta-ink); font-family: var(--cp-font-display); font-size: 1.125rem; }
:root:root .rc-marquee.is-ink { background: var(--tinta-ink); color: var(--tinta-white); border-radius: 999px; font-family: var(--cp-font-heading); font-weight: 600; }
:root:root .rc-marquee.is-ink > div { gap: 40px; animation-duration: 26s; }
:root:root .rc-marquee.is-ink .is-star { color: var(--tinta-highlight); }
html[data-theme="dark"]:root .rc-marquee.is-ink { box-shadow: 0 0 0 3px var(--tinta-accent); }
:root:root .rc-rise { animation: rc-rise .45s cubic-bezier(.34, 1.4, .64, 1); }
:root:root .rc-dots { display: flex; gap: 7px; }
:root:root .rc-dots span { width: 11px; height: 11px; border-radius: 50%; background: var(--tinta-primary); animation: rc-dot 1.1s ease-in-out infinite; }
:root:root .rc-dots span:nth-child(2) { animation-delay: .15s; }
:root:root .rc-dots span:nth-child(3) { animation-delay: .3s; }
:root:root .rc-bob { animation: rc-bob 3.2s ease-in-out infinite; }
:root:root .rc-ring circle.is-value { transition: stroke-dashoffset .9s cubic-bezier(.4, 0, .2, 1); }
@keyframes rc-flame { 0%, 100% { transform: scale(1) rotate(-3deg); } 50% { transform: scale(1.12) rotate(3deg); } }
@keyframes rc-spin { to { transform: rotate(360deg); } }
@keyframes rc-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes rc-rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes rc-dot { 0%, 80%, 100% { transform: translateY(0); opacity: .5; } 40% { transform: translateY(-8px); opacity: 1; } }
@keyframes rc-bob { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-10px) rotate(2deg); } }
@keyframes rc-tick { 50% { opacity: .25; } }

/* Nubi inside filled or deep blocks: the mock's colours, whatever the theme. */
/* Nubi is always white (Marco, 2026-10-08): no tinted bodies anywhere; the face shows the mood. */
:root:root .nubi.is-still { animation: none; }

/* Reduced motion: from the system setting or the switch in Ajustes. */
@media (prefers-reduced-motion: reduce) {
  :root:root :is(.rc-flame, .rc-star, .rc-marquee > div, .rc-rise, .rc-dots span, .rc-bob, .nubi-bob, .nubi-eyes) { animation: none; }
  :root:root :is(.rc-btn, .rc-round, .rc-choice, .rc-tile, .rc-sticker, .rc-bar > i, .rc-switch::before) { transition: none; }
}
html[data-motion="reduce"]:root :is(.rc-flame, .rc-star, .rc-marquee > div, .rc-rise, .rc-dots span, .rc-bob, .nubi-bob, .nubi-eyes) { animation: none; }
html[data-motion="reduce"]:root :is(.rc-btn, .rc-round, .rc-choice, .rc-tile, .rc-sticker, .rc-bar > i) { transition: none; }

@media (max-width: 800px) {
  :root:root .rc-main { padding: 20px 16px 96px; gap: 22px; }
  :root:root .rc-card { padding: 18px; box-shadow: 5px 5px 0 var(--rc-hard); }
  :root:root .rc-card.is-roomy { padding: 20px; }
  :root:root .rc-row { gap: 18px; }
}

/* ================================================================ Top bar (mock header): logo, five sections, gear, avatar */
@media (min-width: 801px) {
  :root:root body.with-shell { padding-top: 72px; }
  :root:root .app { grid-template-rows: 72px minmax(0, 1fr); }
  :root:root :is(.site-sidebar, .app > .sidebar) { height: 72px; gap: 10px 24px; padding: 0 max(24px, calc((100% - 1180px) / 2 + 24px)); background: var(--cp-bg-elevated); }
  :root:root .sidebar > .brand b { font-size: 1.375rem; }
  :root:root .sidebar > .primary-nav .ui-icon { display: none; }
  :root:root .sidebar .primary-nav a { padding: 0 16px; }
  :root:root .shell-bottom .exam-pill { display: none; }
  :root:root .shell-bottom .account-row { min-height: 0; padding: 0; gap: 10px; border: 0; background: none; box-shadow: none; }
  :root:root:root .shell-bottom .account-row .account-card { width: 48px; height: 48px; min-height: 0; padding: 0; justify-content: center; border: 3px solid var(--tinta-ink); border-radius: 50%;
    background: var(--tinta-soft); color: var(--tinta-ink); box-shadow: 0 4px 0 var(--rc-hard); transition: transform .08s ease, box-shadow .08s ease; }
  :root:root:root .shell-bottom .account-row .account-card[aria-current="page"] { background: var(--tinta-highlight); }
  :root:root:root .shell-bottom .account-row .account-card:active { transform: translateY(4px); box-shadow: 0 0 0 var(--rc-hard); }
  :root:root:root .account-card > .account-avatar { width: auto; height: auto; border: 0; background: none; color: inherit; font-family: var(--cp-font-heading); font-weight: 700; font-size: 1.0625rem; }
  :root:root .shell-bottom .account-row .account-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
:root:root .sidebar :is(#uName, #uSub) { position: absolute; width: 1px; height: 1px; margin: 0; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (min-width: 801px) and (max-width: 1100px) {
  :root:root .sidebar .primary-nav a { padding: 0 10px; }
  :root:root .sidebar > .brand b { font-size: 1.05rem; }
}
/* Page headers no longer carry display controls. */
:root:root .header-slot:empty { display: none; }

/* The dialog behind the gear: text size, language and appearance, then the way to everything else. */
:root:root #preferencesDialog { width: min(420px, calc(100vw - 32px)); padding: 24px; }
@media (min-width: 801px) { :root:root #preferencesDialog { margin: 84px max(24px, calc((100vw - 1180px) / 2 + 24px)) auto auto; } }
:root:root #preferencesDialog label { display: block; margin: 14px 0 6px; font-weight: 800; }
:root:root #preferencesDialog select { width: 100%; min-height: 52px; padding: 0 16px; }
:root:root .preferences-more { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; padding-top: 16px; border-top: 3px dashed var(--rc-line); }
:root:root .preferences-more:not(:has(> :not([hidden]))) { display: none; }
:root:root .preferences-more [hidden] { display: none; }

/* ================================================================ Public pages (landing, privacy): the mock's header and hero */
:root:root body.rc-public { margin: 0; background: var(--rc-ground); }
:root:root .rc-public > header { background: var(--cp-bg-elevated); border-bottom: 4px solid var(--rc-line); }
:root:root .rc-topbar { max-width: 1180px; margin: 0 auto; padding: 10px 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; }
:root:root .rc-topbar .brand { min-height: 48px; display: flex; align-items: center; gap: 10px; color: var(--rc-text); }
:root:root .rc-topbar .brand b { font-size: 1.375rem; }
:root:root .rc-topbar-actions { display: flex; align-items: center; gap: 12px; }
:root:root .rc-public .landing { max-width: none; margin: 0; padding: 0; }
:root:root:root .rc-hero { position: relative; display: block; max-width: none; margin: 0; padding: 0; overflow: hidden; text-align: left;
  background: var(--tinta-primary); color: var(--tinta-white); border: 0; border-bottom: 4px solid var(--rc-line); border-radius: 0; box-shadow: none; }
:root:root .rc-hero > .rc-star { right: -60px; top: -70px; }
:root:root .rc-hero > .rc-zig { left: 4%; bottom: 18px; }
:root:root .rc-hero-inner { position: relative; max-width: 1180px; margin: 0 auto; padding: 56px 24px 72px; display: flex; flex-wrap: wrap; gap: 32px 48px; align-items: center; }
:root:root .rc-hero-text { flex: 999 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
:root:root:root .rc-hero h1 { margin: 0; font-family: var(--cp-font-heading); font-weight: 700; font-size: clamp(2.5rem, 6.4vw, 4.75rem); line-height: .98; letter-spacing: 0; text-wrap: balance; color: var(--tinta-white); overflow-wrap: anywhere; }
:root:root:root .rc-hero h1 span { display: inline; margin: 0; padding: 0; background: none; border: 0; transform: none; color: inherit; }
:root:root:root .rc-hero h1 .rc-mark { display: inline-block; max-width: 100%; padding: 0 12px; background: var(--tinta-highlight); color: var(--tinta-ink); border: 4px solid var(--tinta-ink); border-radius: 14px; transform: rotate(-2deg); }
:root:root:root .rc-hero-text > p { margin: 0; max-width: 30em; font-size: 1.3125rem; font-weight: 700; line-height: 1.45; color: var(--tinta-white); }
:root:root .rc-hero-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 6px; font-weight: 800; color: var(--tinta-soft); }
:root:root .rc-hero-foot [hidden] { display: none; }
:root:root:root .rc-hero-foot .rc-btn.is-big { min-height: 64px; padding: 0 34px; }
:root:root .rc-hero-nubi { flex: 1 1 280px; display: flex; justify-content: center; }
:root:root .rc-how { flex: 1 1 300px; }
:root:root .rc-how > img { width: 56px; height: 56px; }
:root:root .rc-privacy-list { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 10px; font-weight: 600; }
:root:root .rc-public .roadmap-tree { margin: 0; }
@media (max-width: 800px) {
  :root:root .rc-hero-inner { padding: 32px 16px 56px; gap: 20px; }
  :root:root .rc-hero-nubi .nubi { width: 150px; height: auto; }
  :root:root .rc-hero-nubi { order: -1; flex-basis: 100%; justify-content: flex-start; }
  :root:root:root .rc-hero-text > p { font-size: 1.0625rem; }
  :root:root .rc-topbar { padding: 8px 16px; }
  :root:root .rc-topbar .brand b { font-size: 1.05rem; }
}

:root:root:root .rc-hero > .rc-hero-inner { margin: 0 auto; }
:root:root .rc-public .roadmap-tree { padding: 22px; border: 4px solid var(--rc-line); border-radius: 24px; box-shadow: 7px 7px 0 var(--rc-hard); background: var(--rc-card); }

/* ================================================================ Hoy (mock: Tablero) */
:root:root .rc-ring circle { fill: none; }
:root:root .rc-ring circle.is-base { fill: var(--tinta-ground); stroke: var(--tinta-ink); stroke-width: 4; }
:root:root .rc-ring circle.is-track { stroke: var(--tinta-soft); stroke-width: 14; }
:root:root .rc-ring circle.is-value { stroke: var(--tinta-primary); stroke-width: 14; stroke-linecap: round; }
:root:root .rc-ring.is-highlight circle.is-value { stroke: var(--tinta-highlight); }
:root:root .rc-ring.is-highlight circle.is-base { fill: var(--tinta-white); }
:root:root .rc-ring text { fill: var(--tinta-ink); }
:root:root .rc-ring text.is-number { font-family: var(--cp-font-display); font-size: 26px; }
:root:root .rc-ring text.is-caption { font-family: var(--cp-font-body); font-weight: 800; font-size: 13px; }
:root:root .rc-ring { flex: none; }

/* The old home sections stay in the page for the scripts that fill them; the board replaces what is shown. */
:root:root .reports .home-overview { display: none; }
:root:root .reports:has(> #privateContent > #hoyBoard:not([hidden])) > .reports-header { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
:root:root .reports:has(> #privateContent > #hoyBoard:not([hidden])) > :is(#pageStatus, footer) { display: none; }
:root:root .reports:has(#hoyBoard:not([hidden])) #privateContent > footer { display: none; }
:root:root .reports { max-width: none; padding: 0; }
:root:root .reports > :not(#privateContent), :root:root .reports #profileArea { max-width: 1180px; margin-inline: auto; padding-inline: 24px; }
:root:root .rc-hoy[hidden] { display: none; }

:root:root .rc-hoy-continue { position: relative; flex: 2 1 520px; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 20px 28px; padding: 28px; border-radius: 28px; box-shadow: 8px 8px 0 var(--rc-hard); overflow: hidden; }
:root:root .rc-hoy-continue > .rc-zig { right: 20px; top: 16px; opacity: .6; }
:root:root .rc-hoy-continue-text { position: relative; flex: 999 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
:root:root .rc-hoy-title { margin: 0; font-family: var(--cp-font-heading); font-weight: 700; font-size: clamp(1.75rem, 3.6vw, 2.5rem); line-height: 1.05; letter-spacing: 0; color: var(--tinta-white); overflow-wrap: anywhere; }
:root:root .rc-hoy-percent { font-size: 1.25rem; line-height: 1; }
:root:root:root .rc-hoy-continue .rc-btn.is-big { font-size: 1.375rem; border-radius: 18px; }
:root:root .rc-hoy-countdown { position: relative; flex: 1 1 260px; justify-content: space-between; gap: 12px; padding: 24px; border-radius: 28px; box-shadow: 8px 8px 0 var(--rc-hard); }
:root:root .rc-hoy-days { font-size: clamp(4rem, 9vw, 6.5rem); }
:root:root .rc-hoy-days-unit { font-size: .4em; margin-left: 6px; animation: rc-tick 1s steps(1) infinite; }
:root:root .rc-hoy-date { align-self: flex-start; padding: 4px 14px; background: var(--tinta-white); border: 3px solid var(--tinta-ink); border-radius: 12px; font-weight: 800; transform: rotate(-3deg); box-shadow: 4px 4px 0 var(--tinta-ink); }
:root:root .rc-hoy-streak { flex: 1 1 300px; }
:root:root .rc-hoy-streak-head { display: flex; align-items: center; gap: 14px; }
:root:root .rc-hoy-streak-count { margin: 0; font-size: 2.75rem; line-height: .95; font-weight: 400; color: var(--tinta-ink); }
:root:root .rc-hoy-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
:root:root .rc-hoy-week span { aspect-ratio: 1; border-radius: 50%; border: 3px solid var(--tinta-ink); background: var(--tinta-white); }
:root:root .rc-hoy-week .is-done { background: var(--tinta-ink); }
:root:root .rc-hoy-week .is-today { background: var(--tinta-highlight); }
:root:root .rc-hoy-week .is-future { border-style: dashed; }
:root:root .rc-hoy-week .is-missed { background: var(--tinta-soft); border-style: dashed; }
:root:root .rc-hoy-goal { flex: 1 1 260px; flex-direction: row; align-items: center; gap: 16px; }
:root:root .rc-hoy-league { flex: 1 1 300px; gap: 10px; }
:root:root .rc-hoy-league-head { align-items: baseline; }
:root:root .rc-hoy-podium { display: flex; align-items: flex-end; justify-content: center; gap: 8px; padding-top: 6px; }
:root:root .rc-hoy-step { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; }
:root:root .rc-hoy-step-name { max-width: 100%; font-weight: 800; font-size: .875rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
:root:root .rc-hoy-step-block { width: 100%; display: flex; align-items: center; justify-content: center; background: var(--tinta-white); border: 3px solid var(--tinta-ink); border-radius: 12px 12px 0 0; font-family: var(--cp-font-display); }
:root:root .rc-hoy-step.is-1 .rc-hoy-step-block { height: 84px; background: var(--tinta-highlight); font-size: 1.75rem; }
:root:root .rc-hoy-step.is-2 .rc-hoy-step-block { height: 56px; font-size: 1.375rem; }
:root:root .rc-hoy-step.is-3 .rc-hoy-step-block { height: 40px; font-size: 1.25rem; }
:root:root .rc-hoy-me { display: flex; align-items: center; gap: 12px; padding: 8px 14px; background: var(--tinta-primary); color: var(--tinta-white); border: 3px solid var(--tinta-ink); border-radius: 14px; }
:root:root .rc-hoy-me .rc-num { font-size: 1rem; line-height: 1.2; }
:root:root .rc-hoy-missions { flex: 2 1 480px; }
:root:root .rc-hoy-hint { color: var(--rc-note); }
:root:root .rc-mission { display: flex; align-items: center; gap: 14px; width: 100%; box-sizing: border-box; min-height: 68px; padding: 12px 14px; text-decoration: none;
  color: var(--tinta-ink); background: var(--tinta-white); border: 3px solid var(--tinta-ink); border-radius: 16px; transition: transform .08s ease; }
:root:root .rc-mission:active { transform: translateY(2px); }
:root:root .rc-mission.is-done { background: var(--tinta-soft); }
:root:root .rc-mission-check { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 10px; border: 3px solid var(--tinta-ink); background: var(--tinta-white);
  transition: background .2s ease, transform .3s cubic-bezier(.34, 1.56, .64, 1); }
:root:root .rc-mission-check svg { width: 18px; height: 18px; fill: none; stroke: var(--tinta-white); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
:root:root .rc-mission.is-done .rc-mission-check { background: var(--tinta-primary); transform: rotate(-6deg) scale(1.1); }
:root:root .rc-mission-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
:root:root .rc-mission-title { font-family: var(--cp-font-heading); font-weight: 600; font-size: 1.1875rem; }
:root:root .rc-mission-note { font-weight: 700; font-size: .9375rem; }
:root:root .rc-mission-xp { flex: none; padding: 4px 12px; border-radius: 999px; background: var(--tinta-ink); color: var(--tinta-highlight); font-family: var(--cp-font-display); font-size: .9375rem; white-space: nowrap; }
:root:root .rc-hoy-concept { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
:root:root:root .rc-flip { position: relative; flex: 1 1 auto; min-height: 260px; width: 100%; padding: 0; margin: 0; border: 0; border-radius: 24px; background: transparent; box-shadow: none; transform: none; cursor: pointer; perspective: 900px;
  font-family: inherit; color: var(--tinta-ink); text-align: left; }
:root:root .rc-flip-inner { position: absolute; inset: 0; display: block; transform-style: preserve-3d; transition: transform .6s cubic-bezier(.4, 0, .2, 1); }
:root:root .rc-flip[aria-pressed="true"] .rc-flip-inner { transform: rotateY(180deg); }
:root:root .rc-flip-face { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 12px; padding: 22px; overflow: hidden;
  border: 4px solid var(--tinta-ink); border-radius: 24px; box-shadow: 7px 7px 0 var(--rc-hard); backface-visibility: hidden; -webkit-backface-visibility: hidden; }
:root:root .rc-flip-face.is-front { background: var(--tinta-accent); color: var(--tinta-ink); }
:root:root .rc-flip-face.is-back { background: var(--tinta-primary); color: var(--tinta-white); transform: rotateY(180deg); }
:root:root .rc-flip-question { font-family: var(--cp-font-heading); font-weight: 700; font-size: 1.1875rem; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden; }
:root:root .rc-flip-back-text { display: flex; flex-direction: column; gap: 8px; min-height: 0; overflow: auto; }
:root:root .rc-flip-answer { font-family: var(--cp-font-heading); font-weight: 700; font-size: 1.1875rem; line-height: 1.25; }
:root:root .rc-flip-why { font-weight: 700; font-size: .9375rem; line-height: 1.35; }
:root:root .rc-flip-reward { font-weight: 800; color: var(--tinta-highlight); }
:root:root .rc-hoy-domain-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 16px 28px; }
:root:root .rc-hoy-domain-value { font-size: 1.0625rem; line-height: 1.3; }
:root:root .rc-hoy-path:empty { display: none; }
:root:root .rc-hoy-path .learning-path { margin: 0; padding: 22px; border: 4px solid var(--rc-line); border-radius: 24px; box-shadow: 7px 7px 0 var(--rc-hard); background: var(--rc-card); }
:root:root .rc-hoy-path #dashboardPath { margin: 0; }
@media (prefers-reduced-motion: reduce) { :root:root .rc-flip-inner, :root:root .rc-mission-check { transition: none; } :root:root .rc-hoy-days-unit { animation: none; } }
html[data-motion="reduce"]:root :is(.rc-flip-inner, .rc-mission-check) { transition: none; }
html[data-motion="reduce"]:root .rc-hoy-days-unit { animation: none; }
@media (max-width: 800px) {
  :root:root .rc-hoy-continue { padding: 20px; }
  :root:root .rc-hoy-continue > .nubi { width: 104px; height: auto; }
  :root:root .rc-mission { flex-wrap: wrap; }
  :root:root .reports > :not(#privateContent), :root:root .reports #profileArea { padding-inline: 16px; }
}

/* ================================================================ Tutor (mock: chat de estudio) */
:root:root .sr-only-rc, :root:root .app :is(#examTitle, .msg-label, #sessionPill, #studyStreak) { position: absolute; width: 1px; height: 1px; margin: 0; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
:root:root .app { background: var(--rc-ground); }
:root:root .app .main { background: transparent; }
@media (min-width: 801px) {
  :root:root .app .main { position: relative; grid-template-columns: 250px minmax(0, 1fr); grid-template-rows: auto auto minmax(0, 1fr); column-gap: 24px;
    width: 100%; max-width: 1180px; margin: 0 auto; padding: 32px 31px 31px 24px; box-sizing: border-box; min-height: 0; }
  /* One card behind the header, the conversation and the composer. */
  :root:root .app .main::before { content: ""; grid-column: 2; grid-row: 1 / 4; border: 4px solid var(--rc-line); border-radius: 24px; background: var(--rc-card); box-shadow: 7px 7px 0 var(--rc-hard); }
  :root:root .app .main > :is(.topbar, .status-bar, .workspace) { grid-column: 2; position: relative; z-index: 1; min-width: 0; }
  :root:root .app .main > .topbar { grid-row: 1; }
  :root:root .app .main > .status-bar { grid-row: 2; }
  :root:root .app .main > .workspace { grid-row: 3; min-height: 0; }
  :root:root .app .thread-panel { grid-column: 1; grid-row: 1 / 4; padding: 0 0 8px; gap: 14px; border: 0; background: transparent; overflow-y: auto; overflow-x: visible; }
  :root:root .app .topbar { min-height: 0; margin: 4px 28px 0; padding: 20px 0 14px; gap: 10px 20px; flex-wrap: wrap; border: 0; border-bottom: 3px dashed var(--rc-line); background: transparent; }
  :root:root .app .status-bar { padding: 6px 28px 0; }
  :root:root .app .study-content { padding: 14px 28px 8px; }
  :root:root .app .composer { padding: 6px 28px 22px; }
}
:root:root .app .topbar .heading { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1 1 auto; }
:root:root .app .topbar .heading h1 { margin: 0; font-family: var(--cp-font-heading); font-weight: 700; font-size: 1.625rem; line-height: 1.1; letter-spacing: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
:root:root:root .rc-exam-pill { flex: none; width: auto; min-height: 0; height: auto; padding: 4px 28px 4px 12px; margin: 0; border: 0; border-radius: 999px; appearance: none; -webkit-appearance: none; cursor: pointer;
  background: var(--tinta-ink) linear-gradient(45deg, transparent 50%, var(--tinta-highlight) 50%) calc(100% - 15px) 55% / 6px 6px no-repeat;
  background-image: linear-gradient(45deg, transparent 50%, var(--tinta-highlight) 50%), linear-gradient(135deg, var(--tinta-highlight) 50%, transparent 50%);
  background-position: calc(100% - 16px) 55%, calc(100% - 10px) 55%; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; background-color: var(--tinta-ink);
  color: var(--tinta-highlight); font-family: var(--cp-font-display); font-weight: 400; font-size: .9375rem; line-height: 1.3; box-shadow: none; }
:root:root:root .rc-exam-pill:disabled { opacity: 1; padding-right: 12px; background-image: none; cursor: default; }
:root:root .rc-exam-pill option { font-family: var(--cp-font-body); background: var(--tinta-white); color: var(--tinta-ink); }
html[data-theme="dark"]:root .rc-exam-pill { box-shadow: 0 0 0 2px var(--tinta-accent); }
:root:root .app .topbar .toolbar { display: flex; gap: 8px; margin-left: auto; }
:root:root .app .status-bar { background: transparent; min-height: 0; }
:root:root .app .status-bar #appStatus { margin: 0; font-size: .875rem; font-weight: 700; color: var(--rc-note); }
:root:root .app .composer { background: transparent; border: 0; backdrop-filter: none; }

/* Conversation: your questions on the right, Nubi's answers on the left. */
:root:root .app .log { max-width: none; margin: 0; display: flex; flex-direction: column; gap: 18px; padding: 8px 0; }
:root:root:root .app .msg { display: flex; align-items: flex-end; gap: 10px; width: auto; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; font-size: 1.0625rem; }
:root:root:root .app .msg.user { align-self: flex-end; max-width: min(560px, 88%); }
:root:root:root .app .msg.bot { align-self: flex-start; max-width: min(680px, 96%); }
:root:root .msg-avatar { flex: none; display: flex; }
:root:root .msg-bubble { min-width: 0; padding: 14px 18px; border: 3px solid var(--rc-line); box-shadow: 4px 4px 0 var(--rc-hard); font-weight: 700; line-height: 1.45; }
:root:root .msg.bot .msg-bubble { border-radius: 22px 22px 22px 6px; background: var(--rc-card); color: var(--rc-text); }
:root:root .msg.user .msg-bubble { border-radius: 22px 22px 6px 22px; background: var(--tinta-highlight); color: var(--tinta-ink); border-color: var(--tinta-ink); }
:root:root .msg-bubble .markdown > :first-child, :root:root .msg-bubble .markdown .stream-block > :first-child { margin-top: 0; }
:root:root .msg-bubble .markdown > :last-child, :root:root .msg-bubble .markdown .stream-block:last-of-type > :last-child { margin-bottom: 0; }
:root:root .msg-bubble .markdown :is(p, li) { font-weight: 700; }
:root:root .msg-bubble .markdown a { font-weight: 800; color: var(--cp-link); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; overflow-wrap: anywhere; }
:root:root:root .msg.bot.pending::after { content: none; }
:root:root .msg.bot.pending .msg-bubble { padding: 18px 20px; }
:root:root .msg.bot.pending .msg-bubble:has(.stream-preview:not(:empty)) { padding: 14px 18px; }
:root:root .msg.bot.pending .rc-dots[hidden] { display: none; }
:root:root .msg.bot.pending p.small[role="status"] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
/* Empty conversation: Nubi invites the first question from a speech bubble. */
:root:root:root .rc-welcome { display: flex; align-items: flex-end; gap: 14px; max-width: 720px; margin: 8px 0 0; padding: 0; text-align: left; }
:root:root .rc-welcome > .nubi-spot { flex: none; align-self: flex-end; }
:root:root .rc-welcome-bubble { min-width: 0; display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; border: 3px solid var(--rc-line); border-radius: 22px 22px 22px 6px; background: var(--rc-card); box-shadow: 4px 4px 0 var(--rc-hard); }
:root:root .rc-welcome-bubble h2 { margin: 0; font-size: 1.5rem; line-height: 1.15; }
:root:root .rc-welcome-bubble p { margin: 0; font-weight: 700; }
:root:root .rc-welcome #savedOverview { display: none; }
:root:root .rc-welcome [hidden] { display: none; }

/* Composer: four chips, the question box, round microphone and send. */
:root:root:root .composer .rc-chips { display: flex; flex-wrap: wrap; gap: 10px; padding: 0 0 14px; }
:root:root:root .composer .rc-chips .rc-btn { height: auto; min-height: 44px; border: 3px solid var(--tinta-ink); border-radius: 16px; font-size: 1.0625rem; font-weight: 700; color: var(--tinta-ink); }
:root:root:root .composer .rc-chips .rc-btn.is-soft { background: var(--tinta-soft); }
:root:root:root .composer .rc-chips .rc-btn.is-accent { background: var(--tinta-accent); }
:root:root:root .rc-compose { display: flex; align-items: flex-end; gap: 10px; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
:root:root .rc-compose-field { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
:root:root .rc-compose-field label { font-weight: 800; font-size: 1.0625rem; color: var(--rc-text); }
:root:root:root .rc-compose textarea { width: 100%; min-height: 64px; max-height: 30vh; box-sizing: border-box; padding: 12px 16px; border: 3px solid var(--tinta-ink); border-radius: 14px; background: var(--tinta-white); color: var(--tinta-ink);
  font-family: inherit; font-size: 1.0625rem; font-weight: 700; line-height: 1.4; resize: vertical; }
:root:root:root .rc-compose textarea:focus-visible { outline: 4px solid var(--rc-text); outline-offset: 3px; }
:root:root:root .rc-compose #micBtn { border: 3px solid var(--tinta-ink); background: var(--tinta-white); color: var(--tinta-ink); }
:root:root:root .rc-compose #micBtn[aria-pressed="true"] { background: var(--tinta-highlight); }
:root:root:root .rc-compose .send-button { display: inline-flex; width: 64px; min-width: 64px; height: 64px; border: 4px solid var(--tinta-ink); border-radius: 50%; background: var(--tinta-highlight); color: var(--tinta-ink); box-shadow: 0 6px 0 var(--rc-hard); }
:root:root:root .rc-compose .send-button:disabled { opacity: .55; box-shadow: 0 2px 0 var(--rc-hard); }
:root:root:root .rc-compose .send-button:active:not(:disabled) { transform: translateY(5px); box-shadow: 0 1px 0 var(--rc-hard); }
:root:root .app .compose-foot { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; padding-top: 12px; font-size: .9375rem; }
:root:root .app .compose-foot #messageCount { font-family: var(--cp-font-body); font-weight: 700; font-size: .8125rem; color: var(--rc-note); }

/* Conversation list beside the chat. */
:root:root:root .thread-panel #newChat { min-height: 52px; padding: 0 22px; border: 4px solid var(--tinta-ink); border-radius: 16px; background: var(--tinta-highlight); color: var(--tinta-ink);
  font-family: var(--cp-font-heading); font-weight: 700; font-size: 1.0625rem; box-shadow: 0 6px 0 var(--rc-hard); }
:root:root:root .thread-panel #newChat:active:not(:disabled) { transform: translateY(5px); box-shadow: 0 1px 0 var(--rc-hard); }
:root:root .thread-panel .side-label { margin: 0; font-family: var(--cp-font-heading); font-weight: 700; font-size: 1.25rem; line-height: 1.15; letter-spacing: 0; text-transform: none; color: var(--rc-text); }
:root:root .thread-panel .convos { display: flex; flex-direction: column; gap: 14px; padding: 0 6px 6px 0; overflow: visible; }
:root:root .thread-panel .convo-section { display: flex; flex-direction: column; gap: 10px; }
:root:root .thread-panel .convo-heading { margin: 0; font-family: var(--cp-font-body); font-weight: 800; font-size: .875rem; letter-spacing: 0; text-transform: none; color: var(--rc-note); }
:root:root:root .thread-panel .convo { display: flex; align-items: center; margin: 0; padding: 0; border: 3px solid var(--rc-line); border-radius: 16px; background: var(--rc-card); box-shadow: none; }
:root:root:root .thread-panel .convo.active { background: var(--tinta-soft); border-color: var(--tinta-ink); box-shadow: 4px 4px 0 var(--rc-hard); }
:root:root:root .thread-panel .convo.active :is(.convo-title, .convo-meta, .convo-archive) { color: var(--tinta-ink); }
:root:root:root .thread-panel .convo-open { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; flex: 1 1 auto; min-width: 0; padding: 12px 14px; border: 0; border-radius: 13px; background: transparent; box-shadow: none; transform: none; text-align: left; }
:root:root .thread-panel .convo-open .thread-icon { display: none; }
:root:root .thread-panel .convo-open .convo-title { max-width: 100%; font-family: var(--cp-font-body); font-weight: 800; font-size: 1rem; color: var(--rc-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
:root:root .thread-panel .convo-open .convo-meta { font-size: .875rem; font-weight: 700; color: var(--rc-text); }
:root:root:root .thread-panel .convo-archive { flex: none; width: 40px; height: 40px; min-height: 0; margin-right: 6px; padding: 0; border: 0; border-radius: 12px; background: transparent; box-shadow: none; transform: none; color: var(--rc-text); }
:root:root .thread-note { margin: 0; }
@media (max-width: 800px) {
  :root:root .app .topbar { padding: 10px 12px; border-bottom: 3px dashed var(--rc-line); }
  :root:root .app .topbar .heading h1 { font-size: 1.125rem; }
  :root:root .app .study-content { padding: 14px 12px; }
  :root:root .app .composer { padding: 8px 12px 12px; border-top: 4px solid var(--rc-line); background: var(--rc-card); }
  :root:root:root .composer .rc-chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 12px; grid-template-columns: none; display: flex; }
  :root:root:root .composer .rc-chips .rc-btn { flex: none; font-size: .9375rem; padding: 0 12px; }
  :root:root:root .rc-compose .send-button { width: 56px; min-width: 56px; height: 56px; }
  :root:root:root .rc-compose #micBtn { width: 48px; height: 48px; }
  :root:root .rc-compose-field label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  :root:root .app .compose-foot .rc-note { font-size: .75rem; }
  :root:root .msg-avatar .nubi { width: 44px; height: auto; }
  :root:root .rc-welcome { flex-direction: column; align-items: flex-start; }
}
:root:root .msg.bot.pending .msg-bubble { display: flex; flex-direction: column; gap: 8px; }
:root:root .msg.bot.pending .rc-dots { flex-wrap: nowrap; min-width: 47px; }
:root:root .msg.bot.pending .stream-preview:empty { display: none; }
:root:root .thread-panel .convos { flex: 0 0 auto; max-height: none; }
:root:root .thread-panel > * { flex-shrink: 0; }
:root:root:root .app .status-bar .back-previous { min-height: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; transform: none; font-family: var(--cp-font-body); font-weight: 800; font-size: .875rem; color: var(--cp-link); text-decoration: underline; }
:root:root .msg.bot.pending .rc-dots:not([hidden]) ~ .stream-preview { display: none; }
/* Five sections fit one row of the phone's bottom bar. */
:root:root .bottom-nav { grid-template-columns: repeat(5, minmax(0, 1fr)); }
:root:root .bottom-nav a { min-width: 0; padding-inline: 2px; font-size: .6875rem; }

/* ================================================================ Practice question (mock: Pregunta de práctica) */
/* While a question is on screen the page shows only the question. */
:root:root .app.is-quiz > .sidebar, :root:root .app.is-quiz .thread-panel, :root:root .app.is-quiz .main > .topbar { display: none; }
:root:root .app.is-quiz { grid-template-rows: minmax(0, 1fr); grid-template-columns: minmax(0, 1fr); }
/* A finished mock (its result) stays inside the Tutor layout, so the conversation list and "Nuevo chat" remain at hand. */
:root:root .app.is-quiz .main { display: flex; flex-direction: column; max-width: none; width: 100%; margin: 0; padding: 0; }
:root:root .app.is-quiz .main::before { content: none; display: none; }
:root:root .app.is-quiz .main > .workspace { flex: 1 1 auto; min-height: 0; }
:root:root .app.is-quiz .main > .status-bar { order: 2; max-width: 980px; width: 100%; margin: 0 auto; padding: 0 24px 8px; box-sizing: border-box; }
:root:root .app.is-quiz .status-bar #appStatus { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
:root:root .app.is-quiz .study-content { padding: 0; }
:root:root .app.is-mock:not(.is-quiz) .rc-quiz { max-width: none; padding: 8px 0 16px; }
:root:root body:has(.app.is-quiz) .bottom-nav { display: none; }
:root:root:root .app.is-mock .mock-panel { max-width: none; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
:root:root .app.is-mock #mockHistory { max-width: 980px; margin: 0 auto 32px; }
:root:root .rc-quiz-bar { position: sticky; top: 0; z-index: 5; background: var(--cp-bg-elevated); border-bottom: 4px solid var(--rc-line); }
:root:root .rc-quiz-bar-inner { max-width: 980px; margin: 0 auto; padding: 14px 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; box-sizing: border-box; }
:root:root .rc-quiz-x { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 4; stroke-linecap: round; }
:root:root .rc-quiz-progress { flex: 999 1 240px; height: 26px; border: 3px solid var(--tinta-ink); border-radius: 999px; background: var(--tinta-white); overflow: hidden; }
:root:root .rc-quiz-progress > i { display: block; width: 0; height: 100%; background: var(--tinta-primary); border-right: 3px solid var(--tinta-ink); border-radius: 999px; transition: width .6s cubic-bezier(.34, 1.3, .64, 1); }
:root:root .rc-quiz-progress > i[style*="width: 0%"] { border-right: 0; }
:root:root .rc-quiz-count { font-size: 1rem; line-height: 1.2; color: var(--rc-text); }
:root:root .rc-quiz-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border: 3px solid var(--tinta-ink); border-radius: 999px; color: var(--tinta-ink);
  font-family: var(--cp-font-display); font-weight: 400; font-size: 1rem; white-space: nowrap; }
:root:root .rc-quiz-chip.is-accent { background: var(--tinta-accent); }
:root:root .rc-quiz-chip.is-soft { background: var(--tinta-soft); }
:root:root:root .rc-quiz-chip.timer { background: var(--tinta-highlight); padding: 0 14px; font-size: 1rem; }
:root:root .rc-quiz-flame { width: 18px; height: 22px; fill: var(--tinta-highlight); stroke: var(--tinta-ink); stroke-width: 2.5; stroke-linejoin: round; }
:root:root .rc-quiz-bolt { width: 14px; height: 20px; fill: var(--tinta-primary); stroke: var(--tinta-ink); stroke-width: 2.5; stroke-linejoin: round; }
:root:root .rc-quiz { max-width: 980px; margin: 0 auto; padding: 32px 24px 48px; display: flex; flex-direction: column; gap: 28px; box-sizing: border-box; }
:root:root .rc-quiz > * { margin: 0; min-width: 0; }
:root:root .rc-quiz-ask { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px 20px; }
:root:root .rc-quiz-nubi { flex: none; }
:root:root .rc-quiz-bubble { flex: 999 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 6px; padding: 26px; background: var(--rc-card); color: var(--rc-text);
  border: 4px solid var(--rc-line); border-radius: 26px 26px 26px 6px; box-shadow: 7px 7px 0 var(--rc-hard); }
:root:root .rc-quiz-step { color: var(--rc-note); }
:root:root .rc-quiz-stem { margin: 0; font-family: var(--cp-font-heading); font-weight: 600; font-size: clamp(1.25rem, 2.4vw, 1.5625rem); line-height: 1.35; letter-spacing: 0; text-wrap: pretty; color: inherit; }
:root:root .rc-quiz-options { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); gap: 18px 20px; }
:root:root:root .rc-opt { display: flex; align-items: center; gap: 16px; width: 100%; box-sizing: border-box; min-height: 84px; margin: 0; padding: 16px 20px; text-align: left; font-family: inherit;
  color: var(--tinta-ink); background: var(--tinta-white); border: 4px solid var(--tinta-ink); border-radius: 22px; box-shadow: 6px 7px 0 var(--rc-hard);
  transition: transform .12s ease, box-shadow .12s ease, background .2s ease; }
:root:root:root button.rc-opt { cursor: pointer; }
@media (hover: hover) { :root:root:root button.rc-opt.is-idle:hover:not(:disabled) { transform: translate(-2px, -3px); box-shadow: 8px 9px 0 var(--rc-hard); } }
:root:root:root button.rc-opt.is-idle:active:not(:disabled) { transform: translate(4px, 5px); box-shadow: 1px 1px 0 var(--rc-hard); }
:root:root:root button.rc-opt:disabled { cursor: progress; opacity: .7; }
:root:root .rc-opt-letter { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 3px solid var(--tinta-ink); border-radius: 14px; background: var(--tinta-white);
  font-family: var(--cp-font-display); font-weight: 400; font-size: 1.25rem; }
:root:root .rc-opt-letter.is-highlight { background: var(--tinta-highlight); }
:root:root .rc-opt-letter.is-soft { background: var(--tinta-soft); }
:root:root .rc-opt-letter.is-accent { background: var(--tinta-accent); }
:root:root .rc-opt-letter.is-ground { background: var(--tinta-ground); }
:root:root .rc-opt-text { flex: 1 1 auto; min-width: 0; font-family: var(--cp-font-heading); font-weight: 600; font-size: 1.25rem; line-height: 1.25; overflow-wrap: anywhere; }
:root:root .rc-opt-verdict { flex: none; font-family: var(--cp-font-display); font-size: .8125rem; white-space: nowrap; }
:root:root:root .rc-opt.is-key { background: var(--tinta-soft); animation: rc-pop .55s cubic-bezier(.34, 1.56, .64, 1); }
:root:root:root .rc-opt.is-miss { border-style: dashed; box-shadow: 2px 3px 0 var(--rc-hard); animation: rc-shake .5s ease; }
:root:root:root .rc-opt.is-rest { box-shadow: none; opacity: .6; }
:root:root .rc-quiz-hint { text-align: center; font-weight: 800; color: var(--rc-note); }
:root:root .rc-quiz-form { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
:root:root .rc-quiz-form .mock-options { width: 100%; }
:root:root .rc-quiz-panel { display: flex; flex-direction: column; gap: 18px; padding: 24px; color: var(--tinta-ink); border: 4px solid var(--tinta-ink); border-radius: 26px; box-shadow: 7px 7px 0 var(--rc-hard); }
:root:root .rc-quiz-panel.is-right { background: var(--tinta-soft); }
:root:root .rc-quiz-panel.is-wrong { background: var(--tinta-highlight); }
:root:root .rc-quiz-verdict { margin: 0; font-size: clamp(1.5rem, 4vw, 2.125rem); line-height: 1.05; font-weight: 400; color: var(--tinta-ink); }
:root:root .rc-quiz-reward { padding: 6px 16px; border-radius: 999px; background: var(--tinta-ink); color: var(--tinta-highlight); font-family: var(--cp-font-display); font-size: 1.125rem; white-space: nowrap; }
:root:root .rc-quiz-reason { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; background: var(--tinta-white); border: 3px solid var(--tinta-ink); border-radius: 16px; font-weight: 700; }
:root:root .rc-quiz-badge { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border: 3px solid var(--tinta-ink); border-radius: 10px; background: var(--tinta-white); font-family: var(--cp-font-display); font-size: .875rem; }
:root:root .rc-quiz-badge.is-key { background: var(--tinta-soft); }
:root:root .rc-quiz-panel .rc-link { color: var(--tinta-ink); }
:root:root .rc-quiz-actions { gap: 16px 24px; }
:root:root .rc-quiz-foot { font-size: .9375rem; }
:root:root:root .rc-text-button { min-height: 44px; padding: 0 14px; border: 0; border-radius: 0; background: transparent; box-shadow: none; transform: none; color: var(--rc-text); font-family: inherit; font-size: .9375rem; font-weight: 800; text-decoration: underline; cursor: pointer; }
:root:root .rc-quiz-about { font-size: .9375rem; }
:root:root .rc-confetti { position: absolute; left: 50%; top: 40%; width: 0; height: 0; pointer-events: none; }
:root:root .rc-confetti span { position: absolute; top: 50%; left: 50%; width: 10px; height: 16px; opacity: 0; border: 2px solid var(--tinta-ink); border-radius: 3px; animation: rc-confetti 1.1s ease-out forwards; }
:root:root .rc-confetti span.is-dot { border-radius: 50%; }
:root:root .rc-confetti .is-primary { background: var(--tinta-primary); } :root:root .rc-confetti .is-accent { background: var(--tinta-accent); }
:root:root .rc-confetti .is-highlight { background: var(--tinta-highlight); } :root:root .rc-confetti .is-soft { background: var(--tinta-soft); }
:root:root .rc-confetti .is-white { background: var(--tinta-white); } :root:root .rc-confetti .is-ink { background: var(--tinta-ink); }
:root:root .rc-jump { animation: rc-jump .7s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes rc-pop { 0% { transform: scale(1); } 40% { transform: scale(1.04); } 100% { transform: scale(1); } }
@keyframes rc-shake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-8px); } 40% { transform: translateX(8px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(5px); } }
@keyframes rc-confetti { 0% { opacity: 1; transform: translate(-50%, -50%) rotate(0deg); } 100% { opacity: 0; transform: translate(calc(-50% + var(--cx)), calc(-50% + var(--cy))) rotate(var(--cr)); } }
@keyframes rc-jump { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-22px) rotate(-4deg); } 70% { transform: translateY(0) rotate(2deg); } }
@media (prefers-reduced-motion: reduce) { :root:root :is(.rc-opt, .rc-jump) { animation: none; transition: none; } :root:root .rc-confetti { display: none; } }
html[data-motion="reduce"]:root :is(.rc-opt, .rc-jump) { animation: none; transition: none; }
html[data-motion="reduce"]:root .rc-confetti { display: none; }

/* Result (mock: Simulacro, "Tu resultado") */
:root:root .rc-result { flex: 1 1 460px; }
:root:root .rc-result .rc-h2 { color: var(--tinta-white); }
:root:root .rc-result-score { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
:root:root .rc-result-facts { gap: 8px; }
:root:root .rc-result-verdict { font-size: clamp(1.5rem, 4vw, 2.125rem); line-height: 1; }
:root:root .rc-result-xp { align-self: flex-start; }
:root:root .rc-result-domains { display: flex; flex-direction: column; gap: 12px; padding: 16px; background: var(--tinta-white); color: var(--tinta-ink); border: 3px solid var(--tinta-ink); border-radius: 18px; }
:root:root .rc-result-domains .rc-labelled > div:first-child { gap: 4px 12px; }
@media (max-width: 800px) {
  :root:root .rc-quiz { padding: 20px 16px 32px; gap: 20px; }
  :root:root .rc-quiz-bar-inner { padding: 10px 16px; gap: 8px 10px; }
  :root:root .rc-quiz-chip { min-height: 36px; padding: 0 10px; font-size: .8125rem; }
  :root:root .rc-quiz-bubble { padding: 18px; }
  :root:root .rc-quiz-nubi .nubi { width: 84px; height: auto; }
  :root:root:root .rc-opt { min-height: 68px; padding: 12px 14px; gap: 12px; }
  :root:root .rc-opt-text { font-size: 1.0625rem; }
  :root:root .rc-opt-letter { width: 40px; height: 40px; font-size: 1.0625rem; }
  :root:root .rc-opt-verdict { flex-basis: 100%; }
  :root:root:root .rc-opt.is-key, :root:root:root .rc-opt.is-miss { flex-wrap: wrap; }
}

/* ================================================================ Explore pages: shared header, Practicar, Simulacro, Errores */
:root:root .explore-page.rc-main { width: 100%; box-sizing: border-box; }
:root:root .explore-header { margin: 0; padding: 0; border: 0; }
:root:root .explore-header.is-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
:root:root .explore-subtitle:empty, :root:root #exploreStatus:empty, :root:root #exploreActions:empty { display: none; }
:root:root #exploreContent { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
:root:root #exploreContent > * { margin: 0; }
:root:root .rc-practice { display: flex; flex-direction: column; gap: 28px; }
:root:root .rc-practice > * { margin: 0; }
:root:root .rc-exam { flex: 1 1 340px; }
:root:root .rc-exam-actions { margin-top: auto; gap: 12px; }
:root:root .rc-exam .rc-link { color: var(--tinta-ink); }
:root:root:root a.rc-mode { flex: 1 1 220px; text-decoration: none; color: var(--rc-text); }
:root:root:root a.rc-mode:is(.is-highlight, .is-soft) { color: var(--tinta-ink); }
:root:root .roadmap-chip img { width: 20px; height: 20px; }
:root:root .rc-later { margin: 0; padding: 0; list-style: none; }
:root:root .rc-later-item { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: var(--rc-card); border: 3px dashed var(--rc-line); border-radius: 16px; min-width: 0; }
:root:root .rc-later-code { font-size: .9375rem; line-height: 1.3; }
:root:root .rc-later-title { flex: 1 1 auto; min-width: 0; font-weight: 700; }
:root:root .rc-mock-config { flex: 1 1 460px; }
:root:root .rc-mock-side { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
:root:root .rc-mock-minutes { font-size: 1.75rem; line-height: 1; }
:root:root:root .rc-mock-config .rc-btn.is-big { min-height: 62px; }
:root:root .rc-errors-list { display: flex; flex-direction: column; gap: 28px; }
:root:root .rc-error-stem { font-size: 1.3125rem; font-weight: 700; }
:root:root .rc-error-label { font-family: var(--cp-font-display); font-size: .75rem; }
:root:root .rc-error.is-mastered { opacity: .8; }
:root:root .explore-page[data-view="mistakes"] { max-width: 980px; }
:root:root .explore-page[data-view="mistakes"] .explore-header { gap: 16px 28px; }

:root:root .rc-later-code { white-space: nowrap; }
:root:root .rc-later-item .rc-link { flex: none; white-space: nowrap; overflow-wrap: normal; }

/* ================================================================ Logros, Perfil, Progreso, Ajustes */
:root:root .rc-logros-count { flex: 1 1 280px; max-width: 360px; transform: rotate(2deg); }
:root:root .rc-logros-total { font-size: clamp(2.2rem, 5vw, 3.375rem); }
:root:root .rc-logros-grid { gap: 28px; padding: 8px 4px; }
:root:root .rc-logro { flex: 1 1 260px; }
:root:root .rc-logro.is-tilt-a { transform: rotate(-2deg); } :root:root .rc-logro.is-tilt-b { transform: rotate(1.5deg); }
:root:root .rc-logro.is-tilt-c { transform: rotate(-1deg); } :root:root .rc-logro.is-tilt-d { transform: rotate(2deg); }
:root:root .rc-logros-progress { font-family: var(--cp-font-display); font-weight: 400; }
:root:root .rc-logros-real { flex-wrap: wrap; gap: 16px; }
:root:root .rc-perfil-hero { gap: 22px; }
:root:root .rc-perfil-avatar { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 110px; height: 110px; border: 4px solid var(--tinta-ink); border-radius: 50%; background: var(--tinta-highlight); color: var(--tinta-ink);
  font-family: var(--cp-font-display); font-size: 2.75rem; box-shadow: 0 6px 0 var(--rc-hard); }
:root:root .rc-perfil-name { color: var(--tinta-white); overflow-wrap: anywhere; }
:root:root .rc-perfil-id { gap: 10px; }
:root:root .rc-perfil-xp { font-family: var(--cp-font-display); font-weight: 400; font-size: .9375rem; }
:root:root .rc-perfil-level { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
:root:root .rc-perfil-level .rc-bar { flex: 1 1 180px; max-width: 320px; }
:root:root:root .rc-track { display: flex; align-items: center; gap: 12px; width: 100%; box-sizing: border-box; min-height: 76px; margin: 0; padding: 12px 14px; text-align: left; font-family: inherit; cursor: pointer;
  color: var(--tinta-ink); background: var(--tinta-white); border: 3px solid var(--tinta-ink); border-radius: 18px; box-shadow: 0 3px 0 var(--rc-hard); transition: transform .08s ease, box-shadow .08s ease; }
:root:root:root .rc-track[aria-pressed="true"] { background: var(--tinta-highlight); box-shadow: 0 6px 0 var(--rc-hard); }
:root:root:root .rc-track:active { transform: translateY(3px); box-shadow: 0 0 0 var(--rc-hard); }
:root:root .rc-track-text { min-width: 0; }
:root:root .rc-track-name { display: block; font-family: var(--cp-font-heading); font-weight: 700; font-size: 1.1875rem; }
:root:root .rc-track-note { display: block; font-weight: 700; font-size: .875rem; }
:root:root .rc-record { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 52px; padding: 0 14px; background: var(--rc-ground); border: 3px solid var(--rc-line); border-radius: 14px; text-decoration: none; color: var(--rc-text); font-weight: 800; }
:root:root .rc-perfil-certs, :root:root .rc-perfil-certs :where(h2, p, span, strong, label) { color: var(--tinta-ink); }
:root:root:root .rc-perfil-certs .my-certs, :root:root:root .rc-settings-reminders .push-reminders { margin: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
:root:root .rc-perfil-certs .eyebrow { display: none; }
:root:root .rc-perfil-certs .cert-item { background: var(--tinta-white); border-color: var(--tinta-ink); box-shadow: none; border-radius: 16px; }
:root:root:root .rc-perfil-path { margin: 0; padding: 22px; border: 4px solid var(--rc-line); border-radius: 24px; box-shadow: 7px 7px 0 var(--rc-hard); background: var(--rc-card); }
:root:root .rc-progress { display: flex; flex-direction: column; gap: 28px; }
:root:root .rc-progress > * { margin: 0; }
:root:root .rc-progress-stat { flex: 1 1 200px; }
:root:root .rc-progress-percent { font-size: 1.5rem; line-height: 1; }
:root:root .rc-progress-chart { display: flex; align-items: flex-end; gap: 12px; height: 170px; padding-top: 6px; }
:root:root .rc-progress-col { flex: 1 1 0; min-width: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; }
:root:root .rc-progress-col-value { font-size: .9375rem; line-height: 1.2; }
:root:root .rc-progress-column { width: 100%; max-width: 70px; background: var(--tinta-primary); border: 3px solid var(--tinta-ink); border-radius: 10px 10px 0 0; }
html[data-theme="dark"]:root .rc-progress-column { background: var(--tinta-accent); }
:root:root .rc-progress-column.is-last { background: var(--tinta-highlight); }
:root:root .rc-progress-col-date { font-size: .8125rem; font-weight: 800; white-space: nowrap; }
:root:root .settings-tabs { margin: 0; border: 0; }
:root:root .settings-panel { display: flex; flex-direction: column; gap: 24px; }
:root:root .settings-panel[hidden] { display: none; }
:root:root .rc-settings-plan { flex: 999 1 520px; }
:root:root .rc-settings-memory { flex: 1 1 420px; }
:root:root .rc-settings-account { flex: 1 1 380px; }
:root:root .rc-settings-help { gap: 24px; }
:root:root .rc-settings-help-text { gap: 12px; }
:root:root .rc-settings-reminders :where(h2, p, span, label, summary) { color: var(--tinta-ink); }
:root:root .rc-settings-reminders .push-reminders > h2 { display: none; }
:root:root .rc-pref.is-sizes { align-items: flex-end; }
:root:root .rc-pref.is-sizes .rc-choice:nth-child(1) { font-size: .875rem; }
:root:root .rc-pref.is-sizes .rc-choice:nth-child(3) { font-size: 1.1875rem; }
:root:root .rc-pref.is-sizes .rc-choice:nth-child(4) { font-size: 1.375rem; }
:root:root .rc-settings-note-text { flex: 1 1 200px; min-width: 0; font-weight: 700; font-size: .9375rem; }
:root:root .rc-settings-context { font-weight: 600; font-size: .9375rem; white-space: pre-wrap; }
:root:root .rc-settings-context[hidden] { display: none; }
@media (max-width: 800px) {
  :root:root .rc-logros-count { transform: none; max-width: none; }
  :root:root:root .rc-logro { transform: none; }
  :root:root .rc-perfil-avatar { width: 84px; height: 84px; font-size: 2rem; }
}

/* ================================================================ Instructor console (mock: Consola del instructor) */
:root:root .explore-page[data-view="admin"] .explore-header { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
:root:root .rc-admin-hero { gap: 24px; padding: 28px; }
:root:root .rc-admin-title { margin: 0; font-family: var(--cp-font-heading); font-weight: 700; font-size: clamp(2.125rem, 5vw, 3.5rem); line-height: 1; color: var(--tinta-white); }
:root:root .rc-admin-stat { flex: 1 1 180px; }
:root:root .rc-admin-wrap { overflow-x: auto; border: 3px solid var(--rc-line); border-radius: 18px; }
:root:root .rc-admin-table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 1rem; background: var(--rc-card); color: var(--rc-text); }
:root:root .rc-admin-table th, :root:root .rc-admin-table td { padding: 12px 14px; text-align: left; font-weight: 700; border: 0; background: none; }
:root:root .rc-admin-table thead th { font-family: var(--cp-font-body); font-weight: 800; background: var(--cp-surface-soft); }
:root:root .rc-admin-table tbody :is(th, td) { border-top: 3px solid var(--rc-line); }
:root:root .rc-admin-table tbody th { font-weight: 800; }
:root:root .rc-admin-table .is-right, :root:root .rc-admin-xp { text-align: right; }
:root:root .rc-admin-table .is-wide { width: 30%; }
:root:root .rc-admin-xp, :root:root .rc-admin-accuracy .rc-num { font-size: .9375rem; line-height: 1.3; }
:root:root .rc-admin-accuracy { display: grid; grid-template-columns: minmax(80px, 1fr) 48px; gap: 10px; align-items: center; }
:root:root .rc-admin-accuracy .rc-num { text-align: right; }
:root:root .rc-admin-last, :root:root .rc-admin-none { white-space: nowrap; font-size: .9375rem; }
:root:root .rc-admin-days { display: flex; align-items: flex-end; gap: 6px; height: 130px; }
:root:root .rc-admin-days span { flex: 1 1 0; background: var(--tinta-primary); border: 3px solid var(--tinta-ink); border-radius: 8px 8px 0 0; }
html[data-theme="dark"]:root .rc-admin-days span { background: var(--tinta-accent); }
:root:root .rc-admin-days span.is-last { background: var(--tinta-highlight); }
:root:root .explore-page[data-view="admin"] .report-section { padding: 22px; border: 4px solid var(--rc-line); border-radius: 24px; box-shadow: 7px 7px 0 var(--rc-hard); background: var(--rc-card); margin: 0; }
:root:root .explore-page[data-view="admin"] .admin-invite { background: var(--tinta-highlight); border-color: var(--tinta-ink); }
:root:root .explore-page[data-view="admin"] .admin-invite :where(h2, h3, p, label, caption) { color: var(--tinta-ink); }
:root:root .rc-admin-stat .rc-num { font-size: clamp(1.5rem, 2.6vw, 2.25rem); overflow-wrap: anywhere; }

/* ================================================================ Sign-in (mock: Iniciar sesión): a navy page, Nubi on the card */
:root:root dialog.rc-auth { width: min(460px, calc(100vw - 32px)); max-height: calc(100dvh - 120px); margin: auto; padding: 40px 28px 28px; overflow: visible; display: none; flex-direction: column; gap: 18px;
  background: var(--tinta-white); color: var(--tinta-ink); border: 4px solid var(--tinta-ink); border-radius: 24px; box-shadow: 7px 7px 0 var(--tinta-ink); }
:root:root dialog.rc-auth[open] { display: flex; }
:root:root dialog.rc-auth::backdrop { background: var(--tinta-primary); }
:root:root #authModal.rc-auth { margin-top: max(110px, calc((100dvh - 640px) / 2 + 60px)); overflow-y: visible; }
:root:root #resetDialog.rc-auth { overflow-y: auto; padding-top: 28px; }
:root:root #authModal.rc-auth > .nubi-spot { position: absolute; left: 0; right: 0; top: -98px; margin: 0; pointer-events: none; }
:root:root .rc-auth-head { display: flex; flex-direction: column; gap: 6px; text-align: center; }
:root:root:root .rc-auth-head h2 { margin: 0; font-family: var(--cp-font-heading); font-weight: 700; font-size: 2.25rem; line-height: 1.05; text-align: center; color: var(--tinta-ink); }
:root:root .rc-auth-head p { margin: 0; font-weight: 700; color: var(--tinta-ink); }
:root:root .rc-auth form { display: flex; flex-direction: column; gap: 18px; margin: 0; }
:root:root .rc-auth :where(label) { color: var(--tinta-ink); }
:root:root .rc-auth .rc-note, :root:root .rc-auth .rc-link { color: var(--tinta-primary); }
:root:root:root .rc-auth .rc-btn.is-big { width: 100%; }
:root:root:root .rc-auth button.rc-link { align-self: center; min-height: 44px; padding: 0; border: 0; background: none; box-shadow: none; transform: none; font-family: inherit; font-size: 1rem; text-decoration: underline; cursor: pointer; }
:root:root .rc-auth [hidden] { display: none; }
:root:root .rc-auth-notes { display: flex; flex-direction: column; gap: 6px; border-color: var(--tinta-ink); }
:root:root .rc-auth .auth-preferences { position: absolute; top: 12px; right: 12px; }
:root:root .rc-auth .error:empty { display: none; }
@media (max-height: 760px) { :root:root #authModal.rc-auth { margin-top: 100px; max-height: none; position: absolute; } }
/* The sign-in card and the create-accounts card keep light surfaces in both themes, so their text stays dark. */
:root:root:root dialog.rc-auth :where(p, label, span, h2, a, button.rc-link, small) { color: var(--tinta-ink); }
:root:root:root dialog.rc-auth :is(.rc-note, .rc-link, a) { color: var(--tinta-primary); }
:root:root:root dialog.rc-auth .error { color: var(--tinta-danger); }
:root:root:root .explore-page[data-view="admin"] .admin-invite :where(h2, h3, p, label, caption, span, th, td, code, small) { color: var(--tinta-ink); }
:root:root:root .explore-page[data-view="admin"] .admin-invite :is(.table-wrap, table, th, td) { background: var(--tinta-white); border-color: var(--tinta-ink); }
:root:root:root .explore-page[data-view="admin"] .admin-invite .secondary-button { background: var(--tinta-white); color: var(--tinta-ink); border-color: var(--tinta-ink); }
:root:root #authModal.rc-auth h2, :root:root #resetDialog.rc-auth h2 { display: block; font-size: 2.25rem; line-height: 1.05; text-align: center; color: var(--tinta-ink); }
:root:root #authModal.rc-auth h2::before, :root:root #resetDialog.rc-auth h2::before { content: none; display: none; }
:root:root #authModal.rc-auth :is(#authSub, .rc-auth-head p), :root:root #resetDialog.rc-auth .rc-auth-head p { color: var(--tinta-ink); font-size: 1.0625rem; }
:root:root #authModal.rc-auth :is(#forgotPassword, #authToggle) { color: var(--tinta-primary); font-weight: 800; }
:root:root:root #authModal.rc-auth .auth-preferences .preferences-button { width: 44px; height: 44px; min-height: 0; padding: 0; display: inline-flex; align-items: center; justify-content: center;
  border: 3px solid var(--tinta-ink); border-radius: 50%; background: var(--tinta-white); color: var(--tinta-ink); box-shadow: 0 3px 0 var(--tinta-ink); }
:root:root:root #authModal.rc-auth .auth-preferences .preferences-button .ui-icon { color: var(--tinta-ink); }
:root:root #resetDialog.rc-auth h2 { font-size: 1.75rem; }
:root:root:root .rc-perfil-certs :where(summary, a, button, input, select, legend, small, li) { color: var(--tinta-ink); }
:root:root .rc-card:is(.is-accent, .is-highlight, .is-soft, .is-white) :where(a:not(.rc-btn, .rc-choice, .rc-round)) { color: var(--tinta-primary); }
:root:root:root .thread-panel .convo.active :is(.convo-delete, button) { color: var(--tinta-ink); }
/* Short laptop screens: the Tutor gives the conversation more of the height. */
@media (min-width: 801px) and (max-height: 860px) {
  :root:root .app .main { padding-top: 16px; padding-bottom: 20px; }
  :root:root .app .topbar { padding: 12px 0 10px; }
  :root:root .app .study-content { padding-top: 8px; padding-bottom: 4px; }
  :root:root .app .composer { padding-bottom: 14px; }
  :root:root:root .composer .rc-chips { padding-bottom: 10px; }
  :root:root:root .rc-compose textarea { min-height: 52px; padding: 10px 14px; }
  :root:root:root .rc-compose .send-button { width: 56px; min-width: 56px; height: 56px; }
  :root:root .app .compose-foot { padding-top: 8px; }
}
/* The question box grows with its text (script-driven), so it must not flex inside its column. */
:root:root:root .rc-compose textarea { flex: none; resize: none; max-height: none; }

/* Instructor console, detail tiles: the mock's small number cards. */
:root:root .explore-page[data-view="admin"] .admin-kpis { display: flex; flex-wrap: wrap; gap: 20px; }
:root:root .rc-admin-kpi-label { font-weight: 800; }
:root:root .explore-page[data-view="admin"] .admin-asof { margin: -12px 0 0; font-size: .9375rem; font-weight: 700; color: var(--rc-note); }
:root:root .explore-page[data-view="admin"] .report-section { display: flex; flex-direction: column; gap: 14px; }
:root:root .explore-page[data-view="admin"] .report-section > * { margin: 0; }
:root:root .explore-page[data-view="admin"] .report-section :is(h2, h3) { font-family: var(--cp-font-heading); font-weight: 700; font-size: 1.5rem; line-height: 1.15; }
:root:root .explore-page[data-view="admin"] .report-section h3 { font-size: 1.25rem; }
:root:root .explore-page[data-view="admin"] .report-section :is(p, .small, label, caption, li, summary) { font-size: .9375rem; font-weight: 700; line-height: 1.45; }
:root:root .explore-page[data-view="admin"] .report-section label { font-weight: 800; }
:root:root .explore-page[data-view="admin"] .rc-admin-table caption { padding: 10px 14px; text-align: left; color: var(--rc-note); background: var(--rc-card); }
:root:root .explore-page[data-view="admin"] .admin-table { min-width: 980px; font-size: .9375rem; }
:root:root .explore-page[data-view="admin"] .rc-admin-table :is(th, td) { vertical-align: middle; }
:root:root .explore-page[data-view="admin"] .rc-admin-table tfoot :is(th, td) { border-top: 3px solid var(--rc-line); background: var(--cp-surface-soft); font-weight: 800; }
:root:root:root .explore-page[data-view="admin"] .admin-table .sort-button { min-height: 44px; padding: 0; color: inherit; font-family: var(--cp-font-body); font-size: inherit; font-weight: 800; }
:root:root .explore-page[data-view="admin"] .rc-admin-actions { white-space: nowrap; }
:root:root .explore-page[data-view="admin"] .rc-admin-actions .rc-btn + .rc-btn { margin-left: 8px; }
:root:root .explore-page[data-view="admin"] .status-paused { color: inherit; font-weight: 800; text-decoration: underline dashed; }
:root:root .explore-page[data-view="admin"] .admin-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
:root:root:root .explore-page[data-view="admin"] .admin-filters .rc-input { width: auto; flex: 0 1 240px; }
:root:root:root .explore-page[data-view="admin"] textarea.rc-input { max-width: 520px; min-height: 140px; padding: 12px 16px; font-family: var(--cp-mono); }
:root:root .explore-page[data-view="admin"] .admin-invite form { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
:root:root .explore-page[data-view="admin"] .admin-pool-fill { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 16px; border: 3px dashed var(--rc-line); border-radius: 18px; background: none; }
:root:root .explore-page[data-view="admin"] .admin-pool-fill > * { margin: 0; }
:root:root .explore-page[data-view="admin"] .admin-pool-fill-row { gap: 10px 14px; }
:root:root:root .explore-page[data-view="admin"] .admin-pool-fill-row .rc-input { width: 150px; min-width: 0; }
:root:root .explore-page[data-view="admin"] .admin-pool-actions { gap: 8px; }
:root:root .explore-page[data-view="admin"] .admin-more .rc-p { flex: 1 1 320px; margin: 0; }
:root:root .explore-page[data-view="admin"] .admin-chart .rc-labelled > div:first-child { align-items: center; flex-wrap: wrap; }

/* ================================================================ Exam simulation (the question screen plus a map) */
:root:root .rc-quiz-flag { width: 16px; height: 20px; fill: var(--tinta-highlight); stroke: var(--tinta-ink); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
:root:root .rc-examsim-map { gap: 12px; }
:root:root .rc-examsim .exam-nav { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
:root:root:root .rc-examsim .exam-nav-item { position: relative; width: 48px; min-width: 48px; height: 48px; min-height: 48px; padding: 0; margin: 0; border: 3px solid var(--tinta-ink); border-radius: 14px;
  background: var(--tinta-white); color: var(--tinta-ink); font-family: var(--cp-font-display); font-weight: 400; font-size: 1.0625rem; box-shadow: 0 3px 0 var(--rc-hard); outline-offset: 3px; }
:root:root:root .rc-examsim .exam-nav-item.is-answered { background: var(--tinta-accent); }
:root:root:root .rc-examsim .exam-nav-item.is-flagged { border-style: dashed; }
:root:root:root .rc-examsim .exam-nav-item.is-flagged::after { content: ""; position: absolute; top: -7px; right: -7px; width: 14px; height: 14px; box-sizing: border-box; border: 3px solid var(--tinta-ink); border-radius: 50%; background: var(--tinta-highlight); }
:root:root:root .rc-examsim .exam-nav-item[aria-current="step"] { background: var(--tinta-highlight); box-shadow: 0 6px 0 var(--rc-hard); transform: translateY(-3px); outline: 0; }
:root:root:root .rc-examsim .exam-nav-item:focus-visible { outline: 3px solid var(--rc-text); }
:root:root .rc-examsim .exam-summary { margin: 0; color: var(--rc-note); }
:root:root .rc-examsim-field { width: 100%; min-width: 0; margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 18px; box-sizing: border-box; }
:root:root .rc-examsim-field:focus { outline: 0; }
:root:root .rc-examsim .rc-quiz-form { align-items: stretch; }
:root:root .rc-examsim .rc-quiz-hint { text-align: left; margin: 0; }
:root:root .rc-examsim .mock-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); gap: 18px 20px; }
:root:root:root .rc-examsim .mock-option { display: flex; align-items: center; gap: 16px; min-height: 84px; margin: 0; padding: 16px 20px; box-sizing: border-box; border: 4px solid var(--tinta-ink); border-radius: 22px;
  background: var(--tinta-white); color: var(--tinta-ink); box-shadow: 6px 7px 0 var(--rc-hard); font-family: var(--cp-font-heading); font-weight: 600; font-size: 1.25rem; line-height: 1.25; }
:root:root:root .rc-examsim .mock-option:has(input:checked) { background: var(--tinta-highlight); }
:root:root:root .rc-examsim .mock-option:has(input:focus-visible) { outline: 3px solid var(--rc-text); outline-offset: 3px; }
:root:root:root .rc-examsim .mock-option:active { transform: translate(4px, 5px); box-shadow: 1px 1px 0 var(--rc-hard); }
:root:root .rc-examsim .mock-option input { flex: none; width: 24px; height: 24px; margin: 0; accent-color: var(--tinta-ink); }
:root:root .rc-examsim .mock-option span { min-width: 0; overflow-wrap: anywhere; }
:root:root .rc-examsim .exam-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 14px; margin: 0; }
:root:root .rc-examsim .exam-actions > :last-child { margin-left: auto; }
:root:root:root .rc-examsim .exam-flag { color: var(--tinta-ink); border-color: var(--tinta-ink); }
:root:root:root .rc-examsim .rc-btn:disabled { opacity: .45; cursor: not-allowed; }
:root:root .rc-examsim-end { gap: 16px 24px; }
:root:root .rc-examsim-end .rc-p { flex: 1 1 320px; margin: 0; }
:root:root .rc-examsim .exam-review { margin-top: 12px; }
@media (max-width: 640px) {
  :root:root:root .rc-examsim .mock-option { min-height: 68px; padding: 12px 14px; gap: 12px; font-size: 1.0625rem; }
  :root:root:root .rc-examsim .exam-nav-item { width: 44px; min-width: 44px; height: 44px; min-height: 44px; }
  :root:root .rc-examsim .exam-actions > :last-child { margin-left: 0; }
}

/* ================================================================ Type: one scale on every screen
   Three faces only: Bungee for shouts and figures, Fredoka for headings and buttons, Nunito for text.
   No small caps with tracking, nothing under 13px, and text in Nunito is 700 or heavier.
   The monospace face is kept for what people copy character by character (activation codes, username lists). */
:root:root:root :is(.eyebrow, .selected-path, .week-activity h3, .card-heading p, .catalogue-group h2, .stage-title, .goal-label, .tree-label, .case-study-label, .order-heading) {
  font-family: var(--cp-font-body); font-size: .875rem; font-weight: 800; letter-spacing: 0; text-transform: none; }
:root:root:root :is(.small, .tree-exam .small, .weak-domain .small, .path-steps .small, .goal-choices button .small, .report-section td .small, .tree-exam .button-link, .path-steps .button-link, .catalogue-card .button-link, .catalogue-card > a:last-child, .exam-meta, .exam-tag) { font-size: .875rem; font-weight: 700; }
:root:root:root :is(.streak-heading strong, .roadmap-count, .inventory-count, .score-tag, .milestone-count, #messageCount) { font-family: var(--cp-font-body); font-weight: 800; font-variant-numeric: tabular-nums; }
:root:root:root :is(.roadmap-count, .milestone-count) { font-size: .875rem; }
:root:root :where(a, summary) { font-weight: 700; }
:root:root .rc-error-label { font-size: .8125rem; }
:root:root .case-study-title { font-family: var(--cp-font-heading); font-weight: 600; font-size: 1.125rem; }
:root:root .case-study p { font-size: 1rem; font-weight: 600; }
:root:root .order-item { font-size: 1rem; font-weight: 700; }

/* Ajustes: how you sign in */
:root:root .rc-settings-side { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
:root:root .rc-settings-signin { gap: 14px; }
:root:root .rc-settings-signin .rc-fields { grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); }

/* Language of the questions: a small Español / English pair beside the exam code. */
:root:root:root .rc-choice.is-sm { min-height: 44px; padding: 0 14px; font-size: .9375rem; }

/* Hoy: what Nubi says today, a speech bubble with its tail towards Nubi. */
:root:root .rc-hoy-say { position: relative; align-self: flex-start; max-width: 34rem; margin: 0 0 2px; padding: 10px 16px; border: 3px solid var(--tinta-ink); border-radius: 18px;
  background: var(--tinta-white); color: var(--tinta-ink); font-family: var(--cp-font-heading); font-weight: 600; font-size: 1.125rem; line-height: 1.3; box-shadow: 4px 4px 0 var(--tinta-ink); }
:root:root .rc-hoy-say::before { content: ""; position: absolute; left: -11px; top: 50%; width: 16px; height: 16px; margin-top: -8px; box-sizing: border-box; background: var(--tinta-white);
  border-left: 3px solid var(--tinta-ink); border-bottom: 3px solid var(--tinta-ink); transform: rotate(45deg); }
@media (max-width: 640px) {
  :root:root .rc-hoy-say { font-size: 1rem; }
  :root:root .rc-hoy-say::before { left: 28px; top: -11px; margin-top: 0; transform: rotate(135deg); }
}
