.session-context {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 26px;
  background: #edf6fb;
  border-bottom: 1px solid #cadfe9;
  font-size: 12px;
}
.session-context:empty {
  display: none;
}
#storageNotice:not(:empty) {
  padding: 12px 26px;
  background: #fff1dd;
  color: #8b5510;
  border-bottom: 1px solid #e4c086;
}
.mode-selector {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0 8px;
}
.mode-selector button {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  text-align: left;
  padding: 16px;
  line-height: 1.6;
}
.mode-selector button span {
  font-size: 11px;
  color: #617787;
  font-weight: 400;
}
.mode-selector button.active {
  border-color: #087aad;
  background: #ecf7fd;
  box-shadow: inset 0 3px #087aad;
}
.advanced-list {
  padding-left: 22px;
  line-height: 1.85;
  font-size: 12px;
}
.advanced-list li {
  margin-bottom: 8px;
}
.tutorial-reference summary {
  cursor: pointer;
  padding: 17px 20px;
  color: var(--blue);
}
.tutorial-reference h3 {
  margin-top: 24px;
}
.planned {
  background: #f8fafb;
}
.planned h2 {
  color: #697b88;
}
.assessment-score {
  display: block;
  font-size: 48px;
  font-weight: 400;
  color: var(--blue);
  margin-bottom: 12px;
}
.assessment-score small {
  font-size: 18px;
  color: #7b8d9a;
}
.topology-control {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.topology-node {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  padding: 15px 25px;
  border: 1px solid #cbd6de;
  border-radius: 3px;
  background: #fafcfd;
}
.topology-node span {
  font-size: 11px;
  color: #708290;
}
.topology-node.firewall {
  border-color: var(--blue);
  background: #f0f8fc;
}
.topology-edge {
  padding: 9px;
  color: #6d8a9d;
  font-size: 11px;
}
.topology-zones {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
  border-top: 1px solid #bed3df;
  margin-top: 22px;
}
.topology-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  border: 1px solid #dce6ec;
  background: #fbfcfd;
  padding: 0 10px 16px;
  min-width: 0;
}
.topology-zone span {
  font-size: 11px;
  color: #657d8f;
  overflow-wrap: anywhere;
}
.topology-zone strong {
  color: #1e6c95;
  font-size: 12px;
}
.topology-branch {
  color: #bed3df;
}
@media (max-width: 960px) {
  .mode-selector {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 650px) {
  .session-context {
    padding: 12px 16px;
  }
  .session-context > span {
    line-height: 1.8;
  }
  .session-context .muted {
    display: block;
  }
  .topology-zones {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .mode-selector {
    gap: 8px;
  }
  .mode-selector button {
    padding: 12px;
  }
  .mode-selector strong {
    font-size: 12px;
  }
  .assessment-score {
    font-size: 36px;
  }
}
.topbar {
  height: 65px;
  background: #263c4b;
  color: #fff;
  display: flex;
  align-items: center;
  padding: 0 23px;
  gap: 28px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 15px;
  min-width: 242px;
  font-size: 11px;
  line-height: 1.5;
  color: #e8f0f4;
}
.brand svg {
  color: #f5fbff;
}
.brand strong {
  font-size: 13px;
  font-weight: 400;
}
.topbar nav {
  display: flex;
  align-items: stretch;
  height: 100%;
  gap: 3px;
  flex: 1;
}
.topbar nav button,
.header-tools button {
  background: none;
  color: #e4eaf0;
  border: 0;
  border-radius: 0;
  font-size: 13px;
  padding: 0 15px;
  white-space: nowrap;
}
.topbar nav button.active {
  background: #1b2e3b;
  box-shadow: inset 0 -3px #35afe3;
}
.topbar nav button:hover,
.header-tools button:hover {
  background: #334f61;
}
.chevron {
  font-size: 10px;
  margin-left: 6px;
  color: #a3b2bd;
}
.header-tools {
  display: flex;
  gap: 15px;
  align-items: center;
  height: 100%;
}
.header-tools button {
  padding: 10px 5px;
}
.user {
  font-size: 11px;
  white-space: nowrap;
  color: #bacad5;
}
.count {
  display: inline-grid;
  place-items: center;
  background: #0089bb;
  color: white;
  border-radius: 12px;
  min-width: 18px;
  height: 18px;
  margin-left: 4px;
  font-size: 10px;
}
.simulation {
  display: flex;
  justify-content: space-between;
  padding: 8px 25px;
  font-size: 10px;
  color: #597080;
  background: #eaf2f7;
  border-bottom: 1px solid #d5e2eb;
  letter-spacing: 0.1px;
}
.simulation i {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #459176;
  margin-right: 5px;
}
.subnav {
  background: white;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 27px;
  padding: 0 26px;
  min-height: 44px;
  overflow: auto;
}
.subnav button {
  border: 0;
  border-radius: 0;
  background: none;
  padding: 13px 0;
  white-space: nowrap;
  font-size: 12px;
  color: #536572;
}
.subnav button.active {
  color: var(--blue);
  box-shadow: inset 0 -2px var(--blue);
}
.workspace {
  display: flex;
  align-items: flex-start;
  min-height: calc(100vh - 169px);
}
main {
  padding: 27px 26px 48px;
  flex: 1;
  min-width: 0;
  outline: none;
}
.page-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
  gap: 16px;
}
.breadcrumb {
  font-size: 11px;
  color: #87939c;
  margin-bottom: 11px;
}
.subtitle {
  font-size: 12px;
  color: #6e7c86;
  margin: 0;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}
.metric {
  background: white;
  border: 1px solid var(--line);
  padding: 18px 20px;
  border-radius: 3px;
}
.metric span {
  font-size: 11px;
  color: #778690;
}
.metric strong {
  font-weight: 400;
  font-size: 29px;
  display: block;
  margin: 10px 0 8px;
}
.metric small {
  font-size: 10px;
  color: #6e7c86;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 20px;
}
.topology {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 4px;
  gap: 0;
}
.topology .node {
  border: 1px solid #cbd6de;
  border-radius: 4px;
  background: #fbfcfd;
  padding: 14px 18px;
  text-align: center;
  min-width: 100px;
}
.topology .node.firewall {
  border: 2px solid #3c93bc;
  background: #f2f9fd;
}
.node-icon {
  font-size: 25px;
  color: #4088af;
  margin-bottom: 7px;
}
.node strong {
  display: block;
  font-size: 11px;
}
.node small {
  display: block;
  color: #8795a0;
  font-size: 10px;
  margin-top: 8px;
}
.wire {
  height: 1px;
  background: #a4b8c7;
  width: 40px;
  position: relative;
}
.wire:after {
  content: "›";
  position: absolute;
  right: 0;
  top: -10px;
  font-size: 18px;
  color: #819cae;
}
.zone-stack {
  display: grid;
  gap: 10px;
}
.zone-labels {
  display: flex;
  gap: 7px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 14px;
}
.lesson-start {
  background: #f1f8fc;
  padding: 16px 18px;
  border-top: 1px solid #e0ebf1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.lesson-start p {
  margin: 4px 0 0;
  color: #647784;
  font-size: 11px;
}
.health-ring {
  width: 118px;
  height: 118px;
  border-radius: 50%;
  border: 11px solid #67ad64;
  display: grid;
  place-content: center;
  text-align: center;
  margin: 5px auto 22px;
}
.health-ring strong {
  font-size: 30px;
  font-weight: 400;
}
.health-ring span {
  font-size: 10px;
  color: #798792;
}
.key-values {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 13px;
  font-size: 11px;
}
.key-values span:nth-child(odd) {
  color: #7a8791;
}
.device-icon {
  display: inline-block;
  padding: 5px 7px;
  background: #edf5fa;
  border: 1px solid #b3cddc;
  color: #377da4;
  border-radius: 2px;
  margin-right: 9px;
}
.table-footer {
  border-top: 1px solid var(--line);
  padding: 12px 18px;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #7b8791;
}
.objects-layout {
  display: grid;
  grid-template-columns: 185px 1fr;
}
.objects-layout > div {
  min-width: 0;
}
.network-comparison {
  table-layout: fixed;
  min-width: 720px;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.network-inputs {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 16px;
}
.network-inputs label {
  display: grid;
  gap: 6px;
}
.simulation-launch { border-top: 4px solid var(--blue, #007ca8); }
.simulation-path { padding: 16px; background: #edf6fb; font-weight: 600; margin: 16px 0; }
.legacy-courses > summary { cursor: pointer; padding: 16px 0; color: #536b7b; }
.legacy-courses .lab-grid { margin-top: 16px; }
.sim-next { border-left: 3px solid #0082b3; background: #f0f8fc; padding: 14px; margin: 16px 0; }
.sim-next > span { color: #007ca8; font-size: 11px; font-weight: 700; }
.sim-next h3 { margin-top: 8px; }
.sim-client { border: 1px solid #c4d5df; background: white; margin: 20px 0; border-radius: 4px; }
.sim-client .panel-title { padding: 12px; background: #eef3f7; }
.sim-client .panel-body { padding: 14px; }
.sim-url { border: 1px solid #c4d5df; border-radius: 4px; padding: 8px; background: #fafcfd; color: #35546a; }
.sim-client-result { margin: 14px 0; padding: 12px; background: #eef3f7; overflow-wrap: anywhere; }
.sim-client small { color: #617c8d; }
.sim-modes { display: flex; flex-wrap: wrap; gap: 6px; margin: 18px 0 8px; }
.sim-modes [aria-pressed="true"] { background: #e4f3fb; border-color: #007ca8; }
.sim-highlight { outline: 3px solid #0095c8 !important; outline-offset: 3px; }
.sim-target-hint { display: inline-block; max-width: 220px; padding: 6px 9px; margin: 6px; border-radius: 3px; background: #e0f3fc; color: #125878; font-size: 12px; white-space: normal; }
.sim-field-hint { display: block; padding: 7px 0; color: #006a98; font-size: 12px; }
.sim-diff { white-space: pre-wrap; overflow-wrap: anywhere; max-width: 420px; }
.sim-event dt { font-weight: 600; margin-top: 14px; }
.sim-event dd { margin: 5px 0; overflow-wrap: anywhere; }
@media(max-width:650px) {
  .sim-client .row { flex-wrap: wrap; }
  .sim-target-hint { max-width: 160px; }
}
.object-tree {
  border-right: 1px solid var(--line);
  padding: 18px 0;
  background: #fafbfd;
}
.object-tree h3 {
  font-size: 11px;
  padding: 0 16px;
  color: #86919a;
  font-weight: 400;
}
.object-tree button {
  display: block;
  width: 100%;
  border: 0;
  text-align: left;
  border-radius: 0;
  background: none;
  padding: 12px 20px;
  font-size: 12px;
}
.object-tree button.active {
  background: #eaf4fa;
  color: var(--blue);
  box-shadow: inset 3px 0 var(--blue);
}
.policy-summary {
  display: flex;
  gap: 25px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 16px 18px;
  font-size: 11px;
  color: #77848f;
}
.policy-summary b {
  color: #344a59;
  font-weight: 400;
}
.category {
  padding: 10px 15px;
  background: #eef2f5;
  font-size: 11px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.rule-table td {
  height: 64px;
  vertical-align: middle;
}
.rule-table .network {
  display: block;
  font-size: 11px;
  color: #587082;
  margin-top: 5px;
}
.rule-table td:first-child {
  color: #86949e;
}
.default-action {
  padding: 16px 20px;
  display: flex;
  gap: 25px;
  align-items: center;
  background: #fafbfd;
  border-top: 1px solid var(--line);
  font-size: 12px;
}
.policy-note {
  font-size: 11px;
  color: #71808a;
  line-height: 1.6;
  padding: 13px 0;
}
.policy-selector {
  max-width: 250px;
}
.rule-name {
  color: var(--blue);
  font-size: 12px;
}
.disabled-rule {
  opacity: 0.5;
}
#guide {
  width: 286px;
  flex-shrink: 0;
  background: #fff;
  border-left: 1px solid var(--line);
  min-height: calc(100vh - 169px);
  padding: 22px 19px;
  position: sticky;
  top: 0;
}
#guide:empty {
  display: none;
}
.guide-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  color: #7b8c98;
  letter-spacing: 1px;
  margin-bottom: 23px;
}
.guide-number {
  font-size: 10px;
  color: var(--blue);
  margin-bottom: 10px;
}
.guide-title {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
}
.guide-section {
  margin: 22px 0;
}
.guide-section h3 {
  font-size: 11px;
  color: #85929a;
  font-weight: 400;
}
.guide-section p {
  font-size: 12px;
  color: #5f7180;
}
.criteria {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 14px;
  font-size: 11px;
  line-height: 1.6;
}
.criteria li {
  display: flex;
  gap: 9px;
}
.criteria .circle {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  border: 1px solid #b8c6d0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #7d8e9a;
  font-size: 9px;
}
.criteria li.done .circle {
  background: #eaf6ed;
  border-color: #54a466;
  color: #328441;
}
.guide-buttons {
  display: grid;
  gap: 10px;
}
.hint {
  background: #fffaeb;
  padding: 12px;
  color: #8c723c;
  font-size: 11px;
  line-height: 1.7;
  margin-top: 15px;
}
.lab-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.lab-card {
  padding: 22px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 3px;
}
.lab-card h2 {
  font-size: 16px;
  margin: 13px 0 8px;
}
.lab-card p {
  font-size: 12px;
  color: #74828d;
}
.lab-card .row {
  margin-top: 20px;
}
.trace {
  list-style: none;
  padding: 0;
  counter-reset: trace;
}
.trace li {
  padding: 11px 12px;
  border-bottom: 1px solid #e5eaee;
  font-family: Consolas, "Malgun Gothic", monospace;
  font-size: 11px;
}
.trace li:before {
  counter-increment: trace;
  content: counter(trace);
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #e9f3f9;
  color: #20759e;
  margin-right: 10px;
}
.deploy-steps {
  padding: 18px;
  background: #f7f9fb;
  font-family: Consolas, "Malgun Gothic", monospace;
  font-size: 12px;
  line-height: 2;
  white-space: pre-line;
}
.footer {
  background: #fff;
  border-top: 1px solid var(--line);
  min-height: 35px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 25px;
  font-size: 10px;
  color: #6d808e;
}
.footer button {
  font-size: 10px;
}
.version {
  font-size: 10px;
  background: #f2f5f7;
  padding: 3px 5px;
  border-radius: 2px;
}
.editor-section {
  font-size: 12px;
  color: #476575;
  border-bottom: 1px solid #e5ebef;
  padding-bottom: 9px;
  margin: 10px 0 16px;
}
@media (max-width: 1250px) {
  .topbar {
    gap: 10px;
    padding: 0 15px;
  }
  .brand {
    min-width: 205px;
  }
  .topbar nav button {
    padding: 0 10px;
  }
  .user {
    display: none;
  }
  #guide {
    width: 255px;
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .metrics {
    gap: 10px;
  }
  .metric {
    padding: 15px;
  }
  .topology {
    padding: 15px 0;
  }
}
@media (max-width: 960px) {
  .topbar {
    height: auto;
    min-height: 65px;
    flex-wrap: wrap;
    padding-top: 12px;
    gap: 8px;
  }
  .topbar nav {
    order: 3;
    flex: 0 0 100%;
    width: 100%;
    height: 42px;
    overflow: auto;
  }
  .header-tools {
    margin-left: auto;
  }
  .workspace {
    flex-direction: column;
  }
  main {
    width: 100%;
    padding: 22px 16px;
  }
  #guide {
    width: 100%;
    min-height: 0;
    position: static;
    border-top: 1px solid var(--line);
    border-left: 0;
  }
  .guide-section {
    margin: 14px 0;
  }
  .guide-buttons {
    display: flex;
  }
  .dashboard-grid {
    grid-template-columns: 1.3fr 1fr;
  }
  .simulation {
    padding: 8px 16px;
  }
  .subnav {
    padding: 0 16px;
  }
  .footer {
    gap: 15px;
    flex-wrap: wrap;
  }
}
@media (max-width: 650px) {
  .metrics {
    grid-template-columns: 1fr 1fr;
  }
  .dashboard-grid,
  .lab-grid {
    grid-template-columns: 1fr;
  }
  .page-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .simulation > span:last-child {
    display: none;
  }
  .objects-layout {
    grid-template-columns: 1fr;
  }
  .object-tree {
    display: flex;
    overflow: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 0;
  }
  .object-tree h3 {
    display: none;
  }
  .object-tree button {
    white-space: nowrap;
    width: auto;
  }
  .toolbar {
    flex-wrap: wrap;
  }
  .toolbar input[type="search"] {
    width: 100%;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .policy-summary {
    flex-wrap: wrap;
    gap: 12px;
  }
  .topology .node {
    min-width: 80px;
    padding: 12px;
  }
  .wire {
    width: 20px;
  }
  .policy-selector {
    max-width: 100%;
  }
  .header-tools {
    gap: 8px;
  }
  .brand {
    min-width: 190px;
  }
  .topbar nav button {
    padding: 0 10px;
  }
  .subnav {
    gap: 20px;
  }
  .default-action {
    flex-wrap: wrap;
  }
  .dialog-body {
    padding: 18px;
  }
  .row.wrap > * {
    max-width: 100%;
  }
}
