/* Control systems: product intelligence catalog, detail, compare, solution configurator + result.
   Uses only design tokens; dark surfaces by default. */

/* ---------- Device illustration ---------- */
.lc-device-art { width: 100%; height: 100%; display: block; }
.lc-cs-card__media .lc-device-art { padding: var(--lc-space-3); }
.lc-device-art--thumb { width: 7.5rem; height: auto; }
.lc-device-art--hero { padding: var(--lc-space-6); }

/* ---------- Official product photo (hosted locally) ----------
   The image is sized by its own pixels and only capped by the frame (auto size + max-*), so a small photo is
   centred and never upscaled, and a tall one is contained. */
.lc-media-frame:has(> .lc-device-photo) { background: var(--lc-paper-0); }
.lc-media-frame:has(> .lc-device-photo)::before { content: none; }
.lc-media-frame > .lc-device-photo {
  --lc-photo-pad: var(--lc-space-3);
  position: absolute;
  inset: var(--lc-photo-pad);
  margin: auto;
  width: auto;
  height: auto;
  max-width: calc(100% - 2 * var(--lc-photo-pad));
  max-height: calc(100% - 2 * var(--lc-photo-pad));
}
.lc-media-frame > .lc-device-photo--hero {
  --lc-photo-pad: var(--lc-space-6);
  inset-block-end: var(--lc-space-8);
  max-height: calc(100% - var(--lc-space-6) - var(--lc-space-8));
}
.lc-device-photo--thumb {
  width: 7.5rem;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  background: var(--lc-paper-0);
  border-radius: var(--lc-radius-sm);
}
.lc-cs-hero__media-note--photo { color: var(--lc-graphite-500); }

/* ---------- Ports view (second official picture: rear panel / interfaces) ----------
   Never upscaled either: its own pixels, capped by the container. */
.lc-device-ports { display: block; width: auto; height: auto; max-width: 100%; }

/* Detail page: a figure under the device photo. */
.lc-cs-hero__visuals { display: grid; gap: var(--lc-space-4); align-content: start; min-width: 0; }
.lc-cs-ports-view { margin: 0; display: grid; gap: var(--lc-space-2); }
.lc-cs-ports-view__title { font-size: var(--lc-text-sm); font-weight: 600; color: var(--lc-text); }
.lc-cs-ports-view__frame {
  display: grid;
  place-items: center;
  padding: var(--lc-space-4);
  border: 1px solid var(--lc-border);
  border-radius: var(--lc-radius-sm);
  background: var(--lc-paper-0);
  cursor: zoom-in;
}
.lc-cs-ports-view__frame:hover { border-color: var(--lc-border-strong); }
.lc-cs-ports-view__frame .lc-device-ports { max-height: 24rem; }
.lc-cs-ports-view__note { margin: 0; font-size: var(--lc-text-2xs); color: var(--lc-text-subtle); }

/* Catalog card: the device photo stays first; a CSS-only switch shows the ports view in the same frame. */
.lc-cs-card__visual { position: relative; }
.lc-media-frame > .lc-device-ports {
  position: absolute;
  inset: var(--lc-space-3);
  margin: auto;
  display: none;
  width: auto;
  height: auto;
  max-width: calc(100% - 2 * var(--lc-space-3));
  max-height: calc(100% - 2 * var(--lc-space-3));
}
.lc-cs-card__visual:has(.lc-cs-ports-toggle input:checked) .lc-device-ports { display: block; }
.lc-cs-card__visual:has(.lc-cs-ports-toggle input:checked) .lc-device-photo { visibility: hidden; }
.lc-cs-ports-toggle {
  position: absolute;
  inset: auto var(--lc-space-2) var(--lc-space-2) auto;
  z-index: 2; /* above the whole-card link */
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--lc-graphite-900) 88%, transparent);
  color: var(--lc-paper-0);
  font-size: var(--lc-text-2xs);
  line-height: 1.4;
  cursor: pointer;
}
.lc-cs-ports-toggle:hover { background: var(--lc-graphite-900); }
.lc-cs-ports-toggle:has(input:focus-visible) { box-shadow: var(--lc-focus-ring); }
.lc-cs-ports-toggle__hide,
.lc-cs-ports-toggle:has(input:checked) .lc-cs-ports-toggle__show { display: none; }
.lc-cs-ports-toggle:has(input:checked) .lc-cs-ports-toggle__hide { display: inline; }

/* ---------- Intro ---------- */
.lc-cs-intro__grid { display: grid; gap: var(--lc-space-8); align-items: end; }
@media (min-width: 1024px) { .lc-cs-intro__grid { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); } }
.lc-cs-intro__cta { display: grid; gap: var(--lc-space-3); align-content: start; }

