/*
 * Campaign Builder (Beta): two doors to getting a campaign mailed.
 *
 * Sits on the same page ground as the AI Chat (app.css paints the body), and
 * every colour comes from theme.css. White by default (Nick, 29 Sep 2026):
 * white cards told from the page by a line and a shadow, dark ink, fields and
 * washes as a touch of ink (--ink-soft and friends), and one solid crimson
 * button that is the single saturated thing on the page. The card for a person
 * is quieter than the card for the form on purpose — it has three things to
 * read and two to tap, and needs no competition.
 *
 * Dark mode is the black site of September 2026: frosted glass on the black
 * gradient — white at low opacity with a blur behind it, white text, one solid
 * white button. Those washes were designed for black, so the light rules carry
 * the token and the block at the end of this file (html[data-theme="dark"])
 * restores the old values only there. No white, black or rgba of either may
 * appear outside that block.
 *
 * Every rule here is used by this page alone. Anything two pages share belongs
 * in theme.css, not here — see AGENTS.md.
 */

/*
 * The page scrolls as a page.
 *
 * app.css, shared with the AI Chat, pins html and body to the viewport and
 * hides the body's overflow so the chat can scroll inside its own stage. This
 * page has no stage; it is a long form, and with those rules it could not be
 * scrolled at all on desktop or phone (reported 10 September 2026). The
 * override is here, not in app.css, because the chat still needs its lock.
 */
html, body { height: auto; min-height: 100%; }
body { overflow: visible; overflow-y: auto; }

.cb {
  max-width: 1040px;
  margin: 0 auto;
  padding: clamp(40px, 9vh, 96px) 20px 64px;
  text-align: center;
  color: var(--on-grad);
}

.cb .headline { margin-bottom: 12px; }
/* Settles from tight, not wide — otherwise "(Beta)" jumps lines. See .soon in app.css. */
.cb .headline .hw { letter-spacing: -0.03em; }
.cb .headline em {
  font-style: italic;
  font-weight: 500;
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  color: var(--on-grad-dim);
  opacity: 1;
}
.cb .headline-sub { margin-bottom: 18px; }

/* ---- which audience ---- */

.cb-audience {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 6px 10px;
  margin: 0 auto 34px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--on-grad-line);
  background: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.5;
}
.cb-audience-k { color: var(--on-grad-dim); font-weight: 500; letter-spacing: .02em; text-transform: uppercase; font-size: 12px; }
.cb-audience strong { font-weight: 600; }
.cb-audience-n { color: var(--on-grad-dim); }
.cb-audience-n:empty { display: none; }

/* ---- the two cards ---- */

.cb-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  text-align: left;
  margin-top: 6px;
}
@media (max-width: 860px) {
  .cb-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
}

.cb-card {
  position: relative;
  padding: 30px 28px 28px;
  border: 1px solid var(--on-grad-line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}
@media (max-width: 480px) {
  .cb-card { padding: 24px 18px 22px; border-radius: 18px; }
}

.cb-step {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .18em;
  color: var(--on-grad-dim);
}

.cb-title {
  margin: 0 0 8px;
  font-size: clamp(1.25rem, 2.6vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.cb-lead {
  margin: 0 0 22px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--on-grad-dim);
}

/* ---- the form ---- */

.cb-form { display: flex; flex-direction: column; gap: 18px; }

.cb-field { display: flex; flex-direction: column; gap: 7px; }

.cb-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .01em;
}
.cb-optional { font-weight: 400; color: var(--on-grad-dim); margin-left: 4px; }

.cb-help {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--on-grad-dim);
}

/* 16px or larger, always: iOS zooms into anything smaller when it is focused. */
.cb-input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--on-grad);
  font: inherit;
  font-size: 16px;
  line-height: 1.5;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.cb-input::placeholder { color: var(--text-faint); }
.cb-input:focus {
  outline: none;
  border-color: var(--text-faint);
  background: var(--surface);
  box-shadow: 0 0 0 4px var(--ink-softer);
}
.cb-textarea { resize: vertical; min-height: 72px; }

/* ---- the drop zone ---- */

.cb-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 26px 18px 22px;
  border-radius: 14px;
  border: 1.5px dashed var(--ink-line);
  background: var(--ink-soft);
  text-align: center;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.cb-drop:hover, .cb-drop:focus-visible, .cb-drop.is-over {
  border-color: var(--text-faint);
  background: var(--ink-softer);
  outline: none;
}
.cb-drop svg { opacity: .8; }
.cb-drop-text { font-size: 15px; }
.cb-drop-link { text-decoration: underline; text-underline-offset: 3px; }
.cb-drop-hint { font-size: 12.5px; line-height: 1.5; color: var(--on-grad); opacity: .95; }

