.project-service-filter{max-width:16rem;margin:0 0 1rem}
.service-row{display:grid;grid-template-columns:minmax(6rem,1fr) repeat(3,auto);align-items:center;gap:.75rem;padding:.65rem 0;border-bottom:1px solid var(--select-form-line)}
.service-row:last-child{border-bottom:0}
.service-row small{display:block}

@media(max-width:550px){.service-row{grid-template-columns:repeat(2,minmax(0,1fr))}.service-row button{min-height:44px}}

/* The viewport centers the shell; only the fields scroll when space is tight. */
body.select-admin .select-ui.select-ui-dialog:has(.project-wizard) {
  --wizard-sheet: #202124;
  --wizard-field: #18191c;
  --wizard-text: #f4f3f1;
  --wizard-secondary: #b9b8bf;
  --wizard-rule: #414146;
  --wizard-edge: #56565d;
  --wizard-ink: var(--select-accent);
  --select-form-field: var(--wizard-field);
  --select-form-line: var(--wizard-edge);
  --select-form-text: var(--wizard-text);
  --select-form-muted: var(--wizard-secondary);
  --wizard-gutter: clamp(18px, 4vw, 30px);
  position: fixed;
  inset: 0;
  margin: auto;
  translate: none;
  transform: none;
  width: min(576px, calc(100% - 32px)) !important;
  height: fit-content;
  max-height: calc(100dvh - 24px);
  display: block;
  border: 1px solid var(--wizard-rule) !important;
  border-radius: 18px;
  background: var(--wizard-sheet) !important;
  color: var(--wizard-text) !important;
  box-shadow: 0 20px 64px rgb(0 0 0 / .32) !important;
  animation: none !important;
  transition: none !important;
}
html[data-select-tone="clean"] body.select-admin .select-ui.select-ui-dialog:has(.project-wizard) {
  --wizard-sheet: #fcfbf9;
  --wizard-field: #fff;
  --wizard-text: #232329;
  --wizard-secondary: #5b5a62;
  --wizard-rule: #dedce0;
  --wizard-edge: #a39fa7;
  --wizard-ink: var(--select-accent-strong);
}
body.select-admin .project-wizard {
  max-height: calc(100dvh - 28px);
  font-family: Manrope, sans-serif;
  color: var(--wizard-text);
}
body.select-admin .project-wizard .project-editor-header {
  position: relative;
  display: grid;
  place-items: center;
  grid-template-columns: minmax(0,1fr);
  justify-content: center;
  padding: 23px var(--wizard-gutter) 17px;
  border: 0;
}
body.select-admin .project-wizard .project-editor-header h2 {
  margin: 0;
  font-size: clamp(21px, 2.2vw, 26px);
  font-weight: 650;
  letter-spacing: -.032em;
  line-height: 1.25;
}
.project-wizard .project-editor-header h2:focus { outline: none }
body.select-admin .project-wizard .project-editor-header .icon-button {
  position: absolute;
  inset-inline-end: 12px;
  inset-block-start: 50%;
  transform: translateY(-50%);
  width: 40px; height: 40px;
  display: grid; place-items: center;
  color: var(--wizard-secondary); background: transparent !important;
}
.project-wizard .wizard-steps {
  flex: none;
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 5px;
  padding: 0 var(--wizard-gutter);
  margin: 0;
  list-style: none;
}
.project-wizard .wizard-steps li {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: .34em;
  padding: 6px 0 11px;
  border-bottom: 2px solid var(--wizard-rule);
  color: var(--wizard-secondary);
  font-size: 12px;
  line-height: 1.3;
}
.wizard-steps .step-index {font-size: .83em; font-variant-numeric: tabular-nums}
.project-wizard .wizard-steps [aria-current],.project-wizard .wizard-steps .is-done {border-color:var(--wizard-ink)}
.project-wizard .wizard-steps [aria-current] {color:var(--wizard-text);font-weight:700}
.project-wizard .wizard-steps [aria-current] .step-index {color:var(--wizard-ink)}
body.select-admin .project-wizard .wizard-body {
  display: grid;
  align-content: start;
  gap: 15px;
  padding: 22px var(--wizard-gutter) 16px;
  scrollbar-gutter: auto;
}
.project-wizard .wizard-client,.project-wizard .wizard-service {display:grid;gap:12px}
.project-wizard .wizard-client {border-top:1px solid var(--wizard-rule);padding-top:16px}
.wizard-client-head,.wizard-inline {display:flex;align-items:center;justify-content:space-between;gap:12px}
.wizard-inline .form-field {flex:1;min-width:0}
.wizard-inline button {align-self:end}
body.select-admin .project-wizard h3 {margin:0;font-size:16px;font-weight:650;letter-spacing:-.016em}
.project-wizard .wizard-contacts {display:grid;grid-template-columns: 1fr 1fr;gap:14px}
body.select-admin .project-wizard .form-field,.project-wizard .wizard-phone-field {
  display:grid;min-width:0;gap:6px;align-content:start;margin:0;
  color:var(--wizard-text);font-size:12px;font-weight:600;line-height:1.45;
}
body.select-admin .select-ui.select-ui-dialog .project-wizard :is(input:not([type="checkbox"]):not([type="radio"]),select) {
  background:var(--wizard-field) !important;
  color:var(--wizard-text) !important;
  border:1px solid var(--wizard-edge) !important;
  border-radius:8px;
  min-height:42px;font-size:14px;font-weight:450;padding:9px 12px;
}
body.select-admin .project-wizard input::placeholder {color:var(--wizard-secondary)}
body.select-admin .select-ui.select-ui-dialog .project-wizard :is(input:not([type="checkbox"]),select):focus-visible {
  border-color:var(--wizard-ink) !important;
  outline:1px solid var(--wizard-ink) !important;outline-offset:0;
}
.wizard-phone {display:flex;align-items:stretch;border:1px solid var(--wizard-edge);border-radius:8px;background:var(--wizard-field);min-height:42px}
.wizard-dial {position:relative;display:flex;align-items:center;gap:5px;flex:none;padding-inline:9px;font-size:12px;font-weight:550;color:var(--wizard-text)}
.wizard-dial::after {content:"";width:5px;height:5px;border:solid currentColor;border-width:0 1px 1px 0;transform:translateY(-2px) rotate(45deg)}
body.select-admin .select-ui.select-ui-dialog .project-wizard .wizard-dial select {position:absolute;inset:0;opacity:0;height:100%;width:100%;cursor:pointer}
body.select-admin .select-ui.select-ui-dialog .project-wizard .wizard-phone input[type="tel"] {
  flex:1;min-width:0;border:0 !important;background:transparent !important;min-height:40px;padding-inline:8px;
}
.wizard-phone:focus-within {outline:2px solid var(--wizard-ink);outline-offset:-1px}
.wizard-dial:focus-within {text-decoration:underline;text-underline-offset:3px}
body.select-admin .select-ui.select-ui-dialog .project-wizard .wizard-phone input:focus-visible {outline:0 !important}
body.select-admin .project-wizard .link-button {
  justify-self:start;min-height:34px;margin:0;padding:3px 1px;
  background:transparent !important;border:0;box-shadow:none;
  color:var(--wizard-ink);font-size:13px;font-weight:600;text-decoration:none;
}
body.select-admin .project-wizard .link-button:hover {text-decoration:underline;text-underline-offset:.22em}
.wizard-name {min-width:0}
.wizard-options {display:grid;max-height:11rem;overflow:auto;border:1px solid var(--wizard-edge);background:var(--wizard-field);border-radius:8px;margin-top:6px}
.project-wizard [hidden] {display:none !important}
.wizard-options button {display:grid;gap:2px;text-align:left;background:transparent;color:var(--wizard-text);border:0;padding:9px 12px;min-height:40px}
.wizard-options button:hover,.wizard-options [aria-selected=true] {background:color-mix(in srgb,var(--wizard-ink) 12%,transparent)}
.wizard-options small,.wizard-drop span,.project-wizard .hint {color:var(--wizard-secondary)}
.wizard-toggle {display:flex;align-items:center;gap:10px;min-height:36px;cursor:pointer}
body.select-admin .project-wizard .wizard-toggle input {width:17px;min-height:17px;height:17px;margin:0;flex:none;accent-color:var(--select-accent-strong)}
.wizard-drop {display:grid;place-items:center;align-content:center;gap:8px;width:100%;min-height:140px}
.project-wizard>.form-feedback {margin:0 var(--wizard-gutter) 8px}
body.select-admin .project-wizard .project-editor-footer {
  flex:none;display:flex;align-items:center;justify-content:space-between;
  background:transparent;border-top:1px solid var(--wizard-rule);padding:13px var(--wizard-gutter);gap:12px;margin:0;
}
body.select-admin .project-wizard .project-editor-footer .ghost-button {color:var(--wizard-secondary);background:transparent;border:0;padding-inline:0}
body.select-admin .project-wizard .project-editor-footer .primary-button {flex:0 0 auto;padding-inline:22px;min-height:40px;border-radius:8px}
@media(max-width:560px){
  body.select-admin .select-ui.select-ui-dialog:has(.project-wizard){width:min(440px,calc(100% - 20px)) !important}
  .project-wizard .wizard-steps li{font-size:11px;flex-direction:column;align-items:center;gap:3px}
  .project-wizard .wizard-contacts,.project-wizard .field-grid{grid-template-columns:minmax(0,1fr);gap:12px}
  body.select-admin .select-ui.select-ui-dialog .project-wizard :is(input:not([type="checkbox"]),select){font-size:16px}
  body.select-admin .project-wizard .project-editor-header{padding-top:17px;padding-bottom:12px}
  body.select-admin .project-wizard .wizard-body{padding-block:16px 12px;gap:12px}
  body.select-admin .project-wizard .link-button,body.select-admin .project-wizard .project-editor-footer button{min-height:44px}
}
@media(prefers-reduced-motion:no-preference){
  .project-wizard .wizard-body{animation:wizard-arrive .14s ease-out}
  @keyframes wizard-arrive{from{opacity:.85}to{opacity:1}}
}

body.select-admin [data-slot="dialog-overlay"]:has(+ [role="dialog"] .project-wizard) {
  background: rgb(10 11 14 / .55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
