.campaign-list { display: grid; gap: 12px; }
.campaign-card { min-width: 0; padding: 20px; border: 1px solid #d6e0da; border-left: 4px solid #61816c; border-radius: 8px; background: #fff; }
.campaign-card.is-critical { border-left-color: #ac4232; }
.campaign-card.is-featured { padding: 22px; }
.campaign-card-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px 20px; }
.campaign-card-heading h3 { min-width: 0; flex: 1; }
.campaign-card-heading .campaign-meta { justify-content: flex-end; }
.campaign-meta { display: flex; align-items: center; gap: 9px 14px; flex-wrap: wrap; font-size: .75rem; line-height: 1.5; color: #5d6a62; }
.campaign-priority { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; color: #355b43; }
.campaign-priority > span { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; border: 1px solid currentColor; border-radius: 50%; font-size: .7rem; }
.is-critical .campaign-priority { color: #a03324; }
.campaign-status { padding: 2px 8px; border-radius: 20px; background: #eef2ef; color: #526359; }
.campaign-updated { color: #315c86; font-weight: 650; }
.campaign-card h3 { margin: 10px 0 8px; font-size: 1.05rem; line-height: 1.4; overflow-wrap: anywhere; }
.campaign-card.is-featured h3 { font-size: 1.2rem; }
.campaign-summary { margin: 0 0 12px; line-height: 1.6; font-size: .9rem; white-space: pre-line; color: #55665c; overflow-wrap: anywhere; }
.campaign-card.is-compact:not(:has(.campaign-detail)) .campaign-summary { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.campaign-deadline, .campaign-snoozed { margin: 10px 0; font-size: .8rem; color: #5d665c; line-height: 1.5; }
.campaign-deadline.is-overdue { color: #a03324; font-weight: 600; }
.campaign-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 14px; }
.campaign-actions .button { font-size: .8rem; min-height: 38px; padding: 8px 12px; white-space: normal; text-align: left; }
.campaign-actions .button[aria-disabled="true"], .campaign-feedback .button[aria-disabled="true"] { opacity: .55; cursor: progress; }
.campaign-actions [data-campaign-action="dismiss"], .campaign-actions [data-campaign-action="fold"] { background: transparent; border-color: transparent; color: #5e6961; text-decoration: underline; text-underline-offset: 3px; }
.campaign-detail { padding-top: 18px; margin-top: 18px; border-top: 1px solid #e2e8e3; }
.campaign-detail-note, .campaign-folded-hint { font-size: .78rem; color: #66736b; line-height: 1.6; margin: 0 0 14px; }
.campaign-folded-hint { margin: 10px 0 0; }
.campaign-change { padding: 12px 14px; margin-bottom: 16px; border-radius: 6px; background: #f0f5f8; font-size: .85rem; color: #35566b; }
.campaign-change p { margin: 5px 0 0; overflow-wrap: anywhere; }
.campaign-feedback { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; font-size: .87rem; line-height: 1.6; color: #3f614b; }
.campaign-feedback:has(span:not(:empty)), .campaign-feedback:has(button) { padding: 0 0 16px; }
.campaign-feedback span[role="alert"] { color: #9a3527; }
.campaign-feedback .button { min-height: 36px; font-size: .8rem; padding: 6px 12px; }
.campaign-empty { margin: 0; padding: 6px 0; color: #69766e; font-size: .86rem; line-height: 1.6; }
.campaigns-history { min-width: 0; }
.campaign-history-toolbar { margin-bottom: 20px; }
.campaign-history-toolbar label { display: flex; flex-direction: column; gap: 8px; font-size: .86rem; font-weight: 600; max-width: 280px; }
.campaign-history-toolbar select { min-height: 42px; padding: 8px 12px; background: #fff; color: inherit; font: inherit; border: 1px solid #b9c8be; border-radius: 6px; }
.campaigns-home :is(button, a, select):focus-visible, .campaigns-history :is(button, a, select):focus-visible { outline: 3px solid #759e8a; outline-offset: 3px; }
@media (max-width: 680px) { .campaign-card, .campaign-card.is-featured { padding: 16px; } .campaigns-history .campaign-card-heading { flex-wrap: wrap; } .campaigns-history .campaign-card-heading .campaign-meta { justify-content: flex-start; } .campaign-actions { align-items: stretch; } .campaign-actions .button { min-height: 44px; } .campaign-meta { gap: 7px 10px; } }

/* The collapsed banner stays compact; opening details restores its natural height. */
.campaigns-home { box-sizing: border-box; min-width: 0; max-height: 225px; display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 12px 8px; border: 0; border-radius: 8px; background-color: rgb(26, 47, 63); background-image: url("/images/home-campaign-art.png"); background-repeat: no-repeat; background-position: right center; background-size: auto 100%; color: #fff; }
.campaigns-home:has(.campaign-detail) { max-height: none; background-size: auto 225px; background-position: right top; }
.campaign-carousel-stage { display: grid; grid-template-columns: 36px minmax(0, 1fr) 36px; align-items: stretch; gap: 14px; min-height: 0; flex: 1 1 auto; }
.campaign-carousel-slide { min-width: 0; min-height: 0; padding-right: clamp(0px, 8vw, 130px); }
.campaigns-home:not(:has(.campaign-detail)) .campaign-carousel-slide { overflow-y: auto; scrollbar-width: thin; scrollbar-color: #8da2ae transparent; }
.campaign-carousel-arrow { width: 36px; min-height: 44px; align-self: stretch; display: inline-flex; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: 8px; background: transparent; color: #fff; cursor: pointer; }
.campaign-carousel-arrow:hover:not(:disabled) { background: rgb(255 255 255 / 10%); }
.campaign-carousel-arrow:disabled { opacity: .3; cursor: default; }
.campaign-chevron { display: block; width: 13px; height: 13px; border-top: 3px solid currentColor; border-right: 3px solid currentColor; }
.campaign-chevron-left { transform: rotate(-135deg); }
.campaign-chevron-right { transform: rotate(45deg); }
.campaigns-home .campaign-card, .campaigns-home .campaign-card.is-featured { padding: 4px 0; border: 0; border-radius: 0; background: transparent; color: #fff; }
.campaigns-home .campaign-card-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, auto); gap: 8px 20px; }
#home-campaigns .campaign-card h3 { margin: 0; font-size: 1.08rem; line-height: 1.35; color: #fff; }
.campaigns-home .campaign-meta { min-width: 0; max-width: min(38vw, 38rem); flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; gap: 8px; scrollbar-width: thin; scrollbar-color: #8da2ae transparent; }
.campaigns-home .campaign-meta > * { flex-shrink: 0; white-space: nowrap; }
.campaigns-home .campaign-meta, .campaigns-home .campaign-priority, .campaigns-home .campaign-updated { color: #d5e6ee; }
.campaigns-home .is-critical .campaign-priority { color: #ffcab3; }
.campaigns-home .campaign-status { background: #314c5d; color: #f0f6fa; }
.campaigns-home .campaign-summary, .campaigns-home .campaign-highlight p { color: rgba(255, 255, 255, .9); }
.campaigns-home .campaign-summary { margin: 6px 0 0; line-height: 1.45; }
.campaigns-home .campaign-deadline, .campaigns-home .campaign-snoozed, .campaigns-home .campaign-detail-note, .campaigns-home .campaign-folded-hint, .campaigns-home .campaign-empty { color: #e0e9ee; }
.campaigns-home .campaign-deadline, .campaigns-home .campaign-snoozed { margin: 4px 0 0; line-height: 1.4; }
.campaigns-home .campaign-deadline.is-overdue { color: #ffcab3; }
.campaigns-home .campaign-actions { margin-top: 8px; }
.campaigns-home:not(:has(.campaign-detail)) :is(.campaign-card h3, .campaign-summary, .campaign-highlight h3, .campaign-highlight p) { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.campaigns-home:not(:has(.campaign-detail)) .campaign-actions { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; scrollbar-color: #8da2ae transparent; padding-bottom: 2px; }
.campaigns-home:not(:has(.campaign-detail)) .campaign-actions .button { flex: 0 0 auto; white-space: nowrap; }
.campaigns-home:not(:has(.campaign-detail)) :is(.campaign-deadline, .campaign-snoozed, .campaign-folded-hint) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.campaigns-home .campaign-folded-hint { margin: 4px 0 0; }
#home-campaigns .campaign-actions .button, #home-campaigns.campaigns-home .campaign-feedback .button, #home-campaigns .campaign-highlight .button { background: transparent; color: #fff; border: 1px solid #8da2ae; border-radius: 8px; }
#home-campaigns .campaign-actions .button.primary { background: #eef5f8; border-color: #eef5f8; color: rgb(26, 47, 63); }
#home-campaigns .campaign-actions [data-campaign-action="dismiss"], #home-campaigns .campaign-actions [data-campaign-action="fold"] { border-color: transparent; color: #e0e9ee; }
.campaigns-home .campaign-detail { border-color: #587181; }
.campaigns-home .campaign-detail .editorial-card-link, .campaigns-home .editorial-html a { color: #b8e4ff; }
.campaigns-home .editorial-html { color: #eef5f8; }
#home-campaigns .editorial-html :is(h2, h3, h4, h5, h6) { color: #fff; }
#home-campaigns.campaigns-home .button:hover:not(:disabled):not(.primary) { color: #fff; background: #304958; border-color: #b7cbd7; }
.campaigns-home .editorial-html pre { color: #eef5f8; background: #294454; border-radius: 8px; }
.campaigns-home .campaign-feedback { flex: 0 0 auto; color: #d5efd9; }
.campaigns-home .campaign-feedback:has(span:not(:empty)), .campaigns-home .campaign-feedback:has(button) { padding: 0 42px 4px; }
.campaigns-home .campaign-feedback span[role="alert"] { color: #ffcab3; }
.campaign-carousel-controls { display: flex; flex: 0 0 auto; align-items: center; justify-content: center; gap: 2px; min-width: 0; margin: 0 42px; overflow-x: auto; scrollbar-width: thin; }
.campaign-carousel-dot { flex: 0 0 auto; width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; padding: 0; background: transparent; border: 0; border-radius: 8px; cursor: pointer; }
.campaign-carousel-dot > span { width: 6px; height: 6px; background: #91a7b4; border-radius: 50%; }
.campaign-carousel-dot[aria-current="true"] > span { width: 18px; background: #fff; border-radius: 6px; }
.campaign-carousel-dot:disabled { cursor: progress; opacity: .55; }
.campaign-carousel-position { flex: 0 0 auto; margin-left: 10px; color: #d2e0e8; font-size: .72rem; }
.campaign-highlight { display: flex; align-items: center; justify-content: space-between; gap: 26px; min-height: 86px; padding: 4px 0; }
.campaign-highlight-copy { min-width: 0; flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 28px; }
.campaign-highlight-copy > :is(.campaign-highlight-label, h3, p) { grid-column: 1; }
.campaign-highlight-label { display: none; }
#home-campaigns .campaign-highlight h3 { margin: 0 0 6px; color: #fff; font-size: 1.08rem; line-height: 1.35; overflow-wrap: anywhere; }
.campaign-highlight p { margin: 0; line-height: 1.45; font-size: .9rem; overflow-wrap: anywhere; }
.campaign-highlight .button { grid-column: 2; grid-row: 1 / span 3; align-self: center; display: inline-flex; gap: 8px; align-items: center; min-height: 38px; font-size: .8rem; padding: 8px 12px; }
.campaign-highlight-image { width: 150px; max-width: 25%; height: 86px; object-fit: cover; border-radius: 8px; }
.campaigns-home :is(button, a):focus-visible { outline-color: #bedff4; outline-offset: -3px; }
@media (max-width: 680px) {
  .campaigns-home { padding: 8px 4px; background-image: linear-gradient(90deg, rgb(26 47 63) 40%, rgb(26 47 63 / 76%)), url("/images/home-campaign-art.png"); }
  .campaign-carousel-stage { grid-template-columns: 24px minmax(0, 1fr) 24px; gap: 6px; }
  .campaign-carousel-slide { padding-right: 0; }
  .campaign-carousel-arrow { width: 24px; }
  .campaign-chevron { width: 10px; height: 10px; border-width: 2px; }
  .campaigns-home .campaign-card-heading { grid-template-columns: minmax(0, 1fr) minmax(0, 44%); gap: 6px; }
  #home-campaigns .campaign-card h3, #home-campaigns .campaign-highlight h3 { font-size: 1rem; }
  .campaigns-home .campaign-meta { max-width: 100%; font-size: .7rem; }
  .campaigns-home .campaign-summary, .campaign-highlight p { font-size: .82rem; }
  .campaigns-home .campaign-deadline, .campaigns-home .campaign-snoozed { font-size: .72rem; }
  .campaigns-home .campaign-actions { margin-top: 6px; gap: 6px; }
  .campaigns-home .campaign-actions .button { font-size: .75rem; padding: 6px 9px; }
  .campaign-carousel-controls { margin: 0 28px; justify-content: safe center; }
  .campaigns-home .campaign-feedback:has(span:not(:empty)), .campaigns-home .campaign-feedback:has(button) { padding: 0 28px 2px; font-size: .75rem; }
  .campaign-highlight { gap: 10px; }
  .campaign-highlight-copy { display: block; }
  .campaign-highlight .button { margin-top: 6px; }
  .campaign-highlight-image { width: 64px; height: 64px; }
}

.campaigns-home-feedback { min-width: 0; }
.campaigns-home-feedback .campaign-feedback { padding-bottom: 0; }
