/* Aspectul lui Cisco Packet Tracer.
   Elevii vin la netlab din Packet Tracer, unde au făcut laboratoarele de la
   curs. Ecranul de aici e așezat ca acolo - meniul și barele sus, banda
   albastră a spațiului logic, pânza albă, ceasul și modurile jos, lista de
   echipamente în stânga-jos și lista de PDU-uri în dreapta-jos - ca mâna să
   găsească fiecare lucru fără să-l caute.

   Culorile sunt măsurate pe Packet Tracer 8, nu ghicite. Pictogramele sunt
   desenate aici, în stilul lor: nu se ia nimic din program. */

/* Inter intră în binar și ține locul fontului de sistem acolo unde nu există:
   pe Windows, unde rulează cele mai multe calculatoare din școli, se folosește
   Segoe UI, adică fontul pe care îl are și Packet Tracer acolo. */
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/inter-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/inter-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/inter-latin-600-normal.woff2") format("woff2");
}

:root {
  --navy: #0d274d;
  --mode-on: #037eaf;
  --logical: #1aa3d9;
  --chrome: #efefef;
  --panel: #f0f0f0;
  --group: #ececec;
  --line: #c9c9c9;
  --line-strong: #8f8f8f;
  --ink: #1b1b1b;
  --muted: #5b6168;
  --link: #000;
  --up: #6cc04a;
  --down: #cf2030;
  --select: #0078d7;
  --select-soft: #cce4f7;
  --ok-text: #2c7a1e;
  --no-text: #b3261e;
  --tile: #5cb8d6;
  --app-bar: #0000ff;

  --font: "Segoe UI", "Open Sans", "Noto Sans", Inter, system-ui, -apple-system, sans-serif;
  --mono: Consolas, "DejaVu Sans Mono", "Liberation Mono", "Courier New", monospace;

  /* Plicurile din modul simulare, câte o culoare pe protocol. */
  --p-arp: #f2ea7e;
  --p-icmp: #d779cf;
  --p-icmp6: #e5a3dc;
  --p-stp: #7fd3c6;
  --p-cdp: #9edb7c;
  --p-dhcp: #d8b276;
  --p-dns: #78aee0;
  --p-ospf: #f3a35b;
  --p-tcp: #93b9ea;
  --p-udp: #bba7e6;
  --p-ip: #d0d0d0;
  --p-eth: #e4e4e4;
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
}

