/* vietnamese */
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./fonts/barlow-400-vietnamese.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./fonts/barlow-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./fonts/barlow-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* vietnamese */
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("./fonts/barlow-500-vietnamese.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("./fonts/barlow-500-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("./fonts/barlow-500-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* vietnamese */
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("./fonts/barlow-600-vietnamese.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("./fonts/barlow-600-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("./fonts/barlow-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* vietnamese */
@font-face {
  font-family: "Barlow Semi Condensed";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("./fonts/barlow-semi-condensed-500-vietnamese.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: "Barlow Semi Condensed";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("./fonts/barlow-semi-condensed-500-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: "Barlow Semi Condensed";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("./fonts/barlow-semi-condensed-500-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* vietnamese */
@font-face {
  font-family: "Barlow Semi Condensed";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("./fonts/barlow-semi-condensed-600-vietnamese.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: "Barlow Semi Condensed";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("./fonts/barlow-semi-condensed-600-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: "Barlow Semi Condensed";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("./fonts/barlow-semi-condensed-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* vietnamese */
@font-face {
  font-family: "Barlow Semi Condensed";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("./fonts/barlow-semi-condensed-700-vietnamese.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: "Barlow Semi Condensed";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("./fonts/barlow-semi-condensed-700-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: "Barlow Semi Condensed";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("./fonts/barlow-semi-condensed-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* vietnamese */
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./fonts/jetbrains-mono-400-vietnamese.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./fonts/jetbrains-mono-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./fonts/jetbrains-mono-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* vietnamese */
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("./fonts/jetbrains-mono-500-vietnamese.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("./fonts/jetbrains-mono-500-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("./fonts/jetbrains-mono-500-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* vietnamese */
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("./fonts/jetbrains-mono-600-vietnamese.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("./fonts/jetbrains-mono-600-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("./fonts/jetbrains-mono-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --bg: #f6eddd;
  --bg-deep: #efe3d1;
  --sidebar: #e9dcca;
  --card: #f9f2e5;
  --card-soft: rgba(250, 244, 233, 0.96);
  --code-bg: #f8f0e3;
  --track: #e3d8ca;
  --line: #cec0ad;
  --line-soft: #e2d7c7;
  --trace: #d3bea3;

  --navy: #18213d;
  --navy-2: #24304a;
  --ink: #4f535b;
  --muted: #696d74;
  --faint: #ada293;

  --teal: #1aa3a1;
  --teal-deep: #158280;
  --teal-tint: rgba(26, 163, 161, 0.11);
  --kw: #2a56a3;
  --fn: #c0652d;
  --warn: #d84e43;

  --sans: "Barlow", system-ui, -apple-system, sans-serif;
  --cond: "Barlow Semi Condensed", "Barlow", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --rail-w: 62px;
  --inspector-w: 396px;
  --strip-h: 112px;
  --radius: 12px;
  --shadow-card: 0 6px 24px rgba(24, 33, 61, 0.07), 0 1px 2px rgba(24, 33, 61, 0.05);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

button,
input,
select {
  font-family: inherit;
}

/* -------------------------------------------------------------------------- */
/*  Splash Preloader                                                          */
/* -------------------------------------------------------------------------- */

.splash {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: var(--bg);
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.splash.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash-title {
  font-family: var(--cond);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--navy);
}

.splash-bar {
  width: 220px;
  height: 7px;
  border-radius: 99px;
  background: var(--track);
  overflow: hidden;
  border: 1px solid var(--line);
}

.splash-fill {
  height: 100%;
  width: 0%;
  background: var(--teal);
  transition: width 0.14s ease;
}

.splash-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

/* -------------------------------------------------------------------------- */
/*  Root Artboard Shell                                                       */
/* -------------------------------------------------------------------------- */

#app.artboard {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  background: var(--bg);
  overflow: hidden;
}

/* Decorative subtle PCB traces along artboard perimeter */
.pcb-traces {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  opacity: 0.72;
}

/* -------------------------------------------------------------------------- */
/*  Left Collapsible Navigation Rail                                          */
/* -------------------------------------------------------------------------- */

.sidebar {
  position: relative;
  z-index: 30;
  width: var(--rail-w);
  flex: 0 0 var(--rail-w);
  height: 100%;
  background: var(--sidebar);
  border-inline-end: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 8px 14px;
  gap: 6px;
  transition: width 0.22s cubic-bezier(0.32, 0.72, 0, 1);
}

.sidebar.is-open {
  width: 184px;
  flex-basis: 184px;
  align-items: stretch;
  padding: 12px 10px 14px;
}

.rail-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--navy-2);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.sidebar.is-open .rail-btn {
  width: 100%;
  justify-content: flex-start;
  padding: 0 11px;
}

.rail-btn:hover {
  background: rgba(24, 33, 61, 0.07);
}

.rail-btn.is-active {
  background: var(--card);
  border-color: var(--line);
  color: var(--teal-deep);
  box-shadow: 0 1px 3px rgba(24, 33, 61, 0.08);
}

.rail-btn.is-expand {
  border-color: var(--line);
  background: rgba(249, 242, 229, 0.65);
  margin-bottom: 10px;
}

.rail-label {
  display: none;
  font-family: var(--cond);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.sidebar.is-open .rail-label {
  display: inline;
}

.rail-lang-badge {
  position: absolute;
  bottom: 5px;
  inset-inline-end: 4px;
  background: var(--navy);
  color: var(--card);
  font-family: var(--mono);
  font-size: 8.5px;
  font-weight: 700;
  padding: 1px 3.5px;
  border-radius: 4px;
  line-height: 1.2;
}

.sidebar.is-open .rail-lang-badge {
  position: static;
  margin-inline-start: auto;
}

.rail-spacer {
  flex: 1;
}

.rail-credit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 8px 4px 6px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(249, 242, 229, 0.65);
  color: var(--muted);
  text-decoration: none;
  font-family: var(--cond);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.rail-credit-vertical {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-weight: 600;
  color: var(--navy-2);
}

.sidebar.is-open .rail-credit {
  flex-direction: row;
  justify-content: center;
  padding: 8px 10px;
}

.sidebar.is-open .rail-credit-vertical {
  writing-mode: horizontal-tb;
  transform: none;
}

/* Left Flyout Drawer */
.flyout {
  position: absolute;
  top: 14px;
  inset-inline-start: calc(var(--rail-w) + 12px);
  z-index: 45;
  width: 288px;
  max-height: calc(100% - 28px);
  display: none;
  flex-direction: column;
  background: var(--card-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 14px 36px rgba(24, 33, 61, 0.16);
  backdrop-filter: blur(8px);
  overflow: hidden;
  animation: menu-in 0.16s ease;
}

.flyout.is-open {
  display: flex;
}

.flyout-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line-soft);
}

.flyout-title {
  font-family: var(--cond);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
}

.flyout-close {
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--navy);
  width: 26px;
  height: 26px;
  border-radius: 7px;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.flyout-body {
  padding: 10px 12px 14px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* -------------------------------------------------------------------------- */
/*  Main Workspace Canvas Area                                                */
/* -------------------------------------------------------------------------- */

.workspace {
  position: relative;
  flex: 1;
  min-width: 0;
  height: 100%;
  overflow: hidden;
}

#stage {
  position: absolute;
  inset: 0;
  z-index: 1;
}

#board-canvas {
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
}

#leaders {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 4;
}

.leader-line {
  stroke: rgba(24, 33, 61, 0.42);
  stroke-width: 1.25;
  stroke-dasharray: 3 2.5;
}

.leader-dot {
  fill: var(--navy);
  stroke: var(--card);
  stroke-width: 1.4;
}

#tags {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 6;
}

.stage-tag {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: auto;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: filter 0.14s ease;
}

.tag-badge {
  order: -1;
  background: var(--navy);
  color: #f9f2e5;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 99px;
  white-space: nowrap;
  box-shadow: 0 3px 10px rgba(24, 33, 61, 0.22);
}

.tag-badge[data-tone="teal"] {
  background: var(--teal-deep);
}

.tag-badge[data-tone="warn"] {
  background: var(--warn);
}

.tag-pill {
  background: rgba(252, 248, 240, 0.94);
  color: var(--navy);
  border: 1.3px solid var(--line);
  border-radius: 6px;
  padding: 2.5px 8px;
  font-family: var(--cond);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(24, 33, 61, 0.08);
}

.stage-tag:hover .tag-pill,
.stage-tag.is-selected .tag-pill {
  border-color: var(--teal);
  color: var(--teal-deep);
  background: #ffffff;
}

/* -------------------------------------------------------------------------- */
/*  Top Brand Header & Progress Widget                                        */
/* -------------------------------------------------------------------------- */

.brand {
  position: absolute;
  top: 14px;
  inset-inline-start: 18px;
  z-index: 15;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 12px 6px 8px;
  border-radius: 10px;
  background: rgba(246, 237, 221, 0.82);
  backdrop-filter: blur(4px);
}

.brand-mark {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}

.brand-divider {
  width: 1px;
  height: 32px;
  background: var(--line);
}

.brand h1 {
  margin: 0;
  font-family: var(--cond);
  font-size: 23px;
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: 0.08em;
  color: var(--navy);
}

.brand-sub {
  margin-top: 2px;
  font-family: var(--cond);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.progress-card {
  position: absolute;
  top: 14px;
  inset-inline-end: 18px;
  z-index: 15;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  background: var(--card-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  width: var(--inspector-w);
}

.progress-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid var(--line-soft);
  background: var(--bg);
  display: grid;
  place-items: center;
  color: var(--navy);
  flex-shrink: 0;
}

.progress-meta {
  flex: 1;
  min-width: 0;
}

.progress-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 5px;
}

.progress-track-name {
  font-family: var(--cond);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
}

.progress-count {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--navy);
}

.progress-bar {
  height: 7px;
  border-radius: 99px;
  background: var(--track);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--teal);
  border-radius: 99px;
  transition: width 0.25s ease;
}

.progress-clock {
  padding-inline-start: 12px;
  border-inline-start: 1px solid var(--line-soft);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.45;
  color: var(--muted);
  white-space: nowrap;
}

/* -------------------------------------------------------------------------- */
/*  Right Floating Inspector Panel                                            */
/* -------------------------------------------------------------------------- */

.inspector {
  position: absolute;
  top: 86px;
  inset-inline-end: 18px;
  bottom: calc(var(--strip-h) + 14px);
  width: var(--inspector-w);
  z-index: 16;
  display: flex;
  flex-direction: column;
  background: var(--card-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.inspector-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line-soft);
  background: rgba(239, 227, 209, 0.45);
}

.inspector-tab {
  position: relative;
  border: none;
  background: transparent;
  padding: 12px 6px 11px;
  font-family: var(--cond);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.14s ease;
}

.inspector-tab:hover {
  color: var(--navy);
}

.inspector-tab.is-active {
  color: var(--navy);
}

.inspector-tab.is-active::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 0;
  height: 2.5px;
  background: var(--navy);
  border-radius: 2px 2px 0 0;
}

.inspector-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.panel-title {
  margin: 0;
  font-family: var(--cond);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
}

.panel-sub {
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--muted);
}

.panel-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.icon-btn {
  width: 31px;
  height: 31px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--navy);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: border-color 0.14s ease, background 0.14s ease;
}

.icon-btn:hover {
  border-color: var(--teal);
  background: #ffffff;
}

.quick-btn {
  height: 31px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--navy);
  font-family: var(--cond);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
}

.quick-btn.is-on {
  background: var(--teal);
  border-color: var(--teal-deep);
  color: #ffffff;
}

/* Interactive 2D Schematic Frame */
.schematic-wrap {
  background: var(--code-bg);
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  padding: 6px;
}

.schematic-svg {
  display: block;
  width: 100%;
  height: auto;
}

.sch-part {
  cursor: pointer;
  outline: none;
}

.sch-part-box {
  fill: rgba(26, 163, 161, 0.09);
  stroke: rgba(26, 163, 161, 0.45);
  stroke-width: 1.4;
  transition: fill 0.14s ease, stroke 0.14s ease, stroke-width 0.14s ease;
}

.sch-part:hover .sch-part-box,
.sch-part:focus-visible .sch-part-box {
  fill: rgba(26, 163, 161, 0.18);
  stroke: var(--teal);
}

.sch-part.is-selected .sch-part-box {
  fill: rgba(26, 163, 161, 0.2);
  stroke: var(--teal);
  stroke-width: 2.2;
}

/* Part Inspector Card inside Circuit Tab */
.part-card {
  background: rgba(26, 163, 161, 0.06);
  border: 1.3px solid rgba(26, 163, 161, 0.48);
  border-radius: 10px;
  padding: 13px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.part-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.part-card-name {
  font-family: var(--cond);
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--navy);
}

.part-card-spec {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--teal-deep);
}

.part-card-desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink);
}

.part-controls {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 8px;
  border-top: 1px dashed rgba(26, 163, 161, 0.35);
}

/* Control Primitives */
.ctl-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--navy);
}

.ctl-toggle input {
  appearance: none;
  position: relative;
  width: 40px;
  height: 22px;
  border-radius: 99px;
  background: var(--track);
  border: 1.5px solid var(--line);
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease;
  flex-shrink: 0;
}

.ctl-toggle input::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(24, 33, 61, 0.25);
  transition: transform 0.16s ease;
}

