@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@500;700&display=swap");

:root {
  --imsim-bg-top: #fbf8f2;
  --imsim-bg: #f4f1ea;
  --imsim-surface: rgba(255, 255, 255, 0.82);
  --imsim-surface-strong: #fffdf8;
  --imsim-ink: #132238;
  --imsim-muted: #536277;
  --imsim-line: rgba(19, 34, 56, 0.12);
  --imsim-teal: #0f766e;
  --imsim-orange: #f97316;
  --imsim-blue: #2563eb;
  --imsim-danger: #dc2626;
  --imsim-control-bg: rgba(255, 253, 248, 0.92);
  --imsim-radius-sm: 0.75rem;
  --imsim-radius-md: 0.875rem;
  --imsim-radius-lg: 1rem;
  --imsim-radius-xl: 1.125rem;
  --imsim-radius-2xl: 1.25rem;
  --imsim-radius-3xl: 1.5rem;
  --imsim-radius-4xl: 1.75rem;
  --imsim-radius-pill: 999rem;
  --imsim-blur-backdrop: 0.5rem;
  --imsim-blur-surface: 0.875rem;
  --imsim-size-shell-max: 100rem;
  --imsim-size-dialog-max: 78rem;
  --imsim-size-metric-card-min: 8.5rem;
  --imsim-size-table-min: 53.75rem;
  --imsim-size-footer-width: 20rem;
  --imsim-size-dashboard-graph-min: 18rem;
  --imsim-size-control-rail-max: 25rem;
  --imsim-size-dashboard-rail-max: 20rem;
  --imsim-size-dashboard-panel-max: 15rem;
  --imsim-size-lesson-grid-min: 38rem;
  --imsim-size-lesson-grid-max: 42rem;
  --imsim-slider-rail-size: 0.375rem;
  --imsim-slider-handle-size: 1.125rem;
  --imsim-slider-handle-offset: -0.375rem;
  --imsim-border-accent: 0.125rem;
  --imsim-border-strong: 0.1875rem;
  --imsim-border-metric: 0.3125rem;
  --imsim-focus-ring-size: 0.25rem;
  --imsim-shadow: 0 1.5rem 3.75rem rgba(19, 34, 56, 0.12);
  --imsim-shadow-modal: 0 2.25rem 5.625rem rgba(2, 8, 18, 0.34);
  --imsim-shadow-float: 0 1.125rem 2.5rem rgba(2, 8, 18, 0.32);
  --imsim-shadow-action-teal: 0 0.875rem 1.75rem rgba(15, 118, 110, 0.2);
  --imsim-shadow-action-green: 0 0.875rem 1.75rem rgba(21, 128, 61, 0.2);
  --imsim-shadow-focus-soft: 0 0 0 var(--imsim-focus-ring-size) rgba(37, 99, 235, 0.12);
  --imsim-shadow-focus-strong: 0 0 0 var(--imsim-focus-ring-size) rgba(37, 99, 235, 0.18);
  --imsim-shadow-focus-slider: 0 0 0 var(--imsim-focus-ring-size) rgba(37, 99, 235, 0.14);
  --imsim-shadow-focus-slider-dark:
    0 0 0 var(--imsim-focus-ring-size) rgba(45, 212, 191, 0.16);
  --imsim-bg-accent-a: rgba(15, 118, 110, 0.18);
  --imsim-bg-accent-b: rgba(249, 115, 22, 0.14);
  --imsim-graph-bg: rgba(255, 255, 255, 0.55);
  --imsim-session-bg: var(--imsim-surface);
  --imsim-session-inner-bg: rgba(255, 253, 248, 0.96);
  --imsim-maintenance-bg: rgba(255, 255, 255, 0.88);
  --imsim-upload-bg: rgba(15, 118, 110, 0.04);
  --imsim-table-stripe: rgba(15, 118, 110, 0.05);
  --imsim-table-hover: rgba(37, 99, 235, 0.06);
}

body {
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  margin: 0;
}

.imsim-theme {
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--imsim-ink);
  background:
    radial-gradient(circle at top left, var(--imsim-bg-accent-a), transparent 35%),
    radial-gradient(circle at top right, var(--imsim-bg-accent-b), transparent 34%),
    linear-gradient(180deg, var(--imsim-bg-top) 0%, var(--imsim-bg) 100%);
}

.theme-dark {
  --imsim-bg-top: #08111d;
  --imsim-bg: #0c1523;
  --imsim-surface: rgba(13, 24, 38, 0.82);
  --imsim-surface-strong: rgba(18, 31, 49, 0.94);
  --imsim-ink: #e6eefc;
  --imsim-muted: #9aabc6;
  --imsim-line: rgba(214, 228, 255, 0.14);
  --imsim-shadow: 0 1.625rem 4.375rem rgba(2, 8, 18, 0.48);
  --imsim-shadow-float: 0 1.125rem 2.5rem rgba(2, 8, 18, 0.38);
  --imsim-bg-accent-a: rgba(15, 118, 110, 0.24);
  --imsim-bg-accent-b: rgba(37, 99, 235, 0.18);
  --imsim-graph-bg: rgba(10, 19, 32, 0.7);
  --imsim-control-bg: rgba(10, 19, 32, 0.92);
  --imsim-session-bg: var(--imsim-surface);
  --imsim-session-inner-bg: rgba(10, 19, 32, 0.34);
  --imsim-maintenance-bg: rgba(18, 31, 49, 0.92);
  --imsim-upload-bg: rgba(15, 118, 110, 0.09);
  --imsim-table-stripe: rgba(15, 118, 110, 0.1);
  --imsim-table-hover: rgba(37, 99, 235, 0.14);
}

.imsim-shell {
  max-width: var(--imsim-size-shell-max);
}

.session-card-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.theme-toggle-button {
  border-radius: var(--imsim-radius-pill);
  white-space: nowrap;
}

.hero-row {
  align-items: stretch;
}

.hero-kicker,
.panel-label,
.metric-label,
.footer-title {
  color: var(--imsim-muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-title,
.panel-title {
  font-family: "Space Grotesk", "IBM Plex Sans", sans-serif;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.hero-title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1;
  margin-bottom: 0.35rem;
  max-width: none;
}

.hero-copy {
  color: var(--imsim-muted);
  font-size: 0.98rem;
  line-height: 1.5;
  max-width: 48ch;
  margin: 0.35rem 0 0;
}

.hero-actions .imsim-button {
  border-radius: var(--imsim-radius-pill);
  padding-inline: 1rem;
}

.hero-banner-card .card-body {
  padding-block: 1.4rem;
}

.hero-actions-wrap {
  display: flex;
  justify-content: flex-end;
}

.hero-actions-compact {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-end;
}

.academy-shell .card-body {
  padding-block: 1.4rem;
}

.academy-card {
  height: 100%;
}

.academy-card-kicker,
.academy-card-formula,
.helper-copy,
.lesson-formula-chip {
  color: var(--imsim-muted);
  font-size: 0.85rem;
}

.academy-card-title {
  font-family: "Space Grotesk", "IBM Plex Sans", sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.05;
  margin-top: 0.35rem;
}

.academy-card-copy {
  color: var(--imsim-muted);
  line-height: 1.5;
  margin: 0.65rem 0 0;
  min-height: 4.5rem;
}

.academy-card-formula,
.lesson-formula-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.85rem;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--imsim-line);
  border-radius: var(--imsim-radius-pill);
  background: rgba(37, 99, 235, 0.08);
}

.review-override-indicator {
  border: 1px solid rgba(15, 118, 110, 0.24);
  border-radius: var(--imsim-radius-sm);
  background: rgba(15, 118, 110, 0.08);
  color: var(--imsim-teal);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.55rem 0.7rem;
}

.review-override-control {
  border-top: 1px solid var(--imsim-line);
  padding-top: 0.9rem;
}

.academy-status-badge {
  margin-top: 0.85rem;
}

.cheat-code-row {
  display: flex;
  justify-content: flex-end;
  min-height: 1.25rem;
  padding-top: 0.45rem;
}

.cheat-code-button {
  color: var(--imsim-muted);
  font-size: 0.9rem;
  line-height: 1;
  opacity: 0.18;
  padding: 0 0.2rem;
}

.cheat-code-button:hover,
.cheat-code-button:focus-visible {
  color: var(--imsim-blue);
  opacity: 1;
}

.academy-result-alert {
  border-radius: var(--imsim-radius-xl);
  margin-bottom: 0;
}

.lesson-detail-card {
  height: 100%;
}

.lesson-copy-list {
  margin: 0.85rem 0 0;
  padding-left: 1.1rem;
  color: var(--imsim-ink);
}

.lesson-copy-list li + li {
  margin-top: 0.45rem;
}

.lesson-objective-headline {
  font-family: "Space Grotesk", "IBM Plex Sans", sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  margin-top: 0.15rem;
}

.lesson-locked-list {
  color: var(--imsim-muted);
  font-size: 0.92rem;
}

.lesson-locked-cache {
  display: none;
}

.lesson-intro-dialog {
  max-width: min(var(--imsim-size-dialog-max), calc(100vw - 2rem));
}

.lesson-intro-backdrop {
  background: rgba(6, 12, 22, 0.62);
  -webkit-backdrop-filter: blur(var(--imsim-blur-backdrop));
  backdrop-filter: blur(var(--imsim-blur-backdrop));
}

.lesson-intro-content {
  background:
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.12), transparent 34%),
    linear-gradient(180deg, var(--imsim-surface-strong), var(--imsim-surface));
  border: 1px solid var(--imsim-line);
  border-radius: var(--imsim-radius-4xl);
  box-shadow: var(--imsim-shadow-modal);
  color: var(--imsim-ink);
}

