:root {
  --ink: #172521;
  --muted: #687873;
  --green: #153f35;
  --green-2: #205a4b;
  --paper: #ffffff;
  --soft: #f5f7f5;
  --amber: #f4b85b;
  --line: #dce4df;
  --danger: #a93d38;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #f4f6f4;
  font-synthesis: none;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 320px; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
a { color: var(--green-2); }

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #f3f6f3;
}

.login-card {
  width: min(390px, 100%);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 18px 45px rgba(21, 63, 53, 0.09);
  display: grid;
  gap: 17px;
}

.login-card > img { margin: 0 auto 12px; }
.remember-login { min-height: 44px; grid-template-columns: 22px minmax(0, 1fr); align-items: center; gap: 10px; cursor: pointer; }
.remember-login input { width: 20px; min-height: 20px; height: 20px; margin: 0; accent-color: var(--green); }
.login-security-note { margin: -7px 0 0 32px; color: var(--muted); font-size: 11px; line-height: 1.45; }

label { display: grid; gap: 7px; font-size: 13px; font-weight: 750; color: #30413c; }
.field-help { color: var(--muted); font-size: 11px; font-weight: 550; line-height: 1.45; }
input, textarea, select {
  width: 100%;
  border: 1px solid #cbd6d0;
  border-radius: 9px;
  background: #fff;
  padding: 11px 12px;
  color: var(--ink);
  outline: none;
}
textarea { resize: vertical; line-height: 1.5; }
input:focus, textarea:focus, select:focus { border-color: var(--green-2); box-shadow: 0 0 0 3px rgba(32, 90, 75, 0.12); }

.primary, .secondary, .text-button, .danger-button, .icon-button, .mini-button {
  border-radius: 8px;
  padding: 10px 13px;
  font-weight: 800;
  border: 0;
}
.primary { background: var(--green); color: #fff; }
.primary:hover { background: var(--green-2); }
.primary:disabled, .secondary:disabled { cursor: wait; opacity: 0.76; }
.generate-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; }
.button-spinner {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: button-spin 0.7s linear infinite;
}
@keyframes button-spin { to { transform: rotate(360deg); } }
.secondary, .mini-button { background: #fff; color: var(--green); border: 1px solid #c9d6d0; }
.secondary:hover, .mini-button:hover { border-color: var(--green); }
.text-button { background: transparent; color: var(--muted); }
.danger-button { color: var(--danger); background: #fff; border: 1px solid #e4c7c4; }
.full { width: 100%; }
.form-error { color: var(--danger); font-size: 13px; font-weight: 700; min-height: 18px; margin: 0; }

.topbar {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px clamp(16px, 3vw, 44px);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--green); text-decoration: none; font-size: 20px; font-weight: 850; }
.top-actions, .business-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.notes-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  margin-left: auto;
  padding: 7px 13px;
  border: 1px solid #c9d6d0;
  border-radius: 999px;
  background: #fff;
  color: var(--green);
  font-weight: 850;
}
.notes-button:hover { border-color: var(--green); background: #f4f8f6; }
.notes-button svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.link-status-totals { display: flex; align-items: center; gap: 8px; }
.live-link-total, .taken-down-total {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 42px;
  padding: 7px 13px;
  border-radius: 999px;
  white-space: nowrap;
}
.live-link-total { border: 1px solid #b9d9ca; background: #e5f5ec; color: #146f47; }
.taken-down-total { border: 1px solid #e1b5b1; background: #fbe9e7; color: #a43a35; }
.taken-down-total { appearance: none; font: inherit; cursor: pointer; }
.taken-down-total:hover { border-color: #bd716b; background: #f8dcda; }
.taken-down-total[aria-pressed="true"] { border-color: #a43a35; background: #f4cfcc; box-shadow: 0 0 0 3px rgba(164, 58, 53, 0.16); }
.taken-down-total:focus-visible { outline: 3px solid rgba(164, 58, 53, 0.3); outline-offset: 2px; }
.live-link-total span, .taken-down-total span { font-size: 11px; font-weight: 850; letter-spacing: 0.04em; text-transform: uppercase; }
.live-link-total strong, .taken-down-total strong { min-width: 1.35em; font-size: 21px; line-height: 1; text-align: center; }

.workspace { width: min(1560px, calc(100% - 28px)); margin: 16px auto 70px; }
.niche-tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.niche-tab { border: 0; background: transparent; padding: 13px 18px; color: var(--muted); font-weight: 850; border-bottom: 3px solid transparent; }
.niche-tab.active { color: var(--green); border-bottom-color: var(--amber); }
.niche-tab small { display: inline-grid; place-items: center; min-width: 22px; height: 22px; margin-left: 6px; padding: 0 6px; background: #e6ece8; border-radius: 999px; }

.business-list { display: grid; gap: 14px; }
.business-sheet { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.business-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 15px 17px; background: #fbfcfb; }
.business-title { min-width: 0; }
.business-name-line { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 6px; }
.business-title h2 { color: var(--green); font-size: 19px; margin: 0; }
.starting-count { color: #53635d; font-size: 12px; font-weight: 800; white-space: nowrap; }
.business-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; color: var(--muted); font-size: 12px; }
.business-url-label { font-weight: 750; }
.business-link { max-width: min(560px, 70vw); font-weight: 750; text-underline-offset: 2px; overflow-wrap: anywhere; }
.count-control { grid-template-columns: auto 64px; align-items: center; gap: 7px; }
.count-control input { padding: 9px; }

.content-table-wrap { overflow-x: auto; border-top: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; min-width: 1120px; table-layout: fixed; }
th { text-align: left; padding: 10px 12px; color: #60706a; background: var(--soft); font-size: 10px; letter-spacing: 0.07em; text-transform: uppercase; }
th:nth-child(1) { width: 46px; }
th:nth-child(2) { width: 250px; }
th:nth-child(3) { width: auto; }
th:nth-child(4) { width: 125px; }
th:nth-child(5) { width: 70px; }
td { padding: 12px; border-top: 1px solid #e8edea; vertical-align: top; font-size: 13px; }
.row-number { color: #87948f; font-weight: 800; }
.content-cell { line-height: 1.52; padding: 5px 7px; }
.share-cell { display: grid; gap: 7px; }
.share-cell input { padding: 8px 9px; font-size: 12px; }
.share-cell > div { display: flex; align-items: center; gap: 10px; }
.share-cell a { font-size: 12px; font-weight: 750; }
.share-status-cell { transition: background-color 160ms ease; }
.share-check-live { background: #e5f5ec; }
.share-check-missing { background: #fbe9e7; }
.share-check-unknown { background: #fff6df; }
.share-check-live .share-cell input { border-color: #76ad8f; background: #dff3e7; }
.share-check-missing .share-cell input { border-color: #d78b85; background: #f8dcda; }
.share-check-unknown .share-cell input { border-color: #d8b768; background: #fff0c9; }
.sheet-input { border-color: transparent; border-radius: 5px; background: transparent; box-shadow: none; }
.sheet-input:hover { border-color: #d3ddd8; background: #fbfcfb; }
.sheet-input:focus { border-color: var(--green-2); background: #fff; box-shadow: inset 0 0 0 1px var(--green-2); }
.content-sheet-input {
  min-height: 58px;
  padding: 8px 9px;
  resize: none;
  overflow: hidden;
  line-height: 1.52;
  cursor: text;
  -webkit-user-select: text;
  user-select: text;
  -webkit-touch-callout: default;
  touch-action: auto;
}
.cell-save-meta { min-height: 18px; }
.share-posted-at { color: #65746f; font-size: 10px; font-weight: 700; line-height: 1.4; }
.share-checked-at { font-size: 11px; font-weight: 850; line-height: 1.4; }
.share-checked-at.check-live { color: #147348; }
.share-checked-at.check-missing { color: #b02f2a; }
.share-checked-at.check-unknown { color: #876115; }
.save-state { color: var(--muted); font-size: 11px; font-weight: 700; }
.save-state.saving { color: #876115; }
.save-state.saved { color: #18724d; }
.save-state.error { color: var(--danger); }
.row-delete { padding: 6px 2px; color: #8a5854; font-size: 11px; }
.row-delete:hover { color: var(--danger); }
.muted { color: var(--muted); }
.confirmed { color: #18724d; font-weight: 800; }
.empty-row { padding: 20px; color: var(--muted); text-align: center; }

.status-pill { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 6px 9px; font-weight: 850; font-size: 11px; white-space: nowrap; }
.status-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-live { color: #18724d; background: #e5f5ec; }
.status-missing { color: #a43a35; background: #fbe9e7; }
.status-unknown { color: #876115; background: #fff2d8; }
.status-unchecked { color: #73807b; background: #edf1ef; }

.empty-state { background: #fff; border: 1px dashed #bfcfc7; border-radius: 12px; padding: 55px 24px; text-align: center; }
.empty-state h2 { margin: 0 0 16px; color: var(--green); }

.job-banner, .generation-banner { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 12px; padding: 11px 14px; border: 1px solid #f1d492; border-radius: 9px; background: #fff6df; color: #705318; font-size: 13px; font-weight: 750; }
.generation-banner { border-color: #bfd8cd; background: #edf7f2; color: var(--green); }
.job-banner.queued { border-color: #cad5d0; background: #f2f5f3; color: #4f615a; }
.pulse { width: 8px; height: 8px; display: inline-block; margin-right: 7px; border-radius: 50%; background: var(--amber); animation: pulse 1s infinite alternate; }
.queue-dot { width: 8px; height: 8px; display: inline-block; margin-right: 7px; border: 2px solid #7b8a84; border-radius: 50%; background: transparent; }
@keyframes pulse { to { opacity: 0.25; } }

@media (prefers-reduced-motion: reduce) {
  .button-spinner, .pulse { animation: none; }
}

.modal { width: min(820px, calc(100% - 28px)); max-height: 90vh; border: 0; border-radius: 16px; padding: 0; background: #fff; box-shadow: 0 30px 90px rgba(11, 31, 25, 0.25); }
.modal::backdrop { background: rgba(12, 30, 25, 0.55); backdrop-filter: blur(3px); }
.modal form, .details-shell { padding: 24px; display: grid; gap: 16px; }
.modal-head { display: flex; justify-content: space-between; align-items: center; }
.modal-head h2 { margin: 0; color: var(--green); font-size: 26px; }
.icon-button { font-size: 24px; background: #eef3ef; color: var(--green); padding: 3px 9px; }
.notes-modal { width: min(620px, calc(100% - 28px)); }
.notes-shell { padding: 24px; display: grid; gap: 16px; }
.notes-editor { min-height: 280px; resize: vertical; line-height: 1.55; }
.notes-save-status { min-height: 18px; margin: -4px 0 0; color: var(--muted); font-size: 12px; font-weight: 750; }
.notes-save-status.saving { color: #876115; }
.notes-save-status.saved { color: #18724d; }
.notes-save-status.error { color: var(--danger); }
.field-grid { display: grid; gap: 14px; }
.field-grid.two { grid-template-columns: 1fr 1fr; }
.truth-note { margin: 0; padding: 11px 12px; border: 1px solid #f2d79c; border-radius: 9px; background: #fff6e5; color: #6f541d; font-size: 12px; }
.optional-facts { border: 1px solid var(--line); border-radius: 9px; background: #fbfcfb; }
.optional-facts summary { cursor: pointer; padding: 12px; color: var(--green); font-size: 13px; font-weight: 800; }
.optional-facts-body { display: grid; gap: 14px; padding: 2px 12px 12px; }
.modal-actions { display: flex; justify-content: flex-end; align-items: center; gap: 8px; }
.modal-actions.split { display: grid; grid-template-columns: auto 1fr auto auto; }
.confirm-box { grid-template-columns: auto 1fr; align-items: start; padding: 13px; border: 1px solid #cfe0d7; border-radius: 10px; background: #eef5f0; }
.confirm-box input { width: 20px; height: 20px; margin-top: 1px; }
.confirm-box small { display: block; margin-top: 3px; color: var(--muted); font-weight: 500; line-height: 1.45; }
.fact-strip { display: flex; flex-wrap: wrap; gap: 6px; }
.fact-strip span { padding: 8px 9px; border-radius: 7px; background: #f0f3f1; color: #56645f; font-size: 11px; white-space: pre-wrap; line-height: 1.45; }

.details-modal { width: min(920px, calc(100% - 28px)); }
.business-details { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.details-section { border: 1px solid var(--line); border-radius: 11px; background: #fbfcfb; padding: 15px; min-width: 0; }
.details-section.full-width { grid-column: 1 / -1; }
.details-section h3 { margin: 0 0 11px; color: var(--green); font-size: 15px; }
.details-section dl { margin: 0; display: grid; gap: 10px; }
.detail-row { display: grid; grid-template-columns: minmax(115px, 0.42fr) minmax(0, 1fr); gap: 12px; align-items: start; }
.detail-row dt { color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; }
.detail-row dd { margin: 0; color: var(--ink); font-size: 13px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.detail-row ul { margin: 0; padding-left: 18px; }
.project-profiles { display: grid; gap: 9px; }
.project-profile { border: 1px solid #e2e9e5; border-radius: 9px; padding: 12px; background: #fff; }
.project-profile h4 { margin: 0 0 7px; color: var(--green); font-size: 13px; }
.project-profile p { margin: 0; color: #465650; font-size: 13px; line-height: 1.55; white-space: pre-wrap; }

.toast { position: fixed; right: 22px; bottom: 22px; max-width: 390px; padding: 13px 16px; border-radius: 10px; background: #183b32; color: #fff; box-shadow: 0 18px 45px rgba(21, 63, 53, 0.14); transform: translateY(20px); opacity: 0; pointer-events: none; transition: 0.2s; z-index: 60; }
.toast.show { transform: none; opacity: 1; }
.toast.error { background: #8c332f; }

@media (max-width: 900px) {
  .business-head { align-items: flex-start; flex-direction: column; }
  .business-title, .top-actions, .business-actions { width: 100%; }
  .workspace { width: min(calc(100% - 20px), 1560px); }
}

@media (max-width: 1100px) {
  body { min-width: 0; }
  button { touch-action: manipulation; }
  input, textarea, select { min-height: 46px; padding: 11px 12px; font-size: 16px; }
  .primary, .secondary, .text-button, .danger-button, .mini-button { min-height: 44px; }
  .login-shell { min-height: 100dvh; padding: 16px; }
  .login-card { padding: 28px 22px; border-radius: 18px; }
  .login-card > img { margin-bottom: 6px; }

  .topbar {
    position: static;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 10px 12px 12px;
  }
  .brand { min-width: 0; font-size: 18px; }
  .brand span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .notes-button { min-height: 44px; margin-left: 0; justify-self: end; border-radius: 10px; }
  .link-status-totals {
    grid-column: 1 / -1;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-left: 0;
  }
  .live-link-total, .taken-down-total {
    min-height: 44px;
    border-radius: 10px;
  }
  .top-actions {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .top-actions button { width: 100%; min-width: 0; padding-inline: 10px; }
  #generateAll { grid-column: 1 / -1; }
  #logout { grid-column: 1 / -1; }

  .workspace { width: 100%; margin: 0 auto 40px; padding: 0 10px; }
  .niche-tabs {
    position: sticky;
    top: 0;
    z-index: 15;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    margin: 0 -10px 12px;
    padding: 0 10px;
    background: rgba(244, 246, 244, 0.97);
    backdrop-filter: blur(8px);
  }
  .niche-tab { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px; min-height: 52px; padding: 8px 4px; font-size: 13px; line-height: 1.15; }
  .niche-tab small { margin-left: 0; }

  .job-banner, .generation-banner {
    flex-direction: column;
    gap: 6px;
    margin-bottom: 10px;
    padding: 11px 12px;
    line-height: 1.4;
  }

  .business-list { gap: 12px; }
  .business-sheet { border-radius: 11px; overflow: hidden; }
  .business-head { gap: 14px; padding: 14px; }
  .business-name-line { align-items: flex-start; gap: 6px 10px; margin-bottom: 9px; }
  .business-title h2 { font-size: 17px; line-height: 1.3; }
  .starting-count { white-space: normal; line-height: 1.35; }
  .business-meta { display: grid; align-items: start; gap: 6px; }
  .business-url-label { display: block; }
  .business-link { display: block; max-width: 100%; line-height: 1.4; }
  .business-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
  }
  .business-actions > * { min-width: 0; }
  .business-actions button { width: 100%; padding-inline: 8px; }
  .count-control { width: 100%; grid-template-columns: auto minmax(54px, 1fr); }
  .count-control input { min-width: 0; }

  .content-table-wrap { overflow: visible; border-top: 0; }
  table, tbody { display: block; width: 100%; min-width: 0; }
  thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  tbody {
    display: grid;
    gap: 12px;
    padding: 12px;
    border-top: 1px solid var(--line);
    background: #f3f6f4;
  }
  tr.content-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "row status"
      "share share"
      "content content"
      "action action";
    overflow: hidden;
    border: 1px solid #d8e2dd;
    border-radius: 11px;
    background: #fff;
    box-shadow: 0 3px 12px rgba(21, 63, 53, 0.04);
  }
  tr.content-row td { border-top: 0; padding: 13px; min-width: 0; }
  tr.content-row td[data-label]::before {
    display: block;
    margin-bottom: 7px;
    color: #65746f;
    content: attr(data-label);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 0.06em;
    line-height: 1.25;
    text-transform: uppercase;
  }
  tr.content-row .row-number {
    grid-area: row;
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--green);
    font-size: 15px;
  }
  tr.content-row .row-number::before { margin: 0; }
  tr.content-row .row-status {
    grid-area: status;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
  }
  tr.content-row .row-status::before { margin: 0; }
  tr.content-row .share-status-cell {
    grid-area: share;
    border-top: 1px solid #e3e9e6;
  }
  tr.content-row .content-cell {
    grid-area: content;
    border-top: 1px solid #e3e9e6;
  }
  tr.content-row .row-actions {
    grid-area: action;
    padding: 0;
    border-top: 1px solid #e3e9e6;
  }
  .share-cell input { padding: 10px 11px; font-size: 16px; }
  .share-cell > div { min-height: 24px; flex-wrap: wrap; }
  .share-cell a { display: inline-flex; min-height: 44px; align-items: center; padding: 10px 4px; }
  .business-link { display: flex; min-height: 44px; align-items: center; }
  .row-delete { min-height: 44px; }
  .content-sheet-input { min-height: 132px; padding: 10px 11px; font-size: 16px; }
  .row-actions .row-delete { width: 100%; padding: 10px 13px; text-align: center; }
  .empty-content-row { display: block; }
  .empty-content-row .empty-row { display: block; width: 100%; border: 0; }
  .status-pill { white-space: normal; text-align: left; }

  .modal {
    inset: 0;
    width: 100%;
    max-width: none;
    height: 100dvh;
    max-height: none;
    margin: 0;
    overflow-y: auto;
    border-radius: 0;
  }
  .modal form, .details-shell {
    min-height: 100%;
    padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
    gap: 15px;
  }
  .modal-head {
    position: sticky;
    top: -1px;
    z-index: 2;
    padding: 3px 0 8px;
    background: #fff;
  }
  .modal-head h2 { font-size: 22px; line-height: 1.2; }
  .icon-button { min-width: 44px; min-height: 44px; padding: 5px 10px; }
  .notes-shell { min-height: 100%; padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); }
  .notes-editor { min-height: min(58dvh, 480px); resize: vertical; }
  .field-grid.two, .business-details { grid-template-columns: 1fr; }
  .details-section.full-width { grid-column: auto; }
  .details-section { padding: 13px; }
  .detail-row { grid-template-columns: 1fr; gap: 3px; }
  .optional-facts summary { min-height: 44px; display: flex; align-items: center; }
  .modal-actions {
    position: sticky;
    bottom: -1px;
    z-index: 2;
    padding-top: 10px;
    padding-bottom: max(2px, env(safe-area-inset-bottom));
    background: #fff;
  }
  .modal-actions button { flex: 1; }
  .modal-actions.split { grid-template-columns: 1fr 1fr; }
  .modal-actions.split span { display: none; }

  .toast {
    right: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
    left: 10px;
    max-width: none;
  }
}

@media (min-width: 700px) and (max-width: 1100px) {
  .top-actions { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #logout { grid-column: auto; }
  .business-actions { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .count-control { grid-column: span 1; }
  .business-actions button { min-height: 46px; }
}

@media (max-width: 360px) {
  .login-card { padding: 30px 22px; }
  .login-security-note { margin-left: 0; }
  .top-actions, .business-actions { grid-template-columns: 1fr; }
  #generateAll { grid-column: auto; }
  .top-actions button, .business-actions button { white-space: normal; }
  .modal-actions { flex-direction: column-reverse; align-items: stretch; }
  .modal-actions button { width: 100%; }
  .modal-actions.split { grid-template-columns: 1fr; }
}