.ctl-toggle input:checked {
  background: var(--teal);
  border-color: var(--teal-deep);
}

.ctl-toggle input:checked::after {
  transform: translateX(18px);
}

.ctl-group-label {
  font-family: var(--cond);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 5px;
  display: flex;
  justify-content: space-between;
}

.ctl-val {
  font-family: var(--mono);
  color: var(--navy);
  font-weight: 600;
}

.ctl-radio-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ctl-radio-btn {
  flex: 1 1 auto;
  min-width: 78px;
  padding: 6px 9px;
  border-radius: 8px;
  border: 1.3px solid var(--line);
  background: var(--card);
  color: var(--navy);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: all 0.14s ease;
}

.ctl-radio-btn:hover {
  border-color: var(--teal);
}

.ctl-radio-btn.is-active {
  background: var(--navy);
  border-color: var(--navy);
  color: #f9f2e5;
}

.ctl-range {
  width: 100%;
  accent-color: var(--teal);
  cursor: pointer;
}

.ctl-swatch-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.ctl-swatch-btn {
  min-width: 34px;
  height: 28px;
  padding: 0 7px;
  border-radius: 7px;
  border: 1.6px solid var(--navy);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.ctl-swatch-btn:hover {
  transform: translateY(-1px);
}

.ctl-swatch-btn.is-active {
  box-shadow: 0 0 0 2px var(--card), 0 0 0 4.2px var(--teal);
  transform: translateY(-1px);
}

.flyout-track-head {
  margin-top: 6px;
  padding: 4px 2px 2px;
  font-family: var(--cond);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Overview Tab */
.overview-lead {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--navy-2);
}

.takeaway-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.takeaway-item {
  display: flex;
  gap: 11px;
  padding: 11px 12px;
  border-radius: 10px;
  background: var(--code-bg);
  border: 1px solid var(--line-soft);
}

.takeaway-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--teal-tint);
  color: var(--teal-deep);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.takeaway-item h4 {
  margin: 0 0 3px;
  font-family: var(--cond);
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
}

