:root {
  --bg: #050506;
  --surface: #101012;
  --surface-2: #17171a;
  --line: rgba(255, 255, 255, 0.1);
  --text: #f5f5f7;
  --muted: #9999a1;
  --accent: #b7ff00;
  --accent-soft: rgba(183, 255, 0, 0.12);
  --blue: #5ac8fa;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  scroll-behavior: smooth;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); overflow-x: hidden; }
button, select, input { font: inherit; }
button { cursor: pointer; }

.topbar {
  position: fixed; z-index: 20; top: 0; width: 100%; min-height: 92px; padding: 8px 3vw;
  display: grid; grid-template-columns: minmax(185px, .7fr) minmax(0, 2.8fr) minmax(185px, .7fr); grid-template-rows: auto auto; align-items: center; gap: 8px 18px;
  background: rgba(5, 5, 6, 0.72); border-bottom: 1px solid var(--line); backdrop-filter: blur(24px);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-size: 13px; font-weight: 700; letter-spacing: .02em; }
.brand-mark { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: #050505; font-size: 14px; }
.header-brand { white-space: nowrap; }
.header-identity { display: grid; gap: 5px; align-items: center; }
.header-identity-hsnr { grid-column: 1; grid-row: 1 / span 2; justify-items: start; }
.header-identity-inventor { grid-column: 3; grid-row: 1 / span 2; justify-items: end; }
.header-logo { display: flex; align-items: center; width: fit-content; height: 42px; padding: 4px 9px; overflow: hidden; border-radius: 4px; background: rgba(255,255,255,.96); }
.header-logo img { display: block; width: auto; max-width: 100%; height: 32px; object-fit: contain; }
.header-logo-inventor img { height: 28px; }
.header-scope-link { display: block; width: 132px; height: 49px; overflow: hidden; border: 1px solid #263126; border-radius: 8px; background: #070b07; box-shadow: inset 0 0 18px rgba(183,255,0,.07), 0 0 18px rgba(183,255,0,.08); }
.header-scope { display: block; width: 100%; height: 100%; }
.chapter-header-nav { grid-column: 2; grid-row: 1; display: flex; gap: 7px; overflow-x: auto; padding: 3px 2px 7px; scrollbar-width: thin; }
.chapter-nav-item { display: flex; flex: 0 0 auto; align-items: center; overflow: hidden; border: 1px solid rgba(255,255,255,.12); border-radius: 999px; background: rgba(17,17,19,.82); }
.chapter-nav-item button, .chapter-nav-item a { border: 0; background: transparent; color: #b8b8be; text-decoration: none; font-size: 10px; line-height: 1; white-space: nowrap; }
.chapter-nav-item button { max-width: 154px; overflow: hidden; padding: 8px 9px 8px 10px; text-overflow: ellipsis; }
.chapter-nav-item button span { margin-right: 6px; color: var(--accent); font-family: "Space Mono"; }
.chapter-nav-item a { padding: 8px 9px; border-left: 1px solid rgba(255,255,255,.1); color: #5ac8fa; font-family: "Space Mono"; }
.chapter-nav-item:hover, .chapter-nav-item.active { border-color: rgba(183,255,0,.62); background: rgba(183,255,0,.1); }
.chapter-nav-item.active button { color: #f5f5f7; }
.adminnav { grid-column: 2; grid-row: 2; display: flex; justify-content: center; gap: 18px; }
.adminnav button, .admin-button { border: 1px solid rgba(183,255,0,.35); border-radius: 999px; padding: 6px 12px; background: rgba(183,255,0,.08); color: #dfffa0; font-size: 11px; text-decoration: none; }
.adminnav button:disabled { cursor: wait; color: #5c5c62; }
.admin-button:hover, .adminnav button:hover { border-color: rgba(183,255,0,.7); color: var(--accent); }
.auth-user-label { max-width: 260px; overflow: hidden; color: #a8a8ae; font-size: 10px; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.header-logout { border: 1px solid var(--line); border-radius: 14px; padding: 5px 10px; background: rgba(17,17,19,.86); color: #f5f5f7; font-size: 10px; }
.header-logout:hover { border-color: var(--accent); color: var(--accent); }
.nav-cta { padding: 8px 16px; border: 0; border-radius: 20px; color: #050505; background: var(--accent); font-size: 11px; font-weight: 700; }
.script-link { display: inline-flex; width: fit-content; margin-top: 10px; border: 1px solid rgba(90,200,250,.35); border-radius: 999px; padding: 7px 11px; color: #5ac8fa; font-size: 12px; text-decoration: none; }
.script-link:hover { border-color: var(--accent); color: var(--accent); }

body.auth-locked main, body.auth-locked footer { filter: blur(10px); pointer-events: none; user-select: none; }
.login-screen { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 90px 7vw 40px; background: radial-gradient(circle at 50% 35%, rgba(183,255,0,.12), rgba(5,5,6,.82) 34%, rgba(5,5,6,.96) 72%); }
.login-screen[hidden] { display: none; }
.login-screen.server-login { position: relative; inset: auto; min-height: 100vh; align-content: start; gap: 34px; overflow: auto; padding: 0 7vw 50px; }
.login-hero { width: calc(100% + 14vw); min-height: 72vh; margin: 0 -7vw; padding-top: 60px; }
.login-card { width: min(520px, 100%); padding: 38px; border: 1px solid rgba(255,255,255,.14); border-radius: 18px; background: linear-gradient(145deg, rgba(23,23,26,.98), rgba(7,7,8,.98)); box-shadow: 0 45px 120px rgba(0,0,0,.65); }
.login-card h1 { margin-bottom: 14px; font-size: clamp(42px, 6vw, 68px); }
.login-card p { color: #a0a0a7; font-size: 14px; line-height: 1.65; }
.login-card small { display: block; margin-top: 18px; color: #68686f; font-size: 11px; line-height: 1.6; }
.login-form { display: grid; gap: 14px; margin-top: 26px; }
.login-form label { display: grid; gap: 7px; color: #7f7f86; font-size: 11px; text-transform: uppercase; letter-spacing: .12em; }
.login-form input { width: 100%; border: 1px solid #343438; border-radius: 8px; background: #101012; color: var(--text); padding: 13px 14px; font-size: 15px; text-transform: none; letter-spacing: 0; }
.login-form input:focus { outline: 1px solid var(--accent); border-color: var(--accent); }
.password-field { display: grid; grid-template-columns: 1fr auto; align-items: stretch; }
.password-field input { border-radius: 8px 0 0 8px; }
.password-field button { border: 1px solid #343438; border-left: 0; border-radius: 0 8px 8px 0; background: #1a1a1d; color: #d7d7db; padding: 0 14px; font-size: 12px; text-transform: none; letter-spacing: 0; }
.password-field button:hover { color: var(--accent); }
.login-form .primary-button { width: fit-content; margin-top: 6px; }
.login-message { min-height: 24px; margin: 18px 0 0; color: var(--accent) !important; font-size: 12px !important; }
.login-course-guide { width: min(1120px, 100%); display: grid; grid-template-columns: .9fr 1.1fr; gap: 28px; padding: 30px; border: 1px solid rgba(255,255,255,.12); border-radius: 22px; background: linear-gradient(145deg, rgba(16,16,18,.94), rgba(7,9,8,.92)); box-shadow: 0 34px 90px rgba(0,0,0,.34); }
.course-guide-copy h2 { margin-bottom: 18px; font-size: clamp(28px, 3.1vw, 46px); line-height: 1.02; letter-spacing: -.055em; }
.course-guide-copy > p { max-width: 560px; color: #a4a4aa; font-size: 14px; line-height: 1.75; }
.course-guide-steps { display: grid; gap: 10px; margin-top: 22px; }
.course-guide-steps article { display: grid; grid-template-columns: 38px 1fr; gap: 3px 13px; padding: 13px 0; border-top: 1px solid rgba(255,255,255,.08); }
.course-guide-steps span { grid-row: 1 / span 2; color: var(--accent); font: 11px "Space Mono"; }
.course-guide-steps strong { font-size: 13px; }
.course-guide-steps p { margin: 0; color: #787880; font-size: 11px; line-height: 1.5; }
.course-layout-preview { display: grid; grid-template-columns: .82fr 1.45fr .9fr; gap: 10px; min-height: 330px; padding: 12px; border: 1px solid rgba(183,255,0,.12); border-radius: 18px; background: radial-gradient(circle at 50% 45%, rgba(183,255,0,.08), rgba(8,10,8,.96) 58%); }
.preview-panel { position: relative; overflow: hidden; padding: 18px; border: 1px solid rgba(255,255,255,.1); border-radius: 14px; background: rgba(13,13,15,.92); }
.preview-panel small { display: block; margin-bottom: 8px; color: #6e6e74; font-size: 8px; text-transform: uppercase; letter-spacing: .14em; }
.preview-panel strong { display: block; margin-bottom: 22px; font-size: 13px; }
.preview-slider { height: 7px; margin: 20px 0; overflow: hidden; border-radius: 999px; background: #33363a; }
.preview-slider span { display: block; height: 100%; border-radius: inherit; background: var(--accent); box-shadow: 0 0 14px rgba(183,255,0,.45); }
.preview-select { margin-top: 24px; border: 1px solid #343a34; border-radius: 8px; padding: 10px; color: #d8dbd8; background: #151815; font-size: 10px; }
.preview-visual { padding: 18px 14px; }
.preview-visual svg { display: block; width: 100%; height: auto; margin-top: 4px; }
.preview-results { display: grid; align-content: start; }
.preview-results div { display: grid; grid-template-columns: 28px 1fr; align-items: center; gap: 10px; margin-top: 12px; padding: 12px; border: 1px solid rgba(255,255,255,.1); border-radius: 12px; background: linear-gradient(145deg, rgba(24,24,27,.96), rgba(10,12,10,.96)); }
.preview-results span { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid rgba(183,255,0,.28); border-radius: 50%; color: var(--accent); font: 10px "Space Mono"; background: rgba(183,255,0,.07); }
.preview-results b { color: #f5f5f7; font: 17px "Space Mono"; font-weight: 400; }
.login-curriculum { width: min(1120px, 100%); padding: 26px; border: 1px solid rgba(255,255,255,.12); border-radius: 18px; background: rgba(10,10,12,.82); }
.login-curriculum h2 { margin-bottom: 24px; font-size: clamp(28px, 3vw, 44px); letter-spacing: -.05em; }
.login-chapter-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--line); }
.login-chapter-card { min-height: 132px; padding: 18px; background: #0d0d0f; }
.login-chapter-card span { color: var(--accent); font: 10px "Space Mono"; }
.login-chapter-card h3 { margin: 18px 0 7px; font-size: 14px; letter-spacing: -.03em; }
.login-chapter-card p { margin: 0; color: #77777e; font-size: 10px; line-height: 1.55; }

.hero {
  min-height: 100vh; position: relative; overflow: hidden; display: grid; grid-template-columns: 43% 57%;
  align-items: center; padding: 100px 0 60px 7vw; background: radial-gradient(circle at 80% 45%, #202024 0, #0a0a0c 31%, #050506 64%);
}
.hero-copy { position: relative; z-index: 2; max-width: 650px; }
.eyebrow { margin: 0 0 20px; color: var(--accent); font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 24px; font-size: clamp(40px, 4.5vw, 72px); line-height: .98; letter-spacing: -.065em; }
h1 span { color: #77777f; }
.hero-intro { max-width: 580px; color: #a7a7ad; font-size: 17px; line-height: 1.65; }
.hero-actions { display: flex; align-items: center; gap: 26px; margin-top: 36px; }
.primary-button, .complete-button { border: 0; border-radius: 24px; background: var(--accent); color: #090909; padding: 13px 20px; font-size: 12px; font-weight: 700; }
.primary-button span { margin-left: 20px; }
.text-button { border: 0; background: transparent; color: #d1d1d5; font-size: 12px; border-bottom: 1px solid #555; padding: 8px 0; }
.hero-stats { display: flex; gap: 46px; margin-top: 70px; }
.hero-stats div { display: grid; gap: 4px; }
.hero-stats strong { font-size: 24px; letter-spacing: -.05em; }
.hero-stats span { color: #717178; font-size: 10px; text-transform: uppercase; letter-spacing: .12em; }

.hero-device { position: relative; z-index: 2; transform: perspective(1300px) rotateY(-13deg) rotateX(4deg) translateX(4%); }
.device-glow { position: absolute; inset: 10% 0; background: var(--accent); opacity: .12; filter: blur(100px); }
.device-frame { position: relative; width: min(760px, 58vw); padding: 14px; border: 1px solid #38383d; border-radius: 22px; background: linear-gradient(145deg, #2d2d31, #09090a 26%); box-shadow: 0 60px 100px #000; }
.device-header { height: 34px; display: flex; align-items: center; gap: 5px; padding: 0 6px; }
.device-header span { width: 6px; height: 6px; border-radius: 50%; background: #555; }
.device-header b { margin-left: auto; color: #777; font: 8px "Space Mono"; }
.device-frame canvas { display: block; width: 100%; height: auto; border-radius: 10px; background: #080d08; }
.device-readout { display: grid; grid-template-columns: 1fr auto; gap: 4px; padding: 14px 10px 4px; font: 10px "Space Mono"; color: #777; }
.device-readout strong { color: var(--accent); font-size: 17px; }
.device-readout small { grid-column: 2; }
.hero-orbit { position: absolute; border: 1px solid rgba(183,255,0,.1); border-radius: 50%; }
.orbit-one { width: 600px; height: 600px; right: 12%; top: 18%; }
.orbit-two { width: 950px; height: 950px; right: -3%; top: 0; }

.feature-strip { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.feature-strip article { min-height: 190px; padding: 38px 4vw; border-right: 1px solid var(--line); }
.feature-strip span { color: var(--accent); font: 10px "Space Mono"; }
.feature-strip h3 { margin: 35px 0 8px; font-size: 15px; }
.feature-strip p { margin: 0; color: #77777e; font-size: 12px; line-height: 1.6; max-width: 300px; }

.section-shell { padding: 130px 7vw; }
.section-heading { display: grid; grid-template-columns: 1.2fr .8fr; align-items: end; gap: 10vw; margin-bottom: 70px; }
.section-heading h2, .lab-heading h2 { margin: 0; font-size: clamp(34px, 4.2vw, 62px); line-height: 1; letter-spacing: -.06em; }
.lab-heading h2 { font-size: clamp(32px, 3.7vw, 54px); line-height: 1.02; letter-spacing: -.05em; white-space: nowrap; }
.section-heading > p:last-child { color: #85858c; font-size: 14px; line-height: 1.8; max-width: 490px; }
.chapter-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.chapter-card { position: relative; min-height: 240px; padding: 26px; border: 0; background: #0b0b0d; color: var(--text); text-align: left; transition: .35s ease; overflow: hidden; }
.chapter-card::after { content: ""; position: absolute; width: 160px; height: 160px; right: -100px; bottom: -100px; border: 1px solid var(--accent); border-radius: 50%; opacity: 0; transition: .35s ease; }
.chapter-card:hover, .chapter-card.active { background: #151518; }
.chapter-card:hover::after, .chapter-card.active::after { opacity: .35; right: -55px; bottom: -55px; }
.chapter-number { color: #595960; font: 10px "Space Mono"; }
.chapter-icon { display: block; margin: 36px 0 30px; color: var(--accent); font: 24px "Space Mono"; }
.chapter-card h3 { margin-bottom: 10px; font-size: 15px; letter-spacing: -.03em; }
.chapter-card p { color: #696970; font-size: 10px; line-height: 1.55; }

.lab-section { min-height: 100vh; padding-top: 92px; padding-bottom: clamp(88px, 9vw, 150px); border-top: 1px solid var(--line); background: #080809; }
.lab-heading { padding-top: 70px; padding-bottom: 32px; display: flex; justify-content: space-between; align-items: end; }
.lab-switcher { display: grid; gap: 9px; }
.lab-switcher label { color: #66666c; font-size: 9px; text-transform: uppercase; letter-spacing: .15em; }
.lab-switcher select { width: 280px; border: 1px solid #333; border-radius: 6px; background: #151517; color: var(--text); padding: 12px; font-size: 12px; }
.lab-workspace { display: grid; grid-template-columns: 320px minmax(480px, 1fr) 250px; height: 650px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.control-panel, .insight-panel { padding: 17px 18px; background: #0d0d0f; overflow-y: auto; scrollbar-width: thin; }
.control-panel { border-right: 1px solid var(--line); }
.insight-panel { border-left: 1px solid var(--line); }
.panel-title { display: flex; gap: 9px; align-items: center; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.insight-panel .result-title { margin-bottom: 12px; }
.panel-title div { display: grid; gap: 3px; }
.panel-title small, .insight-head, .formula-card small, .learning-card small { color: #6e6e74; font-size: 8px; text-transform: uppercase; letter-spacing: .14em; }
.panel-title strong { font-size: 12px; }
.status-dot, .live-state span { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.experiment-description { min-height: 0; margin: 12px 0 14px; color: #77777e; font-size: 10px; line-height: 1.45; }
.control { margin-bottom: 6px; }
#controls:has(.control:nth-child(9)) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px 12px; }
#controls:has(.control:nth-child(9)) .control { min-width: 0; margin-bottom: 2px; }
#controls:has(.control:nth-child(9)) .control-head { display: grid; gap: 0; }
#controls:has(.control:nth-child(9)) .control-head strong { text-align: right; }
.control-panel:has(#controls .control:nth-child(9)) .experiment-description,
.control-panel:has(#controls .control:nth-child(9)) .learning-card p { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.control-panel:has(#controls .control:nth-child(9)) .learning-card { margin-top: 6px; padding: 7px 9px; }
.control-panel:has(#controls .control:nth-child(9)) .learning-card p { margin-top: 3px; line-height: 1.3; }
.control-panel:has(#controls .control:nth-child(9)) .reset-button { padding: 5px; }
.control-head { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 1px; font-size: 10px; line-height: 1.25; }
.control-head span { color: #84848a; }
.control-head strong { font: 10px "Space Mono"; color: var(--accent); }
.control input[type="range"] { display: block; width: 100%; height: 10px; margin: 0; accent-color: var(--accent); }
.control input[type="range"]::-webkit-slider-runnable-track { height: 3px; border-radius: 3px; background: #45454a; }
.control input[type="range"]::-webkit-slider-thumb { width: 12px; height: 12px; margin-top: -4px; }
.control-scale { display: none; }
.capacitor-config { display: grid; gap: 6px; margin-bottom: 12px; padding: 8px; border: 1px solid #303630; border-radius: 5px; background: #111311; }
.capacitor-config label { display: grid; gap: 5px; color: #747b74; font-size: 7px; text-transform: uppercase; letter-spacing: .08em; }
.capacitor-config select { width: 100%; padding: 7px; border: 1px solid #353b35; border-radius: 3px; background: #181b18; color: #d1d5d1; font-size: 8px; }
.capacitor-config input[type="number"] { width: 62px; padding: 5px 6px; border: 1px solid #353b35; border-radius: 3px; background: #181b18; color: #b7ff00; font: inherit; }
.reset-button { width: 100%; border: 1px solid #343438; border-radius: 5px; background: #171719; color: #aaaab0; padding: 7px; font-size: 9px; }
.learning-card, .formula-card { margin-top: 12px; padding: 10px 12px; background: #151517; border-left: 2px solid var(--accent); }
.visual-stage .formula-card { margin: 0; border-top: 1px solid var(--line); border-left: 0; padding: 14px 18px; }
.learning-card p, .formula-card p { margin: 6px 0 0; color: #8a8a90; font-size: 9px; line-height: 1.45; }

.visual-stage { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; background: #080809; min-width: 0; }
.stage-toolbar { min-height: 46px; padding: 5px 14px; display: flex; justify-content: space-between; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); }
.mode-tabs { display: flex; gap: 5px; }
.mode-tab { border: 0; border-radius: 4px; padding: 7px 10px; background: transparent; color: #66666d; font-size: 9px; }
.mode-tab.active { color: var(--text); background: #202023; }
.semiconductor-tabs { display: none; gap: 4px; align-items: center; overflow-x: auto; scrollbar-width: thin; }
.semiconductor-tabs.visible { display: flex; }
.semiconductor-tab { flex: 0 0 auto; border: 1px solid #29292d; border-radius: 4px; padding: 7px 9px; background: #111113; color: #77777e; font-size: 10px; white-space: nowrap; }
.semiconductor-tab.active { border-color: var(--accent); background: var(--accent-soft); color: var(--text); }
.motor-only-tab { display: none; }
.motor-only-tab.visible { display: block; }
.live-state { display: flex; align-items: center; gap: 8px; color: #6c6c72; font-size: 8px; text-transform: uppercase; letter-spacing: .1em; }
.scope-wrap { position: relative; min-height: 0; padding: 12px; }
#mainCanvas { width: 100%; height: 100%; display: block; border: 1px solid #202a20; border-radius: 6px; background: #070b07; }
.circuit-board { position: absolute; inset: 12px; display: none; overflow: hidden; border: 1px solid #263126; border-radius: 6px; background-color: #070b07; background-image: radial-gradient(rgba(183,255,0,.14) 1px, transparent 1px); background-size: 24px 24px; }
.circuit-board.active { display: block; }
.circuit-scene { position: absolute; inset: 0; transform-origin: 0 0; }
.wire-layer, .component-layer { position: absolute; inset: 0; width: 100%; height: 100%; }
.component-layer { pointer-events: none; }
.wire { fill: none; stroke: #b7ff00; stroke-width: 3; filter: drop-shadow(0 0 4px rgba(183,255,0,.45)); pointer-events: none; }
.wire-hit { fill: none; stroke: rgba(255,255,255,.001); stroke-width: 22; pointer-events: stroke; cursor: ns-resize; }
.wire-hit:hover + .wire { stroke: #ffcf5a; }
.circuit-hint { position: absolute; right: 14px; bottom: 12px; color: #586158; font: 8px "Space Mono"; pointer-events: none; }
.circuit-axis { position: absolute; z-index: 3; color: #657065; font: 7px "Space Mono"; pointer-events: none; }
.circuit-axis-x { left: 50%; bottom: 9px; transform: translateX(-50%); }
.circuit-axis-y { left: 8px; top: 50%; transform: translateY(-50%) rotate(-90deg); transform-origin: center; }
.zoom-controls { position: absolute; z-index: 4; right: 10px; top: 10px; display: flex; align-items: center; overflow: hidden; border: 1px solid #394139; border-radius: 5px; background: rgba(12,14,12,.92); }
.zoom-controls button { width: 30px; height: 28px; border: 0; border-right: 1px solid #303630; background: transparent; color: #d6d9d6; font: 12px "Space Mono"; }
.zoom-controls button:last-child { width: 36px; border: 0; border-left: 1px solid #303630; font-size: 8px; }
.zoom-controls button:hover { color: var(--accent); background: #202420; }
.zoom-controls span { min-width: 44px; text-align: center; color: var(--accent); font: 8px "Space Mono"; }
.circuit-component { position: absolute; width: 210px; height: 128px; border: 1px solid #3a443a; border-radius: 7px; background: rgba(15,17,15,.96); box-shadow: 0 10px 24px rgba(0,0,0,.45); user-select: none; pointer-events: auto; }
.circuit-component.selected { border-color: var(--accent); box-shadow: 0 0 20px rgba(183,255,0,.15); }
.component-head { height: 25px; padding: 7px 10px; display: flex; justify-content: space-between; color: #747b74; font: 8px "Space Mono"; cursor: grab; }
.component-head button { padding: 0; border: 0; background: transparent; color: #67676d; font-size: 11px; }
.component-symbol { position: absolute; left: 0; top: 31px; width: 100%; height: 58px; color: #e9e9eb; pointer-events: none; }
.component-symbol svg { display: block; width: 100%; height: 100%; overflow: visible; }
.symbol-line, .symbol-shape, .symbol-mark { fill: none; stroke: #f2f2f4; stroke-width: 3; vector-effect: non-scaling-stroke; }
.symbol-shape { filter: drop-shadow(0 0 4px rgba(255,255,255,.18)); }
.symbol-mark { stroke: var(--accent); stroke-width: 2.5; }
.symbol-mark.arrow { stroke: #5ac8fa; }
.symbol-internal { fill: none; stroke: #ffcf5a; stroke-width: 1.5; stroke-dasharray: 3 2; }
.component-value { position: absolute; left: 65px; top: 92px; width: 80px; padding: 2px 4px; border: 0; border-bottom: 1px solid #3e463e; background: transparent; color: var(--accent); text-align: center; font: 10px "Space Mono"; }
.component-detail { position: absolute; left: 4px; right: 4px; bottom: 1px; color: #8d948d; text-align: center; font: 7px "Space Mono"; white-space: nowrap; }
.internal-value, .phase-value { width: 46px; padding: 1px 2px; border: 0; border-bottom: 1px solid #555; background: transparent; color: #ffcf5a; text-align: center; font: inherit; }
.terminal { position: absolute; top: 60px; width: 15px; height: 15px; border: 2px solid #a4ada4; border-radius: 50%; background: #111; transform: translateY(-50%); cursor: crosshair; z-index: 2; }
.terminal.left { left: -7px; }.terminal.right { right: -7px; }
.terminal.pending { border-color: #ff6961; box-shadow: 0 0 10px #ff6961; }
.component-reading { position: absolute; left: 4px; right: 4px; bottom: -27px; padding: 5px 4px; border-radius: 3px; background: rgba(8,12,10,.9); color: #8b948b; text-align: center; font: 10px "Space Mono"; font-weight: 700; white-space: nowrap; }
.component-reading.live { color: #5ac8fa; box-shadow: 0 0 12px rgba(90,200,250,.08); }
.circuit-palette { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-bottom: 18px; }
.circuit-palette button { min-height: 54px; padding: 8px; border: 1px solid #343a34; border-radius: 5px; background: #151715; color: #b6bcb6; font-size: 8px; line-height: 1.35; }
.circuit-palette button:hover, .circuit-palette button.active { border-color: var(--accent); color: var(--accent); }
.circuit-tool-status { margin-bottom: 14px; padding: 10px; border-left: 2px solid #5ac8fa; background: #111512; color: #8d968e; font-size: 8px; line-height: 1.5; }
.pack-builder { display: grid; gap: 8px; margin-bottom: 12px; padding: 10px; border: 1px solid #303630; border-radius: 5px; background: #111311; }
.pack-builder label { display: grid; gap: 4px; color: #747b74; font-size: 7px; text-transform: uppercase; letter-spacing: .08em; }
.pack-builder label:has(input[type="checkbox"]) { grid-template-columns: auto 1fr; align-items: center; justify-content: start; text-transform: none; letter-spacing: 0; color: #d7d7db; }
.pack-builder select, .pack-builder input { width: 100%; min-width: 0; padding: 6px; border: 1px solid #353b35; border-radius: 3px; background: #181b18; color: #d1d5d1; font-size: 8px; }
.pack-builder input[type="checkbox"] { width: 18px; height: 18px; padding: 0; accent-color: var(--accent); }
.pack-builder > div { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.pack-builder button { padding: 8px; border: 0; border-radius: 3px; background: var(--accent); color: #080908; font-size: 8px; font-weight: 700; }
.circuit-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.circuit-actions button { border: 1px solid #343438; border-radius: 5px; background: #171719; color: #aaaab0; padding: 9px 4px; font-size: 8px; }
.scope-label { position: absolute; left: 35px; top: 35px; display: grid; gap: 5px; font: 8px "Space Mono"; color: #6b7a6b; }
.scope-label strong { color: var(--accent); }
.meters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border-top: 1px solid var(--line); }
.insight-panel .meters { grid-template-columns: 1fr; gap: 10px; margin: 14px 0 16px; border: 0; background: transparent; }
.meter { position: relative; min-height: 96px; padding: 12px 15px; background: #0d0d0f; display: grid; gap: 3px; }
.insight-panel .meter { min-height: 86px; grid-template-columns: 34px 1fr; align-items: center; gap: 2px 12px; border: 1px solid rgba(255,255,255,.1); border-radius: 12px; background: linear-gradient(145deg, rgba(24,24,27,.96), rgba(10,12,10,.96)); box-shadow: inset 0 1px 0 rgba(255,255,255,.04); }
.meter-icon { width: 22px; height: 22px; display: grid; place-items: center; border: 1px solid #414147; border-radius: 50%; color: #a0a0a6; font: 9px "Space Mono"; }
.insight-panel .meter-icon { grid-row: 1 / span 2; width: 30px; height: 30px; border-color: rgba(183,255,0,.28); color: var(--accent); background: rgba(183,255,0,.07); }
.meter small { color: #626268; font-size: 8px; text-transform: uppercase; letter-spacing: .12em; }
.meter strong { font: 18px "Space Mono"; font-weight: 400; }
.insight-panel .meter small, .insight-panel .meter strong { grid-column: 2; }
.meter em { position: absolute; right: 16px; top: 18px; color: #46464c; font: normal 7px "Space Mono"; }
.accent-meter strong { color: var(--accent); }
.meter.danger { border-color: rgba(255,105,97,.75); background: linear-gradient(145deg, rgba(80,18,20,.96), rgba(18,8,9,.96)); box-shadow: 0 0 18px rgba(255,105,97,.18); }
.meter.danger .meter-icon { border-color: rgba(255,105,97,.65); color: #ff6961; background: rgba(255,105,97,.1); }
.meter.danger strong { color: #ff6961; }

.insight-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 11px; border-bottom: 1px solid var(--line); }
.insight-head b { color: var(--accent); font: 8px "Space Mono"; }
.insights { display: grid; gap: 10px; }
.insight { padding: 13px 14px; border: 1px solid rgba(255,255,255,.08); border-radius: 10px; background: rgba(255,255,255,.035); }
.insight span { color: #65656b; font-size: 8px; text-transform: uppercase; letter-spacing: .12em; }
.insight strong { display: block; margin-top: 3px; font: 15px "Space Mono"; font-weight: 400; }
.insight small { display: block; margin-top: 4px; color: #55555b; font-size: 8px; }
.circuit-traffic-status { display: grid; gap: 9px; }
.traffic-row { display: grid; grid-template-columns: 17px 1fr; align-items: start; gap: 9px; }
.traffic-row strong { margin: 0; font-size: 11px; line-height: 1.35; }
.traffic-row small { margin-top: 2px; }
.traffic-light { width: 12px; height: 12px; margin-top: 2px; border: 1px solid #454b45; border-radius: 50%; background: #242824; box-shadow: inset 0 0 0 2px #111; }
.traffic-light.green { border-color: #b7ff00; background: #b7ff00; box-shadow: 0 0 12px rgba(183,255,0,.65); }
.traffic-light.yellow { border-color: #ffcf5a; background: #ffcf5a; box-shadow: 0 0 12px rgba(255,207,90,.55); }
.traffic-light.red { border-color: #ff6961; background: #ff6961; box-shadow: 0 0 12px rgba(255,105,97,.55); }
.formula-card strong { display: block; margin-top: 6px; color: var(--accent); font: 14px "Space Mono"; }
.complete-button { width: 100%; margin-top: 20px; border-radius: 5px; padding: 11px; font-size: 9px; }
.complete-button.done { background: #232326; color: #818188; }

.compact { grid-template-columns: 1fr; }
.gallery-section { position: relative; padding-top: clamp(112px, 9vw, 170px); border-top: 1px solid var(--line); background: #070708; overflow: hidden; }
.gallery-section::before { content: ""; position: absolute; left: 7vw; right: 7vw; top: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(183,255,0,.42), transparent); opacity: .75; }
.gallery-heading { display: grid; grid-template-columns: 1.1fr .9fr; gap: 10vw; align-items: end; margin-bottom: 55px; }
.gallery-heading h2 { margin: 0; font-size: clamp(32px, 4vw, 58px); line-height: 1; letter-spacing: -.055em; }
.gallery-heading > p { max-width: 470px; margin: 0; color: #818188; font-size: 11px; line-height: 1.8; }
.gallery-shell { position: relative; }
.gallery-viewport { overflow: hidden; }
.gallery-track { display: flex; gap: 18px; transition: transform .55s cubic-bezier(.22,.8,.2,1); }
.gallery-card { flex: 0 0 min(72vw, 740px); overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #101012; }
.gallery-image-wrap { position: relative; height: 390px; overflow: hidden; background: #17171a; }
.gallery-image-wrap::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(5,5,6,.7)); pointer-events: none; }
.gallery-image-wrap img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.75) contrast(1.08); transition: transform .7s ease; }
.gallery-image-wrap img.loading { opacity: .18; }
.gallery-image-wrap img.loaded { opacity: 1; transition: opacity .35s ease, transform .7s ease; }
.gallery-image-wrap img.contain { object-fit: contain; padding: 18px; background: #f4f4f4; }
.gallery-card:hover img { transform: scale(1.025); }
.gallery-index { position: absolute; z-index: 2; left: 18px; top: 18px; padding: 6px 8px; border-radius: 3px; background: rgba(5,5,6,.75); color: var(--accent); font: 8px "Space Mono"; }
.gallery-copy { position: relative; min-height: 140px; padding: 22px; }
.gallery-copy h3 { margin-bottom: 8px; font-size: 17px; letter-spacing: -.025em; }
.gallery-copy p { margin: 0; color: #77777e; font-size: 10px; line-height: 1.7; }
.gallery-source { position: absolute; right: 18px; bottom: 14px; color: #626a62; font: 7px "Space Mono"; text-decoration: none; }
.gallery-source:hover { color: var(--accent); }
.gallery-arrow { position: absolute; z-index: 3; top: 175px; width: 44px; height: 44px; border: 1px solid #4a4a50; border-radius: 50%; background: rgba(9,9,10,.84); color: #fff; }
.gallery-arrow:hover { border-color: var(--accent); color: var(--accent); }
.gallery-arrow.previous { left: -22px; }.gallery-arrow.next { right: -22px; }
.gallery-footer { display: grid; grid-template-columns: 1fr auto auto; gap: 20px; align-items: center; margin-top: 24px; }
.gallery-progress { height: 2px; background: #29292c; }
.gallery-progress span { display: block; width: 10%; height: 100%; background: var(--accent); transition: width .4s ease; }
.gallery-footer > span, .gallery-footer a { color: #6b6b72; font: 8px "Space Mono"; text-decoration: none; }
.learning-status-section { background: #0b0b0d; }
.learning-status-heading { margin-bottom: 42px; }
.learning-status-heading h2 { margin: 0; font-size: clamp(30px, 3.8vw, 52px); line-height: 1.02; letter-spacing: -.05em; }
.learning-status-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.completion-card { display: grid; align-content: space-between; gap: 30px; padding: 42px; background: linear-gradient(120deg, #131514, #090a09); }
.completion-card h3 { margin-bottom: 10px; font-size: clamp(28px, 3vw, 42px); line-height: 1; letter-spacing: -.05em; }
.completion-card p:last-child { max-width: 700px; margin-bottom: 0; color: #85858c; font-size: 14px; line-height: 1.65; }
.completion-card .complete-button { width: auto; min-width: 230px; margin: 0; padding: 14px 22px; }
.progress-card { display: grid; grid-template-columns: 180px 1fr; gap: 38px; align-items: center; padding: 42px; background: linear-gradient(120deg, #121214, #080809); }
.progress-ring { width: 170px; height: 170px; display: grid; place-content: center; gap: 6px; text-align: center; border-radius: 50%; background: radial-gradient(circle, #111 60%, transparent 61%), conic-gradient(var(--accent) 0%, #242427 0); }
.progress-ring strong { font-size: 44px; letter-spacing: -.08em; }
.progress-ring span { color: #67676d; font-size: 8px; text-transform: uppercase; letter-spacing: .14em; }
.progress-copy h3 { font-size: 28px; letter-spacing: -.04em; }
.progress-copy p { max-width: 600px; color: #74747b; font-size: 11px; line-height: 1.7; }
.progress-bar { height: 3px; margin: 28px 0 12px; background: #29292c; }
.progress-bar span { display: block; width: 0; height: 100%; background: var(--accent); transition: .4s; }
.progress-copy small { color: #66666c; font: 8px "Space Mono"; }
.analytics-section { background: #070708; border-top: 1px solid var(--line); }
.analytics-toolbar { display: flex; flex-wrap: wrap; gap: 10px; margin: -28px 0 28px; }
.analytics-toolbar .reset-button { width: auto; padding: 10px 14px; }
.analytics-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-bottom: 24px; border: 1px solid var(--line); background: var(--line); }
.analytics-summary article { padding: 24px; background: #101012; }
.analytics-summary strong { display: block; color: var(--accent); font: 34px "Space Mono"; }
.analytics-summary span { color: #77777e; font-size: 11px; text-transform: uppercase; letter-spacing: .12em; }
.analytics-table-wrap { overflow-x: auto; border: 1px solid var(--line); background: #0d0d0f; }
.analytics-table { width: 100%; border-collapse: collapse; min-width: 760px; }
.analytics-table th, .analytics-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; }
.analytics-table th { color: var(--accent); font-size: 10px; text-transform: uppercase; letter-spacing: .14em; background: #121214; }
.analytics-table td { color: #d7d7db; font-size: 13px; }
.status-page { padding-top: 160px; background: #070708; }
.status-progress-card { margin-bottom: 28px; border: 1px solid var(--line); }
.status-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; border: 1px solid var(--line); background: var(--line); }
.status-card { min-height: 150px; padding: 22px; background: #0d0d0f; }
.status-card.done { background: linear-gradient(145deg, rgba(183,255,0,.12), #0d0d0f 58%); }
.status-card span { color: var(--accent); font: 10px "Space Mono"; }
.status-card h3 { margin: 22px 0 8px; font-size: 16px; letter-spacing: -.03em; }
.status-card p { margin: 0 0 14px; color: #7b7b82; font-size: 11px; }
.status-card a { color: #5ac8fa; font-size: 11px; text-decoration: none; }
.status-card a:hover { color: var(--accent); }
.status-card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.status-checkbox { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 7px; font: 20px "Space Mono"; font-weight: 700; line-height: 1; }
.status-checkbox.done { border: 2px solid #fff; background: #fff; color: #16a34a; box-shadow: 0 0 14px rgba(22,163,74,.28); }
.status-checkbox.open { border: 2px solid #ff6961; background: rgba(255,105,97,.08); box-shadow: 0 0 12px rgba(255,105,97,.14); }
footer { padding: 40px 7vw; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); }
footer p { margin: 0; color: #56565c; font-size: 9px; }
.legal-links { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.legal-links a { color: #8a8a92; font: 11px "Space Mono"; text-decoration: none; }
.legal-links a:hover { color: var(--accent); }

/* Consistent readability scale */
body { font-size: 16px; line-height: 1.55; }
.brand { font-size: 15px; }
.topnav button, .nav-cta, .primary-button, .text-button { font-size: 13px; }
.eyebrow { font-size: 12px; letter-spacing: .16em; }
.hero-stats span, .feature-strip span, .chapter-number { font-size: 11px; }
.feature-strip h3 { font-size: 18px; }
.feature-strip p, .chapter-card p, .experiment-description,
.learning-card p, .formula-card p, .gallery-heading > p,
.gallery-copy p, .progress-copy p { font-size: 14px; line-height: 1.6; }
.chapter-card h3 { font-size: 18px; line-height: 1.25; }
.lab-switcher label, .panel-title small, .insight-head,
.formula-card small, .learning-card small { font-size: 11px; letter-spacing: .1em; }
.lab-switcher select, .panel-title strong { font-size: 13px; }
.control-head, .control-head strong, .control-scale,
.capacitor-config label, .capacitor-config select, .reset-button,
.mode-tab, .live-state, .circuit-hint, .circuit-axis,
.zoom-controls button:last-child, .zoom-controls span,
.component-head, .component-detail, .component-value,
.component-reading, .circuit-palette button, .circuit-tool-status,
.pack-builder label, .pack-builder select, .pack-builder input,
.pack-builder button, .circuit-actions button, .scope-label,
.meter-icon, .meter small, .meter em, .insight-head b,
.insight span, .insight small, .complete-button,
.gallery-index, .gallery-source, .gallery-footer > span,
.gallery-footer a, .progress-ring span, .progress-copy small,
footer p, .auth-user-label, .header-logout, .analytics-summary span,
.analytics-table th { font-size: 11px; }
.control-head, .experiment-description, .learning-card p,
.formula-card p, .circuit-tool-status, .insight small { line-height: 1.55; }
.meter strong { font-size: 21px; }
.insight strong { font-size: 17px; }
.gallery-copy h3 { font-size: 20px; }

/* Simulator readability and touch-friendly layout */
.lab-workspace { grid-template-columns: 340px minmax(520px, 1fr) 310px; height: min(760px, calc(100vh - 150px)); min-height: 690px; }
.control-panel, .insight-panel { padding: 20px; }
.panel-title strong { font-size: 16px; }
.experiment-description { font-size: 14px; line-height: 1.55; }
.control { margin-bottom: 12px; }
.control-head { font-size: 14px; line-height: 1.35; }
.control-head strong { font-size: 14px; }
.control input[type="range"] { height: 20px; }
.control input[type="range"]::-webkit-slider-runnable-track { height: 5px; }
.control input[type="range"]::-webkit-slider-thumb { width: 20px; height: 20px; margin-top: -7px; }
.capacitor-config { gap: 10px; padding: 12px; }
.capacitor-config label, .pack-builder label { font-size: 11px; line-height: 1.4; }
.capacitor-config select, .capacitor-config input[type="number"], .pack-builder select, .pack-builder input { min-height: 34px; font-size: 13px; }
.reset-button, .circuit-actions button, .pack-builder button { min-height: 38px; font-size: 13px; }
.mode-tab, .semiconductor-tab { min-height: 36px; padding: 10px 13px; font-size: 13px; }
.live-state { font-size: 11px; }
.circuit-palette button { min-height: 66px; font-size: 12px; }
.circuit-tool-status { font-size: 12px; line-height: 1.5; }
.meter { min-height: 104px; padding: 16px 18px; }
.insight-panel .meter { min-height: 86px; padding: 15px 16px; }
.meter small { font-size: 12px; }
.meter strong { font-size: 25px; }
.insight-panel .meter strong { font-size: 22px; line-height: 1.1; }
.meter em { font-size: 10px; }
.insight span, .insight small { font-size: 12px; }
.insight strong { font-size: 17px; line-height: 1.25; }
.formula-card strong { font-size: 17px; }
.learning-card p, .formula-card p { font-size: 13px; line-height: 1.55; }
.component-reading { font-size: 12px; bottom: -31px; }

@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr; padding-right: 7vw; }
  .hero-device { margin-top: 80px; transform: none; }
  .device-frame { width: 100%; }
  .chapter-grid { grid-template-columns: repeat(3, 1fr); }
  .lab-workspace { grid-template-columns: 290px minmax(0, 1fr) 280px; height: auto; min-height: 0; }
  .insight-panel { grid-column: auto; border-top: 0; }
  .scope-wrap { min-height: 460px; }
}
@media (max-width: 760px) {
  .topbar { min-height: 106px; padding: 6px 3vw; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto auto; gap: 7px; }
  .header-brand { display: none; }
  .header-identity-hsnr { grid-column: 1; grid-row: 1; }
  .header-identity-inventor { grid-column: 2; grid-row: 1; }
  .chapter-header-nav { grid-column: 1 / -1; grid-row: 2; order: 3; padding-bottom: 5px; }
  .chapter-nav-item button { max-width: 120px; padding: 7px 8px; }
  .chapter-nav-item button, .chapter-nav-item a { font-size: 9px; }
  .adminnav { grid-column: 1 / -1; grid-row: 3; justify-content: center; gap: 10px; }
  .adminnav button, .admin-button { padding: 5px 9px; font-size: 9px; }
  .auth-user-label, .header-logout { font-size: 9px; }
  .auth-user-label { max-width: 44vw; }
  .header-logo { height: 36px; padding: 4px 6px; }
  .header-logo img { height: 25px; }
  .header-logo-inventor img { height: 21px; }
  .header-scope-link { width: 108px; height: 40px; }
  .hero { padding: 110px 6vw 60px; }
  .login-screen.server-login { padding: 0 6vw 40px; }
  .login-hero { width: calc(100% + 12vw); min-height: auto; margin: 0 -6vw; }
  h1 { font-size: 42px; }
  .hero-stats { gap: 25px; }
  .feature-strip, .section-heading, .chapter-grid, .lab-workspace, .progress-card, .gallery-heading, .learning-status-grid, .analytics-summary, .login-course-guide, .course-layout-preview, .login-chapter-grid, .status-grid { grid-template-columns: 1fr; }
  .login-course-guide { padding: 22px; }
  .course-layout-preview { min-height: 0; }
  .chapter-card { min-height: 190px; }
  .lab-section { padding-top: 126px; padding-bottom: 74px; }
  .lab-heading { padding-top: 36px; padding-bottom: 22px; }
  .lab-heading { align-items: start; gap: 35px; flex-direction: column; }
  .lab-heading h2 { white-space: normal; }
  .lab-switcher, .lab-switcher select { width: 100%; }
  .lab-workspace { display: flex; flex-direction: column; height: auto; min-height: 0; }
  .control-panel, .insight-panel { max-height: none; overflow: visible; border-right: 0; }
  .control-panel { order: 1; border-bottom: 1px solid var(--line); }
  .visual-stage { order: 2; width: 100%; }
  .insight-panel { order: 3; border-left: 0; border-top: 1px solid var(--line); }
  .stage-toolbar { align-items: stretch; flex-direction: column; min-height: 0; padding: 10px; }
  .mode-tabs, .semiconductor-tabs.visible { display: flex; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
  .mode-tab, .semiconductor-tab { flex: 0 0 auto; min-width: max-content; }
  .scope-wrap { height: min(62vh, 460px); min-height: 330px; padding: 8px; }
  .circuit-board { overflow: auto; }
  .circuit-scene { min-width: 850px; min-height: 560px; }
  .control-head, .control-head strong { font-size: 15px; }
  .experiment-description, .learning-card p, .formula-card p { font-size: 14px; }
  .meter strong { font-size: 24px; }
  .meters, .insight-panel .meters { grid-template-columns: 1fr; }
  .meter { min-height: 92px; }
  .status-card { min-height: 126px; }
  .progress-card { gap: 40px; padding: 35px; }
  .gallery-card { flex-basis: 88vw; }
  .gallery-section { padding-top: 86px; }
  .gallery-image-wrap { height: 260px; }
  .gallery-arrow { top: 110px; }
  .completion-card { gap: 24px; padding: 28px; }
  .completion-card .complete-button { width: 100%; min-width: 0; }
  footer { align-items: start; gap: 25px; flex-direction: column; }
}
