:root {
  --accent-3: #122d31;
  --accent-2: #215161;
  --accent-1: #307592;
  --fg: #030900;
  --bg: #edeae3;
  --lift: #f6f4ef;
  --line: #d8d2c6;
  --ok: #2f6b4f;
  --warn: #8a5a1b;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 14px 40px rgba(18, 45, 49, 0.16);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
}

html:not(:has(#cm-module-configurator)),
html:not(:has(#cm-module-configurator)) body {
  background: var(--bg);
  color: var(--fg);
  font-family: "Segoe UI", "Helvetica Neue", system-ui, sans-serif;
}

.app ::selection {
  background: var(--accent-1);
  color: var(--bg);
}

.app :focus-visible {
  outline: 2px solid var(--accent-1);
  outline-offset: 2px;
}

.app *::-webkit-scrollbar { width: 10px; height: 10px; }
.app *::-webkit-scrollbar-track { background: var(--bg); }
.app *::-webkit-scrollbar-thumb {
  background: var(--accent-2);
  border-radius: 999px;
  border: 2px solid var(--bg);
}

.app {
  max-width: 1680px;
  margin: 0 auto;
  padding: 2rem 1.4rem 3rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 400px);
  gap: 1.2rem;
  align-items: start;
}

.main { min-width: 0; }

.top { display: grid; gap: 1rem; margin-bottom: 1.2rem; }

.brand {
  display: grid;
  gap: 0.7rem;
  justify-items: start;
}

.logo {
  height: 44px;
  width: auto;
  max-width: 280px;
  object-fit: contain;
  background: transparent;
  border-radius: 0;
}

.eyebrow {
  margin: 0;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent-1);
}

.app h1, .app h2 {
  margin: 0;
  font-family: inherit;
  font-weight: 650;
  color: var(--accent-3);
}

.app h1 { font-size: 1.7rem; letter-spacing: -0.02em; line-height: 1.2; }

.lede {
  margin: 0;
  max-width: 54rem;
  line-height: 1.55;
  color: var(--accent-2);
}

.steps {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.step {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid var(--line);
  background: var(--lift);
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  font: inherit;
  cursor: pointer;
}

.step span {
  display: inline-grid;
  place-items: center;
  width: 1.35rem;
  height: 1.35rem;
  background: var(--accent-3);
  color: #fff;
  font-size: 0.75rem;
  border-radius: 999px;
}

.step.on {
  background: var(--accent-1);
  color: #fff;
  border-color: var(--accent-1);
}

.step.on span { background: #122d31; }

.step:disabled { opacity: 0.45; cursor: not-allowed; }

.picked {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0 0 1rem;
}

.chip {
  background: var(--lift);
  border: 1px solid var(--line);
  padding: 0.4rem 0.75rem;
  font-size: 0.88rem;
  border-radius: var(--radius-sm);
}

button.chip {
  font: inherit;
  cursor: pointer;
  text-align: left;
}

button.chip:hover { border-color: var(--accent-1); }

.chip b { color: var(--accent-2); font-weight: 600; }

.banner, .statusline, .note {
  margin: 0 0 0.8rem;
  color: #2a3328;
}

.statusline:empty,
.confirm-hint:empty,
.note:empty,
#sim-sub:empty {
  display: none;
}

.banner {
  padding: 0.75rem 0.95rem;
  background: #f4e8d4;
  border: 1px solid #e0c99a;
  border-radius: var(--radius-sm);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: end;
  margin-bottom: 0.8rem;
}

#view-lens .cmaker-cfg {
  margin-bottom: 0.65rem;
}

#view-lens .cmaker-panel {
  box-shadow: none;
}

#lens-all-wrap {
  margin: 0;
}

.lens-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1rem;
  align-items: end;
  margin: 0 0 0.8rem;
}

.cmaker-panel.is-cfg .cmaker-row.is-top {
  grid-template-columns: minmax(0, 1fr);
}

.cmaker-panel.is-cfg .cmaker-row.is-ranges,
.cmaker-panel.is-cfg .cmaker-row.is-cats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

