/* ======================================================================
   3RD-I COMMAND · SECURITY COMMAND CENTER (enterprise #command)
   A coded rendering of the Command panel's light UI: sidebar navigation,
   top bar, SOS and tip banners, stat tiles, the emergency queue and the
   safety feed. Representative data only.

   The organising rule: EVENTS ARE SHOWN BY PLACE AND STATUS, NEVER BY
   PERSON. Rows carry a role label and a place, plus an explicit
   withheld-identity chip where a name would be.

   The panel keeps its own light palette in both site themes: this is
   product chrome, not page chrome. Below 760px it switches to the panel's
   own phone layout (menu button, stacked banners, 2x2 tiles) instead of
   shrinking the desktop.
   ====================================================================== */

.depcon-sec { padding: clamp(56px, 7vw, 96px) 0 clamp(20px, 3vw, 34px); }
.depcon-head { max-width: 780px; margin-bottom: clamp(26px, 3.4vw, 40px); }
.depcon-head h2 { margin: 14px 0 0; }
.depcon-head .lede { margin: 16px 0 0; }

.depcon {
  --cp-ink: #111827;
  --cp-text: #374151;
  --cp-dim: #4b5563;
  --cp-line: #e5e8ee;
  --cp-line-soft: #eef0f4;
  --cp-bg: #f7f9fb;
  --cp-red: #b4232f;
  --cp-red-solid: #d12f3c;
  --cp-red-tint: #fdecee;
  --cp-blue: #1d4fd8;
  --cp-blue-solid: #1d5fe8;
  --cp-blue-tint: #edf3fe;
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
  background: #ffffff;
  border: 1px solid #dde2ea;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 40px 80px -40px rgba(30, 48, 100, .32), 0 6px 18px -10px rgba(30, 48, 100, .14);
  color: var(--cp-text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.4;
  text-align: left;
}
:where(.depcon) p { margin: 0; }
.depcon svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------------------------------------------------------- sidebar */
.dc-side { display: flex; flex-direction: column; padding: 22px 14px 18px; border-right: 1px solid var(--cp-line); background: #ffffff; }
.dc-side-logo { display: block; width: 92px; height: auto; margin: 0 0 14px 8px; }
.dc-side-eyebrow {
  margin: 0 8px 14px; font-size: 11px; font-weight: 600; letter-spacing: .09em;
  text-transform: uppercase; color: var(--cp-dim); line-height: 1.5;
}
.dc-nav { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.dc-nav li {
  display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 8px;
  font-size: 14px; color: var(--cp-text); white-space: nowrap;
}
.dc-nav li svg { width: 18px; height: 18px; flex: none; color: var(--cp-dim); }
.dc-nav li.is-on { background: var(--cp-blue-tint); color: var(--cp-blue); font-weight: 600; }
.dc-nav li.is-on svg { color: var(--cp-blue); }
.dc-nav b {
  margin-left: auto; min-width: 22px; padding: 1px 7px; border-radius: 6px; text-align: center;
  font-size: 12px; font-weight: 650; background: var(--cp-red-tint); color: var(--cp-red);
}
.dc-nav b.is-quiet { background: #f1f3f6; color: var(--cp-text); }
.dc-side-foot {
  display: flex; align-items: center; gap: 11px; margin-top: auto; padding: 14px 10px 0;
  border-top: 1px solid var(--cp-line); font-size: 14px; color: var(--cp-text);
}
.dc-side-foot svg { width: 18px; height: 18px; color: var(--cp-dim); }

/* ---------------------------------------------------------- top bar */
.dc-main { min-width: 0; background: var(--cp-bg); }
.dc-top {
  display: flex; align-items: center; gap: 18px; min-height: 62px; padding: 0 24px;
  background: #ffffff; border-bottom: 1px solid var(--cp-line);
}
.dc-menu { display: none; color: var(--cp-text); }
.dc-menu svg { width: 22px; height: 22px; display: block; }
.dc-org { display: flex; align-items: center; gap: 9px; font-size: 14px; color: var(--cp-text); }
.dc-org svg { width: 18px; height: 18px; color: var(--cp-dim); }
.dc-top-sp { flex: 1; }
.dc-ic { position: relative; color: var(--cp-dim); }
.dc-ic svg { width: 20px; height: 20px; display: block; }
.dc-ic--dot::after {
  content: ""; position: absolute; top: -3px; right: -3px; width: 6px; height: 6px;
  border-radius: 50%; background: var(--cp-red-solid);
}
.dc-user { display: flex; align-items: center; gap: 10px; }
.dc-av {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--cp-blue-tint); color: var(--cp-blue); font-size: 12.5px; font-weight: 700;
}
.dc-user-t { display: grid; line-height: 1.3; }
.dc-user-t b { font-size: 13.5px; font-weight: 600; color: var(--cp-ink); }
.dc-user-t span { font-size: 12.5px; color: var(--cp-dim); }

/* ---------------------------------------------------------- banners */
.dc-body { padding: 20px 24px 24px; }
.dc-sos {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px;
  padding: 13px 16px; border: 1px solid #f5cfd4; border-left: 4px solid var(--cp-red-solid);
  border-radius: 10px; background: var(--cp-red-tint); color: var(--cp-red);
  font-size: 15px; font-weight: 650;
}
.dc-sos-ic {
  display: grid; place-items: center; width: 20px; height: 20px; flex: none; border-radius: 50%;
  background: var(--cp-red-solid); color: #ffffff; font-size: 13px; font-weight: 800; line-height: 1;
}
.dc-sos-where { font-weight: 600; color: #9b1c27; }
.dc-sos-open { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; white-space: nowrap; }
.dc-sos-open svg { width: 16px; height: 16px; stroke-width: 2; }

.dc-tip {
  display: flex; align-items: center; gap: 13px; margin-top: 10px; padding: 11px 16px;
  border: 1px solid #cddcf7; border-radius: 10px; background: #f1f6ff;
}
.dc-tip > span { display: grid; gap: 2px; min-width: 0; }
.dc-tip b { font-size: 14.5px; font-weight: 650; color: #1a46b8; }
.dc-tip > span > span { font-size: 13.5px; color: var(--cp-dim); }
.dc-tip-ic { width: 20px; height: 20px; flex: none; color: #1a46b8; }
.dc-tip-go { width: 18px; height: 18px; flex: none; margin-left: auto; color: #1a46b8; }

/* ---------------------------------------------------------- page head */
.dc-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 22px 0 18px; }
.dc-eyebrow { font-size: 11.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--cp-dim); }
.dc-title { margin: 5px 0 6px; font-size: 26px; font-weight: 700; letter-spacing: -.015em; line-height: 1.15; color: var(--cp-ink); }
.dc-sub { font-size: 14.5px; color: var(--cp-dim); }
.dc-btn {
  display: inline-flex; align-items: center; gap: 9px; flex: none; padding: 11px 16px; border-radius: 9px;
  background: var(--cp-blue-solid); color: #ffffff; font-size: 14px; font-weight: 600; white-space: nowrap;
}
.dc-btn svg { width: 17px; height: 17px; }

/* ---------------------------------------------------------- stat tiles */
.dc-stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0;
  border-top: 1px solid var(--cp-line); border-bottom: 1px solid var(--cp-line);
}
.dc-stats > div { display: flex; flex-direction: column; padding: 16px 20px 17px; border-right: 1px solid var(--cp-line); }
.dc-stats > div:last-child { border-right: 0; }
.dc-stats dd { order: -1; margin: 0; font-size: 32px; font-weight: 500; line-height: 1.1; color: var(--cp-ink); font-variant-numeric: tabular-nums; }
.dc-stats .is-hot dd { color: #c42b3a; }
.dc-stats dt { margin-top: 8px; font-size: 13.5px; color: var(--cp-dim); }

/* ---------------------------------------------------------- cards */
.dc-cards { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; margin-top: 18px; align-items: start; }
.dc-card { background: #ffffff; border: 1px solid var(--cp-line); border-radius: 12px; overflow: hidden; }
.dc-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 16px 18px 14px; }
.dc-card-t { font-size: 16.5px; font-weight: 650; color: var(--cp-ink); }
.dc-card-s { margin-top: 3px; font-size: 13px; color: var(--cp-dim); }
.dc-ghost {
  flex: none; padding: 7px 12px; border: 1px solid #dde2ea; border-radius: 8px;
  font-size: 13.5px; font-weight: 600; color: var(--cp-ink); background: #ffffff; white-space: nowrap;
}
.dc-rows { list-style: none; margin: 0; padding: 0; }
.dc-rows li {
  display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 12px;
  padding: 13px 18px; border-top: 1px solid var(--cp-line-soft);
}
.dc-rows--feed li { grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
.dc-row-ic {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px;
  background: var(--cp-red-tint); color: #c42b3a;
}
.dc-row-ic svg { width: 18px; height: 18px; }
.dc-row-t { font-size: 14px; font-weight: 600; line-height: 1.35; color: var(--cp-ink); }
.dc-row-m { display: inline; font-size: 13px; line-height: 1.6; color: var(--cp-dim); }
.dc-row-tx > .dc-row-m::before { content: ""; display: block; height: 4px; }
.dc-ago { font-size: 12.5px; line-height: 1.6; color: var(--cp-dim); white-space: nowrap; }
.dc-hid {
  display: inline-flex; align-items: center; gap: 4px; margin-left: 8px; padding: 1px 8px;
  border-radius: 999px; background: #f1f3f6; color: var(--cp-text);
  font-size: 12px; font-weight: 600; line-height: 1.5; white-space: nowrap; vertical-align: 1px;
}
.dc-hid svg { width: 11px; height: 11px; stroke-width: 2.2; }
.dc-rows--feed .dc-hid { display: flex; width: max-content; margin: 6px 0 0; }
.dc-pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 7px;
  font-size: 12.5px; font-weight: 600; white-space: nowrap;
}
.dc-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.dc-pill--wait { background: var(--cp-red-tint); color: var(--cp-red); }
.dc-pill--ack { background: var(--cp-blue-tint); color: var(--cp-blue); }

/* ---------------------------------------------------------- privacy note (page chrome, follows the site theme) */
.dc-note {
  display: flex; gap: 14px; align-items: flex-start; max-width: 860px; margin: 18px auto 0;
  padding: 16px 18px; border: 1px solid var(--line-hi); border-radius: 14px; background: var(--panel);
}
.dc-note-ic {
  display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 10px;
  background: var(--panel-2); color: var(--text);
}
.dc-note-ic svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dc-note-t { margin: 0; font-size: 15px; color: var(--text); }
.dc-note-t b { font-weight: 650; }
.dc-note-p { margin: 4px 0 0; font-size: 14px; line-height: 1.55; color: var(--dim); }

.depcon-cap { margin: 14px 0 0; font-size: 13px; line-height: 1.5; color: var(--dim); text-align: center; }

/* ---------------------------------------------------------- tablet */
@media (max-width: 1080px) {
  .depcon { grid-template-columns: 214px minmax(0, 1fr); }
  .dc-side { padding-inline: 12px; }
  .dc-nav li { gap: 9px; padding: 9px 8px; font-size: 13.5px; }
  .dc-cards { grid-template-columns: minmax(0, 1fr); }
  .dc-stats dd { font-size: 28px; }
}

/* ---------------------------------------------------------- phone: the panel's own mobile layout */
@media (max-width: 760px) {
  .depcon { grid-template-columns: minmax(0, 1fr); border-radius: 14px; }
  .dc-side { display: none; }
  .dc-menu { display: block; }
  .dc-top { gap: 14px; min-height: 56px; padding: 0 14px; }
  .dc-user-t { display: none; }
  .dc-av { width: 32px; height: 32px; font-size: 12px; }
  .dc-body { padding: 14px 12px 14px; }

  .dc-sos { gap: 6px 10px; padding: 12px 13px; font-size: 15px; }
  .dc-sos-where { order: 3; flex-basis: 100%; padding-left: 30px; font-size: 14px; line-height: 1.4; }
  .dc-sos-open { font-size: 14px; }
  .dc-tip { padding: 11px 13px; gap: 11px; }

  .dc-head { flex-direction: column; align-items: stretch; gap: 14px; margin: 18px 2px 14px; }
  .dc-title { font-size: 23px; }
  .dc-sub { font-size: 14px; }
  .dc-btn { justify-content: center; }

  .dc-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dc-stats > div { padding: 13px 14px 14px; }
  .dc-stats > div:nth-child(2) { border-right: 0; }
  .dc-stats > div:nth-child(-n+2) { border-bottom: 1px solid var(--cp-line); }
  .dc-stats dd { font-size: 26px; }
  .dc-stats dt { margin-top: 6px; font-size: 13px; line-height: 1.3; }

  .dc-cards { gap: 12px; margin-top: 14px; }
  .dc-card-head { padding: 14px 14px 12px; }
  .dc-card-t { font-size: 16px; }
  .dc-rows li {
    grid-template-columns: 32px auto minmax(0, 1fr);
    grid-template-areas: "ic t t" "ic m m" "ic hid st";
    gap: 0 10px; padding: 12px 14px; align-items: center;
  }
  .dc-rows--feed li { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "t t" "m m" "hid st"; }
  .dc-row-tx { display: contents; }
  .dc-row-ic { grid-area: ic; align-self: start; width: 32px; height: 32px; }
  .dc-row-t { grid-area: t; }
  .dc-row-m { grid-area: m; display: block; margin-top: 3px; }
  .dc-row-tx > .dc-row-m::before { content: none; }
  .dc-rows .dc-hid { grid-area: hid; justify-self: start; margin: 8px 0 0; }
  .dc-pill, .dc-ago { grid-area: st; justify-self: start; margin-top: 8px; }
  .dc-pill { padding: 3px 9px; }

  .dc-note { margin-top: 14px; padding: 14px; gap: 12px; }
}

/* ---------------------------------------------------------- narrow phones */
@media (max-width: 380px) {
  .dc-org { white-space: nowrap; }
  .dc-top .dc-ic:not(.dc-ic--dot) { display: none; }
  .dc-rows li { grid-template-areas: "ic t t" "ic m m" "ic hid hid" "ic st st"; }
  .dc-rows--feed li { grid-template-areas: "t t" "m m" "hid st"; }
  .dc-pill { margin-top: 6px; }
}
