/*
 * Fire Stopping module — SHARED styles (loaded on every fire-stopping page).
 *
 * Split for maintainability (mirrors the fire-door per-page CSS split):
 *   - fire-stopping.css             → this file: shared primitives (status
 *                                     chips + the list/table language) used by
 *                                     both the Surveys index and Survey-show,
 *                                     plus the dashboard empty-state helper.
 *   - fire-stopping-surveys.css     → Surveys INDEX only (page header, stats,
 *                                     tabs, filter rail/drawer, create wizard,
 *                                     status modal).
 *   - fire-stopping-survey-show.css → Survey SHOW only (full-bleed header,
 *                                     sync strip, vtabs, cards).
 *
 * The DASHBOARD reuses the Fire Doors dashboard components verbatim
 * (`.dashboard-proto` + `.dbp-*` from dashboard.css) with no FS-specific
 * overrides. Everything here is built against the GLOBAL :root design tokens,
 * so it inherits dark mode for free.
 */

/* ==========================================================================
   Status chips (shared by the Surveys index + Survey-show)
   ========================================================================== */
.fss-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}

.fss-chip-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.fss-chip--sched {
  background: color-mix(in srgb, var(--info) 12%, transparent);
  color: var(--info);
}

.fss-chip--prog,
.fss-chip--live {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.fss-chip--done,
.fss-chip--ok {
  background: color-mix(in srgb, var(--success) 14%, transparent);
  color: var(--success);
}

.fss-chip--cancelled,
.fss-chip--na {
  background: color-mix(in srgb, var(--ink-4) 14%, transparent);
  color: var(--ink-3);
}

.fss-chip--fail {
  background: color-mix(in srgb, var(--danger) 14%, transparent);
  color: var(--danger);
}

.fss-chip--defective {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.fss-chip--overdue {
  background: var(--danger-soft);
  color: var(--danger);
}

/* ---- Health / severity tones (healthy / attention / risk) -----------------
 * Shared across the module (property health badges, the defects board cards,
 * the penetration-status register, the defect modal). Defined here in the
 * shared layer so every FS page can use them — NOT page-private. All three use
 * color-mix on :root tokens, so dark mode is free. ------------------------- */
.fss-chip--healthy {
  background: color-mix(in srgb, var(--success) 14%, transparent);
  color: var(--success);
}
.fss-chip--attention {
  background: var(--accent-soft);
  color: var(--accent-strong);
}
.fss-chip--risk {
  background: color-mix(in srgb, var(--danger) 14%, transparent);
  color: var(--danger);
}

/* ==========================================================================
   Table language (shared by the Surveys index + Survey-show penetrations)
   ========================================================================== */
.fss-table-wrap {
  background: var(--surface-card);
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.fss-table {
  width: 100%;
  border-collapse: collapse;
}

.fss-table thead th {
  padding: 11px 20px;
  text-align: left;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-4);
  border-bottom: 1px solid var(--rule);
  background: var(--surface-card);
  white-space: nowrap;
}

.fss-table thead th.fss-col-expand {
  width: 32px;
}

.fss-table tbody tr {
  border-bottom: 1px solid var(--rule);
  transition: background 0.1s;
}

.fss-table tbody tr:last-child {
  border-bottom: none;
}

.fss-row {
  cursor: pointer;
}

.fss-table tbody tr:hover {
  background: var(--surface-subtle);
}

.fss-table tbody td {
  padding: 13px 20px;
  font-size: 13px;
  font-weight: 300;
  color: var(--ink-3);
  vertical-align: middle;
}

.fss-td-expand {
  width: 20px;
  color: var(--ink-4);
}

.fss-td-expand svg {
  width: 14px;
  height: 14px;
}

.fss-td-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.fss-td-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
}

.fss-td-sub {
  display: block;
  font-size: 11.5px;
  color: var(--ink-4);
}

.fss-td-num {
  font-weight: 600;
  color: var(--ink-2);
}

.fss-td-num--danger {
  color: var(--danger);
}

.fss-td-muted {
  color: var(--ink-4);
}

.fss-td-actions {
  text-align: right;
}

.fss-empty {
  padding: 40px 24px;
  text-align: center;
  color: var(--ink-4);
  font-size: 13px;
  background: var(--surface-card);
}

/* Rich first-run empty state (icon + explainer + CTA), shared by FS lists. */
.fss-empty-rich {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 48px 24px;
}

.fss-empty-rich__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--surface-inset);
  color: var(--ink-4);
}

