/* Reusable proposal setup. Load after proposal.css. */
:root {
  --brand-accent: #10b981;
  --brand-ink: #064e3b;
  --brand-text: #065f46;
  --brand-soft: #ecfdf5;
}

[hidden] { display: none !important; }

.app-status {
  max-width: 8.5in;
  margin: 0 auto 14px;
  padding: 11px 15px;
  border: 1px solid #d7dff0;
  border-radius: 8px;
  background: #f0f4ff;
  color: #475b8c;
  font-size: 12px;
  line-height: 1.6;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.app-status:empty { display: none; }
.app-status.is-error { border-color: #e5bfb6; background: #fff2ee; color: #8d3523; }
body[data-active-screen="setup"] .app-status { max-width: 1100px; }
body:not(.client-view):has(.studio-panel-trigger:not(.hidden)) .app-status:not(:empty) { margin-top: 42px; }

.setup-page {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto 24px;
  padding: 40px;
  background: var(--ui-bg);
  border: 1px solid var(--ui-line);
  border-radius: 22px;
  color: #252839;
  box-shadow: none;
  font-size: 14px;
  line-height: 1.5;
}

.setup-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 32px;
}

.setup-heading-block { max-width: 580px; }
.setup-eyebrow {
  margin-bottom: 10px;
  color: var(--ui-muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2.2px;
}

.setup-page h1 {
  margin: 0 0 10px;
  font-size: clamp(32px, 4vw, 46px);
  font-weight: 750;
  line-height: 1.08;
  letter-spacing: -1.8px;
}

.setup-intro { max-width: 500px; color: #62697d; line-height: 1.65; }
.setup-save-note { max-width: 500px; margin-top: 10px; color: #697086; font-size: 10.5px; line-height: 1.6; }
.setup-header-actions, .setup-footer-actions { display: flex; align-items: center; gap: 8px; }
.setup-header-actions { flex-direction: column-reverse; align-items: flex-end; flex-shrink: 0; }

.setup-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 15px;
  border: 1px solid transparent;
  border-radius: 8px;
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.3;
  cursor: pointer;
  text-align: center;
  transition: background-color 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.setup-button-primary { background: var(--ui-primary); color: #fff; border-color: var(--ui-primary); }
.setup-button-primary:hover { box-shadow: inset 0 0 0 30px #0000000a; }
.setup-button-secondary { background: #ffffff; border-color: #d9ddea; color: #4c526a; }
.setup-button-secondary:hover { background: #f5f4fb; border-color: #bcb5d7; }
.setup-button-quiet { background: transparent; color: #62697d; }
.setup-button-quiet:hover { background: var(--ui-subtle); color: var(--ui-ink); }

.setup-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.setup-card { min-width: 0; padding: 25px; border: 1px solid #e3e6ef; border-radius: 13px; background: #ffffff; }
.setup-card-wide { grid-column: 1 / -1; }
.setup-section-heading { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 24px; }
.setup-step { background: var(--ui-business-soft); display: inline-flex; align-items: center; justify-content: center; flex: 0 0 30px; height: 30px; margin-top: 1px; border: 1px solid var(--ui-primary-line); border-radius: 8px; color: var(--ui-business); font-size: 10px; font-weight: 700; }
.setup-page h2 { margin: 0 0 3px; font-size: 17px; font-weight: 720; letter-spacing: -0.35px; line-height: 1.35; }
.setup-section-heading p, .setup-section-note { color: #62697d; font-size: 12px; line-height: 1.6; }
.setup-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px 14px; }
.setup-proposal-fields { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.setup-field { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.setup-field-wide { grid-column: 1 / -1; }
.setup-field > label, .setup-field > span:first-child, .setup-file-label { display: block; color: #4a5068; font-size: 11px; font-weight: 650; line-height: 1.5; }
.setup-required { color: #697086; font-weight: 450; }

.setup-page input:not([type="color"]):not([type="file"]), .setup-page select, .setup-page textarea {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 10px 11px;
  border: 1px solid #d9ddea;
  border-radius: 7px;
  background: #ffffff;
  color: #252839;
  font: inherit;
  font-size: 12px;
  line-height: 1.5;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.setup-page textarea { resize: vertical; }
.setup-page input::placeholder, .setup-page textarea::placeholder { color: #697086; opacity: 1; }
.setup-page input:hover, .setup-page select:hover, .setup-page textarea:hover { border-color: #b5b7cf; }
.setup-page :is(input, select, textarea, button, summary):focus-visible {
  outline: 2px solid var(--ui-focus);
  outline-offset: 3px;
}
.setup-page :is(input, select, textarea):focus-visible { border-color: var(--ui-primary); box-shadow: 0 0 0 3px #c5236010; }
.setup-page button:disabled { opacity: 0.55; cursor: wait; }
.setup-page :is(input, select):disabled { opacity: 0.65; cursor: not-allowed; background: #f1f3f9; }
.setup-hint { color: #697086; font-size: 10.5px; line-height: 1.6; }
.setup-image-controls { display: flex; align-items: center; gap: 13px; padding: 12px; margin-top: 1px; border: 1px dashed #ddddea; border-radius: 8px; background: #fafaff; }
.setup-image-preview { display: flex; align-items: center; justify-content: center; flex: 0 0 64px; height: 64px; border: 1px solid #e3e6ef; border-radius: 8px; background: #ffffff; overflow: hidden; }
.setup-image-preview:has(img[hidden])::after { content: "IMAGE"; color: #697086; font-size: 8px; letter-spacing: 1px; }
.setup-image-preview img { display: block; width: 100%; height: 100%; object-fit: contain; }
.setup-image-preview-avatar img { object-fit: cover; }
.setup-image-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; flex: 1; }
.setup-file-input { max-width: 100%; min-height: 40px; color: #62697d; font: inherit; font-size: 10px; padding-top: 4px; }
.setup-file-input::file-selector-button { min-height: 40px; margin-right: 7px; padding: 5px 9px; border: 1px solid #d9ddea; border-radius: 5px; background: #ffffff; color: #4c526a; font: inherit; font-weight: 650; cursor: pointer; }
.setup-image-remove { min-height: 40px; margin-top: -3px; padding: 4px 0; border: 0; background: transparent; color: var(--ui-primary); font: inherit; font-size: 10px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.setup-color-control { display: flex; align-items: center; gap: 12px; }
.setup-page input[type="color"] { width: 54px; height: 42px; padding: 4px; flex-shrink: 0; border: 1px solid #d9ddea; border-radius: 7px; background: #ffffff; cursor: pointer; }
.setup-page input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
.setup-page input[type="color"]::-webkit-color-swatch { border: 0; border-radius: 3px; }

.setup-services-heading { align-items: center; }
.setup-services-heading .setup-step { align-self: flex-start; }
.setup-estimate { margin-left: auto; padding-left: 22px; flex-shrink: 0; text-align: right; }
.setup-estimate > span { display: block; color: #6a7187; font-size: 10px; }
.setup-estimate output { display: block; margin-top: 2px; color: #30354b; font-size: 24px; font-weight: 750; line-height: 1.2; letter-spacing: -0.8px; font-variant-numeric: tabular-nums; }
#setup-services { display: grid; gap: 13px; }
.setup-service-card { min-width: 0; padding: 18px; border: 1px solid #e3e6ef; border-radius: 9px; background: #fafbfe; }
.setup-service-card > legend { padding: 0 7px; color: var(--ui-business); font-size: 11px; font-weight: 700; }
.setup-service-card > .setup-service-remove { display: block; margin: -5px 0 13px auto; }
.setup-service-card > header, .setup-service-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 15px; }
.setup-service-card h3, .setup-service-title { font-size: 12px; font-weight: 700; color: #4a5068; }
.setup-service-fields { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; }
.setup-service-fields > .setup-field:first-child:not(.setup-field-wide) { grid-column: span 2; }
.setup-service-fields .setup-field-wide { grid-column: 1 / -1; }
.setup-service-remove { min-height: 40px; padding: 8px 11px; border: 1px solid #e4d9d6; border-radius: 6px; background: #ffffff; color: #8b5247; font: inherit; font-size: 10px; font-weight: 650; cursor: pointer; }
.setup-service-remove:hover { background: #fff4f1; border-color: #ceafa6; }
.setup-service-note, .setup-service-total { color: #62697d; font-size: 11px; }
.setup-service-total { margin-top: 12px; font-weight: 650; text-align: right; font-variant-numeric: tabular-nums; }
.setup-empty { padding: 35px 20px; border: 1px dashed #d7dbea; border-radius: 9px; background: #fafbfe; color: #62697d; font-size: 12px; text-align: center; }
.setup-services-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 16px; }
.setup-services-bottom .setup-hint { max-width: 330px; text-align: right; }

.setup-terms { padding: 0; }
.setup-terms summary { min-height: 65px; display: flex; align-items: center; gap: 12px; padding: 20px 25px; border-radius: 12px; color: #4a5068; font-size: 13px; font-weight: 700; cursor: pointer; list-style: none; }
.setup-terms summary::-webkit-details-marker { display: none; }
.setup-terms summary::before { content: "+"; width: 15px; color: #697086; font-size: 20px; font-weight: 400; line-height: 1; }
.setup-terms[open] summary::before { content: "−"; }
.setup-optional { margin-left: auto; color: #697086; font-size: 10px; font-weight: 450; }
.setup-terms-content { padding: 0 25px 25px; }
.setup-section-note { margin-bottom: 20px; }
.setup-footer { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin-top: 28px; padding-top: 22px; border-top: 1px solid #e3e6ef; }
#setup-status { max-width: 480px; color: #62697d; font-size: 11px; line-height: 1.6; }
#setup-status[data-state="error"] { color: #a63727; }
#setup-status[data-state="success"] { color: #1c6a43; }
.setup-footer-actions { flex-shrink: 0; }

/* A proposal keeps its business color across its cover and document. */
.payment-card.selected { border-color: var(--brand-accent); box-shadow: 0 4px 16px var(--brand-soft); }
.payment-card.selected .btn-select-plan,
.btn-primary,
.btn-submit-counter,
.btn-review-proposal,
.budget-pill.active { background: var(--brand-accent); border-color: var(--brand-accent); color: var(--brand-ink); }
.payment-card.selected .btn-select-plan:hover,
.btn-primary:hover,
.btn-submit-counter:hover,
.btn-review-proposal:hover { background: var(--brand-accent); color: var(--brand-ink); }
.selected-plan-banner { background: var(--brand-soft); border-color: var(--brand-accent); color: var(--brand-text); }
.selected-plan-banner .banner-icon, .payment-card.selected .payment-main-price { color: var(--brand-text); }
.cover-divider-line { background: var(--brand-accent); opacity: 0.45; }
.cover-brand-sub, .cover-doc-id strong, .cover-kicker { color: color-mix(in srgb, var(--brand-accent) 65%, #ffffff); }
.cover-pulse, .live-indicator { background: var(--brand-accent); box-shadow: none; }
.chip.chip-accent, .scope-chips-ribbon .chip.chip-accent { background: var(--brand-soft); border-color: var(--brand-accent); color: var(--brand-text); }
.client-status-badge, .cover-status-badge { background: #fffffff0; border-color: var(--brand-accent); color: var(--brand-text); }
.btn-review-proposal, .btn-review-proposal:hover { box-shadow: 0 4px 14px var(--brand-soft); }
.extra-video-pill.discount, .extra-video-pill.discount-max, .annual-roi-pill { background: var(--brand-soft); border-color: var(--brand-accent); color: var(--brand-text); }
.extra-video-pill.discount strong, .extra-video-pill.discount-max strong,
.annual-roi-pill strong, .annual-roi-pill span span, .annual-roi-pill .icon-svg { color: var(--brand-text); }
.brand-meta, .term-body, .service-drawer-desc, .service-drawer-note,
.cover-lead, [data-persist-id="exec-brief-text"], [data-persist-id="extra-work-clause"] { white-space: pre-line; overflow-wrap: anywhere; }
.cover-heading, .cover-client-name, .client-name, .client-sub, .client-date-line,
.service-title-text, .sig-name, #banner-selection-text { overflow-wrap: anywhere; }

@media screen and (min-width: 1200px) {
  body:not(.client-view):has(.studio-side-panel:not(.collapsed)) { padding-right: 368px; }
}

@media (max-width: 950px) {
  .setup-page { padding: 28px; }
  .setup-header { gap: 16px; }
  .setup-card { padding: 20px; }
  .setup-terms { padding: 0; }
  .setup-terms summary { padding: 20px; }
  .setup-terms-content { padding: 0 20px 20px; }
  .setup-fields { grid-template-columns: 1fr; }
  .setup-proposal-fields { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .setup-services-heading { flex-wrap: wrap; }
  .setup-estimate { width: calc(100% - 42px); margin-left: 42px; padding-left: 0; text-align: left; }
}

@media (max-width: 640px) {
  .setup-page { padding: 23px 15px; border-radius: 14px; }
  .setup-header { flex-direction: column; padding-bottom: 24px; }
  .setup-header-actions { width: 100%; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: stretch; }
  .setup-header-actions #setup-cancel { grid-column: 1 / -1; grid-row: 1; }
  .setup-form-grid { grid-template-columns: 1fr; gap: 14px; }
  .setup-card { padding: 19px 15px; }
  .setup-card-wide { grid-column: auto; }
  .setup-fields, .setup-proposal-fields { grid-template-columns: 1fr; gap: 16px; }
  .setup-section-heading { margin-bottom: 20px; }
  .setup-service-card { padding: 14px 11px; }
  .setup-service-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 10px; }
  .setup-service-fields > .setup-field:first-child { grid-column: 1 / -1; }
  .setup-services-bottom { align-items: stretch; flex-direction: column; gap: 12px; }
  .setup-services-bottom .setup-hint { max-width: none; text-align: left; }
  .setup-estimate { margin-left: 42px; }
  .setup-terms { padding: 0; }
  .setup-terms summary { padding: 18px 15px; gap: 9px; }
  .setup-optional { font-size: 9px; }
  .setup-terms-content { padding: 0 15px 19px; }
  .setup-footer { flex-direction: column; align-items: stretch; gap: 16px; margin-top: 22px; }
  .setup-footer-actions { justify-content: space-between; }
  .setup-footer .setup-button-primary { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .setup-page *, .setup-page *::before, .setup-page *::after { transition: none !important; animation: none !important; }
}

@media print {
  #setup-page, #setup-status, #app-status { display: none !important; }
}

/* Brand tokens also replace the original template's fixed emerald accents. */
.document-container::before { background: var(--brand-accent); }
.ribbon-metric-card.card-primary { background: var(--brand-accent) !important; border-color: var(--brand-accent) !important; color: var(--brand-ink) !important; box-shadow: none; }
.card-primary :is(.ribbon-card-header,.ribbon-metric-val,.ribbon-subnote,.ribbon-icon) { color: var(--brand-ink) !important; stroke: currentColor !important; }
.side-screen-btn.active, .side-btn-share { background: var(--brand-soft); border-color: var(--brand-accent); color: color-mix(in srgb,var(--brand-accent) 55%,white); }
.side-btn-share:hover { background: var(--brand-accent); color: var(--brand-ink); }
.side-select, #saved-proposal-select { width: 100%; max-width: 100%; }
.studio-brand { max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cadence-sub-calc, .discount-green, .payment-card .payment-discount-tag { color: var(--brand-text); }
.payment-badge.badge-discount, .payment-badge.badge-recommended { background: var(--brand-soft); color: var(--brand-text); }
.pulse-dot { background: var(--brand-accent); box-shadow: none; }
#app-status { overflow-wrap: anywhere; }
#setup-services .setup-service-card { min-inline-size: 0; }
.client-only { display: none; }
body.client-view .client-only { display: flex; }
#services-tbody .service-title-text { min-width: 0; }
#services-tbody .service-primary-row { align-items: start; }
#services-tbody input { min-height: 36px; }
#services-tbody .freq-select { min-height: 36px; }
#services-tbody .rate-val:focus-visible { outline: 2px solid var(--brand-accent); outline-offset: 3px; }
.document-empty { padding: 25px; color: #52525b; }
#client-copy-reply { min-height: 36px; }
#import-proposal { width: 100%; font-size: 10px; color: #a1a1aa; margin-top: 8px; }
#import-proposal::file-selector-button { padding: 7px; border: 1px solid #52525b; border-radius: 4px; background: #27272a; color: white; font: inherit; cursor: pointer; }
@media screen and (max-width: 640px) {
  .setup-service-fields { grid-template-columns: 1fr; }
  .client-bar-right { flex-wrap: wrap; }
}
@media print {
  .client-only, #app-status { display: none !important; }
}
.share-preview-link { display: inline-block; padding: 7px 2px; color: #d4d4d8; font-size: 11px; text-underline-offset: 3px; }
.share-preview-link:focus-visible { outline: 2px solid var(--brand-accent); outline-offset: 3px; }
@media print { .share-preview-link { display: none !important; } }

.business-profile-manager { margin: -4px 0 24px; padding: 17px; border: 1px solid #e3e6ef; border-radius: 10px; background: var(--ui-primary-soft); }
.business-profile-manager h3 { margin: 0 0 6px; font-size: 13px; color: var(--ui-ink); }
.business-profile-picker { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px; align-items: end; margin: 15px 0 12px; }
.business-profile-picker .setup-button { min-height: 42px; }
.business-profile-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.business-profile-actions .setup-button { padding: 9px 11px; font-size: 11px; }
.business-profile-status { margin-top: 12px; color: #62697d; font-size: 11px; line-height: 1.55; overflow-wrap: anywhere; }
.business-profile-status[data-state="error"] { color: #a63727; }
@media screen and (max-width:640px) {
  .business-profile-manager { padding: 13px; }
  .business-profile-picker { grid-template-columns: 1fr; }
  .business-profile-actions .setup-button { flex: 1 1 42%; }
}

.service-library-manager { margin-bottom: 24px; padding: 20px; border: 1px solid #e3e6ef; border-radius: 10px; background: var(--ui-primary-soft); }
.service-library-heading h3 { margin-bottom: 5px; color: var(--ui-ink); font-size: 14px; }
.service-library-picker { display: grid; grid-template-columns: minmax(0,1fr) auto auto; gap: 10px; align-items: end; margin: 15px 0 10px; }
.service-library-preview { max-width: 760px; color: #4c526a; font-size: 12px; white-space: pre-line; line-height: 1.6; overflow-wrap: anywhere; }
.service-library-preview:empty { display: none; }
.service-library-status { margin-top: 10px; color: #62697d; font-size: 11px; line-height: 1.55; overflow-wrap: anywhere; }
.service-library-status:empty { display: none; }
.service-library-status[data-state="error"] { color: #a63727; }
.setup-service-library-actions { margin-top: 18px; padding-top: 14px; border-top: 1px solid #e3e6ef; }
.setup-service-library-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.setup-service-library-buttons .setup-button { font-size: 11px; }
@media screen and (max-width: 640px) {
  .service-library-manager { padding: 15px; }
  .service-library-picker { grid-template-columns: 1fr; }
  .setup-service-library-buttons .setup-button { flex: 1 1 45%; }
}

/* Application chrome uses InCents colors; proposal documents use business branding. */
body:not(.client-view) { background: var(--ui-bg); }
body:not(.client-view) .studio-side-panel {
  background: #fff;
  color: var(--ui-ink);
  border-color: var(--ui-line);
  box-shadow: 0 10px 35px #34304b12;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
body:not(.client-view) .side-panel-header { background: #fff; border-bottom-color: var(--ui-line); padding: 18px; }
body:not(.client-view) .studio-brand { color: var(--ui-ink); font-size: 16px; font-weight: 750; letter-spacing: -.5px; }
body:not(.client-view) .badge-tag { color: #777187; background: var(--ui-subtle); border-color: #e5e0f0; }
body:not(.client-view) .side-panel-brand .pulse-dot,
body:not(.client-view) .studio-panel-trigger .pulse-dot { background: var(--ui-lime); }
body:not(.client-view) .side-group { background: #f8f9fc; border-color: #e8eaf2; }
body:not(.client-view) .side-group-title { color: #697086; font-size: 10px; }
body:not(.client-view) .side-select,
body:not(.client-view) .side-select option { background: #fff; color: #41475c; border-color: #dce0ed; min-height: 39px; }
body:not(.client-view) .side-btn { background: #fff; color: #555c75; border: 1px solid #dde0ed; min-height: 40px; }
body:not(.client-view) .side-btn:hover { background: var(--ui-subtle); border-color: var(--ui-primary-line); }
body:not(.client-view) .side-btn-share { background: var(--ui-primary); color: white; border-color: var(--ui-primary); }
body:not(.client-view) .side-btn-share:hover { background: var(--ui-primary-hover); color: white; }
body:not(.client-view) .side-btn-ghost { background: #fff; color: #655881; border-color: #e1dbea; min-height: 40px; }
body:not(.client-view) .side-btn-ghost:hover { background: var(--ui-subtle); color: var(--ui-ink); }
body:not(.client-view) .side-group-footer { background: none; border: none; }
body:not(.client-view) .side-screen-btn { color: #62697d; border-color: #e2e5ef; background: white; min-height: 40px; }
body:not(.client-view) .side-screen-btn:hover { background: var(--ui-primary-soft); }
body:not(.client-view) .side-screen-btn.active { background: var(--ui-primary-soft); color: var(--ui-primary); border-color: var(--ui-primary-line); }
body:not(.client-view) .side-caption { color: #697086; line-height: 1.65; }
body:not(.client-view) .save-status-pill { color: #62697d; background: #f5f6fb; border-color: #e3e6ef; }
body:not(.client-view) .side-pill-badge { color: #6a6284; background: var(--ui-subtle); }
body:not(.client-view) .side-pill-badge.active { color: #226b4b; background: #e4f5ec; border-color: #cde7d9; }
body:not(.client-view) .side-control-label { color: #555d72; }
body:not(.client-view) .studio-panel-trigger { background: #fff; color: var(--ui-ink); border-color: #ded9ec; box-shadow: 0 4px 16px #34304b12; }
body:not(.client-view) .studio-panel-trigger:hover { background: var(--ui-primary-soft); border-color: var(--ui-primary-line); }
body:not(.client-view) .btn-side-close:hover { background: var(--ui-subtle); color: var(--ui-ink); }
body:not(.client-view) .share-preview-link { color: var(--ui-primary); }
body:not(.client-view) #import-proposal { color: #697086; }
body:not(.client-view) #import-proposal::file-selector-button { background: #fff; color: #555d72; border-color: #dce0ed; }
body:not(.client-view) .studio-side-panel :is(button,a,select,input):focus-visible { outline: 2px solid var(--ui-focus); outline-offset: 3px; }
.setup-page { border-radius: 16px; }
.setup-card { box-shadow: var(--ui-shadow); }
.setup-card:nth-child(2) .setup-step { color: var(--ui-client); background: var(--ui-client-soft); border-color: #d7e4f6; }
.setup-card:nth-child(3) .setup-step { color: var(--ui-proposal); background: var(--ui-proposal-soft); border-color: #cfe9dd; }
.setup-services-card .setup-step { color: var(--ui-service); background: var(--ui-service-soft); border-color: #f0debb; }
.setup-card .setup-step { font-size: 11px; }
.setup-save-note,.setup-hint,.setup-page .setup-required { font-size: 11px; }
.setup-service-remove { color: #a23b49; border-color: #eecfd3; }
.setup-service-remove:hover { color: #a23b49; background: #fff0f1; border-color: #dfabb3; }
.setup-button-primary:hover { background: var(--ui-primary-hover); border-color: var(--ui-primary-hover); }
@media (min-width:1200px) { body[data-active-screen=setup] { padding-top: 28px; } }
@media (max-width:640px) { .setup-page :is(input:not([type=color]):not([type=file]),select,textarea) { font-size: 16px; } }

.setup-card:nth-child(2) .business-profile-manager { background: #f3f7fe; border-color: #dce5f3; }
.setup-services-card .service-library-manager { background: #fffbf3; border-color: #eee1c8; }
body:not(.client-view) .badge-tag { color: #62697d; }

/* Selected leaf-accent wordmark in the application header. */
.setup-logo{display:inline-flex;align-items:center;min-height:44px;margin-bottom:20px}.setup-logo:focus-visible{outline:3px solid var(--ui-focus);outline-offset:4px}
body:not(.client-view) .side-panel-brand{gap:9px;min-width:0}
body:not(.client-view) .studio-brand{display:block;flex-shrink:1;min-width:0}
body:not(.client-view) .studio-brand .incents-logo{width:112px}
@media (max-width:720px) {
  body:not(.client-view):has(.studio-panel-trigger:not(.hidden)) { padding-top: 56px; }
  body:not(.client-view):has(.studio-panel-trigger:not(.hidden)) .app-status:not(:empty) { margin-top: 0; }
}
