/* ============================================================
   Compliance (shared): placement only.
   The counts are stat tiles, the session list a data table, the filter the
   chips row, the search the search bar, the anomaly feed rows, and every
   message a callout. This sheet owns the two-column work area (the table
   with the anomaly feed beside it), the room a notice or blank slate needs
   inside a flush pane, and the identifier block's stack.
   Reads only --t-* and --c-* tokens.
   ============================================================ */

@layer layout {
  .compliance .compliance-controls { display: grid; gap: var(--t-space-3); }

  /* Staff: two-column work area — sessions table beside the anomaly feed. */
  .compliance .compliance-grid { display: grid; gap: var(--t-space-4); align-items: start;
                                  grid-template-columns: minmax(0, 1fr); }
  @container (min-width: 52rem) {
    .compliance .compliance-grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
  }

  /* A flush pane puts its rows to the edges, so anything else inside it
     keeps its own room. */
  /* The first task row pads its own top, so the notice gives no room below
     it, or the explanation sits a double gap above the first task. */
  .compliance .compliance-notice { display: grid; gap: var(--t-space-3);
                                    padding: var(--t-space-4) var(--t-space-5) 0; }
  /* A task's when, chip and check-in notice keep a gap between them, as the
     base's task body did. */
  .compliance .compliance-tasks .main-text { display: grid; gap: var(--t-space-2); }
  .compliance .compliance-tasks .main-text > * { margin: 0; }
  .compliance .compliance-notice p { margin: 0; }
  .compliance .compliance-empty { padding: var(--t-space-5); }
  .compliance .compliance-pager { padding: var(--t-space-4) var(--t-space-5); }

  .compliance .compliance-note { font-size: var(--t-font-size-xs); }
}

@layer design {
  /* A finished task's name is struck through, as the base drew it. */
  .compliance .compliance-task-done .title { text-decoration: line-through; }
  .compliance .compliance-note { color: var(--c-surface-text-color-muted); }
}