/* ---------- Manufacturer navigation ---------- */
.lc-cs-makers { border-bottom: 1px solid var(--lc-border); background: var(--lc-surface-sunken); }
.lc-cs-makers__row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(11rem, 1fr);
  gap: var(--lc-space-2);
  padding-block: var(--lc-space-3);
  overflow-x: auto;
  scrollbar-width: thin;
}
.lc-cs-maker {
  --cs-tone: var(--lc-accent);
  position: relative;
  display: grid;
  gap: 2px;
  padding: var(--lc-space-3) var(--lc-space-4);
  border: 1px solid var(--lc-border);
  border-radius: var(--lc-radius-md);
  color: var(--lc-text);
  text-decoration: none;
  background: var(--lc-surface-raised);
  transition: border-color var(--lc-dur) var(--lc-ease), transform var(--lc-dur) var(--lc-ease);
}
.lc-cs-maker::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  border-radius: var(--lc-radius-md) 0 0 var(--lc-radius-md);
  background: var(--cs-tone);
  opacity: 0.85;
}
.lc-cs-maker:hover { border-color: var(--lc-border-strong); transform: translateY(-1px); }
.lc-cs-maker[aria-current="true"] { border-color: var(--cs-tone); box-shadow: inset 0 0 0 1px var(--cs-tone); }
.lc-cs-maker__name { font-weight: var(--lc-weight-semibold); }
.lc-cs-maker__count { font-family: var(--lc-font-mono); font-size: var(--lc-text-2xs); color: var(--lc-text-subtle); letter-spacing: 0.04em; }

/* ---------- Cards ---------- */
.lc-cs-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 15.5rem), 1fr)); }
.lc-cs-card__maker {
  --cs-tone: var(--lc-accent);
  font-family: var(--lc-font-mono);
  font-size: var(--lc-text-2xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lc-text-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.lc-cs-card__maker::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--cs-tone); }
.lc-cs-card__category { margin: 0; font-size: var(--lc-text-sm); color: var(--lc-text-muted); }
.lc-cs-card__unverified { margin: 0; font-size: var(--lc-text-sm); color: var(--lc-text-subtle); display: inline-flex; gap: 6px; align-items: center; }
.lc-cs-card--legacy .lc-cs-card__media { filter: grayscale(0.7); opacity: 0.8; }

/* Receiving-card type row under the category tabs */
.lc-cs-cardtypes { margin-top: var(--lc-space-3); align-items: center; }
.lc-cs-cardtypes__label {
  flex: none;
  font-family: var(--lc-font-mono);
  font-size: var(--lc-text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lc-text-subtle);
}
.lc-cs-card .lc-product-card__footer { justify-content: flex-end; }
.lc-cs-verify {
  font-family: var(--lc-font-mono);
  font-size: var(--lc-text-2xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--lc-text-subtle);
}
.lc-cs-verify--ok { color: var(--lc-ok-text); }
.lc-cs-verify--accent { color: var(--lc-accent-text); }
.lc-cs-verify--warn { color: var(--lc-warn-text); }

.lc-cs-compare-toggle {
  position: relative;
  z-index: 2;
  display: none;
  align-items: center;
  gap: 6px;
  font-size: var(--lc-text-xs);
  color: var(--lc-text-muted);
  cursor: pointer;
}
.js .lc-cs-compare-toggle { display: inline-flex; }
.lc-cs-compare-toggle input { accent-color: var(--lc-accent); width: 1rem; height: 1rem; }

/* ---------- Compare tray ---------- */
.lc-cs-tray {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 30;
  border-top: 1px solid var(--lc-border-strong);
  background: color-mix(in srgb, var(--lc-surface-overlay) 94%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transform: translateY(0);
  transition: transform var(--lc-dur) var(--lc-ease-out);
}
.lc-cs-tray[hidden] { display: block !important; transform: translateY(110%); pointer-events: none; } /* stays laid out to slide away (base.css [hidden]) */
.lc-cs-tray__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--lc-space-3); padding-block: var(--lc-space-3); }
.lc-cs-tray__text { margin: 0; font-size: var(--lc-text-sm); min-width: 0; }

.lc-cs-provenance {
  display: flex;
  flex-wrap: wrap;
  gap: var(--lc-space-2) var(--lc-space-4);
  align-items: center;
  margin-top: var(--lc-space-10);
  padding-top: var(--lc-space-4);
  border-top: 1px solid var(--lc-border);
  font-size: var(--lc-text-xs);
  color: var(--lc-text-subtle);
}

/* ---------- Detail ---------- */
.lc-cs-hero { padding-block: var(--lc-space-8) var(--lc-space-12); border-bottom: 1px solid var(--lc-border); }
/* Columns are minmax(0, …) so a long badge or an unbreakable token in the text cannot widen the page on a phone. */
.lc-cs-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--lc-space-8); margin-top: var(--lc-space-6); align-items: start; }
@media (min-width: 1024px) { .lc-cs-hero__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: var(--lc-space-12); } }
.lc-cs-hero__media { box-shadow: var(--lc-shadow-lg); }
.lc-cs-hero__media-note {
  position: absolute;
  inset: auto var(--lc-space-3) var(--lc-space-3) var(--lc-space-3);
  margin: 0;
  font-size: var(--lc-text-2xs);
  color: var(--lc-text-subtle);
}
.lc-cs-hero__info { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--lc-space-4); overflow-wrap: break-word; }
.lc-cs-hero__info .lc-eyebrow::before { background: var(--cs-tone, var(--lc-accent)); }
.lc-cs-badges { display: flex; flex-wrap: wrap; gap: var(--lc-space-2); align-items: center; }
.lc-cs-badges .lc-badge { white-space: normal; }
.lc-cs-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr)); gap: var(--lc-space-2); margin: 0; }
.lc-cs-kpis > div { padding: var(--lc-space-3) var(--lc-space-4); border: 1px solid var(--lc-border); border-radius: var(--lc-radius-sm); background: var(--lc-surface-raised); }
.lc-cs-kpis dt { font-size: var(--lc-text-xs); color: var(--lc-text-subtle); }
.lc-cs-kpis dd { margin: 0; font-family: var(--lc-font-mono); font-size: var(--lc-text-lg); }
.lc-cs-links { display: flex; flex-wrap: wrap; gap: var(--lc-space-4); margin: 0; padding: 0; list-style: none; font-size: var(--lc-text-sm); }