.takeaway-item p {
  margin: 0;
  font-size: 12.8px;
  line-height: 1.45;
  color: var(--ink);
}

/* Components List Tab */
.comp-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.comp-item {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  text-align: start;
  padding: 10px 11px;
  border-radius: 10px;
  border: 1px solid var(--line-soft);
  background: var(--code-bg);
  cursor: pointer;
  transition: border-color 0.14s ease, background 0.14s ease;
}

.comp-item:hover,
.comp-item.is-selected {
  border-color: var(--teal);
  background: rgba(26, 163, 161, 0.08);
}

.comp-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--card);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--navy);
  flex-shrink: 0;
}

.comp-meta {
  flex: 1;
  min-width: 0;
}

.comp-name {
  font-family: var(--cond);
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
}

.comp-spec {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--teal-deep);
  margin-top: 2px;
}

/* Maths Tab */
.math-box {
  background: var(--code-bg);
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.math-formula {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
}

.math-sub {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink);
}

.math-result {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--teal-deep);
}

.math-note {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink);
}

.math-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}

.math-table tr {
  border-bottom: 1px solid var(--line-soft);
}

.math-table td {
  padding: 7px 4px;
}

.math-table td:last-child {
  text-align: end;
  font-family: var(--mono);
  font-weight: 600;
  color: var(--navy);
}

