/* Learning Network: neutral learning surfaces and green actions from LinuxLabo. */
:root {
  color-scheme: dark;
  --bg: #202124;
  --panel: #292a2e;
  --panel-deep: #202124;
  --surface: #292a2e;
  --surfaceHover: #323338;
  --border: #45464d;
  --track: #3b3c43;
  --text: #f4f4f5;
  --muted: #b8bac4;
  --faint: #9a9aa4;
  --green: #00b832;
  --green-soft: #d6f0dd;
  --accent: #00b832;
  --accentHover: #00a32c;
  --accentText: #031006;
  --accentBorder: #26743a;
  --controlBorder: #80828e;
  --termBg: #09090b;
  --termText: #dedee3;
  --termDim: #9a9aa4;
  --control-height: 44px;
  --compact-control-height: 40px;
  --map-backdrop: rgb(9 9 11 / .82);
  --amber: #d2b779;
  --red: #eb9696;
  --warningBorder: #62543d;
  --warningBg: rgba(210,183,121,.08);
  --errorBorder: #725252;
  --errorBg: rgba(235,150,150,.08);
  --font: 'IBM Plex Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Yu Gothic UI', Meiryo, sans-serif;
  --mono: 'JetBrains Mono', 'Cascadia Code', 'SFMono-Regular', Consolas, monospace;
}

:root[data-theme='light'] {
  color-scheme: light;
  --bg: #f5f5f5;
  --panel: #ffffff;
  --panel-deep: #f5f5f5;
  --surface: #ffffff;
  --surfaceHover: #ededf0;
  --border: #d8d8df;
  --track: #e5e5e9;
  --text: #18181b;
  --muted: #60606b;
  --faint: #6d6d77;
  --green: #006b1d;
  --green-soft: #006b1d;
  --accent: #006b1d;
  --accentHover: #005818;
  --accentText: #ffffff;
  --accentBorder: #78a683;
  --controlBorder: #858590;
  --amber: #806021;
  --red: #ad3d3d;
  --warningBorder: #c9b27f;
  --warningBg: rgba(128,96,33,.07);
  --errorBorder: #c99494;
  --errorBg: rgba(173,61,61,.07);
  --map-backdrop: rgb(24 24 27 / .3);
}