.imsim-modal-content {
  background: linear-gradient(180deg, var(--imsim-surface-strong), var(--imsim-surface));
  border: 1px solid var(--imsim-line);
  border-radius: var(--imsim-radius-3xl);
  box-shadow: var(--imsim-shadow-modal);
  color: var(--imsim-ink);
}

.imsim-modal-content .modal-header,
.imsim-modal-content .modal-body,
.imsim-modal-content .modal-footer {
  background: transparent;
  border-color: var(--imsim-line);
  color: var(--imsim-ink);
}

.lesson-intro-header,
.lesson-intro-body,
.lesson-intro-footer {
  border: 0;
}

.lesson-intro-header {
  padding: 1.15rem 1.3rem 0.55rem;
}

.lesson-intro-body {
  padding: 0 1.3rem 0.95rem;
}

.lesson-intro-footer {
  justify-content: flex-start;
  padding: 0 1.3rem 1.1rem;
}

.lesson-intro-title {
  font-family: "Space Grotesk", "IBM Plex Sans", sans-serif;
  font-size: clamp(1.8rem, 2.5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.98;
  margin: 0.2rem 0 0;
  color: var(--imsim-ink);
}

.lesson-intro-copy {
  color: var(--imsim-muted);
  font-size: 0.96rem;
  line-height: 1.45;
  margin: 0.35rem 0 0;
  max-width: 64ch;
}

.lesson-intro-grid .lesson-detail-card .card-body {
  padding: 1rem;
}

.lesson-intro-grid {
  align-items: stretch;
}

.lesson-intro-grid .lesson-copy-list {
  font-size: 0.94rem;
  line-height: 1.45;
}

.lesson-intro-grid .lesson-service-table {
  table-layout: fixed;
  width: 100%;
}

.lesson-intro-grid .lesson-service-table th,
.lesson-intro-grid .lesson-service-table td {
  overflow-wrap: anywhere;
}

.lesson-compact-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.lesson-compact-chip,
.lesson-compact-pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--imsim-line);
  border-radius: var(--imsim-radius-pill);
  min-height: 2.15rem;
  padding: 0.45rem 0.78rem;
}

.lesson-compact-chip {
  background: rgba(37, 99, 235, 0.08);
  color: var(--imsim-muted);
  font-size: 0.78rem;
  white-space: nowrap;
}

.lesson-compact-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.lesson-compact-pill {
  background: rgba(15, 118, 110, 0.05);
  color: var(--imsim-muted);
  font-size: 0.8rem;
  line-height: 1.4;
}

.lesson-compact-pill-strong {
  background: rgba(15, 118, 110, 0.16);
  color: var(--imsim-ink);
  font-weight: 600;
}

.lesson-service-table {
  margin-bottom: 0;
  table-layout: fixed;
  width: 100%;
}

.lesson-service-table th,
.lesson-service-table td {
  border-bottom: 1px solid var(--imsim-line);
  padding: 0.55rem 0.7rem;
  vertical-align: top;
}

