/* GMS operations: a focused incident desk with separate fleet and audit views. */
:root {
  color-scheme: dark;
  --bg: #0d1117;
  --panel: #151b24;
  --panel2: #10161e;
  --head: #111720;
  --line: #29323f;
  --line2: #3b4757;
  --text: #edf1f7;
  --text2: #c3cdd9;
  --muted: #94a2b6;
  --act: #edcb71;
  --crit: #ff8b87;
  --warn: #efbe69;
  --info: #94baff;
  --ok: #7bd6b4;
  --off: #a5b2c3;
  --crit-bg: #302027;
  --warn-bg: #302a1f;
  --info-bg: #1b2940;
  --off-bg: #202733;
  --mono: ui-monospace, SFMono-Regular, Consolas, monospace;
  --rail: 90px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    14px/1.5 Arial,
    Helvetica,
    sans-serif;
  font-variant-numeric: tabular-nums;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
select,
textarea,
summary {
  outline-offset: 4px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--act);
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}
a {
  color: var(--act);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
[hidden] {
  display: none !important;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-weight: 600;
}
small {
  font-size: 12px;
}
.cr-muted,
.cr-small {
  color: var(--muted);
}
.cr-small {
  font-size: 12px;
}
.cr-mono {
  font-family: var(--mono);
}
.cr-good {
  color: var(--ok);
}
.cr-warn {
  color: var(--warn);
}
.cr-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cr-grow {
  flex: 1;
}
.cr-pad {
  padding: 24px;
}
.cr-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}
.cr-skip {
  position: fixed;
  top: -80px;
  left: 12px;
  z-index: 100;
  background: var(--panel);
  padding: 12px;
}
.cr-skip:focus {
  top: 12px;
}
.cr-rail {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--rail);
  background: #10151c;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 27px 8px 18px;
  z-index: 20;
}
.cr-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 13px;
  letter-spacing: 2px;
}
.cr-brand:hover {
  text-decoration: none;
}
.cr-logo {
  width: 32px;
  height: 32px;
  border: 2px solid var(--act);
  border-radius: 7px;
  background: repeating-linear-gradient(-45deg, var(--act) 0 5px, #141820 5px 10px);
  box-shadow: 0 0 0 4px #edcb7109;
}
.cr-views {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  margin-top: 46px;
}
.cr-views a,
.cr-engineering {
  position: relative;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 7px;
  color: var(--muted);
  border-radius: 10px;
  font-size: 12px;
  padding: 13px 3px;
  min-height: 66px;
  text-decoration: none;
}
.cr-views a svg {
  width: 22px;
  height: 22px;
}
.cr-views a:hover,
.cr-engineering:hover {
  color: var(--text);
  background: #ffffff05;
  text-decoration: none;
}
.cr-views a.cr-on {
  color: var(--act);
  background: #edcb7110;
}
.cr-views a.cr-on::before {
  content: '';
  position: absolute;
  left: -8px;
  top: 20px;
  bottom: 20px;
  width: 3px;
  background: var(--act);
  border-radius: 0 3px 3px 0;
}
.cr-rail-count {
  position: absolute;
  right: 12px;
  top: 7px;
  min-width: 15px;
  border-radius: 8px;
  background: var(--crit);
  color: #22171b;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
}
.cr-engineering {
  margin-top: auto;
  font-size: 12px;
  width: 100%;
}
.cr-shell {
  margin-left: var(--rail);
  min-height: 100vh;
  background: radial-gradient(ellipse at 90% 0, #30476020, transparent 55%);
}
.cr-head {
  height: 92px;
  padding: 0 30px;
  display: flex;
  align-items: center;
  gap: 40px;
  border-bottom: 1px solid var(--line);
  background: #141b24dd;
}
.cr-eyebrow {
  font-size: 12px;
  letter-spacing: 1.7px;
  font-weight: 600;
  color: var(--muted);
}
.cr-head h1 {
  font-size: 22px;
  letter-spacing: -0.5px;
  margin-top: 3px;
}
.cr-connection {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}
.cr-connection strong {
  font-weight: 500;
  display: block;
}
.cr-connection #cr-freshness {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.cr-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 4px #7bd6b410;
}
.cr-live-dot.offline {
  background: var(--warn);
  box-shadow: 0 0 0 4px #efbe6910;
}
.cr-head-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.cr-session {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding-left: 16px;
  gap: 1px;
}
.cr-clock {
  font-size: 19px;
  letter-spacing: 0.5px;
}
.cr-session #cr-sub {
  color: var(--muted);
  font-size: 12px;
}
.cr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid var(--line2);
  border-radius: 7px;
  background: var(--panel);
  color: var(--text);
  font-size: 12px;
  font-weight: 500;
}
.cr-btn:hover:not(:disabled) {
  border-color: var(--muted);
  background: #222c39;
}
.cr-btn.cr-primary {
  background: var(--act);
  border-color: var(--act);
  color: #211c12;
  font-weight: 700;
}
.cr-btn.cr-primary:hover:not(:disabled) {
  background: #f7d990;
  border-color: #f7d990;
}
.cr-btn svg {
  width: 16px;
  height: 16px;
}
.cr-btn.cr-danger {
  background: var(--crit);
  color: #26191c;
  border-color: var(--crit);
}
#cr-sound[aria-pressed='true'] {
  color: var(--warn);
}
.cr-error,
.cr-feedback {
  padding: 10px 20px;
  margin: 12px 28px 0;
  border: 1px solid #ff8b8740;
  border-radius: 8px;
  color: #ffd0cd;
  background: #2e1e25;
  font-size: 13px;
}
.cr-feedback {
  color: #bbead7;
  border-color: #7bd6b430;
  background: #172c28;
}
.cr-main:focus {
  outline: none;
}
.cr-stats {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin: 0 28px;
  border-bottom: 1px solid var(--line);
}
.cr-stat {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 2px 8px;
  text-align: left;
  background: none;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  padding: 19px 22px;
  color: var(--text);
}
.cr-stat:first-child {
  padding-left: 0;
}
.cr-stat:last-child {
  border-right: 0;
}
.cr-stat > span {
  font-size: 12px;
  color: var(--muted);
  grid-column: 1/-1;
}
.cr-stat > strong {
  font-size: 25px;
  font-weight: 500;
  line-height: 1.25;
}
.cr-stat svg {
  width: 14px;
  height: 14px;
  color: var(--muted);
}
button.cr-stat:hover {
  background: #ffffff04;
}
.cr-stat.crit strong {
  color: var(--crit);
}
.cr-stat.warn strong {
  color: var(--warn);
}
.cr-stat.info strong {
  color: var(--info);
}
.cr-desk {
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr);
  gap: 24px;
  padding: 24px 28px 32px;
  align-items: start;
}
.cr-inbox {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #121821;
  overflow: hidden;
  position: sticky;
  top: 18px;
}
.cr-inbox-head {
  padding: 21px 18px 16px;
  border-bottom: 1px solid var(--line);
}
.cr-inbox-head h2 {
  font-size: 16px;
  flex: 1;
}
.cr-count {
  min-width: 24px;
  padding: 2px 7px;
  background: #ffffff08;
  border-radius: 5px;
  color: var(--text2);
  font-size: 12px;
  text-align: center;
}
.cr-inbox-head p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
}
.cr-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 11px;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #0f141c;
  color: var(--muted);
}
.cr-search svg {
  width: 15px;
  height: 15px;
}
.cr-search input {
  min-width: 0;
  width: 100%;
  padding: 9px 0;
  background: transparent;
  border: 0;
  color: var(--text);
  font-size: 12px;
  outline-offset: 0;
}
.cr-inbox-head .cr-search {
  margin: 18px 0 14px;
}
.cr-tabs {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.cr-tabs button {
  background: none;
  color: var(--muted);
  border: 1px solid transparent;
  border-radius: 5px;
  font-size: 12px;
  padding: 6px 8px;
  min-height: 32px;
}
.cr-tabs button[aria-pressed='true'] {
  background: #ffffff09;
  color: var(--text);
  border-color: #ffffff12;
}
.cr-tabs button:hover {
  color: var(--act);
}
.cr-queue {
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow: auto;
  max-height: calc(100vh - 420px);
  min-height: 200px;
  scrollbar-width: thin;
  scrollbar-color: var(--line2) transparent;
}
.cr-incident {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  text-align: left;
  padding: 15px 13px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  min-width: 0;
}
.cr-incident:hover {
  background: #ffffff03;
}
.cr-incident.selected {
  border-color: #edcb7140;
  background: linear-gradient(110deg, #edcb710d, #ffffff03);
}
.cr-incident.selected::before {
  position: absolute;
  content: '';
  left: -1px;
  top: 14px;
  bottom: 14px;
  width: 3px;
  background: var(--act);
  border-radius: 3px;
}
.cr-incident-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}
.cr-prio {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--text2);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.35px;
  border-radius: 4px;
  padding: 3px 6px;
  line-height: 1.4;
  background: #ffffff07;
}
.cr-prio.crit {
  color: var(--crit);
  background: #ff8b8712;
}
.cr-prio.warn {
  color: var(--warn);
  background: #efbe6912;
}
.cr-prio.info {
  color: var(--info);
  background: #94baff12;
}
.cr-prio.ok {
  color: var(--ok);
  background: #7bd6b412;
}
.cr-age {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
.cr-incident-site {
  font-size: 15px;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.cr-incident-title {
  color: var(--text2);
  font-size: 12px;
  overflow-wrap: anywhere;
}
.cr-incident-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
  margin-top: 7px;
}
.cr-incident-bottom svg {
  width: 13px;
  height: 13px;
}
.cr-unassigned {
  color: var(--warn);
}
.cr-restored {
  color: var(--ok);
}
.cr-inbox-foot {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 13px 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}
.cr-inbox-foot svg {
  width: 12px;
  height: 12px;
}
.cr-response {
  min-width: 0;
  outline: none;
}
.cr-case {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(125deg, #1d2632 0, #151c26 40%, #141a23 100%);
  overflow: hidden;
  box-shadow: 0 14px 40px #00000018;
}
.cr-case-head {
  padding: 27px 28px 24px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
}
.cr-case-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 1.3px;
  flex-wrap: wrap;
}
.cr-case-eyebrow .cr-prio {
  font-size: 12px;
}
.cr-case-id {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
}
.cr-case-head h2 {
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.8px;
  margin: 14px 0 2px;
  overflow-wrap: anywhere;
}
.cr-case-title {
  color: var(--text2);
  font-size: 16px;
}
.cr-case-age {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex: none;
  padding-top: 5px;
}
.cr-case-age small {
  color: var(--muted);
  font-size: 12px;
}
.cr-case-age strong {
  font-size: 23px;
  font-weight: 500;
  letter-spacing: -0.3px;
}
.cr-case-age > span {
  color: var(--muted);
  font-size: 12px;
}
.cr-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 28px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
  gap: 15px;
}
.cr-facts > div {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}
.cr-facts svg {
  width: 16px;
  height: 16px;
  color: var(--muted);
  margin-top: 3px;
}
.cr-facts small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px;
}
.cr-facts strong {
  display: block;
  font-size: 12px;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.cr-state-line {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 28px;
  font-size: 12px;
  color: var(--muted);
  flex-wrap: wrap;
}
.cr-state-separator {
  padding: 0 3px;
  color: var(--line2);
}
.cr-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted);
  display: inline-block;
  flex: none;
}
.cr-dot.crit,
.cr-dot.alarm {
  background: var(--crit);
}
.cr-dot.warn,
.cr-dot.warning {
  background: var(--warn);
}
.cr-dot.ok,
.cr-dot.info {
  background: var(--ok);
}
.cr-ownership {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 9px 28px 24px;
  padding: 16px;
  border: 1px solid #edcb712e;
  border-radius: 8px;
  background: linear-gradient(110deg, #edcb710a, transparent);
}
.cr-ownership.mine {
  border-color: #7bd6b42c;
  background: #7bd6b406;
}
.cr-owner-avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #edcb7110;
  color: var(--act);
  flex: none;
}
.cr-owner-avatar svg {
  width: 17px;
  height: 17px;
}
.cr-ownership > div:nth-child(2) {
  flex: 1;
}
.cr-ownership strong {
  font-size: 13px;
  font-weight: 500;
}
.cr-ownership p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
  max-width: 440px;
}
.cr-owned-badge {
  color: var(--ok);
  font-size: 12px;
  white-space: nowrap;
}
.cr-readonly {
  margin: 0 28px 20px;
  color: var(--warn);
  font-size: 12px;
}
.cr-response-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  border-top: 1px solid var(--line);
}
.cr-procedure,
.cr-resolution {
  padding: 24px 28px;
}
.cr-procedure {
  border-right: 1px solid var(--line);
}
.cr-section-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 18px;
}
.cr-section-head .cr-eyebrow {
  font-size: 12px;
  letter-spacing: 1.2px;
}
.cr-section-head h3 {
  font-size: 16px;
  font-weight: 500;
  margin-top: 5px;
}
.cr-section-head .cr-small {
  font-size: 12px;
  white-space: nowrap;
}
.cr-steps {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cr-step {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 12px 10px;
  border: 1px solid var(--line);
  background: #11172088;
  border-radius: 7px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text2);
  cursor: pointer;
}
.cr-step input {
  width: 16px;
  height: 16px;
  flex: none;
  accent-color: var(--act);
}
.cr-step-number {
  font-size: 12px;
  color: var(--muted);
}
.cr-step:has(input:disabled) {
  cursor: default;
}
.cr-step.done {
  border-color: #7bd6b430;
}
.cr-step.done > span:last-child {
  color: var(--ok);
}
.cr-hint {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  margin-top: 11px;
}
.cr-resolution-locked {
  min-height: 208px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex-direction: column;
  padding: 20px;
  border: 1px dashed var(--line2);
  border-radius: 8px;
  background: #0f151d44;
}
.cr-resolution-locked svg {
  color: var(--muted);
  width: 25px;
  height: 25px;
  margin-bottom: 13px;
}
.cr-resolution-locked strong {
  font-size: 13px;
  font-weight: 500;
}
.cr-resolution-locked p {
  font-size: 12px;
  max-width: 230px;
  color: var(--muted);
  margin-top: 7px;
}
.cr-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 12px;
  color: var(--text2);
  margin-bottom: 14px;
}
.cr-field select,
.cr-field textarea {
  width: 100%;
  min-width: 0;
  background: #0e141d;
  color: var(--text);
  border: 1px solid var(--line2);
  border-radius: 6px;
  font-size: 12px;
  padding: 10px 11px;
}
.cr-field textarea {
  resize: vertical;
  min-height: 105px;
  line-height: 1.6;
}
.cr-field textarea::placeholder {
  color: var(--muted);
}
.cr-note-status {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
  margin-top: -6px;
}
.cr-text-button {
  color: var(--act);
  font-size: 12px;
  border: 0;
  background: transparent;
  padding: 5px 0;
  min-height: 28px;
  text-align: left;
}
.cr-text-button:hover {
  text-decoration: underline;
}
.cr-resolve {
  width: 100%;
  margin-top: 16px;
}
.cr-details {
  border-top: 1px solid var(--line);
  background: #0e151d66;
}
.cr-details summary {
  cursor: pointer;
  padding: 15px 28px;
  color: var(--text2);
  font-size: 12px;
}
.cr-details summary > span {
  color: var(--muted);
  float: right;
  font-size: 12px;
}
.cr-cid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 8px 28px 24px;
  font-size: 12px;
}
.cr-cid dt {
  color: var(--muted);
  margin-bottom: 4px;
}
.cr-cid dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.cr-back {
  display: none;
}
.cr-context {
  margin-top: 24px;
}
.cr-context > .cr-section-head {
  margin: 0 0 13px;
}
.cr-context > .cr-section-head a {
  font-size: 12px;
}
.cr-context .cr-site {
  background: transparent;
}
.cr-context .cr-site-header {
  display: none;
}
.cr-site {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  padding: 20px;
}
.cr-site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
}
.cr-site-header .cr-eyebrow {
  font-size: 12px;
  letter-spacing: 1px;
}
.cr-site-header h3 {
  font-size: 20px;
  letter-spacing: -0.3px;
  font-weight: 500;
  margin-top: 4px;
  overflow-wrap: anywhere;
}
.cr-site-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.cr-site-facts > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.cr-site-facts span {
  font-size: 12px;
  color: var(--muted);
}
.cr-site-facts strong {
  font-size: 12px;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.cr-site-facts small {
  font-size: 12px;
  color: var(--muted);
}
.cr-patrol {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 12px;
}
.cr-patrol > div:first-child {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  flex-wrap: wrap;
}
.cr-patrol strong {
  font-weight: 500;
  color: var(--text2);
}
.cr-patrol small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
}
.cr-progress {
  height: 4px;
  border-radius: 4px;
  background: var(--line);
  overflow: hidden;
  margin-top: 10px;
}
.cr-progress i {
  display: block;
  height: 100%;
  background: var(--ok);
}
.cr-progress i.warn {
  background: var(--warn);
}
.cr-site-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--line);
  margin-top: 14px;
  padding-top: 10px;
}
.cr-site-actions details {
  position: relative;
  font-size: 12px;
  color: var(--muted);
}
.cr-site-actions summary {
  cursor: pointer;
}
.cr-site-actions details > div {
  position: absolute;
  z-index: 5;
  right: 0;
  top: 25px;
  min-width: 185px;
  background: var(--panel2);
  border: 1px solid var(--line2);
  border-radius: 8px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 12px 24px #0006;
}
.cr-site-actions details > div a {
  font-size: 12px;
}
.cr-page {
  padding: 28px;
  max-width: 1800px;
  margin: 0 auto;
}
.cr-page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}
.cr-page-head h2 {
  font-size: 30px;
  letter-spacing: -0.6px;
  margin-top: 7px;
  font-weight: 500;
}
.cr-page-head p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
}
.cr-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}
.cr-toolbar .cr-search {
  width: 260px;
}
.cr-sites-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 16px;
}
.cr-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: 40px 20px;
  min-height: 220px;
  color: var(--muted);
}
.cr-empty svg {
  width: 30px;
  height: 30px;
  color: var(--ok);
  margin-bottom: 16px;
}
.cr-empty h2 {
  font-size: 18px;
  font-weight: 500;
  color: var(--text2);
}
.cr-empty p {
  max-width: 340px;
  font-size: 12px;
  margin-top: 9px;
}
.cr-queue .cr-empty h2 {
  font-size: 15px;
}
.cr-queue .cr-empty {
  min-height: 240px;
}
.cr-sites-grid > .cr-empty {
  grid-column: 1/-1;
}
.cr-table-wrap {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: auto;
  background: var(--panel);
}
.cr-activity-table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  font-size: 12px;
}
.cr-activity-table th {
  padding: 15px 20px;
  color: var(--muted);
  font-weight: 500;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: var(--panel2);
}
.cr-activity-table td {
  padding: 17px 20px;
  border-top: 1px solid var(--line);
  vertical-align: top;
}
.cr-activity-table small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 5px;
  max-width: 560px;
  overflow-wrap: anywhere;
}
.cr-event-title {
  display: flex;
  align-items: center;
  gap: 9px;
}
.cr-activity-table time {
  white-space: nowrap;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
}
.cr-event-code {
  font-size: 12px;
  font-family: var(--mono);
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 3px 6px;
  border-radius: 4px;
}
.cr-wall {
  padding: 28px;
}
.cr-wall .cr-stats {
  margin: 0 0 28px;
}
.cr-wall .cr-stat strong {
  font-size: 36px;
}
.cr-wall-critical {
  padding: 9px 16px;
  border: 1px solid #ff8b8730;
  border-radius: 6px;
  color: var(--crit);
  background: #ff8b8708;
}
.cr-wall-body {
  display: grid;
  grid-template-columns: minmax(320px, 0.8fr) minmax(0, 1.4fr);
  gap: 28px;
}
.cr-wall-body > section > h3 {
  display: flex;
  justify-content: space-between;
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 16px;
}
.cr-wall-body > section > h3 > span {
  color: var(--muted);
}
.cr-wall-queue {
  display: grid;
  gap: 10px;
}
.cr-wall .cr-incident {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 18px;
}
.cr-wall .cr-incident-site {
  font-size: 22px;
}
.cr-wall .cr-age {
  font-size: 17px;
}
.cr-wall .cr-incident-title {
  font-size: 15px;
}
.cr-wall .cr-incident.crit {
  border-left: 3px solid var(--crit);
}
.cr-wall-sites {
  display: grid;
  gap: 16px;
}
.cr-wall .cr-site-header h3 {
  font-size: 23px;
}
.cr-dialog {
  border: 1px solid var(--line2);
  border-radius: 12px;
  background: var(--panel);
  color: var(--text);
  padding: 0;
  max-width: 510px;
  width: calc(100% - 32px);
  max-height: 90vh;
  overflow: auto;
  box-shadow: 0 30px 100px #0008;
}
.cr-dialog::backdrop {
  background: #05090dc9;
  backdrop-filter: blur(4px);
}
.cr-dlg {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cr-dlg h2 {
  font-size: 23px;
}
.cr-dlg p {
  color: var(--text2);
  font-size: 13px;
}
.cr-dlg dl {
  margin: 0;
  background: var(--panel2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}
.cr-dlg dt {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 5px;
}
.cr-dlg dd {
  margin: 0 0 14px;
  font-size: 13px;
}
.cr-dlg dd:last-child {
  margin: 0;
}
.cr-review-note {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 180px;
  overflow: auto;
}
.cr-dlg-btns {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
@supports (backdrop-filter: blur(16px)) {
  :root:not([data-surface='solid']) .cr-head,
  :root:not([data-surface='solid']) .cr-rail {
    background: #131a23d9;
    backdrop-filter: blur(18px);
  }
}
@media (min-width: 1650px) {
  .cr-desk {
    grid-template-columns: 320px minmax(0, 1fr);
    max-width: 1800px;
    margin: auto;
  }
  .cr-sites-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 1200px) {
  .cr-head {
    gap: 24px;
    padding: 0 22px;
  }
  .cr-desk {
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 16px;
    padding: 20px;
  }
  .cr-stats {
    margin: 0 20px;
  }
  .cr-stat {
    padding: 16px 12px;
  }
  .cr-case-head {
    padding: 22px;
  }
  .cr-facts {
    margin: 0 22px;
  }
  .cr-case-head h2 {
    font-size: 28px;
  }
  .cr-case-age strong {
    font-size: 18px;
  }
  .cr-ownership {
    margin: 8px 22px 20px;
    flex-wrap: wrap;
  }
  .cr-ownership > .cr-btn {
    margin-left: 46px;
  }
  .cr-response-grid {
    grid-template-columns: 1fr;
  }
  .cr-procedure {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .cr-procedure,
  .cr-resolution {
    padding: 22px;
  }
  .cr-resolution-locked {
    min-height: 135px;
  }
  .cr-connection {
    display: none;
  }
  .cr-cid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cr-wall-body {
    grid-template-columns: 1fr 1.2fr;
  }
}
@media (max-width: 950px) {
  :root {
    --rail: 76px;
  }
  .cr-head-actions {
    gap: 6px;
  }
  .cr-session {
    padding-left: 7px;
  }
  .cr-sites-grid {
    grid-template-columns: 1fr;
  }
  .cr-facts {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .cr-facts > div > span {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    flex: 1;
  }
  .cr-facts small {
    margin: 0;
  }
  .cr-case-head {
    flex-wrap: wrap;
    gap: 16px;
  }
  .cr-case-age {
    align-items: flex-start;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
  }
  .cr-case-age > span {
    display: none;
  }
  .cr-ownership {
    gap: 8px;
  }
  .cr-details summary > span {
    display: block;
    float: none;
    margin-top: 5px;
  }
  .cr-toolbar {
    flex-wrap: wrap;
  }
  .cr-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .cr-stat:nth-child(3) {
    border-right: 0;
  }
  .cr-stat:nth-child(-n + 3) {
    border-bottom: 1px solid var(--line);
  }
  .cr-stat:nth-child(4) {
    padding-left: 0;
  }
  .cr-queue {
    max-height: calc(100vh - 500px);
  }
  .cr-wall-body {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 700px) {
  :root {
    --rail: 0px;
  }
  .cr-rail {
    inset: auto 0 0;
    width: 100%;
    height: 66px;
    border-right: 0;
    border-top: 1px solid var(--line);
    padding: 0 8px;
    background: #111821;
    backdrop-filter: blur(18px);
  }
  .cr-brand,
  .cr-engineering {
    display: none;
  }
  .cr-views {
    flex-direction: row;
    margin: 0;
    gap: 4px;
  }
  .cr-views a {
    flex: 1;
    font-size: 12px;
    min-height: 65px;
    padding: 10px 4px;
    gap: 4px;
  }
  .cr-views a svg {
    width: 20px;
    height: 20px;
  }
  .cr-views a.cr-on::before {
    left: 25%;
    right: 25%;
    top: 0;
    bottom: auto;
    height: 2px;
    width: auto;
  }
  .cr-rail-count {
    right: 25%;
    top: 4px;
  }
  .cr-shell {
    padding-bottom: 66px;
  }
  .cr-head {
    height: auto;
    min-height: 94px;
    padding: 16px;
    gap: 10px;
    flex-wrap: wrap;
  }
  .cr-head h1 {
    font-size: 20px;
  }
  .cr-head .cr-eyebrow {
    font-size: 12px;
  }
  .cr-head-actions {
    gap: 7px;
    flex-wrap: wrap;
  }
  .cr-head-actions .cr-btn {
    min-height: 34px;
    font-size: 12px;
    padding: 6px 8px;
  }
  .cr-session {
    display: none;
  }
  .cr-connection {
    display: flex;
    order: 3;
    flex-basis: 100%;
    font-size: 12px;
  }
  .cr-connection > div {
    display: flex;
    gap: 8px;
    align-items: center;
  }
  .cr-connection #cr-freshness {
    font-size: 12px;
  }
  .cr-live-dot {
    width: 5px;
    height: 5px;
    margin: 0 3px;
  }
  .cr-stats {
    margin: 0 16px;
  }
  .cr-stat {
    padding: 12px;
  }
  .cr-stat > strong {
    font-size: 21px;
  }
  .cr-stat > span {
    font-size: 12px;
  }
  .cr-stat svg {
    width: 12px;
  }
  .cr-desk {
    display: block;
    padding: 16px;
  }
  .cr-inbox {
    position: static;
  }
  .cr-inbox-head {
    padding: 18px;
  }
  .cr-queue {
    max-height: none;
    min-height: 220px;
  }
  .cr-incident {
    padding: 17px 14px;
  }
  .cr-incident-site {
    font-size: 17px;
  }
  .cr-incident-title {
    font-size: 13px;
  }
  .cr-tabs button {
    min-height: 38px;
    padding: 7px 9px;
  }
  .cr-search input {
    font-size: 16px;
  }
  .cr-inbox-foot {
    padding: 14px 20px;
  }
  .cr-desk:not(.show-detail) .cr-response {
    display: none;
  }
  .cr-desk.show-detail .cr-inbox {
    display: none;
  }
  .cr-desk.show-detail .cr-back {
    display: inline-flex;
    margin: 0 0 14px;
  }
  .cr-case-head {
    padding: 20px;
  }
  .cr-case-head h2 {
    font-size: 28px;
  }
  .cr-case-title {
    font-size: 15px;
  }
  .cr-case-age strong {
    font-size: 18px;
  }
  .cr-facts {
    margin: 0 20px;
  }
  .cr-state-line {
    padding: 12px 20px;
  }
  .cr-ownership {
    margin: 8px 20px 20px;
  }
  .cr-owner-avatar {
    display: none;
  }
  .cr-ownership > .cr-btn {
    margin-left: 0;
    width: 100%;
    margin-top: 7px;
    min-height: 42px;
  }
  .cr-ownership > div:nth-child(2) {
    min-width: 100%;
  }
  .cr-owned-badge {
    margin-top: 6px;
  }
  .cr-readonly {
    margin: 0 20px 20px;
  }
  .cr-procedure,
  .cr-resolution {
    padding: 20px;
  }
  .cr-field select,
  .cr-field textarea {
    font-size: 16px;
  }
  .cr-cid {
    grid-template-columns: 1fr;
    padding: 10px 20px 20px;
  }
  .cr-details summary {
    padding: 16px 20px;
  }
  .cr-site {
    padding: 18px;
  }
  .cr-site-facts {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .cr-site-facts > div {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 2px 10px;
  }
  .cr-site-facts small {
    grid-column: 2;
  }
  .cr-site-header h3 {
    font-size: 21px;
  }
  .cr-section-head h3 {
    font-size: 16px;
  }
  .cr-page,
  .cr-wall {
    padding: 20px 16px;
  }
  .cr-page-head h2 {
    font-size: 27px;
  }
  .cr-page-head {
    align-items: flex-start;
  }
  .cr-toolbar .cr-search {
    width: 100%;
  }
  .cr-table-wrap {
    border-radius: 8px;
  }
  .cr-activity-table {
    min-width: 570px;
  }
  .cr-activity-table td,
  .cr-activity-table th {
    padding: 14px;
  }
  .cr-wall-body {
    grid-template-columns: 1fr;
  }
  .cr-wall .cr-stats {
    margin: 0 0 24px;
  }
  .cr-wall .cr-stat strong {
    font-size: 26px;
  }
  .cr-wall-critical {
    font-size: 12px;
    white-space: nowrap;
    padding: 7px 9px;
  }
  .cr-error,
  .cr-feedback {
    margin: 12px 16px 0;
    font-size: 12px;
  }
  .cr-dlg {
    padding: 22px;
  }
  .cr-dlg-btns .cr-btn {
    min-height: 44px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media (prefers-reduced-transparency: reduce) {
  .cr-head,
  .cr-rail {
    background: var(--head) !important;
    backdrop-filter: none !important;
  }
  .cr-dialog::backdrop {
    backdrop-filter: none;
  }
}

/* mapping */
.cr-map {
  padding: 16px 24px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cr-map-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}
.cr-map-head h1 {
  margin: 0;
  font-size: 20px;
}
.cr-box {
  padding: 6px 12px;
  border-radius: 8px;
  background: var(--panel);
  border: 1px solid var(--line);
}
.cr-map-body {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-start;
}
.cr-map-table {
  flex: 999 1 720px;
  min-width: 0;
  border-radius: 10px;
  background: var(--panel);
  border: 1px solid var(--line);
  overflow: hidden;
}
.cr-map-table .cr-scroll {
  overflow-x: auto;
}
.cr-map-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.cr-map-table th {
  text-align: left;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  padding: 10px 12px;
}
.cr-map-table td {
  padding: 9px 12px;
  border-top: 1px solid #1b222c;
  vertical-align: top;
}
.cr-map-table tr.warn td {
  background: #211b10;
}
.cr-map-table td.note {
  color: var(--muted);
}
.cr-map-table tr.warn td.note {
  color: var(--warn);
}
.cr-map-side {
  flex: 1 1 360px;
  max-width: 460px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cr-gaps {
  border-radius: 10px;
  background: var(--warn-bg);
  border: 1px solid var(--warn);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cr-gaps h2,
.cr-card h2 {
  margin: 0;
  font-size: 15px;
}
.cr-gaps li {
  color: #e8dcc0;
}
.cr-card {
  border-radius: 10px;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
}
.cr-card ul,
.cr-gaps ul {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

@media (max-width: 700px) {
  .cr-map {
    padding: 20px 16px;
  }
  .cr-map-table table {
    min-width: 700px;
  }
  .cr-map-side {
    max-width: none;
  }
}

/* Non-blocking action feedback never moves the response form. */
.cr-feedback {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 30;
  max-width: 420px;
  margin: 0;
  box-shadow: 0 12px 40px #0006;
}
@media (max-width: 700px) {
  .cr-feedback {
    left: 16px;
    right: 16px;
    bottom: 82px;
    max-width: none;
    margin: 0;
  }
}

/* Severity at a glance: a critical incident must stand out from routine ones on the inbox, the response panel
   and the wallboard. The bar runs the full height of the card; the yellow selection bar sits over it. */
.cr-incident.crit {
  box-shadow: inset 4px 0 0 var(--crit);
  background: #ff8b870c;
}
.cr-incident.warn {
  box-shadow: inset 4px 0 0 var(--warn);
}
.cr-incident.info {
  box-shadow: inset 4px 0 0 var(--info);
}
.cr-incident.crit:hover {
  background: #ff8b8714;
}
.cr-incident.crit .cr-age,
.cr-case.crit .cr-case-age strong {
  color: var(--crit);
  font-weight: 600;
}
.cr-prio.crit {
  color: #22171b;
  background: var(--crit);
  font-weight: 700;
}
.cr-prio.warn {
  background: #efbe6926;
  box-shadow: inset 0 0 0 1px #efbe6966;
}
.cr-prio.info {
  background: #94baff1f;
}
.cr-case.crit {
  border-color: #ff8b8766;
  box-shadow:
    inset 0 3px 0 var(--crit),
    0 14px 40px #00000018;
}


/* Reassigning an incident (Supervisors) */
.cr-assign {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.cr-assign select {
  min-height: 36px;
  background: #0e141d;
  color: var(--text);
  border: 1px solid var(--line2);
  border-radius: 6px;
  font-size: 12px;
  padding: 0 10px;
}

/* ---- Patrols ------------------------------------------------------------ */
#cr-patrol-count {
  background: var(--warn);
}
.cr-pt-stats {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 4px 0 22px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel2);
}
.cr-pt-stats .cr-stat.ok strong {
  color: var(--ok);
}
.cr-stats.cr-pt-stats > .cr-stat {
  padding: 18px 22px;
  border: 0;
  border-right: 1px solid var(--line);
}
.cr-stats.cr-pt-stats > .cr-stat:last-child {
  border-right: 0;
}
.cr-pt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(440px, 1fr));
  gap: 18px;
  margin-top: 16px;
}
.cr-pt {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff05, transparent 120px), var(--panel);
  padding: 20px 22px 18px;
  overflow: hidden;
}
.cr-pt::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--line2);
}
.cr-pt.ok::before {
  background: var(--ok);
}
.cr-pt.warn::before {
  background: var(--warn);
}
.cr-pt.crit::before {
  background: var(--crit);
}
.cr-pt.info::before {
  background: var(--info);
}
.cr-pt.crit {
  border-color: #ff8b8740;
  box-shadow: 0 0 0 1px #ff8b8714, 0 12px 34px #ff8b870c;
}
.cr-pt.off {
  opacity: 0.72;
}
.cr-pt .cr-site-header {
  margin-bottom: 0;
}
.cr-pt-hero {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cr-pt-big {
  font-size: 34px;
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: -0.8px;
  font-variant-numeric: tabular-nums;
}
.cr-pt.ok .cr-pt-big {
  color: var(--text);
}
.cr-pt.warn .cr-pt-big {
  color: var(--warn);
}
.cr-pt.crit .cr-pt-big {
  color: var(--crit);
}
.cr-pt-big.cr-pt-verdict.ok {
  color: var(--ok);
}
.cr-pt-big.cr-pt-verdict.warn {
  color: var(--warn);
}
.cr-pt-big.cr-pt-verdict.crit {
  color: var(--crit);
}
.cr-pt-big.cr-pt-verdict.info {
  color: var(--info);
}
.cr-pt-big.cr-pt-quiet {
  color: var(--muted);
  font-size: 24px;
}
.cr-pt-hero > span {
  color: var(--text2);
  font-size: 13px;
}
.cr-pt-bar {
  position: relative;
  height: 10px;
  border-radius: 6px;
  background: #ffffff0d;
  box-shadow: inset 0 0 0 1px #ffffff0a;
}
.cr-pt-fill {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: 6px;
  background: var(--ok);
  transition: width 0.9s linear;
}
.cr-pt-bar.warn .cr-pt-fill {
  background: linear-gradient(90deg, var(--ok), var(--warn));
}
.cr-pt-bar.crit .cr-pt-fill {
  background: linear-gradient(90deg, var(--warn), var(--crit));
}
.cr-pt-bar.info .cr-pt-fill {
  background: var(--info);
  opacity: 0.75;
}
.cr-pt-bar.cr-pt-drain .cr-pt-fill {
  background: repeating-linear-gradient(135deg, var(--warn) 0 8px, #efbe69b0 8px 16px);
}
.cr-pt-mark {
  position: absolute;
  top: -4px;
  bottom: -4px;
  width: 2px;
  margin-left: -1px;
  border-radius: 1px;
  background: var(--text2);
  opacity: 0.8;
}
.cr-pt-legend {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: -8px;
  color: var(--text2);
  font-size: 12px;
}
.cr-pt-legend span {
  display: flex;
  flex-direction: column;
}
.cr-pt-legend span:last-child {
  text-align: right;
}
.cr-pt-legend small {
  color: var(--muted);
  font-size: 12px;
}
.cr-pt-note {
  margin: -6px 0 0;
  color: var(--muted);
  font-size: 12px;
}
.cr-pt-facts {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.cr-pt-foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 14px;
  margin-top: auto;
  font-size: 12px;
  color: var(--text2);
}
.cr-pt-foot p {
  margin: 0 0 4px;
}
.cr-pt-links {
  display: flex;
  gap: 14px;
  align-items: center;
  white-space: nowrap;
}
.cr-pt-link {
  color: var(--act);
  font-size: 12px;
  text-decoration: none;
}
.cr-pt-link:hover {
  text-decoration: underline;
}
.cr-wall-patrols {
  margin-bottom: 28px;
}
.cr-wall-patrols > h3 {
  display: flex;
  justify-content: space-between;
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 16px;
}
.cr-wall-patrols > h3 > span {
  color: var(--muted);
}
.cr-pt-lines {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 12px;
}
.cr-pt-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px 14px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--line2);
  border-radius: 8px;
  background: var(--panel);
  padding: 14px 16px;
}
.cr-pt-line.ok {
  border-left-color: var(--ok);
}
.cr-pt-line.warn {
  border-left-color: var(--warn);
}
.cr-pt-line.crit {
  border-left-color: var(--crit);
}
.cr-pt-line.info {
  border-left-color: var(--info);
}
.cr-pt-line-site {
  display: flex;
  flex-direction: column;
  font-size: 17px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.cr-pt-line-site small {
  color: var(--muted);
  font-size: 12px;
}
.cr-pt-line > strong {
  font-size: 20px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.cr-pt-line .cr-pt-bar {
  grid-column: 1 / -1;
  height: 6px;
}
@media (max-width: 950px) {
  .cr-pt-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 700px) {
  .cr-stats.cr-pt-stats {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x proximity;
  }
  .cr-stats.cr-pt-stats > .cr-stat {
    flex: 0 0 auto;
    min-width: 132px;
    padding: 14px 16px;
    scroll-snap-align: start;
  }
  .cr-pt {
    padding: 18px 16px 16px;
  }
  .cr-pt-big {
    font-size: 28px;
  }
  .cr-pt-foot {
    flex-direction: column;
    align-items: flex-start;
  }
  .cr-pt-lines {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (prefers-reduced-motion: reduce) {
  .cr-pt-fill {
    transition: none;
  }
}

/* ---- Incident flow -------------------------------------------------------
   Take, Respond, Resolve; the actions in one bar; the outcome as one-tap chips; a banner while a critical incident
   is unassigned; patrols needing attention under the desk. */
.cr-stepper {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 28px 0;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.cr-stepper li {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--muted);
}
.cr-stepper i {
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line2);
  border-radius: 50%;
  font-size: 12px;
  font-style: normal;
}
.cr-stepper b {
  display: block;
  font-size: 13px;
  font-weight: 700;
}
.cr-stepper small {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cr-stepper li.now {
  color: var(--text);
}
.cr-stepper li.now i {
  border-color: var(--act);
  background: var(--act);
  color: #211c12;
  font-weight: 700;
}
.cr-stepper li.done {
  color: var(--text2);
}
.cr-stepper li.done i {
  border-color: #7bd6b45c;
  background: #7bd6b414;
  color: var(--ok);
}
.cr-field > span {
  display: block;
  margin-bottom: 8px;
  color: var(--text2);
  font-size: 12px;
}
.cr-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.cr-chip {
  min-height: 34px;
  padding: 6px 12px;
  border: 1px solid var(--line2);
  border-radius: 7px;
  background: var(--panel);
  color: var(--text2);
  font-size: 12px;
}
.cr-chip:hover:not(:disabled) {
  border-color: #edcb7166;
  color: var(--text);
}
.cr-chip[aria-pressed='true'] {
  border-color: var(--act);
  background: #edcb711a;
  color: var(--text);
  font-weight: 700;
}
.cr-chip:disabled {
  opacity: 0.55;
}
.cr-actionbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: -12px 28px 22px;
}
.cr-actionbar .cr-resolve {
  width: auto;
  margin: 0;
}
.cr-actionbar .cr-owned-badge {
  color: var(--text2);
  font-size: 12px;
}
.cr-keys {
  color: var(--muted);
  font-size: 12px;
}
.cr-keys kbd {
  display: inline-block;
  min-width: 18px;
  margin: 0 1px;
  padding: 0 5px;
  border: 1px solid var(--line2);
  border-bottom-width: 2px;
  border-radius: 4px;
  color: var(--text2);
  font: 12px/16px var(--mono);
  text-align: center;
}
.cr-alert {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 28px 0;
  padding: 10px 12px 10px 16px;
  border: 1px solid #ff8b8740;
  border-left: 3px solid var(--crit);
  border-radius: 8px;
  background: var(--crit-bg);
}
.cr-alert[hidden] {
  display: none;
}
.cr-alert strong {
  color: var(--crit);
  font-size: 12px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}
.cr-alert-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cr-alert-age {
  color: var(--crit);
}
.cr-alert-more {
  color: var(--text2);
  font-size: 12px;
}
.cr-alert-pulse {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--crit);
  animation: cr-alert-pulse 1.4s infinite;
}
@keyframes cr-alert-pulse {
  0% {
    box-shadow: 0 0 0 0 #ff8b87a6;
  }
  70% {
    box-shadow: 0 0 0 10px transparent;
  }
  100% {
    box-shadow: 0 0 0 0 transparent;
  }
}
.cr-desk-patrols {
  margin: -8px 28px 32px;
}
.cr-desk-patrols[hidden] {
  display: none;
}
.cr-section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 0 2px 10px;
}
.cr-section-title h3 {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}
.cr-section-title a {
  color: var(--act);
  font-size: 12px;
  text-decoration: none;
}
@media (max-width: 700px) {
  .cr-stepper {
    margin: 14px 16px 0;
    gap: 6px;
  }
  .cr-stepper i {
    width: 24px;
    height: 24px;
  }
  .cr-stepper small,
  .cr-keys {
    display: none;
  }
  .cr-actionbar {
    margin: -8px 16px 16px;
  }
  .cr-alert {
    flex-wrap: wrap;
    margin: 12px 16px 0;
  }
  .cr-alert-text {
    flex: 1 1 60%;
    white-space: normal;
  }
  .cr-desk-patrols {
    margin: 0 16px 24px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cr-alert-pulse {
    animation: none;
  }
}