.fss-empty-rich__icon svg {
  width: 24px;
  height: 24px;
}

.fss-empty-rich__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}

.fss-empty-rich__copy {
  margin: 0;
  max-width: 420px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-4);
}

.fss-empty-rich .btn {
  margin-top: 6px;
}

/* ---- Responsive: table card-ification (≤900px, shared) ------------------- */
@media (max-width: 900px) {
  .fss-table,
  .fss-table thead,
  .fss-table tbody,
  .fss-table tr,
  .fss-table th,
  .fss-table td {
    display: block;
    width: 100%;
  }

  .fss-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .fss-table tbody {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 4px;
  }

  .fss-table tbody tr {
    border: 1px solid var(--rule-strong);
    border-radius: 10px;
    background: var(--surface-card);
    box-shadow: var(--shadow-sm);
    padding: 4px 0;
  }

  .fss-table tbody td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 7px 14px;
    text-align: right;
  }

  .fss-table tbody td::before {
    content: attr(data-label);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-4);
    text-align: left;
  }

  .fss-td-expand {
    display: none !important;
  }

  .fss-td-main {
    align-items: flex-end;
  }

  .fss-td-actions {
    justify-content: flex-end;
  }
}

/* ==========================================================================
   Page shell (shared by every FS index page: surveys, systems, …)
   ========================================================================== */
.fire-stopping-page {
  min-width: 0;
  max-width: 100%;
  --fss-gutter: 28px;
}

/* Full-bleed proto wrapper (mirrors .inspections-proto) */
.fss-proto {
  margin-inline: calc(var(--fss-gutter) * -1);
  color: var(--ipi-ink);
}

.fss-proto svg {
  display: block;
}

/* ---- Page header --------------------------------------------------------- */
.fss-page-header {
  padding: 24px var(--fss-gutter) 20px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--ipi-rule);
  background: var(--ipi-bg-card);
}

.fss-ph-eyebrow {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ipi-accent);
  margin-bottom: 4px;
}

.fss-ph-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--ipi-ink);
  letter-spacing: -0.025em;
  margin: 0 0 4px;
}

.fss-ph-sub {
  font-size: 13px;
  font-weight: 300;
  color: var(--ipi-ink-4);
  margin: 0;
}

.fss-ph-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding-top: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.fss-ph-right .btn svg {
  width: 13px;
  height: 13px;
}

/* ---- List area (padded container for filter + table) --------------------- */
.fss-list-area {
  padding: 0 var(--fss-gutter) 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ---- Active / Archive tab bar (shared — surveys + systems) ---------------- */
.fss-tabs-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.fss-tabs {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--ipi-bg-inset);
  border-radius: 9px;
  padding: 4px;
  border: 1px solid var(--ipi-rule-h);
  box-shadow: var(--ipi-shadow-sm);
  align-self: flex-start;
}

.fss-tab {
  padding: 7px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  font-family: var(--font-sans);
  transition: all 0.15s;
  color: var(--ipi-ink-4);
  background: none;
  /* Never let "Active"/"Archive" break (mobile.css `.content{overflow-wrap:
     anywhere}` is inherited; without this the squeezed label wraps per char). */
  white-space: nowrap;
}

.fss-tab.is-active,
.fss-tab[aria-selected="true"] {
  background: var(--ipi-bg-card);
  color: var(--ipi-ink);
  box-shadow: var(--ipi-shadow-sm);
}

.fss-tab:active {
  transform: scale(0.97);
  opacity: 0.85;
}