.cb-files { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.cb-files:empty { display: none; }
.cb-file {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 6px 8px 6px 10px;
  border-radius: 10px;
  background: var(--ink-soft);
  font-size: 14px;
}
.cb-file-thumb {
  width: 34px; height: 34px; flex: none;
  border-radius: 7px;
  /* A navy tint, not a navy fill: a badge for the file type, not a button. */
  background: var(--navy-soft);
  object-fit: cover;
  display: grid; place-items: center;
  font-size: 10px; font-weight: 600; letter-spacing: .06em;
  color: var(--on-grad);
}
.cb-file-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cb-file-meta { color: var(--on-grad-dim); font-size: 12.5px; flex: none; }
.cb-file-x {
  flex: none;
  width: 44px; height: 44px;
  border: 0; background: none; color: var(--on-grad-dim);
  font-size: 20px; line-height: 1; cursor: pointer; border-radius: 10px;
}
.cb-file-x:hover, .cb-file-x:focus-visible { color: var(--on-grad); background: var(--ink-soft); outline: none; }
/* The danger tints are --danger (#B4233F) at low opacity, the way theme.css
   makes --crimson-soft; the dark block swaps in the old salmon wash. */
.cb-file.is-error { background: rgba(180, 35, 63, 0.10); }
.cb-file.is-error .cb-file-meta { color: var(--danger); }

/* ---- AI image ---- */

.cb-ai {
  border-radius: 14px;
  border: 1px solid var(--on-grad-line);
  background: var(--ink-soft);
  overflow: hidden;
}
.cb-ai-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 12px 14px;
  cursor: pointer;
  list-style: none;
}
.cb-ai-summary::-webkit-details-marker { display: none; }
.cb-ai-summary:focus-visible { outline: 2px solid var(--sky); outline-offset: -2px; border-radius: 14px; }
.cb-ai-icon {
  width: 36px; height: 36px; flex: none;
  display: grid; place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--ink-softer), var(--ink-soft));
}
.cb-ai-words { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cb-ai-title { font-size: 14.5px; font-weight: 600; }
.cb-ai-sub { font-size: 12.5px; color: var(--on-grad-dim); line-height: 1.4; }
.cb-ai-chevron {
  flex: none; width: 10px; height: 10px; margin-right: 4px;
  border-right: 2px solid var(--on-grad-dim); border-bottom: 2px solid var(--on-grad-dim);
  transform: rotate(45deg); transition: transform .2s ease;
}
.cb-ai[open] .cb-ai-chevron { transform: rotate(-135deg); }
.cb-ai-body { padding: 4px 14px 16px; display: flex; flex-direction: column; gap: 14px; }

.cb-ai-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }

.cb-pills { display: flex; width: 100%; gap: 4px; padding: 4px; border-radius: 14px; background: var(--ink-soft); }
.cb-pill {
  display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  min-width: 0; min-height: 60px; padding: 8px 7px;
  border: 0; border-radius: 10px;
  background: transparent; color: var(--on-grad-dim);
  font: inherit; font-size: 13.5px; font-weight: 500; cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
/* The three icons are different heights, so each sits in the same 20px slot
   (icon plus vertical margin), or the labels stair-step by half the height
   difference — Wide 4px above Tall in one row of buttons. */
.cb-pill::before { content: ''; width: 20px; height: 12px; margin: 4px 0; border: 1.5px solid currentColor; border-radius: 2px; }
.cb-pill[data-aspect="square"]::before { width: 16px; height: 16px; margin: 2px 0; }
.cb-pill[data-aspect="tall"]::before { width: 12px; height: 20px; margin: 0; }
/* The chosen shape is the raised chip: the page's surface lifted off the track. */
.cb-pill.is-on { background: var(--surface); color: var(--navy-ink); box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line); }
.cb-pill:focus-visible { outline: 2px solid var(--sky); outline-offset: 2px; }

.cb-secondary {
  min-height: 44px; padding: 0 18px;
  border-radius: 12px;
  border: 1px solid var(--ink-line);
  background: var(--ink-soft);
  color: var(--on-grad);
  font: inherit; font-size: 14.5px; font-weight: 600; cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}
