/* Versión Pro (sólo la carga pro.html). */

:root {
  --pro: #b7791f;
  --pro-soft: #fdf3e1;
  --edited: #7b1fa2;
  --limit-bg: #ffe7a8;
  --fail-bg: #f9d6d6;
}

input[type="date"], input[type="time"] {
  width: 100%;
  padding: 8px 11px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-weight: 400;
  min-height: 40px;
}

.pro-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 8px;
  border-radius: 6px;
  background: linear-gradient(135deg, #d69e2e, #b7791f);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  vertical-align: 3px;
}

.pro-banner { border-color: #f0c36d; background: var(--pro-soft); }
.pro-banner p { margin: 0; }

/* Curso de la prueba (pestaña Prueba) */

/* Guardar en el libro (pestaña Resultados) */
.pro-book {
  padding: 14px 16px;
  margin-bottom: 14px;
  border-radius: 10px;
  background: var(--pro-soft);
  border: 1px solid #f0d49c;
}
.pro-book-head p { margin: 2px 0 0; }
.pro-book-empty { margin-top: 8px; }
.pro-book-empty p { margin: 0 0 8px; }
.pro-book-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(135px, 1fr)); gap: 10px 14px; margin-top: 10px; }
.pro-book .actions { margin-top: 12px; }
.pro-book .pro-new-field[hidden] { display: none !important; }