.lesson-service-table th {
  color: var(--imsim-muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.lesson-service-table td {
  color: var(--imsim-ink);
  font-size: 0.92rem;
  font-weight: 500;
}

.lesson-service-table tbody tr:last-child td {
  border-bottom: 0;
}

.lesson-snapshot-stack {
  display: grid;
  gap: 0.55rem;
}

.lesson-snapshot-grid {
  display: grid;
  gap: 0.55rem;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
}

.lesson-snapshot-block {
  display: grid;
  gap: 0.28rem;
}

.lesson-snapshot-label {
  color: var(--imsim-muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lesson-snapshot-disclosure {
  display: grid;
  gap: 0.55rem;
}

.lesson-disclosure-summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
  list-style: none;
  min-height: 2.15rem;
  padding: 0.05rem 0;
}

.lesson-disclosure-summary::-webkit-details-marker {
  display: none;
}

.lesson-disclosure-summary::after {
  border-bottom: 0.12rem solid currentColor;
  border-right: 0.12rem solid currentColor;
  content: "";
  height: 0.48rem;
  margin-right: 0.2rem;
  transform: rotate(45deg);
  transition: transform 120ms ease;
  width: 0.48rem;
}

.lesson-snapshot-disclosure[open] .lesson-disclosure-summary::after {
  transform: rotate(225deg);
}

.lesson-disclosure-hint {
  color: var(--imsim-muted);
  font-size: 0.82rem;
  font-weight: 500;
  margin-left: auto;
}

.lesson-disclosure-body {
  padding-top: 0.1rem;
}

.reference-tabs {
  margin-top: 0.25rem;
}

.reference-panel {
  display: grid;
  gap: 0.85rem;
}

.reference-entry-list {
  display: grid;
  gap: 0.55rem;
}

.reference-entry {
  border-bottom: 1px solid var(--imsim-line);
  display: grid;
  gap: 0.22rem;
  padding-bottom: 0.55rem;
}

.reference-entry:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.shell-card,
.metric-card,
.footer-card {
  background: var(--imsim-surface);
  -webkit-backdrop-filter: blur(var(--imsim-blur-surface));
  backdrop-filter: blur(var(--imsim-blur-surface));
  border: 1px solid var(--imsim-line);
  border-radius: var(--imsim-radius-3xl);
  box-shadow: var(--imsim-shadow);
}

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .lesson-intro-backdrop {
    background: rgba(6, 12, 22, 0.82);
  }

  .shell-card,
  .metric-card,
  .footer-card {
    background: var(--imsim-surface-strong);
  }
}

.session-card {
  background: var(--imsim-session-bg);
}

.session-metrics-grid {
  display: grid;
  gap: 0.8rem;
}

.session-primary-block,
.session-speed-block {
  border: 1px solid var(--imsim-line);
  border-radius: var(--imsim-radius-2xl);
  background: var(--imsim-session-inner-bg);
  padding: 0.85rem 0.95rem;
}

.session-primary-block .status-value {
  margin-bottom: 0.1rem;
  margin-top: 0;
}

.session-primary-block .status-copy {
  margin-bottom: 0;
}

.session-speed-block .control-label {
  margin-bottom: 0.35rem;
}

.session-speed-block .speed-readout {
  margin: 0 0 0.55rem;
}

.session-speed-block .sim-speed-slider {
  margin-bottom: 0;
}

.panel-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.panel-title-small {
  font-family: "Space Grotesk", "IBM Plex Sans", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.status-value {
  font-family: "Space Grotesk", "IBM Plex Sans", sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  margin-top: 0.3rem;
}

.status-copy {
  color: var(--imsim-muted);
}

.control-field {
  display: grid;
  gap: 0.45rem;
}

.control-label {
  color: var(--imsim-muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.control-input {
  width: 100%;
  min-height: 3rem;
  padding: 0.8rem 0.95rem;
  border: 1px solid var(--imsim-line);
  border-radius: var(--imsim-radius-lg);
  background: var(--imsim-control-bg);
  color: var(--imsim-ink);
  caret-color: var(--imsim-ink);
  color-scheme: inherit;
  box-shadow: inset 0 0.0625rem 0 rgba(255, 255, 255, 0.02);
  transition:
    border-color 120ms ease,
    box-shadow 120ms ease,
    transform 120ms ease;
}

.control-input:hover {
  border-color: rgba(37, 99, 235, 0.28);
}

.control-input:focus {
  outline: none;
  border-color: rgba(37, 99, 235, 0.55);
  box-shadow: var(--imsim-shadow-focus-soft);
}

.control-input::placeholder {
  color: var(--imsim-muted);
}

.theme-light .control-input {
  color-scheme: light;
}

.theme-dark .control-input {
  color-scheme: dark;
}

.control-input-compact {
  min-height: 2.6rem;
  padding: 0.55rem 0.75rem;
}

.toggle-field {
  min-height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.imsim-toggle-switch {
  margin: 0;
  padding-left: 0;
  flex: 0 0 auto;
}

.imsim-toggle-switch.form-check {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 0;
  padding-left: 0;
}

.imsim-toggle-input {
  cursor: pointer;
  flex: 0 0 auto;
  height: 1.55rem;
  margin-left: 0;
  margin-right: 0;
  margin-top: 0;
  width: 2.85rem;
  background-color: rgba(83, 98, 119, 0.18);
  background-image: none;
  border: 1px solid var(--imsim-line);
  border-radius: var(--imsim-radius-pill);
  box-shadow: none;
}

.imsim-toggle-copy {
  display: inline-flex;
  align-items: center;
  color: var(--imsim-ink);
  font-weight: 500;
  min-height: 1.6rem;
}

.imsim-toggle-input:focus,
.imsim-toggle-input:focus-visible {
  border-color: rgba(37, 99, 235, 0.55);
  box-shadow: var(--imsim-shadow-focus-soft);
  outline: none;
}

.imsim-toggle-input:checked {
  background-color: rgba(15, 118, 110, 0.24);
  border-color: rgba(15, 118, 110, 0.42);
}

.imsim-button {
  appearance: none;
  border: 1px solid transparent;
  border-radius: var(--imsim-radius-lg);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  min-height: 3rem;
  padding: 0.8rem 1rem;
  text-align: center;
  text-decoration: none;
  transition:
    transform 120ms ease,
    box-shadow 120ms ease,
    border-color 120ms ease,
    background-color 120ms ease,
    color 120ms ease;
}

.imsim-button:hover {
  transform: translateY(-0.0625rem);
}

.imsim-button:focus-visible {
  outline: none;
  box-shadow: var(--imsim-shadow-focus-strong);
}

.imsim-button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
  transform: none;
}

.button-block {
  width: 100%;
}

.button-pill {
  border-radius: var(--imsim-radius-pill);
}

.button-sm {
  min-height: 2.45rem;
  font-size: 0.92rem;
  padding: 0.55rem 0.9rem;
}

.button-primary {
  background: var(--imsim-teal);
  border-color: var(--imsim-teal);
  box-shadow: var(--imsim-shadow-action-teal);
}

.button-primary:hover {
  background: #0d675f;
  border-color: #0d675f;
}

.button-success {
  background: #15803d;
  border-color: #15803d;
  box-shadow: var(--imsim-shadow-action-green);
}

.button-success:hover {
  background: #166534;
  border-color: #166534;
}

.button-secondary {
  background: #33485f;
  border-color: #33485f;
  color: #f4f7fb;
}

.button-secondary:hover {
  background: #2a3d52;
  border-color: #2a3d52;
}

.button-warning {
  background: var(--imsim-orange);
  border-color: var(--imsim-orange);
}

.button-warning:hover {
  background: #ea6b10;
  border-color: #ea6b10;
}

.button-danger {
  background: var(--imsim-danger);
  border-color: var(--imsim-danger);
}

.button-danger:hover {
  background: #b91c1c;
  border-color: #b91c1c;
}

.button-info {
  background: var(--imsim-blue);
  border-color: var(--imsim-blue);
}

.button-info:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
}

.button-light {
  background: rgba(37, 99, 235, 0.1);
  border-color: rgba(37, 99, 235, 0.16);
  color: var(--imsim-ink);
}

.button-light:hover {
  background: rgba(37, 99, 235, 0.16);
  border-color: rgba(37, 99, 235, 0.22);
}

.button-dark {
  background: #18283e;
  border-color: #18283e;
}

.button-dark:hover {
  background: #132238;
  border-color: #132238;
}

.button-ghost {
  background: transparent;
  border-color: var(--imsim-line);
  color: var(--imsim-ink);
}

.button-ghost:hover {
  background: rgba(37, 99, 235, 0.08);
  border-color: rgba(37, 99, 235, 0.25);
}

.button-link {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  color: var(--imsim-blue);
  min-height: auto;
  padding: 0;
}

.button-link:hover {
  background: transparent;
  color: #1d4ed8;
  transform: none;
}

.speed-readout {
  display: inline-flex;
  align-items: center;
  min-height: 2.7rem;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--imsim-line);
  border-radius: var(--imsim-radius-md);
  background-color: var(--imsim-control-bg);
  color: var(--imsim-ink);
  font-family: "Space Grotesk", "IBM Plex Sans", sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0.2rem 0 0.65rem;
}

.metric-card .card-body {
  min-height: var(--imsim-size-metric-card-min);
}

.metric-value {
  font-family: "Space Grotesk", "IBM Plex Sans", sans-serif;
  font-size: 1.9rem;
  font-weight: 700;
  margin-top: 0.55rem;
}

.metric-subtitle {
  color: var(--imsim-muted);
  margin-top: 0.5rem;
}

.metric-good {
  border-top: var(--imsim-border-metric) solid var(--imsim-teal);
}

.metric-warn {
  border-top: var(--imsim-border-metric) solid var(--imsim-orange);
}

.metric-neutral {
  border-top: var(--imsim-border-metric) solid var(--imsim-blue);
}

.upload-shell {
  border: var(--imsim-border-accent) dashed rgba(15, 118, 110, 0.35);
  border-radius: var(--imsim-radius-2xl);
  padding: 2rem 1rem;
  text-align: center;
  background: var(--imsim-upload-bg);
  cursor: pointer;
}

.preview-card,
.exception-card {
  border-radius: var(--imsim-radius-xl);
  border: 1px solid var(--imsim-line);
  background: var(--imsim-surface-strong);
  margin-bottom: 0.85rem;
}

.imsim-ag-grid {
  --ag-font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  --ag-border-radius: var(--imsim-radius-lg);
  --ag-wrapper-border-radius: var(--imsim-radius-lg);
  --ag-border-color: var(--imsim-line);
  --ag-row-border-color: var(--imsim-line);
  --ag-header-column-resize-handle-color: var(--imsim-muted);
  --ag-cell-horizontal-padding: 0.75rem;
  --ag-header-height: 2.9rem;
  --ag-row-height: 2.75rem;
}

.theme-light .imsim-ag-grid {
  --ag-background-color: rgba(255, 253, 248, 0.98);
  --ag-chrome-background-color: rgba(244, 241, 234, 0.96);
  --ag-foreground-color: var(--imsim-ink);
  --ag-secondary-foreground-color: var(--imsim-muted);
  --ag-header-background-color: rgba(244, 241, 234, 0.96);
  --ag-header-foreground-color: var(--imsim-ink);
  --ag-odd-row-background-color: rgba(15, 118, 110, 0.04);
  --ag-row-hover-color: rgba(37, 99, 235, 0.08);
  --ag-selected-row-background-color: rgba(37, 99, 235, 0.14);
  --ag-subheader-background-color: rgba(244, 241, 234, 0.92);
  --ag-modal-overlay-background-color: rgba(255, 253, 248, 0.9);
  --ag-menu-background-color: rgba(255, 253, 248, 0.98);
  --ag-tooltip-background-color: rgba(255, 253, 248, 0.98);
  --ag-input-focus-border-color: var(--imsim-blue);
  --ag-range-selection-border-color: rgba(37, 99, 235, 0.3);
}

.theme-dark .imsim-ag-grid {
  --ag-background-color: rgba(18, 31, 49, 0.96);
  --ag-chrome-background-color: rgba(10, 19, 32, 0.96);
  --ag-foreground-color: var(--imsim-ink);
  --ag-secondary-foreground-color: var(--imsim-muted);
  --ag-header-background-color: rgba(10, 19, 32, 0.96);
  --ag-header-foreground-color: var(--imsim-ink);
  --ag-border-color: rgba(214, 228, 255, 0.14);
  --ag-row-border-color: rgba(214, 228, 255, 0.1);
  --ag-odd-row-background-color: rgba(15, 118, 110, 0.08);
  --ag-row-hover-color: rgba(37, 99, 235, 0.18);
  --ag-selected-row-background-color: rgba(37, 99, 235, 0.26);
  --ag-subheader-background-color: rgba(10, 19, 32, 0.96);
  --ag-modal-overlay-background-color: rgba(10, 19, 32, 0.92);
  --ag-menu-background-color: rgba(18, 31, 49, 0.98);
  --ag-tooltip-background-color: rgba(18, 31, 49, 0.98);
  --ag-input-focus-border-color: #60a5fa;
  --ag-range-selection-border-color: rgba(96, 165, 250, 0.45);
}

.imsim-ag-grid .ag-root-wrapper,
.imsim-ag-grid .ag-picker-field-wrapper,
.imsim-ag-grid .ag-input-field-input,
.imsim-ag-grid .ag-text-field-input {
  border-radius: var(--imsim-radius-lg);
}

.imsim-ag-grid .ag-root-wrapper {
  border: 1px solid var(--ag-border-color);
  overflow: hidden;
}

.imsim-ag-grid .ag-paging-panel,
.imsim-ag-grid .ag-status-bar {
  border-top-color: var(--ag-border-color);
  color: var(--ag-foreground-color);
}

.imsim-ag-grid .ag-header,
.imsim-ag-grid .ag-row,
.imsim-ag-grid .ag-cell,
.imsim-ag-grid .ag-floating-filter,
.imsim-ag-grid .ag-picker-field-wrapper,
.imsim-ag-grid .ag-input-field-input,
.imsim-ag-grid .ag-text-field-input {
  color: inherit;
}

.imsim-ag-grid .ag-cell.custom-order-qty-cell {
  font-weight: 700;
  background: rgba(37, 99, 235, 0.09);
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.34);
  background: color-mix(in srgb, var(--imsim-blue) 9%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--imsim-blue) 34%, transparent);
  cursor: text;
}

.imsim-ag-grid .ag-cell.custom-order-qty-cell.ag-cell-focus {
  box-shadow:
    inset 0 0 0 2px var(--imsim-blue),
    0 0 0 2px rgba(37, 99, 235, 0.18);
  box-shadow:
    inset 0 0 0 2px var(--imsim-blue),
    0 0 0 2px color-mix(in srgb, var(--imsim-blue) 18%, transparent);
}

.exception-stack {
  display: grid;
  gap: 0.85rem;
}

.inventory-table {
  --bs-table-striped-bg: var(--imsim-table-stripe);
  --bs-table-hover-bg: var(--imsim-table-hover);
  font-size: 0.92rem;
  margin-bottom: 0;
  min-width: var(--imsim-size-table-min);
}

.inventory-table th,
.inventory-table td {
  padding: 0.85rem 0.75rem;
  white-space: nowrap;
}

.table-scroll-shell {
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 0.35rem;
  scrollbar-width: thin;
}

.custom-order-head,
.custom-order-row,
.po-header,
.po-row {
  align-items: center;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--imsim-line);
}

.footer-card {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  width: var(--imsim-size-footer-width);
  z-index: 1050;
}

.footer-hide {
  background: transparent;
  border: 0;
  color: var(--imsim-blue);
  padding: 0;
  margin-top: 0.5rem;
}

.inline-button-group,
.modal-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.maintenance-card {
  margin-bottom: 1.25rem;
  border: 1px solid rgba(220, 38, 38, 0.2);
  background: var(--imsim-maintenance-bg);
}

