@font-face {
  font-family: "Aeonik";
  src: url("/lockerwall-app/assets/fonts/aeonik-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Aeonik";
  src: url("/lockerwall-app/assets/fonts/aeonik-medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Aeonik";
  src: url("/lockerwall-app/assets/fonts/aeonik-semibold.woff2") format("woff2");
  font-weight: 600 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --ui-scale: 0.8;
  --editor-drawing-scale: 0.72;
  --neutral-white: #ffffff;
  --neutral-lightest: #eeeeee;
  --neutral-lighter: #cccccc;
  --neutral-light: #aaaaaa;
  --neutral: #666666;
  --neutral-dark: #444444;
  --neutral-darker: #222222;
  --neutral-darkest: #0f0f0f;
  --black: #000000;
  --primary-blue-lightest: #e5ecfa;
  --primary-blue-lighter: #ccd9f5;
  --primary-blue-light: #1582f1;
  --primary-blue: #0044ce;
  --primary-blue-dark: #0437a0;
  --primary-blue-darker: #001b52;
  --primary-blue-darkest: #01102f;
  --secondary-green-lightest: #e6f3f0;
  --secondary-green-lighter: #cde7e1;
  --secondary-green-light: #19c29d;
  --secondary-green: #09896d;
  --secondary-green-dark: #076d57;
  --secondary-green-darker: #03362b;
  --secondary-green-darkest: #021e17;
  --bg: var(--neutral-white);
  --panel: var(--neutral-white);
  --panel-border: #0f0f0f;
  --panel-border-strong: #0f0f0f;
  --text: #060606;
  --text-soft: var(--neutral-darker);
  --muted: #7d797a;
  --muted-strong: var(--neutral-dark);
  --accent: var(--primary-blue);
  --accent-dark: var(--primary-blue-dark);
  --accent-bright: var(--primary-blue-light);
  --accent-soft: rgba(0, 68, 206, 0.08);
  --brand-blue: var(--primary-blue);
  --brand-blue-bright: var(--primary-blue-light);
  --brand-blue-dark: var(--primary-blue-dark);
  --brand-blue-soft: var(--primary-blue-lightest);
  --brand-teal: var(--secondary-green);
  --brand-teal-light: var(--secondary-green-light);
  --brand-orange-soft: var(--secondary-green-lightest);
  --line: #0f0f0f;
  --surface: var(--neutral-white);
  --surface-2: #f8f8f8;
  --ok: var(--secondary-green);
  --warn: #d18e1f;
  --danger: #d94440;
  --focus-ring: 0 0 0 2px rgba(0, 68, 206, 0.28);
  --shadow-xs: none;
  --shadow-sm: none;
  --shadow: none;
  --shadow-soft: none;
  --shadow-lifted: 0 16px 32px rgba(0, 0, 0, 0.10);
  --size-1: 0.25rem;
  --size-2: 0.5rem;
  --size-3: 0.75rem;
  --size-4: 1rem;
  --size-5: 1.5rem;
  --size-6: 2rem;
  --size-7: 3rem;
  --size-8: 4rem;
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-swift: cubic-bezier(0.4, 0, 0.2, 1);
  --panel-highlight: var(--neutral-white);
  --shell-max-width: calc(1280px * var(--ui-scale));
  --frame-max-width: calc(1600px * var(--ui-scale));
  --menu-width: calc(196px * var(--ui-scale));
  --panel-radius: 0;
  --card-radius: 0;
  --control-radius: 0;
  --pill-radius: 0;
  --panel-padding: calc(20px * var(--ui-scale));
  font-family: "Aeonik", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  background-attachment: fixed;
  overflow-x: hidden;
  font-family: inherit;
}

html {
  font-size: calc(16px * var(--ui-scale));
}

body {
  font-feature-settings: "ss01" 1, "cv01" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
select,
textarea,
input {
  font: inherit;
}

.editor-frame {
  width: min(calc(100vw - 10px), var(--frame-max-width));
  margin: 0 auto calc(18px * var(--ui-scale));
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: calc(10px * var(--ui-scale));
  align-items: start;
}

.editor-page-shell {
  width: 100%;
  max-width: none;
  margin: calc(10px * var(--ui-scale)) 0 calc(20px * var(--ui-scale));
}

.page-shell {
  width: min(100%, var(--shell-max-width));
  margin: calc(14px * var(--ui-scale)) auto calc(22px * var(--ui-scale));
}

.editor-frame,
.page-shell,
.editor-page-shell,
.editor-workspace,
.panel,
.drawing-panel,
.config-panel,
.bom-panel {
  min-width: 0;
}

.brand-row {
  display: flex;
  align-items: center;
  margin-bottom: calc(12px * var(--ui-scale));
}

.brand-logo {
  height: calc(28px * var(--ui-scale));
  width: auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.9fr);
  gap: calc(14px * var(--ui-scale));
  align-items: end;
  margin-bottom: calc(14px * var(--ui-scale));
  position: relative;
}

.eyebrow {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--accent);
}

h1,
h2 {
  margin: 0;
  font-family: inherit;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

h1 {
  font-size: clamp(1.75rem, 4vw, 3.2rem);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.1rem, 1.6vw, 1.4rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.hero-copy {
  max-width: 66ch;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.65;
}

.hero::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: calc(-14px * var(--ui-scale));
  width: 200px;
  height: 200px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(47, 111, 174, 0.15), transparent 70%);
  pointer-events: none;
}

.hero-card,
.panel {
  background: var(--panel-highlight);
  border: 1px solid var(--panel-border);
  border-radius: var(--panel-radius);
  box-shadow: var(--shadow);
}

.hero-card {
  padding: var(--panel-padding);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: calc(10px * var(--ui-scale));
  align-content: start;
  position: relative;
  overflow: hidden;
}

.panel {
  position: relative;
}

.hero-card::before,
.panel::before {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(16, 24, 40, 0.1) 50%, transparent);
  pointer-events: none;
}

.panel {
  transition: box-shadow 220ms var(--ease-out);
}

.metric {
  background: #ffffff;
  border: 1px solid var(--panel-border);
  border-radius: var(--card-radius);
  padding: calc(16px * var(--ui-scale));
  box-shadow: var(--shadow-xs);
  transition: transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out);
}

.metric:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.metric strong {
  font-size: clamp(1.4rem, 2vw, 1.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  display: block;
}

.metric-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.project-hero-option {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: calc(14px * var(--ui-scale));
  padding: calc(13px * var(--ui-scale)) calc(15px * var(--ui-scale));
  border-radius: 16px;
  border: 1px solid rgba(47, 111, 174, 0.12);
  background:
    radial-gradient(circle at right top, rgba(47, 111, 174, 0.1), transparent 38%),
    linear-gradient(180deg, #ffffff 0%, #f6faff 100%);
}

.project-hero-option-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.project-hero-option-copy strong {
  font-size: 0.94rem;
  line-height: 1.2;
}

.project-hero-option-copy .helper-text {
  margin: 0;
  max-width: 52ch;
}

.project-hero-switch {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  flex: 0 0 auto;
}

.project-hero-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.project-hero-switch-track {
  width: 44px;
  height: 26px;
  padding: 3px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(16, 24, 40, 0.14);
  border: 1px solid rgba(16, 24, 40, 0.08);
  transition: background 180ms var(--ease-out), border-color 180ms var(--ease-out);
}

.project-hero-switch-thumb {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.15), 0 4px 10px rgba(16, 24, 40, 0.12);
  transform: translateX(0);
  transition: transform 220ms var(--ease-out), background 180ms var(--ease-out);
}

.project-hero-switch input:checked + .project-hero-switch-track {
  background: var(--accent);
  border-color: var(--accent);
}

.project-hero-switch input:checked + .project-hero-switch-track .project-hero-switch-thumb {
  transform: translateX(18px);
  background: #ffffff;
}

.project-hero-switch input:focus-visible + .project-hero-switch-track {
  outline: 2px solid rgba(47, 111, 174, 0.35);
  outline-offset: 2px;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(320px, 400px) minmax(0, 1fr);
  gap: calc(14px * var(--ui-scale));
}

.editor-workspace {
  grid-template-columns: 1fr !important;
  gap: 14px;
}

.editor-workspace > .drawing-panel,
.editor-workspace > .config-panel,
.editor-workspace > .bom-panel,
.editor-workspace > .panel {
  grid-column: 1 / -1;
  width: 100%;
}

.topview-workspace {
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  gap: 14px;
}

.page-view.hidden {
  display: none;
}

.page-view {
  display: flex;
  flex-direction: column;
  gap: calc(12px * var(--ui-scale));
}

.hidden {
  display: none !important;
}

.column-source-grid {
  display: grid;
  grid-template-columns: minmax(160px, 220px) minmax(220px, 1fr);
  gap: 10px;
  margin-bottom: 10px;
}

.column-article-picker input[type="search"] {
  width: 100%;
}

#home-page {
  display: block;
}

.panel {
  padding: var(--panel-padding);
}

.controls {
  display: flex;
  flex-direction: column;
  gap: calc(10px * var(--ui-scale));
}

.output {
  display: flex;
  flex-direction: column;
  gap: calc(12px * var(--ui-scale));
}

.drawing-panel,
.config-panel,
.bom-panel {
  width: 100%;
}

.drawing-panel {
  overflow: hidden;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: calc(12px * var(--ui-scale));
  padding-bottom: calc(12px * var(--ui-scale));
  margin-bottom: calc(8px * var(--ui-scale));
  border-bottom: 1px solid rgba(15, 111, 214, 0.08);
}

.section-heading h2 {
  flex: 0 0 auto;
  font-size: 1.16rem;
  letter-spacing: -0.02em;
}

.subpage-nav {
  display: flex;
  gap: calc(8px * var(--ui-scale));
  flex-wrap: wrap;
  margin: 0 0 calc(14px * var(--ui-scale));
}

.subpage-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: calc(36px * var(--ui-scale));
  padding: calc(7px * var(--ui-scale)) calc(16px * var(--ui-scale));
  border-radius: var(--pill-radius);
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted-strong);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.88rem;
  transition: background 180ms var(--ease-out), color 180ms var(--ease-out), border-color 180ms var(--ease-out);
}

.subpage-link:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

.subpage-link-active {
  background: rgba(255, 255, 255, 0.9);
  border-color: var(--panel-border-strong);
  color: var(--text);
  box-shadow: var(--shadow-xs);
}

.side-menu-subnav {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 2px 0 14px;
  padding: 10px 6px 8px 12px;
  border-left: 2px solid rgba(15, 111, 214, 0.14);
  margin-left: 14px;
  position: relative;
  background: linear-gradient(180deg, rgba(244, 248, 252, 0.9), rgba(255, 255, 255, 0.55));
  border-radius: 0 16px 16px 0;
}

.side-menu-subitem {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 34px;
  padding: 7px 10px 7px 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-size: 0.86rem;
  line-height: 1.25;
  text-align: left;
  color: #5f6f86;
  background: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-weight: 600;
}

.side-menu .button-link,
.side-menu-nav .button-link,
.side-menu-item.button-link,
.side-menu-subitem.button-link {
  justify-content: flex-start;
  text-align: left;
}

.side-menu-item,
.side-menu-subitem,
.side-menu-item span,
.side-menu-subitem span {
  text-align: left;
}

.side-menu-subitem-active {
  color: var(--brand-blue);
  background: linear-gradient(180deg, #ffffff 0%, #edf5ff 100%);
  border-color: rgba(15, 111, 214, 0.18);
  box-shadow: inset 0 0 0 1px rgba(15, 111, 214, 0.04);
  font-weight: 700;
}

.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.pagination-meta {
  color: var(--muted);
  font-size: 0.82rem;
}

.pagination-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pagination-actions button {
  min-width: 44px;
  padding: 10px 14px;
}

.pagination-current {
  font-weight: 700;
  color: var(--text);
}

.actions-inline {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.sync-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  border-radius: var(--card-radius);
  border: 1px solid rgba(25, 25, 25, 0.08);
  background: linear-gradient(180deg, #ffffff 0%, #f5f9ff 100%);
}

.sync-card-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.filter-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1.6fr) repeat(4, minmax(150px, 1fr));
  gap: 10px;
  align-items: end;
}

.side-menu {
  position: sticky;
  top: calc(14px * var(--ui-scale));
  align-self: start;
  max-height: calc(100vh - (28px * var(--ui-scale)));
  margin-top: calc(10px * var(--ui-scale));
  width: var(--menu-width);
  padding: calc(12px * var(--ui-scale));
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--panel-border);
  border-radius: var(--panel-radius);
  box-shadow: var(--shadow);
  transition: width 220ms var(--ease-out), padding 220ms var(--ease-out);
  overflow-x: hidden;
  overflow-y: auto;
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  z-index: 5;
}

.side-menu-collapsed {
  width: calc(64px * var(--ui-scale));
}

.side-menu-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: calc(10px * var(--ui-scale));
  justify-content: flex-start;
  border: 0;
  background: linear-gradient(180deg, #ffffff 0%, #f3f8fd 100%);
  color: var(--brand-blue);
  border-radius: calc(16px * var(--ui-scale));
  padding: calc(11px * var(--ui-scale)) calc(12px * var(--ui-scale));
  font-weight: 700;
  margin-bottom: calc(8px * var(--ui-scale));
  border: 1px solid rgba(15, 111, 214, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

@media (min-width: 1101px) {
  .side-menu-toggle {
    cursor: default;
    pointer-events: none;
  }
}

.side-menu-toggle-icon {
  width: calc(18px * var(--ui-scale));
  display: inline-flex;
  flex-direction: column;
  gap: calc(4px * var(--ui-scale));
}

.side-menu-toggle-icon span {
  display: block;
  width: calc(18px * var(--ui-scale));
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.side-menu-nav {
  display: flex;
  flex-direction: column;
  gap: calc(7px * var(--ui-scale));
}

.side-menu-language {
  display: flex;
  flex-direction: column;
  gap: calc(6px * var(--ui-scale));
  margin-top: calc(4px * var(--ui-scale));
  padding: calc(10px * var(--ui-scale)) calc(12px * var(--ui-scale));
  border-radius: calc(14px * var(--ui-scale));
  border: 1px solid rgba(20, 34, 56, 0.06);
  background: linear-gradient(180deg, #ffffff 0%, #f9fbfd 100%);
}

.side-menu-language-label {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 600;
}

.side-menu-language-select {
  width: 100%;
  min-height: calc(42px * var(--ui-scale));
  border-radius: calc(13px * var(--ui-scale));
  border: 1px solid rgba(20, 34, 56, 0.12);
  background: #fff;
  color: var(--text);
  padding: calc(8px * var(--ui-scale)) calc(10px * var(--ui-scale));
}

.side-menu-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: calc(44px * var(--ui-scale));
  padding: calc(10px * var(--ui-scale)) calc(14px * var(--ui-scale));
  border-radius: calc(14px * var(--ui-scale));
  border: 1px solid rgba(15, 111, 214, 0.1);
  background: linear-gradient(180deg, #ffffff 0%, #f9fbfd 100%);
  color: var(--brand-blue);
  text-decoration: none;
  text-align: left;
  font-weight: 700;
  line-height: 1.25;
  position: relative;
  transition: border-color 140ms ease, background 140ms ease, transform 140ms ease, box-shadow 140ms ease, color 140ms ease;
}

.side-menu-item:hover {
  border-color: rgba(15, 111, 214, 0.18);
  background: linear-gradient(180deg, #ffffff 0%, #f0f7ff 100%);
  box-shadow: 0 8px 18px rgba(15, 111, 214, 0.08);
}

.side-menu-item-active {
  color: var(--brand-blue);
  border-color: rgba(15, 111, 214, 0.18);
  background: linear-gradient(180deg, #ffffff 0%, #eef6ff 100%);
  box-shadow:
    inset 0 0 0 1px rgba(15, 111, 214, 0.04),
    0 10px 20px rgba(15, 111, 214, 0.08);
}

.side-menu-item-active::before {
  content: "";
  position: absolute;
  left: calc(10px * var(--ui-scale));
  top: 50%;
  width: calc(4px * var(--ui-scale));
  height: calc(20px * var(--ui-scale));
  border-radius: 999px;
  background: linear-gradient(180deg, var(--brand-teal), var(--brand-blue));
  transform: translateY(-50%);
}

.side-menu-item-context {
  min-height: calc(40px * var(--ui-scale));
  padding-top: calc(9px * var(--ui-scale));
  padding-bottom: calc(9px * var(--ui-scale));
  color: #184775;
  background: linear-gradient(180deg, #ffffff 0%, #f4f9fc 100%);
  border-color: rgba(15, 111, 214, 0.1);
}

.side-menu-item-context + .side-menu-item-context {
  margin-bottom: calc(4px * var(--ui-scale));
}

.side-menu-item-context:not(.side-menu-item-active) {
  font-weight: 600;
}

.side-menu-user {
  display: flex;
  flex-direction: column;
  gap: calc(4px * var(--ui-scale));
  padding: calc(10px * var(--ui-scale)) calc(12px * var(--ui-scale));
  border-radius: calc(14px * var(--ui-scale));
  border: 1px solid rgba(25, 25, 25, 0.08);
  background: linear-gradient(180deg, #ffffff 0%, #f6faff 100%);
}

.side-menu-user-name {
  font-size: 0.94rem;
}

.side-menu-user-role {
  color: var(--muted);
  font-size: 0.78rem;
}

.side-menu-collapsed .side-menu-item,
.side-menu-collapsed .side-menu-label {
  white-space: nowrap;
}

.side-menu-collapsed .side-menu-language {
  padding-left: 8px;
  padding-right: 8px;
}

.side-menu-collapsed .side-menu-language-label {
  display: none;
}

.side-menu-collapsed .side-menu-user {
  display: none;
}

.side-menu-collapsed .side-menu-subnav {
  display: none;
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: calc(32px * var(--ui-scale)) calc(16px * var(--ui-scale));
}

.auth-card {
  width: min(100%, calc(520px * var(--ui-scale)));
}

.auth-title {
  font-size: 2rem;
  margin-bottom: calc(8px * var(--ui-scale));
}

.side-menu-collapsed .side-menu-item,
.side-menu-collapsed .side-menu-toggle {
  justify-content: center;
}

.side-menu-collapsed .side-menu-item {
  color: transparent;
  text-shadow: none;
  font-size: 0;
  padding-left: 0;
  padding-right: 0;
}

.side-menu-collapsed .side-menu-label {
  display: none;
}

.stacked-actions {
  align-self: end;
}

.grid-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: calc(10px * var(--ui-scale));
}

.grid-three {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: calc(10px * var(--ui-scale));
}

.grid-four {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: calc(10px * var(--ui-scale));
}

/* Inputs inside grid label-rows align to the bottom so multi-line
   labels do not push their input below the others. */
.grid-two > label,
.grid-three > label,
.grid-four > label {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 4px;
}

.config-panel .grid-two,
.config-panel .grid-three {
  align-items: start;
  grid-template-columns: repeat(auto-fill, minmax(calc(150px * var(--ui-scale)), 1fr));
  gap: calc(8px * var(--ui-scale)) calc(12px * var(--ui-scale));
}

.config-panel .grid-two > label,
.config-panel .grid-three > label {
  font-size: 0.84rem;
  gap: calc(3px * var(--ui-scale));
}

.config-panel .grid-two input,
.config-panel .grid-two select,
.config-panel .grid-three input,
.config-panel .grid-three select {
  padding: calc(6px * var(--ui-scale)) calc(10px * var(--ui-scale));
  font-size: 0.9rem;
  min-height: calc(34px * var(--ui-scale));
}

label {
  display: flex;
  flex-direction: column;
  gap: calc(6px * var(--ui-scale));
  font-weight: 500;
  font-size: 0.84rem;
  color: var(--muted-strong);
  letter-spacing: -0.005em;
}

select,
textarea,
input[type="file"],
input[type="search"],
input[type="email"],
input[type="date"] {
  min-height: calc(40px * var(--ui-scale));
  border-radius: var(--control-radius);
  border: 1px solid var(--panel-border-strong);
  background: #ffffff;
  padding: calc(9px * var(--ui-scale)) calc(12px * var(--ui-scale));
  box-shadow: var(--shadow-xs);
  color: var(--text);
  transition: border-color 160ms var(--ease-out), box-shadow 160ms var(--ease-out), background 160ms var(--ease-out);
}

input[type="text"],
input[type="password"],
input[type="number"] {
  min-height: calc(40px * var(--ui-scale));
  border-radius: var(--control-radius);
  border: 1px solid var(--panel-border-strong);
  background: #ffffff;
  padding: calc(9px * var(--ui-scale)) calc(12px * var(--ui-scale));
  box-shadow: var(--shadow-xs);
  color: var(--text);
  transition: border-color 160ms var(--ease-out), box-shadow 160ms var(--ease-out), background 160ms var(--ease-out);
}

select:hover,
textarea:hover,
input[type="text"]:hover,
input[type="password"]:hover,
input[type="number"]:hover,
input[type="search"]:hover,
input[type="email"]:hover,
input[type="date"]:hover {
  border-color: rgba(16, 24, 40, 0.2);
}

select:focus,
textarea:focus,
input[type="file"]:focus,
input[type="search"]:focus,
input[type="email"]:focus,
input[type="date"]:focus,
input[type="text"]:focus,
input[type="password"]:focus,
input[type="number"]:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: var(--focus-ring);
}

textarea {
  min-height: calc(220px * var(--ui-scale));
  resize: vertical;
  font-family: inherit;
  font-size: 0.9rem;
  line-height: 1.55;
}

#rules-json-preview {
  min-height: 180px;
  background: #f2f7fd;
  color: #55514c;
}

.compact-textarea {
  min-height: calc(90px * var(--ui-scale));
}

.helper-text {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

.saved-list {
  display: flex;
  flex-direction: column;
  gap: calc(10px * var(--ui-scale));
}

.saved-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: calc(10px * var(--ui-scale));
  width: 100%;
  padding: calc(12px * var(--ui-scale)) calc(14px * var(--ui-scale));
  border-radius: calc(16px * var(--ui-scale));
  border: 1px solid rgba(20, 34, 56, 0.06);
  background: linear-gradient(180deg, #ffffff 0%, #f9fbfd 100%);
  text-align: left;
  color: inherit;
  box-shadow: 0 10px 24px rgba(22, 22, 22, 0.04);
}

.saved-item strong {
  display: block;
  color: var(--text);
}

.saved-item span {
  font-size: 0.84rem;
  color: var(--muted);
}

.saved-item > span:first-child {
  flex: 1;
}

.saved-item.active {
  border-color: rgba(47, 111, 174, 0.28);
  background: linear-gradient(180deg, rgba(47, 111, 174, 0.12) 0%, rgba(255, 255, 255, 0.96) 100%);
}

.saved-item.saved-item-active {
  border-color: rgba(47, 111, 174, 0.28);
  background: linear-gradient(180deg, rgba(47, 111, 174, 0.12) 0%, rgba(255, 255, 255, 0.96) 100%);
}

.file-input input[type="file"] {
  padding: calc(10px * var(--ui-scale));
}

.actions {
  display: flex;
  gap: calc(12px * var(--ui-scale));
}

button {
  min-height: calc(40px * var(--ui-scale));
  border: 1px solid transparent;
  border-radius: var(--pill-radius);
  padding: calc(9px * var(--ui-scale)) calc(18px * var(--ui-scale));
  cursor: pointer;
  transition: transform 200ms var(--ease-out), background 200ms var(--ease-out), color 200ms var(--ease-out), box-shadow 200ms var(--ease-out), border-color 200ms var(--ease-out);
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: -0.005em;
  background: linear-gradient(180deg, #1a77ff 0%, #0044CE 100%);
  color: #ffffff;
  box-shadow: 0 1px 2px rgba(0, 68, 206, 0.25), 0 8px 20px rgba(0, 68, 206, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  min-height: calc(40px * var(--ui-scale));
  border-radius: var(--pill-radius);
  padding: calc(9px * var(--ui-scale)) calc(18px * var(--ui-scale));
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: transform 200ms var(--ease-out), background 200ms var(--ease-out), color 200ms var(--ease-out), box-shadow 200ms var(--ease-out), border-color 200ms var(--ease-out);
}

a.button-link.ghost-button {
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  border: 1px solid var(--panel-border-strong);
  box-shadow: var(--shadow-xs);
  backdrop-filter: saturate(140%) blur(6px);
  -webkit-backdrop-filter: saturate(140%) blur(6px);
}

a.button-link.ghost-button:hover {
  background: #ffffff;
  border-color: rgba(16, 24, 40, 0.22);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

a.button-link.ghost-button:active {
  background: var(--surface-2);
  transform: translateY(0);
}

button:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 68, 206, 0.28), 0 14px 28px rgba(0, 68, 206, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

button:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(0, 68, 206, 0.25), 0 4px 10px rgba(0, 68, 206, 0.18);
}

button:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring), 0 8px 20px rgba(0, 68, 206, 0.22);
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

#generate-button {
  background: var(--accent);
  color: white;
}

.ghost-button {
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  border-color: var(--panel-border-strong);
  box-shadow: var(--shadow-xs);
  backdrop-filter: saturate(140%) blur(6px);
  -webkit-backdrop-filter: saturate(140%) blur(6px);
}

.ghost-button:hover:not(:disabled) {
  background: #ffffff;
  border-color: rgba(16, 24, 40, 0.22);
  box-shadow: var(--shadow-sm);
}

.ghost-button:active:not(:disabled) {
  background: var(--surface-2);
}

.ghost-button.is-active,
.ghost-button.is-active:hover:not(:disabled) {
  background: #0044CE;
  color: #fff;
  border-color: #0044CE;
  box-shadow: 0 0 0 3px rgba(0, 68, 206, 0.18);
}

.danger-action {
  color: var(--danger) !important;
  border-color: rgba(180, 35, 24, 0.2) !important;
}

.danger-action:hover:not(:disabled) {
  background: rgba(180, 35, 24, 0.06) !important;
  border-color: rgba(180, 35, 24, 0.35) !important;
}

.messages {
  min-height: 32px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.5;
  padding: 2px 0;
}

.messages.error {
  color: #a61b1b;
}

.messages.success {
  color: #1f7a58;
  font-weight: 600;
}

button.is-success-flash {
  animation: success-flash 0.9s ease-out;
}

tr.is-duplicate-flash > td {
  animation: duplicate-flash 1.6s ease-out;
}

.partner-field-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.partner-field-row .partner-select {
  flex: 1 1 auto;
}

.partner-field-row .partner-add-button {
  flex: 0 0 auto;
  white-space: nowrap;
}

.partner-quick-add {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
  flex-wrap: wrap;
}

.partner-quick-add input[type="text"] {
  flex: 1 1 200px;
  min-width: 180px;
}

.partner-quick-message {
  font-size: 0.82rem;
  color: var(--muted);
  flex: 1 1 100%;
}

.partner-quick-message.error {
  color: #a61b1b;
}

.project-tabs {
  display: flex;
  gap: calc(8px * var(--ui-scale));
  flex-wrap: wrap;
  margin: 0 0 calc(16px * var(--ui-scale));
  padding: calc(6px * var(--ui-scale));
  background: rgba(47, 111, 174, 0.04);
  border: 1px solid rgba(47, 111, 174, 0.1);
  border-radius: calc(16px * var(--ui-scale));
}

.project-tab {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: calc(38px * var(--ui-scale));
  padding: calc(8px * var(--ui-scale)) calc(18px * var(--ui-scale));
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--brand-blue);
  font-weight: 700;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.project-tab:hover {
  background: rgba(47, 111, 174, 0.08);
}

.project-tab.is-active {
  background: linear-gradient(180deg, #ffffff 0%, #edf5ff 100%);
  border-color: rgba(47, 111, 174, 0.22);
  box-shadow: 0 6px 18px rgba(22, 22, 22, 0.05);
  color: var(--dark);
}

.project-options-fieldset {
  margin: 12px 0;
  padding: 12px 18px;
  border: 1px solid rgba(47, 111, 174, 0.16);
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}

.project-options-fieldset > legend {
  padding: 0 6px;
  font-weight: 700;
  color: var(--brand-blue);
}

.project-options-fieldset .checkbox-label {
  padding: 6px 0;
}

.project-option-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 18px;
  margin: 10px 0;
  border-radius: var(--card-radius);
  border: 1px solid var(--panel-border);
  background: #ffffff;
  box-shadow: var(--shadow-xs);
  transition: box-shadow 200ms var(--ease-out);
}

.project-option-row:hover {
  box-shadow: var(--shadow-sm);
}

.project-option-row.compact {
  padding: 12px 14px;
  margin: 8px 0;
}

.project-option-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1 1 auto;
}

.project-option-copy strong {
  font-size: 0.94rem;
  color: var(--text);
  letter-spacing: -0.005em;
}

.project-option-copy .helper-text {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
  max-width: 52ch;
}

.bom-table-shell {
  position: relative;
}

.bom-loading-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: saturate(180%) blur(6px);
  -webkit-backdrop-filter: saturate(180%) blur(6px);
  border-radius: var(--card-radius);
  z-index: 2;
}

.bom-loading-overlay[hidden] {
  display: none;
}

.bom-loading-copy {
  display: grid;
  gap: 4px;
}

.bom-loading-copy strong {
  font-size: 1rem;
  color: var(--text);
  letter-spacing: -0.01em;
}

.bom-spinner {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 3px solid rgba(0, 68, 206, 0.12);
  border-top-color: var(--accent);
  animation: bom-spin 720ms linear infinite;
}

@keyframes bom-spin {
  to { transform: rotate(360deg); }
}

.partners-filter-row {
  margin: 14px 0;
}

.project-status-list {
  display: grid;
  gap: 14px;
}

.project-status-row {
  background: #ffffff;
  border: 1px solid var(--panel-border);
  border-radius: var(--card-radius);
  padding: 16px;
  box-shadow: var(--shadow-xs);
  display: grid;
  gap: 10px;
}

.project-status-row-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.project-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: var(--pill-radius);
  border: 1px solid currentColor;
  white-space: nowrap;
}

.project-status-pill::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: currentColor;
}

.project-status-cell {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.project-status-cell-select {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  min-height: 0;
  padding: 0;
}

.venue-forecast-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-top: 16px;
}

.venue-forecast-day {
  background: #ffffff;
  border: 1px solid var(--panel-border);
  border-radius: var(--card-radius);
  padding: 14px;
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.venue-forecast-day.is-today {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), var(--shadow-sm);
}

.venue-forecast-day header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
}

.venue-forecast-day-meta {
  font-size: 0.76rem;
  color: var(--muted);
}

.venue-forecast-show-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.venue-forecast-show {
  display: grid;
  gap: 2px;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--surface-2);
}

.venue-forecast-time {
  font-weight: 600;
  color: var(--accent);
  font-size: 0.84rem;
}

.venue-forecast-title {
  font-weight: 600;
  color: var(--text);
}

.venue-forecast-venue {
  font-size: 0.76rem;
  color: var(--muted);
}

.drukte-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: var(--pill-radius);
  font-size: 0.76rem;
  font-weight: 600;
}

.drukte-none { color: var(--muted); background: var(--surface-2); }
.drukte-low { color: #1f7a58; background: rgba(31, 143, 86, 0.12); }
.drukte-medium { color: #b45309; background: rgba(217, 119, 6, 0.14); }
.drukte-high { color: #b42318; background: rgba(180, 35, 24, 0.14); }

.venue-forecast-day.drukte-high {
  border-left: 4px solid #b42318;
}
.venue-forecast-day.drukte-medium {
  border-left: 4px solid #d97706;
}
.venue-forecast-day.drukte-low {
  border-left: 4px solid #1f7a58;
}

th.sortable-header {
  cursor: pointer;
  user-select: none;
  transition: background 160ms var(--ease-out);
}

th.sortable-header:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

.drawing-zoom-controls {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 12px;
  padding: 4px;
  border-radius: var(--pill-radius);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--panel-border);
  backdrop-filter: saturate(140%) blur(6px);
  -webkit-backdrop-filter: saturate(140%) blur(6px);
}

.drawing-zoom-controls .zoom-button {
  min-height: 30px;
  padding: 4px 12px;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: var(--pill-radius);
}

.drawing-zoom-controls .zoom-label {
  min-width: 48px;
  text-align: center;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--muted-strong);
  padding: 0 4px;
}

.bom-group-header > td {
  padding: 14px 12px 8px !important;
  background: rgba(47, 111, 174, 0.06);
  border-top: 2px solid rgba(47, 111, 174, 0.18);
  display: flex;
  gap: 12px;
  align-items: baseline;
}

.bom-group-label {
  font-size: 1rem;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.bom-group-meta {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 500;
}

.app-card-icon.has-image {
  padding: 0;
  overflow: hidden;
}

.app-card-icon.has-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: inherit;
}

.app-customization-list {
  display: grid;
  gap: 16px;
}

.app-customization-card {
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  border: 1px solid rgba(47, 111, 174, 0.14);
  border-radius: 16px;
  padding: 18px;
  display: grid;
  gap: 12px;
}

.app-customization-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.app-customization-preview {
  display: flex;
  align-items: center;
  gap: 12px;
}

.app-customization-preview > div {
  display: grid;
}

.app-customization-preview strong {
  font-size: 1rem;
}

@keyframes duplicate-flash {
  0%, 20% {
    background-color: #fde2e4;
  }
  100% {
    background-color: transparent;
  }
}

@keyframes success-flash {
  0% {
    background-color: #1f7a58;
    color: #ffffff;
    box-shadow: 0 0 0 0 rgba(31, 122, 88, 0.45);
  }
  60% {
    background-color: #2a9d7a;
    color: #ffffff;
    box-shadow: 0 0 0 6px rgba(31, 122, 88, 0);
  }
  100% {
    background-color: inherit;
    color: inherit;
    box-shadow: 0 0 0 0 rgba(31, 122, 88, 0);
  }
}

.support-query-input {
  min-height: 132px;
  font-family: "Plus Jakarta Sans", "Helvetica Neue", sans-serif;
  font-size: 0.96rem;
}

.support-chip-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.support-chip {
  padding: 8px 12px;
}

.support-summary {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.support-summary p {
  margin: 0;
  line-height: 1.55;
}

.support-result-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(25, 25, 25, 0.08);
  background: linear-gradient(180deg, #ffffff 0%, #f6faff 100%);
}

.support-result-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.support-result-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(47, 111, 174, 0.1);
  color: var(--brand-blue);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.support-result-path,
.support-signature {
  color: var(--muted);
  font-size: 0.82rem;
}

.support-signature {
  white-space: pre-wrap;
  word-break: break-word;
}

.support-result-card p {
  margin: 0;
  line-height: 1.5;
}

.support-ticket-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 14px;
  align-items: start;
}

.support-ticket-customer-picker {
  position: relative;
}

.support-customer-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 320px;
  overflow: auto;
  padding: 10px;
  border-radius: 16px;
  border: 1px solid rgba(47, 111, 174, 0.14);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 48px rgba(22, 22, 22, 0.14);
}