.cb-secondary:hover { background: var(--ink-softer); }
.cb-secondary:focus-visible { background: var(--ink-softer); outline: 2px solid var(--sky); outline-offset: 2px; }
.cb-secondary[disabled] { opacity: .6; cursor: progress; }

.cb-ai-note { margin: 0; font-size: 13px; line-height: 1.5; color: var(--on-grad-dim); }
.cb-ai-note.is-error { color: var(--danger); }

.cb-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); align-items: start; gap: 10px; }
.cb-gallery:empty { display: none; }
.cb-gen {
  position: relative; margin: 0;
  border-radius: 12px; overflow: hidden;
  background: var(--ink-soft);
  border: 1px solid var(--on-grad-line);
}
/* Preserve the returned image's full composition and actual proportions. */
.cb-gen img { display: block; width: 100%; height: auto; }
.cb-gen figcaption {
  padding: 6px 8px; font-size: 11.5px; line-height: 1.35;
  color: var(--on-grad-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cb-gen.is-pending img { opacity: .35; }
.cb-gen-spin {
  position: absolute; inset: 0; display: grid; place-items: center;
}
.cb-gen-spin::after {
  content: ''; width: 22px; height: 22px; border-radius: 50%;
  border: 2.5px solid var(--ink-line); border-top-color: var(--text);
  animation: cb-spin .8s linear infinite;
}
@keyframes cb-spin { to { transform: rotate(360deg); } }

/* ---- errors, the button, the fine print ---- */

.cb-error {
  margin: 0; padding: 10px 14px;
  border-radius: 10px;
  background: rgba(180, 35, 63, 0.10);
  border: 1px solid rgba(180, 35, 63, 0.35);
  font-size: 14px; line-height: 1.5;
}

/* The one solid, saturated thing on the page: the brand's action colour, as
   on the Plan page and theme.css's .primary-btn. In dark it is the one solid
   white thing instead — see the block at the end. */
.cb-primary {
  position: relative;
  min-height: 54px;
  padding: 0 22px;
  border: 0;
  border-radius: 14px;
  background: var(--crimson);
  color: var(--on-dark);
  font: inherit; font-size: 16.5px; font-weight: 700; letter-spacing: -0.01em;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease, background .15s ease;
}
@media (hover: hover) {
  .cb-primary:hover { transform: translateY(-1px); background: var(--crimson-deep); box-shadow: var(--shadow-lg); }
}
.cb-primary:active { transform: translateY(0); }
.cb-primary:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }
.cb-primary[disabled] { opacity: .8; cursor: progress; }
.cb-primary-busy { display: none; }
.cb-primary.is-busy .cb-primary-text { visibility: hidden; }
.cb-primary.is-busy .cb-primary-busy {
  display: block; position: absolute; inset: 0; margin: auto;
  width: 22px; height: 22px; border-radius: 50%;
  /* Drawn in the button's own ink, so it is right on either fill. */
  border: 2.5px solid transparent;
  border-color: color-mix(in srgb, currentColor 28%, transparent);
  border-top-color: currentColor;
  animation: cb-spin .8s linear infinite;
}

.cb-fine {
  margin: -6px 0 0;
  text-align: center;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--on-grad-dim);
}

/* ---- done ---- */

.cb-done { text-align: center; padding: 8px 0 4px; }
.cb-done-mark {
  width: 56px; height: 56px; margin: 0 auto 14px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--navy); color: var(--on-dark);
  animation: cb-pop .45s cubic-bezier(.2, .9, .3, 1.3);
}
@keyframes cb-pop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.cb-done-title { margin: 0 0 8px; font-size: 1.25rem; font-weight: 600; letter-spacing: -0.02em; }
.cb-done-text { margin: 0 auto 16px; max-width: 420px; font-size: 15px; line-height: 1.65; color: var(--on-grad-dim); }
.cb-done-list {
  list-style: none; margin: 0 auto 18px; padding: 0;
  max-width: 420px; text-align: left;
  display: flex; flex-direction: column; gap: 6px;
  font-size: 14px;
}
.cb-done-list li { padding: 8px 12px; border-radius: 10px; background: var(--ink-soft); }
.cb-done-list li span { color: var(--on-grad-dim); }
.cb-done-foot { margin: 0; font-size: 14px; }
.cb-done-foot a { color: var(--on-grad); text-decoration: underline; text-underline-offset: 3px; }