.card,
.btn,
.form-control,
.input-group-text,
.form-select,
.form-check-input,
.dash-table-container .dash-spreadsheet-container .dash-spreadsheet-inner table {
  border-radius: var(--imsim-radius-lg);
}

.theme-dark .card,
.theme-dark .list-group-item,
.theme-dark .input-group-text,
.theme-dark .form-control,
.theme-dark .form-select,
.theme-dark .form-check-input,
.theme-dark .form-range,
.theme-dark.modal-content,
.theme-dark .modal-content,
.theme-dark .table,
.theme-dark .alert {
  background-color: var(--imsim-surface-strong);
  border-color: var(--imsim-line);
  color: var(--imsim-ink);
}

.theme-dark .list-group-item,
.theme-dark .table,
.theme-dark .table th,
.theme-dark .table td {
  color: var(--imsim-ink);
}

.theme-dark .text-muted {
  color: var(--imsim-muted) !important;
}

.theme-dark .metric-neutral {
  border-top-color: var(--imsim-blue);
  background-image:
    linear-gradient(180deg, rgba(37, 99, 235, 0.18) 0%, rgba(37, 99, 235, 0.08) 18%, transparent 36%);
}

.theme-dark .metric-good {
  border-top-color: var(--imsim-teal);
  background-image:
    linear-gradient(180deg, rgba(15, 118, 110, 0.18) 0%, rgba(15, 118, 110, 0.08) 18%, transparent 36%);
}

.theme-dark .metric-warn {
  border-top-color: var(--imsim-orange);
  background-image:
    linear-gradient(180deg, rgba(249, 115, 22, 0.2) 0%, rgba(249, 115, 22, 0.09) 18%, transparent 36%);
}

.theme-dark .btn-light {
  background-color: #22344b;
  border-color: #22344b;
  color: #e6eefc;
}

.theme-dark .btn-secondary {
  background-color: #33485f;
  border-color: #33485f;
}

.theme-dark .btn-dark {
  background-color: #dfe9fb;
  border-color: #dfe9fb;
  color: #112338;
}

.theme-dark .btn-close {
  filter: invert(1);
}

.theme-dark .upload-shell {
  border-color: rgba(94, 234, 212, 0.35);
}

.theme-dark .control-input {
  background: var(--imsim-control-bg);
  color: var(--imsim-ink);
  caret-color: var(--imsim-ink);
  color-scheme: dark;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.theme-dark .speed-readout,
.theme-dark #sim-speed-readout {
  background-color: #132238;
  border-color: rgba(214, 228, 255, 0.16);
  color: #e6eefc;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.theme-dark .sim-speed-slider .rc-slider-tooltip input,
.theme-dark .sim-speed-slider .rc-tooltip input,
.theme-dark .rc-slider-tooltip input,
.theme-dark .rc-tooltip input {
  background: #132238 !important;
  border-color: rgba(214, 228, 255, 0.2) !important;
  color: #e6eefc !important;
}

.theme-dark .button-light {
  background: rgba(96, 165, 250, 0.12);
  border-color: rgba(96, 165, 250, 0.18);
  color: #e6eefc;
}

.theme-dark .button-light:hover {
  background: rgba(96, 165, 250, 0.18);
  border-color: rgba(96, 165, 250, 0.24);
}

.theme-dark .button-ghost {
  background: transparent;
  border-color: rgba(214, 228, 255, 0.22);
  color: #e6eefc;
}

.theme-dark .button-ghost:hover {
  background: rgba(94, 234, 212, 0.08);
  border-color: rgba(94, 234, 212, 0.3);
}

.theme-dark .button-dark {
  background: #dfe9fb;
  border-color: #dfe9fb;
  color: #112338;
}

.theme-dark .button-dark:hover {
  background: #f4f7fb;
  border-color: #f4f7fb;
}

.theme-dark .button-link {
  color: #93c5fd;
}

.theme-dark .button-link:hover {
  color: #bfdbfe;
}

.theme-dark .imsim-toggle-input {
  background-color: rgba(214, 228, 255, 0.12);
  border-color: rgba(214, 228, 255, 0.2);
}

.theme-dark .imsim-toggle-input:checked {
  background-color: rgba(45, 212, 191, 0.18);
  border-color: rgba(94, 234, 212, 0.32);
}

.theme-dark .rc-slider-mark-text {
  color: var(--imsim-muted);
}

.rc-slider-rail {
  background-color: rgba(83, 98, 119, 0.22);
  height: var(--imsim-slider-rail-size);
}

.rc-slider-track {
  background-color: var(--imsim-blue);
  height: var(--imsim-slider-rail-size);
}

.rc-slider-handle {
  background-color: var(--imsim-surface-strong);
  border: var(--imsim-border-strong) solid var(--imsim-blue);
  box-shadow: var(--imsim-shadow-focus-slider);
  height: var(--imsim-slider-handle-size);
  margin-top: var(--imsim-slider-handle-offset);
  opacity: 1;
  width: var(--imsim-slider-handle-size);
}

.rc-slider-handle:focus-visible {
  box-shadow: var(--imsim-shadow-focus-strong);
}

.rc-slider-tooltip,
.rc-tooltip {
  opacity: 1;
}

.rc-slider-tooltip .rc-slider-tooltip-inner,
.rc-tooltip .rc-tooltip-inner {
  background-color: #132238;
  border: 1px solid rgba(214, 228, 255, 0.2);
  border-radius: var(--imsim-radius-sm);
  box-shadow: var(--imsim-shadow-float);
  color: #e6eefc;
  font-family: "Space Grotesk", "IBM Plex Sans", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
}

.rc-slider-tooltip .rc-slider-tooltip-arrow,
.rc-tooltip .rc-tooltip-arrow {
  border-top-color: #132238 !important;
}

.rc-slider-tooltip input,
.rc-tooltip input {
  background: #132238 !important;
  border: 1px solid rgba(214, 228, 255, 0.2) !important;
  color: #e6eefc !important;
  box-shadow: none !important;
}

.theme-dark .rc-slider-rail {
  background-color: rgba(214, 228, 255, 0.18);
}

.theme-dark .rc-slider-track {
  background-color: #5eead4;
}

.theme-dark .rc-slider-handle {
  background-color: #132238;
  border-color: #5eead4;
  box-shadow: var(--imsim-shadow-focus-slider-dark);
}

.theme-dark .rc-slider-tooltip .rc-slider-tooltip-inner,
.theme-dark .rc-tooltip .rc-tooltip-inner {
  background-color: #132238 !important;
  border-color: rgba(214, 228, 255, 0.2);
  color: #e6eefc !important;
  box-shadow: var(--imsim-shadow-float);
}

.theme-dark .rc-slider-tooltip .rc-slider-tooltip-arrow,
.theme-dark .rc-tooltip .rc-tooltip-arrow {
  border-top-color: #132238 !important;
}

.js-plotly-plot .plotly .main-svg {
  border-radius: var(--imsim-radius-2xl);
}

.inventory-graph {
  height: 100%;
  min-height: 20rem;
  width: 100%;
}

.dashboard-shell #graph-panel > .card,
.dashboard-shell #graph-panel > .card > .card-body {
  height: auto;
  min-height: 0;
}

.dashboard-shell #graph-panel > .card > .card-body {
  display: flex;
  flex-direction: column;
  min-height: 0;
  gap: 0.35rem;
  padding-bottom: 1.4rem;
}

.dashboard-shell #graph-panel > .card {
  overflow: visible;
}

.dashboard-shell #graph-panel .dash-graph,
.dashboard-shell #graph-panel .js-plotly-plot,
.dashboard-shell #graph-panel .plot-container,
.dashboard-shell #graph-panel .svg-container {
  height: 100% !important;
  min-height: inherit;
  overflow: visible !important;
}

.dashboard-shell.lesson-dashboard {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 0.75rem;
  min-height: 0;
  margin-top: 0;
}

.dashboard-shell.lesson-dashboard > * {
  min-height: 0;
  min-width: 0;
}

.dashboard-shell.simulator-dashboard {
  display: grid;
  gap: 0.75rem;
}

.dashboard-shell.simulator-dashboard .dashboard-rail-column {
  display: grid;
  align-content: start;
  gap: 0.75rem;
}

.dashboard-shell.simulator-dashboard .dashboard-main-column {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.dashboard-shell.simulator-dashboard .dashboard-main-layout,
.dashboard-shell.simulator-dashboard .dashboard-insights-row,
.dashboard-shell.simulator-dashboard .dashboard-detail-row {
  --bs-gutter-x: 0.75rem;
  --bs-gutter-y: 0.75rem;
}

.dashboard-shell.simulator-dashboard .dashboard-main-layout,
.dashboard-shell.simulator-dashboard .dashboard-insights-row,
.dashboard-shell.simulator-dashboard .dashboard-detail-row {
  margin: 0 !important;
}

.dashboard-shell.simulator-dashboard #actions-panel > .card,
.dashboard-shell.simulator-dashboard #policy-panel > .card,
.dashboard-shell.simulator-dashboard #session-panel > .card,
.dashboard-shell.simulator-dashboard #graph-panel > .card,
.dashboard-shell.simulator-dashboard #service-panel > .card,
.dashboard-shell.simulator-dashboard #costs-panel > .card,
.dashboard-shell.simulator-dashboard #sales-panel > .card,
.dashboard-shell.simulator-dashboard #inventory-panel > .card,
.dashboard-shell.simulator-dashboard #exceptions-panel > .card {
  margin: 0 !important;
}