* {
  box-sizing:border-box
}
html {
  background:var(--bg);
  scroll-padding-top:90px
}
body {
  margin:0;
  background:var(--bg);
  color:var(--text);
  font:15px/1.8 var(--font);
  -webkit-font-smoothing:antialiased
}
button,input,select,textarea {
  font:inherit
}
a {
  color:inherit;
  text-decoration:none
}
button {
  color:inherit;
  cursor:pointer
}
button:disabled {
  opacity:.42;
  cursor:not-allowed
}
button,a,summary {
  -webkit-tap-highlight-color:transparent;
  touch-action:manipulation
}
:where(button,a,summary,input,select,textarea):focus-visible {
  outline:2px solid var(--green);
  outline-offset:4px
}
h1,h2,h3,p {
  margin:0
}
h1,h2,h3 {
  font-weight:600
}
h1 {
  letter-spacing:-.035em;
  line-height:1.5;
  font-size:36px
}
h1:focus,main:focus {
  outline:none
}
svg {
  vertical-align:middle;
  flex-shrink:0
}
input,select,textarea {
  min-width:0;
  background:var(--panel-deep);
  color:var(--text);
  border:1px solid var(--controlBorder);
  border-radius:10px
}
input,select {
  height:var(--control-height);
  min-height:var(--control-height);
  padding:0 12px;
}
select { cursor:pointer; }
input::placeholder,textarea::placeholder {
  color:var(--faint)
}
textarea {
  width:100%;
  padding:12px;
  resize:vertical;
  font:12px/1.8 var(--mono)
}
pre {
  white-space:pre-wrap;
  overflow-wrap:anywhere
}
[hidden] {
  display:none!important
}
.sr-only {
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0
}
.skip-link {
  position:fixed;
  top:-100px;
  left:20px;
  z-index:100;
  background:var(--green);
  color:var(--accentText);
  padding:10px 18px;
  border-radius:6px
}
.skip-link:focus {
  top:12px
}
.status-dot {
  width:6px;
  height:6px;
  display:inline-block;
  flex-shrink:0;
  border-radius:50%;
  background:var(--faint)
}
.status-dot.online {
  background:var(--green);
  box-shadow:none
}
.status-dot.error {
  background:var(--red)
}
main {
  max-width:1280px;
  padding:0 40px;
  margin:0 auto
}
.page {
  min-height:calc(100vh - 176px)
}
.feedback:has(>:not([hidden])) {
  padding-top:20px
}
.feedback {
  max-width:1376px;
  margin:auto
}
.eyebrow {
  color:var(--muted);
  font:12px/1.6 var(--font);
  letter-spacing:0
}
.muted {
  color:var(--muted);
  font-size:12px
}
.text-link {
  display:inline-flex;
  align-items:center;
  gap:16px;
  color:var(--text);
  font-size:13px
}
.text-link:hover {
  color:var(--text);
  text-decoration:underline;
  text-underline-offset:4px
}
.back-link {
  color:var(--muted);
  display:inline-block;
  font-size:12px
}
.back-link:hover {
  color:var(--green)
}
.button {
  display:inline-flex;
  justify-content:center;
  align-items:center;
  gap:9px;
  min-height:44px;
  padding:11px 16px;
  background:var(--panel);
  border:1px solid var(--controlBorder);
  color:var(--text);
  border-radius:10px;
  font-size:13px;
  font-weight:500;
  line-height:1.5;
  transition:background .14s,border-color .14s;
  white-space:nowrap
}
.button:hover:not(:disabled) {
  background:var(--surfaceHover);
  border-color:var(--controlBorder)
}
.button.primary {
  color:var(--accentText);
  background:var(--green);
  border-color:var(--green);
  font-weight:650
}
.button.primary:hover:not(:disabled) {
  background:var(--accentHover);
  border-color:var(--accentHover)
}
.button.small {
  min-height:36px;
  font-size:12px;
  padding:7px 12px
}
.button.wide {
  width:100%
}
.text-button {
  border:0;
  background:transparent;
  color:var(--muted);
  font-size:12px;
  padding:7px 0
}
.text-button:hover:not(:disabled) {
  color:var(--green)
}
.icon-button {
  display:inline-flex;
  justify-content:center;
  align-items:center;
  background:transparent;
  border:1px solid var(--border);
  color:var(--muted);
  border-radius:6px;
  width:35px;
  height:35px;
  font-size:20px
}
.icon-button:hover:not(:disabled) {
  background:var(--surfaceHover);
  color:var(--text)
}
.panel {
  background:var(--panel);
  border:1px solid var(--border);
  border-radius:12px;
  overflow:hidden;
  min-width:0
}
.panel-title-row {
  display:flex;
  align-items:center;
  gap:12px
}
.panel-title-row h2 {
  font-size:14px;
  font-weight:550
}
.small-badge {
  border:1px solid var(--border);
  border-radius:4px;
  padding:2px 7px;
  color:var(--muted);
  font:10px/1.6 var(--mono);
  white-space:nowrap
}
.section-kicker {
  color:var(--faint);
  font:10px/1.5 var(--mono);
  letter-spacing:1.5px
}
.section-kicker>span {
  color:var(--green);
  margin-left:7px
}
.difficulty {
  border:1px solid var(--border);
  color:var(--muted);
  padding:3px 9px;
  border-radius:4px;
  font-size:12px;
  white-space:nowrap
}
.exercise-diagram {
  display:block;
  width:100%;
  margin:19px 0
}
.diagram-devices {
  position:relative;
  display:grid;
  grid-template-columns:repeat(var(--diagram-devices,3),minmax(0,1fr));
  gap:12px;
  isolation:isolate
}
.diagram-devices::before {
  content:'';
  position:absolute;
  top:24px;
  left:calc(50% / var(--diagram-devices,3));
  right:calc(50% / var(--diagram-devices,3));
  height:1px;
  background:var(--border);
  z-index:-1
}
.diagram-device {
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:10px;
  min-width:0;
  color:var(--text);
  font-size:14px;
  line-height:1.5;
  text-align:center;
  overflow-wrap:anywhere
}
.diagram-device>svg {
  width:48px;
  height:48px;
  color:var(--muted);
  background:var(--panel)
}
.diagram-networks {
  display:grid;
  grid-template-columns:repeat(var(--diagram-links,2),minmax(0,1fr));
  gap:12px;
  margin-top:22px;
  padding-top:12px;
  border-top:1px solid var(--border);
  color:var(--muted);
  font-size:12px;
  line-height:1.6
}
.diagram-networks>span {
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:4px 10px;
  min-width:0
}
.exercise-diagram--shared .diagram-devices::before {
  display:none
}
.diagram-members {
  flex-basis:100%;
  text-align:center;
  color:var(--faint)
}
.diagram-networks code {
  font:12px/1.6 var(--mono);
  overflow-wrap:anywhere
}
.resume-banner {
  margin:0 0 25px;
  border:1px solid var(--border);
  border-radius:9px;
  background:var(--panel);
  padding:18px 22px;
  display:flex;
  align-items:center;
  gap:16px
}
.resume-banner>span:nth-child(2) {
  flex:1
}
.resume-banner strong {
  display:block;
  font-size:13px;
  font-weight:550
}
.resume-banner span span {
  display:block;
  font-size:11px;
  color:var(--muted)
}
.detail-page,.saved-page {
  max-width:1160px;
  margin:auto;
  padding:32px 0 40px
}
.detail-heading {
  padding:28px 0 32px;
  max-width:850px
}
.detail-heading h1 {
  margin:12px 0
}
.detail-heading>p:last-child {
  color:var(--muted);
  font-size:13px
}
.detail-layout {
  display:grid;
  grid-template-columns:minmax(0,1fr) 310px;
  gap:24px;
  align-items:start
}
.detail-section {
  padding:25px 29px;
  margin-bottom:20px
}
.detail-section h2 {
  font-size:16px;
  margin-bottom:15px
}
.detail-section h3 {
  font-size:13px;
  margin-top:23px
}
.detail-section>p {
  color:var(--muted);
  font-size:13px;
  line-height:2;
  white-space:pre-line
}
.detail-section ul {
  padding-left:21px;
  margin:12px 0 0;
  font-size:13px;
  color:var(--muted)
}
.detail-section li::marker {
  color:var(--green)
}
.detail-section li+li {
  margin-top:8px
}
.intro-guide {
  margin-top:24px;
  border-top:1px solid var(--border)
}
.intro-guide>summary {
  min-height:44px;
  padding:14px 0;
  color:var(--text);
  font-size:14px;
  cursor:pointer
}
.intro-guide-body {
  padding:4px 0;
  color:var(--muted);
  font-size:14px;
  line-height:1.9
}
.intro-guide-body ol {
  margin:0;
  padding-left:22px
}
.intro-guide-body li+li {
  margin-top:16px
}
.intro-guide-body li>strong {
  color:var(--text);
  font-weight:500
}
.intro-guide-body li>p {
  margin:4px 0 0
}
.intro-glossary {
  margin:12px 0 0
}
.intro-glossary>div {
  padding:12px 0;
  border-bottom:1px solid var(--border)
}
.intro-glossary dt {
  color:var(--text);
  font-weight:500
}
.intro-glossary dd {
  margin:4px 0 0
}
.intro-guide-note {
  margin:16px 0 0;
  font-size:13px
}
.exercise-entry {
  padding:27px 25px
}
.exercise-entry h2 {
  font-size:22px;
  margin:14px 0 24px;
  line-height:1.65
}
.exercise-entry dl {
  margin:0 0 25px
}
.exercise-entry dl>div+div {
  margin-top:17px
}
.exercise-entry dt {
  color:var(--faint);
  font-size:10px
}
.exercise-entry dd {
  font-size:12px;
  margin:4px 0 0
}
.exercise-entry>p {
  color:var(--faint);
  font-size:11px;
  margin-top:15px
}
.page-heading {
  padding:15px 0 35px
}
.page-heading h1 {
  margin:12px 0
}
.page-heading>p:last-child {
  color:var(--muted);
  font-size:13px
}
.saves-layout {
  display:grid;
  grid-template-columns:390px minmax(0,1fr);
  align-items:start;
  gap:24px
}
.save-current,.saves-panel {
  padding:25px
}
.save-current .panel-title-row {
  justify-content:space-between
}
.section-description {
  color:var(--muted);
  font-size:12px;
  margin-top:15px
}
#save-form {
  margin-top:25px
}
#save-form>label {
  font-size:12px;
  color:var(--muted)
}
.save-input-row {
  display:flex;
  gap:8px;
  margin-top:8px
}
.save-input-row input {
  width:100%;
  font-size:12px
}
.save-scope {
  padding:15px 0 20px;
  margin-bottom:17px;
  border-bottom:1px solid var(--border);
  color:var(--faint);
  font-size:11px
}
.saved-labs {
  margin-top:20px
}
.saved-lab {
  border-top:1px solid var(--border);
  padding:17px 0;
  display:flex;
  align-items:center;
  gap:15px
}
.saved-lab-info {
  flex:1;
  min-width:0
}
.saved-lab-name {
  display:block;
  overflow-wrap:anywhere;
  font-size:13px
}
.saved-lab-time {
  display:block;
  font:10px var(--mono);
  color:var(--faint);
  margin-top:5px
}
.saved-lab .button {
  min-height:44px;
  min-width:44px
}
.saves-import {
  margin-top:24px;
  padding-top:20px;
  border-top:1px solid var(--border)
}
.saves-import h3 {
  font-size:14px;
  margin:0 0 8px
}
.saves-import input[type="file"] {
  flex:1;
  min-width:0;
  min-height:44px;
  color:var(--muted);
  font-size:12px
}
.saved-lab-actions {
  display:flex;
  flex-shrink:0;
  gap:8px
}
.saved-lab .saved-lab-delete {
  color:var(--muted)
}
.saved-lab .saved-lab-delete:hover:not(:disabled),.button.danger {
  color:var(--red);
  border-color:var(--errorBorder)
}
.button.danger:hover:not(:disabled) {
  background:var(--errorBg)
}
.empty-copy {
  font-size:13px;
  color:var(--faint);
  padding:25px 0
}
/* Workspace: optional briefing, map, and one active tool. */
.lab-page {
  padding:23px 0 35px
}
.workspace-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px
}
.workspace-heading h1 {
  font-size:21px;
  margin-top:6px;
  line-height:1.6
}
.workspace-label {
  font:10px var(--mono);
  letter-spacing:1.5px;
  color:var(--faint);
  white-space:nowrap
}
.workspace-actions {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin:20px 0
}
.workspace-primary-actions,.workspace-secondary-actions,.mission-actions {
  display:flex;
  align-items:center;
  gap:8px
}
.mission-actions .button.wide {
  width:auto
}
.lab-layout {
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:20px;
  align-items:start
}
.lab-layout.briefing-open {
  grid-template-columns:290px minmax(0,1fr)
}
.workspace {
  min-width:0
}
.mission-panel {
  padding:22px 22px 0
}
.mission-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:15px
}
.mission-heading .icon-button {
  width:29px;
  height:29px;
  border-color:transparent
}
.mission-panel h2 {
  font-size:18px;
  line-height:1.8
}
.mission-description {
  margin-top:15px;
  color:var(--muted);
  font-size:12px;
  white-space:pre-line;
  line-height:1.95
}
.objective-box {
  padding-left:12px;
  margin:23px 0;
  border-left:2px solid var(--border)
}
.small-label {
  font-size:10px;
  color:var(--faint);
  letter-spacing:.7px
}
.objective-box ul {
  list-style:none;
  padding:0;
  margin:9px 0 0;
  font-size:12px;
  color:var(--text)
}
.objective-box li+li {
  margin-top:9px
}
.help-section {
  border-top:1px solid var(--border);
  margin:0 -22px
}
.disclosure-button {
  display:flex;
  align-items:center;
  justify-content:space-between;
  width:100%;
  padding:17px 22px;
  border:0;
  background:transparent;
  color:var(--muted);
  font-size:12px
}
.disclosure-button>span:first-child {
  display:inline-flex;
  align-items:center;
  gap:8px
}
.hint-symbol {
  border:1px solid var(--faint);
  border-radius:50%;
  width:17px;
  height:17px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font:11px var(--mono)
}
.hints {
  padding:0 22px 20px 40px;
  color:var(--muted);
  font-size:12px;
  margin:0
}
.hints li+li {
  margin-top:15px
}
.solution-details {
  border-top:1px solid var(--border);
  color:var(--faint);
  font-size:11px
}
.solution-details summary,.command-reference summary {
  padding:13px 22px;
  cursor:pointer
}
.solution-copy {
  padding:0 22px 22px;
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  color:var(--muted)
}
.prerequisite {
  color:var(--amber);
  font-size:13px;
  border:1px solid var(--warningBorder);
  background:var(--warningBg);
  padding:13px 17px;
  margin:0 0 18px;
  border-radius:7px
}
.topology-toolbar {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:15px;
  padding:14px 19px;
  border-bottom:1px solid var(--border)
}
.lab-status {
  font-size:11px;
  color:var(--faint)
}
.lab-status.running {
  color:var(--green)
}
.topology-footer {
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:12px;
  padding:11px 18px;
  border-top:1px solid var(--border)
}
.traffic-controls { display:flex;align-items:center;flex-wrap:wrap;gap:6px 14px;padding:8px 18px;border-top:1px solid var(--border);font-size:12px; }
.traffic-toggle { display:inline-flex;align-items:center;gap:9px;min-height:44px;color:var(--text);cursor:pointer; }
.traffic-toggle input { width:20px;height:20px;min-height:20px;accent-color:var(--accent); }
#map-open-capture { min-height:44px;margin-left:auto; }
.traffic-status { flex-basis:100%;color:var(--muted);font-size:12px; }
.traffic-count { color:var(--faint);font-size:11px;line-height:1.8; }
.traffic-note { margin:0;padding:10px 18px;border-bottom:1px solid var(--border);color:var(--muted);font-size:11px;line-height:1.8; }
@media (max-width:600px) { .traffic-controls { padding:8px 14px;column-gap:8px; }.traffic-note { padding-inline:14px; } }
.free-editor { border-top:1px solid var(--border);font-size:12px; }
.free-editor>summary { display:flex;align-items:center;min-height:44px;padding:0 18px;color:var(--text);cursor:pointer; }
.free-editor-body { display:grid;gap:8px;padding:0 18px 12px; }
.free-editor-note { margin:0;color:var(--muted);line-height:1.8; }
.free-editor-row { display:flex;align-items:center;flex-wrap:wrap;gap:6px 8px; }
.free-editor-label { min-width:7em;color:var(--muted); }
.free-editor select { min-height:44px;max-width:100%; }
.free-heading { margin-top:28px; }
@media (max-width:600px) { .free-editor>summary { padding:0 14px; }.free-editor-body { padding:0 14px 12px; }.free-editor-label { flex-basis:100%; } }
.map-instruction {
  display:flex;
  align-items:center;
  gap:8px;
  font-size:11px;
  color:var(--faint)
}
.selection-dot {
  display:inline-block;
  width:6px;
  height:6px;
  border:1px solid var(--green);
  border-radius:50%
}
.probe-actions {
  display:flex;
  align-items:center;
  gap:7px
}
.probe-status {
  font:10px var(--mono);
  color:var(--faint);
  margin-right:5px
}
.probe-status.success,.success {
  color:var(--green)
}
.probe-status.failure,.failure {
  color:var(--amber)
}
.probe-output {
  background:var(--termBg);
  border-top:1px solid var(--border);
  font:11px/1.8 var(--mono);
  color:var(--muted);
  max-height:150px;
  overflow:auto;
  padding:14px 18px;
  margin:0
}
.workbench {
  margin-top:18px
}
.workbench-tabs {
  display:flex;
  gap:25px;
  min-height:49px;
  padding:0 19px;
  border-bottom:1px solid var(--border)
}
.workbench-tabs>button {
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size:12px;
  background:transparent;
  border:0;
  border-bottom:2px solid transparent;
  padding:12px 3px;
  color:var(--faint);
  white-space:nowrap
}
.workbench-tabs>button[aria-selected=true] {
  border-color:var(--green);
  color:var(--green-soft)
}
.workbench-tabs>button>span {
  font:16px var(--mono)
}
.terminal-toolbar {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:10px 19px;
  background:var(--panel-deep);
  border-bottom:1px solid var(--border)
}
.terminal-identity {
  display:flex;
  align-items:center;
  gap:8px;
  font-size:12px;
  min-width:0;
  flex-wrap:wrap
}
.terminal-indicator {
  display:inline-block;
  width:5px;
  height:5px;
  border-radius:50%;
  background:var(--faint)
}
.terminal-indicator.connected {
  background:var(--green)
}
.terminal-platform {
  font:10px var(--mono);
  color:var(--faint);
  margin-left:7px
}
.terminal-connection {
  color:var(--faint);
  font-size:10px;
  margin-left:5px
}
.terminal-wrap {
  position:relative;
  background:var(--termBg);
  padding:14px
}
#terminal {
  height:275px;
  width:100%
}
.terminal-session {
  width:100%;
  height:100%;
  min-width:0
}
.xterm .xterm-viewport {
  scrollbar-width:thin;
  scrollbar-color:var(--controlBorder) var(--termBg)
}
.terminal-placeholder {
  position:absolute;
  inset:0;
  padding:20px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  color:var(--faint);
  text-align:center;
  background:var(--termBg);
  pointer-events:none
}
.terminal-placeholder p {
  font-size:13px;
  color:var(--muted);
  margin-top:15px
}
.terminal-placeholder>span {
  font-size:11px;
  margin-top:6px;
  color:var(--faint)
}
.command-reference {
  border-top:1px solid var(--border);
  font-size:11px;
  color:var(--faint)
}
.command-reference dl {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:15px;
  padding:0 22px 18px;
  margin:0
}
.command-reference code {
  font:11px var(--mono);
  color:var(--text)
}
.command-reference dd {
  margin:5px 0 0;
  font-size:10px
}
.capture-toolbar {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:15px;
  padding:15px 19px
}
.capture-controls {
  display:flex;
  align-items:center;
  gap:8px
}
.capture-controls select {
  
  max-width:240px;
  font-size:11px;
  height:var(--control-height);
  min-height:var(--control-height);
}
.capture-controls .button,#capture-download {
  min-height:44px;
  min-width:44px
}
.capture-record-dot {
  width:5px;
  height:5px;
  background:var(--green);
  border-radius:50%
}
.capture-filter-row {
  display:flex;
  align-items:center;
  gap:12px;
  padding:0 19px 15px
}
.filter-input {
  flex:1;
  display:flex;
  align-items:center;
  gap:8px;
  min-width:0;
  background:var(--panel-deep);
  border:1px solid var(--border);
  border-radius:6px;
  padding-left:10px;
  color:var(--faint)
}
.filter-input input {
  width:100%;
  border:0;
  font-size:11px;

  height:var(--control-height);
  min-height:var(--control-height);
}
.capture-count {
  color:var(--faint);
  font:10px var(--mono);
  white-space:nowrap
}
.packet-table-wrap {
  background:var(--panel-deep);
  border-top:1px solid var(--border);
  border-bottom:1px solid var(--border);
  min-height:215px;
  max-height:360px;
  overflow:auto
}
.packet-table {
  width:100%;
  border-collapse:collapse;
  table-layout:fixed;
  text-align:left;
  font:11px/1.65 var(--mono)
}
.packet-table th {
  position:sticky;
  top:0;
  z-index:1;
  padding:10px 12px;
  background:var(--panel);
  color:var(--muted);
  font:11px var(--font);
  border-bottom:1px solid var(--border)
}
.packet-table th:first-child {
  width:115px
}
.packet-table th:nth-child(2) {
  width:31%
}
.packet-table th:nth-child(3) {
  width:80px
}
.packet-table th:last-child {
  width:66px
}
.packet-table td {
  padding:9px 12px;
  color:var(--muted);
  border-bottom:1px solid var(--border);
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap
}
.packet-table tr {
  cursor:pointer
}
.packet-table tr.selected td {
  background:var(--track);
  color:var(--text)
}
.packet-table tbody tr:hover td {
  background:var(--surfaceHover)
}
.packet-table tbody tr:focus-visible {
  outline:2px solid var(--green);
  outline-offset:-2px
}
.protocol-tag {
  font:9px var(--mono);
  color:var(--muted);
  border:1px solid var(--border);
  border-radius:3px;
  padding:2px 4px
}
.capture-empty {
  width:100%;
  max-width:100%;
  min-height:215px;
  padding:33px 20px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  color:var(--faint);
  font-size:13px
}
.capture-empty p {
  color:var(--muted);
  font-size:14px;
  margin:0 0 6px
}
.packet-detail {
  padding:15px 19px
}
.packet-detail-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  color:var(--faint);
  font-size:10px
}
.packet-detail pre {
  margin:12px 0 0;
  max-height:230px;
  overflow:auto;
  font:11px/1.8 var(--mono);
  color:var(--muted)
}
.tool-warning {
  color:var(--amber);
  font-size:12px;
  padding:0 19px 15px;
  white-space:pre-wrap
}
.http-view {
  padding:20px
}
.http-intro h3 {
  font-size:14px
}
.http-intro p {
  margin:7px 0 20px;
  color:var(--muted);
  font-size:12px
}
.http-request-line {
  display:flex;
  gap:8px
}
.http-request-line select {
  font:12px var(--mono);
  max-width:100px
}
.http-request-line input {
  width:100%;
  flex:1;
  font:12px var(--mono)
}
.http-fields {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:20px;
  margin-top:20px
}
.http-fields>label {
  font-size:12px;
  color:var(--muted);
  min-width:0
}
.http-fields>label>span {
  font-size:10px;
  color:var(--faint);
  margin-left:10px
}
.http-fields textarea {
  margin-top:9px;
  min-height:100px
}
.http-response-heading {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:15px;
  margin:23px 0 12px
}
.http-response-heading h3 {
  font-size:13px
}
.http-response-heading>span {
  font:11px var(--mono)
}
.http-response {
  min-height:110px;
  max-height:360px;
  overflow:auto;
  background:var(--panel-deep);
  border:1px solid var(--border);
  border-radius:7px
}
.http-response pre {
  margin:0;
  padding:15px;
  color:var(--muted);
  font:11px/1.8 var(--mono)
}
#http-response-headers {
  border-bottom:1px solid var(--border);
  color:var(--muted)
}
.grade-result {
  padding:18px 22px;
  border:1px solid var(--warningBorder);
  background:var(--panel);
  border-radius:8px;
  margin-bottom:20px
}
.grade-result.passed {
  border-color:var(--border);
  background:var(--panel)
}
.grade-result>strong {
  color:var(--amber);
  font-size:14px
}
.grade-result.passed>strong {
  color:var(--green)
}
.grade-result ul {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px 25px;
  margin:13px 0 0;
  padding:0;
  list-style:none
}
.grade-result li {
  display:flex;
  gap:9px;
  align-items:start;
  font-size:12px;
  color:var(--muted)
}
.check-mark {
  color:var(--green)
}
.check-mark.failed {
  color:var(--amber)
}
.grade-detail {
  display:block;
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  font:10px/1.8 var(--mono);
  color:var(--faint);
  margin-top:4px
}
.notice,.operation {
  display:flex;
  align-items:center;
  gap:13px;
  font-size:13px;
  padding:14px 18px;
  margin-bottom:16px;
  border:1px solid var(--border);
  border-radius:10px;
  background:var(--panel);
  color:var(--text);
  overflow-wrap:anywhere
}
.notice {
  align-items:start;
  justify-content:space-between;
  white-space:pre-wrap
}
.notice.error {
  background:var(--errorBg);
  border-color:var(--errorBorder);
  color:var(--red)
}
.notice-close {
  border:0;
  background:transparent;
  color:inherit;
  font-size:23px;
  padding:0 3px;
  line-height:1.2
}
.spinner {
  height:14px;
  width:14px;
  border:2px solid var(--border);
  border-top-color:var(--green);
  border-radius:50%;
  animation:spin .85s linear infinite;
  flex-shrink:0
}
@keyframes spin {
  to {
    transform:rotate(360deg)
  }
}
.page-footer {
  padding:23px 0 25px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:15px;
  border-top:1px solid var(--border);
  font-size:11px;
  color:var(--faint)
}
.page-footer>span {
  font:8px var(--mono);
  letter-spacing:1.5px
}
dialog {
  max-width:min(480px,calc(100vw - 32px));
  padding:30px;
  border:1px solid var(--border);
  border-radius:12px;
  color:var(--text);
  background:var(--panel)
}
dialog::backdrop {
  background:var(--map-backdrop)
}
dialog h2 {
  font-size:22px;
  margin:13px 0;
  line-height:1.6
}
dialog p {
  color:var(--muted);
  font-size:13px
}
.dialog-actions {
  display:flex;
  justify-content:end;
  gap:10px;
  margin-top:25px
}
@media (max-width:1100px) {
  .lab-layout.briefing-open {
    grid-template-columns:260px minmax(0,1fr);
    gap:15px
  }
  .command-reference dl {
    grid-template-columns:1fr 1fr
  }
  .saves-layout {
    grid-template-columns:330px minmax(0,1fr)
  }
}
@media (max-width:800px) {
  main {
    padding:0 22px
  }
  .detail-layout {
    grid-template-columns:minmax(0,1fr);
    gap:18px
  }
  .detail-section {
    padding:22px
  }
  .exercise-entry {
    padding:23px
  }
  .detail-heading h1 {
    font-size:26px
  }
  .lab-layout.briefing-open {
    grid-template-columns:1fr
  }
  .mission-panel {
    padding-top:17px
  }
  .workspace-heading h1 {
    font-size:18px
  }
  .workspace-label {
    display:none
  }
  .workspace-actions {
    align-items:start
  }
  .workspace-primary-actions {
    flex-wrap:wrap
  }
  .mission-actions .button {
    font-size:11px;
    padding:8px 11px
  }
  .workspace-secondary-actions {
    flex-shrink:0
  }
  .saves-layout {
    grid-template-columns:1fr
  }
}
@media (max-width:600px) {
  h1 {
    font-size:26px
  }
  main {
    padding:0 17px
  }
  .page {
    min-height:calc(100vh - 200px)
  }
  .eyebrow {
    font-size:9px;
    letter-spacing:1.6px
  }
  .resume-banner {
    padding:15px;
    gap:12px
  }
  .detail-page,.saved-page {
    padding-top:22px
  }
  .detail-heading {
    padding-top:22px
  }
  .detail-heading h1 {
    font-size:24px
  }
  .detail-heading>p:last-child {
    font-size:12px
  }
  .detail-layout {
    display:flex;
    flex-direction:column
  }
  .detail-layout>div,.detail-layout>aside {
    width:100%
  }
  .detail-section {
    padding:23px;
    margin-bottom:17px
  }
  .diagram-networks {
    grid-template-columns:minmax(0,1fr);
    gap:8px
  }
  .diagram-networks>span {
    justify-content:space-between
  }
  .detail-section>p {
    font-size:13px
  }
  .exercise-entry h2 {
    font-size:21px
  }
  .exercise-entry dl {
    display:flex;
    flex-wrap:wrap;
    gap:20px
  }
  .exercise-entry dl>div+div {
    margin-top:0
  }
  .exercise-entry dd {
    font-size:11px
  }
  .page-heading {
    padding:10px 0 28px
  }
  .save-current,.saves-panel {
    padding:22px
  }
  .save-input-row {
    flex-wrap:wrap
  }
  .save-input-row .button {
    width:100%;
    min-height:42px
  }
  .saved-lab {
    gap:10px
  }
  .saved-lab-name {
    font-size:12px
  }
  .saved-lab button {
    min-height:44px
  }
  .lab-page {
    padding-top:20px
  }
  .workspace-heading h1 {
    font-size:18px;
    margin-top:9px
  }
  .workspace-actions {
    flex-wrap:wrap;
    margin-top:17px;
    gap:12px
  }
  .workspace-primary-actions {
    display:contents
  }
  .mission-actions {
    width:100%
  }
  .mission-actions .button {
    flex:1;
    font-size:11px;
    padding:10px 8px;
    min-height:41px
  }
  .workspace-secondary-actions {
    margin-left:auto
  }
  .workspace-actions>div>.button,.workspace-secondary-actions .button {
    min-height:38px
  }
  .workspace-secondary-actions .icon-button {
    height:38px
  }
  .topology-toolbar {
    padding:13px 15px
  }
  .panel-title-row {
    gap:9px
  }
  .panel-title-row h2 {
    font-size:13px
  }
  .small-badge {
    font-size:9px
  }
  .topology-footer {
    padding:14px;
    gap:12px
  }
  .map-instruction {
    font-size:10px
  }
  .probe-actions {
    width:100%;
    justify-content:end;
    gap:7px
  }
  .probe-status {
    margin-right:auto;
    font-size:9px
  }
  .probe-actions .button {
    min-height:36px
  }
  .workbench-tabs {
    gap:18px;
    padding:0 13px
  }
  .workbench-tabs>button {
    font-size:11px;
    padding:14px 0;
    gap:5px
  }
  .workbench-tabs>button>svg {
    width:13px
  }
  .terminal-toolbar {
    padding:10px 13px
  }
  .terminal-identity {
    gap:6px;
    font-size:11px
  }
  .terminal-platform {
    display:none
  }
  .terminal-connection {
    font-size:9px;
    margin-left:0
  }
  .terminal-toolbar .text-button {
    font-size:11px
  }
  .terminal-wrap {
    padding:10px
  }
  #terminal {
    height:310px
  }
  .terminal-placeholder p {
    font-size:12px
  }
  .terminal-placeholder>span {
    font-size:10px
  }
  .command-reference dl {
    grid-template-columns:1fr;
    gap:14px;
    padding:0 17px 18px
  }
  .command-reference summary {
    padding:13px 17px
  }
  .capture-toolbar {
    flex-wrap:wrap;
    gap:10px;
    padding:14px
  }
  .capture-controls {
    flex-wrap:wrap;
    gap:8px;
    width:100%
  }
  .capture-controls select {
    max-width:none;
    width:100%;
    
    font-size:12px;
  height:var(--control-height);
  min-height:var(--control-height);
}
  .capture-controls .button {
    min-height:44px
  }
  .capture-toolbar>.text-button {
    margin-left:auto
  }
  .capture-filter-row {
    flex-wrap:wrap;
    padding:0 14px 14px;
    gap:8px
  }
  .filter-input {
    flex-basis:100%
  }
  .filter-input input {
    font-size:11px;

  height:var(--control-height);
  min-height:var(--control-height);
}
  .capture-count {
    margin-left:auto
  }
  .packet-table {
    width:710px;
    font-size:11px
  }
  .packet-table th {
    padding:11px 10px
  }
  .packet-table th:nth-child(2) {
    width:220px
  }
  .capture-empty {
    width:100%;
    max-width:100%;
    padding:33px 23px;
    font-size:13px
  }
  .packet-detail {
    padding:15px
  }
  .packet-detail pre {
    font-size:11px
  }
  .packet-detail-heading {
    font-size:9px
  }
  .http-view {
    padding:17px 14px
  }
  .http-intro p {
    font-size:12px
  }
  .http-request-line {
    flex-wrap:wrap
  }
  .http-request-line select {
    flex:0 0 120px;
    width:120px;
    min-width:120px;
    max-width:120px;
    font-size:12px;
    padding:0 10px
  }
  .http-request-line input {
    font-size:12px;
    padding:0 8px
  }
  .http-request-line .button {
    width:100%;
    min-height:40px
  }
  .http-fields {
    grid-template-columns:1fr;
    gap:17px
  }
  .http-fields textarea {
    font-size:12px
  }
  .http-response-heading {
    align-items:baseline
  }
  .http-response-heading>span {
    font-size:10px;
    text-align:right
  }
  .http-response pre {
    font-size:11px
  }
  .grade-result {
    padding:17px
  }
  .grade-result ul {
    grid-template-columns:1fr
  }
  .grade-detail {
    font-size:10px
  }
  .notice,.operation {
    font-size:12px;
    padding:13px
  }
  .page-footer {
    flex-wrap:wrap;
    justify-content:center;
    gap:10px;
    padding:24px 0
  }
  .page-footer>p {
    width:100%;
    text-align:center
  }
  .page-footer>span:last-child {
    display:none
  }
  dialog {
    padding:23px
  }
  dialog h2 {
    font-size:20px
  }
  .dialog-actions {
    flex-wrap:wrap
  }
}
@media (max-width:350px) {
  main {
    padding:0 12px
  }
  .workbench-tabs {
    gap:13px
  }
  .workbench-tabs>button {
    font-size:10px
  }
  .probe-actions .button {
    padding-right:9px;
    padding-left:9px
  }
}
@media (max-width:600px) {
  .mission-actions .button {
    min-width:0;
    white-space:normal
  }
  .mission-actions .button>span {
    min-width:0
  }
  .workspace-secondary-actions {
    gap:7px
  }
  .workspace-actions {
    column-gap:8px
  }
}
.notice-content {
  min-width:0
}
.notice-content>span {
  display:block
}
.notice-content>.text-link {
  margin-top:8px;
  font-size:12px
}
.save-status-help {
  margin-top:12px;
  padding:11px 13px;
  border:1px solid var(--border);
  border-radius:6px;
  color:var(--muted);
  background:var(--panel-deep);
  font-size:11px
}
@media (max-width:600px) {
  .topology-toolbar {
    align-items:flex-start
  }
  .lab-status {
    font-size:10px;
    text-align:right;
    max-width:110px
  }
  .save-status-help {
    font-size:12px
  }
}
#terminal-node-select {
  
  max-width:190px;
  min-width:110px;
  padding:0 25px 0 9px;
  border-color:var(--border);
  background:var(--panel-deep);
  color:var(--text);
  font-size:12px;
  height:var(--compact-control-height);
  min-height:var(--compact-control-height);
}
.device-details {
  border-top:1px solid var(--border);
  font-size:11px;
  color:var(--muted)
}
.device-details summary {
  cursor:pointer;
  padding:12px 22px
}
.device-details summary>span {
  margin-left:17px;
  color:var(--faint);
  font-size:10px
}
.device-details-body {
  padding:0 22px 18px
}
.device-details-body>p {
  margin-bottom:9px
}
.device-source {
  color:var(--faint);
  font-size:10px
}
#device-interfaces {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
  gap:10px;
  margin:15px 0 0
}
#device-interfaces>div {
  border:1px solid var(--border);
  border-radius:6px;
  padding:10px 12px;
  min-width:0;
  background:var(--panel-deep)
}
#device-interfaces dt {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  font:11px var(--mono);
  color:var(--text)
}
.interface-state {
  font:10px var(--font);
  color:var(--faint)
}
#device-interfaces dd {
  margin:8px 0 0;
  font:11px/1.7 var(--mono);
  color:var(--muted);
  overflow-wrap:anywhere
}
@media (max-width:600px) {
  #terminal-node-select {
    max-width:145px;
    min-width:100px;
    font-size:11px;
  height:var(--compact-control-height);
  min-height:var(--compact-control-height);
}
  .device-details summary {
    padding:13px 17px
  }
  .device-details summary>span {
    display:block;
    margin:5px 0 0 14px;
    font-size:10px
  }
  .device-details-body {
    padding:0 17px 18px
  }
  #device-interfaces {
    grid-template-columns:minmax(0,1fr)
  }
}
@media (prefers-reduced-motion:reduce) {
  *,*::before,*::after {
    animation-duration:.001ms!important;
    transition-duration:.001ms!important;
    scroll-behavior:auto!important
  }
}
/* A concise heading and border-separated exercise row match the learning catalog. */
.catalog-page {
  max-width:1200px;
  margin:auto;
  padding:48px 0 56px;
}
.catalog-intro {
  padding:0 0 40px;
}
.catalog-intro h1 {
  font-size:36px;
  font-weight:600;
  line-height:1.5;
  letter-spacing:-.035em;
}
.intro-copy {
  margin-top:16px;
  color:var(--muted);
  font-size:15px;
  line-height:1.9;
}
.section-heading {
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:16px;
  padding:24px 0 18px;
  border-top:1px solid var(--border);
}
.section-heading h2 {
  font-size:20px;
  font-weight:500;
}
.exercise-card {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:36px;
  padding:26px 18px;
  border-block:1px solid var(--border);
  background:transparent;
  border-radius:0;
}
.exercise-card:hover,.exercise-card:focus-visible {
  background:var(--surfaceHover);
}
.exercise-card+.exercise-card {
  border-top:0;
}
.exercise-current {
  color:var(--accent);
  white-space:nowrap;
}
.exercise-entry .button+.button {
  margin-top:10px;
}
.exercise-entry>.exercise-switch-note {
  margin:0 0 16px;
  padding:11px 13px;
  border:1px solid var(--warningBorder);
  border-radius:6px;
  background:var(--warningBg);
  color:var(--amber);
  font-size:12px;
  line-height:1.8;
}
.saved-lab-exercise {
  display:block;
  margin-top:4px;
  color:var(--muted);
  font-size:11px;
  overflow-wrap:anywhere;
}
.exercise-copy {
  min-width:0;
  flex:1;
}
.card-meta {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:12px;
  color:var(--muted);
  font-size:12px;
}
.exercise-copy h3 {
  font-size:18px;
  line-height:1.7;
  font-weight:500;
  margin:14px 0 8px;
}
.exercise-copy>p {
  color:var(--muted);
  font-size:14px;
  line-height:1.9;
  max-width:700px;
}
.exercise-summary {
  display:block;
  margin-top:13px;
  color:var(--faint);
  font-size:12px;
}
.exercise-action {
  display:inline-flex;
  align-items:center;
  justify-content:space-between;
  flex-shrink:0;
  gap:20px;
  min-height:44px;
  color:var(--text);
  font-size:13px;
}
.exercise-action>span {
  font-size:22px;
  font-weight:400;
}
.exercise-card:hover .exercise-action>span,.exercise-card:focus-visible .exercise-action>span {
  color:var(--accent);
}
.exercise-card:focus-visible {
  outline:2px solid var(--accent);
  outline-offset:5px;
}
.detail-heading>p:last-child,.page-heading>p:last-child {
  font-size:15px;
  line-height:1.9;
}
.detail-section>p,.detail-section ul {
  font-size:14px;
}
.detail-page,.saved-page {
  max-width:1200px;
  padding-top:36px;
}
.detail-heading {
  padding-top:28px;
  padding-bottom:40px;
}
.detail-heading h1 {
  margin-top:12px;
  font-size:32px;
}
.exercise-entry h2 {
  font-size:20px;
  margin-top:0;
}
.exercise-entry dt {
  font-size:12px;
}
.exercise-entry dd {
  font-size:13px;
}
.small-label,.section-kicker {
  font-size:12px;
  letter-spacing:0;
  font-family:var(--font);
}
.resume-banner {
  background:var(--panel);
  border-color:var(--border);
}
.resume-banner strong {
  font-size:14px;
}
.resume-banner span span {
  font-size:12px;
}
.button.primary {
  color:var(--accentText);
}
.objective-box {
  border-left-color:var(--border);
}
.workbench-tabs>button[aria-selected=true] {
  color:var(--text);
}
.page-footer>span {
  font:11px var(--font);
  letter-spacing:0;
}
.page-footer {
  font-size:12px;
}
.filter-input {
  border-color:var(--controlBorder);
}
#terminal-node-select {
  background:var(--panel-deep);
  border-color:var(--controlBorder);

  height:var(--compact-control-height);
  min-height:var(--compact-control-height);
}
.protocol-tag {
  color:var(--muted);
}
.terminal-placeholder {
  color:var(--faint);
}
::selection {
  background:var(--accent);
  color:var(--accentText);
}
@media (max-width:800px) {
  main {
    padding:0 24px;
  }
  .detail-heading h1 {
    font-size:28px;
  }
  .exercise-card {
    padding-inline:12px;
    gap:24px;
  }
}
@media (max-width:600px) {
  main {
    padding-inline:20px;
  }
  .catalog-page {
    padding:32px 0 44px;
  }
  .catalog-intro {
    padding-bottom:30px;
  }
  .catalog-intro h1 {
    font-size:30px;
  }
  .intro-copy {
    font-size:14px;
    margin-top:14px;
  }
  .section-heading {
    padding-top:22px;
  }
  .exercise-card {
    align-items:stretch;
    flex-direction:column;
    gap:18px;
    padding:24px 4px;
  }
  .exercise-copy h3 {
    font-size:18px;
  }
  .exercise-copy>p {
    font-size:14px;
  }
  .card-meta {
    font-size:11px;
    gap:10px;
  }
  .exercise-action {
    align-self:flex-end;
    gap:24px;
  }
  .detail-heading h1 {
    font-size:26px;
  }
  .detail-heading>p:last-child {
    font-size:14px;
  }
  .exercise-entry h2 {
    font-size:20px;
  }
  .mission-actions .button {
    min-height:44px;
  }
  .workspace-actions>div>.button,.workspace-secondary-actions .button {
    min-height:40px;
  }
}
@media (max-width:350px) {main {
    padding-inline:16px;
  }
  .catalog-intro h1 {
    font-size:28px;
  }
}


