:root {
  --text: #f4f6fb;
  --muted: #aeb8c6;
  --accent: #d61c22;
  --accent-soft: rgba(214, 28, 34, 0.16);
  --accent2: #ff6c72;
  --cyan: #4fe4ff;
  --ok: #39d98a;
  --warn: #ffbf45;
  --blue: #48a6ff;
  --danger: #ff5d6c;
  --bg-1: #090b0e;
  --bg-2: #0d1116;
  --bg-3: #10161f;
  --panel-1: rgba(22, 27, 35, 0.98);
  --panel-2: rgba(16, 20, 27, 0.98);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(214, 28, 34, 0.32);
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(214, 28, 34, 0.16), transparent 22%),
    radial-gradient(circle at left center, rgba(214, 28, 34, 0.08), transparent 30%),
    linear-gradient(180deg, var(--bg-1), var(--bg-2) 48%, #0b0d10);
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
.hidden { display: none !important; }
.window-hidden { display: none !important; }

.login-overlay, .modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(8, 10, 13, 0.82);
  backdrop-filter: blur(10px);
  z-index: 40;
}
.login-card, .modal-card {
  width: min(820px, 100%);
  background: linear-gradient(180deg, var(--panel-1), var(--panel-2));
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 24px;
}
.modal-card { width: min(460px, 100%); }
.login-brand, .brand, .footer-brand {
  display: flex;
  gap: 14px;
  align-items: center;
}
.login-logo, .brand-logo, .footer-logo {
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 10px 24px rgba(214, 28, 34, 0.22);
}
.login-logo { width: 66px; height: 66px; }
.brand-logo { width: 58px; height: 58px; }
.footer-logo { width: 42px; height: 42px; }
.login-brand h1, .brand h1 { margin: 0; }
.login-brand p, .brand p { margin: 4px 0 0; color: var(--muted); }
.login-grid, .form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form-grid.single-col { grid-template-columns: 1fr; }
.login-grid { margin: 18px 0 14px; }
.login-grid label, .form-grid label, .select-stack, .range-row, .cad-toolbar label {
  display: grid;
  gap: 8px;
  color: var(--muted);
}
input, select {
  width: 100%;
  background: #0f141b;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
}
.role-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.role-chip, .btn, .chip, .nav-item, .icon-btn, .view-cube button {
  border: 1px solid var(--line);
  background: #151a22;
  color: var(--text);
  padding: 11px 14px;
  border-radius: 14px;
  cursor: pointer;
  transition: 0.2s ease;
}
.role-chip.active {
  background: linear-gradient(180deg, rgba(79, 228, 255, 0.16), rgba(79, 228, 255, 0.06));
  border-color: rgba(79, 228, 255, 0.42);
}
.btn:hover, .chip:hover, .nav-item:hover, .role-chip:hover, .icon-btn:hover, .view-cube button:hover { transform: translateY(-1px); }
.btn.primary { background: linear-gradient(180deg, #e12c32, #b0151b); }
.btn.ghost { background: transparent; }
.btn.danger { background: linear-gradient(180deg, #ff5f6e, #d63a4f); }
.btn.full { width: 100%; }
.icon-btn { width: 42px; height: 42px; padding: 0; font-size: 1.1rem; }
.toggle-chip.active {
  background: linear-gradient(180deg, rgba(79,228,255,0.18), rgba(79,228,255,0.08));
  border-color: rgba(79,228,255,0.4);
}
.login-note, .session-card, .website-card, .detail-block, .vehicle-card, .timeline-item, .health-item, .version-card, .flow-card, .user-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
}
.login-note { padding: 14px; margin-bottom: 18px; }
.login-note p { margin: 6px 0 0; color: var(--muted); line-height: 1.5; }
.login-actions, .topbar-actions, .button-row, .control-grid, .legend-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.modal-actions { justify-content: flex-end; }

.app-shell {
  display: grid;
  grid-template-columns: 300px 1fr;
  min-height: 100vh;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
  padding: 22px 18px;
  background: linear-gradient(180deg, #0f1318, #0d1116);
  border-right: 1px solid var(--line);
}
.main { padding: 24px; }
.brand {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
}
.website-card {
  display: grid;
  gap: 4px;
  padding: 14px;
  margin-bottom: 16px;
  background: linear-gradient(180deg, rgba(214, 28, 34, 0.18), rgba(214, 28, 34, 0.06));
  border-color: var(--line-strong);
}
.website-card strong { font-size: 1rem; }
.website-card small, .mini-heading, .nice-list, .detail-block span, .status-line span, .eyebrow, .metric-card p, .kpi-card small, th, .cad-toolbar span { color: var(--muted); }
.mini-heading {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.session-card, .side-panel { padding: 14px; margin-bottom: 16px; }
.status-line {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 10px 0;
}
.ok { color: var(--ok); }
.nice-list { margin: 8px 0 0; padding-left: 18px; }
.nice-list li { margin: 8px 0; }
.nav { display: grid; gap: 8px; }
.nav-item { text-align: left; }
.nav-item.active, .nav-item:hover {
  background: linear-gradient(180deg, rgba(214, 28, 34, 0.18), rgba(214, 28, 34, 0.08));
  border-color: var(--line-strong);
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}
.eyebrow {
  margin: 0 0 6px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
}
.topbar h2 { margin: 0; font-size: 1.85rem; }
.pill, .cad-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: #121820;
  border: 1px solid var(--line);
}
.cad-pill { padding: 7px 10px; font-size: 0.84rem; }
.website-pill {
  background: linear-gradient(180deg, rgba(214, 28, 34, 0.15), rgba(214, 28, 34, 0.05));
  border-color: var(--line-strong);
}
.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 6px rgba(57, 217, 138, 0.12);
}

.view { display: none; }
.view.active { display: block; }
.grid { display: grid; gap: 14px; }
.kpi-grid, .dashboard-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 16px; }
.simulation-layout { display: grid; gap: 16px; grid-template-columns: 1.62fr 0.78fr; }
.two-col { display: grid; gap: 16px; grid-template-columns: 1.3fr 1fr; margin-top: 16px; }
.two-col.wide-left { grid-template-columns: 1.45fr 1fr; }
.settings-layout { display: grid; gap: 16px; grid-template-columns: 1.45fr 0.78fr; }
.panel-stack { display: grid; gap: 16px; align-content: start; }
.card {
  padding: 16px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--panel-1), var(--panel-2));
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
}
.card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  right: 40%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
}
.kpi-card strong, .metric-card strong { display: block; font-size: 1.7rem; margin-top: 8px; }
.bar {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: #0f141b;
  margin-top: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.04);
}
.bar i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent), #ff7076);
  border-radius: 999px;
}

