/* Security check: ticking findings and marking them "It was me / I'm aware / Resolved". */
.sc-item.can-ack { grid-template-columns: 30px 24px minmax(0, 1fr) auto; }
.sc-tick { display: grid; place-items: center; width: 30px; height: 30px; margin-top: -2px; cursor: pointer; }
.sc-tick input { width: 22px; height: 22px; margin: 0; accent-color: var(--deep); cursor: pointer; }
.sc-item.ticked { outline: 3px solid var(--chalk); outline-offset: 1px; }
.sc-ackbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 10px; padding: 10px 14px; border-radius: 16px; background: var(--bg); border: 1px dashed var(--line); }
.sc-ackhint { font-weight: 700; color: var(--deep); margin-right: 4px; }
.sc-ackbar button { min-height: 44px; }
.sc-ackbar button:disabled { opacity: .5; cursor: not-allowed; }
.sc-acked { margin-top: 14px; padding: 10px 14px; border-radius: 18px; border: 1px solid var(--mint); background: var(--soft); }
.sc-acked summary { cursor: pointer; font-weight: 800; color: var(--deep); min-height: 32px; }
.sc-acked .sc-list { margin-top: 8px !important; }
.sc-item.acked { background: var(--surface); opacity: .9; }
.sc-item.acked .sc-shape { color: var(--accent); }
@media (max-width: 900px) {
  .sc-item.can-ack { grid-template-columns: 30px 22px minmax(0, 1fr); }
  .sc-item.can-ack .sc-acts { grid-column: 3; }
}

/* The incident log. Level badges carry the number, statuses a shape, so colour is never the only cue. */
.ic-list { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 12px; }
.ic-item { border: 1px solid var(--line); border-left: 6px solid var(--mint); border-radius: 18px; padding: 14px 16px; background: var(--surface); }
.ic-item.ic-l3, .ic-item.ic-l4 { border-left-color: var(--chalk); }
.ic-item.ic-l5, .ic-item.ic-l6 { border-left-color: #B42318; background: #FFF8F6; }
.ic-item.ic-resolved { opacity: .85; background: var(--soft); border-left-color: var(--accent); }
.ic-head { display: flex; gap: 12px; align-items: flex-start; }
.ic-head p { margin: 2px 0 0; }
.ic-level { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--soft); color: var(--deep); font-size: 1.25rem; border: 2px solid var(--mint); }
.ic-l3 .ic-level, .ic-l4 .ic-level { background: #FFF6D6; border-color: var(--chalk); }
.ic-l5 .ic-level, .ic-l6 .ic-level { background: #B42318; border-color: #B42318; color: #FFFFFF; }
.ic-detail { margin: 8px 0 4px; }
.ic-events { margin: 6px 0 0; padding-left: 1.2em; display: grid; gap: 4px; }
.ic-resolve { margin-top: 10px; }
.ic-resolve button, #icRefresh { min-height: 44px; }
.ic-levels { margin: 8px 0 0; padding-left: 1.2em; display: grid; gap: 4px; }
.ic-halted { padding: 12px 16px; border-radius: 14px; background: #FFF6D6; border: 2px solid var(--chalk); }
.ic-done { margin-top: 14px; }

/* Incident log: when it happened, resolving in one tap or in bulk, and exporting. */
.ic-head { align-items: center; }
.ic-tick input { width: 24px; height: 24px; accent-color: var(--accent); }
.ic-when { margin: 8px 0 0; padding: 8px 12px; border-radius: 12px; background: var(--soft); font-size: .95rem; }
.ic-times { list-style: none; padding: 0; margin: 6px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.ic-times li { padding: 3px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-family: var(--font-mono); font-size: .82rem; }
.ic-when details summary { cursor: pointer; margin-top: 6px; font-weight: 600; }
.ic-resolve { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.ic-resolve .btn, .ic-bulk .btn { min-height: 44px; }
.ic-own { display: flex; gap: 8px; flex: 1 1 280px; }
.ic-own input { flex: 1; min-width: 0; min-height: 44px; }
.ic-bulk { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 14px; border-radius: 16px; background: #FFF6D6; border: 1px solid var(--chalk); margin-bottom: 10px; }
.ic-export { margin-top: 16px; padding: 12px 16px; border-radius: 18px; border: 1px dashed var(--mint); background: var(--surface); }
.ic-export > summary { cursor: pointer; font-weight: 700; color: var(--deep); min-height: 32px; display: flex; align-items: center; }
.ic-export[open] { display: grid; gap: 10px; }
.ic-exrow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ic-exrow input, .ic-exrow select { min-height: 44px; }
.ic-export .plan-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.ic-export .plan-actions button { min-height: 44px; }
.ic-cleared { padding: 10px 14px; border-radius: 14px; background: var(--soft); border: 1px solid var(--mint); }
@media (max-width: 720px) { .ic-exrow { grid-template-columns: 1fr; } }
