/* Focus site stylesheet, part 2 (docs/design/focus/focus.css from the
   Claude Design handoff, with stray greys moved to the tokens in
   switchboard.css), then the shell layout and phone rules. Class prefix fc-. */

/* PCD "Focus" site components. Builds on switchboard.css (tokens, shell, panels,
   buttons, chips, tables). Same fonts and colors. Class prefix: fc- */

/* Page header + tabs */
.fc-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px 24px; }
.fc-head-text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.fc-head-stats { display: flex; flex-wrap: wrap; gap: 22px; }
.fc-stat { display: flex; flex-direction: column; gap: 4px; }
.fc-stat-num { font: 800 20px/1.1 var(--sw-ui); }
.fc-tabs { display: flex; gap: 22px; overflow-x: auto; border-bottom: 1px solid var(--sw-line); }
.fc-tab { font: 600 13px var(--sw-ui); color: var(--sw-muted); padding: 12px 2px; border-bottom: 2px solid transparent; white-space: nowrap; }
.fc-tab:hover { color: var(--sw-ink); text-decoration: none; }
a.fc-tab.is-current, .fc-tab.is-current { color: var(--sw-ink); border-bottom-color: var(--sw-blue); }

/* Help: "?" button, What happens now strip, tip-level note */
.fc-q { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--sw-border); background: var(--sw-white); color: var(--sw-muted); font: 700 12px var(--sw-ui); display: inline-grid; place-items: center; cursor: pointer; padding: 0; flex: none; }
.fc-q:hover { border-color: var(--sw-blue); color: var(--sw-blue); }
.fc-now { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; padding: 14px 16px; border: 1px solid var(--sw-line); background: var(--sw-panel); border-radius: var(--sw-radius); }
.fc-now-label { display: inline-flex; align-items: center; gap: 8px; font: 600 11px/1.2 var(--sw-ui); letter-spacing: .1em; text-transform: uppercase; color: var(--sw-ink); white-space: nowrap; }
.fc-now-label::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--sw-yellow); }

/* Top bar search (matches the Focus mockup) */
.fc-search { display: flex; align-items: center; gap: 8px; border: 1px solid var(--sw-border-soft); border-radius: 6px; padding: 0 10px; height: 36px; min-width: 260px; background: var(--sw-ground); }
.fc-search input { border: 0; background: transparent; font: 400 13px var(--sw-body); flex: 1; min-width: 0; outline: none; color: var(--sw-ink); padding: 0; margin: 0; box-shadow: none; }
/* The input's own outline is off, so the box shows focus instead. */
.fc-search:focus-within { outline: 2px solid var(--sw-blue); outline-offset: 1px; border-color: var(--sw-blue); }
.fc-kbd { font: 600 11px/1 var(--sw-ui); padding: 4px 6px; border-radius: 4px; background: var(--sw-white); border: 1px solid var(--sw-border-soft); color: var(--sw-ink-2); }

/* Calendar date tile (Up next) */
.fc-date { width: 42px; text-align: center; border: 1px solid var(--sw-line); border-radius: 6px; padding: 5px 0; flex: none; }
.fc-date-mon { font: 700 10px/1.2 var(--sw-ui); color: var(--sw-red); text-transform: uppercase; }
.fc-date-day { font: 800 16px/1.2 var(--sw-ui); }
.fc-upnext { display: flex; gap: 12px; align-items: flex-start; }
.fc-now-text { flex: 1 1 360px; font: 400 15px/1.55 var(--sw-body); color: var(--sw-ink-2); }
.fc-now-text strong { font-family: var(--sw-ui); color: var(--sw-ink); }

/* Schedule: five milestone steps */
.fc-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; padding: 0 16px 16px; }
.fc-step { display: flex; flex-direction: column; gap: 7px; }
.fc-step-bar { height: 6px; border-radius: 2px; background: var(--sw-track); }
.fc-step.is-done .fc-step-bar { background: var(--sw-green); }
.fc-step.is-now .fc-step-bar { background: var(--sw-red); }
.fc-step-name { font: 600 13px/1.3 var(--sw-ui); }
.fc-step-date { font: 500 12px var(--sw-ui); color: var(--sw-muted); }
.fc-step.is-now .fc-step-date { color: var(--sw-red-ink); }

/* Lists of files, people, activity */
.fc-file-icon { width: 34px; height: 34px; border-radius: 6px; background: var(--sw-chip); display: grid; place-items: center; font: 700 10px var(--sw-ui); color: var(--sw-muted); flex: none; }
.fc-avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font: 700 11px var(--sw-ui); color: var(--sw-white); background: var(--sw-blue); flex: none; }
.fc-avatar.is-red { background: var(--sw-red); }
.fc-avatar.is-yellow { background: var(--sw-yellow); color: var(--sw-ink); }
.fc-avatar.is-grey { background: var(--sw-muted); }
.fc-grow { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.fc-sub { font: 400 13px/1.45 var(--sw-body); color: var(--sw-muted); }
.fc-feed { display: flex; flex-direction: column; gap: 12px; padding: 0 16px 16px; }
.fc-feed-item { display: flex; gap: 10px; font: 400 13px/1.45 var(--sw-body); color: var(--sw-ink-2); }
.fc-feed-when { font: 500 11px var(--sw-ui); color: var(--sw-muted); margin-top: 2px; }

/* Data hygiene funnel */
.fc-funnel { display: flex; flex-direction: column; gap: 10px; padding: 0 16px 16px; }
.fc-funnel-row { display: grid; grid-template-columns: 140px minmax(0, 1fr) 70px; gap: 12px; align-items: center; font: 500 13px var(--sw-ui); }
.fc-funnel-track { height: 10px; background: var(--sw-chip); border-radius: 3px; overflow: hidden; }
.fc-funnel-fill { height: 100%; background: var(--sw-blue); }
.fc-funnel-num { text-align: right; font-weight: 700; }

/* Forms */
.fc-form { display: flex; flex-direction: column; gap: 16px; padding: 16px; }
.fc-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.fc-field { display: flex; flex-direction: column; gap: 6px; }
.fc-field label, .fc-legend { font: 600 13px var(--sw-ui); color: var(--sw-ink); }
.fc-hint { font: 400 12px/1.4 var(--sw-body); color: var(--sw-muted); }
.fc-input { min-height: 42px; border: 1px solid var(--sw-border-strong); border-radius: 6px; padding: 9px 12px; font: 400 15px var(--sw-body); color: var(--sw-ink); background: var(--sw-white); width: 100%; }
.fc-input:focus { outline: 2px solid var(--sw-blue); outline-offset: 0; border-color: var(--sw-blue); }
.fc-choice { display: flex; flex-wrap: wrap; gap: 8px; }
.fc-choice label { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px; border: 1px solid var(--sw-border-strong); border-radius: 6px; font: 500 13px var(--sw-ui); cursor: pointer; }
.fc-choice input { accent-color: var(--sw-blue); }
.fc-steps-nav { display: flex; flex-direction: column; gap: 2px; }
.fc-steps-nav a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 6px; font: 500 13px var(--sw-ui); color: var(--sw-ink-2); min-height: 38px; }
.fc-steps-nav a.is-current { background: var(--sw-blue-tint); color: var(--sw-blue); }
.fc-num { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--sw-border-strong); display: grid; place-items: center; font: 700 11px var(--sw-ui); flex: none; background: var(--sw-white); }
.fc-num.is-done { background: var(--sw-green); border-color: var(--sw-green); color: var(--sw-ink); }

/* Metrics + charts */
.fc-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.fc-kpi { background: var(--sw-panel); border: 1px solid var(--sw-line); border-radius: var(--sw-radius); padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.fc-kpi-num { font: 800 24px/1 var(--sw-ui); }
.fc-kpi-sub { font: 500 12px var(--sw-ui); color: var(--sw-muted); }
.fc-chart { display: flex; align-items: flex-end; gap: 4px; height: 160px; padding: 0 16px; }
.fc-chart span { flex: 1; background: var(--sw-blue); border-radius: 2px 2px 0 0; min-width: 4px; }
.fc-chart-axis { display: flex; justify-content: space-between; padding: 8px 16px 16px; font: 500 11px var(--sw-ui); color: var(--sw-muted); }
.fc-bar-row { display: grid; grid-template-columns: 120px minmax(0, 1fr) 60px; gap: 12px; align-items: center; padding: 8px 16px; font: 500 13px var(--sw-ui); }
.fc-bar { height: 12px; border-radius: 3px; }

/* Staff: property list (Status, Approver, Partner...) and health markers */
.fc-props { padding: 12px 16px; }
.fc-prop { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; font: 500 13px var(--sw-ui); }
.fc-prop > span:first-child { color: var(--sw-muted); }
.fc-health { display: inline-flex; align-items: center; gap: 6px; font: 600 12px var(--sw-ui); white-space: nowrap; }
.fc-health::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--sw-green); }
.fc-health.is-warn::before { background: var(--sw-yellow); }
.fc-health.is-bad::before { background: var(--sw-red); }
.fc-health.is-off::before { background: var(--sw-off); }
.fc-pill-new { font: 700 10px/1 var(--sw-ui); padding: 3px 6px; border-radius: 9px; background: var(--sw-yellow); color: var(--sw-ink); margin-left: 6px; }
.fc-range { position: relative; height: 8px; background: var(--sw-chip); border-radius: 4px; }
.fc-range-band { position: absolute; top: 0; bottom: 0; background: var(--sw-band); border-radius: 4px; }
.fc-range-mark { position: absolute; top: -4px; width: 4px; height: 16px; border-radius: 2px; background: var(--sw-blue); }

@media (max-width: 760px) {
  .fc-steps { grid-template-columns: 1fr; gap: 12px; }
  .fc-step { display: grid; grid-template-columns: 6px 1fr auto; column-gap: 12px; align-items: center; }
  .fc-step-bar { width: 6px; height: 28px; grid-row: span 1; }
  .fc-grid-2 { grid-template-columns: 1fr; }
  .fc-funnel-row { grid-template-columns: 110px minmax(0, 1fr) 56px; }
  .fc-head-stats { gap: 16px; }
  .fc-search { min-width: 0; flex: 1 1 auto; }
  .fc-bar-row { grid-template-columns: 90px minmax(0, 1fr) 50px; }
}

/* ===== Shell layout (views/partials/nav.ejs) =====
   The sidebar is fixed on the left and the page leaves room for it, so
   every view keeps its own markup after the nav include. */
html { background: var(--sw-ground); }
body.fc-body, body:has(> .sw-side) { background: var(--sw-ground); }
body:has(> .sw-side) { padding-left: 232px; }
body > .sw-side { position: fixed; top: 0; left: 0; bottom: 0; width: 232px; overflow-y: auto; z-index: 50; font-family: var(--sw-ui); color: var(--sw-ink); box-sizing: border-box; }
.sw-side *, .sw-mbar *, .sw-topbar * { box-sizing: border-box; }
.sw-side a { text-decoration: none; }
.sw-nav a.is-current { background: var(--sw-blue-tint); color: var(--sw-blue); }
.sw-nav a .sw-dot { width: 8px; height: 8px; }
.sw-nav-count { letter-spacing: 0; }
/* Sidebar contrast (EJ, 11/09/2026): every link near-black, the main group
   and the section labels (Admin, Active campaigns) bold. */
