/* Plain CSS, no framework. */
:root {
  --ink: #1f2328;
  --muted: #59636e;
  --line: #d1d9e0;
  --paper: #ffffff;
  --page: #f6f8fa;
  --accent: #0b6e4f;
  --warn: #9a3412;
  --accent-soft: #e6f4ea;
  --accent-line: #9fd1b3;
  --warn-soft: #fdecea;
  --warn-line: #f2b8b5;
  /* Yellow: something waits for the customer (a held unsubscribe wave, a login warning, a preview to check). */
  --caution-soft: #fff6e0;
  --caution-line: #e8c46a;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--page);
}

.top {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.top .brand { display: inline-flex; gap: 10px; align-items: center; font-weight: 700; font-size: 1.1rem; color: var(--ink); text-decoration: none; }
.top .brand img { display: block; }
.top nav { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.top nav a[aria-current="page"] { color: var(--ink); font-weight: 600; text-decoration: none; }
.top nav form { display: inline; }

main { max-width: 860px; margin: 24px auto; padding: 0 16px; }

.bottom { max-width: 860px; margin: 40px auto 24px; padding: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; }
.bottom p { margin: 8px 0 0; }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 16px;
}

h1 { font-size: 1.5rem; margin: 0 0 12px; }
h2 { font-size: 1.15rem; margin: 0 0 8px; }

a { color: var(--accent); }

.button, button, input[type="submit"] {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
}

button.secondary { background: var(--paper); color: var(--ink); border-color: var(--line); }

/* The confirm for data-turbo-confirm (layout, confirm_dialog.js), styled like a card. Mockup approved 2026-11-08. */
.confirm-dialog {
  width: calc(100% - 32px);
  max-width: 440px;
  padding: 18px 20px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
}
.confirm-dialog::backdrop { background: rgba(31, 35, 40, 0.35); }
.confirm-dialog p { margin: 0 0 8px; }
.confirm-dialog-buttons { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; margin-top: 16px; }

button.link {
  border: 0;
  background: none;
  color: var(--accent);
  padding: 0;
  text-decoration: underline;
}

label { display: block; font-weight: 600; margin-top: 12px; }
.hint { color: var(--muted); font-size: 0.9rem; margin: 2px 0 0; }
.choice { font-weight: normal; display: flex; gap: 8px; align-items: center; margin-top: 4px; }
/* Settings, the consent field (C5): the dropdown's options and the preview, green or yellow. */
/* Consent rules (mockup approved by Richie 2026-11-11 10:54 PT). */
.consent-rules .rules-label { font-weight: 600; margin: 16px 0 2px; display: block; }
.sync-settings .group h3 + .consent-rules .rules-label:first-child { margin-top: 6px; }
.consent-rules .rules { display: grid; gap: 8px; margin-top: 8px; }
.consent-rules .rule { display: grid; grid-template-columns: minmax(260px, 1.2fr) auto minmax(0, 1.4fr) 64px; gap: 8px 10px; align-items: center; }
.consent-rules .rule[hidden] { display: none; }
.consent-rules .rule select { margin-top: 0; width: 100%; }
.consent-rules .rule .is { color: var(--muted); font-size: .93rem; white-space: nowrap; }
.consent-rules .rule .remove { font-size: .88rem; color: var(--warn); justify-self: end; }
.consent-rules .rule .ticked { font-size: .95rem; }
.consent-rules .value-boxes { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; }
.consent-rules .value-boxes .choice { margin-top: 0; }
.consent-rules .value-boxes[hidden] { display: none; }
.consent-rules .rules-none { margin: 0; font-size: .95rem; }
.consent-rules .fixed { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; border: 1px dashed var(--line); border-radius: 6px; padding: 8px 12px; background: var(--page); }
.consent-rules .fixed b { font-weight: 600; }
.consent-rules .fixed .lock { font-size: .85rem; color: var(--muted); }
.consent-rules .add { display: inline-block; margin-top: 10px; font-weight: 600; }
.consent-rules .add[hidden] { display: none; }
.consent-rules .chip-picker { position: relative; }
.consent-rules .chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; border: 1px solid var(--line); border-radius: 6px; padding: 5px 6px; background: var(--paper); min-height: 38px; }
.consent-rules .chip { display: inline-flex; gap: 6px; align-items: center; background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: 999px; padding: 2px 6px 2px 10px; font-size: .88rem; }
.consent-rules .chip.no { background: var(--caution-soft); border-color: var(--caution-line); }
.consent-rules .chip .x { color: var(--muted); font-weight: 700; padding: 0 3px; background: none; border: 0; cursor: pointer; font: inherit; }
.consent-rules .chip .ct, .consent-rules .picker-pop .ct { color: var(--muted); font-size: .8rem; }
.consent-rules .chips input { border: 0; outline: 0; font: inherit; font-size: .88rem; min-width: 110px; flex: 1; padding: 2px 4px; margin: 0; }
.consent-rules .picker-pop { position: absolute; left: 0; right: 0; z-index: 5; margin-top: 4px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); box-shadow: 0 4px 12px rgba(0,0,0,.08); font-size: .9rem; max-height: 240px; overflow-y: auto; }
.consent-rules .picker-pop[hidden] { display: none; }
.consent-rules .picker-pop button { display: flex; justify-content: space-between; gap: 10px; width: 100%; padding: 6px 10px; background: none; border: 0; text-align: left; font: inherit; cursor: pointer; }
.consent-rules .picker-pop button + button { border-top: 1px solid var(--line); }
.consent-rules .picker-pop button:hover, .consent-rules .picker-pop button:focus { background: var(--accent-soft); }
.consent-rules .rule-lines { margin: 16px 0 6px; border-left: 3px solid var(--accent); padding: 4px 0 4px 12px; }
.consent-rules .rule-lines p { margin: 0 0 4px; font-size: .93rem; }
.consent-rules .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 640px) {
  .consent-rules .rule { grid-template-columns: auto minmax(0, 1fr) auto; }
  .consent-rules .rule select, .consent-rules .rule .combo { grid-column: 1 / 4; }
  .consent-rules .rule .is { grid-column: 1 / 2; }
  .consent-rules .rule [data-role=values] { grid-column: 2 / 3; }
  .consent-rules .rule .remove { grid-column: 3 / 4; }
  .consent-rules .fixed { grid-template-columns: 1fr; gap: 2px; }
}
.consent-options { border: 0; padding: 0; margin: 12px 0 0; }
.consent-options legend { font-weight: 600; padding: 0; }
.consent-count { color: var(--muted); font-size: 0.85rem; }
.consent-preview { background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: 8px; padding: 10px 12px; margin-top: 10px; }
.consent-preview.warn { background: var(--caution-soft); border-color: var(--caution-line); }
.consent-preview.muted { background: var(--page); border-color: var(--line); color: var(--muted); }

/* Settings, the Sync settings card in four groups (approved 2026-11-08). Scoped to its form. Each group in its own
   light gray box, with more room between the parts inside it (option B, approved 2026-11-13 18:06 PT). */
