/* ---- ACARiS brand shell (palette follows eu.acaris.net, primary #2A2A81) ---- */
.ptz-status-shell {
  --acaris-indigo: #2A2A81;
  --acaris-indigo-2: #3a3aa8;
  max-width: 900px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(42,42,129,.14);
  background: #fff;
  color: #1c1c28;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.ptz-banner { display: flex; align-items: center; gap: 14px; color: #fff;
  background: linear-gradient(120deg, var(--acaris-indigo) 0%, var(--acaris-indigo-2) 100%); }
.ptz-banner-top { padding: 18px 22px; }
.ptz-banner-logo { width: 44px; height: 44px; border-radius: 50%; background: #fff; padding: 3px;
  box-shadow: 0 2px 8px rgba(0,0,0,.18); flex: 0 0 auto; }
.ptz-banner-titles { display: flex; flex-direction: column; line-height: 1.1; }
.ptz-banner-title { font-size: 1.5rem; font-weight: 800; letter-spacing: .04em; }
.ptz-banner-sub { font-size: .82rem; font-weight: 400; opacity: .85; margin-top: 2px; }
.ptz-banner-sub strong { font-weight: 700; }
.ptz-banner-bottom { padding: 12px 22px; justify-content: center; gap: 8px; font-size: .8rem; opacity: .95; }
.ptz-banner-logo-sm { width: 22px; height: 22px; border-radius: 50%; background: #fff; padding: 2px; }
.ptz-banner-foot strong { font-weight: 700; }
/* inner content sits between the banners */
.ptz-status-shell .ptz-status-wrap { padding: 18px 22px; }

.ptz-status-wrap { font-family: inherit; color: inherit; }
.ptz-status-note, .ptz-status-loading { padding: 12px 0; opacity: .8; }
.ptz-status-head h3 { margin: 0 0 10px; font-size: 1.15rem; }
.ptz-adminflag { font-size: .8rem; font-weight: 400; opacity: .7; }

.ptz-table { width: 100%; border-collapse: collapse; }
.ptz-table th, .ptz-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid rgba(0,0,0,.1); }
.ptz-table th { font-size: .78rem; text-transform: uppercase; letter-spacing: .03em; opacity: .65; }
.ptz-row { cursor: pointer; transition: background .12s; }
.ptz-row:hover, .ptz-row:focus { background: rgba(0,0,0,.05); outline: none; }
.ptz-camid { font-family: ui-monospace, Menlo, Consolas, monospace; font-weight: 600; }
.ptz-seen { white-space: nowrap; opacity: .8; }

.ptz-badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: .75rem; font-weight: 600; line-height: 1.5; }
.ptz-b-online    { background: #1f9d55; color: #fff; }
.ptz-b-reporting { background: #d9a400; color: #fff; }
.ptz-b-offline   { background: #b3b3b3; color: #fff; }
.ptz-b-unknown   { background: #777; color: #fff; }

.ptz-detail { margin-top: 16px; border: 1px solid rgba(0,0,0,.14); border-radius: 10px; overflow: hidden; }
.ptz-detail-head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: rgba(0,0,0,.04); }
.ptz-detail-head h4 { margin: 0; font-family: ui-monospace, Menlo, Consolas, monospace; }
.ptz-close { margin-left: auto; border: none; background: transparent; font-size: 1.3rem; line-height: 1; cursor: pointer; opacity: .6; }
.ptz-close:hover { opacity: 1; }
.ptz-launch-row { display: flex; flex-wrap: wrap; gap: 10px; padding: 12px 14px; border-bottom: 1px solid rgba(0,0,0,.1); }
.ptz-launch { display: inline-block; padding: 8px 16px; border-radius: 8px;
  background: var(--acaris-indigo, #2A2A81); color: #fff !important;
  text-decoration: none; font-weight: 600; font-size: .9rem; transition: background .12s; }
.ptz-launch:hover { background: var(--acaris-indigo-2, #3a3aa8); }
.ptz-detail-body { padding: 12px 14px; display: grid; grid-template-columns: 1fr; gap: 6px; }
.ptz-kv { display: flex; justify-content: space-between; gap: 16px; padding: 4px 0; border-bottom: 1px dashed rgba(0,0,0,.08); }
.ptz-k { opacity: .65; }
.ptz-v { font-family: ui-monospace, Menlo, Consolas, monospace; text-align: right; word-break: break-all; }

/* The shell is a fixed white card, so content styling stays light in both
   page themes — no prefers-color-scheme overrides needed. */
@media (max-width: 560px) {
  .ptz-banner-title { font-size: 1.25rem; }
  .ptz-status-shell .ptz-status-wrap { padding: 14px 14px; }
  .ptz-table th:nth-child(3), .ptz-table td:nth-child(3) { display: none; } /* hide Location on narrow */
}