.lc-cs-detail { display: grid; gap: var(--lc-space-6); padding-block: var(--lc-space-10) var(--lc-section-y-compact); }
@media (min-width: 1024px) { .lc-cs-detail { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Same rule as the hero: a minmax(0, …) column plus overflow-wrap, so an unbreakable token in panel text (a slash-joined
   protocol list, a packing-size string) breaks instead of widening the panel on a 320 px phone. The list grids inside a
   panel need the same column, otherwise their own auto track keeps the token's full width. */
.lc-cs-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--lc-space-4);
  align-content: start;
  padding: clamp(1.25rem, 1rem + 1vw, 2rem);
  border: 1px solid var(--lc-border);
  border-radius: var(--lc-radius-lg);
  background: var(--lc-surface-raised);
  min-width: 0;
  overflow-wrap: break-word;
}
.lc-cs-panel--wide { grid-column: 1 / -1; }
.lc-cs-features { margin: 0; padding-left: 1.1rem; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--lc-space-2); color: var(--lc-text-muted); }
.lc-cs-spec-groups { display: grid; gap: var(--lc-space-6) var(--lc-space-10); }
@media (min-width: 768px) { .lc-cs-spec-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.lc-cs-spec-group__title { margin: 0 0 var(--lc-space-2); font-family: var(--lc-font-mono); font-size: var(--lc-text-xs); letter-spacing: var(--lc-tracking-caps); text-transform: uppercase; color: var(--lc-accent-text); }
.lc-cs-spec-groups .lc-spec-list dd { font-family: var(--lc-font-sans); }
.lc-cs-supported { margin: 0; padding: 0; list-style: none; }
.lc-cs-supported li {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.3rem 0.65rem;
  border: 1px solid var(--lc-border);
  border-radius: var(--lc-radius-xs);
  font-size: var(--lc-text-sm);
  color: var(--lc-text);
}
.lc-cs-supported .lc-icon { color: var(--lc-ok-text); }
.lc-cs-sources { margin: 0; padding-left: 1.25rem; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--lc-space-3); font-size: var(--lc-text-sm); }
.lc-cs-sources a { overflow-wrap: anywhere; }
.lc-cs-sources__meta { display: block; color: var(--lc-text-subtle); font-size: var(--lc-text-xs); }

.lc-cs-rect { display: grid; place-items: center; padding: var(--lc-space-6); border-radius: var(--lc-radius-md); background: var(--lc-surface-sunken); }
.lc-cs-rect__box {
  width: min(100%, 16rem);
  max-height: 14rem;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--lc-accent);
  border-radius: var(--lc-radius-xs);
  background-image: radial-gradient(circle at center, color-mix(in srgb, var(--lc-accent) 45%, transparent) 1px, transparent 1.6px);
  background-size: 9px 9px;
  font-family: var(--lc-font-mono);
  font-size: var(--lc-text-sm);
}
.lc-cs-rect__box span { padding: 2px 8px; border-radius: var(--lc-radius-xs); background: var(--lc-surface-raised); }

.lc-cs-ports { display: flex; flex-wrap: wrap; gap: 6px; padding: var(--lc-space-4); border-radius: var(--lc-radius-md); background: var(--lc-surface-sunken); }
.lc-cs-port {
  width: 2rem; height: 1.6rem;
  display: grid; place-items: center;
  border: 1px solid var(--lc-border-strong);
  border-radius: 3px;
  font-family: var(--lc-font-mono);
  font-size: var(--lc-text-2xs);
  color: var(--lc-text-muted);
  background: linear-gradient(var(--lc-graphite-990), var(--lc-graphite-900));
  box-shadow: inset 0 -3px 0 color-mix(in srgb, var(--lc-accent) 60%, transparent);
}

