:root {
  --bg: #eef1ed;
  --panel: #fcfdfa;
  --ink: #18312f;
  --muted: #546967;
  --line: #cdd8d1;
  --teal: #0d645c;
  --mint: #9debd6;
  --dark: #102d32;
  --accent: #f5a868;
  --mono: Outfit, ui-monospace, monospace;
  --text: Outfit, Plex, Tahoma, Arial, sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font: 15px/1.55 var(--text);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
button,
select,
textarea,
input {
  font: inherit;
}
button {
  cursor: pointer;
  border: 0;
  background: none;
  color: inherit;
}
button:disabled {
  opacity: 0.48;
  cursor: default;
}
button:focus-visible,
[tabindex]:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #da8552;
  outline-offset: 2px;
}
button .icon {
  pointer-events: none;
}
.icon {
  width: 19px;
  height: 19px;
  vertical-align: middle;
  flex: none;
}
.mono,
bdi {
  unicode-bidi: isolate;
}
.mono {
  font: 500 12px/1.5 var(--mono);
  letter-spacing: 0.8px;
}
#top {
  height: 61px;
  flex: none;
  padding: 0 max(2.6vw, 20px);
  display: flex;
  align-items: center;
  gap: 45px;
  background: var(--dark);
  color: #e8f3eb;
  border-bottom: 1px solid #34716b;
}
.identity,
.roles,
#top nav,
.crumb,
.deskhead,
.stitle,
.system,
.evidenceTop,
.evrow,
.pin,
.primary,
.hint,
.insbottom,
.pinCount,
.maplegend,
.mapmeta,
.maplegend span,
.mapmeta span,
.barTitle,
.transport,
#playbar,
.rec,
.deviceinfo,
.slidehead,
.slidefoot,
.guesttitle,
.guesttools,
.paperhead,
.wintitle,
.labmenu,
.modalhead,
.tabs {
  display: flex;
  align-items: center;
}
.identity {
  gap: 12px;
  white-space: nowrap;
}
.identity img {
  width: 39px;
  height: 32px;
  object-fit: contain;
}
.identity b {
  font-size: 23px;
  color: #fff;
}
.identity i,
.deviceinfo i {
  height: 17px;
  width: 1px;
  background: #59706d;
}
.identity span {
  font-size: 13px;
  color: #b3cec7;
}
#top nav {
  gap: 8px;
}
#top nav button {
  font-size: 14px;
  color: #dae6e0;
  border-radius: 4px;
  padding: 4px 12px;
}
#top nav button:hover {
  background: #234349;
}
.roles {
  margin-inline-start: auto;
  padding: 3px;
  border: 1px solid #486266;
  background: #17393c;
  border-radius: 7px;
}
.roles button {
  font-size: 13px;
  min-width: 63px;
  padding: 3px 10px;
  border-radius: 4px;
  color: #c5d8d0;
}
.roles .on {
  background: #e6efe5;
  color: var(--ink);
  font-weight: 600;
}
main {
  width: min(1510px, 100%);
  margin: 0 auto;
  padding: 15px max(2.6vw, 20px) 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
#intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 14px;
}
.crumb {
  color: var(--muted);
  font-size: 12px;
  gap: 8px;
  flex-wrap: wrap;
}
.crumb bdi {
  direction: ltr;
  letter-spacing: 0.25px;
}
.crumb span {
  color: #94a49a;
}
h1 {
  font-size: clamp(27px, 2.65vw, 43px);
  line-height: 1.25;
  letter-spacing: -1.3px;
  margin: 5px 0 0;
  font-weight: 600;
}
.labmenu {
  direction: ltr;
  gap: 10px;
  border: 1px solid #b8c8bf;
  border-radius: 7px;
  background: #f7faf5;
  padding: 8px 12px;
  color: var(--teal);
}
.labmenu .icon {
  width: 13px;
}
.live-dot,
.smallDot,
.maplegend i,
.mapmeta i {
  display: inline-block;
  border-radius: 50%;
  width: 7px;
  height: 7px;
  background: #318571;
}
.live-dot {
  box-shadow: 0 0 0 3px #b9d8c869;
}
#work {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(253px, 27%);
  direction: ltr;
  gap: 15px;
  align-items: stretch;
  flex: 1;
}
.desk,
.inspector {
  direction: rtl;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  min-width: 0;
  overflow: hidden;
}
.desk {
  display: flex;
  flex-direction: column;
}
.deskhead {
  padding: 10px 18px;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid var(--line);
}
.stitle,
.evidenceTop strong {
  display: flex;
  align-items: center;
  gap: 8px;
}
.stitle .icon,
.evidenceTop .icon,
.pinCount .icon {
  color: var(--teal);
}
.system {
  gap: 7px;
  color: #5b726d;
  font: 10px/1 var(--mono);
  letter-spacing: 1.35px;
  direction: ltr;
}
.system .smallDot {
  width: 5px;
  height: 5px;
}
.viewport {
  position: relative;
  min-height: 205px;
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #143638;
}
.viewport > .mapcanvas,
.viewport > .kdesktop,
.viewport > .linuxdesk,
.viewport > .windesk,
.viewport > .slide,
.viewport > .paper {
  flex: 1;
}
.mapcanvas {
  color: #92d4c0;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 9px 67px 9px 15px;
  background-color: #102e34;
  background-image:
    radial-gradient(circle, #4d79762b 1.2px, transparent 1.3px),
    radial-gradient(ellipse at 47% 50%, #23515975, transparent 68%);
  background-size:
    14px 14px,
    100% 100%;
}
.mapmeta,
.maplegend {
  justify-content: space-between;
  font-size: 11px;
  color: #aac5ba;
}
.mapmeta {
  direction: ltr;
}
.mapmeta > bdi {
  font: 10px/1 var(--mono);
  letter-spacing: 2.1px;
}
.mapmeta span,
.maplegend span {
  gap: 6px;
}
.mapmeta i {
  width: 5px;
  height: 5px;
  background: #91d2b3;
}
.maplegend {
  justify-content: flex-start;
  gap: 16px;
}
.maplegend i {
  width: 6px;
  height: 6px;
  background: #77c4ad;
}
.maplegend .selectedDot {
  background: var(--accent);
}
.topo {
  display: block;
  width: 100%;
  height: clamp(185px, 29vh, 330px);
  overflow: visible;
}
.topo text {
  font-family: var(--text);
}
.rack {
  fill: #17383e;
  stroke: #467773;
  stroke-dasharray: 4 4;
}
.zone {
  fill: #9bd5c3;
  font: 11px var(--mono) !important;
  letter-spacing: 2.5px;
}
.zname {
  fill: #c4dbd3;
  font-size: 12px;
}
.rule {
  stroke: #33585a;
}
.device {
  cursor: pointer;
  color: #89c7b9;
}
.devicebg {
  fill: #1c4247;
  stroke: #456467;
}
.device:hover .devicebg,
.device:focus .devicebg {
  stroke: #a3e6d3;
  fill: #245052;
}
.device.selected {
  color: var(--accent);
}
.device.selected .devicebg {
  fill: #3c443b;
  stroke: #eda770;
  stroke-width: 1.6;
}
.hostid {
  fill: white;
  font: 14px var(--mono) !important;
  letter-spacing: 0.7px;
}
.hostname {
  fill: #b3c8be;
  font: 10.5px var(--mono) !important;
}
.led {
  fill: #8bd4b8;
}
.selected .led {
  fill: #f8b278;
}
.hub {
  fill: #153d3e;
  stroke: #6a9b84;
  stroke-width: 1.5;
}
.edge {
  stroke: #88ad9b;
  stroke-dasharray: 4 4;
  fill: none;
}
.gatelabel {
  fill: #8fb4a8;
  font: 9px var(--mono) !important;
  letter-spacing: 2px;
}
.dock {
  position: absolute;
  z-index: 2;
  top: 50%;
  right: 9px;
  transform: translateY(-50%);
  padding: 4px 3px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  border: 1px solid #d1f6ea40;
  border-radius: 13px;
  background: #1a333e66;
  box-shadow: 0 3px 10px #10232932;
  backdrop-filter: blur(12px);
  color: #d2e8db;
}
.dock button {
  display: grid;
  place-items: center;
  position: relative;
  width: 36px;
  height: 31px;
  transition:
    transform 0.15s,
    color 0.15s;
  color: #c0d8cd;
}
.dock button.sel,
.dock button:hover {
  color: #ffe1ac;
}
.dock button.sel:before {
  content: "";
  position: absolute;
  right: 0;
  width: 2px;
  height: 13px;
  background: #ffbd84;
  border-radius: 4px;
}
.dock button:hover,
.dock button:focus-visible {
  transform: scale(1.12);
}
.dock button span {
  display: none;
  position: absolute;
  right: 100%;
  padding: 3px 9px;
  white-space: nowrap;
  border-radius: 6px;
  background: #09292d;
  color: #fff;
  font-size: 12px;
}
.dock button:hover span,
.dock button:focus-visible span {
  display: block;
}
.deviceinfo,
.evidenceTop {
  padding: 6px 17px;
}
.deviceinfo {
  gap: 11px;
  border-bottom: 1px solid var(--line);
  background: #eaf1e9;
  color: #455f57;
  font-size: 12px;
}
.deviceinfo bdi {
  font: 13px var(--mono);
  color: var(--teal);
}
.deviceinfo i {
  height: 10px;
  background: #b6c8bc;
}
.evidenceTop {
  padding-top: 11px;
  justify-content: space-between;
}
.evidenceTop > .mono {
  color: #678079;
  font-size: 10px;
}
.evList {
  padding: 0 17px 5px;
}
.evrow {
  padding: 7px 0;
  gap: 12px;
  border-bottom: 1px solid #e0e8df;
}
.evrow:last-child {
  border: 0;
}
.evrow .evId {
  flex: none;
  background: #e7f0e9;
  color: #285d50;
  border: 1px solid #cedfd3;
  border-radius: 4px;
  padding: 3px 6px;
  font: 11px var(--mono);
  letter-spacing: 1px;
  min-width: 59px;
  text-align: center;
}
.evrow > div {
  flex: 1;
  min-width: 0;
}
.evrow b {
  font-size: 13px;
}
.evrow p,
.logrow p {
  margin: 1px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.pin,
.hint,
.iconbtn,
.subbtn,
.paperbtn,
.rec,
.playerBtn,
.labmenu {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
}
.pin {
  border: 1px solid #cfdbd1;
  color: #37685b;
  border-radius: 5px;
  font-size: 12px;
  padding: 3px 8px;
}
.pin .icon {
  width: 13px;
}
.pinned {
  background: #ceebdc;
  border-color: #7db79d;
}
.inspector {
  padding: clamp(13px, 1.5vw, 24px);
  display: flex;
  flex-direction: column;
}
.missioncap {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 600;
}
.casenum {
  align-self: flex-end;
  display: flex;
  gap: 6px;
  align-items: baseline;
  margin: 12px 0 0;
  font: 13px/1 var(--mono);
  letter-spacing: 2px;
  color: #40685f;
}
.casenum b {
  font-weight: 500;
  font-size: clamp(45px, 4.7vw, 67px);
  letter-spacing: -4px;
  color: var(--ink);
}
.casenum i {
  font-style: normal;
  font-size: 14px;
  color: #82998d;
}
.caseen {
  font: 16px/1.2 var(--mono);
  text-align: right;
  margin: 5px 0 8px;
}
.scope {
  width: fit-content;
  color: #27664e;
  font-size: 11px;
  border: 1px solid #c4dbc7;
  background: #e6f1e3;
  border-radius: 20px;
  padding: 1px 9px;
}
.inspector hr {
  width: 100%;
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 14px 0 11px;
}
.inspector h2 {
  font-size: clamp(17px, 1.5vw, 23px);
  line-height: 1.4;
  margin: 0;
}
.instruction {
  font-size: 13px;
  color: var(--muted);
  margin: 5px 0 11px;
}
.options {
  display: grid;
  gap: 6px;
}
.options button {
  display: flex;
  align-items: center;
  text-align: start;
  gap: 8px;
  min-height: 34px;
  border: 1px solid #d7e1d7;
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 13px;
}
.options i {
  flex: none;
  width: 12px;
  height: 12px;
  border: 1px solid #a7b7ae;
  border-radius: 50%;
}
.options .chosen {
  background: #e2f0e6;
  border-color: #81b39d;
}
.chosen i {
  border: 3px solid #177368;
  background: #ddeee2;
}
.gradeout {
  font-size: 12px;
  color: var(--teal);
  margin: 5px 0;
  min-height: 2px;
}
.insbottom {
  margin-top: auto;
  flex-wrap: wrap;
  gap: 8px;
}
.pinCount {
  width: 100%;
  gap: 6px;
  font-size: 12px;
  color: #607970;
}
.pinCount b {
  margin-inline-start: auto;
}
.primary {
  background: var(--teal);
  color: white;
  padding: 7px 10px;
  justify-content: space-between;
  gap: 12px;
  border-radius: 5px;
  font-size: 13px;
  flex: 1;
}
.primary .icon {
  width: 15px;
}
.hint {
  font-size: 12px;
}
.hint .icon {
  width: 15px;
}
#playbar {
  margin-top: auto;
  flex: none;
  padding: 8px max(2.6vw, 20px);
  background: #f9fbf7;
  border-top: 1px solid #cbd9cd;
  gap: 24px;
  font-size: 13px;
}
.barTitle {
  gap: 7px;
}
.barTitle .icon {
  color: var(--teal);
  width: 16px;
}
.transport {
  flex: 1;
  gap: 9px;
}
.transport input {
  min-width: 20px;
  width: 100%;
  height: 4px;
  accent-color: var(--teal);
}
.transport .mono {
  color: #526c62;
  font-size: 11px;
  white-space: nowrap;
}
.playerBtn,
.rec {
  background: #e4eee6;
  border-radius: 5px;
  color: #295c51;
  padding: 4px 9px;
}
.playerBtn .icon {
  width: 14px;
}
.rec .icon {
  width: 13px;
  color: #c05b40;
}
.rec.active {
  color: #9c3725;
  background: #f8ddd1;
}
.studentfoot {
  color: #607970;
}
.kdesktop,
.linuxdesk,
.windesk,
.slide,
.paper {
  padding: 12px 64px 12px 12px;
  max-height: 390px;
  min-height: 215px;
  overflow: auto;
}
.kdesktop {
  background-size: cover;
  background-position: center;
}
.guest,
.linuxwin {
  overflow: hidden;
  border-radius: 7px;
  box-shadow: 0 6px 17px #0003;
  background: #eff3f4;
  color: #152b36;
}
.guesttitle,
.wintitle {
  background: #27394a;
  color: #f1f4f6;
  gap: 8px;
  padding: 5px 10px;
  font-size: 12px;
  direction: ltr;
}
.guesttitle .icon,
.wintitle .icon {
  width: 16px;
}
.guesttools {
  justify-content: space-between;
  padding: 3px 10px;
  font-size: 12px;
}
.guesttools select {
  font-size: 12px;
  color: #173337;
  background: #e4ebe9;
  border: 1px solid #b9ccc7;
}
.subbtn {
  color: #143f47;
  font-size: 12px;
}
.pcapscroll {
  max-height: clamp(103px, 17vh, 180px);
  overflow: auto;
}
.packets {
  border-collapse: collapse;
  text-align: left;
  width: 100%;
  font: 12px/1.35 var(--mono);
}
.packets th {
  background: #d0d9db;
  color: #1c3641;
  position: sticky;
  top: 0;
}
.packets td,
.packets th {
  padding: 2px 10px;
}
.packets td {
  border-bottom: 1px solid #d8e5dc;
}
.packets tbody {
  background: #e5eee5;
}
.packets tr.selected {
  background: #b2d7dd;
}
.packets button {
  text-decoration: underline;
  color: #075a67;
  padding: 1px 3px;
}
.frameinfo {
  border-top: 1px solid #a6c1b7;
  padding: 4px 8px;
  color: #28424c;
  font-size: 10px;
}
.linuxdesk {
  background: #203638;
}
.linuxwin {
  background: #162527;
  color: #d1e5df;
}
.logtitle,
.logrow {
  padding: 5px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.logtitle {
  background: #233a3e;
  font-size: 12px;
}
.logrow {
  border-bottom: 1px solid #314649;
}
.logrow > div {
  flex: 1;
}
.logrow p {
  color: #b0c4bf;
}
.logrow strong {
  font-size: 12px;
}
.logrow .mono {
  color: #eabb8a;
}
.windesk {
  display: flex;
  flex-direction: column;
  background: linear-gradient(130deg, #416d92, #213d65 40%, #567fa1);
  height: clamp(255px, 36vh, 370px);
}
.wintitle {
  background: #e7eef5;
  color: #244766;
  flex: none;
}
.windesk iframe {
  border: 0;
  background: white;
  min-height: 170px;
  flex: 1;
  width: 100%;
}
.slide,
.paper {
  background: #f5eddb;
  color: #223a32;
  padding-right: 65px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}
.slidehead,
.slidefoot,
.paperhead {
  justify-content: space-between;
  gap: 8px;
}
.slidehead,
.paperhead {
  color: #64756a;
  border-bottom: 1px solid #c7c9b4;
  padding-bottom: 4px;
  font-size: 11px;
}
.slide h2,
.paper h2 {
  font-size: clamp(21px, 2.4vw, 34px);
  margin: 1px 0;
}
.slide p,
.paper p {
  margin: 2px 0;
  max-width: 68ch;
}
.slidefoot {
  margin-top: 8px;
  justify-content: flex-start;
}
.slidefoot button,
.paperbtn {
  border: 1px solid #a4b0a0;
  border-radius: 4px;
  font-size: 12px;
  padding: 3px 8px;
}
.slide ~ .dock,
.paper ~ .dock {
  background: #193d3dd9;
}
.paper {
  justify-content: flex-start;
  gap: 3px;
  background: #f6f5e9;
}
.paper h2 {
  font-size: 21px;
}
.paper p,
.paperpins {
  font-size: 12px;
}
.paperpins {
  color: #51675d;
}
.paperpins div {
  padding: 2px 0;
}
.paperpins bdi {
  font-family: var(--mono);
  color: var(--teal);
}
.paper label {
  font-size: 12px;
}
.paper textarea {
  display: block;
  width: 100%;
  resize: vertical;
  height: 46px;
  min-height: 35px;
  border: 1px solid #b0beb1;
  color: var(--ink);
  background: #fffdf4;
}
.paperbtn {
  align-self: flex-start;
}
.paperbtn .icon {
  width: 13px;
}
dialog {
  width: min(800px, 94vw);
  max-height: 85dvh;
  padding: 0;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid #66897d;
  border-radius: 12px;
  box-shadow: 0 28px 100px #14332e44;
}
dialog::backdrop {
  background: #081f27a3;
  backdrop-filter: blur(3px);
}
.modalhead,
.tabs,
.modalbody {
  padding: 11px 20px;
}
.modalhead {
  justify-content: space-between;
  background: var(--dark);
  color: #fff;
}
.modalhead h2 {
  font-size: 20px;
  margin: 0;
}
.tabs {
  border-bottom: 1px solid var(--line);
  gap: 7px;
}
.tabs button,
.related button,
.toolcase {
  border: 1px solid var(--line);
  border-radius: 5px;
  font-size: 13px;
  padding: 3px 9px;
}
.tabs .sel,
.casegrid .now {
  border-color: var(--teal);
  background: #deefe3;
}
.modalbody {
  max-height: 61dvh;
  overflow: auto;
}
.casegrid,
.toolsgrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}
.casegrid button,
.toolsgrid article {
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 7px;
  text-align: start;
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 3px;
}
.casegrid .mono,
.related,
.toolsgrid small {
  color: var(--teal);
}
.casegrid bdi {
  font-size: 12px;
  direction: ltr;
}
.casegrid small {
  font-size: 11px;
  color: #596d60;
}
.modalnote,
.toolsgrid p {
  font-size: 13px;
  color: var(--muted);
  margin: 4px 0 12px;
}
.modalbody details {
  border-bottom: 1px solid var(--line);
  padding: 8px;
}
.modalbody summary {
  cursor: pointer;
}
.modalbody summary strong,
.modalbody summary small {
  margin-right: 12px;
}
.lessonlist {
  display: grid;
  gap: 4px;
  margin: 7px 0;
}
.lessonlist button {
  text-align: start;
  padding: 4px;
  border-radius: 4px;
  background: #eff4ee;
}
.related {
  font-size: 12px;
}
.related button {
  margin-inline: 4px;
}
.toolsgrid article > div {
  align-self: stretch;
  direction: ltr;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.toolsgrid article p {
  margin: 3px 0;
}
.toolsgrid article .toolcase {
  margin-top: auto;
  color: var(--teal);
}
#toast {
  position: fixed;
  z-index: 8;
  bottom: 62px;
  left: 50%;
  transform: translate(-50%, 10px);
  color: #fff;
  background: #133c39;
  padding: 7px 16px;
  border: 1px solid #7ea990;
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s;
  font-size: 13px;
}
#toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
@media (min-width: 830px) and (min-height: 660px) {
  body {
    height: 100dvh;
    overflow: hidden;
  }
  main {
    min-height: 0;
  }
  #work {
    min-height: 0;
  }
  .desk,
  .inspector {
    overflow: auto;
  }
  .viewport {
    flex: 1;
  }
  .mapcanvas {
    min-height: 205px;
  }
  .topo {
    height: 100%;
    max-height: 32vh;
    min-height: 140px;
  }
}
@media (max-height: 780px) and (min-width: 830px) {
  #top {
    height: 50px;
  }
  main {
    padding-top: 9px;
    padding-bottom: 9px;
  }
  #intro {
    margin-bottom: 8px;
  }
  .inspector {
    padding: 13px;
  }
  .casenum {
    margin-top: 6px;
  }
  .casenum b {
    font-size: 44px;
  }
  .inspector hr {
    margin: 9px 0;
  }
  .instruction {
    margin: 4px 0 7px;
  }
  .caseen {
    margin: 2px 0 6px;
  }
  .evrow {
    padding: 5px 0;
  }
  .deskhead {
    padding: 7px 14px;
  }
  .evidenceTop {
    padding-top: 7px;
  }
  .mapcanvas {
    padding-top: 7px;
    padding-bottom: 7px;
  }
}
@media (max-width: 829px) {
  #top {
    gap: 12px;
    padding: 0 14px;
  }
  .identity i,
  .identity span {
    display: none;
  }
  #top nav {
    gap: 0;
  }
  #top nav button {
    padding: 3px 7px;
  }
  main {
    padding: 11px;
  }
  #work {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .inspector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 14px;
  }
  .inspector .missioncap,
  .inspector .casenum,
  .scope,
  .casenum,
  .inspector hr,
  .caseen {
    display: none;
  }
  .inspector h2,
  .inspector .instruction,
  .inspector .gradeout {
    grid-column: 1/-1;
  }
  .insbottom {
    flex-direction: column;
    align-items: stretch;
    margin: auto 0;
  }
  .primary {
    justify-content: center;
  }
  .topo {
    height: clamp(170px, 29vw, 245px);
  }
  .mapcanvas {
    min-height: 215px;
  }
  .crumb {
    font-size: 10px;
  }
  #playbar {
    gap: 10px;
    padding: 7px 12px;
  }
  .barTitle span {
    display: none;
  }
  .viewport {
    min-height: 215px;
  }
}
@media (max-width: 520px) {
  #top {
    height: 48px;
    gap: 5px;
  }
  .identity b {
    display: none;
  }
  .identity img {
    width: 31px;
  }
  .roles button {
    min-width: 41px;
    padding: 3px 5px;
  }
  .crumb {
    display: block;
    line-height: 1.3;
  }
  .crumb bdi {
    display: block;
  }
  .labmenu {
    padding: 6px;
    gap: 5px;
  }
  .labmenu .mono {
    font-size: 10px;
  }
  .labmenu .live-dot {
    display: none;
  }
  h1 {
    font-size: 25px;
    margin-top: 4px;
  }
  .system {
    font-size: 8px;
    letter-spacing: 0.8px;
  }
  .stitle {
    font-size: 13px;
  }
  .mapcanvas,
  .kdesktop,
  .linuxdesk,
  .windesk,
  .slide,
  .paper {
    padding: 8px 9px 50px;
  }
  .mapcanvas {
    min-height: 179px;
  }
  .topo {
    height: auto;
    min-height: 112px;
  }
  .mapmeta,
  .maplegend {
    font-size: 9px;
  }
  .mapmeta > bdi {
    font-size: 8px;
  }
  .dock {
    flex-direction: row;
    right: 50%;
    top: auto;
    bottom: 5px;
    transform: translateX(50%);
    padding: 2px 4px;
    border-radius: 9px;
  }
  .dock button {
    width: 29px;
    height: 26px;
  }
  .dock button .icon {
    width: 16px;
  }
  .dock button.sel:before {
    right: 8px;
    bottom: 0;
    width: 12px;
    height: 2px;
  }
  .dock button span {
    display: none !important;
  }
  .viewport {
    min-height: 174px;
  }
  .maplegend {
    margin-top: 3px;
  }
  .deviceinfo {
    padding: 4px 7px;
    font-size: 10px;
    gap: 5px;
  }
  .deviceinfo bdi {
    font-size: 11px;
  }
  .evList {
    padding: 0 8px;
  }
  .evrow {
    gap: 6px;
  }
  .evrow .evId {
    font-size: 9px;
    min-width: 42px;
    padding: 2px 4px;
  }
  .evrow p {
    font-size: 11px;
  }
  .pin span {
    display: none;
  }
  .pin {
    padding: 2px 6px;
  }
  .inspector {
    display: flex;
    padding: 12px;
  }
  .insbottom {
    flex-direction: row;
    margin-top: 5px;
    flex-wrap: wrap;
  }
  .casenum {
    display: none;
  }
  .options {
    gap: 4px;
  }
  .options button {
    min-height: 28px;
  }
  .instruction {
    margin-bottom: 7px;
  }
  .casegrid,
  .toolsgrid {
    grid-template-columns: 1fr;
  }
  .guesttitle {
    padding: 3px 6px;
  }
  .packets td,
  .packets th {
    padding: 2px 4px;
  }
  .pcapscroll {
    max-height: 160px;
  }
  .windesk {
    height: 330px;
  }
  .pinCount {
    width: auto;
    gap: 3px;
  }
  .evrow b {
    font-size: 12px;
  }
  .modalhead,
  .tabs,
  .modalbody {
    padding: 8px 10px;
  }
  .tabs button {
    font-size: 11px;
  }
  .maplegend {
    justify-content: space-between;
  }
  .gradeout {
    margin: 4px 0;
  }
  .barTitle {
    display: none;
  }
  .transport {
    gap: 4px;
  }
  .rec {
    font-size: 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
.mapping {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 5px 12px;
  background: #eaf1e8;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.mapping select {
  color: var(--ink);
  background: #fff;
  border: 1px solid #a8b9ac;
  border-radius: 4px;
  font: 12px var(--mono);
  padding: 3px;
}
.mapping details summary {
  cursor: pointer;
}
.mapping details[open] {
  max-height: 90px;
  overflow: auto;
}

#intro {
  margin: 0 0 6px;
}
main {
  padding: 6px;
  min-height: 0;
}
header#top {
  height: 34px;
  padding: 0 12px;
  justify-content: space-between;
}
.lessonTitle {
  font-size: 14px;
}
#intro .labmenu {
  padding: 2px 7px;
}
.windesk #events-window {
  flex: 1;
  min-height: 0;
  overflow: auto;
  background: #f4f6f7;
  color: #192634;
  font-family: "Segoe UI", Tahoma, sans-serif;
}
@media (min-width: 830px) {
  body {
    height: 100dvh;
    overflow: hidden;
  }
  #work {
    min-height: 0;
  }
  .desk,
  .inspector {
    overflow: auto;
  }
  .viewport {
    min-height: 210px;
  }
}
@media (max-height: 720px) and (min-width: 830px) {
  .casenum,
  .caseen {
    display: none;
  }
  .inspector hr {
    margin: 6px 0;
  }
  .inspector h2 {
    font-size: 16px;
  }
  .evrow {
    padding: 3px 0;
  }
  .topo {
    max-height: 27vh;
  }
  .deskhead {
    padding: 4px 12px;
  }
}