.canvas-card { padding: 0; }
.canvas-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 18px 8px;
}
.canvas-toolbar h3 { margin: 0 0 8px; }
.canvas-toolbar p { margin: 0; color: var(--muted); max-width: 780px; }
.cad-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 0 18px 12px;
  flex-wrap: wrap;
}
.toolbar-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: flex-end;
}
.toolbar-group label { min-width: 180px; }
.toolbar-group.right { margin-left: auto; align-items: center; }
.cad-toolbar select { padding: 9px 12px; }
.canvas-wrap { position: relative; padding: 12px 16px 16px; }
#simCanvas, #trendCanvas {
  width: 100%;
  height: auto;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #0f1217, #171e28);
}
.canvas-hud {
  position: absolute;
  top: 24px;
  left: 28px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  max-width: 78%;
}
.canvas-hud span {
  background: rgba(10, 12, 16, 0.84);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 0.9rem;
}
.view-cube {
  position: absolute;
  top: 26px;
  right: 28px;
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 8px;
  padding: 10px;
  border-radius: 16px;
  background: rgba(10, 12, 16, 0.84);
  border: 1px solid rgba(255,255,255,0.08);
}
.view-cube button { padding: 8px 10px; border-radius: 10px; font-size: 0.82rem; }
.axis-overlay {
  position: absolute;
  right: 28px;
  bottom: 186px;
  width: 110px;
  padding: 10px;
  border-radius: 16px;
  background: rgba(10, 12, 16, 0.82);
  border: 1px solid rgba(255,255,255,0.08);
}
.axis-title { font-size: 0.82rem; color: var(--muted); margin-bottom: 8px; }
.axis-row { display: flex; align-items: center; gap: 8px; margin: 6px 0; font-size: 0.9rem; }
.axis-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.axis-dot.x { background: #ff6f77; }
.axis-dot.y { background: #39d98a; }
.axis-dot.z { background: #48a6ff; }
.video-caption {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 28px;
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(10,12,16,0.84), rgba(10,12,16,0.68));
  border: 1px solid rgba(255,255,255,0.08);
  max-width: 860px;
  backdrop-filter: blur(10px);
}
.video-caption strong { font-size: 1.12rem; }
.video-caption span { color: var(--muted); line-height: 1.45; }
.zoom-panel {
  position: absolute;
  top: 110px;
  right: 28px;
  width: 300px;
  padding: 12px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(10,12,16,0.88), rgba(10,12,16,0.75));
  border: 1px solid rgba(255,255,255,0.08);
}
.zoom-preview {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 12px;
  align-items: start;
  margin-top: 8px;
}
.zoom-box {
  width: 86px;
  height: 86px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--cyan));
  border: 1px solid rgba(255,255,255,0.12);
}
.zoom-text strong { display: block; margin-bottom: 6px; }
.zoom-text p { margin: 0; color: var(--muted); font-size: 0.92rem; line-height: 1.45; }
.floating-window {
  position: absolute;
  width: 250px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(10,12,16,0.92), rgba(10,12,16,0.78));
  border: 1px solid rgba(255,255,255,0.10);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.24);
}
.floating-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 0.88rem;
}
.floating-header span { color: var(--muted); font-size: 0.78rem; }
.floating-body { padding: 12px; display: grid; gap: 10px; }
.floating-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  font-size: 0.88rem;
}
.floating-row span { color: var(--muted); }
.diagnostics-window { left: 28px; top: 104px; }
.defect-window { left: 28px; top: 330px; }
.cad-window { right: 28px; top: 310px; }
.presentation-window { right: 28px; top: 530px; width: 300px; }
.defect-body { max-height: 172px; overflow: auto; }
.defect-item {
  padding: 10px;
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
}
.defect-item strong { display: block; }
.defect-item p { margin: 5px 0 0; color: var(--muted); font-size: 0.84rem; line-height: 1.4; }
.defect-pill {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  margin-top: 8px;
  border: 1px solid rgba(255,255,255,0.08);
}
.defect-pill.review { color: var(--warn); background: rgba(255,191,69,0.12); border-color: rgba(255,191,69,0.28); }
.defect-pill.alert { color: #ff8a95; background: rgba(255,93,108,0.12); border-color: rgba(255,93,108,0.28); }
.cue-title { font-weight: 700; line-height: 1.4; }
.cue-list { margin: 0; padding-left: 18px; color: var(--muted); }
.cue-list li { margin: 6px 0; line-height: 1.4; }

.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.section-title h3 { margin: 0; }
.tag {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--line);
  color: var(--muted);
}
.tag.blue { color: var(--blue); }
.tag.green { color: var(--ok); }
.tag.amber { color: var(--warn); }
.control-grid { display: grid; grid-template-columns: repeat(2, 1fr); }
.detail-panel, .health-list, .timeline { display: grid; gap: 10px; }
.detail-block, .vehicle-card, .timeline-item, .health-item, .version-card, .flow-card, .user-card { padding: 12px; }
.detail-block strong, .timeline-item strong, .vehicle-card strong, .user-card strong { display: block; }
.range-row output { color: var(--accent2); }
input[type="range"] { width: 100%; accent-color: var(--accent); }
.mini-top { margin-top: 10px; }

