/* 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; } }

/* Security partner logs */
.pl-controls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 10px; align-items: end; margin: 12px 0 4px; }
.pl-controls label { display: grid; gap: 4px; font-weight: 600; color: var(--deep); }
.pl-controls select { min-height: 44px; }
.pl-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.pl-buttons .btn { min-height: 44px; }
.pl-kpis { grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 14px 0; }
.pl-kpis .kpi { padding: 12px 14px; border-radius: 18px; }
.pl-setup { list-style: none; margin: 0 0 18px; padding: 12px 16px; display: grid; gap: 8px; border-radius: 18px; background: var(--soft); border: 1px solid var(--mint); }
.pl-setup li { display: flex; gap: 10px; align-items: flex-start; overflow-wrap: anywhere; }
.pl-setup li.pl-setup-todo { color: #5A4500; }
.pl-err { color: #8C1D18; font-weight: 600; }
.pl-table td { overflow-wrap: anywhere; }
.pl-timeline td:first-child { font-family: var(--font-mono); white-space: nowrap; }
.pl-day th { background: var(--soft); color: var(--deep) !important; font-size: .8rem !important; padding-top: 10px !important; }
.pl-bad { background: #FFFBEA; }
.pl-bad td:first-child { box-shadow: inset 4px 0 0 var(--chalk); }
.pl-src { display: inline-flex; gap: 6px; align-items: center; white-space: nowrap; padding: 2px 10px; border-radius: 999px; font-size: .85rem; font-weight: 700; border: 1px solid var(--line); background: var(--surface); }
.pl-src-iap { border-color: var(--chalk); background: #FFF6D6; color: #5A4500; }
.pl-src-app { border-color: var(--mint); background: var(--soft); color: var(--deep); }
.pl-src-gcp, .pl-src-github { color: var(--deep); }
.pl-live { color: var(--accent); }
@media (max-width: 1100px) { .pl-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } .pl-controls { grid-template-columns: repeat(3, minmax(0, 1fr)); } .pl-buttons { grid-column: 1 / -1; } }
@media (max-width: 700px) {
  .pl-controls, .pl-kpis { grid-template-columns: minmax(0, 1fr); }
  .pl-table thead { display: none; }
  .pl-table tr { display: grid; grid-template-columns: minmax(0, 1fr); padding: 8px 0; border-bottom: 1px solid var(--line); }
  .pl-table td, .pl-table th { border: 0 !important; padding: 2px 8px !important; }
  .pl-table td[data-label]::before { content: attr(data-label); display: block; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
}