#view-lens .cmaker-panel input[type="range"] {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.app .cmaker-foot .cmaker-clear {
  background: #16324f;
  color: #fff !important;
  border: 0;
  min-width: 150px;
  height: 40px;
  padding: 0 1.1rem;
}

.app .cmaker-chip button {
  border: 0;
  background: transparent;
  padding: 0;
  width: 1.2rem;
  height: 1.2rem;
}

.field { display: grid; gap: 0.28rem; min-width: 10rem; }
.field.grow { flex: 1; min-width: 16rem; }
.field span {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-2);
}

.app input, .app select, .app button {
  font: inherit;
  border: 1px solid var(--line);
  background: #fff;
  padding: 0.5rem 0.7rem;
  border-radius: 8px;
}

.inline {
  display: flex;
  gap: 0.45rem;
  align-items: center;
  padding-bottom: 0.2rem;
  font-size: 0.92rem;
}

.table-wrap {
  overflow: auto;
  overscroll-behavior: contain;
  background: var(--lift);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-height: calc(100vh - 16rem);
}

.app table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }

.app th, .app td {
  text-align: left;
  padding: 0.48rem 0.6rem;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.app th {
  position: sticky;
  top: 0;
  background: #e6e2d8;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.app th.sort {
  cursor: pointer;
  user-select: none;
  padding-right: 1.1rem;
  position: sticky;
}

.app th.sort:hover { color: var(--accent-2); }

.app th.sort::after {
  content: "↕";
  position: absolute;
  right: 0.35rem;
  opacity: 0.35;
  font-size: 0.7rem;
}

.app th.sort.asc::after { content: "↑"; opacity: 1; }
.app th.sort.desc::after { content: "↓"; opacity: 1; }

#view-lens td.pin,
#view-lens th.pin {
  position: sticky;
  left: 0;
  z-index: 2;
  background: var(--lift);
  box-shadow: 4px 0 8px rgba(18, 21, 26, 0.06);
}

#view-lens th.pin {
  z-index: 4;
  top: 0;
}

#view-lens tr:hover td.pin { background: #eef3f0; }
#view-lens tr.sel td.pin { background: #dce8e3; }

.risks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.28rem;
  max-width: 18rem;
  white-space: normal;
}

.risk-n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.6rem;
  height: 1.35rem;
  padding: 0 0.4rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
  border: 1px solid var(--line);
  background: #fff;
}