.fss-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 100px;
  font-size: 10px;
  font-weight: 600;
  margin-left: 5px;
  background: var(--ipi-bg-inset);
  color: var(--ipi-ink-4);
}

.fss-tab.is-active .fss-tab-count,
.fss-tab[aria-selected="true"] .fss-tab-count {
  background: var(--ipi-accent-bg);
  color: var(--ipi-accent);
}

/* ==========================================================================
   Stats strip (shared — survey status counts / system type counts / KPIs)
   ========================================================================== */
.fss-stats-strip {
  display: flex;
  align-items: stretch;
  gap: 14px;
  padding: 20px var(--fss-gutter);
  flex-shrink: 0;
}

.fss-stat {
  background: var(--ipi-bg-card);
  border-radius: 10px;
  padding: 16px 20px;
  box-shadow: var(--ipi-shadow-card);
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  min-width: 0;
}

.fss-stat-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.fss-stat-icon svg {
  width: 16px;
  height: 16px;
}

.fss-stat-body {
  min-width: 0;
}

.fss-stat-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--ipi-ink-4);
  margin-bottom: 2px;
}

.fss-stat-num {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

.fss-stat-foot {
  font-size: 11px;
  font-weight: 400;
  margin-top: 2px;
}

.fss-stat--sched .fss-stat-icon {
  background: var(--ipi-blue-bg);
  color: var(--ipi-blue);
}

.fss-stat--sched .fss-stat-num,
.fss-stat--sched .fss-stat-foot {
  color: var(--ipi-blue);
}

.fss-stat--prog .fss-stat-icon {
  background: var(--ipi-accent-bg);
  color: var(--ipi-accent);
}

.fss-stat--prog .fss-stat-num {
  color: var(--ipi-ink);
}

.fss-stat--prog .fss-stat-foot {
  color: var(--ipi-ink-4);
}

.fss-stat--done .fss-stat-icon {
  background: var(--ipi-green-bg);
  color: var(--ipi-green);
}

.fss-stat--done .fss-stat-num,
.fss-stat--done .fss-stat-foot {
  color: var(--ipi-green);
}

/* Neutral KPI variant (e.g. "total") */
.fss-stat--neutral .fss-stat-icon {
  background: var(--ipi-bg-inset);
  color: var(--ipi-ink-3);
}

.fss-stat--neutral .fss-stat-num {
  color: var(--ipi-ink);
}

.fss-stat--neutral .fss-stat-foot {
  color: var(--ipi-ink-4);
}

/* Alert KPI variant (e.g. "Overdue" / "Needs review" — only applied when > 0) */
.fss-stat--alert .fss-stat-icon {
  background: var(--ipi-red-bg);
  color: var(--ipi-red);
}

.fss-stat--alert .fss-stat-num,
.fss-stat--alert .fss-stat-foot {
  color: var(--ipi-red);
}

/* Active-filter count badge on a `.ipi-filter-railbtn` (the canonical
   inspections pill targets a different attribute, so mirror it for ours). */
.fire-stopping-page .ipi-filter-railbtn span[data-fss-filters-count] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
}

/* ==========================================================================
   Utility modal base (shared) — forked 1:1 from `.inspection-modal`

   Used by every FS form/confirm modal (survey status + delete, system add/edit
   + delete, …) so they look and behave identically to the fire-door modals:
   header, warm body, footer-copy + actions, narrow dialog, danger variant.
   Mapped onto the GLOBAL :root tokens (≡ the --insp-* values).
   ========================================================================== */
.fss-modal .fss-modal__dialog {
  width: min(880px, calc(100vw - 32px));
  max-height: min(90vh, 960px);
  border-radius: 16px;
  border: 1px solid var(--rule-strong);
  background: var(--surface-card);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18), 0 4px 16px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
}

.fss-modal .fss-modal__dialog--narrow {
  width: min(560px, calc(100vw - 32px));
}

.fss-modal form {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  margin: 0;
  width: 100%;
  background: transparent;
  padding: 0;
  border-radius: 0;
}

