﻿:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --line: #d9dee7;
  --text: #1d2733;
  --muted: #637083;
  --accent: #0f766e;
  --accent-dark: #115e59;
  --warn: #b45309;
  --danger: #b91c1c;
}

/* Portafolio STEAM formal y exportacion imprimible */
.portfolio-formal-screen { display: grid; gap: 18px; }
.portfolio-toolbar { align-items: flex-start; }
.portfolio-readiness {
  display: grid;
  grid-template-columns: minmax(180px, .7fr) minmax(260px, 1.3fr) minmax(240px, 1fr);
  gap: 18px;
  align-items: center;
  padding: 18px 20px;
  border: 1px solid #bad6e3;
  border-left: 5px solid #087e8b;
  border-radius: 8px;
  background: #f4fafc;
}
.portfolio-readiness span, .portfolio-readiness strong { display: block; }
.portfolio-readiness span { color: #52646d; font-size: 13px; }
.portfolio-readiness strong { margin-top: 4px; color: #143642; }
.portfolio-readiness p { margin: 0; color: #52646d; }
.portfolio-completion > div { height: 8px; margin-top: 8px; overflow: hidden; border-radius: 4px; background: #dce8ec; }
.portfolio-completion i { display: block; height: 100%; background: #087e8b; }
.portfolio-cover {
  display: grid;
  grid-template-columns: 170px minmax(240px, 1fr) minmax(320px, 1.1fr);
  gap: 24px;
  align-items: center;
  min-height: 290px;
  padding: 34px;
  border: 1px solid #bfd2da;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 16px 38px rgba(20, 54, 66, .08);
}
.portfolio-brand { padding: 26px 18px; border: 1px solid #a7c7d3; border-radius: 8px; background: #143642; color: #ffffff; text-align: center; }
.portfolio-brand span, .portfolio-brand strong { display: block; }
.portfolio-brand span { font-size: 13px; }
.portfolio-brand strong { margin-top: 5px; font-size: 24px; }
.portfolio-cover-copy > span { color: #b24c3d; font-size: 13px; font-weight: 800; text-transform: uppercase; }
.portfolio-cover-copy h2 { margin: 8px 0; color: #143642; font-size: 32px; letter-spacing: 0; }
.portfolio-cover-copy p { margin: 0; color: #52646d; }
.portfolio-identity { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0; }
.portfolio-identity div { padding-bottom: 10px; border-bottom: 1px solid #d7e3e8; }
.portfolio-identity dt { color: #64757d; font-size: 12px; text-transform: uppercase; }
.portfolio-identity dd { margin: 4px 0 0; color: #143642; font-weight: 700; }
.portfolio-section { position: relative; padding-top: 24px; }
.section-number { position: absolute; top: 18px; right: 20px; color: #9a3e32; font-size: 13px; font-weight: 900; }
.portfolio-lead { max-width: 980px; color: #334d57; font-size: 17px; line-height: 1.7; }
.portfolio-kpis { margin-top: 18px; }
.portfolio-two-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.portfolio-projects, .portfolio-journal, .portfolio-reflections { display: grid; gap: 16px; }
.portfolio-project, .portfolio-journal > article {
  padding: 20px;
  border: 1px solid #cfdee4;
  border-radius: 8px;
  background: #ffffff;
}
.portfolio-project header, .portfolio-journal header, .portfolio-competencies header, .portfolio-closing div { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.portfolio-project header span, .portfolio-journal header span { color: #087e8b; font-size: 12px; font-weight: 800; text-transform: uppercase; }
.portfolio-project h3, .portfolio-journal h3 { margin: 4px 0 0; color: #143642; }
.portfolio-project header > strong { color: #9a3e32; }
.portfolio-project dl, .portfolio-journal dl { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.portfolio-project dl div, .portfolio-journal dl div { padding: 12px; border-left: 3px solid #a7c7d3; background: #f7fafb; }
.portfolio-project dt, .portfolio-journal dt { color: #52646d; font-size: 12px; font-weight: 800; text-transform: uppercase; }
.portfolio-project dd, .portfolio-journal dd { margin: 5px 0 0; line-height: 1.55; }
.portfolio-project blockquote, .portfolio-reflections blockquote { margin: 16px 0; padding: 14px 16px; border-left: 4px solid #d6a84b; background: #fffaf0; color: #4f4532; }
.portfolio-project footer { display: flex; justify-content: space-between; gap: 12px; padding-top: 12px; border-top: 1px solid #d7e3e8; color: #52646d; }
.portfolio-timeline { display: grid; gap: 14px; }
.portfolio-timeline article { display: grid; grid-template-columns: 90px 1fr; gap: 14px; padding-bottom: 14px; border-bottom: 1px solid #d7e3e8; }
.portfolio-timeline article > span { color: #087e8b; font-size: 12px; font-weight: 800; }
.portfolio-timeline p, .portfolio-timeline small { display: block; margin: 4px 0 0; color: #52646d; }
.portfolio-journal .wide { grid-column: 1 / -1; }
.portfolio-competencies { display: grid; grid-template-columns: repeat(2, minmax(260px, 1fr)); gap: 14px; }
.portfolio-competencies article { padding: 16px; border: 1px solid #d2dfe4; border-top: 4px solid var(--competency-color); border-radius: 8px; background: #ffffff; }
.portfolio-competencies header span { display: block; margin-top: 4px; color: #52646d; font-size: 12px; }
.portfolio-competencies em { color: #143642; font-size: 22px; font-style: normal; font-weight: 900; }
.portfolio-competencies p { margin: 10px 0 0; color: #52646d; font-size: 13px; }
.portfolio-badges, .portfolio-feedback { display: grid; gap: 12px; }
.portfolio-badges article { display: grid; grid-template-columns: 48px 1fr; gap: 12px; padding: 14px; border: 1px solid #d2dfe4; border-left: 4px solid var(--badge-color); border-radius: 8px; }
.portfolio-badges article > span { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #eef5f7; color: #143642; font-weight: 900; }
.portfolio-badges small { display: block; margin-top: 3px; color: #52646d; }
.portfolio-badges p { margin: 7px 0 0; }
.portfolio-feedback article { padding: 14px 0; border-bottom: 1px solid #d7e3e8; }
.portfolio-feedback span, .portfolio-feedback small { color: #64757d; font-size: 12px; }
.portfolio-feedback strong { display: block; margin-top: 4px; }
.portfolio-feedback p { margin: 6px 0; }
.empty-academic { padding: 24px; border: 1px dashed #a7bdc6; border-radius: 8px; background: #f8fbfc; text-align: center; }
.empty-academic p { margin: 6px 0 0; color: #52646d; }
.portfolio-closing { padding: 28px; border-radius: 8px; background: #143642; color: #ffffff; }
.portfolio-closing > span { color: #8ed1dc; font-size: 12px; font-weight: 800; text-transform: uppercase; }
.portfolio-closing > p { max-width: 960px; font-size: 17px; line-height: 1.65; }
.portfolio-closing div { padding-top: 15px; border-top: 1px solid rgba(255,255,255,.24); }
.portfolio-student-table { overflow-x: auto; }

.portfolio-print-body { margin: 0; background: #dfe8eb; color: #1c2f36; font-family: Arial, sans-serif; }
.print-controls { position: sticky; top: 0; z-index: 10; display: flex; justify-content: center; gap: 10px; padding: 12px; background: #143642; }
.portfolio-document { width: 210mm; margin: 18px auto; background: #ffffff; box-shadow: 0 18px 50px rgba(20,54,66,.18); }
.portfolio-document-cover { min-height: 297mm; display: flex; flex-direction: column; justify-content: space-between; padding: 28mm 22mm; border-top: 12mm solid #143642; box-sizing: border-box; }
.document-brand { display: flex; justify-content: space-between; color: #143642; font-weight: 800; }
.document-brand strong { color: #9a3e32; font-size: 24px; }
.document-kicker { color: #087e8b; font-size: 12px; font-weight: 800; text-transform: uppercase; }
.portfolio-document-cover h1 { max-width: 150mm; margin: 8px 0 18px; color: #143642; font-size: 38px; line-height: 1.08; letter-spacing: 0; }
.portfolio-document-cover h2 { margin: 0; color: #9a3e32; font-size: 28px; letter-spacing: 0; }
.portfolio-document-cover dl { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; }
.portfolio-document-cover dl div { padding-bottom: 9px; border-bottom: 1px solid #ccdbe1; }
.portfolio-document-cover dt { color: #64757d; font-size: 11px; text-transform: uppercase; }
.portfolio-document-cover dd { margin: 4px 0 0; font-weight: 700; }
.portfolio-document-cover > small { color: #64757d; }
.document-section { padding: 18mm 20mm; }
.document-section > header { display: grid; grid-template-columns: 42px 1fr; gap: 14px; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 2px solid #143642; }
.document-section > header > span { color: #9a3e32; font-size: 22px; font-weight: 900; }
.document-section h2 { margin: 0; color: #143642; font-size: 24px; letter-spacing: 0; }
.document-section header p { margin: 5px 0 0; color: #52646d; }
.document-section table { width: 100%; border-collapse: collapse; font-size: 12px; }
.document-section th, .document-section td { padding: 8px; border: 1px solid #cad9df; text-align: left; vertical-align: top; }
.document-section th { background: #edf4f6; color: #143642; }
.document-summary-table th { width: 25%; }
.document-project, .document-journal { margin-bottom: 18px; padding: 14px; border: 1px solid #cad9df; border-radius: 4px; }
.document-project-head { display: flex; justify-content: space-between; gap: 15px; }
.document-project h3, .document-journal h3 { margin: 3px 0 10px; color: #143642; }
.document-project-head > strong { color: #9a3e32; }
.document-feedback { margin: 12px 0; padding: 12px; border-left: 4px solid #087e8b; background: #f4f9fa; }
.document-feedback p { margin: 5px 0; }
.document-reflection { margin-bottom: 15px; padding: 14px; border-left: 4px solid #d6a84b; background: #fffaf0; }
.document-empty { padding: 16px; border: 1px dashed #9eb5be; color: #52646d; text-align: center; }
.document-closing { padding: 24mm 20mm; background: #143642; color: #ffffff; }
.document-closing h2 { margin-top: 0; color: #ffffff; }
.document-closing p { line-height: 1.7; }
.document-closing div { display: flex; justify-content: space-between; margin-top: 22px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.35); }

@media (max-width: 900px) {
  .portfolio-readiness, .portfolio-cover, .portfolio-two-columns, .portfolio-competencies { grid-template-columns: 1fr; }
  .portfolio-identity, .portfolio-project dl, .portfolio-journal dl { grid-template-columns: 1fr; }
  .portfolio-document { width: 100%; margin: 0; }
}

@page { size: A4; margin: 12mm; }
@media print {
  .portfolio-print-body { background: #ffffff; }
  .print-controls { display: none !important; }
  .portfolio-document { width: auto; margin: 0; box-shadow: none; }
  .portfolio-document-cover { min-height: 270mm; padding: 20mm 12mm; }
  .document-section { padding: 10mm 8mm; }
  .page-break-before { break-before: page; page-break-before: always; }
  .avoid-break, .document-project, .document-journal, .document-feedback, .document-reflection, tr { break-inside: avoid; page-break-inside: avoid; }
  a { color: inherit; text-decoration: none; }
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
}
a { color: var(--accent-dark); text-decoration: none; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 12px 24px;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}
.brand { font-weight: 800; font-size: 20px; color: var(--text); }
.nav { display: flex; gap: 8px; flex-wrap: wrap; }
.nav a { padding: 8px 10px; border-radius: 6px; color: var(--muted); }
.nav a:hover { background: #eef5f4; color: var(--accent-dark); }
.page { width: min(1280px, calc(100% - 32px)); margin: 24px auto; }
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 18px; }
h1, h2 { margin: 0; line-height: 1.2; }
h1 { font-size: 28px; }
h2 { font-size: 19px; }
p { color: var(--muted); }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 700;
  cursor: pointer;
}
.btn.secondary { background: #ffffff; color: var(--accent-dark); }
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 18px;
}
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.kpi-grid { display: grid; grid-template-columns: repeat(6, minmax(120px, 1fr)); gap: 12px; margin-bottom: 18px; }
.kpi-grid article { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 14px; }
.kpi-grid span { display: block; color: var(--muted); font-size: 13px; }
.kpi-grid strong { display: block; font-size: 26px; margin-top: 4px; }
.grid-two { display: grid; grid-template-columns: 1.5fr 1fr; gap: 18px; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--muted); font-size: 13px; font-weight: 800; background: #fafbfc; }
.stack { display: grid; gap: 10px; }
.alert, .message { border-left: 4px solid var(--warn); background: #fff7ed; padding: 10px; border-radius: 6px; }
.alert span, .alert strong { display: block; }
.message.success { border-color: var(--accent); background: #ecfdf5; }
.message.error { border-color: var(--danger); background: #fef2f2; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(220px, 1fr)); gap: 14px; }
.form-grid label span { display: block; margin-bottom: 5px; color: var(--muted); font-weight: 700; }
.form-control {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 10px;
  background: #ffffff;
  color: var(--text);
}
textarea.form-control { min-height: 90px; }
.form-actions { grid-column: 1 / -1; display: flex; gap: 8px; }
.inline-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.inline-actions .btn { min-height: 32px; padding: 6px 9px; font-size: 13px; }
.error { color: var(--danger); }
.badge { display: inline-block; padding: 3px 8px; border-radius: 999px; background: #eef5f4; color: var(--accent-dark); font-size: 12px; font-weight: 700; }
.muted { color: var(--muted); }
@media (max-width: 900px) {
  .topbar, .page-head { flex-direction: column; align-items: stretch; }
  .kpi-grid, .grid-two, .form-grid { grid-template-columns: 1fr; }
  .page { width: min(100% - 20px, 1280px); }
  table { font-size: 13px; }
}

.hero-band {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
  align-items: center;
  gap: 24px;
  min-height: 430px;
  padding: 36px;
  margin-bottom: 18px;
  background: linear-gradient(135deg, #0f766e 0%, #164e63 50%, #1d2733 100%);
  color: #ffffff;
  border-radius: 8px;
  overflow: hidden;
}
.hero-band p, .hero-band .eyebrow { color: #d7f4ef; }
.hero-band h1 { font-size: 48px; margin: 8px 0; }
.hero-lead { max-width: 680px; font-size: 18px; line-height: 1.6; }
.eyebrow { display: inline-block; color: var(--accent-dark); font-weight: 800; text-transform: uppercase; font-size: 12px; letter-spacing: 0; }
.hero-visual {
  position: relative;
  min-height: 300px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 8px;
  background: rgba(255,255,255,.08);
}
.bot-core {
  position: absolute;
  left: 50%; top: 50%;
  width: 145px; height: 92px;
  transform: translate(-50%, -50%);
  border: 8px solid #ffffff;
  border-radius: 8px;
  box-shadow: 0 22px 45px rgba(0,0,0,.26);
}
.bot-core::before, .bot-core::after {
  content: "";
  position: absolute;
  bottom: -28px;
  width: 42px; height: 18px;
  border-radius: 999px;
  background: #22c55e;
}
.bot-core::before { left: 12px; }
.bot-core::after { right: 12px; }
.track-line { position: absolute; left: 15%; right: 15%; bottom: 58px; height: 4px; background: #facc15; border-radius: 999px; }
.sensor-dot { position: absolute; width: 20px; height: 20px; border-radius: 50%; background: #facc15; box-shadow: 0 0 24px #facc15; }
.sensor-dot.one { left: 20%; top: 20%; }
.sensor-dot.two { right: 24%; top: 26%; }
.sensor-dot.three { right: 18%; bottom: 30%; }
.auth-shell { display: grid; grid-template-columns: 1fr minmax(280px, 420px); gap: 24px; align-items: start; }
.auth-panel label { display: block; margin-bottom: 14px; }
.auth-panel label span { display: block; margin-bottom: 5px; color: var(--muted); font-weight: 700; }
.auth-panel input { width: 100%; min-height: 38px; border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; }
@media (max-width: 900px) {
  .hero-band, .auth-shell { grid-template-columns: 1fr; padding: 22px; }
  .hero-band h1 { font-size: 36px; }
}

.presentation-hero {
  min-height: 560px;
  display: flex;
  align-items: center;
  padding: 56px clamp(22px, 5vw, 72px);
  margin: -4px 0 18px;
  border-radius: 8px;
  background-size: cover;
  background-position: center right;
  color: #ffffff;
  overflow: hidden;
}
.presentation-hero-copy {
  width: min(720px, 100%);
}
.presentation-hero h1 {
  margin: 8px 0 4px;
  font-size: clamp(42px, 7vw, 86px);
  line-height: .98;
  color: #ffffff;
}
.presentation-hero p { color: #eef8f5; }
.school-name {
  margin: 0 0 12px;
  font-size: clamp(18px, 2.4vw, 28px);
  font-weight: 800;
}
.presentation-hero .hero-lead {
  max-width: 640px;
  font-size: clamp(16px, 1.7vw, 20px);
  line-height: 1.55;
}
.eyebrow.light { color: #facc15; }
.hero-actions { margin-top: 24px; }
.hero-primary {
  border-color: #facc15;
  background: #facc15;
  color: #1d2733;
}
.hero-secondary {
  border-color: rgba(255,255,255,.72);
  background: rgba(255,255,255,.08);
  color: #ffffff;
}
.hero-secondary:hover { background: #ffffff; color: #164e63; }
.landing-metrics {
  display: grid;
  grid-template-columns: repeat(6, minmax(120px, 1fr));
  gap: 12px;
  margin: 0 0 18px;
}
.landing-metrics article {
  min-height: 104px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}
.landing-metrics span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.landing-metrics strong {
  font-size: 30px;
  line-height: 1;
}
.landing-section {
  margin-bottom: 18px;
}
.split-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .85fr);
  gap: 22px;
  align-items: center;
  padding: 26px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}
.split-band h2 { font-size: clamp(24px, 3vw, 36px); margin-top: 4px; }
.split-band p { max-width: 760px; line-height: 1.6; }
.journey-list {
  display: grid;
  gap: 10px;
}
.journey-list div {
  display: grid;
  grid-template-columns: 46px 1fr;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}
.journey-list strong {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #164e63;
  color: #ffffff;
}
.journey-list span { font-weight: 700; }
.role-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.role-grid article {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}
.role-grid h2 { font-size: 20px; }
.role-grid p { flex: 1; line-height: 1.5; }
.role-grid a { font-weight: 800; }
.role-mark {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: #ecfeff;
  color: #164e63;
  font-weight: 900;
}
.landing-table .panel-head { align-items: flex-end; }
@media (max-width: 1000px) {
  .landing-metrics, .role-grid { grid-template-columns: repeat(2, minmax(150px, 1fr)); }
  .split-band { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .presentation-hero {
    min-height: 620px;
    padding: 28px 18px;
    background-position: center;
  }
  .hero-actions .btn { width: 100%; }
  .landing-metrics, .role-grid { grid-template-columns: 1fr; }
  .landing-table { overflow-x: auto; }
  .landing-table .panel-head { align-items: stretch; flex-direction: column; }
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.project-grid.compact { grid-template-columns: repeat(2, minmax(180px, 1fr)); }
.project-card {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}
.project-card h2, .project-card h3 { margin: 0; }
.project-card h3 { font-size: 17px; }
.project-card p { line-height: 1.5; }
.project-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--line);
}
.detail-image {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
  margin-bottom: 18px;
}
.mini-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: auto 0 0;
}
.mini-stats div {
  padding: 8px;
  border-radius: 6px;
  background: #eff6ff;
}
.mini-stats dt {
  color: #1e3a8a;
  font-size: 12px;
  font-weight: 800;
}
.mini-stats dd {
  margin: 2px 0 0;
  font-weight: 700;
}
.resource-line, .forum-answer {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}
.resource-line strong, .resource-line span, .resource-line small { display: block; }
.resource-line span, .resource-line small { color: var(--muted); margin-top: 3px; }
.forum-answer.verified {
  border-color: #16a34a;
  background: #f0fdf4;
}
.code-block {
  white-space: pre-wrap;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #111827;
  color: #e5e7eb;
  overflow-x: auto;
}
hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 18px 0;
}
@media (max-width: 1000px) {
  .project-grid, .project-grid.compact { grid-template-columns: repeat(2, minmax(180px, 1fr)); }
}
@media (max-width: 680px) {
  .project-grid, .project-grid.compact, .mini-stats { grid-template-columns: 1fr; }
}
@media print {
  .topbar, .actions, .messages, .btn { display: none !important; }
  .page { width: 100%; margin: 0; }
  body { background: #ffffff; }
  .panel, .kpi-grid article { break-inside: avoid; }
}

.sales-hero {
  min-height: 610px;
  display: flex;
  align-items: center;
  padding: clamp(32px, 6vw, 76px);
  margin: -4px 0 18px;
  border-radius: 8px;
  background-size: cover;
  background-position: center right;
  color: #ffffff;
  overflow: hidden;
}
.sales-hero-copy { width: min(780px, 100%); }
.sales-hero h1 {
  margin: 8px 0 12px;
  font-size: clamp(46px, 8vw, 92px);
  line-height: .96;
  color: #ffffff;
}
.sales-subtitle {
  max-width: 720px;
  color: #eaf7fb;
  font-size: clamp(18px, 2.1vw, 24px);
  line-height: 1.48;
}
.sales-proof {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.sales-proof article,
.sales-grid article,
.pricing-grid article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}
.sales-proof strong,
.sales-proof span,
.sales-grid strong,
.sales-grid p { display: block; }
.sales-proof strong { font-size: 18px; }
.sales-proof span { margin-top: 6px; color: var(--muted); line-height: 1.45; }
.sales-section { margin-bottom: 22px; }
.section-title {
  max-width: 860px;
  margin-bottom: 14px;
}
.section-title h2,
.sales-band h2,
.final-cta h2 {
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.08;
  margin: 6px 0 10px;
}
.section-title p,
.sales-band p,
.final-cta p { font-size: 17px; line-height: 1.6; }
.sales-band {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr);
  align-items: center;
  gap: 24px;
  padding: clamp(24px, 4vw, 44px);
  margin-bottom: 22px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}
.sales-problem { background: #f8fafc; }
.sales-safe { background: #ecfeff; }
.sales-list {
  display: grid;
  gap: 10px;
}
.sales-list span {
  min-height: 48px;
  display: flex;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  font-weight: 800;
}
.sales-grid {
  display: grid;
  gap: 14px;
}
.sales-grid.three { grid-template-columns: repeat(3, minmax(220px, 1fr)); }
.sales-grid.five { grid-template-columns: repeat(5, minmax(160px, 1fr)); }
.sales-grid article { min-height: 170px; }
.sales-grid strong { font-size: 18px; }
.sales-grid p { line-height: 1.55; }
.sales-steps {
  display: grid;
  gap: 10px;
}
.sales-steps div {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}
.sales-steps strong {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #0f766e;
  color: #ffffff;
}
.module-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.module-strip span {
  padding: 10px 12px;
  border: 1px solid #bae6fd;
  border-radius: 999px;
  background: #eff6ff;
  color: #1e3a8a;
  font-weight: 800;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(240px, 1fr));
  gap: 14px;
}
.pricing-grid article {
  min-height: 360px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pricing-grid h3 { margin: 0; font-size: 24px; }
.pricing-grid strong { font-size: 26px; color: var(--accent-dark); }
.pricing-grid ul { margin: 0; padding-left: 18px; color: var(--muted); line-height: 1.7; }
.plan-label {
  align-self: flex-start;
  padding: 4px 9px;
  border-radius: 999px;
  background: #eef5f4;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 900;
}
.featured-plan {
  border-color: #f59e0b !important;
  box-shadow: 0 12px 32px rgba(15, 23, 42, .09);
}
.sales-testimonials { margin-bottom: 22px; }
.sales-testimonials article p { font-size: 16px; color: var(--text); }
.faq-list {
  display: grid;
  gap: 10px;
}
.faq-list details {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}
.faq-list summary {
  cursor: pointer;
  font-weight: 900;
}
.faq-list p { margin-bottom: 0; }
.final-cta {
  padding: clamp(28px, 5vw, 52px);
  border-radius: 8px;
  background: #0f2f45;
  color: #ffffff;
  margin-bottom: 18px;
}
.final-cta p { color: #dbeafe; max-width: 780px; }
.final-cta h2 { color: #ffffff; max-width: 920px; }
.badge-learning-note {
  padding: 16px 18px;
  border-left: 4px solid #0f766e;
  background: #ecfdf5;
  color: #115e59;
  font-weight: 800;
  line-height: 1.5;
}
.pedagogical-badge-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 16px;
}
.pedagogical-badge-grid.compact {
  grid-template-columns: repeat(2, minmax(220px, 1fr));
}
.pedagogical-badge-card {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 14px;
  align-content: start;
  padding: 18px;
  border: 1px solid #dbe5ef;
  border-top: 4px solid var(--badge-color, #0f766e);
  border-radius: 8px;
  background: #fff;
}
.pedagogical-badge-card > dl,
.pedagogical-badge-card > a,
.pedagogical-badge-card > small {
  grid-column: 1 / -1;
}
.pedagogical-badge-card.is-pending {
  background: #f8fafc;
  color: #64748b;
  filter: grayscale(.65);
}
.pedagogical-badge-card.is-earned {
  box-shadow: 0 10px 24px rgba(15, 118, 110, .1);
}
.pedagogical-badge-card h2,
.pedagogical-badge-card h3,
.pedagogical-badge-card p {
  margin: 0 0 8px;
}
.pedagogical-badge-card dl {
  display: grid;
  gap: 8px;
  margin: 0;
}
.pedagogical-badge-card dl div {
  display: grid;
  gap: 3px;
}
.pedagogical-badge-card dt {
  color: #475569;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.pedagogical-badge-card dd {
  margin: 0;
}
.badge-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--badge-color, #0f766e);
  color: #fff;
  font-size: 16px;
  font-weight: 900;
}
.badge-icon.large {
  width: 84px;
  height: 84px;
  font-size: 24px;
}
.badge-state {
  display: inline-block;
  margin-bottom: 6px;
  color: var(--badge-color, #0f766e);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.badge-detail-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  padding: 28px;
  border-left: 6px solid var(--badge-color, #0f766e);
  background: #f8fafc;
}
.badge-detail-hero h1,
.badge-detail-hero p {
  margin: 4px 0 10px;
}
.badge-progress-list {
  display: grid;
  gap: 10px;
}
.badge-progress-list article {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}
.badge-progress-list article .badge-icon {
  width: 44px;
  height: 44px;
}
.badge-progress-list article > div {
  display: grid;
  gap: 5px;
}
.badge-progress-list em {
  color: #475569;
  font-style: normal;
  font-weight: 900;
}
.badge-progress-track {
  height: 8px;
  overflow: hidden;
  border-radius: 8px;
  background: #e2e8f0;
}
.badge-progress-track i {
  display: block;
  height: 100%;
  background: #0f766e;
}
.steam-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 14px;
}
.steam-summary article {
  display: grid;
  gap: 6px;
  padding: 18px;
  border: 1px solid #dbe5ef;
  border-radius: 8px;
  background: #fff;
}
.steam-summary span {
  color: #475569;
  font-weight: 800;
}
.steam-summary strong {
  color: #0f766e;
  font-size: 30px;
}
.steam-competency-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 16px;
}
.steam-competency-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid #dbe5ef;
  border-top: 4px solid var(--competency-color, #0f766e);
  border-radius: 8px;
  background: #fff;
}
.steam-competency-card.level-inicial {
  background: #f8fafc;
}
.steam-competency-card.level-en_desarrollo {
  background: #fffbeb;
}
.steam-competency-card.level-competente {
  background: #f0fdf4;
}
.steam-competency-card.level-avanzado {
  background: #ecfeff;
}
.steam-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}
.steam-card-head h2,
.steam-card-head span,
.steam-competency-card p {
  margin: 0;
}
.steam-card-head span {
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.steam-card-head strong {
  color: var(--competency-color, #0f766e);
  font-size: 26px;
}
.steam-progress-track {
  height: 9px;
  overflow: hidden;
  border-radius: 8px;
  background: #e2e8f0;
}
.steam-progress-track i {
  display: block;
  height: 100%;
  background: var(--competency-color, #0f766e);
}
.steam-level {
  justify-self: start;
  padding: 5px 9px;
  border-radius: 6px;
  background: #e2e8f0;
  color: #334155;
  font-size: 12px;
  font-weight: 900;
}
.steam-evidence-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.steam-evidence-counts span {
  padding: 5px 8px;
  border-radius: 6px;
  background: #f1f5f9;
  color: #475569;
  font-size: 12px;
  font-weight: 800;
}
.steam-competency-card details {
  border-top: 1px solid #e2e8f0;
  padding-top: 10px;
}
.steam-competency-card summary {
  cursor: pointer;
  color: #0f766e;
  font-weight: 900;
}
.steam-next-step {
  display: grid;
  gap: 4px;
  padding: 10px;
  border-left: 3px solid var(--competency-color, #0f766e);
  background: #f8fafc;
}
.steam-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 10px;
}
.steam-mini-grid article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 12px;
  align-items: center;
  padding: 12px;
  border-left: 4px solid var(--competency-color, #0f766e);
  background: #f8fafc;
}
.steam-mini-grid article > div:first-child {
  display: grid;
  gap: 3px;
}
.steam-mini-grid article > em {
  color: var(--competency-color, #0f766e);
  font-style: normal;
  font-weight: 900;
}
.steam-mini-grid .steam-progress-track {
  grid-column: 1 / -1;
}
@media (max-width: 1100px) {
  .sales-grid.five { grid-template-columns: repeat(2, minmax(180px, 1fr)); }
  .sales-proof { grid-template-columns: repeat(2, minmax(180px, 1fr)); }
}
@media (max-width: 900px) {
  .sales-band,
  .sales-grid.three,
  .pricing-grid { grid-template-columns: 1fr; }
  .sales-hero { min-height: 560px; background-position: center; }
}
@media (max-width: 640px) {
  .sales-proof,
  .sales-grid.five { grid-template-columns: 1fr; }
  .sales-hero { min-height: 640px; padding: 24px 18px; }
  .hero-actions .btn { width: 100%; }
}

/* RoboLiga Academy landing v1 */
.roboliga-page {
  --robo-navy: #071826;
  --robo-blue: #0f5f8c;
  --robo-sky: #38bdf8;
  --robo-green: #14b86a;
  --robo-orange: #f97316;
  --robo-ink: #132233;
  --robo-muted: #5b6b7d;
  --robo-soft: #eef8ff;
  --robo-border: #d8e5ee;
  display: grid;
  gap: 22px;
}
.robo-hero {
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr);
  gap: 28px;
  align-items: center;
  padding: 54px;
  border-radius: 8px;
  background-size: cover;
  background-position: center right;
  color: #ffffff;
  overflow: hidden;
}
.robo-hero-copy { max-width: 760px; }
.robo-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--robo-blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}
.robo-eyebrow::before {
  content: "";
  width: 28px;
  height: 3px;
  border-radius: 999px;
  background: currentColor;
}
.robo-light { color: #a7f3d0; }
.robo-hero h1 {
  max-width: 840px;
  margin: 14px 0 14px;
  color: #ffffff;
  font-size: 64px;
  line-height: 1.02;
}
.robo-hero p {
  max-width: 760px;
  color: #e9f7ff;
  font-size: 20px;
  line-height: 1.58;
}
.robo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
.robo-primary {
  min-height: 46px;
  border-color: var(--robo-green);
  background: var(--robo-green);
  color: #062219;
  box-shadow: 0 12px 26px rgba(20, 184, 106, .22);
}
.robo-secondary {
  min-height: 46px;
  border-color: rgba(255, 255, 255, .68);
  background: rgba(255, 255, 255, .12);
  color: #ffffff;
}
.robo-secondary:hover {
  background: #ffffff;
  color: var(--robo-blue);
}
.robo-hero-panel {
  display: grid;
  gap: 14px;
  align-self: stretch;
  align-content: center;
}
.robo-live-card,
.robo-score-grid div,
.robo-ranking-card {
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 8px;
  background: rgba(255, 255, 255, .12);
  box-shadow: 0 24px 56px rgba(0, 0, 0, .24);
  backdrop-filter: blur(10px);
}
.robo-live-card {
  min-height: 260px;
  padding: 24px;
}
.robo-status {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(56, 189, 248, .18);
  color: #d9f6ff;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.robo-live-card h2 {
  margin: 28px 0 8px;
  color: #ffffff;
  font-size: 34px;
}
.robo-live-card p { color: #dff7ff; }
.robo-meter {
  height: 10px;
  margin-top: 28px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .2);
  overflow: hidden;
}
.robo-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--robo-green), #facc15, var(--robo-orange));
}
.robo-score-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.robo-score-grid div {
  min-height: 112px;
  display: grid;
  align-content: center;
  padding: 16px;
}
.robo-score-grid strong {
  color: #ffffff;
  font-size: 30px;
  line-height: 1;
}
.robo-score-grid span { color: #dff7ff; font-weight: 800; }
.robo-proof,
.robo-feature-grid,
.robo-challenge-grid,
.robo-portfolio {
  display: grid;
  gap: 14px;
}
.robo-proof { grid-template-columns: repeat(4, minmax(180px, 1fr)); }
.robo-proof article,
.robo-feature-grid article,
.robo-challenge-grid article,
.robo-portfolio article {
  min-height: 150px;
  padding: 18px;
  border: 1px solid var(--robo-border);
  border-radius: 8px;
  background: #ffffff;
}
.robo-proof strong,
.robo-proof span,
.robo-feature-grid h3,
.robo-feature-grid p,
.robo-challenge-grid span,
.robo-challenge-grid h3,
.robo-challenge-grid p,
.robo-portfolio strong,
.robo-portfolio span {
  display: block;
}
.robo-proof strong,
.robo-feature-grid h3,
.robo-challenge-grid h3 {
  margin: 0 0 8px;
  color: var(--robo-ink);
  font-size: 20px;
}
.robo-proof span,
.robo-feature-grid p,
.robo-challenge-grid p,
.robo-portfolio span {
  color: var(--robo-muted);
  line-height: 1.55;
}
.robo-section {
  display: grid;
  gap: 16px;
  margin-bottom: 2px;
}
.robo-section-title {
  max-width: 900px;
}
.robo-section-title h2,
.robo-band h2,
.robo-final h2 {
  margin: 8px 0 10px;
  color: var(--robo-ink);
  font-size: 42px;
  line-height: 1.08;
}
.robo-section-title p,
.robo-band p,
.robo-final p {
  max-width: 820px;
  color: var(--robo-muted);
  font-size: 17px;
  line-height: 1.65;
}
.robo-feature-grid.three { grid-template-columns: repeat(3, minmax(220px, 1fr)); }
.robo-icon {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 16px;
  border-radius: 8px;
  background: var(--robo-soft);
  color: var(--robo-blue);
  font-weight: 900;
}
.robo-icon.green { background: #eafaf1; color: #047857; }
.robo-icon.blue { background: #eaf6ff; color: #0369a1; }
.robo-icon.orange { background: #fff3e8; color: #c2410c; }
.robo-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .92fr);
  gap: 24px;
  align-items: center;
  padding: 38px;
  border: 1px solid var(--robo-border);
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff, #eef8ff);
}
.robo-steps {
  display: grid;
  gap: 10px;
}
.robo-steps div {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 62px;
  padding: 10px 12px;
  border: 1px solid var(--robo-border);
  border-radius: 8px;
  background: #ffffff;
}
.robo-steps strong {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--robo-blue);
  color: #ffffff;
}
.robo-steps span { color: var(--robo-ink); font-weight: 800; }
.robo-challenges {
  padding: 34px;
  border-radius: 8px;
  background: #082f49;
}
.robo-challenges .robo-section-title h2,
.robo-challenges .robo-section-title p { color: #ffffff; }
.robo-challenges .robo-section-title p { color: #d9f2ff; }
.robo-challenge-grid { grid-template-columns: repeat(4, minmax(180px, 1fr)); }
.robo-challenge-grid article {
  min-height: 210px;
  border-color: rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .08);
}
.robo-challenge-grid span {
  color: #a7f3d0;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.robo-challenge-grid h3 { color: #ffffff; }
.robo-challenge-grid p { color: #dff7ff; }
.robo-gamification {
  background: linear-gradient(135deg, #f8fafc, #fff7ed);
}
.robo-ranking-card {
  padding: 18px;
  border-color: var(--robo-border);
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(15, 35, 52, .08);
  backdrop-filter: none;
}
.robo-ranking-row {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 10px;
  align-items: center;
  min-height: 54px;
  border-bottom: 1px solid var(--robo-border);
}
.robo-ranking-row strong {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e0f2fe;
  color: #075985;
}
.robo-ranking-row span { font-weight: 900; color: var(--robo-ink); }
.robo-ranking-row em { color: var(--robo-orange); font-style: normal; font-weight: 900; }
.robo-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.robo-badges span {
  padding: 7px 10px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #047857;
  font-size: 12px;
  font-weight: 900;
}
.robo-portfolio { grid-template-columns: repeat(4, minmax(180px, 1fr)); }
.robo-portfolio article { min-height: 132px; }
.robo-portfolio strong {
  margin-bottom: 8px;
  color: var(--robo-blue);
  font-size: 16px;
  text-transform: uppercase;
}
.robo-safety {
  background: linear-gradient(135deg, #ecfeff, #ffffff);
}
.robo-safety-list {
  display: grid;
  gap: 10px;
}
.robo-safety-list span {
  min-height: 50px;
  display: flex;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--robo-border);
  border-radius: 8px;
  background: #ffffff;
  color: var(--robo-ink);
  font-weight: 900;
}
.robo-final {
  padding: 44px;
  border-radius: 8px;
  background: #071826;
  color: #ffffff;
}
.robo-final h2 { max-width: 900px; color: #ffffff; }
.robo-final p { color: #d9f2ff; }
.materials-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  gap: 22px;
  align-items: center;
  padding: 38px;
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff, #e8f7ff);
  border: 1px solid var(--robo-border);
}
.materials-hero h1 {
  max-width: 860px;
  margin: 10px 0;
  color: var(--robo-ink);
  font-size: 46px;
  line-height: 1.08;
}
.materials-hero p {
  max-width: 880px;
  color: var(--robo-muted);
  font-size: 17px;
  line-height: 1.65;
}
.materials-summary {
  display: grid;
  gap: 12px;
  align-content: center;
  min-height: 190px;
  padding: 22px;
  border: 1px solid var(--robo-border);
  border-radius: 8px;
  background: #ffffff;
}
.materials-summary strong {
  color: var(--robo-blue);
  font-size: 54px;
  line-height: 1;
}
.materials-summary span {
  color: var(--robo-muted);
  font-weight: 800;
}
.materials-section {
  display: grid;
  gap: 14px;
}
.materials-section-head h2 {
  margin: 8px 0 0;
  color: var(--robo-ink);
  font-size: 30px;
}
.materials-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 14px;
}
.materials-grid.compact {
  grid-template-columns: repeat(4, minmax(200px, 1fr));
}
.material-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 218px;
  padding: 18px;
  border: 1px solid var(--robo-border);
  border-radius: 8px;
  background: #ffffff;
}
.material-card h3 {
  margin: 0;
  color: var(--robo-ink);
  font-size: 19px;
  line-height: 1.2;
}
.material-card p {
  flex: 1;
  margin: 0;
  color: var(--robo-muted);
  line-height: 1.55;
}
.material-type {
  width: fit-content;
  padding: 5px 8px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #047857;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.robo-materials {
  padding: 30px;
  border: 1px solid var(--robo-border);
  border-radius: 8px;
  background: #f8fafc;
}
.pilot-panel {
  display: grid;
  grid-template-columns: minmax(260px, .72fr) minmax(0, 1.28fr);
  gap: 16px;
  align-items: start;
  padding: 18px;
  margin-bottom: 18px;
  border: 1px solid #cfe6df;
  border-radius: 8px;
  background: #f7fffc;
}
.pilot-panel-copy h2 {
  margin: 10px 0 8px;
  color: var(--text);
  font-size: 22px;
}
.pilot-panel-copy p {
  margin: 0;
  max-width: 560px;
  line-height: 1.55;
}
.pilot-link-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  gap: 10px;
}
.pilot-link {
  display: grid;
  gap: 6px;
  min-height: 84px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
}
.pilot-link:hover {
  border-color: var(--accent);
  background: #eefaf7;
}
.pilot-link strong {
  color: var(--accent-dark);
  font-size: 15px;
}
.pilot-link span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}
.pilot-ops {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
  padding-top: 2px;
}
.pilot-ops span {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  background: #ffffff;
  color: var(--muted);
  line-height: 1.45;
}
.pilot-ops strong { color: var(--text); }
.student-dashboard {
  gap: 18px;
}
.student-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 22px;
  align-items: stretch;
  min-height: 430px;
  padding: 42px;
  border-radius: 8px;
  background: linear-gradient(135deg, #071826 0%, #0f5f8c 52%, #1fb6d9 100%);
  color: #ffffff;
  overflow: hidden;
}
.student-hero-copy {
  align-self: center;
}
.student-hero h1 {
  max-width: 820px;
  margin: 14px 0 14px;
  color: #ffffff;
  font-size: 58px;
  line-height: 1.02;
}
.student-hero p {
  max-width: 760px;
  color: #e6f7ff;
  font-size: 19px;
  line-height: 1.58;
}
.student-profile-card {
  display: grid;
  gap: 14px;
  align-content: center;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 8px;
  background: rgba(255, 255, 255, .13);
  box-shadow: 0 24px 50px rgba(0, 0, 0, .18);
}
.student-profile-card h2 {
  color: #ffffff;
  font-size: 28px;
}
.student-avatar {
  display: inline-grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: #14b86a;
  color: #062219;
  font-size: 24px;
  font-weight: 900;
}
.student-profile-card dl,
.student-profile-card div {
  margin: 0;
}
.student-profile-card dl {
  display: grid;
  gap: 10px;
}
.student-profile-card dl div {
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .12);
}
.student-profile-card dt {
  color: #bdefff;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.student-profile-card dd {
  margin: 3px 0 0;
  color: #ffffff;
  font-weight: 900;
}
.student-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 12px;
}
.student-stats article,
.student-section,
.student-notice {
  border: 1px solid var(--robo-border);
  border-radius: 8px;
  background: #ffffff;
}
.student-stats article {
  min-height: 118px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 18px;
}
.student-stats span {
  color: var(--robo-muted);
  font-weight: 800;
}
.student-stats strong {
  color: var(--robo-blue);
  font-size: 38px;
  line-height: 1;
}
.student-notice {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 14px 16px;
  background: #fff7ed;
  border-color: #fed7aa;
}
.student-notice strong {
  color: #c2410c;
}
.student-notice span {
  color: #6b4d28;
  line-height: 1.45;
}
.student-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 18px;
  align-items: start;
}
.student-main,
.student-side {
  display: grid;
  gap: 18px;
}
.student-section {
  padding: 18px;
}
.student-section-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
  margin-bottom: 14px;
}
.student-section-head h2,
.student-card-panel h2 {
  margin: 8px 0 0;
  color: var(--robo-ink);
  font-size: 25px;
}
.student-challenge-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 12px;
}
.student-challenge-card {
  display: grid;
  gap: 10px;
  min-height: 210px;
  padding: 16px;
  border: 1px solid var(--robo-border);
  border-radius: 8px;
  background: #f8fbff;
}
.student-challenge-card h3,
.student-project-card h3,
.student-progress-steps h3 {
  margin: 0;
  color: var(--robo-ink);
  font-size: 18px;
}
.student-challenge-card p,
.student-progress-steps p,
.student-card-panel p {
  margin: 0;
  color: var(--robo-muted);
  line-height: 1.5;
}
.student-challenge-card small {
  align-self: end;
  color: var(--robo-blue);
  font-weight: 900;
}
.student-challenge-card.is-muted {
  background: #f8fafc;
  opacity: .78;
}
.student-chip {
  width: fit-content;
  padding: 5px 8px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #047857;
  font-size: 12px;
  font-weight: 900;
}
.student-project-list {
  display: grid;
  gap: 10px;
}
.student-project-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 100px 80px;
  gap: 12px;
  align-items: center;
  min-height: 78px;
  padding: 12px;
  border: 1px solid var(--robo-border);
  border-radius: 8px;
  background: #ffffff;
}
.student-project-card span,
.student-project-score span {
  color: var(--robo-muted);
  font-size: 13px;
}
.student-project-score {
  display: grid;
  justify-items: end;
}
.student-project-score strong {
  color: var(--robo-orange);
  font-size: 22px;
}
.student-progress-steps {
  display: grid;
  gap: 10px;
}
.student-progress-steps article {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--robo-border);
  border-radius: 8px;
  background: #f8fafc;
}
.student-progress-steps article > strong {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--robo-blue);
  color: #ffffff;
}
.student-progress-steps article > span {
  padding: 5px 8px;
  border-radius: 999px;
  background: #e0f2fe;
  color: #075985;
  font-size: 12px;
  font-weight: 900;
}
.student-card-panel {
  display: grid;
  gap: 12px;
}
.student-stars {
  display: grid;
  gap: 4px;
  padding: 18px;
  border-radius: 8px;
  background: linear-gradient(135deg, #fff7ed, #ecfeff);
}
.student-stars strong {
  color: var(--robo-orange);
  font-size: 52px;
  line-height: 1;
}
.student-stars span {
  color: var(--robo-ink);
  font-weight: 900;
}
.student-badge-grid {
  display: grid;
  gap: 8px;
}
.student-badge-grid span {
  padding: 10px 12px;
  border-radius: 8px;
  background: #ecfdf5;
  color: #047857;
  font-weight: 900;
}
.student-ranking {
  display: grid;
  gap: 8px;
}
.student-ranking div {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  gap: 8px;
  align-items: center;
  min-height: 44px;
  padding: 8px;
  border-radius: 8px;
  background: #f8fafc;
}
.student-ranking strong {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #dbeafe;
  color: #1d4ed8;
}
.student-ranking span {
  color: var(--robo-ink);
  font-weight: 900;
}
.student-ranking em {
  color: var(--robo-orange);
  font-style: normal;
  font-weight: 900;
}
.student-ranking .is-current {
  background: #ecfdf5;
  outline: 2px solid #14b86a;
}
.student-motivation {
  padding: 32px;
  border-radius: 8px;
  background: #071826;
  color: #ffffff;
}
.student-motivation h2 {
  max-width: 920px;
  margin: 10px 0;
  color: #ffffff;
  font-size: 34px;
}
.student-motivation p {
  color: #d9f2ff;
  font-size: 17px;
  line-height: 1.55;
}
.teacher-dashboard {
  gap: 18px;
}
.teacher-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 22px;
  align-items: stretch;
  min-height: 430px;
  padding: 42px;
  border-radius: 8px;
  background: linear-gradient(135deg, #082f49 0%, #0f766e 54%, #38bdf8 100%);
  color: #ffffff;
  overflow: hidden;
}
.teacher-hero-copy {
  align-self: center;
}
.teacher-hero h1 {
  max-width: 820px;
  margin: 14px 0 14px;
  color: #ffffff;
  font-size: 58px;
  line-height: 1.02;
}
.teacher-hero p {
  max-width: 760px;
  color: #e6f7ff;
  font-size: 19px;
  line-height: 1.58;
}
.teacher-profile-card {
  display: grid;
  gap: 14px;
  align-content: center;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 8px;
  background: rgba(255, 255, 255, .14);
  box-shadow: 0 24px 50px rgba(0, 0, 0, .18);
}
.teacher-profile-card h2 {
  color: #ffffff;
  font-size: 28px;
}
.teacher-avatar {
  display: inline-grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: #facc15;
  color: #132233;
  font-size: 24px;
  font-weight: 900;
}
.teacher-profile-card dl,
.teacher-profile-card div {
  margin: 0;
}
.teacher-profile-card dl {
  display: grid;
  gap: 10px;
}
.teacher-profile-card dl div {
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .12);
}
.teacher-profile-card dt {
  color: #d9f7ff;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.teacher-profile-card dd {
  margin: 3px 0 0;
  color: #ffffff;
  font-weight: 900;
}
.teacher-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 12px;
}
.teacher-stats article,
.teacher-section,
.teacher-message {
  border: 1px solid var(--robo-border);
  border-radius: 8px;
  background: #ffffff;
}
.teacher-stats article {
  min-height: 118px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 18px;
}
.teacher-stats span {
  color: var(--robo-muted);
  font-weight: 800;
}
.teacher-stats strong {
  color: var(--robo-blue);
  font-size: 38px;
  line-height: 1;
}
.teacher-message {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 14px 16px;
  background: #ecfeff;
  border-color: #bae6fd;
}
.teacher-message strong {
  color: #0369a1;
}
.teacher-message span {
  color: #164e63;
  line-height: 1.45;
}
.teacher-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  gap: 18px;
  align-items: start;
}
.teacher-main,
.teacher-side {
  display: grid;
  gap: 18px;
}
.teacher-section {
  padding: 18px;
}
.teacher-section-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
  margin-bottom: 14px;
}
.teacher-section-head h2,
.teacher-card-panel h2 {
  margin: 8px 0 0;
  color: var(--robo-ink);
  font-size: 25px;
}
.teacher-class-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 12px;
}
.teacher-class-card {
  display: grid;
  gap: 12px;
  min-height: 190px;
  padding: 16px;
  border: 1px solid var(--robo-border);
  border-radius: 8px;
  background: #f8fbff;
}
.teacher-class-card h3,
.teacher-challenge-card h3,
.teacher-project-card h3,
.teacher-progress-list h3 {
  margin: 0;
  color: var(--robo-ink);
  font-size: 18px;
}
.teacher-chip {
  width: fit-content;
  padding: 5px 8px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #047857;
  font-size: 12px;
  font-weight: 900;
}
.teacher-card-metrics {
  display: grid;
  gap: 8px;
  align-self: end;
}
.teacher-card-metrics span {
  display: block;
  color: var(--robo-muted);
}
.teacher-card-metrics strong {
  color: var(--robo-blue);
  font-size: 22px;
}
.teacher-challenge-list,
.teacher-project-list,
.teacher-progress-list {
  display: grid;
  gap: 10px;
}
.teacher-challenge-card,
.teacher-project-card,
.teacher-progress-list article {
  display: grid;
  gap: 10px;
  align-items: center;
  min-height: 76px;
  padding: 12px;
  border: 1px solid var(--robo-border);
  border-radius: 8px;
  background: #ffffff;
}
.teacher-challenge-card {
  grid-template-columns: minmax(0, 1fr) 72px 140px;
}
.teacher-project-card {
  grid-template-columns: minmax(0, 1fr) minmax(150px, .7fr) minmax(150px, .7fr);
}
.teacher-progress-list article {
  grid-template-columns: minmax(0, 1fr) 72px;
}
.teacher-challenge-card span,
.teacher-project-card span,
.teacher-progress-list span {
  color: var(--robo-muted);
  font-size: 13px;
}
.teacher-challenge-card strong,
.teacher-progress-list strong {
  color: var(--robo-orange);
  font-size: 26px;
  justify-self: end;
}
.teacher-challenge-card em {
  color: var(--robo-muted);
  font-style: normal;
  justify-self: end;
}
.teacher-project-card strong {
  color: var(--robo-blue);
  justify-self: end;
}
.teacher-pending-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  gap: 12px;
}
.teacher-pending-grid article {
  display: grid;
  gap: 8px;
  min-height: 130px;
  padding: 14px;
  border: 1px solid var(--robo-border);
  border-radius: 8px;
  background: #fff7ed;
}
.teacher-pending-grid strong {
  color: var(--robo-orange);
  font-size: 34px;
  line-height: 1;
}
.teacher-pending-grid span {
  color: var(--robo-ink);
  font-weight: 900;
}
.teacher-pending-grid em {
  color: var(--robo-muted);
  font-style: normal;
}
.teacher-card-panel {
  display: grid;
  gap: 12px;
}
.teacher-action-grid {
  display: grid;
  gap: 8px;
}
.teacher-action-grid a {
  display: block;
  padding: 11px 12px;
  border: 1px solid var(--robo-border);
  border-radius: 8px;
  background: #f8fafc;
  color: var(--robo-ink);
  font-weight: 900;
}
.teacher-action-grid a:hover {
  border-color: var(--accent);
  background: #eefaf7;
  color: var(--accent-dark);
}
.teacher-ranking {
  display: grid;
  gap: 8px;
}
.teacher-ranking div {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  gap: 8px;
  align-items: center;
  min-height: 44px;
  padding: 8px;
  border-radius: 8px;
  background: #f8fafc;
}
.teacher-ranking strong {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #dbeafe;
  color: #1d4ed8;
}
.teacher-ranking span {
  color: var(--robo-ink);
  font-weight: 900;
}
.teacher-ranking em {
  color: var(--robo-orange);
  font-style: normal;
  font-weight: 900;
}
.teacher-report-grid {
  display: grid;
  gap: 10px;
}
.teacher-report-grid article {
  padding: 12px;
  border-radius: 8px;
  background: #f8fafc;
}
.teacher-report-grid strong {
  display: block;
  color: var(--robo-blue);
  font-size: 30px;
}
.teacher-report-grid span {
  display: block;
  color: var(--robo-ink);
  font-weight: 900;
}
.teacher-report-grid p {
  margin: 4px 0 0;
  color: var(--robo-muted);
}
.teacher-final {
  padding: 32px;
  border-radius: 8px;
  background: #071826;
  color: #ffffff;
}
.teacher-final h2 {
  max-width: 980px;
  margin: 10px 0;
  color: #ffffff;
  font-size: 34px;
}
.teacher-final p {
  color: #d9f2ff;
  font-size: 17px;
  line-height: 1.55;
}
.challenge-demo {
  gap: 18px;
}
.challenge-hero,
.challenge-detail-hero,
.project-detail-hero,
.ranking-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  gap: 22px;
  align-items: center;
  min-height: 360px;
  padding: 38px;
  border-radius: 8px;
  background: linear-gradient(135deg, #071826 0%, #0f5f8c 55%, #38bdf8 100%);
  color: #ffffff;
}
.challenge-hero.compact {
  grid-template-columns: 1fr;
  min-height: 260px;
}
.challenge-hero h1,
.challenge-detail-hero h1,
.project-detail-hero h1,
.ranking-hero h1 {
  max-width: 860px;
  margin: 12px 0;
  color: #ffffff;
  font-size: 54px;
  line-height: 1.04;
}
.challenge-hero p,
.challenge-detail-hero p,
.project-detail-hero p,
.ranking-hero p {
  max-width: 820px;
  color: #e6f7ff;
  font-size: 18px;
  line-height: 1.58;
}
.challenge-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--robo-border);
  border-radius: 8px;
  background: #ffffff;
}
.challenge-filter-bar button,
.rating-picker button {
  min-height: 36px;
  padding: 8px 11px;
  border: 1px solid var(--robo-border);
  border-radius: 999px;
  background: #f8fafc;
  color: var(--robo-ink);
  font-weight: 900;
  cursor: pointer;
}
.challenge-filter-bar button:first-child,
.challenge-filter-bar button:hover {
  border-color: var(--accent);
  background: #ecfdf5;
  color: var(--accent-dark);
}
.challenge-grid,
.project-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: 14px;
}
.challenge-card,
.project-visual-card,
.challenge-panel,
.project-form-panel {
  border: 1px solid var(--robo-border);
  border-radius: 8px;
  background: #ffffff;
}
.challenge-card,
.project-visual-card {
  display: grid;
  gap: 12px;
  min-height: 310px;
  padding: 18px;
}
.challenge-card.is-muted {
  background: #f8fafc;
  opacity: .82;
}
.challenge-card-top,
.challenge-meta,
.project-social-row,
.challenge-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.challenge-card-top {
  justify-content: space-between;
}
.challenge-card h2,
.project-visual-card h2,
.challenge-panel h2 {
  margin: 0;
  color: var(--robo-ink);
  font-size: 22px;
}
.challenge-card p,
.project-visual-card p,
.challenge-panel p {
  margin: 0;
  color: var(--robo-muted);
  line-height: 1.55;
}
.challenge-status,
.challenge-card-top span,
.challenge-meta span,
.project-social-row span {
  width: fit-content;
  padding: 5px 8px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #047857;
  font-size: 12px;
  font-weight: 900;
}
.challenge-card-top span:last-child,
.challenge-meta span,
.project-social-row span {
  background: #e0f2fe;
  color: #075985;
}
.challenge-actions {
  align-self: end;
}
.challenge-detail-card,
.star-panel {
  display: grid;
  gap: 8px;
  align-content: center;
  min-height: 190px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 8px;
  background: rgba(255, 255, 255, .14);
}
.challenge-detail-card strong,
.star-panel strong {
  color: #ffffff;
  font-size: 52px;
  line-height: 1;
}
.challenge-detail-card span,
.challenge-detail-card small,
.star-panel p {
  color: #d9f2ff;
}
.challenge-detail-layout,
.project-detail-layout,
.ranking-layout,
.project-form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 18px;
  align-items: start;
}
.challenge-detail-main,
.challenge-detail-side,
.project-detail-main,
.project-detail-side {
  display: grid;
  gap: 18px;
}
.challenge-panel,
.project-form-panel {
  display: grid;
  gap: 12px;
  padding: 18px;
}
.visual-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: var(--robo-muted);
  line-height: 1.5;
}
.evidence-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(140px, 1fr));
  gap: 10px;
}
.evidence-grid span,
.criteria-list div,
.mini-ranking div,
.mini-project-list a {
  border-radius: 8px;
  background: #f8fafc;
}
.evidence-grid span {
  padding: 12px;
  color: var(--robo-ink);
  font-weight: 900;
}
.criteria-list {
  display: grid;
  gap: 8px;
}
.criteria-list div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
}
.criteria-list span {
  color: var(--robo-ink);
  font-weight: 800;
}
.criteria-list strong {
  color: var(--robo-orange);
}
.mini-project-list,
.mini-ranking {
  display: grid;
  gap: 8px;
}
.mini-project-list a {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
}
.mini-project-list strong,
.mini-ranking span {
  color: var(--robo-ink);
}
.mini-project-list span,
.mini-ranking em {
  color: var(--robo-muted);
  font-style: normal;
}
.mini-ranking div {
  display: grid;
  grid-template-columns: 30px 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 10px;
}
.mini-ranking strong {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #dbeafe;
  color: #1d4ed8;
}
.project-form-panel {
  grid-template-columns: repeat(2, minmax(220px, 1fr));
}
.project-form-panel label {
  display: grid;
  gap: 6px;
}
.project-form-panel label span {
  color: var(--robo-muted);
  font-weight: 900;
}
.project-form-panel textarea.form-control {
  min-height: 110px;
}
.upload-placeholder,
.visual-confirmation {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px dashed #94a3b8;
  border-radius: 8px;
  background: #f8fafc;
}
.upload-placeholder,
.project-form-panel .form-actions {
  grid-column: 1 / -1;
}
.upload-placeholder strong,
.visual-confirmation strong {
  color: var(--robo-ink);
}
.upload-placeholder span,
.visual-confirmation span {
  color: var(--robo-muted);
}
.visual-confirmation {
  border-style: solid;
  border-color: #bbf7d0;
  background: #ecfdf5;
}
.project-thumb,
.project-visual-media,
.project-video-placeholder {
  display: grid;
  place-items: center;
  min-height: 160px;
  border-radius: 8px;
  background: linear-gradient(135deg, #e0f2fe, #ecfdf5);
  color: var(--robo-blue);
  font-weight: 900;
}
.project-visual-media {
  min-height: 300px;
}
.project-video-placeholder {
  min-height: 180px;
  background: #071826;
  color: #ffffff;
}
.project-detail-main .challenge-panel h2 {
  margin-bottom: 4px;
}
.star-row,
.rating-picker button {
  color: #facc15;
  font-size: 24px;
  letter-spacing: 0;
}
.like-box {
  display: grid;
  gap: 8px;
  padding: 16px;
  border-radius: 8px;
  background: #fff7ed;
}
.like-box strong {
  color: var(--robo-orange);
  font-size: 44px;
  line-height: 1;
}
.like-box span {
  color: var(--robo-ink);
  font-weight: 900;
}
.comment-list {
  display: grid;
  gap: 10px;
}
.comment-list article {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius: 8px;
  background: #f8fafc;
}
.comment-list strong {
  color: var(--robo-ink);
}
.comment-list span,
.safe-note {
  color: var(--robo-muted);
  font-size: 13px;
}
.ranking-table {
  display: grid;
  gap: 10px;
}
.ranking-table article {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 120px 90px 80px;
  gap: 12px;
  align-items: center;
  min-height: 76px;
  padding: 14px;
  border: 1px solid var(--robo-border);
  border-radius: 8px;
  background: #ffffff;
}
.ranking-table article.is-first {
  border-color: #facc15;
  background: #fffbea;
}
.ranking-table article > strong {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--robo-blue);
  color: #ffffff;
}
.ranking-table h2 {
  margin: 0;
  color: var(--robo-ink);
  font-size: 19px;
}
.ranking-table span {
  color: var(--robo-muted);
  font-weight: 800;
}
.ranking-table em {
  color: var(--robo-orange);
  font-style: normal;
  font-weight: 900;
}
.portfolio-demo {
  gap: 18px;
}
.portfolio-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 22px;
  align-items: center;
  min-height: 390px;
  padding: 38px;
  border-radius: 8px;
  background: linear-gradient(135deg, #071826 0%, #0f5f8c 52%, #14b86a 100%);
  color: #ffffff;
}
.portfolio-hero h1 {
  max-width: 860px;
  margin: 12px 0;
  color: #ffffff;
  font-size: 54px;
  line-height: 1.04;
}
.portfolio-hero p {
  max-width: 820px;
  color: #e6f7ff;
  font-size: 18px;
  line-height: 1.58;
}
.portfolio-profile {
  display: grid;
  gap: 14px;
  align-content: center;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 8px;
  background: rgba(255, 255, 255, .14);
}
.portfolio-profile h2 {
  color: #ffffff;
  font-size: 28px;
}
.portfolio-profile dl,
.portfolio-profile div {
  margin: 0;
}
.portfolio-profile dl {
  display: grid;
  gap: 10px;
}
.portfolio-profile dl div {
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .12);
}
.portfolio-profile dt {
  color: #d9f7ff;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.portfolio-profile dd {
  margin: 3px 0 0;
  color: #ffffff;
  font-weight: 900;
}
.portfolio-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--robo-border);
  border-radius: 8px;
  background: #ffffff;
}
.portfolio-actions span {
  color: var(--robo-muted);
  font-weight: 800;
}
.portfolio-stats {
  display: grid;
  grid-template-columns: repeat(6, minmax(140px, 1fr));
  gap: 12px;
}
.portfolio-stats article,
.portfolio-section {
  border: 1px solid var(--robo-border);
  border-radius: 8px;
  background: #ffffff;
}
.portfolio-stats article {
  min-height: 112px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 16px;
}
.portfolio-stats span {
  color: var(--robo-muted);
  font-weight: 800;
}
.portfolio-stats strong {
  color: var(--robo-blue);
  font-size: 34px;
  line-height: 1;
}
.portfolio-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 390px);
  gap: 18px;
  align-items: start;
}
.portfolio-main,
.portfolio-side {
  display: grid;
  gap: 18px;
}
.portfolio-section {
  display: grid;
  gap: 14px;
  padding: 18px;
}
.portfolio-section-head h2 {
  margin: 8px 0 0;
  color: var(--robo-ink);
  font-size: 25px;
}
.portfolio-project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(190px, 1fr));
  gap: 12px;
}
.portfolio-project-card,
.portfolio-completed-grid article,
.portfolio-active-grid article,
.portfolio-badge-grid article,
.portfolio-feedback-list article {
  border: 1px solid var(--robo-border);
  border-radius: 8px;
  background: #f8fafc;
}
.portfolio-project-card {
  display: grid;
  gap: 10px;
  min-height: 250px;
  padding: 14px;
}
.portfolio-project-card h3,
.portfolio-completed-grid h3,
.portfolio-active-grid h3,
.portfolio-timeline h3 {
  margin: 0;
  color: var(--robo-ink);
  font-size: 18px;
}
.portfolio-project-card p,
.portfolio-feedback-list p,
.student-reflection p {
  margin: 0;
  color: var(--robo-muted);
  line-height: 1.5;
}
.portfolio-completed-grid,
.portfolio-active-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 12px;
}
.portfolio-completed-grid article,
.portfolio-active-grid article {
  display: grid;
  gap: 8px;
  padding: 14px;
}
.portfolio-completed-grid span,
.portfolio-active-grid span {
  color: var(--robo-muted);
}
.portfolio-completed-grid strong,
.portfolio-active-grid strong {
  color: var(--robo-orange);
  font-size: 26px;
}
.portfolio-progress {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e2e8f0;
}
.portfolio-progress span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--robo-green), var(--robo-sky));
}
.portfolio-timeline {
  display: grid;
  gap: 10px;
}
.portfolio-timeline article {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--robo-border);
  border-radius: 8px;
  background: #f8fafc;
}
.portfolio-timeline strong {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--robo-blue);
  color: #ffffff;
}
.portfolio-timeline p {
  margin: 4px 0 0;
  color: var(--robo-muted);
}
.student-reflection {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 8px;
  background: #ecfeff;
}
.portfolio-badge-grid,
.portfolio-feedback-list,
.competency-list,
.portfolio-history {
  display: grid;
  gap: 10px;
}
.portfolio-badge-grid article,
.portfolio-feedback-list article {
  display: grid;
  gap: 6px;
  padding: 12px;
}
.portfolio-badge-grid strong,
.portfolio-feedback-list strong {
  color: var(--robo-ink);
}
.portfolio-badge-grid p {
  margin: 0;
  color: var(--robo-muted);
  line-height: 1.45;
}
.portfolio-badge-grid article {
  background: #ecfdf5;
}
.competency-list article {
  display: grid;
  gap: 8px;
}
.competency-list article > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.competency-list span {
  color: var(--robo-ink);
  font-weight: 800;
}
.competency-list strong {
  color: var(--robo-blue);
}
.portfolio-history span {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f8fafc;
  color: var(--robo-muted);
  line-height: 1.45;
}
.admin-demo {
  --admin-blue: #0f4f8f;
  --admin-cyan: #0e7490;
  --admin-green: #0f766e;
  --admin-orange: #b45309;
  --admin-ink: #172033;
  --admin-muted: #5c6b7d;
  --admin-line: #d9e3ee;
}
.admin-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
  gap: 22px;
  align-items: stretch;
  padding: 34px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(9, 60, 112, .96), rgba(14, 116, 144, .9)),
    linear-gradient(45deg, #0f4f8f, #0f766e);
  color: #ffffff;
}
.admin-hero h1 {
  margin: 8px 0;
  font-size: 46px;
  line-height: 1.05;
}
.admin-hero p {
  max-width: 760px;
  color: #e8f8ff;
  font-size: 18px;
  line-height: 1.55;
}
.admin-profile {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-content: start;
  padding: 18px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 8px;
  background: rgba(255,255,255,.1);
}
.admin-avatar {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 8px;
  background: #ffffff;
  color: var(--admin-blue);
  font-size: 28px;
  font-weight: 900;
}
.admin-profile h2 {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: 22px;
}
.admin-profile dl,
.admin-profile div {
  margin: 0;
}
.admin-profile dl {
  display: grid;
  gap: 8px;
}
.admin-profile dl div {
  display: grid;
  gap: 2px;
}
.admin-profile dt {
  color: #d9f4ff;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}
.admin-profile dd {
  color: #ffffff;
  margin: 0;
  font-weight: 800;
}
.admin-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--admin-line);
  border-radius: 8px;
  background: #ffffff;
}
.admin-actions span {
  color: var(--admin-ink);
  font-weight: 900;
  margin-right: 4px;
}
.admin-actions a,
.admin-mini-link {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid #b7d6ea;
  border-radius: 6px;
  background: #f0f9ff;
  color: var(--admin-blue);
  font-weight: 800;
}
.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 12px;
}
.admin-stats article,
.admin-section {
  border: 1px solid var(--admin-line);
  border-radius: 8px;
  background: #ffffff;
}
.admin-stats article {
  padding: 16px;
}
.admin-stats span {
  display: block;
  color: var(--admin-muted);
  font-weight: 800;
}
.admin-stats strong {
  display: block;
  margin-top: 6px;
  color: var(--admin-blue);
  font-size: 30px;
}
.admin-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 18px;
  align-items: start;
}
.admin-main,
.admin-side {
  display: grid;
  gap: 18px;
}
.admin-section {
  padding: 18px;
}
.admin-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.admin-section-head h2,
.admin-section h2 {
  color: var(--admin-ink);
  font-size: 22px;
}
.admin-status,
.admin-priority {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #eef6ff;
  color: var(--admin-blue);
  font-size: 12px;
  font-weight: 900;
}
.admin-status.is-ok {
  background: #dcfce7;
  color: #166534;
}
.admin-status.is-warning,
.admin-priority {
  background: #fff7ed;
  color: var(--admin-orange);
}
.admin-summary-grid,
.admin-grid-two,
.admin-class-grid,
.admin-report-grid {
  display: grid;
  gap: 12px;
}
.admin-summary-grid {
  grid-template-columns: repeat(3, minmax(160px, 1fr));
}
.admin-summary-grid article {
  padding: 14px;
  border-radius: 8px;
  background: #f8fafc;
}
.admin-summary-grid strong {
  display: block;
  color: var(--admin-cyan);
  font-size: 28px;
}
.admin-summary-grid span {
  display: block;
  margin-top: 4px;
  color: var(--admin-muted);
  line-height: 1.45;
}
.admin-table-wrap {
  overflow-x: auto;
}
.admin-table {
  min-width: 820px;
}
.admin-table th {
  background: #f8fafc;
  color: var(--admin-muted);
}
.admin-table strong,
.admin-management-list h3,
.admin-class-grid h3 {
  color: var(--admin-ink);
}
.admin-row-actions,
.admin-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.admin-row-actions button,
.admin-card-actions button,
.admin-card-actions a {
  min-height: 30px;
  padding: 6px 9px;
  border: 1px solid #c5d7e8;
  border-radius: 6px;
  background: #ffffff;
  color: var(--admin-blue);
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}
.admin-grid-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.admin-card-list {
  display: grid;
  gap: 10px;
}
.admin-card-list article {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid #e1eaf4;
  border-radius: 8px;
  background: #fbfdff;
}
.admin-card-list span,
.admin-card-list em,
.admin-class-grid span,
.admin-management-list span,
.admin-management-list small,
.admin-report-grid p,
.admin-comment-list p,
.admin-security-list span,
.admin-timeline p,
.admin-recommendations p {
  color: var(--admin-muted);
  line-height: 1.45;
}
.admin-card-list em {
  font-style: normal;
  font-weight: 900;
}
.admin-class-grid {
  grid-template-columns: repeat(2, minmax(230px, 1fr));
}
.admin-class-grid article,
.admin-report-grid article {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid #e1eaf4;
  border-radius: 8px;
  background: #fbfdff;
}
.admin-class-grid article > div:not(.admin-card-actions) {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr;
  gap: 6px 8px;
  align-items: baseline;
}
.admin-class-grid strong {
  color: var(--admin-cyan);
  font-size: 23px;
}
.admin-class-grid small {
  color: var(--admin-muted);
  font-weight: 800;
}
.admin-management-list,
.admin-comment-list,
.admin-security-list,
.admin-timeline,
.admin-recommendations {
  display: grid;
  gap: 10px;
}
.admin-management-list article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(190px, auto);
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid #e1eaf4;
  border-radius: 8px;
  background: #fbfdff;
}
.admin-management-list h3 {
  margin: 0 0 4px;
}
.admin-management-list strong {
  justify-self: start;
  color: var(--admin-green);
}
.admin-alert-section {
  border-color: #fed7aa;
  background: #fffaf5;
}
.admin-report-grid {
  grid-template-columns: repeat(2, minmax(230px, 1fr));
}
.admin-report-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: flex-start;
}
.admin-report-grid p {
  margin: 0;
}
.admin-safety-note {
  padding: 12px;
  border-radius: 8px;
  background: #f0fdfa;
  color: #115e59;
  font-weight: 800;
  line-height: 1.5;
}
.admin-comment-list article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid #e1eaf4;
  border-radius: 8px;
  background: #fbfdff;
}
.admin-comment-list p {
  margin: 5px 0 8px;
}
.admin-security-list article {
  display: grid;
  gap: 4px;
  padding: 11px;
  border: 1px solid #d1fae5;
  border-radius: 8px;
  background: #f7fffb;
}
.admin-security-list strong {
  color: #115e59;
}
.admin-timeline article,
.admin-recommendations article {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  padding: 10px;
  border-radius: 8px;
  background: #f8fafc;
}
.admin-timeline span,
.admin-recommendations span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: #e0f2fe;
  color: var(--admin-blue);
  font-weight: 900;
}
.admin-timeline p,
.admin-recommendations p {
  margin: 4px 0 0;
}
@media (max-width: 1100px) {
  .robo-hero,
  .robo-band,
  .materials-hero,
  .pilot-panel,
  .student-hero,
  .student-layout,
  .teacher-hero,
  .teacher-layout { grid-template-columns: 1fr; }
  .robo-proof,
  .robo-challenge-grid,
  .robo-portfolio,
  .materials-grid,
  .materials-grid.compact,
  .student-stats,
  .student-challenge-grid,
  .teacher-stats,
  .teacher-class-grid,
  .teacher-pending-grid,
  .challenge-grid,
  .project-card-grid,
  .evidence-grid,
  .pedagogical-badge-grid { grid-template-columns: repeat(2, minmax(180px, 1fr)); }
  .steam-competency-grid,
  .steam-mini-grid { grid-template-columns: repeat(2, minmax(180px, 1fr)); }
  .challenge-detail-hero,
  .project-detail-hero,
  .ranking-hero,
  .portfolio-hero,
  .admin-hero,
  .challenge-detail-layout,
  .project-detail-layout,
  .ranking-layout,
  .project-form-layout,
  .portfolio-layout,
  .admin-layout { grid-template-columns: 1fr; }
  .portfolio-stats,
  .portfolio-project-grid,
  .admin-stats { grid-template-columns: repeat(3, minmax(160px, 1fr)); }
}
@media (max-width: 900px) {
  .robo-hero { min-height: auto; padding: 34px; }
  .robo-hero h1 { font-size: 48px; }
  .robo-feature-grid.three { grid-template-columns: 1fr; }
  .pilot-link-grid { grid-template-columns: repeat(2, minmax(150px, 1fr)); }
}
@media (max-width: 640px) {
  .roboliga-page { gap: 16px; }
  .robo-hero,
  .robo-band,
  .robo-challenges,
  .robo-final,
  .materials-hero,
  .robo-materials,
  .pilot-panel,
  .student-hero,
  .student-motivation,
  .teacher-hero,
  .teacher-final,
  .challenge-hero,
  .challenge-detail-hero,
  .project-detail-hero,
  .ranking-hero,
  .portfolio-hero,
  .admin-hero { padding: 22px; }
  .robo-hero h1 { font-size: 38px; }
  .student-hero h1 { font-size: 38px; }
  .teacher-hero h1 { font-size: 38px; }
  .challenge-hero h1,
  .challenge-detail-hero h1,
  .project-detail-hero h1,
  .ranking-hero h1 { font-size: 36px; }
  .portfolio-hero h1 { font-size: 36px; }
  .admin-hero h1 { font-size: 36px; }
  .materials-hero h1 { font-size: 34px; }
  .robo-hero p { font-size: 17px; }
  .robo-section-title h2,
  .robo-band h2,
  .robo-final h2 { font-size: 30px; }
  .robo-proof,
  .robo-challenge-grid,
  .robo-portfolio,
  .robo-score-grid,
  .materials-grid,
  .materials-grid.compact,
  .pilot-link-grid,
  .student-stats,
  .student-challenge-grid,
  .student-project-card,
  .student-progress-steps article,
  .student-ranking div,
  .teacher-stats,
  .teacher-class-grid,
  .teacher-challenge-card,
  .teacher-project-card,
  .teacher-pending-grid,
  .teacher-progress-list article,
  .teacher-ranking div,
  .challenge-grid,
  .project-card-grid,
  .evidence-grid,
  .project-form-panel,
  .mini-ranking div,
  .ranking-table article,
  .portfolio-stats,
  .portfolio-project-grid,
  .portfolio-completed-grid,
  .portfolio-active-grid,
  .portfolio-timeline article,
  .admin-stats,
  .admin-summary-grid,
  .admin-grid-two,
  .admin-class-grid,
  .admin-report-grid,
  .admin-management-list article,
  .admin-comment-list article { grid-template-columns: 1fr; }
  .pedagogical-badge-grid,
  .pedagogical-badge-grid.compact,
  .badge-progress-list article,
  .badge-detail-hero { grid-template-columns: 1fr; }
  .steam-summary,
  .steam-competency-grid,
  .steam-mini-grid { grid-template-columns: 1fr; }
  .student-section-head,
  .student-notice,
  .teacher-section-head,
  .teacher-message,
  .admin-section-head { flex-direction: column; align-items: stretch; }
  .student-project-score { justify-items: start; }
  .teacher-challenge-card strong,
  .teacher-challenge-card em,
  .teacher-project-card strong,
  .teacher-progress-list strong { justify-self: start; }
  .robo-actions .btn { width: 100%; }
  .admin-card-actions,
  .admin-row-actions { align-items: stretch; }
  .admin-card-actions button,
  .admin-card-actions a,
  .admin-row-actions button { width: 100%; justify-content: center; text-align: center; }
  .admin-profile,
  .admin-class-grid article > div:not(.admin-card-actions) { grid-template-columns: 1fr; }
  .robo-ranking-row { grid-template-columns: 36px 1fr; }
  .robo-ranking-row em { grid-column: 2; }
}