.sync-settings .group { background: var(--page); border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px 22px; margin-bottom: 20px; }
.sync-settings .group h3 { font-size: 0.8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; font-weight: 700; }
.sync-settings .group label { margin-top: 14px; }
.sync-settings .group h3 + label,
.sync-settings .group h3 + .consent-picker > label:first-child { margin-top: 6px; }
.sync-settings .group select { margin-top: 6px; }
.sync-settings .group > label,
.sync-settings .group .consent-rules .rules-label { margin-top: 24px; }
.sync-settings .group h3 + label,
.sync-settings .group h3 + .consent-rules .rules-label:first-child { margin-top: 6px; }
@media (max-width: 600px) { .sync-settings .group { padding: 14px 14px 18px; } }
.sync-settings .hint { margin-top: 6px; }
.sync-settings .consent-options .choice { margin-top: 4px; }
.sync-settings details.more { margin-top: 6px; font-size: 0.9rem; color: var(--muted); }
.sync-settings details.more summary { color: var(--accent); cursor: pointer; }
.sync-settings details.more p { margin: 6px 0 0; }
.sync-settings .save-row { border-top: 1px solid var(--line); padding-top: 18px; margin-top: 4px; }
/* Copy Zoho fields to Mailchimp (mockup syncsquirrel-fields-mockup-2026-11-09.png). Each row's box is display: contents,
   so its four cells sit in the grid; a hidden row needs its own display: none. */
