/* ============ Watones Network · Portal del staff ============ */
:root {
  color-scheme: dark;
  --bg: #020914;
  --head: #061120;
  --panel-a: #0c1a2e;
  --panel-b: #071322;
  --field: #050f1f;
  --line: #294b67;
  --line-2: #355b7b;
  --text: #edf5ff;
  --muted: #b2c7df;
  --dim: #8ea6c2;
  --blue: #7ddffb;
  --blue-ink: #061722;
  --quiet: #103149;
  --good: #8ee6b0;
  --warn: #f3c874;
  --bad: #ff9bb3;
  --shadow: 0 14px 42px #00081088, 0 0 28px #12679118;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 15px/1.5 Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }
button:not(:disabled), summary, label.wn-agree, .wn-answer, .wx-option { cursor: pointer; }
button:disabled { cursor: not-allowed; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
h1:focus, h2:focus, h3:focus { outline: none; }
a { color: var(--blue); }

/* ---- Fondo espacial en todas las pantallas ---- */
.wn-sky { position: fixed; inset: 0; z-index: -1; background: var(--bg) url("/assets/nebulosa.webp") center / cover no-repeat; }
.wn-sky::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 40%, #02091400 0%, #0209143d 60%, #02091499 100%), linear-gradient(180deg, #02091422, #02091455); }
@media (max-width: 760px) { .wn-sky { background-image: url("/assets/nebulosa-movil.webp"); background-position: 30% center; } }

#wn-app { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; padding-bottom: env(safe-area-inset-bottom, 0px); }

/* ---- Cabecera y pie ---- */
.wn-topbar { position: sticky; top: 0; z-index: 10; display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: calc(16px + env(safe-area-inset-top, 0px)) max(22px, calc((100% - 1180px) / 2 + 38px)) 16px; background: color-mix(in srgb, var(--head) 94%, transparent); border-bottom: 1px solid #28475e; backdrop-filter: blur(6px); }
.wn-brand { display: flex; align-items: center; gap: 12px; min-width: 0; color: inherit; text-decoration: none; border-radius: 12px; }
.wn-brand:hover .wn-brandname { color: #fff; }
.wn-brand:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
.wn-logo { width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; box-shadow: 0 0 22px #61caff22; }
.wn-brandname { font-size: 16px; font-weight: 650; letter-spacing: -.3px; }
.wn-brandname span { color: var(--muted); font-weight: 400; }
.wn-brand-note { font-size: 11px; text-transform: uppercase; letter-spacing: 1.8px; color: var(--muted); }
.wn-top-right { display: flex; align-items: center; gap: 18px; }
.wn-top-note { color: var(--muted); font-size: 12px; white-space: nowrap; }
.wn-clock { display: flex; flex-direction: column; align-items: flex-end; padding: 5px 14px; border: 1px solid #335772; background: #0a1d32; border-radius: 10px; }
.wn-clock span { font-size: 11px; color: var(--muted); }
.wn-clock strong { font-size: 21px; line-height: 1.15; font-weight: 600; color: var(--blue); font-variant-numeric: tabular-nums; }
.wn-clock.low strong { color: var(--bad); }
.wn-cc-link { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line-2); border-radius: 999px; padding: 7px 13px 7px 11px; color: var(--text); text-decoration: none; font-size: 12px; font-weight: 600; background: #0a1d32; transition: border-color .15s, color .15s; white-space: nowrap; }
.wn-cc-link:hover { border-color: var(--blue); color: var(--blue); }
.wn-cc-link svg { width: 15px; height: 15px; flex: none; }
.wn-footer { margin-top: auto; padding: 16px max(22px, calc((100% - 1180px) / 2 + 38px)); border-top: 1px solid #243e55; background: color-mix(in srgb, var(--head) 90%, transparent); color: #b0c9df; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 11px; }

/* ---- Piezas comunes ---- */
.wn-panel, .wn-card { background: linear-gradient(145deg, var(--panel-a), var(--panel-b)); border: 1px solid var(--line-2); border-radius: 20px; box-shadow: var(--shadow); min-width: 0; }
.wn-panel { padding: 25px 27px 26px; position: relative; }
.wn-card { padding: 24px 26px; }
.wn-eyebrow { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 650; letter-spacing: 1.8px; color: var(--blue); text-transform: uppercase; margin: 0 0 16px; }
.wn-eyebrow::before { content: ""; width: 6px; height: 6px; background: var(--blue); border-radius: 50%; flex: none; }
h2 { font-size: 21px; line-height: 1.3; letter-spacing: -.5px; font-weight: 600; margin: 0 0 5px; }
.wn-subtitle { font-size: 13px; color: var(--muted); margin: 0 0 22px; }
.wn-field { margin: 0 0 17px; }
.wn-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.wn-label { display: block; margin-bottom: 7px; font-size: 12px; font-weight: 600; }
input[type="text"], input[type="password"], input[type="email"], select, .wn-textarea { width: 100%; min-width: 0; background: var(--field); border: 1px solid #2c4762; color: var(--text); border-radius: 9px; padding: 10px 12px; font-size: 14px; transition: border-color .15s; }
input[type="text"], input[type="password"], input[type="email"], select { height: 46px; }
input:hover, select:hover, .wn-textarea:hover { border-color: #6bacc9; }
input::placeholder, textarea::placeholder { color: #7f97b3; }
input[aria-invalid="true"] { border-color: var(--bad); }
.wn-textarea { min-height: 150px; line-height: 1.6; resize: vertical; display: block; }
.wn-error { color: var(--bad); font-size: 12px; margin: 6px 0 0; }
.wn-helper { color: var(--muted); font-size: 11px; margin: 6px 0 0; }
.wn-text-button { border: 0; padding: 4px 0; color: var(--blue); background: transparent; font-size: 11px; text-decoration: underline; text-underline-offset: 3px; }
.wn-help { color: var(--muted); background: var(--field); border-radius: 8px; padding: 11px 12px; margin: 0 0 12px; font-size: 12px; }
.wn-primary { display: flex; justify-content: center; align-items: center; gap: 10px; width: 100%; padding: 12px 16px; border: 1px solid #81e8ff; border-radius: 10px; font-weight: 600; font-size: 14px; color: var(--blue-ink); background: linear-gradient(110deg, #7ce2fa, #51c8f1); box-shadow: 0 4px 18px #23b8ed18; transition: filter .15s, transform .15s; }
.wn-primary:hover:not(:disabled) { filter: brightness(1.08); transform: translateY(-1px); }
.wn-primary:disabled { opacity: .4; }
.wn-primary svg { width: 17px; height: 17px; }
.wn-ghost { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line-2); background: transparent; color: var(--text); border-radius: 10px; padding: 10px 14px; font-weight: 600; font-size: 13px; white-space: nowrap; }
.wn-ghost:hover:not(:disabled) { border-color: #6bacc9; }
.wn-ghost.sm { padding: 7px 11px; font-size: 12px; }
.wn-ghost.danger { color: var(--bad); }
.wn-ghost svg { width: 15px; height: 15px; }
.wn-back { border: 0; background: transparent; color: var(--muted); padding: 11px 8px 0; font-size: 12px; width: 100%; text-decoration: underline; text-underline-offset: 3px; display: block; text-align: center; }
.wn-footnote { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 11px 0 0; font-size: 11px; color: var(--muted); text-align: center; }
.wn-note { background: var(--quiet); border: 1px solid #1f5572; border-radius: 10px; padding: 11px 13px; font-size: 12px; margin: 0 0 16px; }
.wn-sr { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wn-toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); max-width: min(92vw, 460px); background: #0c1a2e; color: var(--text); border: 1px solid var(--line-2); box-shadow: var(--shadow); border-radius: 12px; padding: 12px 16px; font-size: 13px; opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 50; }
.wn-toast.show { opacity: 1; }
.wn-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--field); border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.wn-pill.ok { color: var(--good); border-color: #2d6a4f; }
.wn-pill.no { color: var(--bad); border-color: #7a3448; }
.wn-pill.pend { color: var(--warn); border-color: #7a6130; }
.wn-pill.dispo { color: var(--blue); border-color: #1f5572; }
.wn-pill svg { width: 13px; height: 13px; }

/* ---- Portal ---- */
.wn-layout { width: 100%; max-width: 1180px; margin: 0 auto; flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) 440px; gap: 80px; padding: 44px 38px; align-items: center; align-content: center; }
.wn-intro { min-width: 0; text-shadow: 0 2px 12px #010813, 0 0 28px #010813; }
.wn-intro h1 { font-size: 58px; line-height: 1.08; letter-spacing: -2.4px; font-weight: 650; margin: 0 0 19px; }
.wn-intro h1 span { color: var(--blue); }
.wn-lead { color: #c6d6ea; max-width: 440px; margin: 0; font-size: 16px; line-height: 1.7; }
.wn-specs { display: flex; gap: 34px; margin: 30px 0 0; }
.wn-spec { display: flex; flex-direction: column; gap: 2px; }
.wn-spec strong { font-size: 28px; line-height: 1.2; font-weight: 550; letter-spacing: -.6px; }
.wn-spec span { font-size: 11px; color: var(--muted); }
.wn-space { height: 290px; position: relative; margin-top: 18px; max-width: 560px; }
.wn-nebula { position: absolute; inset: 18px 0 0; background: radial-gradient(ellipse at 55% 56%, #7ddffb20, transparent 64%); }
.wn-stars { position: absolute; inset: 10px 4px; opacity: .7; background: radial-gradient(circle at 9% 47%, var(--blue) 1px, transparent 1.8px), radial-gradient(circle at 26% 18%, var(--muted) .8px, transparent 1.5px), radial-gradient(circle at 85% 26%, var(--text) 1px, transparent 1.8px), radial-gradient(circle at 38% 85%, var(--muted) 1px, transparent 1.8px), radial-gradient(circle at 72% 81%, var(--blue) 1px, transparent 1.8px), radial-gradient(circle at 88% 65%, var(--muted) .8px, transparent 1.5px), radial-gradient(circle at 14% 76%, var(--muted) .8px, transparent 1.5px); animation: wn-twinkle 7s ease-in-out infinite alternate; }
.wn-orbit { width: 74%; height: 140px; position: absolute; left: 13%; top: 96px; border: 1px solid #7ddffb38; border-radius: 50%; transform: rotate(-23deg); }
.wn-orbit::after { content: ""; position: absolute; width: 5px; height: 5px; border-radius: 50%; background: var(--blue); bottom: 8px; left: 22%; box-shadow: 0 0 12px #7ddffb66; }
.wn-astro-track { position: absolute; top: 20px; left: calc(50% - 118px); transition: transform .2s ease-out; }
.wn-astronaut { display: block; width: 236px; height: auto; filter: drop-shadow(0 0 16px #66c8fa22); animation: wn-float 5s ease-in-out infinite; }
.wn-space-caption { position: absolute; bottom: 0; width: 100%; text-align: center; font-size: 11px; letter-spacing: 1.4px; color: var(--muted); text-transform: uppercase; }
.wn-steps { display: flex; align-items: center; gap: 9px; font-size: 11px; color: var(--muted); margin-bottom: 23px; }
.wn-step { display: flex; align-items: center; gap: 6px; }
.wn-step-num { width: 21px; height: 21px; display: grid; place-items: center; border-radius: 50%; background: var(--field); }
.wn-step[aria-current="step"] { color: var(--text); }
.wn-step[aria-current="step"] .wn-step-num { background: var(--blue); color: var(--blue-ink); }
.wn-step-divider { height: 1px; flex: 1; min-width: 10px; background: var(--line); }
.wn-rulebox { margin-top: 22px; padding-top: 15px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.wn-rulebox summary { color: var(--text); padding: 6px 0; font-size: 12px; }
.wn-rulebox ul { padding-left: 18px; margin: 8px 0 0; }
.wn-rulebox li { margin-bottom: 8px; }
.wn-review { background: var(--field); padding: 15px; border-radius: 10px; margin: 20px 0; border: 1px solid #1c3650; }
.wn-review-label { font-size: 11px; color: var(--muted); margin: 0; }
.wn-review-name { font-size: 16px; margin: 3px 0; font-weight: 600; overflow-wrap: anywhere; }
.wn-review-id { font-size: 12px; color: var(--muted); margin: 0; overflow-wrap: anywhere; }
.wn-conditions { padding: 0; margin: 18px 0; list-style: none; }
.wn-conditions li { display: flex; gap: 10px; font-size: 12px; color: var(--muted); margin: 0 0 14px; }
.wn-condition-num { color: var(--blue); font-size: 12px; }
.wn-conditions strong { color: var(--text); font-weight: 550; }
.wn-agree { display: flex; align-items: start; gap: 9px; margin: 18px 0; font-size: 12px; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--blue); flex-shrink: 0; margin-top: 4px; }
.wn-warn { color: var(--bad); font-size: 12px; margin: 0 0 14px; }

/* ---- Examen (diseño nebulosa) ---- */
#wn-exam { width: 100%; max-width: 1280px; margin: 0 auto; flex: 1; }
.wx-mission { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 24px 35px 13px; min-height: 153px; }
.wx-mission-copy { min-width: 0; text-shadow: 0 2px 12px #010813, 0 0 28px #010813; }
.wx-mission p { margin: 0 0 5px; color: #80ddf5; font-size: 11px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; }
.wx-mission h2 { margin: 0; font-size: 29px; font-weight: 600; line-height: 1.3; letter-spacing: -.6px; }
.wx-astronaut { width: 137px; height: auto; flex: 0 0 auto; filter: drop-shadow(0 0 16px #66c8fa22); transform: rotate(8deg); margin-right: 45px; animation: wn-float 6s ease-in-out infinite; }
.wx-layout { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 24px; padding: 13px 28px 29px; }
.wx-work { background: linear-gradient(145deg, var(--panel-a), var(--panel-b)); border: 1px solid var(--line-2); border-radius: 20px; box-shadow: var(--shadow); padding: 30px; min-width: 0; }
.wx-meta { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; color: var(--muted); font-size: 13px; }
.wx-section { color: var(--blue); font-weight: 600; }
.wx-work h1 { font-size: 27px; line-height: 1.45; font-weight: 600; letter-spacing: -.6px; margin: 0 0 12px; }
.wx-hint { color: var(--muted); font-size: 14px; margin: 0 0 24px; }
.wx-work fieldset { padding: 0; margin: 0; border: 0; min-width: 0; }
.wx-option { display: flex; align-items: flex-start; gap: 13px; padding: 17px 18px; border: 1px solid #2c4762; border-radius: 11px; margin: 0 0 12px; background: var(--field); font-size: 17px; line-height: 1.6; transition: border-color .15s, background-color .15s; }
.wx-option:hover { border-color: #6bacc9; }
.wx-option:has(input:checked) { background: #103249; border-color: var(--blue); }
.wx-option input { width: 18px; height: 18px; flex: 0 0 18px; margin: 5px 0 0; }
.wx-work textarea { width: 100%; resize: vertical; min-height: 215px; padding: 17px; background: var(--field); border: 1px solid #2c4762; border-radius: 11px; color: var(--text); font-size: 17px; line-height: 1.7; }
.wx-count { font-size: 12px; color: var(--muted); text-align: right; margin: 6px 0 0; }
.wx-mark { color: var(--muted); background: transparent; border: 0; padding: 8px 0; font-size: 14px; min-height: 44px; }
.wx-mark[aria-pressed="true"] { color: var(--blue); }
.wx-mark-help { color: var(--muted); font-size: 12px; margin: 0 0 8px; }
.wx-actions { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 22px; margin-top: 20px; }
.wx-button { border: 1px solid var(--line); background: transparent; color: var(--text); padding: 11px 17px; border-radius: 9px; min-height: 46px; font-size: 14px; font-weight: 550; }
.wx-button:hover:not(:disabled) { border-color: #6bacc9; }
.wx-button:disabled { opacity: .4; }
.wx-primary { background: linear-gradient(110deg, #7ce2fa, #51c8f1); border-color: #81e8ff; color: var(--blue-ink); box-shadow: 0 4px 18px #23b8ed18; }
.wx-primary:hover:not(:disabled) { background: #a1edff; }
.wx-feedback { color: var(--muted); font-size: 12px; min-height: 20px; margin: 14px 0 0; }
.wx-side { background: linear-gradient(150deg, #0b1a2d, var(--panel-b)); border: 1px solid #355873; border-radius: 17px; padding: 21px 18px; align-self: start; box-shadow: 0 12px 32px #00000030; position: sticky; top: 96px; }
.wx-side h2 { font-size: 16px; margin: 0 0 12px; font-weight: 600; }
.wx-track { height: 5px; border-radius: 4px; background: var(--line); margin: 12px 0 8px; overflow: hidden; }
.wx-fill { height: 100%; background: var(--blue); width: 0; transition: width .25s; }
.wx-sub { font-size: 12px; color: var(--muted); }
.wx-navigation { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 18px 0 14px; }
.wx-number { aspect-ratio: 1; border: 1px solid var(--line); border-radius: 9px; background: #061222; color: var(--text); position: relative; font-size: 13px; padding: 0; }
.wx-number:hover { border-color: #6bacc9; }
.wx-number[data-answered="true"] { color: var(--good); }
.wx-number[aria-current="step"] { border: 2px solid var(--blue); background: var(--quiet); color: var(--blue); }
.wx-number[data-marked="true"]::after { content: "★"; position: absolute; right: 2px; top: -9px; font-size: 13px; color: var(--blue); }
.wx-legend { margin-bottom: 18px; font-size: 12px; line-height: 2; color: var(--muted); }
.wx-side .wx-button { width: 100%; }
.wx-side-note { border-top: 1px solid var(--line); padding-top: 16px; margin: 18px 0 0; font-size: 13px; color: var(--muted); }
.wx-review-item { padding: 18px 0; border-bottom: 1px solid var(--line); }
.wx-review-item strong { font-weight: 600; }
.wx-review-item p { margin: 8px 0; font-size: 15px; color: var(--muted); overflow-wrap: anywhere; white-space: pre-wrap; }
.wx-review-item p.empty { color: var(--bad); }
.wx-review-item .wx-button { margin-top: 4px; min-height: 38px; padding: 7px 13px; font-size: 13px; }

/* ---- Acceso del staff ---- */
.wn-admin { width: 100%; max-width: 1180px; margin: 0 auto; padding: 36px 38px 32px; flex: 1; }
.wn-admin.is-auth { display: grid; place-items: center; padding-top: 24px; padding-bottom: 28px; }
.wn-auth { width: 100%; max-width: 430px; display: flex; flex-direction: column; align-items: center; }
.wn-auth-head { position: relative; width: 100%; height: 128px; margin-bottom: -2px; pointer-events: none; }
.wn-auth-glow { position: absolute; left: 50%; top: 58%; width: 300px; height: 150px; transform: translate(-50%, -50%); background: radial-gradient(ellipse at center, #7ddffb2e, transparent 70%); }
.wn-auth-astro { position: absolute; left: 50%; top: 6px; width: 128px; margin-left: -64px; height: auto; filter: drop-shadow(0 0 18px #66c8fa33); animation: wn-float 5s ease-in-out infinite; }
.wn-auth-card { width: 100%; text-align: left; padding: 28px 30px 24px; }
.wn-auth-logo { display: block; width: 58px; height: 58px; margin: 0 auto 14px; border-radius: 50%; box-shadow: 0 0 0 3px #7ddffb33, 0 0 24px #61caff33; }
.wn-auth-card h2 { text-align: center; font-size: 25px; letter-spacing: -.7px; margin-bottom: 4px; }
.wn-auth-card .wn-subtitle { text-align: center; font-size: 14px; margin-bottom: 24px; }
.wn-auth-card .wn-eyebrow { justify-content: center; margin-bottom: 10px; }
.wn-ifield { position: relative; }
.wn-ifield > svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.wn-ifield input { padding-left: 42px; }
.wn-ifield.has-eye input { padding-right: 48px; }
.wn-eye { position: absolute; right: 5px; top: 50%; transform: translateY(-50%); width: 38px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 8px; background: transparent; color: var(--muted); }
.wn-eye:hover { color: var(--text); background: var(--quiet); }
.wn-eye svg { width: 18px; height: 18px; }
.wn-auth-link-row { display: flex; justify-content: flex-end; margin: -6px 0 16px; }
.wn-auth-sep { border: 0; border-top: 1px solid var(--line); margin: 22px 0 16px; }
.wn-auth-alt { text-align: center; font-size: 13px; color: var(--muted); margin: 0; }
.wn-auth-alt button { border: 0; background: transparent; color: var(--blue); font-weight: 600; padding: 4px; }
.wn-auth-icon { display: block; width: 76px; height: 76px; margin: 2px auto 14px; color: var(--blue); filter: drop-shadow(0 0 14px #7ddffb44); }
.wn-info { display: flex; gap: 11px; align-items: flex-start; background: var(--field); border: 1px solid var(--line-2); border-radius: 12px; padding: 13px 14px; font-size: 13px; color: var(--muted); margin: 0 0 16px; }
.wn-info svg { width: 20px; height: 20px; color: var(--blue); flex: none; margin-top: 1px; }
.wn-center { display: flex; justify-content: center; margin: 0 0 16px; }
.wn-stack { display: grid; gap: 10px; }
.wn-auth-foot { display: flex; justify-content: center; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); margin: 0; }
.wn-auth-foot svg { width: 16px; height: 16px; }
.wn-code { text-align: center; letter-spacing: 8px; font-size: 22px !important; font-variant-numeric: tabular-nums; font-weight: 600; }
.wn-qr { background: #fff; border-radius: 12px; padding: 10px; width: 188px; height: 188px; margin: 0 auto 12px; display: grid; place-items: center; }
.wn-qr img { width: 168px; height: 168px; image-rendering: pixelated; }
.wn-secret { display: flex; gap: 8px; align-items: center; background: var(--field); border: 1px dashed var(--line-2); border-radius: 10px; padding: 9px 10px 9px 12px; margin: 0 0 16px; }
.wn-secret code { flex: 1; font: 600 13px/1.4 ui-monospace, Menlo, Consolas, monospace; letter-spacing: 1px; overflow-wrap: anywhere; }
.wn-steps-list { list-style: none; padding: 0; margin: 0 0 16px; counter-reset: s; }
.wn-steps-list li { counter-increment: s; display: flex; gap: 10px; font-size: 13px; color: var(--muted); margin: 0 0 9px; }
.wn-steps-list li::before { content: "0" counter(s); color: var(--blue); font-size: 12px; font-weight: 600; }

/* ---- Panel del staff ---- */
.wn-admin-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin: 0 0 22px; }
.wn-admin-title { display: flex; align-items: center; gap: 16px; }
.wn-admin-title img { width: 74px; height: auto; filter: drop-shadow(0 0 14px #66c8fa33); animation: wn-float 6s ease-in-out infinite; }
.wn-admin-head h1 { font-size: 36px; letter-spacing: -1.3px; margin: 0 0 4px; font-weight: 650; line-height: 1.1; }
.wn-admin-head p { margin: 0; color: var(--muted); font-size: 14px; }
.wn-admin-head .wn-eyebrow { margin-bottom: 8px; }
.wn-head-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.wn-me { display: flex; align-items: center; gap: 10px; padding: 5px 12px 5px 5px; border: 1px solid var(--line); border-radius: 999px; background: #0a1d32; }
.wn-me b { font-size: 13px; }
.wn-avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #13304a; color: var(--text); font-weight: 600; font-size: 13px; flex: none; text-transform: uppercase; }
.wn-tabs { display: flex; gap: 6px; margin: 0 0 20px; padding: 6px; overflow-x: auto; background: linear-gradient(145deg, var(--panel-a), var(--panel-b)); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: 0 10px 28px #00000040; }
.wn-tab { border: 1px solid transparent; background: transparent; color: #a9c0d8; padding: 10px 16px; font-size: 14px; font-weight: 600; border-radius: 10px; display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.wn-tab:hover { color: var(--text); background: #0d2238; }
.wn-tab[aria-selected="true"] { color: var(--text); background: #123150; border-color: #3a6c93; box-shadow: inset 0 -2px 0 var(--blue); }
.wn-badge { font-size: 11px; min-width: 20px; text-align: center; padding: 1px 7px; border-radius: 999px; background: var(--field); color: var(--muted); font-weight: 600; }
.wn-badge.hot { background: var(--blue); color: var(--blue-ink); }
.wn-card h2 { font-size: 17px; }
.wn-card-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0 0 16px; flex-wrap: wrap; }
.wn-card-row h2 { margin: 0; }
.wn-card-title { display: flex; align-items: center; gap: 10px; }
.wn-card-title svg { width: 20px; height: 20px; }
.wn-card-title small { display: block; color: var(--muted); font-size: 12px; font-weight: 400; }
.wn-inv-grid { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 20px; align-items: start; }
.wn-toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 0 0 14px; }
.wn-toolbar input { flex: 1 1 220px; height: 40px; }
.wn-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.wn-chip { border: 1px solid var(--line); background: transparent; color: var(--muted); border-radius: 999px; padding: 6px 12px; font-size: 12px; font-weight: 500; }
.wn-chip:hover { color: var(--text); }
.wn-chip[aria-pressed="true"] { background: var(--quiet); color: var(--blue); border-color: #2e7194; }
.wn-rows { list-style: none; margin: 0; padding: 0; }
.wn-rows li + li { border-top: 1px solid var(--line); }
.wn-rowbtn { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 14px; align-items: center; width: 100%; padding: 13px 8px; border: 0; border-radius: 8px; background: transparent; color: var(--text); text-align: left; }
.wn-rowbtn:hover { background: #0a1d32; }
.wn-rowbtn .who strong { display: block; font-size: 14px; font-weight: 600; }
.wn-rowbtn .meta { display: block; font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.wn-rowbtn .score { font-size: 17px; font-weight: 650; font-variant-numeric: tabular-nums; text-align: right; }
.wn-rowbtn .score small { display: block; font-size: 11px; color: var(--muted); font-weight: 500; }
.wn-flag { color: var(--warn); }
.wn-empty { color: var(--muted); font-size: 13px; margin: 4px 0; }
.wn-tablewrap { overflow-x: auto; }
.wn-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.wn-table th, .wn-table td { text-align: left; padding: 12px 10px 12px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.wn-table th { color: var(--muted); font-weight: 600; font-size: 12px; }
.wn-table .r { text-align: right; }
.wn-table .mono { font-variant-numeric: tabular-nums; letter-spacing: .5px; font-weight: 600; }
.wn-sub { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; }
.wn-actions-cell { display: flex; gap: 6px; justify-content: flex-end; }
.wn-mini { border: 1px solid var(--line); background: transparent; color: var(--text); border-radius: 7px; padding: 5px 9px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.wn-mini:hover:not(:disabled) { border-color: #6bacc9; }
.wn-mini.danger { color: var(--bad); }
.wn-mini.confirm { background: var(--bad); color: #1a0710; border-color: transparent; }
.wn-keybox { background: var(--field); border: 1px solid #1c3650; border-radius: 12px; padding: 16px; margin-top: 16px; }
.wn-keyout { font-size: 28px; font-weight: 650; letter-spacing: 1.5px; color: var(--blue); margin: 0 0 4px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.wn-btnrow { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.wn-btnrow .wn-primary { width: auto; flex: 1; }
.wn-btnrow .wn-ghost { flex: 1; }

/* Miembros */
.wn-members td { padding: 14px 12px 14px 0; }
.wn-user { display: flex; align-items: center; gap: 11px; }
.wn-user b { font-weight: 600; }
.wn-role { display: inline-flex; align-items: center; gap: 8px; }
.wn-role svg { width: 16px; height: 16px; }
.wn-role-badge { font-size: 10px; font-weight: 700; letter-spacing: 1px; padding: 3px 8px; border-radius: 5px; border: 1px solid; text-transform: uppercase; }
.wn-role.owner { color: #f0b54a; } .wn-role.owner .wn-role-badge { color: #f0b54a; border-color: #6d5122; background: #2a2010; }
.wn-role.admin { color: #7aa7ff; } .wn-role.admin .wn-role-badge { color: #8fb3ff; border-color: #2e4a86; background: #0f1b38; }
.wn-role.member { color: var(--muted); } .wn-role.member .wn-role-badge { color: var(--muted); border-color: var(--line); background: #0a1627; }
.wn-date { display: inline-flex; align-items: center; gap: 7px; }
.wn-date svg { width: 15px; height: 15px; color: var(--muted); }
.wn-menu-wrap { position: relative; display: inline-block; }
.wn-dots { border: 0; background: transparent; color: var(--muted); width: 34px; height: 30px; border-radius: 7px; font-size: 18px; line-height: 1; }
.wn-dots:hover { background: #0a1d32; color: var(--text); }
.wn-menu { position: fixed; z-index: 60; min-width: 250px; background: #0b1829; border: 1px solid var(--line-2); border-radius: 12px; box-shadow: var(--shadow); padding: 6px; }
.wn-menu button { display: flex; width: 100%; text-align: left; border: 0; background: transparent; color: var(--text); padding: 9px 10px; border-radius: 8px; font-size: 13px; }
.wn-menu button:hover { background: var(--quiet); }
.wn-menu button.danger { color: var(--bad); }
.wn-menu p { margin: 6px 10px; font-size: 12px; color: var(--muted); }
.wn-pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 16px; font-size: 13px; color: var(--muted); }
.wn-pager b { color: var(--text); }
.wn-pages { display: flex; gap: 6px; }
.wn-pages button { width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 9px; background: transparent; }
.wn-pages button[aria-current="page"] { border-color: var(--line-2); background: #0a1d32; }
.wn-pager select { width: auto; height: 38px; padding: 0 10px; }
.wn-modal { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 20px; background: #020914b3; backdrop-filter: blur(4px); }
.wn-modal .wn-card { width: 100%; max-width: 440px; }
.wn-check { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--field); font-size: 13px; margin: 0 0 16px; }
.wn-check small { display: block; color: var(--muted); }

/* ---- Evaluación ---- */
.ev-top { position: sticky; top: 73px; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 12px 16px; margin: 0 0 18px; border-radius: 16px; background: #071322f2; border: 1px solid var(--line-2); box-shadow: 0 10px 30px #00081066; backdrop-filter: blur(6px); }
.ev-who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ev-who strong { font-size: 16px; }
.ev-astro { width: 46px; height: auto; margin-left: 4px; filter: drop-shadow(0 4px 10px #0008); animation: wn-bob 5s ease-in-out infinite; }
@keyframes wn-bob { 0%,100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-4px) rotate(3deg); } }
@media (prefers-reduced-motion: reduce) { .ev-astro { animation: none; } }
@media (max-width: 640px) { .ev-astro { display: none; } }
.ev-who .meta { display: block; font-size: 12px; color: var(--muted); }
.ev-score { display: flex; gap: 18px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.ev-score b { color: var(--text); font-size: 14px; font-variant-numeric: tabular-nums; }
.ev-score .pend b { color: var(--warn); }
.ev-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ev-saved { font-size: 12px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.ev-saved::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--good); }
.ev-saved.saving::before { background: var(--warn); }
.ev-saved.error::before { background: var(--bad); }
.ev-actions .wn-primary { width: auto; padding: 10px 16px; }
.ev-body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.ev-main { min-width: 0; display: grid; gap: 16px; }
.ev-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.ev-card { background: linear-gradient(145deg, var(--panel-a), var(--panel-b)); border: 1px solid var(--line-2); border-radius: 18px; padding: 22px 24px; scroll-margin-top: 150px; }
.ev-card.is-done { border-color: #2d6a4f; }
.ev-card-head { display: flex; justify-content: space-between; gap: 10px; align-items: center; margin: 0 0 10px; font-size: 12px; color: var(--muted); }
.ev-card h3 { font-size: 18px; line-height: 1.45; margin: 0 0 14px; font-weight: 600; }
.ev-answer { background: var(--field); border: 1px solid #1c3650; border-radius: 12px; padding: 16px 18px; font-size: 16px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; margin: 0 0 16px; }
.ev-answer.empty { color: var(--muted); font-style: italic; }
.ev-label { font-size: 11px; font-weight: 650; letter-spacing: 1.6px; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.ev-criteria { margin: 0 0 18px; }
.ev-criteria ul { margin: 0; padding-left: 18px; color: #c6d6ea; font-size: 14px; line-height: 1.65; }
.ev-grade { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 0 16px; }
.ev-grade button { border: 1px solid var(--line); background: var(--field); border-radius: 11px; padding: 10px 8px; text-align: center; color: var(--muted); }
.ev-grade button b { display: block; font-size: 20px; color: var(--text); line-height: 1.2; }
.ev-grade button:hover { border-color: #6bacc9; }
.ev-grade button[aria-pressed="true"] { border-color: var(--text); background: #13304a; color: var(--text); }
.ev-notes { min-height: 84px; font-size: 14px; }
.ev-card-foot { display: flex; justify-content: flex-end; margin-top: 14px; }
.ev-q { padding: 14px 0; border-top: 1px solid var(--line); }
.ev-q:first-of-type { border-top: 0; }
.ev-q p { margin: 0 0 6px; font-size: 14px; }
.ev-q .q { font-weight: 600; font-size: 15px; }
.ev-q .m { color: var(--muted); }
.ev-q .ok { color: var(--good); font-weight: 600; }
.ev-q .ko { color: var(--bad); font-weight: 600; }
.ev-fold { border: 1px solid var(--line); border-radius: 14px; background: #071322cc; }
.ev-fold > summary { padding: 14px 18px; font-weight: 600; font-size: 14px; display: flex; justify-content: space-between; gap: 10px; }
.ev-fold > div { padding: 0 18px 8px; }
.ev-side { display: grid; gap: 14px; position: sticky; top: 170px; }
.ev-side .wn-card { padding: 18px 20px; }
.ev-kv { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; font-size: 13px; margin: 0; }
.ev-kv dt { color: var(--muted); }
.ev-kv dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.ev-kv dd.pend { color: var(--warn); }
.ev-kv dd.flag { color: var(--warn); font-weight: 600; }
.ev-sep { border: 0; border-top: 1px solid var(--line); margin: 12px 0; }
.ev-details > summary { font-weight: 600; font-size: 14px; padding: 2px 0; }
.ev-exits { list-style: none; padding: 0; margin: 10px 0; font-size: 12px; color: var(--muted); }
.ev-exits li { padding: 6px 0; border-top: 1px dashed var(--line); }
.ev-final .wn-card { padding: 22px 24px; }
.ev-seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; background: var(--field); border-radius: 10px; padding: 4px; margin: 0 0 14px; }
.ev-seg button { border: 0; background: transparent; color: var(--muted); border-radius: 7px; padding: 8px 6px; font-size: 12px; font-weight: 600; }
.ev-seg button[aria-pressed="true"] { background: #13304a; color: var(--text); }
.ev-seg button[aria-pressed="true"].ok { color: var(--good); }
.ev-seg button[aria-pressed="true"].no { color: var(--bad); }
.ev-banner { display: flex; gap: 10px; align-items: center; border-radius: 12px; padding: 12px 14px; font-size: 13px; margin: 0 0 14px; border: 1px solid; }
.ev-banner svg { width: 20px; height: 20px; flex: 0 0 20px; }
.ev-banner.ok { color: var(--good); border-color: #2d6a4f; background: #0d241b; }
.ev-banner.no { color: var(--bad); border-color: #7a3448; background: #2a0f18; }
.ev-rubric { font-size: 12px; color: var(--muted); margin: 0; }

/* ---- Animaciones ---- */
@keyframes wn-float { 0%, 100% { transform: translateY(3px) rotate(-3deg); } 50% { transform: translateY(-8px) rotate(1deg); } }
@keyframes wn-twinkle { from { opacity: .45; } to { opacity: .9; } }
.is-exam .wn-astronaut, .is-exam .wn-stars { animation-play-state: paused; }

/* ---- Pantallas medianas ---- */
@media (max-width: 1080px) {
  .ev-body { grid-template-columns: minmax(0, 1fr); }
  .ev-side { position: static; order: -1; }
}
@media (max-width: 999px) {
  .wn-layout { grid-template-columns: minmax(0, 1fr) minmax(340px, .95fr); gap: 38px; padding: 40px 30px 32px; }
  .wn-intro h1 { font-size: clamp(32px, 4.8vw, 49px); letter-spacing: -2px; }
  .wn-space { height: 222px; margin-top: 12px; }
  .wn-astronaut { width: 190px; }
  .wn-astro-track { left: calc(50% - 95px); top: 12px; }
  .wn-orbit { top: 70px; height: 112px; }
  .wn-spec strong { font-size: 24px; }
  .wn-specs { gap: 24px; margin-top: 25px; }
}
@media (max-width: 860px) {
  .wn-inv-grid { grid-template-columns: minmax(0, 1fr); }
  .wx-layout { grid-template-columns: minmax(0, 1fr); }
  .wx-side { position: static; grid-row: 1; }
  .wx-navigation { grid-template-columns: repeat(10, 1fr); }
  .wx-side-note, .wx-legend { display: none; }
}
/* ---- Celular ---- */
@media (max-width: 760px) {
  .wn-topbar { padding-left: 22px; padding-right: 22px; }
  .wn-top-note { display: none; }
  .wn-cc-link { padding: 8px; }
  .wn-cc-link span { display: none; }
  .wn-clock { padding: 4px 10px; }
  .wn-clock span { display: none; }
  .wn-layout { padding: 27px 22px; gap: 24px; grid-template-columns: minmax(0, 1fr); align-content: start; }
  .is-exam .wn-intro { display: none; }
  .wn-intro h1 { font-size: 37px; }
  .wn-space { height: 150px; max-width: 420px; margin: 10px auto 0; }
  .wn-astronaut { width: 136px; }
  .wn-astro-track { left: calc(50% - 68px); top: 0; }
  .wn-orbit { top: 33px; height: 84px; }
  .wn-space-caption { display: none; }
  .wn-panel { padding: 23px; }
  input[type="text"], input[type="password"], input[type="email"], select, textarea { font-size: 16px !important; }
  .wn-footer { padding: 17px 22px; }
  .wx-mission { padding: 20px 22px 4px; min-height: 120px; }
  .wx-mission h2 { font-size: 24px; }
  .wx-astronaut { width: 100px; margin-right: 0; }
  .wx-layout { padding: 12px 16px 24px; gap: 16px; }
  .wx-work { padding: 22px; }
  .wx-work h1 { font-size: 23px; }
  .wx-option { font-size: 16px; padding: 14px; }
  .wx-navigation { grid-template-columns: repeat(5, 1fr); }
  .wn-admin { padding: 24px 16px; }
  .wn-admin-head h1 { font-size: 28px; }
  .wn-admin-title img { width: 54px; }
  .wn-rowbtn { grid-template-columns: minmax(0, 1fr) auto; }
  .wn-rowbtn .wn-pill { grid-column: 1 / -1; justify-self: start; }
  .wn-card { padding: 20px; }
  .wn-auth-card { padding: 24px 20px 20px; }
  .ev-top { top: 64px; }
  .ev-card { padding: 18px; }
}
@media (max-width: 400px) {
  .wn-layout { padding: 24px 16px; }
  .wn-panel { padding: 20px 17px; }
  .wn-specs { gap: 22px; }
  .wn-spec strong { font-size: 23px; }
  .wn-steps { font-size: 10px; gap: 7px; }
  .wn-label-row { flex-wrap: wrap; gap: 0 8px; }
  .wx-mission h2 { font-size: 21px; }
  .wx-astronaut { width: 76px; }
  .wx-actions .wx-button { width: 100%; }
}
@media (pointer: coarse) {
  .wn-primary, .wn-ghost, .wx-button, summary { min-height: 44px; }
  .wn-agree, .wn-answer { min-height: 44px; align-items: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .wn-astro-track { transform: none !important; }
}
/* Móvil: navegación de preguntas compacta para que la pregunta quede a la vista */
@media (max-width: 860px) {
  .wx-navigation { grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 6px; margin: 14px 0 12px; }
  .wx-number { aspect-ratio: auto; height: 34px; border-radius: 8px; font-size: 12px; }
  .wx-side { padding: 16px; }
}
/* Móvil: la tabla de miembros muestra Usuario, Rol y Acciones sin desplazarse de lado */
@media (max-width: 640px) {
  .wn-members th:nth-child(3), .wn-members td:nth-child(3),
  .wn-members th:nth-child(4), .wn-members td:nth-child(4),
  .wn-members th:nth-child(5), .wn-members td:nth-child(5) { display: none; }
  .wn-members { min-width: 0 !important; width: 100%; }
  .wn-members td:first-child { max-width: 54vw; }
  .wn-members .wn-user b, .wn-members .wn-sub { overflow-wrap: anywhere; }
}

/* ===== v3 ===== */
/* PC: cabecera y pie hasta las orillas de la pantalla. En celular se mantienen igual. */
@media (min-width: 1000px) {
  .wn-topbar, .wn-footer { padding-left: 32px; padding-right: 32px; }
}
/* Recordar el dispositivo */
.wn-remember { display: flex; align-items: center; gap: 10px; margin: -2px 0 12px; font-size: 13px; color: var(--text); cursor: pointer; }
.wn-remember input { width: 18px; height: 18px; accent-color: var(--blue); margin: 0; flex: 0 0 18px; }
.wn-info.ok { color: var(--good); border-color: #2d6a4f; background: #0d241b; }
.wn-info.ok svg { color: var(--good); }
/* Postulaciones: selección y borrado */
.wn-listbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 6px; min-height: 34px; }
#wn-selbar { display: flex; align-items: center; gap: 12px; }
.wn-selall { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); cursor: pointer; }
.wn-selall input, .wn-rowcheck input { width: 17px; height: 17px; accent-color: var(--blue); margin: 0; cursor: pointer; }
.wn-mini svg { width: 14px; height: 14px; vertical-align: -2px; margin-right: 4px; }
.wn-mini:disabled { opacity: .45; cursor: not-allowed; }
.wn-rows li.has-check { display: flex; align-items: center; gap: 4px; }
.wn-rows li.has-check .wn-rowbtn { flex: 1; min-width: 0; }
.wn-rowcheck { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; flex: 0 0 34px; border-radius: 8px; cursor: pointer; }
.wn-rowcheck:hover { background: #0a1d32; }
.wn-primary.danger { background: linear-gradient(180deg, #ff8196, #e0506a); color: #1a0409; border-color: #ff8196; }
/* Evaluación: todas las preguntas, una por una */
.ev-qnav { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px; margin: 0 0 16px; background: linear-gradient(145deg, var(--panel-a), var(--panel-b)); border: 1px solid var(--line-2); border-radius: 14px; }
.ev-qnav button { width: 36px; height: 34px; border-radius: 8px; border: 1px solid var(--line); background: #061222; color: var(--text); font-size: 12px; font-weight: 600; }
.ev-qnav button.ok { border-color: #2d6a4f; color: var(--good); }
.ev-qnav button.ko { border-color: #7a3448; color: var(--bad); background: #1c0a12; }
.ev-qnav button.pend { border-color: #8a6a2c; color: #f3c874; }
.ev-qnav button.done { border-color: #2d6a4f; color: var(--good); }
.ev-qnav button:hover { border-color: #6bacc9; }
.ev-qcard.is-ko { border-color: #5a2a3a; }
.ev-opts { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 8px; }
.ev-opts li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: #06121f; color: #b9cbe0; font-size: 15px; }
.ev-opts li em { font-style: normal; font-size: 12px; font-weight: 600; white-space: nowrap; display: flex; align-items: center; gap: 5px; }
.ev-opts li em svg { width: 14px; height: 14px; }
.ev-opts li.hit { border-color: #2d6a4f; background: #0d241b; color: var(--text); }
.ev-opts li.hit em, .ev-opts li.want em { color: var(--good); }
.ev-opts li.miss { border-color: #7a3448; background: #2a0f18; color: var(--text); }
.ev-opts li.miss em { color: var(--bad); }
.ev-opts li.want { border-color: #2d6a4f; border-style: dashed; }
.ev-noans { color: #f3c874; font-size: 13px; margin: 0 0 10px; }
.ev-card.flash { box-shadow: 0 0 0 2px var(--blue), var(--shadow); transition: box-shadow .3s; }
@media (max-width: 640px) {
  .ev-opts li { flex-direction: column; align-items: flex-start; gap: 6px; font-size: 14px; }
  .ev-qnav button { width: calc((100% - 54px) / 10); min-width: 0; height: 32px; }
  .wn-tabs { border-radius: 12px; }
}
/* ===== v4: examen ===== */
/* Mientras responde, sin panel de progreso: la pregunta ocupa todo el ancho. */
.wx-layout.solo { grid-template-columns: minmax(0, 1fr); }
/* "Siguiente" bloqueado hasta responder */
.wx-button.is-locked { opacity: .45; cursor: not-allowed; box-shadow: none; filter: saturate(.6); }
.wx-primary.is-locked:hover { background: linear-gradient(110deg, #7ce2fa, #51c8f1); }
.wx-feedback.err { color: #ffb3c1; font-weight: 600; }
/* ===== Editor de preguntas ===== */
.wn-card-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 14px; }
.wn-card-top h2 { margin: 0; }
.qe-summary { display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #06121f; font-size: 14px; color: #b9cbe0; margin: 4px 0 16px; }
.qe-summary b { color: var(--text); }
.qe-settings { display: grid; grid-template-columns: 1fr 1fr auto; gap: 14px; align-items: end; }
.qe-settings .wn-primary { width: auto; }
.qe-sec-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.qe-sec-head h2 { margin: 0 0 2px; }
.qe-sec-actions, .qe-actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.qe-icon { width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--line); background: #061222; color: var(--text); font-size: 15px; line-height: 1; padding: 0; }
.qe-icon:hover:not(:disabled) { border-color: #6bacc9; }
.qe-icon:disabled { opacity: .35; cursor: not-allowed; }
.qe-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; counter-reset: qe; }
.qe-item { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #06121f; counter-increment: qe; }
.qe-item.off { opacity: .6; border-style: dashed; }
.qe-main { min-width: 0; flex: 1; }
.qe-q { margin: 0 0 6px; color: var(--text); font-size: 15px; line-height: 1.45; }
.qe-q::before { content: counter(qe) ". "; color: var(--muted); font-weight: 600; }
.qe-meta { margin: 0; display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; font-size: 12px; color: var(--muted); }
.qe-off { color: #f3c874; font-weight: 600; }
.qe-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin: 4px 0 8px; }
.qe-foot .wn-helper { margin: 0; }
.wn-ghost.danger { color: #ffb3c1; border-color: #7a3448; }
.wn-ghost.danger:hover { background: #2a0f18; }
.qe-modal { max-width: 640px; width: 100%; max-height: calc(100vh - 32px); overflow-y: auto; }
.qe-row { display: grid; grid-template-columns: 1.4fr 1.4fr .7fr; gap: 12px; margin: 12px 0 14px; }
select.wn-input { appearance: auto; }
.qe-opts { display: grid; gap: 8px; margin: 6px 0 10px; }
.qe-opt { display: flex; align-items: center; gap: 8px; }
.qe-opt .wn-input { flex: 1; min-width: 0; }
.qe-okwrap { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; flex: 0 0 34px; border-radius: 8px; cursor: pointer; }
.qe-okwrap input { width: 18px; height: 18px; accent-color: var(--good); margin: 0; cursor: pointer; }
@media (max-width: 640px) {
  .qe-settings, .qe-row { grid-template-columns: 1fr; }
  .qe-item { flex-direction: column; align-items: stretch; }
  .qe-actions { justify-content: flex-end; }
}
.wn-input { width: 100%; min-width: 0; height: 46px; background: var(--field); border: 1px solid #2c4762; color: var(--text); border-radius: 9px; padding: 10px 12px; font-size: 14px; }
.wn-input:hover { border-color: #6bacc9; }
.wn-input:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.wn-primary.sm { width: auto; padding: 7px 12px; font-size: 12px; }
.qe-modal .wn-textarea { min-height: 90px; }
.qe-modal .wn-btnrow .wn-ghost.danger { flex: 0 0 auto; margin-right: auto; }
.wn-modal .wn-card.qe-modal { max-width: 640px; width: 100%; }
.qe-optt { height: auto; min-height: 46px; resize: none; line-height: 1.45; padding: 12px; overflow: hidden; font-family: inherit; }
.qe-opt { align-items: flex-start; }
.qe-opt .qe-okwrap, .qe-opt .qe-icon { margin-top: 6px; }
