:root {
  color-scheme: light;
  --ink-950: #10292e;
  --ink-900: #15343a;
  --ink-800: #24444a;
  --ink-700: #39575c;
  --ink-600: #587075;
  --ink-500: #72868a;
  --ink-400: #91a0a2;
  --ink-300: #b9c4c5;
  --ink-200: #d8dfdf;
  --ink-150: #e5eaea;
  --ink-100: #edf1f0;
  --ink-50: #f7f9f8;
  --paper: #fcfdfc;
  --white: #ffffff;
  --teal-800: #075f5a;
  --teal-700: #08736b;
  --teal-600: #0b8a7e;
  --teal-500: #16a394;
  --teal-200: #a8dfd6;
  --teal-100: #d9f1ed;
  --teal-50: #eff9f6;
  --gold-700: #8c6416;
  --gold-500: #cf9a2c;
  --gold-200: #f0d999;
  --gold-100: #f9edc9;
  --blue-600: #2473a5;
  --blue-100: #e5f2fa;
  --red-700: #a63b3b;
  --red-500: #d15151;
  --red-100: #fae8e7;
  --green-700: #28744e;
  --green-100: #e4f4e9;
  --purple-700: #6551a5;
  --purple-100: #eeeafd;
  --shadow-xs: 0 1px 2px rgb(15 42 45 / 6%);
  --shadow-sm: 0 3px 12px rgb(15 42 45 / 7%);
  --shadow-md: 0 14px 40px rgb(15 42 45 / 11%);
  --shadow-lg: 0 30px 80px rgb(9 35 38 / 18%);
  --radius-sm: 7px;
  --radius-md: 11px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --sidebar-width: 288px;
  --content-width: 1180px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--ink-950);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink-900);
  background: var(--ink-50);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

button,
label,
select,
input[type="checkbox"],
input[type="radio"] {
  cursor: pointer;
}

button:disabled,
input:disabled,
select:disabled,
textarea:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

a {
  color: var(--teal-700);
}

svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--white);
  background: var(--teal-700);
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.app-shell {
  display: grid;
  min-height: 100vh;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  overflow: hidden auto;
  height: 100vh;
  padding: 30px 22px 24px;
  color: #c9d8d8;
  background:
    radial-gradient(circle at 12% 4%, rgb(35 154 140 / 24%), transparent 27%),
    radial-gradient(circle at 95% 55%, rgb(204 151 44 / 10%), transparent 34%),
    linear-gradient(165deg, #16383d 0%, #102c31 52%, #0e252a 100%);
  flex-direction: column;
}

.sidebar::after {
  position: absolute;
  right: -140px;
  bottom: 10%;
  width: 290px;
  height: 290px;
  border: 1px solid rgb(140 223 210 / 7%);
  border-radius: 50%;
  box-shadow: 0 0 0 38px rgb(140 223 210 / 3%), 0 0 0 76px rgb(140 223 210 / 2%);
  content: "";
  pointer-events: none;
}

.brand {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 8px 28px;
  border-bottom: 1px solid rgb(214 239 236 / 11%);
}

.brand-mark {
  width: 43px;
  height: 43px;
  padding: 5px;
  border: 1px solid rgb(164 227 218 / 24%);
  border-radius: 13px;
  color: #9bdace;
  background: rgb(125 218 203 / 7%);
  stroke-width: 1.5;
}

.brand-name,
.brand-subtitle {
  display: block;
}

.brand-name {
  color: var(--white);
  font-family: Iowan Old Style, Charter, Georgia, serif;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.05;
}

.brand-subtitle {
  margin-top: 4px;
  color: #91a9aa;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.095em;
  text-transform: uppercase;
}

.step-navigation {
  position: relative;
  z-index: 1;
  padding: 26px 0;
}

.stepper {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 2px;
  list-style: none;
}

.step-button {
  position: relative;
  display: grid;
  width: 100%;
  min-height: 54px;
  padding: 9px 9px;
  border: 0;
  border-radius: var(--radius-md);
  color: #91a9aa;
  background: transparent;
  grid-template-columns: 34px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 10px;
  text-align: left;
  transition: color 150ms ease, background 150ms ease, transform 150ms ease;
}

.step-button:not(:disabled):hover {
  color: #dce8e7;
  background: rgb(255 255 255 / 5%);
}

.step-button[aria-current="step"] {
  color: var(--white);
  background: linear-gradient(90deg, rgb(24 146 133 / 20%), rgb(24 146 133 / 7%));
  box-shadow: inset 3px 0 #47baaa;
}

.step-button:disabled {
  opacity: 0.58;
}

.step-number {
  display: grid;
  width: 30px;
  height: 30px;
  border: 1px solid rgb(190 213 213 / 22%);
  border-radius: 50%;
  place-items: center;
  color: #a5b8b8;
  font-size: 12px;
  font-weight: 750;
  transition: all 150ms ease;
}

.step-button[aria-current="step"] .step-number {
  border-color: #5fc4b5;
  color: #0d3536;
  background: #7bd4c7;
  box-shadow: 0 0 0 4px rgb(80 196 180 / 10%);
}

.step-button.is-complete .step-number {
  border-color: rgb(91 192 176 / 48%);
  color: #92d7cc;
  background: rgb(39 145 133 / 16%);
}

.step-number svg {
  width: 15px;
  height: 15px;
  stroke-width: 2.2;
}

.step-label strong,
.step-label span {
  display: block;
}

.step-label strong {
  color: inherit;
  font-size: 13px;
  font-weight: 680;
  line-height: 1.3;
}

.step-label span {
  margin-top: 2px;
  color: #789294;
  font-size: 11px;
  line-height: 1.3;
}

.step-chevron {
  width: 14px;
  height: 14px;
  opacity: 0;
  transition: opacity 150ms ease, transform 150ms ease;
}

.step-button:not(:disabled):hover .step-chevron,
.step-button[aria-current="step"] .step-chevron {
  opacity: 0.65;
  transform: translateX(2px);
}

.sidebar-footer {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding: 18px 7px 0;
  border-top: 1px solid rgb(214 239 236 / 10%);
}

.security-note {
  display: flex;
  color: #8fa8a9;
  font-size: 11px;
  line-height: 1.55;
  align-items: flex-start;
  gap: 9px;
}

.security-note svg {
  width: 17px;
  height: 17px;
  margin-top: 1px;
  color: #69c8b9;
  flex: none;
}

.security-note strong {
  color: #b9cfce;
  font-weight: 620;
}

.text-button {
  padding: 0;
  border: 0;
  color: var(--teal-700);
  background: transparent;
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
}

.text-button:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sidebar-reset {
  margin-top: 14px;
  color: #8fa8a9;
  font-size: 11px;
  font-weight: 550;
}

.main-column {
  display: flex;
  min-width: 0;
  min-height: 100vh;
  flex-direction: column;
  background:
    radial-gradient(circle at 100% 0%, rgb(20 161 144 / 5%), transparent 34%),
    var(--ink-50);
}

.topbar {
  position: sticky;
  z-index: 18;
  top: 0;
  display: flex;
  min-height: 68px;
  padding: 0 clamp(24px, 4vw, 58px);
  border-bottom: 1px solid var(--ink-150);
  background: rgb(252 253 252 / 91%);
  backdrop-filter: blur(14px);
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.breadcrumbs,
.topbar-actions,
.save-status {
  display: flex;
  align-items: center;
}

.breadcrumbs {
  gap: 8px;
  color: var(--ink-500);
  font-size: 12px;
}

.breadcrumbs svg {
  width: 12px;
  height: 12px;
  color: var(--ink-300);
}

.breadcrumbs strong {
  color: var(--ink-700);
  font-weight: 650;
}

.topbar-actions {
  gap: 13px;
}

.topbar-reset {
  color: var(--ink-500);
  font-size: 10px;
  font-weight: 650;
}

.save-status {
  gap: 7px;
  color: var(--ink-500);
  font-size: 11px;
  font-weight: 600;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green-700);
  box-shadow: 0 0 0 3px var(--green-100);
}

.save-status.is-saving .status-dot {
  background: var(--gold-500);
  box-shadow: 0 0 0 3px var(--gold-100);
}

.environment-badge {
  padding: 4px 9px;
  border: 1px solid var(--teal-200);
  border-radius: 999px;
  color: var(--teal-700);
  background: var(--teal-50);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.02em;
}

.resume-banner {
  display: flex;
  width: min(calc(100% - 48px), var(--content-width));
  margin: 20px auto 0;
  padding: 12px 14px 12px 16px;
  border: 1px solid var(--gold-200);
  border-radius: var(--radius-md);
  color: var(--gold-700);
  background: #fffaf0;
  box-shadow: var(--shadow-xs);
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.resume-banner[hidden] {
  display: none;
}

.resume-banner strong,
.resume-banner span {
  display: inline;
  font-size: 12px;
}

.resume-banner strong {
  margin-right: 7px;
}

.icon-button {
  display: grid;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: currentColor;
  background: transparent;
  place-items: center;
}

.icon-button:hover {
  background: rgb(0 0 0 / 5%);
}

.icon-button svg {
  width: 16px;
  height: 16px;
}

.wizard-content {
  width: min(calc(100% - 48px), var(--content-width));
  margin: 0 auto;
  padding: clamp(38px, 5vw, 68px) 0 44px;
  outline: none;
  flex: 1;
}

.app-loading {
  display: flex;
  min-height: 330px;
  color: var(--ink-500);
  align-items: center;
  justify-content: center;
  gap: 15px;
}

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

.app-loading strong,
.app-loading span {
  display: block;
}

.app-loading strong {
  color: var(--ink-800);
  font-size: 14px;
}

.app-loading span {
  margin-top: 2px;
  font-size: 12px;
}

.spinner {
  width: 26px;
  height: 26px;
  border: 2px solid var(--ink-200);
  border-top-color: var(--teal-600);
  border-radius: 50%;
  animation: spin 780ms linear infinite;
}

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

.step-view {
  animation: view-in 250ms ease both;
}

@keyframes view-in {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}

.step-heading {
  max-width: 760px;
  margin-bottom: 30px;
}

.eyebrow {
  display: flex;
  margin: 0 0 9px;
  color: var(--teal-700);
  font-size: 11px;
  font-weight: 780;
  letter-spacing: 0.11em;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 19px;
  height: 1px;
  background: var(--teal-500);
  content: "";
}

.step-heading h1 {
  margin: 0;
  color: var(--ink-950);
  font-family: Iowan Old Style, Charter, Georgia, serif;
  font-size: clamp(31px, 4vw, 43px);
  font-weight: 570;
  letter-spacing: -0.025em;
  line-height: 1.12;
}

.step-heading > p:not(.eyebrow) {
  max-width: 700px;
  margin: 13px 0 0;
  color: var(--ink-600);
  font-size: 15px;
  line-height: 1.7;
}

.step-heading-compact {
  display: flex;
  max-width: none;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
}

.step-heading-compact > div:first-child {
  max-width: 740px;
}

.step-heading-compact h1 {
  font-size: clamp(29px, 3.4vw, 39px);
}

.card {
  border: 1px solid var(--ink-150);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-xs);
}

.card-header {
  display: flex;
  padding: 20px 22px;
  border-bottom: 1px solid var(--ink-100);
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.card-header h2,
.card-header h3,
.card-body h2,
.card-body h3 {
  margin: 0;
  color: var(--ink-900);
  font-size: 15px;
  font-weight: 700;
}

.card-header p {
  margin: 3px 0 0;
  color: var(--ink-500);
  font-size: 12px;
}

.card-body {
  padding: 22px;
}

.segmented-control {
  display: inline-flex;
  padding: 4px;
  border: 1px solid var(--ink-150);
  border-radius: 10px;
  background: var(--ink-100);
  gap: 3px;
}

.segmented-control label {
  position: relative;
}

.segmented-control input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.segmented-control span {
  display: block;
  min-width: 132px;
  padding: 7px 13px;
  border-radius: 7px;
  color: var(--ink-600);
  font-size: 12px;
  font-weight: 650;
  text-align: center;
  transition: all 150ms ease;
}

.segmented-control input:checked + span {
  color: var(--ink-900);
  background: var(--white);
  box-shadow: 0 1px 5px rgb(20 45 47 / 11%);
}

.segmented-control input:focus-visible + span {
  outline: 3px solid rgb(22 163 148 / 22%);
  outline-offset: 1px;
}

.customer-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.72fr);
  gap: 22px;
  align-items: start;
}

.customer-picker {
  overflow: hidden;
}

.customer-search {
  position: relative;
}

.customer-search svg,
.search-field svg {
  position: absolute;
  top: 50%;
  left: 12px;
  width: 17px;
  height: 17px;
  color: var(--ink-400);
  transform: translateY(-50%);
}

.customer-search input,
.search-field input {
  padding-left: 38px;
}

.customer-list {
  display: grid;
  max-height: 415px;
  margin: 0;
  padding: 0 8px 8px;
  overflow: auto;
  gap: 4px;
}

.customer-option {
  position: relative;
  display: grid;
  padding: 13px 14px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  grid-template-columns: 39px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  transition: border-color 140ms ease, background 140ms ease;
}