.risk-n.ok { color: var(--ok); }
.risk-n.warn { color: var(--warn); border-color: #e0c99a; background: #f8efdf; }
.risk-n.bad { color: #8a2d2d; border-color: #e0b4b4; background: #f7e6e6; }

.risk {
  display: inline-block;
  padding: 0.18rem 0.5rem;
  font-size: 0.75rem;
  line-height: 1.25;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
}

.risk.warn { color: var(--warn); border-color: #e0c99a; background: #f8efdf; }
.risk.bad { color: #8a2d2d; border-color: #e0b4b4; background: #f7e6e6; }
.risk.ok { color: var(--ok); }

.app tr { cursor: pointer; }
.app tr:hover td { background: rgba(48, 117, 146, 0.08); }
.app tr.sel td { background: rgba(48, 117, 146, 0.16); }

.empty { text-align: center; color: #5a6456; padding: 1.4rem; cursor: default; }

.cover-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.cover {
  display: grid;
  gap: 0.7rem;
  padding: 1rem;
  background: var(--lift);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.cover:hover, .cover.on { border-color: var(--accent-1); box-shadow: 0 0 0 2px rgba(48, 117, 146, 0.25), var(--shadow); }

.cover img.diagram {
  width: 100%;
  height: auto;
  background: #f6f4ef;
  border-radius: 12px;
}

.cover img.example {
  width: 100%;
  height: 10.5rem;
  object-fit: cover;
  background: #122d31;
  border-radius: 12px;
}

.cover.circular img.example { object-fit: contain; }

.more-wrap { margin: 0.65rem 0 0; }
.more-wrap .ghost { width: auto; }

.how-strip {
  display: none;
  list-style: none;
  margin: 0.85rem 0 0;
  padding: 0;
}

.cover h2 { font-size: 1.25rem; }

.tag {
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-1);
}

.cover p { margin: 0; line-height: 1.45; color: #2a3328; }

.fit-ok { color: var(--ok); }
.fit-no { color: var(--warn); }

.confirm {
  width: 100%;
  background: var(--accent-1);
  color: #fff;
  border-color: var(--accent-1);
  padding: 0.7rem 0.9rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  border-radius: var(--radius-sm);
}

.confirm:hover:not(:disabled) { background: var(--accent-2); border-color: var(--accent-2); }

.confirm:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.confirm-hint {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.35;
  color: #2a3328;
}

.overview-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 1rem;
}

.ov-card {
  background: var(--lift);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.05rem 1.15rem;
}

.ov-card h2 { font-size: 1.15rem; margin: 0; }

.ov-card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.7rem;
  margin-bottom: 0.65rem;
}

.ov-change {
  background: none;
  border: none;
  color: var(--accent-1);
  cursor: pointer;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0;
}

.ov-change:hover { color: var(--accent-2); }

.ov-card .field { margin-bottom: 0.7rem; }

.ov-risks {
  margin-top: 0;
  margin-bottom: 0.2rem;
}
.ov-risks .risks { max-width: none; }

.ov-actions {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin: 0 0 1.15rem;
  padding: 1.05rem 1.15rem;
  background: var(--lift);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.ov-actions .confirm,
.ov-actions .ghost { width: 100%; }

.ghost {
  background: var(--bg);
  color: var(--accent-3);
  border-color: var(--line);
  padding: 0.7rem 0.9rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  border-radius: var(--radius-sm);
}

.ghost:hover {
  border-color: var(--accent-1);
  color: var(--accent-2);
  background: rgba(48, 117, 146, 0.08);
}

.app.cad-wide { grid-template-columns: 1fr; }

.cad-work {
  display: grid;
  gap: 1rem;
  grid-template-columns: 250px minmax(0, 1fr) 210px;
  align-items: start;
  min-width: 0;
}

.cad-tools,
.cad-pins-wrap {
  display: grid;
  gap: 0.65rem;
  padding: 0.9rem;
  background: var(--lift);
  border: 1px solid var(--line);
  position: relative;
  z-index: 1;
  min-width: 0;
  max-height: calc(100vh - 7rem);
  overflow: auto;
}

.cad-tools h2,
.cad-pins-wrap h2 { font-size: 1.05rem; margin-top: 0.35rem; }
.cad-tools h2:first-child { margin-top: 0; }

.cad-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.seg {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.seg.four { grid-template-columns: repeat(2, 1fr); }

.seg button {
  background: #fff;
  cursor: pointer;
}

.seg button.on {
  background: var(--accent-1);
  color: #fff;
  border-color: var(--accent-1);
}

.fpc-presets {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.3rem;
}

.fpc-presets button { cursor: pointer; padding: 0.35rem 0.2rem; }

.cad-stage { display: grid; gap: 0.8rem; min-width: 0; }

.cad-design-wrap,
.cad-sheet {
  background: var(--lift);
  border: 1px solid var(--line);
  overflow: hidden;
  min-width: 0;
}

.cad-design-wrap { padding: 0.55rem 0.55rem 0.2rem; }
.cad-design { min-height: 22rem; background: #f3f0e8; }
.cad-design-svg { width: 100%; height: 22rem; display: block; }
.cad-handle { fill: #307592; stroke: #122d31; stroke-width: 0.15; cursor: grab; }
.cad-handle.on { fill: #122d31; }
.cad-center { fill: none; stroke: #307592; stroke-width: 0.18; stroke-dasharray: 0.6 0.4; }
.cad-gold { fill: #c9a24a; stroke: #122d31; stroke-width: 0.12; }
.cad-gold-pad { fill: #e4c36a; }
.cad-fpc-plain { fill: #d8d2c6; stroke: #122d31; stroke-width: 0.12; }
.cad-k { fill: #215161; }

.cad-sheet { min-height: 22rem; }

.seg-list { display: grid; gap: 0.28rem; font-size: 0.78rem; }
.seg-list label { display: grid; grid-template-columns: 4.2rem 1fr; gap: 0.35rem; align-items: center; }

.cad-svg { width: 100%; height: auto; display: block; background: #f6f4ef; }
.cad-svg text { font-family: Helvetica, "Segoe UI", sans-serif; fill: #122d31; }
.cad-title { font-family: Georgia, "Iowan Old Style", serif; font-size: 13px; letter-spacing: 0.06em; }
.cad-block { font-family: Georgia, "Iowan Old Style", serif; font-size: 20px; }
.cad-note { font-size: 10px; fill: #215161; }
.cad-pin { font-size: 9px; font-variant-numeric: tabular-nums; }
.cad-zone { font-size: 9px; fill: #215161; }
.cad-dim { stroke: #307592; stroke-width: 0.8; fill: none; }
.cad-dimt { font-size: 10px; fill: #215161; }
.cad-line { fill: none; stroke: #122d31; stroke-width: 1.2; }
.cad-frame { fill: #f6f4ef; stroke: #122d31; stroke-width: 1.4; }
.cad-board { fill: #edeae3; stroke: #122d31; stroke-width: 1.2; }
.cad-fpc { fill: url(#fpcHatch); stroke: #122d31; stroke-width: 1; }
.cad-fpc-edge { fill: none; stroke: #122d31; stroke-width: 1; }
.cad-conn { fill: #122d31; stroke: #122d31; }
.cad-barrel { fill: #215161; fill-opacity: 0.22; stroke: #122d31; }
.cad-fill { fill: #122d31; }
.cad-arrow { fill: #122d31; }
.cad-blockbox { fill: #fff; stroke: #122d31; stroke-width: 1.2; }
.cad-pin-tick { stroke: #edeae3; stroke-width: 1; }

.pin-table { font-size: 0.82rem; }
.pin-table input {
  width: 100%;
  padding: 0.2rem 0.35rem;
  border: 1px solid transparent;
  background: transparent;
}
.pin-table input:focus { border-color: var(--accent-1); background: #fff; }
.pin-table tr { cursor: default; }
.pin-table td { white-space: nowrap; }

@media (max-width: 1200px) {
  .cad-work { grid-template-columns: 1fr; }
}

.kv { width: 100%; border-collapse: collapse; font-size: 0.88rem; }

.kv th, .kv td {
  text-align: left;
  padding: 0.42rem 0.15rem 0.42rem 0;
  border-bottom: 1px solid rgba(216, 210, 198, 0.7);
  white-space: normal;
  vertical-align: top;
}

.kv th {
  position: static;
  width: 42%;
  background: none;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent-2);
}

.sim-dock[hidden] { display: none !important; }

.sim-dock {
  position: sticky;
  top: 0.8rem;
  display: grid;
  gap: 0.65rem;
  padding: 1.05rem 1.1rem;
  background: var(--lift);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-height: calc(100vh - 1.6rem);
  overflow: auto;
}

.sim-dock h2 { font-size: 1.15rem; }

.sim-dock > p { margin: 0; line-height: 1.4; color: #2a3328; font-size: 0.88rem; }

.sim-wd {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.sim-wd input { width: 100%; }

.sim-frame {
  background: #122d31;
  border: 1px solid var(--accent-3);
  border-radius: 12px;
  overflow: hidden;
  display: grid;
  place-items: center;
  min-height: 10rem;
  cursor: zoom-in;
}

.sim-frame canvas {
  display: block;
  width: 100%;
  height: auto;
}

.sim-scene-bar {
  display: grid;
  gap: 0.28rem;
}

.sim-scene-bar .ghost { width: 100%; }

.sim-sample { cursor: zoom-in; }

.sim-zoom {
  position: fixed;
  z-index: 80;
  width: max-content;
  max-width: calc(100vw - 1.5rem);
  max-height: calc(100vh - 1.5rem);
  padding: 0.45rem 0.45rem 0.55rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 40px rgba(18, 45, 49, 0.22);
  pointer-events: none;
}

.sim-zoom[hidden] { display: none !important; }

.sim-zoom canvas {
  width: auto;
  height: auto;
  max-width: calc(100vw - 2rem);
  max-height: calc(100vh - 3.2rem);
  display: block;
  border-radius: 6px;
  background: #122d31;
}

.sim-zoom p {
  margin: 0.4rem 0 0;
  font-size: 0.82rem;
  color: var(--accent-2);
}

.sim-nums {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.28rem 0.7rem;
  font-size: 0.78rem;
}

.sim-nums div {
  display: flex;
  justify-content: space-between;
  gap: 0.4rem;
  border-bottom: 1px solid var(--line);
  padding: 0.12rem 0;
}

.sim-nums span { color: var(--accent-2); }
.sim-nums b { font-weight: 600; }

.dof-bar { display: grid; gap: 0.28rem; }

.dof-track {
  position: relative;
  height: 0.7rem;
  background: #d8d2c6;
  border-radius: 999px;
  overflow: hidden;
}

.dof-zone {
  position: absolute;
  top: 0;
  bottom: 0;
  background: #307592;
}

.dof-focus {
  position: absolute;
  top: -3px;
  bottom: -3px;
  width: 2px;
  background: #122d31;
  margin-left: -1px;
}

.dof-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.68rem;
  color: #2a3328;
}

.sim-range-label {
  margin: 0.2rem 0 0;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-2);
}

.sim-range { display: grid; gap: 0.45rem; }

.sim-sweep {
  width: 100%;
  height: auto;
  display: block;
  background: #111;
}

.sim-sweep-axis {
  margin: 0;
  font-size: 0.68rem;
  color: #2a3328;
  line-height: 1.35;
}

.sim-range-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.35rem;
}

.sim-sample { display: grid; gap: 0.2rem; }

.sim-sample.focus canvas { box-shadow: 0 0 0 2px #307592; }
.sim-sample.sharp span { color: var(--ok); }

.sim-sample canvas {
  width: 100%;
  height: auto;
  background: #122d31;
  display: block;
}

.sim-sample span {
  font-size: 0.68rem;
  color: #2a3328;
  line-height: 1.25;
}

.sim-risks { display: grid; gap: 0.28rem; }

.sim-risk {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.3;
  padding: 0.28rem 0.5rem;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
}

.sim-risk.warn { color: var(--warn); border-color: #e0c99a; background: #f8efdf; }
.sim-risk.bad { color: #8a2d2d; border-color: #e0b4b4; background: #f7e6e6; }
.sim-risk.ok { color: var(--ok); }

.app.embed {
  max-width: none;
  padding: 1.1rem 1rem 2rem;
}

.embed-only { display: none; }

.chip-link {
  text-decoration: none;
  color: inherit;
}

#cm-module-configurator {
  padding-top: 2rem !important;
  padding-bottom: 2rem !important;
  --accent-3: #042653;
  --accent-2: #0a5ecd;
  --accent-1: #042653;
  --fg: #212529;
  --bg: #ffffff;
  --lift: #ffffff;
  --line: #e6e6e6;
  --ok: #1e7a3a;
  --warn: #8a5a1b;
  --radius: 8px;
  --radius-sm: 8px;
  --shadow: 0 10px 32px rgba(4, 38, 83, 0.08);
  background: #fff;
  color: #212529;
  font-family: Inter, "Odoo Unicode Support Noto", sans-serif;
}

#cm-module-configurator .app.embed {
  max-width: 1320px;
  margin: 0 auto;
  padding: 1.25rem 1.25rem 2rem;
  gap: 1.1rem;
}

#cm-module-configurator .brand .logo,
#cm-module-configurator .eyebrow {
  display: none;
}

#cm-module-configurator .embed-only {
  display: block;
  max-width: 40rem;
  margin: 0.45rem 0 0;
  color: #5b6570;
  font-size: 1.05rem;
  line-height: 1.5;
}

#cm-module-configurator .how-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
  max-width: 44rem;
  margin: 1rem auto 0;
  padding: 0.85rem 0 0;
  list-style: none;
  text-align: left;
}

#cm-module-configurator .how-strip li {
  margin: 0;
  color: #5b6570;
  font-size: 0.88rem;
  line-height: 1.35;
}

#cm-module-configurator .how-strip b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  margin-right: 0.3rem;
  border-radius: 999px;
  background: #042653;
  color: #fff;
  font-size: 0.75rem;
}

#cm-module-configurator .top {
  gap: 1rem;
  margin-bottom: 1rem;
  text-align: center;
}

#cm-module-configurator .brand {
  justify-items: center;
}

#cm-module-configurator h1,
#cm-module-configurator h2 {
  font-family: "Inter Tight", Inter, "Odoo Unicode Support Noto", sans-serif;
  font-weight: 700;
  color: #212529;
}

#cm-module-configurator h1 {
  font-size: clamp(1.6rem, 2.8vw, 2.15rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

#cm-module-configurator .steps {
  justify-content: center;
  gap: 0;
  width: min(100%, 44rem);
  margin: 0 auto;
}

#cm-module-configurator .steps li {
  flex: 1;
  position: relative;
  min-width: 0;
}

#cm-module-configurator .steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 1.15rem;
  left: calc(50% + 1.6rem);
  right: calc(-50% + 1.6rem);
  height: 2px;
  background: #e6e6e6;
  pointer-events: none;
}

#cm-module-configurator .step {
  width: 100%;
  flex-direction: column;
  gap: 0.45rem;
  border: 0;
  background: transparent;
  padding: 0;
  border-radius: 0;
  color: #5b6570;
  font-size: 0.92rem;
}

#cm-module-configurator .step span {
  width: 2.35rem;
  height: 2.35rem;
  background: rgba(4, 38, 83, 0.1);
  color: #042653;
  font-size: 1rem;
  font-weight: 600;
}

#cm-module-configurator .step.on {
  background: transparent;
  color: #042653;
  border: 0;
  font-weight: 600;
}

#cm-module-configurator .step.on span {
  background: #042653;
  color: #fff;
}

#cm-module-configurator .step:disabled span {
  background: #f0f2f5;
  color: #8a929b;
}

#cm-module-configurator .picked {
  justify-content: center;
}

#cm-module-configurator .chip,
#cm-module-configurator .table-wrap,
#cm-module-configurator .cover,
#cm-module-configurator .ov-card,
#cm-module-configurator .ov-actions,
#cm-module-configurator .sim-dock {
  background: #fff;
  border: 1px solid #e6e6e6;
  box-shadow: var(--shadow);
}

#cm-module-configurator .chip {
  border-radius: 8px;
}

#cm-module-configurator input,
#cm-module-configurator select {
  border: 1px solid rgba(33, 37, 41, 0.15);
  border-radius: 6.4px;
  padding: 0.5rem 0.75rem;
  min-height: 2.5rem;
}

#cm-module-configurator .field span {
  font-family: Inter, sans-serif;
  letter-spacing: 0.02em;
  text-transform: none;
  font-size: 0.88rem;
  font-weight: 600;
  color: #212529;
}

#cm-module-configurator .table-wrap {
  border-radius: 8px;
  max-height: 26rem;
}

#cm-module-configurator th {
  background: #f5f8fc;
  color: #042653;
  font-family: Inter, sans-serif;
  font-size: 0.78rem;
}

#cm-module-configurator td,
#cm-module-configurator th {
  padding: 0.48rem 0.7rem;
}

#cm-module-configurator tr:hover td {
  background: rgba(10, 94, 205, 0.06);
}

#cm-module-configurator tr.sel td {
  background: rgba(4, 38, 83, 0.1);
}

#cm-module-configurator #view-lens td.pin,
#cm-module-configurator #view-lens th.pin {
  background: #fff;
}

#cm-module-configurator #view-lens th.pin {
  background: #f5f8fc;
}

#cm-module-configurator #view-lens tr:hover td.pin {
  background: #f3f7fd;
}

#cm-module-configurator #view-lens tr.sel td.pin {
  background: #e6edf6;
}

#cm-module-configurator .cover {
  border-radius: 8px;
  padding: 1.15rem 1.15rem 1.25rem;
  min-height: 100%;
}

#cm-module-configurator .cover:hover,
#cm-module-configurator .cover.on {
  border-color: #042653;
  box-shadow: 0 0 0 2px rgba(4, 38, 83, 0.2), var(--shadow);
}

#cm-module-configurator .cover img.diagram {
  background: #f5f8fc;
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  max-height: 7rem;
  object-fit: contain;
}