.math-table tr.is-highlight td {
  color: var(--teal-deep);
  font-weight: 700;
}

/* -------------------------------------------------------------------------- */
/*  Floating Chart Overlay & 3D Camera Viewbar                                */
/* -------------------------------------------------------------------------- */

.floating-chart {
  position: absolute;
  top: 84px;
  inset-inline-start: 18px;
  z-index: 15;
  width: 304px;
  background: var(--card-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 11px;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(239, 227, 209, 0.55);
}

.chart-head-titles {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}

.chart-title {
  font-family: var(--cond);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--navy);
}

.chart-readout {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--teal-deep);
}

.chart-collapse {
  border: none;
  background: transparent;
  color: var(--navy);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform 0.16s ease;
}

.floating-chart.is-collapsed .chart-body,
.floating-chart.is-collapsed .chart-resize {
  display: none;
}

.floating-chart.is-collapsed .chart-collapse {
  transform: rotate(-90deg);
}

.chart-body {
  padding: 8px 10px 10px;
}

.chart-sub {
  font-size: 11.5px;
  color: var(--muted);
  margin-bottom: 6px;
}

.chart-svg {
  display: block;
  width: 100%;
  height: auto;
}

.chart-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--mono);
  font-size: 10.8px;
}

.chart-table th {
  text-align: start;
  font-family: var(--cond);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  padding: 4px 4px;
  border-bottom: 1px solid var(--line);
}