/* ---------- Compare ---------- */
.lc-cs-compare { display: grid; gap: var(--lc-space-6); padding-block: var(--lc-space-8) var(--lc-section-y-compact); }
.lc-cs-compare__add { display: grid; gap: var(--lc-space-2); max-width: 32rem; }
.lc-cs-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--lc-border);
  border-radius: var(--lc-radius-lg);
  background: var(--lc-surface-raised);
  scrollbar-width: thin;
}
.lc-cs-table { width: 100%; border-collapse: collapse; font-size: var(--lc-text-sm); min-width: 36rem; }
.lc-cs-table th, .lc-cs-table td { padding: var(--lc-space-3) var(--lc-space-4); border-bottom: 1px solid var(--lc-border); text-align: left; vertical-align: top; }
.lc-cs-table tbody th { color: var(--lc-text-muted); font-weight: var(--lc-weight-regular); white-space: nowrap; }
.lc-cs-table td { font-family: var(--lc-font-mono); }
.lc-cs-table thead th, .lc-cs-table tbody th:first-child {
  position: sticky;
  left: 0;
  background: var(--lc-surface-raised);
  z-index: 1;
}
.lc-cs-table thead th { position: static; vertical-align: bottom; }
.lc-cs-table thead .lc-cs-table__corner { position: sticky; left: 0; z-index: 2; }
.lc-cs-table__head { display: grid; gap: 4px; justify-items: start; min-width: 9rem; }
.lc-cs-table__model { font-weight: var(--lc-weight-semibold); font-size: var(--lc-text-lg); color: var(--lc-text); text-decoration: none; }
.lc-cs-table__group th {
  font-family: var(--lc-font-mono);
  font-size: var(--lc-text-2xs);
  letter-spacing: var(--lc-tracking-caps);
  text-transform: uppercase;
  color: var(--lc-accent-text) !important;
  background: var(--lc-surface-sunken) !important;
}
.lc-cs-table .is-different td { background: color-mix(in srgb, var(--lc-accent) 6%, transparent); }
.lc-cs-table td.is-best { color: var(--lc-ok-text); font-weight: var(--lc-weight-semibold); }
.lc-cs-table td.is-best::after { content: " ▲"; font-size: 0.75em; }
.lc-cs-table td.is-unknown { color: var(--lc-text-subtle); }