.support-customer-result {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
  padding: 10px 12px;
  border: 1px solid rgba(47, 111, 174, 0.12);
  background: linear-gradient(180deg, #ffffff 0%, #f6faff 100%);
  border-radius: 14px;
  text-align: left;
  cursor: pointer;
}

.support-customer-result strong {
  font-size: 0.96rem;
}

.support-customer-result span,
.support-customer-header span {
  color: var(--muted);
  font-size: 0.84rem;
}

.support-customer-result-empty {
  cursor: default;
}

.support-customer-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(47, 111, 174, 0.12);
  background: linear-gradient(180deg, #ffffff 0%, #f6faff 100%);
}

.support-detail-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid rgba(25, 25, 25, 0.08);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.88);
}

.support-detail-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.85fr) minmax(0, 1.55fr);
  gap: 12px;
  align-items: start;
  padding: 9px 12px;
  border-bottom: 1px solid rgba(25, 25, 25, 0.07);
}

.support-detail-row:last-child {
  border-bottom: 0;
}

.support-detail-label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.35;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.support-detail-value {
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.4;
  word-break: break-word;
}

.support-link-value {
  color: var(--brand-blue);
  font-weight: 700;
  text-decoration: none;
}

.support-link-value:hover {
  text-decoration: underline;
}

.support-subitem-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(25, 25, 25, 0.08);
  background: linear-gradient(180deg, #ffffff 0%, #f6faff 100%);
}

.support-subitem-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.support-subitem-header strong {
  font-size: 0.95rem;
}

.support-subitem-header span {
  color: var(--muted);
  font-size: 0.8rem;
  white-space: nowrap;
}

.support-subitems-table-wrap {
  max-width: 100%;
}

.support-subitems-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.support-subitems-table th,
.support-subitems-table td {
  padding: 9px 12px;
  white-space: nowrap;
  font-size: 0.86rem;
  vertical-align: top;
}

.support-subitems-table th {
  position: sticky;
  top: 0;
  background: #f6faff;
  z-index: 1;
}

.support-subitems-table th:first-child,
.support-subitems-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  background: #ffffff;
}

.support-subitems-table th:first-child {
  z-index: 3;
  background: #f6faff;
}

.support-subitem-name-cell {
  font-weight: 700;
  color: var(--text);
  min-width: 140px;
}

.support-subitems-extra-column {
  display: none;
}

.support-subitems-table-wrap[data-subitems-expanded="true"] .support-subitems-extra-column {
  display: table-cell;
}

.support-ticket-hardware {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.support-hardware-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.support-hardware-chip {
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(47, 111, 174, 0.18);
  background: rgba(255, 255, 255, 0.9);
  color: var(--brand-blue);
  cursor: pointer;
}

.support-hardware-chip-active {
  background: var(--brand-blue);
  border-color: var(--brand-blue);
  color: #ffffff;
}

.support-problem-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.checkbox-field {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
}

@media (max-width: 980px) {
  .support-ticket-layout {
    grid-template-columns: 1fr;
  }

  .working-drawing-page-grid {
    grid-template-columns: 1fr;
  }
}

.modal-shell.hidden {
  display: none;
}

.modal-shell {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 24px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.28);
  backdrop-filter: blur(8px);
}

.new-wall-fieldset {
  border: 1px solid rgba(47, 111, 174, 0.22);
  border-radius: 14px;
  padding: 16px 18px 18px;
  margin: 16px 0 0;
  background: rgba(244, 247, 252, 0.45);
}
.new-wall-fieldset-filter {
  border-color: rgba(214, 108, 63, 0.32);
  background: rgba(254, 246, 240, 0.55);
}
.new-wall-fieldset-pick {
  border-color: rgba(47, 111, 174, 0.35);
  background: rgba(238, 245, 255, 0.55);
}
.new-wall-fieldset > legend {
  padding: 2px 10px;
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--brand-blue);
  background: #ffffff;
  border-radius: 999px;
}
.new-wall-fieldset-filter > legend {
  color: #d66c3f;
}
.new-wall-fieldset-hint {
  margin: 4px 0 12px;
}

.modal-card {
  position: relative;
  width: min(900px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow);
}

.modal-card-xl {
  width: min(1180px, calc(100vw - 32px));
}

.compact-stat-list .saved-item {
  align-items: center;
}

.saved-item-copy {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}

.working-drawing-pages {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.working-drawing-page-card {
  padding: 14px;
}

.working-drawing-page-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.4fr);
  gap: 16px;
  align-items: start;
}

.working-drawing-preview-wrap {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  min-height: 240px;
  padding: 10px;
  border-radius: 18px;
  border: 1px solid rgba(25, 25, 25, 0.08);
  background: linear-gradient(180deg, #ffffff 0%, #f6faff 100%);
}
.working-drawing-preview-wrap > .working-drawing-preview {
  align-self: center;
}

.working-drawing-preview {
  max-width: 100%;
  max-height: 520px;
  display: block;
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(22, 22, 22, 0.08);
}

.working-drawing-pixel-ruler {
  margin-top: 6px;
  width: 100%;
  font-size: 0.8rem;
  color: var(--muted);
}
.working-drawing-pixel-ruler-track {
  height: 14px;
  width: 100%;
  background-color: rgba(47, 111, 174, 0.08);
  background-image: repeating-linear-gradient(
    to right,
    rgba(47, 111, 174, 0.65) 0,
    rgba(47, 111, 174, 0.65) 1px,
    transparent 1px,
    transparent 5%
  );
  border-top: 1px solid rgba(47, 111, 174, 0.55);
  border-bottom: 1px solid rgba(47, 111, 174, 0.55);
  border-left: 1px solid rgba(47, 111, 174, 0.55);
  border-right: 1px solid rgba(47, 111, 174, 0.55);
  border-radius: 4px;
}
.working-drawing-pixel-ruler-numbers {
  position: relative;
  width: 100%;
  height: 20px;
  margin-top: 4px;
}
.working-drawing-pixel-ruler-numbers > span {
  position: absolute;
  top: 0;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--brand-blue);
  font-size: 0.78rem;
  white-space: nowrap;
}
.working-drawing-pixel-ruler-meta {
  margin-top: 8px;
  white-space: normal;
}

.working-drawing-fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.point-mode-active {
  background: var(--accent);
  color: #fff;
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.kpi-card {
  background: linear-gradient(180deg, #ffffff 0%, #f4f8fd 100%);
  border: 1px solid rgba(25, 25, 25, 0.08);
  border-radius: 16px;
  padding: 12px;
}

.kpi-card span {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
  margin-bottom: 4px;
}

.drawing-surface {
  background:
    linear-gradient(rgba(25, 25, 25, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(25, 25, 25, 0.04) 1px, transparent 1px),
    #fcfeff;
  background-size: 18px 18px;
  border-radius: 18px;
  border: 1px solid rgba(25, 25, 25, 0.08);
  padding: 6px;
  width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: auto;
}

.topview-drawing-surface {
  min-height: 640px;
  background: #ffffff;
  background-image: none;
}

.topview-sidebar-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: sticky;
  top: 14px;
  align-self: start;
}

.topview-subheading {
  margin-top: 4px;
}

.topview-canvas-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.floorplan-workspace {
  grid-template-columns: minmax(270px, 320px) minmax(0, 1fr);
}

.floorplan-sidebar-panel,
.floorplan-canvas-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.floorplan-sidebar-panel {
  position: sticky;
  top: 14px;
  align-self: start;
}

.floorplan-stage {
  position: relative;
  min-height: 680px;
  border-radius: 18px;
  border: 1px solid rgba(25, 25, 25, 0.08);
  background: #ffffff;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.floorplan-stage-place-mode {
  cursor: crosshair;
}

.floorplan-stage-move-mode {
  cursor: move;
}

.floorplan-stage-idle-mode {
  cursor: default;
}

.floorplan-preview {
  max-width: 100%;
  max-height: 820px;
  display: block;
  object-fit: contain;
}

.floorplan-preview.hidden,
.table-empty.hidden {
  display: none;
}

.floorplan-marker-layer {
  position: absolute;
  inset: 18px;
  pointer-events: none;
}

.floorplan-marker {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 999px;
  border: 2px solid #ffffff;
  background: #ff6b1a;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 8px 22px rgba(23, 23, 23, 0.22);
  pointer-events: auto;
  appearance: none;
  -webkit-appearance: none;
}

.floorplan-marker.floorplan-marker-active {
  background: var(--brand-blue);
  box-shadow: 0 0 0 4px rgba(47, 111, 174, 0.18), 0 8px 22px rgba(23, 23, 23, 0.22);
}

.saved-item .floorplan-wall-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  height: 38px;
  margin-right: 12px;
  padding: 0 12px;
  border-radius: 999px;
  background: #ff6b1a;
  color: #ffffff;
  font-size: 1.08rem;
  font-weight: 900;
  line-height: 1;
  border: 2px solid rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.12);
}

.saved-item .floorplan-wall-badge-muted {
  background: #ffffff;
  color: var(--brand-blue);
  border-color: rgba(47, 111, 174, 0.38);
}

.saved-item strong {
  display: flex;
  align-items: center;
  gap: 0;
  min-width: 0;
  flex: 1 1 auto;
}

.saved-item strong .floorplan-wall-badge + span,
.saved-item strong .floorplan-wall-badge + strong {
  min-width: 0;
}

#floorplan-placed-wall-list .saved-item,
#floorplan-unplaced-wall-list .saved-item {
  align-items: center;
}

#floorplan-placed-wall-list .saved-item span,
#floorplan-unplaced-wall-list .saved-item span {
  font-size: 0.92rem;
}

.floorplan-upload-button {
  position: relative;
  overflow: hidden;
}

.floorplan-upload-button input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.topview-name-block {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.topview-inline-label {
  min-width: 280px;
}

.topview-selected-bar {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  flex-wrap: wrap;
}

.topview-selected-actions {
  display: flex;
  gap: 10px;
  align-items: end;
  flex-wrap: wrap;
}

.topview-selected-actions label {
  min-width: 150px;
}

.topview-selected-actions input[type="color"] {
  width: 100%;
  min-width: 84px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(47, 111, 174, 0.18);
  background: rgba(255, 255, 255, 0.92);
  padding: 0.3rem;
}

.drawing-heading {
  align-items: flex-start;
}

.view-mode-group {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.view-toggle {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(47, 111, 174, 0.08);
}

.view-toggle-button {
  border: none;
  background: transparent;
  color: var(--brand-blue);
  border-radius: 999px;
  padding: 0.55rem 0.95rem;
  font-weight: 700;
}

.view-toggle-button-active {
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(22, 22, 22, 0.08);
}

.drawing-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.icon-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
  padding: 10px;
  border-radius: 20px;
  background: rgba(239, 106, 33, 0.08);
  width: 100%;
  min-width: 0;
}

.toolbar-tool {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  padding: 8px 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(239, 106, 33, 0.08);
}

.toolbar-tool-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--muted);
}

.toolbar-tool-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.toolbar-tool-icons {
  justify-content: flex-start;
}

.toolbar-tool-compact {
  max-width: 280px;
}

.toolbar-select {
  min-width: 0;
  width: 100%;
  border-radius: 999px;
  border: 1px solid rgba(47, 111, 174, 0.18);
  background: rgba(255, 255, 255, 0.92);
  color: var(--brand-blue);
  padding: 0.58rem 0.9rem;
  font-weight: 600;
  text-overflow: ellipsis;
}

.toolbar-select-secondary {
  max-width: 110px;
  flex: 0 0 110px;
}

.icon-button {
  width: 40px;
  height: 40px;
  /* Without flex-shrink:0 the icon button is the only flexible item
     against full-width selects in toolbar-tool-row, so when the row
     has two selects (Reader: article + placement) it collapses to a
     few pixels wide and becomes nearly unclickable. */
  flex: 0 0 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--accent-dark);
}

.icon-button svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-button:hover {
  background: rgba(239, 106, 33, 0.14);
}

.icon-button.point-mode-active {
  background: var(--accent);
  color: #fff;
}

.subtle-icon:hover {
  background: rgba(59, 47, 37, 0.08);
}

#drawing-svg {
  width: auto;
  height: auto;
  max-width: none;
  min-height: 0;
  display: block;
  margin-left: 0;
}

.wide-drawing-surface {
  height: clamp(340px, 50vh, 620px);
  padding: 2px 0 0;
}

.compact-heading {
  margin: 0;
}

.editor-workspace #drawing-svg {
  width: max(720px, calc(100% * var(--editor-drawing-scale)));
  height: auto;
  margin: 0 auto;
}

.chart-card {
  margin-top: calc(14px * var(--ui-scale));
  border: 1px solid rgba(23, 23, 23, 0.08);
  border-radius: calc(28px * var(--ui-scale));
  background: #ffffff;
  overflow: hidden;
}

#stock-forecast-chart,
.stock-forecast-chart {
  display: block;
  width: 100%;
  height: auto;
  min-height: 320px;
}

.editor-page-shell .brand-row {
  margin-bottom: calc(10px * var(--ui-scale));
}

.editor-frame .editor-page-shell {
  width: 100%;
  max-width: none;
  margin: calc(14px * var(--ui-scale)) 0 calc(28px * var(--ui-scale));
}

.editor-page-shell .brand-logo {
  height: calc(28px * var(--ui-scale));
}

.editor-page-shell .hero {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: calc(12px * var(--ui-scale));
  align-items: center;
  margin-bottom: calc(14px * var(--ui-scale));
}

.editor-page-shell .eyebrow {
  margin-bottom: 4px;
  font-size: 0.72rem;
}

.editor-page-shell h1 {
  font-size: clamp(1.55rem, 2.4vw, 2.4rem);
  line-height: 1;
}

.editor-page-shell .hero-copy {
  display: none;
}

.editor-page-shell .hero::after {
  width: calc(140px * var(--ui-scale));
  height: calc(140px * var(--ui-scale));
  bottom: calc(-8px * var(--ui-scale));
}

.editor-page-shell .hero-card {
  padding: calc(12px * var(--ui-scale));
  gap: calc(8px * var(--ui-scale));
}

.editor-hero-side {
  display: grid;
  gap: calc(10px * var(--ui-scale));
  min-width: min(100%, calc(520px * var(--ui-scale)));
}

.editor-wall-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: calc(10px * var(--ui-scale));
  flex-wrap: wrap;
}

.editor-wall-nav-position {
  min-width: calc(136px * var(--ui-scale));
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted);
}

.editor-page-shell .metric {
  padding: calc(10px * var(--ui-scale)) calc(12px * var(--ui-scale));
  border-radius: calc(14px * var(--ui-scale));
}

.editor-page-shell .metric-label {
  margin-bottom: calc(3px * var(--ui-scale));
  font-size: 0.72rem;
}

.editor-page-shell .project-hero-option {
  padding: calc(12px * var(--ui-scale)) calc(14px * var(--ui-scale));
  border-radius: calc(16px * var(--ui-scale));
}

.editor-page-shell .project-hero-option-copy strong {
  font-size: 0.94rem;
}

.editor-page-shell .project-hero-switch-track {
  width: calc(56px * var(--ui-scale));
  height: calc(32px * var(--ui-scale));
}

.editor-page-shell .project-hero-switch-thumb {
  width: calc(22px * var(--ui-scale));
  height: calc(22px * var(--ui-scale));
}

.editor-page-shell .project-hero-switch input:checked + .project-hero-switch-track .project-hero-switch-thumb {
  transform: translateX(calc(24px * var(--ui-scale)));
}

.editor-workspace .panel {
  padding: calc(16px * var(--ui-scale));
  border-radius: calc(18px * var(--ui-scale));
}

.legend {
  display: flex;
  gap: calc(10px * var(--ui-scale));
  flex-wrap: wrap;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: calc(8px * var(--ui-scale));
  background: rgba(255, 255, 255, 0.75);
  border-radius: 999px;
  padding: calc(6px * var(--ui-scale)) calc(10px * var(--ui-scale));
  font-size: 0.84rem;
}

.swatch {
  width: calc(14px * var(--ui-scale));
  height: calc(14px * var(--ui-scale));
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.12);
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--panel-border);
  border-radius: var(--card-radius);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.attached-column-row {
  background: rgba(47, 111, 174, 0.06);
}

.table-note {
  margin-top: 0.35rem;
  font-size: 0.75rem;
  color: var(--brand-blue);
  font-weight: 600;
}

#project-list-body td:last-child {
  width: 220px;
}

.row-action {
  padding: calc(7px * var(--ui-scale)) calc(16px * var(--ui-scale));
  min-height: calc(34px * var(--ui-scale));
  font-size: 0.82rem;
}

.row-action-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.danger-action {
  color: #bf3b20;
  background: rgba(191, 59, 32, 0.08);
}

.danger-action:hover {
  background: rgba(191, 59, 32, 0.14);
}

table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
}

th,
td {
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid var(--panel-border);
  font-size: 0.88rem;
}

th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: rgba(250, 251, 253, 0.96);
  backdrop-filter: saturate(180%) blur(8px);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 600;
  border-bottom-color: var(--panel-border-strong);
}

tbody tr {
  transition: background 160ms var(--ease-out);
}

tbody tr:hover {
  background: var(--accent-soft);
}

tbody tr:last-child td {
  border-bottom: 0;
}

.table-empty {
  text-align: center;
  color: var(--muted);
  padding: 28px 16px;
}

.bom-manual-toolbar {
  display: grid;
  grid-template-columns: minmax(180px, 0.9fr) minmax(280px, 2fr) minmax(110px, 0.6fr) minmax(180px, 1fr) auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 16px;
}

.bom-view-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 16px;
}

.bom-toggle-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid rgba(25, 25, 25, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
  font-weight: 600;
}

.bom-toggle-label input {
  width: 18px;
  height: 18px;
  margin: 0;
}

.bom-quantity-cell {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.bom-quantity-button {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(25, 25, 25, 0.12);
  background: rgba(255, 255, 255, 0.95);
  color: var(--text);
  font-size: 1rem;
  line-height: 1;
}

.bom-quantity-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.bom-source-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.bom-source-badge.automatic {
  background: rgba(47, 111, 174, 0.1);
  color: var(--brand-blue);
}

.bom-source-badge.manual {
  background: rgba(191, 59, 32, 0.1);
  color: #bf3b20;
}

.bom-source-helper {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
}

.bom-multi-source {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
}

.bom-multi-source-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  color: inherit;
}

.bom-multi-source-toggle:hover .bom-multi-source-icon {
  background: rgba(47, 111, 174, 0.18);
}

.bom-multi-source-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: rgba(47, 111, 174, 0.1);
  color: var(--brand-blue);
  font-weight: 700;
  font-size: 0.85rem;
  line-height: 1;
}

.bom-multi-source-list {
  list-style: none;
  margin: 0;
  padding: 4px 0 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bom-multi-source-list li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.bom-multi-source-qty {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.ghost-button.small {
  padding: 8px 12px;
  font-size: 0.86rem;
}

.subtable-row td {
  padding-top: 0;
  background: rgba(47, 111, 174, 0.03);
}

.subtable-card {
  border: 1px solid rgba(47, 111, 174, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  padding: 14px 16px;
}

.subtable-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.subtable-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--brand-blue);
  margin-bottom: 0;
}

.door-height-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.door-height-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-weight: 600;
}

.checkbox-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
}

.checkbox-label input {
  width: 20px;
  height: 20px;
}

.column-config-table {
  min-width: 1120px;
}

.column-config-row td {
  vertical-align: top;
}

.column-cell-stack {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
}

.compact-note {
  font-size: 0.74rem;
  line-height: 1.3;
}

.column-size-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.column-size-inline span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.8rem;
  padding: 0.2rem 0.55rem;
  border: 1px solid rgba(47, 111, 174, 0.12);
  border-radius: 999px;
  background: rgba(238, 245, 255, 0.7);
  color: var(--brand-blue);
  font-size: 0.78rem;
  font-weight: 700;
}

.column-doors-toolbar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.compact-door-count-input {
  width: 4.4rem;
  min-width: 4.4rem;
}

.compact-door-height-list {
  grid-template-columns: 1fr;
  gap: 0.25rem;
}

.compact-door-height-item {
  display: grid;
  grid-template-columns: minmax(3.4rem, auto) minmax(4.5rem, 6rem) auto;
  align-items: center;
  gap: 0.35rem;
  padding: 0.32rem 0.45rem;
  border: 1px solid rgba(47, 111, 174, 0.12);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.92);
}

.compact-door-height-item span {
  font-size: 0.74rem;
  white-space: nowrap;
}

.compact-door-height-item input[type="number"] {
  min-height: 2rem;
  padding: 0.3rem 0.55rem;
  margin: 0;
}

.compact-checkbox-label {
  min-height: 0;
  gap: 0.35rem;
  justify-content: flex-end;
  padding: 0;
  border: 0;
  background: transparent;
}

.compact-checkbox-label span {
  font-size: 0.72rem;
  font-weight: 700;
}

.compact-checkbox-label input {
  width: 16px;
  height: 16px;
}

.compact-row-actions {
  gap: 0.35rem;
}

.compact-row-actions .row-action {
  min-width: 0;
}

.finance-inline-toggle {
  align-self: end;
}

.finance-inline-toggle-compact {
  min-height: 3.2rem;
  justify-content: flex-start;
  align-items: center;
  align-self: stretch;
  padding: 0.75rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.92);
}

.finance-filter-toolbar {
  display: grid;
  grid-template-columns: minmax(10rem, 13rem) minmax(10rem, 13rem) minmax(14rem, 1fr) minmax(12rem, auto);
  gap: 0.75rem;
  align-items: end;
}

.finance-filter-toolbar-secondary {
  grid-template-columns: repeat(2, minmax(12rem, 16rem));
  margin-top: 0.75rem;
}

.finance-entities-block {
  margin-top: 0.35rem;
}

.finance-entities-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.55rem;
}

.finance-division-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 0.55rem;
}

.finance-division-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  min-height: 3.55rem;
  padding: 0.72rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 0.95rem;
  background: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.finance-division-option:hover {
  border-color: rgba(31, 89, 163, 0.22);
  box-shadow: 0 10px 24px rgba(14, 28, 56, 0.06);
}

.finance-division-option-selected {
  border-color: rgba(31, 89, 163, 0.28);
  background: rgba(245, 250, 255, 0.96);
}

.finance-division-option-main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  min-width: 0;
}

.finance-division-option-name {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}

.finance-division-option-meta {
  font-size: 0.79rem;
  color: var(--muted);
  line-height: 1.2;
}

.finance-division-option-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.finance-division-option input {
  width: 1.05rem;
  height: 1.05rem;
  margin: 0;
}

.iso-analysis-grid,
.iso-trend-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.iso-ai-snapshot-grid,
.iso-ai-insight-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.panel-subsection {
  border: 1px solid rgba(23, 23, 23, 0.08);
  border-radius: 1.1rem;
  background: rgba(255, 255, 255, 0.94);
  padding: 0.8rem;
}

.panel-subsection h3 {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
}

.rich-text-block {
  border: 1px solid rgba(23, 23, 23, 0.08);
  border-radius: 1.1rem;
  background: rgba(255, 255, 255, 0.94);
  padding: 0.95rem 1rem;
  color: var(--ink);
}

.rich-text-block p {
  margin: 0;
  line-height: 1.55;
}

.bullet-list {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.45rem;
}

.bullet-list li {
  color: var(--ink);
  line-height: 1.45;
}

.table-row-meta {
  margin-top: 0.2rem;
  font-size: 0.82rem;
  color: var(--muted);
}

@media (max-width: 1200px) {
  .finance-filter-toolbar {
    grid-template-columns: repeat(2, minmax(14rem, 1fr));
  }
}

@media (max-width: 760px) {
  .finance-filter-toolbar,
  .finance-filter-toolbar-secondary,
  .finance-division-list,
  .iso-analysis-grid,
  .iso-trend-grid,
  .iso-ai-snapshot-grid,
  .iso-ai-insight-grid {
    grid-template-columns: 1fr;
  }

  .finance-entities-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

.color-chip {
  width: 22px;
  height: 22px;
  display: inline-block;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.16);
  vertical-align: middle;
}

.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.pagination-meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.pagination-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pagination-button {
  min-width: 42px;
  padding: 10px 14px;
}

.pagination-button-active {
  background: var(--accent);
  color: #fff;
}

@media (max-width: 1100px) {
  .editor-frame,
  .hero,
  .workspace,
  .topview-workspace {
    grid-template-columns: 1fr;
  }

  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .side-menu {
    position: static;
    width: 100%;
    margin-top: 10px;
  }

  .side-menu-collapsed {
    width: 100%;
  }

  .side-menu-collapsed .side-menu-item,
  .side-menu-collapsed .side-menu-toggle {
    justify-content: flex-start;
  }

  .side-menu-collapsed .side-menu-item {
    color: var(--accent-dark);
    font-size: 1rem;
    padding-left: 14px;
    padding-right: 14px;
  }

  .side-menu-collapsed .side-menu-label {
    display: inline;
  }

  .topview-sidebar-panel {
    position: static;
  }

}

@media (max-width: 1440px) {
  .editor-frame {
    width: min(calc(100vw - 18px), 100%);
    gap: 12px;
  }

  .page-shell {
    width: min(calc(100vw - 24px), 100%);
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .hero-card {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .workspace {
    grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
    gap: 16px;
  }

  .side-menu {
    width: 198px;
  }

  .filter-toolbar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .editor-frame,
  .page-shell {
    width: min(100vw - 20px, 100%);
    margin: 10px auto 24px;
  }

  .editor-page-shell {
    margin: 0 0 24px;
  }

  .editor-hero-side {
    min-width: 0;
  }

  .editor-wall-nav {
    justify-content: flex-start;
  }

  .hero-card,
  .grid-two,
  .grid-three,
  .filter-toolbar,
  .bom-view-toolbar,
  .bom-manual-toolbar,
  .cards,
  .actions {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .section-heading,
  .drawing-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .icon-actions {
    grid-template-columns: 1fr;
  }

  .toolbar-tool-compact {
    max-width: none;
  }

  .toolbar-tool-row {
    flex-wrap: wrap;
  }

  .project-hero-option {
    flex-direction: column;
    align-items: stretch;
  }

  .project-hero-switch {
    align-self: flex-end;
  }

  .icon-actions {
    align-self: flex-start;
  }

}

.side-menu-section-label {
  color: #6b7890;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin: 16px 0 4px;
  padding: 0 14px;
  text-transform: uppercase;
}

.app-launcher-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.app-card {
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--panel-border);
  border-radius: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  display: grid;
  gap: 16px;
  grid-template-columns: 56px minmax(0, 1fr);
  min-height: 168px;
  padding: 24px;
  text-align: left;
  transition: transform 260ms var(--ease-out), box-shadow 260ms var(--ease-out), border-color 260ms var(--ease-out), background 260ms var(--ease-out);
}

.app-card:hover {
  border-color: var(--panel-border-strong);
  box-shadow: var(--shadow-lifted);
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.92);
}

.app-card:active {
  transform: translateY(-1px);
  transition-duration: 120ms;
}

.app-card-icon {
  align-items: center;
  background: linear-gradient(135deg, #3b8bff 0%, #0044CE 50%, #0437A0 100%);
  border-radius: 16px;
  color: #fff;
  display: inline-flex;
  font-size: 1rem;
  font-weight: 700;
  height: 56px;
  justify-content: center;
  width: 56px;
  box-shadow: 0 8px 18px rgba(0, 68, 206, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  letter-spacing: 0.02em;
}

.app-card-copy {
  display: grid;
  gap: 6px;
}

.app-card-copy strong {
  color: var(--text);
  font-size: 1.2rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.app-card-copy span:last-child {
  color: var(--muted);
  line-height: 1.5;
  font-size: 0.88rem;
}

.app-card-eyebrow {
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.training-topbar {
  padding: 22px 26px;
  border-radius: 28px;
  color: #ffffff;
  background:
    radial-gradient(circle at 85% 20%, rgba(28, 175, 146, 0.18), transparent 22%),
    linear-gradient(135deg, #11397e 0%, #1f59ba 56%, #184c98 100%);
  box-shadow: 0 24px 64px rgba(17, 40, 91, 0.16);
}

.training-topbar .brand-row {
  align-items: center;
  justify-content: space-between;
}

.training-topbar-copy {
  flex: 1;
  display: grid;
  gap: 8px;
}

.training-topbar-copy h1,
.training-topbar-copy p {
  margin: 0;
}

.training-topbar-copy p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.88);
}

.training-topbar-metrics {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.training-topbar-pill {
  display: grid;
  gap: 2px;
  min-width: 116px;
  padding: 11px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.training-topbar-pill span {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.74);
}

.training-topbar-pill strong {
  font-size: 1rem;
  color: #ffffff;
}

.training-intro-panel {
  margin-top: 18px;
}

.training-intro-panel h2 {
  margin: 6px 0 10px;
}

.training-library-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.training-dashboard-shell {
  padding: 24px;
}

.training-dashboard-hero {
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.85fr);
  align-items: start;
}

.training-dashboard-copy {
  display: grid;
  gap: 16px;
}

.training-onboarding-callout {
  padding: 16px 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(23, 74, 173, 0.06), rgba(28, 175, 146, 0.05));
  border: 1px solid rgba(23, 74, 173, 0.09);
  color: var(--text);
}

.training-onboarding-checklist {
  display: grid;
  gap: 10px;
}

.training-onboarding-item {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.training-onboarding-icon {
  color: var(--brand-teal);
  font-size: 0.8rem;
  line-height: 1.6;
}

.training-dashboard-score {
  display: grid;
  gap: 14px;
}

.training-score-ring {
  display: grid;
  place-items: center;
  gap: 6px;
  min-height: 180px;
  padding: 24px;
  border-radius: 28px;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.95) 0 52%, transparent 52%),
    conic-gradient(from 180deg, var(--brand-blue) 0deg, var(--brand-teal) 220deg, rgba(23, 74, 173, 0.14) 220deg 360deg);
  box-shadow: inset 0 0 0 10px rgba(255, 255, 255, 0.68), 0 18px 44px rgba(15, 36, 84, 0.08);
}

.training-score-ring strong {
  font-size: 2rem;
  color: var(--text);
}

.training-score-ring span {
  color: var(--muted);
  font-size: 0.82rem;
}

.training-score-meta {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.training-score-pill,
.training-dashboard-metric-card,
.training-completion-card,
.training-module-card,
.training-module-section-card,
.training-visual-card {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(23, 74, 173, 0.08);
  box-shadow: 0 20px 40px rgba(15, 36, 84, 0.07);
}

.training-score-pill {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 18px;
}

.training-score-pill span,
.training-dashboard-metric-card span,
.training-mini-card span,
.training-completion-meta span,
.training-visual-type {
  color: var(--muted);
  font-size: 0.78rem;
}

.training-dashboard-metrics {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.training-dashboard-metric-card {
  display: grid;
  gap: 4px;
  padding: 18px;
  border-radius: 20px;
}

.training-dashboard-metric-card strong {
  font-size: 1.2rem;
  color: var(--text);
}

.training-dashboard-metric-card small,
.training-completion-card p,
.training-empty-state p,
.training-module-card p {
  margin: 0;
  color: var(--muted);
}

.training-progress-bar-shell {
  display: grid;
  gap: 8px;
}

.training-progress-bar {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(23, 74, 173, 0.09);
}

.training-progress-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-teal));
}

.training-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.training-badge-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(28, 175, 146, 0.12);
  color: var(--brand-blue);
  font-size: 0.8rem;
  font-weight: 700;
}

.training-badge-empty {
  color: var(--muted);
  font-size: 0.82rem;
}

.training-completion-list {
  display: grid;
  gap: 14px;
}

.training-completion-card {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
  padding: 18px 20px;
  border-radius: 22px;
}

.training-completion-card h3 {
  margin: 6px 0 8px;
}

.training-completion-meta {
  display: grid;
  gap: 4px;
  justify-items: end;
  text-align: right;
}

.training-completion-meta strong {
  font-size: 1.05rem;
  color: var(--text);
}

.training-empty-state {
  display: grid;
  gap: 8px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(248, 251, 255, 0.96);
  border: 1px dashed rgba(23, 74, 173, 0.14);
}

.training-empty-state strong {
  color: var(--text);
}

.training-module-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.training-module-card {
  display: grid;
  gap: 14px;
  padding: 20px;
  border-radius: 24px;
}

.training-module-card-complete {
  background: linear-gradient(180deg, rgba(28, 175, 146, 0.07), rgba(255, 255, 255, 0.98));
}

.training-module-card h3,
.training-module-section-card h4,
.training-visual-card strong {
  margin: 0;
  color: var(--text);
}