.customer-option:hover {
  background: var(--ink-50);
}

.customer-option.is-selected {
  border-color: var(--teal-200);
  background: var(--teal-50);
}

.customer-option input {
  position: absolute;
  opacity: 0;
}

.customer-option:has(input:focus-visible) {
  outline: 3px solid rgb(22 163 148 / 20%);
  outline-offset: 1px;
}

.customer-avatar {
  display: grid;
  width: 39px;
  height: 39px;
  border-radius: 10px;
  color: var(--teal-700);
  background: var(--teal-100);
  place-items: center;
  font-family: Iowan Old Style, Charter, Georgia, serif;
  font-size: 16px;
  font-weight: 650;
}

.customer-meta strong,
.customer-meta span {
  display: block;
}

.customer-meta strong {
  color: var(--ink-900);
  font-size: 13px;
  font-weight: 680;
}

.customer-meta span {
  margin-top: 2px;
  color: var(--ink-500);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
}

.customer-source-count {
  color: var(--ink-500);
  font-size: 11px;
  white-space: nowrap;
}

.customer-summary {
  position: sticky;
  top: 92px;
  padding: 24px;
  overflow: hidden;
  background:
    radial-gradient(circle at 100% 0%, rgb(17 155 140 / 10%), transparent 40%),
    var(--white);
}

.summary-monogram {
  display: grid;
  width: 53px;
  height: 53px;
  margin-bottom: 17px;
  border: 1px solid var(--teal-200);
  border-radius: 15px;
  color: var(--teal-700);
  background: var(--teal-50);
  place-items: center;
  font-family: Iowan Old Style, Charter, Georgia, serif;
  font-size: 22px;
  font-weight: 650;
}

.customer-summary h2 {
  margin: 0;
  color: var(--ink-950);
  font-size: 18px;
  font-weight: 720;
}

.customer-summary > p {
  margin: 5px 0 20px;
  color: var(--ink-500);
  font-size: 12px;
}

.summary-list {
  display: grid;
  margin: 0;
  gap: 0;
}

.summary-list > div {
  display: flex;
  padding: 10px 0;
  border-top: 1px solid var(--ink-100);
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.summary-list dt {
  color: var(--ink-500);
  font-size: 11px;
}

.summary-list dd {
  margin: 0;
  color: var(--ink-800);
  font-size: 11px;
  font-weight: 670;
  text-align: right;
}

.source-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  display: inline-flex;
  min-height: 24px;
  padding: 3px 8px;
  border: 1px solid var(--ink-150);
  border-radius: 999px;
  color: var(--ink-600);
  background: var(--ink-50);
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 650;
}

.tag-teal {
  border-color: var(--teal-200);
  color: var(--teal-700);
  background: var(--teal-50);
}

.tag-gold {
  border-color: var(--gold-200);
  color: var(--gold-700);
  background: #fffbf2;
}

.tag-red {
  border-color: #efc6c3;
  color: var(--red-700);
  background: #fff8f7;
}

.tag-purple {
  border-color: #d4cdf0;
  color: var(--purple-700);
  background: var(--purple-100);
}

.new-customer-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.new-customer-form .span-2 {
  grid-column: span 2;
}

