:root {
  --bg: #06111c;
  --bg-deep: #030a11;
  --panel: #0b1e2c;
  --panel-2: #0e2637;
  --panel-3: #112d3f;
  --line: #264353;
  --line-soft: rgba(118, 153, 171, 0.22);
  --text: #f5f7f8;
  --muted: #9db0bc;
  --orange: #ef7d00;
  --orange-bright: #ff8614;
  --green: #5dcc36;
  --red: #d75a4a;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  --radius: 16px;
  --max-width: 1760px;
}

* { box-sizing: border-box; }

.svg-library { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }

html { color-scheme: dark; scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(circle at 72% 10%, rgba(28, 64, 83, 0.18), transparent 36rem),
    linear-gradient(180deg, #081522 0%, var(--bg-deep) 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

.app-shell {
  width: 100%;
  min-height: 100vh;
  background: rgba(4, 14, 22, 0.72);
}

/* Alleen de gekozen stap staat in beeld; de overige stappen leven uitsluitend
   in de vijf navigatieknoppen bovenaan. */
.flow-card:not(.is-active) { display: none; }
.configuration-panel { display: none; }
.app-shell[data-active-step="3"] .configuration-panel { display: block; }

.hero {
  position: relative;
  height: 132px;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: #0b1e2b url("assets/brand/header-machine.jpg") center 54% / cover no-repeat;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4, 17, 28, 0.97) 0%, rgba(4, 17, 28, 0.88) 34%, rgba(4, 17, 28, 0.58) 65%, rgba(4, 17, 28, 0.94) 100%),
    linear-gradient(180deg, transparent, rgba(3, 11, 18, 0.78));
}

.hero__content {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 64px), var(--max-width));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.hero__logo {
  display: block;
  width: 260px;
  max-height: 105px;
  object-fit: contain;
  object-position: left center;
}

.hero__title { text-align: right; letter-spacing: 0.12em; text-shadow: 0 3px 14px #000; }
.hero__title span { display: block; font-size: clamp(1.2rem, 2vw, 2rem); font-weight: 850; }
.hero__title small { display: block; margin-top: 8px; color: #bcc7ce; font-weight: 700; letter-spacing: 0.25em; }

.stepper {
  width: min(calc(100% - 64px), var(--max-width));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  background: rgba(5, 17, 27, 0.93);
  border-bottom: 1px solid var(--line-soft);
}

.stepper__item {
  position: relative;
  min-width: 0;
  min-height: 126px;
  padding: 18px 12px 20px;
  border: 0;
  border-bottom: 4px solid #40505a;
  background: transparent;
  color: #a8b4bb;
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}

.stepper__item::after {
  content: "";
  position: absolute;
  right: 0;
  top: 24px;
  bottom: 24px;
  width: 1px;
  background: rgba(255,255,255,.06);
}

.stepper__item:last-child::after { display: none; }
.stepper__item:hover { background: rgba(255,255,255,.025); color: white; }
.stepper__item.is-active { color: white; border-bottom-color: var(--orange); }
.stepper__item.is-complete { color: white; border-bottom-color: var(--green); }

.stepper__badge {
  position: absolute;
  top: 9px;
  left: calc(50% - 47px);
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 2px solid #60717b;
  border-radius: 50%;
  background: #344651;
  font-weight: 900;
  box-shadow: 0 2px 8px rgba(0,0,0,.35);
}

.stepper__item.is-active .stepper__badge { border-color: var(--orange); background: var(--orange); color: #10202b; }
.stepper__item.is-complete .stepper__badge { border-color: var(--green); background: var(--green); font-size: 0; color: #06140a; }
.stepper__item.is-complete .stepper__badge::before { content: "✓"; font-size: 1.1rem; }

.stepper__icon {
  display: block;
  height: 53px;
  line-height: 1;
}

.stepper__icon svg { width: 52px; height: 52px; overflow: visible; }
.stepper__icon img {
  width: 58px;
  height: 53px;
  display: block;
  margin: 0 auto;
  object-fit: contain;
}


.stepper__label { display: block; margin-top: 2px; font-size: 1.05rem; font-weight: 750; }

.workspace {
  width: min(calc(100% - 64px), var(--max-width));
  margin: 28px auto 0;
  padding-bottom: 132px;
}

.workspace__toolbar {
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
}

.workspace__toolbar > div:first-child { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; }
.workspace__toolbar strong { color: white; font-size: 1.08rem; }
.eyebrow { color: var(--orange); font-size: .75rem; font-weight: 850; letter-spacing: .16em; }
.save-state { padding-left: 10px; border-left: 1px solid var(--line); font-size: .85rem; }
.toolbar-actions { display: flex; gap: 8px; }

.flow-card,
.configuration-panel {
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(14, 38, 55, .98), rgba(8, 26, 39, .98));
  box-shadow: 0 6px 20px rgba(0,0,0,.16);
  overflow: hidden;
}

.flow-card.is-active {
  border: 2px solid var(--orange);
  box-shadow: 0 0 0 1px rgba(239,125,0,.15), var(--shadow);
}

.flow-card.is-complete:not(.is-active) { border-color: rgba(93,204,54,.38); }

.flow-card__header {
  width: 100%;
  min-height: 84px;
  padding: 12px 24px;
  display: grid;
  grid-template-columns: 62px 38px minmax(0, 1fr) auto 26px;
  align-items: center;
  gap: 12px;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.flow-card__symbol {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  color: white;
  font-size: 2.25rem;
  line-height: 1;
}

.flow-card__symbol svg { width: 48px; height: 48px; }
.flow-card__symbol img {
  width: 54px;
  height: 54px;
  display: block;
  object-fit: contain;
}

#machine-card-icon.is-wheel-loader {
  background: #fff;
  filter: grayscale(1) invert(1) contrast(1.2);
}

.is-active .flow-card__symbol { color: var(--orange); }
.is-complete .flow-card__symbol { color: white; }

.flow-card__status {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #42535e;
  color: #e4eaed;
  font-weight: 900;
}

.flow-card.is-active .flow-card__status { background: var(--orange); color: #0b1c28; }
.flow-card.is-complete:not(.is-active) .flow-card__status { background: var(--green); color: transparent; position: relative; }
.flow-card.is-complete:not(.is-active) .flow-card__status::after { content: "✓"; position: absolute; color: #07170c; }

.flow-card__heading { min-width: 0; }
.flow-card__heading strong { display: block; font-size: 1.32rem; }
.flow-card__heading small { display: block; margin-top: 5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.flow-card__edit {
  padding: 10px 16px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #668090;
  border-radius: 9px;
  color: #dce5ea;
  font-size: .9rem;
  font-weight: 750;
}

.flow-card__edit svg { width: 17px; height: 17px; }

.flow-card[data-section="2"].is-complete:not(.is-active) .flow-card__header { min-height: 104px; }
.flow-card[data-section="2"].is-complete:not(.is-active) .flow-card__heading {
  position: relative;
  min-height: 76px;
  padding-left: 138px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.flow-card[data-section="2"].is-complete:not(.is-active) .flow-card__heading::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 122px;
  height: 76px;
  transform: translateY(-50%);
  background: url("assets/mockup-icons/machine-yellow.png") center / contain no-repeat;
}

.flow-card:not(.is-complete):not(.is-active) .flow-card__edit { opacity: .45; }
.flow-card__chevron { color: #dce5ea; font-size: 1.15rem; text-align: center; }

.flow-card__body {
  padding: 8px 24px 26px;
  border-top: 1px solid rgba(255,255,255,.05);
}

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

#customer-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.daylite-panel { display:flex; align-items:center; gap:12px; padding:12px 14px; border:1px solid #315b72; border-radius:11px; background:linear-gradient(90deg,rgba(39,122,171,.13),rgba(255,255,255,.018)); }
.daylite-panel__mark { width:36px; height:36px; flex:0 0 36px; display:grid; place-items:center; border-radius:9px; color:white; background:#277aab; font-size:1.08rem; font-weight:900; }
.daylite-panel__text { min-width:0; display:flex; flex:1; flex-direction:column; gap:2px; }
.daylite-panel__text strong { color:white; }
.daylite-panel__text small { color:var(--muted); line-height:1.35; }
.daylite-panel.is-linked { border-color:#3f8656; background:linear-gradient(90deg,rgba(72,169,94,.14),rgba(255,255,255,.018)); }
.daylite-panel.is-linked .daylite-panel__mark { background:#3c9b54; }

.field {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field > span:first-child,
.field > label:first-child {
  color: #dbe2e6;
  font-size: .84rem;
  font-weight: 730;
}
.database-hint { display: block; margin-top: 6px; color: var(--muted); font-size: .72rem; line-height: 1.4; }
.coupler-custom { margin-top: 8px; }
.coupler-custom[hidden] { display: none; }

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


input, select, textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid #39586a;
  border-radius: 9px;
  outline: none;
  background: #0a1a27;
  color: white;
  padding: 11px 13px;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

textarea { resize: vertical; }
input::placeholder, textarea::placeholder { color: #6f8795; }
input:focus, select:focus, textarea:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(239,125,0,.13); background: #0c2030; }
input.is-invalid, select.is-invalid { border-color: var(--red); box-shadow: 0 0 0 3px rgba(215,90,74,.12); }

.input-unit { display: flex; align-items: stretch; }
.input-unit input { border-radius: 9px 0 0 9px; }
.input-unit > span { min-width: 58px; display: grid; place-items: center; border: 1px solid #39586a; border-left: 0; border-radius: 0 9px 9px 0; background: #132b3a; color: var(--muted); font-size: .84rem; font-weight: 700; }

.segmented { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.segmented label { cursor: pointer; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span { min-height: 46px; display: grid; place-items: center; border: 1px solid #39586a; border-radius: 9px; background: #0a1a27; font-weight: 700; }
.segmented input:checked + span { border-color: var(--orange); color: #fff; background: rgba(239,125,0,.11); box-shadow: inset 0 0 0 1px var(--orange); }

.form-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 4px;
}

.form-hint, .technical-note { color: var(--muted); font-size: .82rem; line-height: 1.5; }
.button {
  min-height: 46px;
  padding: 11px 19px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .15s ease, filter .15s ease, background .15s ease, border-color .15s ease;
}
.button:hover { filter: brightness(1.08); }
.button:active { transform: translateY(1px); }
.button--small { min-height: 36px; padding: 7px 12px; font-size: .78rem; }
.button--primary { background: linear-gradient(180deg, #ff8a18, var(--orange)); color: #101921; box-shadow: 0 8px 22px rgba(239,125,0,.25); }
.button--confirm { background: linear-gradient(180deg, #69dd3d, #43b827); color: #07180b; box-shadow: 0 8px 18px rgba(73,191,40,.18); }
.button--outline { border-color: var(--orange); background: rgba(239,125,0,.05); color: var(--orange-bright); }
.button--ghost { border-color: #668090; background: transparent; color: #eef3f5; }
.button--danger { background: #bd4c3f; color: white; }
.button--full { width: 100%; margin-top: 17px; }
.button__icon { width: 21px; height: 21px; flex: 0 0 auto; }

.bucket-builder {
  display: grid;
  grid-template-columns: minmax(430px, 1.2fr) minmax(310px, .8fr) minmax(500px, 1.35fr);
  gap: 24px;
}
.bucket-builder.is-profile-hidden { grid-template-columns: minmax(430px, 1.2fr) minmax(500px, 1.35fr); }

.builder-column { min-width: 0; margin: 0; padding: 0; border: 0; }
.builder-column[hidden] { display: none; }
.builder-column + .builder-column { padding-left: 24px; border-left: 1px solid var(--line-soft); }
.builder-column legend { width: 100%; margin-bottom: 15px; color: white; font-weight: 800; font-size: 1rem; }

.choice-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; }
.choice-card { position: relative; cursor: pointer; }
.choice-card input { position: absolute; opacity: 0; pointer-events: none; }
.choice-card__face {
  min-height: 150px;
  height: 100%;
  padding: 9px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid #365367;
  border-radius: 11px;
  background: linear-gradient(155deg, #132a3a, #0b1b28);
  overflow: hidden;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.choice-card:hover .choice-card__face { transform: translateY(-2px); border-color: #748d9b; }
.choice-card input:checked + .choice-card__face { border: 2px solid var(--orange); padding: 8px; box-shadow: 0 0 0 2px rgba(239,125,0,.12); }
.choice-card img { width: 100%; height: 98px; display: block; object-fit: contain; border-radius: 7px; background: #eef0ef; mix-blend-mode: normal; }
.choice-card strong { padding-bottom: 4px; font-size: .88rem; }

.profile-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.profile-card { position: relative; min-width: 0; cursor: pointer; }
.profile-card input { position: absolute; opacity: 0; pointer-events: none; }
.profile-card { min-height: 150px; padding: 9px 7px 10px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; border: 1px solid #365367; border-radius: 11px; background: linear-gradient(155deg, #132a3a, #0b1b28); overflow: hidden; }
.profile-card:has(input:checked) { border: 2px solid var(--orange); padding: 8px 6px 9px; box-shadow: 0 0 0 2px rgba(239,125,0,.12); }
.profile-card strong { font-size: .86rem; }
.profile-card small { margin-top: 3px; color: var(--muted); font-size: .66rem; }

.profile-image {
  width: 100%;
  height: 92px;
  margin-bottom: 7px;
  display: block;
  object-fit: contain;
  border-radius: 7px;
  background: #fff;
}

.technical-note { margin: 12px 3px 0; }
.profile-not-applicable { margin: 0 0 13px; padding: 10px 12px; border: 1px solid #365367; border-radius: 9px; color: var(--muted); background: rgba(255,255,255,.025); font-size: .78rem; }
.profile-not-applicable[hidden] { display: none; }
.spec-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.starscreen-fields[hidden] { display: none; }
.spec-grid > [hidden] { display: none; }
.starscreen-fields { display: grid; grid-template-columns: 1fr; gap: 13px; padding: 13px; border: 1px solid rgba(239,125,0,.7); border-radius: 11px; background: rgba(239,125,0,.06); }
.starscreen-details { min-height: 72px; padding: 11px 13px; border: 1px solid #365367; border-radius: 9px; background: #0b1c29; }
.starscreen-details > p { margin: 0; color: var(--muted); line-height: 1.45; }
.starscreen-details > strong { display: block; margin-bottom: 8px; color: var(--orange); }
.starscreen-details dl { margin: 0; display: grid; grid-template-columns: 1fr; gap: 8px 12px; }
.starscreen-details dl div { min-width: 0; }
.starscreen-details dt { color: var(--muted); font-size: .66rem; text-transform: uppercase; letter-spacing: .06em; }
.starscreen-details dd { margin: 3px 0 0; font-size: .78rem; font-weight: 700; }
.starscreen-details small { display: block; margin-top: 10px; color: var(--muted); line-height: 1.4; }
.overview-table td small { display: block; margin-top: 4px; color: var(--muted); }
.quantity { display: grid; grid-template-columns: 44px minmax(50px,1fr) 44px; }
.quantity button { border: 1px solid #39586a; background: #132b3a; color: white; cursor: pointer; font-size: 1.25rem; }
.quantity button:first-child { border-radius: 9px 0 0 9px; }
.quantity button:last-child { border-radius: 0 9px 9px 0; }
.quantity input { border-radius: 0; text-align: center; -moz-appearance: textfield; }
.quantity input::-webkit-inner-spin-button { appearance: none; }

.configuration-panel { margin-top: 18px; }
.configuration-panel__header { min-height: 96px; padding: 16px 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.configuration-panel__header > div { display: flex; align-items: center; gap: 15px; }
.configuration-panel__header strong, .configuration-panel__header small { display: block; }
.configuration-panel__header strong { font-size: 1.25rem; }
.configuration-panel__header small { margin-top: 5px; color: var(--muted); }
.case-icon { width: 48px; height: 48px; display: grid; place-items: center; }
.case-icon svg { width: 42px; height: 42px; }
.case-icon img { width: 46px; height: 46px; display: block; object-fit: contain; }
.configuration-actions { flex-wrap: wrap; justify-content: flex-end; }
.configuration-list { padding: 0 24px 22px; }
.empty-state { margin: 0; padding: 20px; border: 1px dashed #345164; border-radius: 10px; color: var(--muted); text-align: center; }

.machine-row { margin-top: 10px; border: 1px solid #2e4a5c; border-radius: 12px; background: rgba(6,18,28,.48); overflow: hidden; }
.machine-row__main { min-height: 104px; padding: 14px 18px; display: grid; grid-template-columns: 118px minmax(190px, .9fr) minmax(180px, .72fr) minmax(0, 1.8fr) auto; align-items: center; gap: 18px; }
.machine-row__icon { width: 112px; height: 78px; display: grid; place-items: center; }
.machine-row__icon img { width: 100%; height: 100%; display: block; object-fit: contain; }
.machine-row__info strong, .machine-row__info small { display: block; }
.machine-row__info strong { font-size: 1rem; }
.machine-row__info small { margin-top: 4px; color: var(--muted); }
.coupler-chip { padding-left: 18px; border-left: 1px solid var(--line); }
.bucket-strip { display: flex; gap: 10px; overflow-x: auto; padding: 4px 0; }
.bucket-chip { min-width: 220px; padding: 9px; display: grid; grid-template-columns: 56px minmax(0,1fr) 30px; align-items: center; gap: 9px; border: 1px solid #2e4a5c; border-radius: 9px; background: #0d2433; }
.bucket-chip img { width: 56px; height: 50px; object-fit: contain; border-radius: 6px; background: white; }
.bucket-chip strong, .bucket-chip small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bucket-chip strong { font-size: .82rem; }
.bucket-chip small { margin-top: 4px; color: var(--muted); font-size: .72rem; }
.icon-button { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid #456173; border-radius: 8px; background: transparent; color: white; cursor: pointer; }
.icon-button svg { width: 17px; height: 17px; }
.machine-row__actions { display: flex; gap: 7px; }

.overview-content { padding-top: 8px; }
.overview-head { padding: 20px; display: flex; justify-content: space-between; gap: 24px; border: 1px solid var(--line); border-radius: 12px; background: rgba(5,17,27,.5); }
.overview-head h2 { margin: 0 0 8px; }
.overview-head p { margin: 4px 0; color: var(--muted); }
.overview-machine { margin-top: 16px; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: rgba(5,17,27,.5); }
.overview-machine h3 { margin: 0 0 5px; }
.overview-machine > p { margin: 0 0 14px; color: var(--muted); }
.overview-table { width: 100%; border-collapse: collapse; }
.overview-table th, .overview-table td { padding: 11px 8px; border-top: 1px solid var(--line-soft); text-align: left; font-size: .84rem; }
.overview-table th { color: var(--muted); }
.overview-row-actions { display: flex; align-items: center; gap: 7px; }
.overview-row-actions .button { min-height: 32px; padding: 5px 9px; white-space: nowrap; }
.overview-warning { margin-top: 16px; padding: 14px 16px; border-left: 3px solid var(--orange); background: rgba(239,125,0,.08); color: #d9e1e5; font-size: .86rem; }
.overview-actions { margin-top: 18px; display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; }

.action-bar {
  position: fixed;
  z-index: 20;
  left: 0;
  right: 0;
  bottom: 0;
  min-height: 92px;
  padding: 16px max(32px, calc((100vw - var(--max-width)) / 2));
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  border-top: 1px solid var(--line);
  background: rgba(5, 17, 27, .96);
  backdrop-filter: blur(14px);
  box-shadow: 0 -12px 34px rgba(0,0,0,.22);
}
.action-bar > :first-child { justify-self: start; }
.action-bar > :last-child { justify-self: end; min-width: 240px; }
.action-bar__meta { display: flex; align-items: center; gap: 9px; color: #6f8490; font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; }
.dot { width: 4px; height: 4px; border-radius: 50%; background: var(--orange); }

.toast {
  position: fixed;
  z-index: 40;
  right: 22px;
  bottom: 116px;
  max-width: min(390px, calc(100vw - 44px));
  padding: 14px 18px;
  border: 1px solid #48705a;
  border-radius: 10px;
  background: #10291d;
  color: #eaffee;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.toast.is-visible { opacity: 1; transform: translateY(0); }
.toast.is-error { border-color: #8f493f; background: #321817; }

.dialog { width: min(470px, calc(100% - 32px)); border: 1px solid var(--line); border-radius: 15px; background: var(--panel); color: white; box-shadow: 0 25px 80px #000; }
.dialog::backdrop { background: rgba(0,0,0,.7); backdrop-filter: blur(4px); }
.dialog h2 { margin-top: 0; }
.dialog p { color: var(--muted); line-height: 1.55; }
.dialog__actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }
.dialog__note { font-size: .84rem; }
.dialog--daylite { width:min(760px,calc(100% - 32px)); }
.daylite-dialog__header { display:flex; align-items:center; gap:12px; margin-bottom:20px; }
.daylite-dialog__header > span:last-child { display:flex; flex-direction:column; gap:3px; }
.daylite-dialog__header strong { color:white; font-size:1.2rem; }
.daylite-dialog__header small { color:var(--muted); }
.daylite-search { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:end; gap:12px; }
.daylite-search label { display:grid; gap:7px; color:#dbe2e6; font-size:.84rem; font-weight:750; }
.daylite-results { display:grid; gap:9px; max-height:390px; margin-top:14px; overflow:auto; }
.daylite-result { width:100%; display:grid; grid-template-columns:minmax(0,1fr) auto; gap:10px; padding:13px 14px; border:1px solid #36566b; border-radius:10px; color:white; background:#0a1a27; text-align:left; cursor:pointer; }
.daylite-result:hover,.daylite-result:focus-visible { border-color:var(--orange); outline:0; }
.daylite-result strong,.daylite-result small { display:block; }
.daylite-result small { margin-top:4px; color:var(--muted); line-height:1.4; }
.daylite-result__choose { align-self:center; color:var(--orange-bright); font-size:.78rem; font-weight:850; }
.daylite-empty,.daylite-login-help { margin-top:14px; padding:14px; border:1px solid var(--line-soft); border-radius:10px; color:var(--muted); background:rgba(255,255,255,.025); }
.daylite-login-help p { margin-top:0; }
.updates-result { margin: 16px 0; padding: 13px 15px; border: 1px solid var(--line-soft); border-radius: 10px; background: rgba(255,255,255,.025); color: var(--muted); line-height: 1.5; }
.updates-result.is-success { border-color: #3c6f4c; color: #c8f4d2; }
.updates-result.is-error { border-color: #8f493f; color: #ffd0ca; }
.updates-result ul { margin: 8px 0 0; padding-left: 20px; }

@media (max-width: 1320px) {
  .bucket-builder { grid-template-columns: 1fr 1fr; }
  .bucket-builder.is-profile-hidden { grid-template-columns: 1fr 1fr; }
  .builder-column--specs { grid-column: 1 / -1; padding-top: 20px; padding-left: 0 !important; border-left: 0 !important; border-top: 1px solid var(--line-soft); }
  .bucket-builder.is-profile-hidden .builder-column--specs { grid-column: auto; padding-top: 0; padding-left: 24px !important; border-left: 1px solid var(--line-soft) !important; border-top: 0 !important; }
  .machine-row__main { grid-template-columns: 105px minmax(180px, .9fr) minmax(150px, .7fr) minmax(0,1.2fr); }
  .machine-row__actions { grid-column: 2 / -1; justify-content: flex-end; }
}

@media (max-width: 980px) {
  .hero__content, .stepper, .workspace { width: min(calc(100% - 32px), var(--max-width)); }
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field--wide { grid-column: 1 / -1; }
  .stepper__item { min-height: 104px; padding-left: 6px; padding-right: 6px; }
  .stepper__icon { height: 43px; }
  .stepper__icon svg { width: 42px; height: 42px; }
  .stepper__icon img { width: 46px; height: 43px; }
  .stepper__label { font-size: .85rem; }
  .stepper__badge { left: calc(50% - 38px); width: 27px; height: 27px; font-size: .75rem; }
  .bucket-builder { grid-template-columns: 1fr; }
  .bucket-builder.is-profile-hidden { grid-template-columns: 1fr; }
  .builder-column + .builder-column { padding: 20px 0 0; border-left: 0; border-top: 1px solid var(--line-soft); }
  .builder-column--specs { grid-column: auto; }
  .bucket-builder.is-profile-hidden .builder-column--specs { padding: 20px 0 0; border-left: 0 !important; border-top: 1px solid var(--line-soft) !important; }
  .starscreen-details dl { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .machine-row__main { grid-template-columns: 92px 1fr auto; }
  .coupler-chip { grid-column: 2 / -1; padding: 12px 0 0; border-left: 0; border-top: 1px solid var(--line-soft); }
  .bucket-strip { grid-column: 2 / -1; }
  .machine-row__actions { grid-column: auto; grid-row: 1; grid-column: 3; }
  .action-bar { padding-inline: 16px; }
}

@media (max-width: 680px) {
  .hero { height: 92px; }
  .daylite-panel { align-items:flex-start; flex-wrap:wrap; }
  .daylite-panel .button { width:100%; }
  .daylite-search { grid-template-columns:1fr; }
  .hero__content { width: calc(100% - 28px); }
  .hero__logo { width: 150px; }
  .hero__title span { font-size: .92rem; }
  .hero__title small { margin-top: 5px; font-size: .52rem; }
  .stepper { width: 100%; position: sticky; top: 0; z-index: 15; }
  .stepper__item { min-height: 76px; padding: 10px 2px 9px; }
  .stepper__item::after { top: 15px; bottom: 15px; }
  .stepper__badge { top: 7px; left: calc(50% - 25px); width: 21px; height: 21px; border-width: 1px; font-size: .64rem; }
  .stepper__icon { height: 35px; }
  .stepper__icon svg { width: 32px; height: 32px; }
  .stepper__icon img { width: 36px; height: 35px; }
  .stepper__label { font-size: .62rem; }
  .workspace { width: calc(100% - 22px); margin-top: 16px; padding-bottom: 170px; }
  .workspace__toolbar { align-items: flex-start; }
  .workspace__toolbar > div:first-child { gap: 6px; }
  .eyebrow, .save-state { width: 100%; }
  .save-state { padding-left: 0; border-left: 0; }
  #load-demo { display: none; }
  .flow-card, .configuration-panel { border-radius: 12px; margin-bottom: 10px; }
  .flow-card__header { min-height: 72px; padding: 8px 12px; grid-template-columns: 38px 26px minmax(0,1fr) 18px; gap: 7px; }
  .flow-card__symbol { width: 38px; height: 38px; font-size: 1.55rem; }
  .flow-card__symbol svg { width: 32px; height: 32px; }
  .flow-card__symbol img { width: 36px; height: 36px; }
  .flow-card__status { width: 25px; height: 25px; font-size: .75rem; }
  .flow-card__heading strong { font-size: 1rem; }
  .flow-card__heading small { font-size: .72rem; }
  .flow-card__edit { display: none; }
  .flow-card__body { padding: 12px 12px 18px; }
  .form-grid, .spec-grid { grid-template-columns: 1fr; gap: 13px; }
  #customer-form { grid-template-columns: 1fr 1fr; }
  #customer-form .form-actions,
  #customer-form .field--wide { grid-column: 1 / -1; }
  .field--wide { grid-column: auto; }
  .starscreen-fields { grid-template-columns: 1fr; }
  .starscreen-details dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-actions { align-items: stretch; flex-direction: column; }
  .form-actions .button { width: 100%; }
  .choice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .choice-card__face { min-height: 140px; }
  .profile-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .profile-card { min-height: 132px; }
  .profile-image { height: 76px; }
  .configuration-panel__header { align-items: stretch; flex-direction: column; padding: 15px; }
  .configuration-actions { display: grid !important; grid-template-columns: 1fr 1fr; }
  .configuration-actions .button { min-width: 0; padding-inline: 8px; font-size: .75rem; }
  .configuration-list { padding: 0 10px 12px; }
  .machine-row__main { padding: 12px; grid-template-columns: 72px minmax(0,1fr) auto; gap: 10px; }
  .machine-row__icon { width: 70px; height: 52px; }
  .flow-card[data-section="2"].is-complete:not(.is-active) .flow-card__heading { min-height: 54px; padding-left: 82px; }
  .flow-card[data-section="2"].is-complete:not(.is-active) .flow-card__heading::before { width: 74px; height: 52px; }
  .coupler-chip, .bucket-strip { grid-column: 1 / -1; }
  .bucket-chip { min-width: 210px; }
  .overview-head { flex-direction: column; }
  .overview-table { display: block; overflow-x: auto; white-space: nowrap; }
  .action-bar { min-height: 126px; grid-template-columns: 1fr 1fr; gap: 9px; padding: 10px 12px 12px; }
  .action-bar__meta { grid-column: 1 / -1; grid-row: 1; justify-content: center; }
  .action-bar > :first-child, .action-bar > :last-child { justify-self: stretch; min-width: 0; padding-inline: 8px; font-size: .78rem; }
  .toast { bottom: 140px; right: 11px; }
}

@media print {
  body { background: white; color: #111; }
  .hero, .stepper, .workspace__toolbar, .flow-card:not(.flow-card--overview), .configuration-panel, .action-bar, .overview-actions { display: none !important; }
  .workspace { width: 100%; margin: 0; padding: 0; }
  .flow-card--overview { border: 0; box-shadow: none; background: white; color: #111; }
  .flow-card--overview .flow-card__header { display: none; }
  .flow-card--overview .flow-card__body { display: block !important; padding: 0; border: 0; color: #111; }
  .overview-head, .overview-machine { background: white; color: #111; border-color: #aaa; }
  .overview-head p, .overview-machine > p, .overview-table th { color: #444; }
  .overview-table th, .overview-table td { border-color: #bbb; }
  .overview-warning { color: #111; }
}