#cm-module-configurator .cover img.example {
  height: 8.25rem;
  background: #042653;
  border-radius: 8px;
}

#cm-module-configurator .tag {
  color: #0a5ecd;
}

#cm-module-configurator .cover p {
  color: #5b6570;
}

#cm-module-configurator .confirm {
  background: #042653;
  border-color: #042653;
  border-radius: 8px;
  min-height: 2.75rem;
  padding: 10px 20px;
  font-size: 1rem;
  font-weight: 400;
}

#cm-module-configurator .confirm:hover:not(:disabled) {
  background: #0a5ecd;
  border-color: #0a5ecd;
}

#cm-module-configurator .ghost {
  background: #fff;
  color: #042653;
  border-color: #042653;
}

#cm-module-configurator .ghost:hover {
  background: rgba(4, 38, 83, 0.06);
  color: #042653;
}

#cm-module-configurator .sim-dock {
  position: static;
  max-height: none;
  overflow: visible;
  border-radius: 8px;
  padding: 0.9rem 1rem;
  gap: 0.5rem;
}

#cm-module-configurator .sim-frame {
  background: #042653;
  border: 1px solid #042653;
  border-radius: 8px;
  min-height: 0;
  cursor: zoom-in;
}

#cm-module-configurator .sim-frame canvas {
  max-height: 16rem;
  object-fit: contain;
}