.training-module-icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(23, 74, 173, 0.12), rgba(28, 175, 146, 0.1));
  color: var(--brand-blue);
  font-size: 0.84rem;
  font-weight: 800;
}

.training-module-mini-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.training-mini-card {
  display: grid;
  gap: 2px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(248, 251, 255, 0.96);
  border: 1px solid rgba(23, 74, 173, 0.08);
}

.training-mini-card strong {
  color: var(--text);
}

.training-module-visuals {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.training-module-visual-thumb {
  display: grid;
  gap: 6px;
  min-height: 84px;
  padding: 14px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(244, 248, 255, 0.96), rgba(255, 255, 255, 0.96)),
    linear-gradient(135deg, rgba(23, 74, 173, 0.06), rgba(28, 175, 146, 0.06));
  border: 1px solid rgba(23, 74, 173, 0.08);
}

.training-module-visual-thumb span {
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.training-module-section-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 22px;
}

.training-bullet-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.training-flow-diagram {
  display: grid;
  gap: 10px;
}

.training-flow-step {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(23, 74, 173, 0.08);
}

.training-flow-step span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(23, 74, 173, 0.1);
  color: var(--brand-blue);
  font-size: 0.78rem;
  font-weight: 700;
}

.training-visual-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.training-visual-card {
  display: grid;
  gap: 10px;
  padding: 18px;
  border-radius: 20px;
}

.training-visual-placeholder {
  display: grid;
  place-items: center;
  min-height: 144px;
  padding: 18px;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(244, 248, 255, 0.98), rgba(255, 255, 255, 0.98)),
    radial-gradient(circle at top right, rgba(28, 175, 146, 0.08), transparent 34%);
  border: 1px dashed rgba(23, 74, 173, 0.14);
  color: var(--muted);
  text-align: center;
  font-size: 0.84rem;
}

.training-card,
.training-meta-card,
.training-chapter-card,
.training-content-card {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(23, 74, 173, 0.08);
  border-radius: 24px;
  box-shadow: 0 20px 42px rgba(15, 36, 84, 0.07);
}

.training-card {
  display: grid;
  gap: 14px;
  padding: 20px;
}

.training-card-header,
.training-stat-row,
.training-chapter-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.training-card-header strong {
  display: block;
  color: var(--text);
  font-size: 1.05rem;
}

.training-card-header span,
.training-stat-row,
.training-complete-toggle span,
.training-chapter-index {
  color: var(--muted);
  font-size: 0.82rem;
}

.training-duration-pill,
.training-tag,
.training-source-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.training-duration-pill {
  background: rgba(23, 74, 173, 0.08);
  color: var(--brand-blue);
}

.training-tag-list,
.training-source-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.training-tag,
.training-source-chip {
  background: rgba(28, 175, 146, 0.1);
  color: var(--brand-blue);
}

.training-learner-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 320px 1fr;
}

.training-content-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.training-progress-panel {
  display: grid;
  gap: 16px;
  align-self: start;
  position: sticky;
  top: 18px;
}

.training-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.training-panel-header h2,
.training-content-card h3 {
  margin: 6px 0 0;
}

.training-course-meta {
  display: grid;
  gap: 12px;
}

.training-meta-card {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
}

.training-meta-card span {
  color: var(--muted);
  font-size: 0.78rem;
}

.training-topic-list,
.training-course-chapter-list,
.training-quiz-list,
.training-builder-form {
  display: grid;
  gap: 14px;
}

.training-topic-item {
  appearance: none;
  text-align: left;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(248, 251, 255, 0.96);
  border: 1px solid rgba(23, 74, 173, 0.09);
}

.training-topic-item-active {
  background: linear-gradient(180deg, rgba(23, 74, 173, 0.1), rgba(28, 175, 146, 0.06));
  border-color: rgba(23, 74, 173, 0.22);
  box-shadow: inset 0 0 0 1px rgba(23, 74, 173, 0.08);
}

.training-topic-item-complete {
  background: rgba(28, 175, 146, 0.1);
  border-color: rgba(28, 175, 146, 0.16);
}

.training-topic-step,
.training-topic-state {
  font-size: 0.76rem;
  color: var(--muted);
  font-weight: 700;
}

.training-topic-copy {
  display: grid;
  gap: 2px;
}

.training-topic-copy strong {
  color: var(--text);
  font-size: 0.9rem;
}

.training-topic-copy small {
  color: var(--muted);
}

.training-main-panel {
  display: grid;
  gap: 18px;
}

.training-hero-card {
  padding: 22px;
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(28, 175, 146, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 248, 255, 0.96));
  border: 1px solid rgba(23, 74, 173, 0.09);
}

.training-content-card {
  display: grid;
  gap: 16px;
  padding: 20px;
}

.training-chapter-card {
  display: grid;
  gap: 16px;
  padding: 20px;
}

.training-detail-block {
  display: grid;
  gap: 10px;
}

.training-study-note {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(248, 251, 255, 0.96);
  border: 1px solid rgba(23, 74, 173, 0.08);
}

.training-study-note strong,
.training-study-note ol,
.training-study-note ul {
  margin: 0;
}

.training-study-note ol,
.training-study-note ul {
  padding-left: 18px;
}

.training-detail-block h4,
.training-detail-block ul {
  margin: 0;
}

.training-detail-block ul {
  padding-left: 18px;
}

.training-complete-toggle,
.training-quiz-option {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
}

.training-quiz-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(248, 251, 255, 0.96);
  border: 1px solid rgba(23, 74, 173, 0.08);
}

.training-quiz-options {
  display: grid;
  gap: 8px;
}

.training-builder-layout {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.training-builder-sidebar {
  width: 300px;
  flex: 0 0 300px;
}

.training-json-editor {
  min-height: 580px;
  font-family: "SFMono-Regular", SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.82rem;
  line-height: 1.45;
}

.saved-item.selected {
  border-color: rgba(23, 74, 173, 0.22);
  background: rgba(244, 248, 255, 0.98);
}

@media (max-width: 1100px) {
  .training-dashboard-hero,
  .training-learner-grid,
  .training-builder-layout {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .training-dashboard-metrics,
  .training-bullet-grid,
  .training-content-grid {
    grid-template-columns: 1fr;
  }

  .training-score-meta,
  .training-module-mini-grid,
  .training-module-visuals {
    grid-template-columns: 1fr;
  }

  .training-progress-panel {
    position: static;
  }

  .training-builder-sidebar {
    width: 100%;
    flex-basis: auto;
  }
}

.subpage-nav {
  display: none;
}

.sales-concept-page {
  display: grid;
  gap: calc(14px * var(--ui-scale));
}

body[data-embed="1"] {
  background: transparent;
}

body[data-embed="1"] .editor-frame {
  width: 100%;
  margin: 0;
  display: block;
}

body[data-embed="1"] .side-menu,
body[data-embed="1"] .brand-row,
body[data-embed="1"] .sales-configurator-hero {
  display: none;
}

body[data-embed="1"] .page-shell {
  width: 100%;
  margin: 0;
}

body[data-embed="1"] .sales-concept-page {
  gap: calc(12px * var(--ui-scale));
}

.sales-concept-flow,
.sales-concept-catalog,
.sales-concept-builder-panel,
.sales-concept-summary-grid .panel {
  padding: var(--panel-padding);
}

.sales-concept-step-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: calc(12px * var(--ui-scale));
}

.sales-step-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: calc(10px * var(--ui-scale));
  align-items: start;
  padding: calc(14px * var(--ui-scale));
  border-radius: calc(16px * var(--ui-scale));
  border: 1px solid rgba(47, 111, 174, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(246, 250, 255, 0.92) 100%);
}

.sales-step-card-active {
  border-color: rgba(53, 195, 165, 0.42);
  box-shadow: inset 0 0 0 1px rgba(53, 195, 165, 0.18);
}

.sales-step-card p {
  margin: 4px 0 0;
  color: var(--muted);
}

.sales-step-index {
  width: calc(28px * var(--ui-scale));
  height: calc(28px * var(--ui-scale));
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(47, 111, 174, 0.12);
  color: var(--brand-blue);
  font-weight: 700;
}

.sales-choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: calc(8px * var(--ui-scale));
  margin-top: calc(10px * var(--ui-scale));
}

.sales-choice-pill {
  position: relative;
  cursor: pointer;
}

.sales-choice-pill input {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.sales-choice-pill span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: calc(118px * var(--ui-scale));
  min-height: calc(42px * var(--ui-scale));
  padding: 0 calc(16px * var(--ui-scale));
  border-radius: 999px;
  border: 1px solid rgba(47, 111, 174, 0.16);
  background: #fff;
  color: var(--brand-blue);
  font-weight: 600;
}

.sales-choice-pill input:checked + span {
  background: linear-gradient(180deg, rgba(47, 111, 174, 0.14) 0%, rgba(53, 195, 165, 0.12) 100%);
  border-color: rgba(53, 195, 165, 0.42);
  color: #103b63;
}

.sales-concept-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: calc(14px * var(--ui-scale));
}

.sales-luggage-catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(calc(190px * var(--ui-scale)), 1fr));
  gap: calc(12px * var(--ui-scale));
}

.sales-luggage-card,
.sales-builder-item {
  display: grid;
  gap: calc(10px * var(--ui-scale));
  padding: calc(12px * var(--ui-scale));
  border-radius: calc(18px * var(--ui-scale));
  border: 1px solid rgba(47, 111, 174, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(243, 248, 255, 0.96) 100%);
  box-shadow: 0 12px 30px rgba(22, 22, 22, 0.05);
}

.sales-luggage-card {
  min-height: calc(300px * var(--ui-scale));
}

.sales-model-visual {
  width: 100%;
  height: calc(210px * var(--ui-scale));
  border-radius: calc(14px * var(--ui-scale));
  border: 1px solid rgba(47, 111, 174, 0.08);
  background:
    linear-gradient(180deg, #f9fbff 0%, #eef4fd 100%);
  position: relative;
  overflow: hidden;
  padding: calc(10px * var(--ui-scale));
  display: flex;
  align-items: center;
  justify-content: center;
}

.sales-model-visual--builder {
  height: calc(146px * var(--ui-scale));
}

.sales-model-svg {
  width: 100%;
  height: 100%;
}

.sales-luggage-card-copy,
.sales-builder-item-copy {
  display: grid;
  gap: calc(6px * var(--ui-scale));
}

.sales-luggage-card-copy p,
.sales-builder-item-copy p {
  margin: 0;
  color: var(--muted);
}

.sales-luggage-card-head,
.sales-builder-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: calc(10px * var(--ui-scale));
}

.sales-luggage-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: calc(6px * var(--ui-scale));
}

.sales-mini-chip,
.sales-brochure-chip,
.sales-builder-badge,
.sales-builder-system-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: calc(28px * var(--ui-scale));
  padding: 0 calc(10px * var(--ui-scale));
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
}

.sales-mini-chip,
.sales-brochure-chip {
  background: rgba(47, 111, 174, 0.08);
  color: var(--brand-blue);
}

.sales-builder-badge,
.sales-builder-system-pill {
  background: rgba(53, 195, 165, 0.14);
  color: #0f6554;
}

.sales-luggage-builder {
  min-height: calc(360px * var(--ui-scale));
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: calc(10px * var(--ui-scale));
  overflow-x: auto;
  padding: calc(30px * var(--ui-scale)) calc(16px * var(--ui-scale)) calc(14px * var(--ui-scale));
  border-radius: calc(18px * var(--ui-scale));
  border: 1px dashed rgba(47, 111, 174, 0.18);
  background: linear-gradient(180deg, rgba(248, 251, 255, 0.98) 0%, rgba(240, 246, 254, 0.95) 100%);
}

.sales-builder-wall {
  display: flex;
  align-items: flex-end;
  gap: 0;
  margin: 0 auto;
  padding: 0;
}

.sales-builder-col {
  position: relative;
  width: calc(120px * var(--ui-scale));
  min-width: calc(120px * var(--ui-scale));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  cursor: grab;
}

.sales-builder-col:active {
  cursor: grabbing;
}

.sales-builder-col-svg {
  display: block;
  width: 100%;
  height: auto;
}

.sales-builder-col-toolbar {
  position: absolute;
  top: calc(-34px * var(--ui-scale));
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: calc(2px * var(--ui-scale));
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease-out;
  background: rgba(255, 255, 255, 0.98);
  padding: calc(4px * var(--ui-scale)) calc(6px * var(--ui-scale));
  border-radius: calc(10px * var(--ui-scale));
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 calc(6px * var(--ui-scale)) calc(18px * var(--ui-scale)) rgba(0, 0, 0, 0.08);
  white-space: nowrap;
  z-index: 2;
}

.sales-builder-col:hover .sales-builder-col-toolbar,
.sales-builder-col:focus-within .sales-builder-col-toolbar {
  opacity: 1;
  pointer-events: auto;
}

.sales-builder-col-toolbar button {
  border: 0;
  background: transparent;
  padding: calc(2px * var(--ui-scale)) calc(6px * var(--ui-scale));
  font-size: 0.78rem;
  cursor: pointer;
  color: var(--brand-blue);
  border-radius: calc(6px * var(--ui-scale));
  line-height: 1;
}

.sales-builder-col-toolbar button:hover {
  background: rgba(47, 111, 174, 0.12);
}

.sales-builder-col-toolbar--terminal {
  opacity: 1;
  pointer-events: none;
  color: #0f6554;
  font-size: 0.74rem;
  font-weight: 600;
  padding: calc(3px * var(--ui-scale)) calc(10px * var(--ui-scale));
  background: rgba(53, 195, 165, 0.16);
  border-color: rgba(53, 195, 165, 0.3);
}

.sales-builder-col-drop {
  outline: 2px solid rgba(53, 195, 165, 0.36);
  outline-offset: 2px;
  border-radius: calc(6px * var(--ui-scale));
}

.sales-builder-summary {
  list-style: none;
  margin: calc(14px * var(--ui-scale)) 0 0 0;
  padding: 0;
  display: grid;
  gap: calc(6px * var(--ui-scale));
}

.sales-builder-summary-row {
  display: grid;
  grid-template-columns: calc(62px * var(--ui-scale)) minmax(0, 1fr) auto;
  align-items: center;
  gap: calc(12px * var(--ui-scale));
  padding: calc(8px * var(--ui-scale)) calc(12px * var(--ui-scale));
  border-radius: calc(10px * var(--ui-scale));
  background: rgba(47, 111, 174, 0.05);
}

.sales-builder-summary-row strong {
  color: var(--brand-blue);
}

.sales-builder-summary-text {
  display: flex;
  flex-direction: column;
  gap: calc(2px * var(--ui-scale));
  min-width: 0;
}

.sales-builder-summary-text span {
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sales-builder-summary-text small {
  color: var(--muted);
  font-size: 0.78rem;
}

.sales-builder-summary-price {
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

.sales-builder-summary-auto {
  color: #0f6554;
  font-weight: 600;
  font-size: 0.82rem;
}

.sales-builder-summary-empty {
  padding: calc(10px * var(--ui-scale)) calc(12px * var(--ui-scale));
  border-radius: calc(10px * var(--ui-scale));
  background: rgba(47, 111, 174, 0.04);
  color: var(--muted);
  text-align: center;
}

.sales-builder-empty {
  width: 100%;
  min-height: calc(240px * var(--ui-scale));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(20px * var(--ui-scale));
  border-radius: calc(16px * var(--ui-scale));
  border: 1px dashed rgba(47, 111, 174, 0.16);
  color: var(--muted);
  text-align: center;
}

.sales-builder-item {
  width: calc(220px * var(--ui-scale));
  min-width: calc(220px * var(--ui-scale));
  grid-template-columns: 1fr;
  align-content: start;
  justify-items: stretch;
  text-align: left;
}

.sales-builder-item-terminal {
  border-color: rgba(53, 195, 165, 0.24);
  background: linear-gradient(180deg, rgba(246, 255, 252, 0.98) 0%, rgba(238, 251, 247, 0.95) 100%);
}

.sales-builder-item-drop {
  outline: 2px solid rgba(53, 195, 165, 0.36);
  outline-offset: 2px;
}

.sales-builder-item-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: calc(6px * var(--ui-scale));
}

.sales-terminal-visual {
  height: calc(120px * var(--ui-scale));
  border-radius: calc(14px * var(--ui-scale));
  display: grid;
  grid-template-columns: minmax(0, 1fr) calc(62px * var(--ui-scale));
  align-items: stretch;
  overflow: hidden;
  border: 1px solid rgba(47, 111, 174, 0.12);
}

.sales-terminal-col {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.sales-terminal-col-main {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(245, 249, 255, 0.96) 100%);
  color: var(--brand-blue);
}

.sales-terminal-col-smarty {
  background: linear-gradient(180deg, rgba(47, 111, 174, 0.96) 0%, rgba(29, 78, 138, 0.96) 100%);
  color: #ffffff;
}

.sales-luggage-remove-zone {
  margin-top: calc(10px * var(--ui-scale));
  min-height: calc(54px * var(--ui-scale));
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: calc(14px * var(--ui-scale));
  border: 1px dashed rgba(47, 111, 174, 0.22);
  background: rgba(251, 238, 230, 0.72);
  color: #8f4d22;
  font-weight: 600;
}

.sales-luggage-remove-zone-active {
  background: rgba(251, 224, 210, 0.96);
}

.sales-concept-summary-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: calc(14px * var(--ui-scale));
}

.sales-summary-list,
.sales-talking-points {
  display: grid;
  gap: calc(8px * var(--ui-scale));
}

.sales-summary-row,
.sales-talking-point {
  display: grid;
  gap: calc(4px * var(--ui-scale));
  padding: calc(12px * var(--ui-scale));
  border-radius: calc(14px * var(--ui-scale));
  border: 1px solid rgba(47, 111, 174, 0.08);
  background: rgba(255, 255, 255, 0.86);
}

.sales-summary-row {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.sales-summary-row span {
  color: var(--muted);
}

.sales-price-line {
  font-size: 0.96rem;
  font-weight: 700;
  color: #103b63;
}

.sales-talking-point strong {
  color: var(--brand-blue);
}

.advisor-configurator-shell {
  padding: calc(18px * var(--ui-scale));
}

.advisor-configurator-frame {
  width: 100%;
  min-height: calc(1160px * var(--ui-scale));
  border: 0;
  border-radius: calc(18px * var(--ui-scale));
  background: transparent;
  display: block;
}

.sales-talking-point p {
  margin: 0;
}

@media (max-width: 1100px) {
  .sales-concept-layout,
  .sales-concept-summary-grid,
  .sales-concept-step-grid {
    grid-template-columns: 1fr;
  }

  .sales-builder-item {
    width: 100%;
    min-width: 0;
  }
}

.form-field {
  display: grid;
  gap: calc(4px * var(--ui-scale));
}

.form-field > span {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 500;
}

.advisor-page {
  display: grid;
  gap: calc(18px * var(--ui-scale));
}

.advisor-step {
  transition: opacity 0.2s ease-out;
}

.advisor-step-hidden {
  display: none;
}

.advisor-step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: calc(30px * var(--ui-scale));
  height: calc(30px * var(--ui-scale));
  border-radius: 999px;
  background: rgba(47, 111, 174, 0.1);
  color: var(--brand-blue);
  font-weight: 700;
  margin-right: calc(10px * var(--ui-scale));
}

.advisor-intake-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: calc(12px * var(--ui-scale));
  align-items: end;
}

.advisor-intake-actions {
  display: flex;
  justify-content: flex-end;
}

@media (max-width: 900px) {
  .advisor-intake-form {
    grid-template-columns: 1fr 1fr;
  }
  .advisor-intake-actions {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .advisor-intake-form {
    grid-template-columns: 1fr;
  }
}

.advisor-briefing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: calc(10px * var(--ui-scale));
  margin-top: calc(10px * var(--ui-scale));
}

@media (max-width: 1280px) {
  .advisor-briefing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .advisor-briefing-grid {
    grid-template-columns: 1fr;
  }
}

.advisor-briefing-card {
  padding: calc(12px * var(--ui-scale)) calc(14px * var(--ui-scale));
  border-radius: calc(12px * var(--ui-scale));
  border: 1px solid rgba(47, 111, 174, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(243, 248, 255, 0.96) 100%);
  position: relative;
  overflow: hidden;
  display: grid;
  gap: calc(4px * var(--ui-scale));
  align-content: start;
}

.advisor-briefing-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(3px * var(--ui-scale));
  background: var(--brand-blue);
  opacity: 0.75;
}

.advisor-briefing-card:nth-child(1)::before { background: #0ea5e9; }
.advisor-briefing-card:nth-child(2)::before { background: #14b8a6; }
.advisor-briefing-card:nth-child(3)::before { background: #f59e0b; }
.advisor-briefing-card:nth-child(4)::before { background: #8b5cf6; }

.advisor-briefing-card--wide {
  grid-column: auto;
}

.advisor-briefing-card h3 {
  margin: 0;
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.advisor-briefing-card p {
  margin: 0;
  line-height: 1.4;
  font-size: 0.88rem;
}

.advisor-sector-wrap {
  margin-top: calc(14px * var(--ui-scale));
}

.advisor-sector-card {
  padding: calc(14px * var(--ui-scale)) calc(16px * var(--ui-scale));
  border-radius: calc(14px * var(--ui-scale));
  border: 1px solid rgba(53, 195, 165, 0.22);
  background: linear-gradient(180deg, rgba(243, 255, 251, 0.98) 0%, rgba(233, 250, 243, 0.96) 100%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: calc(18px * var(--ui-scale));
  row-gap: calc(10px * var(--ui-scale));
}

.advisor-sector-card > .advisor-sector-head {
  grid-column: 1 / -1;
}

.advisor-sector-card > .advisor-sector-rationale {
  grid-column: 1 / -1;
}

.advisor-sector-card > .advisor-sector-features {
  grid-column: 1;
}

.advisor-sector-card > .advisor-sector-tips {
  grid-column: 2;
}

@media (max-width: 1024px) {
  .advisor-sector-card {
    grid-template-columns: 1fr;
  }
  .advisor-sector-card > .advisor-sector-features,
  .advisor-sector-card > .advisor-sector-tips {
    grid-column: 1;
  }
}

.advisor-sector-card--manual {
  background: linear-gradient(180deg, rgba(255, 253, 245, 0.98) 0%, rgba(254, 249, 231, 0.96) 100%);
  border-color: rgba(217, 165, 35, 0.28);
}

.advisor-sector-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: calc(14px * var(--ui-scale));
}

.advisor-sector-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  color: #0f6554;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: calc(4px * var(--ui-scale));
}

.advisor-sector-head h3 {
  margin: 0 0 calc(4px * var(--ui-scale)) 0;
}

.advisor-sector-head p {
  margin: 0;
  color: var(--muted);
}

.advisor-sector-rationale {
  margin: 0;
  padding: calc(8px * var(--ui-scale)) calc(12px * var(--ui-scale));
  background: rgba(53, 195, 165, 0.1);
  border-radius: calc(10px * var(--ui-scale));
  font-style: italic;
  color: #0f6554;
}

.advisor-sector-features ul li,
.advisor-sector-tips p {
  font-size: 0.86rem;
  line-height: 1.35;
}

.advisor-sector-features h4,
.advisor-sector-tips h4 {
  margin: 0 0 calc(4px * var(--ui-scale)) 0;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  font-weight: 700;
}

.advisor-sector-features ul {
  margin: 0;
  padding-left: calc(18px * var(--ui-scale));
  display: grid;
  gap: calc(2px * var(--ui-scale));
}

.advisor-flow-grid {
  display: grid;
  gap: calc(18px * var(--ui-scale));
  margin-top: calc(10px * var(--ui-scale));
}

.advisor-flow-section {
  display: grid;
  gap: calc(10px * var(--ui-scale));
}

.advisor-flow-section-head {
  display: flex;
  align-items: center;
  gap: calc(10px * var(--ui-scale));
}

.advisor-flow-section-head h4 {
  margin: 0;
  font-size: 1rem;
  color: var(--text);
}

.advisor-flow-section-head--highlight {
  padding-bottom: calc(4px * var(--ui-scale));
}

.advisor-flow-section-pill {
  display: inline-flex;
  align-items: center;
  padding: calc(3px * var(--ui-scale)) calc(10px * var(--ui-scale));
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: linear-gradient(90deg, #f59e0b 0%, #ec4899 100%);
  color: #ffffff;
}

.advisor-flow-section-pill--muted {
  background: rgba(47, 111, 174, 0.1);
  color: var(--brand-blue);
  font-weight: 600;
}

.advisor-flow-grid-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(calc(240px * var(--ui-scale)), 1fr));
  gap: calc(12px * var(--ui-scale));
}

.advisor-common-flow-picker {
  display: grid;
  gap: calc(6px * var(--ui-scale));
  margin-top: calc(6px * var(--ui-scale));
}

.advisor-common-flow-row {
  display: grid;
  grid-template-columns: auto calc(40px * var(--ui-scale)) minmax(0, 1fr);
  align-items: center;
  gap: calc(10px * var(--ui-scale));
  padding: calc(10px * var(--ui-scale)) calc(12px * var(--ui-scale));
  border-radius: calc(10px * var(--ui-scale));
  border: 1px solid rgba(47, 111, 174, 0.12);
  background: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  transition: border-color 0.12s ease-out, background 0.12s ease-out;
}

.advisor-common-flow-row:hover {
  border-color: rgba(47, 111, 174, 0.3);
}

.advisor-common-flow-row.is-linked {
  border-color: rgba(245, 158, 11, 0.45);
  background: linear-gradient(180deg, rgba(255, 252, 233, 0.98) 0%, rgba(255, 248, 219, 0.96) 100%);
}

.advisor-common-flow-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: calc(36px * var(--ui-scale));
  height: calc(36px * var(--ui-scale));
  border-radius: calc(10px * var(--ui-scale));
  background: rgba(47, 111, 174, 0.08);
  font-size: calc(18px * var(--ui-scale));
}

.advisor-common-flow-body {
  display: grid;
  gap: calc(2px * var(--ui-scale));
  min-width: 0;
}

.advisor-common-flow-body strong {
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.advisor-common-flow-body em {
  font-style: normal;
  color: var(--muted);
  font-size: 0.84rem;
}

.advisor-flow-card {
  display: grid;
  grid-template-columns: calc(64px * var(--ui-scale)) minmax(0, 1fr);
  align-items: center;
  gap: calc(14px * var(--ui-scale));
  padding: calc(18px * var(--ui-scale));
  border-radius: calc(16px * var(--ui-scale));
  border: 1px solid rgba(47, 111, 174, 0.14);
  background: linear-gradient(180deg, #ffffff 0%, rgba(243, 248, 255, 0.96) 100%);
  cursor: pointer;
  text-align: left;
  position: relative;
  overflow: hidden;
  transition: transform 0.12s ease-out, box-shadow 0.12s ease-out, border-color 0.12s ease-out;
}

.advisor-flow-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(4px * var(--ui-scale));
  background: linear-gradient(180deg, #f59e0b 0%, #ec4899 100%);
  opacity: 0.35;
  transition: opacity 0.12s ease-out;
}

.advisor-flow-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 calc(14px * var(--ui-scale)) calc(28px * var(--ui-scale)) rgba(22, 22, 22, 0.08);
  border-color: rgba(47, 111, 174, 0.24);
}

.advisor-flow-card:hover::before {
  opacity: 0.7;
}

.advisor-flow-card.is-active {
  border-color: rgba(53, 195, 165, 0.5);
  box-shadow: 0 calc(14px * var(--ui-scale)) calc(30px * var(--ui-scale)) rgba(53, 195, 165, 0.2);
  background: linear-gradient(180deg, rgba(243, 255, 251, 0.98) 0%, rgba(233, 250, 243, 0.96) 100%);
}

.advisor-flow-card.is-active::before {
  background: #14b8a6;
  opacity: 1;
}

.advisor-flow-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(54px * var(--ui-scale));
  height: calc(54px * var(--ui-scale));
  border-radius: calc(12px * var(--ui-scale));
  background: rgba(47, 111, 174, 0.08);
  font-size: calc(26px * var(--ui-scale));
}

.advisor-flow-icon--large {
  width: calc(68px * var(--ui-scale));
  height: calc(68px * var(--ui-scale));
  font-size: calc(34px * var(--ui-scale));
}

.advisor-flow-body {
  display: grid;
  gap: calc(4px * var(--ui-scale));
  min-width: 0;
}

.advisor-flow-body strong {
  font-size: 1.05rem;
}

.advisor-flow-body em {
  font-style: normal;
  color: var(--brand-blue);
  font-weight: 500;
}

.advisor-flow-body span {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

.advisor-flow-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: calc(14px * var(--ui-scale));
  align-items: flex-start;
  margin-bottom: calc(18px * var(--ui-scale));
}

.advisor-flow-header h3 {
  margin: 0 0 calc(4px * var(--ui-scale)) 0;
}

.advisor-flow-header p {
  margin: 0;
  color: var(--muted);
}

.advisor-flow-tagline {
  color: var(--brand-blue);
  font-weight: 500;
}

.advisor-advice-section {
  padding: calc(18px * var(--ui-scale));
  border-radius: calc(16px * var(--ui-scale));
  border: 1px solid rgba(47, 111, 174, 0.1);
  background: #ffffff;
  margin-bottom: calc(12px * var(--ui-scale));
  position: relative;
  overflow: hidden;
}

.advisor-advice-section::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(4px * var(--ui-scale));
  background: linear-gradient(180deg, #0ea5e9 0%, #14b8a6 100%);
}

.advisor-advice-section--highlight {
  background: linear-gradient(180deg, rgba(255, 252, 233, 0.98) 0%, rgba(255, 248, 219, 0.96) 100%);
  border-color: rgba(217, 165, 35, 0.24);
}

.advisor-advice-section--highlight::before {
  background: linear-gradient(180deg, #f59e0b 0%, #ec4899 100%);
}

.advisor-advice-section h3 {
  margin: 0 0 calc(10px * var(--ui-scale)) 0;
  padding-left: calc(8px * var(--ui-scale));
}

.advisor-advice-section h3 {
  margin: 0 0 calc(10px * var(--ui-scale)) 0;
}

.advisor-advice-tips {
  margin: 0 0 calc(8px * var(--ui-scale)) 0;
  line-height: 1.5;
}

.advisor-advice-tips:last-child {
  margin-bottom: 0;
}

.advisor-bullet-list {
  margin: 0;
  padding-left: calc(20px * var(--ui-scale));
  display: grid;
  gap: calc(4px * var(--ui-scale));
}

.advisor-material-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: calc(10px * var(--ui-scale));
}

.advisor-material-list li {
  display: grid;
  gap: calc(2px * var(--ui-scale));
  padding: calc(10px * var(--ui-scale)) calc(14px * var(--ui-scale));
  border-radius: calc(10px * var(--ui-scale));
  background: rgba(47, 111, 174, 0.05);
}

.advisor-material-list strong {
  color: var(--brand-blue);
}

.advisor-material-list span {
  color: var(--muted);
  line-height: 1.4;
}

.advisor-hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(calc(230px * var(--ui-scale)), 1fr));
  gap: calc(12px * var(--ui-scale));
}

.advisor-hero-card {
  padding: calc(16px * var(--ui-scale));
  border-radius: calc(14px * var(--ui-scale));
  border: 1px solid rgba(47, 111, 174, 0.14);
  background: linear-gradient(180deg, #ffffff 0%, rgba(243, 248, 255, 0.96) 100%);
  display: grid;
  gap: calc(8px * var(--ui-scale));
  position: relative;
  overflow: hidden;
  transition: transform 0.12s ease-out, box-shadow 0.12s ease-out;
}

.advisor-hero-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: calc(3px * var(--ui-scale));
  background: linear-gradient(90deg, #2f6fae 0%, #14b8a6 100%);
}

.advisor-hero-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 calc(12px * var(--ui-scale)) calc(26px * var(--ui-scale)) rgba(22, 22, 22, 0.08);
}

.advisor-hero-card header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: calc(8px * var(--ui-scale));
}

.advisor-hero-card header strong {
  color: var(--brand-blue);
  font-size: 1.1rem;
}

.advisor-hero-card header span {
  color: var(--muted);
  font-size: 0.9rem;
  text-align: right;
}

.advisor-hero-card ul {
  margin: 0;
  padding-left: calc(18px * var(--ui-scale));
  display: grid;
  gap: calc(2px * var(--ui-scale));
  color: var(--muted);
  font-size: 0.9rem;
}

.advisor-hero-price {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
}

.advisor-total-price {
  margin: calc(14px * var(--ui-scale)) 0 0 0;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: calc(10px * var(--ui-scale)) calc(14px * var(--ui-scale));
  border-radius: calc(10px * var(--ui-scale));
  background: rgba(47, 111, 174, 0.08);
}

.advisor-total-price strong {
  font-size: 1.15rem;
  color: var(--brand-blue);
}

.advisor-config-page {
  display: grid;
  gap: calc(18px * var(--ui-scale));
}

.advisor-config-list {
  display: grid;
  gap: calc(14px * var(--ui-scale));
}

.advisor-config-item {
  padding: calc(16px * var(--ui-scale));
  border-radius: calc(14px * var(--ui-scale));
  border: 1px solid rgba(47, 111, 174, 0.12);
  background: rgba(255, 255, 255, 0.75);
}

.advisor-config-item-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: calc(12px * var(--ui-scale));
}

.advisor-config-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: calc(10px * var(--ui-scale));
}

.advisor-field-wide {
  grid-column: span 2;
}

.advisor-config-subsection {
  margin-top: calc(14px * var(--ui-scale));
  padding-top: calc(14px * var(--ui-scale));
  border-top: 1px dashed rgba(47, 111, 174, 0.16);
}

.advisor-config-subhead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: calc(8px * var(--ui-scale));
}

