/* Academia · Cursos, perfil, credenciales y constructor visual (misma estética que el resto). */

/* ===================== Navegación del alumno ===================== */
.topnav { display: flex; gap: .2rem; margin-left: 1rem; }
.topnav-item { display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .75rem; border-radius: var(--radius-sm);
  color: var(--text-2); font-weight: 600; font-size: .9rem; text-decoration: none; }
.topnav-item .i { width: 17px; height: 17px; }
.topnav-item:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.topnav-item.on { background: var(--brand-soft); color: var(--brand); }
.userchip { display: inline-flex; align-items: center; gap: .45rem; padding: .2rem .55rem .2rem .2rem; border-radius: 99px;
  border: 1px solid var(--line); color: var(--text); font-weight: 600; font-size: .86rem; text-decoration: none; }
.userchip:hover { border-color: var(--brand); text-decoration: none; }
@media (max-width: 760px) { .topnav { margin-left: 0; } .topnav-item span, .hide-sm { display: none; } .top .brand span { display: none; } }

/* ===================== Perfil, competencias e insignias ===================== */
.profile-head { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; }
.profile-head h1 { margin: 0; }
.avatar.xl { width: 72px; height: 72px; font-size: 1.6rem; }
.row-head { display: flex; align-items: center; justify-content: space-between; margin: 1.4rem 0 .6rem; }
.skills-row { display: flex; flex-wrap: wrap; gap: .4rem; }
.skill-area { margin: .9rem 0 .4rem; font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.skill-tree { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .5rem; }
.skill-node { display: grid; gap: .1rem; padding: .55rem .7rem; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface-2); }
.skill-node small { color: var(--muted); font-size: .76rem; }
.skill-node.locked { opacity: .55; border-style: dashed; }
.skill-node.got { border-color: color-mix(in srgb, var(--ok) 45%, var(--line)); background: var(--ok-soft); }
.skill-node.lvl-intermedio { border-color: color-mix(in srgb, var(--info) 55%, var(--line)); background: var(--info-soft); }
.skill-node.lvl-avanzado { border-color: var(--brand); background: var(--brand-soft); }
.skill { display: inline-flex; align-items: center; gap: .35rem; padding: .25rem .6rem; border-radius: 99px; font-size: .8rem; font-weight: 600;
  background: var(--ok-soft); color: var(--ok); }
.skill small { opacity: .75; font-weight: 500; }
.skill.lvl-intermedio { background: var(--info-soft); color: var(--info); }
.skill.lvl-avanzado { background: var(--brand-soft); color: var(--brand); }
.badge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .8rem; }
.badge-card { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: .2rem;
  padding: 1.1rem .8rem .9rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); }
.badge-hex { display: grid; place-items: center; width: 64px; height: 72px; margin-bottom: .4rem; color: #fff;
  background: linear-gradient(160deg, var(--brand), var(--accent));
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.badge-hex .i { width: 28px; height: 28px; }
.badge-dl { position: absolute; top: .5rem; right: .5rem; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px;
  color: var(--text-2); background: var(--surface); border: 1px solid var(--line); }
.badge-dl:hover { color: var(--brand); border-color: var(--brand); }
.badge-dl .i { width: 16px; height: 16px; }
.cert-row { display: flex; align-items: center; gap: .7rem; padding: .65rem 0; border-bottom: 1px solid var(--line); }
.cert-row:last-of-type { border-bottom: 0; }
.cert-row small { display: block; }
.cert-ic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); flex: none; }

/* ===================== Verificación pública ===================== */
.verify-page { max-width: 620px; margin: 0 auto; padding: 2.5rem 1rem; display: grid; gap: 1rem; }
.verify-logo { display: flex; justify-content: center; }
.verify-logo img { max-height: 64px; }
.verify-ok { text-align: center; }
.verify-ic { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; margin-bottom: .6rem; }
.verify-ic.ok { background: var(--ok-soft); color: var(--ok); }
.verify-ic.err { background: var(--err-soft); color: var(--err); }
.verify-dl { display: grid; grid-template-columns: max-content 1fr; gap: .45rem 1rem; text-align: left; margin: 1.2rem auto 0; max-width: 460px; }
.verify-dl dt { color: var(--muted); font-size: .85rem; }
.verify-dl dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }

