.message-stack { padding-top: 18px; }
.message { padding: 12px 16px; margin-bottom: 8px; border-radius: 8px; background: #eef3f8; border-left: 4px solid #173f70; }
.message.success { background: #e4f3eb; border-color: #22735a; }
.message.warning { background: #fff6dc; border-color: #c99035; }
.message.error { background: #fae7e7; border-color: #a33a3a; }
.workspace-nav { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 24px; }
.workspace-nav a { padding: 9px 14px; border: 1px solid #d9e0e8; border-radius: 999px; background: white; font-weight: 700; }
.workspace-nav a.active { background: #173f70; color: white; }
.workspace-nav span { display: inline-block; min-width: 22px; text-align: center; border-radius: 99px; background: #f7f3ea; color: #18253a; margin-left: 6px; }
.workspace-nav .workspace-public-link { margin-left: auto; border-color: #6d684c; color: #5f5b43; }
@media (max-width: 800px) { .workspace-nav .workspace-public-link { margin-left: 0; } }
.metric-row { display: flex; gap: 16px; margin-bottom: 20px; }
.metric-row > div { display: flex; gap: 10px; align-items: baseline; padding: 14px 18px; background: white; border: 1px solid #d9e0e8; border-radius: 10px; }
.metric-row strong { font-size: 1.8rem; }
.metric-row span { color: #617086; }
.language-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.inline-form { margin-top: 18px; }
.send-panel { display: flex; align-items: center; justify-content: space-between; gap: 30px; background: #f7f3ea; padding: 22px 26px; border-radius: 12px; margin-top: 28px; margin-bottom: 24px; }
.send-panel h2 { margin: .2em 0; }
.button:disabled { opacity: .45; cursor: not-allowed; }
.content-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin: 24px 0; }
.panel { background: white; border: 1px solid #d9e0e8; border-radius: 14px; padding: 24px; margin: 22px 0; }
.panel h2 { margin-top: 0; }
.notice.error { border-left-color: #a33a3a; background: #fff1f1; }
.people-metrics { flex-wrap: wrap; }
.source-badge { display: inline-block; margin: 0 4px 4px 0; padding: 3px 8px; border: 1px solid #d8ccb5; border-radius: 999px; background: #f7f3ea; font-size: .8rem; font-weight: 700; white-space: nowrap; }
.stacked-status { margin-bottom: 8px; }
.stacked-status small { display: block; margin-top: 3px; color: #617086; white-space: nowrap; }
.status-active, .status-confirmed { background: #dff2e9; color: #175d46; }
.status-pending, .status-warning { background: #fff0c9; color: #74520d; }
.status-inactive, .status-unsubscribed { background: #eceff2; color: #56606d; }
.status-covered { background: #e8edf5; color: #3e5878; }
.sortable-column { cursor: pointer; user-select: none; padding-right: 30px; position: relative; }
.sortable-column::after { content: "↕"; position: absolute; right: 11px; color: #718096; font-size: .85em; }
.sortable-column[aria-sort="ascending"]::after { content: "↑"; color: #173f70; }
.sortable-column[aria-sort="descending"]::after { content: "↓"; color: #173f70; }
.sortable-column:focus-visible { outline: 3px solid #c99035; outline-offset: -3px; }
.decision-form { min-width: 260px; }
.decision-form select { margin: 4px 0 8px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.membership-card { padding: 12px 0; border-bottom: 1px solid #d9e0e8; }
.button.danger { background: #842e2e; }
.danger-text { color: #842e2e; }
.danger-zone { margin-top: 36px; padding: 20px; border: 1px solid #d9a7a7; border-radius: 10px; background: #fff7f7; }
.danger-zone h2 { margin-top: 0; color: #842e2e; }
.danger-zone label { display: block; font-weight: 700; margin-bottom: 12px; }
.rich-text-toolbar { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px; border: 1px solid #b9c5d3; border-bottom: 0; border-radius: 8px 8px 0 0; background: #f4f6f8; }
.rich-text-toolbar button { padding: 6px 10px; border: 1px solid #aab6c4; border-radius: 5px; background: white; color: #18253a; cursor: pointer; }
.rich-text-editor { min-height: 210px; padding: 14px; border: 1px solid #b9c5d3; border-radius: 0 0 8px 8px; background: white; line-height: 1.55; }
.rich-text-editor:focus { outline: 3px solid rgba(201, 144, 53, .35); border-color: #8a6429; }
.rich-text-editor h2, .rich-text-editor h3 { margin: .8em 0 .35em; }

@media (max-width: 800px) {
  .language-grid, .content-grid { grid-template-columns: 1fr; }
  .send-panel { align-items: stretch; flex-direction: column; }
  .section-heading { align-items: stretch; flex-direction: column; }
}
.source-archive-card details{border-top:1px solid var(--line);padding:14px 0}.source-archive-card summary{cursor:pointer}.source-archive-text{white-space:pre-wrap;max-height:420px;overflow:auto;background:#f7f3ea;border:1px solid var(--line);padding:16px;font:13px/1.5 ui-monospace,monospace}.source-archive-card code{overflow-wrap:anywhere}
.reconciliation-batches{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));align-items:stretch}.reconciliation-batches>.reconciliation-batch-card{display:block;min-width:0;overflow-wrap:anywhere}.reconciliation-batch-heading{display:flex;align-items:baseline;gap:10px}.reconciliation-batch-card p{margin:.8rem 0 0}.reconciliation-batch-card .button{white-space:normal;text-align:center}@media(max-width:650px){.reconciliation-batches{grid-template-columns:1fr}}
.planning-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.planning-grid .card{margin:0}.planning-grid li{margin:.55rem 0}@media(max-width:800px){.planning-grid{grid-template-columns:1fr}}
/* Private Board file library */
.board-brand-downloads{display:flex;align-items:center;justify-content:space-between;gap:32px}.board-brand-downloads h2,.compact-heading h2{margin:.15rem 0}.compact-heading{margin-bottom:20px}.scan-summary{color:var(--muted);font-size:.85rem}.board-file-form .full-span{grid-column:1/-1}.table-note{display:block;color:var(--muted);margin-top:4px}.table-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.table-actions form{margin:0}.link-button{appearance:none;background:none;border:0;padding:0;color:var(--blue);font:inherit;cursor:pointer;text-decoration:underline}.status-pill{display:inline-block;border-radius:999px;padding:5px 9px;background:#ece8df;font-size:.75rem;font-weight:700}.status-clean{background:#e4eee0;color:#31522d}.status-infected,.status-error{background:#f5dfdc;color:#7c2f28}.status-pending,.status-engine_error,.status-signature_error{background:#fff0c9;color:#705518}@media(max-width:750px){.board-brand-downloads{align-items:flex-start;flex-direction:column}}

.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:.4rem;margin-bottom:3rem}.calendar-day{min-height:120px;padding:.6rem;border:1px solid #ccc;border-radius:6px;overflow-wrap:anywhere}.calendar-day time{font-weight:bold}.calendar-day p{font-size:.85rem}.calendar-muted{opacity:.35}.idea-board .rich-text-editor{min-height:45vh}.rich-text-editor{overflow-wrap:anywhere;max-width:100%;box-sizing:border-box}.rich-text-toolbar{flex-wrap:wrap}@media(max-width:600px){.calendar-grid{grid-template-columns:1fr}.calendar-day{min-height:auto}.calendar-muted{display:none}.idea-board .rich-text-editor{min-height:55vh}}

.concept-heading{display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap}.concept-heading h2{margin:0}.concept-heading .button{font-size:.85rem}#planned-participants{scroll-margin-top:7rem}.participant-result{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.7rem 0;border-bottom:1px solid #ddd;overflow-wrap:anywhere}.participant-result small{display:block}.picker-status{min-height:1.4em}@media(max-width:600px){.concept-heading .button{width:100%;text-align:center}.participant-result{flex-wrap:wrap}}

.record .concept-heading{border-bottom:1px solid var(--line);padding-bottom:12px;margin-bottom:20px}.record .concept-heading h2{border:0;padding:0;margin:0}

.event-workspace .card{width:100%;min-width:0;margin:20px 0}.event-workspace form,.event-workspace .field{min-width:0}.event-workspace input,.event-workspace textarea,.event-workspace select{max-width:100%}@media(max-width:600px){.event-workspace .card{padding:18px}}

.quarter-hour { display:flex; gap:0.5rem; min-width:0; }
.quarter-hour select { flex:1; min-width:0; }
.quarter-datetime { display:grid; gap:0.5rem; min-width:0; }

.generated-image-preview{display:block;width:100%;max-width:920px;height:auto;border-radius:8px;margin:16px auto}.event-workspace .actions{flex-wrap:wrap}

.event-navigation{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem;padding:1rem 0;border-bottom:1px solid var(--line);font-size:.9rem}.event-navigation a[aria-current="page"]{font-weight:700;text-decoration:underline;text-underline-offset:.2em}
