*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  color-scheme: light dark;
  --bg: #f0f0f0;
  --card: #ffffff;
  --text: #202020;
  --text-secondary: #666666;
  --border: #0000001a;
  --control: #f0f0f0;
  --inverse: #000000;
  --inverse-text: #ffffff;
  --floating: #ffffff;
  --floating-outline: transparent;
  --danger: #d73737;
  --success: #14834a;
  --warning: #956500;
  --floating-capsule-shadow: 0 3px 10px #0000000A, 0 12px 32px #00000014;
  --shadow: var(--floating-capsule-shadow);
  --floating-nav-font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --floating-nav-font-size: .8rem;
  --floating-nav-font-weight: 400;
  --floating-nav-line-height: 1;
  --floating-nav-letter-spacing: 0;
  --floating-nav-hover-duration: 200ms;
  --floating-nav-idle-color: #4D4D4D;
  --floating-nav-hover-color: #202020;
  --floating-nav-active-color: #FFFFFF;
  --dialog-title-size: clamp(1.7rem, 6vw, 2.35rem);
  --dialog-title-weight: 600;
  --dialog-title-line-height: 1;
  --dialog-title-letter-spacing: -.035em;
  --dialog-copy-size: 1rem;
  --dialog-copy-weight: 400;
  --dialog-copy-line-height: 1.45;
  --page-max: 1180px;
  --content-max: 720px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --card: #181818;
    --text: #ffffff;
    --text-secondary: #a7a7a7;
    --floating-nav-idle-color: #BFBFBF;
    --floating-nav-hover-color: #FFFFFF;
    --floating-nav-active-color: #000000;
    --border: #ffffff1a;
    --control: #262626;
    --inverse: #ffffff;
    --inverse-text: #000000;
    --floating: #383838;
    --floating-outline: #ffffff1a;
    --danger: #d73737;
    --success: #14834a;
    --warning: #956500;
    --floating-capsule-shadow: 0 3px 10px #0000000A, 0 12px 32px #00000014;
    --shadow: var(--floating-capsule-shadow);
  }
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f0f0f0;
  --card: #ffffff;
  --text: #202020;
  --text-secondary: #666666;
  --floating-nav-idle-color: #4D4D4D;
  --floating-nav-hover-color: #202020;
  --floating-nav-active-color: #FFFFFF;
  --border: #0000001a;
  --control: #f0f0f0;
  --inverse: #000000;
  --inverse-text: #ffffff;
  --floating: #ffffff;
  --floating-outline: transparent;
  --danger: #d73737;
  --success: #14834a;
  --warning: #956500;
  --floating-capsule-shadow: 0 3px 10px #0000000A, 0 12px 32px #00000014;
  --shadow: var(--floating-capsule-shadow);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #000000;
  --card: #181818;
  --text: #ffffff;
  --text-secondary: #a7a7a7;
  --floating-nav-idle-color: #BFBFBF;
  --floating-nav-hover-color: #FFFFFF;
  --floating-nav-active-color: #000000;
  --border: #ffffff1a;
  --control: #262626;
  --inverse: #ffffff;
  --inverse-text: #000000;
  --floating: #383838;
  --floating-outline: #ffffff1a;
  --danger: #d73737;
  --success: #14834a;
  --warning: #956500;
  --floating-capsule-shadow: 0 3px 10px #0000000A, 0 12px 32px #00000014;
  --shadow: var(--floating-capsule-shadow);
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  -webkit-text-size-adjust: 100%;
}

button,
input {
  font: inherit;
}

button,
a,
label {
  -webkit-tap-highlight-color: transparent;
}

button,
a {
  color: inherit;
}

button {
  border: 0;
}

button:focus-visible,
a:focus-visible {
  outline: 0;
  outline-offset: 0;
}

h1[tabindex="-1"]:focus,
h2[tabindex="-1"]:focus {
  outline: none;
}

[hidden] {
  display: none !important;
}

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

.app-loading {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: var(--bg);
}

.spinner {
  display: inline-block;
  width: 22px;
  height: 22px;
  border: 2px solid color-mix(in srgb, var(--text) 22%, transparent);
  border-top-color: var(--text);
  border-radius: 999px;
  animation: spin .72s linear infinite;
}

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

.login-screen {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: calc(32px + var(--safe-top)) calc(16px + var(--safe-right)) calc(32px + var(--safe-bottom)) calc(16px + var(--safe-left));
}

.login-panel {
  width: min(100%, 430px);
}

.login-panel h1 {
  font-size: clamp(2rem, 6vw, 2.65rem);
  font-weight: 600;
  letter-spacing: -.045em;
  line-height: 1.02;
}

.login-form {
  margin-top: 32px;
  display: grid;
  gap: 12px;
}

.field-card,
.form-card,
.settings-card,
.summary-card {
  border-radius: 8px;
  background: var(--card);
}