/* Pestaña Cursos */
.pro-course-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 12px; }
.pro-course-bar select { min-width: 240px; max-width: 100%; font-weight: 600; }
.pro-views { display: flex; gap: 4px; padding: 4px; margin-bottom: 14px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); width: fit-content; max-width: 100%; overflow-x: auto; }
.pro-views button { padding: 7px 16px; border: 0; border-radius: 7px; background: transparent; font: inherit; font-weight: 600; color: var(--muted); cursor: pointer; white-space: nowrap; }
.pro-views button[aria-selected="true"] { background: var(--surface); color: var(--primary); box-shadow: var(--shadow); }
.pro-periods { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.pro-periods button { padding: 5px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font: inherit; font-size: 0.9rem; font-weight: 600; color: var(--muted); cursor: pointer; }
.pro-periods button[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: #fff; }
.pro-stats { margin-bottom: 12px; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.pro-stats .stat { padding: 10px 12px; }
.pro-stats .stat b { font-size: 1.35rem; }
.pro-stats .stat.warn b { color: var(--warn); }
.pro-stats .stat.bad b { color: var(--bad); }
.pro-empty-note { padding: 14px; margin-bottom: 10px; border-radius: 8px; background: var(--surface-2); color: var(--muted); text-align: center; }

/* Libro de notas */
.pro-grid-wrap { max-height: 70vh; border: 1px solid var(--border); border-radius: 8px; }
.pro-grid { width: auto; min-width: 100%; border-collapse: separate; border-spacing: 0; }
.pro-grid th, .pro-grid td { padding: 6px 8px; border-bottom: 1px solid var(--border); background: var(--surface); }
.pro-grid th { position: sticky; top: 0; z-index: 2; background: var(--surface-2); text-transform: none; letter-spacing: 0; font-size: 0.8rem; vertical-align: bottom; }
.pro-grid .c-n, .pro-grid .c-name { position: sticky; z-index: 1; }
.pro-grid .c-n { left: 0; width: 2.8em; min-width: 2.8em; text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.pro-grid .c-name { left: 2.8em; min-width: 150px; max-width: 240px; overflow: hidden; text-overflow: ellipsis; border-right: 1px solid var(--border); }
.pro-grid th.c-n, .pro-grid th.c-name { z-index: 3; }
.pro-grid th.ev { cursor: pointer; text-align: center; min-width: 62px; max-width: 110px; white-space: normal; line-height: 1.2; }
.pro-grid th.ev:hover { background: var(--primary-soft); }
.pro-grid th.ev b { display: block; color: var(--primary); }
.pro-grid th.ev span { display: block; font-weight: 500; color: var(--text); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.pro-grid th.ev small { display: block; font-weight: 400; color: var(--muted); }
.pro-grid th.avg, .pro-grid td.avg { text-align: center; border-left: 1px solid var(--border); font-weight: 700; background: #f4f7fb; }
.pro-grid th.avg.final, .pro-grid td.avg.final { background: var(--primary-soft); }
.pro-grid td.g { text-align: center; cursor: pointer; font-variant-numeric: tabular-nums; position: relative; min-width: 62px; }
.pro-grid td.g:hover, .pro-grid td.g:focus { background: var(--primary-soft); outline: none; }
.pro-grid td.g.fail, .pro-grid td.avg.fail { color: var(--bad); }
.pro-grid td.g.edited::after { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 -10px 0 4px; border-radius: 50%; background: var(--edited); vertical-align: 6px; }
.pro-grid td.g.empty { color: #b8c0cb; }
.pro-grid td.g input { width: 4.2em; padding: 3px 4px; text-align: center; font-variant-numeric: tabular-nums; }
.pro-grid td.avg.limitrofe { background: var(--limit-bg); color: #6b4000; }
.pro-grid td.avg.reprobado { background: var(--fail-bg); color: var(--bad); }
.pro-grid tr.retired td { color: var(--muted); }
.pro-grid tr.retired .c-name { text-decoration: line-through; }
.pro-grid tfoot td { font-weight: 700; background: var(--surface-2); text-align: center; border-bottom: 0; }
.pro-grid tfoot td.c-name { text-align: left; }
.pro-grid .tag { margin-left: 4px; }
.pro-sit { display: inline-block; padding: 0 6px; border-radius: 4px; font-weight: 700; }
.pro-sit.limitrofe { background: var(--limit-bg); color: #6b4000; }
.pro-sit.reprobado { background: var(--fail-bg); color: var(--bad); }
.tag.limit { background: var(--limit-bg); color: #6b4000; }
.tag.edited { background: #f1e3f6; color: var(--edited); }

/* Evaluaciones y estudiantes */
.pro-evals tr.group th { background: var(--primary-soft); color: var(--primary); text-transform: none; letter-spacing: 0; font-size: 0.88rem; position: static; }
.pro-evals tbody tr[data-ev] { cursor: pointer; }
.btn.primary.danger-fill { background: var(--bad); }
.btn.primary.danger-fill:hover { background: #a31f1f; }
.pro-evals td, .pro-students td { vertical-align: middle; }
.pro-evals input, .pro-evals select, .pro-students input { padding: 5px 7px; }
.pro-evals input[type="number"] { width: 6em; }
.pro-evals input[type="date"] { width: auto; }
.pro-evals .ev-title { min-width: 170px; }
.pro-evals tbody tr:hover { background: var(--surface-2); }
.pro-evals .kind { font-size: 0.8rem; color: var(--muted); }
.pro-students input.n { width: 4.5em; text-align: right; }
.pro-students input.name { min-width: 200px; }
.pro-students input.rut { width: 9.5em; }
.pro-students tr.retired input.name { text-decoration: line-through; color: var(--muted); }
.pro-students .num { color: var(--muted); }

/* Diálogos */
.pro-dialog { width: min(760px, calc(100vw - 24px)); }
.pro-dialog[open] { display: flex; flex-direction: column; }
.pro-dialog-body { padding: 14px 18px; overflow: auto; }
.pro-dialog-body > label, .pro-dialog-body > div > label { margin-top: 12px; }
.pro-dialog .el-foot { flex-wrap: wrap; }
.pro-confirm { width: min(620px, calc(100vw - 24px)); }
.pro-confirm ul { margin: 8px 0; padding-left: 20px; }
.pro-confirm li { margin: 3px 0; }
.pro-confirm .alert { margin-top: 10px; }
.pro-confirm .choice { display: flex; flex-direction: row; align-items: flex-start; gap: 8px; font-weight: 500; margin: 10px 0; }
.pro-confirm .choice input { margin-top: 4px; }
.pro-confirm .sub { margin-left: 26px; display: flex; flex-direction: column; gap: 4px; }
.pro-confirm .sub label { flex-direction: row; align-items: center; gap: 6px; font-weight: 400; }
.pe-grades-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 16px 0 6px; flex-wrap: wrap; }
.pe-grades-head h3 { font-size: 1rem; }
.pe-grades-wrap { max-height: 46vh; border: 1px solid var(--border); border-radius: 8px; }
.pe-grades td { padding: 4px 10px; }
.pe-grades input { width: 5.5em; text-align: center; padding: 4px 6px; }
.pe-grades input.bad { border-color: var(--bad); background: var(--bad-soft); }
.pe-grades .orig { font-size: 0.78rem; color: var(--edited); margin-left: 6px; }
#pePasteBox { padding: 10px 12px; margin-bottom: 8px; border-radius: 8px; background: var(--surface-2); }

.pro-backup p { max-width: 80ch; }
.pro-cloud p { max-width: 80ch; }
.pz-lib-linked { margin: 10px 0 0; }
.pz-course small { font-size: 0.8rem; }
.pz-course { display: grid; gap: 6px; }
.pz-more-courses { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pz-more-courses select { width: auto; flex: 0 1 auto; padding: 6px 10px; font-size: 0.9rem; }
.course-chips { display: contents; }
.course-chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 4px 4px 10px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); font-weight: 600; font-size: 0.9rem; }
.course-chip button { border: 0; background: transparent; color: inherit; cursor: pointer; font: inherit; padding: 2px 6px; border-radius: 999px; }
.course-chip button:hover { background: rgba(0, 0, 0, 0.08); }
.scan-course { margin: 4px 0 12px; display: grid; gap: 6px; }
.scan-course .field-label { font-weight: 700; }
.scan-course-seg { display: flex; flex-wrap: wrap; gap: 8px; }
.scan-course-seg button { flex: 1 1 120px; display: grid; gap: 2px; padding: 10px 12px; border: 2px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text); font: inherit; font-weight: 700; font-size: 1rem; cursor: pointer; }
.scan-course-seg button small { font-weight: 500; font-size: 0.78rem; color: var(--muted); }
.scan-course-seg button[aria-checked="true"] { border-color: var(--primary); background: var(--primary); color: #fff; }
.scan-course-seg button[aria-checked="true"] small { color: rgba(255, 255, 255, 0.85); }
.pro-lib-dialog { width: min(760px, 96vw); }
.pl-tools { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.pl-tools input { flex: 1 1 220px; padding: 8px 10px; }
#plList { display: grid; gap: 8px; max-height: 60vh; overflow: auto; }
.pl-group { border: 1px solid var(--border); border-radius: 10px; padding: 4px 10px; }
.pl-group summary { cursor: pointer; padding: 6px 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pl-folder { font-weight: 700; }
.pl-folder-actions { margin-left: auto; display: flex; gap: 10px; }
.pl-folder-actions .danger, .pl-actions .danger { color: var(--bad); }
.pl-items { list-style: none; margin: 0 0 6px; padding: 0; display: grid; gap: 6px; }
.pl-items li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
.pl-items li.current { border-color: var(--primary); background: var(--primary-soft); }
.pl-items li.muted { border-style: dashed; }
.pl-info { flex: 1 1 260px; min-width: 0; }
.pl-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.pl-move { max-width: 150px; padding: 5px 6px; }
.pro-lib-mode { margin: 0; }
.pro-cloud-status { font-weight: 600; }
.pro-cloud-status.warn { color: var(--warn); }
.pro-cloud .link-btn.danger { color: var(--bad); }
.pro-cloud-dialog .pro-dialog-body { display: grid; gap: 10px; max-width: 440px; }
.pro-cloud-dialog .pro-dialog-body label:not(.choice) { display: flex; flex-direction: column; gap: 4px; font-weight: 600; }
.pro-cloud-dialog .pro-dialog-body input[type=email], .pro-cloud-dialog .pro-dialog-body input[type=password], .pro-cloud-dialog .pro-dialog-body input[type=text] { font-size: 1.05rem; padding: 10px 12px; }
.pro-cloud-dialog .pcl-show { display: flex; flex-direction: row; align-items: center; gap: 8px; font-weight: 400; }
.pro-cloud-dialog p { margin: 0; }
.pro-reminder strong { display: block; margin-bottom: 2px; }
.pro-reminder .actions { margin-top: 10px; }
.pro-backup-opts { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); display: grid; gap: 12px; }
.pro-backup-opts .choice { display: flex; flex-direction: row; align-items: flex-start; gap: 8px; font-weight: 500; }
.pro-backup-opts .choice input { margin-top: 4px; flex: none; }
.pro-opt p { margin: 4px 0 0 26px; }
#proFolderRow p { margin-left: 0; }
.pro-copies { margin-top: 14px; }
.pro-copies summary { cursor: pointer; font-weight: 600; padding: 6px 0; }
.pro-copies-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.pro-copies-list li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; }
.pro-copies-list li.muted { border-style: dashed; }
.pc-actions { display: flex; gap: 6px; flex-wrap: wrap; }

@media (max-width: 560px) {
  .pro-grid .c-name { min-width: 118px; max-width: 150px; }
  .pro-views { width: 100%; }
  .pro-views button { flex: 1; padding: 7px 6px; }
  .pro-stats .stat span { font-size: 0.78rem; }
  .pro-course-bar select { min-width: 0; width: 100%; }
  .pro-dialog .el-foot .spacer { display: none; }
  .pro-dialog .el-foot .btn { flex: 1 1 40%; }
  .pro-dialog .el-foot .btn.primary { flex-basis: 100%; order: -1; }
}

@media print {
  .pro-book, .pro-banner { display: none !important; }
}

/* Casillas de desarrollo (pestaña Prueba) */
.pro-dev-card > summary { flex-wrap: wrap; }
.pro-dev-card > summary .muted { margin-left: auto; }
.pro-dev-table { width: auto; }
.pro-dev-table td { vertical-align: middle; }
.pro-dev-table input.dev-label { width: 6em; }
.pro-dev-table select { width: auto; }
@media (max-width: 560px) {
  .pro-dev-table th:nth-child(3), .pro-dev-table td:nth-child(3) { display: none; }
}

/* Ticket de salida y escaneo */
.pro-ticket-active { margin: 0 0 14px; }
.pro-ticket-active .btn { margin-left: 4px; }
.pro-live-btn { margin-top: 8px; width: 100%; flex-direction: column; gap: 2px; }
.pro-live-btn small { font-weight: 400; font-size: 0.8rem; opacity: 0.85; }
.pro-scan-hint { margin: 8px 0 0; }

/* Hojas con nombre */
.pn-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 2px 12px; max-height: 260px; overflow: auto; margin-top: 10px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; }
.pn-pick label.check { font-weight: 400; font-size: 0.9rem; }
.pro-flash { animation: proFlash 1.8s ease-out; }
@keyframes proFlash { 0%, 40% { box-shadow: 0 0 0 4px #f0c36d; } 100% { box-shadow: var(--shadow); } }

/* Para reforzar */
#proReinforce > summary { flex-wrap: wrap; }
.pro-reinforce-oa { padding: 10px 0; border-top: 1px solid var(--border); }
.pro-reinforce-oa:first-child { border-top: 0; padding-top: 0; }
.pro-reinforce-oa h3 { font-size: 1rem; margin-bottom: 6px; }
.pro-reinforce-oa p { margin: 4px 0; line-height: 1.9; }
.pro-chip { display: inline-block; margin: 0 4px 0 0; padding: 1px 9px; border-radius: 999px; font-size: 0.82rem; line-height: 1.6; }
.pro-chip.nl { background: #f9d6d6; }
.pro-chip.ml { background: #fff1c2; }
.pro-ml { color: #8a6100; }

@media print {
  .print-reparto { padding: 15mm; font: 11pt Arial, sans-serif; color: #000; }
  .print-reparto h2 { font-size: 15pt; margin: 0 0 2mm; }
  .print-reparto table { width: 100%; border-collapse: collapse; margin-top: 4mm; }
  .print-reparto th, .print-reparto td { border: 0.3mm solid #999; padding: 1.5mm 3mm; text-align: left; }
}

/* Calidad de las preguntas (pestaña Resultados) */
.pro-quality > summary { flex-wrap: wrap; }
.pq-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin: 12px 0 8px; }
.pq-table td { vertical-align: top; }
.pq-table .bar { width: 56px; margin-right: 6px; }
.pq-table td small { display: block; color: var(--muted); font-size: 0.76rem; }
.pq-table .tag { margin: 0 6px 0 0; }
.pq-key b { font-size: 1.05rem; }
.pq-p, .pq-dcell { white-space: nowrap; }
.pq-d.good { color: var(--ok); }
.pq-d.fair { color: #8a6100; }
.pq-d.poor { color: var(--warn); }
.pq-d.neg { color: var(--bad); }
.pq-opts { min-width: 150px; max-width: 250px; white-space: normal; }
.pq-opt { display: inline-block; margin: 0 6px 3px 0; padding: 0 6px; border-radius: 5px; font-size: 0.85rem; font-variant-numeric: tabular-nums; white-space: nowrap; background: var(--surface-2); }
.pq-opt.key { background: var(--ok-soft); color: var(--ok); font-weight: 700; }
.pq-opt.rival { background: var(--bad-soft); color: var(--bad); font-weight: 700; }
.pq-opt.unused { color: var(--muted); text-decoration: line-through; }
.pq-sug { min-width: 250px; white-space: normal; font-size: 0.88rem; line-height: 1.4; }
.pq-acts { display: flex; flex-wrap: wrap; gap: 4px 6px; margin-top: 6px; }
.pq-acts:empty { display: none; }
.pq-row.lvl-revisar > td:first-child { box-shadow: inset 3px 0 0 var(--bad); }
.pq-row.lvl-mejorar > td:first-child { box-shadow: inset 3px 0 0 #e0a800; }
.pq-row.lvl-annulled td { background: var(--surface-2); }
.pq-row.lvl-annulled .pq-opts, .pq-row.lvl-annulled .pq-p { opacity: 0.7; }
.pq-detail > td { background: var(--surface-2); padding: 10px 14px; }
.pq-groups { width: auto; margin-bottom: 6px; }
.pq-groups th, .pq-groups td { padding: 4px 10px; white-space: nowrap; }
.pq-groups tr.is-key td { color: var(--ok); font-weight: 600; }
.pq-empty { padding: 12px; margin: 0; border-radius: 8px; background: var(--ok-soft); color: var(--ok); }
@media (max-width: 560px) {
  .pq-bar label.inline-select { width: 100%; }
  .pq-bar label.inline-select select { flex: 1; min-width: 0; width: 100%; }
  /* Cada pregunta como una ficha: número, clave, acierto y discriminación arriba; respuestas y sugerencia abajo. */
  .pq-table thead { display: none; }
  .pq-table, .pq-table tbody { display: block; }
  .pq-table tr.pq-row { display: grid; grid-template-columns: 2em 3.2em 1fr 1fr; grid-template-areas: "n k p d" "o o o o" "s s s s"; gap: 6px 8px; padding: 10px 6px 10px 10px; border-bottom: 1px solid var(--border); }
  .pq-table tr.pq-row > td { display: block; padding: 0; border: 0; min-width: 0; max-width: none; }
  .pq-table tr.pq-row > td:nth-child(1) { grid-area: n; box-shadow: none; }
  .pq-table tr.pq-row > td:nth-child(2) { grid-area: k; }
  .pq-table tr.pq-row > td:nth-child(3) { grid-area: p; }
  .pq-table tr.pq-row > td:nth-child(4) { grid-area: d; }
  .pq-table tr.pq-row > td:nth-child(5) { grid-area: o; }
  .pq-table tr.pq-row > td:nth-child(6) { grid-area: s; }
  .pq-table .bar { width: 40px; }
  .pq-row.lvl-revisar { box-shadow: inset 3px 0 0 var(--bad); }
  .pq-row.lvl-mejorar { box-shadow: inset 3px 0 0 #e0a800; }
  .pq-row.lvl-annulled { background: var(--surface-2); }
  .pq-table tr.pq-detail, .pq-table tr.pq-detail > td { display: block; }
  .pq-detail > td { overflow-x: auto; }
}
@media print {
  .pro-quality { display: none !important; }
}

/* Estudiantes PIE y versión adecuada */
.tag.pie { background: #e3f2fd; color: #0d47a1; }
.detail-tag { align-self: center; margin: 18px 0 0; }
.pro-pie-scale { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--border); max-width: 520px; }
.pro-pie > summary { flex-wrap: wrap; }
.pro-pie > summary .muted { margin-left: auto; }
.pi-options { align-items: end; }
.pi-checks { display: flex; flex-direction: column; gap: 4px; }
.pi-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin: 16px 0 8px; }
.pi-head h3 { font-size: 1rem; margin: 0; }
.pi-wrap { max-height: 420px; border: 1px solid var(--border); border-radius: 8px; }
.pi-table td { vertical-align: middle; padding: 5px 10px; }
.pi-table .pi-stem { white-space: normal; min-width: 200px; max-width: 420px; font-size: 0.88rem; }
.pi-table select { width: auto; max-width: 280px; padding: 5px 8px; }
.pi-table select.unset { border-color: #e0a800; background: #fffbea; }
.pi-preview { margin-top: 12px; }
.pro-students .pie-ex .with-unit { display: inline-flex; align-items: center; gap: 4px; }
.pro-students input.ex { width: 4.2em; text-align: right; }
.pro-students input.ex:disabled { background: var(--surface-2); }
@media (max-width: 560px) {
  .pi-table .pi-stem { min-width: 150px; }
  .pi-table select { max-width: 190px; }
}
@media print {
  .pro-pie, .pro-pie-scale { display: none !important; }
}
.pn-pie { align-self: end; flex-direction: row; }
.pn-pie small { display: block; }

/* Informe para UTP: vista previa (papel) e impresión */
.pro-report-dialog { width: min(980px, calc(100vw - 16px)); height: calc(100vh - 24px); max-height: none; }
.pro-report-dialog .pro-dialog-body { flex: 1; display: flex; flex-direction: column; gap: 10px; background: var(--surface-2); }
.rep-options { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 16px; }
.rep-options .rep-notes-field { flex: 1 1 360px; margin: 0; }
.rep-options textarea { min-height: 64px; }
.rep-preview { overflow: auto; padding: 4px; }
.rep-preview .rep-paper { width: 186mm; max-width: 100%; margin: 0 auto; padding: 12mm; background: #fff; box-shadow: 0 1px 6px rgba(0, 0, 0, 0.15); }

.rep-paper { --r-ink: #0b0b0b; --r-ink2: #52514e; --r-ink3: #898781; --r-line: #e1e0d9; --r-bar: #2a78d6; color: var(--r-ink); font: 10pt/1.4 system-ui, -apple-system, "Segoe UI", Arial, sans-serif; }
.rep-paper h1.rep-title { font-size: 16pt; margin: 2mm 0 3mm; line-height: 1.2; }
.rep-paper h2 { font-size: 11.5pt; margin: 0 0 2mm; padding-bottom: 1mm; border-bottom: 0.3mm solid var(--r-line); }
.rep-paper h3 { font-size: 10pt; margin: 3mm 0 1.5mm; }
.rep-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 6mm; padding-bottom: 2mm; border-bottom: 0.5mm solid var(--r-ink); }
.rep-school { font-weight: 700; }
.rep-kind { color: var(--r-ink2); font-size: 9pt; text-transform: uppercase; letter-spacing: 0.04em; }
.rep-date { color: var(--r-ink2); white-space: nowrap; }
.rep-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5mm 6mm; margin: 0 0 4mm; }
.rep-meta div { min-width: 0; }
.rep-meta dt { font-size: 8pt; color: var(--r-ink3); text-transform: uppercase; letter-spacing: 0.03em; }
.rep-meta dd { margin: 0; font-weight: 600; }
.rep-kpis { display: grid; grid-template-columns: repeat(5, 1fr); gap: 3mm; margin: 0 0 5mm; }
.rep-kpi { border: 0.3mm solid var(--r-line); border-radius: 2mm; padding: 2.5mm 3mm; }
.rep-kpi b { display: block; font-size: 15pt; line-height: 1.1; font-weight: 650; white-space: nowrap; }
.rep-kpi span { display: block; font-size: 8.5pt; color: var(--r-ink2); }
.rep-kpi small { display: block; font-size: 8pt; color: var(--r-ink3); }
.rep-sec { margin: 0 0 5mm; break-inside: avoid; }
.rep-fig { margin: 0; }
.rep-fig figcaption, .rep-note { font-size: 8.5pt; color: var(--r-ink2); margin: 1mm 0 0; }
.rep-chart { display: block; width: 100%; height: auto; }
.rep-chart text { font-family: system-ui, -apple-system, "Segoe UI", Arial, sans-serif; }
.rep-chart .rep-tick { font-size: 10px; fill: #898781; font-variant-numeric: tabular-nums; }
.rep-chart .rep-val { font-size: 11px; font-weight: 600; fill: #0b0b0b; }
.rep-chart .rep-xl { font-size: 10.5px; fill: #52514e; }
.rep-chart .rep-xs { font-size: 9.5px; fill: #898781; }
.rep-chart .rep-ref { font-size: 10px; fill: #52514e; font-weight: 600; }
.rep-table { width: 100%; border-collapse: collapse; font-size: 9pt; }
.rep-table th, .rep-table td { padding: 1.2mm 2mm; border-bottom: 0.2mm solid var(--r-line); text-align: left; white-space: normal; background: none; position: static; }
.rep-table th { font-size: 8pt; color: var(--r-ink2); text-transform: none; letter-spacing: 0; font-weight: 700; border-bottom-color: #c3c2b7; }
.rep-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.rep-table td small { display: block; color: var(--r-ink3); font-size: 8pt; }
.rep-fail { font-weight: 700; }
.rep-oa .rep-oa-name { width: 34%; }
.rep-bar-cell { white-space: nowrap; }
.rep-track { position: relative; display: inline-block; width: 42mm; height: 2.6mm; margin-right: 2mm; vertical-align: middle; background: #f0efec; border-radius: 0 1.3mm 1.3mm 0; }
.rep-track i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--r-bar); border-radius: 0 1mm 1mm 0; }
.rep-track em { position: absolute; top: -0.8mm; bottom: -0.8mm; width: 0.3mm; background: var(--r-ink2); }
.rep-lvl { display: inline-flex; align-items: center; gap: 1.2mm; white-space: nowrap; font-size: 8.5pt; }
.rep-lvl i { font-style: normal; display: inline-grid; place-items: center; width: 3.6mm; height: 3.6mm; border-radius: 50%; color: #fff; font-size: 7pt; font-weight: 700; }
.rep-lvl-L i { background: #0ca30c; }
.rep-lvl-ML i { background: #fab219; color: #0b0b0b; }
.rep-lvl-NL i { background: #d03b3b; }
.rep-recs, .rep-list { margin: 0; padding-left: 5mm; }
.rep-recs li, .rep-list li { margin: 0 0 1.2mm; }
.rep-notes { margin: 0; white-space: normal; }
.rep-lines i { display: block; height: 7mm; border-bottom: 0.2mm solid #c3c2b7; }
.rep-sign { display: flex; justify-content: space-around; gap: 10mm; margin-top: 16mm; break-inside: avoid; }
.rep-sign div { flex: 0 1 60mm; text-align: center; font-size: 9pt; color: var(--r-ink2); }
.rep-sign span { display: block; border-top: 0.3mm solid var(--r-ink); margin-bottom: 1.5mm; }
@media (max-width: 700px) {
  .rep-preview .rep-paper { padding: 5mm; font-size: 9pt; }
  .rep-kpis { grid-template-columns: repeat(2, 1fr); }
  .rep-meta { grid-template-columns: repeat(2, 1fr); }
  .rep-track { width: 24mm; }
}
@media print {
  .print-report .rep-paper { padding: 0; box-shadow: none; }
  .print-report .rep-sec h2 { break-after: avoid; }
  .print-report .rep-table tr { break-inside: avoid; }
}

/* Escaneo continuo con la cámara */
.pro-live { width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; margin: 0; padding: 0; border: 0; background: #111; color: #fff; }
.pro-live[open] { display: flex; flex-direction: column; }
.pro-live::backdrop { background: #111; }
.lv-stage { position: relative; flex: 1; min-height: 0; display: grid; place-items: center; overflow: hidden; }
.lv-box { position: relative; max-width: 100%; max-height: 100%; aspect-ratio: 3 / 4; height: 100%; }
.lv-box.wide { height: auto; width: 100%; }
.lv-stage video { display: block; width: 100%; height: 100%; object-fit: contain; background: #000; }
.lv-frame { position: absolute; inset: 4%; border: 3px solid rgba(255, 255, 255, 0.55); border-radius: 12px; pointer-events: none; }
.lv-frame.ok { animation: lvOk 0.9s ease-out; }
@keyframes lvOk { 0% { border-color: #0ca30c; box-shadow: 0 0 0 9999px rgba(12, 163, 12, 0.25); } 100% { border-color: rgba(255, 255, 255, 0.55); box-shadow: none; } }
.lv-panel { padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: #1c1c1c; }
.lv-status { margin: 0 0 8px; min-height: 2.6em; font-size: 1rem; line-height: 1.3; }
.lv-status.reading { color: #ffd666; }
.lv-status.done { color: #7ee07e; }
.lv-status.warn { color: #ffb4a8; }
.lv-bar { display: flex; align-items: center; gap: 10px; }
.lv-bar .spacer { flex: 1; }
.lv-count b { font-size: 1.3rem; }
.lv-bar .btn.ghost { color: #fff; border-color: #555; }
.lv-list { list-style: none; margin: 8px 0 0; padding: 0; max-height: 18vh; overflow: auto; font-size: 0.9rem; color: #ddd; }
.lv-list li { padding: 3px 0; border-top: 1px solid #333; }

/* ---------- Rúbricas y retroalimentación (retro.js) ---------- */
.pro-rubric-dialog { width: min(1040px, calc(100vw - 24px)); }
.pro-rubric-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.pro-rubric-table th, .pro-rubric-table td { border: 1px solid var(--border); padding: 6px; vertical-align: top; }
.pro-rubric-table thead th { background: var(--surface-2); text-align: left; font-weight: 600; }
.pro-rubric-table th input[type="text"] { width: 100%; font-weight: 600; }
.pro-rubric-table .prb-pts { display: flex; align-items: center; gap: 4px; margin-top: 4px; font-size: 0.85rem; color: var(--muted); }
.pro-rubric-table .prb-pts input { width: 64px; }
.pro-rubric-table textarea { width: 100%; min-width: 120px; resize: vertical; font: inherit; font-size: 0.9rem; }
.pro-rubric-table .prb-crit { width: 22%; min-width: 150px; }
.pro-rubric-table th, .pro-rub-pick th { text-transform: none; letter-spacing: normal; font-size: 0.88rem; color: var(--text); }
.pro-rubric-table .prb-crit .link-btn { display: block; margin-top: 4px; font-size: 0.85rem; }
.pro-rubric-table th .link-btn { font-size: 0.85rem; margin-top: 2px; }
.pro-rubric-paste { margin-top: 10px; }
.pro-rubric-paste summary { cursor: pointer; font-weight: 600; }
.pro-rubric-paste textarea { width: 100%; margin: 6px 0; font-family: ui-monospace, monospace; font-size: 0.85rem; }

.pro-fb { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); }
.pro-fb h3 { margin: 0 0 10px; font-size: 1.05rem; }
.pro-fb-dev { margin-bottom: 14px; }
.pro-fb-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 12px; margin-bottom: 6px; }
.pro-fb textarea { width: 100%; resize: vertical; font: inherit; }
.pro-fb-general { display: flex; flex-direction: column; gap: 4px; font-weight: 600; margin: 4px 0 8px; }
.pro-fb .actions { align-items: center; }
.pro-rub-pick { width: 100%; border-collapse: collapse; margin-bottom: 4px; }
.pro-rub-pick th, .pro-rub-pick td { border: 1px solid var(--border); padding: 4px; vertical-align: top; text-align: left; font-size: 0.85rem; }
.pro-rub-pick thead th { background: var(--surface-2); }
.pro-rub-pick tbody th { width: 20%; font-weight: 600; }
.pro-rub-cell { display: block; width: 100%; min-height: 44px; text-align: left; border: 1px solid transparent; border-radius: 6px; background: transparent; padding: 6px; font: inherit; font-size: 0.85rem; color: var(--text); cursor: pointer; }
.pro-rub-cell:hover { background: var(--primary-soft); }
.pro-rub-cell.sel { background: #c8e6c9; border-color: #1e8e3e; font-weight: 600; color: #14532d; }
.pro-rub-cell { white-space: normal; overflow-wrap: anywhere; }
/* En pantallas angostas cada criterio se muestra como una lista de niveles. */
@media (max-width: 600px) {
  .pro-rub-pick thead { display: none; }
  .pro-rub-pick, .pro-rub-pick tbody, .pro-rub-pick tr, .pro-rub-pick tbody th, .pro-rub-pick td { display: block; width: 100%; }
  .pro-rub-pick tr { margin-bottom: 8px; }
  .pro-rub-pick tbody th { background: var(--surface-2); }
  .pro-rub-pick td { border-top: 0; }
  .pro-rub-cell::before { content: attr(data-level); display: block; font-size: 0.75rem; font-weight: 600; color: var(--muted); }
  .pro-rub-cell.sel::before { color: #14532d; }
}
@media print { .pro-fb { display: none !important; } }

/* Inicio: Mis cursos y estado de la nube en el encabezado */
.home-courses .card-head { margin-bottom: 6px; }
.home-course-list { list-style: none; margin: 0; padding: 0; }
.home-course-list li + li { border-top: 1px solid var(--border); }
.home-course-list button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 9px 2px; border: 0; background: none; font: inherit; color: var(--text); text-align: left; cursor: pointer; border-radius: 8px; }
.home-course-list button:hover { background: var(--surface-2); }
.hcc-av { width: 36px; height: 36px; border-radius: 9px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; font-weight: 800; font-size: 0.85rem; flex: none; }
.hcc-t { flex: 1; min-width: 0; }
.hcc-t b, .hcc-t small { display: block; }
.hcc-t small { color: var(--muted); font-size: 0.82rem; }
.hcc-g { font-weight: 700; padding: 2px 8px; border-radius: 7px; }
.hcc-g.ok { background: var(--ok-soft); color: var(--ok); }
.hcc-g.bad { background: var(--bad-soft); color: var(--bad); }
.home-course-empty { padding: 6px 0 4px; }
.cloud-chip { border: 0; font: inherit; font-weight: 600; font-size: 0.84rem; padding: 6px 11px; border-radius: 999px; background: var(--ok-soft); color: var(--ok); cursor: pointer; white-space: nowrap; }
.cloud-chip.warn { background: var(--warn-soft); color: var(--warn); }
.cloud-chip.busy { background: var(--primary-soft); color: var(--primary); }
@media (max-width: 760px) { .cloud-chip { font-size: 0.78rem; padding: 5px 9px; } }
.lv-course { font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); }

/* ---------- Modo simple / avanzado ---------- */
.mode-switch { display: grid; grid-template-columns: auto auto; align-items: center; justify-items: end; gap: 4px 10px; }
.mode-label { font-weight: 700; color: var(--muted); font-size: 0.9rem; }
.mode-seg button { padding: 8px 14px; font-size: 0.95rem; }
#proModeInfo { grid-column: 1 / -1; max-width: 46ch; text-align: right; }
.pro-mode-dialog { width: min(640px, 94vw); padding: 22px; }
.pro-mode-dialog h2 { margin-top: 0; font-size: 1.4rem; }
.mode-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.mode-card { display: grid; gap: 6px; align-content: start; text-align: left; padding: 16px; border: 2px solid var(--border); border-radius: 14px; background: var(--surface); color: var(--text); font: inherit; cursor: pointer; }
.mode-card:hover, .mode-card:focus-visible { border-color: var(--primary); background: var(--primary-soft); }
.mode-card .mc-ic { font-size: 1.8rem; line-height: 1; }
.mode-card b { font-size: 1.25rem; }
.mode-card span { font-size: 0.98rem; line-height: 1.4; }
.mode-card .mc-rec { display: none; font-weight: 700; color: var(--primary); }
.mode-card.rec { border-color: var(--primary); }
.mode-card.rec .mc-rec { display: block; }
@media (max-width: 560px) {
  .mode-cards { grid-template-columns: 1fr; }
  .mode-switch { grid-template-columns: 1fr; justify-items: stretch; width: 100%; }
  .mode-label { display: none; }
  .mode-seg { width: 100%; }
  .mode-seg button { flex: 1; padding: 8px 6px; }
  #proModeInfo { text-align: left; }
}
@media (min-width: 761px) { html[data-modo="simple"] .home-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
html[data-modo="simple"] :is(
  .tabs button[data-tab="cursos"],
  #pruebaSteps button[data-tab="evaluacion"],
  #pruebaSteps button[data-tab="evaluacion"] + .ss-line,
  #proCloudChip, #proCloudBanner, #proHomeCourses, .home-tile[data-home="abrir"],
  #proLibSave, #proLibOpen, #proLibLinked, #proNewTicket, #proNewTicket + hr,
  .pz-course, #optOA, #proDevCard, .pro-pie-scale, .next-bar [data-goto="evaluacion"],
  #proNamesCard, #btnDownloadSvg, #btnDownloadSample, #agHome,
  .corr-section, #oaResultsCard, #itemCard, #proReinforce, #proQuality, #proBookBox, #proReportTest, .pro-fb
) { display: none !important; }
@media (max-width: 480px) {
  html[data-letra] .pro-badge { font-size: 11px; }
  html[data-letra] .cloud-chip { font-size: 12px; }
}
@media (max-width: 480px) {
  .cloud-chip .cc-t { display: none; }
  .cloud-chip { padding: 5px 8px; }
}
/* Celulares angostos: en la Pro el nombre se acorta para que quepan la nube, «Aa» y el tutorial. */
@media (max-width: 400px) { .brand-mid { display: none; } }
.lv-last { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 12px; margin-bottom: 10px; padding: 12px 14px; border-radius: 12px; background: #17733a; color: #fff; }
.lv-last.review { background: #9a5b00; }
.lv-last b { font-size: 1.35rem; line-height: 1.2; overflow-wrap: anywhere; }
.lv-last strong { grid-row: span 2; font-size: 2rem; font-weight: 800; white-space: nowrap; }
.lv-last span { font-size: 0.98rem; }
.lv-last .lv-last-prog { grid-column: 1 / -1; margin-top: 4px; padding-top: 6px; border-top: 1px solid rgba(255, 255, 255, 0.25); }

/* ---------- Modo noche (Pro) ---------- */
html[data-tema="oscuro"] .pro-banner { border-color: #6b5420; }
html[data-tema="oscuro"] .pro-grid th.avg, html[data-tema="oscuro"] .pro-grid td.avg { background: var(--surface-2); }
html[data-tema="oscuro"] .tag.edited { background: #3a2245; }
html[data-tema="oscuro"] .pro-chip.nl { background: #4a1f1f; }
html[data-tema="oscuro"] .pro-chip.ml { background: #4a3a12; }
html[data-tema="oscuro"] .tag.pie { background: #15304d; color: #9fcbff; }
html[data-tema="oscuro"] .pi-table select.unset { background: #3a2f10; }
html[data-tema="oscuro"] .pro-rub-cell.sel { background: #1d4429; color: #c8f0d2; border-color: #4cc06a; }
html[data-tema="oscuro"] .btn.primary.danger-fill { color: #0b1018; }

/* ---------- CorrigeYa Plus: agenda y horario ---------- */
html:not([data-plus]) .tab-plus, html[data-modo="simple"] .tab-plus { display: none !important; }
@media (max-width: 760px) { .tabs .tab-plus { display: none !important; } }
.plus-badge { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 6px; background: linear-gradient(135deg, #2f8f5b, #17733a); color: #fff; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.03em; vertical-align: middle; }
.home-today .card-head { align-items: center; }
.home-today h2 { font-size: 1.1rem; }
.ag-now-card { display: grid; gap: 2px; padding: 12px 14px; border-radius: 12px; background: var(--ok-soft); border: 1px solid #b9dfc6; margin-bottom: 8px; }
.ag-now-card > span { font-size: 0.8rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ok); }
.ag-now-card b { font-size: 1.2rem; }
.ag-now-card small { color: var(--muted); }
.ag-now-card .btn { justify-self: start; margin-top: 6px; }
.ag-next { margin: 0 0 8px; }
.ag-next span { font-size: 0.8rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.ag-day h3 { margin: 12px 0 4px; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--primary); }
.ag-day ul, .ag-rems { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ag-ev { display: grid; grid-template-columns: 3.2em 1.6em 1fr auto; align-items: center; gap: 6px; padding: 9px 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); cursor: pointer; }
.ag-ev:hover { border-color: var(--primary); }
.ag-ev.done { opacity: 0.6; }
.ag-ev.done b { text-decoration: line-through; }
.ag-time { font-weight: 700; color: var(--muted); font-size: 0.9rem; }
.ag-ic { font-size: 1.15rem; }
.ag-t { display: grid; min-width: 0; }
.ag-t b { overflow-wrap: anywhere; }
.ag-t small { color: var(--muted); }
.ag-check { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--border); background: var(--surface); color: var(--ok); font-weight: 800; cursor: pointer; }
.ag-check[aria-pressed="true"] { border-color: var(--ok); background: var(--ok-soft); }
.ag-rems { margin-top: 10px; }
.ag-rem { display: flex; gap: 8px; align-items: flex-start; padding: 8px 10px; border-radius: 10px; background: var(--warn-soft); }
.ag-rem.cierre { background: var(--primary-soft); }
.ag-rem[data-ag-course] { cursor: pointer; }
.ag-cols { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; align-items: start; }
.ag-past { margin-top: 12px; }
.ag-past summary { cursor: pointer; font-weight: 600; color: var(--primary); }
#agMore { margin-top: 10px; }
.ag-week { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.ag-wday h3 { margin: 0 0 6px; font-size: 0.9rem; }
.ag-wday p { margin: 0; }
.ag-block { display: grid; gap: 1px; width: 100%; text-align: left; margin-bottom: 6px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--border); border-left: 4px solid var(--primary); background: var(--surface-2); color: var(--text); font: inherit; cursor: pointer; }
.ag-block span { font-size: 0.82rem; font-weight: 700; color: var(--muted); }
.ag-block small { color: var(--muted); }
.ag-form { display: grid; gap: 10px; }
.ag-form label:not(.check) { display: flex; flex-direction: column; gap: 4px; font-weight: 600; }
.ag-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ag-kinds { display: flex; flex-wrap: wrap; gap: 6px; border: 0; overflow: visible; background: none; }
.ag-kinds button { flex: 1 1 auto; border: 1px solid var(--border); border-radius: 999px; padding: 8px 12px; background: var(--surface); }
.ag-kinds button:first-child { border-left: 1px solid var(--border); }
.ag-kinds button[aria-checked="true"] { border-color: var(--primary); }
.ag-row { align-items: end; }
.ag-days-pick { border: 1px solid var(--border); border-radius: 10px; padding: 8px 12px; }
.ag-days-pick legend { font-weight: 600; padding: 0 4px; }
#agBlockDays { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.ag-dialog .el-foot .danger { color: var(--bad); }
@media (max-width: 900px) { .ag-cols { grid-template-columns: 1fr; } }
html[data-tema="oscuro"] .ag-now-card { border-color: #2c6b3f; }
@media (max-width: 1320px) { html[data-plus]:not([data-modo="simple"]) .brand-long { display: none; } }

/* ---------- CorrigeYa Plus: cuadro, botón y funciones marcadas ---------- */
.logo-cy { width: 36px; height: 36px; flex: none; }
.plus-chip { grid-column: 1 / -1; justify-self: end; border: 0; border-radius: 999px; padding: 6px 14px; font: inherit; font-weight: 800; font-size: 0.9rem; background: linear-gradient(135deg, #2f8f5b, #17733a); color: #fff; cursor: pointer; }
.plus-chip.on { background: var(--ok-soft); color: var(--ok); }
.plus-dialog { width: min(520px, calc(100vw - 24px)); }
.plus-why { font-size: 1.05rem; font-weight: 600; margin: 0 0 8px; }
.plus-price { margin: 0 0 10px; }
.plus-price b { font-size: 1.3rem; color: var(--ok); }
.plus-list { margin: 0 0 10px; padding: 0; list-style: none; display: grid; gap: 6px; }
.plus-msg { min-height: 1.2em; margin: 8px 0 0; font-weight: 600; color: var(--primary); }
.plus-code { margin: 12px 0 0; padding: 10px 12px; border: 1px dashed var(--border); border-radius: 10px; }
.plus-code label { display: block; font-weight: 700; margin: 0 0 6px; }
.plus-code-row { display: flex; gap: 8px; }
.plus-code-row input { flex: 1; min-width: 0; font: inherit; font-family: ui-monospace, Menlo, Consolas, monospace; letter-spacing: 0.04em; text-transform: uppercase; }
.plus-code-info { margin: 10px 0 0; font-weight: 600; color: var(--ok); }
.plus-trial { margin: 12px 0 4px; text-align: center; }
.plus-trial .btn { width: 100%; font-size: 1.05rem; padding: 12px 16px; }
.plus-trial p { margin: 6px 0 0; }
.plus-ref { margin: 14px 0 0; padding: 12px 14px; border-radius: 10px; background: var(--primary-soft); }
.plus-ref h3 { margin: 0 0 4px; font-size: 1rem; }
.plus-ref p { margin: 4px 0; }
.plus-ref-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px !important; }
.plus-ref-actions:empty { display: none; }
#plusRefRow { margin-top: 8px; }
#plusRefRow input { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.9rem; text-transform: none; }
html[data-plus-gate] :is(#btnExportZip, #btnExportFolder, #btnExportCsv, #proExcel, #proReportTest, #proReportCourse, .pro-fb [data-fb-pdf])::after { content: ' ⭐ Plus'; font-size: 0.8em; font-weight: 800; color: var(--ok); }
@media (max-width: 560px) { .plus-chip { justify-self: start; } }

/* Cuenta en el encabezado y bienvenida (js/pro/cuenta.js) */
.account-menu { position: relative; }
.account-btn { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.account-btn::-webkit-details-marker { display: none; }
.account-menu > summary { list-style: none; }
.acc-av { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 800; font-size: 0.85rem; }
.account-list { min-width: 240px; right: 0; }
.account-list .acc-email { margin: 4px 10px 0; font-weight: 700; word-break: break-all; }
.account-list .acc-plus { margin: 2px 10px 6px; color: var(--muted); font-size: 0.88rem; }
.account-list .acc-plus:empty { display: none; }
.welcome-dialog { width: min(460px, calc(100vw - 24px)); }
.welcome-body { padding: 26px 24px 20px; text-align: center; }
.welcome-body h2 { margin: 0 0 10px; font-size: 1.35rem; }
.welcome-lead { margin: 0 0 12px; font-size: 1.05rem; }
.welcome-gift { margin: 0 0 14px; padding: 10px 12px; border-radius: 10px; background: var(--ok-soft); color: var(--ok); font-weight: 600; }
.welcome-actions { display: grid; gap: 10px; margin: 16px 0 12px; }
.welcome-actions .btn { width: 100%; padding: 12px 16px; font-size: 1.02rem; }
@media (max-width: 560px) { .account-btn .acc-t { display: none; } }