.field-copies .map { display: grid; grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1.25fr) 70px; gap: 8px 10px; align-items: center; margin-top: 12px; }
.field-copies .map .dst { display: flex; align-items: center; gap: 8px; min-width: 0; }
.field-copies .map .dst select { flex: 1; min-width: 0; }
.field-copies .badge { white-space: nowrap; font-size: .78rem; font-weight: 600; border-radius: 999px; padding: 2px 9px; }
.field-copies .badge.std { background: #eef1f5; color: #3d444d; }
.field-copies .badge.same { background: var(--accent-soft); color: var(--accent); }
.field-copies .badge.ai { background: #ede7fb; color: #5b3fa6; }
.field-copies .sugg-note { margin-top: 12px; background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: 8px; padding: 9px 12px; font-size: .93rem; }
.field-copies a.add + .hint { margin-top: 6px; }
.field-copies .map .h { font-size: .85rem; color: var(--muted); font-weight: 600; }
.field-copies .map .row { display: contents; }
.field-copies .map .row[hidden] { display: none; }
.sync-settings .field-copies .map select { margin: 0; min-width: 0; width: 100%; }
.field-copies .map .arrow { text-align: center; color: var(--muted); }
.field-copies .map a.rm { font-size: .9rem; color: var(--warn); }
.field-copies a.add { margin-top: 12px; display: inline-block; font-weight: 600; }
.field-copies a.add[hidden] { display: none; }
.field-copies .preview { margin-top: 14px; background: var(--page); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; font-size: .93rem; }
.field-copies .preview b { font-weight: 600; }
.field-copies .preview .tag { display: inline-block; background: #eef1f5; border-radius: 999px; padding: 1px 9px; font-size: .85rem; }
.sync-settings .field-copies details.more { margin-top: 10px; }
.sync-settings .save-row .hint { margin-left: 10px; }
@media (max-width: 600px) {
  .field-copies .map { grid-template-columns: 1fr; }
  .field-copies .map > span:empty, .field-copies .map .arrow { display: none; }
}
.sync-settings .choices { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 6px; }
.sync-settings .choices .choice { margin-top: 0; }
/* Sync settings as a wizard during first setup (approved by Richie 2026-11-13 21:57 PT,
   sync-settings-wizard4-step{1..4}-2026-11-13.png; "Connect Mailchimp" first since 2026-11-14,
   sync-connect-step-after-{1..4}-2026-11-14.png; seven steps since 10:56 PT, sync-seven-step-*-2026-11-14.png).
   The settings-wizard controller sets data-wizard-step on the form;
   a part whose data-wizard-part doesn't name that step is hidden. Without scripts there is no data-wizard-step. */
.sync-settings[data-wizard-step="1"] [data-wizard-part]:not([data-wizard-part~="1"]),
.sync-settings[data-wizard-step="2"] [data-wizard-part]:not([data-wizard-part~="2"]),
.sync-settings[data-wizard-step="3"] [data-wizard-part]:not([data-wizard-part~="3"]),
.sync-settings[data-wizard-step="4"] [data-wizard-part]:not([data-wizard-part~="4"]),
.sync-settings[data-wizard-step="5"] [data-wizard-part]:not([data-wizard-part~="5"]),
.sync-settings[data-wizard-step="6"] [data-wizard-part]:not([data-wizard-part~="6"]),
.sync-settings[data-wizard-step="7"] [data-wizard-part]:not([data-wizard-part~="7"]) { display: none; }
.sync-settings[data-wizard-step]:not([data-wizard-step="7"]) .save-row,
.sync-settings[data-wizard-step] .save-row .hint { display: none; }
.sync-settings[data-wizard-step="4"] .group .consent-rules #consent-rules-unsubscribe-label { margin-top: 6px; }
/* Step 1, Connect Mailchimp: a line per connection with a check mark, and the Connect Mailchimp button. */
.sync-settings .wiz-conn p { margin: 0 0 10px; overflow-wrap: anywhere; }
.sync-settings .wiz-conn .ok { color: var(--accent); font-weight: 700; margin-right: 6px; }
.sync-settings .wiz-conn .act { margin-top: 14px; }
.sync-settings .wiz-conn .connection-warning { margin: 0 0 10px; }
.sync-settings > .hint { margin: 0; }
/* Steps 5 and 6 are More settings' boxes: in the wizard the box is only a holder, with no summary line or border. */
.sync-settings[data-wizard-step] details.more-settings { border: 0; padding: 0; margin: 0; background: none; }
.sync-settings[data-wizard-step] details.more-settings > summary { display: none; }
.sync-settings .wiz-optional { color: var(--muted); margin: 0 0 14px; }
.sync-settings .wiz-optional h3 { color: var(--ink); font-size: 1.05rem; margin: 0 0 4px; }
.sync-settings .wiz-optional p { margin: 0; }
.sync-settings .wiz-optional[hidden] { display: none; }
/* At 600px wide or less: seven short segments, the done steps and the current one colored, and "Step N of 7: name". */
.sync-settings .wiz-phone { display: none; }
.sync-settings .wiz-phone-bar { display: flex; gap: 4px; margin: 0 0 6px; }
.sync-settings .wiz-phone-bar i { flex: 1; height: 4px; background: var(--line); border-radius: 2px; }
.sync-settings .wiz-phone-bar i.on { background: var(--accent); }
.sync-settings .wiz-phone-label { font-weight: 700; margin: 0 0 18px; font-size: .95rem; }
@media (max-width: 600px) {
  .sync-settings ol.wiz-steps { display: none; }
  .sync-settings div.wiz-phone:not([hidden]) { display: block; }
}
/* Where the wizard puts focus when the step changes: a focus box only after Next, Back, or Change was pressed with the
   keyboard (data-wizard-focus, set by the settings-wizard controller; Richie's staging screenshots 2026-11-14 10:48 PT). */
.sync-settings [data-wizard-focus]:focus { outline: none; }
.sync-settings [data-wizard-focus="keyboard"]:focus { outline: 2px solid var(--accent); outline-offset: 2px; }
.sync-settings .wiz-steps { display: flex; gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; }
.sync-settings .wiz-steps li { flex: 1; border-top: 4px solid var(--line); padding-top: 8px; font-size: .9rem; color: var(--muted); }
.sync-settings .wiz-steps li.done { border-color: var(--accent); color: var(--ink); }
.sync-settings .wiz-steps li.now { border-color: var(--accent); color: var(--ink); font-weight: 700; }
.sync-settings .wiz-nav { display: flex; gap: 16px; align-items: center; margin: 4px 0 18px; }
.sync-settings .wiz-nav .back { color: var(--accent); text-decoration: underline; }
.sync-settings .wiz-summary { background: var(--page); border: 1px solid var(--line); border-radius: 10px; padding: 16px 20px; margin: 0 0 20px; }
.sync-settings .wiz-summary dt { font-weight: 600; margin-top: 12px; }
.sync-settings .wiz-summary dt:first-child { margin-top: 0; }
.sync-settings .wiz-summary dd { margin: 2px 0 0; color: var(--muted); }
.sync-settings .wiz-summary .change { color: var(--accent); font-size: .9rem; margin-left: 2px; }
.sync-settings .wiz-note { color: var(--muted); font-size: .92rem; margin: 0 0 12px; }
.sync-settings .wiz-steps[hidden], .sync-settings .wiz-nav[hidden], .sync-settings .wiz-summary[hidden], .sync-settings .wiz-note[hidden] { display: none; }
/* More settings: the three optional boxes (approved by Richie 2026-11-13 21:57 PT, sync-settings-later-*-2026-11-13.png). */
.sync-settings details.more-settings { border: 1px solid var(--line); border-radius: 10px; padding: 16px 20px; margin-bottom: 20px; background: var(--paper); }
.sync-settings details.more-settings > summary { cursor: pointer; list-style: none; display: grid; grid-template-columns: 18px 1fr; column-gap: 8px; }
.sync-settings details.more-settings > summary::-webkit-details-marker { display: none; }
.sync-settings details.more-settings > summary::before { content: "▸"; color: var(--accent); grid-row: 1 / 3; }
.sync-settings details.more-settings[open] > summary::before { content: "▾"; }
.sync-settings details.more-settings > summary b { color: var(--accent); }
.sync-settings details.more-settings > summary span { grid-column: 2; color: var(--muted); font-size: .92rem; margin-top: 2px; }
.sync-settings details.more-settings[open] > summary { margin-bottom: 16px; }
@media (max-width: 600px) {
  .sync-settings details.more-settings, .sync-settings .wiz-summary { padding: 14px 14px 16px; }
}

/* Form fields (2026-10-28). Each field follows its label, so display: block puts it on its own line under the label.
   Only fields in main: the header's Sign out form and the checkbox rows (.choice) keep their own look. */
main input[type="text"],
main input[type="password"],
main input[type="date"],
main select {
  display: block;
  width: 100%;
  max-width: 420px;
  margin-top: 4px;
  padding: 8px 10px;
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
}

main input[type="text"]:focus,
main input[type="password"]:focus,
main input[type="date"]:focus,
main select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(11, 110, 79, 0.2);
}

.flash { padding: 10px 14px; border-radius: 6px; background: #e6f4ea; border: 1px solid #a7d7b5; }
.flash-alert { background: #fdecea; border-color: #f5b5ab; color: var(--warn); }
.connection-warning { background: var(--caution-soft); border: 1px solid var(--caution-line); border-radius: 6px; padding: 10px 12px; margin: 10px 0 14px; }

/* /admin: clear space above each section heading, so it reads as the start of the next section. */
main.admin h2 { margin: 2.25rem 0 0.5rem; }
.admin-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: baseline; justify-content: space-between; }

table { width: 100%; border-collapse: collapse; background: var(--paper); }
th, td { text-align: left; padding: 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 0.85rem; color: var(--muted); }
.status-failed, .status-held { color: var(--warn); font-weight: 600; }
/* A wide table scrolls inside this box. A shadow on the right edge says there is more: the shadow stays at the box's
   edge (scroll), and a cover in the box's colour sits at the end of the table (local) and hides it once the table is
   scrolled to its end, or when the table fits. On a narrow screen the scrollbar always shows. */
.table-wrap {
  overflow-x: auto;
  background:
    linear-gradient(to right, rgba(255, 255, 255, 0), var(--paper) 60%) 100% 0 / 3rem 100% no-repeat local,
    linear-gradient(to right, rgba(31, 35, 40, 0), rgba(31, 35, 40, 0.18)) 100% 0 / 1.5rem 100% no-repeat scroll,
    var(--paper);
  scrollbar-color: #9aa4b2 transparent;
}

.table-wrap table { background: transparent; }

.table-wrap::-webkit-scrollbar {
  height: 10px;
}

.table-wrap::-webkit-scrollbar-thumb {
  border-radius: 5px;
  background: #9aa4b2;
}

@media (max-width: 900px) {
  .table-wrap { overflow-x: scroll; }
}

/* Landing page (2026-10-28): "/" for signed-out visitors. Wider than the other pages. */
main:has(> .home) { max-width: 1040px; }
body:has(.home) .bottom { max-width: 1008px; }

.button-large { padding: 11px 20px; border-radius: 8px; font-weight: 600; }

.hero { display: grid; gap: 32px; align-items: center; margin: 16px 0 48px; }
.hero h1 { font-size: 1.8rem; line-height: 1.15; margin: 0 0 16px; }
.hero h1:has(+ .hero-for) { margin-bottom: 8px; }
.hero-for { font-size: 1.05rem; font-weight: 600; color: var(--muted); margin: 0 0 20px; }
.subhead { font-size: 1.15rem; color: #3d444d; margin: 0 0 24px; }
.hero-note { color: var(--muted); font-size: 0.95rem; margin: 12px 0 0; }

@media (min-width: 860px) {
  .hero { grid-template-columns: 1fr 1.1fr; gap: 48px; }
  .hero h1 { font-size: 2.6rem; }
}

/* The example: Dana without SyncSquirrel (red) above Dana with SyncSquirrel (green). Each state holds a Mailchimp panel
   and a Zoho CRM panel side by side, also on a phone. */
.sync-example { margin: 0; display: grid; gap: 12px; }
.sync-state { border: 1px solid; border-radius: 12px; padding: 12px; }
.sync-state-without { background: var(--warn-soft); border-color: var(--warn-line); }
.sync-state-with { background: var(--accent-soft); border-color: var(--accent-line); }
.sync-state-title {
  margin: 0 0 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.sync-state-caption { margin: 8px 0 0; font-size: 0.85rem; }
.sync-state-without :is(.sync-state-title, .sync-state-caption) { color: var(--warn); }
.sync-state-with :is(.sync-state-title, .sync-state-caption) { color: var(--accent); }
.panels { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  box-shadow: 0 2px 10px rgba(31, 35, 40, 0.06);
  font-size: 0.9rem;
  min-width: 0;
}
.panel p { margin: 0; }
.panel-name { font-weight: 700; }
.row-name { font-weight: 600; overflow-wrap: anywhere; }
.row-name span { display: block; font-weight: 400; color: var(--muted); font-size: 0.8rem; }
.flag, .status { display: inline-flex; gap: 6px; align-items: center; margin-top: 4px !important; font-size: 0.82rem; }
.box {
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 3px;
  color: #fff;
  font-size: 0.7rem;
  line-height: 1;
}
.flag-stop .box { background: var(--warn); }
.flag-stop { color: var(--warn); font-weight: 600; }
.status { padding: 1px 8px; border-radius: 999px; font-weight: 600; }
.status-stop { background: var(--warn-soft); color: var(--warn); }
.status-neutral { background: #eef1f5; color: #3d444d; }

/* Read by screen readers, not shown. */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.home section { margin-bottom: 48px; }
/* "Why not Zapier or Zoho Flow?" strip under the hero (approved 2026-11-09). */
.hero:has(+ .home-compare) { margin-bottom: 24px; }
.home-compare { background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: 8px; padding: 12px 20px; margin: 0 0 48px; }
.home .home-compare h2 { font-size: 1.05rem; margin: 0 0 4px; }
.home-compare ul { margin: 0 0 4px; padding-left: 1.25em; display: grid; gap: 2px; }
.home-compare li { margin: 0; }
.home-compare p { margin: 0; }
.home h2 { font-size: 1.5rem; margin: 0 0 16px; }

.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: 16px; }
.steps li {
  counter-increment: step;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px 18px;
}
.steps li::before {
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-bottom: 8px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
}
.steps h3 { font-size: 1.05rem; margin: 0 0 4px; }
.steps p { margin: 0; }

.points { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.points li { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; }
.points strong { display: block; margin-bottom: 4px; font-size: 1.05rem; }

@media (min-width: 860px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
  .points { grid-template-columns: repeat(2, 1fr); }
}

#faq { max-width: 680px; }
#faq h3 { font-size: 1.05rem; margin: 24px 0 4px; }
#faq p { margin: 0; }

.cta {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 24px;
  text-align: center;
}
.cta h2 { margin-bottom: 8px; }
.cta p { margin: 0 0 16px; }
.cta .cta-links { margin: 16px 0 0; color: var(--muted); font-size: 0.95rem; }

/* Pricing page (2026-10-28): one plan card, centered, with questions and answers under it. */
.pricing-head { text-align: center; margin: 16px 0 24px; }
.pricing-head h1 { font-size: 2.1rem; line-height: 1.15; margin: 0 0 8px; }
.pricing-head .subhead { margin: 0; }

.plan {
  max-width: 420px;
  margin: 0 auto 48px;
  padding: 28px 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(31, 35, 40, 0.06);
  text-align: center;
}
.plan h2 { font-size: 1.15rem; margin: 0 0 12px; }
.plan p { margin: 0; }
.plan-price { font-size: 1.1rem; color: var(--muted); }
.plan-amount { font-size: 3rem; font-weight: 700; line-height: 1.1; color: var(--ink); }
.plan-unit { color: var(--muted); }
/* The early-access line (2026-11-08) runs to two or three lines, so a box with rounded corners, not a pill. */
.plan-trial {
  display: inline-block;
  margin-top: 12px !important;
  padding: 6px 12px;
  border-radius: 8px;
  background: #e6f4ea;
  color: var(--accent);
  font-weight: 600;
}
.plan-features { list-style: none; padding: 20px 0 0; margin: 20px 0 24px; border-top: 1px solid var(--line); display: grid; gap: 10px; text-align: left; }
.plan-features li { display: flex; gap: 10px; align-items: center; }
.plan-features .box { flex: none; background: var(--accent); }
.plan-button { display: block; }
.plan-note { margin-top: 10px !important; color: var(--muted); font-size: 0.9rem; }

/* "Why not just use Zapier or Zoho Flow?" (approved 2026-11-09): table first, then seven cards two across. Its button
   sits in .compare-cta, not .cta, which has the box of the home page's closing card. */
main:has(> .pricing) { max-width: 980px; }
body:has(.pricing) .bottom { max-width: 948px; }
.compare { margin: 0 0 48px; }
.compare h2 { font-size: 1.6rem; margin: 0 0 6px; }
.compare .lead { color: var(--muted); margin: 0 0 18px; font-size: 1.05rem; }
.compare h3.tbl { font-size: 1.1rem; margin: 0 0 8px; }
.compare .table-wrap { border: 1px solid var(--line); border-radius: 8px; margin-bottom: 26px; }
/* "What one mistake costs", under the table (approved by Richie 2026-11-09 17:57 PT). */
.compare .cost { background: var(--warn-soft); border: 1px solid var(--warn-line); border-radius: 10px; padding: 14px 18px; margin: 0 0 22px; }
.compare .cost h3 { margin: 0 0 6px; font-size: 1.05rem; color: var(--warn); }
.compare .cost p { margin: 0 0 6px; }
.compare .cost .src { color: var(--muted); font-size: .85rem; margin: 0; }
.compare table { min-width: 640px; }
.compare th, .compare td { vertical-align: top; padding: 9px 12px; }
.compare thead th.us { color: var(--accent); }
.compare td.us { background: var(--accent-soft); font-weight: 600; }
.compare tbody th { text-align: left; font-weight: 600; width: 30%; color: var(--ink); font-size: 0.95rem; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare .yes { color: var(--accent); font-weight: 700; }
.compare td.no { color: var(--muted); }
.wins { display: grid; grid-template-columns: 1fr; gap: 14px; margin-bottom: 18px; }
@media (min-width: 720px) { .wins { grid-template-columns: repeat(2, 1fr); } }
.win { background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 8px; padding: 14px 16px; }
.win h3 { font-size: 1.02rem; margin: 0 0 6px; }
.win p { margin: 0; }
.win .them { color: var(--muted); font-size: 0.9rem; margin-top: 8px; }
.win .them b { color: var(--ink); font-weight: 600; }
.compare .note { color: var(--muted); font-size: 0.88rem; margin: 10px 0 0; }
.compare-cta { text-align: center; margin: 18px 0 6px; }
.plan-compare { margin-top: 14px !important; font-size: 0.9rem; }

.pricing-faq { margin: 0 auto 24px; }
.pricing-faq h2 { font-size: 1.5rem; margin: 0 0 8px; }

/* Settings card "Mailchimp subscribers not in Zoho" (Q3 mockup, 2026-11-08). */
.big { font-size: 1.75rem; font-weight: 700; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 12px; }
.row label { margin-top: 0; }
.bar { height: 8px; background: #e7ebf2; border-radius: 4px; overflow: hidden; margin: 10px 0 4px; }
.bar span { display: block; height: 100%; background: var(--accent); }
.card.dim { opacity: 0.55; }
/* Q2 mockup part 1: a hold still waiting for a decision is yellow; done and discarded cards are plain. */
/* First check hold card (approved mockup 2026-11-09): its two buttons. */
.choices-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.hold-card.hold-pending { background: var(--caution-soft); border-color: var(--caution-line); }

/* How it works and Privacy restructure (mockup 2026-11-08). */
.rule { font-weight: 700; margin: 0 0 8px; }
.card:has(> .rule) ul { padding-left: 1.25rem; }
.updated { color: var(--muted); font-size: 0.9rem; margin: 0 0 8px; }
.earlier-changes-box { margin: 0 0 16px; }
.earlier-changes-title { color: var(--muted); font-size: 0.9rem; font-weight: 600; margin: 0 0 4px; cursor: pointer; }
.earlier-changes { color: var(--muted); font-size: 0.9rem; margin: 4px 0 0; padding-left: 20px; }
.earlier-changes li { margin: 0 0 2px; }
.in-short { background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: 8px; padding: 14px 20px; margin: 16px 0 20px; }
.in-short h2 { margin: 0 0 6px; }
.in-short ul { margin: 0; padding-left: 1.25rem; display: grid; gap: 4px; }
.table-box { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; margin-bottom: 24px; }
.stack-table ul { margin: 4px 0; padding-left: 1.1rem; }
.stack-table tr:last-child td { border-bottom: 0; }
.stored td:first-child { width: 50%; }
.stored td:last-child { width: 22%; }
.glance td:first-child { width: 50%; }
.glance { margin-top: 4px; }
.send-read { display: grid; gap: 4px 24px; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 12px 20px; margin-bottom: 16px; }
.send-read ul { margin: 0 0 8px; padding-left: 1.25rem; }
.send-read p { margin: 0 0 8px; }
.list-label { font-weight: 700; margin: 4px 0 4px !important; }
main > h3 { font-size: 1.05rem; margin: 16px 0 6px; }
@media (min-width: 760px) { .send-read { grid-template-columns: 1fr 1fr; } }
/* On a phone each row becomes a small block, with the column name above each cell. */
@media (max-width: 640px) {
  .stack-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .stack-table tr { display: block; padding: 10px 12px; border-bottom: 1px solid var(--line); }
  .stack-table tr:last-child { border-bottom: 0; }
  .stack-table td { display: block; width: auto !important; padding: 2px 0; border: 0; }
  .stack-table td::before { content: attr(data-label); display: block; font-size: 0.8rem; font-weight: 600; color: var(--muted); }
  .glance tr { padding: 10px 0; }
}

/* Settings card for people archived or bounced in Mailchimp (mockup parts 1 to 3, approved 2026-11-08). */
.opt-out-group-name { font-weight: 700; margin: 16px 0 4px; }
.opt-out-select { width: 150px; }
.opt-out-select .choice { margin-top: 0; font-weight: 600; color: var(--ink); white-space: nowrap; }
.archived-card input[type="checkbox"] { width: 16px; height: 16px; margin: 0; }
button[disabled] { opacity: 0.45; cursor: not-allowed; }
/* Busy buttons (approved 2026-11-09): while a form sends, Turbo disables its button and sets aria-busy on the form.
   The button stays readable ("Saving…") and the pointer shows the page is working. */
form[aria-busy="true"] button[disabled], form[aria-busy="true"] input[type="submit"][disabled] { opacity: 0.7; cursor: progress; }

/* Region waitlist (approved 2026-11-09): the page after a Zoho sign-in from outside the US data center. */
.waitlist h1 { font-size: 1.5rem; margin: 0 0 10px; }
.region { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--page); border: 1px solid var(--line); font-weight: 600; font-size: .9rem; }

/* /setup (approved 2026-11-09 from mockup syncsquirrel-setup-page-mockup-laptop-2026-11-09.png). Scoped to the page. */
.setup-page .lead { color: var(--muted); margin: 0 0 18px; }
.setup-page .need { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 14px 20px; margin-bottom: 18px; }
.setup-page .need ul { margin: 6px 0 0; padding-left: 20px; }
.setup-page .step { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px; margin-bottom: 14px; }
.setup-page .num { width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.setup-page .step h2 { margin: 4px 0 8px; }
.setup-page .shot { display: block; width: 100%; height: auto; margin-top: 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--page); }
@media (max-width: 600px) {
  .setup-page .step { grid-template-columns: minmax(0, 1fr); padding: 16px; }
}
/* Settings, "Finish setting up" (approved mockup 2026-11-09). fs- names: .steps is the Setup page's list. */
.setup-card { border-color: var(--accent-line); }
.setup-card h2 { margin-bottom: 4px; }
.setup-card > .hint { margin: 0; }
.fs-steps { list-style: none; margin: 14px 0 0; padding: 0; }
.fs-steps li { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); align-items: start; }
.fs-steps li:first-child { border-top: 0; }
.fs-dot { width: 28px; height: 28px; box-sizing: border-box; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .9rem; border: 2px solid var(--line); color: var(--muted); background: var(--paper); }
.fs-done .fs-dot { background: var(--accent); border-color: var(--accent); color: #fff; }
.fs-now .fs-dot { border-color: var(--accent); color: var(--accent); }
.fs-steps b { display: block; overflow-wrap: anywhere; }
.fs-steps .sub { color: var(--muted); font-size: .92rem; margin: 2px 0 0; overflow-wrap: anywhere; }
.fs-steps .act { margin-top: 10px; }
.fs-steps .button { padding: 9px 16px; font-weight: 600; }
.fs-steps .connection-warning { margin-top: 8px; }
.fs-later { opacity: .55; }
.fs-dimmed { opacity: .45; pointer-events: none; }
.dim-note { background: var(--page); border: 1px dashed var(--line); border-radius: 8px; padding: 10px 12px; color: var(--muted); font-size: .92rem; margin-bottom: 12px; }
#sync-settings { scroll-margin-top: 16px; }

/* N14 (approved 2026-11-09): the "Pause or delete" card at the bottom of Settings, its confirm box, and the yellow
   bar at the top of Settings and Activity while syncing is paused. */
.pause-delete .pd-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.pause-delete .pd-row:first-of-type { border-top: 0; }
.pause-delete .pd-row p { margin: 0; }
.pause-delete .pd-row .sub { color: var(--muted); font-size: .92rem; margin-top: 2px; }
.pause-delete .pd-row form, .paused-bar form { margin: 0; flex: none; }
.pause-delete button, .paused-bar button { white-space: nowrap; }
button.danger { background: var(--paper); color: var(--warn); border-color: var(--warn-line); }
button.danger-solid { background: var(--warn); color: #fff; border-color: var(--warn); }
button.danger-solid:disabled { opacity: .5; cursor: not-allowed; }
.delete-dialog h3 { font-size: 1.05rem; margin: 0 0 8px; }
.delete-dialog ul { margin: 6px 0 10px; padding-left: 20px; }
.delete-dialog input[type="text"] { width: 100%; margin: 4px 0 0; }
.paused-bar { border: 1px solid var(--caution-line); background: var(--caution-soft); border-radius: 10px; padding: 14px 18px; display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 16px; }
.paused-bar p { margin: 0; }
@media (max-width: 600px) {
  .pause-delete .pd-row, .paused-bar { flex-direction: column; align-items: flex-start; }
}

/* Activity redesign and the stopped line (approved by Richie 2026-11-09, syncsquirrel-activity-mockup-2026-11-09.png). */
.lead { color: var(--muted); margin: 0 0 18px; }
.button.secondary { background: var(--paper); color: var(--ink); border-color: var(--line); }
.needs { border: 1px solid var(--caution-line); background: var(--caution-soft); border-radius: 10px; padding: 16px 20px; margin-bottom: 18px; }
.needs h2 { font-size: 1.05rem; margin: 0 0 10px; }
.needs.ok { border-color: var(--accent-line); background: var(--accent-soft); }
.needs.ok h2 { margin: 0; }
.needs.ok .hint { margin: 4px 0 0; }
.need-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 10px 0; border-top: 1px solid var(--caution-line); }
.needs h2 + .need-row { border-top: 0; }
.need-row p { margin: 0; }
.need-row .sub { color: var(--muted); font-size: .9rem; margin-top: 2px; }
.need-row .button { white-space: nowrap; flex: none; }
.need-row.stop { background: var(--warn-soft); border: 1px solid var(--warn-line); border-radius: 8px; padding: 10px 12px; margin-bottom: 6px; }
.need-row.stop b { color: var(--warn); }
/* Needs-you actions (approved by Richie 2026-11-11 18:55 PT): the item's buttons side by side on the right, Done last. */
.need-row .acts { display: flex; gap: 8px; flex: none; align-items: center; }
.need-row .acts form { margin: 0; }
.button.done { background: transparent; color: var(--ink); border-color: var(--line); padding-left: 12px; padding-right: 12px; }
.sync-stopped { margin: 0 0 16px; }
.first { border: 1px solid var(--accent-line); background: var(--accent-soft); border-radius: 10px; padding: 16px 20px; margin-bottom: 18px; }
.first h2 { font-size: 1.05rem; margin: 0 0 8px; }
.first p { margin: 0; }
.first ul { margin: 6px 0 8px; padding-left: 20px; }
/* U13: Field copies in the last 30 days (mockups field-copy-undo-AFTER*-2026-11-11, approved by Richie 20:43 PT). */
.copies { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 16px 20px; margin-bottom: 18px; }
.copies h2 { font-size: 1.05rem; margin: 0 0 4px; }
.copies > .hint { margin: 0 0 8px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.copies .need-row { border-top: 1px solid var(--line); }
.copies > .hint + .need-row { border-top: 0; }
.copies .need-row.done { border: 1px solid var(--accent-line); background: var(--accent-soft); border-radius: 8px; padding: 10px 14px; margin: 4px 0; }
.copies .need-row.done + .need-row { border-top: 0; }
.copies .acts button[disabled] { white-space: nowrap; }
.week { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 16px 20px; margin-bottom: 18px; }
.week h2 { font-size: 1.05rem; margin: 0 0 12px; }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.tile { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; text-decoration: none; color: var(--ink); display: block; }
.tile:hover, .tile:focus { border-color: var(--accent); }
.tile .n { display: block; font-size: 1.7rem; font-weight: 700; line-height: 1.1; }
.tile .l { display: block; color: var(--muted); font-size: .88rem; }
.tile.bad .n { color: var(--warn); }
.chart { display: flex; align-items: flex-end; gap: 10px; height: 90px; margin: 18px 0 4px; padding-bottom: 2px; border-bottom: 1px solid var(--line); }
.chart div { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; }
.chart span { display: block; background: var(--accent); border-radius: 3px 3px 0 0; }
.chart span.u, .legend .key-u { background: #3b82c4; }
.days { display: flex; gap: 10px; }
.days span { flex: 1; text-align: center; font-size: .8rem; color: var(--muted); }
.legend { font-size: .82rem; color: var(--muted); margin: 6px 0 0; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; vertical-align: -1px; margin: 0 4px 0 8px; }
.legend i:first-child { margin-left: 0; }
.legend .key-o { background: var(--accent); }
h2.logh { font-size: 1.05rem; margin: 22px 0 6px; }
.tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 4px 0 12px; }
main .tools input[type=search] { flex: 1 1 160px; min-width: 0; max-width: 320px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; font: inherit; margin: 0; }
.chip { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); font-size: .9rem; color: var(--ink); text-decoration: none; }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
main .tools select { width: auto; margin: 0; padding: 6px 8px; }
.tools button { padding: 6px 12px; }
.showing { color: var(--muted); font-size: .9rem; margin: 8px 0 0; }
@media (max-width: 600px) {
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .need-row { flex-direction: column; align-items: flex-start; }
  .need-row .acts { flex-wrap: wrap; }
}

/* Coordinator QA 2026-11-09: Activity at the mockup's width, compact times, one tools row. */
main.wide { max-width: 980px; }
td.when { white-space: nowrap; }
.tools .chip { white-space: nowrap; }
.tools select { margin-left: auto; }

/* Typeahead pickers on Settings (combobox_controller.js, approved by Richie 2026-11-10 05:50 PT from
   syncsquirrel-typeahead-mockup-2026-11-09.png): a text box looking like the select it stands in for, a list under it,
   the matched letters in bold (no yellow), the modules on the right in grey, and a count line at the foot. */
main select[hidden] { display: none; }
.combo { position: relative; min-width: 0; max-width: 420px; }
.field-copies .combo { max-width: none; }
.field-copies .map .dst .combo { flex: 1; }
.sync-settings .group .combo { margin-top: 6px; }
.field-copies .map .combo { margin-top: 0; }
main .combo input[type="text"] { max-width: none; margin: 0; padding: 9px 34px 9px 12px; text-overflow: ellipsis; }
main .combo input[type="text"]:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); outline: 2px solid var(--accent); outline-offset: -2px; }
main .combo input[type="text"]:disabled { color: var(--muted); background: var(--page); cursor: not-allowed; }
.combo .chev { position: absolute; right: 13px; top: 50%; width: 7px; height: 7px; margin-top: -6px; border: solid var(--muted);
  border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); cursor: pointer; }
.combo-pop { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 20; background: var(--paper); border: 1px solid var(--line);
  border-radius: 8px; box-shadow: 0 8px 24px rgba(0, 0, 0, .12); padding: 4px; }
.combo-pop[hidden] { display: none; }
.combo-list { list-style: none; margin: 0; padding: 0; max-height: 264px; overflow-y: auto; }
.combo-option { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 8px 10px; border-radius: 6px; cursor: pointer; }
.combo-option:hover { background: var(--page); }
.combo-option.on { background: var(--accent-soft); }
.combo-option mark { background: none; color: var(--ink); font-weight: 700; }
.combo-label { min-width: 0; overflow-wrap: anywhere; }
.combo-where { color: var(--muted); font-size: .88rem; white-space: nowrap; }
.combo-group { padding: 8px 10px 2px; font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.combo-count { font-size: .82rem; color: var(--muted); padding: 6px 10px 4px; border-top: 1px solid var(--line); margin-top: 4px; }

/* Copy Zoho fields to Mailchimp, suggestions in their own boxes (mockups syncsquirrel-field-copy-mockup-2026-11-11,
   approved by Richie 2026-11-11 08:56 PT). */
.field-copies .empty-rule { margin: 14px 0 0; border-left: 3px solid var(--accent); padding: 2px 0 2px 12px; }
.field-copies .no-copies { margin-top: 14px; color: var(--muted); }
.field-copies .no-copies[hidden], .field-copies .map[hidden] { display: none; }
.field-copies .map label.clear { grid-column: 3 / span 2; display: flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: normal; color: var(--muted); margin: -2px 0 6px; }
.field-copies .map label.clear input { margin: 0; }
.field-copies .sugg-box { margin-top: 14px; border-radius: 8px; padding: 14px 16px; }
.field-copies .sugg-box.rules { background: var(--accent-soft); border: 1px solid var(--accent-line); }
.field-copies .sugg-box.ai { background: #f5f1fd; border: 1px solid #cbbdf0; }
.field-copies .sugg-box h4 { margin: 0 0 4px; font-size: 1rem; }
.field-copies .sugg-box > p { margin: 0 0 8px; color: var(--muted); font-size: .95rem; }
.field-copies .sugg-box > p b { color: var(--ink, inherit); }
.field-copies .sugg-row { display: grid; grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1.25fr) auto auto; gap: 6px 10px; align-items: center; padding: 3px 0; }
.field-copies .sugg-row .arrow { text-align: center; color: var(--muted); }
.field-copies .sugg-row a.leave-out { font-size: .9rem; color: var(--warn); }
.field-copies .use-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 10px; }
.field-copies .use-row button { margin: 0; }
.field-copies .ai-ask, .field-copies .ai-failed, .field-copies .ai-wait, .field-copies .ai-empty { margin-top: 14px; border: 1px dashed var(--line); border-radius: 8px; padding: 14px 16px; background: var(--page); }
.field-copies .ai-ask > p, .field-copies .ai-failed > p { margin: 0 0 10px; }
.field-copies .ai-ask > p.hint { margin: 10px 0 0; }
.field-copies .ai-button { background: #fff; color: #5b3fa6; border: 1px solid #cbbdf0; margin: 0; }
.field-copies .ai-wait { display: flex; align-items: center; gap: 10px; }
.field-copies .spinner { width: 16px; height: 16px; border: 2px solid #cbbdf0; border-top-color: #5b3fa6; border-radius: 50%; animation: field-copy-spin 0.9s linear infinite; flex: none; }
@keyframes field-copy-spin { to { transform: rotate(360deg); } }
/* The box with its controls off: before an audience is picked, and while the picked one's fields load; the line
   after another audience is picked (mockups sync-copy-fields-live-*-2026-11-14, approved by Richie 07:37 PT). */
/* "Suggest a rule with AI" under the agree rules (mockups ss-consent-ai-*-2026-11-15, approved by Richie 2026-11-15 13:31 PT). */
.consent-ai { margin: 12px 0; border: 1px dashed var(--line); border-radius: 8px; padding: 14px 16px; background: var(--page); }
.consent-ai > p { margin: 0 0 10px; }
.consent-ai > p.hint { margin: 10px 0 0; }
.consent-ai[data-controller=poll] { display: flex; align-items: center; gap: 10px; }
.consent-ai .ai-button { background: #fff; color: #5b3fa6; border: 1px solid #cbbdf0; margin: 0; }
.consent-ai .spinner { width: 16px; height: 16px; border: 2px solid #cbbdf0; border-top-color: #5b3fa6; border-radius: 50%; animation: field-copy-spin 0.9s linear infinite; flex: none; }
.consent-ai .pick { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; margin: 0 0 8px; }
.consent-ai .pick strong { font-size: 1rem; }
.consent-ai .why { color: var(--muted); flex-basis: 100%; margin: 0; }
.consent-ai .tag { font-size: .75rem; font-weight: 600; color: #5b3fa6; background: #f1ecfc; border-radius: 999px; padding: 2px 8px; }
.field-copies .copy-off .map, .field-copies .copy-off .add, .field-copies .copy-off > .hint, .field-copies .copy-off .ai-ask { opacity: .5; }
.field-copies .copy-off select, .field-copies .copy-off .ai-button, .field-copies .copy-off .add { cursor: not-allowed; }
.field-copies .copy-off .add { color: var(--muted); text-decoration: none; }
.field-copies .reason { color: var(--ink); background: var(--page); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; margin: 10px 0 14px; }
.field-copies .tip-wrap { position: relative; display: inline-block; }
.field-copies .tip { display: none; position: absolute; left: 0; top: calc(100% + 8px); width: 300px; max-width: calc(100vw - 48px); z-index: 5; background: #1f2328; color: #fff; font-size: .85rem; line-height: 1.35; padding: 8px 10px; border-radius: 6px; box-shadow: 0 4px 12px rgba(0,0,0,.2); }
.field-copies .tip::after { content: ""; position: absolute; left: 18px; bottom: 100%; border: 6px solid transparent; border-bottom-color: #1f2328; }
.field-copies .tip-wrap:hover .tip, .field-copies .tip-wrap:focus-within .tip { display: block; }
.field-copies .loading { color: var(--muted); margin: 10px 0 14px; }
.field-copies .load-failed { color: #b42318; margin: 10px 0 14px; }
.field-copies .sugg-used { margin: 10px 0 0; }
.field-copies .sugg-used:focus { outline: none; }
.field-copies .cleared { color: var(--ink); background: #fff7e0; border: 1px solid #e8d38a; border-radius: 8px; padding: 10px 12px; margin: 10px 0 14px; }
@media (max-width: 720px) {
  .field-copies .map label.clear { grid-column: 1; }
  .field-copies .sugg-row { grid-template-columns: 1fr auto; }
  .field-copies .sugg-row .arrow { display: none; }
}

/* Devil's advocate #5: Settings read-only for people who aren't Zoho Administrators. The fieldset only disables. */
fieldset.read-only-fields { border: 0; margin: 0; padding: 0; min-width: 0; }
.read-only-fields :disabled { cursor: not-allowed; }
.read-only-note { background: #fff8e1; border: 1px solid #f0d68a; border-radius: 6px; padding: 10px 14px; }

/* Stop all writes on /admin (U5, mockup approved by Richie 2026-11-11 10:18 PT). */
.write-stop { border: 1px solid var(--warn-line); border-radius: 10px; background: var(--paper); padding: 16px 20px; margin: 16px 0 24px; }
main.admin .write-stop h2 { margin: 0 0 6px; font-size: 1.05rem; }
.write-stop p { margin: 0 0 14px; color: var(--muted, #57606a); }
.write-stop-bar { border-radius: 10px; background: var(--warn); color: #fff; padding: 16px 20px; margin: 16px 0 24px; }
main.admin .write-stop-bar h2 { margin: 0 0 6px; font-size: 1.05rem; color: #fff; }
.write-stop-bar p { margin: 0 0 14px; }
.write-stop-bar button.write-stop-start { background: var(--paper); color: var(--warn); border-color: var(--paper); font-weight: 600; }

/* One person's page on Activity (approved by Richie 2026-11-11 10:18 PT, syncsquirrel-person-page-mockup-2026-11-11). */
.back { display: inline-block; margin-bottom: 6px; }
.answer { border: 1px solid var(--accent-line); background: var(--accent-soft); border-radius: 10px; padding: 14px 20px; margin-bottom: 18px; }
.answer p { margin: 0; }
.person-now { border: 1px solid var(--line); background: var(--paper); border-radius: 10px; padding: 16px 20px; margin-bottom: 18px; }
.person-now h2 { font-size: 1.05rem; margin: 0 0 10px; }
.person-now .state { display: grid; grid-template-columns: 130px 1fr; gap: 6px 14px; margin: 0; }
.person-now .state dt { font-weight: 600; }
.person-now .state dd { margin: 0; }
.row-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 6px 0 0; }
.row-actions form { margin: 0; }
.person-head { margin-bottom: 12px; }
.person-head h2 { margin: 0; }
@media (max-width: 700px) { .person-now .state { grid-template-columns: 1fr; } .person-now .state dt { margin-top: 6px; } }

/* Delete this person (approved by Richie 2026-11-11 13:01 PT): the last thing on one person's page. */
.delete-person{border:1px solid var(--line);background:var(--paper);border-radius:10px;padding:16px 20px;margin:6px 0 18px}
.delete-person h2{font-size:1.05rem;margin:0 0 6px}
.delete-person p{margin:0 0 10px}
.delete-person .sub{color:var(--muted);font-size:.92rem}
.delete-person .row-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap}
/* Delete this person, made safe (approved 2026-11-11 15:17 PT): Deleting... and the Mailchimp didn't confirm problem. */
.deleting{border:1px solid var(--accent-line);background:var(--accent-soft);border-radius:10px;padding:14px 20px;margin:0 0 18px}
.deleting p{margin:0 0 6px}.deleting p:last-child{margin:0}
.deleting .sub,.delete-problem .sub{color:var(--muted);font-size:.92rem}
.deleting .spin{display:inline-block;width:12px;height:12px;border:2px solid var(--accent-line);border-top-color:var(--accent);border-radius:50%;margin-right:8px;vertical-align:-1px;animation:spin 1s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion: reduce){.deleting .spin{animation:none}}
.delete-problem{border:1px solid var(--warn-line);background:var(--warn-soft);border-radius:10px;padding:14px 20px;margin:0 0 18px}
.delete-problem p{margin:0 0 8px}

/* /admin accounts list and account page (mockups syncsquirrel-admin-accounts-list-mockup-2026-11-11.png and
   syncsquirrel-admin-account-page-mockup-2026-11-11.png, approved by Richie 2026-11-11 15:19 PT). */
/* Status labels */
main.admin .pill { display: inline-block; white-space: nowrap; font-size: .82rem; font-weight: 600; border-radius: 999px; padding: 2px 10px; border: 1px solid; }
main.admin .pill.syncing { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent); }
main.admin .pill.paused { background: #eef1f5; border-color: var(--line); color: #3d444d; }
main.admin .pill.trial { background: var(--caution-soft); border-color: var(--caution-line); color: #7a5300; }
main.admin .pill.not-set-up { background: var(--paper); border-color: var(--line); color: var(--muted); border-style: dashed; }
main.admin .pill.stopped { background: var(--warn-soft); border-color: var(--warn-line); color: var(--warn); }

/* Accounts list */
main.admin table.account-list th, main.admin table.account-list td { padding: 12px 10px; vertical-align: middle; }
main.admin table.account-list tbody th { font-size: 1rem; color: var(--ink); font-weight: 600; }
main.admin table.account-list td.manage { text-align: right; }
main.admin table.account-list a.manage { font-weight: 600; }
main.admin .list-box { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--paper); }
main.admin .list-box table { background: transparent; }
main.admin .list-box tbody tr:last-child > * { border-bottom: 0; }
main.admin .muted { color: var(--muted); }
main.admin .small { font-size: .9rem; }

/* Account page */
main.admin .back { margin: 0 0 8px; }
main.admin .account-head { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin-bottom: 4px; }
main.admin .account-head h1 { margin: 0; }
main.admin .account-facts { color: var(--muted); margin: 0 0 20px; font-size: .95rem; }
main.admin .card h2 { margin: 0 0 6px; }
main.admin .card .lead { margin: 0 0 14px; }
main.admin .card p { margin: 0 0 10px; }
main.admin .row-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 14px; }
main.admin .fields { display: flex; flex-wrap: wrap; gap: 0 16px; align-items: flex-start; }
main.admin .fields > div { flex: 0 1 220px; min-width: 0; }
main.admin .fields label { margin-top: 10px; }
main.admin .fields input[type="date"], main.admin .fields select, main.admin .fields input[type="number"] { max-width: none; }
main.admin input[type="number"] {
  display: block; width: 100%; margin-top: 4px; padding: 8px 10px; font: inherit; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: 6px;
}
main.admin .now { font-weight: 600; }
main.admin dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 6px 0 0; }
main.admin dl.facts dt { color: var(--muted); }
main.admin dl.facts dd { margin: 0; }
main.admin .two-up { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
main.admin .two-up .card { margin-bottom: 0; }
main.admin .two-up { margin-bottom: 16px; }
main.admin table.recent th, main.admin table.recent td { padding: 7px 8px; font-size: .93rem; }

main.admin .delete-zone { margin-top: 48px; padding-top: 24px; border-top: 2px dashed var(--warn-line); }
main.admin .delete-card { border-color: var(--warn-line); }
main.admin .delete-card h2 { color: var(--warn); }
main.admin .delete-card input[type="text"] { max-width: 420px; }

@media (max-width: 640px) {
  main.admin h2 { margin-top: 1.75rem; }
  /* List: each row becomes a stacked block. */
  main.admin table.account-list thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  main.admin table.account-list, main.admin table.account-list tbody, main.admin table.account-list tr, main.admin table.account-list th, main.admin table.account-list td { display: block; width: 100%; }
  main.admin table.account-list tr { padding: 14px 14px; border-bottom: 1px solid var(--line); }
  main.admin .list-box tbody tr:last-child { border-bottom: 0; }
  main.admin table.account-list th, main.admin table.account-list td { border: 0; padding: 0; }
  main.admin table.account-list tbody th { font-size: 1.05rem; margin-bottom: 6px; }
  main.admin table.account-list td.state { margin-bottom: 8px; }
  main.admin table.account-list td.where { display: inline; width: auto; color: var(--muted); font-size: .92rem; }
  main.admin table.account-list td.where::before { content: attr(data-label) ": "; }
  main.admin table.account-list td.where + td.where::before { content: " · " attr(data-label) ": "; }
  main.admin table.account-list td.manage { text-align: left; margin-top: 10px; }
  main.admin table.account-list a.manage { display: block; text-align: center; padding: 9px 14px; border: 1px solid var(--accent); border-radius: 6px; text-decoration: none; }
  /* Buttons full width */
  main.admin .card button, main.admin .write-stop button, main.admin .write-stop-bar button { width: 100%; }
  main.admin .row-actions { flex-direction: column; align-items: stretch; }
  main.admin .fields > div { flex: 1 1 100%; }
  main.admin .two-up { grid-template-columns: 1fr; }
  main.admin dl.facts { grid-template-columns: 1fr; gap: 0; }
  main.admin dl.facts dd { margin-bottom: 8px; }
  main.admin .card { padding: 14px 16px; }
}

/* The line under every Sign in with Zoho CRM button (approved by Richie 2026-11-12 17:45 PT): small, muted, the page's
   font, and the alignment of the box it sits in. Written p.terms-line and kept last so it wins over .cta p and .plan p. */
p.terms-line { margin: 8px 0 0; color: var(--muted); font-size: 0.85rem; line-height: 1.4; }