.field-card {
  position: relative;
  min-height: 68px;
  padding: 10px 14px 9px;
  outline: 2px solid transparent;
  outline-offset: -2px;
  transition: outline-color .18s ease;
}

.field-card label,
.control label {
  display: block;
  color: var(--text-secondary);
  font-size: .75rem;
  font-weight: 500;
  line-height: 1.3;
}

.field-card input,
.control input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  caret-color: var(--text);
  font-size: max(1rem, 16px);
  font-weight: 400;
}

.field-card input {
  height: 32px;
  margin-top: 2px;
}

input::placeholder {
  color: color-mix(in srgb, var(--text-secondary) 66%, transparent);
  opacity: 1;
}

.password-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36px;
  align-items: center;
  gap: 4px;
}

.field-icon-button {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
}

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

.field-icon-button .icon-eye-off,
.field-icon-button[aria-pressed="true"] .icon-eye {
  display: none;
}

.field-icon-button[aria-pressed="true"] .icon-eye-off {
  display: block;
}

.form-message {
  min-height: 0;
  color: var(--danger);
  font-size: .85rem;
  line-height: 1.4;
}

.form-message:empty {
  display: none;
}

.primary-button,
.secondary-button {
  min-height: 48px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 4px;
  text-decoration: none;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity .18s ease, background .18s ease;
}

.primary-button {
  background: var(--inverse);
  color: var(--inverse-text);
}

.secondary-button {
  background: var(--card);
  color: var(--text);
}

.primary-button:disabled,
.secondary-button:disabled {
  opacity: .45;
  cursor: default;
}

.primary-button:not(:disabled):active,
.secondary-button:not(:disabled):active {
  transform: none;
}

.login-submit {
  width: 100%;
  margin-top: 8px;
}

.mfa-copy {
  margin-bottom: 6px;
  color: var(--text-secondary);
  font-size: .9rem;
  line-height: 1.5;
}

.mfa-enrollment {
  padding: 16px;
  border-radius: 8px;
  background: var(--card);
}

.mfa-qr-wrap {
  width: min(100%, 220px);
  aspect-ratio: 1;
  margin: 0 auto;
  padding: 12px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #ffffff;
}

.mfa-qr-wrap img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.mfa-uri-link {
  min-height: 42px;
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  background: var(--control);
  font-size: .82rem;
  font-weight: 600;
  text-decoration: none;
}

.mfa-manual {
  margin-top: 12px;
  color: var(--text-secondary);
  font-size: .75rem;
  line-height: 1.45;
}

.mfa-manual summary {
  cursor: pointer;
}

.mfa-manual code {
  margin-top: 8px;
  padding: 10px;
  display: block;
  overflow-wrap: anywhere;
  border-radius: 4px;
  background: var(--control);
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  user-select: text;
}

.mfa-actions {
  margin-top: 8px;
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 8px;
}

.button-spinner {
  display: none;
  width: 19px;
  height: 19px;
  border-color: color-mix(in srgb, var(--inverse-text) 28%, transparent);
  border-top-color: var(--inverse-text);
}

.is-loading .button-label {
  display: none;
}

.is-loading .action-button-icon {
  display: none;
}

.is-loading .button-spinner {
  display: inline-block;
}

.platform-shell {
  min-height: 100vh;
  min-height: 100dvh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: calc(16px + var(--safe-top)) calc(16px + var(--safe-right)) 12px calc(16px + var(--safe-left));
  pointer-events: none;
}

.topbar::before {
  content: "";
  position: absolute;
  inset: 0 0 12px;
  z-index: -1;
  background: linear-gradient(to bottom, var(--bg) 0%, transparent 100%);
  pointer-events: none;
}