/* Shared header: a stable two-row layout on smaller screens. */
.site-header {
  min-height:76px;
  padding:0 max(40px,calc((100vw - 1200px)/2));
  display:flex;
  align-items:center;
  gap:32px;
  border-bottom:1px solid var(--border);
  background:var(--bg);
}
.brand { display:inline-flex;align-items:center;gap:10px;min-width:0;line-height:1.4;font-size:18px;letter-spacing:-.04em;white-space:nowrap; }
.brand>span { min-width:0;overflow:hidden;text-overflow:ellipsis; }
.brand svg { width:28px;height:28px;color:var(--accent); }
.brand strong { font-weight:500;color:var(--muted); }
.site-nav { display:flex;align-self:stretch;align-items:stretch;gap:28px;margin-left:16px; }
.site-nav a { display:flex;align-items:center;min-height:44px;border-bottom:2px solid transparent;color:var(--muted);font-size:13px;white-space:nowrap; }
.site-nav a[aria-current] { border-color:var(--accent);color:var(--text); }
.site-nav a:hover { color:var(--text); }
.header-tools { display:flex;align-items:center;gap:14px;margin-left:auto;flex-shrink:0; }
.local-badge { display:flex;align-items:center;gap:8px;color:var(--muted);font-size:11px;white-space:nowrap; }
.header-buttons { display:flex;align-items:center;gap:4px; }
.theme-toggle,.connection-retry { display:inline-flex;align-items:center;justify-content:center;width:44px;min-width:44px;height:44px;padding:0;border:0;border-radius:8px;color:var(--muted);background:transparent;font-size:21px;line-height:1; }
.theme-toggle:hover:not(:disabled),.connection-retry:hover:not(:disabled) { color:var(--text);background:var(--surfaceHover); }
.theme-icon--moon { display:none; }
:root[data-theme='light'] .theme-icon--sun { display:none; }
:root[data-theme='light'] .theme-icon--moon { display:block; }
.mission-description,.hints { font-size:14px;line-height:1.9; }
.objective-box ul { font-size:13px;line-height:1.9; }
.solution-copy { font-size:13px;line-height:1.9; }
.mission-actions .button { min-height:44px;font-size:13px;padding:11px 16px; }
.workspace-primary-actions,.workspace-secondary-actions { gap:10px; }
.workspace-actions { gap:16px; }
.workspace-heading h1 { font-size:21px;letter-spacing:-.025em; }
.terminal-toolbar { padding-block:8px; }
.terminal-connection { font-size:11px; }
#terminal-reconnect { min-height:40px;padding:7px 8px; }
.capture-controls select,.filter-input input { font-size:13px; }
.saved-lab-name { font-size:14px; }
.saved-lab-time { font-size:11px; }
.capture-empty { width:100%;max-width:100%; }
.terminal-placeholder,.terminal-placeholder p,.terminal-placeholder>span { color:var(--termDim); }
.probe-output { background:var(--panel-deep); }
@media (max-width:1050px) {
  .site-header { gap:24px;padding-inline:32px; }
  .site-nav { gap:20px;margin-left:0; }
  .header-tools { gap:8px; }
}
@media (max-width:900px) {
  main { padding-inline:24px; }
  .site-header { display:grid;grid-template-columns:minmax(0,1fr) auto;gap:0 16px;padding:12px 24px 0;min-height:0; }
  .brand { grid-column:1;grid-row:1; }
  .header-tools { grid-column:2;grid-row:1;margin:0; }
  .site-nav { grid-column:1/-1;grid-row:2;width:100%;height:48px;margin:10px 0 0;justify-content:flex-start;gap:32px; }
}
@media (max-width:600px) {
  main { padding-inline:20px; }
  .site-header { padding:10px 20px 0;column-gap:8px; }
  .brand { gap:8px;font-size:16px; }
  .brand-prefix { display:none; }
  .brand strong { color:var(--text);font-weight:600; }
  .brand svg { width:26px;height:26px; }
  .header-tools { gap:8px; }
  .header-buttons { gap:0; }
  #engine-label { position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap; }
  .site-nav { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;margin-top:6px; }
  .site-nav a { justify-content:center;font-size:12px; }
  .workspace-heading h1 { font-size:18px; }
  .workspace-actions { display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px 8px; }
  .workspace-primary-actions { display:contents; }
  .mission-actions { grid-column:1/-1;width:100%; }
  .mission-actions .button { flex:1;font-size:13px; }
  #toggle-mission { justify-self:start; }
  .workspace-secondary-actions { gap:8px;margin:0; }
  .workspace-secondary-actions .button,.workspace-secondary-actions .icon-button,#toggle-mission { min-height:44px;height:auto; }
  .workspace-secondary-actions .button { padding-inline:13px; }
  .mission-description,.hints { font-size:14px; }
  .save-input-row input,.http-request-line input,.http-request-line select,.http-fields textarea,.filter-input input,.capture-controls select,#terminal-node-select { font-size:16px; }
  #terminal-node-select { max-width:155px;min-width:100px;height:44px;min-height:44px; }
  .terminal-connection { font-size:10px; }
  .capture-controls .button { min-height:44px; }
}
@media (max-width:350px) {
  main { padding-inline:16px; }
  .site-header { padding-inline:16px; }
  .brand { font-size:15px; }
  .brand svg { width:24px;height:24px; }
}

