:root {
  color-scheme: dark;
  --bg: #020617;
  --surface: #0b1220;
  --surface-2: #111c2f;
  --surface-3: #17243a;
  --text: #f8fafc;
  --muted: #b6c2d1;
  --line: #334155;
  --line-strong: #64748b;
  --shared: #2dd4bf;
  --azure: #38bdf8;
  --aws: #fbbf24;
  --warning: #fbbf24;
  --danger: #fb7185;
  --success: #4ade80;
  --focus: #f8fafc;
  --font-ui: "IBM Plex Sans", "Segoe UI", Arial, sans-serif;
  --font-mono: "JetBrains Mono", "Cascadia Code", Consolas, monospace;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --header-height: 176px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.55;
}
button, a, summary { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { font: inherit; }
a { color: var(--shared); }
svg { width: 20px; height: 20px; flex: 0 0 auto; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
[hidden] { display: none !important; }

.skip-link {
  position: fixed;
  z-index: 100;
  left: 16px;
  top: 8px;
  padding: 10px 14px;
  background: var(--text);
  color: var(--bg);
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  background: #07101f;
  border-bottom: 1px solid var(--line);
}
.brand-row {
  min-height: 72px;
  max-width: 1600px;
  margin: 0 auto;
  padding: 12px clamp(16px, 3vw, 36px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
}
.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--shared);
  border-radius: var(--radius-sm);
  color: var(--shared);
  font: 700 22px/1 var(--font-mono);
}
.brand b, .brand small { display: block; }
.brand small { color: var(--muted); font-size: 12px; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.icon-button, .back-link {
  min-height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text);
  padding: 8px 12px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease;
}
.icon-button:hover, .back-link:hover { background: var(--surface-2); border-color: var(--shared); }

.simulation-banner {
  min-height: 36px;
  padding: 6px clamp(16px, 3vw, 36px);
  background: #2b2105;
  border-block: 1px solid #8a6d12;
  color: #fff7d6;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 13px;
  text-align: center;
}
.simulation-banner svg { color: var(--warning); }
.simulation-banner span { color: #eadc9f; }

.cloud-tabs {
  min-height: 58px;
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 4px;
  padding-inline: 16px;
}
.cloud-tabs button {
  min-width: 144px;
  min-height: 48px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: var(--muted);
  padding: 8px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  cursor: pointer;
}
.cloud-tabs button:hover { color: var(--text); background: var(--surface); }
.cloud-tabs button[aria-pressed="true"] { color: var(--text); border-bottom-color: var(--cloud-accent, var(--shared)); }
.tab-dot { width: 10px; height: 10px; border-radius: 50%; border: 2px solid currentColor; }
.tab-dot.shared { color: var(--shared); }
.tab-dot.azure { color: var(--azure); }
.tab-dot.aws { color: var(--aws); }
.progress-track { height: 3px; background: #111827; }
.progress-track span { display: block; width: 0; height: 100%; background: var(--cloud-accent, var(--shared)); transition: width 180ms ease; }

.app-shell {
  max-width: 1600px;
  margin: 0 auto;
  padding: 24px clamp(16px, 3vw, 36px) 64px;
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.stage-rail {
  position: sticky;
  top: calc(var(--header-height) + 20px);
  max-height: calc(100vh - var(--header-height) - 40px);
  overflow: auto;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
  scrollbar-width: thin;
}
.rail-heading { padding: 18px; border-bottom: 1px solid var(--line); }
.rail-heading strong { display: block; margin-top: 4px; }
.eyebrow {
  color: var(--cloud-accent, var(--shared));
  font: 700 11px/1.4 var(--font-mono);
  letter-spacing: .09em;
  text-transform: uppercase;
}
#stage-nav { padding: 8px; }
.stage-button {
  width: 100%;
  min-height: 48px;
  padding: 10px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--muted);
  text-align: left;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  cursor: pointer;
}
.stage-button:hover { background: var(--surface-2); color: var(--text); }
.stage-button[aria-current="step"] { border-color: var(--cloud-accent, var(--shared)); background: var(--surface-2); color: var(--text); }
.stage-index { font: 700 12px/24px var(--font-mono); text-align: center; border: 1px solid var(--line); border-radius: 6px; }
.stage-button small { display: block; color: var(--muted); margin-top: 3px; }
.cost-legend { border-top: 1px solid var(--line); padding: 12px 16px; display: grid; gap: 7px; color: var(--muted); font-size: 12px; }
.cost-legend span { display: flex; align-items: center; gap: 8px; }
.cost { width: 9px; height: 9px; border-radius: 50%; border: 1px solid currentColor; }
.cost.local-free { color: var(--success); background: var(--success); }
.cost.simulation-only { color: var(--shared); background: var(--shared); }
.cost.potentially-billable { color: var(--warning); background: var(--warning); }
.cost.optional-demo { color: #c084fc; background: #c084fc; }

.lesson { min-width: 0; }
.lesson-meta { display: flex; justify-content: space-between; gap: 24px; margin-bottom: 18px; }
.lesson-meta h1 { font-size: clamp(26px, 3vw, 40px); line-height: 1.15; letter-spacing: -.025em; margin: 7px 0 8px; scroll-margin-top: calc(var(--header-height) + 20px); }
.lesson-meta p { color: var(--muted); max-width: 72ch; margin: 0; }
.step-count { white-space: nowrap; font: 700 13px/1 var(--font-mono); color: var(--muted); padding-top: 9px; }
.workspace { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(260px, .7fr); gap: 16px; align-items: stretch; }

.simulator {
  position: relative;
  min-width: 0;
  min-height: 600px;
  background: #eef3f8;
  color: #102035;
  border: 1px solid #6d8298;
  border-radius: var(--radius);
  overflow: hidden;
}
.sim-watermark {
  position: absolute;
  z-index: 5;
  top: 52px;
  right: 12px;
  padding: 5px 8px;
  border: 2px solid #7c2d12;
  color: #7c2d12;
  background: #fff7ed;
  font: 800 10px/1.2 var(--font-mono);
  letter-spacing: .04em;
  transform: rotate(-1deg);
}
.console-bar {
  min-height: 44px;
  padding: 9px 12px;
  background: #0f1c2e;
  color: #fff;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  font-size: 12px;
}
.console-brand { font-weight: 800; color: var(--cloud-accent, var(--shared)); }
.route { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #d8e2ed; font-family: var(--font-mono); }
.fake-account { color: #9fb0c3; }
.console-body { min-height: 554px; padding: 58px clamp(16px, 3vw, 30px) 26px; background: #f4f7fa; }
.mock-heading { display: flex; justify-content: space-between; gap: 16px; align-items: end; border-bottom: 1px solid #c9d4df; padding-bottom: 14px; }
.mock-heading h2 { margin: 0; font-size: clamp(21px, 2.4vw, 30px); }
.mock-heading p { margin: 4px 0 0; color: #4a5e73; }
.fake-status { padding: 6px 9px; border-radius: 999px; border: 1px solid #15803d; color: #14532d; background: #dcfce7; font: 700 11px var(--font-mono); white-space: nowrap; }
.mock-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.mock-field, .mock-summary, .diagram-card { background: #fff; border: 1px solid #b9c7d5; border-radius: 8px; padding: 13px; min-width: 0; }
.mock-field label { display: block; color: #40566d; font-size: 12px; font-weight: 700; margin-bottom: 5px; }
.mock-value { min-height: 40px; padding: 9px 10px; background: #f8fafc; border: 1px solid #9eb0c2; border-radius: 5px; font: 600 12px/1.45 var(--font-mono); overflow-wrap: anywhere; }
.mock-field small { display: block; color: #546a80; margin-top: 6px; }
.mock-action-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 18px; }
.fake-primary, .fake-secondary { min-height: 40px; padding: 9px 14px; border-radius: 6px; font-weight: 800; }
.fake-primary { color: #06131f; background: var(--cloud-accent, var(--shared)); border: 1px solid #06131f; }
.fake-secondary { color: #20364d; background: #fff; border: 1px solid #7e92a7; }
.mock-evidence { margin-top: 18px; border-left: 4px solid #15803d; background: #ecfdf5; padding: 12px; color: #14532d; }
.mock-evidence strong { display: block; }

/* Provider-faithful console reconstruction. Drawn locally from dated official procedures. */
.console-body:has(.portal-app) { padding: 0; background: #fff; }
.portal-app { min-height: 554px; background: #fff; color: #1f2937; font-family: "Segoe UI", Arial, sans-serif; }
.portal-top { min-height: 48px; display: grid; grid-template-columns: auto minmax(220px, 1fr) auto; align-items: center; gap: 18px; padding: 0 16px; color: #fff; }
.portal-azure .portal-top { background: #242424; }
.portal-aws .portal-top { background: #161e2d; border-bottom: 3px solid #ff9900; }
.portal-provider { display: flex; align-items: center; gap: 9px; white-space: nowrap; }
.portal-provider-mark { width: 27px; height: 27px; display: grid; place-items: center; font-weight: 900; color: #fff; }
.portal-azure .portal-provider-mark { background: #0078d4; }
.portal-aws .portal-provider-mark { width: 38px; color: #ff9900; font: 800 14px var(--font-mono); border-bottom: 3px solid #ff9900; }
.portal-search { min-height: 32px; display: flex; align-items: center; padding: 0 12px; border-radius: 2px; color: #475569; background: #fff; font-size: 12px; }
.portal-region { font: 600 11px var(--font-mono); color: #e5e7eb; }
.portal-layout { display: grid; grid-template-columns: 176px minmax(0, 1fr); min-height: 506px; }
.portal-sidebar { padding: 18px 10px; border-right: 1px solid #d1d5db; background: #f7f8fa; display: flex; flex-direction: column; gap: 3px; font-size: 12px; }
.portal-sidebar b { padding: 7px 9px 13px; overflow-wrap: anywhere; }
.portal-sidebar span { min-height: 34px; display: flex; align-items: center; padding: 6px 9px; border-left: 3px solid transparent; }
.portal-azure .portal-nav-active { color: #005a9e; background: #e5f1fb; border-left-color: #0078d4; font-weight: 700; }
.portal-aws .portal-nav-active { color: #111827; background: #fff3d6; border-left-color: #ff9900; font-weight: 700; }
.portal-content { min-width: 0; padding: 18px 22px 24px; background: #fff; }
.portal-breadcrumb { min-height: 36px; display: flex; align-items: center; padding: 6px 10px; margin-bottom: 10px; color: #374151; background: #f8fafc; font: 600 11px/1.45 var(--font-mono); overflow-wrap: anywhere; }
.screen-switcher { display: flex; gap: 6px; overflow-x: auto; padding: 2px 2px 10px; }
.screen-chip { min-height: 36px; flex: 0 0 auto; border: 1px solid #9ca3af; border-radius: 3px; padding: 6px 9px; background: #fff; color: #374151; cursor: pointer; font: 600 11px var(--font-ui); }
.portal-azure .screen-chip.active { color: #fff; background: #0078d4; border-color: #0078d4; }
.portal-aws .screen-chip.active { color: #111827; background: #ffca6c; border-color: #b45309; }
.portal-heading { display: flex; justify-content: space-between; align-items: start; gap: 14px; padding-bottom: 12px; }
.portal-heading h2 { margin: 0; font-size: clamp(19px, 2.2vw, 27px); font-weight: 600; }
.portal-heading p { margin: 4px 0 0; color: #5b6472; font-size: 13px; }
.simulation-pill { flex: 0 0 auto; padding: 5px 7px; border: 1px solid #9a3412; color: #7c2d12; background: #fff7ed; font: 800 9px var(--font-mono); }
.wizard-tabs { display: flex; gap: 0; border-bottom: 1px solid #cbd5e1; margin-bottom: 14px; overflow-x: auto; }
.wizard-tab { min-height: 37px; flex: 0 0 auto; display: flex; align-items: center; padding: 7px 12px; color: #536274; border-bottom: 3px solid transparent; font-size: 12px; }
.portal-azure .wizard-tab.active { color: #005a9e; border-bottom-color: #0078d4; }
.portal-aws .wizard-tab.active { color: #111827; border-bottom-color: #ff9900; font-weight: 700; }
.provider-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; }
.provider-field { min-width: 0; padding: 9px; border: 1px solid transparent; }
.provider-field label { display: block; margin-bottom: 5px; color: #273548; font-size: 12px; font-weight: 650; }
.provider-control { min-height: 39px; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid #7b8794; border-radius: 2px; background: #fff; font: 600 11px/1.4 var(--font-mono); overflow-wrap: anywhere; }
.control-chevron { flex: 0 0 auto; color: #64748b; font: 500 9px var(--font-ui); text-transform: uppercase; }
.connection-note { margin-top: 14px; display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 10px; padding: 10px 12px; border-left: 4px solid #6d28d9; background: #f5f3ff; color: #4c1d95; font-size: 12px; }
.portal-action-row { margin-top: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 9px; padding: 10px; background: #f8fafc; }
.portal-primary, .portal-secondary { min-height: 38px; display: inline-flex; align-items: center; padding: 8px 14px; border-radius: 2px; font-weight: 700; }
.portal-secondary { border: 1px solid #64748b; background: #fff; }
.portal-azure .portal-primary { color: #fff; background: #0078d4; border: 1px solid #005a9e; }
.portal-aws .portal-primary { color: #111827; background: #ff9900; border: 1px solid #8a4b08; }
.portal-action-row small { color: #7c2d12; }
.portal-evidence { margin-top: 12px; display: grid; gap: 3px; padding: 11px 12px; border-left: 4px solid #15803d; background: #ecfdf5; color: #14532d; font-size: 12px; }

.official-source { margin: 12px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); display: grid; gap: 7px; }
.official-source a { width: fit-content; font-weight: 750; }
.official-source small { color: var(--muted); }
.official-source label { margin-top: 4px; color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.official-source code { padding: 7px; border: 1px solid var(--line); background: var(--bg); color: #bae6fd; overflow-wrap: anywhere; white-space: normal; font-size: 11px; }
.official-source p { margin: 0; color: var(--text); font-size: 12px; }
#subscreen-status { display: block; margin-top: 4px; color: var(--muted); font: 600 11px var(--font-mono); }

.focus-target { position: relative; border: 2px solid var(--callout-color, #0f766e) !important; }
.focus-target::before {
  content: attr(data-callout);
  position: absolute;
  z-index: 3;
  top: -12px;
  left: -10px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--callout-color, #0f766e);
  border: 2px solid #fff;
  font: 800 11px/1 var(--font-mono);
}

.diagram-frame { display: grid; gap: 14px; }
.diagram-frame img { width: 100%; max-height: 410px; object-fit: contain; background: #fff; border: 1px solid #bac7d4; border-radius: 8px; }
.mapping-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.mapping-table th, .mapping-table td { text-align: left; vertical-align: top; padding: 8px; border-bottom: 1px solid #d5dee7; }
.mapping-table th { color: #314a63; font-family: var(--font-mono); }

.explain-panel { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); display: flex; flex-direction: column; }
.panel-heading { padding: 16px; border-bottom: 1px solid var(--line); }
.panel-heading strong { display: block; margin-top: 4px; }
.callout-list { margin: 0; padding: 12px; list-style: none; display: grid; gap: 9px; }
.callout-item { border: 1px solid var(--line); border-left: 4px solid var(--callout-color); border-radius: var(--radius-sm); padding: 10px; display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 9px; }
.callout-number { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--callout-color); color: #06131f; font: 900 11px var(--font-mono); }
.callout-item b { display: block; font-size: 13px; }
.callout-item p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.text-alternative { margin: auto 12px 12px; border-top: 1px solid var(--line); padding-top: 12px; color: var(--muted); }
.text-alternative summary { min-height: 44px; cursor: pointer; color: var(--text); font-weight: 700; padding-block: 10px; }
.text-alternative p { font-size: 13px; }
.practice-guidance { margin: 16px 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 6px 16px; }
.practice-guidance summary { min-height: 44px; cursor: pointer; display: flex; align-items: center; color: var(--warning); font-weight: 700; }
.practice-guidance ul { margin-top: 4px; color: var(--muted); }
.practice-guidance li + li { margin-top: 8px; }

.expected-card { margin-top: 16px; border: 1px solid #166534; background: #071c15; border-radius: var(--radius); padding: 14px 16px; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; }
.expected-card svg { color: var(--success); }
.expected-card p { margin: 4px 0 0; color: #d5fce5; }
.checkpoint { margin-top: 16px; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); padding: 18px; }
.checkpoint-title { display: flex; gap: 12px; align-items: center; }
.checkpoint-title svg { color: var(--cloud-accent, var(--shared)); width: 28px; height: 28px; }
.checkpoint h2 { font-size: 20px; margin: 3px 0 0; }
.checkpoint-grid { margin-top: 16px; display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 12px; }
.checkpoint-grid > div { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px; }
.checkpoint-grid h3 { margin: 0 0 7px; font-size: 13px; }
.checkpoint-grid p, .checkpoint-grid ul { color: var(--muted); margin: 0; font-size: 13px; }
.checkpoint-grid ul { padding-left: 18px; }

.lesson-controls { margin-top: 18px; display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; }
.lesson-controls button { min-height: 48px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface-2); color: var(--text); padding: 10px 14px; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.lesson-controls button:last-child { justify-content: flex-end; }
.lesson-controls button:hover:not(:disabled) { border-color: var(--cloud-accent, var(--shared)); background: var(--surface-3); }
.lesson-controls button:disabled { opacity: .45; cursor: not-allowed; }
#permalink { min-height: 44px; display: inline-flex; align-items: center; padding: 8px; font-size: 13px; }

.help-panel { position: fixed; z-index: 50; inset: 0; background: rgba(0, 0, 0, .72); display: grid; place-items: center; padding: 16px; }
.help-card { position: relative; width: min(620px, 100%); max-height: 90vh; overflow: auto; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-lg); padding: 24px; }
.help-card h2 { margin: 6px 42px 18px 0; }
.help-card ul { list-style: none; padding: 0; display: grid; gap: 12px; }
.help-card li { display: flex; gap: 10px; align-items: start; color: var(--muted); }
.help-card li svg { color: var(--shared); }
.close-help { position: absolute; right: 12px; top: 12px; width: 44px; height: 44px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); border-radius: var(--radius-sm); font-size: 24px; cursor: pointer; }
.noscript { max-width: 900px; margin: 40px auto; padding: 20px; border: 1px solid var(--warning); }

body[data-cloud="azure"] { --cloud-accent: var(--azure); }
body[data-cloud="aws"] { --cloud-accent: var(--aws); }
body[data-cloud="shared"] { --cloud-accent: var(--shared); }

@media (max-width: 1180px) {
  :root { --header-height: 176px; }
  .app-shell { grid-template-columns: 220px minmax(0, 1fr); gap: 16px; }
  .workspace { grid-template-columns: minmax(0, 1fr); }
  .explain-panel { display: block; }
  .text-alternative { margin-top: 0; }
  .simulator { min-height: 540px; }
  .console-body { min-height: 494px; }
}

@media (max-width: 820px) {
  :root { --header-height: 220px; }
  .brand-row { align-items: flex-start; }
  .header-actions .back-link { display: none; }
  .simulation-banner { flex-wrap: wrap; gap: 4px 8px; }
  .simulation-banner span { flex-basis: 100%; }
  .cloud-tabs button { min-width: 0; flex: 1; padding-inline: 8px; }
  .app-shell { display: block; padding-top: 14px; }
  .stage-rail { position: static; max-height: none; margin-bottom: 18px; }
  #stage-nav { display: flex; overflow-x: auto; gap: 6px; scroll-snap-type: x mandatory; }
  .stage-button { min-width: 210px; scroll-snap-align: start; }
  .cost-legend { grid-template-columns: repeat(2, 1fr); }
  .lesson-meta { display: block; }
  .step-count { padding-top: 12px; }
  .checkpoint-grid { grid-template-columns: 1fr; }
  .portal-layout { grid-template-columns: 140px minmax(0, 1fr); }
  .provider-form { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  :root { --header-height: 226px; }
  .brand-row { padding-block: 8px; }
  .brand small { display: none; }
  .icon-button span { display: none; }
  .cloud-tabs { padding-inline: 6px; }
  .cloud-tabs button { font-size: 13px; }
  .app-shell { padding-inline: 12px; }
  .lesson-meta h1 { font-size: 26px; }
  .simulator { min-height: 500px; }
  .sim-watermark { position: static; transform: none; text-align: center; border-width: 0 0 2px; }
  .console-bar { grid-template-columns: 1fr auto; }
  .route { grid-column: 1 / -1; grid-row: 2; }
  .console-body { min-height: 410px; padding: 18px 12px; }
  .console-body:has(.portal-app) { padding: 0; }
  .portal-top { grid-template-columns: 1fr auto; gap: 8px; padding: 8px 10px; }
  .portal-search { grid-column: 1 / -1; grid-row: 2; }
  .portal-layout { display: block; }
  .portal-sidebar { display: none; }
  .portal-content { padding: 14px 12px 20px; }
  .portal-heading { display: block; }
  .simulation-pill { display: inline-block; margin-top: 8px; }
  .provider-form { grid-template-columns: 1fr; }
  .connection-note { grid-template-columns: 1fr; }
  .mock-heading { align-items: start; }
  .mock-grid { grid-template-columns: 1fr; }
  .mapping-table { display: block; overflow-x: auto; }
  .lesson-controls { grid-template-columns: 1fr 1fr; }
  #permalink { grid-column: 1 / -1; grid-row: 2; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
