:root { --brand: #1f3a5f; --brand-2: #e8eef6; }
body { background: #f5f7fa; font-size: .95rem; }
.app-nav { background: var(--brand); }
.card { border: 0; box-shadow: 0 1px 3px rgba(16, 24, 40, .08); border-radius: 10px; }
.card-header { background: #fff; font-weight: 600; border-bottom: 1px solid #eef1f5; }
.stat .num { font-size: 1.9rem; font-weight: 700; line-height: 1; }
.stat .lbl { color: #6b7280; font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; }
.badge-Positive { background: #1a7f4b; }
.badge-Negative { background: #b42318; }
.badge-Urgent { background: #c4320a; }
.badge-Neutral { background: #667085; }
.status-Done { background: #e3f4e8; color: #1a7f4b; }
.status-Pending { background: #fdf1dc; color: #9a5b00; }
.carry { border-left: 4px solid #d97706; }
.table td, .table th { vertical-align: middle; }
.copy-box { white-space: pre-wrap; background: #f8fafc; border: 1px solid #e5e7eb; border-radius: 8px; padding: .75rem; }
.login-wrap { max-width: 380px; margin: 10vh auto; }
.pipeline .step { text-align: center; padding: .75rem .5rem; border-radius: 10px; background: #fff; box-shadow: 0 1px 3px rgba(16,24,40,.08); }
.pipeline .step .num { font-size: 1.5rem; font-weight: 700; }
.pipeline .arrow { align-self: center; color: #98a2b3; }
.post-card .copy-box { max-height: 220px; overflow: auto; }
.pipeline .step .badge { font-size: .8rem; }
/* Keep the full menu on one line on laptop screens (992px and up) */
@media (min-width: 992px) and (max-width: 1399.98px) {
  .app-nav .navbar-nav .nav-link { padding-left: .45rem; padding-right: .45rem; font-size: .9rem; }
  .app-nav .navbar-brand { font-size: 1.05rem; margin-right: .5rem; }
}
/* Priority = Red / Amber / Green (same as the Excel tracker) */
.prio-Critical { background: #f8d7da; color: #9b1c1c; }
.prio-High { background: #fff1cc; color: #8a5a00; }
.prio-Normal { background: #e3f4e8; color: #1a7f4b; }

/* ---- Workflow stages (class = stage-<slug>) ---- */
.stage-data-requested { background: #e0f2f1; color: #0f6b63; }
.stage-copy-pending { background: #fde8e8; color: #9b1c1c; }
.stage-creative-pending { background: #fdf1dc; color: #9a5b00; }
.stage-awaiting-approval { background: #e0ecff; color: #1d4ed8; }
.stage-approved-to-post { background: #ede4ff; color: #5b21b6; }
.stage-posted { background: #e3f4e8; color: #1a7f4b; }
.stage-with-department { background: #f2f4f7; color: #344054; border: 1px dashed #98a2b3; }
.stage-dropped { background: #f2f4f7; color: #667085; text-decoration: line-through; }

/* ---- Rapid response colour coding: Red / Amber / Green ---- */
:root { --sev-red: #d92d20; --sev-amber: #f79009; --sev-green: #079455; }
.sev-bg-red { background: var(--sev-red) !important; color: #fff; }
.sev-bg-amber { background: var(--sev-amber) !important; color: #1f1300; }
.sev-bg-green { background: var(--sev-green) !important; color: #fff; }
.sev-dot { display: inline-block; width: .7rem; height: .7rem; border-radius: 50%; vertical-align: middle; }
.sev-border-red { border-left: 6px solid var(--sev-red) !important; }
.sev-border-amber { border-left: 6px solid var(--sev-amber) !important; }
.sev-border-green { border-left: 6px solid var(--sev-green) !important; }
.sev-head-red { background: #fef3f2 !important; }
.sev-head-amber { background: #fffaeb !important; }
.sev-head-green { background: #ecfdf3 !important; }
tr.sev-row-red td:first-child { box-shadow: inset 5px 0 0 var(--sev-red); }
tr.sev-row-amber td:first-child { box-shadow: inset 5px 0 0 var(--sev-amber); }
tr.sev-row-green td:first-child { box-shadow: inset 5px 0 0 var(--sev-green); }
.sev-pick { display: block; padding: .8rem 1rem; border-radius: 10px; border: 2px solid #e4e7ec; background: #fff; cursor: pointer; height: 100%; }
.btn-check:checked + .sev-pick.sev-red { border-color: var(--sev-red); background: #fef3f2; }
.btn-check:checked + .sev-pick.sev-amber { border-color: var(--sev-amber); background: #fffaeb; }
.btn-check:checked + .sev-pick.sev-green { border-color: var(--sev-green); background: #ecfdf3; }
.countdown { font-variant-numeric: tabular-nums; }
.countdown.overdue { color: var(--sev-red); }
.countdown.soon { color: #b54708; }
.flag-strip a { text-decoration: none; }
.milestones li { margin-bottom: .15rem; }
.checklist .form-check { margin-bottom: .25rem; }
.huddle-table select.form-select { min-width: 140px; }

/* Live updates + notifications */
.live-pill { position: fixed; top: 64px; left: 50%; transform: translateX(-50%); z-index: 1080; border-radius: 2rem; }
.notes-menu { width: 340px; max-height: 70vh; overflow-y: auto; }
#live-toasts { z-index: 1090; }
#live-toasts .toast { border-left: 4px solid var(--bs-primary); }
.task-status-With-head { background: #fff3cd; color: #664d03; }
.task-status-Assigned { background: #cfe2ff; color: #084298; }
.task-status-In-progress { background: #e0cffc; color: #3d0a91; }
.task-status-Done { background: #d1e7dd; color: #0f5132; }
.task-status-Cancelled { background: #e9ecef; color: #6c757d; text-decoration: line-through; }
.task-status-Rework { background: #f8d7da; color: #842029; }
.task-status-Lead-review { background: #ffe5d0; color: #8a3b00; }
.task-status-Awaiting-approval { background: #cff4fc; color: #055160; }