/* ---------- Configurator ---------- */
.lc-cs-cfg { padding-block: var(--lc-space-8) var(--lc-section-y-compact); display: grid; gap: var(--lc-space-6); }
.lc-cs-cfg__alert ul { margin: var(--lc-space-2) 0; padding-left: 1.1rem; }
.lc-cs-form__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--lc-space-5); counter-reset: none; }
.lc-cs-step {
  display: grid;
  gap: var(--lc-space-5);
  padding: clamp(1.25rem, 1rem + 1.2vw, 2.25rem);
  border: 1px solid var(--lc-border);
  border-radius: var(--lc-radius-lg);
  background: var(--lc-surface-raised);
}
.lc-cs-step__head { display: flex; gap: var(--lc-space-4); align-items: flex-start; }
.lc-cs-step__head h2 { margin: 0; }
.lc-cs-step__head p { margin: var(--lc-space-1) 0 0; }
.lc-cs-step__n {
  flex: none;
  width: 2.25rem; height: 2.25rem;
  display: grid; place-items: center;
  border-radius: var(--lc-radius-sm);
  font-family: var(--lc-font-mono);
  color: var(--lc-on-accent);
  background: var(--lc-accent);
}
.lc-cs-segment { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; border: 0; }
.lc-cs-segment label { position: relative; }
.lc-cs-segment input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.lc-cs-segment span {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0 var(--lc-space-4);
  border: 1px solid var(--lc-border-strong);
  border-radius: var(--lc-radius-pill);
  font-size: var(--lc-text-sm);
  color: var(--lc-text-muted);
  transition: background var(--lc-dur-fast) var(--lc-ease), color var(--lc-dur-fast) var(--lc-ease), border-color var(--lc-dur-fast) var(--lc-ease);
}
.lc-cs-segment input:checked + span { color: var(--lc-on-accent); background: var(--lc-accent); border-color: var(--lc-accent); }
.lc-cs-segment input:focus-visible + span { box-shadow: var(--lc-focus-ring); }
/* The same segments as links (a choice kept in the URL): the current one is marked with aria-current. */
.lc-cs-segment a { display: inline-flex; text-decoration: none; border-radius: var(--lc-radius-pill); }
.lc-cs-segment a:hover span { color: var(--lc-text); border-color: var(--lc-accent); }
.lc-cs-segment a[aria-current="true"] span { color: var(--lc-on-accent); background: var(--lc-accent); border-color: var(--lc-accent); }
.lc-cs-segment a:focus-visible { outline: none; }
.lc-cs-segment a:focus-visible span { box-shadow: var(--lc-focus-ring); }
.lc-cs-segment--sm span { min-height: 2.125rem; padding: 0 var(--lc-space-3); font-size: var(--lc-text-xs); }
.lc-cs-grid2, .lc-cs-grid4 { display: grid; gap: var(--lc-space-4); }
@media (min-width: 640px) { .lc-cs-grid2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .lc-cs-grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .lc-cs-grid4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.lc-cs-unit { display: grid; gap: var(--lc-space-4); padding: var(--lc-space-5); border: 1px dashed var(--lc-border-strong); border-radius: var(--lc-radius-md); }
.lc-cs-unit__head h3 { margin: 0; }
.lc-cs-unit__head p { margin: var(--lc-space-1) 0 0; }
.lc-cs-presets { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.lc-cs-presets .lc-chip { cursor: pointer; }
.lc-cs-options { display: grid; gap: var(--lc-space-3); }
@media (min-width: 768px) { .lc-cs-options { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.lc-field.is-missing .lc-input { border-color: var(--lc-warn-500); box-shadow: 0 0 0 1px var(--lc-warn-500); }
.lc-field.is-missing .lc-label::after { content: " · gerekli"; color: var(--lc-warn-text); font-weight: var(--lc-weight-regular); font-size: var(--lc-text-xs); }
.js [data-modes].is-mode-hidden, .js [data-units].is-unit-hidden, .js [data-needs].is-need-hidden, .js [data-sizes].is-size-hidden { display: none !important; }
.lc-cs-panel-size { grid-column: 1 / -1; margin: 0; display: flex; flex-wrap: wrap; gap: var(--lc-space-1) var(--lc-space-3); }
.lc-cs-panel-size strong { color: var(--lc-text); }
.lc-cs-form__submit { display: flex; flex-wrap: wrap; gap: var(--lc-space-4); align-items: center; margin-top: var(--lc-space-6); }
.lc-cs-form__submit p { margin: 0; max-width: 36rem; }
.lc-cs-advanced summary { font-size: var(--lc-text-sm); }
/* Receiving card of the chosen manufacturer (owner, 2026-10-14). */
.lc-cs-card-choice { margin-top: var(--lc-space-5); }
.lc-cs-card-choice[hidden], .lc-cs-card-choice label[hidden] { display: none; }
.lc-cs-card-choice p { margin: var(--lc-space-2) 0 0; }

/* ---------- Result ---------- */
.lc-cs-result { display: grid; gap: var(--lc-space-12); padding-block: var(--lc-space-10) var(--lc-section-y-compact); }
.lc-cs-status { margin-block: var(--lc-space-4); max-width: 60rem; }
.lc-cs-section { display: grid; gap: var(--lc-space-5); min-width: 0; }
.lc-cs-section > .lc-h2 { margin: 0; }
.lc-cs-tiles { display: grid; gap: var(--lc-space-3); grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr)); }
.lc-cs-tile {
  display: grid;
  gap: 4px;
  align-content: start;
  padding: var(--lc-space-4) var(--lc-space-5);
  border: 1px solid var(--lc-border);
  border-radius: var(--lc-radius-md);
  background: var(--lc-surface-raised);
}
.lc-cs-tile--accent { border-color: color-mix(in srgb, var(--lc-accent) 55%, transparent); background: linear-gradient(160deg, color-mix(in srgb, var(--lc-accent) 14%, var(--lc-surface-raised)), var(--lc-surface-raised) 70%); }
.lc-cs-tile__label { font-size: var(--lc-text-xs); color: var(--lc-text-subtle); font-family: var(--lc-font-mono); text-transform: uppercase; letter-spacing: 0.08em; }
.lc-cs-tile__value { font-size: var(--lc-text-xl); font-weight: var(--lc-weight-semibold); font-variant-numeric: tabular-nums; }
.lc-cs-tile__delta { font-size: var(--lc-text-xs); color: var(--lc-text-muted); font-family: var(--lc-font-mono); }
.lc-cs-notes { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--lc-space-2); font-size: var(--lc-text-sm); }
.lc-cs-notes li { display: flex; gap: var(--lc-space-2); align-items: flex-start; color: var(--lc-text-muted); }
.lc-cs-notes li.is-warning { color: var(--lc-warn-text); }
.lc-cs-notes li.is-error { color: var(--lc-danger-text); }
.lc-cs-notes .lc-icon { flex: none; margin-top: 2px; }
.lc-cs-alt-grid, .lc-cs-alts { display: grid; gap: var(--lc-space-3); grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); }
.lc-cs-alt { display: grid; gap: 4px; text-decoration: none; color: var(--lc-text); }
.lc-cs-altcard--eco { border-left: 3px solid var(--cs-tone); }

.lc-cs-picks { display: grid; gap: var(--lc-space-4); }
@media (min-width: 1024px) { .lc-cs-picks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.lc-cs-pick {
  display: grid;
  gap: var(--lc-space-4);
  padding: var(--lc-space-5);
  border: 1px solid var(--lc-border);
  border-radius: var(--lc-radius-lg);
  background: var(--lc-surface-raised);
  align-content: start;
}
@media (min-width: 640px) { .lc-cs-pick { grid-template-columns: 11rem minmax(0, 1fr); } }
.lc-cs-pick__media { align-self: start; }
.lc-cs-pick__body { display: grid; gap: var(--lc-space-2); min-width: 0; }
.lc-cs-pick__title { margin: 0; font-size: var(--lc-text-xl); }
.lc-cs-pick__title a { color: var(--lc-text); text-decoration: none; }
.lc-cs-pick__title a:hover { color: var(--lc-accent-text); }
.lc-cs-pick__meta { margin: 0; font-size: var(--lc-text-sm); color: var(--lc-text-muted); }
.lc-cs-pick__why { margin: var(--lc-space-2) 0 0; font-size: var(--lc-text-sm); color: var(--lc-accent-text); font-family: var(--lc-font-mono); text-transform: uppercase; letter-spacing: 0.08em; }
.lc-cs-qty { font-family: var(--lc-font-mono); color: var(--lc-accent-text); font-size: 0.8em; }
.lc-cs-reasons { font-size: var(--lc-text-sm); }
/* The recommended card and controller: one paragraph of calculated figures instead of the check list. */
.lc-cs-pick__summary { margin: 0; font-size: var(--lc-text-sm); line-height: 1.6; color: var(--lc-text-muted); }
.lc-cs-warnings { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--lc-space-1); font-size: var(--lc-text-xs); }
.lc-cs-warnings li { display: flex; gap: 6px; align-items: flex-start; color: var(--lc-text-muted); }
.lc-cs-warnings li.is-warn { color: var(--lc-warn-text); }