#cm-module-configurator .app[data-step="sensor"] .sim-range,
#cm-module-configurator .app[data-step="sensor"] .sim-range-label,
#cm-module-configurator .app[data-step="sensor"] .dof-bar,
#cm-module-configurator .app[data-step="coverage"] .sim-range,
#cm-module-configurator .app[data-step="coverage"] .sim-range-label {
  display: none;
}

#cm-module-configurator .dof-track { background: #e6e6e6; }
#cm-module-configurator .dof-zone { background: #0a5ecd; }
#cm-module-configurator .dof-focus { background: #042653; }
#cm-module-configurator .sim-sample.focus canvas { box-shadow: 0 0 0 2px #0a5ecd; }
#cm-module-configurator .sim-sample canvas { background: #042653; }
#cm-module-configurator .sim-zoom {
  background: #fff;
  border-color: #e6e6e6;
  box-shadow: 0 24px 64px rgba(4, 38, 83, 0.28);
}
#cm-module-configurator .sim-zoom canvas { background: #042653; }

#cm-module-configurator .statusline {
  color: #5b6570;
}

#cm-module-configurator .ov-change {
  color: #0a5ecd;
}

@media (max-width: 800px) {
  #cm-module-configurator #view-sensor th:nth-child(n+5),
  #cm-module-configurator #view-sensor td:nth-child(n+5),
  #cm-module-configurator #view-lens th:nth-child(5),
  #cm-module-configurator #view-lens td:nth-child(5),
  #cm-module-configurator #view-lens th:nth-child(6),
  #cm-module-configurator #view-lens td:nth-child(6),
  #cm-module-configurator #view-lens th:nth-child(n+8):not(:nth-child(13)),
  #cm-module-configurator #view-lens td:nth-child(n+8):not(:nth-child(13)) {
    display: none;
  }
}

@media (max-width: 720px) {
  #cm-module-configurator .steps li:not(:last-child)::after { display: none; }
  #cm-module-configurator .step { font-size: 0.78rem; }
  #cm-module-configurator .cover-grid { grid-template-columns: 1fr; }
  #cm-module-configurator .how-strip { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1100px) {
  .app { grid-template-columns: 1fr; }
  .sim-dock { position: relative; max-height: none; }
  .overview-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .app h1 { font-size: 1.4rem; }
  .logo { height: 40px; }
  .cover img.example { height: 8.5rem; }
  .sim-range-grid { grid-template-columns: repeat(2, 1fr); }
  .overview-grid { grid-template-columns: 1fr; }
}
