:root {
  --brand-charcoal: #101010;
  --brand-grey: #535559;
  --brand-paper: #f9f9f9;
  --brand-font: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --navy: #122e58;
  --navy-deep: #0c2141;
  --orange: #ff8d05;
  --ink: #172b46;
  --muted: #617086;
  --line: #dce3ec;
  --surface: #f3f7fb;
  --white: #fff;
  --green: #157153;
  --radius: 14px;
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: var(--surface);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
.topbar {
  height: 105px;
  background: var(--brand-charcoal);
  color: white;
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 0 5vw;
  border-bottom: 1px solid #ffffff24;
}
.topbar img {
  display: block;
}
.portal-label {
  font-size: 0.75rem;
  letter-spacing: 0.13em;
  border-left: 1px solid #ffffff30;
  padding-left: 28px;
  color: #c4c5c7;
  font-weight: 650;
}
.help-link {
  margin-left: auto;
  font-size: 0.875rem;
  color: #c4c5c7;
}
.help-link strong {
  margin-left: 12px;
  color: var(--orange);
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 36px;
  color: var(--muted);
  font-size: 0.8rem;
}
footer div {
  display: flex;
  gap: 26px;
}
.eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.17em;
  font-weight: 700;
  color: #b6c8df;
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow:before {
  content: "";
  width: 24px;
  height: 3px;
  background: var(--orange);
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 3.5rem;
  letter-spacing: -0.055em;
  line-height: 1.08;
  margin: 30px 0 22px;
  font-weight: 650;
}
h1 em {
  font-style: normal;
  color: var(--orange);
}
.small-label {
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}
.subtext {
  color: var(--muted);
  line-height: 1.7;
  font-size: 1rem;
}
.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 0.875rem;
  font-weight: 600;
}
.field small {
  font-weight: 400;
  color: var(--muted);
}
.field .field-hint { line-height: 1.5; }
.field .field-error { color: #a82424; line-height: 1.5; }
.field .field-error:empty { display: none; }
.field [aria-invalid="true"] { border-color: #b73535; }
.address-search { border: 1px solid var(--line); background: #f9f9f9; border-radius: 10px; padding: 20px; min-width: 0; }
.address-search[hidden], .address-results[hidden] { display: none; }
.address-search .field-hint, .address-search-status { font-size: .875rem; line-height: 1.6; color: var(--muted); margin: 12px 0 0; }
.address-search-status:empty { display: none; }
.address-results { list-style: none; padding: 4px; margin: 8px 0 0; background: white; border: 1px solid #d2d3d5; border-radius: 8px; max-height: 300px; overflow-y: auto; }
.address-results li { padding: 13px 12px; min-height: 48px; font-size: .9375rem; line-height: 1.5; cursor: pointer; border-radius: 6px; overflow-wrap: anywhere; }
.address-results li:hover, .address-results li[aria-selected="true"] { background: #fff0dd; color: #202020; }
.address-search-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.address-search-footer span { font-size: .75rem; color: var(--muted); }
.field input,
.field select,
.field textarea,
textarea,
input.search {
  width: 100%;
  border: 1px solid #cdd7e3;
  background: white;
  border-radius: 8px;
  padding: 14px 15px;
  color: var(--ink);
  min-width: 0;
  font-size: 1rem;
  line-height: 1.4;
}
.field input:focus,
.field textarea:focus {
  border-color: var(--navy);
}
.field input[readonly] {
  background: var(--surface);
  color: var(--muted);
}
.logo-upload { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 22px; align-items: center; border: 1px dashed #c8c9cb; border-radius: 12px; padding: 20px; background: #fafafa; transition: border-color .15s, background .15s; }
.logo-upload.is-dragging { border-color: var(--orange); background: #fff6e9; }
.logo-upload [hidden] { display: none !important; }
.logo-preview { width: 112px; height: 88px; display: grid; place-items: center; border: 1px solid #e0e1e2; background: white; border-radius: 10px; overflow: hidden; }
.logo-preview img { max-width: 88px; max-height: 66px; object-fit: contain; }
.logo-preview span { color: #939598; font-size: .7rem; font-weight: 700; letter-spacing: .14em; }
.logo-copy h3 { font-size: 1rem; margin: 0 0 6px; }
.logo-copy h3 small { color: var(--muted); font-size: .8rem; font-weight: 400; margin-left: 6px; }
.logo-copy > p { color: var(--muted); font-size: .875rem; line-height: 1.55; margin: 0 0 12px; }
.logo-actions { display: flex; gap: 16px; align-items: center; }
.logo-choose { position: relative; overflow: hidden; cursor: pointer; padding: 10px 14px; }
.logo-choose input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.logo-status { font-size: .8rem !important; margin: 10px 0 0 !important; overflow-wrap: anywhere; }
.business-logo-summary { display: flex; align-items: center; gap: 16px; border: 1px solid var(--line); background: #fafafa; border-radius: 10px; padding: 14px; margin-bottom: 18px; font-size: .9rem; line-height: 1.5; }
.business-logo-summary img { width: 76px; height: 54px; object-fit: contain; background: white; border: 1px solid #e4e4e4; border-radius: 7px; padding: 6px; }
.business-logo-summary small { color: var(--muted); }
.wide {
  grid-column: 1/-1;
}
.primary {
  background: var(--orange);
  color: var(--navy-deep);
  border: 1px solid var(--orange);
  border-radius: 8px;
  font-weight: 700;
  padding: 15px 22px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: 50px;
}
.primary:hover {
  background: #ff9c29;
}
.primary span {
  font-size: 1.25rem;
}
.secondary,
.text-button {
  border: 1px solid var(--line);
  background: white;
  color: var(--navy);
  border-radius: 8px;
  font-weight: 600;
  padding: 12px 18px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}
.text-button {
  border: 0;
  background: transparent;
  padding: 8px 0;
}
.welcome-form .primary {
  width: 100%;
  margin-top: 20px;
}
.privacy-note {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.65;
  margin: 24px 0 0;
}
.resume-note {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  margin-top: 36px;
  font-size: 0.875rem;
  color: var(--muted);
}
.resume-note strong {
  color: var(--navy);
}
.form-error {
  color: #a82424;
  font-size: 0.875rem;
  line-height: 1.5;
  margin: 14px 0;
}
.form-error:empty {
  display: none;
}
.notice {
  padding: 16px 18px;
  background: #fff3de;
  border: 1px solid #f3d59f;
  border-radius: 8px;
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 24px;
  color: #714600;
}
.notice a {
  text-decoration: underline;
}
.preview-tag {
  display: inline-flex;
  gap: 6px;
  color: #7c5100;
  background: #fff0d8;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 0.75rem;
  font-weight: 650;
}
.workspace {
  max-width: 1220px;
  margin: 44px auto 36px;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 44px;
  padding: 0 24px;
}
.step-sidebar {
  padding-top: 8px;
}
.step-sidebar h2 {
  font-size: 1.15rem;
  margin: 18px 0 10px;
}
.step-sidebar > p {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.step-list {
  list-style: none;
  padding: 0;
  margin: 28px 0;
}
.step-list li {
  position: relative;
}
.step-list button {
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  padding: 14px 10px;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: 8px;
  font-size: 0.9rem;
}
.step-list button.active {
  background: #e4ebf4;
  color: var(--navy);
  font-weight: 650;
}
.step-number {
  width: 30px;
  height: 30px;
  border: 1px solid #c6d1df;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 0.8rem;
}
.active .step-number {
  background: var(--navy);
  color: white;
  border-color: var(--navy);
}
.done .step-number {
  background: #dfefe9;
  color: var(--green);
  border-color: #dfefe9;
}
.side-help {
  border-top: 1px solid var(--line);
  padding-top: 25px;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.7;
}
.side-help a {
  font-weight: 600;
  color: var(--navy);
}
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 38px;
}
.card h2 {
  font-size: 1.8rem;
  letter-spacing: -0.035em;
  margin: 12px 0;
}
.card-head {
  padding-bottom: 30px;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--line);
}
.card-head .subtext {
  margin: 0;
}
.form-actions {
  margin-top: 30px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}
.saved {
  color: var(--muted);
  font-size: 0.8rem;
}
.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.925rem;
  line-height: 1.6;
  padding: 18px;
  border-radius: 8px;
  background: var(--surface);
  font-weight: 400;
}
.checkbox input {
  margin-top: 6px;
  accent-color: var(--navy);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.terms {
  white-space: pre-wrap;
  font: inherit;
  font-size: 0.95rem;
  line-height: 1.8;
  color: #3d506a;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  max-height: 400px;
  overflow: auto;
  background: #fbfcfe;
  margin: 16px 0 24px;
}
.terms h3 {
  color: var(--navy);
}
.terms.long {
  max-height: 440px;
}
.radio-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
.radio-cards.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 560px;
}
.radio-card {
  border: 1px solid var(--line);
  padding: 20px 14px;
  border-radius: 8px;
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 0.875rem;
}
.radio-card:has(input:checked) {
  border-color: var(--navy);
  background: #f1f5fb;
}
.radio-card input {
  accent-color: var(--navy);
}
.review-block {
  margin: 26px 0;
}
.review-block h3 {
  font-size: 1rem;
  display: flex;
  justify-content: space-between;
}
.review-block dl {
  display: grid;
  grid-template-columns: 180px 1fr;
  font-size: 0.925rem;
  gap: 13px;
  margin: 0;
}
.review-block dt {
  color: var(--muted);
}
.review-block dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.success-mark {
  background: #e0f2ea;
  color: var(--green);
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  font-size: 2rem;
  border-radius: 50%;
  margin-bottom: 24px;
}
.badge {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 6px;
  background: #e8eef6;
  color: var(--navy);
  font-size: 0.75rem;
  font-weight: 650;
  white-space: nowrap;
}
.badge.submitted {
  color: #885500;
  background: #fff0d8;
}
.badge.complete {
  background: #e0f2ea;
  color: var(--green);
}
.admin-main {
  max-width: 1380px;
  margin: 42px auto;
  padding: 0 40px;
}
.admin-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.admin-title h1 {
  font-size: 2.25rem;
  margin: 10px 0;
}
.admin-title .subtext {
  margin: 0;
}
.admin-actions {
  display: flex;
  gap: 12px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin: 32px 0;
}
.stat {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 23px 25px;
}
.stat label {
  font-size: 0.875rem;
  color: var(--muted);
}
.stat strong {
  font-size: 2.25rem;
  display: block;
  font-weight: 600;
  margin: 13px 0 3px;
  letter-spacing: -0.05em;
}
.stat small {
  font-size: 0.75rem;
  color: var(--muted);
}
.table-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.table-controls {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
  border-bottom: 1px solid var(--line);
}
.tabs {
  display: flex;
  gap: 5px;
}
.tabs button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 0.875rem;
}
.tabs button.active {
  background: var(--navy);
  color: white;
}
.search {
  max-width: 300px;
  padding: 10px 14px !important;
  font-size: 0.875rem !important;
}
.table-scroll {
  overflow-x: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
}
th {
  padding: 17px 24px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: #fbfcfe;
  color: var(--muted);
  font-weight: 600;
}
td {
  padding: 23px 24px;
  border-top: 1px solid #e9edf3;
  font-size: 0.875rem;
}
td strong {
  display: block;
  font-size: 0.925rem;
  margin-bottom: 6px;
}
td small {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
}
.row-button {
  border: 0;
  background: transparent;
  color: var(--navy);
  font-weight: 700;
  font-size: 0.875rem;
}
.empty {
  padding: 64px 25px;
  text-align: center;
}
.empty h3 {
  font-size: 1.2rem;
}
.empty p {
  color: var(--muted);
  font-size: 0.95rem;
}
.mini-progress {
  display: flex;
  gap: 4px;
  margin-top: 8px;
}
.mini-progress i {
  width: 22px;
  height: 4px;
  border-radius: 2px;
  background: #dfe6ef;
}
.mini-progress i.filled {
  background: var(--orange);
}
dialog {
  border: 0;
  border-radius: 16px;
  padding: 0;
  max-width: 800px;
  width: calc(100% - 40px);
  max-height: 90vh;
  box-shadow: 0 28px 100px #06132750;
  color: var(--ink);
}
dialog::backdrop {
  background: #07172b88;
  backdrop-filter: blur(3px);
}
.modal-body {
  padding: 34px;
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}
.modal-header h2 {
  margin: 0;
  font-size: 1.5rem;
  letter-spacing: -0.025em;
}
.close {
  background: var(--surface);
  border: 0;
  border-radius: 50%;
  height: 34px;
  width: 34px;
  font-size: 1.3rem;
  color: var(--navy);
}
.invite-url {
  overflow-wrap: anywhere;
  background: var(--surface);
  padding: 18px;
  border-radius: 8px;
  font-size: 0.875rem;
  line-height: 1.6;
}
.event-list {
  border-left: 2px solid var(--line);
  padding-left: 22px;
  display: grid;
  gap: 20px;
}
.event-list p {
  font-size: 0.875rem;
  margin: 0;
}
.event-list small {
  color: var(--muted);
  display: block;
  font-size: 0.75rem;
  margin-top: 5px;
}
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0;
}
.loading {
  text-align: center;
  padding: 100px;
  color: var(--muted);
}
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 20px);
  background: var(--navy);
  color: white;
  border-radius: 8px;
  padding: 14px 24px;
  font-size: 0.875rem;
  box-shadow: 0 5px 30px #122e5833;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s;
  z-index: 5;
  max-width: 90vw;
}
#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 0.8rem;
}
.gap-top {
  margin-top: 24px;
}
.link {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.agreement-meta {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font-size: 0.8rem;
  color: var(--muted);
}
.business-section {
  padding: 0;
  margin: 0 0 32px;
  border: 0;
  min-width: 0;
}
.business-section legend {
  font-weight: 700;
  font-size: 1.125rem;
  margin-bottom: 10px;
}
.business-section + .business-section {
  border-top: 1px solid var(--line);
  padding-top: 28px;
}
.integration-card {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 24px 28px;
  margin: 28px 0;
  background: white;
  border: 1px solid var(--line);
  border-left: 4px solid var(--orange);
  border-radius: 12px;
}
.integration-card > div:first-child { flex: 1; }
.integration-card h2 { font-size: 1.25rem; margin: 8px 0; }
.integration-card p { color: var(--muted); font-size: 0.9375rem; line-height: 1.5; margin-bottom: 0; }
.integration-indicators { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; max-width: 270px; }
.integration-indicators small { flex-basis: 100%; color: var(--muted); font-size: 0.8125rem; }
.integration-health, .integration-power { padding: 7px 10px; border-radius: 6px; font-size: 0.875rem; line-height: 1.2; background: #edf0f4; color: #46505e; }
.integration-health.healthy { color: #116445; background: #e7f5ed; }
.integration-health.error { color: #9d2727; background: #fff0ee; }
.integration-health.stale { color: #825100; background: #fff4dc; }
.integration-status-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 20px; }
.integration-facts { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 14px; font-size: 0.9375rem; margin: 24px 0; }
.integration-facts dt { color: var(--muted); }
.integration-facts dd { margin: 0; overflow-wrap: anywhere; }
.integration-controls { border-top: 1px solid var(--line); padding-top: 26px; margin-top: 26px; }
.integration-controls form { margin-bottom: 18px; }
.integration-controls .checkbox { margin-bottom: 18px; }
.integration-controls .subtext { font-size: 0.9375rem; }
.integration-controls button:disabled, #halo-check:disabled { cursor: not-allowed; }
.mapping-details { margin: 24px 0; border: 1px solid var(--line); border-radius: 8px; padding: 18px; }
.mapping-details summary { cursor: pointer; font-weight: 600; font-size: 0.9375rem; }
.mapping-details[open] summary { margin-bottom: 18px; }
.mapping-details td, .mapping-details th { padding: 12px; font-size: 0.875rem; overflow-wrap: anywhere; }
.payload-preview { white-space: pre-wrap; overflow-wrap: anywhere; background: var(--surface); padding: 18px; font-size: 0.8125rem; line-height: 1.6; }
@media (max-width: 900px) {
  .integration-card { flex-wrap: wrap; gap: 20px; }
  .integration-card > div:first-child { flex-basis: 100%; }
  .integration-card > button { margin-left: auto; }
}
@media (max-width: 520px) {
  .integration-card { padding: 22px; }
  .integration-card > button { width: 100%; }
  .integration-facts { grid-template-columns: 1fr; gap: 6px; }
  .integration-facts dd { margin-bottom: 14px; }
}
@media (max-width: 1000px) {
  .welcome {
    margin: 30px 24px;
  }
  .welcome-story,
  .welcome-form {
    padding: 42px 32px;
  }
  .topbar {
    gap: 18px;
  }
  .help-link {
    font-size: 0.8rem;
  }
  .help-link strong {
    display: block;
    margin: 5px 0 0;
  }
  .workspace {
    gap: 24px;
    grid-template-columns: 220px 1fr;
  }
  .card {
    padding: 28px;
  }
  .admin-main {
    padding: 0 24px;
  }
  .table-controls {
    flex-wrap: wrap;
  }
}
@media (max-width: 720px) {
  .topbar {
    height: 86px;
    padding: 0 22px;
    gap: 16px;
  }
  .topbar img {
    width: 150px;
    height: auto;
  }
  .portal-label {
    font-size: 0.65rem;
    padding-left: 16px;
    max-width: 125px;
    line-height: 1.5;
  }
  .help-link {
    display: none;
  }
  .welcome {
    grid-template-columns: 1fr;
    margin: 24px 16px;
  }
  .welcome-story {
    padding: 32px;
  }
  h1 {
    font-size: 2.75rem;
    margin: 22px 0;
  }
  .welcome-story > p {
    max-width: none;
    margin-bottom: 0;
  }
  .journey-list {
    display: none;
  }
  .story-bottom {
    margin-top: 26px;
    padding-top: 20px;
  }
  .welcome-form {
    padding: 32px;
  }
  .welcome-form h2 {
    font-size: 1.65rem;
  }
  .workspace {
    display: block;
    margin: 24px auto;
    padding: 0 16px;
  }
  .step-sidebar > h2,
  .step-sidebar > p,
  .side-help {
    display: none;
  }
  .step-list {
    display: flex;
    overflow-x: auto;
    margin: 12px 0 24px;
    gap: 5px;
  }
  .step-list button {
    flex-direction: column;
    gap: 8px;
    font-size: 0.75rem;
    width: 72px;
    padding: 10px 4px;
  }
  .step-sidebar .small-label {
    display: none;
  }
  .card {
    padding: 25px 22px;
  }
  .card h2 {
    font-size: 1.55rem;
  }
  .fields {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .radio-cards,
  .radio-cards.compact {
    grid-template-columns: 1fr;
  }
  .form-actions {
    flex-wrap: wrap;
  }
  .form-actions .primary {
    margin-left: auto;
  }
  .review-block dl {
    grid-template-columns: 1fr;
    gap: 5px;
  }
  .review-block dd {
    margin-bottom: 12px;
  }
  .admin-title {
    align-items: flex-start;
    flex-direction: column;
  }
  .admin-title h1 {
    font-size: 2rem;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .stat {
    padding: 18px;
  }
  .stat label {
    font-size: 0.8rem;
  }
  .admin-main {
    padding: 0 16px;
    margin: 26px auto;
  }
  .admin-actions {
    flex-wrap: wrap;
  }
  .table-controls {
    padding: 14px;
    gap: 12px;
  }
  .tabs {
    overflow-x: auto;
    max-width: 100%;
  }
  .tabs button {
    white-space: nowrap;
    font-size: 0.8rem;
    padding: 10px;
  }
  .search {
    max-width: 100%;
  }
  .modal-body {
    padding: 25px;
  }
  footer {
    padding: 24px;
    font-size: 0.75rem;
  }
  .terms {
    padding: 18px;
  }
  .card-head {
    padding-bottom: 22px;
    margin-bottom: 24px;
  }
}
/* Shared business lookup and staff invitation preparation. */
.business-finder { margin: 22px 0 30px; padding: 22px; border: 1px solid var(--line); border-radius: 12px; background: #fafafa; }
.business-finder > label { display: block; font-size: 1rem; font-weight: 650; }
.business-finder label small { font-size: .875rem; font-weight: 400; color: var(--muted); }
.lookup-input-row { display: flex; gap: 12px; align-items: stretch; }
.lookup-input-row input { min-width: 0; flex: 1; border: 1px solid #c7c9cd; border-radius: 8px; padding: 14px; font: inherit; }
.business-matches { margin: 12px 0; padding: 0; list-style: none; }
.business-match { display: block; width: 100%; padding: 16px; text-align: left; border: 1px solid var(--line); background: white; color: inherit; font: inherit; }
.business-match strong, .business-match span { display: block; overflow-wrap: anywhere; }
.business-match span { font-size: .875rem; color: var(--muted); margin-top: 5px; }
.business-match:hover, .business-match:focus-visible { background: #fff4e5; outline: 2px solid #b76708; outline-offset: 1px; }
.business-confirm { padding: 20px; border: 1px solid #dfb782; border-radius: 10px; background: #fff7eb; }
.business-confirm strong { display: block; font-size: 1.2rem; overflow-wrap: anywhere; }
.invitation-readiness { padding: 20px; background: #f7f8fa; border: 1px solid var(--line); border-radius: 10px; margin: 20px 0; }
.invitation-readiness ul { list-style: none; padding: 0; }
.invitation-readiness li { padding: 8px 0; font-size: .9375rem; }
.invitation-readiness .ready { color: #256247; }
.invitation-readiness .missing { color: #804e07; }
.team-update p, .customer-action p { white-space: pre-wrap; overflow-wrap: anywhere; }
.workspace-tabs {
  display: flex;
  gap: 6px;
  margin: -10px 0 38px;
  border-bottom: 1px solid var(--line);
}
.workspace-tabs button {
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: var(--muted);
  padding: 15px 18px 13px;
  font-size: 0.9rem;
  font-weight: 650;
}
.workspace-tabs button.active {
  border-bottom-color: var(--orange);
  color: var(--navy);
}
.page-heading { margin-bottom: 28px; }
.page-heading h1 { margin: 9px 0; font-size: 2.25rem; letter-spacing: -0.04em; }
.page-heading .subtext { margin: 0; }
.workspace-identity { margin-top: 24px; }
.settings-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.setting-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
  min-height: 210px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
}
.setting-card > button { grid-column: 1 / -1; align-self: end; justify-self: start; }
.setting-card h2 { margin: 0 0 8px; font-size: 1.1rem; }
.setting-card p { margin: 0 0 16px; color: var(--muted); font-size: 0.875rem; line-height: 1.55; }
.setting-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #fff1df;
  color: #a95400;
  font-size: 0.72rem;
  font-weight: 800;
}
.setting-state { display: inline-flex; padding: 6px 9px; border-radius: 6px; font-size: 0.75rem; font-weight: 650; }
.setting-state.ready { color: #116445; background: #e7f5ed; }
.setting-state.warning { color: #825100; background: #fff4dc; }
.access-card { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: white; }
.access-invite {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 0.8fr auto;
  gap: 14px;
  align-items: end;
  padding: 24px 24px 12px;
}
.access-invite .field { margin: 0; }
.access-note { margin: 0; padding: 0 24px 18px; border-bottom: 1px solid var(--line); }
.access-card > .form-error { margin: 0 24px; }
.access-table-wrap { overflow-x: auto; }
.access-table th, .access-table td { vertical-align: middle; }
.access-table select { min-width: 160px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 7px; background: white; }
.table-number-input { width: 105px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 7px; background: white; font: inherit; }
.permission-list { color: var(--muted); font-size: 0.8rem; }
.row-actions { display: flex; justify-content: flex-end; gap: 10px; }
.text-button, .danger-link { border: 0; background: transparent; font: inherit; font-weight: 700; }
.text-button { color: var(--navy); }
.danger-link { color: #a12b2b; }
.protected-label { color: var(--muted); font-size: 0.78rem; }
.access-gate { max-width: 640px; margin: 70px auto; }
.marketing-permission { margin: 22px 0; padding: 18px; border: 1px solid #dfb782; border-radius: 10px; background: #fff8ef; }
.marketing-permission .small-label { margin: 0 0 10px; }
.delivery-panel { margin: 20px 0; padding: 20px; border: 1px solid var(--line); border-radius: 10px; background: #f8fafc; }
.delivery-panel h3 { margin-top: 0; }
.delivery-panel ul { list-style: none; padding: 0; margin: 14px 0 0; }
.delivery-panel li { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); }
.template-tools { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.template-tools .text-button { padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; font-size: .75rem; }
.email-preview { width: 100%; min-height: 520px; border: 1px solid var(--line); border-radius: 10px; background: #f3f5f8; }
@media (max-width: 900px) {
  .settings-grid { grid-template-columns: 1fr; }
  .setting-card { min-height: 0; }
  .access-invite { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) { .lookup-input-row { flex-direction: column; } .business-finder { padding: 16px; } }
@media (max-width: 600px) {
  .workspace-tabs { overflow-x: auto; margin-bottom: 28px; }
  .workspace-tabs button { white-space: nowrap; padding-inline: 12px; }
  .access-invite { grid-template-columns: 1fr; padding: 20px; }
  .access-note { padding-inline: 20px; }
  .logo-upload { grid-template-columns: 76px minmax(0, 1fr); padding: 16px; gap: 16px; }
  .logo-preview { width: 76px; height: 68px; }
  .logo-preview img { max-width: 62px; max-height: 52px; }
}