/* What to buy, as a short list above the cards (".lc-cs-buy" is the cart block of the detail page). */
.lc-cs-need { display: grid; gap: var(--lc-space-2); margin-bottom: var(--lc-space-4); padding: var(--lc-space-4) var(--lc-space-6); border-left: 3px solid var(--lc-accent); border-radius: var(--lc-radius-md); background: var(--lc-surface-raised); }
.lc-cs-need p { margin: 0; }
.lc-cs-need__list { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--lc-space-1); }
.lc-cs-need__list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 var(--lc-space-2); }
.lc-cs-need__qty { min-width: 5.5rem; font-family: var(--lc-font-mono); color: var(--lc-accent-text); }
.lc-cs-need__name { font-weight: 600; }
.lc-cs-need__detail { color: var(--lc-text-subtle); font-size: var(--lc-text-sm); }

/* A device that can be used instead of the recommended one — set apart, and without a quantity: it is not bought as well. */
.lc-cs-instead { display: grid; gap: var(--lc-space-4); margin-top: var(--lc-space-8); padding: var(--lc-space-6); border: 1px dashed var(--lc-border-strong); border-radius: var(--lc-radius-lg); }
.lc-cs-instead__head { display: grid; gap: var(--lc-space-2); }
.lc-cs-instead__head p { margin: 0; }
.lc-cs-instead .lc-cs-qty { display: none; }

.lc-cs-bars { display: grid; gap: var(--lc-space-4); }
@media (min-width: 1024px) { .lc-cs-bars { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.lc-cs-bar { display: grid; gap: var(--lc-space-2); padding: var(--lc-space-4); border: 1px solid var(--lc-border); border-radius: var(--lc-radius-md); background: var(--lc-surface-raised); }
.lc-cs-bar__labels, .lc-cs-bar__legend { display: flex; justify-content: space-between; gap: var(--lc-space-3); font-size: var(--lc-text-sm); }
.lc-cs-bar__legend { font-size: var(--lc-text-xs); color: var(--lc-text-subtle); font-family: var(--lc-font-mono); }
.lc-cs-bar__track { position: relative; height: 0.75rem; border-radius: var(--lc-radius-pill); background: var(--lc-surface-sunken); overflow: hidden; }
.lc-cs-bar__fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--fill);
  border-radius: inherit;
  background: linear-gradient(90deg, color-mix(in srgb, var(--bar) 60%, transparent), var(--bar));
  transform-origin: left;
  animation: lc-cs-grow var(--lc-dur-reveal) var(--lc-ease-out) both;
}
.lc-cs-bar__mark { position: absolute; top: -2px; bottom: -2px; left: 85%; width: 2px; background: var(--lc-text-subtle); opacity: 0.6; }
.lc-cs-bar--ok { --bar: var(--lc-ok-500); }
.lc-cs-bar--warn { --bar: var(--lc-warn-500); }
.lc-cs-bar--danger { --bar: var(--lc-danger-500); }
.lc-cs-bar__note { margin: 0; font-size: var(--lc-text-xs); color: var(--lc-text-muted); }
@keyframes lc-cs-grow { from { transform: scaleX(0); } }
@media (prefers-reduced-motion: reduce) { .lc-cs-bar__fill { animation: none; } }