/* ---- the person ---- */

.cb-card-contact { background: var(--surface-2); }

/* Each contact is a whole row, 56px tall: on a phone this is the thing a thumb
   has to hit, and a number set as inline text is a small target. */
.cb-contact {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 60px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid var(--on-grad-line);
  background: var(--surface);
  color: var(--on-grad);
  text-decoration: none;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.cb-contact + .cb-contact { margin-top: 10px; }
.cb-contact:hover, .cb-contact:focus-visible {
  background: var(--surface);
  border-color: var(--text-faint);
  box-shadow: var(--shadow-sm);
  outline: none;
}
.cb-contact:focus-visible { outline: 2px solid var(--sky); outline-offset: 2px; }
@media (hover: hover) { .cb-contact:hover { transform: translateY(-1px); } }
.cb-contact:active { transform: translateY(0); }
.cb-contact-icon {
  width: 40px; height: 40px; flex: none;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--navy); color: var(--on-dark);
}
.cb-contact-words { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.cb-contact-k { font-size: 12px; font-weight: 500; letter-spacing: .02em; text-transform: uppercase; color: var(--on-grad-dim); }
.cb-contact-v { font-size: clamp(16px, 2.2vw, 18px); font-weight: 600; letter-spacing: -0.01em; overflow-wrap: anywhere; }

.cb-person {
  display: flex; flex-direction: column; gap: 2px;
  margin: 22px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--on-grad-line);
}
.cb-person-name { font-size: 15px; font-weight: 600; }
.cb-person-role { font-size: 13px; color: var(--on-grad-dim); }

.cb-checks {
  list-style: none; margin: 16px 0 0; padding: 0;
  display: flex; flex-direction: column; gap: 9px;
  font-size: 14px; line-height: 1.5; color: var(--on-grad-dim);
}
.cb-checks li { position: relative; padding-left: 22px; }
.cb-checks li::before {
  content: ''; position: absolute; left: 0; top: .55em;
  width: 10px; height: 5px;
  border-left: 2px solid var(--on-grad); border-bottom: 2px solid var(--on-grad);
  transform: rotate(-45deg); opacity: .85;
}

/* ---- the foot ---- */