.table-wrap { overflow: auto; }
table { width: 100%; min-width: 560px; border-collapse: collapse; }
th, td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 0.94rem;
}
.factory-map {
  height: 280px;
  position: relative;
  border-radius: 16px;
  background: linear-gradient(180deg, #10161e, #131b26);
  border: 1px solid var(--line);
  overflow: hidden;
}
.map-line {
  position: absolute;
  top: 54px;
  bottom: 40px;
  left: 76px;
  right: 76px;
  border: 2px dashed rgba(72,166,255,0.4);
  border-radius: 24px;
}
.map-zone, .map-robot, .map-frame {
  position: absolute;
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 600;
}
.scan-zone { right: 40px; top: 28px; background: rgba(57,217,138,0.14); border: 1px solid rgba(57,217,138,0.25); }
.dock-zone { left: 40px; bottom: 24px; background: rgba(72,166,255,0.14); border: 1px solid rgba(72,166,255,0.25); }
.underbody-zone { left: 44%; bottom: 16px; background: rgba(255,191,69,0.12); border: 1px solid rgba(255,191,69,0.26); }
.map-frame { left: 46%; top: 44%; transform: translate(-50%, -50%); background: rgba(255,191,69,0.16); border: 1px solid rgba(255,191,69,0.30); }
.map-robot { left: 92px; bottom: 68px; background: rgba(214,28,34,0.18); border: 1px solid rgba(214,28,34,0.30); }
.legend-row { color: var(--muted); margin-top: 14px; }
.legend {
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 6px;
  margin-right: 8px;
  vertical-align: middle;
}
.legend.robot { background: rgba(214, 28, 34, 0.7); }
.legend.frame { background: rgba(255, 191, 69, 0.7); }
.legend.safe { background: rgba(57, 217, 138, 0.7); }
.badge-state {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  background: rgba(57,217,138,0.12);
  border: 1px solid rgba(57,217,138,0.24);
  color: var(--ok);
}
.vehicle-grid, .user-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.vehicle-card, .user-card { text-align: left; }
.vehicle-card:hover, .vehicle-card.active, .user-card.active {
  transform: translateY(-2px);
  border-color: rgba(79,228,255,0.42);
  background: linear-gradient(180deg, rgba(79,228,255,0.12), rgba(255,255,255,0.03));
}
.vehicle-card p, .user-card p { margin: 6px 0 0; color: var(--muted); line-height: 1.4; }
.user-card .user-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.user-card .mini-btn {
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  cursor: pointer;
}
.user-card .mini-btn.primary {
  background: linear-gradient(180deg, rgba(79,228,255,0.18), rgba(79,228,255,0.08));
  border-color: rgba(79,228,255,0.28);
}
.extra-bottom { margin-bottom: 12px; }

.proposal-header-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}
.proposal-header-band > div {
  padding: 14px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(214,28,34,0.14), rgba(255,255,255,0.03));
  border: 1px solid var(--line);
}
.proposal-header-band p { margin: 6px 0 0; color: var(--muted); line-height: 1.45; }
.concept-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: 10px;
  align-items: stretch;
  margin-bottom: 18px;
}
.flow-card {
  min-height: 96px;
  display: grid;
  gap: 8px;
  align-content: start;
}
.flow-card span { color: var(--muted); font-size: 0.92rem; }
.flow-card.red { background: linear-gradient(180deg, rgba(214,28,34,0.16), rgba(255,255,255,0.03)); }
.flow-card.cyan { background: linear-gradient(180deg, rgba(79,228,255,0.16), rgba(255,255,255,0.03)); }
.flow-card.amber { background: linear-gradient(180deg, rgba(255,191,69,0.16), rgba(255,255,255,0.03)); }
.flow-card.green { background: linear-gradient(180deg, rgba(57,217,138,0.16), rgba(255,255,255,0.03)); }
.flow-arrow {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 1.4rem;
}
.schematic-wrap {
  position: relative;
  height: 300px;
  border-radius: 18px;
  background: linear-gradient(180deg, #111821, #151f2b);
  border: 1px solid var(--line);
  overflow: hidden;
}
.schematic-vehicle {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 320px;
  height: 120px;
  background: linear-gradient(180deg, #d61c22, #9c0f14);
  border-radius: 28px;
  box-shadow: inset 0 0 0 16px rgba(79,228,255,0.12);
}
.schematic-orbit {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 480px;
  height: 230px;
  border: 2px dashed rgba(79,228,255,0.52);
  border-radius: 999px;
}
.schematic-robot {
  position: absolute;
  left: 24%;
  top: 57%;
  width: 78px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(180deg, #d61c22, #8f1216);
}
.schematic-probe {
  position: absolute;
  left: 29%;
  top: 58%;
  width: 170px;
  height: 4px;
  transform: rotate(-8deg);
  transform-origin: left center;
  background: linear-gradient(90deg, rgba(255,191,69,0.95), rgba(79,228,255,0.95));
}
.schematic-label {
  position: absolute;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(10,12,16,0.78);
  border: 1px solid rgba(255,255,255,0.08);
  font-size: 0.9rem;
}
.schematic-label.a { left: 16px; top: 16px; }
.schematic-label.b { right: 16px; bottom: 22px; }
.schematic-label.c { left: 50%; top: 8px; transform: translateX(-50%); }

.app-footer {
  margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, #12161d, #0f1318);
  padding: 16px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.app-footer p { margin: 2px 0 0; color: var(--muted); font-size: 0.9rem; }
.app-footer a {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, rgba(214,28,34,0.15), rgba(214,28,34,0.05));
}
.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  background: rgba(14,18,24,0.95);
  border: 1px solid rgba(214,28,34,0.35);
  padding: 12px 14px;
  border-radius: 14px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: 0.2s ease;
  max-width: 420px;
  z-index: 60;
}
.toast.show { opacity: 1; transform: translateY(0); }

.presentation .sidebar { display: none; }
.presentation .app-shell { grid-template-columns: 1fr; }
.presentation .main { padding: 16px; }
.presentation .simulation-layout { grid-template-columns: 1fr; }
.presentation .panel-stack { display: none; }
.presentation .zoom-panel { display: none; }
.presentation .axis-overlay { right: 24px; bottom: 28px; }
.presentation .video-caption {
  left: 34px;
  bottom: 34px;
  max-width: 900px;
  padding: 18px 22px;
}
.presentation .video-caption strong { font-size: 1.3rem; }
.presentation .video-caption span { font-size: 1.03rem; }
.presentation .diagnostics-window,
.presentation .defect-window,
.presentation .cad-window,
.presentation .presentation-window { opacity: 0.96; }
.presentation .diagnostics-window { top: 92px; }
.presentation .defect-window { top: 314px; }
.presentation .presentation-window { top: 116px; right: 28px; width: 330px; }
.presentation .cad-window { top: 430px; right: 28px; }

@media (max-width: 1420px) {
  .floating-window { position: static; width: auto; margin-top: 12px; }
  .zoom-panel, .view-cube, .axis-overlay, .canvas-hud, .video-caption { position: static; max-width: none; margin-top: 12px; }
}
@media (max-width: 1280px) {
  .simulation-layout, .settings-layout, .two-col, .two-col.wide-left, .dashboard-grid, .kpi-grid { grid-template-columns: 1fr; }
  .vehicle-grid, .user-grid, .proposal-header-band { grid-template-columns: 1fr; }
  .concept-flow { grid-template-columns: 1fr; }
  .flow-arrow { display: none; }
  .zoom-panel, .view-cube { position: static; width: auto; margin-top: 12px; }
  .axis-overlay { right: 28px; bottom: 28px; }
}
@media (max-width: 980px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; }
  .topbar, .app-footer, .login-actions { flex-direction: column; align-items: flex-start; }
  .login-grid, .form-grid { grid-template-columns: 1fr; }
  .cad-toolbar { flex-direction: column; }
}
@media (max-width: 760px) {
  .main { padding: 16px; }
  .control-grid { grid-template-columns: 1fr; }
  .canvas-hud, .video-caption { position: static; max-width: none; width: auto; margin-top: 12px; }
  .canvas-wrap { padding-top: 0; }
  .axis-overlay, .view-cube { position: static; margin-top: 12px; }
}