.lc-cs-why { display: grid; gap: var(--lc-space-3); max-width: 62rem; font-size: var(--lc-text-md); line-height: var(--lc-leading-normal); }
.lc-cs-why p { margin: 0; }
/* CNC cabinet plan (engine 1.7.0): the size words under a cabinet size, the "why" block, the cabinet-by-cabinet list. */
.lc-cs-size-words { display: block; margin-top: 2px; font-size: var(--lc-text-xs); font-weight: var(--lc-weight-regular); color: var(--lc-text-muted); }
[data-cnc-why] { margin: var(--lc-space-5) 0; }
[data-cnc-why] h3 { margin: 0; }
/* A grid item of the section: without min-width 0 its table would widen the page on a phone instead of scrolling. */
.lc-cs-cnc-cabinets { margin: var(--lc-space-4) 0; min-width: 0; }
.lc-cs-cnc-cabinets > summary { cursor: pointer; font-weight: var(--lc-weight-semibold); margin-bottom: var(--lc-space-3); }
.lc-cs-need__name[href] { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.lc-cs-table--ports td:first-child { white-space: nowrap; }
.lc-cs-port-dot { display: inline-block; width: 0.7rem; height: 0.7rem; border-radius: 2px; background: var(--port); margin-right: 6px; vertical-align: -1px; }
.lc-cs-mini-bar { display: inline-block; width: 4rem; height: 0.4rem; border-radius: var(--lc-radius-pill); background: linear-gradient(90deg, var(--port) var(--fill), var(--lc-surface-sunken) var(--fill)); vertical-align: middle; margin-right: 6px; }
.lc-cs-rejected { margin: 0; padding-left: 1.1rem; display: grid; gap: var(--lc-space-2); font-size: var(--lc-text-sm); color: var(--lc-text-muted); }
.lc-cs-disclaimer { display: flex; gap: var(--lc-space-2); align-items: flex-start; margin: 0; font-size: var(--lc-text-xs); color: var(--lc-text-subtle); max-width: 70rem; }
.lc-cs-disclaimer .lc-icon { flex: none; margin-top: 2px; color: var(--lc-warn-text); }

/* ---------- Cart entry on cards and on the detail page ---------- */
.lc-cs-card .lc-product-card__footer { flex-wrap: wrap; }
.lc-cs-card__price { margin-right: auto; font-size: var(--lc-text-xs); color: var(--lc-text-subtle); }
.lc-cs-buy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--lc-space-3) var(--lc-space-4);
  padding-top: var(--lc-space-4);
  border-top: 1px solid var(--lc-border);
}
.lc-cs-buy__note { margin: 0; flex: 1 1 14rem; font-size: var(--lc-text-sm); color: var(--lc-text-muted); }

/* Cabinet purchase block of the solution result: one card per cabinet size with its drawing. */
.lc-cab-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: var(--lc-space-4); }
.lc-cab-card { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--lc-space-3); padding: var(--lc-space-4); min-width: 0; }
.lc-cab-card__art { border-radius: var(--lc-radius-md); background: var(--lc-surface-sunken); padding: var(--lc-space-2); }
.lc-cab-art { display: block; width: 100%; height: auto; }
.lc-cab-art text { font-family: var(--lc-font-mono); font-size: 9.5px; fill: var(--lc-text-muted); }
.lc-cab-card__body { display: grid; gap: var(--lc-space-1); min-width: 0; }
.lc-cab-card__qty { margin: 0; font-family: var(--lc-font-mono); font-size: var(--lc-text-lg); color: var(--lc-accent-text); }
.lc-cab-card__facts { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; font-size: var(--lc-text-sm); color: var(--lc-text-muted); }
.lc-cab-buy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--lc-space-4);
  margin-top: var(--lc-space-4);
  padding: var(--lc-space-4) var(--lc-space-6);
  border-left: 3px solid var(--lc-accent);
  border-radius: var(--lc-radius-md);
  background: var(--lc-surface-raised);
}
.lc-cab-buy__text { display: grid; gap: var(--lc-space-1); flex: 1 1 18rem; min-width: 0; }
.lc-cab-buy__text p { margin: 0; }

/* =========================================================== STORE THEME (commerce-first UI) */
/* On light store pages the control-system card reads like the LED product card: maker, model, the values to
   compare, the price state and one full-width cart button. Device photos sit on the same neutral plate. */
.lc-theme-store .lc-cs-card .lc-media-frame:has(> .lc-device-photo),
.lc-theme-store .lc-cs-card .lc-media-frame { background: var(--lc-store-media); }
.lc-theme-store .lc-cs-card .lc-device-photo { mix-blend-mode: multiply; }
.lc-theme-store .lc-cs-card__maker { font-family: var(--lc-font-sans); font-size: var(--lc-text-xs); font-weight: var(--lc-weight-semibold); letter-spacing: 0.02em; text-transform: none; color: var(--lc-text); }
.lc-theme-store .lc-cs-card__category { font-size: var(--lc-text-xs); color: var(--lc-text-subtle); }
.lc-theme-store .lc-cs-card .lc-product-card__footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--lc-space-3); }
.lc-theme-store .lc-cs-card__price { margin-right: auto; font-size: var(--lc-text-sm); font-weight: var(--lc-weight-semibold); color: var(--lc-text); }
.lc-theme-store .lc-cs-card .lc-add-to-cart--compact { flex: 1 0 100%; }

.lc-theme-store .lc-cs-port { color: var(--lc-graphite-200); }
.lc-cs-buy--panel {
  display: grid;
  gap: var(--lc-space-4);
  padding: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  border: 1px solid var(--lc-border);
  border-radius: var(--lc-radius-lg);
  background: var(--lc-surface-raised);
}
.lc-cs-buy--panel .lc-cs-buy__note { margin: 0; font-size: var(--lc-text-xs); color: var(--lc-text-muted); }
.lc-cs-buy--panel .lc-add-to-cart { flex-wrap: nowrap; }
.lc-theme-store .lc-cs-buy--panel { border-color: var(--lc-store-line); border-radius: var(--lc-radius-xl); box-shadow: var(--lc-shadow-card); }
.lc-theme-store .lc-cs-buy--panel .lc-price__quote { font-size: var(--lc-text-xl); }
.lc-theme-store .lc-cs-kpis dd { font-family: var(--lc-font-sans); font-weight: var(--lc-weight-semibold); }
.lc-theme-store .lc-cs-hero__media { border-color: var(--lc-store-line); border-radius: var(--lc-radius-xl); }
.lc-theme-store .lc-cs-verify { font-family: var(--lc-font-sans); letter-spacing: 0.02em; }