body {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  font: 13px/1.4 var(--font);
  color: var(--ink);
  background: var(--chrome);
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
button:disabled { cursor: default; }

[hidden] { display: none !important; }

:focus-visible { outline: 1px dotted #000; outline-offset: 1px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

kbd {
  font: 11px var(--font);
  color: var(--muted);
}

/* --- butoane --- */

/* Butonul obișnuit, ca în dialogurile Qt din Packet Tracer: gri deschis, cu
   chenar subțire, mai închis la apăsare. */
.btn {
  padding: 3px 14px;
  min-height: 24px;
  background: linear-gradient(#fdfdfd, #ececec);
  border: 1px solid #adadad;
  border-radius: 2px;
}
.btn:hover:not(:disabled) { background: linear-gradient(#f2f8fd, #dcecf9); border-color: #7eb4ea; }
.btn:active:not(:disabled) { background: #cce4f7; border-color: #569de5; }
.btn:disabled { color: #9a9a9a; }
.btn.primary { font-weight: 600; }

/* Butoanele bleumarin din panoul de simulare și din scenariu. */
.btn.navy {
  min-height: 26px;
  padding: 3px 10px;
  background: var(--navy);
  border: 1px solid var(--navy);
  border-radius: 6px;
  color: #fff;
}
.btn.navy:hover { background: #1b3d6e; }
.btn.navy.square {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 30px;
  padding: 0;
}
.btn.navy svg { width: 16px; height: 16px; }

.link-button {
  padding: 0;
  background: none;
  border: 0;
  color: #0645ad;
  text-decoration: underline;
}

/* --- antetul --- */

.app {
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.menubar {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 24px;
  padding: 0 6px;
  background: var(--chrome);
}
.app-icon { width: 16px; height: 16px; margin-right: 6px; }

.menu { position: relative; }
.menu-title {
  height: 22px;
  padding: 0 8px;
  background: none;
  border: 1px solid transparent;
}
.menu-title:hover,
.menu.open .menu-title { background: var(--select-soft); border-color: #99c9ef; }
.menu-title u { text-decoration: underline; }

.menu-list {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 100;
  display: none;
  min-width: 250px;
  padding: 3px 0;
  background: #f9f9f9;
  border: 1px solid #a0a0a0;
  box-shadow: 2px 3px 6px rgba(0, 0, 0, 0.22);
}
.menu.open .menu-list { display: block; }
.menu-list button {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: 4px 18px 4px 28px;
  background: none;
  border: 0;
  text-align: left;
  position: relative;
}
.menu-list button:hover:not(:disabled) { background: var(--select-soft); }
.menu-list button:disabled { color: #a0a0a0; }
.menu-list button:disabled kbd { color: #b8b8b8; }
.menu-list button[aria-checked="true"]::before,
.menu-list button[aria-pressed="true"]::before {
  content: "✓";
  position: absolute;
  left: 9px;
}
.menu-list hr { margin: 3px 0; border: 0; border-top: 1px solid #d6d6d6; }

.toolbar {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 40px;
  padding: 0 6px;
  background: #fff;
}
.toolbar.common {
  height: 38px;
  border-top: 1px solid #e6e6e6;
}
.toolbar .spacer { flex: 1; }
.toolbar .sep {
  width: 1px;
  height: 24px;
  margin: 0 6px;
  background: var(--line);
}

.tool {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  background: none;
  border: 1px solid transparent;
  border-radius: 2px;
  color: #1f1f1f;
}
.tool svg { width: 22px; height: 22px; }
.tool:hover:not(:disabled) { background: #e5f1fb; border-color: #a6cdee; }
.tool[aria-pressed="true"] { border: 2px solid #2f78b7; background: #eef6fd; }
.tool:disabled { color: #b5b5b5; }

/* Banda albastră a spațiului logic. Doar „Logical": vederea fizică nu există
   aici, deci nici fila ei. */
.navbar {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 32px;
  padding: 0 4px;
  background: var(--navy);
  color: #fff;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 26px;
  padding: 0 10px 0 6px;
  border: 1px solid #fff;
  border-radius: 13px;
  font-size: 15px;
}
.pill.on { background: var(--logical); font-weight: 600; }
.pill svg { width: 16px; height: 16px; }
.coords { font-size: 11px; opacity: 0.9; min-width: 120px; }
.navbar .spacer { flex: 1; }
.lab-name {
  overflow: hidden;
  padding-right: 8px;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 13px;
}

/* --- spațiul de lucru --- */

.ws {
  position: relative;
  display: flex;
  min-height: 0;
  background: #fff;
}

.canvas-wrap {
  position: relative;
  flex: 1;
  min-width: 0;
  background: #fff;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}
#canvas {
  display: block;
  width: 100%;
  height: 100%;
  user-select: none;
  touch-action: none;
}
#canvas.picking,
#canvas.picking .node { cursor: crosshair; }

.hint {
  position: absolute;
  top: 45%;
  left: 0;
  right: 0;
  margin: 0;
  text-align: center;
  color: #7a7a7a;
  font-size: 14px;
}

/* Cablurile: negru, doi pixeli. Cross-over-ul e punctat, ca în Packet Tracer. */
.link {
  stroke: var(--link);
  stroke-width: 2;
  pointer-events: none;
}
.link.crossover { stroke-dasharray: 7 5; }
.link.serial { stroke: #c0392b; }
.link-hit {
  stroke: transparent;
  stroke-width: 12;
  cursor: pointer;
}
.link-hit:hover + .link { stroke: var(--select); }

.status { stroke: none; pointer-events: none; }
.status.up { fill: var(--up); }
.status.down { fill: var(--down); }
.status.stp { fill: #f39c12; }

.port-label {
  font: 11px var(--font);
  fill: #000;
  paint-order: stroke;
  stroke: #fff;
  stroke-width: 3px;
  stroke-linejoin: round;
  pointer-events: none;
}

.node { cursor: pointer; }
.node .hit { fill: transparent; }
.node .selection {
  fill: none;
  stroke: transparent;
  stroke-dasharray: 3 2;
}
.node.selected .selection { stroke: #333; }
.node.dragging { cursor: grabbing; opacity: 0.85; }
.node text {
  font: 11px var(--font);
  fill: #000;
  text-anchor: middle;
  paint-order: stroke;
  stroke: #fff;
  stroke-width: 3px;
  stroke-linejoin: round;
}
.node:hover use { filter: brightness(1.08); }

/* Plicurile din modul simulare. */
.packet { pointer-events: none; }
.packet .envelope { stroke: #333; stroke-width: 1; }
.packet .flap { fill: none; stroke: #333; stroke-width: 1; }
.proto-arp .envelope { fill: var(--p-arp); }
.proto-icmp .envelope { fill: var(--p-icmp); }
.proto-icmp6 .envelope { fill: var(--p-icmp6); }
.proto-stp .envelope { fill: var(--p-stp); }
.proto-cdp .envelope { fill: var(--p-cdp); }
.proto-dhcp .envelope { fill: var(--p-dhcp); }
.proto-dns .envelope { fill: var(--p-dns); }
.proto-ospf .envelope { fill: var(--p-ospf); }
.proto-tcp .envelope { fill: var(--p-tcp); }
.proto-udp .envelope { fill: var(--p-udp); }
.proto-ip .envelope { fill: var(--p-ip); }
.proto-eth .envelope { fill: var(--p-eth); }

/* Fișa de sub cursor: text aliniat pe coloane, aldin, monospace, pe alb cu
   chenar negru, ca în Packet Tracer. */
.tooltip {
  position: absolute;
  z-index: 20;
  margin: 0;
  padding: 3px 4px;
  background: #fff;
  color: #000;
  border: 1px solid #000;
  font: bold 11px/1.2 "Courier New", Courier, monospace;
  white-space: pre;
  pointer-events: none;
}

/* Meniul de porturi, la alegerea capetelor unui cablu: pictograma spune
   viteza - portocaliu GigabitEthernet, galben FastEthernet -, iar ce nu se
   poate lega apare stins. */
.context-menu.port-menu button { display: flex; align-items: center; gap: 8px; padding-left: 10px; }
.context-menu.port-menu button:disabled { color: #9a9a9a; cursor: default; background: none; }
.port-icon { display: inline-block; width: 14px; height: 12px; border: 1px solid #555; border-radius: 1px; }
.port-icon.gig { background: #f08a24; }
.port-icon.fast { background: #f4d23c; }
.port-icon.other { background: #555; }

/* Cablul în curs de tragere, de la primul capăt la cursor. */
.rubber { stroke: #000; stroke-width: 2; stroke-dasharray: 4 3; pointer-events: none; }
#canvas.deleting, #canvas.deleting .node, #canvas.deleting .link-hit { cursor: not-allowed; }

/* Redenumirea direct pe pânză. */
.rename-input {
  position: fixed;
  z-index: 250;
  width: 140px;
  height: 24px;
  padding: 2px 6px;
  background: #fff;
  border: 1px solid #7a7a7a;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
  font: 12px var(--font);
}

/* Tabelele lupei și dialogul de confirmare. */
.window.table-window { width: 560px; max-height: 70vh; resize: both; overflow: hidden; }
.inspect-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.inspect-table th { padding: 3px 6px; background: #f3f3f3; border: 1px solid #d6d6d6; font-weight: 400; text-align: left; }
.inspect-table td { padding: 2px 6px; border: 1px solid #e3e3e3; white-space: nowrap; }
.window.modal { width: 320px; z-index: 260 !important; }
.confirm p { margin: 4px 0 14px; }

/* Meniul de pe cablu. */
.context-menu {
  position: fixed;
  z-index: 200;
  min-width: 220px;
  padding: 3px 0;
  background: #f9f9f9;
  border: 1px solid #a0a0a0;
  box-shadow: 2px 3px 6px rgba(0, 0, 0, 0.22);
}
.context-title {
  margin: 0;
  padding: 4px 12px 5px;
  border-bottom: 1px solid #ddd;
  color: var(--muted);
  font-size: 12px;
}
.context-menu button {
  display: block;
  width: 100%;
  padding: 4px 12px 4px 28px;
  background: none;
  border: 0;
  text-align: left;
  position: relative;
}
.context-menu button:hover { background: var(--select-soft); }
.context-menu button[aria-checked="true"]::before { content: "●"; position: absolute; left: 11px; font-size: 9px; top: 7px; }

/* --- panourile andocate --- */

.dock {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: var(--panel);
}
.dock.left { width: 340px; flex: none; }
.dock.right { width: 312px; flex: none; }

.dock-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 22px;
  padding: 0 4px 0 6px;
  background: var(--chrome);
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.dock-close {
  width: 18px;
  height: 18px;
  padding: 0;
  line-height: 14px;
  background: none;
  border: 1px solid transparent;
  font-size: 14px;
}
.dock-close:hover { border-color: #a6a6a6; background: #fff; }

.dock-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 10px 12px;
  background: #fff;
  margin: 4px;
  border: 1px solid var(--line);
}

.brief .where { margin: 0 0 2px; color: var(--muted); font-size: 11.5px; }
.brief h2 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  overflow-wrap: anywhere;
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 600;
}
.brief .body { margin: 0 0 6px; line-height: 1.5; }
.brief .meta { margin: 0 0 4px; color: var(--muted); font-size: 11.5px; }

.pill-difficulty,
.pill.d1, .pill.d2, .pill.d3 {
  height: auto;
  padding: 0 7px;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid;
}
.pill.d1 { color: #2c7a1e; border-color: #8cc57d; background: #eef8eb; }
.pill.d2 { color: #8a5a00; border-color: #e3b866; background: #fdf4e1; }
.pill.d3 { color: #a61f1f; border-color: #e19a9a; background: #fdecec; }

.checks h3 {
  margin: 12px 0 6px;
  padding-top: 8px;
  border-top: 1px solid #e3e3e3;
  font-size: 13px;
  font-weight: 600;
}
.checks .count { color: var(--muted); font-weight: 400; }

.tasks { margin: 0; padding: 0; list-style: none; }
.task { margin: 0 0 10px; }
.task-text { margin: 0 0 3px; font-weight: 600; }
.task.done .task-text { color: var(--ok-text); }

.items { margin: 0; padding: 0 0 0 4px; list-style: none; }
.items li {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 6px;
  align-items: start;
  padding: 1px 0;
}
.items .mark {
  width: 13px;
  height: 13px;
  margin-top: 2px;
  border: 1px solid #9a9a9a;
  border-radius: 2px;
  background: #fff;
}
/* Bifa verde și X-ul roșu din „Check Results". Înainte de verificare, căsuța e
   goală: nu s-a măsurat nimic. */
.items .ok .mark { border-color: #3c8d2b; background: #3c8d2b; position: relative; }
.items .ok .mark::after {
  content: "";
  position: absolute;
  left: 3.5px;
  top: 0.5px;
  width: 3px;
  height: 7px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.items .no .mark { border-color: var(--down); background: var(--down); position: relative; }
.items .no .mark::before,
.items .no .mark::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 2px;
  height: 9px;
  background: #fff;
  transform: rotate(45deg);
}
.items .no .mark::after { transform: rotate(-45deg); }
.items .label { line-height: 1.4; }
.items .why { display: block; color: var(--no-text); font-size: 12px; }
.task-hint {
  margin: 4px 0 0 22px;
  padding: 3px 6px;
  background: #fffbe6;
  border-left: 3px solid #e3c34d;
  font-size: 12px;
}

.upnext {
  margin-top: 12px;
  padding: 8px 10px;
  background: #eef8eb;
  border: 1px solid #8cc57d;
}
.upnext p { margin: 0 0 6px; }
.upnext .congrats { font-weight: 600; color: var(--ok-text); }

.dock-foot {
  padding: 6px 8px 8px;
  border-top: 1px solid var(--line);
}
.completion { display: flex; align-items: baseline; gap: 4px; margin-bottom: 6px; }
.completion b { font-size: 14px; }
.run-summary { margin-left: auto; color: var(--muted); font-size: 12px; }
.dock-foot .btn { width: 100%; }
.dock-foot .fine { margin: 6px 0 0; color: var(--muted); font-size: 11px; line-height: 1.4; }

/* Panoul de simulare. */
.sim-section {
  margin: 4px 4px 0;
  padding: 4px 6px 6px;
  background: var(--panel);
  border: 1px solid var(--line);
}
.sim-section.grow { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.sim-section:last-child { margin-bottom: 4px; }
.section-title { margin: 0 0 4px; font-size: 12px; }

.event-table {
  flex: 1;
  min-height: 120px;
  overflow: auto;
  background: #fff;
  border: 1px solid #b9b9b9;
}
.event-table table,
.pdu-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.event-table th,
.pdu-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 2px 4px;
  background: #f3f3f3;
  border-right: 1px solid #dcdcdc;
  border-bottom: 1px solid #c8c8c8;
  font-weight: 400;
  text-align: left;
  white-space: nowrap;
}
.event-table td { padding: 1px 4px; white-space: nowrap; border-bottom: 1px solid #f0f0f0; }
.event-table tr { cursor: pointer; }
.event-table tr:hover td { background: #eef6fd; }
.event-table tr.selected td { background: var(--select-soft); }
.event-table tr.note td { color: var(--muted); font-style: italic; cursor: default; }
.event-table .vis { width: 22px; }
.event-table tr.selected .vis::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 8px;
  border: 2px solid #333;
  border-radius: 50%;
  background: radial-gradient(#333 30%, transparent 32%);
}
.event-table .type { color: #000; }
.event-table td.type.proto-arp { background: var(--p-arp); }
.event-table td.type.proto-icmp { background: var(--p-icmp); }
.event-table td.type.proto-icmp6 { background: var(--p-icmp6); }
.event-table td.type.proto-stp { background: var(--p-stp); }
.event-table td.type.proto-cdp { background: var(--p-cdp); }
.event-table td.type.proto-dhcp { background: var(--p-dhcp); }
.event-table td.type.proto-dns { background: var(--p-dns); }
.event-table td.type.proto-ospf { background: var(--p-ospf); }
.event-table td.type.proto-tcp { background: var(--p-tcp); }
.event-table td.type.proto-udp { background: var(--p-udp); }
.event-table td.type.proto-ip { background: var(--p-ip); }
.event-table td.type.proto-eth { background: var(--p-eth); }
.event-table .info {
  width: 14px;
  height: 12px;
  padding: 0;
  border: 1px solid #333;
  background: var(--p-eth);
}
.info.proto-arp { background: var(--p-arp); }
.info.proto-icmp { background: var(--p-icmp); }
.info.proto-icmp6 { background: var(--p-icmp6); }
.info.proto-stp { background: var(--p-stp); }
.info.proto-cdp { background: var(--p-cdp); }
.info.proto-dhcp { background: var(--p-dhcp); }
.info.proto-dns { background: var(--p-dns); }
.info.proto-ospf { background: var(--p-ospf); }
.info.proto-tcp { background: var(--p-tcp); }
.info.proto-udp { background: var(--p-udp); }
.info.proto-ip { background: var(--p-ip); }

.sim-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: 6px;
}
.sim-row.two .btn { flex: 1; }
.captured { font-size: 11.5px; text-align: right; line-height: 1.3; }
.captured b { font-weight: 400; }

.play { display: flex; justify-content: center; gap: 4px; margin: 2px 0 6px; }
/* Glisorul vitezei: linie subțire albastră și un buton rotund, ca în Packet
   Tracer - cel implicit din Chrome iese o bandă groasă și închisă. */
.speed {
  width: 100%;
  height: 16px;
  margin: 0;
  background: none;
  -webkit-appearance: none;
  appearance: none;
}
.speed::-webkit-slider-runnable-track { height: 4px; background: #38a1e3; border-radius: 2px; }
.speed::-moz-range-track { height: 4px; background: #38a1e3; border-radius: 2px; }
.speed::-webkit-slider-thumb {
  width: 14px;
  height: 14px;
  margin-top: -5px;
  background: #fff;
  border: 1px solid #6b6b6b;
  border-radius: 50%;
  -webkit-appearance: none;
}
.speed::-moz-range-thumb { width: 14px; height: 14px; background: #fff; border: 1px solid #6b6b6b; border-radius: 50%; }

/* Înălțime fixă, ca în Packet Tracer: lista protocoalelor crește și scade în
   timpul simulării, iar fără asta butoanele de redare fugeau de sub cursor. */
.visible {
  height: 50px;
  margin: 0 0 4px;
  overflow: auto;
  font-size: 12px;
  line-height: 1.35;
}
.filters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px 8px;
  margin: 2px 0 4px;
  padding: 4px 6px;
  background: #fff;
  border: 1px solid #c8c8c8;
  font-size: 12px;
}
.filter { display: flex; align-items: center; gap: 4px; }

/* --- josul ferestrei --- */

.bottom { background: #fff; }

.timebar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 4px 0 12px;
  background: var(--navy);
  color: #fff;
}
.time { font-size: 12px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.time b { font-weight: 400; }
.timebar .group { display: inline-flex; align-items: center; gap: 3px; }
.timebar .label { font-size: 12px; margin-right: 2px; }
.timebar .spacer { flex: 1; }

.round,
.square-outline {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 26px;
  padding: 0;
  background: var(--navy);
  border: 1px solid #fff;
  border-radius: 13px;
  color: #fff;
}
.square-outline { width: 32px; border-radius: 6px; }
.round svg, .square-outline svg { width: 15px; height: 15px; }
.round:hover:not(:disabled), .square-outline:hover { background: #1b3d6e; }
.round:disabled { opacity: 0.45; }

.mode {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 27px;
  padding: 0 10px 0 4px;
  background: var(--navy);
  border: 1px solid #fff;
  border-radius: 14px;
  color: #fff;
  font-size: 15px;
}
.mode svg { width: 20px; height: 20px; }
.mode.on { background: var(--mode-on); font-weight: 600; }
.mode.small { font-size: 12px; height: 25px; }
.mode.small.on { background: var(--mode-on); font-weight: 400; }
.mode:disabled { opacity: 0.5; }

.tray {
  display: grid;
  grid-template-columns: minmax(380px, 46%) 1fr;
  height: 124px;
  background: #fff;
}

.devices {
  display: grid;
  grid-template-columns: auto 1fr;
  min-width: 0;
  border-right: 4px solid var(--chrome);
}
/* Categoriile, pe două rânduri ca în Packet Tracer: sus felul (Network
   Devices, End Devices, Connections), jos subcategoria. */
.categories {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 6px;
  padding: 6px;
  border-right: 1px solid var(--line);
}
.cat-row { display: flex; gap: 3px; }
.cat-row.sub { padding-top: 6px; border-top: 1px solid #e3e3e3; }
.cat {
  display: grid;
  place-items: center;
  width: 40px;
  height: 34px;
  padding: 2px;
  background: none;
  border: 1px solid transparent;
}
.cat svg { width: 32px; height: 24px; }
.cat:hover { background: #e5f1fb; border-color: #a6cdee; }
.cat.on { background: #cde8f6; border: 2px solid #2f78b7; }

.device-list-wrap {
  display: grid;
  grid-template-rows: 1fr auto;
  min-width: 0;
}
.device-list {
  display: flex;
  align-content: flex-start;
  gap: 4px;
  overflow-x: auto;
  padding: 6px;
}
.device-tile {
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 1px;
  width: 64px;
  height: 64px;
  padding: 3px 2px;
  background: linear-gradient(#fbfbfb, #e9e9e9);
  border: 1px solid #b4b4b4;
  border-radius: 6px;
}
.device-tile:hover { background: #e5f1fb; border-color: #7eb4ea; }
.device-tile:disabled { opacity: 0.45; cursor: default; }
.device-tile.cable svg { width: 34px; height: 34px; }
/* Dala aleasă poartă semnul de anulare, ca în Packet Tracer: încă un clic pe
   ea renunță. */
.device-tile.armed { position: relative; background: #fff; border-color: #c62828; }
.device-tile.armed::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 6px;
  width: 26px;
  height: 26px;
  margin-left: -15px;
  border: 4px solid #d32f2f;
  border-radius: 50%;
  background: linear-gradient(45deg, transparent 44%, #d32f2f 44%, #d32f2f 56%, transparent 56%) rgba(255, 255, 255, 0.85);
}
.device-tile svg { width: 40px; height: 30px; }
.device-tile span {
  max-width: 100%;
  overflow: hidden;
  font-size: 10px;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.caption {
  margin: 0 6px 4px;
  padding: 2px 6px;
  overflow: hidden;
  border: 1px solid #333;
  font-size: 12px;
  text-align: center;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.pdus {
  min-width: 0;
  overflow: auto;
  border-left: 1px solid var(--line);
}
.pdu-table td { padding: 1px 4px; border-bottom: 1px solid #f0f0f0; white-space: nowrap; }
.pdu-table tr.selected td { background: var(--select-soft); }
.pdu-table .ok { color: var(--ok-text); }
.pdu-table .no { color: var(--no-text); }
.pdu-table .fire {
  width: 22px;
  height: 14px;
  padding: 0;
  background: linear-gradient(#fdfdfd, #e2e2e2);
  border: 1px solid #9a9a9a;
  border-radius: 2px;
  position: relative;
}
.pdu-table .fire::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 2px;
  border-left: 7px solid #2d9a41;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
}
.swatch { display: inline-block; width: 22px; height: 11px; border: 1px solid #555; vertical-align: middle; }

/* --- ferestrele --- */

/* Ferestrele echipamentelor, ca dialogurile din Packet Tracer: bară de titlu
   deschisă, file sub ea, conținutul pe gri. */
.window {
  position: fixed;
  display: flex;
  flex-direction: column;
  min-width: 320px;
  min-height: 200px;
  background: var(--panel);
  border: 1px solid #7a7a7a;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.32);
}
.window.device {
  width: 700px;
  height: 600px;
  max-width: calc(100vw - 16px);
  max-height: calc(100vh - 16px);
  resize: both;
  overflow: hidden;
}
.window.message { width: 460px; max-width: calc(100vw - 16px); }
.window.pdu-window {
  width: 700px;
  max-width: calc(100vw - 16px);
  height: 600px;
  max-height: calc(100vh - 16px);
  resize: both;
  overflow: hidden;
}

.window-bar {
  display: flex;
  align-items: center;
  height: 30px;
  padding: 0 0 0 10px;
  background: #fff;
  border-bottom: 1px solid #dadada;
  cursor: move;
  user-select: none;
}
.window-bar .title { flex: 1; font-size: 12.5px; }
.window-bar .close {
  width: 44px;
  height: 29px;
  padding: 0;
  background: none;
  border: 0;
  font-size: 18px;
  line-height: 1;
}
.window-bar .close:hover { background: #e81123; color: #fff; }

.tabs {
  display: flex;
  gap: 0;
  padding: 6px 10px 0;
  background: var(--panel);
}
.tab {
  padding: 4px 12px 5px;
  background: none;
  border: 0;
  border-bottom: 3px solid transparent;
}
.tab:hover { background: #e5e5e5; }
.tab[aria-selected="true"] { border-bottom-color: var(--navy); }

.tab-pages {
  display: flex;
  flex: 1;
  min-height: 0;
  margin: 0 10px 10px;
  background: #fff;
  border: 1px solid #d0d0d0;
}
.tab-page {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}

/* Fila CLI: casetă albă cu chenar negru și text monospațiat negru. */
.pane-title { margin: 6px 0; text-align: center; }
.console {
  flex: 1;
  min-height: 0;
  overflow: auto;
  margin: 0 10px;
  padding: 4px 6px;
  background: #fff;
  border: 2px solid #000;
  font: 13px/1.35 var(--mono);
  cursor: text;
}
.console .screen,
.cmd .screen {
  margin: 0;
  font: inherit;
  white-space: pre-wrap;
  word-break: break-all;
}
.console .input,
.cmd .input {
  display: flex;
  margin: 0;
}
.console .prompt,
.cmd .prompt { white-space: pre; }
.console input,
.cmd input {
  flex: 1;
  min-width: 0;
  padding: 0;
  background: transparent;
  border: 0;
  outline: 0;
  font: inherit;
  color: inherit;
}
.console-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 8px 10px;
}
.console-buttons .btn { min-width: 80px; }

/* Fila Desktop: aplicațiile ca dale pe fundal bleumarin. */
.desktop-page { position: relative; }
.desktop {
  display: grid;
  flex: 1;
  grid-template-columns: repeat(auto-fill, 128px);
  align-content: start;
  gap: 18px 14px;
  padding: 14px;
  overflow: auto;
  background: var(--navy);
}
.app-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 0;
  background: none;
  border: 0;
  color: #fbf1ea;
  font-size: 12px;
  line-height: 1.3;
  text-align: center;
}
.app-tile svg {
  width: 100px;
  height: 100px;
  padding: 18px;
  background: var(--tile);
}
.app-tile:hover svg { outline: 2px solid #fff; }
.app-tile:focus-visible { outline: 0; }
.app-tile:focus-visible svg { outline: 2px dotted #fff; }

.app-window {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: var(--panel);
}
.app-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 26px;
  margin: 8px 8px 0;
  padding-left: 2px;
  background: var(--app-bar);
  color: #fff;
}
.app-close {
  width: 28px;
  height: 22px;
  margin-right: 2px;
  padding: 0;
  background: #f0f0f0;
  border: 1px solid #888;
  color: #000;
  font-size: 12px;
}

.ip-form, .service-form {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 8px;
  overflow: auto;
}
fieldset {
  margin: 0;
  padding: 8px 10px 10px;
  background: var(--group);
  border: 1px solid #d3d3d3;
}
legend { padding: 0 4px; }
.radio-row {
  display: flex;
  gap: 18px;
  align-items: center;
  margin: 2px 0 8px;
}
.radio-row label { display: inline-flex; align-items: center; gap: 4px; }
label.row {
  display: grid;
  grid-template-columns: 170px 1fr;
  align-items: center;
  margin: 3px 0;
}
.ip-form input:not([type=radio]),
.service-form input,
.url-bar input {
  height: 24px;
  padding: 2px 6px;
  background: #fff;
  border: 1px solid #b5b5b5;
  border-radius: 2px;
  font: inherit;
}
.ip-form input[readonly] { background: #f3f3f3; color: #6a6a6a; }
.form-foot { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.result { flex: 1; margin: 0; font-size: 12px; }
.result.error, .detail.error { color: var(--no-text); }

.cmd {
  flex: 1;
  min-height: 0;
  overflow: auto;
  margin: 0 8px 8px;
  padding: 8px 10px;
  background: #000;
  color: #f2f2f2;
  font: 13px/1.35 var(--mono);
  cursor: text;
}

.url-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 8px;
  padding: 6px;
  background: var(--group);
}
.url-bar input { flex: 1; }
.app-window .page {
  flex: 1;
  margin: 0 8px 8px;
  padding: 12px;
  overflow: auto;
  background: #fff;
  border: 1px solid #c8c8c8;
}
.app-window .page.error { color: var(--no-text); }

/* Fila Services: lista serviciilor în stânga, cel ales în dreapta. */
.services-page { flex-direction: row; }
.side-list {
  width: 140px;
  flex: none;
  padding: 6px;
  overflow: auto;
  border-right: 1px solid #d0d0d0;
}
.side-head {
  margin: 0 0 2px;
  padding: 2px;
  background: linear-gradient(#fdfdfd, #ececec);
  border: 1px solid #adadad;
  font-weight: 700;
  text-align: center;
}
.service-names { display: flex; flex-direction: column; gap: 2px; }
.service-names button {
  padding: 2px;
  background: linear-gradient(#fdfdfd, #ececec);
  border: 1px solid #adadad;
}
.service-names button[aria-pressed="true"] { background: #cce4f7; border-color: #569de5; }
.service-pane { flex: 1; min-width: 0; padding: 4px 12px; overflow: auto; }
.service-pane .pane-title { padding-bottom: 6px; border-bottom: 1px solid #ddd; }
.service-pane .radio-row span { width: 80px; }
.service-pane .detail { margin: 4px 0 8px; color: var(--muted); }

/* Mesajele mici și detaliile unui PDU. */
.message-body { flex: 1; min-height: 0; padding: 12px; overflow: auto; background: #fff; margin: 0 8px 8px; border: 1px solid #d0d0d0; }
.window.message .message-body { margin-top: 8px; }
.shortcuts-table { border-collapse: collapse; width: 100%; }
.shortcuts-table td { padding: 3px 8px 3px 0; vertical-align: top; }
.shortcuts-table kbd {
  padding: 0 4px;
  background: #f3f3f3;
  border: 1px solid #c8c8c8;
  border-radius: 2px;
  color: #000;
  white-space: nowrap;
}

.pdu-where { margin: 0 0 8px; color: var(--muted); }
.layer {
  margin: 0 0 8px;
  border: 1px solid #b9b9b9;
}
.layer h4 {
  margin: 0;
  padding: 3px 6px;
  background: #e8eef5;
  border-bottom: 1px solid #b9b9b9;
  font-size: 12.5px;
}
.layer p { margin: 4px 6px; font-size: 12px; }
.layer table { width: 100%; border-collapse: collapse; font-size: 12px; }
.layer td { padding: 2px 6px; border-top: 1px solid #eee; }
.layer td:first-child { width: 42%; color: var(--muted); }
.hex {
  margin: 0;
  padding: 6px;
  background: #f7f7f7;
  border: 1px solid #ddd;
  overflow-x: auto;
  font: 11.5px/1.4 var(--mono);
  white-space: pre;
}

/* --- lansatorul, ca o fereastră de dialog --- */

.launcher {
  position: fixed;
  inset: 0;
  z-index: 300;
  overflow: auto;
  padding: 28px 16px;
  background: rgba(30, 40, 55, 0.45);
}
.launcher-inner {
  max-width: 980px;
  margin: 0 auto;
  background: var(--panel);
  border: 1px solid #7a7a7a;
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.4);
}
.launcher-inner > :not(.dialog-bar) { margin-left: 14px; margin-right: 14px; }

.dialog-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding-left: 8px;
  background: #fff;
  border-bottom: 1px solid #dadada;
}
.dialog-icon { width: 16px; height: 16px; }
.dialog-title { flex: 1; font-size: 12.5px; }
.dialog-close {
  width: 44px;
  height: 29px;
  padding: 0;
  background: none;
  border: 0;
  font-size: 18px;
}
.dialog-close:hover { background: #e81123; color: #fff; }

.launcher-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0 10px;
}
.hero-logo { width: 56px; height: 56px; flex: none; }
.launcher-head h1 { margin: 0 0 4px; font-size: 20px; font-weight: 600; }
.launcher-head .lede { margin: 0; max-width: 70ch; color: var(--muted); }

.progress {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--line);
}
.progress-count { margin: 0 0 6px; color: var(--muted); }
.progress-count b { font-size: 16px; color: var(--ink); }
.meter {
  height: 8px;
  background: #e1e1e1;
  border: 1px solid #c4c4c4;
  overflow: hidden;
}
.meter span { display: block; height: 100%; background: #3c8d2b; }
.progress-main > .meter { max-width: 460px; }
.progress-split {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 132px));
  gap: 16px;
  margin-top: 10px;
}
.progress-split p { display: flex; justify-content: space-between; margin: 0 0 3px; font-size: 12px; color: var(--muted); }
.split-score { color: var(--ink); font-variant-numeric: tabular-nums; }
.continue {
  display: flex;
  flex-direction: column;
  gap: 1px;
  max-width: 240px;
  padding: 8px 16px;
  background: linear-gradient(#fdfdfd, #ececec);
  border: 1px solid #569de5;
  border-radius: 2px;
  font-weight: 600;
  text-align: left;
}
.continue b {
  overflow: hidden;
  font-weight: 400;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--muted);
}
.continue:hover { background: #e5f1fb; }
.continue.full { border-color: #adadad; color: var(--muted); }

.coverage {
  margin-top: 10px;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 6px 22px;
}
.coverage h3 { grid-column: 1 / -1; margin: 0 0 2px; font-size: 13px; font-weight: 600; }
.coverage-row p { display: flex; justify-content: space-between; gap: 10px; margin: 0 0 2px; font-size: 12px; }
.coverage-row b { font-weight: 400; color: var(--muted); font-variant-numeric: tabular-nums; }
.coverage-row .meter { height: 6px; }

.launcher-error {
  margin-top: 10px;
  padding: 8px 12px;
  background: #fdecec;
  border: 1px solid #e19a9a;
  color: var(--no-text);
}

.levels { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.level {
  background: #fff;
  border: 1px solid var(--line);
}
.level > header {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  background: linear-gradient(#fafafa, #ececec);
  border-bottom: 1px solid var(--line);
}
.level .num {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  background: var(--navy);
  border-radius: 12px;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}
.level h2 { margin: 0; font-size: 14px; font-weight: 600; }
.level .meta { margin: 0; font-size: 11.5px; color: var(--muted); }
.level-progress { display: flex; align-items: center; gap: 8px; }
.level-progress .score { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.level-progress .meter { width: 64px; }

.lab-list { display: flex; flex-direction: column; padding: 2px 0; }
.lab {
  display: grid;
  grid-template-columns: 18px minmax(150px, 240px) 1fr 62px;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 5px 10px;
  background: none;
  border: 0;
  border-top: 1px solid #f1f1f1;
  text-align: left;
}
.lab:first-child { border-top: 0; }
.lab:hover { background: #e5f1fb; }
.lab .mark { display: grid; place-items: center; color: #3c8d2b; font-weight: 700; }
.lab:not(.done) .mark::before {
  content: "";
  width: 9px;
  height: 9px;
  border: 1px solid #9a9a9a;
}
.lab .name { font-weight: 600; }
.lab.done .name { color: var(--muted); font-weight: 400; }
.lab .desc { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--muted); font-size: 12px; }
.lab .pill { justify-self: end; }

.custom-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  padding: 8px 10px 0;
}
.custom-form label { display: flex; align-items: center; gap: 6px; }
.custom-form input {
  width: 62px;
  height: 24px;
  padding: 2px 6px;
  border: 1px solid #b5b5b5;
  border-radius: 2px;
  font: inherit;
  text-align: center;
}
.custom-form button {
  padding: 3px 14px;
  background: linear-gradient(#fdfdfd, #ececec);
  border: 1px solid #adadad;
  border-radius: 2px;
  font-weight: 600;
}
.custom-form button:hover { background: #e5f1fb; border-color: #7eb4ea; }
.level .note { margin: 8px 10px 10px; max-width: 80ch; color: var(--muted); font-size: 12px; }

.participant {
  margin-top: 12px;
  margin-bottom: 14px;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid var(--line);
}
.participant p { margin: 0 0 6px; }
.participant b { font-family: var(--mono); }
.participant .note { max-width: 80ch; color: var(--muted); font-size: 12px; }
.participant-who { color: var(--muted); }
.participant button,
.participant-state button {
  margin-left: 6px;
  padding: 2px 10px;
  background: linear-gradient(#fdfdfd, #ececec);
  border: 1px solid #adadad;
  border-radius: 2px;
}
.participant button:hover,
.participant-state button:hover { background: #e5f1fb; border-color: #7eb4ea; }
.tag {
  display: inline-block;
  padding: 1px 8px;
  border: 1px solid #b5b5b5;
  border-radius: 9px;
  color: var(--muted);
  font-size: 12px;
}
.tag-on { border-color: #8cc57d; background: #eef8eb; color: var(--ok-text); }

/* --- codul de la curs și consimțământul --- */

.consent {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: grid;
  place-items: center;
  overflow: auto;
  padding: 24px 16px;
  background: rgba(30, 40, 55, 0.55);
}
.consent-card {
  width: min(640px, 100%);
  padding: 18px 22px;
  background: var(--panel);
  border: 1px solid #7a7a7a;
  border-top: 30px solid #fff;
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.4);
}
.consent-card:focus { outline: 0; }
.consent-card h2 { margin: 0 0 8px; font-size: 17px; font-weight: 600; }
.consent-lede { margin: 0 0 12px; line-height: 1.5; }

.record {
  margin: 0 0 12px;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid var(--line);
}
.record-title { margin: 0 0 6px; font-weight: 600; }
.record-title-absent { margin-top: 10px; }
.record-fields { margin: 0; }
.field {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 8px;
  padding: 2px 0;
}
.field dt { font-family: var(--mono); color: var(--muted); }
.field dd { margin: 0; }
.field code { font-family: var(--mono); font-size: 12px; }
.absent .field dt { text-decoration: line-through; }
.gloss { color: var(--muted); font-size: 12px; }
.record-empty { margin: 6px 0 0; color: var(--muted); font-size: 12px; }

.consent-note { margin: 0 0 10px; line-height: 1.5; }
.consent-details { margin: 0 0 12px; }
.consent-details summary { cursor: pointer; color: #0645ad; }
.consent-details p { margin: 6px 0 0; line-height: 1.5; }

.consent-contest {
  display: grid;
  gap: 4px;
  margin: 0 0 12px;
}
.consent-contest-name { font-weight: 600; }
.consent-contest input,
.enroll-form input {
  height: 26px;
  padding: 2px 8px;
  background: #fff;
  border: 1px solid #b5b5b5;
  border-radius: 2px;
  font: 13px var(--mono);
}

.consent-error {
  margin: 0 0 10px;
  padding: 6px 10px;
  background: #fdecec;
  border: 1px solid #e19a9a;
  color: var(--no-text);
}
.consent-actions { display: flex; gap: 8px; }
.consent-actions button,
.enroll-form button {
  min-width: 120px;
  padding: 4px 16px;
  background: linear-gradient(#fdfdfd, #ececec);
  border: 1px solid #adadad;
  border-radius: 2px;
}
.consent-actions button:hover,
.enroll-form button:hover { background: #e5f1fb; border-color: #7eb4ea; }
.consent-yes { font-weight: 600; border-color: #569de5 !important; }
.consent-foot { margin: 10px 0 0; color: var(--muted); font-size: 12px; }

.enroll-form { display: flex; gap: 8px; margin: 0 0 10px; }
.enroll-form input { flex: 1; }
.enroll-help { margin: 0; color: var(--muted); font-size: 12px; }

/* --- ecrane mici --- */

/* Packet Tracer nu are ecran de telefon. Aici, sub o lățime de laptop mic,
   panourile andocate trec peste pânză în loc să o strângă, iar lista de jos se
   așază pe două rânduri. */
@media (max-width: 960px) {
  .dock.left, .dock.right {
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 15;
    width: min(340px, 88vw);
    box-shadow: 0 0 18px rgba(0, 0, 0, 0.3);
  }
  .dock.left { left: 0; }
  .dock.right { right: 0; }
  .tray { grid-template-columns: 1fr; height: auto; }
  .pdus { max-height: 90px; border-left: 0; border-top: 1px solid var(--line); }
  .coords { display: none; }
  .lab { grid-template-columns: 18px 1fr 62px; }
  .lab .desc { display: none; }
}

@media (max-width: 560px) {
  .menubar .menu-title { padding: 0 5px; }
  .toolbar .tool { width: 30px; }
  .mode { font-size: 13px; padding-right: 8px; }
  .time { font-size: 11px; }
  .progress { grid-template-columns: 1fr; }
  .progress-split { grid-template-columns: repeat(3, 1fr); }
  .window.device { left: 8px !important; width: calc(100vw - 16px); }
}

/* Butonul mic din colțul pânzei care deschide laboratoarele generate. */
.labs-corner {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border: 1px solid #adadad;
  border-radius: 2px;
  background: #f0f0f0;
  color: #000;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.labs-corner:hover { background: #e5f1fb; border-color: #0078d7; }

/* Bifa de cercetare, în subsolul ferestrei cu laboratoare. */
.share { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.share-check { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; cursor: pointer; }
.share-actions button {
  margin-right: 6px;
  padding: 2px 8px;
  border: 1px solid #adadad;
  background: #f0f0f0;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.share-actions button:hover { background: #e5f1fb; border-color: #7eb4ea; }
.share b { font-family: inherit; }
.share-contest { display: flex; flex-direction: column; gap: 3px; margin: 6px 0; font-size: 12px; }
.share-contest input { max-width: 260px; padding: 3px 5px; border: 1px solid #adadad; font: inherit; }

/* PDU Information: filele, straturile OSI și antetele desenate câmp cu câmp. */
.pdu-tabs { display: flex; gap: 2px; border-bottom: 1px solid #b7c4cf; margin-bottom: 8px; }
.pdu-tab { border: 1px solid #b7c4cf; border-bottom: none; background: #eef3f7; padding: 4px 10px;
  font: inherit; font-size: 12px; cursor: pointer; border-radius: 3px 3px 0 0; }
.pdu-tab.on { background: #fff; font-weight: 600; position: relative; top: 1px; }
.pdu-page .pdu-where { white-space: pre-line; margin: 4px 0 8px; }
.osi-layers { width: 100%; border-collapse: collapse; font-size: 12px; }
.osi-layers th { text-align: left; background: #e7eef4; padding: 4px 6px; }
.osi-layers td { padding: 3px 6px; border-bottom: 1px solid #edf1f4; color: #8a98a3; vertical-align: top; width: 50%; }
.osi-layers td.used { color: #1b2a35; }
.osi-steps { margin: 10px 0 0; padding-left: 22px; font-size: 12px; line-height: 1.45; }
.header-diagram { display: flex; flex-direction: column; gap: 2px; margin: 4px 0 8px;
  font: 11px/1.3 Consolas, "Courier New", monospace; }
.header-row { display: flex; gap: 2px; }
.header-cell { flex-basis: 0; min-width: 0; background: #f4f8fb; border: 1px solid #9fb2c2;
  padding: 3px 4px; text-align: center; overflow-wrap: anywhere; }

/* Tabelele serviciilor și clientul de e-mail. */
.service-table { width: 100%; border-collapse: collapse; font-size: 12px; margin: 8px 0; }
.service-table th { text-align: left; background: #e7eef4; padding: 3px 6px; font-weight: 600; }
.service-table td { padding: 3px 6px; border-bottom: 1px solid #edf1f4; cursor: pointer; }
.service-table tr.selected td { background: #cfe3f5; }
.service-form .rights { display: flex; flex-wrap: wrap; gap: 8px; }
.service-form .form-foot { display: flex; gap: 6px; justify-content: flex-end; }
.service-form select { font: inherit; }
.mail { display: flex; flex-direction: column; gap: 6px; padding: 8px; }
.mail-bar { display: flex; gap: 6px; flex-wrap: wrap; }
.mail-compose textarea { width: 100%; box-sizing: border-box; font: inherit; }
.mail-read { white-space: pre-wrap; min-height: 3em; background: #fafcfd; border: 1px solid #dde5eb; padding: 6px; margin: 0; }
.mail-status.error { color: #b3261e; }
