:root {
  font-family: Inter,Segoe UI,Arial,sans-serif;
  color: #f2f3f5;
  background: #101217;
  font-size: 15px;
  color-scheme: dark;
  --muted: #8d97a8;
  --orange: #f5a01a;
  --line: #2c313a;
  --panel: #191d25;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button,
a.button {
  cursor: pointer;
  min-height: 44px;
  border-radius: 8px;
  border: 1px solid var(--line);
  padding: 11px 15px;
  font-weight: 600;
  text-decoration: none;
  color: inherit;
  display: inline-flex;
  gap: 9px;
  align-items: center;
  justify-content: center;
}
button {
  background: #232934;
}
button:disabled {
  opacity: .45;
  cursor: not-allowed;
}
button:hover:not(:disabled),
a.button:hover {
  filter: brightness(1.15);
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #f5a01a;
  outline-offset: 3px;
}
.primary {
  background: var(--orange);
  color: #19150e;
  border-color: var(--orange);
}
.primary.small {
  font-size: 13px;
  padding: 10px 14px;
}
.secondary {
  background: #252b36;
}
.text-button {
  background: transparent;
  border: 0;
  color: #c1cbd9;
  font-size: 13px;
  padding: 5px;
  min-height: 40px;
}
.icon-button {
  width: 44px;
  padding: 9px;
  background: transparent;
  font-size: 21px;
}
.wordmark {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 1.2px;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}
.wordmark span {
  color: var(--orange);
  font-size: 12px;
  vertical-align: top;
  margin-left: 3px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 700;
  color: var(--muted);
}
h1 {
  font-size: 32px;
  letter-spacing: -1px;
  margin: 8px 0 0;
}
h2 {
  font-size: 17px;
  letter-spacing: -.3px;
  margin: 0 0 16px;
}
h3 {
  font-size: 15px;
  margin: 0 0 12px;
}
p {
  color: #b0b8c5;
  line-height: 1.6;
  margin: 0 0 16px;
}
.fine {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}
.sidebar {
  width: 236px;
  position: fixed;
  inset: 0 auto 0 0;
  padding: 32px 22px;
  border-right: 1px solid var(--line);
  background: #13161c;
  display: flex;
  flex-direction: column;
}
.workspace {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--muted);
  margin: 14px 0 38px;
}
.sidebar nav {
  display: grid;
  gap: 6px;
}
.sidebar nav button {
  background: none;
  border: 0;
  justify-content: flex-start;
  color: #9ca7b8;
  gap: 13px;
  padding: 13px 15px;
  font-size: 16px;
  font-weight: 500;
}
.sidebar nav button span {
  font-size: 13px;
}
.sidebar nav button.active {
  background: #f5a01a13;
  color: #f7b34b;
  border-left: 2px solid var(--orange);
}
.sidebar-bottom {
  margin-top: auto;
  display: grid;
  gap: 14px;
  font-size: 11px;
  color: var(--muted);
}
.sidebar-bottom button {
  justify-content: flex-start;
  padding: 0;
  background: none;
  border: 0;
  font-size: 12px;
  color: #aeb8c8;
}
.sidebar-bottom small {
  font-size: 10px;
}
.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #80b79c;
  border-radius: 50%;
  margin-right: 7px;
}
.nav-count {
  margin-left: auto;
  color: var(--orange);
}
.main {
  margin-left: 236px;
  padding: 30px 38px;
  max-width: 1700px;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 25px;
}
.topbar .eyebrow {
  margin: 0;
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.connection {
  font-size: 11px;
  color: #a9b3c2;
}
.topbar select {
  background: #1e232c;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 11px 14px;
  color: #dce2eb;
  max-width: 220px;
}
.intro-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: baseline;
}
.intro-row p {
  font-size: 13px;
}
.date {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 15px;
  margin: 10px 0 25px;
}
.metric {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 20px;
  border-radius: 10px;
  min-height: 140px;
  position: relative;
}
.metric.accent {
  background: linear-gradient(130deg,#44301c,#241e1a);
  border-color: #715023;
}
.metric .label {
  font-size: 11px;
  color: #a7b0bf;
}
.metric strong {
  display: block;
  font-size: 31px;
  letter-spacing: -1px;
  font-weight: 600;
  margin: 18px 0 10px;
}
.metric small {
  font-size: 11px;
  color: #929fb1;
  line-height: 1.4;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0,1.65fr) minmax(260px,1fr);
  gap: 20px;
}
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 23px;
  margin-bottom: 20px;
  min-width: 0;
}
.dashboard-grid > .panel {
  margin-bottom: 0;
}
.panel p {
  font-size: 13px;
}
.section-head {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
  margin-bottom: 15px;
}
.section-head h2,
.section-head p {
  margin: 0;
}
.pill {
  font-size: 10px;
  padding: 5px 9px;
  border-radius: 5px;
  font-weight: 600;
  white-space: nowrap;
}
.pill.neutral {
  background: #303743;
  color: #bdc8d6;
}
.pill.good {
  background: #163c30;
  color: #9cd4b8;
}
.pill.warn {
  background: #44371f;
  color: #eac782;
}
.pill.bad {
  background: #48252a;
  color: #f3a4a8;
}
.booth-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.booth-row:last-child {
  border: 0;
}
.booth-icon {
  width: 43px;
  height: 53px;
  border-radius: 7px;
  border: 2px solid #555c68;
  display: grid;
  place-items: center;
  color: var(--orange);
  font-size: 20px;
  background: #11151a;
}
.booth-row .grow {
  flex: 1;
}
.booth-row h3 {
  margin: 0 0 7px;
}
.booth-row p {
  margin: 0;
  font-size: 11px;
  color: var(--muted);
}
.source {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.source:last-of-type {
  border-bottom: 0;
}
.source .grow {
  flex: 1;
}
.source strong {
  font-size: 12px;
}
.source small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 5px;
}
.source-symbol {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: #242b35;
  border-radius: 7px;
  color: #d3dbe5;
}
.empty {
  padding: 24px 5px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.empty strong {
  display: block;
  color: #cad1dd;
  margin-bottom: 8px;
  font-weight: 500;
}
.incident {
  border-left: 3px solid #dd9651;
  padding: 13px 15px;
  background: #222832;
  border-radius: 4px;
  margin: 10px 0;
}
.incident.critical {
  border-color: #e08080;
}
.incident p {
  font-size: 13px;
  margin: 6px 0;
}
.incident small {
  color: var(--muted);
  font-size: 11px;
}
.incident button {
  font-size: 11px;
  margin-top: 10px;
  padding: 7px 12px;
  min-height: 36px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 16px;
  margin: 20px 0;
}
.device-card {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 22px;
  border-radius: 10px;
}
.device-card .section-head {
  margin-bottom: 13px;
}
.device-card p {
  font-size: 13px;
}
.device-meta {
  font-size: 11px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 12px;
  line-height: 1.7;
}
.media-amount {
  font-size: 38px;
  display: block;
  margin: 24px 0 10px;
}
.meter {
  height: 7px;
  background: #303641;
  border-radius: 8px;
  overflow: hidden;
  margin: 12px 0 20px;
}
.meter > span {
  display: block;
  height: 100%;
  background: var(--orange);
}
.report-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.report-row small {
  display: block;
  color: var(--muted);
  margin-top: 6px;
  font-size: 11px;
}
.report-row:last-child {
  border: 0;
}
.delivery {
  font-size: 12px;
  border-bottom: 1px solid var(--line);
  padding: 13px 0;
}
.delivery strong {
  font-size: 12px;
}
.delivery small {
  display: block;
  color: var(--muted);
  margin-top: 6px;
}
.banner {
  padding: 15px 20px;
  border-radius: 8px;
  border: 1px solid #725223;
  background: #3b2d19;
  color: #f4d39e;
  font-size: 13px;
  margin-bottom: 20px;
}
.banner.danger {
  border-color: #8a4c4c;
  background: #3a2024;
  color: #ffbdc2;
}
.callout {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #202630;
  font-size: 12px;
  color: #bdc8d8;
  margin: 17px 0;
  line-height: 1.6;
}
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
footer {
  margin-top: 35px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: #778497;
}
.login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
}
.login-art {
  padding: 9vh 9vw;
  background: radial-gradient(ellipse at 20% 80%,#4b341c 0%,#211c19 35%,#14171d 75%);
  overflow: hidden;
  position: relative;
}
.login-art h1 {
  font-size: clamp(38px,4vw,64px);
  line-height: 1.1;
  margin: 12vh 0 25px;
  font-weight: 600;
}
.login-art > p:not(.wordmark) {
  color: #acadaf;
  max-width: 330px;
}
.login-lines {
  position: absolute;
  right: -80px;
  bottom: -160px;
  display: flex;
  gap: 16px;
  transform: rotate(-30deg);
  opacity: .18;
}
.login-lines span {
  width: 85px;
  height: 500px;
  border: 1px solid #e3b66d;
  border-radius: 8px;
}
.login-form {
  align-self: center;
  padding: 60px min(7vw,95px);
  max-width: 600px;
}
.login-form h2 {
  font-size: 28px;
  margin: 15px 0;
}
.login-form label {
  font-size: 12px;
  color: #b4bfce;
  display: block;
  margin: 26px 0 8px;
}
.login-form input {
  width: 100%;
  border: 1px solid #404958;
  background: #1b2029;
  border-radius: 8px;
  color: inherit;
  padding: 15px;
}
.login-form button {
  width: 100%;
  justify-content: space-between;
  margin: 15px 0;
}
.error {
  color: #f2a2a9;
  font-size: 13px;
  line-height: 1.5;
}
dialog {
  background: #1b2028;
  color: inherit;
  border: 1px solid #45505f;
  border-radius: 12px;
  padding: 25px;
  width: min(520px,94vw);
  max-height: 90vh;
}
dialog::backdrop {
  background: #0009;
}
.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.dialog-head h2 {
  margin: 0;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 22px;
}
dialog label {
  display: block;
  font-size: 12px;
  color: #c1cad8;
  margin: 14px 0 6px;
}
dialog input,
dialog select {
  width: 100%;
  padding: 12px;
  border: 1px solid #46505e;
  border-radius: 7px;
  background: #12171e;
  color: inherit;
}
dialog input[type=checkbox] {
  width: auto;
  margin-right: 8px;
}
#toast {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  padding: 14px 20px;
  background: #354153;
  color: white;
  box-shadow: 0 8px 25px #0006;
  border-radius: 8px;
  max-width: 90vw;
  font-size: 13px;
  z-index: 10;
}
#toast:empty {
  display: none;
}
.secret-result {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #10141a;
  border: 1px solid #545d6c;
  border-radius: 7px;
  padding: 14px;
  font: 12px monospace;
  user-select: all;
}
.view[hidden],
[hidden] {
  display: none!important;
}
@media (max-width:1100px) {
  .sidebar {
    width: 205px;
    padding: 27px 16px;
  }
  .main {
    margin-left: 205px;
    padding: 27px 25px;
  }
  .metrics {
    grid-template-columns: repeat(2,1fr);
  }
  .cards {
    grid-template-columns: repeat(2,1fr);
  }
  .dashboard-grid {
    grid-template-columns: minmax(0,1.3fr) minmax(240px,1fr);
  }
}
@media (max-width:800px) {
  .sidebar {
    position: sticky;
    top: 0;
    width: 100%;
    height: auto;
    padding: 16px 18px;
    z-index: 5;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .sidebar .wordmark {
    font-size: 18px;
  }
  .workspace,
  .sidebar-bottom {
    display: none;
  }
  .sidebar nav {
    display: flex;
    margin-top: 13px;
    overflow-x: auto;
    gap: 3px;
  }
  .sidebar nav button {
    white-space: nowrap;
    padding: 10px;
    min-height: 38px;
    font-size: 13px;
  }
  .sidebar nav button.active {
    border-left: 0;
    border-bottom: 2px solid var(--orange);
  }
  .sidebar nav button span {
    font-size: 11px;
  }
  .main {
    margin-left: 0;
    padding: 24px 18px;
  }
  .topbar {
    align-items: flex-start;
  }
  .topbar-right {
    flex-wrap: wrap;
    justify-content: flex-end;
    max-width: 190px;
    gap: 6px;
  }
  .connection {
    font-size: 10px;
  }
  .topbar select {
    font-size: 12px;
    max-width: 145px;
    padding: 9px;
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .date {
    display: none;
  }
  .login-shell {
    grid-template-columns: 1fr;
  }
  .login-art {
    padding: 35px 28px;
  }
  .login-art h1 {
    font-size: 35px;
    margin: 35px 0 15px;
  }
  .login-art h1 br {
    display: none;
  }
  .login-form {
    padding: 30px 28px;
    max-width: none;
  }
  .login-art .wordmark {
    font-size: 19px;
  }
  h1 {
    font-size: 27px;
  }
  .metrics {
    gap: 10px;
  }
  .metric {
    padding: 17px;
    min-height: 135px;
  }
  .metric strong {
    font-size: 27px;
  }
  .section-head {
    align-items: flex-start;
  }
  .report-row {
    flex-wrap: wrap;
  }
  .panel {
    padding: 19px;
  }
}

progress.meter {
  width: 100%;
  accent-color: var(--orange);
}
@media (max-width:800px) {
  .sidebar-bottom {
    display: block;
    position: absolute;
    right: 18px;
    top: 8px;
  }
  .sidebar-bottom div,
  .sidebar-bottom small {
    display: none;
  }
  .sidebar-bottom button {
    padding: 8px 12px;
  }
}
