:root{font-family:system-ui,-apple-system,sans-serif;color:#25183b;background:#f6f4f9;font-synthesis:none;--ink:#25183b;--muted:#675a76;--purple:#6428be;--deep:#231337;--line:#e8e0ef;--light:#f2eafd;--white:#fff}
*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button{cursor:pointer}button:disabled{cursor:wait;opacity:.56}a{color:var(--purple)}:focus-visible{outline:3px solid #a661f4;outline-offset:3px}
.shell{display:grid;grid-template-columns:234px minmax(0,1fr);min-height:100dvh}.sidebar{background:var(--deep);color:#fff;display:flex;flex-direction:column;padding:32px 20px 22px;gap:20px}.brand{border:0;background:none;color:#fff;text-align:left;font-size:3rem;font-weight:900;letter-spacing:-.1em;line-height:.85;padding:0 0 16px 8px}.brand span{color:#caa3ff}.brand small{display:block;font-size:.57rem;letter-spacing:.44em;margin-top:10px;color:#dcc9f7}.side-label,.eyebrow{font-size:.69rem;font-weight:850;letter-spacing:.15em;text-transform:uppercase}.side-label{color:#bba5d2;margin:20px 8px -11px}.nav-button{display:flex;align-items:center;gap:.75rem;width:100%;border:0;border-radius:11px;color:#eadcf8;background:transparent;padding:12px;text-align:left;font-weight:670;margin-bottom:4px}.nav-button span{font-size:1.15rem;width:20px}.nav-button:hover,.nav-button[aria-current=page]{background:#ffffff17;color:white}.staff{margin-top:auto;border-top:1px solid #ffffff25;padding-top:17px;display:flex;align-items:center;gap:10px;min-width:0}.avatar{display:grid;place-items:center;flex:none;width:34px;height:34px;border-radius:11px;background:#6a3d9a;color:#fff;font-weight:800}.staff div{min-width:0}.staff small,.staff strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.staff small{color:#d1bcdf;font-size:.71rem}.staff strong{font-size:.8rem}
.topbar{height:65px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0 clamp(15px,4vw,48px);color:var(--muted);background:white;font-size:.83rem}.topbar b{color:#baa9c5;margin:0 5px}.content{max-width:1280px;margin:auto;padding:clamp(16px,4vw,48px);outline:none}.hero,.card{border-radius:22px;padding:clamp(20px,4vw,42px)}.hero{position:relative;overflow:hidden;background:radial-gradient(ellipse at 96% 5%,#613091,#291641 65%);color:white;isolation:isolate;margin-bottom:20px}.hero::before,.hero::after{content:"";position:absolute;z-index:-1;pointer-events:none;aspect-ratio:1;border:1px solid #d9b3ff66;border-radius:28%;width:340px;right:-65px;top:-158px;transform:rotate(32deg);box-shadow:0 0 0 20px #ac72e41a,0 0 0 42px #ac72e414,0 0 0 66px #ac72e411}.hero::after{width:190px;right:90px;top:130px;transform:rotate(-24deg);opacity:.65}.hero p{color:#e5d6f1;max-width:55ch}.hero .eyebrow{color:#dfbcff}.hero h1{max-width:14ch}.hero.compact h1{max-width:none}.card{background:white;border:1px solid var(--line);margin-bottom:16px;box-shadow:0 8px 30px #24133c06}.narrow{max-width:800px;margin-inline:auto}
h1,h2,h3,p{margin-top:0}h1{font-size:clamp(2rem,5.5vw,4.2rem);line-height:1;letter-spacing:-.065em;margin-bottom:15px;overflow-wrap:anywhere}h2{font-size:clamp(1.25rem,2.7vw,1.7rem);letter-spacing:-.035em;margin-bottom:8px}h3{margin-bottom:.45rem}p{line-height:1.55}.eyebrow{color:#7439ac;margin-bottom:11px}.muted,small{color:var(--muted)}.badge{display:inline-flex;align-items:center;gap:6px;border-radius:99px;padding:5px 10px;background:var(--light);color:#63369a;font-weight:750;font-size:.74rem;white-space:nowrap}.badge.live:before{content:"";width:6px;height:6px;border-radius:50%;background:#8d51c7}.badge.complete{background:#def6ec;color:#1c674d}.badge.review{background:#fff0d6;color:#825010}
.primary,.secondary{border:1px solid transparent;border-radius:10px;padding:10px 16px;font-weight:760;min-height:44px;display:inline-flex;align-items:center;justify-content:center;text-decoration:none}.primary{background:var(--purple);color:white}.primary:hover{background:#5322a1}.hero .primary{background:#ebd8ff;color:#30134a}.hero .primary:hover{background:#fff}.secondary{background:white;border-color:#d8c8e6;color:#593080}.secondary:hover{background:#f8f1ff}.actions,.between{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.between{justify-content:space-between}.metrics,.fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.metric{padding:18px 20px;border-radius:15px;background:white;border:1px solid var(--line);margin-bottom:16px}.metric strong{display:block;font-size:2rem;letter-spacing:-.05em}.metric span{color:var(--muted);font-size:.8rem}.fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.full{grid-column:1/-1}label{display:block;font-weight:700;font-size:.87rem;margin-bottom:6px}input:not([type=checkbox]),select,textarea{width:100%;min-width:0;padding:10px 11px;border:1px solid #cdbddc;border-radius:9px;background:#fefcff;color:var(--ink);min-height:44px}textarea{min-height:105px;resize:vertical}.check{display:flex;align-items:center;gap:8px}.check input{accent-color:var(--purple)}[hidden]{display:none!important}.notice{padding:12px 14px;border-radius:10px;background:var(--light);color:#4a2c6b;font-size:.9rem;margin:14px 0}.error{background:#fbe9ed;color:#8b2547}.filters{display:flex;align-items:end;gap:10px;flex-wrap:wrap;margin:18px 0}.filters label{margin:0}.filters .grow{flex:1;min-width:170px}.filters span{display:block;margin-bottom:6px}.records{display:grid;gap:8px}.record{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr) auto auto;align-items:center;gap:12px;text-align:left;color:var(--ink);background:#fcfaff;border:1px solid var(--line);padding:13px;border-radius:11px}.record:hover{border-color:#ab82d2;background:#f6effd}.record strong,.record small{display:block;overflow-wrap:anywhere}.record .arrow{color:#6d38a5;font-size:1.2rem}.empty{padding:23px;text-align:center;background:#faf7fe;border-radius:12px;color:var(--muted)}.pagination{margin-top:14px}.question h1{font-size:clamp(1.55rem,4vw,2.6rem);line-height:1.16;letter-spacing:-.035em}.progress-label{font-size:.8rem;font-weight:700;color:var(--muted)}progress{width:100%;height:10px;accent-color:var(--purple);margin:10px 0 22px}.choices{display:grid;gap:9px;margin:17px 0}.choice{border:1px solid var(--line);background:white;min-height:52px;text-align:left;border-radius:11px;padding:10px;color:var(--ink);display:flex;align-items:center;gap:10px}.choice[aria-pressed=true]{border-color:var(--purple);background:var(--light)}.letter{border-radius:7px;background:var(--light);color:#593080;display:grid;place-items:center;width:29px;height:29px;flex:none;font-size:.8rem;font-weight:800}audio{display:block;width:min(100%,380px);margin:10px 0}.answer-text{white-space:pre-wrap;overflow-wrap:anywhere;background:#faf7fd;padding:12px;border-radius:8px}.blocks{display:grid;gap:8px;margin:14px 0}.block{border-bottom:1px solid var(--line);padding:8px 0}.block small{display:block}.profile{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0}.profile dt{font-size:.74rem;color:var(--muted);font-weight:800;text-transform:uppercase;letter-spacing:.04em}.profile dd{margin:3px 0 0;overflow-wrap:anywhere}.exam .sidebar,.exam .topbar{display:none}.exam .shell{display:block}.exam .workspace{min-height:100dvh}.exam .content{padding-top:clamp(20px,6vw,64px)}.exam-mark{font-size:1.5rem;letter-spacing:-.075em;font-weight:900;color:#492175;margin-bottom:12px}
@media(max-width:820px){.shell{grid-template-columns:176px minmax(0,1fr)}.sidebar{padding-inline:12px}.record{grid-template-columns:1fr auto}.record .arrow{display:none}.record .placement{grid-row:2}}
@media(max-width:610px){.shell{display:block}.sidebar{padding:14px 15px;flex-direction:row;align-items:center;justify-content:space-between;gap:8px}.brand{font-size:2rem;padding:0}.brand small,.side-label,.staff{display:none}.sidebar nav{display:flex;gap:4px}.nav-button{padding:7px;font-size:.75rem;margin:0;gap:4px}.nav-button span{width:auto;font-size:.88rem}.topbar{height:46px;font-size:.74rem}.topbar .badge{font-size:.63rem}.fields{grid-template-columns:1fr}.metrics{gap:6px}.metric{padding:8px}.metric strong{font-size:1.35rem}.metric span{font-size:.68rem}.hero:before{opacity:.55}.hero:after{display:none}.card,.hero{border-radius:17px}.profile{grid-template-columns:1fr}}

.link-button{background:none;border:0;padding:12px 0;color:#63369a;text-decoration:underline;font-weight:650}
.response-log{padding:12px 0;margin-bottom:10px}.response-log summary{color:#63369a;font-weight:750;cursor:pointer}.response-log li{padding:7px 0}.response-log small{display:block}
/* Portal visual identity. The logo is the original Purple Idiomas artwork. */
:root {
  --ink: #291642;
  --deep: #250d40;
  --purple: #5720a0;
  --light: #f4edff;
  --line: #e8dff0;
  --orange: #ff7925;
}
body { color: var(--ink); background: #f7f4fa; }
.sidebar { background: linear-gradient(160deg, #2f104f, #200d35 68%); }
.brand {
  width: 100%;
  padding: 12px 10px;
  border-radius: 13px;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
}
.brand img, .exam-mark img { display: block; height: auto; }
.brand img { width: 100%; max-width: 170px; }
.topbar .live { color: #533175; background: #f3eafb; }
.dashboard-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, .54fr);
  align-items: center;
  gap: clamp(24px, 5vw, 70px);
  padding: clamp(24px, 5vw, 56px);
  background: radial-gradient(ellipse at 100% 0%, #5f2293, #321257 55%, #25103e 100%);
  box-shadow: 0 14px 32px #3c136023;
}
.dashboard-hero h1 { font-size: clamp(2.7rem, 6vw, 5rem); }
.dashboard-hero h1 span { color: var(--orange); }
.hero-copy .eyebrow { display: flex; align-items: center; gap: 8px; }
.hero-copy .eyebrow span { background: var(--orange); width: 8px; height: 8px; border-radius: 50%; }
.dashboard-hero .primary { gap: 15px; background: white; }
.dashboard-hero .primary svg, .record .arrow svg { width: 20px; height: 20px; }
.journey {
  background: #ffffff12;
  border: 1px solid #ffffff35;
  border-radius: 19px;
  padding: 17px 20px;
}
.journey ol { list-style: none; padding: 0; margin: 0; }
.journey li { display: flex; align-items: center; gap: 12px; padding: 10px 0; font-size: .89rem; }
.journey li + li { border-top: 1px solid #ffffff26; }
.journey li span { color: #ffb582; font-weight: 850; font-size: .73rem; font-variant-numeric: tabular-nums; }
.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-top: 27px; }
.section-title > span { color: var(--muted); font-size: .8rem; }
.history .section-title { margin-top: 0; }
.metric {
  display: grid;
  grid-template-rows: auto auto 1fr;
  text-align: left;
  color: var(--ink);
  border-radius: 18px;
  padding: clamp(12px, 2vw, 22px);
  box-shadow: 0 5px 18px #2a134d08;
  transition: border-color .15s, background .15s;
}
.metric:hover, .metric[aria-pressed=true] { border-color: #9d72cc; background: #fbf8ff; }
.metric .metric-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 9px; }
.metric .metric-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; color: #652aaa; background: #f0e5fc; }
.metric-icon svg { width: 20px; height: 20px; }
.metric-review .metric-icon { color: #8a4619; background: #ffecdf; }
.metric-complete .metric-icon { color: #28694f; background: #e1f6ec; }
.metric .metric-title { color: var(--ink); font-size: .95rem; font-weight: 760; }
.metric small { margin-top: 3px; font-size: .77rem; line-height: 1.35; }
.record { border-radius: 15px; padding: 14px 16px; }
.record-person { display: flex; align-items: center; gap: 11px; min-width: 0; }
.record-avatar {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  border-radius: 11px;
  background: #eee2fb;
  color: #6834a0;
  font-size: .74rem;
  font-weight: 850;
}
.route-field { min-width: 0; border: 0; padding: 0; margin: 8px 0 0; }
.route-field legend { font-weight: 800; font-size: .93rem; margin-bottom: 10px; }
.route-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.route-card {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fdfbff;
  padding: 13px;
  cursor: pointer;
}
.route-card:has(:checked) { border-color: var(--purple); box-shadow: inset 0 0 0 1px var(--purple); background: #f6edff; }
.route-card:has(:focus-visible) { outline: 3px solid #a661f4; outline-offset: 2px; }
.route-card input { accent-color: var(--purple); margin-top: 4px; }
.route-card strong, .route-card small { display: block; }
.route-card strong { margin: 4px 0; font-size: .96rem; }
.route-card small { font-weight: 450; line-height: 1.4; }
.route-tag { color: #70409a; font-size: .67rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 850; }
.exam-mark { margin-bottom: 24px; }
.exam-mark img { width: 137px; }
.exam .workspace { background: radial-gradient(ellipse at top, #eadbf9 0%, #f7f4fa 72%); }
.question { box-shadow: 0 18px 55px #3c136017; }
.choice:hover { border-color: #a980ce; }
.check { margin: 12px 0; }
@media (max-width: 850px) {
  .dashboard-hero { grid-template-columns: 1fr; }
  .journey { display: none; }
}
@media (max-width: 610px) {
  .brand { width: auto; padding: 8px 7px; border-radius: 8px; }
  .brand img { width: 111px; }
  .section-title { margin-top: 17px; }
  .section-title > span { display: none; }
  .metric { padding: 9px; border-radius: 12px; }
  .metric .metric-icon { width: 25px; height: 25px; border-radius: 7px; }
  .metric-icon svg { width: 15px; height: 15px; }
  .metric .metric-title { font-size: .72rem; }
  .metric small { display: none; }
  .record { padding: 11px; }
  .record-avatar { display: none; }
}
@media (max-width: 460px) {
  .route-grid { grid-template-columns: 1fr; }
}

/* Purple Idiomas palette and interactive surfaces */
:root {
  --brand-purple: #37006e;
  --brand-orange: #ff7624;
  --ink: #29133e;
  --muted: #695779;
  --purple: #6325a8;
  --line: #e9deef;
  --light: #f2e8fc;
}
body { background: #f9f5fb; }
.shell { grid-template-columns: 234px minmax(0, 1fr); }
.sidebar {
  background: linear-gradient(155deg, #f1e5fb, #faf3ff 58%, #fbe9e2);
  color: var(--brand-purple);
  border-right: 1px solid #e9daef;
  padding: 32px 18px 22px;
}
.brand { background: transparent; border-radius: 0; padding: 3px 8px 18px; }
.brand img { max-width: 184px; }
.side-label { color: #705789; }
.nav-button { color: #5b4274; min-height: 47px; }
.nav-button:hover { background: #ebdaf8; color: var(--brand-purple); }
.nav-button[aria-current=page] {
  background: linear-gradient(105deg, #511586, #7939ae);
  color: white;
  box-shadow: 0 6px 18px #4f177a2b;
}
.nav-button svg, .staff svg, .actions svg, .filters button svg, .audio-card svg { width: 19px; height: 19px; flex: none; }
.staff { border-color: #e3d2ec; }
.staff small { color: var(--muted); }
.staff .avatar { background: linear-gradient(140deg, #e6ccfa, #fadcca); color: #59258c; }
.topbar { background: #fffaff; }
.content { padding-top: clamp(20px, 3.8vw, 44px); }

.hero {
  background: radial-gradient(ellipse at 83% 10%, #813ac2 0%, transparent 49%),
    linear-gradient(120deg, #2c0751 4%, #4c0d82 62%, #692d9d);
  border: 1px solid #481076;
  box-shadow: 0 18px 40px #47137127;
}
.dashboard-hero { padding: clamp(26px, 4vw, 53px); }
.dashboard-hero h1 { font-size: clamp(2.6rem, 5.4vw, 4.9rem); }
.dashboard-hero .primary {
  background: linear-gradient(125deg, #ffe4cb, #ffae6b);
  color: #341640;
  box-shadow: 0 8px 23px #1f073f45;
}
.dashboard-hero .primary:hover { background: linear-gradient(125deg, #fff0df, #ffc88f); }
.journey { background: linear-gradient(145deg, #f3dcff29, #f2dcff0d); border-color: #e8c7ff47; }
.journey li span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  background: #ffedff20;
  border-radius: 10px;
}
.journey li svg { width: 18px; height: 18px; }

.primary, .secondary, .link-button {
  gap: 9px;
  border-radius: 12px;
  transition: background .16s, box-shadow .16s, border-color .16s, transform .16s;
}
.primary { background: linear-gradient(115deg, #561492, #7535b9); box-shadow: 0 5px 13px #5621942b; }
.primary:not(:disabled):hover { background: linear-gradient(115deg, #471079, #6628a5); box-shadow: 0 7px 17px #56219436; }
.hero .primary:not(#new) { background: #f7e8ff; color: #431267; }
.secondary { background: linear-gradient(135deg, #fff, #faf4ff); border-color: #e0cbed; }
.secondary:not(:disabled):hover { background: #f2e6fd; border-color: #c8a4e2; }
.primary:not(:disabled):active, .secondary:not(:disabled):active { transform: translateY(1px); }
.link-button { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 12px; text-decoration: none; }
.link-button:not(:disabled):hover { background: #f1e4fa; }
:where(button, a):focus-visible { outline-color: #823eb9; }
:where(.hero) :where(button, a):focus-visible { outline-color: #ffc28e; }

.metric {
  --metric-tint: #efe0ff;
  --metric-ink: #592395;
  background: linear-gradient(145deg, #fff 30%, var(--metric-tint));
  border-color: color-mix(in srgb, var(--metric-tint), #a06cb7 20%);
}
.metric-review { --metric-tint: #ffebe0; --metric-ink: #884921; }
.metric-complete { --metric-tint: #e3f4eb; --metric-ink: #245e49; }
.metric:hover, .metric[aria-pressed=true] { background: linear-gradient(145deg, #fff, var(--metric-tint) 65%); border-color: var(--metric-ink); }
.metric[aria-pressed=true] { box-shadow: inset 0 0 0 1px var(--metric-ink); }
.metric .metric-icon { color: var(--metric-ink); background: var(--metric-tint); }
.metric strong { color: var(--metric-ink); }
.history .eyebrow, .recommendation .eyebrow { color: #743694; }
.record { background: linear-gradient(110deg, #fff, #f7effd); }
.empty { display: grid; justify-items: center; gap: 5px; padding: 23px 12px; background: #f8f0fc; }
.empty > span { display: grid; place-items: center; width: 38px; height: 38px; background: #ead9f8; border-radius: 12px; color: #653093; }
.empty svg, .route-icon svg { width: 20px; height: 20px; }

.route-card {
  --route-tint: #f3e5ff;
  position: relative;
  background: linear-gradient(138deg, #fff, var(--route-tint));
  padding: 15px;
}
.route-little { --route-tint: #ffeadc; }
.route-young { --route-tint: #f9e6f3; }
.route-way { --route-tint: #eae2fb; }
.route-card:hover { border-color: #bd98d7; }
.route-card:has(:checked) { background: linear-gradient(138deg, #fff, var(--route-tint)); }
.route-card input { order: 2; margin: 2px 0 0 auto; width: 17px; height: 17px; flex: none; }
.route-icon {
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  border-radius: 11px;
  color: #63279b;
  background: #ead9f9;
  margin-bottom: 9px;
}
.route-little .route-icon { color: #8f4419; background: #ffd8bb; }
.recommendation { background: linear-gradient(145deg, #fff, #f0e0fc); }
.exam .workspace { background: radial-gradient(ellipse at 50% 0%, #e9d5ff 0%, #f9f4fb 66%); }
.question { border-top: 4px solid #792cba; }
.choice { background: linear-gradient(110deg, #fff, #fcf8ff); }
.choice[aria-pressed=true] { background: linear-gradient(115deg, #f4e5ff, #f9f0ff); border-color: #7738b4; }
.choice[aria-pressed=true] .letter { background: #6b2ca3; color: white; }
.audio-card { background: linear-gradient(115deg, #f1e4ff, #fbf2fa); border-radius: 13px; padding: 12px 14px; margin: 12px 0; }
.audio-card p { display: flex; align-items: center; gap: 8px; font-weight: 650; margin: 0; color: #543174; }
.audio-card audio { margin-bottom: 0; }

@media (max-width: 820px) {
  .shell { grid-template-columns: 168px minmax(0, 1fr); }
  .sidebar { padding-inline: 12px; }
}
@media (max-width: 610px) {
  .sidebar { padding: 10px 12px; border-right: 0; border-bottom: 1px solid #e9daef; }
  .brand { padding: 5px 0; flex: none; }
  .brand img { width: clamp(92px, 28vw, 125px); }
  .nav-button { min-height: 44px; font-size: .73rem; white-space: nowrap; }
  .nav-button svg { width: 15px; height: 15px; }
  .dashboard-hero h1 { font-size: clamp(2.3rem, 10vw, 3.55rem); }
  .actions .primary, .actions .secondary { max-width: 100%; }
  .metric .metric-top { gap: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .primary, .secondary, .link-button, .metric { transition: none; }
}