.fss-modal .fss-modal__header {
  padding: 20px 22px 16px;
  border-bottom: 1px solid var(--rule);
  flex-shrink: 0;
  background: var(--surface-card);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.fss-modal .fss-modal__header > div:first-child {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1 1 auto;
}

.fss-modal .fss-modal__header .eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.fss-modal .fss-modal__header .modal__title,
.fss-modal .fss-modal__header h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--ink);
}

.fss-modal .fss-modal__header .text-muted,
.fss-modal .fss-modal__header > div > p:not(.eyebrow) {
  margin: 4px 0 0;
  max-width: 60ch;
  color: var(--ink-3);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
}

.fss-modal .modal__close {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--surface-inset);
  border: none;
  color: var(--ink-3);
  font-size: 18px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s ease, color 0.15s ease;
}

.fss-modal .modal__close:hover {
  background: rgba(26, 24, 21, 0.1);
  color: var(--ink);
}

.fss-modal .fss-modal__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding: 20px 22px 22px;
  background: var(--canvas);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.fss-modal .fss-modal__body label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.fss-modal .fss-modal__body label > span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.fss-modal :where(input[type="text"], input[type="password"], input[type="search"], input[type="tel"], input[type="url"], select, textarea) {
  min-height: 40px;
  padding: 10px 13px;
  border-radius: 9px;
  border: 1px solid var(--rule-strong);
  background: var(--surface-card);
  font-family: var(--font-sans);
  font-size: 13.5px;
  color: var(--ink);
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.fss-modal :where(input[type="text"], input[type="password"], input[type="search"], input[type="tel"], input[type="url"], select, textarea):focus {
  border-color: var(--accent-strong);
  box-shadow: 0 0 0 3px var(--accent-soft);
  outline: none;
}

.fss-modal textarea {
  min-height: 72px;
  resize: vertical;
  line-height: 1.5;
}

.fss-modal .fss-modal__footer {
  padding: 13px 22px 14px;
  border-top: 1px solid var(--rule);
  background: var(--surface-card);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.fss-modal .fss-modal__footer-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.fss-modal .fss-modal__footer-copy strong {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

.fss-modal .fss-modal__footer-copy p {
  margin: 0;
  font-size: 12px;
  color: var(--ink-4);
}

.fss-modal .fss-modal__footer-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.fss-modal .fss-modal__footer .btn {
  min-height: 40px;
  padding: 8px 18px;
}

/* Danger variant (delete). `!important` on the eyebrow beats the canonical
   mobile eyebrow rule (style.css gotcha #10). */
.modal.fss-modal.fss-modal--danger .fss-modal__header .eyebrow {
  color: var(--danger, #b03030) !important;
}

.modal.fss-modal.fss-modal--danger .fss-modal__footer-actions .btn-danger {
  background: var(--danger, #b03030);
  color: #ffffff;
  border: none;
  font-weight: 600;
}

.modal.fss-modal.fss-modal--danger .fss-modal__footer-actions .btn-danger:hover {
  background: #952828;
}

html[data-theme="dark"] .fss-modal .fss-modal__dialog {
  border-color: rgba(148, 163, 184, 0.18);
}

html[data-theme="dark"] .modal.fss-modal.fss-modal--danger .fss-modal__header .eyebrow {
  color: #f87171 !important;
}

html[data-theme="dark"] .modal.fss-modal.fss-modal--danger .fss-modal__footer-actions .btn-danger {
  background: #dc2626;
}

html[data-theme="dark"] .modal.fss-modal.fss-modal--danger .fss-modal__footer-actions .btn-danger:hover {
  background: #b91c1c;
}

/* ==========================================================================
   Shared shell responsive (≤900px)
   ========================================================================== */
@media (max-width: 900px) {
  .fire-stopping-page {
    --fss-gutter: 16px;
  }

  .fss-page-header {
    flex-direction: column;
    align-items: flex-start;
    padding-top: 18px;
  }

  .fss-ph-right {
    width: 100%;
    justify-content: flex-start;
  }

  /* Active/Archive tab row: stack the tabs above the meta (mirrors the fire-door
     `.ipi-tabs-row` at ≤1024) and drop the meta — it's redundant with the filter
     rail's "Showing X/Y" line, and side-by-side it squeezed the tabs until the
     labels wrapped per character ("Acti ve"). */
  .fss-tabs-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .fss-tabs-row .ipi-tabs-meta {
    display: none;
  }

  /* Surface the filter rail at ≤900 to match the drawer-as-sheet breakpoint —
     the canonical `.ipi-filter-rail` only shows ≤768, leaving 769–900px (tablet
     portrait) with no inline filters AND no Filters button (a dead zone). */
  .fire-stopping-page .ipi-filter-rail {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    background: var(--ipi-bg-card);
    border-radius: 12px;
    box-shadow: var(--ipi-shadow-card);
  }

  /* The rail's copy + actions layout is canonically gated at ≤768; since we
     surface the rail up to ≤900 it must carry that layout here too, or the
     "Filters"/"Clear" buttons lose their flex row on tablet portrait (769–900)
     and no longer sit like they do on the phone. Mirrors the ≤768 canonical. */
  .fire-stopping-page .ipi-filter-rail__copy {
    min-width: 0;
    flex: 1 1 auto;
  }

  .fire-stopping-page .ipi-filter-rail__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
  }

  /* Utility modal footer: actions become a full-width 2-col grid (footer-copy
     is hidden by the canonical [class*="__footer-copy"] rule on mobile). */
  .fss-modal .fss-modal__footer-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
  }

  .fss-modal .fss-modal__footer-actions > *:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .fss-modal .fss-modal__footer-actions .btn {
    width: 100%;
  }
}

/* Stats become a swipeable horizontal carousel (never wrap) at ≤900px — the FS
   pages' own layout breakpoint. Previously ≤768px, which left the 769–900px
   tablet range in a cramped desktop flex row: the Tested Systems strip carries 5
   cards (`flex: 1`), so at ~810px they squashed to ~150px each and looked broken.
   Matching the 900px the rest of the FS page reflows at fixes tablet portrait. */
@media (max-width: 900px) {
  .fss-stats-strip {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 18px 0 20px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
  }

  .fss-stats-strip::-webkit-scrollbar {
    display: none;
  }

  .fss-stat {
    flex: 0 0 min(240px, 76vw);
    scroll-snap-align: start;
  }

  .fss-stats-strip > .fss-stat:first-child {
    margin-left: 16px;
  }

  .fss-stats-strip > .fss-stat:last-child {
    margin-right: 16px;
  }
}

/* ==========================================================================
   Assign-property + client modals (survey-show + surveys index) and the
   property-card warn note. Shared across FS pages via .fss-modal scoping so
   both the index client modal and the survey-show assign modal pick them up.
   ========================================================================== */
.fss-assign-summary {
  background: var(--surface-inset);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 14px;
}
.fss-assign-summary__label {
  margin: 0 0 2px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-4);
}
.fss-assign-summary__title {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.fss-assign-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}
.fss-assign-field:last-child {
  margin-bottom: 0;
}
.fss-assign-empty {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.5;
}
.fss-assign-empty:not([hidden]) {
  background: rgba(176, 48, 48, 0.06);
  border: 1px solid rgba(176, 48, 48, 0.18);
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--danger);
}

/* Form field primitives inside FS modals (the followup-panel .f-* rules are
   panel-scoped and don't reach these modals). */
.fss-modal .f-label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-4);
}
.fss-modal .f-input {
  width: 100%;
  min-height: 40px;
  padding: 9px 12px;
  border-radius: 9px;
  border: 1px solid var(--rule-strong);
  background: var(--surface-card);
  color: var(--ink);
  font-size: 14px;
}
.fss-modal .f-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft, rgba(196, 149, 16, 0.18));
}
.fss-modal .f-hint {
  display: block;
  font-size: 11.5px;
  color: var(--ink-4);
}

/* Property-card "needs a client" warn note. */
.fss-ir-warn {
  font-size: 11.5px;
  color: var(--accent-strong, var(--accent));
}