.chart-table td {
  padding: 4.5px 4px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink);
}

.chart-table tr.is-active {
  background: rgba(26, 163, 161, 0.15);
}

.chart-table tr.is-active td {
  color: var(--navy);
  font-weight: 700;
}

.chart-resize {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 14px;
  height: 14px;
  cursor: ew-resize;
  background: linear-gradient(135deg, transparent 55%, var(--line) 55%);
}

/* Camera Viewbar */
.viewbar {
  position: absolute;
  bottom: calc(var(--strip-h) + 14px);
  left: calc((100% - var(--inspector-w)) / 2);
  transform: translateX(-50%);
  z-index: 15;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 4px 6px;
  background: var(--card-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow-card);
}

[dir="rtl"] .viewbar {
  left: calc(50% + var(--inspector-w) / 2);
}

.viewbar-btn {
  width: 31px;
  height: 29px;
  border-radius: 7px;
  border: none;
  background: transparent;
  color: var(--navy);
  cursor: pointer;
  display: grid;
  place-items: center;
}

.viewbar-btn:hover {
  background: rgba(24, 33, 61, 0.08);
}

.viewbar-btn.is-active {
  background: var(--teal-tint);
  color: var(--teal-deep);
}

.viewbar-sep {
  width: 1px;
  height: 18px;
  background: var(--line-soft);
  margin: 0 3px;
}

/* -------------------------------------------------------------------------- */
/*  Bottom Lesson Strip                                                       */
/* -------------------------------------------------------------------------- */

.lesson-strip {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 12px;
  height: var(--strip-h);
  z-index: 16;
  display: flex;
  flex-direction: column;
  gap: 7px;
  pointer-events: none;
}

.strip-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: auto;
}

.track-select-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(246, 237, 221, 0.86);
  padding: 2px 6px;
  border-radius: 8px;
}

.track-select {
  border: none;
  background: transparent;
  font-family: var(--cond);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  cursor: pointer;
  padding-inline-end: 4px;
}

.strip-row {
  display: flex;
  align-items: stretch;
  gap: 10px;
  height: 82px;
  pointer-events: auto;
}

.strip-cards {
  flex: 1;
  min-width: 0;
  display: flex;
  gap: 9px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.strip-cards::-webkit-scrollbar {
  display: none;
}

.lesson-card {
  position: relative;
  flex: 0 0 198px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 10px 7px 8px;
  border-radius: 11px;
  border: 1.4px solid var(--line);
  background: var(--card-soft);
  color: var(--navy);
  cursor: pointer;
  text-align: start;
  transition: border-color 0.14s ease, transform 0.14s ease, box-shadow 0.14s ease;
}

.lesson-card:hover {
  border-color: var(--teal);
  transform: translateY(-1px);
}

.lesson-card.is-active {
  border-color: var(--teal);
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(26, 163, 161, 0.18);
}

.lesson-thumb-svg {
  width: 62px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 6px;
  background: var(--bg);
  border: 1px solid var(--line-soft);
}

.lesson-card-title {
  font-family: var(--cond);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.24;
  letter-spacing: 0.04em;
  color: var(--navy);
}

.lesson-done-dot {
  position: absolute;
  top: 6px;
  inset-inline-end: 6px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--teal);
  color: #ffffff;
  display: none;
  place-items: center;
  font-size: 10px;
  font-weight: 700;
}