.dashboard-shell.lesson-dashboard .experience-banner-card {
  margin-bottom: 0 !important;
}

.dashboard-shell.lesson-dashboard #kpi-strip {
  margin-top: 0 !important;
}

.dashboard-shell.lesson-dashboard .experience-banner-card .card-body {
  padding: 0.7rem 1rem 0.75rem;
}

.dashboard-shell.lesson-dashboard .hero-title {
  font-size: clamp(1.3rem, 1.8vw, 1.7rem);
  line-height: 1;
  margin-bottom: 0.2rem;
}

.dashboard-shell.lesson-dashboard .hero-copy {
  font-size: 0.84rem;
  line-height: 1.38;
  margin-top: 0.2rem;
  max-width: 68ch;
}

.dashboard-shell.lesson-dashboard .hero-actions .imsim-button {
  min-height: 2.45rem;
  padding: 0.55rem 0.9rem;
}

.dashboard-shell.lesson-dashboard .hero-actions-compact {
  gap: 0.5rem;
}

.dashboard-shell.lesson-dashboard .lesson-compact-summary {
  margin-top: 0.55rem !important;
}

.dashboard-shell.lesson-dashboard .dashboard-main-layout {
  --bs-gutter-x: 0.75rem;
  --bs-gutter-y: 0.75rem;
  margin: 0 !important;
  min-height: 0;
}

.dashboard-shell.lesson-dashboard .panel-label {
  font-size: 0.72rem;
}

.dashboard-shell.lesson-dashboard .panel-title {
  font-size: 1.22rem;
  margin-bottom: 0.75rem;
}

.dashboard-shell.lesson-dashboard .panel-title-small {
  font-size: 1rem;
  margin-bottom: 0.55rem;
}

.dashboard-shell.lesson-dashboard .status-value {
  font-size: 1.85rem;
}

.dashboard-shell.lesson-dashboard .status-copy,
.dashboard-shell.lesson-dashboard .control-label,
.dashboard-shell.lesson-dashboard .speed-readout,
.dashboard-shell.lesson-dashboard .list-group-item,
.dashboard-shell.lesson-dashboard .inventory-table {
  font-size: 0.92rem;
}

.dashboard-shell.lesson-dashboard .session-card .card-body,
.dashboard-shell.lesson-dashboard #service-panel .card-body,
.dashboard-shell.lesson-dashboard #inventory-panel .card-body {
  padding: 0.95rem;
}

.dashboard-shell.lesson-dashboard #service-panel .list-group-item {
  padding-block: 0.72rem;
}

.dashboard-shell.lesson-dashboard #service-panel .lesson-snapshot-stack {
  gap: 0.45rem;
}

.dashboard-shell.lesson-dashboard #service-panel .lesson-snapshot-disclosure {
  gap: 0.45rem;
}

.dashboard-shell.lesson-dashboard #service-panel .lesson-snapshot-block {
  gap: 0.22rem;
}

.dashboard-shell.lesson-dashboard #service-panel .lesson-service-table th,
.dashboard-shell.lesson-dashboard #service-panel .lesson-service-table td {
  padding: 0.48rem 0.55rem;
}

.dashboard-shell.lesson-dashboard #service-panel .lesson-snapshot-label {
  font-size: 0.68rem;
}

.dashboard-shell.lesson-dashboard .inventory-table {
  min-width: 0;
}

.dashboard-shell.lesson-dashboard .inventory-table th,
.dashboard-shell.lesson-dashboard .inventory-table td {
  padding: 0.68rem 0.7rem;
}

.dashboard-shell.lesson-dashboard #inventory-graph {
  height: 100%;
  min-height: var(--imsim-size-dashboard-graph-min);
}

.dashboard-shell.lesson-dashboard #graph-panel > .card,
.dashboard-shell.lesson-dashboard #graph-panel > .card > .card-body {
  height: auto;
  min-height: 0;
}

.dashboard-shell.lesson-dashboard #graph-panel > .card > .card-body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding-bottom: 1.45rem;
}

.dashboard-shell.lesson-dashboard #graph-panel .dash-graph,
.dashboard-shell.lesson-dashboard #graph-panel .js-plotly-plot,
.dashboard-shell.lesson-dashboard #graph-panel .plot-container,
.dashboard-shell.lesson-dashboard #graph-panel .svg-container {
  height: auto !important;
}

.dashboard-shell.lesson-layout-workspace-signal #inventory-graph {
  min-height: 16rem;
}

.dashboard-shell.lesson-layout-workspace-advanced #inventory-graph {
  min-height: 18rem;
}

.dashboard-shell.lesson-layout-workspace-certification #inventory-graph {
  min-height: 19rem;
}

.dashboard-shell.simulator-dashboard #graph-panel {
  min-height: 30rem;
}

.dashboard-shell.simulator-dashboard #graph-panel > .card,
.dashboard-shell.simulator-dashboard #graph-panel > .card > .card-body {
  min-height: 30rem;
}

.dashboard-shell.simulator-dashboard #inventory-graph {
  min-height: 26rem;
}

.dashboard-shell.lesson-dashboard.lesson-level-2 .experience-banner-card .card-body {
  padding: 0.65rem 1rem 0.7rem;
}

.dashboard-shell.lesson-dashboard.lesson-level-2 .hero-title {
  font-size: clamp(1.2rem, 1.6vw, 1.55rem);
  margin-bottom: 0.15rem;
}

.dashboard-shell.lesson-dashboard.lesson-level-2 .hero-copy {
  font-size: 0.8rem;
  line-height: 1.32;
  margin-top: 0.15rem;
  max-width: 44ch;
}

.dashboard-shell.lesson-dashboard.lesson-level-2 .lesson-compact-summary {
  gap: 0.35rem;
}

.dashboard-shell.lesson-dashboard.lesson-level-2 .lesson-compact-chip,
.dashboard-shell.lesson-dashboard.lesson-level-2 .lesson-compact-pill {
  min-height: 1.95rem;
  padding: 0.35rem 0.65rem;
  font-size: 0.76rem;
}

.dashboard-shell.lesson-dashboard.lesson-level-2 .lesson-compact-inline {
  gap: 0.35rem;
}

.dashboard-shell.lesson-dashboard.lesson-level-2 #actions-panel .panel-label,
.dashboard-shell.lesson-dashboard.lesson-level-2 #graph-panel .panel-label,
.dashboard-shell.lesson-dashboard.lesson-level-2 #inventory-panel .panel-label {
  display: none;
}

.dashboard-shell.lesson-dashboard.lesson-level-2 #actions-panel .panel-title,
.dashboard-shell.lesson-dashboard.lesson-level-2 #graph-panel .panel-title,
.dashboard-shell.lesson-dashboard.lesson-level-2 #inventory-panel .panel-title {
  margin-bottom: 0.55rem;
}

.dashboard-shell.lesson-dashboard.lesson-level-2 #actions-panel .card-body,
.dashboard-shell.lesson-dashboard.lesson-level-2 #service-panel .card-body,
.dashboard-shell.lesson-dashboard.lesson-level-2 #inventory-panel .card-body {
  padding: 0.9rem 1rem;
}

.dashboard-shell.lesson-dashboard.lesson-level-2 #service-panel .lesson-service-table th {
  font-size: 0.67rem;
  letter-spacing: 0.06em;
}

.dashboard-shell.lesson-dashboard.lesson-level-2 #service-panel .lesson-snapshot-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
}

.dashboard-shell.lesson-dashboard.lesson-level-2 #service-panel .lesson-service-table td {
  font-size: 0.82rem;
}

.dashboard-shell.lesson-dashboard.lesson-level-2 #session-panel .session-card {
  margin-top: 0 !important;
}

.dashboard-shell.lesson-dashboard.lesson-level-2 #session-panel > .card > .card-body {
  padding: 0.9rem 1rem;
}

.dashboard-shell.lesson-dashboard.lesson-level-2 #session-panel .session-metrics-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
}

.dashboard-shell.lesson-dashboard.lesson-level-2 #session-panel .session-primary-block,
.dashboard-shell.lesson-dashboard.lesson-level-2 #session-panel .session-speed-block {
  height: 100%;
}

.dashboard-shell.lesson-dashboard.lesson-level-2 #session-panel .status-value {
  font-size: 1.65rem;
}

.dashboard-shell.lesson-dashboard.lesson-level-2 #inventory-panel .card-body {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.dashboard-shell.lesson-dashboard.lesson-level-2 #inventory-table-shell,
.dashboard-shell.lesson-dashboard.lesson-level-2 .table-scroll-shell {
  min-height: 0;
  overflow: visible;
}