.cb-foot {
  margin: 30px 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--on-grad-faint);
}
.cb-foot a {
  color: var(--on-grad);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

@media (prefers-reduced-motion: reduce) {
  .cb-done-mark { animation: none; }
  .cb-primary, .cb-contact, .cb-secondary { transition: none; }
}

/*
 * On a phone the footer wraps to two lines, and the shared 62px clearance
 * for the fixed tab bar (theme.css) leaves the second line trapped under it.
 * Padding, not margin: the body clips its overflow on this page, so a margin
 * after the last element adds nothing to what can be scrolled — measured, not
 * guessed. The audit had it 29px short; this gives it room and a little more.
 */
@media (max-width: 760px) {
  body.has-tabbar > .page-foot { margin-bottom: 0; padding-bottom: 132px; }
}


/* ---- dark: the black site, kept ----
   Frosted glass on the black gradient. Every value here was the page's look
   from 10 to 28 September 2026; the light rules above carry the token that
   means the same thing, and only this block may spell out a white. */
html[data-theme="dark"] .cb-audience { background: rgba(255, 255, 255, 0.08); }
html[data-theme="dark"] .cb-card {
  background: rgba(255, 255, 255, 0.075);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.45);
}
html[data-theme="dark"] .cb-card-contact { background: rgba(255, 255, 255, 0.06); }
html[data-theme="dark"] .cb-input { border-color: var(--on-grad-line); background: rgba(255, 255, 255, 0.09); }
html[data-theme="dark"] .cb-input:focus {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.13);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.10);
}
html[data-theme="dark"] .cb-drop { border-color: rgba(255, 255, 255, 0.35); background: rgba(255, 255, 255, 0.05); }
html[data-theme="dark"] .cb-drop:hover, html[data-theme="dark"] .cb-drop:focus-visible, html[data-theme="dark"] .cb-drop.is-over {
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.10);
}
html[data-theme="dark"] .cb-file, html[data-theme="dark"] .cb-pills, html[data-theme="dark"] .cb-gen, html[data-theme="dark"] .cb-done-list li { background: rgba(255, 255, 255, 0.08); }
html[data-theme="dark"] .cb-file-thumb { background: rgba(10, 22, 48, 0.55); }
html[data-theme="dark"] .cb-file.is-error { background: rgba(255, 120, 120, 0.16); }
html[data-theme="dark"] .cb-file.is-error .cb-file-meta, html[data-theme="dark"] .cb-ai-note.is-error { color: #FFD3D3; }
html[data-theme="dark"] .cb-ai { background: rgba(255, 255, 255, 0.05); }
html[data-theme="dark"] .cb-ai-icon { background: linear-gradient(135deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.08)); }
html[data-theme="dark"] .cb-pill.is-on { background: rgba(255, 255, 255, 0.92); color: var(--navy); box-shadow: none; }
html[data-theme="dark"] .cb-secondary { border-color: rgba(255, 255, 255, 0.5); background: rgba(255, 255, 255, 0.10); }
html[data-theme="dark"] .cb-secondary:hover, html[data-theme="dark"] .cb-secondary:focus-visible { background: rgba(255, 255, 255, 0.18); }
html[data-theme="dark"] .cb-gen-spin::after { border-color: rgba(255, 255, 255, 0.35); border-top-color: #fff; }
html[data-theme="dark"] .cb-error { background: rgba(255, 120, 120, 0.18); border-color: rgba(255, 160, 160, 0.4); }
/* The one solid white thing on the page. */
html[data-theme="dark"] .cb-primary { background: #fff; color: var(--navy); box-shadow: 0 10px 28px -12px rgba(0, 0, 0, 0.55); }
@media (hover: hover) {
  html[data-theme="dark"] .cb-primary:hover { background: #fff; box-shadow: 0 16px 34px -14px rgba(0, 0, 0, 0.6); }
}
html[data-theme="dark"] .cb-done-mark, html[data-theme="dark"] .cb-contact-icon { background: #fff; color: var(--navy); }
html[data-theme="dark"] .cb-contact { background: rgba(255, 255, 255, 0.07); }
html[data-theme="dark"] .cb-contact:hover, html[data-theme="dark"] .cb-contact:focus-visible {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: none;
}

/* The menu entry needs an audience before it can expose a working upload form. */
.cb-entry[hidden], .cb-entry [hidden] { display: none; }
.cb-entry h3 { margin: 0 0 10px; font-size: 18px; line-height: 1.5; }
.cb-entry-note { color: var(--text-dim); font-size: 14px; line-height: 1.7; margin: 0 0 20px; }
.cb-entry .cb-input { min-width: 0; max-width: 100%; text-overflow: ellipsis; }
/* WebKit's native select can ignore min-height; keep the picker easy to tap. */
.cb-entry select.cb-input { height: 48px; }
.cb-entry-button {
  width: 100%; min-height: 48px; margin-top: 14px; padding: 12px 16px;
  border: 1px solid var(--navy-ink); border-radius: 12px;
  background: var(--navy-soft); color: var(--text);
  font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
}
.cb-entry-button:hover:not(:disabled) { background: var(--surface-3); }
.cb-entry-button:disabled { color: var(--text-faint); border-color: var(--line); background: var(--surface); cursor: default; }
.cb-entry-drafts { margin-top: 26px; }
.cb-entry-drafts ul { padding: 0; margin: 0; list-style: none; display: grid; gap: 8px; }
.cb-entry-drafts a {
  display: block; padding: 12px 14px; min-height: 48px;
  border: 1px solid var(--line-strong); border-radius: 12px;
  color: var(--text); background: var(--surface); line-height: 1.6; text-decoration: none;
  overflow-wrap: anywhere;
}
.cb-entry-drafts a:hover { background: var(--surface-2); }
.cb-entry-actions { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 18px 0 0; }
.cb-entry-actions a, .cb-entry-retry {
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--navy-ink); font-size: 14px; font-weight: 500;
}
.cb-entry-retry { border: 0; padding: 0; background: none; font-family: inherit; cursor: pointer; text-decoration: underline; }
.cb-entry-retry[aria-busy="true"] { cursor: progress; text-decoration: none; }
/* A locked audience (1 Oct 2026): the whole form stays below, and this box
   above it says how to open the audience. Theme tokens only, so it is right
   in both modes. */
.cb-entry.is-locked {
  margin: 0 0 26px;
  padding: 18px 18px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--ink-soft);
}
.cb-entry.is-locked .cb-entry-note { margin-bottom: 4px; }
.cb-entry.is-locked .cb-entry-actions { margin-top: 10px; }