/* The compare tray is a dark bar on light store pages: its text takes the bar's own colour, not the page's. */
.lc-cs-tray { color: var(--lc-text); }
/* Comparison values read like the rest of the store; mono stays for the dark technical pages. */
.lc-theme-store .lc-cs-table td { font-family: var(--lc-font-sans); font-variant-numeric: tabular-nums; }

/* ---------- Control-system product page in the LED product page layout (owner, 2026-10-16) ----------
   Pictures left (device photo, ports view as a second thumbnail), purchase decision right, detail below.
   The buy panel, key values and hints reuse the .lc-pdp__* rules of product.css. */
.lc-theme-store .lc-cs-hero { padding-block: var(--lc-space-5) var(--lc-space-10); border-bottom: 0; }
.lc-theme-store .lc-cs-hero__grid { gap: clamp(2rem, 1.5rem + 3vw, 4.5rem); margin-top: var(--lc-space-5); }
@media (min-width: 1024px) {
  .lc-theme-store .lc-cs-hero__grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
  .lc-theme-store .lc-cs-gallery { position: sticky; top: calc(var(--lc-header-h) + var(--lc-space-6)); }
}

.lc-theme-store .lc-cs-gallery { gap: var(--lc-space-3); }
.lc-theme-store .lc-cs-gallery .lc-cs-hero__media {
  border-color: var(--lc-store-line);
  border-radius: var(--lc-radius-xl);
  background: radial-gradient(80% 70% at 50% 40%, #ffffff, transparent 75%), var(--lc-store-media);
  box-shadow: none;
}
.lc-theme-store .lc-cs-gallery .lc-media-frame__corner { display: none; }
.lc-cs-gallery.is-ports .lc-cs-hero__media > .lc-device-ports { display: block; }
.lc-cs-gallery.is-ports .lc-cs-hero__media > .lc-device-photo { visibility: hidden; }
.lc-cs-gallery.is-ports [data-cs-note="photo"] { display: none; }
.lc-theme-store .lc-cs-hero__media-note { margin: 0; font-size: var(--lc-text-xs); color: var(--lc-text-subtle); }

.lc-cs-gallery .lc-cs-ports-view { margin: 0; display: grid; gap: var(--lc-space-2); }
.lc-cs-gallery .lc-cs-ports-view__title { order: -1; font-size: var(--lc-text-xs); font-weight: var(--lc-weight-semibold); color: var(--lc-text-subtle); }
.lc-cs-gallery__thumbs { display: flex; gap: var(--lc-space-2); }
.lc-cs-gallery__thumb {
  flex: none;
  display: grid;
  place-items: center;
  width: 4.5rem;
  height: 3.5rem;
  padding: 0.25rem;
  border: 1px solid var(--lc-store-line, var(--lc-border));
  border-radius: var(--lc-radius-md);
  background: var(--lc-store-media, var(--lc-surface-sunken));
  cursor: pointer;
}
.lc-cs-gallery__thumb img { width: 100%; height: 100%; object-fit: contain; aspect-ratio: auto; background: transparent; border-radius: 0; }
.lc-cs-gallery__thumb[aria-pressed="true"] { border-color: var(--lc-text); box-shadow: inset 0 0 0 1px var(--lc-text); }
.lc-cs-gallery__thumb:focus-visible { box-shadow: var(--lc-focus-ring); }
/* Without the script there is nothing to switch: the ports view opens through its full-size link. */
html:not(.js) .lc-cs-gallery__thumbs { display: none; }

.lc-theme-store .lc-cs-hero__info { gap: var(--lc-space-5); }
.lc-theme-store .lc-cs-hero__info .lc-pdp__heading { gap: var(--lc-space-2); }
.lc-theme-store .lc-cs-hero__info .lc-cs-badges { margin-top: var(--lc-space-1); }
.lc-theme-store .lc-cs-hero__info .lc-promise-strip { margin-block: 0; }

/* Phones and tablets: title, then price and cart, then the description and the values (as on the LED page). */
@media (max-width: 1023px) {
  .lc-theme-store .lc-cs-hero__info > .lc-alert { order: 1; }
  .lc-theme-store .lc-cs-hero__info > .lc-promise-strip,
  .lc-theme-store .lc-cs-hero__info > .lc-cs-links { order: 6; }
}
.lc-cs-gallery > .lc-cs-hero__media-note { position: static; inset: auto; padding: 0; background: none; }
.lc-cs-gallery .lc-cs-ports-view__title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.lc-cs-gallery > .lc-cs-ports-view { order: -1; }
.lc-cs-gallery > .lc-cs-hero__media { order: -2; }