@media (min-width: 1200px) {
  .control-rail-column {
    max-width: var(--imsim-size-control-rail-max);
  }

  .dashboard-shell.lesson-dashboard,
  .dashboard-shell.simulator-dashboard {
    overflow: visible;
  }

  .dashboard-shell.lesson-dashboard .dashboard-main-layout,
  .dashboard-shell.simulator-dashboard .dashboard-main-layout {
    height: auto;
    min-height: 0;
    flex-wrap: nowrap;
    align-items: start;
  }

  .dashboard-shell.simulator-dashboard .dashboard-main-layout,
  .dashboard-shell.lesson-dashboard.lesson-layout-workspace-certification .dashboard-main-layout {
    display: grid;
    grid-template-columns:
      minmax(17rem, var(--imsim-size-dashboard-rail-max))
      minmax(0, 1fr);
    gap: 0.75rem;
    width: 100%;
  }

  .dashboard-shell.lesson-dashboard .dashboard-rail-column,
  .dashboard-shell.lesson-dashboard .dashboard-main-column,
  .dashboard-shell.simulator-dashboard .dashboard-rail-column,
  .dashboard-shell.simulator-dashboard .dashboard-main-column {
    min-height: 0;
  }

  .dashboard-shell.lesson-dashboard .dashboard-rail-column,
  .dashboard-shell.simulator-dashboard .dashboard-rail-column {
    max-width: var(--imsim-size-dashboard-rail-max);
  }

  .dashboard-shell.lesson-dashboard .dashboard-main-column,
  .dashboard-shell.simulator-dashboard .dashboard-main-column {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: visible;
  }

  .dashboard-shell.simulator-dashboard .dashboard-rail-column,
  .dashboard-shell.lesson-dashboard.lesson-layout-workspace-certification .dashboard-rail-column,
  .dashboard-shell.simulator-dashboard .dashboard-main-column,
  .dashboard-shell.lesson-dashboard.lesson-layout-workspace-certification .dashboard-main-column {
    width: 100% !important;
    max-width: none !important;
    padding: 0;
  }

  .dashboard-shell.lesson-dashboard #graph-panel,
  .dashboard-shell.simulator-dashboard #graph-panel {
    flex: 1 1 auto;
    min-height: 0;
  }

  .dashboard-shell.lesson-dashboard .dashboard-insights-row,
  .dashboard-shell.lesson-dashboard .dashboard-detail-row,
  .dashboard-shell.simulator-dashboard .dashboard-insights-row,
  .dashboard-shell.simulator-dashboard .dashboard-detail-row {
    flex: 0 0 auto;
  }

  .dashboard-shell.simulator-dashboard .dashboard-detail-row,
  .dashboard-shell.lesson-dashboard.lesson-layout-workspace-certification .dashboard-detail-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.75rem;
    width: 100%;
  }

  .dashboard-shell.simulator-dashboard .dashboard-insights-row,
  .dashboard-shell.lesson-dashboard.lesson-layout-workspace-certification .dashboard-insights-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    width: 100%;
    align-items: stretch;
    margin-bottom: 0.75rem !important;
  }

  .dashboard-shell.lesson-dashboard .dashboard-insights-row > [id],
  .dashboard-shell.lesson-dashboard .dashboard-detail-row > [id],
  .dashboard-shell.simulator-dashboard .dashboard-insights-row > [id],
  .dashboard-shell.simulator-dashboard .dashboard-detail-row > [id] {
    display: flex;
  }

  .dashboard-shell.simulator-dashboard .dashboard-insights-row > [id],
  .dashboard-shell.simulator-dashboard .dashboard-detail-row > [id],
  .dashboard-shell.lesson-dashboard.lesson-layout-workspace-certification .dashboard-insights-row > [id],
  .dashboard-shell.lesson-dashboard.lesson-layout-workspace-certification .dashboard-detail-row > [id] {
    width: 100% !important;
    max-width: none !important;
    padding: 0;
  }

  .dashboard-shell.lesson-dashboard .dashboard-insights-row > [id] > .card,
  .dashboard-shell.lesson-dashboard .dashboard-detail-row > [id] > .card,
  .dashboard-shell.simulator-dashboard .dashboard-insights-row > [id] > .card,
  .dashboard-shell.simulator-dashboard .dashboard-detail-row > [id] > .card {
    width: 100%;
    height: 100%;
  }

  .dashboard-shell.simulator-dashboard #exceptions-panel > .card,
  .dashboard-shell.lesson-dashboard.lesson-layout-workspace-certification #exceptions-panel > .card {
    height: auto;
  }

  .dashboard-shell.lesson-dashboard #inventory-panel .card-body,
  .dashboard-shell.simulator-dashboard #inventory-panel .card-body,
  .dashboard-shell.simulator-dashboard #exceptions-panel .card-body {
    display: flex;
    flex-direction: column;
    max-height: none;
    min-height: 0;
  }

  .dashboard-shell.simulator-dashboard #exceptions-panel .card-body,
  .dashboard-shell.lesson-dashboard.lesson-layout-workspace-certification #exceptions-panel .card-body {
    max-height: 14rem;
    overflow-y: auto;
  }

  .dashboard-shell.lesson-dashboard #inventory-table-shell,
  .dashboard-shell.lesson-dashboard .table-scroll-shell,
  .dashboard-shell.simulator-dashboard #inventory-table-shell,
  .dashboard-shell.simulator-dashboard .table-scroll-shell {
    max-height: none;
    min-height: 0;
    overflow-x: auto;
    overflow-y: visible;
  }

  .dashboard-shell.lesson-dashboard.lesson-level-2 .dashboard-main-layout {
    display: grid;
    grid-template-columns: minmax(17rem, 23rem) minmax(0, 1fr);
    grid-template-rows: auto auto auto auto;
    grid-template-areas:
      "actions graph"
      "session graph"
      ". inventory"
      ". service";
    gap: 0.75rem;
    align-items: start;
    align-content: start;
    height: auto;
    padding-bottom: 1rem;
  }

  .dashboard-shell.lesson-dashboard.lesson-level-2 .dashboard-rail-column,
  .dashboard-shell.lesson-dashboard.lesson-level-2 .dashboard-main-column,
  .dashboard-shell.lesson-dashboard.lesson-level-2 .dashboard-insights-row,
  .dashboard-shell.lesson-dashboard.lesson-level-2 .dashboard-detail-row {
    display: contents;
  }

  .dashboard-shell.lesson-dashboard.lesson-level-2 #actions-panel,
  .dashboard-shell.lesson-dashboard.lesson-level-2 #service-panel,
  .dashboard-shell.lesson-dashboard.lesson-level-2 #session-panel,
  .dashboard-shell.lesson-dashboard.lesson-level-2 #graph-panel,
  .dashboard-shell.lesson-dashboard.lesson-level-2 #inventory-panel {
    padding: 0;
    width: 100% !important;
    max-width: none !important;
    min-width: 0;
    flex: 0 0 auto !important;
    display: flex;
  }

  .dashboard-shell.lesson-dashboard.lesson-level-2 #actions-panel {
    grid-area: actions;
  }

  .dashboard-shell.lesson-dashboard.lesson-level-2 #service-panel {
    grid-area: service;
  }

  .dashboard-shell.lesson-dashboard.lesson-level-2 #session-panel {
    grid-area: session;
  }

  .dashboard-shell.lesson-dashboard.lesson-level-2 #graph-panel {
    grid-area: graph;
    min-height: 0;
  }

  .dashboard-shell.lesson-dashboard.lesson-level-2 #inventory-panel {
    grid-area: inventory;
    min-height: 0;
  }

  .dashboard-shell.lesson-dashboard.lesson-level-2 #inventory-panel .card-body {
    max-height: none;
    overflow: visible;
  }

  .dashboard-shell.lesson-dashboard.lesson-level-2 #inventory-table-shell,
  .dashboard-shell.lesson-dashboard.lesson-level-2 .table-scroll-shell {
    max-height: none;
    overflow-x: auto;
    overflow-y: visible;
  }

  .dashboard-shell.lesson-dashboard.lesson-level-2 #actions-panel > .card,
  .dashboard-shell.lesson-dashboard.lesson-level-2 #service-panel > .card,
  .dashboard-shell.lesson-dashboard.lesson-level-2 #session-panel > .card,
  .dashboard-shell.lesson-dashboard.lesson-level-2 #graph-panel > .card,
  .dashboard-shell.lesson-dashboard.lesson-level-2 #inventory-panel > .card {
    width: 100%;
    max-width: none;
    margin: 0 !important;
  }

  .dashboard-shell.lesson-dashboard.lesson-level-2 #graph-panel > .card {
    height: 100%;
  }

  .dashboard-shell.lesson-dashboard.lesson-level-2 #inventory-panel > .card,
  .dashboard-shell.lesson-dashboard.lesson-level-2 #service-panel > .card {
    height: auto;
  }

  .dashboard-shell.lesson-dashboard.lesson-level-2 #graph-panel > .card > .card-body {
    padding: 0.95rem 1rem 1.5rem;
  }

  .dashboard-shell.lesson-dashboard.lesson-level-2 #graph-panel {
    min-height: 22rem;
  }

  .dashboard-shell.lesson-dashboard.lesson-level-2 #inventory-graph {
    min-height: 19rem;
  }

  .dashboard-shell.lesson-dashboard.lesson-level-2 {
    overflow: visible;
  }

  .dashboard-shell.lesson-layout-intro-pna:not(.lesson-level-2) .dashboard-main-layout {
    align-items: stretch;
    padding-bottom: 1rem;
  }

  .dashboard-shell.lesson-layout-intro-pna:not(.lesson-level-2) .dashboard-main-column {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }

  .dashboard-shell.lesson-layout-intro-pna:not(.lesson-level-2) #graph-panel {
    min-height: 20.5rem;
    order: 1;
    padding: 0;
  }

  .dashboard-shell.lesson-layout-intro-pna:not(.lesson-level-2) .dashboard-detail-row {
    order: 2;
    margin: 0 !important;
  }

  .dashboard-shell.lesson-layout-intro-pna:not(.lesson-level-2) .dashboard-insights-row {
    order: 3;
    margin: 0 !important;
  }

  .dashboard-shell.lesson-layout-intro-pna:not(.lesson-level-2) .dashboard-detail-row > #inventory-panel,
  .dashboard-shell.lesson-layout-intro-pna:not(.lesson-level-2) .dashboard-insights-row > #service-panel {
    display: flex;
    flex: 0 0 100%;
    max-width: 100%;
    padding: 0;
    width: 100%;
  }

  .dashboard-shell.lesson-layout-intro-pna:not(.lesson-level-2) #graph-panel > .card,
  .dashboard-shell.lesson-layout-intro-pna:not(.lesson-level-2) #inventory-panel > .card,
  .dashboard-shell.lesson-layout-intro-pna:not(.lesson-level-2) #service-panel > .card {
    width: 100%;
    max-width: none;
    margin: 0 !important;
    height: auto;
  }

  .dashboard-shell.lesson-layout-intro-pna:not(.lesson-level-2) #graph-panel > .card > .card-body {
    padding: 1rem 1rem 1.45rem;
  }

  .dashboard-shell.lesson-layout-intro-pna:not(.lesson-level-2) #inventory-graph {
    min-height: 18rem;
  }

  .dashboard-shell.lesson-layout-intro-pna:not(.lesson-level-2) #inventory-panel .card-body,
  .dashboard-shell.lesson-layout-intro-pna:not(.lesson-level-2) #service-panel .card-body {
    max-height: none;
    overflow: visible;
  }

  .dashboard-shell.lesson-layout-intro-pna:not(.lesson-level-2) #inventory-table-shell,
  .dashboard-shell.lesson-layout-intro-pna:not(.lesson-level-2) .table-scroll-shell {
    max-height: none;
    overflow-x: auto;
    overflow-y: visible;
  }

  .dashboard-shell.lesson-layout-workspace-basic .dashboard-main-layout,
  .dashboard-shell.lesson-layout-workspace-signal .dashboard-main-layout {
    display: grid;
    grid-template-columns: minmax(18rem, 20rem) minmax(0, 1fr);
    gap: 0.75rem;
    align-items: start;
  }

  .dashboard-shell.lesson-layout-workspace-basic .dashboard-rail-column,
  .dashboard-shell.lesson-layout-workspace-basic .dashboard-main-column,
  .dashboard-shell.lesson-layout-workspace-basic .dashboard-insights-row,
  .dashboard-shell.lesson-layout-workspace-basic .dashboard-detail-row,
  .dashboard-shell.lesson-layout-workspace-signal .dashboard-rail-column,
  .dashboard-shell.lesson-layout-workspace-signal .dashboard-main-column,
  .dashboard-shell.lesson-layout-workspace-signal .dashboard-insights-row,
  .dashboard-shell.lesson-layout-workspace-signal .dashboard-detail-row {
    display: contents;
  }

  .dashboard-shell.lesson-layout-workspace-basic .dashboard-main-layout {
    grid-template-rows: auto auto auto;
    grid-template-areas:
      "actions inventory"
      "session inventory"
      ". service";
    padding-bottom: 1rem;
  }

  .dashboard-shell.lesson-layout-workspace-signal .dashboard-main-layout {
    grid-template-rows: auto auto auto auto;
    grid-template-areas:
      "actions graph"
      "session graph"
      "inventory inventory"
      "service service";
    padding-bottom: 1rem;
  }

  .dashboard-shell.lesson-layout-workspace-basic #actions-panel,
  .dashboard-shell.lesson-layout-workspace-basic #session-panel,
  .dashboard-shell.lesson-layout-workspace-basic #service-panel,
  .dashboard-shell.lesson-layout-workspace-basic #inventory-panel,
  .dashboard-shell.lesson-layout-workspace-signal #actions-panel,
  .dashboard-shell.lesson-layout-workspace-signal #session-panel,
  .dashboard-shell.lesson-layout-workspace-signal #graph-panel,
  .dashboard-shell.lesson-layout-workspace-signal #service-panel,
  .dashboard-shell.lesson-layout-workspace-signal #inventory-panel {
    padding: 0;
    width: 100% !important;
    max-width: none !important;
    min-width: 0;
    flex: 0 0 auto !important;
    display: flex;
  }

  .dashboard-shell.lesson-layout-workspace-basic #actions-panel,
  .dashboard-shell.lesson-layout-workspace-signal #actions-panel {
    grid-area: actions;
  }

  .dashboard-shell.lesson-layout-workspace-basic #session-panel,
  .dashboard-shell.lesson-layout-workspace-signal #session-panel {
    grid-area: session;
  }

  .dashboard-shell.lesson-layout-workspace-basic #service-panel,
  .dashboard-shell.lesson-layout-workspace-signal #service-panel {
    grid-area: service;
  }

  .dashboard-shell.lesson-layout-workspace-basic #inventory-panel,
  .dashboard-shell.lesson-layout-workspace-signal #inventory-panel {
    grid-area: inventory;
    min-height: 0;
  }

  .dashboard-shell.lesson-layout-workspace-signal #graph-panel {
    grid-area: graph;
    min-height: 18.5rem;
  }

  .dashboard-shell.lesson-layout-workspace-basic #actions-panel > .card,
  .dashboard-shell.lesson-layout-workspace-basic #session-panel > .card,
  .dashboard-shell.lesson-layout-workspace-basic #service-panel > .card,
  .dashboard-shell.lesson-layout-workspace-basic #inventory-panel > .card,
  .dashboard-shell.lesson-layout-workspace-signal #actions-panel > .card,
  .dashboard-shell.lesson-layout-workspace-signal #session-panel > .card,
  .dashboard-shell.lesson-layout-workspace-signal #graph-panel > .card,
  .dashboard-shell.lesson-layout-workspace-signal #service-panel > .card,
  .dashboard-shell.lesson-layout-workspace-signal #inventory-panel > .card {
    width: 100%;
    max-width: none;
    margin: 0 !important;
  }

  .dashboard-shell.lesson-layout-workspace-basic #inventory-panel > .card,
  .dashboard-shell.lesson-layout-workspace-signal #graph-panel > .card,
  .dashboard-shell.lesson-layout-workspace-signal #inventory-panel > .card {
    height: 100%;
  }

  .dashboard-shell.lesson-dashboard #inventory-panel {
    align-self: start;
  }

  .dashboard-shell.lesson-dashboard #inventory-panel > .card {
    height: auto;
  }

  .dashboard-shell.lesson-layout-workspace-basic #inventory-panel .card-body,
  .dashboard-shell.lesson-layout-workspace-signal #inventory-panel .card-body {
    display: flex;
    flex-direction: column;
    min-height: 0;
    max-height: none;
  }

  .dashboard-shell.lesson-layout-workspace-basic #inventory-table-shell,
  .dashboard-shell.lesson-layout-workspace-basic .table-scroll-shell,
  .dashboard-shell.lesson-layout-workspace-signal #inventory-table-shell,
  .dashboard-shell.lesson-layout-workspace-signal .table-scroll-shell {
    min-height: 0;
    overflow-x: auto;
    overflow-y: visible;
  }

  .dashboard-shell.lesson-dashboard.lesson-level-11.lesson-layout-workspace-basic .dashboard-main-layout {
    grid-template-rows: auto auto;
    grid-template-areas:
      "session inventory"
      "service inventory";
  }

  .dashboard-shell.lesson-dashboard.lesson-level-11.lesson-layout-workspace-basic #session-panel .session-card,
  .dashboard-shell.lesson-dashboard.lesson-level-17.lesson-layout-workspace-signal #session-panel .session-card {
    margin-top: 0 !important;
  }

  .dashboard-shell.lesson-dashboard.lesson-level-12.lesson-layout-workspace-signal #graph-panel,
  .dashboard-shell.lesson-dashboard.lesson-level-13.lesson-layout-workspace-signal #graph-panel {
    min-height: 21rem;
  }

  .dashboard-shell.lesson-dashboard.lesson-level-12.lesson-layout-workspace-signal #inventory-graph,
  .dashboard-shell.lesson-dashboard.lesson-level-13.lesson-layout-workspace-signal #inventory-graph {
    min-height: 21rem;
  }

  .dashboard-shell.lesson-dashboard.lesson-level-17.lesson-layout-workspace-signal .dashboard-main-layout {
    grid-template-columns: minmax(15rem, 16.5rem) minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    grid-template-areas:
      "session graph"
      "inventory inventory"
      "service service";
  }

  .dashboard-shell.lesson-dashboard.lesson-level-17.lesson-layout-workspace-signal #graph-panel {
    min-height: 22rem;
  }

  .dashboard-shell.lesson-dashboard.lesson-level-17.lesson-layout-workspace-signal #inventory-graph {
    min-height: 22rem;
  }

  .dashboard-shell.lesson-dashboard.lesson-level-17.lesson-layout-workspace-signal #service-panel {
    width: min(100%, 24rem) !important;
    max-width: 24rem !important;
    justify-self: start;
  }

  .dashboard-shell.lesson-dashboard.lesson-level-3 .dashboard-main-layout {
    grid-template-columns: minmax(17rem, 20rem) minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    grid-template-areas:
      "actions graph"
      "session inventory"
      ". service";
    align-items: start;
    align-content: start;
    gap: 0.75rem;
    height: auto;
    padding-bottom: 1rem;
  }

  .dashboard-shell.lesson-dashboard.lesson-level-3 {
    overflow: visible;
  }

  .dashboard-shell.lesson-dashboard.lesson-level-3 #graph-panel {
    grid-area: graph;
    min-height: 24rem;
    width: 100% !important;
    max-width: none !important;
    min-width: 0;
    padding: 0;
    display: flex;
  }

  .dashboard-shell.lesson-dashboard.lesson-level-3 #session-panel .session-card {
    margin-top: 0 !important;
  }

  .dashboard-shell.lesson-dashboard.lesson-level-3 #graph-panel > .card,
  .dashboard-shell.lesson-dashboard.lesson-level-3 #inventory-panel > .card,
  .dashboard-shell.lesson-dashboard.lesson-level-3 #service-panel > .card,
  .dashboard-shell.lesson-dashboard.lesson-level-3 #session-panel > .card {
    width: 100%;
    max-width: none;
    margin: 0 !important;
    height: auto;
  }

  .dashboard-shell.lesson-dashboard.lesson-level-3 #graph-panel > .card {
    height: 100%;
  }

  .dashboard-shell.lesson-dashboard.lesson-level-3 #graph-panel > .card > .card-body {
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 1rem 1rem 1.5rem;
  }

  .dashboard-shell.lesson-dashboard.lesson-level-3 #inventory-graph {
    min-height: 21.5rem;
  }

  .dashboard-shell.lesson-dashboard.lesson-level-3 #inventory-panel .card-body {
    max-height: none;
    overflow: visible;
  }

  .dashboard-shell.lesson-dashboard.lesson-level-3 #inventory-table-shell,
  .dashboard-shell.lesson-dashboard.lesson-level-3 .table-scroll-shell {
    max-height: none;
    overflow-x: auto;
    overflow-y: visible;
  }

  .dashboard-shell.lesson-layout-workspace-advanced .dashboard-rail-column,
  .dashboard-shell.lesson-layout-workspace-certification .dashboard-rail-column {
    max-width: 19rem;
  }

  .dashboard-shell.lesson-layout-workspace-advanced #graph-panel,
  .dashboard-shell.lesson-layout-workspace-certification #graph-panel {
    min-height: 20rem;
  }

  .dashboard-shell.lesson-layout-workspace-advanced .dashboard-insights-row,
  .dashboard-shell.lesson-layout-workspace-certification .dashboard-insights-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 0.75rem !important;
  }

  .dashboard-shell.lesson-layout-workspace-advanced .dashboard-detail-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.75rem;
  }

  .dashboard-shell.lesson-layout-workspace-certification .dashboard-detail-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.75rem;
  }

  .dashboard-shell.lesson-layout-workspace-advanced #service-panel,
  .dashboard-shell.lesson-layout-workspace-advanced #costs-panel,
  .dashboard-shell.lesson-layout-workspace-advanced #sales-panel,
  .dashboard-shell.lesson-layout-workspace-advanced #inventory-panel,
  .dashboard-shell.lesson-layout-workspace-certification #service-panel,
  .dashboard-shell.lesson-layout-workspace-certification #costs-panel,
  .dashboard-shell.lesson-layout-workspace-certification #sales-panel,
  .dashboard-shell.lesson-layout-workspace-certification #inventory-panel,
  .dashboard-shell.lesson-layout-workspace-certification #exceptions-panel {
    padding: 0;
    width: 100% !important;
    max-width: none !important;
    min-width: 0;
    display: flex;
  }

  .dashboard-shell.lesson-layout-workspace-advanced #inventory-panel {
    grid-column: 1 / -1;
  }

  .dashboard-shell.lesson-layout-workspace-advanced #service-panel > .card,
  .dashboard-shell.lesson-layout-workspace-advanced #costs-panel > .card,
  .dashboard-shell.lesson-layout-workspace-advanced #sales-panel > .card,
  .dashboard-shell.lesson-layout-workspace-advanced #inventory-panel > .card,
  .dashboard-shell.lesson-layout-workspace-certification #service-panel > .card,
  .dashboard-shell.lesson-layout-workspace-certification #costs-panel > .card,
  .dashboard-shell.lesson-layout-workspace-certification #sales-panel > .card,
  .dashboard-shell.lesson-layout-workspace-certification #inventory-panel > .card,
  .dashboard-shell.lesson-layout-workspace-certification #exceptions-panel > .card {
    width: 100%;
    max-width: none;
    margin: 0 !important;
  }

  .dashboard-shell.lesson-layout-workspace-advanced #inventory-panel .card-body,
  .dashboard-shell.lesson-layout-workspace-certification #inventory-panel .card-body {
    min-height: 0;
    max-height: none;
  }

  .dashboard-shell.lesson-layout-workspace-certification #exceptions-panel .card-body {
    min-height: 0;
  }

  .dashboard-shell.lesson-layout-workspace-advanced #inventory-panel .card-body,
  .dashboard-shell.lesson-layout-workspace-certification #inventory-panel .card-body {
    display: flex;
    flex-direction: column;
  }

  .dashboard-shell.lesson-dashboard.lesson-level-1 .dashboard-main-layout {
    display: grid;
    grid-template-columns:
      minmax(var(--imsim-size-lesson-grid-min), var(--imsim-size-lesson-grid-max))
      minmax(0, 1fr);
    grid-template-rows: auto auto;
    grid-template-areas:
      "service graph"
      "session graph";
    gap: 0.75rem;
    align-items: start;
    padding-bottom: 1rem;
  }

  .dashboard-shell.lesson-dashboard.lesson-level-1 .dashboard-rail-column,
  .dashboard-shell.lesson-dashboard.lesson-level-1 .dashboard-main-column,
  .dashboard-shell.lesson-dashboard.lesson-level-1 .dashboard-insights-row,
  .dashboard-shell.lesson-dashboard.lesson-level-1 .dashboard-detail-row {
    display: contents;
  }

  .dashboard-shell.lesson-dashboard.lesson-level-1 #service-panel,
  .dashboard-shell.lesson-dashboard.lesson-level-1 #session-panel,
  .dashboard-shell.lesson-dashboard.lesson-level-1 #graph-panel {
    padding: 0;
    width: 100% !important;
    max-width: none !important;
    min-width: 0;
    flex: 0 0 auto !important;
  }

  .dashboard-shell.lesson-dashboard.lesson-level-1 #service-panel {
    margin-top: 0 !important;
  }

  .dashboard-shell.lesson-dashboard.lesson-level-1 #service-panel {
    grid-area: service;
    display: flex;
  }

  .dashboard-shell.lesson-dashboard.lesson-level-1 #session-panel {
    grid-area: session;
    display: flex;
  }

  .dashboard-shell.lesson-dashboard.lesson-level-1 #graph-panel {
    grid-area: graph;
    display: flex;
    min-height: 0;
  }

  .dashboard-shell.lesson-dashboard.lesson-level-1 #service-panel > .card,
  .dashboard-shell.lesson-dashboard.lesson-level-1 #session-panel > .card,
  .dashboard-shell.lesson-dashboard.lesson-level-1 #graph-panel > .card {
    width: 100%;
    max-width: none;
  }

  .dashboard-shell.lesson-dashboard.lesson-level-1 #service-panel > .card,
  .dashboard-shell.lesson-dashboard.lesson-level-1 #session-panel > .card {
    height: 100%;
  }

  .dashboard-shell.lesson-dashboard.lesson-level-1 #session-panel .session-card {
    margin-top: 0 !important;
  }

  .dashboard-shell.lesson-dashboard.lesson-level-1 #service-panel .card-body,
  .dashboard-shell.lesson-dashboard.lesson-level-1 #session-panel .card-body {
    padding: 0.8rem 0.85rem;
  }

  .dashboard-shell.lesson-dashboard.lesson-level-1 #service-panel .panel-title-small,
  .dashboard-shell.lesson-dashboard.lesson-level-1 #session-panel .panel-label {
    margin-bottom: 0.35rem;
  }

  .dashboard-shell.lesson-dashboard.lesson-level-1 #session-panel > .card > .card-body {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    height: 100%;
    overflow: visible;
  }

  .dashboard-shell.lesson-dashboard.lesson-level-1 #session-panel .status-value {
    font-size: 1.6rem;
    margin-bottom: 0.1rem;
  }

  .dashboard-shell.lesson-dashboard.lesson-level-1 #session-panel .status-copy {
    margin-bottom: 0.15rem;
  }

  .dashboard-shell.lesson-dashboard.lesson-level-1 #session-panel .speed-readout {
    margin-bottom: 0.25rem;
    min-height: 2.2rem;
    padding: 0.4rem 0.7rem;
  }

  .dashboard-shell.lesson-dashboard.lesson-level-1 #session-panel .control-label.mt-3 {
    margin-top: 0.45rem !important;
    margin-bottom: 0.1rem;
  }

  .dashboard-shell.lesson-dashboard.lesson-level-1 #session-panel .sim-speed-slider {
    margin: 0 0 0.15rem;
  }

  .dashboard-shell.lesson-dashboard.lesson-level-1 #session-panel #asq-apply-feedback {
    margin-top: 0.25rem !important;
  }
}

@media (max-width: 1199.98px) {
  .lesson-compact-summary {
    align-items: flex-start;
  }

  .lesson-compact-chip {
    white-space: normal;
  }

  .dashboard-shell.lesson-dashboard.lesson-level-2 #session-panel .session-metrics-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 991.98px) {
  .lesson-intro-header {
    padding: 1.25rem 1.15rem 0.75rem;
  }

  .lesson-intro-body {
    padding: 0 1.15rem 1rem;
  }

  .lesson-intro-footer {
    padding: 0 1.15rem 1.15rem;
  }

  .lesson-intro-title {
    font-size: 1.9rem;
  }
  .footer-card {
    position: static;
    width: auto;
    margin-top: 1rem;
  }

  .hero-title {
    max-width: none;
  }

  .hero-actions-wrap,
  .hero-actions-compact {
    justify-content: flex-start;
  }

  .session-card-header {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-height: 900px) {
  .footer-card {
    position: static;
    width: auto;
    margin-top: 1rem;
  }
}