.feature-picker {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.feature-option {
  position: relative;
  display: flex;
  min-height: 88px;
  padding: 14px;
  border: 1px solid var(--ink-150);
  border-radius: var(--radius-md);
  background: var(--white);
  flex-direction: column;
  justify-content: space-between;
  transition: all 140ms ease;
}

.feature-option:hover {
  border-color: var(--ink-300);
}

.feature-option:has(input:checked) {
  border-color: var(--teal-500);
  background: var(--teal-50);
  box-shadow: inset 0 0 0 1px var(--teal-500);
}

.feature-option input {
  position: absolute;
  top: 13px;
  right: 13px;
}

.feature-option strong {
  max-width: calc(100% - 24px);
  color: var(--ink-800);
  font-size: 12px;
}

.feature-option span {
  color: var(--ink-500);
  font-size: 10px;
}

.field {
  display: grid;
  gap: 6px;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field label,
.field > span:first-child,
.field-label {
  color: var(--ink-700);
  font-size: 11px;
  font-weight: 680;
}

.required-mark {
  color: var(--red-500);
}

.input,
.select,
.textarea {
  width: 100%;
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-sm);
  outline: none;
  color: var(--ink-900);
  background: var(--white);
  box-shadow: inset 0 1px 1px rgb(10 35 37 / 2%);
  transition: border-color 130ms ease, box-shadow 130ms ease;
}

.input,
.select {
  min-height: 42px;
  padding: 8px 11px;
}

.select {
  padding-right: 34px;
}

.textarea {
  min-height: 98px;
  padding: 10px 11px;
  resize: vertical;
}

.input::placeholder,
.textarea::placeholder {
  color: var(--ink-400);
}

.input:hover,
.select:hover,
.textarea:hover {
  border-color: var(--ink-300);
}

.input:focus,
.select:focus,
.textarea:focus {
  border-color: var(--teal-500);
  box-shadow: 0 0 0 3px rgb(22 163 148 / 13%);
}

.input[aria-invalid="true"],
.select[aria-invalid="true"],
.textarea[aria-invalid="true"] {
  border-color: var(--red-500);
  box-shadow: 0 0 0 3px rgb(209 81 81 / 10%);
}

.field-help,
.field-error {
  margin: 0;
  color: var(--ink-500);
  font-size: 10px;
  line-height: 1.5;
}

.field-error {
  color: var(--red-700);
}

.input-prefix-wrap,
.input-suffix-wrap {
  position: relative;
}

.input-prefix-wrap .input {
  padding-left: 35px;
}

.input-prefix-wrap > svg {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 11px;
  width: 16px;
  height: 16px;
  color: var(--ink-400);
  transform: translateY(-50%);
}

.secret-input-wrap {
  position: relative;
}

.secret-input-wrap .input {
  padding-right: 44px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.secret-toggle {
  position: absolute;
  top: 50%;
  right: 6px;
  display: grid;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  color: var(--ink-500);
  background: transparent;
  place-items: center;
  transform: translateY(-50%);
}

.secret-toggle:hover {
  background: var(--ink-100);
}

.secret-toggle svg {
  width: 17px;
  height: 17px;
}

.notice {
  display: flex;
  padding: 13px 15px;
  border: 1px solid var(--ink-150);
  border-radius: var(--radius-md);
  color: var(--ink-700);
  background: var(--ink-50);
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  line-height: 1.55;
}

.notice svg {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  flex: none;
}

.notice-info {
  border-color: #c7dfec;
  color: #32627d;
  background: #f2f8fb;
}

.notice-success {
  border-color: #bddfc9;
  color: var(--green-700);
  background: #f3faf5;
}

.notice-warning {
  border-color: var(--gold-200);
  color: var(--gold-700);
  background: #fffaf0;
}

.notice-error {
  border-color: #ecc3c0;
  color: var(--red-700);
  background: #fff7f6;
}

.button {
  display: inline-flex;
  min-height: 40px;
  padding: 8px 15px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  outline: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 690;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease, background 120ms ease;
}

.button:not(:disabled):hover {
  transform: translateY(-1px);
}

.button:focus-visible,
.icon-button:focus-visible,
.text-button:focus-visible,
.step-button:focus-visible {
  outline: 3px solid rgb(22 163 148 / 23%);
  outline-offset: 2px;
}

.button svg {
  width: 17px;
  height: 17px;
  stroke-width: 1.9;
}

.button-primary {
  border-color: var(--teal-700);
  color: var(--white);
  background: linear-gradient(180deg, #0b8379, #087068);
  box-shadow: 0 4px 12px rgb(8 115 107 / 17%);
}

.button-primary:not(:disabled):hover {
  background: linear-gradient(180deg, #0b8e82, #07675f);
  box-shadow: 0 6px 17px rgb(8 115 107 / 23%);
}

.button-secondary {
  border-color: var(--ink-200);
  color: var(--ink-700);
  background: var(--white);
  box-shadow: var(--shadow-xs);
}

.button-secondary:not(:disabled):hover {
  border-color: var(--ink-300);
  color: var(--ink-900);
  background: var(--ink-50);
}

.button-quiet {
  border-color: transparent;
  color: var(--teal-700);
  background: var(--teal-50);
}

.button-danger {
  border-color: var(--red-500);
  color: var(--white);
  background: var(--red-500);
}

.button-small {
  min-height: 31px;
  padding: 5px 10px;
  font-size: 10px;
}

.button.is-loading {
  pointer-events: none;
}

.button .mini-spinner {
  width: 14px;
  height: 14px;
  border: 1.8px solid rgb(255 255 255 / 40%);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

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

.connector-card {
  position: relative;
  display: flex;
  min-height: 205px;
  padding: 19px;
  border: 1px solid var(--ink-150);
  border-radius: var(--radius-lg);
  color: var(--ink-800);
  background: var(--white);
  box-shadow: var(--shadow-xs);
  flex-direction: column;
  text-align: left;
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.connector-card:hover {
  border-color: var(--ink-300);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.connector-card.is-selected {
  border-color: var(--teal-500);
  background: linear-gradient(145deg, var(--white), var(--teal-50));
  box-shadow: inset 0 0 0 1px var(--teal-500), var(--shadow-sm);
}

.connector-card.is-selected::after {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  color: var(--white);
  background: var(--teal-600);
  content: "✓";
  place-items: center;
  font-size: 12px;
  font-weight: 800;
}

.connector-icon {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 22px;
  border-radius: 11px;
  color: var(--teal-700);
  background: var(--teal-100);
  place-items: center;
}

.connector-icon svg {
  width: 22px;
  height: 22px;
}

.connector-card[data-category="open-data"] .connector-icon {
  color: var(--blue-600);
  background: var(--blue-100);
}

.connector-card[data-category="passthrough"] .connector-icon {
  color: var(--gold-700);
  background: var(--gold-100);
}

.connector-card[data-category="api"] .connector-icon {
  color: var(--purple-700);
  background: var(--purple-100);
}

.connector-card h2 {
  margin: 0;
  padding-right: 20px;
  color: var(--ink-950);
  font-size: 14px;
  font-weight: 720;
  line-height: 1.35;
}

.connector-card p {
  display: -webkit-box;
  margin: 6px 0 15px;
  overflow: hidden;
  color: var(--ink-500);
  font-size: 11px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.connector-card .tag-row {
  margin-top: auto;
}

.source-identity-card {
  display: grid;
  margin-top: 18px;
  padding: 20px 22px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
}

.parameter-layout,
.delivery-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(270px, 0.65fr);
  gap: 22px;
  align-items: start;
}

.parameter-form {
  display: grid;
  padding: 23px;
  gap: 19px;
}

.parameter-summary,
.delivery-summary {
  position: sticky;
  top: 92px;
}

.connector-mini {
  display: flex;
  padding: 19px;
  align-items: center;
  gap: 12px;
}

.connector-mini .connector-icon {
  width: 38px;
  height: 38px;
  margin: 0;
  flex: none;
}

.connector-mini strong,
.connector-mini span {
  display: block;
}

.connector-mini strong {
  color: var(--ink-900);
  font-size: 12px;
}

.connector-mini span {
  margin-top: 2px;
  color: var(--ink-500);
  font-size: 10px;
}

.security-panel {
  margin-top: 13px;
  padding: 18px;
  border-color: #b8ded7;
  background: linear-gradient(150deg, #f8fdfb, #edf8f5);
}

.security-panel h3 {
  display: flex;
  margin: 0 0 8px;
  color: var(--teal-800);
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

.security-panel h3 svg {
  width: 17px;
  height: 17px;
}

.security-panel p {
  margin: 0;
  color: var(--ink-600);
  font-size: 10px;
  line-height: 1.65;
}

.secret-reference {
  display: block;
  margin-top: 10px;
  padding: 8px 10px;
  overflow: hidden;
  border: 1px solid var(--teal-200);
  border-radius: 6px;
  color: var(--teal-800);
  background: rgb(255 255 255 / 70%);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.delivery-main {
  overflow: hidden;
}

.delivery-hero {
  display: flex;
  padding: 26px;
  border-bottom: 1px solid var(--ink-100);
  background:
    linear-gradient(130deg, rgb(216 242 237 / 45%), transparent 55%),
    var(--white);
  align-items: flex-start;
  gap: 16px;
}

.delivery-icon {
  display: grid;
  width: 49px;
  height: 49px;
  border-radius: 14px;
  color: var(--teal-700);
  background: var(--teal-100);
  place-items: center;
  flex: none;
}

.delivery-icon svg {
  width: 25px;
  height: 25px;
}

.delivery-hero h2 {
  margin: 0;
  color: var(--ink-950);
  font-size: 17px;
}

.delivery-hero p {
  margin: 6px 0 0;
  color: var(--ink-600);
  font-size: 12px;
}

.instruction-list {
  margin: 0;
  padding: 7px 26px 20px;
  counter-reset: instructions;
  list-style: none;
}

.instruction-list li {
  position: relative;
  display: grid;
  min-height: 68px;
  padding: 18px 0 18px 47px;
  border-bottom: 1px solid var(--ink-100);
  align-content: center;
  counter-increment: instructions;
}

.instruction-list li:last-child {
  border-bottom: 0;
}

.instruction-list li::before {
  position: absolute;
  top: 18px;
  left: 0;
  display: grid;
  width: 29px;
  height: 29px;
  border: 1px solid var(--ink-200);
  border-radius: 50%;
  color: var(--ink-600);
  background: var(--ink-50);
  content: counter(instructions);
  place-items: center;
  font-size: 11px;
  font-weight: 750;
}

.instruction-list strong {
  color: var(--ink-800);
  font-size: 12px;
}

.instruction-list span {
  margin-top: 3px;
  color: var(--ink-500);
  font-size: 10px;
}

.delivery-actions {
  display: flex;
  padding: 18px 26px 24px;
  border-top: 1px solid var(--ink-100);
  background: var(--ink-50);
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.delivery-actions > span {
  color: var(--ink-500);
  font-size: 10px;
}

.check-card {
  position: relative;
  display: flex;
  margin-top: 14px;
  padding: 16px;
  border: 1px solid var(--ink-150);
  border-radius: var(--radius-md);
  background: var(--white);
  align-items: flex-start;
  gap: 11px;
  transition: all 140ms ease;
}

.check-card:has(input:checked) {
  border-color: var(--teal-300, var(--teal-200));
  background: var(--teal-50);
}

.check-card input {
  width: 17px;
  height: 17px;
  margin: 2px 0 0;
  accent-color: var(--teal-700);
  flex: none;
}

.check-card strong,
.check-card span {
  display: block;
}

.check-card strong {
  color: var(--ink-800);
  font-size: 11px;
}

.check-card span {
  margin-top: 3px;
  color: var(--ink-500);
  font-size: 10px;
}

.discovery-toolbar {
  display: flex;
  margin-bottom: 14px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.snapshot-meta {
  display: flex;
  color: var(--ink-500);
  align-items: center;
  gap: 9px;
  font-size: 10px;
}

.snapshot-meta svg {
  width: 15px;
  height: 15px;
  color: var(--teal-700);
}

.discovery-empty {
  display: grid;
  min-height: 370px;
  padding: 40px;
  border: 1px dashed var(--ink-300);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at center, rgb(22 163 148 / 6%), transparent 36%),
    var(--white);
  place-items: center;
  text-align: center;
}

.empty-content {
  max-width: 450px;
}

.empty-illustration {
  position: relative;
  display: grid;
  width: 86px;
  height: 86px;
  margin: 0 auto 20px;
  border: 1px solid var(--teal-200);
  border-radius: 50%;
  color: var(--teal-700);
  background: var(--teal-50);
  place-items: center;
}

.empty-illustration::before,
.empty-illustration::after {
  position: absolute;
  border: 1px solid var(--teal-100);
  border-radius: 50%;
  content: "";
}

.empty-illustration::before { inset: -9px; }
.empty-illustration::after { inset: -18px; opacity: 0.5; }

.empty-illustration svg {
  width: 34px;
  height: 34px;
}

.empty-content h2 {
  margin: 0;
  color: var(--ink-950);
  font-family: Iowan Old Style, Charter, Georgia, serif;
  font-size: 23px;
  font-weight: 570;
}

.empty-content p {
  margin: 9px auto 20px;
  color: var(--ink-500);
  font-size: 12px;
  line-height: 1.65;
}

.discovery-progress {
  max-width: 480px;
  margin: auto;
  padding: 28px;
  text-align: center;
}

.discovery-progress .spinner {
  width: 36px;
  height: 36px;
  margin: 0 auto 17px;
}

.progress-track {
  height: 5px;
  margin-top: 19px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--ink-100);
}

.progress-track span {
  display: block;
  width: 46%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal-600), #62c7b8);
  animation: indeterminate 1.4s ease-in-out infinite;
}

@keyframes indeterminate {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(320%); }
}

.discovery-browser {
  display: grid;
  min-height: 520px;
  overflow: hidden;
  grid-template-columns: minmax(360px, 1.2fr) minmax(300px, 0.8fr);
}

.table-pane,
.column-pane {
  min-width: 0;
}

.table-pane {
  border-right: 1px solid var(--ink-150);
}

.pane-toolbar {
  display: flex;
  min-height: 65px;
  padding: 11px 15px;
  border-bottom: 1px solid var(--ink-100);
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.search-field {
  position: relative;
  min-width: 0;
  flex: 1;
}

.search-field .input {
  min-height: 38px;
  font-size: 11px;
}

.pane-tools {
  display: flex;
  gap: 5px;
  white-space: nowrap;
}

.pane-tools .text-button {
  padding: 5px;
  font-size: 10px;
}

.table-list,
.column-list {
  max-height: 510px;
  margin: 0;
  padding: 7px;
  overflow: auto;
  list-style: none;
}

.table-row {
  position: relative;
  display: grid;
  min-height: 54px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 9px;
  grid-template-columns: 24px minmax(0, 1fr) auto 18px;
  align-items: center;
  gap: 8px;
  transition: background 130ms ease, border-color 130ms ease;
}

.table-row:hover {
  background: var(--ink-50);
}

.table-row.is-active {
  border-color: var(--teal-200);
  background: var(--teal-50);
}

.table-row > input,
.column-row > input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--teal-700);
}

.table-open-button {
  position: absolute;
  inset: 0;
  z-index: 0;
  border: 0;
  border-radius: inherit;
  background: transparent;
}

.table-row > *:not(.table-open-button) {
  position: relative;
  z-index: 1;
}

.table-row input {
  pointer-events: auto;
}

.table-name strong,
.table-name span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.table-name strong {
  color: var(--ink-800);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  font-weight: 650;
}

.table-name span {
  margin-top: 2px;
  color: var(--ink-400);
  font-size: 9px;
}

.row-count {
  color: var(--ink-500);
  font-variant-numeric: tabular-nums;
  font-size: 9px;
}

.row-chevron {
  width: 14px;
  height: 14px;
  color: var(--ink-400);
}

.column-header {
  min-height: 65px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--ink-100);
}

.column-header strong,
.column-header span {
  display: block;
}

.column-header strong {
  overflow: hidden;
  color: var(--ink-900);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.column-header span {
  margin-top: 3px;
  color: var(--ink-500);
  font-size: 9px;
}

.column-row {
  display: grid;
  min-height: 43px;
  padding: 7px 9px;
  border-bottom: 1px solid var(--ink-100);
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
}

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

.column-name {
  display: flex;
  min-width: 0;
  color: var(--ink-700);
  align-items: center;
  gap: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
}

.column-name span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pk-badge {
  padding: 1px 4px;
  border-radius: 4px;
  color: var(--gold-700);
  background: var(--gold-100);
  font-family: ui-sans-serif, sans-serif;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.column-type {
  color: var(--ink-400);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 8px;
  text-transform: uppercase;
}

.pane-empty {
  display: grid;
  min-height: 350px;
  padding: 30px;
  color: var(--ink-400);
  place-items: center;
  font-size: 11px;
  text-align: center;
}

.selection-summary {
  display: flex;
  margin-top: 12px;
  padding: 10px 13px;
  border-radius: 9px;
  color: var(--ink-600);
  background: var(--ink-100);
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  font-size: 10px;
}

.selection-summary strong {
  color: var(--teal-700);
}

.relations-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 308px;
  gap: 15px;
  align-items: start;
}

.relation-canvas-card {
  overflow: hidden;
}

.canvas-toolbar {
  display: flex;
  min-height: 55px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--ink-100);
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.canvas-legend {
  display: flex;
  color: var(--ink-500);
  align-items: center;
  gap: 12px;
  font-size: 9px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.legend-line {
  width: 23px;
  height: 0;
  border-top: 2px solid var(--teal-600);
}

.legend-line.suggested {
  border-top-color: var(--gold-500);
  border-top-style: dashed;
}

.canvas-tip {
  display: flex;
  color: var(--ink-400);
  align-items: center;
  gap: 5px;
  font-size: 9px;
}

.canvas-tip svg {
  width: 14px;
  height: 14px;
}

.relation-canvas-wrap {
  position: relative;
  min-height: 565px;
  overflow: auto;
  background-color: #f9fbfa;
  background-image: radial-gradient(circle, #cfd9d7 0.8px, transparent 0.9px);
  background-size: 18px 18px;
}

.relation-canvas {
  width: 100%;
  min-width: 760px;
  min-height: 565px;
  touch-action: none;
  user-select: none;
}

.relation-canvas .node-card {
  cursor: grab;
}

.relation-canvas .node-card:active {
  cursor: grabbing;
}

.relation-canvas .node-shadow {
  fill: rgb(13 48 50 / 8%);
}

.relation-canvas .node-body {
  fill: var(--white);
  stroke: #bdcac8;
  stroke-width: 1;
}

.relation-canvas .node-card:hover .node-body,
.relation-canvas .node-card:focus .node-body {
  stroke: var(--teal-500);
  stroke-width: 1.5;
}

.relation-canvas .node-header {
  fill: #edf7f4;
  stroke: none;
}

.relation-canvas .node-title {
  fill: var(--ink-900);
  stroke: none;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  font-weight: 700;
}

.relation-canvas .node-source {
  fill: var(--teal-700);
  stroke: none;
  font-family: ui-sans-serif, sans-serif;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.relation-canvas .column-label {
  fill: var(--ink-700);
  stroke: none;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 8.5px;
}

.relation-canvas .column-pk {
  fill: var(--gold-700);
  stroke: none;
  font-family: ui-sans-serif, sans-serif;
  font-size: 6px;
  font-weight: 800;
}

.relation-canvas .node-divider {
  stroke: var(--ink-100);
  stroke-width: 1;
}

.relation-canvas .edge {
  fill: none;
  stroke: var(--teal-600);
  stroke-width: 2;
  pointer-events: none;
}

.relation-canvas .edge.suggested {
  stroke: var(--gold-500);
  stroke-dasharray: 6 5;
}

.relation-canvas .edge.manual {
  stroke: var(--purple-700);
}

.relation-canvas .edge.is-selected {
  stroke-width: 3;
  filter: drop-shadow(0 1px 2px rgb(0 0 0 / 16%));
}

.relation-canvas .edge-hit {
  fill: none;
  stroke: transparent;
  stroke-width: 14;
  cursor: pointer;
  pointer-events: stroke;
}

.relation-canvas .edge-label-bg {
  fill: var(--white);
  stroke: var(--ink-150);
  pointer-events: none;
}

.relation-canvas .edge-label {
  fill: var(--ink-600);
  stroke: none;
  font-family: ui-sans-serif, sans-serif;
  font-size: 7px;
  font-weight: 700;
  pointer-events: none;
}

.canvas-empty {
  display: grid;
  min-height: 565px;
  padding: 35px;
  color: var(--ink-500);
  place-items: center;
  text-align: center;
}

.relation-sidebar {
  display: grid;
  gap: 13px;
}

.relation-sidebar .card {
  overflow: hidden;
}

.relation-sidebar .card-header {
  padding: 15px 17px;
}

.relation-sidebar .card-body {
  padding: 16px;
}

.suggestion-count {
  display: grid;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  color: var(--gold-700);
  background: var(--gold-100);
  place-items: center;
  font-size: 9px;
  font-weight: 800;
}

.suggestion-list {
  display: grid;
  max-height: 270px;
  padding: 7px;
  overflow: auto;
  gap: 6px;
}

.suggestion-item {
  padding: 11px;
  border: 1px solid var(--ink-150);
  border-radius: 8px;
  background: var(--ink-50);
}

.suggestion-path {
  display: grid;
  color: var(--ink-700);
  gap: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 8px;
}

.suggestion-arrow {
  color: var(--ink-400);
}

.suggestion-actions {
  display: flex;
  margin-top: 9px;
  gap: 6px;
}

.manual-relation-form {
  display: grid;
  gap: 11px;
}

.manual-relation-form .field {
  gap: 4px;
}

.manual-relation-form .select {
  min-height: 35px;
  padding-top: 6px;
  padding-bottom: 6px;
  font-size: 10px;
}

.relation-detail {
  padding: 14px;
}

.relation-detail-path {
  display: grid;
  padding: 10px;
  border-radius: 7px;
  color: var(--ink-700);
  background: var(--ink-50);
  gap: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 8px;
}

.review-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 20px;
  align-items: start;
}

.review-main,
.review-sidebar {
  display: grid;
  gap: 14px;
}

.review-sidebar {
  position: sticky;
  top: 92px;
}

.review-loading {
  display: flex;
  min-height: 270px;
  padding: 30px;
  color: var(--ink-500);
  align-items: center;
  justify-content: center;
  gap: 13px;
  font-size: 12px;
}

.review-loading .spinner {
  width: 23px;
  height: 23px;
}

.file-list {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.file-item {
  border-bottom: 1px solid var(--ink-100);
}

.file-item:last-child {
  border-bottom: 0;
}

.file-button {
  display: grid;
  width: 100%;
  min-height: 58px;
  padding: 11px 16px;
  border: 0;
  color: var(--ink-700);
  background: var(--white);
  grid-template-columns: 29px minmax(0, 1fr) auto 15px;
  align-items: center;
  gap: 9px;
  text-align: left;
}

.file-button:hover {
  background: var(--ink-50);
}

.file-icon {
  display: grid;
  width: 29px;
  height: 29px;
  border-radius: 7px;
  color: var(--teal-700);
  background: var(--teal-100);
  place-items: center;
}

.file-icon svg {
  width: 15px;
  height: 15px;
}

.file-path {
  min-width: 0;
}

.file-path strong,
.file-path span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-path strong {
  color: var(--ink-800);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  font-weight: 650;
}

.file-path span {
  margin-top: 2px;
  color: var(--ink-400);
  font-size: 9px;
}

.operation-badge {
  min-width: 65px;
  padding: 3px 7px;
  border-radius: 999px;
  color: var(--teal-700);
  background: var(--teal-100);
  font-size: 8px;
  font-weight: 780;
  text-align: center;
  text-transform: uppercase;
}

.operation-badge.modify {
  color: var(--gold-700);
  background: var(--gold-100);
}

.operation-badge.unchanged {
  color: var(--ink-500);
  background: var(--ink-100);
}

.file-button > svg {
  width: 14px;
  height: 14px;
  color: var(--ink-400);
  transition: transform 140ms ease;
}

.file-item.is-open .file-button > svg {
  transform: rotate(90deg);
}

.diff-panel {
  display: none;
  max-height: 380px;
  margin: 0;
  padding: 13px 16px;
  overflow: auto;
  border-top: 1px solid var(--ink-100);
  color: #d6e1e0;
  background: #152f34;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
  line-height: 1.65;
  white-space: pre;
}

.file-item.is-open .diff-panel {
  display: block;
}

.plan-summary {
  padding: 20px;
}

.plan-summary h2 {
  margin: 0 0 13px;
  color: var(--ink-950);
  font-size: 14px;
}

.plan-route {
  position: relative;
  display: grid;
  margin: 0;
  padding: 0 0 0 23px;
  gap: 17px;
  list-style: none;
}

.plan-route::before {
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 7px;
  width: 1px;
  background: var(--ink-200);
  content: "";
}

.plan-route li {
  position: relative;
}

.plan-route li::before {
  position: absolute;
  top: 5px;
  left: -20px;
  width: 8px;
  height: 8px;
  border: 2px solid var(--white);
  border-radius: 50%;
  background: var(--teal-500);
  box-shadow: 0 0 0 1px var(--teal-300, var(--teal-200));
  content: "";
}

.plan-route strong,
.plan-route span {
  display: block;
}

.plan-route strong {
  color: var(--ink-800);
  font-size: 11px;
}

.plan-route span {
  margin-top: 2px;
  color: var(--ink-500);
  font-size: 9px;
}

.validation-list {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 7px;
  list-style: none;
}

.validation-item {
  display: flex;
  color: var(--ink-600);
  align-items: flex-start;
  gap: 8px;
  font-size: 10px;
}

.validation-item svg {
  width: 15px;
  height: 15px;
  margin-top: 1px;
  color: var(--green-700);
  flex: none;
}

.validation-item.error svg {
  color: var(--red-500);
}

.activation-card {
  padding: 20px;
  border-color: #b6dcd5;
  background:
    radial-gradient(circle at 100% 0%, rgb(22 163 148 / 11%), transparent 39%),
    var(--white);
}

.activation-card h2 {
  margin: 0;
  color: var(--ink-950);
  font-size: 15px;
}

.activation-card > p {
  margin: 7px 0 15px;
  color: var(--ink-500);
  font-size: 10px;
  line-height: 1.6;
}

.activation-card .button {
  width: 100%;
}

.force-control {
  display: flex;
  margin: 11px 0;
  color: var(--ink-600);
  align-items: flex-start;
  gap: 8px;
  font-size: 9px;
}

.force-control input {
  margin-top: 1px;
  accent-color: var(--red-500);
}

.activation-success {
  overflow: hidden;
  border-color: #add9bc;
}

.success-hero {
  display: flex;
  padding: 23px;
  color: var(--green-700);
  background: linear-gradient(130deg, #edf9f1, #fafffb);
  align-items: center;
  gap: 15px;
}

.success-icon {
  display: grid;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  color: var(--white);
  background: var(--green-700);
  place-items: center;
  box-shadow: 0 0 0 7px rgb(40 116 78 / 8%);
  flex: none;
}

.success-icon svg {
  width: 23px;
  height: 23px;
  stroke-width: 2.2;
}

.success-hero h2,
.success-hero p {
  margin: 0;
}

.success-hero h2 {
  color: #205f40;
  font-size: 16px;
}

.success-hero p {
  margin-top: 4px;
  color: #56836a;
  font-size: 10px;
}

.status-timeline {
  display: grid;
  margin: 0;
  padding: 17px 22px;
  gap: 0;
  list-style: none;
}

.status-timeline li {
  display: grid;
  min-height: 42px;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  color: var(--ink-600);
  font-size: 10px;
}

.timeline-dot {
  display: grid;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  color: var(--white);
  background: var(--green-700);
  place-items: center;
}

.timeline-dot svg {
  width: 11px;
  height: 11px;
  stroke-width: 2.4;
}

.status-timeline time {
  color: var(--ink-400);
  font-size: 8px;
}

.wizard-footer {
  position: sticky;
  z-index: 16;
  bottom: 0;
  display: flex;
  min-height: 76px;
  padding: 12px clamp(24px, 4vw, 58px);
  border-top: 1px solid var(--ink-150);
  background: rgb(252 253 252 / 93%);
  box-shadow: 0 -5px 22px rgb(14 40 42 / 4%);
  backdrop-filter: blur(14px);
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.wizard-footer[hidden] {
  display: none;
}

.footer-context span {
  display: block;
}

.footer-context span:first-child {
  color: var(--ink-700);
  font-size: 11px;
  font-weight: 700;
}

.footer-context span:last-child {
  margin-top: 2px;
  color: var(--ink-500);
  font-size: 9px;
}

.footer-actions {
  display: flex;
  gap: 9px;
}

.dialog {
  width: min(calc(100% - 32px), 430px);
  padding: 0;
  border: 0;
  border-radius: var(--radius-xl);
  color: var(--ink-900);
  background: var(--white);
  box-shadow: var(--shadow-lg);
}

.dialog::backdrop {
  background: rgb(8 28 31 / 54%);
  backdrop-filter: blur(3px);
}

.dialog form {
  padding: 28px;
  text-align: center;
}

.dialog-icon {
  display: grid;
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  border-radius: 50%;
  color: var(--teal-700);
  background: var(--teal-100);
  place-items: center;
}

.dialog-icon svg {
  width: 26px;
  height: 26px;
}

.dialog h2 {
  margin: 0;
  color: var(--ink-950);
  font-family: Iowan Old Style, Charter, Georgia, serif;
  font-size: 23px;
  font-weight: 600;
}

.dialog p {
  margin: 9px 0 22px;
  color: var(--ink-600);
  font-size: 12px;
  line-height: 1.65;
}

.dialog-actions {
  display: flex;
  justify-content: center;
  gap: 9px;
}

.toast-region {
  position: fixed;
  z-index: 100;
  right: 22px;
  bottom: 95px;
  display: grid;
  width: min(calc(100% - 44px), 370px);
  gap: 9px;
  pointer-events: none;
}

.toast {
  display: grid;
  padding: 13px 14px;
  border: 1px solid var(--ink-700);
  border-radius: var(--radius-md);
  color: #e9f0ef;
  background: #18363b;
  box-shadow: var(--shadow-md);
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  gap: 9px;
  font-size: 11px;
  animation: toast-in 200ms ease both;
  pointer-events: auto;
}

.toast svg {
  width: 18px;
  height: 18px;
  color: #78d0c3;
}

.toast.error svg {
  color: #f09b94;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.error-state {
  max-width: 590px;
  margin: 60px auto;
  padding: 36px;
  text-align: center;
}

.error-state .empty-illustration {
  color: var(--red-700);
  border-color: #efc6c3;
  background: var(--red-100);
}

.error-state h1 {
  margin: 0;
  color: var(--ink-950);
  font-family: Iowan Old Style, Charter, Georgia, serif;
  font-size: 28px;
}

.error-state p {
  margin: 10px 0 20px;
  color: var(--ink-600);
  font-size: 12px;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  border: 0 !important;
  white-space: nowrap !important;
}

@media (max-width: 1080px) {
  :root { --sidebar-width: 248px; }

  .sidebar { padding-inline: 16px; }

  .step-label span { display: none; }

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

  .relations-layout,
  .review-layout { grid-template-columns: minmax(0, 1fr); }

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

  .review-sidebar {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .app-shell {
    display: block;
  }

  .sidebar {
    position: sticky;
    width: 100%;
    height: auto;
    min-height: 0;
    padding: 13px 17px 10px;
    overflow: visible;
  }

  .sidebar::after,
  .sidebar-footer,
  .brand-subtitle {
    display: none;
  }

  .brand {
    padding: 0 3px 10px;
    border: 0;
  }

  .brand-mark {
    width: 31px;
    height: 31px;
    border-radius: 9px;
  }

  .brand-name {
    font-size: 20px;
  }

  .step-navigation {
    padding: 0;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .step-navigation::-webkit-scrollbar { display: none; }

  .stepper {
    display: flex;
    width: max-content;
    gap: 3px;
  }

  .step-button {
    display: flex;
    width: auto;
    min-width: 105px;
    min-height: 39px;
    padding: 5px 8px;
    grid-template-columns: none;
  }

  .step-button[aria-current="step"] {
    box-shadow: inset 0 -2px #47baaa;
  }

  .step-number {
    width: 25px;
    height: 25px;
    font-size: 10px;
  }

  .step-label strong { font-size: 11px; }
  .step-chevron { display: none; }

  .topbar { top: 93px; min-height: 54px; }

  .customer-layout,
  .parameter-layout,
  .delivery-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .customer-summary,
  .parameter-summary,
  .delivery-summary,
  .review-sidebar {
    position: static;
  }

  .discovery-browser {
    grid-template-columns: minmax(0, 1fr);
  }

  .table-pane {
    border-right: 0;
    border-bottom: 1px solid var(--ink-150);
  }

  .table-list,
  .column-list { max-height: 390px; }
}

@media (max-width: 600px) {
  .topbar {
    top: 93px;
    padding-inline: 16px;
  }

  .breadcrumbs span,
  .breadcrumbs svg,
  .save-status {
    display: none;
  }

  .wizard-content {
    width: min(calc(100% - 28px), var(--content-width));
    padding-top: 34px;
  }

  .resume-banner {
    width: calc(100% - 28px);
    margin-top: 14px;
  }

  .step-heading-compact {
    display: block;
  }

  .step-heading-compact > :last-child {
    margin-top: 15px;
  }

  .segmented-control {
    display: grid;
    width: 100%;
    grid-template-columns: 1fr 1fr;
  }

  .segmented-control span {
    min-width: 0;
  }

  .new-customer-form,
  .field-row,
  .source-identity-card,
  .feature-picker,
  .relation-sidebar,
  .review-sidebar {
    grid-template-columns: minmax(0, 1fr);
  }

  .new-customer-form .span-2 {
    grid-column: auto;
  }

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

  .connector-card {
    min-height: 156px;
  }

  .connector-icon {
    margin-bottom: 15px;
  }

  .discovery-empty { padding: 28px 18px; }

  .discovery-browser { min-height: 0; }

  .pane-toolbar {
    display: grid;
  }

  .pane-tools { justify-content: flex-end; }

  .row-count { display: none; }

  .relation-canvas-wrap,
  .relation-canvas { min-height: 500px; }

  .canvas-toolbar { align-items: flex-start; flex-direction: column; }

  .wizard-footer {
    min-height: 68px;
    padding: 10px 14px;
  }

  .footer-context { display: none; }

  .footer-actions {
    width: 100%;
    justify-content: space-between;
  }

  .footer-actions .button {
    min-width: 118px;
  }

  .delivery-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .delivery-actions .button { width: 100%; }

  .file-button {
    grid-template-columns: 29px minmax(0, 1fr) 14px;
  }

  .operation-badge { display: none; }

  .toast-region {
    right: 14px;
    bottom: 82px;
    width: calc(100% - 28px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* --- Klant-overzicht (view-switcher + detailtabellen) --------------------- */
.view-switcher {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
}
.view-switch-button {
  flex: 1;
  padding: 8px 10px;
  border: 1px solid var(--ink-200);
  background: var(--white);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-600);
  cursor: pointer;
}
.view-switch-button.is-active {
  background: var(--teal-600);
  border-color: var(--teal-600);
  color: var(--white);
}
.client-card:hover {
  border-color: var(--teal-500);
}
.detail-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.detail-table th {
  text-align: left;
  color: var(--ink-500);
  font-weight: 600;
  padding: 4px 10px 4px 0;
  border-bottom: 1px solid var(--ink-150);
}
.detail-table td {
  padding: 5px 10px 5px 0;
  border-bottom: 1px solid var(--ink-100);
  color: var(--ink-800);
  vertical-align: top;
}