/* ===================== Cursos ===================== */
.course-card { margin-bottom: 1rem; }
.course-pct { text-align: right; flex: none; }
.course-pct b { display: block; font-size: 1.6rem; color: var(--brand); line-height: 1; }
.course-labs { list-style: none; margin: .8rem 0 0; padding: 0; display: grid; gap: .45rem; }
.course-labs li { display: flex; align-items: center; gap: .7rem; padding: .55rem .7rem; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.cl-num { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; flex: none;
  background: var(--surface-2); color: var(--text-2); font-weight: 700; font-size: .82rem; }
.cl-num.done { background: var(--ok); color: #fff; }
.cl-num .i { width: 15px; height: 15px; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .3rem .8rem; margin-top: .3rem; }
.inline-check { display: inline-flex; margin: 0; }

/* ===================== Constructor visual de laboratorios ===================== */
.builder, .bld-dlg { --ws-bg: #1A1B1F; --ws-panel: #202227; --ws-panel-2: #26292F; --ws-line: #30343C; --ws-text: #D9DCE1;
  --ws-muted: #8B9099; --ws-teal: #2FA4B9; --ws-node: #2A2D33; --ws-node-line: #3C4048; }
.builder { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--ws-line); background: var(--ws-bg); color: var(--ws-text); }
.builder[hidden], .yaml-pane[hidden] { display: none; }
.bld-bar { height: 48px; }
.bld-hint { margin-left: auto; color: var(--ws-muted); font-size: .82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bld-hint b { color: var(--ws-text); }
.bld-canvas { position: relative; height: min(68vh, 640px); }
.bld-canvas svg { width: 100%; height: 100%; display: block; touch-action: none; user-select: none; }
.bld-canvas .dot { fill: #2C2F35; }
#bld-map.connecting, #bld-map.connecting .nd { cursor: crosshair; }
.lk-line.ghost { stroke: var(--ws-teal); stroke-dasharray: 6 6; stroke-width: 3; }
.mode-seg { display: inline-flex; }
.mode-seg .i { width: 16px; height: 16px; }

.bld-dlg { width: min(640px, 94vw); padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg); }
.bld-dlg::backdrop { background: rgba(10, 12, 16, .55); }
.bld-dlg header, .bld-dlg footer { display: flex; align-items: center; gap: .5rem; padding: .8rem 1rem; }
.bld-dlg header { justify-content: space-between; border-bottom: 1px solid var(--line); font-size: 1.02rem; }
.bld-dlg header .ws-btn { color: var(--text-2); }
.bld-dlg header .ws-btn:hover { background: var(--surface-2); color: var(--text); }
.bld-dlg footer { border-top: 1px solid var(--line); }
.bld-dlg footer .spacer { flex: 1; }
.dlg-body { padding: 1rem; max-height: 68vh; overflow: auto; }
.dlg-body details { margin-top: .6rem; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .55rem .75rem; }
.dlg-body summary { cursor: pointer; font-weight: 600; }
.bld-dlg [data-custom][hidden] { display: none; }
.iface-list { display: grid; gap: .35rem; }
.iface-row { display: grid; grid-template-columns: 52px 1fr 1.3fr; align-items: center; gap: .5rem; }
.iface-row code { font-weight: 700; }

/* ===================== Espacio de trabajo: progreso, flag, terminal ===================== */
.ws-pct { display: grid; gap: .35rem; margin-bottom: .8rem; }
.ws-pct-top { display: flex; justify-content: space-between; align-items: baseline; }
.ws-pct-top b { font-size: 1.5rem; color: #fff; }
.ws-pct-top small { color: var(--ws-muted); }
.ws-pct-bar { height: 8px; border-radius: 99px; background: var(--ws-bg); overflow: hidden; }
.ws-pct-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--ws-teal), #3FB27F); transition: width .5s; }
.ws-skills { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .35rem; }
.ws-skill { font-size: .72rem; padding: .12rem .45rem; border-radius: 99px; background: #2C3B40; color: #9ED9E4; }
.ws-flag { display: flex; gap: .35rem; margin-top: .45rem; }
.ws-flag input { flex: 1; min-width: 0; padding: .35rem .5rem; border-radius: 7px; border: 1px solid var(--ws-line); background: var(--ws-bg); color: var(--ws-text); font: 500 .82rem var(--mono); }
.ws-flag button { padding: .35rem .6rem; border: 0; border-radius: 7px; background: var(--ws-teal); color: #fff; font-weight: 600; cursor: pointer; }
.term-menu { position: fixed; z-index: 60; }
.ws-tabs-row { display: flex; align-items: stretch; }
.ws-tabs-row .ws-tabs { flex: 1; min-width: 0; }
.ws-term-tools { display: flex; align-items: center; gap: 2px; padding: 0 .4rem; }
.cel-skills { justify-content: center; margin: .3rem 0 .6rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ws-tabs-row { background: var(--ws-panel); border-bottom: 1px solid var(--ws-line); }
.ws-tabs-row .ws-tabs { border-bottom: 0; }

/* Formulario de máquina: interfaces, errores y conflictos */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
.iface-row { grid-template-columns: 52px minmax(0, 1fr) minmax(0, 1.4fr); }
.iface-row .field-err { grid-column: 3; margin-top: -.2rem; }
.field-err { display: block; min-height: 0; color: var(--err); font-size: .76rem; font-weight: 600; }
.field-err:empty { display: none; }
.iface-connect { display: flex; gap: .5rem; margin: .5rem 0 .3rem; }
.iface-connect select { flex: 1; min-width: 0; }
.dev-note { padding: .5rem .7rem; border-radius: var(--radius-sm); background: var(--info-soft); color: var(--info); }
.bld-dlg input:invalid:not(:placeholder-shown) { border-color: var(--err); }
.bld-dlg [data-l3][hidden], .bld-dlg .iface-row input[hidden] { display: none; }
.nd.conflict .nd-box { stroke: #E5484D; stroke-width: 2.5; }
.nd.conflict .nd-ip { fill: #FF8A96; }
@media (max-width: 560px) { .grid-3 { grid-template-columns: 1fr 1fr; } }

/* ===================== Espacio de trabajo: panel flotante (diagnóstico, notas, calculadora) ===================== */
.ws-panel { position: absolute; top: 12px; right: 12px; z-index: 30; width: min(400px, calc(100% - 24px)); max-height: calc(100% - 24px);
  display: flex; flex-direction: column; background: #202227; border: 1px solid #3C4048; border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0,0,0,.5); color: var(--ws-text); }
.ws-panel[hidden] { display: none; }
.ws-panel header { display: flex; align-items: center; justify-content: space-between; padding: .55rem .6rem .55rem .9rem; border-bottom: 1px solid #30343C; }
.ws-panel header b { display: inline-flex; align-items: center; gap: .45rem; }
.ws-panel header .i { width: 17px; height: 17px; color: var(--ws-teal); }
.ws-panel-body { padding: .8rem .9rem; overflow: auto; }
.ws-panel label { display: grid; gap: .25rem; font-size: .78rem; color: var(--ws-muted); font-weight: 600; }
.ws-panel input, .ws-panel select, .ws-notes { width: 100%; padding: .42rem .55rem; border-radius: 7px; border: 1px solid #3C4048;
  background: #17181C; color: var(--ws-text); font: 500 .86rem var(--font); }
.ws-panel input:focus, .ws-panel select:focus, .ws-notes:focus { outline: 2px solid var(--ws-teal); outline-offset: -1px; }
.diag-form { display: grid; gap: .55rem; }
.diag-row { display: flex; gap: .5rem; }
.diag-row > * { flex: 1; }
.diag-row[hidden], .diag-port[hidden] { display: none; }
.diag-port { flex: 0 0 90px; }
.diag-out { margin-top: .8rem; display: grid; gap: .6rem; }
.diag-head { display: flex; align-items: center; gap: .45rem; padding: .5rem .65rem; border-radius: 8px; font-size: .86rem; }
.diag-head.ok { background: rgba(63,178,127,.14); color: #6BD39F; }
.diag-head.bad { background: rgba(229,72,77,.14); color: #FF8A96; }
.diag-head .i { width: 16px; height: 16px; flex: none; }
.diag-err { color: #FF8A96; font-size: .85rem; margin: 0; }
.diag-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); gap: .4rem; }
.diag-kpis span { display: grid; padding: .45rem .5rem; border-radius: 8px; background: #17181C; font-size: .72rem; color: var(--ws-muted); }
.diag-kpis b { color: #fff; font-size: .95rem; }
.diag-bars { display: flex; align-items: flex-end; gap: 4px; height: 54px; padding: 4px; border-radius: 8px; background: #17181C; }
.diag-bars i { flex: 1; min-height: 4px; border-radius: 3px 3px 0 0; background: var(--ws-teal); }
.diag-hops { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; font-size: .82rem; }
.diag-hops li { display: grid; grid-template-columns: 22px auto 1fr auto; gap: .5rem; align-items: center; padding: .3rem .45rem; border-radius: 6px; background: #17181C; }
.diag-hops li span { color: var(--ws-muted); font-weight: 700; }
.diag-hops li small { color: #9ED9E4; }
.diag-hops li em { color: var(--ws-muted); font-style: normal; }
.diag-hops li.lost code { color: #FF8A96; }
.diag-play { display: flex; gap: .35rem; }
.diag-explain { margin: 0; padding: .55rem .65rem; border-left: 3px solid var(--ws-teal); background: #17181C; border-radius: 0 8px 8px 0; font-size: .84rem; line-height: 1.45; }
.diag-explain:empty { display: none; }
.diag-raw pre { max-height: 220px; overflow: auto; margin: .4rem 0 0; padding: .55rem; background: #0D1117; border-radius: 8px; font: 12px/1.45 var(--mono); white-space: pre-wrap; }
.diag-raw summary, .diag-hist summary { cursor: pointer; font-size: .8rem; color: var(--ws-muted); }
.diag-hist { margin-top: .8rem; }
.diag-hist ul { list-style: none; margin: .4rem 0 0; padding: 0; display: grid; gap: 3px; font-size: .8rem; }
.diag-hist li { padding: .3rem .45rem; border-radius: 6px; background: #17181C; border-left: 3px solid #5E636C; }
.diag-hist li.ok { border-left-color: #3FB27F; }
.diag-hist li.bad { border-left-color: #E5484D; }
.diag-hist li small { display: block; color: var(--ws-muted); }
.pkt { fill: #FFC83D; stroke: #1A1B1F; stroke-width: 3; filter: drop-shadow(0 0 6px rgba(255,200,61,.8)); pointer-events: none; }
.pkt.done { fill: #3FB27F; filter: drop-shadow(0 0 8px rgba(63,178,127,.9)); }
.pkt.lost { fill: #E5484D; filter: drop-shadow(0 0 8px rgba(229,72,77,.9)); }
.pkt.ext { fill: #8B9099; }
.nd.trace .nd-box { stroke: #FFC83D; stroke-width: 2.5; }
.nd.trace-lost .nd-box { stroke: #E5484D; stroke-width: 3; }
.ws-notes { min-height: 260px; resize: vertical; font: 13px/1.5 var(--mono); }
.ws-dl { display: grid; grid-template-columns: max-content 1fr; gap: .35rem .8rem; margin: 0 0 .7rem; font-size: .84rem; }
.ws-dl dt { color: var(--ws-muted); }
.ws-dl dd { margin: 0; overflow-wrap: anywhere; }
.ws-dl.calc { margin-top: .7rem; }
.calc-in { margin-bottom: .2rem; }
.m-btn.ghost { background: transparent; border: 1px solid #3C4048; }
.m-btn.danger { background: #8E2A33; }
.ws-panel .row { display: flex; gap: .4rem; flex-wrap: wrap; }

/* ===================== Ventanas de escritorios gráficos ===================== */
.vm-layer { position: absolute; inset: 0 0 38px 0; pointer-events: none; z-index: 20; }
.vm-win { position: absolute; display: flex; flex-direction: column; min-width: 360px; min-height: 240px; pointer-events: auto;
  background: #0D1117; border: 1px solid #3C4048; border-radius: 10px; overflow: hidden; box-shadow: 0 18px 44px rgba(0,0,0,.55); }
.vm-win[hidden] { display: none; }
.vm-win.focus { border-color: var(--ws-teal); }
.vm-win.moving iframe { pointer-events: none; }
.vm-head { display: flex; align-items: center; gap: .45rem; padding: 0 .3rem 0 .7rem; height: 36px; flex: none; background: #26292F; cursor: move; user-select: none; }
.vm-head > .i { width: 15px; height: 15px; color: var(--ws-teal); }
.vm-head b { font-size: .85rem; white-space: nowrap; }
.vm-sub { color: var(--ws-muted); font-size: .74rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.vm-head .spacer { flex: 1; }
.vm-btns { display: flex; gap: 1px; }
.vm-btns button { display: grid; place-items: center; width: 28px; height: 28px; border: 0; border-radius: 6px; background: none; color: var(--ws-text); cursor: pointer; }
.vm-btns button:hover { background: #30343C; color: #fff; }
.vm-btns button.danger:hover { background: #8E2A33; }
.vm-btns .i { width: 15px; height: 15px; }
.vm-dot { width: 8px; height: 8px; border-radius: 50%; background: #3FB27F; flex: none; }
.vm-win.off .vm-dot, .vm-task.off .vm-dot { background: #8B9099; }
.vm-body { position: relative; flex: 1; min-height: 0; }
.vm-body iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #0D1117; }
.vm-loading, .vm-off { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: .5rem; color: var(--ws-muted); text-align: center; padding: 1rem; }
.vm-off .i { width: 36px; height: 36px; color: #5E636C; }
.vm-off b { color: var(--ws-text); }
.vm-grip { position: absolute; right: 0; bottom: 0; width: 16px; height: 16px; cursor: nwse-resize;
  background: linear-gradient(135deg, transparent 50%, #5E636C 50%, #5E636C 60%, transparent 60%, transparent 70%, #5E636C 70%, #5E636C 80%, transparent 80%); }
.vm-win:fullscreen { border-radius: 0; }
.vm-bar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 25; height: 38px; display: flex; align-items: center; gap: .3rem;
  padding: 0 .5rem; background: #202227; border-top: 1px solid #30343C; overflow-x: auto; }
.vm-bar[hidden] { display: none; }
.vm-bar .spacer { flex: 1; }
.vm-bar-t { display: inline-flex; align-items: center; gap: .35rem; color: var(--ws-muted); font-size: .76rem; font-weight: 600; padding-right: .3rem; white-space: nowrap; }
.vm-bar-t .i, .vm-task .i { width: 14px; height: 14px; }
.vm-task { display: inline-flex; align-items: center; gap: .4rem; height: 28px; padding: 0 .65rem; border: 1px solid #30343C; border-radius: 7px;
  background: #17181C; color: var(--ws-text); font: 600 .8rem var(--font); cursor: pointer; white-space: nowrap; }
.vm-task:hover { border-color: #5E636C; }
.vm-task.on { border-color: var(--ws-teal); background: #1C2B30; }
.vm-task small { color: var(--ws-muted); font-weight: 500; }

/* ===================== Seguridad de acceso ===================== */
.auth-single { min-height: 100vh; display: grid; place-items: center; padding: 1.5rem; background: var(--bg); }
.auth-single .auth-box { max-width: 420px; display: grid; gap: .8rem; text-align: center; }
.auth-single h1 { margin: 0; font-size: 1.4rem; }
.auth-single form { text-align: left; display: grid; gap: .7rem; }
.auth-ic { display: inline-grid; place-items: center; width: 56px; height: 56px; margin: 0 auto; border-radius: 16px; background: var(--brand-soft); color: var(--brand); }
.otp-input { width: 100%; padding: .7rem; text-align: center; font: 700 1.6rem/1 var(--mono); letter-spacing: .35em; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--surface-2); color: var(--text); }
.otp-input.sm { width: 160px; font-size: 1.15rem; padding: .45rem; letter-spacing: .25em; }
.otp-input:focus { outline: 2px solid var(--brand); outline-offset: 1px; }
.otp-alt { display: grid; gap: .5rem; justify-items: center; }
.otp-alt details { text-align: left; }
.otp-alt summary { cursor: pointer; font-size: .86rem; color: var(--text-2); }
.otp-alt .link { display: inline-flex; align-items: center; gap: .35rem; }
.auth-links { margin: .6rem 0 0; text-align: center; }
.method-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .7rem; margin-top: .6rem; }
.method { display: grid; gap: .35rem; align-content: start; justify-items: start; padding: .9rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); }
.method small { color: var(--text-2); }
.method-ic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); }
.qr-box { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; margin: .6rem 0; }
.qr-box img { border-radius: 10px; border: 1px solid var(--line); background: #fff; }
.qr-box > div { display: grid; gap: .3rem; }
.secret { font: 600 .95rem var(--mono); letter-spacing: .06em; padding: .35rem .55rem; border-radius: 7px; background: var(--surface-2); user-select: all; }
.steps { margin: .2rem 0 0; padding-left: 1.2rem; color: var(--text-2); }
.sec-actions { display: grid; gap: .55rem; margin-top: .6rem; }
.sec-actions .row { gap: .5rem; flex-wrap: wrap; }
.sec-actions input[type=password] { flex: 1; min-width: 160px; }
.codes-card { border-color: var(--warn); }
.rc-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .4rem; padding-left: 1.2rem; margin: .6rem 0 .9rem; }
.rc-list code { font: 600 .95rem var(--mono); }
.sess-list { list-style: none; margin: 0; padding: 0; display: grid; }
.sess-list li { display: flex; align-items: center; gap: .7rem; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.sess-list li:last-child { border-bottom: 0; }
.sess-list small { display: block; }
.sess-ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--surface-2); color: var(--text-2); flex: none; }
.i.lg { width: 28px; height: 28px; }

/* ===================== Herramientas ===================== */
.tool-tabs { display: flex; gap: .3rem; flex-wrap: wrap; margin-bottom: 1rem; }
.tool-tabs .tab { display: inline-flex; align-items: center; gap: .4rem; }
.tool-tabs .tab .i { width: 16px; height: 16px; }
.tool-pane[hidden] { display: none; }
.calc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .55rem; margin-top: .6rem; }
.calc-grid .flash { grid-column: 1 / -1; }
.calc-cell { display: grid; gap: .15rem; padding: .6rem .75rem; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--line); }
.calc-cell small { color: var(--muted); font-size: .76rem; font-weight: 600; }
.calc-cell code { font: 600 .92rem var(--mono); overflow-wrap: anywhere; }
.cmd-list h3 { margin: 1rem 0 .4rem; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.cmd { display: grid; grid-template-columns: minmax(0, 1.2fr) auto minmax(0, 1fr); gap: .6rem; align-items: center; padding: .45rem 0; border-bottom: 1px solid var(--line); }
.cmd code { font: 500 .86rem var(--mono); background: var(--surface-2); padding: .25rem .45rem; border-radius: 6px; overflow-wrap: anywhere; }
.cmd span { font-size: .88rem; color: var(--text-2); }
@media (max-width: 700px) { .cmd { grid-template-columns: 1fr auto; } .cmd span { grid-column: 1 / -1; } }
kbd { display: inline-block; padding: .05rem .4rem; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; background: var(--surface-2); font: 600 .78rem var(--mono); }
.t.keys td:first-child { white-space: nowrap; }

/* ===================== Menú lateral: más nítido y sin cortes ===================== */
.sidebar { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding-bottom: 0; gap: 2px; }
.sidebar .brand { padding-bottom: .9rem; margin-bottom: .2rem; border-bottom: 1px solid var(--line); }
.nav-item { position: relative; padding: .5rem .7rem; font-size: .92rem; letter-spacing: -.005em; }
.nav-item .i { width: 18px; height: 18px; flex: none; opacity: .85; }
.nav-item.on { font-weight: 650; }
.nav-item.on::before { content: ""; position: absolute; left: -.9rem; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--brand); }
.nav-item.on .i { opacity: 1; }
.nav-label { margin: 1rem .7rem .35rem; font-size: .68rem; letter-spacing: .1em; }
.sidebar .me { position: sticky; bottom: 0; z-index: 1; margin: auto -.9rem 0; padding: .75rem .9rem; background: var(--surface);
  border-top: 1px solid var(--line); }
.me .btn.icon { flex: none; }
.me .who small { font-size: .76rem; }

/* ===================== Diálogo de máquina: acabado ===================== */
.bld-dlg { border-radius: 16px; overflow: hidden; }
.bld-dlg header { padding: .9rem 1.1rem; background: var(--surface-2); }
.bld-dlg header b { font-size: 1.05rem; letter-spacing: -.01em; }
.bld-dlg footer { padding: .8rem 1.1rem; background: var(--surface-2); }
.bld-dlg .dlg-body { padding: 1.1rem; display: grid; gap: .2rem; }
.bld-dlg .field > span { font-size: .82rem; }
.bld-dlg .btn[value="save"] { min-width: 120px; justify-content: center; }
.bld-dlg ::-webkit-scrollbar { width: 8px; }
.bld-dlg ::-webkit-scrollbar-thumb { background: var(--line); border-radius: 8px; }

/* ===================== Alumnos y clases ===================== */
.students-top { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); gap: 1rem; align-items: start; }
@media (max-width: 960px) { .students-top { grid-template-columns: 1fr; } }
.new-student, .new-user { display: grid; gap: .3rem; }
.new-student .card-head h2, .new-user .card-head h2 { display: inline-flex; align-items: center; gap: .45rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .grid-4 { grid-template-columns: 1fr; } }
.chip-picks { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .25rem; }
.pick { position: relative; cursor: pointer; }
.pick input { position: absolute; opacity: 0; pointer-events: none; }
.pick span { display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .75rem; border-radius: 99px; border: 1px solid var(--line);
  background: var(--surface-2); font-size: .86rem; font-weight: 600; color: var(--text-2); transition: all .12s; }
.pick span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid currentColor; }
.pick input:checked + span { background: var(--brand-soft); border-color: var(--brand); color: var(--brand); }
.pick input:checked + span::before { background: currentColor; }
.pick input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.class-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; max-height: 300px; overflow: auto; }
.class-list a { display: flex; justify-content: space-between; align-items: center; padding: .45rem .6rem; border-radius: var(--radius-sm);
  color: var(--text); text-decoration: none; }
.class-list a:hover { background: var(--surface-2); }
.class-list a.on { background: var(--brand-soft); color: var(--brand); }
.class-list small { color: var(--muted); }
.students-filter { gap: .5rem; flex-wrap: wrap; margin-bottom: .6rem; }
.chips { display: flex; flex-wrap: wrap; gap: .3rem; }
/* (acciones de la tabla de alumnos: ver .t td.actions en style.css) */
details.pop { position: relative; }
details.pop > summary { list-style: none; cursor: pointer; }
details.pop > summary::-webkit-details-marker { display: none; }
.pop-body { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; width: 240px; display: grid; gap: .35rem; padding: .8rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.cred-card { display: flex; align-items: center; gap: 1rem; border-color: var(--ok); margin-bottom: 1rem; }
.cred-card h2 { margin: 0; font-size: 1.05rem; }
.cred-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--ok-soft); color: var(--ok); flex: none; }
.cred-grid { display: grid; grid-template-columns: max-content auto; gap: .25rem .8rem; margin-top: .5rem; align-items: center; }
.cred-grid span { color: var(--muted); font-size: .84rem; }
.cred-grid code { font: 700 1rem var(--mono); user-select: all; }

/* ===================== Barra superior del alumno: una línea, sin cortes ===================== */
.top .inner { gap: .6rem; max-width: 1240px; }
.top .brand { flex: none; }
.top .brand span { white-space: nowrap; }
.top .brand small { white-space: nowrap; }
.topnav { flex: 1; min-width: 0; margin-left: .8rem; gap: .15rem; }
.topnav-item { white-space: nowrap; padding: .45rem .7rem; line-height: 1; }
.top .spacer { flex: 0 0 auto; }
.userchip, .top .btn { flex: none; white-space: nowrap; }
@media (max-width: 1180px) { .top .brand small { display: none; } }
@media (max-width: 1040px) { .topnav-item span { display: none; } .topnav-item { padding: .5rem .6rem; } .top .hide-sm { display: none; } }
@media (max-width: 620px) { .top .brand span { display: none; } }

/* ===================== Packet Tracer: sobres, selección y cables ===================== */
.env rect { fill: #FFD54A; stroke: #8A6D00; stroke-width: 1.6; }
.env .flap { fill: none; stroke: #8A6D00; stroke-width: 1.6; stroke-linejoin: round; }
.env { filter: drop-shadow(0 3px 6px rgba(0,0,0,.55)); pointer-events: none; }
.env.back rect { fill: #7FD3E3; stroke: #1F6F80; }
.env.back .flap { stroke: #1F6F80; }
.env.ok rect { fill: #5CD18F; stroke: #1D6B41; }
.env.ok .flap { stroke: #1D6B41; }
.env.bad rect { fill: #F2707A; stroke: #8E1F28; }
.env.bad .flap { stroke: #8E1F28; }
.lk.trace .lk-line { stroke: #FFD54A; stroke-width: 6; }
.lk-line.added { stroke: #2FA4B9; }
.lk-cut circle { fill: #2A2D33; stroke: #E5484D; stroke-width: 2; }
.lk-cut path { stroke: #FF8A96; stroke-width: 2; stroke-linecap: round; }
#ws-map.picking, #ws-map.picking .nd { cursor: crosshair; }
.nd.pick-src .nd-box { stroke: #FFD54A; stroke-width: 3; }
.pick-hint { position: absolute; left: 50%; top: 12px; transform: translateX(-50%); z-index: 32; display: flex; align-items: center; gap: .6rem;
  padding: .45rem .5rem .45rem .8rem; border-radius: 99px; background: #FFD54A; color: #2A2100; font-weight: 700; font-size: .86rem;
  box-shadow: 0 10px 26px rgba(0,0,0,.45); }
.pick-hint[hidden] { display: none; }
.pick-hint .i { width: 16px; height: 16px; }
.pick-hint button { border: 0; border-radius: 99px; padding: .25rem .7rem; background: rgba(0,0,0,.18); color: inherit; font-weight: 700; cursor: pointer; }
.ws-btn-pdu { color: #FFD54A; }
.pdu-result { display: flex; align-items: center; gap: .5rem; padding: .55rem .7rem; border-radius: 8px; font-size: .88rem; margin: .4rem 0 .6rem; }
.pdu-result .i { width: 16px; height: 16px; }
.pdu-result.wait { background: #17181C; color: var(--ws-muted); }
.pdu-result.ok { background: rgba(63,178,127,.15); color: #6BD39F; }
.pdu-result.bad { background: rgba(229,72,77,.15); color: #FF8A96; }
.pdu-events { width: 100%; border-collapse: collapse; margin-top: .6rem; font-size: .78rem; }
.pdu-events th { text-align: left; color: var(--ws-muted); font-weight: 600; padding: .3rem .35rem; border-bottom: 1px solid #30343C; }
.pdu-events td { padding: .3rem .35rem; border-bottom: 1px solid #26292F; }
.pdu-events tr.done td { color: var(--ws-muted); }
.pdu-events tr.on td { background: #2C2A1C; color: #FFE38A; }
.pdu-type { display: inline-block; padding: .05rem .4rem; border-radius: 4px; font-weight: 700; font-size: .7rem; }
.pdu-type.req { background: #FFD54A; color: #2A2100; }
.pdu-type.rep { background: #7FD3E3; color: #0E3640; }
.pdu-stats { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .6rem; }
.pdu-stats span { padding: .35rem .55rem; border-radius: 7px; background: #17181C; font-size: .76rem; color: var(--ws-muted); }
.pdu-stats b { color: #fff; }

/* ===================== Historial de versiones ===================== */
.ver-layout { display: grid; grid-template-columns: minmax(260px, 340px) 1fr; gap: 1rem; align-items: start; }
@media (max-width: 900px) { .ver-layout { grid-template-columns: 1fr; } }
.ver-list { list-style: none; margin: 0; padding: .4rem; max-height: 75vh; overflow: auto; }
.ver-list a { display: flex; gap: .6rem; align-items: center; padding: .55rem .6rem; border-radius: var(--radius-sm); color: var(--text); text-decoration: none; }
.ver-list a:hover { background: var(--surface-2); }
.ver-list li.on a { background: var(--brand-soft); }
.ver-n { flex: none; display: grid; place-items: center; min-width: 38px; height: 26px; border-radius: 7px; background: var(--surface-2); font: 700 .8rem var(--mono); }
.ver-list li.on .ver-n { background: var(--brand); color: #fff; }
.ver-main { flex: 1; min-width: 0; display: grid; }
.ver-main b { font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ver-main small { color: var(--muted); font-size: .76rem; }
.ver-changes { margin: .2rem 0 .6rem; padding-left: 1.1rem; color: var(--text-2); }
.ver-compare { align-items: flex-end; gap: .5rem; }
.diff { margin: .4rem 0 0; max-height: 420px; overflow: auto; padding: .6rem 0; border-radius: var(--radius-sm); background: #0D1117; color: #C9D1D9; font: 12.5px/1.55 var(--mono); }
.diff span { display: block; padding: 0 .8rem; white-space: pre-wrap; }
.diff .d-add { background: rgba(46,160,67,.18); color: #7EE787; }
.diff .d-del { background: rgba(248,81,73,.16); color: #FFA198; }
.diff .d-hunk { color: #79C0FF; background: rgba(56,139,253,.1); }
.ver-note { flex: 1; min-width: 220px; max-width: 460px; }

.ws-panel header { cursor: move; user-select: none; }
.ws-panel[data-kind="pdu"] { top: auto; bottom: 12px; width: min(360px, calc(100% - 24px)); max-height: 58%; }
.ws-panel[data-kind="pdu"] .ws-panel-body { padding: .6rem .75rem; }
.ws-panel[data-kind="pdu"] .ws-hint { font-size: .78rem; margin: 0 0 .3rem; }
.pdu-events td, .pdu-events th { padding: .22rem .3rem; }

/* ===================== Captura (estilo Wireshark), copias y examen ===================== */
.ws-panel[data-kind="capture"] { width: min(760px, calc(100% - 24px)); }
.cap-targets { display: grid; gap: .2rem; max-height: 140px; overflow: auto; padding: .3rem; border-radius: 8px; background: #17181C; }
.cap-targets .check { margin: 0; font-size: .82rem; }
.cap-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin: .7rem 0 .4rem; font-size: .84rem; }
.cap-wrap { max-height: 46vh; overflow: auto; border-radius: 8px; border: 1px solid #30343C; }
table.cap { width: 100%; border-collapse: collapse; font: 12px/1.35 var(--mono); }
table.cap th { position: sticky; top: 0; background: #26292F; color: var(--ws-text); text-align: left; padding: .3rem .4rem; font-weight: 600; }
table.cap td { padding: .18rem .4rem; white-space: nowrap; color: #12161C; }
table.cap td:last-child { white-space: normal; }
table.cap tr { background: #E8EAED; }
table.cap tr.p-icmp, table.cap tr.p-icmpv6 { background: #FCE0FF; }
table.cap tr.p-arp { background: #FAF0D7; }
table.cap tr.p-tcp { background: #E7E6FF; }
table.cap tr.p-http, table.cap tr.p-https { background: #E4FFC7; }
table.cap tr.p-udp, table.cap tr.p-dns { background: #DAEEFF; }
table.cap tr.p-ospf, table.cap tr.p-bgp, table.cap tr.p-stp { background: #FFF3D6; }
table.cap tr:hover td { background: rgba(47,164,185,.25); }
.bk-list { list-style: none; margin: .8rem 0 0; padding: 0; display: grid; gap: .35rem; }
.bk-list li { display: flex; align-items: center; gap: .4rem; padding: .5rem .6rem; border-radius: 8px; background: #17181C; }
.bk-list li > div { flex: 1; min-width: 0; display: grid; }
.bk-list small { color: var(--ws-muted); font-size: .74rem; }
.exam-bar { display: flex; align-items: center; justify-content: center; gap: .8rem; padding: .45rem 1rem; background: #3A2A00; color: #FFE38A; font-size: .9rem; }
.exam-bar .i { width: 16px; height: 16px; }
.exam-bar.warn { background: #5A1219; color: #FFB3BA; }
.exam-bar [data-left] { font: 700 1rem var(--mono); }
.exam-gate { max-width: 520px; margin: 3rem auto; text-align: center; display: grid; gap: .7rem; }
.exam-gate h1 { margin: 0; }
.exam-form { text-align: left; display: grid; gap: .6rem; }
.exam-instr { text-align: left; white-space: pre-line; padding: .7rem .9rem; border-radius: var(--radius-sm); background: var(--surface-2); }
.big-code { font: 700 1.05rem var(--mono); letter-spacing: .05em; }
.btn.big { padding: .8rem 1.2rem; font-size: 1rem; }
.drop { display: grid; place-items: center; gap: .3rem; padding: 1.6rem 1rem; border: 2px dashed var(--line); border-radius: var(--radius); cursor: pointer; text-align: center; color: var(--text-2); }
.drop.on, .drop:hover { border-color: var(--brand); color: var(--brand); }
.drop .i { width: 28px; height: 28px; }
.img-sug { list-style: none; margin: .4rem 0 0; padding: 0; display: grid; gap: .3rem; }
.img-sug li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .1rem .5rem; align-items: center; padding: .4rem 0; border-bottom: 1px solid var(--line); }
.img-sug li code { font-size: .8rem; overflow-wrap: anywhere; }
.img-sug li span:not(.chip) { grid-column: 1; font-size: .8rem; color: var(--muted); }
.img-sug li .chip, .img-sug li .btn { grid-column: 2; grid-row: 1 / span 2; }
@media print { .sidebar, .mobile-bar, .page-head, .grid-2, .section:not(.exam-print), .crumb, .btn { display: none !important; } .exam-print { border: 0; } }

.exam-done { display: grid; justify-items: center; gap: .4rem; padding: 1.2rem; border-radius: var(--radius); background: var(--ok-soft); color: var(--ok); }
.exam-done b { font-size: 1.3rem; }
.exam-done span { color: var(--text-2); }
.chip.info { background: var(--info-soft); color: var(--info); }
.danger-text { color: var(--err) !important; }

/* ===================== ISOs ===================== */
.disk-meter { display: inline-flex; align-items: center; gap: .5rem; padding: .45rem .8rem; border-radius: 99px; background: var(--surface-2); font-size: .86rem; }
.iso-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: 1rem; align-items: start; }
@media (max-width: 1000px) { .iso-layout { grid-template-columns: 1fr; } }
.mb { margin-bottom: .8rem; }
.iso-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: .7rem; }
.iso-card { display: grid; gap: .55rem; align-content: start; padding: .85rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); }
.iso-card[hidden] { display: none; }
.iso-top { display: flex; gap: .65rem; align-items: flex-start; }
.iso-top b { display: block; font-size: .95rem; }
.iso-top small { color: var(--text-2); font-size: .8rem; }
.iso-fam { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); font-weight: 800; text-transform: uppercase; }
.iso-info { display: grid; gap: .15rem; min-height: 2.4rem; font-size: .82rem; }
.iso-info code { font-size: .78rem; overflow-wrap: anywhere; }
.iso-info small { color: var(--muted); }
.iso-lib { list-style: none; margin: 0; padding: 0; display: grid; }
.iso-lib li { display: flex; align-items: center; gap: .6rem; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.iso-lib li b { display: block; font-size: .86rem; overflow-wrap: anywhere; }
.iso-ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--surface-2); color: var(--text-2); flex: none; }
.iso-jobs { margin-bottom: 1rem; }
.job { padding: .55rem 0; border-bottom: 1px solid var(--line); }
.job-top { display: flex; align-items: center; gap: .6rem; margin-bottom: .35rem; }
.job-top b { flex: 1; font-size: .88rem; overflow-wrap: anywhere; }
.job-top small { color: var(--text-2); }
.job.error small { color: var(--err); }
.job.ok small { color: var(--ok); }
.ok-text { color: var(--ok); }
.err-text { color: var(--err); }
.hint-box { display: flex; gap: .7rem; padding: .8rem; border-radius: var(--radius-sm); background: var(--info-soft); color: var(--text); }
.hint-box > .i { color: var(--info); flex: none; width: 22px; height: 22px; }
.hint-box p { margin: .2rem 0 0; color: var(--text-2); }
.bld-dlg [data-iso][hidden] { display: none; }

/* Actualización en directo: destello muy suave cuando cambia algo */
@keyframes liveflash { from { box-shadow: inset 0 0 0 9999px color-mix(in srgb, var(--brand) 3%, transparent); } to { box-shadow: none; } }
.live-flash { animation: liveflash .9s ease-out; }

/* ===================== Guías ===================== */
.guide-editor textarea { min-height: 180px; }
.g-tabs { display: flex; align-items: center; gap: .25rem; flex-wrap: wrap; margin-bottom: .35rem; }
.g-tabs button { border: 1px solid var(--line); background: var(--surface-2); color: var(--text-2); border-radius: 7px; padding: .25rem .65rem; font: 600 .8rem var(--font); cursor: pointer; }
.g-tabs button.on { background: var(--brand-soft); color: var(--brand); border-color: var(--brand); }
.g-tabs .hint { margin-left: .4rem; }
.guide-preview { padding: .8rem 1rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); min-height: 120px; }
.guide-body { line-height: 1.6; }
.guide-body h3 { font-size: 1.1rem; margin: .8rem 0 .3rem; }
.guide-body h4 { font-size: .98rem; margin: .8rem 0 .3rem; }
.guide-body h5 { font-size: .9rem; margin: .6rem 0 .2rem; }
.guide-body p { margin: .35rem 0; }
.guide-body code { font: 500 .86em var(--mono); padding: .05rem .3rem; border-radius: 5px; background: var(--surface-2); }
.g-code { padding: .6rem .8rem; border-radius: 8px; background: #0D1117; color: #E6EDF3; overflow: auto; font: 12.5px/1.5 var(--mono); }
.g-code code { background: none; padding: 0; color: inherit; }
.g-list { padding-left: 1.3rem; margin: .35rem 0; }
.g-list li { margin: .2rem 0; }
.g-task { list-style: none; margin-left: -1.3rem !important; }
.g-task label { display: flex; gap: .5rem; align-items: flex-start; cursor: pointer; }
.g-task input { margin-top: .3rem; accent-color: var(--ok); }
.g-task.done span { text-decoration: line-through; opacity: .65; }
.g-tip { margin: .5rem 0; padding: .55rem .75rem; border-left: 3px solid var(--info); border-radius: 0 8px 8px 0; background: var(--info-soft); }
.course-guide { margin: .8rem 0; padding: .7rem .9rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); }
.course-guide summary, .ws-guide summary { cursor: pointer; font-weight: 700; display: flex; align-items: center; gap: .4rem; }
.ws-guide { margin: .7rem; padding: .6rem .75rem; border-radius: 10px; background: #17181C; border: 1px solid #30343C; color: var(--ws-text); font-size: .86rem; }
.ws-guide summary .i { width: 16px; height: 16px; color: var(--ws-teal); }
.ws-guide .guide-body code { background: #26292F; color: #E6EDF3; }
.ws-guide .g-tip { background: #1C2B30; border-left-color: var(--ws-teal); }
.exam-tasks { border-color: #8A6D00; background: #2A2310; }
.exam-tasks summary .i { color: #FFD54A; }

/* ===================== Novedades ===================== */
.new-dot { display: inline-block; width: 8px; height: 8px; margin-left: .35rem; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.releases { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.release { padding: 1.1rem 1.2rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.release.latest { border-color: var(--brand); }
.rel-head { display: flex; align-items: center; gap: .8rem; margin-bottom: .6rem; }
.rel-head h2 { margin: 0; font-size: 1.1rem; }
.rel-head .chip { margin-left: auto; }
.rel-ver { flex: none; padding: .3rem .6rem; border-radius: 8px; background: var(--brand-soft); color: var(--brand); font: 800 .9rem var(--mono); }
.release ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .45rem; }
.release li { display: flex; gap: .6rem; align-items: baseline; line-height: 1.5; }
.rel-tag { flex: none; min-width: 92px; text-align: center; padding: .1rem .45rem; border-radius: 6px; font-size: .72rem; font-weight: 700; background: var(--surface-2); color: var(--text-2); }
.rel-tag.alumnos { background: var(--info-soft); color: var(--info); }
.rel-tag.profesorado { background: var(--warn-soft); color: var(--warn); }

.vm-cert { max-width: 560px; margin: 0 auto; }
.vm-cert ol { text-align: left; margin: .3rem 0 .6rem; padding-left: 1.2rem; color: var(--ws-text); line-height: 1.6; }
.vm-cert a { color: #9ED9E4; }
.vm-cert .row { justify-content: center; gap: .4rem; }

.hub-results { list-style: none; margin: .6rem 0 0; padding: 0; display: grid; gap: .25rem; max-height: 360px; overflow: auto; }
.hub-results li { display: flex; align-items: center; gap: .6rem; padding: .5rem .2rem; border-bottom: 1px solid var(--line); }
.hub-results code { font-size: .86rem; }
.hub-results small { display: block; margin-top: .15rem; }

/* Logos del sistema operativo en el mapa */
.nd-os { filter: drop-shadow(0 2px 3px rgba(0,0,0,.35)); }
.nd-osb circle { fill: #2A2D33; stroke: #3C4048; stroke-width: 2; }

/* ================================================================ visor de capturas (Wireshark) */
.wsk { position: fixed; inset: 0; z-index: 400; background: rgba(8, 10, 14, .55); display: flex; align-items: center; justify-content: center; padding: 2vh 2vw; outline: none; }
.wsk-win { --wsk-fs: 12px; position: relative; width: min(1500px, 100%); height: 100%; display: flex; flex-direction: column; background: #fff; color: #000; border: 1px solid #6e6e6e; border-radius: 6px; overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5); font: 12px/1.3 "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif; color-scheme: light; }
.wsk-win.max { width: 100%; border-radius: 0; }
.wsk:has(.wsk-win.max) { padding: 0; }
.wsk-win button { font: inherit; color: inherit; }
.wsk .wsk-win input:not([type=checkbox]):not(#_), .wsk .wsk-win select { margin: 0; min-height: 0; height: 22px; width: auto; padding: 0 .4rem; box-shadow: none; border-radius: 0; color: #000; background: #fff; font-size: 12px; line-height: 20px; }
.wsk .wsk-win input:focus:not(#_), .wsk .wsk-win select:focus { box-shadow: none; }
.wsk .wsk-filter input:not([type=checkbox]):not(#_) { flex: 1; height: 100%; border: 0; background: transparent; font-family: Consolas, "DejaVu Sans Mono", monospace; }
.wsk .wsk-win input[type=checkbox] { width: auto; height: auto; margin: 0; }
.wsk-title { display: flex; align-items: center; gap: .55rem; height: 30px; padding: 0 0 0 .7rem; background: #fff; border-bottom: 1px solid #e3e3e3; font-size: 12px; flex: none; }
.wsk-title .grow { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wsk-logo { width: 16px; height: 16px; flex: none; border-radius: 3px; background: linear-gradient(160deg, #3f8bd6, #1b5fa8); position: relative; }
.wsk-logo::after { content: ""; position: absolute; left: 3px; right: 3px; bottom: 3px; height: 8px; background: #fff; clip-path: path("M0 8C3.5 7 6 4 6.6 0 7.5 3.5 8.6 6.4 10 8Z"); }
.wsk-wb { width: 46px; height: 30px; border: 0; background: transparent; cursor: pointer; font-size: 13px !important; color: #333; }
.wsk-wb:hover { background: #e5e5e5; }
.wsk-wb.wsk-x:hover { background: #e81123; color: #fff; }
/* barra de menús */
.wsk-menu { display: flex; flex: none; padding: 0 .2rem; background: #fff; border-bottom: 1px solid #ececec; }
.wsk-mi { position: relative; }
.wsk-mi > button { border: 0; background: transparent; padding: .25rem .6rem; cursor: default; }
.wsk-mi > button:hover, .wsk-mi > button.open { background: #cce8ff; }
.wsk-dd, .wsk-ctx { position: absolute; z-index: 20; min-width: 250px; padding: 3px 0; background: #f2f2f2; border: 1px solid #ccc; box-shadow: 2px 3px 8px rgba(0, 0, 0, .25); }
.wsk-dd { top: 100%; left: 0; }
.wsk-dd button, .wsk-ctx button { display: flex; align-items: center; width: 100%; border: 0; background: transparent; padding: .22rem .9rem .22rem 0; text-align: left; cursor: default; white-space: nowrap; }
.wsk-ctx button { padding-left: .9rem; }
.wsk-dd button:hover:not(:disabled), .wsk-ctx button:hover { background: #91c9f7; }
.wsk-dd button:disabled { color: #9a9a9a; }
.wsk-dd .ck { width: 1.9rem; flex: none; text-align: center; }
.wsk-dd [data-check].on .ck::before { content: "✓"; }
.wsk-dd .lb { flex: 1; }
.wsk-dd .sc { margin-left: 2rem; color: #555; }
.wsk-dd hr, .wsk-ctx hr { margin: 3px 0 3px 1.9rem; border: 0; border-top: 1px solid #d5d5d5; }
/* barra de herramientas principal */
.wsk-main { display: flex; align-items: center; gap: 1px; flex: none; padding: 2px .3rem; background: #fff; border-bottom: 1px solid #e3e3e3; }
.wsk-ib { display: grid; place-items: center; width: 26px; height: 24px; padding: 0; border: 1px solid transparent; border-radius: 2px; background: transparent; cursor: default; }
.wsk-ib svg { width: 17px; height: 17px; }
.wsk-ib:hover:not(:disabled) { background: #e5f1fb; border-color: #cce4f7; }
.wsk-ib.on { background: #cce8ff; border-color: #99d1ff; }
.wsk-ib:disabled svg { filter: grayscale(1); opacity: .38; }
.wsk-main .sep { width: 1px; height: 18px; margin: 0 4px; background: #d5d5d5; }
/* filtro de visualización */
.wsk-filter { display: flex; align-items: stretch; flex: none; height: 24px; margin: 3px .35rem; border: 1px solid #a9a9a9; border-radius: 2px; background: #fff; }
.wsk-filter input { flex: 1; min-width: 0; border: 0; outline: 0; padding: 0 .4rem; font: 12px/1.3 Consolas, "DejaVu Sans Mono", monospace; background: transparent; color: #000; }
.wsk-filter.good { background: #afffaf; border-color: #5dbf5d; }
.wsk-filter.bad { background: #ffafaf; border-color: #d45d5d; }
.wsk-filter button { display: grid; place-items: center; border: 0; background: transparent; padding: 0 .45rem; cursor: pointer; color: #555; }
.wsk-filter button svg { width: 14px; height: 14px; }
.wsk-filter button:hover { background: rgba(0, 0, 0, .08); }
.wsk-filter .wsk-bm { border-right: 1px solid #d0d0d0; }
.wsk-filter .wsk-plus { border-left: 1px solid #d0d0d0; font-size: 15px; font-weight: 600; color: #333; }
.wsk-filter.sm { height: 22px; margin: 0; flex: 1; max-width: 520px; }
.wsk-findbar { display: flex; align-items: center; gap: .5rem; flex: none; padding: .3rem .5rem; background: #f4f4f4; border-bottom: 1px solid #ddd; }
.wsk-findbar input { flex: 1; max-width: 360px; height: 22px; border: 1px solid #a9a9a9; padding: 0 .4rem; font: 12px Consolas, monospace; }
.wsk-findbar select { height: 22px; border: 1px solid #a9a9a9; background: #fff; }
.wsk-btn { border: 1px solid #adadad; background: #e1e1e1; padding: .18rem .9rem; border-radius: 0; cursor: default; }
.wsk-btn:hover { background: #e5f1fb; border-color: #0078d7; }
.wsk-btn.pri { border-color: #0078d7; box-shadow: inset 0 0 0 1px #0078d7; }
/* cuerpo */
.wsk-body { flex: 1; min-height: 0; display: flex; flex-direction: column; border-top: 1px solid #e3e3e3; }
.wsk-body > [hidden] { display: none !important; }
.wsk-welcome { flex: 1; overflow: auto; background: #fff; padding: 1.4rem 2.2rem; }
.wsk-wcol { max-width: 880px; }
.wsk-welcome h1 { margin: 0 0 1.2rem; font: 300 26px/1.2 "Segoe UI", system-ui, sans-serif; color: #444; }
.wsk-welcome h2 { margin: 1.3rem 0 .45rem; font: 600 15px "Segoe UI", system-ui, sans-serif; color: #222; }
.wsk-capf { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin-bottom: .5rem; }
.wsk-ifs { border-top: 1px solid #eee; }
.wsk-if { display: flex; align-items: center; gap: 1rem; padding: .25rem .4rem; cursor: default; outline: none; border-bottom: 1px solid #f3f3f3; }
.wsk-if .nm { flex: 0 0 340px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.wsk-if .nm small { color: #777; font-size: 12px; }
.wsk-if .spk { flex: 1; max-width: 260px; height: 18px; }
.wsk-if .spk polyline { fill: none; stroke: #000; stroke-width: 1; vector-effect: non-scaling-stroke; }
.wsk-if:hover { background: #e5f3ff; }
.wsk-if.sel { background: #cce8ff; }
.wsk-if:focus-visible { box-shadow: inset 0 0 0 1px #0078d7; }
.wsk-muted { color: #6b6b6b; }
.wsk-tip { margin: .5rem 0 0; font-size: 11.5px; }
.wsk-learn { margin: 0; }
.wsk-link { border: 0; background: none; padding: 0; color: #0066cc; cursor: pointer; text-decoration: none; }
.wsk-link:hover { text-decoration: underline; }
/* paneles */
.wsk-panes { flex: 1; min-height: 0; display: flex; flex-direction: column; font-size: var(--wsk-fs); }
.wsk-list { flex: 0 0 44%; min-height: 60px; overflow: auto; background: #fff; }
.wsk-list table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.wsk-win.fitcols .wsk-list table { table-layout: auto; }
.wsk-list col.c-no { width: 5em; } .wsk-list col.c-time { width: 8em; } .wsk-list col.c-src, .wsk-list col.c-dst { width: 13em; } .wsk-list col.c-proto { width: 6.5em; } .wsk-list col.c-len { width: 5em; }
.wsk-list th { position: sticky; top: 0; z-index: 1; text-align: left; font-weight: 400; padding: .18rem .4rem; background: #fff; border-bottom: 1px solid #d5d5d5; border-right: 1px solid #e5e5e5; cursor: default; white-space: nowrap; user-select: none; }
.wsk-list th:hover { background: #d9ebf9; }
.wsk-list th.asc::after { content: " ▴"; color: #555; } .wsk-list th.desc::after { content: " ▾"; color: #555; }
.wsk-list td { padding: 0 .4rem; height: 1.5em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #12272e; cursor: default; }
.wsk-list tr.c-tcp td { background: #e7e6ff; }
.wsk-list tr.c-udp td { background: #daeeff; }
.wsk-list tr.c-icmp td { background: #fce0ff; }
.wsk-list tr.c-arp td { background: #faf0d7; }
.wsk-list tr.c-routing td { background: #fff3d6; }
.wsk-list tr.c-http td { background: #e4ffc7; }
.wsk-list tr.c-synfin td { background: #a0a0a0; }
.wsk-list tr.c-rst td { background: #a40000; color: #fffc9c; }
.wsk-list tr.c-other td { background: #fff; }
.wsk-win.nocolor .wsk-list tr td { background: #fff; color: #000; }
.wsk-list tr.mk td { background: #000 !important; color: #fff !important; }
.wsk-list tr.sel td { background: #0078d7 !important; color: #fff !important; }
.wsk-list tr.empty td { background: #fff !important; color: #666 !important; padding: 1rem; white-space: normal; height: auto; }
.wsk-split { flex: none; height: 5px; background: #f0f0f0; border-top: 1px solid #d0d0d0; border-bottom: 1px solid #d0d0d0; cursor: row-resize; }
.wsk-tree { flex: 0 0 28%; min-height: 60px; overflow: auto; padding: .2rem 0; outline: none; }
.wsk-tree details > summary { list-style: none; padding: 0 .4rem 0 1.3rem; position: relative; white-space: nowrap; cursor: default; line-height: 1.5; }
.wsk-tree details > summary::-webkit-details-marker { display: none; }
.wsk-tree details > summary::before { content: "›"; position: absolute; left: .45rem; top: 0; font-size: 1.15em; color: #555; transition: transform .1s; }
.wsk-tree details[open] > summary::before { transform: rotate(90deg); }
.wsk-fld { padding: 0 .4rem 0 2.4rem; white-space: nowrap; line-height: 1.5; cursor: default; }
.wsk-tree .on { background: #0078d7; color: #fff; }
.wsk-tree summary:hover, .wsk-fld:hover { background: #e5f1fb; }
.wsk-tree .on:hover { background: #0078d7; }
.wsk-bytes { flex: 1; min-height: 60px; overflow: auto; padding: .3rem .6rem; font: var(--wsk-fs)/1.45 Consolas, "DejaVu Sans Mono", "Courier New", monospace; white-space: pre; color: #000; outline: none; }
.wsk-bytes mark { background: #0078d7; color: #fff; }
/* barra de estado */
.wsk-status { display: flex; align-items: center; gap: 1rem; flex: none; height: 22px; padding: 0 .6rem; background: #f0f0f0; border-top: 1px solid #d0d0d0; font-size: 11.5px; color: #222; }
.wsk-status .grow { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wsk-dot { width: 10px; height: 10px; border-radius: 50%; background: #9aa0a6; flex: none; }
.wsk-dot.live { background: #3bb143; animation: wsk-pulse 1s infinite alternate; }
.wsk-dot.warn { background: #f0c419; } .wsk-dot.err { background: #e0453a; }
@keyframes wsk-pulse { to { opacity: .35; } }
.wsk-prof { color: #444; }
.wsk-win.live .wsk-title { background: linear-gradient(#fff, #f6fbff); }
/* menú contextual y diálogos */
.wsk-ctx { min-width: 240px; max-width: 420px; }
.wsk-ctx button { overflow: hidden; text-overflow: ellipsis; }
.wsk-dlg { position: absolute; inset: 0; z-index: 30; display: grid; place-items: center; background: rgba(0, 0, 0, .18); }
.wsk-dwin { width: min(480px, 94%); max-height: 86%; display: flex; flex-direction: column; background: #fff; border: 1px solid #888; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.wsk-dwin.wide { width: min(820px, 96%); }
.wsk-dtitle { display: flex; align-items: center; justify-content: space-between; padding: .4rem .3rem .4rem .8rem; border-bottom: 1px solid #e3e3e3; }
.wsk-dtitle b { font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wsk-dtitle button { border: 0; background: transparent; width: 34px; height: 24px; cursor: pointer; }
.wsk-dtitle button:hover { background: #e81123; color: #fff; }
.wsk-dbody { overflow: auto; padding: .8rem; }
.wsk-dbody p { margin: 0 0 .6rem; }
.wsk-row { display: flex; align-items: center; gap: .6rem; margin: .6rem 0; }
.wsk-row input, .wsk-row select { height: 23px; border: 1px solid #a9a9a9; padding: 0 .4rem; background: #fff; font: inherit; }
.wsk-row input[name=cf2] { flex: 1; font-family: Consolas, monospace; }
.wsk-dfoot { display: flex; justify-content: flex-end; gap: .5rem; margin-top: .8rem; }
.wsk-tbl { overflow: auto; max-height: 52vh; border: 1px solid #d5d5d5; }
.wsk-tbl table { width: 100%; border-collapse: collapse; }
.wsk-tbl th { position: sticky; top: 0; background: #fff; text-align: left; font-weight: 400; padding: .2rem .5rem; border-bottom: 1px solid #d5d5d5; border-right: 1px solid #eee; }
.wsk-tbl td { padding: .12rem .5rem; white-space: pre; border-bottom: 1px solid #f2f2f2; }
.wsk-tbl td.n { text-align: right; font-variant-numeric: tabular-nums; }
.wsk-tbl tr:hover td { background: #e5f3ff; }
.wsk-follow { margin: 0; max-height: 52vh; overflow: auto; padding: .5rem; border: 1px solid #d5d5d5; background: #fff; font: 12px/1.4 Consolas, monospace; white-space: pre-wrap; word-break: break-all; }
.wsk-follow .cli, .wsk-dbody .cli { color: #7f0000; background: #fbeded; }
.wsk-follow .srv, .wsk-dbody .srv { color: #00007f; background: #ededfb; }
.wsk-exs { display: grid; gap: .3rem; }
.wsk-exs button { display: flex; gap: 1rem; align-items: baseline; text-align: left; border: 1px solid #e0e0e0; background: #fafafa; padding: .35rem .6rem; cursor: pointer; }
.wsk-exs button:hover { background: #e5f3ff; border-color: #99d1ff; }
.wsk-exs code { flex: 0 0 280px; font: 12px Consolas, monospace; color: #0b4d8c; }
.wsk-io { width: 100%; height: auto; }
.wsk-io rect { fill: #3f8bd6; } .wsk-io rect:hover { fill: #1b5fa8; }
.wsk-io line { stroke: #999; } .wsk-io text { font-size: 10px; fill: #555; }
@media (max-width: 720px) {
  .wsk { padding: 0; } .wsk-win { border-radius: 0; }
  .wsk-list col.c-time, .wsk-list col.c-len { width: 0; }
  .wsk-menu { overflow-x: auto; } .wsk-main { overflow-x: auto; }
  .wsk-welcome { padding: 1rem; } .wsk-if .nm { flex-basis: 55%; }
  .wsk-dd { position: fixed; top: auto; left: 0; right: 0; }
}

/* ================================================================ interfaces extra y VLAN */
.if-tabs { display: flex; gap: 2px; margin: -.2rem 0 .7rem; border-bottom: 1px solid var(--ws-line, #30343C); }
.if-tabs button { font: inherit; font-size: .82rem; background: none; border: 0; border-bottom: 2px solid transparent; color: var(--ws-muted, #9aa1ad); padding: .4rem .7rem; cursor: pointer; }
.if-tabs button[aria-selected="true"] { color: var(--ws-text, #e8eaed); border-bottom-color: var(--accent, #4c8dff); }
.if-tabs button:hover { color: var(--ws-text, #e8eaed); }
.if-sub { margin: .9rem 0 .3rem; font-size: .82rem; font-weight: 600; }
.if-extra { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; }
.if-extra li { display: flex; align-items: center; gap: .5rem; padding: .25rem .4rem; border-radius: 6px; background: #17181C; font-size: .82rem; }
.if-extra li code { flex: 1; }
.if-extra li.muted { background: none; }

/* ================================================================ logos de sistema operativo */
svg.os-logo { width: 22px; height: 22px; flex: none; vertical-align: middle; }
.os-cell { display: inline-flex; align-items: center; gap: .5rem; }
.img-sug li > svg.os-logo, #hub-results li > svg.os-logo { margin-right: .5rem; }
.iso-fam.os { background: var(--surface-2); }
.iso-fam.os svg.os-logo { width: 26px; height: 26px; }

.ws-btn.ws-btn-label { width: auto; padding: 0 .6rem; gap: .35rem; display: inline-flex; align-items: center; font-size: .78rem; font-weight: 600; }

/* ================================================================ reportes de errores */
.rep-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 1.2rem; align-items: start; }
@media (max-width: 1000px) { .rep-layout { grid-template-columns: 1fr; } }
.rep-side { display: grid; gap: 1.2rem; }
.rep-form h2 { display: flex; align-items: center; gap: .5rem; }
.sev-pick { border: 0; padding: 0; margin: 0 0 1rem; }
.sev-pick legend { font-weight: 600; font-size: .88rem; margin-bottom: .45rem; padding: 0; }
.sev-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: .6rem; }
.sev-opt { position: relative; cursor: pointer; }
.sev-opt input { position: absolute; opacity: 0; }
.sev-card { display: block; height: 100%; padding: .7rem .8rem; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); transition: border-color .15s, box-shadow .15s; }
.sev-card b { display: flex; align-items: center; gap: .45rem; font-size: .92rem; }
.sev-card small { display: block; color: var(--text-2); font-size: .78rem; line-height: 1.4; margin-top: .25rem; }
.sev-opt:hover .sev-card { border-color: var(--sev); }
.sev-opt input:checked + .sev-card { border-color: var(--sev); box-shadow: 0 0 0 3px color-mix(in srgb, var(--sev) 18%, transparent); background: color-mix(in srgb, var(--sev) 6%, var(--surface)); }
.sev-opt input:focus-visible + .sev-card { outline: 2px solid var(--sev); outline-offset: 2px; }
.sev-baja { --sev: #2E7D5B; } .sev-media { --sev: #B86E00; } .sev-alta { --sev: #D2461F; } .sev-critica { --sev: #C8102E; }
.sev-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--sev, var(--muted)); flex: none; }
.sev-critica .sev-dot, .sev-dot.sev-critica { box-shadow: 0 0 0 3px color-mix(in srgb, var(--sev) 25%, transparent); }
.sev-pill { display: inline-flex; align-items: center; gap: .4rem; padding: .15rem .6rem; border-radius: 999px; font-size: .78rem; font-weight: 700;
  color: var(--sev); background: color-mix(in srgb, var(--sev) 12%, transparent); }
.sev-kpi { text-decoration: none; color: inherit; }
.sev-kpi .ic { background: color-mix(in srgb, var(--sev) 12%, transparent) !important; }
.sev-kpi .ic .sev-dot { width: 14px; height: 14px; }
.sev-kpi.on { border-color: var(--sev); box-shadow: 0 0 0 3px color-mix(in srgb, var(--sev) 15%, transparent); }
.rep-form .drop { flex-direction: row; justify-content: flex-start; text-align: left; gap: .9rem; padding: 1rem; margin-bottom: 1rem; }
.rep-form .drop.has { border-style: solid; }
.rep-form .drop img { max-height: 90px; max-width: 160px; border-radius: 8px; margin-left: auto; border: 1px solid var(--line); }
kbd { font: 600 .72rem var(--mono, monospace); padding: .05rem .35rem; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 4px; background: var(--surface-2); }
.rep-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.rep-foot small { display: inline-flex; align-items: center; gap: .35rem; }
.rep-tips { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.rep-tips li { display: flex; gap: .55rem; align-items: flex-start; font-size: .88rem; color: var(--text-2); }
.rep-tips li svg { color: var(--ok); flex: none; margin-top: .15rem; }
.rep-mine { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.rep-mine li { display: flex; gap: .6rem; align-items: flex-start; padding: .6rem .7rem; border-radius: 10px; background: var(--surface-2); }
.rep-mine li b { display: block; font-size: .88rem; line-height: 1.35; }
.rep-mine .sev-dot { margin-top: .35rem; }
.rep-note { display: flex; gap: .35rem; margin: .4rem 0 0; font-size: .8rem; color: var(--text); background: var(--surface); padding: .4rem .5rem; border-radius: 8px; }
.rep-filter { display: flex; gap: .8rem; align-items: center; flex-wrap: wrap; margin-bottom: 1rem; }
.rep-filter .searchbox { flex: 1; min-width: 220px; margin: 0; }
.seg a { display: block; padding: .4rem .85rem; border-radius: 8px; font-weight: 600; font-size: .85rem; color: var(--text-2); text-decoration: none; }
.seg a.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.d-block { display: block; }
.rep-table td { vertical-align: top; }
.empty-state { display: grid; justify-items: center; gap: .3rem; padding: 1.6rem; text-align: center; }
.empty-state svg { width: 28px; height: 28px; color: var(--ok); }
.eyebrow { margin: 0 0 .2rem; font-size: .8rem; font-weight: 700; color: var(--brand); letter-spacing: .04em; }
.page-head .sub .sev-pill, .page-head .sub .chip { vertical-align: middle; }
.rep-report .pre { white-space: pre-wrap; line-height: 1.6; margin: 0; }
.rep-shot { display: block; max-width: 100%; border-radius: 10px; border: 1px solid var(--line); }
.rep-meta { display: grid; grid-template-columns: auto 1fr; gap: .45rem .9rem; margin: 0; font-size: .86rem; }
.rep-meta dt { color: var(--text-2); }
.rep-meta dd { margin: 0; word-break: break-word; }
/* ================================================================ modo mantenimiento */
.maint-bar { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; padding: .7rem 1rem; margin-bottom: 1rem; border-radius: var(--radius-sm, 10px);
  background: var(--warn-soft); color: var(--text); border: 1px solid color-mix(in srgb, var(--warn) 35%, transparent); }
.maint-bar > svg { color: var(--warn); }
.maint-bar span { flex: 1; min-width: 200px; font-size: .9rem; }
.warn-dot { background: var(--warn) !important; }
.mt-preview { display: grid; justify-items: center; gap: .4rem; text-align: center; padding: 1.4rem 1rem; border-radius: 14px; text-decoration: none; color: inherit;
  border: 1px solid var(--line); border-top: 4px solid var(--brand); background: var(--surface-2); }
.mt-preview-ic { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.mt-preview small { color: var(--text-2); max-width: 40ch; }

/* ================================================================ manual del profesorado */
.mn-hero { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(260px, 1fr); gap: 1.5rem; align-items: center; padding: 1.6rem 1.8rem;
  border-radius: var(--radius); background: linear-gradient(135deg, var(--brand-soft), var(--surface) 70%); border: 1px solid var(--line); margin-bottom: 1.6rem; }
.mn-hero h1 { margin: .1rem 0 .4rem; }
.mn-quick { list-style: none; counter-reset: q; margin: 0; padding: 0; display: grid; gap: .55rem; }
.mn-quick li { counter-increment: q; display: grid; grid-template-columns: 34px 1fr; column-gap: .7rem; align-items: center; background: var(--surface);
  border: 1px solid var(--line); border-radius: 12px; padding: .55rem .75rem; }
.mn-quick li::before { content: counter(q); grid-row: span 2; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--brand); color: #fff; font-weight: 800; }
.mn-quick b { font-size: .92rem; }
.mn-quick span { color: var(--text-2); font-size: .8rem; }
.mn-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 2rem; align-items: start; }
.mn-toc { position: sticky; top: 1rem; display: grid; gap: .1rem; padding: 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.mn-toc b { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-2); margin-bottom: .35rem; }
.mn-toc a { padding: .38rem .6rem; border-radius: 8px; color: var(--text-2); text-decoration: none; font-size: .88rem; }
.mn-toc a:hover { background: var(--surface-2); color: var(--text); }
.mn-toc a.on { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.mn-body { min-width: 0; max-width: 980px; }
.mn-sec { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem 1.8rem; margin-bottom: 1.4rem; scroll-margin-top: 1rem; }
.mn-sec h2 { display: flex; align-items: center; gap: .7rem; margin: 0 0 .8rem; font-size: 1.35rem; }
.mn-sec h3 { margin: 1.6rem 0 .5rem; font-size: 1.02rem; }
.mn-sec p, .mn-sec li { line-height: 1.65; }
.mn-cn { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--brand); color: #fff; font-size: 1rem; flex: none; }
.mn-steps { list-style: none; padding: 0; margin: .6rem 0 1rem; display: grid; gap: .45rem; }
.mn-steps li { position: relative; padding-left: 2.1rem; }
.mn-steps li > .mn-n { position: absolute; left: 0; top: .1rem; }
.mn-n { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #E2001A; color: #fff; font-size: .78rem;
  font-weight: 800; flex: none; box-shadow: 0 0 0 2px #fff, 0 1px 4px rgba(0, 0, 0, .25); vertical-align: -.35em; margin: 0 .15rem; }
.mn-list { margin: .4rem 0 1rem; padding-left: 1.2rem; }
.mn-fig { margin: 1rem 0 1.4rem; }
.mn-zoom { display: block; width: 100%; padding: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface-2); cursor: zoom-in;
  box-shadow: 0 6px 20px rgba(16, 24, 40, .08); transition: box-shadow .15s, transform .15s; }
.mn-zoom:hover { box-shadow: 0 10px 28px rgba(16, 24, 40, .14); transform: translateY(-1px); }
.mn-zoom img { display: block; width: 100%; height: auto; }
.mn-fig figcaption { margin-top: .5rem; font-size: .84rem; color: var(--text-2); text-align: center; }
.mn-tip { display: flex; gap: .6rem; align-items: flex-start; padding: .75rem 1rem; border-radius: 10px; background: var(--info-soft); font-size: .9rem; margin: 1rem 0; }
.mn-tip svg { color: var(--info); flex: none; margin-top: .2rem; }
.mn-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .6rem; margin: .8rem 0 1rem; }
.mn-grid div { padding: .7rem .8rem; border-radius: 10px; background: var(--surface-2); }
.mn-grid b { display: block; font-size: .88rem; }
.mn-grid span { font-size: .8rem; color: var(--text-2); }
.mn-faq details { border: 1px solid var(--line); border-radius: 10px; padding: .7rem 1rem; margin-bottom: .5rem; }
.mn-faq summary { cursor: pointer; font-weight: 600; }
.mn-faq p { margin: .5rem 0 0; color: var(--text-2); }
.mn-lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 94vh; overflow: visible; }
.mn-lightbox::backdrop { background: rgba(8, 10, 14, .78); }
.mn-lightbox img { display: block; max-width: 96vw; max-height: 94vh; border-radius: 10px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.mn-lightbox [data-close] { position: absolute; top: -14px; right: -14px; background: #fff; color: #000; border-radius: 50%; }
@media (max-width: 1000px) { .mn-layout, .mn-hero { grid-template-columns: 1fr; } .mn-toc { position: static; } .mn-sec { padding: 1.2rem; } }
@media print {
  .sidebar, .mobile-bar, .mn-toc, .mn-hero .row, .mn-lightbox, #toasts, .maint-bar { display: none !important; }
  .app, .main, .main .inner { display: block !important; padding: 0 !important; margin: 0 !important; max-width: none !important; }
  .mn-layout { display: block; }
  .mn-sec { break-inside: auto; border: 0; padding: 0; margin: 0 0 1rem; }
  .mn-sec h2 { break-after: avoid; } .mn-sec + .mn-sec { break-before: page; }
  .mn-fig { break-inside: avoid; } .mn-zoom { box-shadow: none; }
  .mn-faq details { break-inside: avoid; } .mn-faq details > p { display: block; }
}

/* ================================================================ selector de imágenes del constructor */
.img-pick { display: grid; gap: .45rem; }
.img-pick select, .img-pick input { width: 100%; }

/* ================================================================ mi apariencia */
.ap-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 1.2rem; align-items: start; }
@media (max-width: 1000px) { .ap-layout { grid-template-columns: 1fr; } }
.ap-main { display: grid; gap: 1.2rem; }
.ap-main h2 { display: flex; align-items: center; gap: .5rem; }
.ap-side { position: sticky; top: 1rem; }
.ap-swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: .7rem; margin-top: .6rem; }
.ap-sw { display: grid; justify-items: center; gap: .3rem; cursor: pointer; text-align: center; }
.ap-sw > input[type=radio] { position: absolute; opacity: 0; }
.ap-sw small { font-size: .75rem; color: var(--text-2); }
.ap-dot { position: relative; width: 44px; height: 44px; border-radius: 50%; display: block; border: 3px solid var(--surface);
  box-shadow: 0 0 0 1px var(--line), 0 2px 6px rgba(0, 0, 0, .12); transition: box-shadow .15s, transform .15s; overflow: hidden; }
.ap-dot-center { background: conic-gradient(#E2001A 0 50%, #FFFFFF 0 100%); }
.ap-dot-custom { background: conic-gradient(#ef4444, #f59e0b, #22c55e, #06b6d4, #6366f1, #d946ef, #ef4444); }
.ap-dot-custom input[type=color] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; border: 0; padding: 0; }
.ap-sw:hover .ap-dot { transform: scale(1.06); }
.ap-sw > input:checked + .ap-dot { box-shadow: 0 0 0 3px var(--text), 0 2px 8px rgba(0, 0, 0, .2); }
.ap-sw > input:checked ~ small { color: var(--text); font-weight: 600; }
.ap-sw > input:focus-visible + .ap-dot { outline: 2px solid var(--brand); outline-offset: 3px; }
.ap-modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: .7rem; }
.ap-mode { position: relative; cursor: pointer; }
.ap-mode input { position: absolute; opacity: 0; }
.ap-mode-card { display: grid; gap: .5rem; justify-items: center; padding: .7rem; border: 1.5px solid var(--line); border-radius: 12px; font-size: .86rem; font-weight: 600; }
.ap-mode input:checked + .ap-mode-card { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.ap-mini { width: 100%; height: 58px; border-radius: 8px; display: grid; grid-template-columns: 28% 1fr; grid-template-rows: 1fr 1fr; gap: 4px; padding: 5px; box-sizing: border-box; }
.ap-mini b { grid-row: span 2; border-radius: 4px; }
.ap-mini em { border-radius: 4px; }
.ap-mode-light .ap-mini, .ap-mode-centro .ap-mini { background: #F2F3F5; } .ap-mode-light .ap-mini b, .ap-mode-light .ap-mini em, .ap-mode-centro .ap-mini b { background: #fff; }
.ap-mode-centro .ap-mini em { background: var(--brand-soft); }
.ap-mode-dark .ap-mini { background: #0F1318; } .ap-mode-dark .ap-mini b, .ap-mode-dark .ap-mini em { background: #1D232C; }
.ap-mode-auto .ap-mini { background: linear-gradient(135deg, #F2F3F5 50%, #0F1318 50%); }
.ap-mode-auto .ap-mini b, .ap-mode-auto .ap-mini em { background: rgba(127, 127, 127, .35); }
.ap-seg { margin-top: .4rem; }
.ap-preview h3 { margin: .8rem 0 .2rem; }
.ap-pv-nav { display: flex; gap: .4rem; }
.ap-pv-nav span { display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .6rem; border-radius: var(--radius-sm, 8px); font-size: .82rem; color: var(--text-2); }
.ap-pv-nav span.on { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.ap-pv-bar { height: 8px; border-radius: 99px; background: var(--surface-2); margin: .7rem 0 .9rem; overflow: hidden; }
.ap-pv-bar i { display: block; width: 62%; height: 100%; background: var(--brand); border-radius: inherit; }
.ap-preview .btn { pointer-events: none; }

.top .spacer { min-width: 1rem; }
.ap-seg { display: flex; flex-wrap: wrap; }

/* ================================================================ pie del menú: nombre completo + accesos de la cuenta */
.sidebar .me { flex-wrap: wrap; row-gap: .55rem; }
.me-actions { flex-basis: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: .25rem; }
.me-actions form { margin: 0; display: contents; }
.me-act { display: flex; flex-direction: column; align-items: center; gap: .15rem; padding: .35rem .2rem; border-radius: 8px; border: 0; background: none;
  color: var(--text-2); font: 600 .68rem/1.1 var(--font); text-decoration: none; cursor: pointer; }
.me-act:hover { background: var(--surface-2); color: var(--text); }
.me-act.on { background: var(--brand-soft); color: var(--brand); }
.me-act .i { width: 17px; height: 17px; }

/* ================================================================ tarjetas de prioridad (claro y oscuro) */
.sev-baja { --sev-t: #1F6B4B; } .sev-media { --sev-t: #8A5300; } .sev-alta { --sev-t: #B5391A; } .sev-critica { --sev-t: #B00E28; }
:root[data-theme="dark"] .sev-baja { --sev: #3FB27F; --sev-t: #5FD39E; }
:root[data-theme="dark"] .sev-media { --sev: #E0A43A; --sev-t: #F2BE5E; }
:root[data-theme="dark"] .sev-alta { --sev: #F0703F; --sev-t: #FF9468; }
:root[data-theme="dark"] .sev-critica { --sev: #FF4D66; --sev-t: #FF8597; }
@media (prefers-color-scheme: dark) {
  :root[data-theme="auto"] .sev-baja { --sev: #3FB27F; --sev-t: #5FD39E; }
  :root[data-theme="auto"] .sev-media { --sev: #E0A43A; --sev-t: #F2BE5E; }
  :root[data-theme="auto"] .sev-alta { --sev: #F0703F; --sev-t: #FF9468; }
  :root[data-theme="auto"] .sev-critica { --sev: #FF4D66; --sev-t: #FF8597; }
}
.sev-card { background: var(--surface); border-color: var(--line); }
.sev-card b { color: var(--sev-t, var(--sev)); }
.sev-opt:hover .sev-card { border-color: color-mix(in srgb, var(--sev) 55%, var(--line)); }
.sev-opt input:checked + .sev-card { border-color: var(--sev); background: color-mix(in srgb, var(--sev) 10%, var(--surface));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--sev) 22%, transparent); }
.sev-critica .sev-dot, .sev-dot.sev-critica { box-shadow: 0 0 0 3px color-mix(in srgb, var(--sev) 28%, transparent); }
.sev-pill { color: var(--sev-t, var(--sev)); background: color-mix(in srgb, var(--sev) 14%, transparent); }

.sev-grid .sev-opt { background: transparent !important; border: 0 !important; padding: 0 !important; box-shadow: none !important; border-radius: 12px; }

/* ================================================================ interruptor «Retos en orden» */
.seq-toggle { margin: 0; }
.switch { display: inline-flex; align-items: center; gap: .5rem; border: 0; background: none; padding: .25rem .2rem; cursor: pointer; font: 600 .84rem var(--font); color: var(--text-2); }
.switch i { position: relative; width: 36px; height: 20px; border-radius: 99px; background: var(--line); transition: background .15s; flex: none; }
.switch i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .15s; }
.switch.on { color: var(--text); }
.switch.on i { background: var(--brand); }
.switch.on i::after { transform: translateX(16px); }

/* ================================================================ panel de retos: paso a paso */
.ms-head { gap: .6rem; flex-wrap: wrap; }
.ms-seg { display: inline-flex; padding: 2px; border-radius: 9px; background: #1B1D22; border: 1px solid var(--ws-line, #30343C); }
.ms-seg button { border: 0; background: none; color: var(--ws-muted, #9AA1AD); font: 600 .74rem var(--font); padding: .3rem .6rem; border-radius: 7px; cursor: pointer; }
.ms-seg button[aria-selected="true"] { background: #30343C; color: #fff; }
.ms-steps { list-style: none; margin: .2rem 0 .8rem; padding: 0; display: flex; flex-wrap: wrap; gap: .3rem; counter-reset: none; }
.ms-steps li { display: flex; align-items: center; }
.ms-steps li + li::before { content: ""; width: 10px; height: 2px; background: #30343C; margin-right: .3rem; border-radius: 2px; }
.ms-steps button { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; border: 2px solid #3A3F48; background: #1F2227;
  color: #C9CDD3; font: 700 .78rem var(--font); cursor: pointer; transition: transform .12s, border-color .12s; padding: 0; }
.ms-steps button .i { width: 14px; height: 14px; }
.ms-steps button:hover { transform: translateY(-1px); border-color: #5A606B; }
.ms-steps button.superado { background: #3FB27F; border-color: #3FB27F; color: #fff; }
.ms-steps button.fallido { border-color: #E5484D; color: #FF8A96; }
.ms-steps button.locked { color: #6B717C; border-style: dashed; background: transparent; }
.ms-steps button.cur { box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 45%, transparent); border-color: var(--brand); }
.ms-steps button.superado.cur { border-color: #fff; }
.ms-card { border-radius: 14px; padding: 1rem 1rem 1.05rem; background: #1F2227; border: 1px solid #30343C; box-shadow: 0 8px 22px rgba(0, 0, 0, .25); }
.ms-card.superado { border-color: rgba(63, 178, 127, .55); background: linear-gradient(160deg, rgba(63, 178, 127, .14), #1F2227 55%); }
.ms-card.fallido { border-color: rgba(229, 72, 77, .45); }
.ms-card.locked { opacity: .75; border-style: dashed; }
.ms-top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; flex-wrap: wrap; }
.ms-eyebrow { font: 700 .68rem var(--font); letter-spacing: .06em; text-transform: uppercase; color: var(--ws-muted, #9AA1AD); }
.ms-card h3 { margin: .5rem 0 .35rem; font-size: 1.05rem; line-height: 1.3; color: #fff; }
.ms-card p { margin: 0 0 .6rem; color: #C9CDD3; font-size: .86rem; line-height: 1.5; }
.ms-locked-msg { display: flex; gap: .4rem; align-items: center; }
.ms-action { margin-top: .75rem; }
.ms-action .ws-flag { display: flex; gap: .4rem; }
.ms-action .ws-flag input { flex: 1; min-width: 0; }
.ms-pill { display: inline-flex; align-items: center; gap: .3rem; padding: .15rem .55rem; border-radius: 99px; font: 700 .7rem var(--font); background: #2A2E35; color: #C9CDD3; white-space: nowrap; }
.ms-pill .i { width: 12px; height: 12px; }
.ms-pill.ok { background: rgba(63, 178, 127, .18); color: #4FD195; }
.ms-pill.bad { background: rgba(229, 72, 77, .16); color: #FF8A96; }
.ms-pill.lock { background: #24272D; color: #8B9099; }
.ms-lock { display: inline-flex; align-items: center; gap: .35rem; color: #8B9099; font-size: .8rem; }
.ms-lock .i { width: 14px; height: 14px; }
.ms-nav { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-top: .75rem; }
.ms-nav .m-btn.ghost { background: transparent; border: 1px solid #3A3F48; color: #D9DCE1; }
.ms-nav .m-btn[disabled] { opacity: .35; cursor: default; }
.ms-count { color: var(--ws-muted, #9AA1AD); font: 600 .78rem var(--font); }
.ms-end { display: inline-flex; align-items: center; gap: .3rem; color: #4FD195; font: 600 .8rem var(--font); }
.ms-all { display: flex; justify-content: flex-end; margin-bottom: .5rem; }
.ms-row { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.ms-list .m-item.locked { opacity: .6; border-style: dashed; }
.ms-list .m-item.locked .m-num { background: transparent; border: 1px dashed #5A606B; }

/* ================================================================ notas de examen */
.grade { display: inline-grid; place-items: center; min-width: 2.4rem; padding: .15rem .5rem; border-radius: 8px; font: 800 .9rem var(--font); }
.grade.ok { background: var(--ok-soft); color: var(--ok); }
.grade.bad { background: var(--err-soft); color: var(--err); }
.exam-grade { display: grid; justify-items: center; gap: .15rem; margin: 1rem auto; padding: 1rem 1.4rem; border-radius: 16px; max-width: 280px; }
.exam-grade small { text-transform: uppercase; letter-spacing: .08em; font-weight: 700; font-size: .72rem; color: var(--text-2); }
.exam-grade b { font-size: 2.6rem; line-height: 1.1; letter-spacing: -.02em; }
.exam-grade span { font-size: .85rem; color: var(--text-2); }
.exam-grade.ok { background: var(--ok-soft); } .exam-grade.ok b { color: var(--ok); }
.exam-grade.bad { background: var(--err-soft); } .exam-grade.bad b { color: var(--err); }

.new-skill { display: flex; gap: .5rem; margin-top: .6rem; } .new-skill input { flex: 1; min-width: 0; } .new-skill select { width: auto; }

.rep-kind { margin-bottom: 1rem; } .sug-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } @media (max-width: 700px) { .sug-grid { grid-template-columns: 1fr; } }

/* ================================================================ equipos de fabricante */
.vendor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .8rem; margin-top: .8rem; }
.vendor-card { display: grid; gap: .45rem; align-content: start; padding: .9rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.vendor-card.ready { border-color: color-mix(in srgb, var(--ok) 45%, var(--line)); }
.vendor-card p { margin: 0; display: flex; gap: .35rem; align-items: flex-start; }
.vendor-card .btn { justify-self: start; }
.vendor-top { display: flex; align-items: center; gap: .6rem; }
.vendor-top > div { flex: 1; min-width: 0; }
.vendor-top b { display: block; }
.vendor-top small { color: var(--text-2); font-size: .78rem; }
.vendor-top svg.os-logo { width: 34px; height: 34px; }
.vendor-have { color: var(--ok); }
.vendor-form { margin-top: 1rem; padding: 1rem; border-radius: 12px; background: var(--surface-2); }
.vendor-form h3 { margin: 0 0 .6rem; }
.vendor-progress { margin-top: .8rem; display: grid; gap: .4rem; }
.vp-log { margin: 0; max-height: 220px; overflow: auto; padding: .6rem .7rem; border-radius: 8px; background: #111316; color: #C9CDD3;
  font: 12px/1.45 var(--mono, monospace); white-space: pre-wrap; }
.vp-log:empty { display: none; }

/* ===== v3.10 · Zonas de colores en el mapa (VLAN, DMZ…) ===== */
.zn-teal { --zc: #2FA4B9; } .zn-blue { --zc: #4C8DFF; } .zn-purple { --zc: #9D7BFF; } .zn-pink { --zc: #F06BB4; }
.zn-red { --zc: #F0605D; } .zn-orange { --zc: #F59E42; } .zn-yellow { --zc: #F2CC3D; } .zn-green { --zc: #46C37B; } .zn-gray { --zc: #9AA1AC; }
#ws-map .zn-body { fill: color-mix(in srgb, var(--zc) 11%, transparent); stroke: var(--zc); stroke-width: 1.6; stroke-dasharray: 7 5; pointer-events: none; }
#ws-map .zn-edge { fill: none; stroke: transparent; stroke-width: 14; pointer-events: stroke; cursor: move; }
#ws-map .zn-tab { cursor: move; }
#ws-map .zn-tab rect { fill: color-mix(in srgb, var(--zc) 24%, #1A1B1F); stroke: var(--zc); stroke-width: 1.2; }
#ws-map .zn-tab text { fill: color-mix(in srgb, var(--zc) 55%, #fff); font-size: 13px; font-weight: 700; letter-spacing: .01em; }
#ws-map .zn-rs { fill: var(--zc); opacity: 0; cursor: nwse-resize; transition: opacity .12s; }
#ws-map .zn:hover .zn-rs, #ws-map .zn.sel .zn-rs { opacity: .9; }
#ws-map .zn:hover .zn-body, #ws-map .zn.sel .zn-body { fill: color-mix(in srgb, var(--zc) 16%, transparent); stroke-dasharray: none; }
#ws-map .zn.sel .zn-tab rect { stroke-width: 2; }
#ws-map.drawing, #ws-map.drawing .zn-edge, #ws-map.drawing .zn-tab { cursor: crosshair; }
.ws-btn-zone.on { background: var(--ws-teal); color: #fff; }
.zn-ed { position: absolute; z-index: 8; width: 268px; padding: .7rem .8rem .8rem; background: #23262C; border: 1px solid #3C4048; border-radius: 12px;
  box-shadow: 0 14px 38px rgba(0,0,0,.45); color: var(--ws-text, #D9DCE1); font-size: .85rem; display: grid; gap: .6rem; }
.zn-ed[hidden] { display: none; }
.zn-ed-head { display: flex; align-items: center; justify-content: space-between; }
.zn-ed-head .ws-btn { width: 26px; height: 26px; }
.zn-ed-f { display: grid; gap: .3rem; }
.zn-ed-f > span { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: #8B9099; font-weight: 700; }
.zn-ed input { width: 100%; padding: .45rem .6rem; border-radius: 8px; border: 1px solid #3C4048; background: #1A1B1F; color: #fff; font: inherit; }
.zn-ed input:focus { outline: 2px solid var(--ws-teal, #2FA4B9); outline-offset: 0; border-color: transparent; }
.zn-sw { display: flex; flex-wrap: wrap; gap: .35rem; }
.zn-c { width: 24px; height: 24px; border-radius: 50%; border: 2px solid transparent; background: var(--zc); cursor: pointer; padding: 0;
  box-shadow: inset 0 0 0 2px #23262C; transition: transform .1s; }
.zn-c:hover { transform: scale(1.12); }
.zn-c.on { border-color: #fff; }
.zn-shape { display: inline-flex; gap: 2px; padding: 2px; background: #1A1B1F; border: 1px solid #3C4048; border-radius: 9px; justify-self: start; }
.zn-shape button { border: 0; background: transparent; color: #B9BDC5; padding: .3rem .7rem; border-radius: 7px; cursor: pointer; font: inherit; font-size: .8rem; font-weight: 600; }
.zn-shape button.on { background: #30343C; color: #fff; }
.zn-ed-foot { display: flex; justify-content: space-between; gap: .5rem; margin-top: .1rem; }
.zn-ed-foot button { display: inline-flex; align-items: center; gap: .35rem; border: 0; border-radius: 8px; padding: .4rem .75rem; font: inherit; font-weight: 600; cursor: pointer; }
.zn-ed-foot .i { width: 14px; height: 14px; }
.zn-del { background: transparent; color: #F0605D; }
.zn-del:hover { background: rgba(240,96,93,.12); }
.zn-ok { background: var(--ws-teal, #2FA4B9); color: #fff; }
.ws-group-tag { display: inline-flex; align-items: center; gap: .25rem; color: #7FD3E0; font-weight: 600; }
.ws-group-tag .i { width: 13px; height: 13px; }

/* ===== v3.10 · Modo de trabajo y grupos ===== */
.wm-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: .7rem; }
.wm-pick { border: 0; padding: 0; margin: 0 0 1rem; }
.wm-pick legend { font-weight: 600; margin-bottom: .45rem; }
.wm-opt { position: relative; cursor: pointer; }
.wm-opt input { position: absolute; opacity: 0; }
.wm-card { display: grid; grid-template-columns: auto 1fr; column-gap: .75rem; row-gap: .15rem; align-items: start; height: 100%;
  padding: .85rem 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: border-color .12s, box-shadow .12s; }
.wm-card b { align-self: center; }
.wm-card small { grid-column: 2; color: var(--text-2); line-height: 1.4; }
.wm-ic { grid-row: span 2; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--surface-2); color: var(--text-2); }
.wm-ic .i { width: 19px; height: 19px; }
.wm-opt:hover .wm-card { border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); }
.wm-opt input:checked + .wm-card { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 15%, transparent); background: var(--brand-soft); }
.wm-opt input:checked + .wm-card .wm-ic { background: var(--brand); color: var(--brand-ink); }
.wm-opt input:focus-visible + .wm-card { outline: 2px solid var(--brand); outline-offset: 2px; }
.wm-panel .card-head { align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.wm-panel .card-head p { margin: .2rem 0 0; max-width: 62ch; }
.wm-seg { display: inline-flex; gap: 2px; padding: 3px; margin: 0; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; }
.wm-seg button { display: inline-flex; align-items: center; gap: .4rem; border: 0; background: transparent; color: var(--text-2); padding: .42rem .9rem;
  border-radius: 8px; font: inherit; font-weight: 600; font-size: .86rem; cursor: pointer; }
.wm-seg button .i { width: 15px; height: 15px; }
.wm-seg button:hover:not(:disabled) { color: var(--text); }
.wm-seg button.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow); cursor: default; }
.grp-tools { display: flex; flex-wrap: wrap; gap: .6rem 1.2rem; align-items: center; justify-content: space-between; margin-top: .9rem; }
.grp-tools .row { align-items: center; gap: .5rem; margin: 0; }
.grp-tools select { width: auto; }
.grp-board { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .8rem; margin-top: .4rem; }
.grp-board.grp-busy { opacity: .6; pointer-events: none; }
.grp-col { display: flex; flex-direction: column; gap: .55rem; min-height: 130px; padding: .7rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
  transition: border-color .12s, background .12s, box-shadow .12s; }
.grp-col.grp-free { background: var(--surface-2); border-style: dashed; }
.grp-col.drop { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 14%, transparent); }
.grp-head { display: flex; align-items: center; gap: .4rem; min-width: 0; }
.grp-head > b { flex: 1; }
.grp-head .chip { flex: none; font-size: .7rem; }
.grp-head form { margin: 0; }
.grp-name { flex: 1; min-width: 0; }
.grp-board .grp-col .grp-name input[name=name] { width: 100%; min-height: 0; border: 1px solid transparent; background: transparent; box-shadow: none; font: inherit; font-weight: 700;
  padding: .25rem .4rem; border-radius: 6px; color: var(--text); }
.grp-board .grp-col .grp-name input[name=name]:hover { border-color: var(--line); }
.grp-board .grp-col .grp-name input[name=name]:focus { border-color: var(--brand); background: var(--surface-2); outline: none; }
.grp-members { display: flex; flex-wrap: wrap; gap: .35rem; align-content: flex-start; flex: 1; }
.grp-chip { display: inline-flex; align-items: center; gap: .4rem; padding: .22rem .3rem .22rem .25rem; border: 1px solid var(--line); border-radius: 99px;
  background: var(--surface); font-size: .82rem; font-weight: 600; cursor: grab; user-select: none; max-width: 100%; }
.grp-free .grp-chip { padding-right: .65rem; }
.grp-chip:hover { border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); }
.grp-chip.dragging { opacity: .45; }
.grp-chip i { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff; font-style: normal; font-size: .72rem; flex: none; }
.grp-chip form { margin: 0; display: inline-flex; }
.grp-x { display: grid; place-items: center; width: 20px; height: 20px; border: 0; border-radius: 50%; background: transparent; color: var(--text-2); cursor: pointer; padding: 0; }
.grp-x:hover { background: var(--surface-2); color: var(--err, #c0392b); }
.grp-x .i { width: 12px; height: 12px; }
.grp-empty { margin: 0; align-self: center; width: 100%; text-align: center; padding: .6rem 0; }
.grp-add { display: flex; gap: .35rem; margin: 0; }
.grp-add select { flex: 1; min-width: 0; font-size: .82rem; }

/* ===== v3.11 · Registros: comandos tecleados ===== */
.log-src { display: inline-flex; gap: 2px; padding: 3px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; margin-left: auto; }
.log-src a { display: inline-flex; align-items: center; gap: .35rem; padding: .32rem .75rem; border-radius: 8px; font-weight: 600; font-size: .84rem; color: var(--text-2); text-decoration: none; }
.log-src a.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.log-src .i { width: 14px; height: 14px; }
.log-nodes { margin: .4rem 0 .6rem; flex-wrap: wrap; }
.cmdlog { background: #14161A; border: 1px solid #2A2D33; border-radius: var(--radius); padding: .4rem 0; max-height: 62vh; overflow: auto; font-size: .84rem; }
.cl { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "time who flag" "cmd cmd cmd"; column-gap: .8rem; row-gap: .15rem;
  align-items: center; padding: .45rem .9rem; color: #C9CDD3; border-bottom: 1px solid #1E2126; }
.cl time { grid-area: time; } .cl-who { grid-area: who; } .cl .chip { grid-area: flag; } .cl code { grid-area: cmd; }
.cl:last-child { border-bottom: 0; }
.cl:hover { background: #1A1D22; }
.cl time { color: #7D838C; font-size: .76rem; font-variant-numeric: tabular-nums; }
.cl-who { color: #9FB7FF; font-weight: 600; font-size: .78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cl code { font-family: var(--mono, ui-monospace, monospace); color: #E6EDF3; white-space: pre-wrap; overflow-wrap: anywhere; background: none; padding: 0; font-size: .86rem; }
.cl-host { color: #46C37B; font-weight: 700; }
.cl-p { color: #7D838C; margin: 0 .15rem; }
.cl-blocked { background: rgba(240, 96, 93, .08); }
.cl-blocked code { color: #FFB4B2; text-decoration: line-through; text-decoration-color: rgba(240,96,93,.6); }
.cl.muted { display: block; color: #8B9099; padding: 1rem; }

/* ===== v3.11 · Distintivos de los laboratorios y etiquetas ===== */
.lab-badges { display: flex; flex-wrap: wrap; gap: .3rem; margin: -.15rem 0 .55rem; }
.lb { display: inline-flex; align-items: center; gap: .28rem; padding: .14rem .5rem; border-radius: 99px; font-size: .72rem; font-weight: 700; letter-spacing: .01em;
  background: var(--surface-2); color: var(--text-2); border: 1px solid var(--line); white-space: nowrap; }
.lb .i { width: 12px; height: 12px; }
.lb-exam { background: color-mix(in srgb, #F0605D 14%, var(--surface)); color: #D93D3A; border-color: color-mix(in srgb, #F0605D 40%, var(--line)); }
.lb-group { background: color-mix(in srgb, #2FA4B9 13%, var(--surface)); color: #1F8496; border-color: color-mix(in srgb, #2FA4B9 40%, var(--line)); }
.lb-course { background: color-mix(in srgb, #9D7BFF 13%, var(--surface)); color: #7A57E0; border-color: color-mix(in srgb, #9D7BFF 40%, var(--line)); }
.lb-tag { background: color-mix(in srgb, var(--brand) 8%, var(--surface)); color: var(--brand); border-color: color-mix(in srgb, var(--brand) 30%, var(--line)); }
.ws-exam-tag { display: inline-flex; align-items: center; gap: .25rem; color: #FF8A87; font-weight: 700; }
.ws-exam-tag .i { width: 13px; height: 13px; }
.nt-tags { display: flex; flex-wrap: wrap; gap: .3rem; }
.nt-tag { display: inline-flex; align-items: center; gap: .25rem; padding: .2rem .55rem; border-radius: 99px; border: 1px dashed #3C4048; background: transparent;
  color: #9AA1AC; font: inherit; font-size: .75rem; font-weight: 600; cursor: pointer; }
.nt-tag .i { width: 11px; height: 11px; }
.nt-tag:hover { color: #fff; border-color: #6B7280; }
.nt-tag.on { border-style: solid; border-color: var(--ws-teal, #2FA4B9); background: rgba(47,164,185,.18); color: #BFEAF2; }
.nt-add input { width: 100%; padding: .38rem .55rem; border-radius: 7px; border: 1px solid #3C4048; background: #1A1B1F; color: #fff; font: inherit; font-size: .8rem; }

/* ===== v3.11 · Notas pegadas en el mapa ===== */
#ws-map .zn-nbody { fill: color-mix(in srgb, var(--zc) 26%, #23262C); stroke: color-mix(in srgb, var(--zc) 70%, #000); stroke-width: 1; cursor: move;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,.35)); }
#ws-map .zn-nfold { fill: color-mix(in srgb, var(--zc) 55%, #000); pointer-events: none; }
#ws-map .zn-ntitle { fill: color-mix(in srgb, var(--zc) 35%, #fff); font-size: 13px; font-weight: 800; cursor: move; }
#ws-map .zn-ntext { fill: #E6E8EB; font-size: 12px; cursor: move; }
#ws-map .zn-note.sel .zn-nbody { stroke: #fff; stroke-width: 1.6; }
.zn-ed textarea { width: 100%; padding: .45rem .6rem; border-radius: 8px; border: 1px solid #3C4048; background: #1A1B1F; color: #fff; font: inherit; resize: vertical; }

/* ===== v3.11 · Planificador: común ===== */
.pl-head .toolbar { flex-wrap: wrap; }
.pl-views, .ag-nav { display: inline-flex; align-items: center; gap: 2px; }
.pl-views { padding: 3px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; }
.pl-views a { display: inline-flex; align-items: center; gap: .35rem; padding: .38rem .8rem; border-radius: 8px; font-weight: 600; font-size: .86rem; color: var(--text-2); text-decoration: none; }
.pl-views a.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.pl-views .i { width: 15px; height: 15px; }
.pl-team { display: flex; align-items: center; gap: .25rem; margin-top: .5rem; flex-wrap: wrap; }
.pl-team .muted { margin-left: .4rem; }
.pl-av { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-size: .72rem; font-weight: 800; color: #fff; flex: none;
  background: var(--pc, #6B7280); box-shadow: 0 0 0 2px var(--surface); }
.pl-c0 { --pc: #2FA4B9; } .pl-c1 { --pc: #9D7BFF; } .pl-c2 { --pc: #F59E42; } .pl-c3 { --pc: #46C37B; }
.pl-c4 { --pc: #F06BB4; } .pl-c5 { --pc: #4C8DFF; } .pl-c6 { --pc: #D9A400; } .pl-c7 { --pc: #F0605D; }
.pl-none { background: var(--surface-2); color: var(--text-2); box-shadow: inset 0 0 0 1px var(--line); }
.pl-loading { padding: 2rem; text-align: center; }
.pl-modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 1rem; background: rgba(10, 12, 16, .55); backdrop-filter: blur(2px); }
.pl-modal[hidden] { display: none; }
.pl-dlg { width: min(560px, 100%); max-height: calc(100vh - 2rem); overflow: auto; display: grid; gap: .2rem; padding: 1.1rem 1.2rem; box-shadow: 0 24px 60px rgba(0,0,0,.35); }
.pl-dlg header { display: flex; align-items: center; justify-content: space-between; margin-bottom: .3rem; }
.pl-dlg header h3 { margin: 0; }
.pl-dlg footer { display: flex; align-items: center; gap: .5rem; margin-top: .6rem; }
.pl-dlg footer > span { flex: 1; }
.pl-dlg .grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; }
@media (max-width: 560px) { .pl-dlg .grid-3, .pl-dlg .grid-2 { grid-template-columns: 1fr; } }
.danger-text { color: var(--err, #c0392b) !important; }
.pl-sw { display: flex; flex-wrap: wrap; gap: .4rem; }
.pl-swc { position: relative; cursor: pointer; }
.pl-swc input { position: absolute; opacity: 0; }
.pl-swc i { display: block; width: 26px; height: 26px; border-radius: 50%; background: var(--zc); box-shadow: inset 0 0 0 3px var(--surface); border: 2px solid transparent; transition: transform .1s; }
.pl-swc:hover i { transform: scale(1.1); }
.pl-swc input:checked + i { border-color: var(--text); }
.pl-swc input:focus-visible + i { outline: 2px solid var(--brand); outline-offset: 2px; }
.pl-from { display: flex; align-items: center; gap: .3rem; margin: .2rem 0 0; }
.pl-from .i { width: 14px; height: 14px; color: #D9A400; }

/* ===== v3.11 · Kanban ===== */
.kb { display: grid; grid-template-columns: repeat(3, minmax(250px, 1fr)); gap: 1rem; align-items: start; overflow-x: auto; padding-bottom: .5rem; }
.kb-col { display: flex; flex-direction: column; background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; min-height: 320px; }
.kb-col header { display: flex; align-items: center; gap: .5rem; padding: .8rem .9rem .5rem; }
.kb-col header b { font-size: .92rem; }
.kb-dot { width: 10px; height: 10px; border-radius: 50%; background: #9AA1AC; }
.kb-doing .kb-dot { background: #F59E42; } .kb-done .kb-dot { background: #46C37B; }
.kb-count { margin-left: auto; min-width: 1.6rem; padding: .05rem .45rem; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); font-size: .75rem; font-weight: 700; text-align: center; color: var(--text-2); }
.kb-list { display: flex; flex-direction: column; gap: .55rem; padding: .35rem .6rem .6rem; min-height: 80px; flex: 1; border-radius: 10px; transition: background .12s; }
.kb-list.over { background: color-mix(in srgb, var(--brand) 6%, transparent); outline: 2px dashed color-mix(in srgb, var(--brand) 40%, transparent); outline-offset: -4px; }
.kb-card { position: relative; display: grid; gap: .35rem; padding: .7rem .8rem .65rem 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: 11px;
  box-shadow: 0 1px 2px rgba(0,0,0,.05); cursor: grab; transition: box-shadow .12s, transform .12s, border-color .12s; }
.kb-card::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 4px; border-radius: 0 4px 4px 0; background: var(--zc); }
.kb-card:hover { box-shadow: 0 6px 18px rgba(0,0,0,.08); border-color: color-mix(in srgb, var(--zc) 45%, var(--line)); transform: translateY(-1px); }
.kb-card:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.kb-card.dragging { opacity: .45; transform: rotate(1.5deg); }
.kb-t { font-size: .9rem; line-height: 1.3; }
.kb-card.done .kb-t { color: var(--text-2); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--text-2) 50%, transparent); }
.kb-n { margin: 0; font-size: .8rem; color: var(--text-2); line-height: 1.35; }
.kb-meta { display: flex; align-items: center; gap: .4rem; }
.kb-sp { flex: 1; }
.kb-date { display: inline-flex; align-items: center; gap: .25rem; font-size: .74rem; font-weight: 600; color: var(--text-2); padding: .1rem .45rem; border-radius: 6px; background: var(--surface-2); }
.kb-date .i { width: 12px; height: 12px; }
.kb-date.late { color: #D93D3A; background: color-mix(in srgb, #F0605D 12%, var(--surface)); }
.kb-ch .i { width: 14px; height: 14px; color: #D9A400; }
.kb-empty { margin: .3rem; padding: .9rem .6rem; text-align: center; font-size: .8rem; color: var(--text-2); border: 1px dashed var(--line); border-radius: 10px; }
.kb-add { padding: 0 .6rem .7rem; }
.kb-add input { width: 100%; border: 1px dashed transparent; background: transparent; padding: .5rem .6rem; border-radius: 9px; font: inherit; font-size: .85rem; color: var(--text); }
.kb-add input:hover { border-color: var(--line); background: var(--surface); }
.kb-add input:focus { border: 1px solid var(--brand); background: var(--surface); outline: none; }
@media (max-width: 860px) { .kb { grid-template-columns: repeat(3, 82vw); scroll-snap-type: x mandatory; } .kb-col { scroll-snap-align: start; } }

/* ===== v3.11 · Gantt ===== */
.gt { display: grid; grid-template-columns: 270px 1fr; padding: 0; overflow: hidden; }
.gt-left { border-right: 1px solid var(--line); background: var(--surface); z-index: 1; }
.gt-lh { height: 58px; display: flex; align-items: flex-end; padding: 0 .9rem .55rem; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--text-2); border-bottom: 1px solid var(--line); }
.gt-lr { height: 44px; display: flex; align-items: center; gap: .5rem; padding: 0 .8rem; border-bottom: 1px solid var(--line); cursor: pointer; font-size: .86rem; font-weight: 600; min-width: 0; }
.gt-lr:hover { background: var(--surface-2); }
.gt-lr.done .gt-name { color: var(--text-2); text-decoration: line-through; }
.gt-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gt-st { width: 9px; height: 9px; border-radius: 50%; flex: none; background: #9AA1AC; }
.gt-doing { background: #F59E42; } .gt-done { background: #46C37B; }
.gt-right { overflow-x: auto; position: relative; }
.gt-scroll { position: relative; }
.gt-months { position: relative; height: 26px; border-bottom: 1px solid var(--line); }
.gt-months span { position: absolute; top: 0; height: 26px; padding: 5px 8px 0; font-size: .74rem; font-weight: 800; text-transform: capitalize; color: var(--text); border-left: 1px solid var(--line); white-space: nowrap; overflow: hidden; }
.gt-days { position: relative; height: 32px; border-bottom: 1px solid var(--line); }
.gt-days span { position: absolute; top: 0; width: 34px; height: 32px; display: grid; place-items: center; align-content: center; font-size: .76rem; font-weight: 700; color: var(--text); line-height: 1; }
.gt-days span small { font-size: .6rem; color: var(--text-2); font-weight: 600; margin-bottom: 2px; }
.gt-days span.we { color: var(--text-2); }
.gt-days span.today { color: #fff; }
.gt-days span.today::before { content: ""; position: absolute; inset: 3px 4px; border-radius: 8px; background: var(--brand); z-index: -1; }
.gt-days span { z-index: 0; }
.gt-body { position: relative; background-image: linear-gradient(to right, var(--line) 1px, transparent 1px); background-size: 34px 100%; }
.gt-we { position: absolute; top: 0; bottom: 0; background: color-mix(in srgb, var(--text-2) 7%, transparent); }
.gt-today { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--brand); z-index: 2; box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 15%, transparent); }
.gt-row { position: absolute; left: 0; right: 0; height: 44px; border-bottom: 1px solid var(--line); }
.gt-row:hover { background: color-mix(in srgb, var(--text) 3%, transparent); }
.gt-hint { position: absolute; left: 12px; top: 13px; font-size: .76rem; color: var(--text-2); font-style: italic; pointer-events: none; }
.gt-row:has(.gt-hint) { cursor: copy; }
.gt-bar { position: absolute; top: 8px; height: 28px; display: flex; align-items: center; gap: .3rem; padding: 0 .55rem; border-radius: 8px; z-index: 3;
  background: var(--zc); color: #fff; font-size: .78rem; font-weight: 700; cursor: grab; user-select: none; touch-action: none; overflow: hidden;
  box-shadow: 0 2px 6px color-mix(in srgb, var(--zc) 45%, transparent); transition: box-shadow .12s; }
.gt-bar span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-shadow: 0 1px 1px rgba(0,0,0,.25); }
.gt-bar .i { width: 13px; height: 13px; flex: none; }
.gt-bar:hover { box-shadow: 0 4px 14px color-mix(in srgb, var(--zc) 60%, transparent); }
.gt-bar.drag { cursor: grabbing; opacity: .9; box-shadow: 0 8px 22px rgba(0,0,0,.25); }
.gt-bar.done { background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--zc) 55%, #8C959F), color-mix(in srgb, var(--zc) 55%, #8C959F) 6px, color-mix(in srgb, var(--zc) 40%, #8C959F) 6px, color-mix(in srgb, var(--zc) 40%, #8C959F) 12px); box-shadow: none; }
.gt-bar.late { outline: 2px solid #F0605D; outline-offset: 1px; }
.gt-rs { position: absolute; right: 0; top: 0; bottom: 0; width: 9px; cursor: ew-resize; background: linear-gradient(to right, transparent, rgba(255,255,255,.35)); }
.zn-yellow.gt-bar, .zn-yellow.ag-pill { color: #3B3000; }
.zn-yellow.gt-bar span { text-shadow: none; }
@media (max-width: 760px) { .gt { grid-template-columns: 150px 1fr; } }

/* ===== v3.11 · Agenda ===== */
.ag-nav b { min-width: 9.5rem; text-align: center; font-size: 1rem; }
.ag-filters { display: flex; flex-wrap: wrap; gap: .4rem; margin: -.3rem 0 .9rem; }
.ag-f { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .75rem; border-radius: 99px; border: 1px solid var(--line); background: var(--surface);
  font: inherit; font-size: .82rem; font-weight: 600; color: var(--text-2); cursor: pointer; }
.ag-f .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--zc); }
.ag-f.on { color: var(--text); border-color: color-mix(in srgb, var(--text) 25%, var(--line)); }
.ag-f:not(.on) .dot { background: transparent; box-shadow: inset 0 0 0 2px var(--zc); }
.ag { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 1rem; align-items: start; }
@media (max-width: 1000px) { .ag { grid-template-columns: 1fr; } }
.ag-cal { padding: .4rem; overflow: hidden; }
.ag-wd { display: grid; grid-template-columns: repeat(7, 1fr); }
.ag-wd span { padding: .5rem .6rem; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--text-2); }
.ag-grid { display: grid; grid-template-columns: repeat(7, 1fr); grid-auto-rows: minmax(108px, auto); gap: 3px; }
.ag-day { display: flex; flex-direction: column; gap: 3px; min-width: 0; padding: .35rem .35rem .45rem; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); cursor: pointer; transition: border-color .12s, background .12s; }
.ag-day:hover { border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); }
.ag-day:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
.ag-day.we { background: color-mix(in srgb, var(--surface-2) 70%, var(--surface)); }
.ag-day.out { opacity: .5; }
.ag-day.sel { border-color: var(--brand); box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand) 18%, transparent); }
.ag-day.over { background: var(--brand-soft); border-color: var(--brand); border-style: dashed; }
.ag-dh { display: flex; align-items: center; justify-content: space-between; }
.ag-n { display: grid; place-items: center; min-width: 26px; height: 26px; padding: 0 .3rem; border-radius: 99px; font-size: .84rem; font-weight: 700; }
.ag-day.today .ag-n { background: var(--brand); color: var(--brand-ink); }
.ag-plus { display: grid; place-items: center; width: 22px; height: 22px; border: 0; border-radius: 6px; background: transparent; color: var(--text-2); cursor: pointer; opacity: 0; transition: opacity .1s; padding: 0; }
.ag-plus .i { width: 14px; height: 14px; }
.ag-day:hover .ag-plus, .ag-day:focus-within .ag-plus { opacity: 1; }
.ag-plus:hover { background: var(--surface-2); color: var(--text); }
.ag-pill { display: flex; align-items: center; gap: .25rem; width: 100%; min-width: 0; padding: .18rem .45rem; border: 0; border-radius: 6px; cursor: pointer; text-align: left;
  font: inherit; font-size: .74rem; font-weight: 650; background: color-mix(in srgb, var(--zc) 18%, var(--surface)); color: color-mix(in srgb, var(--zc) 60%, var(--text));
  box-shadow: inset 3px 0 0 var(--zc); }
.ag-pill span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ag-pill time { font-weight: 800; font-variant-numeric: tabular-nums; flex: none; }
.ag-pill .i { width: 11px; height: 11px; flex: none; }
.ag-pill:hover { background: color-mix(in srgb, var(--zc) 28%, var(--surface)); }
.ag-pill.cont { box-shadow: none; border-top-left-radius: 0; border-bottom-left-radius: 0; margin-left: -.35rem; width: calc(100% + .35rem); }
.ag-pill.more { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.ag-pill.done span { text-decoration: line-through; opacity: .7; }
.ag-pill.k-examen { background: color-mix(in srgb, #F0605D 22%, var(--surface)); color: #C62F2C; }
.ag-more { border: 0; background: none; padding: 0 .3rem; font: inherit; font-size: .72rem; font-weight: 700; color: var(--text-2); cursor: pointer; text-align: left; }
.ag-more:hover { color: var(--brand); }
.ag-side h2 { font-size: 1rem; margin: 0 0 .6rem; }
.ag-h { font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-2); margin: .9rem 0 .35rem; }
.ag-h:first-of-type { margin-top: .2rem; }
.ag-sel { display: flex; align-items: center; gap: .4rem; margin-bottom: .6rem; }
.ag-sel b { flex: 1; font-size: .95rem; }
.ag-row { display: flex; align-items: center; gap: .55rem; padding: .45rem .55rem; border-radius: 9px; margin-bottom: .3rem; background: var(--surface-2);
  box-shadow: inset 3px 0 0 var(--zc); color: var(--text); text-decoration: none; }
.ag-row:hover { background: color-mix(in srgb, var(--zc) 12%, var(--surface-2)); text-decoration: none; }
.ag-row input { flex: none; width: 16px; height: 16px; accent-color: var(--zc); }
.ag-rt { display: grid; min-width: 0; flex: 1; border: 0; background: none; padding: 0; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.ag-rt b { font-size: .86rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ag-rt small { color: var(--text-2); font-size: .74rem; }
.ag-row.done b { text-decoration: line-through; color: var(--text-2); }
.ag-k { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; background: color-mix(in srgb, var(--zc) 20%, var(--surface)); color: var(--zc); flex: none; font-style: normal; }
.ag-k .i { width: 13px; height: 13px; }
.ag-mine { font-style: normal; font-size: .66rem; font-weight: 800; text-transform: uppercase; color: var(--brand); margin-left: .2rem; }
.ag-empty { text-align: center; padding: 1.4rem .5rem; color: var(--text-2); }
.ag-empty .i { width: 30px; height: 30px; opacity: .5; }
.ag-empty p { margin: .4rem 0 0; }
@media (max-width: 640px) { .ag-grid { grid-auto-rows: minmax(64px, auto); } .ag-pill span, .ag-pill time { display: none; } .ag-pill { height: 7px; padding: 0; } .ag-plus { display: none; } }
.grp-st { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--text-2); opacity: .55; }
.grp-st.st-activo { background: var(--ok, #2da44e); opacity: 1; box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok, #2da44e) 20%, transparent); }
.grp-st.st-en-cola, .grp-st.st-desplegando { background: #F59E42; opacity: 1; }
.grp-st.st-error, .grp-st.st-caido { background: #F0605D; opacity: 1; }
/* v3.11: con «Agenda» el menú del alumno tiene 6 entradas; se recogen antes los textos secundarios para que nada se monte */
@media (max-width: 1480px) { .top .hide-sm { display: none; } }
/* el menú mide SU hueco (la cabecera tiene ancho máximo): si no caben los textos, solo iconos (con su título al pasar) */
.top .topnav { container-type: inline-size; container-name: topnav; overflow: hidden; }
@container topnav (max-width: 860px) { .topnav-item span { display: none; } .topnav-item { padding: .5rem .6rem; } }
/* el aviso de «Novedades» va sobre el icono, sin ocupar sitio ni invadir lo de al lado */
.topnav-item { position: relative; }
.topnav-item .new-dot { position: absolute; margin: 0; width: 8px; height: 8px; box-shadow: 0 0 0 2px var(--surface); }
.topnav-item .new-dot { top: .32rem; left: 1.55rem; }
.topnav-item.on .new-dot { box-shadow: 0 0 0 2px var(--brand-soft); }
.gt-months span { overflow: visible; }
.gt-months span b { position: sticky; left: 8px; display: inline-block; font-weight: 800; }

/* ===== v3.12 · Fechas de los laboratorios ===== */
.lab-dates .field > span { display: inline-flex; align-items: center; gap: .35rem; }
.lab-dates .field > span .i { width: 15px; height: 15px; }
.lab-when { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin: .3rem 0 0; color: var(--text-2); }
.lab-when .i { width: 14px; height: 14px; }
.lb-soon { background: color-mix(in srgb, #46C37B 13%, var(--surface)); color: #23955A; border-color: color-mix(in srgb, #46C37B 40%, var(--line)); }
.lb-due { background: color-mix(in srgb, #F59E42 13%, var(--surface)); color: #C46A12; border-color: color-mix(in srgb, #F59E42 40%, var(--line)); }
.lb-closed { background: var(--surface-2); color: var(--text-2); }
.lab-card.lab-locked { opacity: .78; }
.lab-card.lab-locked .ic { filter: grayscale(.6); }
.top .inner { max-width: 1440px; }

/* ===== v3.13 · Subir ISO desde el PC ===== */
.iso-side { display: grid; gap: 1rem; align-content: start; min-width: 0; }
.iso-drop { display: grid; justify-items: center; gap: .25rem; padding: 1.3rem 1rem; text-align: center; cursor: pointer;
  border: 2px dashed var(--line); border-radius: var(--radius); background: var(--surface-2); transition: border-color .12s, background .12s; }
.iso-drop:hover, .iso-drop:focus-visible, .iso-drop.over { border-color: var(--brand); background: var(--brand-soft); outline: none; }
.iso-drop.busy { opacity: .55; pointer-events: none; }
.iso-drop-ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--surface); color: var(--brand); margin-bottom: .2rem; }
.iso-drop-ic .i { width: 24px; height: 24px; }
.iso-sha { margin-top: .7rem; }
.iso-sha summary { cursor: pointer; font-size: .86rem; color: var(--text-2); }
.iso-sha input { width: 100%; margin-top: .5rem; font-size: .8rem; }
.iso-upjob { margin-top: .7rem; border-bottom: 0; }
.iso-upjob .progress i { transition: width .25s; }
.iso-upjob.error small { color: var(--err, #c0392b); }
.iso-upjob.ok small { color: var(--ok, #2da44e); font-weight: 600; }
.grid-2 > .grid-span { grid-column: 1 / -1; margin-top: -.3rem; }

/* ===== v3.14 · Tráfico en vivo por los cables ===== */
#ws-map .pkt { pointer-events: none; }
#ws-map .pkt-ab { fill: #4FD1E0; filter: drop-shadow(0 0 4px rgba(79, 209, 224, .9)); }
#ws-map .pkt-ba { fill: #F7B35B; filter: drop-shadow(0 0 4px rgba(247, 179, 91, .9)); }
#ws-map .lk-rate { pointer-events: none; }
#ws-map .lk-rate rect { fill: rgba(20, 22, 26, .88); stroke: #3C4048; }
#ws-map .lk-rate text { fill: #E6EDF3; font-size: 10.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ws-btn-live.on { background: #2FA4B9; color: #fff; box-shadow: 0 0 0 3px rgba(47, 164, 185, .25); }

/* ===== v3.15 · Más libertad en el mapa: texto libre y asas en las cuatro esquinas ===== */
#ws-map .zn-tbox { fill: transparent; stroke: transparent; stroke-width: 1.2; stroke-dasharray: 5 4; cursor: move; }
#ws-map .zn-text:hover .zn-tbox, #ws-map .zn-text.sel .zn-tbox { stroke: color-mix(in srgb, var(--zc) 70%, #fff); fill: rgba(255,255,255,.03); }
#ws-map .zn-ttext { fill: color-mix(in srgb, var(--zc) 35%, #fff); font-weight: 700; cursor: move; paint-order: stroke; stroke: rgba(20,22,26,.75); stroke-width: 3px; }
#ws-map .zn-ttext.empty { fill: #8B9099; font-style: italic; font-weight: 500; }
#ws-map .zn-rs-nw, #ws-map .zn-rs-se { cursor: nwse-resize; }
#ws-map .zn-rs-ne, #ws-map .zn-rs-sw { cursor: nesw-resize; }
.btn-xls .i { width: 18px; height: 18px; }
.ws-btn.ws-btn-label span { white-space: nowrap; }

/* ===== v3.16 · Mi cuaderno ===== */
.nb { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 1rem; align-items: start; }
@media (max-width: 900px) { .nb { grid-template-columns: 1fr; } }
.nb-side { display: grid; gap: .5rem; position: sticky; top: 1rem; }
.nb-filters { display: grid; gap: 2px; }
.nb-f { display: flex; align-items: center; gap: .55rem; width: 100%; padding: .45rem .6rem; border: 0; border-radius: 9px; background: transparent;
  color: var(--text-2); font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer; text-align: left; }
.nb-f .i { width: 16px; height: 16px; flex: none; }
.nb-f span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nb-f b { font-size: .75rem; color: var(--text-2); background: var(--surface-2); border-radius: 99px; padding: .05rem .45rem; }
.nb-f:hover { background: var(--surface-2); color: var(--text); }
.nb-f.on { background: var(--brand-soft); color: var(--brand); }
.nb-h { font-size: .7rem; text-transform: uppercase; letter-spacing: .07em; color: var(--text-2); margin: .7rem .2rem .2rem; }
.nb-tags { display: flex; flex-wrap: wrap; gap: .3rem; }
.nb-tag { display: inline-flex; align-items: center; gap: .25rem; padding: .2rem .55rem; border-radius: 99px; border: 1px solid var(--line); background: var(--surface);
  font: inherit; font-size: .78rem; font-weight: 600; color: var(--text-2); cursor: pointer; }
.nb-tag .i { width: 11px; height: 11px; }
.nb-tag small { opacity: .7; }
.nb-tag.on { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.nb-quota { margin-top: .6rem; display: grid; gap: .25rem; }
.nb-grid { columns: 3 260px; column-gap: 1rem; }
.nb-card { break-inside: avoid; display: grid; gap: .45rem; margin: 0 0 1rem; padding: .85rem .95rem .75rem; border-radius: 14px; cursor: pointer;
  background: color-mix(in srgb, var(--zc) 9%, var(--surface)); border: 1px solid color-mix(in srgb, var(--zc) 30%, var(--line));
  box-shadow: 0 1px 2px rgba(0,0,0,.05); transition: transform .12s, box-shadow .12s, border-color .12s; }
.nb-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.1); border-color: color-mix(in srgb, var(--zc) 55%, var(--line)); }
.nb-card:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.nb-card-top { display: flex; align-items: flex-start; gap: .4rem; }
.nb-card-top b { font-size: .98rem; line-height: 1.3; overflow-wrap: anywhere; }
.nb-pin .i { width: 15px; height: 15px; color: #D9A400; fill: #F2CC3D; }
.nb-card p { margin: 0; font-size: .85rem; color: var(--text-2); line-height: 1.45; overflow-wrap: anywhere; }
.nb-lab-chip { justify-self: start; display: inline-flex; align-items: center; gap: .25rem; font-size: .72rem; font-weight: 700; color: var(--text-2);
  background: var(--surface); border: 1px solid var(--line); border-radius: 99px; padding: .1rem .5rem; }
.nb-lab-chip .i { width: 11px; height: 11px; }
.nb-thumbs { display: flex; gap: .3rem; align-items: center; }
.nb-thumbs img { width: 64px; height: 48px; object-fit: cover; border-radius: 7px; border: 1px solid var(--line); background: var(--surface-2); }
.nb-thumbs span { font-size: .78rem; font-weight: 700; color: var(--text-2); }
.nb-card-foot { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem; }
.nb-card-foot small { margin-left: auto; font-size: .72rem; }
.nb-ct { font-size: .7rem; font-weight: 700; padding: .08rem .45rem; border-radius: 99px; background: color-mix(in srgb, var(--zc) 22%, var(--surface));
  color: color-mix(in srgb, var(--zc) 60%, var(--text)); }
.nb-empty { column-span: all; display: grid; justify-items: center; gap: .3rem; padding: 3rem 1rem; text-align: center; color: var(--text-2); }
.nb-empty .i { width: 40px; height: 40px; opacity: .5; }
.nb-empty p { margin: 0; max-width: 46ch; }
/* editor lateral */
.nb-ed-wrap { position: fixed; inset: 0; z-index: 60; background: rgba(10,12,16,.45); backdrop-filter: blur(2px); display: flex; justify-content: flex-end; }
.nb-ed-wrap[hidden] { display: none; }
.nb-ed { width: min(640px, 100%); height: 100%; overflow: auto; border-radius: 0; display: flex; flex-direction: column; gap: .7rem; padding: 1rem 1.2rem;
  box-shadow: -20px 0 50px rgba(0,0,0,.25); animation: nbin .18s ease-out; }
@keyframes nbin { from { transform: translateX(30px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .nb-ed { animation: none; } }
.nb-ed-head { display: flex; align-items: center; gap: .4rem; }
.nb-sw { display: flex; gap: .3rem; flex: 1; flex-wrap: wrap; }
.nb-sw .pl-swc i { width: 22px; height: 22px; }
.nb-sw .pl-swc.on i { border-color: var(--text); }
.nb-sw .pl-swc { border: 0; background: none; padding: 0; }
[data-nb="pin"].on .i { color: #D9A400; fill: #F2CC3D; }
.nb-title { border: 0; border-bottom: 2px solid var(--line); background: transparent; font: inherit; font-size: 1.35rem; font-weight: 800; padding: .3rem 0; color: var(--text); }
.nb-title:focus { outline: none; border-color: var(--brand); }
.nb-meta { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.nb-lab { display: inline-flex; align-items: center; gap: .35rem; }
.nb-lab .i { width: 15px; height: 15px; color: var(--text-2); }
.nb-lab select { width: auto; max-width: 260px; font-size: .85rem; padding: .3rem .5rem; }
.nb-tagbox { display: flex; flex-wrap: wrap; gap: .3rem; align-items: center; flex: 1; min-width: 200px; }
.nb-tg { display: inline-flex; align-items: center; gap: .2rem; padding: .15rem .3rem .15rem .55rem; border-radius: 99px; background: var(--brand-soft); color: var(--brand);
  font-size: .78rem; font-weight: 700; }
.nb-tg button { border: 0; background: none; color: inherit; cursor: pointer; font-size: 1rem; line-height: 1; padding: 0 .2rem; }
.nb-tagbox input { border: 1px dashed var(--line); border-radius: 99px; padding: .25rem .6rem; font: inherit; font-size: .8rem; width: 120px; background: transparent; }
.nb-tabs { display: flex; align-items: center; gap: .3rem; }
.nb-tabs button { border: 0; background: var(--surface-2); color: var(--text-2); font: inherit; font-size: .82rem; font-weight: 700; padding: .3rem .7rem; border-radius: 8px; cursor: pointer; }
.nb-tabs button.on { background: var(--brand); color: var(--brand-ink); }
.nb-tabs .hint { margin-left: auto; font-size: .72rem; }
.nb-body { min-height: 260px; flex: 1; resize: vertical; font: inherit; font-size: .95rem; line-height: 1.55; padding: .7rem .8rem; border-radius: 10px; }
.nb-preview { min-height: 260px; padding: .4rem .2rem; }
.nb-imgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .5rem; }
.nb-imgs:empty { display: none; }
.nb-img { position: relative; margin: 0; }
.nb-img img { width: 100%; height: 110px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); display: block; }
.nb-img button { position: absolute; top: 6px; right: 6px; display: grid; place-items: center; width: 28px; height: 28px; border: 0; border-radius: 8px;
  background: rgba(20,22,26,.75); color: #fff; cursor: pointer; opacity: 0; transition: opacity .12s; }
.nb-img:hover button, .nb-img button:focus-visible { opacity: 1; }
.nb-img button .i { width: 14px; height: 14px; }
.nb-drop { display: grid; grid-template-columns: auto 1fr; column-gap: .6rem; align-items: center; padding: .7rem .9rem; border: 2px dashed var(--line); border-radius: 12px;
  cursor: pointer; color: var(--text-2); font-size: .86rem; }
.nb-drop small { grid-column: 2; font-size: .74rem; }
.nb-drop .i { grid-row: span 2; width: 22px; height: 22px; color: var(--brand); }
.nb-drop:hover, .nb-drop.over { border-color: var(--brand); background: var(--brand-soft); }
.nb-ed-foot { display: flex; align-items: center; gap: .5rem; padding-top: .5rem; border-top: 1px solid var(--line); }
.nb-ed-foot small { flex: 1; }
.lb-notes { background: color-mix(in srgb, #F2CC3D 16%, var(--surface)); color: #A07800; border-color: color-mix(in srgb, #F2CC3D 45%, var(--line)); }

/* ===== v3.16 · Chat del grupo ===== */
.chat { display: flex; flex-direction: column; height: calc(100vh - 290px); min-height: 420px; padding: 0; overflow: hidden; }
.chat-log { flex: 1; overflow-y: auto; padding: 1rem 1.1rem; display: flex; flex-direction: column; gap: .15rem; background:
  radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--text) 6%, transparent) 1px, transparent 0) 0 0 / 22px 22px; }
.chat-empty { margin: auto; display: grid; justify-items: center; gap: .3rem; text-align: center; color: var(--text-2); }
.chat-empty .i { width: 36px; height: 36px; opacity: .5; }
.chat-empty p { margin: 0; max-width: 40ch; }
.chat-day { display: flex; justify-content: center; margin: .8rem 0 .4rem; }
.chat-day span { font-size: .72rem; font-weight: 700; color: var(--text-2); background: var(--surface-2); padding: .15rem .7rem; border-radius: 99px; text-transform: capitalize; }
.chat-msg { display: flex; align-items: flex-end; gap: .45rem; max-width: 78%; margin-top: .45rem; }
.chat-msg.cont { margin-top: .12rem; padding-left: 2.1rem; }
.chat-msg.mine { margin-left: auto; flex-direction: row-reverse; padding-left: 0; }
.chat-bubble { position: relative; padding: .45rem .7rem .3rem; border-radius: 14px 14px 14px 4px; background: var(--surface); border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(0,0,0,.05); min-width: 60px; }
.chat-msg.mine .chat-bubble { border-radius: 14px 14px 4px 14px; background: color-mix(in srgb, var(--brand) 14%, var(--surface));
  border-color: color-mix(in srgb, var(--brand) 30%, var(--line)); }
.chat-who { display: block; font-size: .74rem; margin-bottom: .1rem; color: var(--brand); }
.chat-text { font-size: .92rem; line-height: 1.45; overflow-wrap: anywhere; white-space: normal; }
.chat-text a { color: inherit; text-decoration: underline; }
.chat-img img { display: block; max-width: min(320px, 60vw); max-height: 260px; border-radius: 10px; margin: .15rem 0 .2rem; }
.chat-meta { display: flex; justify-content: flex-end; align-items: center; gap: .3rem; font-size: .66rem; color: var(--text-2); margin-top: .1rem; }
.chat-del { border: 0; background: none; color: var(--text-2); cursor: pointer; padding: 0; opacity: 0; display: grid; }
.chat-msg:hover .chat-del, .chat-del:focus-visible { opacity: 1; }
.chat-del .i { width: 12px; height: 12px; }
.chat-form { display: flex; align-items: flex-end; gap: .5rem; padding: .7rem .8rem; border-top: 1px solid var(--line); background: var(--surface); }
.chat-form textarea { flex: 1; resize: none; min-height: 40px; max-height: 160px; font: inherit; padding: .55rem .75rem; border-radius: 12px; }
.chat-att { cursor: pointer; }
.chat-hint { margin: 0; padding: 0 .9rem .6rem; background: var(--surface); }
.pl-unread { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: .3rem; border-radius: 99px; background: var(--brand); color: #fff; font-size: .68rem; font-weight: 800; }
.nt-book { display: inline-flex; align-items: center; gap: .35rem; font-size: .8rem; font-weight: 700; color: #7FD3E0; text-decoration: none; }
.nt-book:hover { text-decoration: underline; }
.nt-book .i { width: 14px; height: 14px; }
.nb-side > * { min-width: 0; }
.nb-side .searchbox { width: 100%; box-sizing: border-box; }
.nb-side .searchbox input { width: 100%; min-width: 0; box-sizing: border-box; }
.nb-f, .nb-quota .progress { box-sizing: border-box; max-width: 100%; }
.nb-side { grid-template-columns: minmax(0, 1fr); }
.nb-filters { grid-template-columns: minmax(0, 1fr); }

/* ===== v3.17 · Atajos de teclado: ayuda («?»), buscador rápido (Ctrl+K) y pistas en los botones ===== */
.ak-modal { position: fixed; inset: 0; z-index: 1200; display: grid; place-items: start center; padding: 9vh 16px 16px;
  background: color-mix(in srgb, #0b1220 48%, transparent); backdrop-filter: blur(3px); animation: ak-in .14s ease-out; }
.ak-modal[hidden] { display: none; }
@keyframes ak-in { from { opacity: 0; } }
.ak-box { width: min(760px, 100%); max-height: 80vh; display: flex; flex-direction: column; background: var(--surface); color: var(--text);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 24px 60px -18px rgba(0,0,0,.45); overflow: hidden; animation: ak-up .18s ease-out; }
@keyframes ak-up { from { transform: translateY(10px) scale(.98); opacity: 0; } }
.ak-box > header { display: flex; align-items: center; gap: .8rem; padding: 1rem 1.2rem; border-bottom: 1px solid var(--line);
  background: linear-gradient(120deg, var(--brand-soft), var(--surface) 70%); }
.ak-box > header > div { flex: 1; min-width: 0; }
.ak-box h2 { margin: 0; font-size: 1.15rem; }
.ak-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--brand); color: #fff; flex: none; }
.ak-ic .i { width: 22px; height: 22px; }
.ak-body { overflow: auto; padding: .4rem 1.2rem 1.2rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0 1.6rem; }
.ak-body h3 { margin: 1rem 0 .4rem; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--brand); }
.ak-body dl { margin: 0; }
.ak-body dl > div { display: grid; grid-template-columns: minmax(96px, auto) 1fr; gap: .8rem; align-items: center; padding: .38rem 0; border-bottom: 1px dashed var(--line); }
.ak-body dt { white-space: nowrap; }
.ak-body dd { margin: 0; color: var(--text-2); font-size: .9rem; }
.ak-then { font-size: .72rem; color: var(--muted); margin: 0 .15rem; }
.ak-box kbd, .ak-chip kbd { min-width: 1.5em; text-align: center; }
/* buscador rápido */
.ak-pal .ak-box { width: min(620px, 100%); }
.ak-q { display: flex; align-items: center; gap: .6rem; padding: .85rem 1.1rem; border-bottom: 1px solid var(--line); }
.ak-q .i { width: 20px; height: 20px; color: var(--muted); flex: none; }
.ak-q input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); font: inherit; font-size: 1.05rem; padding: 0; box-shadow: none; }
.ak-res { list-style: none; margin: 0; padding: .35rem; overflow: auto; max-height: 52vh; }
.ak-res li { display: flex; align-items: center; gap: .75rem; padding: .55rem .7rem; border-radius: 9px; cursor: pointer; }
.ak-res li > span { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ak-res li b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ak-res li small { color: var(--muted); font-size: .78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ak-res li em { font-style: normal; font-size: .72rem; color: var(--muted); border: 1px solid var(--line); border-radius: 99px; padding: .05rem .5rem; }
.ak-res li .i { width: 18px; height: 18px; color: var(--text-2); flex: none; }
.ak-res li.on { background: var(--brand-soft); }
.ak-res li.on .i, .ak-res li.on b { color: var(--brand); }
.ak-res .ak-none { color: var(--muted); cursor: default; justify-content: center; padding: 1.4rem; }
.ak-pal footer { display: flex; gap: 1.2rem; padding: .55rem 1.1rem; border-top: 1px solid var(--line); background: var(--surface-2); }
/* pista de secuencia («g» y ahora…) */
.ak-chip { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 1300; padding: .45rem .8rem; border-radius: 99px;
  background: var(--text); color: var(--surface); box-shadow: var(--shadow-lg); font-size: .85rem; }
.ak-chip[hidden] { display: none; }
.ak-chip .ak-then { color: inherit; opacity: .7; }
.ak-chip kbd { background: transparent; color: inherit; border-color: color-mix(in srgb, currentColor 40%, transparent); }
/* la tecla de cada botón, discreta */
[data-key-hint]::after { content: attr(data-key-hint); margin-left: .45rem; font: 600 .68rem var(--mono, monospace); padding: 0 .32rem; line-height: 1.35;
  border: 1px solid color-mix(in srgb, currentColor 35%, transparent); border-radius: 4px; opacity: .75; }
@media (hover: none) { [data-key-hint]::after { display: none; } }
/* selección con el teclado */
.nb-card:focus-visible, .kb-card:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.chat-msg:focus { outline: none; }
.chat-msg:focus .chat-bubble { box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 55%, transparent); }
.me-actions .me-act[data-atajos] { cursor: pointer; }
.ak-q input[type="search"] { border: 0 !important; background: transparent !important; box-shadow: none !important; padding: 0 !important; height: auto; }
.ak-q input[type="search"]::-webkit-search-cancel-button { display: none; }

/* ===== v3.18 · Tickets, avisos y atajos del mapa ===== */
.bld-canvas .nd.picked .nd-box { stroke: var(--brand); stroke-width: 3; stroke-dasharray: 6 4; }
.danger-soft { color: var(--err, #C8102E); }
.danger-soft:hover { background: color-mix(in srgb, var(--err, #C8102E) 10%, var(--surface)); }
.feed li { position: relative; }
.feed li .av-del { margin-left: auto; opacity: 0; transition: opacity .15s; }
.feed li:hover .av-del, .feed li:focus-within .av-del { opacity: 1; }
@media (hover: none) { .feed li .av-del { opacity: .7; } }
/* barra lateral: los cuatro botones caben en una fila */
.me-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .2rem; }
.me-actions .me-act { flex-direction: row; justify-content: flex-start; gap: .45rem; padding: .4rem .55rem; width: 100%; }
.me-act span { font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
/* laboratorios del resto del profesorado */
.labs-others { margin-top: 2rem; }
.labs-others .card-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .4rem 1rem; margin-bottom: .8rem; }
.labs-others .card-head h2 { display: flex; align-items: center; gap: .45rem; margin: 0; }
.lab-other { cursor: default; }
.lab-other .foot { align-items: center; }
.lab-other form { margin: 0; }
/* tickets */
.tk-link { color: inherit; text-decoration: none; min-width: 0; }
.tk-link:hover b { color: var(--brand); }
.tk-meta { display: flex; align-items: center; gap: .3rem; margin-top: .25rem; font-size: .75rem; color: var(--muted); }
.tk-meta .i { width: 13px; height: 13px; }
.tk-new { display: inline-block; font-size: .68rem; font-weight: 700; color: #fff; background: var(--brand); border-radius: 99px; padding: .05rem .5rem; margin-left: .3rem; }
.tk-steps { display: flex; gap: .5rem; flex-wrap: wrap; margin: -.3rem 0 1.2rem; }
.tk-step { display: inline-flex; align-items: center; gap: .45rem; padding: .35rem .8rem .35rem .4rem; border-radius: 99px; background: var(--surface-2); color: var(--muted); font-size: .85rem; }
.tk-step i { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--surface); font-style: normal; font-weight: 700; font-size: .75rem; }
.tk-step.done { color: var(--ok); } .tk-step.done i { background: var(--ok); color: #fff; }
.tk-step.on { color: var(--brand); background: var(--brand-soft); font-weight: 600; } .tk-step.on i { background: var(--brand); color: #fff; }
.tk-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 1.2rem; align-items: start; }
@media (max-width: 900px) { .tk-layout { grid-template-columns: minmax(0, 1fr); } }
.tk-side h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 1rem 0 .3rem; }
.tk-chat { margin-top: 1.2rem; }
.tk-layout .tk-chat { margin-top: 0; }
.tk-chat .card-head h2 { display: flex; align-items: center; gap: .45rem; }
.tk-log { list-style: none; margin: .6rem 0 0; padding: .8rem; display: flex; flex-direction: column; gap: .7rem; max-height: 520px; overflow: auto;
  background: var(--surface-2); border-radius: 12px; }
.tk-msg { display: flex; gap: .55rem; align-items: flex-end; max-width: 82%; }
.tk-msg.mine { align-self: flex-end; flex-direction: row-reverse; }
.tk-msg .avatar { flex: none; }
.tk-av-staff { background: var(--brand); color: #fff; } .tk-av-staff .i { width: 15px; height: 15px; }
.tk-bubble { background: var(--surface); border: 1px solid var(--line); border-radius: 14px 14px 14px 4px; padding: .55rem .8rem; min-width: 0; }
.tk-msg.mine .tk-bubble { background: var(--brand-soft); border-color: color-mix(in srgb, var(--brand) 30%, transparent); border-radius: 14px 14px 4px 14px; }
.tk-msg.staff:not(.mine) .tk-bubble { border-left: 3px solid var(--brand); }
.tk-first .tk-bubble { border-style: dashed; }
.tk-bubble p { margin: .2rem 0; overflow-wrap: anywhere; }
.tk-who { font-size: .82rem; display: inline-flex; align-items: center; gap: .35rem; }
.tk-role { font-size: .65rem; padding: 0 .4rem; }
.tk-msg.mine time { display: block; text-align: right; }
.tk-empty { text-align: center; padding: 1rem; }
.tk-form { margin-top: .8rem; display: grid; gap: .5rem; }
.tk-form textarea { width: 100%; resize: vertical; min-height: 76px; }
.tk-actions { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

/* ===== v3.19 · En vivo: aviso de red de gestión e IP en los extremos del cable; notas del laboratorio ===== */
.ws-live-hint { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 6; width: min(640px, calc(100% - 28px));
  display: flex; gap: .7rem; align-items: flex-start; padding: .75rem .9rem; border-radius: 12px; font-size: .86rem; line-height: 1.45;
  background: color-mix(in srgb, var(--surface) 94%, transparent); border: 1px solid color-mix(in srgb, #E8A33A 55%, var(--line));
  box-shadow: var(--shadow-lg); backdrop-filter: blur(4px); }
.ws-live-hint[hidden] { display: none; }
.ws-absent { bottom: auto; top: 14px; border-color: color-mix(in srgb, var(--brand, #E2001A) 45%, var(--line)); align-items: center; }
.ws-absent > .i { color: var(--brand, #E2001A); }
.ws-live-hint > .i { width: 20px; height: 20px; color: #E8A33A; flex: none; margin-top: .1rem; }
.ws-live-hint > div { flex: 1; min-width: 0; }
.ws-live-hint code { font-size: .8rem; padding: .05rem .3rem; border-radius: 4px; background: var(--surface-2); white-space: nowrap; }
.lk-ep.has-ip rect { stroke: #2FB7C7; }
.lk-ep.has-ip text { fill: var(--text); }
.nt-title { width: 100%; box-sizing: border-box; margin-bottom: .4rem; font-weight: 600; }
.nt-bar { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin: .45rem 0 .2rem; }
.nt-bar .ws-hint { margin: 0; }
.nt-list-h { display: flex; align-items: baseline; gap: .35rem; margin: 1rem 0 .45rem; padding-top: .8rem; border-top: 1px solid var(--line); font-size: .9rem; }
.nt-list { display: grid; gap: .45rem; max-height: 46vh; overflow: auto; padding-right: 2px; }
.nt-item { border: 1px solid var(--line); border-left: 4px solid var(--zc, #E8B931); border-radius: 10px; background: var(--surface-2); }
.nt-item.zn-blue { --zc: #3B82F6; } .nt-item.zn-green { --zc: #22A06B; } .nt-item.zn-red { --zc: #E5484D; } .nt-item.zn-purple { --zc: #8E4EC6; }
.nt-item.zn-orange { --zc: #F18F01; } .nt-item.zn-teal { --zc: #12A594; } .nt-item.zn-gray { --zc: #8A949E; }
.nt-item summary { display: flex; align-items: center; gap: .5rem; padding: .5rem .65rem; cursor: pointer; list-style: none; }
.nt-item summary::-webkit-details-marker { display: none; }
.nt-it-t { flex: 1; min-width: 0; font-weight: 600; font-size: .86rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: flex; align-items: center; gap: .3rem; }
.nt-it-t .i { width: 13px; height: 13px; color: #E8B931; flex: none; }
.nt-it-b { margin: 0; padding: 0 .65rem .5rem; white-space: pre-wrap; overflow-wrap: anywhere; font: .82rem/1.5 var(--mono, monospace); max-height: 240px; overflow: auto; }
.nt-it-f { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .6rem; padding: .4rem .65rem .55rem; border-top: 1px dashed var(--line); }
.nt-it-f .spacer { flex: 1; }
.nt-it-f .i { width: 13px; height: 13px; vertical-align: -2px; margin-right: .2rem; }
.nt-it-f a, .nt-it-f .link { display: inline-flex; align-items: center; }
.nt-ct { font-size: .7rem; padding: .05rem .45rem; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); }
.nt-none { text-align: center; padding: .6rem; }
.ws-panel .ws-notes { min-height: 150px; }
.lk-ep text.lk-ip { font-size: 10.5px; fill: #7FD3E0; font-family: var(--mono, monospace); }
.mn-keys { display: grid; gap: .45rem; margin: 1rem 0; }
.mn-keys > div { display: grid; grid-template-columns: 150px 1fr; gap: .8rem; align-items: baseline; padding: .6rem .8rem; border-radius: 10px; background: var(--surface-2); }
.mn-keys b { font-size: .88rem; }
.mn-keys span { font-size: .88rem; line-height: 1.9; color: var(--text-2); }
@media (max-width: 640px) { .mn-keys > div { grid-template-columns: 1fr; gap: .2rem; } }

/* ===== v3.22 · Cursos: nivel, documentación extra y solucionario ===== */
.lvl { --lc: #8A949E; display: inline-flex; align-items: center; gap: .35rem; font-size: .74rem; font-weight: 700; padding: .12rem .55rem; border-radius: 99px;
  color: var(--lc); background: color-mix(in srgb, var(--lc) 13%, transparent); border: 1px solid color-mix(in srgb, var(--lc) 40%, transparent); vertical-align: middle; }
.lvl i, .lvl-filter a i, .lvl-pick i { width: 8px; height: 8px; border-radius: 50%; background: var(--lc); display: inline-block; flex: none; }
.lvl-principiante { --lc: #22A06B; } .lvl-medio { --lc: #3B82F6; } .lvl-avanzado { --lc: #E8850C; } .lvl-extremo { --lc: #D21F3C; }
.lvl-extremo.lvl { box-shadow: 0 0 0 2px color-mix(in srgb, #D21F3C 18%, transparent); }
.row-chips { display: inline-flex; gap: .35rem; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.lvl-filter { display: flex; flex-wrap: wrap; gap: .45rem; }
.lvl-filter a { --lc: var(--text-2); display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .8rem; border-radius: 99px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text); text-decoration: none; font-size: .86rem; }
.lvl-filter a b { font-size: .75rem; color: var(--muted); }
.lvl-filter a:hover { border-color: var(--lc); }
.lvl-filter a.on { background: color-mix(in srgb, var(--lc) 14%, var(--surface)); border-color: var(--lc); font-weight: 650; }
.lvl-filter a:first-child i { display: none; }
.lvl-pick { border: 0; padding: 0; margin: .6rem 0 1rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .5rem; }
.lvl-pick legend { font-size: .85rem; color: var(--text-2); margin-bottom: .35rem; padding: 0; }
.lvl-pick label { --lc: var(--muted); position: relative; cursor: pointer; }
.lvl-pick input { position: absolute; opacity: 0; }
.lvl-pick span { display: flex; align-items: center; flex-wrap: wrap; gap: .1rem .45rem; padding: .6rem .75rem; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); font-weight: 650; height: 100%; }
.lvl-pick small { flex-basis: 100%; font-weight: 400; color: var(--muted); font-size: .75rem; }
.lvl-pick input:checked + span { border-color: var(--lc); background: color-mix(in srgb, var(--lc) 12%, var(--surface)); box-shadow: 0 0 0 1px var(--lc); }
.lvl-pick input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.lvl-card h2 { margin-top: 0; }
/* documentación */
.cdocs { display: grid; gap: .5rem; margin: .4rem 0; }
.cdoc { display: flex; align-items: flex-start; gap: .4rem; }
.cdoc > details, .cdoc > .cdoc-row, .cdoc > a.cdoc-row { flex: 1; min-width: 0; }
.cdoc-row, .cdoc summary { display: flex; align-items: center; gap: .7rem; padding: .6rem .8rem; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2);
  color: var(--text); text-decoration: none; }
.cdoc summary { cursor: pointer; list-style: none; } .cdoc summary::-webkit-details-marker { display: none; }
.cdoc summary small { margin-left: auto; }
a.cdoc-row:hover, .cdoc summary:hover { border-color: var(--brand); }
.cdoc-row .grow { display: flex; flex-direction: column; min-width: 0; }
.cdoc-row .grow small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cdoc-ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--brand-soft); color: var(--brand); flex: none; }
.cdoc-enlace .cdoc-ic { background: color-mix(in srgb, #3B82F6 14%, var(--surface)); color: #3B82F6; }
.cdoc-archivo .cdoc-ic { background: color-mix(in srgb, #22A06B 14%, var(--surface)); color: #22A06B; }
.cdoc-body { padding: .6rem .9rem 0; }
.cdoc-tools { display: flex; gap: .1rem; padding-top: .3rem; }
.cdoc-tools form { margin: 0; }
.cdoc-subir .i { transform: rotate(90deg); } .cdoc-bajar .i { transform: rotate(90deg); }
.cdoc-add { margin-top: .9rem; } .cdoc-add > summary { cursor: pointer; font-weight: 650; color: var(--brand); }
.cdoc-tabs { display: grid; grid-template-columns: repeat(3, auto) 1fr; gap: .4rem; margin-top: .7rem; align-items: center; }
.cdoc-tabs > input { position: absolute; opacity: 0; pointer-events: none; }
.cdoc-tabs > label { display: inline-flex; align-items: center; gap: .35rem; padding: .4rem .8rem; border-radius: 99px; border: 1px solid var(--line); cursor: pointer; font-size: .86rem; }
.cdoc-tabs > input:checked + label { background: var(--brand); border-color: var(--brand); color: #fff; }
.cdoc-tabs > input:focus-visible + label { outline: 2px solid var(--brand); outline-offset: 2px; }
.cdoc-form { grid-column: 1 / -1; display: none; padding-top: .4rem; }
#cdk-a:checked ~ .cdoc-form[data-k="a"], #cdk-e:checked ~ .cdoc-form[data-k="e"], #cdk-f:checked ~ .cdoc-form[data-k="f"] { display: block; }
.cdocs-wrap .cdocs { margin-top: .6rem; }
/* solucionario */
.sol-locked { display: flex; align-items: center; gap: .55rem; margin: .7rem 0; padding: .6rem .8rem; border-radius: 10px; background: var(--surface-2); color: var(--text-2); font-size: .9rem; }
.sol-locked .i { color: var(--muted); }
.sol-open > summary .chip { margin-left: .4rem; }
.sol-when { margin-top: .4rem; }
:is(.lvl, .lvl-filter a, .lvl-pick label).lvl-principiante { --lc: #22A06B; }
:is(.lvl, .lvl-filter a, .lvl-pick label).lvl-medio { --lc: #3B82F6; }
:is(.lvl, .lvl-filter a, .lvl-pick label).lvl-avanzado { --lc: #E8850C; }
:is(.lvl, .lvl-filter a, .lvl-pick label).lvl-extremo { --lc: #D21F3C; }


/* ===== v3.23 · Terminal mejorada: estado de conexión, reconexión, pegar con clic derecho ===== */
.ws-term { display: flex; flex-direction: column; padding: 0; background: #0B0F14; }
.ws-term .thost { flex: 1; min-height: 0; padding: .45rem .55rem .2rem .7rem; }
.ws-term .tbar { display: flex; align-items: center; gap: .5rem; padding: .22rem .7rem; font: 600 .72rem var(--mono, monospace); color: #8B98A8;
  background: #0F141B; border-bottom: 1px solid #1C2430; }
.ws-term .tbar i { width: 7px; height: 7px; border-radius: 50%; background: #6E7681; flex: none; }
.ws-term .tbar.t-ok i { background: #5BD38A; box-shadow: 0 0 0 3px rgba(91,211,138,.18); }
.ws-term .tbar.t-wait i { background: #F2C94C; animation: tpulse 1s ease-in-out infinite; }
.ws-term .tbar.t-off i { background: #FF6B6B; }
.ws-term .tbar.t-ok { color: #6E7E90; }
.ws-term .tbar button { margin-left: auto; border: 1px solid #2B3644; background: #16202B; color: #CFE3F5; border-radius: 6px; padding: .05rem .55rem; font: inherit; cursor: pointer; }
.ws-term .tbar button:hover { border-color: #4FD1E0; }
@keyframes tpulse { 50% { opacity: .35; } }
.ws-tab .tdot { width: 7px; height: 7px; border-radius: 50%; background: #6E7681; flex: none; }
.ws-tab.t-ok .tdot { background: #5BD38A; } .ws-tab.t-wait .tdot { background: #F2C94C; animation: tpulse 1s ease-in-out infinite; } .ws-tab.t-off .tdot { background: #FF6B6B; }
.ws-term .ttip { position: absolute; right: 14px; top: 34px; padding: .2rem .6rem; border-radius: 6px; background: rgba(79,209,224,.16); color: #8BE9F4;
  font: 600 .74rem var(--mono, monospace); border: 1px solid rgba(79,209,224,.35); pointer-events: none; animation: tfade 1.2s ease forwards; }
@keyframes tfade { 0% { opacity: 0; transform: translateY(-4px); } 15%, 75% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.ws-term .xterm-viewport::-webkit-scrollbar { width: 10px; }
.ws-term .xterm-viewport::-webkit-scrollbar-thumb { background: #243041; border-radius: 6px; border: 2px solid #0B0F14; }

/* filtro de laboratorios: de curso / individuales / en grupo */
.tipo-filter a .i { width: 14px; height: 14px; }
.tipo-filter a.t-curso { --lc: #8E4EC6; } .tipo-filter a.t-individual { --lc: #3B82F6; } .tipo-filter a.t-grupo { --lc: #22A06B; }
.row-head:has(.tipo-filter) { display: flex; align-items: center; justify-content: space-between; gap: .8rem; flex-wrap: wrap; }
.section-sm { margin: 0 0 1rem; }


/* ===== v3.24 · Aviso de caducidad de la sesión y recordatorio del OTP ===== */
.sess-warn { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 1400; width: min(620px, calc(100% - 32px));
  display: flex; align-items: center; gap: .8rem; padding: .8rem 1rem; border-radius: 14px; background: var(--surface); color: var(--text);
  border: 1px solid color-mix(in srgb, #E8A33A 55%, var(--line)); box-shadow: 0 18px 48px -14px rgba(0,0,0,.55); animation: ak-up .2s ease-out; }
.sess-warn[hidden] { display: none; }
.sess-warn > div, .otp-remind > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sess-warn small, .otp-remind small { color: var(--text-2); font-size: .82rem; }
.sess-warn [data-t] { font-variant-numeric: tabular-nums; color: #B86E00; }
.sess-warn.urgent { border-color: var(--err, #C8102E); } .sess-warn.urgent [data-t] { color: var(--err, #C8102E); }
.sess-ic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: color-mix(in srgb, #E8A33A 16%, var(--surface)); color: #B86E00; flex: none; }
.sess-ic .i { width: 20px; height: 20px; }
.otp-remind { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; margin: 0 0 1rem; padding: .75rem 1rem; border-radius: 12px;
  background: color-mix(in srgb, var(--brand) 7%, var(--surface)); border: 1px solid color-mix(in srgb, var(--brand) 30%, var(--line)); }
.otp-remind .sess-ic { background: var(--brand-soft); color: var(--brand); }
@media (max-width: 640px) { .sess-warn { flex-wrap: wrap; } }

/* ===== v3.25 · Monitorización con Wazuh ===== */
.wz-card .card-head { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.wz-card .card-head h2 { display: flex; align-items: center; gap: .45rem; margin: 0; }
.wz-labs { list-style: none; margin: .5rem 0 0; padding: 0; display: grid; gap: .45rem; }
.wz-labs li { display: flex; justify-content: space-between; gap: .6rem; padding: .5rem .7rem; border-radius: 9px; background: var(--surface-2); }

/* ===== v3.26 · Switch visual: barra con puertos numerados ===== */
.nd-sw .sw-box { fill: #1F2A37; stroke: #3B4A5C; stroke-width: 1.5; }
.nd-sw.sel .sw-box, .nd-sw.picked .sw-box { stroke: var(--ws-teal, #2FB7C7); stroke-width: 2.5; }
.nd-sw .sw-name { font: 700 12px var(--mono, monospace); fill: #E6EDF3; text-anchor: start; }
.nd-sw .nd-ic { color: #7FD3E0; }
.sw-port rect { fill: #0E141B; stroke: #4A5868; stroke-width: 1; }
.sw-port text { font: 700 8.5px var(--mono, monospace); fill: #8090A2; pointer-events: none; }
.sw-port.on rect { fill: #163B2A; stroke: #5BD38A; }
.sw-port.on text { fill: #9EF0BE; }
.sw-port.down rect { fill: #3A1A1D; stroke: #FF6B6B; }
.sw-port.down text { fill: #FFB1B1; }
.sw-port:hover rect { stroke: #4FD1E0; stroke-width: 1.6; }

/* v3.26 · acceso remoto por WireGuard */
.wg-steps { margin: .4rem 0 1rem; padding-left: 1.2rem; display: grid; gap: .35rem; font-size: .9rem; }
.wg-qr { margin: .9rem 0 .4rem; }
.wg-qr img { display: block; margin-top: .6rem; border-radius: 10px; background: #fff; padding: 6px; max-width: 100%; height: auto; }
.wg-nodes li { align-items: center; flex-wrap: wrap; }
.wg-nodes code { word-break: break-all; }
.wg-list { margin-top: .8rem; }
#wireguard .row form { display: inline-flex; }

/* v3.27 · ficha flotante del equipo: CPU, RAM e interfaces */
.ws-tip { max-width: 380px; }
.tip-res { margin-top: .5rem; padding-top: .5rem; border-top: 1px solid #3C4048; }
.tip-bar { display: grid; grid-template-columns: 34px 90px 1fr; align-items: center; gap: .5rem; margin-bottom: .25rem; font-size: .76rem; }
.tip-bar em { font-style: normal; font-family: var(--mono); font-size: .72rem; }
.tip-bar progress { appearance: none; width: 90px; height: 7px; border: 0; border-radius: 4px; overflow: hidden; background: #3C4048; }
.tip-bar progress::-webkit-progress-bar { background: #3C4048; }
.tip-bar progress::-webkit-progress-value { background: #37B26C; }
.tip-bar progress::-moz-progress-bar { background: #37B26C; }
.tip-bar progress.hot::-webkit-progress-value { background: #E2001A; }
.tip-bar progress.hot::-moz-progress-bar { background: #E2001A; }
.tip-meta { margin: .2rem 0; color: var(--ws-muted); font-size: .73rem; }
.tip-if { width: 100%; border-collapse: collapse; margin-top: .35rem; font-family: var(--mono); font-size: .72rem; }
.tip-if td { padding: .22rem .5rem .22rem 0; vertical-align: top; border-top: 1px solid #33373E; white-space: nowrap; }
.tip-if td:nth-child(2) { white-space: normal; word-break: break-all; }
.tip-if small { display: block; color: var(--ws-muted); }
.tip-if i { display: inline-block; width: 7px; height: 7px; margin-right: .35rem; border-radius: 50%; background: #37B26C; }
.tip-if i.dn { background: #E2001A; }

/* v3.28 · bloqueo de máquinas */
.nl-modes { display: grid; gap: .5rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin: .6rem 0; }
.nl-map { display: block; width: 100%; height: 400px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); touch-action: none; cursor: crosshair; user-select: none; }
.nl-link { stroke: #7A8591; stroke-width: 3; opacity: .6; }
.nl-node { cursor: pointer; outline: none; }
.nl-box { fill: #26292F; stroke: #4A505A; stroke-width: 2; }
.nl-node:focus-visible .nl-box { stroke: #fff; stroke-width: 4; }
.nl-node.sel .nl-box { stroke: #E2001A; stroke-width: 4; }
.nl-ic { color: #4FC3D9; }
.nl-name { fill: #E6E8EC; font: 600 13px var(--font); }
.nl-halo, .nd-halo { fill: #8B9099; fill-opacity: .22; stroke: #8B9099; stroke-width: 2; stroke-dasharray: 8 6; }
.nl-lasso { fill: #8B9099; fill-opacity: .25; stroke: #8B9099; stroke-width: 3; stroke-dasharray: 10 7; pointer-events: none; }
.nl-badge, .nd-lockb circle { fill: #5B6670; stroke: #fff; stroke-width: 1.5; }
.nl-lock, .nd-lockb use { color: #fff; }
.nl-cap { fill: #8B9099; font: 600 12px var(--font); }
.lk-ssh .nl-ic, .lk-total .nl-ic { opacity: .45; }
.nl-info { margin: .5rem 0; min-height: 1.3em; }
#nodelock.busy { opacity: .6; pointer-events: none; }
.nd-locked .nd-ic, .nd-locked .nd-os { opacity: .45; }
.nl-ic, .nl-lock, .nd-lockb use { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nl-map { height: 520px; }
.nl-name { font-size: 17px; }
.nl-cap { font-size: 16px; fill: #AEB4BD; }

/* v3.29 · zonas de bloqueo */
.lz-body { fill: #8B9099; fill-opacity: .16; stroke: #8B9099; stroke-width: 2; stroke-dasharray: 9 7; pointer-events: none; }
.lz-ahora .lz-body { fill-opacity: .3; stroke-dasharray: none; }
.lz-libre .lz-body { fill-opacity: .06; }
.lz-edge { fill: none; stroke: transparent; stroke-width: 16; pointer-events: stroke; cursor: move; }
.lz-tab { cursor: pointer; outline: none; }
.lz-tab rect { fill: #3C4048; stroke: #8B9099; stroke-width: 1.2; }
.lz-tab:focus-visible rect, .lz-tab:hover rect { stroke: #fff; }
.lz-tab text { fill: #E6E8EC; font: 600 13px var(--font); }
.lz-tab use { color: #fff; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lz-rs { fill: #8B9099; stroke: #fff; stroke-width: 1.5; cursor: nwse-resize; }
.lz-draft { fill: #8B9099; fill-opacity: .25; stroke: #8B9099; stroke-width: 2.5; stroke-dasharray: 10 7; pointer-events: none; }
svg.lz-drawing, svg.lz-drawing * { cursor: crosshair !important; }
.nl-map { cursor: default; } .nl-node { cursor: default; }
.lz-dlg { width: min(520px, 94vw); padding: 1.2rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--text); }
.lz-dlg::backdrop { background: rgba(0,0,0,.5); }
.lz-dlg fieldset { border: 0; padding: 0; display: grid; gap: .4rem; }
.lz-dlg .check small { display: block; color: var(--text-2); }
.lz-dates { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.lz-dates [hidden] { display: none; }
.lz-err { color: #E2001A; font-weight: 600; }

/* v3.30 · selector de idioma */
.lang-sw { display: inline-flex; align-items: center; gap: 2px; padding: 3px 4px 3px 8px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2); }
.lang-sw .i { width: 15px; height: 15px; margin-right: 4px; color: var(--text-2); }
.lang-sw button { min-width: 32px; padding: 4px 8px; border: 0; border-radius: 999px; background: none; color: var(--text-2); font: 600 .74rem var(--font); letter-spacing: .03em; cursor: pointer; transition: background .15s, color .15s; }
.lang-sw button:hover { color: var(--text); background: var(--surface); }
.lang-sw button.on { background: var(--brand); color: var(--brand-ink); }
.lang-sw button:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.sidebar .me .lang-sw { display: flex; width: 100%; margin: .5rem 0 .3rem; } .sidebar .me .lang-sw button { flex: 1; }
.auth-main { position: relative; } .auth-lang { position: absolute; top: 18px; right: 22px; }
@media (max-width: 760px) {
  .top .inner { flex-wrap: wrap; row-gap: .3rem; }
  .top .topnav { order: 5; flex: 1 1 100%; min-width: 0; overflow-x: auto; }
  .top .lang-sw .i { display: none; } .top .lang-sw { padding: 2px; } .top .lang-sw button { min-width: 26px; padding: 4px 5px; }
  .top .userchip { display: none; }
  .otp-remind { flex-wrap: wrap; }
  .otp-remind > div { flex: 1 1 200px; }
}

/* v3.31 · actividades con nota */
.gr-conf, .gr-general { display: flex; flex-wrap: wrap; gap: .9rem; align-items: end; } .gr-conf .field { min-width: 180px; margin: 0; } .gr-conf + p { margin: .9rem 0 0; } .lab-grade { align-self: flex-start; } .gr-general { align-items: start; } .gr-general .grow { flex: 1 1 260px; }
.gr-table td input { width: 100%; min-width: 70px; padding: .4rem .5rem; } .gr-table td.num { width: 110px; } .gr-table td:last-child { min-width: 180px; }
.ws-grade { display: flex; flex-wrap: wrap; align-items: center; gap: .2rem .6rem; margin: .7rem 0 .2rem; padding: .6rem .8rem; border-radius: 10px; background: #2B2F36; border-left: 4px solid #8B9099; }
.ws-grade span { color: #A7B0BB; font-size: .8rem; } .ws-grade b { font-size: 1.15rem; } .ws-grade small { flex-basis: 100%; color: #D9DCE1; }
.ws-grade.ok { border-left-color: #3FB27F; } .ws-grade.ok b { color: #5AD19B; } .ws-grade.bad { border-left-color: #E2001A; } .ws-grade.bad b { color: #FF8A96; }
.ws-mark { margin: .5rem 0 0; font-size: .84rem; color: #D9DCE1; }

/* v3.34 · desplegables con buscador y profesores del laboratorio */
.dd { position: relative; flex: 1 1 220px; min-width: 0; } .dd-row { align-items: start; }
.dd-sum { display: flex; align-items: center; justify-content: space-between; gap: .6rem; min-height: 40px; padding: .45rem .8rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); cursor: pointer; list-style: none; }
.dd-sum::-webkit-details-marker { display: none; } .dd-sum span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); } .dd.has .dd-sum span { color: var(--text); font-weight: 600; }
.dd-sum .i { width: 16px; height: 16px; transform: rotate(90deg); transition: transform .15s; } .dd[open] .dd-sum .i { transform: rotate(-90deg); } .dd[open] .dd-sum, .dd-sum:focus-visible { border-color: var(--brand); outline: 0; box-shadow: 0 0 0 2px var(--brand-soft); }
.dd-body { position: absolute; z-index: 40; left: 0; right: 0; top: calc(100% + 4px); padding: .5rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: 0 14px 40px rgba(0, 0, 0, .18); }
.dd-body input[type=search] { width: 100%; margin-bottom: .35rem; } .dd-tools { display: flex; gap: .8rem; padding: 0 .3rem .3rem; } .dd-tools button { border: 0; background: none; padding: 0; color: var(--brand); font: 600 .78rem var(--font); cursor: pointer; }
.dd-list { max-height: 260px; overflow: auto; } .dd-opt { display: flex; align-items: center; gap: .6rem; padding: .4rem .45rem; border-radius: 8px; cursor: pointer; } .dd-opt[hidden] { display: none; } .dd-opt:hover { background: var(--surface-2); } .dd-opt input { width: 17px; height: 17px; flex: none; accent-color: var(--brand); } .dd-opt small { display: block; color: var(--text-2); }
.lab-team { display: flex; flex-wrap: wrap; gap: .5rem; } .team-chip { display: inline-flex; align-items: center; gap: .5rem; padding: .35rem .8rem; border: 1px solid var(--line); border-radius: 99px; background: var(--surface-2); } .team-chip small { color: var(--brand); font-weight: 600; } .team-chip form { display: inline-flex; }

/* 3.38 · cable seleccionado y sus IP en el menú */
.lk { cursor: pointer; }
.lk.sel .lk-line { stroke: var(--ws-teal, #2FA4B9); stroke-width: 7; filter: drop-shadow(0 0 6px color-mix(in srgb, var(--ws-teal, #2FA4B9) 60%, transparent)); }
.bld-canvas .lk.picked line:not(.lk-hit) { stroke: var(--brand); stroke-width: 6; }
.ws-menu-info { display: grid; grid-template-columns: auto 1fr; gap: .15rem .8rem; margin: 0 .25rem .35rem; padding: .45rem .6rem; border-radius: 8px; background: color-mix(in srgb, var(--ws-teal, #2FA4B9) 10%, transparent); font-size: .8rem; }
.ws-menu-info dt { color: var(--ws-muted, #8a909a); white-space: nowrap; }
.ws-menu-info dd { margin: 0; font: 600 .8rem/1.4 var(--mono, ui-monospace, monospace); overflow-wrap: anywhere; }
.ak-current { outline: 2px solid color-mix(in srgb, var(--brand) 55%, transparent); outline-offset: -2px; border-radius: 6px; }
tr.ak-current > td { background: color-mix(in srgb, var(--brand) 6%, transparent); }
.nd-net circle { fill: #3B82F6; stroke: #2A2D33; stroke-width: 3; }
.nd-net use { fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