.lesson-card.is-done .lesson-done-dot {
  display: grid;
}

.strip-nav {
  display: flex;
  gap: 7px;
  flex-shrink: 0;
}

.nav-arrow-btn {
  width: 48px;
  border-radius: 11px;
  border: 1.4px solid var(--line);
  background: var(--card-soft);
  color: var(--navy);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.14s ease;
}

.nav-arrow-btn.is-primary {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--card);
}

.nav-arrow-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* -------------------------------------------------------------------------- */
/*  Larger Circuit Modal (with optional Diagram / Breadboard tabs)            */
/* -------------------------------------------------------------------------- */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(24, 33, 61, 0.42);
  backdrop-filter: blur(4px);
}

.modal-backdrop.is-open {
  display: flex;
}

.modal-dialog {
  width: min(760px, 94vw);
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 22px 60px rgba(24, 33, 61, 0.28);
  overflow: hidden;
  animation: menu-in 0.16s ease;
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line-soft);
}

.modal-tabs {
  display: inline-flex;
  gap: 4px;
  background: var(--bg-deep);
  padding: 3px;
  border-radius: 8px;
}

.modal-tab {
  border: none;
  background: transparent;
  padding: 5px 11px;
  border-radius: 6px;
  font-family: var(--cond);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
}

.modal-tab.is-active {
  background: var(--card);
  color: var(--navy);
  box-shadow: 0 1px 3px rgba(24, 33, 61, 0.12);
}

.modal-body {
  padding: 18px;
}

/* Flyout items */
.flyout-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--line-soft);
  background: var(--code-bg);
  color: var(--navy);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-align: start;
}

.flyout-item:hover,
.flyout-item.is-active {
  border-color: var(--teal);
  background: var(--teal-tint);
}

.flyout-danger {
  margin-top: 6px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(216, 78, 67, 0.45);
  background: rgba(216, 78, 67, 0.08);
  color: var(--warn);
  font-family: var(--cond);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
}

/* -------------------------------------------------------------------------- */
/*  Compact / Embedded / Mobile Responsive Mode                               */
/* -------------------------------------------------------------------------- */

@media (max-width: 980px) {
  :root {
    --inspector-w: 320px;
  }
  .floating-chart {
    width: 248px;
  }
}

@media (max-width: 780px), (max-height: 600px) {
  :root {
    --rail-w: 48px;
    --strip-h: 92px;
  }
  .brand {
    top: 8px;
    inset-inline-start: 10px;
    gap: 8px;
    padding: 5px 8px 5px 6px;
  }
  .brand-mark {
    width: 28px;
    height: 28px;
  }
  .brand-divider {
    height: 22px;
  }
  .brand h1 {
    font-size: 14px;
    letter-spacing: 0.05em;
  }
  .brand-sub {
    display: none;
  }
  .progress-card {
    top: 8px;
    inset-inline-end: 10px;
    width: auto;
    gap: 8px;
    padding: 6px 10px;
  }
  .progress-icon {
    display: none;
  }
  .progress-clock {
    display: none;
  }
  .floating-chart {
    display: none !important;
  }
  .inspector {
    top: auto;
    left: 10px;
    right: 10px;
    width: auto;
    height: 44%;
    bottom: calc(var(--strip-h) + 8px);
  }
  .viewbar {
    top: 64px;
    bottom: auto;
    left: 50%;
  }
  .lesson-strip {
    left: 10px;
    right: 10px;
    bottom: 8px;
  }
  .strip-row {
    height: 64px;
  }
  .lesson-card {
    flex: 0 0 162px;
  }
  .lesson-thumb-svg {
    width: 48px;
    height: 38px;
  }
}

@keyframes insp-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes menu-in {
  from {
    opacity: 0;
    transform: translateY(6px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