.sw-side .sw-nav a { color: #111; }
.sw-side .sw-nav a:hover { color: #111; }
.sw-side .sw-nav a.is-current { color: var(--sw-blue); }
.sw-side > .sw-nav a { font-weight: 700; }
.sw-side .sw-side-group > .sw-label { font-weight: 800; color: #111; }
/* Links under Admin take the New campaign blue (EJ, 11/09/2026). */
.sw-side .sw-nav[aria-label="Admin"] a, .sw-side .sw-nav[aria-label="Admin"] a:hover { color: var(--sw-blue); }
.sw-side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 4px; }
.sw-person { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 6px; color: var(--sw-ink); }
a.sw-person:hover { background: var(--sw-hover); text-decoration: none; }
.sw-person .fc-avatar { width: 28px; height: 28px; overflow: hidden; }
.sw-person .fc-avatar img { width: 100%; height: 100%; object-fit: cover; }
.sw-person-name { font: 600 13px/1.2 var(--sw-ui); }
.sw-person-org { font: 500 11px/1.2 var(--sw-ui); color: var(--sw-muted); }
.sw-logout { margin: 0; }
.sw-logout button { width: 100%; text-align: left; background: none; border: 0; padding: 8px 10px; min-height: 36px; border-radius: 6px; font: 500 13px/1.2 var(--sw-ui); color: var(--sw-muted); cursor: pointer; }
.sw-logout button:hover { background: var(--sw-hover); color: var(--sw-ink); }
.sw-brand { color: var(--sw-ink); }
a.sw-brand:hover { text-decoration: none; }
.sw-mbar .sw-brand-name { color: var(--sw-ink); }
.sw-topbar { font-family: var(--sw-ui); }
.sw-topbar .sw-btn { text-decoration: none; }
.fc-band { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 10px 28px; background: var(--sw-panel); border-bottom: 1px solid var(--sw-line); font: 500 13px/1.4 var(--sw-ui); color: var(--sw-ink-2); }
.fc-band form { margin: 0 0 0 auto; }
.fc-band-dark { background: var(--sw-ink); color: var(--sw-white); border-bottom-color: var(--sw-ink); }
.fc-band-dark .sw-chip { background: var(--sw-white); color: var(--sw-ink); }
.fc-band-preview { background: var(--sw-yellow-tint); color: var(--sw-yellow-ink); }
.fc-band-preview .sw-btn { min-height: 32px; padding: 6px 12px; }
/* Admin notes button sits in the page area, not over the sidebar. */
body:has(> .sw-side) .an { left: 248px; }
.sw-scrim { display: none; }

/* Phone: the sidebar becomes a slide-in menu opened from the top bar. */
@media (max-width: 760px) {
  body:has(> .sw-side) { padding-left: 0; }
  body > .sw-side { display: flex; transform: translateX(-100%); transition: transform .2s ease; width: min(280px, 86vw); box-shadow: none; visibility: hidden; }
  body.fc-menu-open > .sw-side { transform: none; visibility: visible; box-shadow: 0 10px 40px rgba(26, 26, 26, .25); }
  body.fc-menu-open .sw-scrim { display: block; position: fixed; inset: 0; background: rgba(26, 26, 26, .35); z-index: 45; border: 0; padding: 0; }
  .sw-mbar { display: flex; position: sticky; top: 0; z-index: 40; }
  .sw-topbar { padding: 12px 16px; }
  .fc-band { padding: 10px 16px; }
  body:has(> .sw-side) .an { left: 16px; }
  /* Touch targets at least 44px on phones. */
  .sw-nav a, .sw-logout button, .sw-btn, .sw-tab, .fc-tab, .fc-steps-nav a, .fc-choice label { min-height: 44px; }
  .fc-q { width: 44px; height: 44px; }
  .sw-switch { width: 52px; height: 32px; border-radius: 16px; }
  .sw-switch::after { top: 4px; left: 4px; width: 24px; height: 24px; }
  .sw-switch[aria-checked="true"]::after { left: 24px; }
  .fc-search { height: 44px; }
  .fc-hide-sm { display: none !important; }
}
@media (min-width: 761px) {
  .sw-mbar { display: none !important; }
}
@media print {
  body:has(> .sw-side) { padding-left: 0; }
  body > .sw-side, .sw-mbar, .sw-topbar { display: none !important; }
}

.fc-dot-red { background: var(--sw-red); }
.fc-dot-blue { background: var(--sw-blue); }
.fc-dot-yellow { background: var(--sw-yellow); }
.fc-dot-green { background: var(--sw-green); }
.sw-chip.fc-chip-ink { background: var(--sw-ink); color: var(--sw-white); }
.sw-person .avatar-img, .sw-person .avatar-initials { border-radius: 50%; display: inline-grid; place-items: center; flex: none; font-family: var(--sw-ui); font-weight: 700; color: var(--sw-white); }

/* Page area for views rebuilt in Focus. */
.fc-page { display: block; color: var(--sw-ink); font-family: var(--sw-ui); }
.fc-page .sw-content { margin: 0; }
a.fc-strong-link { color: var(--sw-ink); font-weight: 600; }

/* ===== Shared page pieces (client and staff) ===== */
.fc-page h1, .fc-page h2, .fc-page h3 { letter-spacing: normal; }
.fc-page .sw-h1 { letter-spacing: .01em; }
.fc-page .sw-panel-title { letter-spacing: .1em; }
.fc-dash, .fc-cols-pad { padding: 28px; gap: 28px; max-width: 1480px; }
.fc-dash .sw-col-main, .fc-dash .sw-col-side { gap: 24px; }
.fc-pad { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.fc-head-tools { display: inline-flex; align-items: center; gap: 10px; }
.fc-notice { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 12px 16px; border: 1px solid var(--sw-line); border-radius: var(--sw-radius); background: var(--sw-yellow-tint); font: 400 14px/1.5 var(--sw-body); color: var(--sw-yellow-ink); }
.fc-notice strong { font-family: var(--sw-ui); }
.fc-notice .sw-btn { margin-left: auto; }
.fc-notice.is-ok { background: var(--sw-green-tint); color: var(--sw-green-ink); }
.fc-notice.is-bad { background: var(--sw-red-tint); color: var(--sw-red-ink); }
.fc-now-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-left: auto; }
.fc-now-link { font: 600 13px var(--sw-ui); }
.fc-now .fc-now-text { margin: 0; }
.fc-task .fc-task-check { margin: 0; flex: none; }
.fc-task input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--sw-blue); margin: 0; }
.fc-due { font: 600 12px var(--sw-ui); width: 92px; text-align: right; color: var(--sw-ink); flex: none; }
.fc-due.is-late { color: var(--sw-red); }
.fc-warn { color: var(--sw-red-ink); }
.fc-job { font: 500 11px var(--sw-ui); color: var(--sw-muted); letter-spacing: .04em; margin-top: 3px; }
.fc-ministeps { display: flex; gap: 3px; margin-bottom: 6px; }
.fc-ministeps span { flex: 1; height: 6px; border-radius: 2px; background: var(--sw-track); }
.fc-ministeps .is-done { background: var(--sw-green); }
.fc-ministeps .is-red { background: var(--sw-red); }
.fc-ministeps .is-blue { background: var(--sw-blue); }
.fc-ministeps .is-yellow { background: var(--sw-yellow); }
.fc-stage { font: 500 12px var(--sw-ui); color: var(--sw-ink-2); }
.fc-nowrap { white-space: nowrap; }
.fc-projects { min-width: 640px; }
.fc-projects .fc-col-stage { width: 170px; }
.fc-projects .fc-col-next { width: 110px; }
.fc-projects .fc-col-status { width: 130px; }
a.fc-upnext { color: var(--sw-ink); }
a.fc-upnext:hover { text-decoration: none; }
a.fc-upnext:hover .fc-upnext-what { text-decoration: underline; }
.fc-upnext-what { font: 600 13px var(--sw-ui); }
.fc-date { display: flex; flex-direction: column; }
.fc-feed-dot { width: 6px; height: 6px; margin-top: 7px; }
.fc-person { display: flex; align-items: flex-start; gap: 10px; }
.fc-person .fc-avatar { width: 28px; height: 28px; object-fit: cover; }
.fc-person-name { font: 600 13px var(--sw-ui); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.sw-tab { text-decoration: none; display: inline-flex; align-items: center; }
a.sw-tab:hover { text-decoration: none; color: var(--sw-ink); }
.sw-tab.is-current { background: var(--sw-chip); color: var(--sw-ink); }
.sw-panel .sw-row form { margin: 0; }
@media (max-width: 760px) {
  .fc-dash, .fc-cols-pad { padding: 18px 16px; gap: 18px; }
  .fc-task { flex-wrap: wrap; }
  .fc-task .fc-grow { flex: 1 1 calc(100% - 40px); }
  .fc-due { width: auto; text-align: left; margin-left: 30px; }
  .fc-now-actions { margin-left: 0; }
}

/* ===== Older page markup inside the Focus shell =====
   Pages and partials still using the pre-Focus classes (style.css) get the
   Focus ground, lines, type and buttons here, so the whole signed-in site
   reads as one design. Pages rebuilt from the canvas use sw-/fc- classes. */
:root { --pc-cream: #FAFAFA; --pc-line: #E6E7E8; --pc-tint: #F1F2F3; }
body:has(> .sw-side) .page, body:has(> .sw-side) .page-wide { max-width: 1480px; margin: 0; padding: 28px 28px 72px; }
body:has(> .sw-side) .hero .bg-mark, body:has(> .sw-side) .eyebrow .dots { display: none; }
body:has(> .sw-side) .eyebrow .text { font: 600 11px/1.2 var(--sw-ui); letter-spacing: .1em; text-transform: uppercase; color: var(--sw-muted); }
body:has(> .sw-side) .page-header { margin-bottom: 24px; }
body:has(> .sw-side) .page-header h1 { font: 800 22px/1.15 var(--sw-ui); text-transform: uppercase; letter-spacing: .01em; margin: 0; }
body:has(> .sw-side) .page-header .accent { color: inherit; }
body:has(> .sw-side) .page-header p { font: 400 15px/1.55 var(--sw-body); color: var(--sw-muted); margin: 6px 0 0; }
body:has(> .sw-side) .card { border-color: var(--sw-line); border-radius: var(--sw-radius); padding: 16px; box-shadow: none; }
body:has(> .sw-side) .card + .card { margin-top: 16px; }
body:has(> .sw-side) .section-title { border-bottom: 0; padding-bottom: 0; margin-bottom: 12px; gap: 10px; }
body:has(> .sw-side) .section-title h2 { font: 600 11px/1.2 var(--sw-ui); letter-spacing: .1em; text-transform: uppercase; color: var(--sw-ink); }
body:has(> .sw-side) .cc { padding: 4px 16px; }
body:has(> .sw-side) .cc.is-open { padding-bottom: 16px; }
body:has(> .sw-side) .cc-btn { min-height: 44px; }
body:has(> .sw-side) .cc-name { font: 600 13px var(--sw-ui); text-transform: none; letter-spacing: 0; display: inline-flex; align-items: center; gap: 10px; }
body:has(> .sw-side) .cc-name::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--sw-green); flex: none; }
body:has(> .sw-side) .cc-attn .cc-name::before { background: var(--sw-red); }
body:has(> .sw-side) .cc-line { font: 500 12px var(--sw-ui); }
body:has(> .sw-side) .btn { background: var(--sw-panel); color: var(--sw-ink); border: 1px solid var(--sw-border); border-radius: 6px; padding: 10px 14px; min-height: 36px; font: 600 13px/1 var(--sw-ui); letter-spacing: 0; text-transform: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
body:has(> .sw-side) .btn:hover { background: #F6F6F5; text-decoration: none; }
body:has(> .sw-side) .btn-secondary { background: var(--sw-blue); border-color: var(--sw-blue); color: var(--sw-white); }
body:has(> .sw-side) .btn-secondary:hover { background: var(--sw-blue-ink); }
body:has(> .sw-side) .btn-danger { background: var(--sw-panel); border-color: var(--sw-red); color: var(--sw-red-ink); }
body:has(> .sw-side) .btn-danger:hover { background: var(--sw-red-tint); }
body:has(> .sw-side) .btn-small { padding: 7px 12px; min-height: 32px; font-size: 12px; }
body:has(> .sw-side) .btn-outline, body:has(> .sw-side) .btn-quiet { background: var(--sw-panel); color: var(--sw-ink); border: 1px solid var(--sw-border); }
body:has(> .sw-side) .btn[disabled] { opacity: .55; cursor: not-allowed; }
body:has(> .sw-side) .badge, body:has(> .sw-side) .pill { border-radius: 4px; font: 600 11px/1 var(--sw-ui); letter-spacing: 0; text-transform: none; padding: 5px 8px; }
body:has(> .sw-side) .badge-active { background: var(--sw-green-tint); color: var(--sw-green-ink); }
body:has(> .sw-side) .badge-on-hold { background: var(--sw-yellow-tint); color: var(--sw-yellow-ink); }
body:has(> .sw-side) .badge-completed { background: var(--sw-blue-tint); color: var(--sw-blue); }
body:has(> .sw-side) .badge-archived { background: var(--sw-chip); color: var(--sw-muted); }
body:has(> .sw-side) .badge-count { border-radius: 9px; padding: 3px 7px; }
body:has(> .sw-side) table th { background: #FAFAFA; padding: 10px 16px; font: 600 11px/1.2 var(--sw-ui); letter-spacing: .1em; color: var(--sw-muted); border-bottom: 1px solid var(--sw-line-soft); }
body:has(> .sw-side) table td { padding: 12px 16px; border-bottom: 1px solid var(--sw-line-soft); }
body:has(> .sw-side) .card > table, body:has(> .sw-side) .card > .table-wrap > table { margin: 0 -16px; width: calc(100% + 32px); }
body:has(> .sw-side) label { font: 600 13px var(--sw-ui); text-transform: none; letter-spacing: 0; color: var(--sw-ink); }
body:has(> .sw-side) input[type=text], body:has(> .sw-side) input[type=email], body:has(> .sw-side) input[type=password], body:has(> .sw-side) input[type=date], body:has(> .sw-side) input[type=number], body:has(> .sw-side) input[type=search], body:has(> .sw-side) input[type=url], body:has(> .sw-side) input[type=tel], body:has(> .sw-side) textarea, body:has(> .sw-side) select { border: 1px solid var(--sw-border-strong); border-radius: 6px; min-height: 42px; padding: 9px 12px; font: 400 15px var(--sw-body); }
body:has(> .sw-side) .fc-search input[type=search] { border: 0; min-height: 0; padding: 0; margin: 0; font-size: 13px; }
body:has(> .sw-side) input:focus, body:has(> .sw-side) textarea:focus, body:has(> .sw-side) select:focus { outline: 2px solid var(--sw-blue); outline-offset: 0; border-color: var(--sw-blue); }
body:has(> .sw-side) .notice-ok { background: var(--sw-green-tint); color: var(--sw-green-ink); border: 0; border-radius: 6px; }
body:has(> .sw-side) .error-message { background: var(--sw-red-tint); color: var(--sw-red-ink); border: 0; border-radius: 6px; }
body:has(> .sw-side) .note-box { background: var(--sw-yellow-tint); color: var(--sw-yellow-ink); border: 0; border-radius: 6px; }
body:has(> .sw-side) .callout { background: var(--sw-panel); border: 1px solid var(--sw-line); border-radius: var(--sw-radius); }
body:has(> .sw-side) .file-type-badge { border-radius: 6px; background: var(--sw-chip) !important; color: var(--sw-muted) !important; font: 700 10px var(--sw-ui); min-width: 34px; height: 34px; display: inline-grid; place-items: center; }
body:has(> .sw-side) .task-meta, body:has(> .sw-side) .help { font-family: var(--sw-body); color: var(--sw-muted); }
body:has(> .sw-side) .empty-state { font-family: var(--sw-body); color: var(--sw-muted); }

/* ===== Project header band (client and staff project pages) ===== */
.fc-pagehead { background: var(--sw-panel); border-bottom: 1px solid var(--sw-line); padding: 22px 28px 0; display: flex; flex-direction: column; gap: 14px; }
.fc-pagehead:not(:has(.fc-tabs)) { padding-bottom: 22px; }
.fc-head-chips { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.fc-head-chips .sw-chip { text-transform: capitalize; }
.fc-head-desc { margin: 2px 0 0; font: 400 14px/1.5 var(--sw-body); color: var(--sw-muted); max-width: 80ch; }
.fc-head-side { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px 24px; }
.fc-stat-num.is-red { color: var(--sw-red); }
.fc-pagehead .fc-tabs { border-bottom: 0; }
.fc-tab-wrap { display: inline-flex; align-items: center; gap: 6px; }
.fc-tab-wrap .fc-q { width: 22px; height: 22px; font-size: 11px; }
.fc-project { gap: 20px; }
.fc-project-cols { gap: 24px; }
.fc-project-cols > .sw-col-main, .fc-project-cols > .sw-col-side { gap: 16px; }
.fc-project-cols .card + .card { margin-top: 0; }
.fc-steps.fc-steps-flush { padding: 4px 0 0; }
.fc-step.is-overdue .fc-step-date { color: var(--sw-red-ink); }
.fc-tl-note { margin-left: 8px; }
body:has(> .sw-side) .section-jump { display: none; }
body:has(> .sw-side) .layout-rows { display: flex; flex-direction: column; gap: 20px; }
body:has(> .sw-side) .approval-box { border: 1px solid var(--sw-line); border-left: 3px solid var(--sw-red); border-radius: var(--sw-radius); background: var(--sw-panel); padding: 14px 16px; margin-top: 14px; }
body:has(> .sw-side) .approval-label { font: 600 11px/1.2 var(--sw-ui); letter-spacing: .1em; text-transform: uppercase; color: var(--sw-red-ink); }
body:has(> .sw-side) .terms-strip { background: var(--sw-panel); border: 1px solid var(--sw-line); border-radius: var(--sw-radius); padding: 12px 16px; font: 500 13px var(--sw-ui); }
@media (max-width: 760px) {
  .fc-pagehead { padding: 18px 16px 0; }
  .fc-pagehead:not(:has(.fc-tabs)) { padding-bottom: 18px; }
  body:has(> .sw-side) .section-jump { display: flex; }
}

body:has(> .sw-side) .section-title { justify-content: flex-start; flex-wrap: wrap; }
body:has(> .sw-side) .section-title > :last-child:not(h2):not(.fc-q) { margin-left: auto; }

/* ===== Client Files and Team ===== */
a.fc-link-sm, .fc-link-sm { font: 600 12px var(--sw-ui); }
.fc-file-name { overflow-wrap: anywhere; }
.fc-size { width: 70px; text-align: right; flex: none; }
.fc-credentials { flex-direction: column; align-items: flex-start; }
.fc-cred { display: flex; flex-direction: column; gap: 2px; }
.fc-cred code { font: 600 14px/1.4 ui-monospace, Menlo, monospace; color: var(--sw-ink); background: var(--sw-panel); padding: 4px 8px; border-radius: 4px; }
.fc-team { min-width: 680px; }
.fc-person-cell { display: inline-flex; align-items: center; gap: 10px; }
.fc-person-cell .avatar-img, .fc-person-cell .avatar-initials { border-radius: 50%; display: inline-grid; place-items: center; color: var(--sw-white); font-family: var(--sw-ui); font-weight: 700; flex: none; }
.sw-table td.fc-td-body { font: 400 13px var(--sw-body); color: var(--sw-ink-2); }
.sw-table td.fc-td-muted { color: var(--sw-muted); }
.sw-table td.fc-td-actions { text-align: right; white-space: nowrap; }
.fc-td-actions form { display: inline-block; margin: 0 0 0 6px; }
.sw-btn.fc-btn-danger { color: var(--sw-red-ink); }
.sw-btn.fc-btn-danger:hover { background: var(--sw-red-tint); }
.sw-table td.fc-edit-cell { background: var(--sw-ground); padding: 0; }
.fc-form-top { padding-top: 0; }
.fc-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.fc-flash { margin: 0 16px 8px; }
.fc-input[disabled] { background: var(--sw-ground); }
.fc-form .fc-input { margin: 0; }

/* ===== Start a new project (views/portal/intake.ejs, scoped #pcd app) =====
   Focus: steps listed on the left, one section at a time on the right. */
body:has(> .sw-side) #pcd { --bg: #FAFAFA; --line: #E6E7E8; --panel-2: #FAFAFA; --warn-bg: #FFF6C2; display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 0 28px; padding: 0 28px 72px; max-width: 1480px; align-items: start; }
body:has(> .sw-side) #pcd .intake-topline { grid-column: 1 / -1; max-width: none; padding: 22px 0 6px; }
body:has(> .sw-side) #pcd .intake-back { font: 600 13px var(--sw-ui); color: var(--sw-blue); }
body:has(> .sw-side) #pcd .stepbar { grid-column: 1; position: sticky; top: 16px; margin-top: 18px; background: transparent; }
body:has(> .sw-side) #pcd .stepbar-in { padding: 0; flex-direction: column; align-items: stretch; max-width: none; }
body:has(> .sw-side) #pcd .divider { display: none; }
body:has(> .sw-side) #pcd .steps { flex-direction: column; gap: 2px; }
body:has(> .sw-side) #pcd .steps button { width: 100%; opacity: 1; color: var(--sw-ink-2); font: 500 13px var(--sw-ui); text-transform: none; letter-spacing: 0; min-height: 38px; padding: 9px 10px; border-radius: 6px; justify-content: flex-start; text-align: left; }
body:has(> .sw-side) #pcd .steps button:hover { background: var(--sw-hover); }
body:has(> .sw-side) #pcd .steps button[aria-current="step"] { background: var(--sw-blue-tint); color: var(--sw-blue); }
body:has(> .sw-side) #pcd .steps .n { width: 22px; height: 22px; border: 1px solid var(--sw-border-strong); background: var(--sw-white); color: var(--sw-ink); font: 700 11px var(--sw-ui); }
body:has(> .sw-side) #pcd .steps button[aria-current="step"] .n { background: var(--sw-white); border-color: var(--sw-blue); color: var(--sw-blue); }
body:has(> .sw-side) #pcd .steps button.done .n { background: var(--sw-green); border-color: var(--sw-green); color: var(--sw-ink); }
body:has(> .sw-side) #pcd .saved { padding: 8px 10px; }
body:has(> .sw-side) #pcd main { grid-column: 2; max-width: none; margin: 0; padding: 18px 0 40px; }
body:has(> .sw-side) #pcd .eyebrow .dots { display: none; }
body:has(> .sw-side) #pcd .eyebrow { font: 600 11px/1.2 var(--sw-ui); letter-spacing: .1em; }
body:has(> .sw-side) #pcd .intro h1 { font: 800 22px/1.15 var(--sw-ui); letter-spacing: .01em; }
body:has(> .sw-side) #pcd .intro p { font: 400 15px/1.55 var(--sw-body); }
body:has(> .sw-side) #pcd .panel { border-radius: var(--sw-radius); padding: 16px; }
body:has(> .sw-side) #pcd .panel h2 { font: 600 11px/1.2 var(--sw-ui); letter-spacing: .1em; text-transform: uppercase; margin: 0 0 6px; }
body:has(> .sw-side) #pcd .panel .sub { font: 400 13px/1.5 var(--sw-body); }
body:has(> .sw-side) #pcd .name-card { border-left-width: 1px; border-left-color: var(--line); }
body:has(> .sw-side) #pcd input:not([type=checkbox]):not([type=radio]):not([type=file]), body:has(> .sw-side) #pcd select, body:has(> .sw-side) #pcd textarea { border: 1px solid var(--sw-border-strong); border-radius: 6px; min-height: 42px; font-family: var(--sw-body); }
@media (max-width: 760px) {
  body:has(> .sw-side) #pcd { grid-template-columns: minmax(0, 1fr); padding: 0 16px 60px; }
  body:has(> .sw-side) #pcd .stepbar { position: static; margin-top: 8px; }
  body:has(> .sw-side) #pcd .steps { flex-direction: row; flex-wrap: nowrap; overflow-x: auto; }
  body:has(> .sw-side) #pcd .steps button { width: auto; white-space: nowrap; min-height: 44px; }
  body:has(> .sw-side) #pcd main { grid-column: 1; }
}
body:has(> .sw-side) #pcd .intake-topline { display: flex; justify-content: space-between; gap: 12px; }
body:has(> .sw-side) #pcd .intake-back[style] { float: none !important; }
body:has(> .sw-side) #pcd .lab, body:has(> .sw-side) #pcd label.f > span { font: 600 13px var(--sw-ui); letter-spacing: 0; text-transform: none; color: var(--sw-ink); }
body:has(> .sw-side) #pcd .btn { border-radius: 6px; background: var(--sw-blue); border-color: var(--sw-blue); color: var(--sw-white); font: 600 13px/1 var(--sw-ui); letter-spacing: 0; text-transform: none; min-height: 40px; }
body:has(> .sw-side) #pcd .btn.ghost, body:has(> .sw-side) #pcd .btn.danger { background: var(--sw-white); border-color: var(--sw-border); color: var(--sw-ink); }
body:has(> .sw-side) #pcd .btn.danger { color: var(--sw-red-ink); }

/* ===== Campaign Performance, Campaign Details, Compare =====
   (performance/client-*.ejs, compare.ejs, channels.ejs; canvas: Client
   campaign performance). Keeps every pf- piece; gives it Focus panels,
   type and colour. */
.sw-chip.fc-chip-lg { font-size: 12px; padding: 7px 10px; text-transform: none; }
.fc-head-text .sw-label a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.fc-perf { gap: 16px; }
.fc-perf-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.fc-perf-tabs { flex-wrap: wrap; }
.sw-seg.fc-seg-links a { display: inline-flex; text-decoration: none; }
.sw-seg.fc-seg-links a span { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border-radius: 5px; font: 600 12px var(--sw-ui); color: var(--sw-muted); white-space: nowrap; }
.sw-seg.fc-seg-links a.is-on span { background: var(--sw-white); color: var(--sw-ink); box-shadow: 0 0 0 1px var(--sw-border); }
.sw-seg.fc-seg-links a:focus-visible { outline: 2px solid var(--sw-blue); outline-offset: 1px; border-radius: 5px; }
.fc-page .pf-question { margin: -4px 0 0; font: italic 400 14px/1.5 var(--sw-body); color: var(--sw-muted); }
.fc-page .pf-question .pf-counting-help { font-style: normal; font-size: 13px; }
.fc-page .pf-stack { gap: 16px; }
.fc-page .pf-label { font: 600 11px/1.2 var(--sw-ui); letter-spacing: .1em; color: var(--sw-muted); }
.fc-page .pf-note { font: 400 13px var(--sw-body); color: var(--sw-muted); }
.fc-page .pf-help { font-family: var(--sw-body); color: var(--sw-muted); }
.fc-page .pf-tiles { gap: 12px; }
.fc-page .pf-tile, .fc-page .pf-tile.is-hero { background: var(--sw-panel); border: 1px solid var(--sw-line); border-radius: var(--sw-radius); color: var(--sw-ink); padding: 14px 16px; gap: 6px; text-decoration: none; }
.fc-page a.pf-tile:hover { border-color: var(--sw-blue); text-decoration: none; }
.fc-page .pf-tile-top, .fc-page .pf-tile.is-hero .pf-tile-top { color: var(--sw-muted); }
.fc-page .pf-tile-value, .fc-page .pf-tile.is-hero .pf-tile-value { font: 800 24px/1 var(--sw-ui); color: var(--sw-ink); }
.fc-page .pf-tile.is-hero .pf-tile-value { color: var(--sw-blue); }
.fc-page .pf-tile-change, .fc-page .pf-tile.is-hero .pf-tile-change, .fc-page .pf-tile.is-hero .pf-goal-target { font: 500 12px var(--sw-ui); color: var(--sw-muted); }
.fc-page .pf-tile.is-hero .pf-bar, .fc-page .pf-bar { background: var(--sw-track); }
.fc-page .pf-tile.is-hero .pf-goal-status.is-met, .fc-page .pf-goal-status.is-met { color: var(--sw-green-ink); }
.fc-page .pf-tile.is-hero .pf-goal-status.is-track, .fc-page .pf-goal-status.is-track { color: var(--sw-blue); }
.fc-page .pf-tile.is-hero .pf-goal-status.is-behind, .fc-page .pf-goal-status.is-behind { color: var(--sw-red-ink); }
.fc-page .pf-tile.is-hero .pf-est, .fc-page .pf-est { background: var(--sw-chip); color: var(--sw-muted); border-radius: 4px; }
.fc-page .pf-info { color: var(--sw-muted); }
.fc-page .pf-mini, .fc-page .pf-minis .card { border: 1px solid var(--sw-line); border-radius: var(--sw-radius); padding: 14px 16px; box-shadow: none; }
.fc-page .pf-mini-value { font: 800 24px/1.1 var(--sw-ui); }
.fc-page .pf-hero-big { font: 800 56px/1 var(--sw-ui); color: var(--sw-blue); }
.fc-page .pf-hero-mid { font: 800 40px/1 var(--sw-ui); }
.fc-page .pf-hero-note { border-left-color: var(--sw-line); font-family: var(--sw-body); color: var(--sw-ink-2); }
.fc-page .pf-hero .pf-label.is-navy { color: var(--sw-blue); }
.fc-page .pf-summary { background: var(--sw-panel); border: 1px solid var(--sw-line); border-left: 3px solid var(--sw-blue); border-radius: var(--sw-radius); padding: 14px 16px; }
.fc-page .pf-summary::before { display: none; }
.fc-page .pf-summary.is-waiting { border-left-color: var(--sw-yellow); }
.fc-page .pf-summary p { font: 400 16px/1.55 var(--sw-body); color: var(--sw-ink-2); }
.fc-page .pf-empty { border: 1px dashed var(--sw-border); border-radius: var(--sw-radius); background: #FAFAFA; }
.fc-page .pf-empty h3 { font: 600 13px var(--sw-ui); text-transform: none; letter-spacing: 0; }
.fc-page .pf-empty p { font-family: var(--sw-body); }
.fc-page .pf-legend { font: 500 12px var(--sw-ui); text-transform: none; letter-spacing: 0; }
.fc-page .pf-version { border-color: var(--sw-line); border-radius: var(--sw-radius); }
.fc-page .pf-version.is-hold { background: #FAFAFA; }
.fc-page .pf-version-name { font: 600 13px var(--sw-ui); text-transform: none; }
.fc-page .pf-leading { border-radius: 4px; font: 600 11px/1 var(--sw-ui); letter-spacing: 0; text-transform: none; padding: 4px 7px; background: var(--sw-red-tint); color: var(--sw-red-ink); }
.fc-page .pf-facts strong { font: 700 15px/1.3 var(--sw-ui); }
.fc-page .pf-facts p { font-family: var(--sw-body); }
.fc-page .pf-goal-form-row { border-bottom-color: var(--sw-line-soft); }
.fc-page .pf-minitabs { border-bottom-color: var(--sw-line); }
.fc-page .pf-minitabs a.is-on { border-bottom-color: var(--sw-blue); }
.fc-page .pill { border-radius: 4px; font: 600 11px/1 var(--sw-ui); letter-spacing: 0; text-transform: none; padding: 5px 8px; }
.fc-page .pill, .fc-page .pill-soft, .fc-page .pill-outline { background: var(--sw-chip); color: var(--sw-ink-2); border: 0; }
.fc-page .pill.pill-green { background: var(--sw-green-tint); color: var(--sw-green-ink); }
.fc-page .pill.pill-gold { background: var(--sw-yellow-tint); color: var(--sw-yellow-ink); }
.fc-page .cmp-table th, .fc-page .cmp-table td { border-bottom-color: var(--sw-line-soft); }
.fc-page .cmp-table thead th { background: var(--sw-panel); font: 600 13px var(--sw-ui); letter-spacing: 0; color: var(--sw-ink); }
.fc-page .cmp-table th[scope="row"] { font: 600 11px var(--sw-ui); letter-spacing: .1em; }
.fc-page .cmp-table td.is-best { background: var(--sw-green-tint); }
.fc-page .cmp-best { border-radius: 4px; background: var(--sw-green); color: var(--sw-green-ink); font: 600 10px/1.4 var(--sw-ui); }
@media (max-width: 760px) {
  .fc-perf-bar { align-items: stretch; }
  .fc-perf-tabs { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  .sw-seg.fc-seg-links { width: 100%; }
  .sw-seg.fc-seg-links a { flex: 1; }
  .sw-seg.fc-seg-links a span { width: 100%; justify-content: center; padding: 0 6px; min-height: 44px; }
  .fc-page .pf-tiles { grid-template-columns: 1fr 1fr; }
  .fc-page .pf-hero-big { font-size: 44px; }
}
/* style.css spaces stacked cards with a top margin; inside the performance
   grids the grid gap does that job. */
body:has(> .sw-side) .fc-page .pf-stack > .card, body:has(> .sw-side) .fc-page .pf-minis > .card, body:has(> .sw-side) .fc-page .pf-grid-2 > .card, body:has(> .sw-side) .fc-page .pf-grid-3 > .card, body:has(> .sw-side) .fc-page .pf-grid-wide > .card, body:has(> .sw-side) .fc-page .pf-stack > section { margin-top: 0; }

/* ===== Staff dashboard (views/admin/dashboard.ejs; canvas: Staff dashboard) ===== */
.fc-sdash .sw-col-main, .fc-sdash .sw-col-side { gap: 16px; }
a.fc-kpi-link { color: var(--sw-ink); text-decoration: none; }
a.fc-kpi-link:hover { border-color: var(--sw-blue); text-decoration: none; }
.fc-group-head { padding: 10px 16px 6px; border-top: 1px solid var(--sw-line-soft); font: 600 11px/1.2 var(--sw-ui); letter-spacing: .1em; text-transform: uppercase; color: var(--sw-muted); }
.fc-wrap-row { flex-wrap: wrap; }
.fc-wrap-row .fc-grow a { color: inherit; text-decoration: underline; text-decoration-color: var(--sw-border); text-underline-offset: 2px; }
.fc-row-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.fc-row-actions form { margin: 0; }
a.fc-link-row { color: var(--sw-ink); text-decoration: none; }
a.fc-link-row:hover { background: #FAFAFA; text-decoration: none; }
a.fc-link-row::after { content: '›'; font: 600 18px var(--sw-ui); color: var(--sw-muted); }
.fc-note-line { font-size: 13px; }
.fc-alerts { display: flex; flex-direction: column; gap: 8px; }
.fc-alerts .callout { margin: 0; padding: 12px 16px; font: 500 13px/1.5 var(--sw-ui); border-left: 3px solid var(--sw-red); }
.fc-alerts .callout-gold { border-left-color: var(--sw-yellow); }
@media (max-width: 760px) {
  .fc-row-actions { margin-left: 0; width: 100%; }
}
.sw-panel-head a.fc-strong-link { font: 600 12px var(--sw-ui); }
a.sw-btn, a.sw-btn:hover { text-decoration: none; }
.sw-panel-head + .fc-pad { padding-top: 0; }

/* ===== Companies list and company page (views/admin/companies.ejs, company.ejs) ===== */
.fc-title-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; }
.fc-search.fc-search-panel { background: var(--sw-white); min-width: min(100%, 280px); }
.fc-tab-n { color: var(--sw-muted); font-weight: 500; margin-left: 4px; }
.sw-table a.fc-row-link, a.fc-row-link { color: var(--sw-ink); font-weight: 600; text-decoration: none; }
a.fc-row-link:hover { text-decoration: underline; }
.fc-click-row { cursor: pointer; }
@media (hover: hover) {
  .fc-click-row:hover > td { background: var(--sw-blue-hover); }
  .fc-click-row:hover a.fc-row-link { color: var(--sw-blue); text-decoration: none; }
}
.fc-pl-num { font: 600 12px var(--sw-ui); letter-spacing: .04em; color: var(--sw-muted); margin-top: 2px; }
.sw-table td.fc-row-go { font: 700 18px var(--sw-ui); color: var(--sw-blue); text-align: right; width: 32px; }
.sw-table td.fc-muted-cell, .fc-muted-cell { color: var(--sw-muted); }
.sw-table td.fc-body-cell { font: 400 13px var(--sw-body); }
.fc-warn-text { color: var(--sw-red-ink); }
.fc-co-cards { display: none; }
.fc-gap-16 { gap: 16px; }
.fc-cap { text-transform: capitalize; }
.fc-add-login { border-top: 1px solid var(--sw-line-soft); }
.fc-form-inline { flex-direction: row; flex-wrap: wrap; align-items: flex-end; }
.fc-form-inline .fc-field { flex: 1 1 260px; }
.fc-form-inline input, .fc-add-login input { margin: 0; }
.fc-narrow { max-width: 760px; }
.fc-settings { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 16px; align-items: start; }
.fc-inline-field { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font: 500 14px var(--sw-ui); }
.fc-inline-field label { font: inherit; margin: 0; }
body:has(> .sw-side) .fc-num-inline { width: 96px; min-height: 38px; margin: 0; }
body:has(> .sw-side) .fc-select-inline { width: auto; min-height: 38px; margin: 0; }
.fc-notice:not(.is-ok):not(.is-bad) { background: var(--sw-yellow-tint); color: var(--sw-yellow-ink); }
.fc-danger-panel { border-color: var(--sw-red-tint); }
.fc-page .dp-checks { display: flex; flex-direction: column; gap: 10px; margin: 0; }
.fc-page .dp-check { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--sw-line); border-radius: var(--sw-radius); font: 500 14px var(--sw-ui); cursor: pointer; }
.fc-page .dp-check input { margin-top: 3px; accent-color: var(--sw-blue); }
.fc-page .dp-check:has(input:checked) { border-color: var(--sw-blue); }
.fc-page .sw-panel-head-stack { flex-direction: column; align-items: flex-start; gap: 6px; }
@media (max-width: 760px) {
  .fc-co-table { display: none; }
  .fc-co-cards { display: block; }
  .fc-title-row .sw-btn { width: 100%; justify-content: center; }
  .fc-stack-table thead { display: none; }
  .fc-stack-table, .fc-stack-table tbody, .fc-stack-table tr, .fc-stack-table td { display: block; width: 100%; }
  .fc-stack-table tr { padding: 10px 16px; border-top: 1px solid var(--sw-line-soft); }
  .sw-table.fc-stack-table td { padding: 3px 0; border: 0; }
  .fc-stack-table td[data-label]::before { content: attr(data-label); display: block; font: 600 10px/1.4 var(--sw-ui); letter-spacing: .1em; text-transform: uppercase; color: var(--sw-muted); }
  .sw-table.fc-stack-table td.fc-td-actions { text-align: left; padding-top: 8px; }
  .fc-stack-table .fc-td-actions form { margin: 0 6px 6px 0; }
  .sw-table.fc-stack-table td.fc-row-go { display: none; }
}
.fc-page [hidden], .sw-content [hidden] { display: none !important; }
.sw-crumbs a { color: inherit; text-decoration: none; } .sw-crumbs a:hover { text-decoration: underline; }

/* ===== All Projects (views/admin/projects.ejs) ===== */
.fc-pl-head { align-items: center; }
.fc-pl-tabs { flex-wrap: wrap; }
.fc-tab-n.is-alert { color: var(--sw-red-ink); font-weight: 700; }
.fc-pl-note { margin: 0; padding: 0 16px 12px; font: 400 13px var(--sw-body); color: var(--sw-muted); }
.sw-table td.fc-job { font: 600 12px var(--sw-ui); letter-spacing: .04em; white-space: nowrap; }
.fc-reason { font: 600 12px var(--sw-ui); margin-top: 3px; }
.fc-reason.is-bad { color: var(--sw-red-ink); }
.fc-reason.is-warn { color: var(--sw-yellow-ink); }
.sw-table td.fc-small-cell { font-size: 13px; }
.fc-pl-table .fc-col-stage { width: 170px; }
.fc-page textarea { margin: 0; }
@media (max-width: 760px) {
  .fc-pl-head .fc-search-panel { width: 100%; margin-left: 0; }
  .fc-pl-tabs { overflow-x: auto; flex-wrap: nowrap; width: 100%; scrollbar-width: none; }
  .fc-pl-table .fc-col-stage { width: auto; }
}

/* ===== Staff project page (views/admin/project.ejs; canvas: Staff project page) ===== */
.fc-head-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.fc-head-actions form { margin: 0; }
.fc-head-actions .btn { min-height: 36px; }
.fc-approver { font: 500 13px var(--sw-ui); color: var(--sw-ink-2); display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.fc-link-btn { background: none; border: 0; padding: 0; font: 600 13px var(--sw-ui); color: var(--sw-blue); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.fc-stat-num.fc-red { color: var(--sw-red); }
.fc-nc-path { text-transform: none; letter-spacing: 0; font-weight: 500; }
.fc-steps-edit .fc-step { background: none; border: 0; padding: 6px 4px 8px; margin: 0; text-align: left; cursor: pointer; border-radius: 6px; color: var(--sw-ink); font: inherit; }
.fc-steps-edit .fc-step:hover { background: #F6F6F5; }
.fc-steps-edit .fc-step:focus-visible { outline: 2px solid var(--sw-blue); outline-offset: 1px; }
.fc-clip { font-size: 12px; }
.fc-sproject .layout-rows, .fc-sproject .layout-cols, .fc-sproject .layout-cols > .col-main, .fc-sproject .layout-cols > .col-side { gap: 16px; }
body:has(> .sw-side) .ms-edit { background: #FAFAFA; border: 1px solid var(--sw-line); border-radius: var(--sw-radius); }
body:has(> .sw-side) .action-panel { background: var(--sw-panel); border: 1px solid var(--sw-line); border-radius: var(--sw-radius); box-shadow: none; }
body:has(> .sw-side) .task-row { border-bottom-color: var(--sw-line-soft); }
body:has(> .sw-side) .task-title { font: 600 14px/1.35 var(--sw-ui); }
body:has(> .sw-side) .filter-pill { border-radius: 6px; border: 0; background: transparent; font: 600 12px var(--sw-ui); color: var(--sw-muted); text-transform: none; letter-spacing: 0; padding: 8px 10px; }
body:has(> .sw-side) .filter-pill.is-on { background: var(--sw-chip); color: var(--sw-ink); }
body:has(> .sw-side) .pill-navy { background: var(--sw-blue-tint); color: var(--sw-blue); }
body:has(> .sw-side) .pill-dark { background: var(--sw-ink); color: var(--sw-white); }
body:has(> .sw-side) .pill-gold { background: var(--sw-yellow-tint); color: var(--sw-yellow-ink); }
body:has(> .sw-side) .pill-red { background: var(--sw-red-tint); color: var(--sw-red-ink); }
body:has(> .sw-side) .pill-green { background: var(--sw-green-tint); color: var(--sw-green-ink); }
@media (max-width: 760px) {
  .fc-steps-edit { grid-template-columns: 1fr !important; }
  .fc-head-actions .sw-btn { flex: 1 1 auto; justify-content: center; }
}
body:has(> .sw-side) .btn-del { font: 600 12px var(--sw-ui); letter-spacing: 0; text-transform: none; color: var(--sw-red-ink); }
body:has(> .sw-side) .link-small { font: 600 12px var(--sw-ui); letter-spacing: 0; text-transform: none; }
body:has(> .sw-side) a.table-link { font: 600 12px var(--sw-ui); letter-spacing: 0; text-transform: none; color: var(--sw-ink); }
body:has(> .sw-side) .dh-steps summary, body:has(> .sw-side) .dh-bar + * summary { text-transform: none; letter-spacing: 0; }
body:has(> .sw-side) .dh-bar { background: var(--sw-track); }
body:has(> .sw-side) .dh-bar span { background: var(--sw-green); }
body:has(> .sw-side) .dh-done-fold > summary { text-transform: none; letter-spacing: 0; font: 600 13px var(--sw-ui); color: var(--sw-blue); }

/* ===== Admin list and simple-page templates (canvas: Template: admin list) =====
   Older admin pages keep their markup; these bring the pieces to Focus. */
body:has(> .sw-side) .page-header .crumbs, body:has(> .sw-side) .page-header p.crumbs { font: 600 11px/1.3 var(--sw-ui); letter-spacing: .1em; text-transform: uppercase; color: var(--sw-muted); margin: 0 0 6px; }
body:has(> .sw-side) .page-header .crumbs a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
body:has(> .sw-side) .stat-grid { gap: 12px; margin-bottom: 24px; }
body:has(> .sw-side) .stat-card { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 6px; text-align: left; padding: 14px 16px; border-color: var(--sw-line); border-radius: var(--sw-radius); color: var(--sw-ink); text-decoration: none; }
body:has(> .sw-side) a.stat-card:hover { border-color: var(--sw-blue); text-decoration: none; }
body:has(> .sw-side) .stat-number { font: 800 24px/1 var(--sw-ui); color: var(--sw-ink); }
body:has(> .sw-side) .stat-card.is-alert .stat-number { color: var(--sw-red); }
body:has(> .sw-side) .stat-card.is-warn .stat-number { color: var(--sw-yellow-ink); }
body:has(> .sw-side) .stat-label { font: 600 11px/1.2 var(--sw-ui); letter-spacing: .1em; color: var(--sw-muted); margin: 0; }
body:has(> .sw-side) .activity-row { border-bottom-color: var(--sw-line-soft); }
body:has(> .sw-side) .activity-message { font: 500 14px/1.4 var(--sw-ui); }
body:has(> .sw-side) .activity-meta { font: 400 12px var(--sw-body); color: var(--sw-muted); }

/* ===== Signed-out pages: sign in, two-step, passwords (canvas: Sign in, Two-step code) ===== */
body.fc-door { background: var(--sw-ground, #FAFAFA); color: var(--sw-ink); font-family: var(--sw-ui); min-height: 100vh; margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; padding: 40px 16px; box-sizing: border-box; }
.fc-door .fc-door-brand { padding: 0; text-decoration: none; color: var(--sw-ink); }
.fc-door .fc-door-brand .sw-mark { gap: 4px; }
.fc-door .fc-door-brand .sw-mark span:nth-child(1) { width: 30px; height: 6px; }
.fc-door .fc-door-brand .sw-mark span:nth-child(2) { width: 23px; height: 6px; }
.fc-door .fc-door-brand .sw-mark span:nth-child(3) { width: 16px; height: 6px; }
.fc-door .fc-door-brand .sw-brand-name { font-size: 16px; }
.fc-door .login-wrap, .fc-door .frontdoor { display: contents; }
.fc-door .login-card, .fc-door .frontdoor-login { width: 100%; max-width: 420px; box-sizing: border-box; background: var(--sw-panel); border: 1px solid var(--sw-line); border-radius: var(--sw-radius); padding: 28px; box-shadow: none; margin: 0; }
.fc-door .login-card.mfa-card { max-width: 600px; }
.fc-door .login-card h1, .fc-door .frontdoor-login-title { font: 800 22px/1.15 var(--sw-ui); text-transform: uppercase; letter-spacing: .01em; margin: 0 0 6px; color: var(--sw-ink); }
.fc-door .sub { font: 400 14px/1.5 var(--sw-body); color: var(--sw-muted); margin: 0 0 20px; }
.fc-door .eyebrow { display: none; }
.fc-door .access-label, .fc-door .sub-heading, .fc-door .mfa-signed-in { font: 600 11px/1.3 var(--sw-ui); letter-spacing: .1em; text-transform: uppercase; color: var(--sw-muted); margin: 0 0 8px; }
.fc-door label { display: block; font: 600 13px var(--sw-ui); color: var(--sw-ink); margin: 0 0 6px; text-transform: none; letter-spacing: 0; }
.fc-door input[type=email], .fc-door input[type=password], .fc-door input[type=text] { width: 100%; box-sizing: border-box; min-height: 44px; border: 1px solid var(--sw-border-strong); border-radius: 6px; padding: 9px 12px; font: 400 15px var(--sw-body); color: var(--sw-ink); background: var(--sw-white); margin: 0 0 16px; }
.fc-door input:focus { outline: 2px solid var(--sw-blue); outline-offset: 0; border-color: var(--sw-blue); }
.fc-door .btn { width: 100%; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; background: var(--sw-blue); border: 1px solid var(--sw-blue); color: #fff; border-radius: 6px; font: 600 14px var(--sw-ui); letter-spacing: 0; text-transform: none; cursor: pointer; }
.fc-door .btn:hover { background: var(--sw-blue-ink); }
.fc-door .btn[disabled] { opacity: .5; cursor: not-allowed; }
.fc-door .btn-quiet, .fc-door .btn-small { width: auto; min-height: 36px; background: var(--sw-panel); color: var(--sw-ink); border-color: var(--sw-border); font-size: 13px; padding: 0 12px; }
.fc-door .fc-door-form { display: flex; flex-direction: column; gap: 0; }
.fc-door .fc-door-form .fc-field { gap: 0; }
.fc-door .fc-label-row { display: flex; justify-content: space-between; align-items: baseline; }
.fc-door .fc-label-row a, .fc-door a { color: var(--sw-blue); font-weight: 600; }
.fc-door .fc-label-row a { font: 600 12px var(--sw-ui); }
.fc-door .error-message { background: var(--sw-red-tint); color: var(--sw-red-ink); border: 0; border-radius: 6px; padding: 10px 12px; font: 500 13px/1.45 var(--sw-ui); margin: 0 0 16px; }
.fc-door .callout { background: var(--sw-yellow-tint); color: var(--sw-yellow-ink); border: 0; border-radius: 6px; padding: 10px 12px; font: 500 13px/1.45 var(--sw-ui); margin: 0 0 16px; }
.fc-door .callout-green { background: var(--sw-green-tint); color: var(--sw-green-ink); }
.fc-door .frontdoor-forgot, .fc-door-foot { font: 400 13px/1.5 var(--sw-body); color: var(--sw-muted); text-align: center; margin: 14px 0 0; }
.fc-door-foot { margin: 0; max-width: 420px; }
.fc-door .access-block, .fc-door-access { width: 100%; max-width: 420px; box-sizing: border-box; border-top: 1px solid var(--sw-line); margin-top: 20px; padding-top: 16px; }
.fc-door-access { border: 1px solid var(--sw-line); border-radius: var(--sw-radius); background: var(--sw-panel); padding: 16px 20px; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.fc-door-access h2 { margin: 0; }
.fc-door .contact-mini { display: flex; align-items: center; gap: 10px; }
.fc-door .contact-mini img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.fc-door .contact-name { font: 600 14px var(--sw-ui); }
.fc-door .contact-title { font: 400 12px var(--sw-body); color: var(--sw-muted); }
.fc-door .access-copy { font: 400 13px/1.5 var(--sw-body); color: var(--sw-ink-2); margin: 0; }
.fc-door .fc-door-access .sw-btn { align-self: flex-start; }
.fc-door .link-button { background: none; border: 0; padding: 0; font: 600 13px var(--sw-ui); color: var(--sw-blue); cursor: pointer; text-decoration: underline; }
.fc-door .code-input { font: 700 24px/1 ui-monospace, Menlo, monospace !important; letter-spacing: .3em; text-align: center; }
.fc-door .mfa-check { display: flex; gap: 10px; align-items: flex-start; font: 500 13px/1.4 var(--sw-ui); margin: 0 0 16px; }
.fc-door .mfa-check input { margin-top: 2px; accent-color: var(--sw-blue); }
.fc-door .mfa-check em { display: block; font: italic 400 12px var(--sw-body); color: var(--sw-muted); }
.fc-door .mfa-step { border-top: 1px solid var(--sw-line-soft); padding-top: 16px; margin-top: 16px; }
@media (max-width: 760px) {
  body.fc-door { justify-content: flex-start; padding-top: 28px; }
  .fc-door .login-card, .fc-door .frontdoor-login { padding: 22px 18px; }
}

/* ===== Simple page template: Security, Privacy (canvas: Template: simple page) =====
   Wording stays exactly as lib/securitySummary.js and lib/privacyPolicy.js have it. */
body.fc-doc { background: var(--sw-ground); color: var(--sw-ink); margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
.fc-doc-head, .fc-doc-foot { background: var(--sw-panel); border-bottom: 1px solid var(--sw-line); }
.fc-doc-foot { border-bottom: 0; border-top: 1px solid var(--sw-line); margin-top: auto; }
.fc-doc-inner { max-width: 1080px; margin: 0 auto; padding: 16px 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.fc-doc-head .sw-brand { padding: 0; color: var(--sw-ink); text-decoration: none; }
.fc-doc-head .sw-btn { margin-left: auto; }
.fc-doc-foot .fc-doc-inner { font: 500 12px var(--sw-ui); color: var(--sw-muted); }
.fc-doc-foot a:first-of-type { margin-left: auto; }
.fc-doc-foot a { color: var(--sw-muted); }
.fc-doc .page { max-width: 1080px; width: 100%; margin: 0 auto; padding: 40px 24px 56px; box-sizing: border-box; background: transparent; }
.fc-doc .eyebrow .dots { display: none; }
.fc-doc .eyebrow .text { font: 600 11px/1.2 var(--sw-ui); letter-spacing: .1em; text-transform: uppercase; color: var(--sw-muted); }
.fc-doc .page-header { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 24px; margin: 6px 0 28px; }
.fc-doc .page-header h1 { font: 800 28px/1.15 var(--sw-ui); text-transform: uppercase; letter-spacing: .01em; margin: 0; }
.fc-doc .page-header h1 .accent { color: inherit; }
.fc-doc .page-header p { font: 400 17px/1.55 var(--sw-body); color: var(--sw-muted); margin: 8px 0 0; max-width: 680px; }
.fc-doc .page-header .btn { background: var(--sw-panel); color: var(--sw-ink); border: 1px solid var(--sw-border); border-radius: 6px; font: 600 13px var(--sw-ui); letter-spacing: 0; text-transform: none; padding: 10px 14px; }
.fc-doc .card { background: var(--sw-panel); border: 1px solid var(--sw-line); border-radius: var(--sw-radius); box-shadow: none; padding: 20px; }
.fc-doc .card h2, .fc-doc .priv-section h2 { font: 800 17px/1.25 var(--sw-ui); text-transform: uppercase; letter-spacing: 0; border: 0; padding: 0; margin: 0 0 10px; }
.fc-doc .card p, .fc-doc .card li { font: 400 16px/1.65 var(--sw-body); color: #3A3833; }
.fc-doc .sec-grid { gap: 16px; }
.fc-doc .sec-list li::before { background: var(--sw-green); }
.fc-doc .priv-toc-label { font: 600 11px/1.2 var(--sw-ui); letter-spacing: .1em; text-transform: uppercase; color: var(--sw-muted); }
.fc-doc .priv-toc a { font: 500 13px var(--sw-ui); color: var(--sw-ink-2); }
.fc-doc .priv-updated { font: 600 11px var(--sw-ui); letter-spacing: .1em; text-transform: uppercase; color: var(--sw-muted); }
@media (max-width: 760px) {
  .fc-doc .page { padding: 28px 16px 40px; }
  .fc-doc-inner { padding: 14px 16px; }
}
/* Phone fixes found by the 390 px check: the intake step list scrolls inside
   itself, and the screen-reader-only labels in tables stay inside the table. */
body:has(> .sw-side) #pcd .stepbar, body:has(> .sw-side) #pcd .stepbar-in, body:has(> .sw-side) #pcd .steps { min-width: 0; max-width: 100%; }
body:has(> .sw-side) #pcd .saved { white-space: normal; }
.sw-table-wrap { position: relative; }
.sw-sr { left: 0; top: 0; }

/* ===== Company Modules tab (views/admin/modules-company.ejs), Option B (EJ, 11/06/2026) =====
   One settings grid: each category a dark band, the three settings as radio columns. */
.fc-mods { overflow: hidden; }
.fc-mods-legend { display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 14px 20px; border-bottom: 1px solid var(--sw-line); font: 500 13px/1.45 var(--sw-ui); color: var(--sw-ink-2); }
.fc-mods-legend span { display: inline-flex; align-items: baseline; gap: 6px; }
.fc-mods-legend-note { color: var(--sw-muted); }
.fc-mods-flash { display: flex; flex-direction: column; gap: 8px; padding: 14px 20px 0; }
.sw-dot.fc-mods-dot { width: 8px; height: 8px; flex: none; display: inline-block; border-radius: 50%; }
.fc-mods-dot.is-off { background: #B5B1A6; }
.fc-mods-dot.is-available { background: var(--sw-yellow); }
.fc-mods-dot.is-on { background: var(--sw-green); }
.fc-mods-table { width: 100%; border-collapse: collapse; }
.fc-mods-colhead th { background: var(--sw-panel); font: 600 11px/1.25 var(--sw-ui); letter-spacing: .1em; text-transform: uppercase; color: var(--sw-muted); padding: 12px 10px; border-bottom: 1px solid var(--sw-line); text-align: center; width: 128px; }
.fc-mods-colhead th:first-child { text-align: left; padding-left: 20px; width: auto; }
.fc-mods-colhead .fc-mods-dot { margin-right: 6px; vertical-align: 1px; }
.fc-mods-band th { background: var(--sw-ink); color: #fff; text-align: left; padding: 14px 20px; }
.fc-mods-band-in { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.fc-mods-swatch { width: 12px; height: 28px; border-radius: 3px; flex: none; }
.fc-mods-name { font: 800 17px/1 var(--sw-ui); text-transform: uppercase; letter-spacing: .03em; }
.fc-mods-desc { font: 400 13px/1.4 var(--sw-body); color: #C9C9C4; }
.fc-mods-count { margin-left: auto; font: 600 12px/1 var(--sw-ui); background: rgba(255, 255, 255, .12); padding: 7px 10px; border-radius: 4px; white-space: nowrap; }
.fc-mods-row td { padding: 14px 10px; border-bottom: 1px solid var(--sw-line-soft); vertical-align: middle; }
.fc-mods-row td.fc-mods-what { padding-left: 20px; }
.fc-mods-what { display: table-cell; }
.fc-mods-mod { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font: 700 15px/1.3 var(--sw-ui); color: var(--sw-ink); }
.fc-mods-text { display: block; margin-top: 3px; max-width: 64ch; font: 400 13.5px/1.5 var(--sw-body); color: var(--sw-ink-2); }
.fc-mods-needs { display: block; margin-top: 4px; font: 600 12px var(--sw-ui); color: var(--sw-ink-2); }
.fc-mods-needs.is-blocked { color: var(--sw-red-ink); }
.fc-mods-row.is-off .fc-mods-mod, .fc-mods-row.is-off .fc-mods-text { color: var(--sw-muted); }
.fc-mods-cell { text-align: center; }
.fc-mods-always { text-align: right; padding-right: 20px !important; }
.fc-mods-lock { display: inline-flex; align-items: center; gap: 6px; font: 600 12px var(--sw-ui); color: var(--sw-green-ink); background: var(--sw-green-tint); padding: 8px 12px; border-radius: 6px; white-space: nowrap; }
body:has(> .sw-side) label.fc-mods-radio { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; margin: 0; cursor: pointer; border-radius: 50%; }
.fc-mods-radio input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.fc-mods-ring { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--sw-border-strong); background: var(--sw-white); box-sizing: border-box; transition: border-color .12s, border-width .12s; }
.fc-mods-radio:hover .fc-mods-ring { border-color: #9A968C; }
.fc-mods-radio input:checked + .fc-mods-ring { border-width: 7px; }
.fc-mods-radio.is-off input:checked + .fc-mods-ring { border-color: #9A968C; }
.fc-mods-radio.is-available input:checked + .fc-mods-ring { border-color: #E0BC00; }
.fc-mods-radio.is-on input:checked + .fc-mods-ring { border-color: var(--sw-green); }
.fc-mods-radio input:focus-visible + .fc-mods-ring { outline: 2px solid var(--sw-blue); outline-offset: 3px; }
.fc-mods-optlabel { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.fc-mods-foot { justify-content: space-between; flex-wrap: wrap; border-top: 0; }
@media (max-width: 760px) {
  .fc-mods-legend { padding: 14px 16px; }
  .fc-mods-colhead { display: none; }
  .fc-mods-table, .fc-mods-table tbody, .fc-mods-band, .fc-mods-band th { display: block; width: 100%; }
  .fc-mods-band th { padding: 14px 16px; }
  .fc-mods-count { margin-left: 0; }
  .fc-mods-row { display: flex; flex-wrap: wrap; gap: 6px; padding: 14px 16px; border-bottom: 1px solid var(--sw-line-soft); }
  .fc-mods-row td { display: block; border: 0; padding: 0 !important; }
  .fc-mods-row td.fc-mods-what { width: 100%; margin-bottom: 6px; }
  .fc-mods-always { text-align: left; }
  body:has(> .sw-side) label.fc-mods-radio { display: inline-flex; width: auto; height: auto; min-height: 44px; gap: 8px; padding: 0 12px 0 10px; border: 1px solid var(--sw-line); border-radius: 8px; place-items: initial; align-items: center; }
  .fc-mods-optlabel { position: static; width: auto; height: auto; overflow: visible; clip: auto; font: 600 12px var(--sw-ui); color: var(--sw-ink-2); }
  .fc-mods-ring { width: 18px; height: 18px; }
  .fc-mods-radio input:checked + .fc-mods-ring { border-width: 6px; }
}
/* The older table styles above (body:has(> .sw-side) table th) would grey the bands out. */
body:has(> .sw-side) .fc-mods-band th { background: var(--sw-ink); color: #fff; text-transform: none; letter-spacing: 0; font: inherit; padding: 14px 20px; border-bottom: 0; }
body:has(> .sw-side) .fc-mods-colhead th { background: var(--sw-panel); }
body:has(> .sw-side) .fc-mods-row td { border-bottom: 1px solid var(--sw-line-soft); }
@media (max-width: 760px) {
  body:has(> .sw-side) .fc-mods-band th { padding: 14px 16px; }
  body:has(> .sw-side) .fc-mods-row td { border-bottom: 0; }
  .fc-mods-row td.fc-mods-cell { flex: 1 1 0; min-width: 0; }
  body:has(> .sw-side) label.fc-mods-radio { width: 100%; justify-content: flex-start; padding: 0 8px; gap: 6px; }
  .fc-mods-optlabel { font-size: 11.5px; white-space: normal; line-height: 1.2; text-align: left; }
}

/* ===== More you can add, compact tiles (views/portal/modules-available.ejs; canvas: Client dashboard) ===== */
.sw.fc-more { margin-top: 8px; }
.sw.fc-more .sw-section-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin: 0 0 12px; }
.sw.fc-more .sw-offer-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 12px; }
.sw.fc-more .sw-offer-body { padding: 16px 16px 8px; gap: 6px; }
.sw.fc-more .sw-offer-head { font: 600 16px/1.3 var(--sw-ui); }
.sw.fc-more .sw-offer-desc { font: 400 14px/1.5 var(--sw-body); color: var(--sw-muted); }
.sw.fc-more .sw-offer-foot { border-top: 0; padding: 8px 16px 16px; }

/* Portal redesign stage 1 (docs/portal-redesign-scope.md, canvas P1a, P2a, P2b).
   Needs you cards on client Home, and the Right now panel on a client
   campaign page. Hover only where there's a pointer that hovers. */
.fc-needs { display: flex; flex-direction: column; gap: 12px; container-type: inline-size; }
.fc-needs-head { display: flex; align-items: center; gap: 10px; }
.fc-needs-label { margin: 0; font: 700 12px/1 var(--sw-ui); letter-spacing: .12em; text-transform: uppercase; color: var(--sw-muted); }
.fc-needs-empty { margin: 0; padding: 16px 18px; background: var(--sw-panel); border: 1px solid var(--sw-line); font: 400 15px/1.5 var(--sw-body); color: var(--sw-ink-2); }
.fc-needs-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@container (max-width: 640px) { .fc-needs-grid { grid-template-columns: minmax(0, 1fr); } }
.fc-needcard { background: var(--sw-panel); border: 1px solid var(--sw-line); border-top: 3px solid var(--sw-yellow); padding: 20px 22px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.fc-needcard.is-approval { border-top-color: var(--sw-blue); }
.fc-needcard-top { display: flex; align-items: center; gap: 12px; }
.fc-needcard-meta { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.fc-needcard-camp { font: 700 11px/1.3 var(--sw-ui); letter-spacing: .1em; text-transform: uppercase; color: var(--sw-muted); min-width: 0; overflow-wrap: anywhere; }
.fc-needcard-due { font: 700 13px/1.3 var(--sw-ui); color: var(--sw-ink); white-space: nowrap; }
.fc-needcard-due.is-late { color: var(--sw-red); }
.fc-needcard-title { margin: 0; font: 800 22px/1.15 var(--sw-ui); color: var(--sw-ink); overflow-wrap: anywhere; }
.fc-needcard-why { margin: 0; font: 400 14px/1.5 var(--sw-body); color: var(--sw-muted); }
.fc-needcard-file { color: var(--sw-ink-2); }
.fc-needcard-foot { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; padding-top: 4px; margin-top: auto; }
.fc-needcard-btn { min-height: 44px; padding: 0 18px; font-size: 14px; font-weight: 700; justify-content: center; }
.fc-needcard-who { font: 600 13px/1.3 var(--sw-ui); color: var(--sw-muted); }
.fc-needcard-howto { font: 600 13px var(--sw-ui); }

.fc-rightnow { background: var(--sw-panel); border: 1px solid var(--sw-line); border-left: 6px solid var(--sw-blue); padding: 24px 28px; display: flex; flex-direction: column; gap: 10px; scroll-margin-top: 80px; }
.fc-rightnow.is-mail { border-left-color: var(--sw-blue-light); }
.fc-rightnow.is-after { border-left-color: var(--sw-green); }
.fc-rightnow.is-closed { border-left-color: var(--sw-ink); }
.fc-rightnow.is-quiet { border-left-color: var(--sw-line); padding-top: 18px; padding-bottom: 18px; }
.fc-rightnow-eyebrow { font: 700 11px/1.3 var(--sw-ui); letter-spacing: .12em; text-transform: uppercase; color: var(--sw-blue); }
.fc-rightnow.is-after .fc-rightnow-eyebrow { color: var(--sw-green-ink); }
.fc-rightnow.is-closed .fc-rightnow-eyebrow, .fc-rightnow.is-quiet .fc-rightnow-eyebrow { color: var(--sw-muted); }
.fc-rightnow .fc-rightnow-eyebrow.is-late { color: var(--sw-red); }
.fc-rightnow-title { margin: 0; font: 800 26px/1.1 var(--sw-ui); color: var(--sw-ink); text-transform: none; letter-spacing: 0; overflow-wrap: anywhere; }
.fc-rightnow.is-quiet .fc-rightnow-title { font-size: 18px; }
.fc-rightnow-text { margin: 0; font: 400 15px/1.5 var(--sw-body); color: var(--sw-ink-2); max-width: 72ch; }
.fc-rightnow-note { margin: 0; padding: 10px 12px; background: var(--sw-yellow-tint); font: 400 14px/1.5 var(--sw-body); color: var(--sw-ink); }
.fc-rightnow-after { margin: 4px 0 0; font: 400 14px/1.5 var(--sw-body); color: var(--sw-muted); }
.fc-rightnow-files { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 16px; }
.fc-rightnow-files li { display: inline-flex; align-items: center; gap: 8px; font: 600 14px var(--sw-ui); min-height: 44px; }
.fc-rightnow-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding-top: 4px; margin: 0; }
.fc-rightnow-actions form { margin: 0; }
.fc-rightnow-btn { min-height: 46px; padding: 0 20px; font-size: 15px; font-weight: 700; justify-content: center; }
.fc-rightnow-who { font: 600 13px/1.3 var(--sw-ui); color: var(--sw-muted); }
.fc-rightnow-link { font: 600 14px var(--sw-ui); display: inline-flex; align-items: center; min-height: 44px; }
.fc-rightnow-also { display: flex; flex-direction: column; gap: 6px; padding-top: 12px; border-top: 1px solid var(--sw-line-soft); }
.fc-rightnow-also-label { font: 700 11px/1.3 var(--sw-ui); letter-spacing: .1em; text-transform: uppercase; color: var(--sw-muted); }
.fc-rightnow-also ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.fc-rightnow-also ul { gap: 8px; }
.fc-rightnow-also li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; min-height: 44px; font: 600 14px/1.3 var(--sw-ui); }
.fc-rightnow-also-due { font: 600 12px var(--sw-ui); color: var(--sw-muted); }
.fc-rightnow-also-due.is-late { color: var(--sw-red); }
.fc-rightnow-bar { display: flex; height: 10px; background: var(--sw-line); }
.fc-rightnow-bar span { background: var(--sw-blue); }
.fc-rightnow-changes { flex: 0 1 auto; }
.fc-rightnow-changes summary { list-style: none; cursor: pointer; }
.fc-rightnow-changes summary::-webkit-details-marker { display: none; }
.fc-rightnow-changes[open] { flex: 1 1 100%; order: 5; }
.fc-rightnow-changes-form { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; max-width: 560px; }
.fc-rightnow-changes-form label { font: 600 13px var(--sw-ui); }
.fc-rightnow-changes-form textarea { font: 400 15px/1.5 var(--sw-body); padding: 10px 12px; border: 1px solid var(--sw-border); border-radius: 6px; }
.fc-rightnow-changes-form .sw-btn { align-self: flex-start; min-height: 44px; }
.fc-rightnow-guide { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; padding-top: 10px; border-top: 1px solid var(--sw-line-soft); font: 600 13px var(--sw-ui); }
.fc-rightnow-fewer { background: none; border: 0; padding: 0; font: 600 13px var(--sw-ui); color: var(--sw-muted); cursor: pointer; min-height: 32px; }
.fc-rightnow #handling-terms { margin: 4px 0; }
@media (hover: hover) {
  .fc-rightnow-fewer:hover { color: var(--sw-ink); text-decoration: underline; }
}
@media (max-width: 760px) {
  .fc-needcard { padding: 18px; }
  .fc-needcard-foot .fc-needcard-btn { flex: 1 1 100%; min-height: 48px; }
  .fc-rightnow { padding: 18px 16px 18px 16px; }
  .fc-rightnow-title { font-size: 22px; }
  .fc-rightnow-actions > .sw-btn, .fc-rightnow-actions > form, .fc-rightnow-actions > form .sw-btn, .fc-rightnow-changes, .fc-rightnow-changes summary { flex: 1 1 100%; width: 100%; min-height: 48px; }
}

/* Portal redesign stage 2: proof approval screen (canvas P3a, P3b).
   Wide: files | proof | panel. Mid (iPad landscape): files across the top,
   proof | panel. Narrow (iPad portrait, phone): one column, and a bar
   pinned to the bottom with the two big buttons. */
.fc-approve { container-type: inline-size; display: flex; flex-direction: column; gap: 18px; }
.fc-approve-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; }
.fc-approve-headtext { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.fc-approve-back { font: 600 13px var(--sw-ui); color: var(--sw-muted); overflow-wrap: anywhere; }
.fc-approve-versions { display: flex; flex-wrap: wrap; gap: 6px; }
.fc-approve-version { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1px solid var(--sw-border); border-radius: 6px; background: var(--sw-panel); font: 600 13px var(--sw-ui); color: var(--sw-ink); }
.fc-approve-version.is-current { border-color: var(--sw-blue); background: var(--sw-blue-tint); color: var(--sw-blue); }
.fc-approve-grid { display: grid; grid-template-columns: 180px minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.fc-approve-files { display: flex; flex-direction: column; gap: 10px; }
.fc-approve-file { display: flex; flex-direction: column; gap: 6px; padding: 8px; min-height: 44px; border: 1px solid var(--sw-line); border-radius: 6px; background: var(--sw-panel); color: var(--sw-ink); }
.fc-approve-file.is-current { border-color: var(--sw-blue); box-shadow: inset 0 0 0 1px var(--sw-blue); }
.fc-approve-file img { width: 100%; height: 110px; object-fit: contain; background: var(--sw-ground); }
.fc-approve-file-badge { display: grid; place-items: center; height: 110px; background: var(--sw-ground); font: 800 14px var(--sw-ui); color: var(--sw-muted); }
.fc-approve-file-name { font: 600 12px/1.3 var(--sw-ui); overflow-wrap: anywhere; }
.fc-approve-viewer { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.fc-approve-frame { display: block; width: 100%; height: max(560px, calc(100vh - 260px)); border: 1px solid var(--sw-line); background: var(--sw-panel); }
.fc-approve-frame.is-image { display: grid; place-items: center; overflow: auto; }
.fc-approve-frame.is-image img { max-width: 100%; max-height: 100%; }
.fc-approve-frame.is-empty { display: grid; place-items: center; height: 320px; padding: 24px; text-align: center; font: 400 15px/1.5 var(--sw-body); color: var(--sw-muted); }
.fc-approve-viewer-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.fc-approve-showing { flex: 1 1 200px; font: 600 13px var(--sw-ui); color: var(--sw-muted); overflow-wrap: anywhere; }
.fc-approve-viewer-bar .sw-btn { min-height: 44px; }
.fc-approve-side { background: var(--sw-panel); border: 1px solid var(--sw-line); padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.fc-approve-side-title { margin: 0; font: 800 24px/1.15 var(--sw-ui); text-transform: none; letter-spacing: 0; }
.fc-approve-block { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 14px 0 0; border: 0; border-top: 1px solid var(--sw-line-soft); }
.fc-approve-label { padding: 0; font: 700 11px/1.3 var(--sw-ui); letter-spacing: .1em; text-transform: uppercase; color: var(--sw-muted); }
.fc-approve-text { margin: 0; font: 400 15px/1.5 var(--sw-body); color: var(--sw-ink-2); }
.fc-approve-check { display: flex; align-items: flex-start; gap: 10px; min-height: 44px; padding: 10px 0; font: 600 14px/1.35 var(--sw-ui); cursor: pointer; }
.fc-approve-check input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--sw-blue); }
.fc-approve-who { margin: 0; font: 600 13px/1.4 var(--sw-ui); color: var(--sw-muted); }
.fc-approve-actions { display: flex; flex-direction: column; gap: 10px; }
.fc-approve-actions form { margin: 0; }
.fc-approve-actions .fc-rightnow-btn { width: 100%; min-height: 52px; }
.fc-approve-actions .fc-rightnow-changes summary { display: flex; }
.fc-approve-bar { display: none; }
@container (max-width: 1099px) {
  .fc-approve-grid { grid-template-columns: minmax(0, 1fr) 320px; }
  .fc-approve-files { grid-column: 1 / -1; flex-direction: row; overflow-x: auto; }
  .fc-approve-file { flex: 0 0 auto; flex-direction: row; align-items: center; padding: 6px 12px 6px 6px; }
  .fc-approve-file img, .fc-approve-file-badge { width: 44px; height: 44px; font-size: 10px; }
  .fc-approve-file-name { max-width: 220px; }
  .fc-approve-actions form#approve-form { display: none; }
  .fc-approve-actions .fc-rightnow-changes summary { display: none; }
  .fc-approve-actions .fc-rightnow-changes:not([open]) { display: none; }
  .fc-approve-bar { display: flex; gap: 10px; position: sticky; bottom: 0; z-index: 5; padding: 10px 0 calc(10px + env(safe-area-inset-bottom)); background: var(--sw-ground); border-top: 1px solid var(--sw-line); }
  .fc-approve-bar-btn { flex: 1 1 0; min-height: 56px; justify-content: center; font-size: 15px; font-weight: 700; }
}
@container (max-width: 760px) {
  .fc-approve-grid { grid-template-columns: minmax(0, 1fr); }
  .fc-approve-frame { height: 540px; }
  .fc-approve-checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }
  .fc-approve-checks .fc-approve-label, .fc-approve-checks .fc-sub { grid-column: 1 / -1; }
}
@container (max-width: 420px) {
  .fc-approve-checks { grid-template-columns: minmax(0, 1fr); }
}

/* Portal redesign stage 3: the journey strip (canvas P2a, P1a). Equal
   segments, ink when done, blue for the current step (red when late),
   grey for later ones. The full strip scrolls sideways on a phone. */
.fc-journey { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(84px, 1fr); gap: 4px; overflow-x: auto; }
.fc-journey-step { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding-bottom: 2px; }
.fc-journey-bar { display: block; height: 6px; background: var(--sw-line); }
.fc-journey .is-done .fc-journey-bar, .fc-journey-bar.is-done { background: var(--sw-ink); }
.fc-journey .is-current .fc-journey-bar, .fc-journey-bar.is-current { background: var(--sw-blue); }
.fc-journey .is-current.is-late .fc-journey-bar, .fc-journey-bar.is-current.is-late { background: var(--sw-red); }
.fc-journey-label { font: 600 13px/1.25 var(--sw-ui); color: var(--sw-ink); }
.fc-journey .is-current .fc-journey-label { font-weight: 800; color: var(--sw-blue); }
.fc-journey .is-current.is-late .fc-journey-label { color: var(--sw-red); }
.fc-journey .is-later .fc-journey-label { color: var(--sw-muted); }
.fc-journey-date { font: 500 12px/1.2 var(--sw-ui); color: var(--sw-muted); white-space: nowrap; }
.fc-journey .is-late .fc-journey-date { color: var(--sw-red); }
.fc-journey.is-mini { display: flex; gap: 3px; overflow: visible; }
.fc-journey.is-mini .fc-journey-bar { flex: 1 1 0; height: 5px; }

/* Stage 3: the campaign header and the Overview, Files and Data handling tabs. */
.fc-camphead { display: flex; flex-direction: column; gap: 18px; }
.fc-camphead .fc-camphead-name { font-size: 32px; line-height: 1.1; overflow-wrap: anywhere; }
.fc-camphead .fc-tabs { margin-top: 2px; }
.fc-camphead .fc-tab { min-height: 44px; display: inline-flex; align-items: center; }
.fc-notice.is-bad { background: var(--sw-red-tint); color: var(--sw-red-ink); }
.fc-overview { gap: 24px; }
.fc-overview .sw-col-main, .fc-overview .sw-col-side { gap: 20px; }
.fc-done-row { align-items: flex-start; }
.fc-tick { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--sw-green-tint); color: var(--sw-green-ink); display: inline-grid; place-items: center; font: 800 12px var(--sw-ui); }
.fc-done-when { flex: none; font: 600 12px var(--sw-ui); color: var(--sw-muted); white-space: nowrap; }
.fc-done-undo { margin: 0; }
.fc-done-more summary { padding: 12px 16px; font: 600 13px var(--sw-ui); color: var(--sw-blue); cursor: pointer; }
.fc-file-row { align-items: center; }
.fc-file-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 600 14px var(--sw-ui); }
.fc-upload { flex-wrap: wrap; gap: 10px 14px; }
.fc-upload input[type="file"] { font: 400 14px var(--sw-ui); min-height: 44px; }
.fc-clean-num { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.fc-clean-big { font: 800 26px/1.1 var(--sw-ui); }
.fc-clean-bar { display: flex; height: 10px; gap: 2px; margin: 4px 0; }
.fc-clean-bar span { flex-basis: 0; min-width: 2px; }
.fc-clean-bar .is-kept { background: var(--sw-blue-light); }
.fc-clean-bar .is-cut { background: var(--sw-line); }
.fc-clean-bar .is-cut-1 { background: var(--sw-off); }
.fc-clean-bar .is-cut-2 { background: var(--sw-faint); }
.fc-clean-bar .is-cut-3 { background: var(--sw-muted); }
.fc-data-line { line-height: 1.6; }
@media (max-width: 760px) {
  .fc-camphead .fc-camphead-name { font-size: 26px; }
  .fc-file-row { flex-wrap: wrap; }
  .fc-file-name { flex: 1 1 calc(100% - 50px); }
}

/* Stage 3: the client top bar (canvas P1a). The client menu is the same
   element as the sidebar (.sw-side.fc-ctop), so every page style keyed to
   the shell still applies; on tablets and computers it becomes a 64px white
   bar across the top, and the search, New campaign and the avatar menu sit
   at its right. On phones it stays the slide-out menu, with a tab bar
   along the bottom. */
.fc-ctabs, .fc-me { display: none; }
.sw-side.fc-ctop .fc-ctop-phone { display: flex; }
@media (min-width: 761px) {
  body:has(> .sw-side.fc-ctop) { padding-left: 0; padding-top: 64px; }
  body:has(> .sw-side.fc-ctop) .an { left: 16px; }
  body > .sw-side.fc-ctop { right: 0; bottom: auto; width: auto; height: 64px; flex-direction: row; align-items: center; gap: 24px; padding: 0 24px; background: var(--sw-panel); border-right: 0; border-bottom: 1px solid var(--sw-line); overflow: visible; }
  .sw-side.fc-ctop .sw-brand { padding: 0; flex: none; }
  .sw-side.fc-ctop .sw-brand-name { font-size: 14px; }
  .sw-side.fc-ctop > .sw-nav { flex-direction: row; gap: 2px; align-self: stretch; }
  .sw-side.fc-ctop > .sw-nav a { height: 64px; min-height: 0; padding: 0 12px; border-radius: 0; background: none; border-bottom: 3px solid transparent; border-top: 3px solid transparent; font-weight: 700; color: var(--sw-muted); gap: 6px; }
  .sw-side.fc-ctop > .sw-nav a.is-current { color: var(--sw-ink); background: none; border-bottom-color: var(--sw-blue); }
  .sw-side.fc-ctop > .sw-nav a .sw-nav-count { margin-left: 2px; }
  .sw-side.fc-ctop .sw-side-group, .sw-side.fc-ctop .sw-side-foot, .sw-side.fc-ctop .fc-ctop-phone { display: none; }
  body:has(> .sw-side.fc-ctop) > .sw-topbar { position: fixed; top: 0; right: 0; height: 64px; z-index: 55; padding: 0 24px 0 0; border: 0; background: transparent; flex-wrap: nowrap; }
  body:has(> .sw-side.fc-ctop) > .sw-topbar .sw-crumbs { display: none; }
  body:has(> .sw-side.fc-ctop) > .sw-topbar .sw-topbar-actions { flex-wrap: nowrap; align-items: center; background: var(--sw-panel); padding-left: 12px; }
  body:has(> .sw-side.fc-ctop) .fc-me { display: block; position: relative; }
}
@media (hover: hover) {
  .sw-side.fc-ctop > .sw-nav a:hover { color: var(--sw-ink); }
}
@media (min-width: 761px) and (max-width: 1240px) {
  .sw-side.fc-ctop .sw-brand-name { display: none; }
  body:has(> .sw-side.fc-ctop) .fc-search { min-width: 0; width: 44px; height: 44px; padding: 0 14px; transition: width .15s ease; }
  body:has(> .sw-side.fc-ctop) .fc-search .fc-kbd { display: none; }
  body:has(> .sw-side.fc-ctop) .fc-search svg { width: 18px; height: 18px; flex: none; }
  body:has(> .sw-side.fc-ctop) .fc-search:not(:focus-within) { background: var(--sw-panel); cursor: text; }
  body:has(> .sw-side.fc-ctop) .fc-search:focus-within { width: 240px; }
  body:has(> .sw-side.fc-ctop) .sw-topbar .sw-btn { min-height: 44px; }
}
@media (min-width: 761px) and (max-width: 900px) {
  .sw-side.fc-ctop { gap: 12px; padding: 0 16px; }
  .sw-side.fc-ctop > .sw-nav a { padding: 0 8px; }
  body:has(> .sw-side.fc-ctop) > .sw-topbar { padding-right: 16px; }
}
.fc-me summary { list-style: none; cursor: pointer; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; }
.fc-me summary::-webkit-details-marker { display: none; }
.fc-me summary .fc-avatar { width: 32px; height: 32px; }
.fc-me-menu { position: absolute; right: 0; top: 52px; min-width: 220px; background: var(--sw-panel); border: 1px solid var(--sw-line); border-radius: var(--sw-radius); box-shadow: 0 10px 30px rgba(26, 26, 26, .12); padding: 8px; display: flex; flex-direction: column; z-index: 60; }
.fc-me-name { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px 10px; border-bottom: 1px solid var(--sw-line-soft); margin-bottom: 4px; font: 700 13px var(--sw-ui); }
.fc-me-menu a, .fc-me-menu button { display: flex; align-items: center; min-height: 40px; padding: 0 10px; border-radius: 6px; font: 600 13px var(--sw-ui); color: var(--sw-ink); background: none; border: 0; width: 100%; text-align: left; cursor: pointer; }
.fc-me-menu form { margin: 0; }
@media (hover: hover) {
  .fc-me-menu a:hover, .fc-me-menu button:hover { background: var(--sw-hover); text-decoration: none; }
}
@media (max-width: 760px) {
  body:has(> .fc-ctabs) { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .fc-ctabs { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 42; background: var(--sw-panel); border-top: 1px solid var(--sw-line); padding-bottom: env(safe-area-inset-bottom); }
  .fc-ctabs a { flex: 1 1 0; display: flex; align-items: center; justify-content: center; gap: 4px; min-height: 56px; font: 700 12px var(--sw-ui); color: var(--sw-muted); border-top: 3px solid transparent; text-decoration: none; }
  .fc-ctabs a.is-current { color: var(--sw-blue); border-top-color: var(--sw-blue); }
  .fc-ctabs .sw-nav-count { margin: 0; }
  body:has(.fc-approve-bar) .fc-ctabs { display: none; }
  body:has(.fc-approve-bar):has(> .fc-ctabs) { padding-bottom: 0; }
}
@media print {
  .fc-ctabs { display: none !important; }
  body:has(> .sw-side.fc-ctop) { padding-top: 0; }
}

/* Stage 3: campaign rows with the small strip (Home, Campaigns), Results. */
.fc-list-page { gap: 20px; }
.fc-camprows { display: flex; flex-direction: column; }
.fc-camprow, .fc-resultrow { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.5fr) minmax(150px, .8fr); gap: 20px; align-items: center; padding: 16px; border-top: 1px solid var(--sw-line); color: var(--sw-ink); text-decoration: none; }
.fc-camprows .fc-camprow:first-child { border-top: 0; }
.fc-resultrow { grid-template-columns: minmax(0, 1fr) auto 20px; }
.fc-camprow-name { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.fc-camprow-title { font: 800 16px/1.25 var(--sw-ui); overflow-wrap: anywhere; }
.fc-camprow-steps { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.fc-camprow-phase { font: 700 13px var(--sw-ui); color: var(--sw-blue); }
.fc-camprow-phase.is-red { color: var(--sw-red); }
.fc-camprow-next { display: flex; flex-direction: column; gap: 3px; text-align: right; }
.fc-camprow-nextmain { font: 700 14px var(--sw-ui); }
.fc-resultrow-go { font: 700 20px var(--sw-ui); color: var(--sw-muted); }
.fc-resultrow-wait { max-width: 360px; }
.fc-kpis { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.fc-kpis.is-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; margin-top: 6px; }
.fc-kpi { display: flex; flex-direction: column; gap: 2px; }
.fc-kpi-num { font: 800 20px/1.1 var(--sw-ui); color: var(--sw-ink); }
.fc-kpi-num.is-blue { color: var(--sw-blue); }
.fc-kpi-num.is-green { color: var(--sw-green-ink); }
.fc-kpi-label { font: 600 11px/1.3 var(--sw-ui); color: var(--sw-muted); }
.fc-panel-headrow { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
@media (hover: hover) {
  a.fc-camprow:hover, a.fc-resultrow:hover { background: var(--sw-blue-tint); text-decoration: none; }
}
@media (max-width: 900px) {
  .fc-camprow { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .fc-camprow-next { grid-column: 1 / -1; text-align: left; flex-direction: row; flex-wrap: wrap; gap: 4px 10px; }
  .fc-resultrow { grid-template-columns: minmax(0, 1fr) 20px; }
  .fc-resultrow .fc-kpis, .fc-resultrow .fc-resultrow-wait { grid-column: 1; grid-row: 2; }
  .fc-resultrow-go { grid-row: 1 / span 2; grid-column: 2; }
}
@media (max-width: 560px) {
  .fc-camprow { grid-template-columns: minmax(0, 1fr); gap: 10px; }
}

/* Stage 4: partners get the same white top bar (their company name in a
   chip by the avatar), and the campaign page as one numbered list of steps
   (canvas P6a, P6b). The current step is white with a blue left edge. */
.fc-partner-chip { font-weight: 700; }
@media (min-width: 761px) {
  body:has(> .sw-side.fc-ctop) > .sw-topbar > .sw-chip { display: none; }
}
@media (max-width: 760px) {
  .fc-ptop-actions { display: none; }
}
.fc-psteps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.fc-pstep { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 14px 20px 14px 14px; border-left: 6px solid transparent; }
.fc-pstep.is-current { background: var(--sw-panel); border: 1px solid var(--sw-line); border-left: 6px solid var(--sw-blue); padding: 20px 20px 22px 14px; }
.fc-pstep-num { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font: 800 14px var(--sw-ui); border: 1.5px solid var(--sw-off); color: var(--sw-muted); background: var(--sw-panel); }
.fc-pstep.is-done .fc-pstep-num { background: var(--sw-green); border-color: var(--sw-green); color: var(--sw-ink); }
.fc-pstep.is-current .fc-pstep-num { background: var(--sw-blue); border-color: var(--sw-blue); color: #fff; }
.fc-pstep-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.fc-pstep-title { font: 600 16px/1.3 var(--sw-ui); color: var(--sw-ink); }
.fc-pstep.is-current .fc-pstep-title { font-size: 22px; font-weight: 800; }
.fc-pstep.is-done .fc-pstep-title { color: var(--sw-muted); }
.fc-pstep-sub { font: 400 14px/1.5 var(--sw-body); color: var(--sw-muted); overflow-wrap: anywhere; }
.fc-pstep.is-current .fc-pstep-sub { color: var(--sw-ink-2); font-size: 15px; }
.fc-pstep-date { font: 700 13px/1.3 var(--sw-ui); color: var(--sw-muted); white-space: nowrap; padding-top: 6px; }
.fc-pstep.is-current .fc-pstep-date { color: var(--sw-ink); }
.fc-pstep-date.is-late, .fc-pstep.is-current .fc-pstep-date.is-late { color: var(--sw-red); }
.fc-pstep-date.is-soon { color: var(--sw-yellow-ink); }
.fc-pstep-note { margin: 4px 0 0; font: 400 14px/1.5 var(--sw-body); color: var(--sw-ink-2); }
.fc-pstep-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 12px; margin: 6px 0 0; }
.fc-pstep-form.is-confirm { flex-direction: column; align-items: flex-start; }
.fc-pstep-date label, .fc-pstep-date { }
label.fc-pstep-date { display: flex; flex-direction: column; gap: 4px; font: 600 12px var(--sw-ui); color: var(--sw-muted); padding: 0; white-space: normal; }
label.fc-pstep-date input { min-height: 44px; font: 400 15px var(--sw-body); padding: 0 10px; border: 1px solid var(--sw-border); border-radius: 6px; }
.fc-pstep-btn { min-height: 46px; padding: 0 18px; font-size: 14px; font-weight: 700; justify-content: center; }
.fc-pstep-undo { margin: 0; }
.fc-pfile { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fc-mtup { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 10px 0; border-top: 1px solid var(--sw-line-soft); }
.fc-mtup-text { display: flex; flex-direction: column; gap: 2px; flex: 1 1 240px; min-width: 0; }
.fc-mtup-label { font: 700 14px var(--sw-ui); }
.fc-mtup-form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; }
.fc-drop { display: flex; align-items: center; gap: 10px; min-height: 44px; font: 600 13px var(--sw-ui); color: var(--sw-muted); }
.fc-drop input[type="file"] { font: 400 13px var(--sw-ui); max-width: 240px; }
.fc-drop-text { display: none; }
.fc-mtup.is-big { flex-direction: column; align-items: stretch; border-top: 0; padding: 4px 0 0; }
.fc-mtup.is-big .fc-mtup-text { flex: none; }
.fc-mtup.is-big .fc-mtup-form { flex-direction: column; align-items: stretch; }
.fc-mtup.is-big .fc-drop { position: relative; flex-direction: column; justify-content: center; min-height: 120px; border: 1.5px dashed var(--sw-off); border-radius: var(--sw-radius); background: var(--sw-ground); padding: 18px; text-align: center; }
.fc-mtup.is-big .fc-drop-text { display: block; font: 600 14px var(--sw-ui); color: var(--sw-ink-2); }
.fc-mtup.is-big .fc-drop input[type="file"] { max-width: 100%; }
.fc-mtup.is-big .sw-btn { align-self: flex-start; min-height: 46px; }
@media (max-width: 760px) {
  .fc-pstep { grid-template-columns: 32px minmax(0, 1fr); padding: 12px 12px 12px 8px; }
  .fc-pstep.is-current { padding: 16px 14px 18px 10px; }
  .fc-pstep-date { grid-column: 2; padding-top: 0; }
  .fc-pstep.is-current .fc-pstep-title { font-size: 19px; }
  .fc-pstep-btn, .fc-pstep-form .sw-btn, .fc-mtup.is-big .sw-btn { width: 100%; min-height: 48px; }
  .fc-pstep-form { align-items: stretch; flex-direction: column; }
}

/* Stage 5: staff Campaigns, the agenda by week (canvas P4d). Five columns
   (Overdue on pale red, this week, next week, two more), each item a link.
   On an iPad the columns scroll sideways; on a phone they stack. */
.fc-agenda-page { max-width: none; gap: 18px; }
.fc-camp-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; min-height: 42px; }
.fc-camp-head .sw-h1 { margin: 0; }
.fc-camp-new { margin-left: auto; }
.fc-camp-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: -6px; }
.fc-camp-filters .sw-lede { margin: 0; }
.fc-agenda-tools { display: flex; flex-wrap: wrap; gap: 10px; }
.fc-seg { display: inline-flex; border: 1px solid var(--sw-border); border-radius: 6px; overflow: hidden; background: var(--sw-panel); }
.fc-seg a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; font: 600 13px var(--sw-ui); color: var(--sw-ink); text-decoration: none; }
.fc-seg a + a { border-left: 1px solid var(--sw-border); }
.fc-seg a.is-on { background: var(--sw-ink); color: var(--sw-white); }
.fc-seg.is-filter { background: var(--sw-hover); border-color: transparent; padding: 3px; gap: 2px; }
.fc-seg.is-filter a { min-height: 34px; padding: 0 12px; border-radius: 4px; color: var(--sw-muted); }
.fc-seg.is-filter a + a { border-left: 0; }
.fc-seg.is-filter a.is-on { background: var(--sw-panel); color: var(--sw-ink); box-shadow: 0 0 0 1px var(--sw-border); }
.fc-nudged .sw-btn { margin-left: auto; }
.fc-agenda { display: grid; grid-template-columns: repeat(5, minmax(220px, 1fr)); gap: 14px; overflow-x: auto; min-height: 520px; }
.fc-agenda-col { border: 1px solid #D5D6D8; border-top: 3px solid var(--sw-ink); background: var(--sw-panel); display: flex; flex-direction: column; min-width: 0; }
.fc-agenda-col.is-overdue { border-top-color: var(--sw-red); }
.fc-agenda-col.is-later { border-top-color: #B9BBBE; }
.fc-agenda-col.is-overdue { background: var(--sw-red-pale); }
.fc-agenda-col.is-later { background: var(--sw-ground); }
.fc-agenda-colhead { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 14px 18px 12px; border-bottom: 1px solid #D5D6D8; background: var(--sw-hover); }
.fc-agenda-col.is-overdue .fc-agenda-colhead { background: #F9DFE2; }
.fc-agenda-colhead h2 { margin: 0; font: 800 17px/1.2 var(--sw-ui); text-transform: none; letter-spacing: 0; color: var(--sw-ink); }
.fc-agenda-col.is-overdue .fc-agenda-colhead h2 { color: var(--sw-red); }
.fc-agenda-col.is-later .fc-agenda-colhead h2 { color: var(--sw-ink-2); }
.fc-agenda-colhead span { font: 600 12px var(--sw-ui); color: var(--sw-muted); white-space: nowrap; }
.fc-agenda-empty { margin: 0; padding: 16px 18px; font: 400 14px/1.5 var(--sw-body); color: var(--sw-muted); }
.fc-agenda-item { border-bottom: 1px solid var(--sw-line); }
.fc-agenda-link { display: grid; grid-template-columns: 46px minmax(0, 1fr) 12px; gap: 8px; padding: 14px 14px 12px 15px; border-left: 3px solid transparent; color: var(--sw-ink); text-decoration: none; }
.fc-agenda-day { font: 600 12px/1.4 var(--sw-ui); color: var(--sw-muted); }
.fc-agenda-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.fc-agenda-kind { font: 700 11px/1.2 var(--sw-ui); letter-spacing: .1em; text-transform: uppercase; color: var(--sw-ink-2); }
.fc-agenda-item.is-late .fc-agenda-kind { color: var(--sw-red); }
.fc-agenda-item.is-waiting .fc-agenda-kind { color: var(--sw-amber); }
.fc-agenda-item.is-due .fc-agenda-kind { color: var(--sw-blue); }
.fc-agenda-name { font: 700 14px/1.3 var(--sw-ui); overflow-wrap: anywhere; }
.fc-agenda-co { font: 400 13px/1.3 var(--sw-body); color: var(--sw-muted); }
.fc-agenda-go { font: 700 14px var(--sw-ui); color: var(--sw-blue); align-self: start; }
.fc-agenda-nudge { margin: 0; padding: 0 14px 14px 70px; }
.fc-agenda-nudge .sw-btn { min-height: 40px; }
.fc-agenda-foot { margin: 0; }
@media (hover: hover) {
  .fc-agenda-link:hover { background: var(--sw-blue-hover); border-left-color: var(--sw-blue); text-decoration: none; }
}
.fc-agenda-link:focus-visible { background: var(--sw-blue-hover); border-left-color: var(--sw-blue); outline: none; }
@media (max-width: 760px) {
  .fc-agenda { grid-template-columns: minmax(0, 1fr); overflow: visible; min-height: 0; gap: 12px; }
  .fc-agenda-tools, .fc-seg { width: 100%; }
  .fc-seg a { flex: 1 1 0; justify-content: center; min-height: 44px; }
  .fc-seg.is-filter a { min-height: 40px; }
  .fc-camp-new { width: 100%; justify-content: center; margin-left: 0; }
  .fc-agenda-nudge { padding-left: 15px; }
  .fc-agenda-nudge .sw-btn { width: 100%; min-height: 44px; justify-content: center; }
}

/* Stage 6a: the staff Inbox, in the portal's own look (EJ, 11/10/2026).
   List on the left (one row per campaign, a coloured edge for the kind),
   the selected item on the right. Below 1024px the list fills the page and
   an item opens over it. */
.fc-inbox-page { max-width: none; padding-bottom: 0; }
.fc-inbox { display: grid; grid-template-columns: minmax(380px, 520px) minmax(0, 1fr); border: 1px solid var(--sw-line); background: var(--sw-panel); min-height: calc(100vh - 150px); }
.fc-inbox-list { background: var(--sw-ground); border-right: 1px solid var(--sw-line); display: flex; flex-direction: column; min-width: 0; }
.fc-inbox-listhead { display: flex; flex-direction: column; gap: 12px; padding: 18px 18px 14px; border-bottom: 1px solid var(--sw-line); }
.fc-inbox-title { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.fc-inbox-tools { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.fc-inbox-empty { margin: 0; padding: 18px; font: 400 15px/1.5 var(--sw-body); color: var(--sw-muted); }
.fc-inbox-rows { list-style: none; margin: 0; padding: 0; }
.fc-inrow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding: 13px 16px 13px 14px; border-left: 6px solid var(--sw-off); border-bottom: 1px solid var(--sw-line); color: var(--sw-ink); text-decoration: none; min-height: 64px; }
.fc-inrow.is-on { background: var(--sw-panel); }
.fc-inrow.is-review { border-left-color: var(--sw-green); }
.fc-inrow.is-late { border-left-color: var(--sw-red); }
.fc-inrow.is-deletion { border-left-color: var(--sw-yellow); }
.fc-inrow.is-tracking, .fc-inrow.is-promotion { border-left-color: var(--sw-blue-light); }
.fc-inrow.is-touch { border-left-color: var(--sw-blue); }
.fc-inrow.is-waiting { border-left-color: var(--sw-amber); }
.fc-inrow-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.fc-inrow-top { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; }
.fc-inrow-title { font: 800 16px/1.2 var(--sw-ui); }
.fc-inrow-tag { font: 700 10px/1.2 var(--sw-ui); letter-spacing: .08em; text-transform: uppercase; color: var(--sw-muted); }
.fc-inrow.is-late .fc-inrow-tag { color: var(--sw-red-ink); }
.fc-inrow.is-review .fc-inrow-tag { color: var(--sw-green-ink); }
.fc-inrow.is-waiting .fc-inrow-tag { color: var(--sw-amber); }
.fc-inrow.is-touch .fc-inrow-tag, .fc-inrow.is-tracking .fc-inrow-tag, .fc-inrow.is-promotion .fc-inrow-tag { color: var(--sw-blue); }
.fc-inrow-text { font: 400 14px/1.4 var(--sw-body); color: var(--sw-ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fc-inrow-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.fc-inrow-when { font: 600 12px var(--sw-ui); color: var(--sw-muted); white-space: nowrap; }
.fc-inrow-when.is-late { color: var(--sw-red); }
.fc-inrow-owner { display: inline-grid; place-items: center; min-width: 24px; height: 22px; padding: 0 4px; background: var(--sw-blue-hover); color: var(--sw-blue); font: 700 10px var(--sw-ui); }
.fc-inbox-keys { margin: auto 0 0; padding: 10px 16px; border-top: 1px solid var(--sw-line); font: 600 12px var(--sw-ui); color: var(--sw-muted); }
.fc-inbox-keys kbd { font: 700 11px var(--sw-ui); border: 1px solid var(--sw-border); padding: 2px 5px; background: var(--sw-panel); }
html:not(.has-keyboard) .fc-inbox-keys { visibility: hidden; }
@media (hover: hover) {
  .fc-inrow:hover { background: var(--sw-panel); text-decoration: none; }
}
.fc-inbox-pane { display: flex; flex-direction: column; min-width: 0; background: var(--sw-panel); }
.fc-inbox-panehead { display: flex; flex-direction: column; gap: 6px; padding: 22px 28px 18px; border-bottom: 1px solid var(--sw-line); }
.fc-inbox-close { display: none; font: 600 14px var(--sw-ui); min-height: 44px; align-items: center; }
.fc-inbox-name { margin: 0; font: 900 34px/1.05 var(--sw-ui); letter-spacing: -.01em; text-transform: none; color: var(--sw-ink); overflow-wrap: anywhere; }
.fc-inbox-text { margin: 4px 0 2px; font: 400 16px/1.5 var(--sw-body); color: var(--sw-ink-2); max-width: 70ch; }
.fc-inbox-pane .fc-nudged { margin: 16px 28px 0; }
.fc-inbox-body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; flex: 1 1 auto; }
.fc-inbox-main { padding: 20px 28px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.fc-inbox-label { margin: 10px 0 2px; font: 700 11px/1.2 var(--sw-ui); letter-spacing: .1em; text-transform: uppercase; color: var(--sw-muted); }
.fc-inbox-label:first-child { margin-top: 0; }
.fc-inbox-list-plain { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.fc-inbox-list-plain li { display: flex; align-items: center; justify-content: space-between; gap: 6px 14px; flex-wrap: wrap; padding: 9px 0; border-bottom: 1px solid var(--sw-line-soft); font: 600 14px/1.35 var(--sw-ui); }
.fc-inbox-list-plain form { margin: 0; }
.fc-inbox-history { background: var(--sw-ground); border-left: 1px solid var(--sw-line); padding: 20px; }
.fc-inbox-history ol { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.fc-inbox-history li { display: flex; flex-direction: column; gap: 2px; font: 400 14px/1.45 var(--sw-body); color: var(--sw-ink-2); padding-left: 14px; border-left: 2px solid var(--sw-line); }
.fc-inbox-histwhen { font: 600 12px var(--sw-ui); color: var(--sw-muted); }
.fc-inbox-actions { position: sticky; bottom: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 14px 28px; border-top: 1px solid var(--sw-line); background: var(--sw-panel); }
.fc-inbox-actions form { margin: 0; }
.fc-inbox-actions .sw-btn { min-height: 46px; padding: 0 18px; font-size: 14px; font-weight: 700; justify-content: center; }
.fc-inbox-primary { margin-left: auto; }
.fc-inbox-primary .sw-btn, a.fc-inbox-primary { min-height: 48px; }
.fc-jump-row { color: var(--sw-ink); text-decoration: none; }
.fc-jump-row strong { font: 700 15px var(--sw-ui); display: block; }
@media (hover: hover) {
  a.fc-jump-row:hover { background: var(--sw-blue-hover); text-decoration: none; }
}
@media (max-width: 1279px) {
  .fc-inbox { grid-template-columns: minmax(340px, 380px) minmax(0, 1fr); }
  .fc-inbox-body { grid-template-columns: minmax(0, 1fr); }
  .fc-inbox-history { border-left: 0; border-top: 1px solid var(--sw-line); }
  .fc-inrow { min-height: 76px; }
  .fc-inrow-text { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
}
@media (max-width: 1023px) {
  .fc-inbox { display: block; border: 0; min-height: 0; background: none; }
  .fc-inbox-list { border: 1px solid var(--sw-line); }
  .fc-inrow { min-height: 84px; }
  .fc-inrow-title { font-size: 18px; }
  .fc-inbox-pane { display: none; }
  .fc-inbox.has-item .fc-inbox-pane { display: flex; position: fixed; top: 0; right: 0; bottom: 0; width: min(620px, 100%); z-index: 60; overflow-y: auto; box-shadow: -10px 0 40px rgba(26, 26, 26, .25); }
  .fc-inbox.has-item::after { content: ''; position: fixed; inset: 0; background: rgba(26, 26, 26, .35); z-index: 55; }
  .fc-inbox-close { display: inline-flex; }
  .fc-inbox-panehead, .fc-inbox-main { padding-left: 20px; padding-right: 20px; }
  .fc-inbox-actions { padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); }
  .fc-inbox-actions > .sw-btn, .fc-inbox-actions > form { flex: 1 1 0; }
  .fc-inbox-actions .sw-btn { width: 100%; min-height: 52px; }
  .fc-inbox-primary { margin-left: 0; flex: 2 1 0 !important; }
}
@media (max-width: 760px) {
  .fc-inbox-name { font-size: 28px; }
}

/* Stage 6b: the staff campaign workspace (canvas P5a), in the portal's own
   look. A menu with one place per module (dots: red needs fixing, yellow a
   deadline is coming), the open section in the middle, key facts on the
   right. Narrower screens put the facts under the section, then the menu
   across the top. */
.fc-wshead .fc-camphead-name { font-size: 34px; line-height: 1.05; overflow-wrap: anywhere; }
.fc-wscrumb a { color: inherit; }
.fc-wshead { display: flex; flex-direction: column; gap: 16px; padding-bottom: 20px; }
.fc-wsactions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.fc-wsactions .sw-btn { min-height: 44px; }
.fc-wsmore { position: relative; }
.fc-wsmore summary { list-style: none; cursor: pointer; }
.fc-wsmore summary::-webkit-details-marker { display: none; }
.fc-wsmore .fc-me-menu { top: 50px; }
.fc-wsmore .fc-me-menu form { margin: 0; }
.fc-wsmore .fc-me-menu .sw-btn { width: 100%; justify-content: flex-start; border: 0; background: none; min-height: 40px; padding: 0 10px; font-weight: 600; }
.fc-danger-text { color: var(--sw-red) !important; }
.fc-ws { display: grid; grid-template-columns: 210px minmax(0, 1fr) 290px; gap: 24px; align-items: start; }
.fc-wsmenu { display: flex; flex-direction: column; gap: 2px; position: sticky; top: 16px; }
.fc-wsmenu a { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px; border-left: 3px solid transparent; font: 500 14px var(--sw-ui); color: var(--sw-muted); text-decoration: none; }
.fc-wsmenu a.is-current { background: var(--sw-panel); border-left-color: var(--sw-blue); color: var(--sw-blue); font-weight: 700; }
.fc-wsmenu a > span:first-child { flex: 1 1 auto; }
/* Group headings: small blue label with a hairline running to the edge, so each group reads as its own block. */
.fc-wsmenu-group { display: flex; align-items: center; gap: 10px; margin: 18px 0 6px 15px; font: 700 10.5px/1.2 var(--sw-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--sw-blue); }
.fc-wsmenu-group::after { content: ''; flex: 1; height: 1px; background: #D5D6D8; }
.fc-wsdot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.fc-wsdot.is-red { background: var(--sw-red); }
.fc-wsdot.is-yellow { background: var(--sw-yellow); }
.fc-wsmenu-out { color: var(--sw-muted); font-weight: 700; }
@media (hover: hover) {
  .fc-wsmenu a:hover { background: var(--sw-panel); color: var(--sw-ink); text-decoration: none; }
}
.fc-wsmain { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.fc-wsmain .card + .card, .fc-wsmain .card { margin-top: 0; }
.fc-ready-title { margin: 0; font: 800 20px/1.2 var(--sw-ui); text-transform: none; letter-spacing: 0; color: var(--sw-ink); }
.fc-ready-left { font: 700 13px var(--sw-ui); color: var(--sw-green-ink); }
.fc-ready-left.is-bad { color: var(--sw-red); }
.fc-ready-row { align-items: center; gap: 14px; flex-wrap: wrap; }
.fc-ready-row form { margin: 0; }
.fc-ready-row .fc-grow { display: flex; flex-direction: column; gap: 2px; min-width: 200px; }
.fc-ready-line { font: 600 15px/1.3 var(--sw-ui); }
.fc-ready-row.is-bad { box-shadow: inset 3px 0 var(--sw-red); background: var(--sw-red-pale); }
.fc-ready-row.is-bad .fc-ready-line { font-weight: 700; }
.fc-ready-row.is-later { box-shadow: inset 3px 0 #C9CBCE; }
.fc-ready-row.is-ok .fc-ready-line { font-weight: 500; color: var(--sw-muted); }
.fc-ready-done { border-top: 1px solid var(--sw-line); }
.fc-ready-done > summary { display: flex; align-items: center; gap: 14px; padding: 12px 16px; background: #F7FAF2; cursor: pointer; list-style: none; }
.fc-ready-done > summary::-webkit-details-marker { display: none; }
.fc-ready-done-n { flex: none; font: 600 14px var(--sw-ui); color: var(--sw-green-ink); }
.fc-ready-done-names { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 400 13px var(--sw-body); color: var(--sw-muted); }
.fc-ready-done-show { flex: none; font: 600 13px var(--sw-ui); color: var(--sw-blue); }
.fc-ready-done-show::after { content: 'Show'; }
.fc-ready-done[open] .fc-ready-done-show::after { content: 'Hide'; }
.fc-ready-done[open] > summary { border-bottom: 1px solid var(--sw-line); }
.fc-ready-done > summary:focus-visible { outline: 2px solid var(--sw-blue); outline-offset: -2px; }
.fc-ready-mark { flex: none; width: 26px; height: 26px; display: grid; place-items: center; font: 800 14px var(--sw-ui); background: var(--sw-chip); color: var(--sw-muted); }
.fc-ready-row.is-ok .fc-ready-mark { background: var(--sw-green-tint); color: var(--sw-green-ink); }
.fc-ready-row.is-bad .fc-ready-mark { background: var(--sw-red-tint); color: var(--sw-red); }
.fc-ready-row .sw-btn { min-height: 44px; }
.fc-ws-act { display: flex; align-items: baseline; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--sw-line-soft); font: 400 14px/1.45 var(--sw-body); }
.fc-ws-act:last-child { border-bottom: 0; }
.fc-ws-act .fc-done-when { width: 120px; }
.fc-wsrail { display: flex; flex-direction: column; background: #F4F4F2; border: 1px solid #ECEBE7; }
.fc-fact { display: flex; flex-direction: column; gap: 3px; padding: 16px 18px; border-bottom: 1px solid #E5E4DF; }
.fc-fact:last-child { border-bottom: 0; }
.fc-fact strong { font: 600 15px/1.3 var(--sw-ui); color: var(--sw-ink-2); overflow-wrap: anywhere; }
.fc-fact strong.is-missing { color: var(--sw-red); }
.fc-fact strong.fc-fact-small { font-size: 14px; font-weight: 600; }
@media (max-width: 1399px) {
  .fc-ws { grid-template-columns: 200px minmax(0, 1fr); }
  .fc-wsrail { grid-column: 2; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
  .fc-fact { border-right: 1px solid var(--sw-line); }
}
@media (max-width: 960px) {
  .fc-ws { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .fc-wsmenu { position: static; flex-direction: row; overflow-x: auto; gap: 4px; padding-bottom: 4px; border-bottom: 1px solid var(--sw-line); }
  .fc-wsmenu-group { display: none; }
  .fc-wsmenu a { flex: none; border-left: 0; border-bottom: 3px solid transparent; min-height: 44px; white-space: nowrap; }
  .fc-wsmenu a.is-current { border-bottom-color: var(--sw-blue); background: none; }
  .fc-wsrail { grid-column: 1; }
}
@media (max-width: 760px) {
  .fc-wshead .fc-camphead-name { font-size: 26px; }
  .fc-wsactions .sw-btn, .fc-wsmore { flex: 1 1 auto; }
  .fc-wsmore summary { width: 100%; justify-content: center; }
  .fc-ws-act { flex-wrap: wrap; }
}

/* Staff top bar (portal redesign, canvas P4d and P5a; white like the
   client bar, EJ 11/10/2026): Inbox, Campaigns, Results, then Accounts and
   Compliance as menus. Phones keep the slide-out menu, where the menus open
   in place. */
.fc-navmenu { position: relative; }
.fc-navmenu summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px; padding: 8px 10px; min-height: 36px; border-radius: 6px; font: 700 13px/1.2 var(--sw-ui); color: #111; }
.fc-navmenu summary::-webkit-details-marker { display: none; }
.fc-navmenu summary::after { content: '\25BE'; font-size: 10px; color: var(--sw-muted); }
.fc-navmenu-list { display: flex; flex-direction: column; gap: 2px; padding: 2px 0 6px 12px; }
.fc-navmenu-list a { font-weight: 600; }
.sw-nav-count.is-grey { background: var(--sw-muted); color: var(--sw-white); }
.fc-me summary { position: relative; }
.fc-me-dot { position: absolute; top: 4px; right: 4px; width: 9px; height: 9px; border-radius: 50%; background: var(--sw-red); border: 2px solid var(--sw-panel); }
@media (min-width: 761px) {
  .sw-side.fc-ctop .fc-navmenu { align-self: stretch; display: flex; }
  .sw-side.fc-ctop .fc-navmenu > summary { height: 64px; min-height: 0; padding: 0 12px; border-radius: 0; border-top: 3px solid transparent; border-bottom: 3px solid transparent; font-weight: 700; color: var(--sw-muted); }
  .sw-side.fc-ctop .fc-navmenu.is-current > summary { color: var(--sw-ink); border-bottom-color: var(--sw-blue); }
  .sw-side.fc-ctop .fc-navmenu-list { position: absolute; top: 64px; left: 0; min-width: 230px; padding: 8px; background: var(--sw-panel); border: 1px solid var(--sw-line); border-radius: var(--sw-radius); box-shadow: 0 10px 30px rgba(26, 26, 26, .12); z-index: 70; }
  .sw-side.fc-ctop > .sw-nav .fc-navmenu-list a { height: auto; min-height: 40px; padding: 0 10px; border-top: 0; border-bottom: 0; border-radius: 6px; color: var(--sw-ink); font: 600 13px var(--sw-ui); }
  .sw-side.fc-ctop > .sw-nav .fc-navmenu-list a.is-current { background: var(--sw-blue-tint); color: var(--sw-blue); }
}
@media (hover: hover) and (min-width: 761px) {
  .sw-side.fc-ctop .fc-navmenu > summary:hover { color: var(--sw-ink); }
  .sw-side.fc-ctop .fc-navmenu-list a:hover { background: var(--sw-hover); text-decoration: none; }
}
@media (min-width: 761px) and (max-width: 1100px) {
  .sw-side.fc-ctop.is-staff { gap: 10px; padding: 0 12px; }
  .sw-side.fc-ctop.is-staff > .sw-nav > a, .sw-side.fc-ctop.is-staff .fc-navmenu > summary { padding: 0 8px; font-size: 13px; }
  body:has(> .sw-side.fc-ctop.is-staff) > .sw-topbar { padding-right: 12px; }
  body:has(> .sw-side.fc-ctop.is-staff) > .sw-topbar .sw-btn-primary { padding: 0 10px; font-size: 12px; }
}

/* Inbox Done and Snooze (EJ, 11/10/2026): the three tabs, the rows on the
   Snoozed and Done tabs, and the Undo note. */
.fc-inbox-tabs { display: flex; gap: 18px; border-bottom: 1px solid var(--sw-line); margin: 0 -18px; padding: 0 18px; }
.fc-inbox-tabs a { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; border-bottom: 2px solid transparent; font: 600 13px var(--sw-ui); color: var(--sw-muted); text-decoration: none; }
.fc-inbox-tabs a.is-on { color: var(--sw-ink); border-bottom-color: var(--sw-ink); }
.fc-inbox-tabs a span { font-weight: 700; }
.fc-inrow-off { border-left-color: var(--sw-off); align-items: center; }
.fc-inrow-off form { margin: 0; }
.fc-inbox-actions form[data-inbox-done] .sw-btn, .fc-inbox-actions form[data-inbox-snooze] .sw-btn { font-weight: 600; }
.fc-toast { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); z-index: 80; display: flex; align-items: center; gap: 14px; max-width: calc(100% - 32px); padding: 10px 12px 10px 18px; background: var(--sw-ink); color: var(--sw-white); border-radius: var(--sw-radius); box-shadow: 0 10px 30px rgba(26, 26, 26, .25); font: 400 14px/1.4 var(--sw-body); }
.fc-toast strong { font-family: var(--sw-ui); }
.fc-toast form { margin: 0; }
.fc-toast .sw-btn { background: var(--sw-white); min-height: 40px; }
@media (max-width: 1023px) {
  .fc-inbox-actions > form[data-inbox-done], .fc-inbox-actions > form[data-inbox-snooze] { flex: 1 1 0; }
}

/* Admin Notes: the Features tab (views/admin/notes.ejs, lib/adminFeatures.js). */
.fc-tab-count { display: inline-block; min-width: 18px; margin-left: 4px; padding: 1px 6px; border-radius: 9px; background: var(--sw-hover); color: var(--sw-ink-2); font: 700 11px/16px var(--sw-ui); text-align: center; }
.fc-feat-statuses { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; margin: 0 0 14px; }
.fc-feat-count { display: inline-flex; align-items: center; gap: 6px; font: 600 13px var(--sw-ui); color: var(--sw-ink-2); }
.fc-feat-add { margin-bottom: 16px; }
.fc-feat-add > summary { color: var(--sw-blue); }
.fc-feat-list { display: flex; flex-direction: column; gap: 12px; }
.fc-feat { padding: 16px 18px; }
.fc-feat.is-quiet { background: #FBFBFA; }
.fc-feat.is-quiet .fc-feat-name { color: var(--sw-muted); }
.fc-feat-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.fc-feat-name { margin: 0; font: 800 17px/1.3 var(--sw-ui); color: var(--sw-ink); }
.fc-feat-summary { margin: 8px 0 12px; font: 400 15px/1.55 Lora, serif; color: var(--sw-ink-2); white-space: pre-wrap; overflow-wrap: anywhere; max-width: 900px; }
.fc-feat-facts { display: flex; flex-wrap: wrap; gap: 6px 28px; margin: 0; }
.fc-feat-facts > div { display: flex; gap: 8px; align-items: baseline; min-width: 0; }
.fc-feat-facts dt { font: 700 10.5px var(--sw-ui); letter-spacing: .12em; text-transform: uppercase; color: var(--sw-muted); }
.fc-feat-facts dd { margin: 0; font: 500 13px var(--sw-ui); color: var(--sw-ink-2); overflow-wrap: anywhere; }
.fc-feat-edit { margin-top: 12px; border-top: 1px solid var(--sw-line); padding-top: 8px; }
.fc-feat-edit > summary { cursor: pointer; font: 600 13px var(--sw-ui); color: var(--sw-blue); padding: 6px 0; min-height: 32px; display: inline-flex; align-items: center; }
.fc-feat-edit .fc-form { padding: 8px 0 0; }
.an-feature-form { margin-top: 6px; }
@media (max-width: 767px) {
  .fc-feat { padding: 14px; }
  .fc-feat-head { flex-direction: column; gap: 6px; }
  .fc-feat-facts { flex-direction: column; }
  .fc-feat .fc-grid-2, .fc-feat-add .fc-grid-2 { grid-template-columns: 1fr; }
  .fc-feat-edit > summary { min-height: 44px; }
}
.fc-notes-tabs .fc-tab { display: inline-flex; align-items: center; }
.fc-feat-flash { margin-bottom: 14px; }