.advisor-config-subhead h4 {
  margin: 0;
  font-size: 0.92rem;
}

.advisor-config-subrow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) auto;
  gap: calc(8px * var(--ui-scale));
  align-items: start;
  margin-bottom: calc(6px * var(--ui-scale));
}

.advisor-config-subrow--hero {
  grid-template-columns: calc(80px * var(--ui-scale)) minmax(0, 1fr) calc(110px * var(--ui-scale)) minmax(0, 1.4fr) auto;
}

.advisor-config-save-panel .actions-inline {
  justify-content: flex-end;
}

.advisor-step-nav {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: calc(10px * var(--ui-scale));
  margin: calc(10px * var(--ui-scale)) 0 calc(14px * var(--ui-scale)) 0;
  padding: 0;
  background: transparent;
  counter-reset: advisor-step;
}

@media (max-width: 1100px) {
  .advisor-step-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .advisor-step-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.advisor-step-tab {
  display: grid;
  grid-template-rows: auto auto;
  gap: calc(4px * var(--ui-scale));
  padding: calc(14px * var(--ui-scale)) calc(14px * var(--ui-scale));
  border: 1px solid rgba(47, 111, 174, 0.12);
  background: #ffffff;
  border-radius: calc(14px * var(--ui-scale));
  color: var(--text);
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  position: relative;
  overflow: hidden;
  transition: transform 0.12s ease-out, box-shadow 0.12s ease-out, border-color 0.12s ease-out;
}

.advisor-step-tab::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(4px * var(--ui-scale));
  background: var(--advisor-step-accent, #2f6fae);
  opacity: 0.4;
  transition: opacity 0.12s ease-out, width 0.12s ease-out;
}

.advisor-step-tab:hover:not(.is-disabled) {
  border-color: rgba(47, 111, 174, 0.28);
  transform: translateY(-1px);
  box-shadow: 0 calc(10px * var(--ui-scale)) calc(20px * var(--ui-scale)) rgba(22, 22, 22, 0.05);
}

.advisor-step-tab.is-active {
  border-color: var(--advisor-step-accent, #2f6fae);
  box-shadow: 0 calc(10px * var(--ui-scale)) calc(26px * var(--ui-scale)) rgba(22, 22, 22, 0.08);
}

.advisor-step-tab.is-active::before {
  opacity: 1;
  width: calc(6px * var(--ui-scale));
}

.advisor-step-tab.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
  background: rgba(255, 255, 255, 0.6);
}

.advisor-step-tab[data-step-key="prospects"] { --advisor-step-accent: #6366f1; }
.advisor-step-tab[data-step-key="intake"]    { --advisor-step-accent: #0ea5e9; }
.advisor-step-tab[data-step-key="briefing"]  { --advisor-step-accent: #14b8a6; }
.advisor-step-tab[data-step-key="flow"]      { --advisor-step-accent: #f59e0b; }
.advisor-step-tab[data-step-key="advice"]    { --advisor-step-accent: #ec4899; }
.advisor-step-tab[data-step-key="configure"] { --advisor-step-accent: #8b5cf6; }

.advisor-step-tab-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: calc(26px * var(--ui-scale));
  height: calc(26px * var(--ui-scale));
  border-radius: 999px;
  background: color-mix(in srgb, var(--advisor-step-accent, #2f6fae) 14%, transparent);
  color: var(--advisor-step-accent, var(--brand-blue));
  font-size: 0.82rem;
  font-weight: 700;
  margin-left: calc(6px * var(--ui-scale));
}

.advisor-step-tab.is-active .advisor-step-tab-index {
  background: var(--advisor-step-accent, var(--brand-blue));
  color: #ffffff;
}

.advisor-step-tab-label {
  font-size: 0.95rem;
  font-weight: 600;
  margin-left: calc(6px * var(--ui-scale));
  color: var(--text);
}

.advisor-step-tab.is-disabled .advisor-step-tab-label {
  color: var(--muted);
}

.advisor-hero-compact {
  padding-bottom: calc(10px * var(--ui-scale));
}

.advisor-hero-compact .hero-copy {
  max-width: 72ch;
}

.advisor-intro-panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(243, 248, 255, 0.96) 100%);
}

.advisor-intro-flow {
  list-style: none;
  padding: 0;
  margin: calc(8px * var(--ui-scale)) 0 0 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: calc(12px * var(--ui-scale));
}

.advisor-intro-flow--compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1100px) {
  .advisor-intro-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .advisor-intro-flow {
    grid-template-columns: 1fr;
  }
}

.advisor-intro-step {
  position: relative;
  padding: calc(14px * var(--ui-scale)) calc(14px * var(--ui-scale)) calc(14px * var(--ui-scale)) calc(48px * var(--ui-scale));
  border-radius: calc(14px * var(--ui-scale));
  background: #ffffff;
  border: 1px solid rgba(47, 111, 174, 0.12);
  min-height: 100%;
}

.advisor-intro-step strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: calc(4px * var(--ui-scale));
}

.advisor-intro-step p {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--muted);
}

.advisor-intro-step p a {
  color: var(--brand-blue);
  font-weight: 500;
  text-decoration: none;
}

.advisor-intro-step p a:hover {
  text-decoration: underline;
}

.advisor-intro-step-index {
  position: absolute;
  top: calc(14px * var(--ui-scale));
  left: calc(14px * var(--ui-scale));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: calc(24px * var(--ui-scale));
  height: calc(24px * var(--ui-scale));
  border-radius: 999px;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.8rem;
}

.advisor-intro-step--hero { border-top: 3px solid #0ea5e9; }
.advisor-intro-step--hero .advisor-intro-step-index { background: #0ea5e9; }

.advisor-intro-step--sector { border-top: 3px solid #14b8a6; }
.advisor-intro-step--sector .advisor-intro-step-index { background: #14b8a6; }

.advisor-intro-step--flow { border-top: 3px solid #f59e0b; }
.advisor-intro-step--flow .advisor-intro-step-index { background: #f59e0b; }

.advisor-intro-step--advisor { border-top: 3px solid #8b5cf6; }
.advisor-intro-step--advisor .advisor-intro-step-index { background: #8b5cf6; }

.hero-detail-card {
  padding: calc(18px * var(--ui-scale));
}

.hero-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(calc(220px * var(--ui-scale)), 1fr);
  gap: calc(20px * var(--ui-scale));
  align-items: start;
}

@media (max-width: 1100px) {
  .hero-detail-grid {
    grid-template-columns: 1fr;
  }
}

.hero-detail-preview {
  position: sticky;
  top: calc(18px * var(--ui-scale));
  padding: calc(16px * var(--ui-scale));
  border-radius: calc(14px * var(--ui-scale));
  border: 1px solid rgba(47, 111, 174, 0.12);
  background: linear-gradient(180deg, rgba(243, 248, 255, 0.96) 0%, rgba(233, 243, 255, 0.96) 100%);
  display: grid;
  gap: calc(10px * var(--ui-scale));
}

.hero-detail-preview h4 {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}

.hero-visual-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(16px * var(--ui-scale)) calc(10px * var(--ui-scale));
  background: #ffffff;
  border-radius: calc(12px * var(--ui-scale));
  border: 1px dashed rgba(47, 111, 174, 0.18);
}

.hero-visual-frame .hero-visual-svg {
  width: 100%;
  max-width: calc(160px * var(--ui-scale));
  height: auto;
  display: block;
}

.hero-preview-meta {
  margin: 0;
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.4;
}

.hero-alt-size-list {
  display: grid;
  gap: calc(6px * var(--ui-scale));
  margin-top: calc(6px * var(--ui-scale));
}

.hero-alt-size-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: calc(8px * var(--ui-scale));
  align-items: end;
  padding: calc(8px * var(--ui-scale)) calc(10px * var(--ui-scale));
  border-radius: calc(10px * var(--ui-scale));
  border: 1px solid rgba(47, 111, 174, 0.1);
  background: rgba(255, 255, 255, 0.85);
}

.hero-alt-size-row label {
  display: grid;
  gap: calc(2px * var(--ui-scale));
  font-size: 0.78rem;
  color: var(--muted);
}

.advisor-hero-standard-size {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.advisor-hero-alt-sizes {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: calc(4px * var(--ui-scale));
  margin-top: calc(2px * var(--ui-scale));
}

.advisor-hero-alt-sizes-label {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  font-weight: 600;
  margin-right: calc(2px * var(--ui-scale));
}

.advisor-hero-alt-chip {
  display: inline-flex;
  align-items: center;
  padding: calc(2px * var(--ui-scale)) calc(8px * var(--ui-scale));
  border-radius: 999px;
  background: rgba(47, 111, 174, 0.1);
  color: var(--brand-blue);
  font-size: 0.78rem;
  font-weight: 600;
}

.hero-door-list {
  display: grid;
  gap: calc(6px * var(--ui-scale));
  margin-top: calc(8px * var(--ui-scale));
}

.hero-door-row {
  display: grid;
  grid-template-columns: calc(28px * var(--ui-scale)) minmax(0, 1.2fr) minmax(0, 1fr) auto auto auto;
  gap: calc(8px * var(--ui-scale));
  align-items: center;
  padding: calc(8px * var(--ui-scale)) calc(10px * var(--ui-scale));
  border-radius: calc(10px * var(--ui-scale));
  border: 1px solid rgba(47, 111, 174, 0.1);
  background: rgba(255, 255, 255, 0.85);
}

.hero-door-handle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: calc(28px * var(--ui-scale));
  height: calc(28px * var(--ui-scale));
  border-radius: 999px;
  background: rgba(47, 111, 174, 0.12);
  color: var(--brand-blue);
  font-weight: 700;
  font-size: 0.78rem;
}

.hero-door-height {
  display: grid;
  gap: calc(2px * var(--ui-scale));
  min-width: 0;
}

.hero-door-height > span {
  font-size: 0.74rem;
  color: var(--muted);
  font-weight: 500;
}

@media (max-width: 700px) {
  .hero-door-row {
    grid-template-columns: calc(28px * var(--ui-scale)) 1fr 1fr;
  }
  .hero-door-row > .ghost-button {
    grid-column: span 1;
  }
}

.advisor-hero-picker {
  display: grid;
  gap: calc(6px * var(--ui-scale));
  margin-top: calc(6px * var(--ui-scale));
}

.advisor-hero-picker-row {
  display: grid;
  grid-template-columns: auto calc(48px * var(--ui-scale)) minmax(0, 1fr) auto;
  align-items: center;
  gap: calc(10px * var(--ui-scale));
  padding: calc(10px * var(--ui-scale)) calc(12px * var(--ui-scale));
  border-radius: calc(10px * var(--ui-scale));
  border: 1px solid rgba(47, 111, 174, 0.12);
  background: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  transition: border-color 0.12s ease-out, background 0.12s ease-out;
}

.advisor-hero-picker-row:hover {
  border-color: rgba(47, 111, 174, 0.3);
}

.advisor-hero-picker-row.is-linked {
  border-color: rgba(53, 195, 165, 0.45);
  background: linear-gradient(180deg, rgba(243, 255, 251, 0.98) 0%, rgba(233, 250, 243, 0.96) 100%);
}

.advisor-hero-picker-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: calc(32px * var(--ui-scale));
  padding: 0 calc(8px * var(--ui-scale));
  border-radius: calc(8px * var(--ui-scale));
  background: rgba(47, 111, 174, 0.12);
  color: var(--brand-blue);
  font-weight: 700;
  font-size: 0.86rem;
}

.advisor-hero-picker-body {
  display: grid;
  gap: calc(2px * var(--ui-scale));
  min-width: 0;
}

.advisor-hero-picker-body strong {
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.advisor-hero-picker-body em {
  font-style: normal;
  color: var(--muted);
  font-size: 0.84rem;
}

.advisor-hero-picker-price {
  color: var(--brand-blue);
  font-weight: 600;
  white-space: nowrap;
}

.advisor-similar-clients-list {
  list-style: none;
  padding: 0;
  margin: calc(10px * var(--ui-scale)) 0 0 0;
  display: grid;
  gap: calc(6px * var(--ui-scale));
}

.advisor-similar-clients-wrap {
  margin-top: calc(10px * var(--ui-scale));
  overflow-x: auto;
  border-radius: calc(12px * var(--ui-scale));
  border: 1px solid rgba(47, 111, 174, 0.1);
}

.advisor-similar-clients-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  background: #ffffff;
}

.advisor-similar-clients-table thead th {
  text-align: left;
  padding: calc(10px * var(--ui-scale)) calc(12px * var(--ui-scale));
  background: rgba(47, 111, 174, 0.06);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  color: var(--muted);
  border-bottom: 1px solid rgba(47, 111, 174, 0.1);
  white-space: nowrap;
}

.advisor-similar-clients-table tbody td {
  padding: calc(10px * var(--ui-scale)) calc(12px * var(--ui-scale));
  border-bottom: 1px solid rgba(47, 111, 174, 0.08);
  vertical-align: top;
}

.advisor-similar-clients-table tbody tr:last-child td {
  border-bottom: 0;
}

.advisor-similar-client-row:hover td {
  background: rgba(47, 111, 174, 0.03);
}

.advisor-similar-cell-client {
  display: grid;
  gap: calc(2px * var(--ui-scale));
  min-width: calc(180px * var(--ui-scale));
}

.advisor-similar-cell-client strong {
  color: var(--text);
}

.advisor-similar-cell-client .advisor-similar-client-website {
  display: block;
}

.advisor-similar-cell {
  color: var(--text);
}

.advisor-similar-cell {
  color: var(--text);
  font-size: 0.88rem;
}

.advisor-similar-value--sector {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(20, 184, 166, 0.14);
  color: #0f6554;
  font-weight: 600;
}

.advisor-similar-value--flow {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(245, 158, 11, 0.18);
  color: #92400e;
  font-weight: 600;
}

.advisor-similar-cell-empty {
  color: rgba(15, 23, 42, 0.25);
}

.advisor-similar-client {
  display: grid;
  gap: calc(8px * var(--ui-scale));
  padding: calc(14px * var(--ui-scale)) calc(16px * var(--ui-scale));
  border-radius: calc(12px * var(--ui-scale));
  background: #ffffff;
  border: 1px solid rgba(47, 111, 174, 0.1);
}

.advisor-similar-client-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: calc(10px * var(--ui-scale));
  flex-wrap: wrap;
}

.advisor-similar-client-head-right {
  display: flex;
  align-items: center;
  gap: calc(8px * var(--ui-scale));
}

.advisor-similar-client strong {
  color: var(--text);
  font-size: 1rem;
}

.advisor-similar-client-website a {
  color: var(--brand-blue);
  text-decoration: none;
  font-size: 0.86rem;
  white-space: nowrap;
}

.advisor-similar-client-website a:hover {
  text-decoration: underline;
}

.advisor-match-tags {
  display: flex;
  flex-wrap: wrap;
  gap: calc(4px * var(--ui-scale));
}

.advisor-match-tags--details {
  border-top: 1px dashed rgba(47, 111, 174, 0.12);
  padding-top: calc(6px * var(--ui-scale));
}

.advisor-match-tag {
  display: inline-flex;
  align-items: center;
  gap: calc(4px * var(--ui-scale));
  padding: calc(3px * var(--ui-scale)) calc(9px * var(--ui-scale));
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.4;
  background: rgba(47, 111, 174, 0.08);
  color: var(--text);
}

.advisor-match-tag em {
  font-style: normal;
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.75;
}

.advisor-match-tag--sector {
  background: rgba(20, 184, 166, 0.14);
  color: #0f6554;
}

.advisor-match-tag--flow {
  background: rgba(245, 158, 11, 0.18);
  color: #92400e;
}

.advisor-match-tag--lockers {
  background: rgba(14, 165, 233, 0.14);
  color: #075985;
}

.advisor-match-tag--scenario {
  background: rgba(139, 92, 246, 0.14);
  color: #5b21b6;
}

.advisor-match-tag--status {
  background: rgba(236, 72, 153, 0.14);
  color: #9d174d;
}

.advisor-match-tag--location {
  background: rgba(99, 102, 241, 0.14);
  color: #3730a3;
}

.advisor-match-tag--project {
  background: rgba(234, 88, 12, 0.14);
  color: #9a3412;
}

.advisor-similar-client-details {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(calc(220px * var(--ui-scale)), 1fr));
  gap: calc(4px * var(--ui-scale)) calc(16px * var(--ui-scale));
  padding: calc(10px * var(--ui-scale)) 0 0 0;
  border-top: 1px dashed rgba(47, 111, 174, 0.12);
}

.advisor-similar-client-detail-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: calc(8px * var(--ui-scale));
  align-items: baseline;
  padding: calc(4px * var(--ui-scale)) 0;
  border-bottom: 1px dotted rgba(47, 111, 174, 0.08);
  font-size: 0.84rem;
}

.advisor-similar-client-detail-row > span {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.advisor-similar-client-detail-row > strong {
  color: var(--text);
  font-weight: 500;
  font-size: 0.84rem;
  overflow-wrap: anywhere;
}

.advisor-prospects-list {
  display: grid;
  gap: calc(8px * var(--ui-scale));
  margin-top: calc(10px * var(--ui-scale));
}

.advisor-prospect-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: calc(8px * var(--ui-scale));
  align-items: stretch;
  border-radius: calc(12px * var(--ui-scale));
  border: 1px solid rgba(47, 111, 174, 0.12);
  background: rgba(255, 255, 255, 0.95);
  transition: border-color 0.12s ease-out, transform 0.12s ease-out, box-shadow 0.12s ease-out;
}

.advisor-prospect-row:hover {
  border-color: rgba(47, 111, 174, 0.3);
  transform: translateY(-1px);
  box-shadow: 0 calc(6px * var(--ui-scale)) calc(18px * var(--ui-scale)) rgba(22, 22, 22, 0.05);
}

.advisor-prospect-row.is-active {
  border-color: rgba(53, 195, 165, 0.4);
  background: linear-gradient(180deg, rgba(243, 255, 251, 0.98) 0%, rgba(233, 250, 243, 0.96) 100%);
}

.advisor-prospect-open {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: calc(12px * var(--ui-scale));
  align-items: center;
  padding: calc(14px * var(--ui-scale)) calc(16px * var(--ui-scale));
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.advisor-prospect-main {
  display: grid;
  gap: calc(2px * var(--ui-scale));
  min-width: 0;
}

.advisor-prospect-main strong {
  font-size: 1rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.advisor-prospect-main span {
  color: var(--muted);
  font-size: 0.88rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.advisor-prospect-meta {
  display: grid;
  gap: calc(2px * var(--ui-scale));
  text-align: right;
  color: var(--brand-blue);
  font-weight: 500;
  font-size: 0.88rem;
}

.advisor-prospect-meta small {
  color: var(--muted);
  font-weight: 400;
  font-size: 0.78rem;
}

.advisor-prospect-row [data-prospect-delete] {
  align-self: center;
  margin-right: calc(10px * var(--ui-scale));
}

.advisor-list {
  display: grid;
  gap: calc(6px * var(--ui-scale));
  margin-top: calc(10px * var(--ui-scale));
}

.advisor-list-row {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: calc(10px * var(--ui-scale));
  padding: calc(12px * var(--ui-scale)) calc(14px * var(--ui-scale));
  border-radius: calc(12px * var(--ui-scale));
  border: 1px solid rgba(47, 111, 174, 0.12);
  background: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.12s ease-out, transform 0.12s ease-out, box-shadow 0.12s ease-out;
}

.advisor-list-row:hover {
  border-color: rgba(47, 111, 174, 0.3);
  transform: translateY(-1px);
  box-shadow: 0 calc(6px * var(--ui-scale)) calc(18px * var(--ui-scale)) rgba(22, 22, 22, 0.05);
}

.advisor-list-row.is-active {
  border-color: rgba(53, 195, 165, 0.45);
  background: linear-gradient(180deg, rgba(243, 255, 251, 0.98) 0%, rgba(233, 250, 243, 0.96) 100%);
  box-shadow: 0 calc(10px * var(--ui-scale)) calc(24px * var(--ui-scale)) rgba(53, 195, 165, 0.15);
}

.advisor-list-row-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: calc(40px * var(--ui-scale));
  height: calc(40px * var(--ui-scale));
  border-radius: calc(10px * var(--ui-scale));
  background: rgba(47, 111, 174, 0.08);
  font-size: calc(22px * var(--ui-scale));
  grid-row: span 1;
}

.advisor-list-row-main {
  display: grid;
  gap: calc(2px * var(--ui-scale));
  min-width: 0;
}

.advisor-list-row-main strong {
  font-size: 0.98rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.advisor-list-row-main span {
  color: var(--muted);
  font-size: 0.86rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.advisor-list-row-meta {
  color: var(--brand-blue);
  font-size: 0.82rem;
  font-weight: 500;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.advisor-list-row-chevron {
  color: var(--muted);
  font-size: 1.2rem;
  line-height: 1;
}

.advisor-detail-wrap {
  margin-top: calc(14px * var(--ui-scale));
}

.advisor-detail-placeholder {
  text-align: center;
  padding: calc(18px * var(--ui-scale));
  border: 1px dashed rgba(47, 111, 174, 0.16);
  border-radius: calc(12px * var(--ui-scale));
  color: var(--muted);
}

.advisor-detail-card {
  padding: calc(18px * var(--ui-scale));
  border-radius: calc(16px * var(--ui-scale));
  border: 1px solid rgba(47, 111, 174, 0.16);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 251, 255, 0.96) 100%);
  box-shadow: 0 calc(12px * var(--ui-scale)) calc(30px * var(--ui-scale)) rgba(22, 22, 22, 0.05);
}

.advisor-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: calc(12px * var(--ui-scale));
  margin-bottom: calc(14px * var(--ui-scale));
  padding-bottom: calc(10px * var(--ui-scale));
  border-bottom: 1px solid rgba(47, 111, 174, 0.1);
}

.advisor-detail-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: calc(2px * var(--ui-scale));
}

.advisor-detail-head strong {
  font-size: 1.1rem;
}

@media (max-width: 1100px) {
  .advisor-intake-form,
  .advisor-briefing-grid,
  .advisor-config-grid {
    grid-template-columns: 1fr;
  }

  .advisor-briefing-card--wide,
  .advisor-field-wide {
    grid-column: auto;
  }

  .advisor-config-subrow,
  .advisor-config-subrow--hero {
    grid-template-columns: 1fr;
  }

  .advisor-list-row,
  .advisor-prospect-open {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .advisor-list-row-meta,
  .advisor-prospect-meta {
    text-align: left;
  }
}

/* ===== Project BOM pricing columns ============================== */
.bom-pricing-col { display: none; }
.bom-table-with-pricing .bom-pricing-col { display: table-cell; }

.bom-discount-input {
  text-align: right;
}

.bom-discount-input.is-overridden {
  border-color: rgba(245, 158, 11, 0.6);
  background: rgba(245, 158, 11, 0.08);
  font-weight: 600;
  color: #92400e;
}

.bom-discount-overridden {
  background: rgba(245, 158, 11, 0.05);
}

.bom-row-discount-overridden td:first-child::before {
  content: "▲ ";
  color: #f59e0b;
  font-size: 0.7rem;
}

.bom-totals-row td {
  border-top: 2px solid rgba(47, 111, 174, 0.18);
  padding-top: calc(8px * var(--ui-scale));
  background: rgba(47, 111, 174, 0.04);
}

/* === TPC app === */

.empty-state {
  padding: 28px 20px;
  text-align: center;
  background: rgba(47, 111, 174, 0.04);
  border: 1px dashed rgba(47, 111, 174, 0.25);
  border-radius: 12px;
  color: rgba(20, 33, 51, 0.65);
}

.form-grid {
  display: grid;
  gap: 12px;
}
.form-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 720px) {
  .form-grid--two { grid-template-columns: 1fr; }
}
.form-grid label,
.tpc-edit-page label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.92rem;
  font-weight: 500;
  color: rgba(20, 33, 51, 0.78);
}
.form-grid input,
.form-grid select,
.form-grid textarea,
.tpc-edit-page input,
.tpc-edit-page select,
.tpc-edit-page textarea {
  padding: 10px 12px;
  border: 1px solid rgba(20, 33, 51, 0.18);
  border-radius: 8px;
  font: inherit;
}
.tpc-json-input {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.85rem;
}
.ghost-button.danger {
  color: #b1322f;
  border-color: rgba(177, 50, 47, 0.45);
}
.ghost-button.danger:hover:not(:disabled) {
  background: rgba(177, 50, 47, 0.08);
}
.helper-text--muted { opacity: 0.65; font-style: italic; }
.ghost-button--small { padding: 4px 10px; font-size: 0.85rem; }
.filter-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: rgba(20, 33, 51, 0.7);
}
.filter-label select {
  padding: 6px 10px;
  border: 1px solid rgba(20, 33, 51, 0.2);
  border-radius: 8px;
}

.messages--error { color: #b1322f; }
.messages--success { color: #1c7a3a; }

/* TPC overview cards */
.tpc-template-list {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
}
.tpc-card {
  background: #fff;
  border: 1px solid rgba(20, 33, 51, 0.1);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 1px 3px rgba(20, 33, 51, 0.04);
}
.tpc-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.tpc-card-header h3 { margin: 4px 0; font-size: 1.15rem; }
.tpc-card-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(47, 111, 174, 0.9);
}
.tpc-card-target {
  margin: 0;
  font-size: 0.88rem;
  color: rgba(20, 33, 51, 0.65);
}
.tpc-card-badges {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}
.tpc-badge {
  font-size: 0.72rem;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(47, 111, 174, 0.08);
  color: rgba(47, 111, 174, 0.95);
  font-weight: 600;
  white-space: nowrap;
}
.tpc-badge--status-active { background: rgba(28, 122, 58, 0.12); color: #1c7a3a; }
.tpc-badge--status-retired { background: rgba(20, 33, 51, 0.08); color: rgba(20, 33, 51, 0.55); }
.tpc-card-summary {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.4;
}
.tpc-card-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.82rem;
  color: rgba(20, 33, 51, 0.6);
  flex-wrap: wrap;
}
.tpc-card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* Need-to-have pills */
.tpc-need-pill {
  display: inline-block;
  padding: 2px 9px;
  margin-right: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  border-radius: 999px;
  background: rgba(28, 122, 58, 0.1);
  color: #1c7a3a;
}
.tpc-need-pill--empty { background: rgba(20, 33, 51, 0.06); color: rgba(20, 33, 51, 0.55); font-weight: 500; }
.tpc-need-pill--on { background: rgba(28, 122, 58, 0.15); color: #1c7a3a; }
.tpc-need-pill-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.tpc-need-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.tpc-need-grid label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
}

/* Hero cards */
.tpc-hero-list {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
}
.tpc-hero-card {
  background: #fff;
  border: 1px solid rgba(20, 33, 51, 0.1);
  border-radius: 14px;
  padding: 18px;
}
.tpc-hero-card--inactive { opacity: 0.55; }
.tpc-hero-card header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}
.tpc-hero-card h3 { margin: 4px 0; font-size: 1.05rem; }
.tpc-hero-price {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  text-align: right;
}
.tpc-hero-price small { font-weight: 400; color: rgba(20, 33, 51, 0.55); font-size: 0.72rem; }
.tpc-hero-price--recurring {
  font-size: 0.95rem;
  color: rgba(47, 111, 174, 0.95);
  font-weight: 500;
}
.tpc-hero-mix {
  font-size: 0.88rem;
  color: rgba(20, 33, 51, 0.7);
  margin: 10px 0;
}

/* Prospect cards */
.tpc-prospect-list {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
}
.tpc-prospect-card {
  background: #fff;
  border: 1px solid rgba(20, 33, 51, 0.1);
  border-radius: 14px;
  padding: 18px;
}
.tpc-prospect-card header {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.tpc-prospect-card h3 { margin: 0 0 4px; font-size: 1.1rem; }
.tpc-prospect-journeys { display: flex; flex-direction: column; gap: 6px; margin: 12px 0; }
.tpc-journey-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid rgba(20, 33, 51, 0.1);
  border-radius: 10px;
  background: rgba(47, 111, 174, 0.03);
}
.tpc-journey-row-meta { display: flex; gap: 10px; align-items: center; font-size: 0.85rem; }
.tpc-journey-status {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  font-size: 0.72rem;
  font-weight: 600;
  border-radius: 999px;
  background: rgba(47, 111, 174, 0.1);
  color: rgba(47, 111, 174, 0.95);
}
.tpc-journey-row--draft { border-left: 3px solid rgba(20, 33, 51, 0.25); }
.tpc-journey-row--offer_sent { border-left: 3px solid #d18e1f; }
.tpc-journey-row--won { border-left: 3px solid #1c7a3a; background: rgba(28, 122, 58, 0.05); }
.tpc-journey-row--lost { border-left: 3px solid #b1322f; }

/* Journey wizard (tablet-first) */
.tpc-tablet { font-size: 17px; }
.tpc-journey-shell { padding: 0 24px; }
.tpc-journey-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 18px 0 12px;
  border-bottom: 1px solid rgba(20, 33, 51, 0.08);
  gap: 16px;
  flex-wrap: wrap;
}
.tpc-journey-header h1 { margin: 4px 0; font-size: 1.7rem; }
.tpc-journey-steps {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 12px 0;
  gap: 6px;
  flex-wrap: wrap;
}
.tpc-journey-steps li {
  flex: 1 1 100px;
  text-align: center;
  padding: 8px 6px;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 8px;
  background: rgba(20, 33, 51, 0.05);
  color: rgba(20, 33, 51, 0.5);
  letter-spacing: 0.04em;
}
.tpc-journey-steps li.tpc-journey-steps--active {
  background: #2f6fae;
  color: #fff;
}
.tpc-journey-steps li.tpc-journey-steps--done {
  background: rgba(28, 122, 58, 0.16);
  color: #1c7a3a;
}
.tpc-journey-main { padding-bottom: 80px; }
.tpc-step {
  background: #fff;
  border: 1px solid rgba(20, 33, 51, 0.1);
  border-radius: 16px;
  padding: 24px;
  margin-top: 16px;
}
.tpc-step h2 { margin: 0 0 12px; font-size: 1.5rem; }
.tpc-step-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(20, 33, 51, 0.08);
}
.big {
  font-size: 1.05rem;
  padding: 14px 24px;
  border-radius: 10px;
  min-height: 52px;
}

/* Toggle cards (use cases, sales models, heroes) */
.tpc-use-case-grid,
.tpc-sales-model-grid,
.tpc-hero-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.tpc-toggle-card {
  display: block;
  text-align: left;
  background: #fff;
  border: 2px solid rgba(20, 33, 51, 0.12);
  border-radius: 14px;
  padding: 18px;
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: all 0.15s ease;
}
.tpc-toggle-card:hover { border-color: rgba(47, 111, 174, 0.55); }
.tpc-toggle-card--on {
  border-color: #2f6fae;
  background: rgba(47, 111, 174, 0.06);
  box-shadow: 0 0 0 1px #2f6fae inset;
}
.tpc-toggle-card header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.tpc-toggle-card h3 { margin: 0 0 8px; font-size: 1.05rem; }
.tpc-toggle-card p { margin: 0; font-size: 0.92rem; line-height: 1.45; color: rgba(20, 33, 51, 0.78); }
.tpc-toggle-card--wide { grid-column: span 2; }
@media (max-width: 720px) { .tpc-toggle-card--wide { grid-column: span 1; } }
.tpc-required-badge {
  font-size: 0.7rem;
  padding: 2px 8px;
  background: rgba(177, 50, 47, 0.12);
  color: #b1322f;
  border-radius: 999px;
  font-weight: 600;
}
.tpc-sales-model-cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 12px;
}
.tpc-sales-model-cols ul { padding-left: 18px; margin: 4px 0; font-size: 0.85rem; }
.tpc-sales-model-cols h4 { margin: 0; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; color: rgba(20, 33, 51, 0.6); }
@media (max-width: 600px) { .tpc-sales-model-cols { grid-template-columns: 1fr; } }
.tpc-hero-mix-strong { font-size: 1rem; font-weight: 600; margin: 8px 0; }
.tpc-hero-mix-list { list-style: none; padding: 0; margin: 0 0 10px; font-size: 0.88rem; color: rgba(20, 33, 51, 0.78); }
.tpc-hero-mix-list li { padding: 2px 0; }

/* Variables step */
.tpc-variables-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}
.tpc-variable-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.tpc-variable-label { font-weight: 500; }
.tpc-variable-label small { font-weight: 400; color: rgba(20, 33, 51, 0.55); }
.tpc-variable-field input {
  font-size: 1.1rem;
  padding: 10px 12px;
  border: 1px solid rgba(20, 33, 51, 0.2);
  border-radius: 8px;
}

/* Step 1 client card */
.tpc-client-card { background: rgba(47, 111, 174, 0.04); padding: 16px; border-radius: 12px; }
.tpc-client-dl { display: grid; grid-template-columns: 110px 1fr; gap: 6px 16px; margin: 12px 0; font-size: 0.92rem; }
.tpc-client-dl dt { color: rgba(20, 33, 51, 0.6); font-weight: 500; }
.tpc-client-dl dd { margin: 0; }

/* Step 2 template summary */
.tpc-template-summary { display: flex; flex-direction: column; gap: 14px; }
.tpc-template-summary-head h3 { margin: 4px 0; font-size: 1.3rem; }
.tpc-template-summary-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.tpc-template-summary-cols h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; color: rgba(20, 33, 51, 0.55); }
.tpc-template-summary-cols ul { padding-left: 18px; margin: 0; }
@media (max-width: 720px) { .tpc-template-summary-cols { grid-template-columns: 1fr; } }

/* Result preview (step 7) */
.tpc-result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
@media (max-width: 800px) { .tpc-result-grid { grid-template-columns: 1fr; } }
.tpc-result-block {
  background: rgba(47, 111, 174, 0.04);
  border-radius: 12px;
  padding: 16px;
}
.tpc-result-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.tpc-result-table th, .tpc-result-table td {
  text-align: left;
  padding: 8px 6px;
  border-bottom: 1px solid rgba(20, 33, 51, 0.08);
}
.tpc-result-table td { text-align: right; font-variant-numeric: tabular-nums; }
.tpc-result-table th[scope="row"] { font-weight: 500; }
.tpc-result-highlight {
  margin: 12px 0 0;
  font-size: 1.15rem;
  font-weight: 600;
  color: #1c7a3a;
}

/* Offer view */
.tpc-offer-panel { background: #fff; }
.tpc-offer-header { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; }
.tpc-offer-header h2 { margin: 0 0 4px; }
.tpc-offer-eyebrow { font-size: 0.85rem; color: rgba(20, 33, 51, 0.6); text-align: right; }
.tpc-offer-eyebrow strong { font-size: 1.05rem; color: rgba(20, 33, 51, 0.9); display: block; }
.tpc-offer-mix { font-size: 0.92rem; border-collapse: collapse; }
.tpc-offer-mix th, .tpc-offer-mix td { padding: 4px 12px 4px 0; }
.tpc-offer-mix th { font-weight: 500; color: rgba(20, 33, 51, 0.6); }
.tpc-offer-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  margin: 12px 0;
}
.tpc-offer-table th, .tpc-offer-table td {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(20, 33, 51, 0.1);
}
.tpc-offer-table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.tpc-offer-totals {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 18px;
  padding: 14px;
  background: rgba(47, 111, 174, 0.05);
  border-radius: 10px;
}
.tpc-offer-totals div { display: flex; flex-direction: column; }
.tpc-offer-totals span { font-size: 0.78rem; color: rgba(20, 33, 51, 0.6); text-transform: uppercase; letter-spacing: 0.05em; }
.tpc-offer-totals strong { font-size: 1.1rem; }
.tpc-offer-faq { margin: 8px 0; padding: 10px 14px; border-radius: 8px; background: rgba(47, 111, 174, 0.04); }
.tpc-offer-faq summary { cursor: pointer; font-weight: 600; }
.tpc-offer-faq p { margin: 8px 0 0; }

@media print {
  .side-menu, .brand-row, .actions-inline, .tpc-journey-steps, .tpc-step-nav { display: none !important; }
  .page-shell { padding: 0; }
  .tpc-offer-panel { box-shadow: none; border: none; page-break-inside: avoid; }
}

/* === TPC visuals === */

.tpc-icon { display: inline-block; vertical-align: middle; }

/* Card icon */
.tpc-card-icon-wrap {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: rgba(47, 111, 174, 0.1);
  color: #2f6fae;
  flex-shrink: 0;
}
.tpc-card-icon-wrap--lg {
  width: 56px; height: 56px;
}
.tpc-card-head-text { flex: 1; min-width: 0; }
.tpc-card-header { gap: 14px; align-items: center; }

/* Need-to-have cards */
.tpc-need-card-row {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0;
}
.tpc-need-card {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.82rem; font-weight: 600;
  background: color-mix(in srgb, var(--need-color, #2f6fae) 12%, #fff);
  color: var(--need-color, #2f6fae);
  border: 1px solid color-mix(in srgb, var(--need-color, #2f6fae) 25%, transparent);
}
.tpc-need-card-icon { width: 18px; height: 18px; }
.tpc-need-card--off {
  background: rgba(20, 33, 51, 0.06);
  color: rgba(20, 33, 51, 0.5);
  border-color: rgba(20, 33, 51, 0.12);
  font-weight: 500;
}

/* Locker wall visualization */
.tpc-locker-wall {
  display: flex; flex-direction: column; gap: 10px;
  padding: 12px;
  background: rgba(20, 33, 51, 0.025);
  border-radius: 12px;
  margin: 10px 0;
}
.tpc-locker-wall--empty {
  color: rgba(20, 33, 51, 0.5);
  text-align: center;
  font-style: italic;
}
.tpc-locker-wall-svg {
  width: 100%;
  height: auto;
  max-height: 260px;
  display: block;
}
.tpc-locker-legend {
  display: flex; flex-wrap: wrap; gap: 10px;
  font-size: 0.82rem;
  color: rgba(20, 33, 51, 0.75);
}
.tpc-locker-legend-item {
  display: inline-flex; align-items: center; gap: 6px;
}
.tpc-locker-legend-swatch {
  display: inline-block;
  width: 12px; height: 12px;
  border-radius: 3px;
}

/* Business case bar chart */
.tpc-bc-bars { display: flex; flex-direction: column; gap: 12px; margin: 4px 0; }
.tpc-bc-bar {
  display: flex; flex-direction: column; gap: 4px;
}
.tpc-bc-bar-label {
  display: flex; justify-content: space-between;
  font-size: 0.88rem;
}
.tpc-bc-bar-label strong { font-variant-numeric: tabular-nums; }
.tpc-bc-bar-track {
  height: 12px;
  background: rgba(20, 33, 51, 0.06);
  border-radius: 8px;
  overflow: hidden;
}
.tpc-bc-bar-fill {
  height: 100%;
  border-radius: 8px;
  transition: width 0.4s ease;
}

/* KPI tiles */
.tpc-kpi-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  margin: 14px 0 4px;
}
.tpc-kpi-tile {
  padding: 16px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--kpi-accent, #2f6fae) 7%, #fff);
  border: 1px solid color-mix(in srgb, var(--kpi-accent, #2f6fae) 18%, transparent);
  border-left: 4px solid var(--kpi-accent, #2f6fae);
}
.tpc-kpi-value {
  font-size: 1.7rem; font-weight: 700;
  color: var(--kpi-accent, #2f6fae);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.tpc-kpi-label {
  margin-top: 4px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  color: rgba(20, 33, 51, 0.65);
}
.tpc-kpi-sub {
  margin-top: 2px;
  font-size: 0.78rem;
  color: rgba(20, 33, 51, 0.55);
}

/* Step indicator visual upgrade */
.tpc-journey-steps li {
  display: flex; align-items: center; justify-content: center;
  gap: 6px;
  padding: 8px 10px;
  flex-direction: row;
}
.tpc-step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(20, 33, 51, 0.12);
  color: rgba(20, 33, 51, 0.6);
  font-size: 0.75rem;
  font-weight: 700;
}
.tpc-step-label {
  font-size: 0.78rem;
}
.tpc-journey-steps li.tpc-journey-steps--active .tpc-step-num {
  background: #fff;
  color: #2f6fae;
}
.tpc-journey-steps li.tpc-journey-steps--done .tpc-step-num {
  background: #1c7a3a;
  color: #fff;
}
@media (max-width: 720px) {
  .tpc-journey-steps li .tpc-step-label { display: none; }
  .tpc-journey-steps li { flex: 0 0 40px; padding: 8px 6px; }
}

/* Use-case toggle cards */
.tpc-use-case-card {
  display: flex; flex-direction: column;
  position: relative;
}
.tpc-use-case-icon {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  margin-bottom: 12px;
  background: rgba(47, 111, 174, 0.1);
  color: #2f6fae;
}
.tpc-use-case-icon[data-key="luggage"] { background: rgba(47, 111, 174, 0.12); color: #2f6fae; }
.tpc-use-case-icon[data-key="handbag"] { background: rgba(138, 95, 204, 0.14); color: #8a5fcc; }
.tpc-use-case-icon[data-key="service_reception"] { background: rgba(28, 122, 58, 0.12); color: #1c7a3a; }
.tpc-use-case-icon[data-key="service_delivery"] { background: rgba(209, 142, 31, 0.14); color: #d18e1f; }
.tpc-use-case-icon[data-key="vending"] { background: rgba(177, 50, 47, 0.12); color: #b1322f; }

/* Sales-model toggle cards */
.tpc-sales-model-card {
  border-left: 4px solid var(--accent, #2f6fae);
}
.tpc-sales-model-card header {
  display: flex; align-items: center; gap: 12px;
}
.tpc-sales-model-icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: color-mix(in srgb, var(--accent, #2f6fae) 12%, #fff);
  color: var(--accent, #2f6fae);
}

/* Offer view */
.tpc-offer-hero {
  background: linear-gradient(135deg, #fff 0%, rgba(47, 111, 174, 0.05) 100%);
  border: 1px solid rgba(47, 111, 174, 0.18);
}
.tpc-offer-hero-head {
  display: flex; justify-content: space-between; gap: 16px;
  flex-wrap: wrap; align-items: flex-start;
}
.tpc-offer-hero-head h2 { margin: 0 0 4px; font-size: 1.6rem; }
.tpc-offer-template-line {
  margin: 10px 0 0;
  display: flex; align-items: center; gap: 8px;
  color: rgba(20, 33, 51, 0.7);
}
.tpc-offer-template-icon { color: #2f6fae; }
.tpc-offer-summary {
  margin: 14px 0 4px;
  font-size: 1rem;
  line-height: 1.5;
  color: rgba(20, 33, 51, 0.8);
}
.tpc-offer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 800px) { .tpc-offer-grid { grid-template-columns: 1fr; } }
.tpc-offer-sales-model {
  display: flex; gap: 14px;
  padding: 16px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent, #2f6fae) 6%, #fff);
  border: 1px solid color-mix(in srgb, var(--accent, #2f6fae) 18%, transparent);
  border-left: 4px solid var(--accent, #2f6fae);
}
.tpc-offer-sales-model h3 { margin: 4px 0 6px; }
.tpc-offer-sales-model-icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: color-mix(in srgb, var(--accent, #2f6fae) 14%, #fff);
  color: var(--accent, #2f6fae);
  flex-shrink: 0;
}
.tpc-offer-usp-list { padding-left: 20px; }
.tpc-offer-usp-list li { padding: 4px 0; }

/* === TPC repeater + clickable steps === */
.tpc-journey-steps--clickable { cursor: pointer; user-select: none; transition: filter 0.15s ease; }
.tpc-journey-steps--clickable:hover { filter: brightness(1.06); }
.tpc-journey-steps--clickable:focus-visible { outline: 2px solid #2f6fae; outline-offset: 2px; }

.section-heading--sub { margin-top: 18px; }
.section-heading--sub h3 { margin: 0; font-size: 1rem; color: rgba(20, 33, 51, 0.85); }

.tpc-repeater {
  display: flex; flex-direction: column; gap: 10px;
  margin: 8px 0;
}
.tpc-repeater-empty {
  padding: 16px;
  border: 1px dashed rgba(20, 33, 51, 0.18);
  border-radius: 10px;
  color: rgba(20, 33, 51, 0.55);
  text-align: center;
  font-style: italic;
}
.tpc-repeater-row {
  background: #fff;
  border: 1px solid rgba(20, 33, 51, 0.12);
  border-radius: 10px;
  padding: 12px 14px;
}
.tpc-repeater-row > header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(20, 33, 51, 0.06);
  gap: 8px;
}
.tpc-repeater-row > header strong { font-size: 0.95rem; }
.tpc-repeater-actions { display: flex; gap: 4px; }
.tpc-repeater-actions button {
  width: 28px; height: 28px;
  border: 1px solid rgba(20, 33, 51, 0.15);
  background: #fff;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
}
.tpc-repeater-actions button:hover:not(:disabled) { background: rgba(47, 111, 174, 0.06); border-color: rgba(47, 111, 174, 0.4); }
.tpc-repeater-actions button:disabled { opacity: 0.35; cursor: not-allowed; }

.tpc-repeater-body { display: block; }
.form-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-grid--span2 { grid-column: span 2; }
.form-grid--inline { flex-direction: row; align-items: center; gap: 8px; }
.helper-text--inline { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
@media (max-width: 720px) {
  .form-grid--three { grid-template-columns: 1fr; }
  .form-grid--span2 { grid-column: span 1; }
}

/* === TPC multi-hero + offer extras === */
.tpc-hero-picker { cursor: pointer; }
.tpc-hero-picker header { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.tpc-hero-qty-controls {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(20, 33, 51, 0.06);
  border-radius: 999px;
  padding: 4px;
}
.tpc-hero-qty-controls button {
  width: 32px; height: 32px;
  border: none;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: 600;
  color: #2f6fae;
  box-shadow: 0 1px 2px rgba(20, 33, 51, 0.08);
}
.tpc-hero-qty-controls button:hover { background: rgba(47, 111, 174, 0.1); }
.tpc-hero-qty-value {
  min-width: 24px;
  text-align: center;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.tpc-hero-picker-summary {
  margin: 14px 0 4px;
  padding: 12px 16px;
  background: rgba(28, 122, 58, 0.08);
  border-radius: 10px;
  font-size: 0.95rem;
}

.tpc-offer-extras {
  margin-bottom: 24px;
  padding: 18px;
  background: rgba(47, 111, 174, 0.04);
  border: 1px solid rgba(47, 111, 174, 0.16);
  border-radius: 12px;
}
.tpc-offer-extras h3 { margin: 0 0 10px; }
.tpc-offer-extras h4 { margin: 0; }

.tpc-addons-list { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.tpc-addon-row {
  display: grid;
  grid-template-columns: 2fr 1.2fr 80px 1fr auto 32px;
  gap: 8px;
  align-items: center;
  background: #fff;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid rgba(20, 33, 51, 0.1);
}
.tpc-addon-row input[type="text"],
.tpc-addon-row input[type="number"] {
  padding: 8px 10px;
  border: 1px solid rgba(20, 33, 51, 0.18);
  border-radius: 6px;
  font: inherit;
}
.tpc-addon-recurring {
  display: inline-flex; gap: 4px; align-items: center;
  font-size: 0.8rem; white-space: nowrap;
}
.tpc-addon-row [data-addon-remove] {
  width: 32px; height: 32px;
  border: 1px solid rgba(177, 50, 47, 0.3);
  background: #fff;
  border-radius: 6px;
  cursor: pointer;
  color: #b1322f;
}
.tpc-addon-row [data-addon-remove]:hover:not(:disabled) { background: rgba(177, 50, 47, 0.08); }
@media (max-width: 800px) {
  .tpc-addon-row { grid-template-columns: 1fr 1fr; }
}

.tpc-preview-hero {
  margin: 14px 0;
  padding-top: 14px;
  border-top: 1px solid rgba(20, 33, 51, 0.08);
}
.tpc-preview-hero h4 { margin: 0 0 8px; font-size: 1rem; }

.tpc-offer-lockerwall { background: #fff; }
.tpc-offer-lockerwall-head { margin-bottom: 12px; }
.tpc-offer-lockerwall-head h2 { margin: 4px 0; }
.tpc-offer-number { font-size: 0.85rem; color: rgba(20, 33, 51, 0.6); margin: 0 0 4px; letter-spacing: 0.05em; }
.tpc-offer-meta {
  display: grid; gap: 4px;
  text-align: right;
  font-size: 0.85rem;
}
.tpc-offer-meta > div { display: flex; flex-direction: column; align-items: flex-end; }
.tpc-offer-total--strong { font-weight: 700; }
.num-neg { color: #b1322f; }

/* === TPC heroes drag-drop builder === */
.tpc-builder {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 16px;
  margin: 14px 0;
}
@media (max-width: 880px) {
  .tpc-builder { grid-template-columns: 1fr; }
}
.tpc-builder-palette {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(20, 33, 51, 0.03);
  padding: 12px;
  border-radius: 12px;
  max-height: 600px;
  overflow-y: auto;
}
.tpc-palette-card {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 10px;
  padding: 8px;
  background: #fff;
  border: 1px solid rgba(20, 33, 51, 0.12);
  border-radius: 10px;
  cursor: grab;
  text-align: left;
  font: inherit;
  color: inherit;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.tpc-palette-card:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(20, 33, 51, 0.08); border-color: rgba(47, 111, 174, 0.4); }
.tpc-palette-card:active { cursor: grabbing; }
.tpc-palette-card-svg { max-width: 64px; }
.tpc-palette-card-svg .tpc-locker-wall { padding: 0; background: none; margin: 0; }
.tpc-palette-card-info { display: flex; flex-direction: column; gap: 1px; }
.tpc-palette-card-info strong { font-size: 0.9rem; }
.tpc-palette-card-info span { font-size: 0.78rem; color: rgba(20, 33, 51, 0.6); }
.tpc-palette-card-price { font-weight: 600; color: #2f6fae !important; }

.tpc-builder-canvas {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.tpc-builder-wall {
  min-height: 220px;
  display: flex;
  gap: 10px;
  padding: 14px;
  background: linear-gradient(180deg, rgba(47, 111, 174, 0.04), rgba(20, 33, 51, 0.06));
  border-radius: 12px;
  overflow-x: auto;
  align-items: flex-end;
}
.tpc-builder-empty {
  width: 100%;
  text-align: center;
  padding: 36px;
  color: rgba(20, 33, 51, 0.5);
  font-style: italic;
}
.tpc-builder-column {
  position: relative;
  flex: 0 0 auto;
  padding: 10px 8px 26px;
  background: #fff;
  border: 2px solid rgba(20, 33, 51, 0.1);
  border-radius: 10px;
  cursor: grab;
  transition: border-color 0.12s ease, transform 0.12s ease;
}
.tpc-builder-column:hover { border-color: rgba(47, 111, 174, 0.5); }
.tpc-builder-column--selected {
  border-color: #2f6fae;
  box-shadow: 0 0 0 1px #2f6fae inset;
}
.tpc-builder-column--drop {
  border-color: #1c7a3a;
  transform: scale(1.02);
}
.tpc-builder-column-svg { max-width: 100px; }
.tpc-builder-column-svg .tpc-locker-wall { padding: 0; margin: 0; background: none; }
.tpc-builder-column-meta {
  display: flex; flex-direction: column;
  margin-top: 6px;
  font-size: 0.78rem;
  color: rgba(20, 33, 51, 0.75);
  text-align: center;
}
.tpc-builder-column-meta strong { color: rgba(20, 33, 51, 0.95); }
.tpc-builder-column-tools {
  position: absolute;
  top: 4px; right: 4px;
  display: flex; gap: 2px;
  opacity: 0;
  transition: opacity 0.12s ease;
}
.tpc-builder-column:hover .tpc-builder-column-tools,
.tpc-builder-column--selected .tpc-builder-column-tools {
  opacity: 1;
}
.tpc-builder-column-tools button {
  width: 22px; height: 22px;
  border: 1px solid rgba(20, 33, 51, 0.15);
  background: rgba(255, 255, 255, 0.95);
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.7rem;
  padding: 0;
}
.tpc-builder-column-tools button:hover:not(:disabled) { background: rgba(47, 111, 174, 0.12); }

.tpc-builder-trash {
  text-align: center;
  padding: 12px;
  border: 2px dashed rgba(177, 50, 47, 0.3);
  border-radius: 10px;
  color: rgba(177, 50, 47, 0.7);
  font-size: 0.88rem;
}
.tpc-builder-trash--hover {
  background: rgba(177, 50, 47, 0.08);
  border-color: #b1322f;
  color: #b1322f;
}

.tpc-builder-stats { font-size: 0.88rem; color: rgba(20, 33, 51, 0.7); }

.tpc-column-editor {
  margin-top: 16px;
  padding: 16px;
  background: rgba(47, 111, 174, 0.04);
  border: 1px solid rgba(47, 111, 174, 0.18);
  border-radius: 12px;
}
.tpc-column-editor-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 10px;
}
.tpc-column-editor-head h3 { margin: 0; }

.tpc-doors-list { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.tpc-door-row {
  display: grid;
  grid-template-columns: 36px 90px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 8px;
  background: #fff;
  border-radius: 8px;
  border: 1px solid rgba(20, 33, 51, 0.1);
}
.tpc-door-index {
  font-weight: 600;
  color: rgba(20, 33, 51, 0.55);
  font-size: 0.85rem;
}
.tpc-door-row select {
  padding: 6px 8px;
  border: 1px solid rgba(20, 33, 51, 0.18);
  border-radius: 6px;
}
.tpc-door-usecases {
  display: flex; flex-wrap: wrap; gap: 4px;
}
.tpc-door-usecase {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px;
  background: rgba(20, 33, 51, 0.05);
  border-radius: 999px;
  font-size: 0.78rem;
  cursor: pointer;
}
.tpc-door-usecase:has(input:checked) { background: rgba(47, 111, 174, 0.16); color: #2f6fae; font-weight: 600; }
.tpc-door-tools { display: flex; gap: 2px; }
.tpc-door-tools button {
  width: 26px; height: 26px;
  border: 1px solid rgba(20, 33, 51, 0.15);
  background: #fff;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.85rem;
}
.tpc-door-tools button:hover:not(:disabled) { background: rgba(47, 111, 174, 0.1); }
@media (max-width: 720px) {
  .tpc-door-row { grid-template-columns: 24px 1fr; grid-template-areas: "index size" "uc uc" "tools tools"; }
  .tpc-door-index { grid-area: index; }
  .tpc-door-row select { grid-area: size; }
  .tpc-door-usecases { grid-area: uc; }
  .tpc-door-tools { grid-area: tools; justify-content: flex-end; }
}

/* === TPC custom lockerwalls in journey === */
.tpc-step-subsection { margin: 18px 0; padding-bottom: 8px; }
.tpc-step-subsection + .tpc-step-subsection { border-top: 1px solid rgba(20, 33, 51, 0.08); padding-top: 18px; }
.tpc-step-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.tpc-custom-walls-list { display: flex; flex-direction: column; gap: 12px; }
.tpc-custom-wall {
  background: #fff;
  border: 1px solid rgba(20, 33, 51, 0.12);
  border-radius: 12px;
  padding: 14px;
}
.tpc-custom-wall--open {
  border-color: #2f6fae;
  box-shadow: 0 0 0 1px #2f6fae inset;
}
.tpc-custom-wall-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 10px;
}
.tpc-custom-wall-meta {
  display: flex; flex-direction: column;
  gap: 4px;
  min-width: 220px;
  flex: 1 1 220px;
}
.tpc-custom-wall-meta input[type="text"] {
  font-size: 1.05rem;
  font-weight: 600;
  padding: 6px 10px;
  border: 1px solid rgba(20, 33, 51, 0.18);
  border-radius: 6px;
}
.tpc-custom-wall-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.tpc-custom-wall-preview { margin: 8px 0; }
.tpc-custom-wall-builder { margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(20, 33, 51, 0.08); }
.tpc-custom-wall-extra-fields {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 12px;
}
.tpc-custom-wall-extra-fields label { display: flex; flex-direction: column; gap: 4px; font-size: 0.85rem; }
.tpc-custom-wall-extra-fields input {
  padding: 8px 10px;
  border: 1px solid rgba(20, 33, 51, 0.18);
  border-radius: 6px;
}
@media (max-width: 720px) {
  .tpc-custom-wall-extra-fields { grid-template-columns: 1fr; }
}
.tpc-cb-host { display: flex; flex-direction: column; gap: 8px; }
.tpc-cb-stats { font-size: 0.88rem; color: rgba(20, 33, 51, 0.7); }

/* === TPC modal column builder === */
.tpc-modal {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: stretch; justify-content: stretch;
}
.tpc-modal[hidden] { display: none; }
.tpc-modal-overlay {
  position: absolute; inset: 0;
  background: rgba(20, 33, 51, 0.55);
  backdrop-filter: blur(2px);
}
.tpc-modal-dialog {
  position: relative;
  width: 100%; height: 100%;
  background: #f5f7fa;
  display: flex; flex-direction: column;
  overflow: hidden;
}
@media (min-width: 1100px) {
  .tpc-modal-dialog {
    width: min(1200px, 92vw);
    height: min(820px, 92vh);
    margin: auto;
    border-radius: 16px;
    box-shadow: 0 24px 64px rgba(20, 33, 51, 0.35);
  }
}
.tpc-modal-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 16px;
  padding: 18px 24px;
  background: #fff;
  border-bottom: 1px solid rgba(20, 33, 51, 0.08);
}
.tpc-modal-head h2 { margin: 4px 0; font-size: 1.4rem; }
.tpc-modal-body {
  flex: 1;
  padding: 18px 24px 24px;
  overflow: auto;
}
.tpc-modal-open { overflow: hidden; }

/* Compact palette inside modal */
.tpc-modal-body .tpc-builder {
  grid-template-columns: 320px 1fr;
  height: 100%;
}
.tpc-modal-body .tpc-builder-palette {
  max-height: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 10px;
  align-content: start;
}
.tpc-modal-body .tpc-palette-card {
  grid-template-columns: 38px 1fr;
  gap: 8px;
  padding: 8px;
}
.tpc-modal-body .tpc-palette-card-svg { max-width: 38px; }
.tpc-modal-body .tpc-palette-card-info strong { font-size: 0.78rem; line-height: 1.15; }
.tpc-modal-body .tpc-palette-card-info span { font-size: 0.7rem; }

@media (max-width: 900px) {
  .tpc-modal-body .tpc-builder { grid-template-columns: 1fr; }
  .tpc-modal-body .tpc-builder-palette {
    grid-template-columns: repeat(2, 1fr);
    max-height: 220px;
    overflow-y: auto;
  }
}

/* Custom wall card refresh */
.tpc-custom-wall { padding: 16px; }
.tpc-custom-wall-head {
  align-items: flex-start;
}
.tpc-custom-wall-actions { gap: 6px; }
.tpc-custom-wall-extras {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed rgba(20, 33, 51, 0.12);
}
.tpc-custom-wall-extras summary {
  cursor: pointer;
  font-size: 0.85rem;
  color: rgba(20, 33, 51, 0.6);
  font-weight: 500;
}
.tpc-custom-wall-extras summary:hover { color: rgba(20, 33, 51, 0.85); }
.tpc-custom-wall-extras[open] .tpc-custom-wall-extra-fields { margin-top: 10px; }

.tpc-custom-wall-preview .tpc-locker-wall {
  background: rgba(20, 33, 51, 0.025);
  margin: 0;
}

/* === Finance gate === */
.finance-gate-open { overflow: hidden; }
.finance-gate-modal {
  position: fixed; inset: 0; z-index: 2000;
  display: flex; align-items: center; justify-content: center;
}
.finance-gate-modal[hidden] { display: none; }
.finance-gate-overlay {
  position: absolute; inset: 0;
  background: rgba(20, 33, 51, 0.6);
  backdrop-filter: blur(3px);
}
.finance-gate-dialog {
  position: relative;
  width: min(440px, 92vw);
  background: #fff;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 24px 64px rgba(20, 33, 51, 0.4);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.finance-gate-dialog header h2 { margin: 4px 0; font-size: 1.3rem; }
.finance-gate-dialog form {
  display: flex; flex-direction: column;
  gap: 10px;
}
.finance-gate-dialog form label {
  display: flex; flex-direction: column;
  gap: 4px;
  font-size: 0.88rem;
  font-weight: 500;
}
.finance-gate-dialog form input[type="password"] {
  padding: 10px 12px;
  border: 1px solid rgba(20, 33, 51, 0.22);
  border-radius: 8px;
  font: inherit;
  font-size: 1rem;
}
.finance-gate-error { color: #b1322f; font-size: 0.88rem; min-height: 1.1em; }
.finance-gate-success { color: #1c7a3a; font-size: 0.88rem; min-height: 1.1em; }
.finance-gate-change {
  margin-top: 6px;
  padding-top: 12px;
  border-top: 1px dashed rgba(20, 33, 51, 0.15);
}
.finance-gate-change summary {
  cursor: pointer;
  font-size: 0.88rem;
  color: rgba(20, 33, 51, 0.7);
  font-weight: 500;
}
.finance-gate-change[open] form { margin-top: 10px; }

.finance-gate-toolbar {
  display: inline-flex;
  gap: 6px;
  margin-left: 12px;
  align-self: center;
}

/* === Configurator article tagging === */
.cfg-summary { display: flex; flex-wrap: wrap; gap: 8px; }
.cfg-summary-pill {
  display: inline-flex; gap: 6px; align-items: center;
  padding: 4px 12px;
  background: rgba(28, 122, 58, 0.1);
  color: #1c7a3a;
  border-radius: 999px;
  font-size: 0.85rem;
}
.cfg-summary-pill--empty { background: rgba(20, 33, 51, 0.06); color: rgba(20, 33, 51, 0.55); }

.cfg-articles-wrap { overflow-x: auto; margin-top: 14px; }
.cfg-articles-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.cfg-articles-table th, .cfg-articles-table td {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(20, 33, 51, 0.08);
  vertical-align: middle;
}
.cfg-articles-table th {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(20, 33, 51, 0.6);
  background: rgba(47, 111, 174, 0.04);
  position: sticky; top: 0; z-index: 1;
}
.cfg-articles-table tr:hover td { background: rgba(47, 111, 174, 0.03); }
.cfg-articles-table tr.cfg-saving td { opacity: 0.55; }
.cfg-articles-table tr.cfg-saved td {
  background: rgba(28, 122, 58, 0.08);
  transition: background 0.6s ease;
}
.cfg-articles-table select {
  padding: 5px 8px;
  border: 1px solid rgba(20, 33, 51, 0.18);
  border-radius: 6px;
  font: inherit;
  min-width: 130px;
}
.cfg-articles-table code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.85rem;
  color: rgba(20, 33, 51, 0.85);
}
.cfg-muted { color: rgba(20, 33, 51, 0.55); font-size: 0.85rem; }
.cfg-tabular { font-variant-numeric: tabular-nums; }
.cfg-empty { text-align: center; padding: 26px; color: rgba(20, 33, 51, 0.55); font-style: italic; }

/* === Webshop app ===================================================== */
.webshop-topbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(0, 2fr) auto;
  align-items: center;
  gap: 24px;
  padding: 18px 28px;
  background: linear-gradient(135deg, #0044CE 0%, #0437A0 100%);
  color: #fff;
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(4, 55, 160, 0.18);
  margin: 16px 0 20px;
}
.webshop-topbar h1 { color: #fff; margin: 0; font-size: 1.5rem; }
.webshop-topbar .eyebrow { color: rgba(255,255,255,0.7); margin: 0 0 4px; font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; }
.webshop-topbar__search input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 999px;
  border: none;
  background: rgba(255,255,255,0.94);
  color: #0f172a;
  font: 500 0.95rem Aeonik, system-ui, sans-serif;
}
.webshop-topbar__search input:focus { outline: 3px solid rgba(255,255,255,0.5); }
.webshop-topbar__actions { display: flex; align-items: center; gap: 12px; }
.webshop-cart-link {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.36);
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  font: 600 0.9rem Aeonik, system-ui, sans-serif;
  text-decoration: none;
}
.webshop-cart-link:hover { background: rgba(255,255,255,0.22); }
.webshop-cart-link__count {
  background: #fff; color: #0044CE; font-weight: 700;
  padding: 2px 8px; border-radius: 999px; min-width: 22px; text-align: center;
}
.webshop-cart-link__count[data-empty="1"] { background: rgba(255,255,255,0.4); color: rgba(15,23,42,0.7); }

.webshop-category-bar {
  display: flex; gap: 0; align-items: center;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 18px;
  overflow-x: auto;
}
.webshop-category-bar__home {
  padding: 14px 18px;
  font: 600 0.85rem Aeonik, system-ui, sans-serif;
  color: #475569;
  border-right: 1px solid #e2e8f0;
  text-decoration: none;
}
.webshop-category-bar__home:hover { color: #0044CE; }
.webshop-category-bar__link {
  display: flex; flex-direction: column;
  padding: 12px 22px;
  border-bottom: 3px solid transparent;
  color: #0f172a;
  text-decoration: none;
  white-space: nowrap;
}
.webshop-category-bar__link:hover { border-bottom-color: #0044CE; color: #0044CE; }
.webshop-category-bar__label { font: 700 0.95rem Aeonik, system-ui, sans-serif; }
.webshop-category-bar__sub { font-size: 0.75rem; color: #64748b; }

.webshop-view { display: flex; flex-direction: column; gap: 18px; }

.webshop-hero {
  background: #ffffff;
  padding: 22px 26px;
  border-radius: 18px;
  border: 1px solid #e2e8f0;
}
.webshop-hero h2 { margin: 0 0 6px; color: #0044CE; font-size: 1.5rem; }
.webshop-hero p { margin: 0; color: #475569; max-width: 720px; }

.webshop-mega-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.webshop-mega-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.webshop-mega-card__title {
  font: 700 1.05rem Aeonik, system-ui, sans-serif;
  color: #0044CE;
  text-decoration: none;
}
.webshop-mega-card__title:hover { text-decoration: underline; }
.webshop-mega-card__sub { color: #64748b; font-size: 0.85rem; margin: 4px 0 0; }
.webshop-mega-card__body { display: flex; flex-direction: column; gap: 6px; }
.webshop-sub-link {
  display: flex; justify-content: space-between; align-items: center;
  padding: 6px 0;
  color: #0f172a;
  text-decoration: none;
  font-size: 0.92rem;
  border-bottom: 1px dashed transparent;
}
.webshop-sub-link:hover { color: #0044CE; border-bottom-color: #0044CE; }
.webshop-sub-link__count { color: #94a3b8; font-size: 0.78rem; }
.webshop-mega-card__more {
  margin-top: auto;
  font: 600 0.85rem Aeonik, system-ui, sans-serif;
  color: #0044CE;
  text-decoration: none;
}

.webshop-breadcrumb {
  display: flex; gap: 6px; align-items: center; font-size: 0.85rem; color: #64748b;
  padding: 4px 0;
}
.webshop-breadcrumb a { color: #0044CE; text-decoration: none; }
.webshop-breadcrumb a:hover { text-decoration: underline; }
.webshop-breadcrumb strong { color: #0f172a; }

.webshop-entity-switch {
  display: inline-block;
  margin-top: 4px;
  font: 600 0.78rem Aeonik, system-ui, sans-serif;
  color: #0044CE;
  text-decoration: none;
  border-bottom: 1px dashed currentColor;
}
.webshop-entity-switch:hover { color: #002a82; }

.webshop-entity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.webshop-entity-pick {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 22px 20px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  cursor: pointer;
  text-align: left;
  transition: border-color 120ms ease, box-shadow 120ms ease, transform 120ms ease;
}
.webshop-entity-pick:hover {
  border-color: #0044CE;
  box-shadow: 0 4px 14px rgba(0, 68, 206, 0.12);
  transform: translateY(-1px);
}
.webshop-entity-pick__name {
  font: 700 1.05rem Aeonik, system-ui, sans-serif;
  color: #0f172a;
}
.webshop-entity-pick__sub {
  font-size: 0.82rem;
  color: #64748b;
}
.webshop-entity-pick[data-active="1"] {
  border-color: #0044CE;
  background: #eff5ff;
}
.webshop-topbar__context {
  display: flex; gap: 14px; flex-wrap: wrap; align-items: center;
  margin-top: 4px;
}
.webshop-topbar__purpose {
  font-size: 0.85rem; color: #475569;
}
.webshop-topbar__purpose strong { color: #0f172a; }
.webshop-purpose-other { margin-top: 16px; }
.webshop-purpose-other.is-hidden { display: none; }

.webshop-sub-nav { display: flex; gap: 8px; flex-wrap: wrap; padding: 4px 0 12px; }
.webshop-sub-pill {
  display: inline-flex; gap: 6px; align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #e2e8f0;
  color: #0f172a;
  font: 600 0.82rem Aeonik, system-ui, sans-serif;
  text-decoration: none;
}
.webshop-sub-pill:hover { border-color: #0044CE; color: #0044CE; }
.webshop-sub-pill.is-active { background: #0044CE; color: #fff; border-color: #0044CE; }
.webshop-sub-pill__count { font-size: 0.72rem; color: inherit; opacity: 0.75; }

.webshop-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.webshop-card {
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  text-decoration: none;
  color: #0f172a;
  overflow: hidden;
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}
.webshop-card:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(15,23,42,0.08); border-color: #c7d2fe; }
.webshop-card__image {
  width: 100%; height: 160px; object-fit: contain;
  background: #f1f5f9;
}
.webshop-card__image--placeholder {
  display: flex; align-items: center; justify-content: center;
  color: #94a3b8; font: 600 0.85rem Aeonik, system-ui, sans-serif;
}
.webshop-card__body { padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.webshop-card__title { font: 600 0.95rem Aeonik, system-ui, sans-serif; }
.webshop-card__article { font-size: 0.78rem; color: #64748b; }
.webshop-card__category { font-size: 0.75rem; color: #94a3b8; }
.webshop-card__price { margin-top: 6px; color: #0044CE; font-weight: 700; }

.webshop-product-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: 24px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 20px;
}
.webshop-product-detail__media { background: #f1f5f9; border-radius: 14px; display: flex; align-items: center; justify-content: center; min-height: 280px; }
.webshop-product-detail__image { max-width: 100%; max-height: 360px; object-fit: contain; }
.webshop-product-detail__placeholder {
  font: 700 1.1rem Aeonik, system-ui, sans-serif; color: #94a3b8; padding: 40px;
}
.webshop-product-detail__body h2 { margin: 0 0 6px; color: #0f172a; font-size: 1.4rem; }
.webshop-product-detail__price { font-size: 1.6rem; color: #0044CE; font-weight: 700; margin: 8px 0 12px; }
.webshop-spec-table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 0.85rem; }
.webshop-spec-table th, .webshop-spec-table td { text-align: left; padding: 8px 0; border-bottom: 1px solid #e2e8f0; }
.webshop-spec-table th { color: #64748b; font-weight: 500; width: 40%; }
.webshop-product-detail__actions { display: flex; gap: 12px; align-items: end; flex-wrap: wrap; }
.webshop-product-detail__actions label { display: flex; flex-direction: column; gap: 4px; font: 500 0.85rem Aeonik, system-ui, sans-serif; }
.webshop-product-detail__actions input { padding: 8px 10px; border-radius: 8px; border: 1px solid #cbd5e1; width: 90px; }

.webshop-cart-table, .webshop-orders-table { width: 100%; border-collapse: collapse; }
.webshop-cart-table th, .webshop-cart-table td,
.webshop-orders-table th, .webshop-orders-table td {
  padding: 12px 10px; border-bottom: 1px solid #e2e8f0; text-align: left; vertical-align: top;
}
.webshop-cart-table thead th, .webshop-orders-table thead th {
  font: 600 0.78rem Aeonik, system-ui, sans-serif; color: #64748b; text-transform: uppercase; letter-spacing: 0.08em;
}
.webshop-cart-table tfoot td { font-weight: 600; }
.webshop-cart-total-label { text-align: right; color: #64748b; }
.webshop-cart-qty { width: 70px; padding: 6px 8px; border-radius: 8px; border: 1px solid #cbd5e1; }
.webshop-cart-thumb { width: 56px; height: 56px; object-fit: contain; background: #f1f5f9; border-radius: 8px; }
.webshop-cart-thumb--empty { background: #f1f5f9; }

.webshop-checkout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 24px; }
.webshop-checkout__summary { background: #f8fafc; border-radius: 14px; padding: 16px; }
.webshop-checkout__summary ul { list-style: none; padding: 0; margin: 8px 0 12px; }
.webshop-checkout__summary li { display: flex; justify-content: space-between; padding: 4px 0; border-bottom: 1px dashed #e2e8f0; font-size: 0.9rem; }
.webshop-checkout__total { display: flex; justify-content: space-between; padding-top: 8px; border-top: 1px solid #cbd5e1; font-size: 1rem; }
.webshop-checkout__form { display: flex; flex-direction: column; gap: 12px; }
.webshop-checkout__form label { display: flex; flex-direction: column; gap: 4px; font: 600 0.85rem Aeonik, system-ui, sans-serif; color: #334155; }
.webshop-checkout__form input,
.webshop-checkout__form textarea {
  padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 10px; font: 500 0.92rem Aeonik, system-ui, sans-serif;
}
.webshop-checkout__form textarea { resize: vertical; min-height: 90px; }

.webshop-order-status {
  display: inline-block; padding: 2px 10px; border-radius: 999px;
  font: 600 0.72rem Aeonik, system-ui, sans-serif; text-transform: uppercase; letter-spacing: 0.06em;
  background: #e0e7ff; color: #1d4ed8;
}
.webshop-order-status--in-progress { background: #fef3c7; color: #92400e; }
.webshop-order-status--shipped { background: #cffafe; color: #155e75; }
.webshop-order-status--completed { background: #dcfce7; color: #166534; }
.webshop-order-status--cancelled { background: #fee2e2; color: #991b1b; }

.article-image-field {
  margin: 12px 0;
  padding: 14px 16px;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px dashed #cbd5e1;
}
.article-image-field__head { display: flex; flex-direction: column; gap: 2px; margin-bottom: 10px; }
.article-image-field__row { display: flex; gap: 14px; align-items: flex-start; }
.article-image-field__row img { max-width: 120px; max-height: 120px; border-radius: 8px; background: #fff; padding: 4px; border: 1px solid #e2e8f0; }
.article-image-field__controls { display: flex; flex-direction: column; gap: 8px; }

@media (max-width: 880px) {
  .webshop-topbar { grid-template-columns: 1fr; }
  .webshop-product-detail, .webshop-checkout { grid-template-columns: 1fr; }
}

.webshop-order-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.webshop-order-actions button { white-space: nowrap; }

.webshop-modal {
  position: fixed; inset: 0;
  background: rgba(15,23,42,0.5);
  z-index: 10000;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.webshop-modal__card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(15,23,42,0.25);
  max-width: 640px;
  width: 100%;
  max-height: calc(100vh - 80px);
  overflow: auto;
  font-family: Aeonik, system-ui, sans-serif;
  color: #0f172a;
}
.webshop-modal__head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 22px;
  border-bottom: 1px solid #e2e8f0;
}
.webshop-modal__head h3 { margin: 0; font-size: 1.05rem; }
.webshop-modal__close {
  appearance: none; border: none; background: transparent;
  font-size: 1.6rem; cursor: pointer; color: #64748b; line-height: 1;
}
.webshop-modal__body { padding: 18px 22px; display: flex; flex-direction: column; gap: 12px; }
.webshop-modal__body label { display: flex; flex-direction: column; gap: 4px; font: 600 0.82rem Aeonik, system-ui, sans-serif; color: #334155; }
.webshop-modal__body input,
.webshop-modal__body select,
.webshop-modal__body textarea {
  padding: 9px 12px; border: 1px solid #cbd5e1; border-radius: 10px; font: 500 0.9rem Aeonik, system-ui, sans-serif;
}
.webshop-modal__body textarea { resize: vertical; min-height: 80px; }
.webshop-modal__body .grid-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.webshop-modal__body .webshop-cart-table { margin-top: 6px; }
.webshop-modal__body .actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; }

.webshop-modal__checkbox {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 10px; background: #f8fafc;
  font: 500 0.9rem Aeonik, system-ui, sans-serif;
}
.webshop-modal__checkbox input { width: 16px; height: 16px; margin-top: 3px; }
.webshop-modal__checkbox span { display: flex; flex-direction: column; gap: 2px; color: #0f172a; }
.webshop-modal__checkbox .helper-text { color: #64748b; }

.webshop-edit-add {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  padding: 12px 14px;
  display: flex; flex-direction: column; gap: 6px;
}
.webshop-edit-add strong { font: 700 0.82rem Aeonik, system-ui, sans-serif; color: #0f172a; }
.webshop-edit-add__row input {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  font: 500 0.9rem Aeonik, system-ui, sans-serif;
}
.webshop-edit-add__suggestions {
  list-style: none; padding: 0; margin: 4px 0 0;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  max-height: 240px;
  overflow-y: auto;
}
.webshop-edit-add__suggestions li { border-bottom: 1px solid #f1f5f9; }
.webshop-edit-add__suggestions li:last-child { border-bottom: none; }
.webshop-edit-add__suggestions button {
  appearance: none; border: none; background: transparent;
  width: 100%; text-align: left;
  padding: 9px 12px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  cursor: pointer;
  font: 500 0.88rem Aeonik, system-ui, sans-serif;
  color: #0f172a;
}
.webshop-edit-add__suggestions button:hover { background: #eef2ff; color: #0044CE; }
.webshop-edit-add__price { color: #0044CE; font-weight: 700; white-space: nowrap; }
.webshop-edit-add__empty { padding: 10px 12px; color: #64748b; font-size: 0.85rem; }

/* === Webshop tile / list view ======================================== */
.webshop-listing-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 0 14px;
  gap: 12px;
  flex-wrap: wrap;
}
.webshop-view-toggle {
  display: inline-flex;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}
.webshop-view-toggle__btn {
  appearance: none; border: none; background: transparent;
  padding: 7px 14px;
  font: 600 0.82rem Aeonik, system-ui, sans-serif;
  color: #475569;
  cursor: pointer;
}
.webshop-view-toggle__btn.is-active { background: #0044CE; color: #fff; }

.webshop-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 22px;
}

.webshop-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}
.webshop-card:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(15,23,42,0.08); border-color: #c7d2fe; }
.webshop-card__media {
  display: flex; align-items: center; justify-content: center;
  background: #f8fafc;
  padding: 22px;
  min-height: 200px;
  text-decoration: none;
}
.webshop-card__image { max-width: 100%; max-height: 180px; object-fit: contain; }
.webshop-card__image--placeholder {
  width: 100%;
  display: flex; align-items: center; justify-content: center;
  color: #94a3b8; font: 600 0.95rem Aeonik, system-ui, sans-serif;
}
.webshop-card__body {
  padding: 14px 16px 16px;
  display: flex; flex-direction: column;
  gap: 6px;
}
.webshop-card__article-number {
  font: 600 0.78rem Aeonik, system-ui, sans-serif;
  color: #64748b;
  letter-spacing: 0.04em;
}
.webshop-card__title {
  font: 700 1.04rem Aeonik, system-ui, sans-serif;
  color: #0044CE;
  line-height: 1.25;
  text-decoration: none;
}
.webshop-card__title:hover { text-decoration: underline; }
.webshop-card__category, .webshop-card__meta {
  font-size: 0.78rem; color: #64748b;
}
.webshop-card__price {
  margin-top: 8px;
  color: #0f172a;
  font: 800 1.25rem Aeonik, system-ui, sans-serif;
}
.webshop-add-cart-button {
  margin-top: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  background: #1f9d55;
  color: #fff;
  border: none;
  padding: 11px 14px;
  border-radius: 12px;
  font: 700 0.92rem Aeonik, system-ui, sans-serif;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(31,157,85,0.25);
  transition: background 0.12s ease, transform 0.12s ease;
}
.webshop-add-cart-button:hover { background: #16864a; }
.webshop-add-cart-button.is-added { background: #0f172a; }
.webshop-add-cart-button__icon { font-size: 1.05rem; }

.webshop-product-list {
  display: flex; flex-direction: column; gap: 10px;
}
.webshop-row {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  text-decoration: none;
  color: #0f172a;
}
.webshop-row:hover { border-color: #c7d2fe; box-shadow: 0 10px 24px rgba(15,23,42,0.06); }
.webshop-row__image {
  width: 88px; height: 88px; object-fit: contain;
  background: #f8fafc; border-radius: 10px;
}
.webshop-row__image--placeholder { background: #f1f5f9; }
.webshop-row__title {
  display: flex; gap: 10px; align-items: baseline;
  font: 700 1rem Aeonik, system-ui, sans-serif;
}
.webshop-row__article-number { color: #64748b; font-size: 0.85rem; }
.webshop-row__name { color: #0044CE; }
.webshop-row__meta { color: #64748b; font-size: 0.82rem; margin-top: 2px; }
.webshop-row__price {
  font: 800 1.05rem Aeonik, system-ui, sans-serif;
  color: #0f172a;
}

/* === Webshop cart (Coolblue layout) ================================== */
.webshop-cart-hero { padding: 8px 0 18px; }
.webshop-cart-hero h2 {
  margin: 0;
  font: 800 2rem Aeonik, system-ui, sans-serif;
  color: #0044CE;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.webshop-cart-hero__count { color: #0f172a; }
.webshop-cart-hero__accent { color: #f97316; }
.webshop-cart-hero p { margin: 4px 0 0; color: #0044CE; }

.webshop-cart-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: 22px;
  align-items: start;
}
@media (max-width: 980px) {
  .webshop-cart-grid { grid-template-columns: 1fr; }
}

.webshop-cart-main {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 10px 18px;
}
.webshop-cart-main__footer {
  display: flex; justify-content: space-between; padding: 18px 0 10px;
  flex-wrap: wrap; gap: 10px;
}

.webshop-cart-aside { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 16px; }
.webshop-cart-aside__card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 18px;
}
.webshop-cart-aside__card h3 { margin: 0 0 8px; color: #0f172a; font-size: 1rem; }
.webshop-cart-aside__list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 8px;
  font-size: 0.88rem; color: #334155;
}
.webshop-cart-aside__list li { padding-left: 18px; position: relative; }
.webshop-cart-aside__list li::before {
  content: "✓"; position: absolute; left: 0; color: #1f9d55; font-weight: 700;
}
.webshop-cart-aside__summary { display: flex; flex-direction: column; gap: 10px; }
.webshop-cart-summary__row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 6px 0;
  font-size: 0.92rem;
}
.webshop-cart-summary__row--muted { color: #475569; }
.webshop-cart-summary__discount {
  display: flex; justify-content: space-between; align-items: center;
  gap: 10px;
  padding: 6px 0;
  font: 600 0.88rem Aeonik, system-ui, sans-serif;
}
.webshop-cart-summary__discount input {
  width: 80px; padding: 6px 10px;
  border: 1px solid #cbd5e1; border-radius: 8px;
  text-align: right;
}
.webshop-cart-summary__total {
  margin-top: 6px;
  padding: 12px 0;
  border-top: 1px solid #cbd5e1;
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 12px;
}
.webshop-cart-summary__total-amount {
  font: 800 1.5rem Aeonik, system-ui, sans-serif;
}
.webshop-cart-summary__savings { color: #1f9d55; font-weight: 600; }
.webshop-checkout-button {
  display: flex; align-items: center; justify-content: center;
  gap: 10px;
  background: #1f9d55;
  color: #fff;
  padding: 14px 18px;
  border-radius: 12px;
  font: 800 1.02rem Aeonik, system-ui, sans-serif;
  text-decoration: none;
  margin-top: 8px;
  box-shadow: 0 14px 24px rgba(31,157,85,0.28);
}
.webshop-checkout-button:hover { background: #16864a; }

/* === Checkout external client picker ================================ */
.webshop-checkout__scope {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px;
  background: #f8fafc;
  display: flex; flex-direction: column; gap: 10px;
  margin: 0;
}
.webshop-checkout__scope legend {
  padding: 0 6px;
  font: 700 0.85rem Aeonik, system-ui, sans-serif;
  color: #0f172a;
}
.webshop-checkout__scope-option {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 8px 10px;
  background: #fff;
  border: 1px solid transparent;
  border-radius: 10px;
  cursor: pointer;
}
.webshop-checkout__scope-option:has(input:checked) {
  border-color: #0044CE;
  box-shadow: 0 0 0 3px rgba(0,68,206,0.08);
}
.webshop-checkout__scope-option input { margin-top: 4px; }
.webshop-checkout__scope-option span { display: flex; flex-direction: column; gap: 2px; }
.webshop-checkout__external {
  display: flex; flex-direction: column; gap: 12px;
  padding: 14px;
  background: #eef2ff;
  border-radius: 12px;
}

.webshop-checkout__readonly {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px;
  background: #f8fafc;
  display: flex; flex-direction: column; gap: 10px;
  margin: 0;
}
.webshop-checkout__readonly legend {
  padding: 0 6px;
  font: 700 0.85rem Aeonik, system-ui, sans-serif;
  color: #0f172a;
}
.webshop-checkout__readonly-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 10px;
  align-items: start;
  padding: 8px 10px;
  background: #fff;
  border-radius: 10px;
}
.webshop-checkout__readonly-label {
  font: 600 0.78rem Aeonik, system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
}
.webshop-checkout__readonly-value { display: flex; flex-direction: column; gap: 2px; color: #0f172a; }

.webshop-checkout__address {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px;
  background: #f8fafc;
  display: flex; flex-direction: column; gap: 10px;
  margin: 0;
}
.webshop-checkout__address legend {
  padding: 0 6px;
  font: 700 0.85rem Aeonik, system-ui, sans-serif;
  color: #0f172a;
}
.webshop-checkout__address-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.webshop-customer-picker__clear {
  margin-left: 8px;
  font-size: 0.78rem;
}
.webshop-customer-picker__selected {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  border-radius: 10px;
  color: #065f46;
}

.webshop-checkout__urgency-toggle {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 8px 10px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  cursor: pointer;
  flex-direction: row;
}
.webshop-checkout__urgency-toggle input { margin-top: 4px; }
.webshop-checkout__urgency-toggle span { display: flex; flex-direction: column; gap: 2px; }

/* Smaller, tighter urgent-order toggle — sits in the form like a
 * regular row rather than a giant centred panel.
 * The global .webshop-checkout__form label rule otherwise turns this
 * into a column-flex giant; force a row layout + native-size input. */
.webshop-checkout__form label.webshop-checkout__urgency-row {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid var(--panel-border, #e2e8f0);
  border-radius: 8px;
  background: #f8fafc;
  cursor: pointer;
  width: fit-content;
  font: 500 0.85rem Aeonik, system-ui, sans-serif;
  color: #334155;
}
.webshop-checkout__urgency-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #0044CE;
  flex: 0 0 auto;
}
.webshop-checkout__urgency-copy {
  display: inline-flex;
  flex-direction: row;
  align-items: baseline;
  gap: 6px;
}
.webshop-checkout__urgency-title {
  font-weight: 700;
  color: #0f172a;
}
.webshop-checkout__urgency-hint {
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 400;
}

/* Make the inputs in the address grid line up: helper-text after a
 * label name pushed the State row down a line. Use a uniform label
 * line-height + push the input to the bottom of each grid cell. */
.webshop-checkout__address-grid > label {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 4px;
  min-height: 0;
}

/* === Webshop cart — clean table layout overrides ==================== */
.webshop-cart-main {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 8px 18px 18px;
}
.webshop-cart-main .webshop-cart-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
.webshop-cart-main .webshop-cart-table thead th {
  font: 600 0.72rem Aeonik, system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid #e2e8f0;
}
.webshop-cart-main .webshop-cart-table__price-header,
.webshop-cart-main .webshop-cart-table__unit-header { text-align: right; }
.webshop-cart-main .webshop-cart-row > td {
  padding: 16px 10px;
  border-bottom: 1px solid #e2e8f0;
  vertical-align: middle;
}
.webshop-cart-main .webshop-cart-row:last-child > td { border-bottom: none; }

/* Column widths — keep them stable.
 * Columns: 1 image · 2 product · 3 qty · 4 unit · 5 discount · 6 price */
.webshop-cart-main .webshop-cart-table thead th:nth-child(1),
.webshop-cart-main .webshop-cart-row__media { width: 88px; }
.webshop-cart-main .webshop-cart-table thead th:nth-child(3),
.webshop-cart-main .webshop-cart-row__qty { width: 160px; }
.webshop-cart-main .webshop-cart-table thead th:nth-child(4),
.webshop-cart-main .webshop-cart-row__unit-cell { width: 110px; text-align: right; }
.webshop-cart-main .webshop-cart-table thead th:nth-child(5),
.webshop-cart-main .webshop-cart-row__discount-cell { width: 160px; }
.webshop-cart-main .webshop-cart-table thead th:nth-child(6),
.webshop-cart-main .webshop-cart-row__price { width: 140px; text-align: right; }

.webshop-cart-row__unit-cell {
  font: 600 0.95rem Aeonik, system-ui, sans-serif;
  color: #475569;
}

.webshop-cart-row__thumb {
  display: block;
  width: 72px; height: 72px; object-fit: contain;
  background: #f8fafc; border-radius: 10px;
  border: 1px solid #e2e8f0;
}
.webshop-cart-row__thumb--empty { background: #f1f5f9; }

.webshop-cart-row__info { min-width: 0; }
.webshop-cart-row__title {
  display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap;
  text-decoration: none;
}
.webshop-cart-row__article-number {
  font: 700 0.92rem Aeonik, system-ui, sans-serif;
  color: #0f172a;
}
.webshop-cart-row__name {
  font: 600 0.98rem Aeonik, system-ui, sans-serif;
  color: #0044CE;
}
.webshop-cart-row__title:hover .webshop-cart-row__name { text-decoration: underline; }
.webshop-cart-row__category {
  font-size: 0.78rem; color: #64748b; margin-top: 2px;
}
/* Remove the stray ghost-button styling on the inline link — keep it
 * as a plain underlined link that sits below the product info. */
.webshop-cart-row__remove,
.webshop-cart-row__remove.ghost-button {
  display: inline-block;
  appearance: none;
  background: transparent;
  border: none;
  padding: 0;
  margin-top: 6px;
  color: #0044CE;
  font: 500 0.82rem Aeonik, system-ui, sans-serif;
  text-decoration: underline;
  cursor: pointer;
  border-radius: 0;
  box-shadow: none;
  min-height: 0;
}
.webshop-cart-row__remove:hover { color: #0437A0; }

.webshop-cart-row__qty .webshop-qty-stepper {
  display: inline-flex; align-items: stretch;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
.webshop-cart-row__qty .webshop-qty-stepper button {
  appearance: none; border: none; background: #fff;
  padding: 0 12px;
  font: 700 1rem Aeonik, system-ui, sans-serif;
  color: #0044CE;
  cursor: pointer;
}
.webshop-cart-row__qty .webshop-qty-stepper button:hover { background: #eef2ff; }
.webshop-cart-row__qty .webshop-qty-stepper input {
  width: 56px; border: none; text-align: center; padding: 8px 0;
  font: 600 0.95rem Aeonik, system-ui, sans-serif;
}

.webshop-cart-row__discount-cell .webshop-qty-stepper--discount,
.webshop-cart-summary__discount .webshop-qty-stepper--discount {
  display: inline-flex; align-items: stretch;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
.webshop-qty-stepper--discount button {
  appearance: none; border: none; background: #fff;
  padding: 0 12px;
  font: 700 1rem Aeonik, system-ui, sans-serif;
  color: #0044CE;
  cursor: pointer;
}
.webshop-qty-stepper--discount button:hover { background: #eef2ff; }
.webshop-qty-stepper--discount input {
  width: 56px; border: none; text-align: center; padding: 8px 0;
  font: 600 0.95rem Aeonik, system-ui, sans-serif;
  background: #fff;
}
.webshop-cart-summary__discount { display: flex; justify-content: space-between; align-items: center; gap: 10px; }

.webshop-cart-row__price {
  display: flex; flex-direction: column; align-items: flex-end; gap: 2px;
}
.webshop-cart-row__gross {
  color: #94a3b8; text-decoration: line-through; font-size: 0.82rem;
}
.webshop-cart-row__net {
  font: 700 1.05rem Aeonik, system-ui, sans-serif; color: #0f172a;
}

@media (max-width: 720px) {
  .webshop-cart-main .webshop-cart-table { table-layout: auto; }
  .webshop-cart-main .webshop-cart-table thead { display: none; }
  .webshop-cart-main .webshop-cart-row { display: grid; grid-template-columns: 72px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid #e2e8f0; }
  .webshop-cart-main .webshop-cart-row > td { border: none; padding: 0; }
  .webshop-cart-main .webshop-cart-row__qty { grid-column: 1 / -1; width: auto; }
  .webshop-cart-main .webshop-cart-row__unit-cell { grid-column: 1 / -1; width: auto; text-align: left; }
  .webshop-cart-main .webshop-cart-row__discount-cell { grid-column: 1 / -1; width: auto; }
  .webshop-cart-main .webshop-cart-row__price { grid-column: 1 / -1; width: auto; align-items: flex-start; text-align: left; }
}

.webshop-customer-picker { display: flex; flex-direction: column; gap: 6px; position: relative; }
.webshop-customer-picker label { display: flex; flex-direction: column; gap: 4px; font: 600 0.82rem Aeonik, system-ui, sans-serif; color: #334155; }
.webshop-customer-picker label input {
  padding: 9px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font: 500 0.9rem Aeonik, system-ui, sans-serif;
}
.webshop-customer-picker__suggestions {
  list-style: none; padding: 0; margin: 0;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  max-height: 280px;
  overflow-y: auto;
  z-index: 5;
}
.webshop-customer-picker__suggestions li { border-bottom: 1px solid #f1f5f9; }
.webshop-customer-picker__suggestions li:last-child { border-bottom: none; }
.webshop-customer-picker__suggestions button {
  appearance: none; border: none; background: transparent;
  width: 100%; text-align: left;
  padding: 9px 14px;
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 6px 12px;
  align-items: baseline;
  cursor: pointer;
  font: 500 0.88rem Aeonik, system-ui, sans-serif;
  color: #0f172a;
}
.webshop-customer-picker__suggestions button:hover { background: #eef2ff; color: #0044CE; }
.webshop-customer-picker__suggestions button strong { font-weight: 700; }
.webshop-customer-picker__row-label { display: none; }
.webshop-customer-picker__selected {
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  color: #0044CE;
  padding: 8px 12px;
  border-radius: 10px;
  margin: 0;
  font: 600 0.85rem Aeonik, system-ui, sans-serif;
}

.webshop-checkout__urgency {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 14px;
  display: flex; flex-direction: column; gap: 10px;
}
.webshop-checkout__urgency-toggle {
  display: flex; gap: 10px; align-items: flex-start;
  cursor: pointer;
  font: 500 0.9rem Aeonik, system-ui, sans-serif;
}
.webshop-checkout__urgency-toggle input { margin-top: 4px; }
.webshop-checkout__urgency-toggle span { display: flex; flex-direction: column; gap: 2px; }
.webshop-checkout__urgency-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.webshop-checkout__urgency-row label { font: 600 0.82rem Aeonik, system-ui, sans-serif; }

.webshop-urgent-pill {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 8px;
  background: #fee2e2;
  color: #b91c1c;
  border-radius: 999px;
  font: 700 0.7rem Aeonik, system-ui, sans-serif;
  letter-spacing: 0.08em;
}

.office365-signin-panel { display: flex; justify-content: center; }
.office365-signin-block { text-align: center; padding: 24px 16px; max-width: 520px; }
.office365-signin-button {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 12px 22px;
  background: #2f2f2f;
  color: #fff;
  font: 600 1rem "Segoe UI", Aeonik, system-ui, sans-serif;
  border-radius: 4px;
  text-decoration: none;
  border: 1px solid #2f2f2f;
  transition: background 0.12s ease, border-color 0.12s ease;
}
.office365-signin-button:hover { background: #0067b8; border-color: #0067b8; }
.office365-signin-button__logo {
  display: inline-grid;
  grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr;
  gap: 2px;
  width: 21px; height: 21px;
}
.office365-signin-button__logo span { display: block; }

.office365-advanced .section-heading { align-items: center; }
.office365-advanced .ghost-button { padding: 6px 14px; }

.office365-admin-hint { background: #fff7ed; border-color: #fed7aa; }
.office365-admin-hint h2 { margin: 0 0 8px; color: #9a3412; }
.office365-env-list { list-style: none; padding: 0; margin: 12px 0; display: flex; flex-direction: column; gap: 8px; }
.office365-env-list li { padding: 8px 12px; background: #fff; border: 1px solid #fed7aa; border-radius: 8px; font-size: 0.88rem; }
.office365-env-list code { background: #fef3c7; padding: 2px 6px; border-radius: 4px; font-size: 0.85em; }

.auth-divider {
  display: flex; align-items: center; gap: 10px;
  margin: 14px 0;
  color: #94a3b8;
  font: 500 0.78rem Aeonik, system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.auth-divider::before,
.auth-divider::after { content: ""; flex: 1; height: 1px; background: #e2e8f0; }

/* Keynius.eu Webflow style layer
 * Source: exported Webflow variables and Keynius brand assets.
 * This section intentionally overrides older soft SaaS styling with the
 * sharper website system: Aeonik, 0px radius, 1px strokes, high contrast.
 */
body {
  background: var(--neutral-white);
}

body,
button,
input,
select,
textarea {
  font-family: "Aeonik", Arial, sans-serif;
}

.editor-frame {
  gap: var(--size-5);
}

.page-shell,
.editor-page-shell {
  margin-top: var(--size-5);
}

.brand-logo {
  height: 30px;
}

.eyebrow,
.app-card-eyebrow,
.side-menu-section-label,
.metric-label {
  color: var(--primary-blue);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 5rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.5rem, 2vw, 2.5rem);
  font-weight: 600;
  line-height: 1.12;
}

.hero-copy,
.helper-text,
.messages,
.app-card-copy span:last-child {
  color: var(--neutral-dark);
  font-size: 1rem;
  line-height: 1.55;
}

.hero::after,
.hero-card::before,
.panel::before {
  display: none;
}

.panel,
.hero-card,
.metric,
.side-menu,
.sync-card,
.saved-item,
.table-wrap,
.bom-table-shell,
.subtable-card,
.modal,
.app-card,
.support-problem-panel,
.panel-subsection,
.training-card,
.training-meta-card,
.training-chapter-card,
.training-content-card,
.training-hero-card,
.webshop-card,
.webshop-row,
.webshop-cart-main,
.webshop-cart-aside__card {
  background: var(--neutral-white);
  border: 1px solid var(--panel-border);
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.panel,
.hero-card {
  padding: var(--size-5);
}

.section-heading {
  border-bottom: 1px solid var(--panel-border);
  padding-bottom: var(--size-4);
}

.side-menu {
  background: #f8f8f8;
  padding: var(--size-3);
}

.side-menu-toggle,
.side-menu-item,
.side-menu-subitem,
.side-menu-language,
.side-menu-user,
.subpage-link,
.project-tab,
.view-toggle-button,
.toolbar-select,
.icon-button,
.ghost-button,
a.button-link.ghost-button {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 0;
  box-shadow: none;
  color: #060606;
}

.side-menu-toggle {
  color: #060606;
  border-bottom-color: var(--panel-border);
}

.side-menu-item:hover,
.side-menu-subitem:hover,
.subpage-link:hover,
.project-tab:hover,
.view-toggle-button:hover,
.icon-button:hover,
.ghost-button:hover:not(:disabled),
a.button-link.ghost-button:hover {
  background: var(--primary-blue-lightest);
  border-color: var(--primary-blue);
  color: var(--primary-blue);
  box-shadow: none;
  transform: none;
}

.side-menu-item-active,
.side-menu-subitem-active,
.subpage-link-active,
.project-tab.is-active,
.view-toggle-button-active,
.pagination-button-active {
  background: var(--primary-blue);
  border-color: var(--primary-blue);
  color: #ffffff;
  box-shadow: none;
}

.side-menu-item-active::before {
  display: none;
}

select,
textarea,
input[type="file"],
input[type="search"],
input[type="email"],
input[type="date"],
input[type="text"],
input[type="password"],
input[type="number"],
.support-query-input,
.toolbar-select,
.webshop-modal__body input,
.webshop-modal__body select,
.webshop-modal__body textarea {
  min-height: 40px;
  border: 1px solid #111111;
  border-radius: 0;
  background: #ffffff;
  color: #060606;
  box-shadow: none;
  padding: 10px 12px;
}

select:hover,
textarea:hover,
input[type="text"]:hover,
input[type="password"]:hover,
input[type="number"]:hover,
input[type="search"]:hover,
input[type="email"]:hover,
input[type="date"]:hover {
  border-color: var(--primary-blue);
}

select:focus,
textarea:focus,
input[type="file"]:focus,
input[type="search"]:focus,
input[type="email"]:focus,
input[type="date"]:focus,
input[type="text"]:focus,
input[type="password"]:focus,
input[type="number"]:focus {
  border-color: var(--primary-blue);
  box-shadow: var(--focus-ring);
}

button,
.button-link,
.webshop-add-cart-button,
.action-button,
.primary-button {
  min-height: 40px;
  border: 1px solid var(--primary-blue);
  border-radius: 0;
  background: var(--primary-blue);
  color: #ffffff;
  box-shadow: none;
  font-family: "Aeonik", Arial, sans-serif;
  font-weight: 600;
  letter-spacing: 0;
  padding: 10px 18px;
}

button:hover:not(:disabled),
.button-link:hover,
.webshop-add-cart-button:hover,
.action-button:hover:not(:disabled),
.primary-button:hover:not(:disabled) {
  background: var(--primary-blue-dark);
  border-color: var(--primary-blue-dark);
  box-shadow: none;
  transform: none;
}

button:focus-visible,
.button-link:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.ghost-button,
a.button-link.ghost-button,
.action-button--secondary,
.secondary-button {
  background: #ffffff;
  border-color: #0f0f0f;
  color: #060606;
}

.danger-action,
.ghost-button.danger {
  border-color: var(--danger) !important;
  color: var(--danger) !important;
}

.app-launcher-grid {
  gap: var(--size-5);
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.app-card {
  grid-template-columns: 52px minmax(0, 1fr);
  min-height: 184px;
  padding: var(--size-5);
  transition: background 180ms var(--ease-swift), border-color 180ms var(--ease-swift), transform 180ms var(--ease-swift);
}

.app-card:hover {
  background: var(--primary-blue-lightest);
  border-color: var(--primary-blue);
  box-shadow: none;
  transform: translateY(-2px);
}

.app-card-icon {
  width: 52px;
  height: 52px;
  border: 1px solid #0f0f0f;
  border-radius: 0;
  background: #ffffff;
  color: var(--primary-blue);
  box-shadow: none;
  padding: 12px;
}

.app-card-icon.has-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: none;
}

.app-card-copy {
  gap: var(--size-2);
}

.app-card-copy strong {
  color: #060606;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

table {
  border-collapse: collapse;
  background: #ffffff;
}

th,
td {
  border-bottom: 1px solid var(--neutral-lighter);
}

th,
thead th,
.support-subitems-table th {
  background: #ffffff;
  color: #060606;
  font-weight: 600;
}

tbody tr:hover td {
  background: var(--primary-blue-lightest);
}

.badge,
.project-status-pill,
.bom-source-badge,
.support-result-badge,
.tpc-badge,
.training-badge-chip,
.training-tag {
  border-radius: 0;
  border: 1px solid currentColor;
  background: #ffffff;
  color: var(--primary-blue);
  box-shadow: none;
}

.training-topbar {
  background: var(--primary-blue-darkest);
  border-radius: 0;
  box-shadow: none;
}

.training-visual-placeholder,
.training-hero-card {
  background: #ffffff;
}

@media (max-width: 720px) {
  h1 {
    font-size: clamp(2.25rem, 12vw, 3rem);
  }

  .panel,
  .hero-card,
  .app-card {
    padding: var(--size-4);
  }

  .app-launcher-grid {
    grid-template-columns: 1fr;
  }
}

.app-card.button-link {
  background: #ffffff;
  border-color: #0f0f0f;
  color: #060606;
  justify-content: flex-start;
}

.app-card.button-link:hover {
  background: var(--primary-blue-lightest);
  border-color: var(--primary-blue);
  color: #060606;
}

.side-menu .button-link,
.side-menu-nav .button-link,
.side-menu-item.button-link,
.side-menu-subitem.button-link {
  background: transparent;
  color: #060606;
}

.side-menu .button-link:hover,
.side-menu-nav .button-link:hover,
.side-menu-item.button-link:hover,
.side-menu-subitem.button-link:hover {
  background: var(--primary-blue-lightest);
  border-color: var(--primary-blue);
  color: var(--primary-blue);
}

.side-menu-item-active.button-link,
.side-menu-subitem-active.button-link {
  background: var(--primary-blue);
  border-color: var(--primary-blue);
  color: #ffffff;
}

.finance-gate-dialog {
  border: 1px solid #0f0f0f;
  border-radius: 0;
  box-shadow: var(--shadow-lifted);
}

.finance-gate-dialog form input[type="password"] {
  border-color: #111111;
  border-radius: 0;
}

body:has(.side-menu) .editor-frame {
  width: 100%;
  max-width: none;
  margin: 0;
  gap: 0;
  align-items: stretch;
  display: block;
  padding-left: 280px;
}

body:has(.side-menu.side-menu-collapsed) .editor-frame {
  padding-left: 64px;
}

body:has(.side-menu) .page-shell,
body:has(.side-menu) .editor-page-shell {
  margin-top: var(--size-5);
  margin-left: auto;
  margin-right: auto;
}

.side-menu {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  align-self: auto;
  display: flex;
  flex-direction: column;
  width: 280px;
  height: 100vh;
  min-height: 100vh;
  max-height: none;
  margin: 0;
  padding: 24px 20px;
  background: #ffffff;
  border: 0;
  border-right: 1px solid #d8d8d8;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: width 180ms var(--ease-swift), padding 180ms var(--ease-swift);
  overflow: hidden;
}

.side-menu-collapsed {
  width: 64px;
  padding: 24px 10px;
  overflow: visible;
}

.side-menu-toggle {
  min-height: 36px;
  display: inline-flex;
  gap: 10px;
  align-items: center;
  margin: 0 0 22px;
  padding: 0;
  color: #111111;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.side-menu-toggle:hover:not(:disabled) {
  background: transparent;
  border-color: transparent;
  color: var(--primary-blue);
}

.side-menu-toggle-icon {
  width: 18px;
  gap: 4px;
}

.side-menu-toggle-icon span {
  width: 18px;
  height: 2px;
  border-radius: 0;
}

.side-menu-collapsed .side-menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-items: center;
}

.side-menu-collapsed .side-menu-label,
.side-menu-collapsed .side-menu-nav {
  display: none;
}

.side-menu-section-label {
  margin: 22px 0 10px;
  color: #111111;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.side-menu-nav {
  min-height: 0;
  flex: 1 1 auto;
  justify-content: space-between;
  gap: 28px;
  overflow: hidden;
}

.side-menu-main,
.side-menu-footer {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.side-menu-main {
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: none;
}

.side-menu-main::-webkit-scrollbar {
  display: none;
}

.side-menu-footer {
  margin-top: auto;
  padding-top: 24px;
}

.side-menu-apps,
.side-menu-admin-menu,
.side-menu-current-app {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.side-menu-apps,
.side-menu-admin-menu {
  border: 1px solid rgba(0, 0, 0, 0.15);
}

.side-menu-apps-header,
.side-menu-admin-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px;
  gap: 12px;
  align-items: stretch;
  min-height: 58px;
  padding: 8px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}

.side-menu-accordion-title {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 12px;
  color: #111111;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.side-menu-current-app {
  margin-top: 22px;
}

.side-menu-current-app-header {
  padding: 0 0 14px;
  color: #111111;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.side-menu-apps-toggle,
.side-menu-apps-toggle:hover:not(:disabled),
.side-menu-apps-toggle:active:not(:disabled),
.side-menu-admin-toggle,
.side-menu-admin-toggle:hover:not(:disabled),
.side-menu-admin-toggle:active:not(:disabled) {
  min-height: 42px;
  width: 38px;
  padding: 0;
  border: 1px solid rgba(0, 0, 0, 0.15);
  background: #eeeeee;
  color: #333333;
  box-shadow: none;
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1;
  text-transform: none;
}

.side-menu-apps-toggle:hover:not(:disabled),
.side-menu-admin-toggle:hover:not(:disabled) {
  background: #e4e4e4;
  border-color: #bdbdbd;
}

.side-menu-apps-list,
.side-menu-admin-list {
  display: none;
  flex-direction: column;
  gap: 0;
  padding: 18px 22px 22px;
}

.side-menu-apps-expanded .side-menu-apps-list,
.side-menu-admin-expanded .side-menu-admin-list {
  display: flex;
}

.side-menu-app-link,
.side-menu-app-link.button-link,
.side-menu-nested-link,
.side-menu-nested-link.button-link,
.side-menu-subitem,
.side-menu-subitem.button-link {
  min-height: 42px;
  justify-content: flex-start;
  gap: 12px;
  padding: 7px 0;
  color: var(--neutral-dark);
  font-family: "Aeonik", Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0;
  text-transform: capitalize;
}

.side-menu-app-link::before,
.side-menu-nested-link::before,
.side-menu-subitem::before {
  content: "";
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  background: rgba(0, 0, 0, 0.4);
}

.side-menu-app-link-active,
.side-menu-app-link-active.button-link,
.side-menu-nested-link-active,
.side-menu-nested-link-active.button-link {
  color: #0044ce;
  font-weight: 800;
}

.side-menu-item,
.side-menu-subitem,
.side-menu .button-link,
.side-menu-nav .button-link,
.side-menu-item.button-link,
.side-menu-subitem.button-link {
  min-height: 42px;
  padding: 10px 12px;
  background: #ffffff;
  border: 0;
  color: #4a4a4a;
  font-weight: 600;
}

.side-menu-item:hover,
.side-menu-subitem:hover,
.side-menu .button-link:hover,
.side-menu-nav .button-link:hover,
.side-menu-item.button-link:hover,
.side-menu-subitem.button-link:hover {
  background: #f4f4f4;
  border-color: transparent;
  color: #111111;
}

.side-menu-item-active,
.side-menu-subitem-active,
.side-menu-item-active.button-link,
.side-menu-subitem-active.button-link {
  background: #0044ce;
  border-color: #0044ce;
  color: #ffffff;
}

.side-menu-subnav {
  gap: 4px;
  margin: 0 0 18px;
  padding: 0;
  background: #ffffff;
  border-left: 0;
  border-top: 0;
  border-radius: 0;
}

.side-menu-language {
  width: 100%;
  gap: 7px;
  align-items: stretch;
  margin-top: 0;
  padding: 0;
  background: #ffffff;
  border: 0;
}

.side-menu-language-label {
  display: block;
  color: #4a4a4a;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.side-menu-language-select {
  width: 100%;
  min-height: 42px;
  padding: 8px 34px 8px 12px;
  border: 1px solid #d8d8d8;
  background-color: #ffffff;
  color: #222222;
  font-weight: 600;
}

select,
.toolbar-select,
.side-menu-language-select,
.webshop-modal__body select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  background-color: #ffffff;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23060606' stroke-width='1.75' stroke-linecap='square'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px 8px;
}

.side-menu-user {
  margin-top: 6px;
  padding: 10px 0;
  border: 0;
  background: #ffffff;
}

.side-menu-logout,
.side-menu-logout:hover:not(:disabled),
.side-menu-logout:active:not(:disabled) {
  min-height: 36px;
  padding: 6px 0;
  border: 0;
  background: #ffffff;
  color: #4a4a4a;
  box-shadow: none;
  font-size: 0.86rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.side-menu-logout:hover:not(:disabled) {
  color: #111111;
}

.side-menu-collapsed-logout,
.side-menu-collapsed-logout:hover:not(:disabled),
.side-menu-collapsed-logout:active:not(:disabled) {
  display: none;
  position: absolute;
  right: 10px;
  bottom: 18px;
  width: 42px;
  height: 36px;
  min-height: 36px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #111111;
  box-shadow: none;
}

.side-menu-collapsed .side-menu-collapsed-logout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  overflow: hidden;
  transition: width 160ms var(--ease-swift), background 160ms var(--ease-swift), color 160ms var(--ease-swift);
}

.side-menu-collapsed .side-menu-collapsed-logout:hover:not(:disabled),
.side-menu-collapsed .side-menu-collapsed-logout:focus-visible {
  width: 64px;
  background: var(--primary-blue);
  color: #ffffff;
}

.side-menu-collapsed-logout-icon {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  background: currentColor;
  mask: url("/lockerwall-app/assets/logout.svg") center / 24px 24px no-repeat;
  -webkit-mask: url("/lockerwall-app/assets/logout.svg") center / 24px 24px no-repeat;
}

.side-menu-collapsed-logout-text {
  position: absolute;
  left: 100%;
  bottom: 50%;
  margin-left: 8px;
  padding: 8px 10px;
  background: var(--primary-blue);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.04em;
  opacity: 0;
  pointer-events: none;
  text-transform: uppercase;
  transform: translateY(50%) translateX(4px);
  transition: opacity 160ms var(--ease-swift), transform 160ms var(--ease-swift);
  white-space: nowrap;
}

.side-menu-collapsed .side-menu-collapsed-logout:hover .side-menu-collapsed-logout-text,
.side-menu-collapsed .side-menu-collapsed-logout:focus-visible .side-menu-collapsed-logout-text {
  opacity: 1;
  transform: translateY(50%) translateX(0);
}

.side-menu .side-menu-item-active,
.side-menu .side-menu-subitem-active,
.side-menu .side-menu-item-active.button-link,
.side-menu .side-menu-subitem-active.button-link {
  color: #ffffff;
}

.subpage-link,
.project-tab,
.view-toggle-button,
.pagination-button,
.filter-label,
.style-filter-chip {
  min-height: 48px;
  padding: 12px 24px;
  background: transparent;
  border: 0;
  color: #111111;
  font-weight: 700;
}

.subpage-nav,
.style-guide-nav-panel,
.style-filter-strip {
  background: #eeeeee;
  border: 1px solid #d8d8d8;
}

.subpage-link-active,
.project-tab.is-active,
.view-toggle-button-active,
.pagination-button-active,
.style-filter-chip.is-active {
  background: #ffffff;
  border-color: transparent;
  color: #111111;
  clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 50%, calc(100% - 28px) 100%, 0 100%);
}

.slider-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 0;
  background: transparent;
  color: #4a4a4a;
  font-size: 2rem;
  line-height: 1;
}

button,
.button-link,
.webshop-add-cart-button,
.action-button,
.primary-button {
  min-height: 48px;
  border: 2px solid #1e70ff;
  background: #0044ce;
  color: #ffffff;
  box-shadow: none;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 12px 28px;
}

button:hover:not(:disabled),
.button-link:hover,
.webshop-add-cart-button:hover,
.action-button:hover:not(:disabled),
.primary-button:hover:not(:disabled) {
  background: #1582f1;
  border-color: #32a1ff;
  box-shadow: none;
  transform: none;
}

button:active:not(:disabled),
.button-link:active {
  background: #0437a0;
  border-color: #0044ce;
  transform: none;
}

.ghost-button,
a.button-link.ghost-button,
.action-button--secondary,
.secondary-button {
  background: #ffffff;
  border: 2px solid #d8d8d8;
  color: #111111;
}

.ghost-button:hover:not(:disabled),
a.button-link.ghost-button:hover,
.action-button--secondary:hover:not(:disabled),
.secondary-button:hover:not(:disabled) {
  background: #ffffff;
  border-color: #9d9d9d;
  color: #111111;
}

.button-dark {
  background: #222222;
  border-color: #4a4a4a;
  color: #ffffff;
}

.button-dark:hover:not(:disabled) {
  background: #111111;
  border-color: #666666;
}

.button-arrow {
  gap: 18px;
}

.button-arrow::after {
  content: "→";
  font-size: 1.5rem;
  line-height: 0;
}

.side-menu-toggle,
.side-menu-toggle:hover:not(:disabled),
.side-menu-toggle:active:not(:disabled) {
  min-height: 36px;
  padding: 0;
  background: transparent;
  border: 0;
  color: #111111;
  box-shadow: none;
  cursor: pointer;
  pointer-events: auto;
  letter-spacing: 0;
  text-transform: uppercase;
}

.side-menu-label {
  color: #111111;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.side-menu-toggle:hover:not(:disabled) {
  color: var(--primary-blue);
}

.side-menu-toggle:focus-visible {
  box-shadow: var(--focus-ring);
}

.slider-arrow,
.slider-arrow:hover:not(:disabled),
.slider-arrow:active:not(:disabled) {
  width: 48px;
  height: 48px;
  min-height: 48px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #4a4a4a;
  box-shadow: none;
  font-size: 2rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
}

.slider-arrow:hover:not(:disabled) {
  color: #111111;
}

.side-menu .side-menu-app-link.button-link,
.side-menu .side-menu-nested-link.button-link,
.side-menu .side-menu-subitem.button-link {
  gap: 12px;
  color: var(--neutral-dark);
  font-family: "Aeonik", Arial, sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  letter-spacing: 0;
  text-transform: capitalize;
}

.side-menu .side-menu-app-link.button-link::before,
.side-menu .side-menu-nested-link.button-link::before,
.side-menu .side-menu-subitem.button-link::before {
  width: 6px;
  height: 6px;
  background: rgba(0, 0, 0, 0.4);
}

.side-menu .side-menu-item-active,
.side-menu .side-menu-subitem-active,
.side-menu .side-menu-item-active.button-link,
.side-menu .side-menu-subitem-active.button-link {
  color: #ffffff;
}

.side-menu .side-menu-item-active::before,
.side-menu .side-menu-subitem-active::before,
.side-menu .side-menu-item-active.button-link::before,
.side-menu .side-menu-subitem-active.button-link::before {
  background: rgba(255, 255, 255, 0.4);
}

.hero-copy,
.helper-text,
.messages,
.app-card-copy span:last-child {
  color: var(--neutral-dark);
  font-family: "Aeonik", Arial, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.55;
  text-transform: none;
}

.app-card.button-link {
  position: relative;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 8px;
  min-height: 0;
  padding: 12px;
  border: 0;
  letter-spacing: 0;
  text-transform: none;
}

.app-card.button-link::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid #0f0f0f;
  pointer-events: none;
}

.app-card.button-link:hover {
  border: 0;
  transform: none;
}

.app-card.button-link:focus-visible::after,
.app-card.button-link:focus-within::after,
.app-card.button-link:hover::after {
  border-width: 2px;
  border-color: var(--primary-blue);
}

.app-card-icon {
  width: 48px;
  height: 48px;
  max-width: 48px;
  max-height: 48px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.app-card-icon.has-image img {
  width: 32px;
  height: 32px;
  max-width: 32px;
  max-height: 32px;
  object-fit: contain;
}

.app-card-copy span:last-child {
  font-size: 0.94rem;
}

.style-guide-shell {
  max-width: min(1280px, calc(100vw - 24px));
}

.style-guide-hero {
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  align-items: stretch;
}

.style-guide-summary.hero-card {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.style-guide-nav-panel {
  display: flex;
  flex-wrap: wrap;
  gap: var(--size-2);
  padding: var(--size-3);
}

.style-guide-search {
  width: min(320px, 100%);
}

.style-token-grid,
.style-component-grid,
.style-pattern-grid,
.style-type-grid,
.style-standard-grid {
  display: grid;
  gap: var(--size-4);
}

.style-token-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.style-token-group,
.style-component-card,
.style-pattern-grid article,
.style-type-grid article,
.style-standard-grid article,
.style-state-card {
  border: 1px solid var(--neutral-lighter);
  background: #ffffff;
  padding: var(--size-4);
}

.style-token-group header {
  min-height: 78px;
  margin-bottom: var(--size-3);
}

.style-token-group h3 {
  margin: 0 0 var(--size-2);
  font-size: 1rem;
}

.style-token-list {
  display: flex;
  flex-direction: column;
  gap: var(--size-2);
}

.style-token-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: var(--size-3);
  align-items: center;
  min-height: 52px;
  border: 1px solid var(--neutral-lightest);
  padding: var(--size-2);
}

.style-token-swatch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 36px;
  border: 1px solid var(--neutral-lighter);
  color: var(--muted-strong);
  font-weight: 600;
}

.style-token-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.style-token-copy strong,
.style-token-copy code {
  overflow-wrap: anywhere;
}

.style-token-copy code {
  color: var(--muted-strong);
  font-size: 0.8rem;
}

.style-token-row button {
  min-height: 34px;
  padding: 7px 12px;
}

.style-type-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
}

.style-component-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.style-component-card {
  display: flex;
  flex-direction: column;
  gap: var(--size-3);
  min-width: 0;
}

.style-state-card {
  display: flex;
  min-height: 150px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: var(--size-3);
}

.style-state-card strong {
  color: #111111;
  font-size: 1.1rem;
  line-height: 1.2;
}

.style-state-card .helper-text {
  margin: 0;
}

.style-progress-bar {
  width: 100%;
  height: 8px;
  overflow: hidden;
  border: 1px solid #d8d8d8;
  background: #eeeeee;
}

.style-progress-bar span {
  display: block;
  width: 42%;
  height: 100%;
  background: var(--primary-blue);
}

.style-slider-arrows {
  display: inline-flex;
  align-items: center;
  gap: 28px;
}

.style-filter-strip {
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
}

.style-filter-chip {
  border: 0;
  white-space: nowrap;
}

.style-menu-dropdown {
  width: min(480px, 100%);
  display: flex;
  flex-direction: column;
  gap: 28px;
  background: #ffffff;
  color: #222222;
}

.style-menu-dropdown header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.style-menu-dropdown header img {
  width: 132px;
  height: auto;
}

.style-menu-dropdown-panel {
  border: 1px solid #d8d8d8;
}

.style-menu-dropdown-row {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 18px;
  border-bottom: 1px solid #d8d8d8;
}

.style-menu-dropdown-row strong,
.style-menu-dropdown-group span {
  color: #111111;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.style-menu-square-control {
  width: 48px;
  height: 48px;
  min-height: 48px;
  padding: 0;
  border: 2px solid #d0d0d0;
  background: #eeeeee;
  color: #333333;
  font-size: 2rem;
  font-weight: 400;
  line-height: 1;
}

.style-menu-dropdown-group {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 28px 32px;
  border-bottom: 1px solid #d8d8d8;
}

.style-menu-dropdown-group a {
  color: #4a4a4a;
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
}

.style-menu-dropdown-group--bullets a::before {
  content: "▪";
  margin-right: 14px;
  color: #9d9d9d;
}

.style-menu-dropdown footer {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.style-guide-table {
  width: 100%;
  min-width: 0;
}

.style-guide-table th,
.style-guide-table td {
  padding: var(--size-2);
  text-align: left;
}

.style-pattern-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.style-pattern-grid article {
  display: flex;
  flex-direction: column;
  gap: var(--size-2);
}

.style-pattern-index {
  color: var(--primary-blue);
  font-weight: 700;
  font-size: 0.78rem;
}

.style-standard-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.style-standard-grid article {
  display: flex;
  flex-direction: column;
  gap: var(--size-2);
}

.style-standard-grid p {
  margin: 0;
  color: var(--neutral-dark);
  font-size: 0.95rem;
  line-height: 1.5;
}

.style-standard-grid code {
  color: #0044ce;
  font-size: 0.9em;
  overflow-wrap: anywhere;
}

.style-checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--size-3);
}

.style-checklist label {
  min-height: 48px;
  flex-direction: row;
  align-items: center;
  border: 1px solid var(--neutral-lighter);
  padding: var(--size-3);
  color: var(--text);
}

@media (max-width: 900px) {
  .style-guide-hero,
  .style-type-grid,
  .style-component-grid,
  .style-pattern-grid,
  .style-standard-grid,
  .style-checklist {
    grid-template-columns: 1fr;
  }

  .style-guide-summary.hero-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .style-filter-strip {
    flex-wrap: wrap;
  }

  .style-filter-chip,
  .style-filter-chip.is-active {
    flex: 1 1 100%;
    clip-path: none;
  }

  .style-token-row {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .style-token-row button {
    grid-column: 1 / -1;
    width: 100%;
  }
}

/* QCapp layout standards
 * Shared spacing and sizing rules for the app pages that still use older
 * local layouts. Keep these late so individual screens inherit a consistent
 * rhythm without touching their templates.
 */
.page-view,
.editor-workspace {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.page-shell,
.editor-page-shell {
  padding-inline: 16px;
}

.panel,
.hero-card,
.table-wrap,
.bom-table-shell,
.sync-card,
.saved-item,
.support-problem-panel,
.panel-subsection,
.webshop-card,
.webshop-row,
.training-card,
.training-meta-card,
.training-chapter-card,
.training-content-card {
  min-width: 0;
}

.panel,
.hero-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
}

.controls,
.output,
form,
.article-image-field,
.article-image-field__controls,
.working-drawing-fields,
.webshop-checkout__form,
.finance-gate-dialog form {
  gap: 12px;
}

.section-heading {
  gap: 12px;
  margin: 0;
  padding-bottom: 12px;
  min-width: 0;
  flex-wrap: wrap;
}

.section-heading h2,
.section-heading h3,
.section-heading p {
  min-width: 0;
  margin: 0;
}

.section-heading .actions,
.section-heading .actions-inline {
  margin-left: auto;
}

.grid-two,
.grid-three,
.filter-toolbar,
.finance-filter-toolbar,
.finance-filter-toolbar-secondary,
.bom-manual-toolbar,
.bom-view-toolbar,
.advisor-intake-form,
.advisor-briefing-grid,
.sales-concept-step-grid,
.sales-concept-summary-grid,
.webshop-modal__body .grid-two,
.webshop-checkout__scope-grid,
.tpc-step-grid,
.form-grid,
.form-grid--three {
  gap: 12px;
  align-items: start;
}

.grid-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

label,
.form-field,
.webshop-checkout__form label,
.finance-gate-dialog form label {
  min-width: 0;
  gap: 6px;
  color: var(--neutral-dark);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
}

label > span,
.form-field > span,
.table-row-meta,
.helper-text,
.messages,
.sync-card-copy,
.article-image-field__head,
.webshop-card__body,
.support-result-copy {
  min-width: 0;
  overflow-wrap: anywhere;
}

select,
textarea,
input[type="file"],
input[type="search"],
input[type="email"],
input[type="date"],
input[type="text"],
input[type="password"],
input[type="number"],
.support-query-input,
.toolbar-select,
.webshop-modal__body input,
.webshop-modal__body select,
.webshop-modal__body textarea,
.webshop-checkout__form input,
.webshop-checkout__form textarea,
.finance-gate-dialog form input[type="password"] {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  padding: 10px 12px;
  font-size: 14px;
  line-height: 1.35;
}

select,
.toolbar-select,
.side-menu-language-select,
.webshop-modal__body select {
  padding-right: 42px;
  text-overflow: ellipsis;
}

textarea,
.support-query-input {
  min-height: 88px;
}

.compact-textarea {
  min-height: 72px;
}

input[type="file"] {
  min-height: 40px;
  padding: 8px 10px;
}

.actions,
.actions-inline,
.stacked-actions,
.pagination-actions,
.support-subitems-toolbar,
.bom-view-toolbar,
.webshop-product-detail__actions,
.webshop-order-actions,
.topview-selected-actions,
.compact-row-actions,
.tpc-custom-wall-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.actions {
  justify-content: flex-start;
}

button,
.button-link,
.webshop-add-cart-button,
.action-button,
.primary-button,
.secondary-button,
.ghost-button,
a.button-link.ghost-button {
  min-width: 0;
  max-width: 100%;
  min-height: 40px;
  padding: 10px 18px;
  font-size: 13px;
  line-height: 1.2;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
}

.row-action,
.ghost-button.small,
.ghost-button--small,
.pagination-button,
.bom-quantity-button,
.sales-builder-col-toolbar button,
.compact-row-actions .row-action,
.webshop-cart-row__qty .webshop-qty-stepper button,
.webshop-qty-stepper--discount button {
  min-height: 32px;
  padding: 6px 10px;
  font-size: 12px;
}

.sync-card {
  align-items: center;
  gap: 12px;
  padding: 12px;
}

.sync-card .actions-inline {
  flex: 0 0 auto;
  justify-content: flex-end;
}

.table-wrap,
.bom-table-shell {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  min-width: max-content;
}

th,
td {
  min-width: 0;
  padding: 12px;
  vertical-align: middle;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

th {
  font-size: 11px;
  line-height: 1.25;
  white-space: nowrap;
  overflow-wrap: normal;
}

td {
  font-size: 13px;
}

td .actions,
td .actions-inline,
td .compact-row-actions {
  gap: 6px;
}

.table-empty {
  padding: 24px 12px;
}

.panel:has(table),
.hero-card:has(table),
.table-wrap,
.bom-table-shell {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.panel:has(table) table,
.hero-card:has(table) table,
.table-wrap table,
.bom-table-shell table {
  width: 100%;
  min-width: max-content;
}

.hero {
  gap: 16px;
  align-items: start;
  margin-bottom: 16px;
}

.hero-copy {
  max-width: 680px;
}

.hero-card {
  align-self: start;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 8px;
  padding: 16px;
}

.metric,
.training-dashboard-metric-card,
.training-meta-card {
  min-width: 0;
  padding: 12px;
}

.metric strong,
.training-dashboard-metric-card strong,
.training-meta-card strong,
.webshop-cart-hero h2,
.support-stat strong {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  line-height: 1.05;
}

.metric-label,
.training-dashboard-metric-card span,
.training-meta-card span,
.support-stat span {
  min-width: 0;
  overflow-wrap: anywhere;
  line-height: 1.2;
}

.app-card-copy,
.webshop-card__body,
.advisor-step-card,
.sales-hero-card,
.sales-luggage-card,
.support-result-card,
.tpc-card-head-text {
  min-width: 0;
}

.app-card-copy strong,
.app-card-copy span,
.webshop-card__title,
.webshop-card__meta,
.advisor-step-card strong,
.advisor-step-card span,
.sales-hero-card strong,
.sales-luggage-card strong,
.support-result-card strong,
.support-result-card p {
  overflow-wrap: anywhere;
}

.project-options-fieldset,
.new-wall-fieldset,
.panel-subsection,
.article-image-field,
.advisor-advice-section,
.advisor-flow-section,
.webshop-hero,
.webshop-mega-card {
  padding: 16px;
}

@media (max-width: 1100px) {
  .hero,
  .style-guide-hero,
  .sales-concept-summary-grid,
  .advisor-config-grid,
  .support-ticket-grid {
    grid-template-columns: 1fr;
  }

  .filter-toolbar,
  .finance-filter-toolbar,
  .bom-manual-toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .page-shell,
  .editor-page-shell {
    padding-inline: 12px;
  }

  .panel,
  .hero-card {
    padding: 16px;
  }

  .grid-two,
  .grid-three,
  .filter-toolbar,
  .finance-filter-toolbar,
  .finance-filter-toolbar-secondary,
  .bom-manual-toolbar,
  .bom-view-toolbar,
  .advisor-intake-form,
  .advisor-briefing-grid,
  .sales-concept-step-grid,
  .webshop-modal__body .grid-two,
  .webshop-checkout__scope-grid,
  .form-grid,
  .form-grid--three {
    grid-template-columns: 1fr;
  }

  .sync-card {
    align-items: stretch;
    flex-direction: column;
  }

  .sync-card .actions-inline,
  .actions,
  .actions-inline {
    width: 100%;
  }

  button,
  .button-link,
  .webshop-add-cart-button,
  .action-button,
  .primary-button,
  .secondary-button,
  .ghost-button,
  a.button-link.ghost-button {
    width: 100%;
  }

  .row-action,
  .pagination-button,
  .bom-quantity-button,
  .compact-row-actions .row-action {
    width: auto;
  }
}

/* QCapp component corrections
 * Late-page fixes for older app skins that still carried rounded, centered or
 * oversized treatments after the shared standards pass.
 */
.app-card.button-link,
.app-card.button-link *,
.app-card-copy,
.app-card-copy span {
  text-align: left;
}

.app-card.button-link {
  align-items: start;
  justify-items: start;
}

.side-menu .side-menu-item-active:hover,
.side-menu .side-menu-subitem-active:hover,
.side-menu .side-menu-item-active.button-link:hover,
.side-menu .side-menu-subitem-active.button-link:hover {
  background: #f4f4f4;
  border-color: transparent;
  color: #111111;
}

.side-menu .side-menu-item-active:hover::before,
.side-menu .side-menu-subitem-active:hover::before,
.side-menu .side-menu-item-active.button-link:hover::before,
.side-menu .side-menu-subitem-active.button-link:hover::before {
  background: rgba(0, 0, 0, 0.4);
}

.style-guide-nav-panel {
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0;
  padding: 0;
  overflow-x: auto;
}

.style-guide-nav-panel .subpage-link,
.style-guide-nav-panel .subpage-link-active {
  flex: 0 0 auto;
  width: auto;
  min-height: 56px;
  padding: 14px 24px;
  border: 0;
  border-right: 1px solid #d8d8d8;
  clip-path: none;
  white-space: nowrap;
}

.style-guide-nav-panel .subpage-link-active {
  background: #ffffff;
  color: #111111;
}

.style-menu-square-control,
.style-menu-square-control:hover:not(:disabled),
.style-menu-square-control:active:not(:disabled) {
  width: 48px;
  min-width: 48px;
  height: 48px;
  min-height: 48px;
  padding: 0;
  border: 1px solid #d8d8d8;
  border-radius: 0;
  background: #ffffff;
  color: #111111;
  box-shadow: none;
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1;
  transform: none;
}

body[data-app="support"] .hero-card {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body[data-app="support"] .hero-card .metric {
  min-height: 88px;
  padding: 12px;
  align-content: start;
}

body[data-app="support"] .hero-card .metric strong {
  font-size: clamp(1.15rem, 1.35vw, 1.45rem);
  line-height: 1.08;
  letter-spacing: 0;
  word-break: break-word;
}

body[data-app="support"] #support-built-at {
  font-size: clamp(1rem, 1.12vw, 1.2rem);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.kpi-card {
  display: grid;
  align-content: start;
  gap: 6px;
  min-width: 0;
  min-height: 88px;
  padding: 12px;
  border: 1px solid #0f0f0f;
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
}

.kpi-card span {
  margin: 0;
  color: #0044ce;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.kpi-card strong {
  min-width: 0;
  color: #111111;
  font-size: clamp(1.05rem, 1.45vw, 1.45rem);
  line-height: 1.08;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

body[data-app="adyen"] .metrics-grid,
body[data-app="iso"] .metrics-grid {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.advisor-step-nav {
  display: flex;
  gap: 0;
  margin: 0 0 16px;
  padding: 0;
  border: 1px solid #d8d8d8;
  background: #eeeeee;
  overflow-x: auto;
}

.advisor-step-tab {
  flex: 1 0 150px;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 14px 18px;
  border: 0;
  border-right: 1px solid #d8d8d8;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #111111;
  text-align: left;
  transform: none;
}

.advisor-step-tab::before {
  display: none;
}

.advisor-step-tab:hover:not(.is-disabled),
.advisor-step-tab.is-active {
  border-color: transparent;
  background: #ffffff;
  box-shadow: none;
  color: #111111;
  transform: none;
}

.advisor-step-tab-index,
.advisor-step-tab.is-active .advisor-step-tab-index {
  width: 7px;
  height: 7px;
  min-width: 7px;
  margin: 0;
  border-radius: 0;
  color: transparent;
  font-size: 0;
}

.advisor-step-tab-index {
  background: rgba(0, 0, 0, 0.4);
}

.advisor-step-tab.is-active .advisor-step-tab-index {
  background: #0044ce;
}

.advisor-step-tab-label,
.advisor-step-tab.is-disabled .advisor-step-tab-label {
  margin: 0;
  color: #111111;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  text-transform: uppercase;
}

.advisor-step-tab.is-disabled {
  opacity: 0.55;
  background: transparent;
}

body[data-section="controllers"] .project-options-fieldset,
body[data-section="controllers"] .project-option-row,
body[data-section="controllers"] .project-hero-switch-track,
body[data-section="controllers"] .project-hero-switch-thumb {
  border-radius: 0;
  box-shadow: none;
}

body[data-section="controllers"] .project-options-fieldset {
  padding: 16px;
  border: 1px solid #0f0f0f;
  background: #ffffff;
}

body[data-section="controllers"] .project-options-fieldset > legend {
  padding: 0 4px;
  background: #ffffff;
  color: #0044ce;
}

body[data-section="controllers"] .project-option-row {
  padding: 12px;
  border: 1px solid #0f0f0f;
  background: #ffffff;
}

body[data-section="controllers"] .project-option-row:hover {
  border-color: #0f0f0f;
  box-shadow: none;
}

body[data-section="controllers"] .project-hero-switch-track {
  width: 44px;
  height: 24px;
  border: 1px solid #d8d8d8;
  background: #eeeeee;
}

body[data-section="controllers"] .project-hero-switch-thumb {
  width: 18px;
  height: 18px;
  background: #ffffff;
}

body[data-section="controllers"] .project-hero-switch input:checked + .project-hero-switch-track {
  background: #0044ce;
}

body[data-section="controllers"] .project-hero-switch input:checked + .project-hero-switch-track .project-hero-switch-thumb {
  transform: translateX(20px);
}

.webshop-cart-empty-link {
  appearance: none;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #0044ce;
  font: 600 13px Aeonik, system-ui, sans-serif;
  text-decoration: underline;
  box-shadow: none;
  cursor: pointer;
}

.webshop-cart-empty-link:hover {
  background: transparent;
  color: #0437a0;
}

.webshop-cart-link__icon,
.webshop-checkout-button__icon {
  display: inline-block;
  position: relative;
  width: 16px;
  height: 16px;
  font-size: 0;
}

.webshop-cart-link__icon::before,
.webshop-checkout-button__icon::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 3px;
  width: 10px;
  height: 7px;
  border: 2px solid currentColor;
  border-top: 0;
}

.webshop-cart-link__icon::after,
.webshop-checkout-button__icon::after {
  content: "";
  position: absolute;
  left: 5px;
  bottom: 2px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 7px 0 0 currentColor;
}

.webshop-cart-row__qty .webshop-qty-stepper,
.webshop-cart-row__discount-cell .webshop-qty-stepper--discount,
.webshop-cart-summary__discount .webshop-qty-stepper--discount {
  display: inline-grid;
  grid-template-columns: 36px 56px 36px;
  border-color: #0f0f0f;
  border-radius: 0;
}

.webshop-cart-row__qty .webshop-qty-stepper button,
.webshop-qty-stepper--discount button,
.webshop-cart-row__qty .webshop-qty-stepper input,
.webshop-qty-stepper--discount input {
  min-height: 40px;
  padding: 0;
  border-radius: 0;
  text-align: center;
}

.webshop-cart-row__qty .webshop-qty-stepper button,
.webshop-qty-stepper--discount button {
  width: 36px;
  border: 0;
}

.webshop-cart-row__qty .webshop-qty-stepper input,
.webshop-qty-stepper--discount input {
  width: 56px;
  border: 0;
  border-right: 1px solid #0f0f0f;
  border-left: 1px solid #0f0f0f;
  appearance: textfield;
}

.webshop-cart-row__qty .webshop-qty-stepper input::-webkit-outer-spin-button,
.webshop-cart-row__qty .webshop-qty-stepper input::-webkit-inner-spin-button,
.webshop-qty-stepper--discount input::-webkit-outer-spin-button,
.webshop-qty-stepper--discount input::-webkit-inner-spin-button {
  appearance: none;
  margin: 0;
}

body[data-section="webshop"] .webshop-cart-row__price {
  display: table-cell;
  vertical-align: middle;
  text-align: right;
}

body[data-section="webshop"] .webshop-cart-row__price span {
  display: block;
}

#webshop-add-status {
  margin-top: 10px;
}

.webshop-topbar {
  grid-template-columns: minmax(200px, 1fr) minmax(0, 2fr) auto;
  gap: 16px;
  padding: 20px;
  border: 1px solid #0f0f0f;
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
  color: #111111;
}

.webshop-topbar h1 {
  color: #111111;
}

.webshop-topbar .eyebrow {
  color: #0044ce;
}

.webshop-topbar-copy p:not(.eyebrow),
.webshop-topbar p:not(.eyebrow) {
  color: #4a4a4a;
}

.webshop-topbar__search input {
  border: 1px solid #0f0f0f;
  border-radius: 0;
  background: #ffffff;
  color: #111111;
}

.webshop-topbar__search input:focus {
  outline: 3px solid rgba(0, 68, 206, 0.18);
}

.webshop-cart-link,
.webshop-cart-link:hover {
  min-height: 40px;
  border: 2px solid #1e70ff;
  border-radius: 0;
  background: #0044ce;
  color: #ffffff;
  box-shadow: none;
}

.webshop-cart-link__count,
.webshop-cart-link__count[data-empty="1"] {
  border-radius: 0;
  background: #ffffff;
  color: #0044ce;
}

.webshop-category-bar {
  border: 1px solid #d8d8d8;
  background: #eeeeee;
}

.webshop-category-bar__home,
.webshop-category-bar__link {
  min-height: 56px;
  border-right: 1px solid #d8d8d8;
  border-bottom: 0;
  color: #111111;
}

.webshop-category-bar__home:hover,
.webshop-category-bar__link:hover {
  border-bottom: 0;
  background: #ffffff;
  color: #111111;
}

.webshop-category-bar__sub,
.webshop-mega-card__sub,
.webshop-card__article,
.webshop-card__category {
  color: #4a4a4a;
}

.webshop-hero,
.webshop-mega-card,
.webshop-card,
.webshop-sub-pill,
.webshop-product-detail,
.webshop-product-detail__media,
.webshop-cart-main,
.webshop-cart-aside__card,
.webshop-checkout__summary,
.webshop-modal__card,
.webshop-order-card {
  border-color: #0f0f0f;
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
}

@media (max-width: 720px) {
  body[data-section="webshop"] .webshop-topbar {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 16px;
  }

  body[data-section="webshop"] .webshop-topbar__search,
  body[data-section="webshop"] .webshop-topbar__actions,
  body[data-section="webshop"] .webshop-cart-link {
    width: 100%;
  }

  body[data-section="webshop"] .webshop-topbar__actions {
    justify-content: stretch;
  }

  body[data-section="webshop"] .webshop-product-detail__actions {
    display: grid;
    grid-template-columns: minmax(72px, 1fr) minmax(0, 3fr);
    gap: 8px;
  }

  body[data-section="webshop"] .webshop-product-detail__actions label,
  body[data-section="webshop"] .webshop-product-detail__actions input,
  body[data-section="webshop"] .webshop-product-detail__actions button {
    width: 100%;
  }

  body[data-section="webshop"] .webshop-cart-grid,
  body[data-section="webshop"] .webshop-cart-main {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  body[data-section="webshop"] .webshop-cart-main {
    padding: 16px;
    overflow: hidden;
  }

  body[data-section="webshop"] .webshop-cart-main .webshop-cart-table,
  body[data-section="webshop"] .webshop-cart-main .webshop-cart-table tbody {
    display: block;
    width: 100%;
  }

  body[data-section="webshop"] .webshop-cart-main .webshop-cart-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid #d8d8d8;
  }

  body[data-section="webshop"] .webshop-cart-main .webshop-cart-row:last-child {
    border-bottom: 0;
  }

  body[data-section="webshop"] .webshop-cart-main .webshop-cart-row > td {
    display: block;
    width: auto;
    min-width: 0;
    padding: 0;
    border: 0;
  }

  body[data-section="webshop"] .webshop-cart-row__media {
    grid-column: 1;
    grid-row: 1;
  }

  body[data-section="webshop"] .webshop-cart-row__info {
    display: contents;
  }

  body[data-section="webshop"] .webshop-cart-row__title {
    display: contents;
  }

  body[data-section="webshop"] .webshop-cart-row__article-number,
  body[data-section="webshop"] .webshop-cart-row__name,
  body[data-section="webshop"] .webshop-cart-row__category {
    display: block;
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  body[data-section="webshop"] .webshop-cart-row__article-number {
    grid-row: 2;
  }

  body[data-section="webshop"] .webshop-cart-row__name {
    grid-row: 3;
  }

  body[data-section="webshop"] .webshop-cart-row__category {
    grid-row: 4;
  }

  body[data-section="webshop"] .webshop-cart-row__remove {
    grid-row: 8;
    width: fit-content;
  }

  body[data-section="webshop"] .webshop-cart-row__unit-cell {
    display: none;
  }

  body[data-section="webshop"] .webshop-cart-row__price,
  body[data-section="webshop"] .webshop-cart-row__qty,
  body[data-section="webshop"] .webshop-cart-row__discount-cell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    grid-column: 1 / -1;
    gap: 12px;
    width: auto;
    text-align: left;
  }

  body[data-section="webshop"] .webshop-cart-row__price {
    grid-row: 5;
  }

  body[data-section="webshop"] .webshop-cart-row__qty {
    grid-row: 6;
  }

  body[data-section="webshop"] .webshop-cart-row__discount-cell {
    grid-row: 7;
  }

  body[data-section="webshop"] .webshop-cart-row__price::before,
  body[data-section="webshop"] .webshop-cart-row__qty::before,
  body[data-section="webshop"] .webshop-cart-row__discount-cell::before {
    flex: 0 0 auto;
    color: #666666;
    font: 600 12px Aeonik, system-ui, sans-serif;
  }

  body[data-section="webshop"] .webshop-cart-row__price::before {
    content: "Price";
  }

  body[data-section="webshop"] .webshop-cart-row__qty::before {
    content: "Quantity";
  }

  body[data-section="webshop"] .webshop-cart-row__discount-cell::before {
    content: "Discount %";
  }

  body[data-section="webshop"] .webshop-cart-main__footer {
    align-items: center;
    justify-content: space-between;
  }
}

.webshop-card:hover {
  border-color: #0044ce;
  box-shadow: none;
  transform: none;
}

body[data-section="webshop"] .webshop-cart-link,
body[data-section="webshop"] .webshop-cart-link:hover {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 18px;
  border: 2px solid #d8d8d8;
  border-radius: 0;
  background: #9d9d9d;
  color: #ffffff;
  box-shadow: none;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

body[data-section="webshop"] .webshop-cart-link:not([data-empty="1"]),
body[data-section="webshop"] .webshop-cart-link:not([data-empty="1"]):hover {
  border-color: #1e70ff;
  background: #0044ce;
  color: #ffffff;
}

body[data-section="webshop"] .webshop-cart-link__icon,
body[data-section="webshop"] .webshop-add-cart-button__icon {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  object-fit: contain;
}

body[data-section="webshop"] .webshop-cart-link__count,
body[data-section="webshop"] .webshop-cart-link__count[data-empty="1"] {
  min-width: 24px;
  padding: 2px 7px;
  border-radius: 0;
  background: #ffffff;
  color: #0044ce;
  text-align: center;
}

body[data-section="webshop"] .webshop-cart-link[data-empty="1"] .webshop-cart-link__count {
  color: #4a4a4a;
}

body[data-section="webshop"] .webshop-view-toggle {
  display: inline-flex;
  overflow: hidden;
  border: 1px solid #d8d8d8;
  border-radius: 0;
  background: #eeeeee;
}

body[data-section="webshop"] .webshop-view-toggle__btn,
body[data-section="webshop"] .webshop-view-toggle__btn:hover:not(:disabled),
body[data-section="webshop"] .webshop-view-toggle__btn:active:not(:disabled) {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 16px;
  border: 0;
  border-right: 1px solid #d8d8d8;
  border-radius: 0;
  background: transparent;
  color: #111111;
  box-shadow: none;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
}

body[data-section="webshop"] .webshop-view-toggle__btn:last-child {
  border-right: 0;
}

body[data-section="webshop"] .webshop-view-toggle__btn.is-active,
body[data-section="webshop"] .webshop-view-toggle__btn.is-active:hover:not(:disabled) {
  background: #0044ce;
  color: #ffffff;
}

body[data-section="webshop"] .webshop-view-toggle__btn:hover:not(:disabled),
body[data-section="webshop"] .webshop-view-toggle__btn:focus-visible,
body[data-section="webshop"] .webshop-view-toggle__btn:active:not(:disabled) {
  border-color: transparent;
  box-shadow: none;
  outline: none;
  transform: none;
}

body[data-section="webshop"] .webshop-view-toggle__btn:last-child:hover:not(:disabled),
body[data-section="webshop"] .webshop-view-toggle__btn:last-child:focus-visible,
body[data-section="webshop"] .webshop-view-toggle__btn:last-child:active:not(:disabled) {
  border-right: 0;
}

body[data-section="webshop"] .webshop-view-toggle__btn:not(.is-active):hover:not(:disabled),
body[data-section="webshop"] .webshop-view-toggle__btn:not(.is-active):focus-visible,
body[data-section="webshop"] .webshop-view-toggle__btn:not(.is-active):active:not(:disabled) {
  background: transparent;
  color: #111111;
}

body[data-section="webshop"] .webshop-mega-card__title:hover,
body[data-section="webshop"] .webshop-mega-card__more:hover {
  color: #0044ce;
  font-weight: 600;
  text-decoration-line: underline;
  text-decoration-style: solid;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

body[data-section="webshop"] .webshop-sub-link {
  border-bottom-style: solid;
}

body[data-section="webshop"] .webshop-sub-link:hover {
  border-bottom-color: #0044ce;
  border-bottom-style: solid;
  color: #0044ce;
  font-weight: 600;
}

body[data-section="webshop"] .webshop-sub-link:hover .webshop-sub-link__count {
  color: #0044ce;
  font-weight: 600;
}

body[data-section="webshop"] .webshop-view-toggle__icon {
  position: relative;
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  color: currentColor;
}

body[data-section="webshop"] .webshop-view-toggle__icon--tiles {
  display: grid;
  grid-template-columns: repeat(2, 6px);
  grid-template-rows: repeat(2, 6px);
  gap: 3px;
}

body[data-section="webshop"] .webshop-view-toggle__icon--tiles span {
  display: block;
  border: 1.5px solid currentColor;
  background: transparent;
}

body[data-section="webshop"] .webshop-view-toggle__icon--list {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

body[data-section="webshop"] .webshop-view-toggle__icon--list span {
  position: relative;
  display: block;
  height: 3px;
  margin-left: 6px;
  background: currentColor;
}

body[data-section="webshop"] .webshop-view-toggle__icon--list span::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 0;
  width: 3px;
  height: 3px;
  background: currentColor;
}

body[data-section="webshop"] .webshop-card,
body[data-section="webshop"] .webshop-row {
  position: relative;
  border: 0;
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
  overflow: hidden;
  transform: none;
}

body[data-section="webshop"] .webshop-card::after,
body[data-section="webshop"] .webshop-row::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid #0f0f0f;
  pointer-events: none;
}

body[data-section="webshop"] .webshop-card:hover,
body[data-section="webshop"] .webshop-row:hover {
  border-color: transparent;
  box-shadow: none;
  transform: none;
}

body[data-section="webshop"] .webshop-card:hover::after,
body[data-section="webshop"] .webshop-row:hover::after {
  border-width: 2px;
  border-color: #0044ce;
}

body[data-section="webshop"] .webshop-card__body {
  flex: 1 1 auto;
  min-height: 0;
}

body[data-section="webshop"] .webshop-card__price {
  margin-top: auto;
  padding-top: 8px;
}

body[data-section="webshop"] .webshop-add-cart-button,
body[data-section="webshop"] .webshop-add-cart-button:hover,
body[data-section="webshop"] .webshop-add-cart-button:active {
  width: 100%;
  min-height: 48px;
  margin-top: 10px;
  border: 2px solid #1e70ff;
  border-radius: 0;
  background: #0044ce;
  color: #ffffff;
  box-shadow: none;
  transform: none;
}

body[data-section="webshop"] .webshop-add-cart-button:hover {
  border-color: #32a1ff;
  background: #1582f1;
}

body[data-section="webshop"] .webshop-add-cart-button.is-added {
  border-color: #0044ce;
  background: #0437a0;
}

body[data-section="webshop"] .webshop-product-detail {
  border: 1px solid #0f0f0f;
  border-radius: 0;
}

body[data-section="webshop"] .webshop-spec-table {
  width: 100%;
  margin: 16px 0;
  border-collapse: collapse;
}

body[data-section="webshop"] .webshop-spec-table tr {
  border-bottom: 1px solid #d8d8d8;
}

body[data-section="webshop"] .webshop-spec-table tr:last-child {
  border-bottom: 0;
}

body[data-section="webshop"] .webshop-spec-table th,
body[data-section="webshop"] .webshop-spec-table td {
  padding: 12px 0;
  border-bottom: 0;
  background: #ffffff;
  vertical-align: middle;
}

body[data-section="webshop"] .webshop-spec-table th {
  width: 40%;
  color: #4a4a4a;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body[data-section="webshop"] .webshop-product-detail__actions {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

body[data-section="webshop"] .webshop-product-detail__actions label {
  display: flex;
  flex: 0 0 160px;
  flex-direction: column;
  gap: 6px;
  margin: 0;
}

body[data-section="webshop"] .webshop-product-detail__actions input {
  width: 100%;
  min-height: 48px;
  border: 1px solid #0f0f0f;
  border-radius: 0;
}

body[data-section="webshop"] .webshop-product-detail__actions .primary-button {
  min-height: 48px;
}

@media (max-width: 720px) {
  body[data-section="webshop"] .webshop-product-detail__actions {
    display: grid;
    grid-template-columns: minmax(72px, 1fr) minmax(0, 4fr);
    gap: 8px;
  }

  body[data-section="webshop"] .webshop-product-detail__actions label {
    flex: initial;
    min-width: 0;
    width: 100%;
  }

  body[data-section="webshop"] .webshop-product-detail__actions input,
  body[data-section="webshop"] .webshop-product-detail__actions .primary-button {
    width: 100%;
  }
}

.webshop-sub-pill.is-active {
  border-color: #0044ce;
  border-radius: 0;
  background: #0044ce;
  color: #ffffff;
}

body[data-app="iso"] .finance-division-option,
body[data-app="iso"] .panel-subsection,
body[data-app="iso"] .rich-text-block {
  border: 1px solid #0f0f0f;
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
}

body[data-app="iso"] .finance-division-option:hover,
body[data-app="iso"] .finance-division-option-selected {
  border-color: #0044ce;
  background: #ffffff;
  box-shadow: none;
}

body[data-app="iso"] .iso-analysis-grid,
body[data-app="iso"] .iso-trend-grid,
body[data-app="iso"] .iso-ai-snapshot-grid,
body[data-app="iso"] .iso-ai-insight-grid {
  gap: 12px;
}

body[data-app="training"] .training-topbar,
body[data-app="training"] .training-topbar-pill,
body[data-app="training"] .training-intro-panel,
body[data-app="training"] .training-dashboard-hero,
body[data-app="training"] .training-onboarding-callout,
body[data-app="training"] .training-score-ring,
body[data-app="training"] .training-score-pill,
body[data-app="training"] .training-dashboard-metric-card,
body[data-app="training"] .training-completion-card,
body[data-app="training"] .training-module-card,
body[data-app="training"] .training-module-section-card,
body[data-app="training"] .training-visual-card,
body[data-app="training"] .training-empty-state,
body[data-app="training"] .training-mini-card,
body[data-app="training"] .training-module-visual-thumb,
body[data-app="training"] .training-flow-step,
body[data-app="training"] .training-visual-placeholder,
body[data-app="training"] .training-card,
body[data-app="training"] .training-meta-card,
body[data-app="training"] .training-chapter-card,
body[data-app="training"] .training-content-card,
body[data-app="training"] .training-topic-item,
body[data-app="training"] .training-hero-card,
body[data-app="training"] .training-study-note,
body[data-app="training"] .training-quiz-card {
  border: 1px solid #0f0f0f;
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
}

body[data-app="training"] .training-topbar {
  color: #111111;
}

body[data-app="training"] .training-topbar h1,
body[data-app="training"] .training-topbar strong,
body[data-app="training"] .training-card-header strong,
body[data-app="training"] .training-module-card h3,
body[data-app="training"] .training-module-section-card h4,
body[data-app="training"] .training-visual-card strong {
  color: #111111;
}

body[data-app="training"] .training-topbar .eyebrow,
body[data-app="training"] .training-topbar-pill span,
body[data-app="training"] .training-duration-pill,
body[data-app="training"] .training-tag,
body[data-app="training"] .training-source-chip,
body[data-app="training"] .training-badge-chip,
body[data-app="training"] .training-module-icon,
body[data-app="training"] .training-flow-step span {
  color: #0044ce;
}

body[data-app="training"] .training-topbar-copy p:not(.eyebrow),
body[data-app="training"] .training-topbar-pill span,
body[data-app="training"] .training-dashboard-metric-card span,
body[data-app="training"] .training-mini-card span,
body[data-app="training"] .training-card-header span,
body[data-app="training"] .training-stat-row,
body[data-app="training"] .training-complete-toggle span,
body[data-app="training"] .training-chapter-index,
body[data-app="training"] .training-topic-copy small {
  color: #4a4a4a;
}

body[data-app="training"] .training-score-ring,
body[data-app="training"] .training-progress-bar,
body[data-app="training"] .training-progress-bar span,
body[data-app="training"] .training-module-card-complete,
body[data-app="training"] .training-topic-item-active,
body[data-app="training"] .training-topic-item-complete,
body[data-app="training"] .training-hero-card {
  background: #ffffff;
}

body[data-app="training"] .training-progress-bar {
  border: 1px solid #0f0f0f;
}

body[data-app="training"] .training-progress-bar span {
  background: #0044ce;
}

/* Wider work area for app pages with the fixed side menu. */
body:has(.side-menu) .page-shell,
body:has(.side-menu) .editor-page-shell {
  width: min(1480px, calc(100vw - 312px));
  max-width: none;
}

body:has(.side-menu.side-menu-collapsed) .page-shell,
body:has(.side-menu.side-menu-collapsed) .editor-page-shell {
  width: min(1540px, calc(100vw - 96px));
}

/* Projects overview: keep the operational columns visible without forcing a
   horizontal scroll on ordinary desktop widths. */
body[data-app="keyniusProjects"] .page-shell {
  width: min(1520px, calc(100vw - 312px));
}

body[data-app="keyniusProjects"] .panel:has(#project-list-body) {
  overflow: visible;
}

body[data-app="keyniusProjects"] .table-wrap:has(#project-list-body) {
  overflow-x: hidden;
}

body[data-app="keyniusProjects"] table:has(#project-list-body) {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}

body[data-app="keyniusProjects"] table:has(#project-list-body) th,
body[data-app="keyniusProjects"] table:has(#project-list-body) td {
  padding: 8px 9px;
  font-size: 12px;
  line-height: 1.25;
  vertical-align: middle;
}

body[data-app="keyniusProjects"] table:has(#project-list-body) th {
  white-space: normal;
}

body[data-app="keyniusProjects"] table:has(#project-list-body) th:nth-child(1),
body[data-app="keyniusProjects"] table:has(#project-list-body) td:nth-child(1) {
  width: 22%;
}

body[data-app="keyniusProjects"] table:has(#project-list-body) th:nth-child(2),
body[data-app="keyniusProjects"] table:has(#project-list-body) td:nth-child(2),
body[data-app="keyniusProjects"] table:has(#project-list-body) th:nth-child(3),
body[data-app="keyniusProjects"] table:has(#project-list-body) td:nth-child(3),
body[data-app="keyniusProjects"] table:has(#project-list-body) th:nth-child(4),
body[data-app="keyniusProjects"] table:has(#project-list-body) td:nth-child(4),
body[data-app="keyniusProjects"] table:has(#project-list-body) th:nth-child(5),
body[data-app="keyniusProjects"] table:has(#project-list-body) td:nth-child(5) {
  width: 11%;
}

body[data-app="keyniusProjects"] table:has(#project-list-body) th:nth-child(6),
body[data-app="keyniusProjects"] table:has(#project-list-body) td:nth-child(6),
body[data-app="keyniusProjects"] table:has(#project-list-body) th:nth-child(7),
body[data-app="keyniusProjects"] table:has(#project-list-body) td:nth-child(7),
body[data-app="keyniusProjects"] table:has(#project-list-body) th:nth-child(8),
body[data-app="keyniusProjects"] table:has(#project-list-body) td:nth-child(8) {
  width: 7%;
  text-align: center;
}

body[data-app="keyniusProjects"] table:has(#project-list-body) th:nth-child(9),
body[data-app="keyniusProjects"] table:has(#project-list-body) td:nth-child(9),
body[data-app="keyniusProjects"] table:has(#project-list-body) th:nth-child(10),
body[data-app="keyniusProjects"] table:has(#project-list-body) td:nth-child(10) {
  width: 7.5%;
  text-align: center;
}

body[data-app="keyniusProjects"] #project-list-body td {
  overflow-wrap: anywhere;
}

body[data-app="keyniusProjects"] #project-list-body td:nth-child(1),
body[data-app="keyniusProjects"] #project-list-body td:nth-child(2),
body[data-app="keyniusProjects"] #project-list-body td:nth-child(3),
body[data-app="keyniusProjects"] #project-list-body td:nth-child(5) {
  word-break: normal;
}

body[data-app="keyniusProjects"] #project-list-body td:last-child {
  width: auto;
}

body[data-app="keyniusProjects"] #project-list-body .row-action {
  width: 100%;
  min-height: 30px;
  padding: 6px 8px;
  font-size: 11px;
  white-space: nowrap;
}

body[data-app="keyniusProjects"] #project-list-body select {
  min-height: 34px;
  padding-block: 7px;
  padding-left: 9px;
  font-size: 12px;
}

@media (max-width: 1180px) {
  body:has(.side-menu) .page-shell,
  body:has(.side-menu) .editor-page-shell,
  body[data-app="keyniusProjects"] .page-shell {
    width: min(100%, calc(100vw - 96px));
  }

  body[data-app="keyniusProjects"] .table-wrap:has(#project-list-body) {
    overflow-x: auto;
  }

  body[data-app="keyniusProjects"] table:has(#project-list-body) {
    min-width: 920px;
  }
}


/* Article tables: keep the identifying title/article column visible while
   horizontally reviewing the many detail columns. */
table:has(tbody#articles-body),
table:has(tbody[id$="-articles-body"]),
table:has(tbody#purchase-prices-body) {
  border-collapse: separate;
  border-spacing: 0;
}

.table-wrap:has(tbody#articles-body),
.table-wrap:has(tbody[id$="-articles-body"]),
.table-wrap:has(tbody#purchase-prices-body) {
  position: relative;
}

table:has(tbody#articles-body) th:first-child,
table:has(tbody#articles-body) td:first-child,
table:has(tbody[id$="-articles-body"]) th:first-child,
table:has(tbody[id$="-articles-body"]) td:first-child,
table:has(tbody#purchase-prices-body) th:first-child,
table:has(tbody#purchase-prices-body) td:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  width: clamp(180px, 20vw, 280px);
  min-width: 180px;
  max-width: 280px;
  background: #ffffff;
  box-shadow: 1px 0 0 var(--panel-border-strong);
  overflow-wrap: anywhere;
}

table:has(tbody#articles-body) th:first-child,
table:has(tbody[id$="-articles-body"]) th:first-child,
table:has(tbody#purchase-prices-body) th:first-child {
  z-index: 4;
  background: rgba(250, 251, 253, 0.98);
}

table:has(tbody#articles-body) tbody tr:hover td:first-child,
table:has(tbody[id$="-articles-body"]) tbody tr:hover td:first-child,
table:has(tbody#purchase-prices-body) tbody tr:hover td:first-child {
  background: var(--accent-soft);
}

/* Mobile side-menu override.
   Keep this block after the fixed desktop side-menu rules so mobile drawer
   behavior wins the cascade when desktop/tablet layout rules are merged. */
@media (max-width: 720px) {
  body:has(.side-menu) {
    padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px));
  }

  body:has(.side-menu) .editor-frame,
  body:has(.side-menu.side-menu-collapsed) .editor-frame {
    display: block;
    width: 100%;
    padding-left: 0;
  }

  body:has(.side-menu) .page-shell,
  body:has(.side-menu) .editor-page-shell,
  body:has(.side-menu.side-menu-collapsed) .page-shell,
  body:has(.side-menu.side-menu-collapsed) .editor-page-shell,
  body[data-app="keyniusProjects"] .page-shell {
    width: min(100%, calc(100vw - 24px));
    margin-top: 12px;
    margin-left: auto;
    margin-right: auto;
    padding-inline: 0;
  }

  body[data-app="keyniusProjects"] .table-wrap:has(#project-list-body) {
    overflow-x: auto;
  }

  body[data-app="keyniusProjects"] table:has(#project-list-body) {
    min-width: 920px;
  }

  .side-menu,
  .side-menu.side-menu-collapsed {
    position: fixed;
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 60;
    width: 100%;
    height: min(78vh, 640px);
    min-height: 0;
    max-height: min(78vh, 640px);
    padding: 18px 16px calc(92px + env(safe-area-inset-bottom, 0px));
    background: #ffffff;
    border: 0;
    border-top: 1px solid #d8d8d8;
    box-shadow: 0 -18px 44px rgba(0, 0, 0, 0.14);
    overflow: hidden;
    transform: translateY(0);
    transition: height 180ms var(--ease-swift), box-shadow 180ms var(--ease-swift);
  }

  .side-menu.side-menu-collapsed {
    height: calc(72px + env(safe-area-inset-bottom, 0px));
    max-height: calc(72px + env(safe-area-inset-bottom, 0px));
    padding: 0 max(14px, env(safe-area-inset-left, 0px)) env(safe-area-inset-bottom, 0px) max(14px, env(safe-area-inset-right, 0px));
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.08);
    overflow: visible;
  }

  .side-menu-toggle,
  .side-menu-toggle:hover:not(:disabled),
  .side-menu-toggle:active:not(:disabled),
  .side-menu.side-menu-collapsed .side-menu-toggle {
    position: absolute;
    right: max(14px, env(safe-area-inset-right, 0px));
    bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    width: 92px;
    min-height: 56px;
    display: inline-flex;
    flex-direction: row;
    justify-content: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    color: #111111;
    text-transform: uppercase;
  }

  .side-menu-toggle:hover:not(:disabled) {
    background: transparent;
    border-color: transparent;
    color: #0044ce;
  }

  .side-menu-label,
  .side-menu.side-menu-collapsed .side-menu-label {
    display: inline;
    color: inherit;
    font-size: 0.78rem;
  }

  .side-menu-nav {
    height: 100%;
    min-height: 0;
    padding: 0 0 4px;
    gap: 18px;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .side-menu.side-menu-collapsed .side-menu-nav {
    display: none;
  }

  .side-menu-main {
    gap: 10px;
    overflow-y: visible;
  }

  .side-menu-footer {
    display: none;
  }

  .side-menu-apps-header,
  .side-menu-admin-header {
    min-height: 52px;
    grid-template-columns: minmax(0, 1fr) 44px;
  }

  .side-menu-apps-toggle,
  .side-menu-apps-toggle:hover:not(:disabled),
  .side-menu-apps-toggle:active:not(:disabled),
  .side-menu-admin-toggle,
  .side-menu-admin-toggle:hover:not(:disabled),
  .side-menu-admin-toggle:active:not(:disabled) {
    width: 44px;
    min-height: 44px;
  }

  .side-menu-apps-list,
  .side-menu-admin-list {
    padding: 10px 14px 14px;
  }

  .side-menu-current-app {
    margin-top: 12px;
  }

  .side-menu-subnav {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    margin-bottom: 10px;
  }

  .side-menu-item,
  .side-menu-subitem,
  .side-menu .button-link,
  .side-menu-nav .button-link,
  .side-menu-item.button-link,
  .side-menu-subitem.button-link {
    min-height: 48px;
    padding: 11px 12px;
  }

  .side-menu-collapsed-logout,
  .side-menu-collapsed .side-menu-collapsed-logout {
    display: none;
  }
}