/* Learning references share one optional panel beside the running terminal. */
.workspace-primary-actions { flex-wrap:wrap; }
.support-actions { display:flex;flex-wrap:wrap;gap:8px; }
.support-actions>.button { min-height:44px;font-size:13px; }
.lab-layout.briefing-open { grid-template-columns:340px minmax(0,1fr); }
.mission-panel { min-width:0;padding-bottom:18px; }
#support-title { margin:0;font-size:13px;font-weight:500;letter-spacing:0; }
.mission-heading .icon-button { width:44px;height:44px; }
.support-tabs { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;border-bottom:1px solid var(--border);margin-bottom:20px; }
.support-tabs>[role='tab'] { min-height:44px;padding:8px 4px;background:transparent;border:0;border-bottom:2px solid transparent;color:var(--muted);font-size:13px; }
.support-tabs>[aria-selected='true'] { border-bottom-color:var(--accent);color:var(--text); }
.support-tabs>button:hover { background:var(--surfaceHover); }
.support-views { max-height:720px;max-height:min(78svh,820px);overflow:auto;overflow-wrap:anywhere;scrollbar-width:thin;scrollbar-color:var(--controlBorder) transparent; }
.support-views>[role='tabpanel'] { min-width:0;padding:2px; }
#support-view-mission .help-section { margin:20px 0 0; }
#support-view-mission .disclosure-button { padding-inline:0; }
#support-view-mission .solution-details { margin-inline:0; }
.support-panel,.dictionary-shell { font-size:13px;line-height:1.8;min-width:0; }
.support-panel p,.dictionary-shell p { overflow-wrap:anywhere; }
.support-panel summary { min-height:44px;padding:10px 0;color:var(--text);cursor:pointer; }
.support-panel details { border-bottom:1px solid var(--border);margin-bottom:14px;padding-bottom:8px; }
.support-panel textarea { width:100%;min-height:88px;padding:10px 12px;resize:vertical;font-size:13px; }
.ai-intro { margin:0 0 14px;color:var(--muted); }
.ai-field { display:flex;flex-direction:column;gap:6px;margin:12px 0;color:var(--muted);font-size:13px; }
.ai-field>input:not([type='checkbox']),.ai-field>select { width:100%;min-width:0;font-size:13px; }
.ai-field--checkbox { flex-direction:row;align-items:center;justify-content:space-between;gap:12px;min-height:44px; }
.ai-field input[type='checkbox'] { width:20px;height:20px;min-height:20px;flex-shrink:0;accent-color:var(--accent); }
.ai-actions { display:flex;flex-wrap:wrap;gap:8px;margin:10px 0; }
.ai-button,.ai-external-link,.dictionary-copy,.dictionary-ask-ai,#dictionary-back,.dictionary-related button {
  display:inline-flex;justify-content:center;align-items:center;min-height:44px;max-width:100%;padding:8px 12px;border:1px solid var(--controlBorder);border-radius:8px;background:transparent;color:var(--text);font:inherit;line-height:1.6;cursor:pointer;
}
.ai-button:hover:not(:disabled),.ai-external-link:hover,.dictionary-copy:hover,.dictionary-ask-ai:hover,#dictionary-back:hover,.dictionary-related button:hover { background:var(--surfaceHover); }
.ai-button--primary { background:var(--accent);color:var(--accentText);border-color:var(--accentBorder); }
.ai-button--primary:hover:not(:disabled) { background:var(--accentHover); }
.ai-help,.ai-empty { color:var(--muted);font-size:12px;line-height:1.8; }
.ai-empty { padding:18px 0; }
.ai-messages { display:flex;flex-direction:column;gap:16px;margin:18px 0; }
.ai-message { min-width:0;border-top:1px solid var(--border);padding-top:14px; }
.ai-message--user { color:var(--text); }
.ai-message--assistant { color:var(--muted); }
.ai-message-text { white-space:pre-wrap;overflow-wrap:anywhere; }
.ai-message-text p { margin:8px 0; }
.ai-code-block,.dictionary-code { max-width:100%;min-width:0; }
.ai-code-block pre,.ai-code-block>code,.dictionary-code pre,.dictionary-code>code,pre.dictionary-code {
  display:block;max-width:100%;margin:8px 0;padding:12px;background:var(--panel-deep);border:1px solid var(--border);border-radius:8px;overflow:auto;white-space:pre;font:12px/1.8 var(--mono);color:var(--text);
}
.ai-status,.ai-error { font-size:12px;white-space:pre-wrap;overflow-wrap:anywhere;margin:12px 0; }
.ai-status { color:var(--muted); }
.ai-error { color:var(--red);border-left:2px solid var(--errorBorder);padding-left:10px; }
.ai-composer { margin:12px 0; }
.dictionary-shell label { display:block;color:var(--muted);font-size:12px;margin:10px 0 5px; }
#dictionary-search,#dictionary-category { width:100%;min-width:0;font-size:13px; }
#dictionary-count { font-size:12px;color:var(--muted);margin:12px 0; }
.dictionary-list { display:flex;flex-direction:column;max-height:540px;overflow:auto; }
.dictionary-detail { max-height:540px;overflow:auto;padding-right:3px;scrollbar-width:thin; }
.dictionary-intro,.dictionary-environment,.dictionary-example-meta,.dictionary-expected { color:var(--muted);font-size:12px; }
.dictionary-copy-status { color:var(--muted);font-size:12px;margin-top:6px; }
.dictionary-result { width:100%;padding:14px 0;text-align:left;border:0;border-top:1px solid var(--border);background:transparent;color:var(--text);font:inherit;min-height:44px;flex-shrink:0; }
.dictionary-result:hover { background:var(--surfaceHover); }
.dictionary-result strong,.dictionary-result code { font:14px var(--mono);color:var(--text); }
.dictionary-result span,.dictionary-result p { display:block;color:var(--muted);margin:5px 0 0;font-size:12px; }
#dictionary-detail-title { margin:18px 0 10px;font:21px var(--mono); }
.dictionary-section { margin-top:22px; }
.dictionary-section h3,.dictionary-section h4 { font-size:13px;color:var(--text);margin-bottom:10px;font-weight:600; }
.dictionary-section ul,.dictionary-section ol { padding-left:20px; }
.dictionary-section li+li { margin-top:8px; }
.dictionary-options { width:100%;font-size:12px;border-collapse:collapse; }
.dictionary-options td,.dictionary-options th { padding:10px 6px;text-align:left;border-bottom:1px solid var(--border);overflow-wrap:anywhere;vertical-align:top; }
.dictionary-options dl { margin:0; }
.dictionary-options dl>div { padding:10px 0;border-bottom:1px solid var(--border); }
.dictionary-options dt { font:12px/1.8 var(--mono);color:var(--text); }
.dictionary-options dd { margin:4px 0 0;color:var(--muted); }
.dictionary-example { margin:16px 0; }
.dictionary-example h5 { font-size:13px;font-weight:600;margin:10px 0; }
.dictionary-related-links { display:flex;flex-wrap:wrap;gap:8px; }
.dictionary-detail a { color:var(--accent);text-decoration:underline;text-underline-offset:3px; }
@media (max-width:1000px) {
  .lab-layout.briefing-open { grid-template-columns:minmax(0,1fr); }
  .support-views { max-height:640px; }
}
@media (max-width:600px) {
  .support-actions { grid-column:1/-1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;width:100%; }
  .support-actions>.button { min-width:0;min-height:44px;padding:8px;font-size:12px;line-height:1.5; }
  .workspace-secondary-actions { grid-column:1/-1;justify-content:flex-end; }
  .support-panel input:not([type='checkbox']),.support-panel select,.support-panel textarea,#dictionary-search,#dictionary-category { font-size:16px; }
  .mission-panel { padding:14px; }
  .support-views { max-height:600px; }
  .dictionary-options th,.dictionary-options td { padding-inline:3px; }
}
/* Learning course */
.course-tier { margin-bottom:28px; }
.course-chapters { list-style:none; margin:0; padding:0; }
.course-chapter { display:flex; align-items:flex-start; gap:18px; padding:20px 18px; border-bottom:1px solid var(--border); color:var(--text); }
.course-chapters li:first-child .course-chapter { border-top:1px solid var(--border); }
.course-chapter:hover,.course-chapter:focus-visible { background:var(--surfaceHover); }
.course-chapter:focus-visible { outline:2px solid var(--accent); outline-offset:3px; }
.course-chapter--planned { color:var(--muted); }
.course-chapter-layer { flex-shrink:0; min-width:56px; padding:4px 8px; border:1px solid var(--border); border-radius:4px; font:12px/1.6 var(--mono); text-align:center; color:var(--muted); }
.course-chapter--done .course-chapter-layer { border-color:var(--accent); color:var(--accent); }
.course-chapter-copy { display:grid; gap:4px; min-width:0; }
.course-chapter-number { color:var(--faint); font-size:11px; }
.course-chapter-title { font-size:16px; font-weight:500; line-height:1.6; }
.course-chapter-summary { color:var(--muted); font-size:13px; line-height:1.8; }
.course-chapter-status { color:var(--faint); font-size:11px; }
.chapter-body { max-width:860px; }
.chapter-section p { line-height:2; margin:0 0 12px; }
.chapter-note { color:var(--muted); }
.chapter-steps { list-style:none; padding:0; margin:12px 0; display:grid; gap:6px; }
.chapter-steps li { display:flex; gap:10px; color:var(--muted); }
.chapter-step--done { color:var(--text) !important; }
.chapter-step-mark { color:var(--accent); width:1em; }
.chapter-lab-progress { color:var(--faint); font-size:12px; }
.chapter-exercise-list { list-style:none; padding:0; margin:0; display:grid; gap:10px; }
.chapter-exercise-list li { display:flex; flex-wrap:wrap; align-items:center; gap:10px; }
.chapter-nav { display:flex; flex-wrap:wrap; justify-content:space-between; gap:12px; margin:8px 0 24px; max-width:860px; }
.chapter-next { margin-left:auto; }
.course-table { width:100%; border-collapse:collapse; margin:14px 0; font-size:12px; }
.course-table th,.course-table td { border-bottom:1px solid var(--border); padding:8px 10px; text-align:left; vertical-align:top; line-height:1.7; }
.course-table thead th { color:var(--muted); font-weight:500; }
.course-layer-number { font-family:var(--mono); color:var(--accent); }
.course-layer-name { white-space:nowrap; }
.course-layer-tools { font-family:var(--mono); color:var(--muted); }
.course-encapsulation { display:grid; gap:8px; margin:14px 0; }
.course-encapsulation-row { display:grid; grid-template-columns:minmax(9em,auto) 1fr; gap:10px; align-items:center; font-size:12px; }
.course-encapsulation-label { color:var(--muted); }
.course-encapsulation-boxes { display:flex; flex-wrap:wrap; }
.course-box { padding:5px 10px; border:1px solid var(--border); font-family:var(--mono); font-size:11px; }
.course-box--data { background:var(--panel); }
.course-box--l4 { border-color:#6d8fc7; }
.course-box--l3 { border-color:#c7a96d; }
.course-box--l2 { border-color:var(--accent); }
.course-box--l1 { color:var(--muted); letter-spacing:1px; }
.course-link-figure { display:grid; gap:10px; margin:14px 0; }
.course-link-row { display:flex; align-items:center; gap:0; font-size:12px; }
.course-nic { padding:6px 12px; border:1px solid var(--border); border-radius:4px; font-family:var(--mono); }
.course-wire { width:120px; height:2px; background:var(--accent); }
.course-link-row--down .course-wire { background:repeating-linear-gradient(90deg,var(--border) 0 8px,transparent 8px 14px); }
.course-link-note { margin-left:14px; color:var(--muted); }
.lesson-steps { margin:14px 0; }
.lesson-steps-heading { display:flex; justify-content:space-between; align-items:baseline; margin-bottom:8px; }
.lesson-steps-count { color:var(--faint); font-size:11px; }
.lesson-step-list { list-style:none; padding:0; margin:0; display:grid; gap:12px; }
.lesson-step { padding:12px 14px; border:1px solid var(--border); border-radius:6px; }
.lesson-step--done { border-color:var(--accent); }
.lesson-step h3 { font-size:13px; margin:0 0 6px; }
.lesson-step p { font-size:12px; line-height:1.9; margin:0 0 8px; color:var(--muted); }
.lesson-answer { display:grid; gap:4px; font-size:11px; color:var(--muted); margin-bottom:8px; }
.lesson-answer input { min-height:44px; font-family:var(--mono); }
.lesson-result { margin:8px 0 0 !important; font-size:12px; }
.lesson-result.success { color:var(--accent) !important; }
.lesson-result.failure { color:var(--red) !important; }
.lesson-finish { display:grid; gap:6px; margin-top:12px; padding:12px 14px; border:1px solid var(--accent); border-radius:6px; font-size:13px; }
@media (max-width:600px) { .course-chapter { padding:16px 8px; gap:12px; } .course-table { font-size:11px; } .course-layer-tools { display:none; } .course-encapsulation-row { grid-template-columns:1fr; } .course-wire { width:60px; } }
.course-frame { display:flex; flex-wrap:wrap; margin:14px 0; }
.course-frame-field { display:grid; gap:2px; min-width:80px; text-align:center; }
.course-frame-field strong { font-weight:500; }
.course-frame-field small { color:var(--muted); font-size:10px; }
.course-frame-field--wide { flex:1 1 160px; }
.course-exchange { list-style:none; margin:14px 0; padding:0; display:grid; gap:8px; }
.course-exchange-row { display:grid; grid-template-columns:minmax(10em,auto) 1fr auto; gap:12px; align-items:baseline; padding:8px 10px; border-left:2px solid var(--accent); font-size:12px; }
.course-exchange-ends { font-family:var(--mono); color:var(--muted); }
.course-exchange-note { color:var(--faint); font-size:11px; }
.course-changes { color:var(--accent); }
@media (max-width:600px) { .course-exchange-row { grid-template-columns:1fr; gap:2px; } }
.course-bits td { font-family:var(--mono); text-align:center; }
.course-bits-network { color:var(--accent); }
.course-bits-host { color:var(--muted); }
.course-figure-note { color:var(--faint) !important; font-size:11px; margin-top:-6px !important; }
.course-http { margin:14px 0; }
.course-pre { margin:4px 0 12px; padding:10px 12px; border:1px solid var(--border); border-radius:4px; background:var(--panel); font:12px/1.7 var(--mono); white-space:pre-wrap; overflow-wrap:anywhere; }