.topbar-inner {
  width: min(100%, var(--page-max));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.floating-capsule {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  outline: 1px solid var(--floating-outline);
  outline-offset: -1px;
  background: var(--floating);
  color: var(--text);
  box-shadow: var(--shadow);
  cursor: pointer;
  pointer-events: auto;
}

.floating-capsule svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.floating-capsule svg,
.floating-capsule svg * {
  stroke-width: 1.75;
}

.floating-capsule svg.dots-icon circle {
  fill: currentColor;
  stroke: none;
}

.center-menu-anchor {
  position: relative;
  pointer-events: auto;
}

.center-menu-button svg circle {
  fill: currentColor;
  stroke: none;
}

.topbar-actions,
.view-switch {
  display: flex;
  align-items: center;
}

.topbar-actions {
  gap: 8px;
  min-width: 0;
  max-width: 100%;
  pointer-events: auto;
}

.view-switch {
  min-width: 0;
  gap: 4px;
  padding: 3px;
  border-radius: 999px;
  outline: 1px solid var(--floating-outline);
  outline-offset: -1px;
  background: var(--floating);
  box-shadow: var(--shadow);
  overflow-x: auto;
  scrollbar-width: none;
}

.view-switch::-webkit-scrollbar { display: none; }

.view-tab {
  flex: 0 0 auto;
  min-width: 44px;
  height: 38px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 999px;
  background: transparent;
  color: var(--floating-nav-idle-color);
  font-family: var(--floating-nav-font-family);
  font-size: var(--floating-nav-font-size);
  font-weight: var(--floating-nav-font-weight);
  line-height: var(--floating-nav-line-height);
  letter-spacing: var(--floating-nav-letter-spacing);
  cursor: pointer;
  transition: color var(--floating-nav-hover-duration) ease;
}

.view-tab.is-active {
  background: var(--inverse);
  color: var(--floating-nav-active-color);
  transition: none;
}

.view-switch.is-selection-changing .view-tab {
  transition: none;
}

@media (hover: hover) and (pointer: fine) {
  .view-tab:not(.is-active):hover {
    color: var(--floating-nav-hover-color);
  }
}

.view-tab svg,
.refresh-clients svg,
.empty-icon svg {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.workspace {
  width: min(100%, var(--page-max));
  margin: 0 auto;
  padding: 24px calc(16px + var(--safe-right)) calc(64px + var(--safe-bottom)) calc(16px + var(--safe-left));
}

.form-region {
  width: min(100%, var(--content-max));
  margin: 0 auto;
}

.mobile-progress {
  margin-bottom: 28px;
  color: var(--text-secondary);
  font-size: .75rem;
  font-weight: 500;
}

.progress-track {
  height: 2px;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--border);
}

.progress-track span {
  display: block;
  width: 20%;
  height: 100%;
  border-radius: inherit;
  background: var(--text);
  transition: width .32s cubic-bezier(.22,.9,.32,1);
}

.platform-shell[data-current-step="1"] .progress-track span { width: 40%; }
.platform-shell[data-current-step="2"] .progress-track span { width: 60%; }
.platform-shell[data-current-step="3"] .progress-track span { width: 80%; }
.platform-shell[data-current-step="4"] .progress-track span { width: 100%; }

.form-step {
  animation: none;
}

.form-step.is-step-entering {
  animation: step-in .32s cubic-bezier(.22,.9,.32,1) both;
}

@keyframes step-in {
  from { opacity: 0; transform: translateX(14px); }
  to { opacity: 1; transform: translateX(0); }
}

.section-heading {
  margin: 0 16px 20px;
}

.section-heading h2,
.success-view h2,
.confirmation-modal h2 {
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -.045em;
  line-height: 1.06;
}

.section-heading > p:last-child {
  margin-top: 10px;
  color: var(--text-secondary);
  font-size: .95rem;
  line-height: 1.5;
}

.form-card {
  padding: 16px;
}

.form-card-spaced {
  margin-top: 16px;
}

.form-grid {
  display: grid;
  gap: 16px;
}

.control {
  min-width: 0;
}

.control label {
  margin-bottom: 7px;
  color: var(--text);
  font-size: .85rem;
  font-weight: 500;
}

.control input {
  min-height: 46px;
  padding: 0 14px;
  border-radius: 4px;
  background: var(--control);
  outline: 2px solid transparent;
  outline-offset: -2px;
  transition: outline-color .18s ease;
}

.control input:focus {
  outline-color: transparent;
}

.control input[aria-invalid="true"] {
  outline-color: var(--danger);
}

.control small {
  display: block;
  margin: 7px 2px 0;
  color: var(--text-secondary);
  font-size: .75rem;
  line-height: 1.35;
}

.optional {
  margin-left: 4px;
  color: var(--text-secondary);
  font-weight: 400;
}

.choice-group {
  display: grid;
  gap: 8px;
  border: 0;
}

.choice-card {
  position: relative;
  min-height: 76px;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px;
  align-items: center;
  gap: 16px;
  border-radius: 8px;
  background: var(--card);
  outline: 2px solid transparent;
  outline-offset: -2px;
  cursor: pointer;
}

.choice-card:has(input:checked) {
  outline-color: var(--text);
}

.choice-card input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.choice-copy,
.setting-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.choice-copy strong,
.setting-copy strong,
.generated-row strong {
  font-size: .95rem;
  font-weight: 500;
  line-height: 1.3;
}

.choice-copy small,
.setting-copy small {
  color: var(--text-secondary);
  font-size: .78rem;
  line-height: 1.35;
}

.choice-check {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--inverse);
  color: var(--inverse-text);
  opacity: 0;
  transform: scale(.7);
  transition: opacity .18s ease, transform .18s ease;
}

.choice-card:has(input:checked) .choice-check {
  opacity: 1;
  transform: scale(1);
}

