/* ==========================================================================
   Alert review — existing SmartCare tokens only, al- prefix throughout.
   ========================================================================== */

.al-toggle { display: inline-flex; align-items: center; gap: 7px;
             font-size: 13px; color: var(--muted); white-space: nowrap;
             cursor: pointer; }
.al-toggle input { width: auto; margin: 0; cursor: pointer; }

.al-h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .04em;
         color: var(--muted); margin: 20px 0 8px; font-weight: 650; }
.al-none, .al-more { color: var(--muted); padding: 10px 0; font-size: 13px; }

/* Nothing open is good news and should read as good news, not as an empty
   table. It is the only state on this card with a colour of its own. */
.al-clear { color: var(--go); background: var(--go-soft);
            border-radius: var(--radius-sm); padding: 11px 14px;
            font-size: 13.5px; font-weight: 600; }

.al-hint { font-size: 13px; line-height: 1.55; color: var(--ink-soft);
           background: var(--accent-soft); border-radius: var(--radius-sm);
           padding: 10px 13px; margin: 0 0 14px; }

/* ---- the list ----------------------------------------------------------- */
.al-list { list-style: none; margin: 0; padding: 0; }

.al-item { display: flex; align-items: flex-start; gap: 12px;
           padding: 13px 0; border-bottom: 1px solid var(--line); }
.al-item:last-child { border-bottom: none; }
.al-item-main { flex: 1; min-width: 0; }

/* Severity carries a rule as well as a pill, so an open critical alert is
   visible from across the card and not only to someone reading the badge. */
.al-item.al-sev-critical { box-shadow: inset 3px 0 0 var(--stop); padding-left: 12px; }
.al-item.al-sev-warning  { box-shadow: inset 3px 0 0 var(--warn); padding-left: 12px; }

.al-line { display: flex; align-items: flex-start; gap: 9px;
           margin-bottom: 4px; }
.al-line:last-of-type { margin-bottom: 0; }
.al-line .pill { flex: 0 0 auto; margin-top: 1px; }
.al-msg { font-size: 14px; line-height: 1.5; min-width: 0;
          overflow-wrap: anywhere; }

.al-meta { margin-top: 5px; line-height: 1.5; }

.al-list-past .al-item { padding: 11px 0; box-shadow: none; padding-left: 0; }
.al-list-past .al-msg { color: var(--ink-soft); font-size: 13.5px; }

/* The resolution is the part of an acknowledged alert worth reading, so it is
   set apart rather than appended to the metadata line. */
.al-res { margin-top: 6px; font-size: 13.5px; line-height: 1.55;
          background: var(--surface); border-radius: var(--radius-sm);
          padding: 8px 11px; border-left: 2px solid var(--line); }
.al-res-empty { font-style: italic; }

/* ---- dialog ------------------------------------------------------------- */
.al-subject { background: var(--surface); border-radius: var(--radius-sm);
              padding: 11px 13px; }
.al-subject .t-sub { margin-top: 6px; }

.al-notice { font-size: 12.5px; line-height: 1.55; color: var(--ink-soft);
             background: var(--accent-soft); border-radius: var(--radius-sm);
             padding: 9px 12px; margin: 12px 0 0; }
.al-notice-ok   { background: var(--go-soft);   color: var(--go); }
.al-notice-warn { background: var(--warn-soft); color: var(--warn);
                  border-left: 3px solid var(--warn); }

#al-res { width: 100%; font: inherit; line-height: 1.5; resize: vertical;
          min-height: 92px; }

.al-templates { display: flex; flex-wrap: wrap; gap: 7px; align-items: center;
                margin: -4px 0 10px; }
.al-chip { font: inherit; font-size: 12.5px; font-weight: 600;
           padding: 4px 11px; border-radius: 999px; cursor: pointer;
           background: var(--surface); color: var(--muted);
           border: 1px solid var(--line); }
.al-chip:hover { border-color: var(--accent); color: var(--ink-soft); }

.al-fineprint { line-height: 1.55; margin: 0; }

#al-go:disabled { opacity: .5; cursor: not-allowed; }

@media (max-width: 640px) {
  .al-item { flex-wrap: wrap; }
  .al-item .btn { margin-left: 0; }
}

/* 16 Oct 2026: outcome + repeat-reading text */
.al-outcome { font-size: 12.5px; font-weight: 600; margin-top: 4px; }
.al-retake { font-size: 12px; color: var(--muted); margin-top: 3px; }
.al-retake-bad { color: var(--stop); font-weight: 600; }