.choice-check svg,
.result-icon svg,
.success-icon svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.generated-row {
  margin-top: 16px;
  padding-top: 14px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--border);
}

.generated-row span {
  color: var(--text-secondary);
  font-size: .8rem;
  line-height: 1.4;
}

.generated-row strong {
  max-width: 58%;
  text-align: right;
  overflow-wrap: anywhere;
}

.settings-card {
  overflow: hidden;
}

.setting-row {
  min-height: 78px;
  padding: 12px 16px;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.setting-row-fixed {
  cursor: default;
}

.setting-row + .setting-row {
  border-top: 1px solid var(--border);
}

.service-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--control);
  font-size: .9rem;
  font-weight: 700;
}

.service-ready {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--inverse);
  color: var(--inverse-text);
}

.service-ready svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.switch {
  position: relative;
  width: 46px;
  height: 28px;
}

.switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.switch > span {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #e0e0e0;
  transition: background-color .22s ease;
}

.switch > span::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #fff;
  transition: transform .22s ease;
}

:root[data-theme="dark"] .switch > span {
  background: #363636;
}

.switch input:checked + span {
  background: var(--foodev-switch-active, #19c85a);
}

.switch input:checked + span::after {
  background: #fff;
  transform: translateX(18px);
}

.switch input:focus-visible + span {
  outline: 0;
  outline-offset: 0;
}

.summary-card {
  overflow: hidden;
}

.summary-section {
  padding: 15px 16px;
  display: grid;
  grid-template-columns: minmax(96px, .7fr) minmax(0, 1.3fr);
  gap: 16px;
}

.summary-section + .summary-section {
  border-top: 1px solid var(--border);
}

.summary-section dt {
  color: var(--text-secondary);
  font-size: .8rem;
  line-height: 1.4;
}

.summary-section dd {
  min-width: 0;
  text-align: right;
  font-size: .9rem;
  font-weight: 500;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.preflight-result {
  margin-top: 16px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 8px;
  background: var(--card);
}

.result-icon,
.success-icon {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--success);
  color: var(--inverse-text);
}

.preflight-result strong {
  font-size: .9rem;
  font-weight: 600;
}

.preflight-result p {
  margin-top: 3px;
  color: var(--text-secondary);
  font-size: .8rem;
  line-height: 1.4;
}

.result-icon svg {
  width: 17px;
  height: 17px;
}

.provision-message {
  margin: 16px 16px 0;
}

.form-actions {
  margin-top: 24px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.step-arrow-button {
  width: 48px;
  height: 48px;
  min-height: 48px;
  padding: 0;
  flex: 0 0 48px;
  border-radius: 999px;
}

.step-arrow-button svg,
.action-button-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.success-view {
  width: min(100%, 620px);
  margin: 32px auto 0;
  text-align: center;
  outline: 0;
}

.success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
}

.success-icon svg {
  width: 30px;
  height: 30px;
}

.success-view > p {
  margin-top: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.success-details {
  margin-top: 28px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--card);
  text-align: left;
}

.success-details > div {
  padding: 14px 16px;
  display: grid;
  grid-template-columns: minmax(100px, .75fr) minmax(0, 1.25fr);
  gap: 16px;
}

.success-details > div + div {
  border-top: 1px solid var(--border);
}

.success-details dt {
  color: var(--text-secondary);
  font-size: .8rem;
}

.success-details dd {
  text-align: right;
  font-size: .86rem;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.success-actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.clients-workspace,
.support-workspace,
.operations-workspace {
  width: min(100%, var(--page-max));
  margin: 0 auto;
  padding: 24px calc(16px + var(--safe-right)) calc(64px + var(--safe-bottom)) calc(16px + var(--safe-left));
}

.operations-heading {
  margin: 0 8px 20px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.support-heading {
  width: min(100%, 720px);
  margin: 0 auto 20px;
  padding: 0 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.support-heading h1 {
  font-size: clamp(2rem, 6vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -.05em;
  line-height: 1.02;
}

.support-heading-meta {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.support-message {
  min-height: 21px;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.3;
  text-align: right;
}

.support-message:empty { display: none; }
.support-message[data-tone="error"] { color: var(--danger); }

.support-count {
  min-width: 20px;
  color: var(--text-secondary);
  font-size: 1rem;
  font-weight: 400;
  text-align: right;
}

.operations-heading h1 {
  font-size: clamp(2rem, 6vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -.05em;
  line-height: 1.02;
}

.operations-message {
  min-height: 21px;
  color: var(--text);
  font-size: .9rem;
  text-align: right;
}

.operations-message[data-tone="error"] { color: var(--danger); }

.operations-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 16px;
}

.operations-card {
  min-width: 0;
  overflow: hidden;
  border-radius: 8px;
  background: var(--card);
}

.operations-card-wide { grid-column: 1 / -1; }

.operations-card-heading {
  min-height: 72px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--border);
}

.operations-card-heading h2 {
  color: var(--text);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -.035em;
  line-height: 1.05;
}

.operations-card-title-row {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

.operations-info-button {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border: 0;
  border-radius: 50%;
  padding: 0;
  display: grid;
  place-items: center;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
}

.operations-info-button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.provider-state {
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  background: var(--control);
  color: var(--text-secondary);
  font-size: .8rem;
  font-weight: 600;
}

.provider-state[data-state="ready"] { background: var(--success); color: #fff; }
.provider-state[data-state="missing"] { background: var(--danger); color: #fff; }

.operations-fields { display: grid; gap: 0; }

.operations-field {
  min-height: 64px;
  padding: 10px 20px;
  display: grid;
  grid-template-columns: minmax(120px, .75fr) minmax(0, 1.25fr);
  align-items: center;
  gap: 18px;
  position: relative;
}

.operations-field + .operations-field::before {
  content: "";
  position: absolute;
  top: 0;
  left: 20px;
  right: 20px;
  height: 1px;
  background: var(--border);
}

.operations-field > span:first-child,
.operations-field > strong {
  color: var(--text);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.3;
}

.operations-field input {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  border: 0;
  border-radius: 4px;
  padding: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  text-align: right;
  outline: 0;
}

.operations-field input[aria-invalid="true"] { color: var(--danger); }

.operations-readonly strong { text-align: right; }

.money-input {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  color: var(--text);
}

.money-input input { flex: 1 1 auto; }

.operations-switch-list { border-top: 1px solid var(--border); }

.operations-switch-list > .operations-switch-row {
  min-height: 68px;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  position: relative;
}

.operations-switch-list > .operations-switch-row + .operations-switch-row::before {
  content: "";
  position: absolute;
  top: 0;
  left: 20px;
  right: 20px;
  height: 1px;
  background: var(--border);
}

.operations-switch-list strong { font-size: 1rem; font-weight: 400; }

.operations-switch-row > label:not(.switch),
.operations-switch-label > label { cursor: pointer; }

.operations-switch-label {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.operations-switch-label .operations-info-button {
  flex: 0 0 auto;
}

.operations-inline-actions {
  padding: 16px 20px 20px;
  border-top: 1px solid var(--border);
}

.operations-inline-actions .operations-test-button { width: 100%; border-radius: 4px; }

.onboarding-checklist {
  margin: 0;
  padding: 8px 20px 20px 52px;
  border-top: 1px solid var(--border);
  color: var(--text);
}

.onboarding-checklist li {
  min-height: 44px;
  padding: 11px 0 8px 3px;
  border-bottom: 1px solid var(--border);
  font-size: .95rem;
  line-height: 1.35;
}

.onboarding-checklist li:last-child { border-bottom: 0; }

.support-ticket-list {
  width: min(100%, 720px);
  margin: 0 auto;
  display: grid;
  gap: 16px;
}

.support-ticket-empty {
  margin: 0;
  padding: 24px 20px;
  border-radius: 8px;
  background: var(--card);
  color: var(--text-secondary);
  font-size: 1rem;
  text-align: center;
}

.support-ticket {
  overflow: hidden;
  padding: 16px;
  display: grid;
  gap: 12px;
  border-radius: 8px;
  background: var(--card);
}

.support-ticket-heading { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.support-ticket-heading h3 { font-size: 1rem; font-weight: 600; line-height: 1.25; }
.support-ticket-status {
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  background: var(--inverse);
  color: var(--inverse-text);
  font-size: .8rem;
  font-weight: 600;
}

.support-ticket-status[data-status="in_progress"] {
  background: var(--foodev-status-warning, #956500);
  color: #fff;
}

.support-ticket-status[data-status="resolved"] {
  background: var(--foodev-status-success, #14834a);
  color: #fff;
}

.support-ticket-status[data-status="closed"] {
  background: var(--foodev-status-danger, #d73737);
  color: #fff;
}

.support-ticket-details {
  padding: 6px 0;
  display: grid;
  gap: 4px;
}

.support-ticket-field {
  min-width: 0;
  min-height: 32px;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.4;
}

.support-ticket-field.is-description { align-items: start; }
.support-ticket-field > span:last-child { min-width: 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.support-ticket-field-icon { width: 20px; height: 20px; display: grid; place-items: center; color: var(--text); }
.support-ticket-field-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

.support-ticket-actions { display: flex; justify-content: flex-end; gap: 8px; }
.support-ticket-actions button { min-height: 40px; border-radius: 4px; padding: 0 16px; font-size: 1rem; font-weight: 400; }

@media (max-width: 640px) {
  .support-ticket-actions button { width: 100%; }
}

.operations-save-row {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  padding-top: 4px;
}

.operations-save-row .primary-button { min-width: 180px; border-radius: 8px; }

.clients-heading {
  margin: 0 8px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.clients-heading h1 {
  font-size: clamp(2rem, 6vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -.05em;
  line-height: 1.02;
}

.clients-heading-actions {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.refresh-clients {
  flex: 0 0 auto;
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  max-height: 44px;
  aspect-ratio: 1;
  padding: 0;
  border-radius: 999px;
  background: var(--inverse);
  color: var(--inverse-text);
  display: grid;
  place-items: center;
  line-height: 0;
}

.refresh-clients-icon {
  width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  line-height: 0;
}

.refresh-clients-icon svg { display: block; }

.refresh-clients .button-spinner {
  border-color: color-mix(in srgb, var(--inverse-text) 28%, transparent);
  border-top-color: var(--inverse-text);
}

.refresh-clients.is-loading > .refresh-clients-icon {
  display: none;
}

.refresh-clients.is-loading {
  opacity: 1;
}

.client-overview {
  margin-bottom: 16px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border-radius: 8px;
  background: var(--card);
}

.client-overview > div {
  min-width: 0;
  min-height: 70px;
  padding: 13px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}

.client-overview > div + div {
  border-left: 1px solid var(--border);
}

.client-overview span {
  color: var(--text-secondary);
  font-size: .75rem;
  line-height: 1.3;
}

.client-overview strong {
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -.03em;
  line-height: 1;
}

.clients-message {
  margin: 0;
  color: var(--danger);
  font-size: .88rem;
  line-height: 1.45;
  text-align: right;
}

.clients-message:empty {
  display: none;
}

.clients-message[data-tone="status"] {
  color: var(--text);
}

.clients-empty {
  min-height: 360px;
  padding: 48px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--card);
  text-align: center;
}

.empty-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--inverse);
  color: var(--inverse-text);
}

.empty-icon svg {
  width: 23px;
  height: 23px;
}

.clients-empty h2 {
  margin-top: 20px;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -.03em;
}

.clients-empty p {
  max-width: 430px;
  margin-top: 8px;
  color: var(--text-secondary);
  font-size: .9rem;
  line-height: 1.5;
}

.clients-empty .primary-button {
  margin-top: 22px;
}

.clients-list {
  display: grid;
  gap: 12px;
}

.client-card {
  overflow: hidden;
  border-radius: 8px;
  background: var(--card);
}

.client-card.is-updating {
  opacity: .7;
}

.client-card-header {
  min-height: 60px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.client-identity {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

.client-card h2 {
  font-size: clamp(1.2rem, 3vw, 1.55rem);
  font-weight: 600;
  letter-spacing: -.035em;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.client-info-button {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
}

.client-info-button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.status-dot-button {
  --status-color: #7b7b7b;
  position: relative;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--status-color);
  cursor: pointer;
}

.status-dot-button::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--status-color);
}

.status-dot-button[data-status="ready"] { --status-color: #23a55a; }
.status-dot-button[data-status="pending_dns"] { --status-color: #0a84ff; }
.status-dot-button[data-status="pending"] { --status-color: #d18a00; }
.status-dot-button[data-status="running"] { --status-color: #8b5cf6; }
.status-dot-button[data-status="failed"] { --status-color: #e5484d; }
.status-dot-button[data-status="manual_action_required"] { --status-color: #f97316; }
.status-dot-button[data-status="not_requested"] { --status-color: #8e8e93; }
.status-dot-button[data-status="configuration_missing"] { --status-color: #d946ef; }
.status-dot-button[data-status="untracked"] { --status-color: #64748b; }
.status-dot-button[data-status="unknown"] { --status-color: #a1a1aa; }
.status-dot-button[data-status="attention_required"] { --status-color: #e11d48; }

.status-dot-button[data-status="running"]::before {
  animation: status-pulse 1.25s ease-in-out infinite;
}

@keyframes status-pulse {
  50% { opacity: .28; transform: scale(.78); }
}

.client-services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--border);
}

.client-service {
  min-width: 0;
  padding: 12px 16px;
}

.client-service + .client-service {
  border-left: 1px solid var(--border);
}

.service-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.service-heading strong {
  min-width: 0;
  font-size: .88rem;
  font-weight: 600;
  line-height: 1.3;
}

.service-action {
  min-height: 34px;
  margin-top: 8px;
  padding: 0 12px;
  border-radius: 4px;
  background: var(--control);
  color: var(--text);
  font-size: .76rem;
  font-weight: 600;
  cursor: pointer;
}

.service-action:disabled {
  opacity: .45;
  cursor: default;
}

.dns-notice {
  margin: 0 20px 18px;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 11px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--warning) 10%, var(--control));
  color: var(--text);
}

.dns-notice > svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--warning);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dns-notice strong {
  font-size: .85rem;
  font-weight: 600;
}

.dns-notice p,
.dns-domains {
  margin-top: 4px;
  color: var(--text-secondary);
  font-size: .77rem;
  line-height: 1.45;
}

.dns-domains {
  color: var(--text);
  font-weight: 500;
  overflow-wrap: anywhere;
}

.dns-records {
  margin-top: 12px;
  overflow: hidden;
  border-radius: 4px;
  background: color-mix(in srgb, var(--card) 72%, transparent);
}

.dns-record {
  padding: 10px 12px;
}

.dns-record + .dns-record {
  border-top: 1px solid var(--border);
}

.dns-record > div {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 9px;
  font-size: .72rem;
  line-height: 1.45;
}

.dns-record > div + div {
  margin-top: 4px;
}

.dns-record dt {
  color: var(--text-secondary);
}

.dns-record dd {
  min-width: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  overflow-wrap: anywhere;
  user-select: text;
}

.dns-vercel-link {
  margin-top: 12px;
  display: inline-flex;
  color: var(--text);
  font-size: .75rem;
  font-weight: 600;
  text-underline-offset: 3px;
}

.load-more-row {
  padding-top: 16px;
  display: flex;
  justify-content: center;
}

.load-more-row .button-spinner {
  border-color: color-mix(in srgb, var(--text) 22%, transparent);
  border-top-color: var(--text);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  align-items: safe center;
  padding: calc(20px + var(--safe-top)) calc(16px + var(--safe-right)) calc(20px + var(--safe-bottom)) calc(16px + var(--safe-left));
  overflow: hidden;
  overscroll-behavior: none;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease;
}

.modal-backdrop[hidden] {
  display: none;
}

.modal-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.confirmation-modal {
  width: min(100%, 460px);
  padding: 24px;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-align: center;
  opacity: 0;
  transform: scale(1.08);
  transform-origin: center;
  transition: opacity .22s ease, transform .32s cubic-bezier(.22, 1, .36, 1);
  will-change: opacity, transform;
  max-height: calc(100dvh - 40px - var(--safe-top) - var(--safe-bottom));
  overflow-y: auto;
  overscroll-behavior: contain;
}

.modal-backdrop.is-open .confirmation-modal {
  opacity: 1;
  transform: scale(1);
}

.modal-backdrop.is-closing {
  pointer-events: none;
}

.confirmation-modal h2 {
  margin-top: 0;
  font-size: var(--dialog-title-size);
  font-weight: var(--dialog-title-weight);
  line-height: var(--dialog-title-line-height);
  letter-spacing: var(--dialog-title-letter-spacing);
  text-align: center;
}

.confirmation-modal > p:not(.form-message) {
  margin-top: 12px;
  color: var(--text);
  font-size: var(--dialog-copy-size);
  font-weight: var(--dialog-copy-weight);
  line-height: var(--dialog-copy-line-height);
  text-align: center;
}

.modal-summary {
  margin-top: 20px;
  padding: 14px;
  border-radius: 8px;
  background: var(--control);
  text-align: left;
  font-size: .85rem;
  line-height: 1.45;
}

.modal-summary strong {
  display: block;
  font-size: .95rem;
  font-weight: 600;
}

.modal-summary span {
  display: block;
  margin-top: 4px;
  color: var(--text-secondary);
}

.confirmation-modal .form-message {
  margin-top: 14px;
}

.client-info-modal {
  width: min(100%, 500px);
  text-align: left;
}

.client-info-content {
  margin-top: 16px;
  display: grid;
  gap: 18px;
}

.client-info-description {
  color: var(--text);
  font-size: var(--dialog-copy-size);
  font-weight: var(--dialog-copy-weight);
  line-height: var(--dialog-copy-line-height);
  text-align: center;
}

.client-info-description + .client-info-description {
  margin-top: -10px;
}

.client-info-section h3 {
  margin: 0 16px 8px;
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0;
}

.client-info-list {
  overflow: hidden;
  border-radius: 8px;
  background: var(--card);
}

.client-info-list > div {
  position: relative;
  min-height: 56px;
  padding: 10px 16px;
  display: grid;
  grid-template-columns: minmax(108px, .72fr) minmax(0, 1.28fr);
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  line-height: 1.35;
}

.client-info-list > div + div::before {
  content: "";
  position: absolute;
  top: 0;
  right: 16px;
  left: 16px;
  height: 1px;
  background: var(--border);
  pointer-events: none;
}

.client-info-list dt {
  color: var(--text-secondary);
}

.client-info-list dd {
  min-width: 0;
  color: var(--text);
  text-align: right;
  overflow-wrap: anywhere;
}

.client-info-list a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.client-onboarding-list {
  overflow: hidden;
  border-radius: 8px;
  background: var(--card);
}

.client-onboarding-task {
  position: relative;
  width: 100%;
  min-height: 54px;
  border: 0;
  padding: 10px 16px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  text-align: left;
  cursor: pointer;
}

.client-onboarding-task + .client-onboarding-task::before {
  content: "";
  position: absolute;
  inset: 0 16px auto;
  height: 1px;
  background: var(--border);
}

.client-onboarding-check {
  width: 22px;
  height: 22px;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  display: grid;
  place-items: center;
}

.client-onboarding-check svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
}

.client-onboarding-task[aria-pressed="true"] .client-onboarding-check {
  border-color: var(--success);
  background: var(--success);
  color: #fff;
}

.client-onboarding-task[aria-pressed="true"] .client-onboarding-check svg { opacity: 1; }
.client-onboarding-task:disabled { cursor: wait; opacity: .65; }

.modal-actions {
  margin-top: 22px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.modal-actions.client-info-actions {
  grid-template-columns: repeat(3, minmax(112px, auto));
  justify-content: center;
}

.modal-actions.client-info-actions > :only-child {
  grid-column: 1 / -1;
  justify-self: center;
}

#client-info-secondary-action[hidden] + #client-info-action[hidden] + #close-client-info {
  grid-column: 1 / -1;
  justify-self: center;
}

@media (max-width: 560px) {
  .modal-actions.client-info-actions {
    grid-template-columns: 1fr;
  }
}

.domain-change-modal form {
  margin-top: 20px;
  display: grid;
  gap: 10px;
  text-align: left;
}

.domain-change-modal form > label {
  color: var(--text);
  font-size: 1rem;
  font-weight: 400;
}

.domain-change-modal input[type="text"] {
  width: 100%;
  height: 52px;
  border: 0;
  border-radius: 8px;
  padding: 0 14px;
  background: var(--card);
  color: var(--text);
  outline: 0;
  font-size: 1rem;
}

.domain-change-kind {
  width: max-content;
  max-width: 100%;
  margin: 0 auto 8px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 4px;
  display: flex;
  gap: 2px;
}

.domain-change-kind label { position: relative; }
.domain-change-kind input { position: absolute; opacity: 0; pointer-events: none; }
.domain-change-kind span {
  min-height: 34px;
  border-radius: 4px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: .8rem;
  font-weight: 400;
}

.domain-change-kind input:checked + span {
  background: var(--inverse);
  color: var(--inverse-text);
}

.domain-change-modal .form-message { min-height: 21px; margin-top: 0; text-align: center; }
.domain-change-modal .modal-actions { margin-top: 2px; }

.modal-actions .primary-button,
.modal-actions .secondary-button {
  border-radius: 999px;
}

@media (min-width: 640px) {
  .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .control-wide {
    grid-column: 1 / -1;
  }

  .form-card {
    padding: 20px;
  }

  .form-actions {
    margin-top: 28px;
  }
}

@media (min-width: 900px) {
  .topbar {
    padding-top: calc(20px + var(--safe-top));
  }

  .workspace {
    padding-top: 48px;
  }

  .clients-workspace {
    padding-top: 48px;
  }

  .support-workspace {
    padding-top: 48px;
  }

  .operations-workspace {
    padding-top: 48px;
  }
}

@media (max-width: 520px) {
  .form-actions > button:not([hidden]):not(.step-arrow-button) {
    flex: 1 1 0;
  }

  .summary-section,
  .success-details > div {
    grid-template-columns: minmax(82px, .65fr) minmax(0, 1.35fr);
    gap: 12px;
  }

  .clients-heading {
    margin-right: 0;
    margin-left: 0;
    align-items: flex-start;
  }

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

  .client-overview > div:nth-child(3) {
    border-left: 0;
  }

  .client-overview > div:nth-child(n + 3) {
    border-top: 1px solid var(--border);
  }

  .client-card-header {
    padding: 16px;
    flex-direction: row;
    gap: 8px;
  }

  .client-services {
    grid-template-columns: 1fr;
  }

  .client-service + .client-service {
    border-top: 1px solid var(--border);
    border-left: 0;
  }

  .client-service {
    padding-right: 16px;
    padding-left: 16px;
  }

  .client-info-list > div {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .client-info-list dd {
    text-align: left;
  }

  .dns-notice {
    margin-right: 16px;
    margin-left: 16px;
  }

}

@media (max-width: 640px) {
  .operations-form { grid-template-columns: 1fr; }
  .operations-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
  .operations-message { text-align: left; }
  .operations-field { grid-template-columns: 1fr; gap: 4px; padding-block: 14px; }
  .operations-field input,
  .operations-readonly strong { grid-column: 1; text-align: left; }
  .operations-save-row { position: sticky; bottom: 12px; z-index: 4; }
  .operations-save-row .primary-button { width: 100%; }
  .modal-backdrop {
    align-items: start;
    overflow-y: auto;
  }
}

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