.brand-cluster {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-right: auto;
}

.brand-cluster .brand {
  margin-right: 0;
}

.brand-mark {
  overflow: hidden;
  background: #fff;
}

.brand-mark img {
  width: 52px;
  height: 52px;
  max-width: none;
  object-fit: contain;
  transform: translateY(-3px);
}

.debug-link {
  border: 0;
  border-left: 1px solid var(--line);
  padding: 5px 0 5px 15px;
  background: transparent;
  color: var(--cyan);
  font-size: .76rem;
  font-weight: 750;
}

.language-toggle {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
  background: var(--panel2);
}

.language-toggle button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 8px 10px;
  font-size: .72rem;
  font-weight: 800;
}

.language-toggle button.active {
  background: var(--cyan);
  color: #071015;
}

.remote-panel,
.power-panel {
  padding: 16px;
}

.remote-panel .panel-title {
  margin-bottom: 8px;
}

.remote {
  max-width: 300px;
}

.remote button {
  min-height: 31px;
  padding: 4px 8px;
  font-size: .8rem;
  border-radius: 8px;
}

.remote-row {
  gap: 5px;
  margin: 5px 0;
}

.remote-row .round {
  width: 34px;
  height: 34px;
  min-height: 34px;
}

.nav-pad {
  width: 126px;
  height: 126px;
  margin: 8px auto;
  padding: 5px;
}

.rockers {
  gap: 8px;
  margin: 8px 0;
}

.rockers > div {
  gap: 3px;
}

.rockers .rocker-buttons {
  display: grid;
  grid-template-columns: 32px 1fr 32px;
  gap: 4px;
  height: auto;
}

.rockers .rocker-buttons > span {
  height: 31px;
}

.colors {
  gap: 6px;
  margin: 7px 0;
}

.remote-row.media {
  max-width: 180px;
  margin: 5px auto;
}

.number-pad {
  margin-top: 7px;
}

.number-pad summary {
  cursor: pointer;
  text-align: center;
  color: var(--muted);
  font-size: .72rem;
}

.number-pad .digits {
  margin-top: 7px;
}

.keyboard-hint {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: .64rem;
  line-height: 1.35;
  text-align: center;
}

.remote button.keyboard-active {
  border-color: #708ba4;
  background: #344352;
  transform: translateY(1px);
}

.digits {
  gap: 5px;
}

.camera-controls {
  display: grid;
  grid-template-columns: repeat(4, max-content);
  align-items: end;
}

.camera-controls label {
  min-width: 100px;
}

.camera-controls input:disabled,
.camera-controls button:disabled {
  opacity: .4;
}

.quality-select {
  display: grid;
  gap: 3px;
  color: var(--muted);
  font-size: .65rem;
}

.quality-select select {
  min-height: 40px;
  padding: 8px 30px 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel2);
  color: var(--text);
}

.debug-dialog {
  width: min(1120px, calc(100vw - 32px));
  height: min(780px, calc(100vh - 32px));
  padding: 0;
  border: 1px solid #394453;
  border-radius: 18px;
  background: #11161d;
  color: var(--text);
  box-shadow: 0 30px 100px #000c;
}

.debug-dialog::backdrop {
  background: rgba(2, 5, 9, .8);
  backdrop-filter: blur(7px);
}

.debug-shell {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  height: 100%;
}

.debug-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px 15px;
  border-bottom: 1px solid var(--line);
}

.debug-header h2 {
  margin: 3px 0 0;
}

.debug-close {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--panel2);
  font-size: 1.5rem;
}

.debug-nav {
  display: flex;
  gap: 4px;
  padding: 10px 16px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
}

.debug-nav button {
  flex: 0 0 auto;
  padding: 8px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: .78rem;
}

.debug-nav button.active {
  background: #21303d;
  color: var(--cyan);
}

.debug-content {
  min-height: 0;
  overflow: auto;
  padding: 18px;
}

.debug-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.debug-card {
  min-height: 112px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel2);
}

.debug-card small {
  display: block;
  margin-bottom: 8px;
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.debug-card strong {
  display: block;
  margin-bottom: 5px;
  font-size: 1.15rem;
}

.debug-card span {
  color: var(--muted);
  font-size: .75rem;
  line-height: 1.45;
}

.debug-card.good strong {
  color: var(--green);
}

.debug-card.bad strong {
  color: var(--red);
}

.debug-log {
  min-height: 100%;
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: #c8d3df;
  font: 12px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.debug-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 11px 16px;
  border-top: 1px solid var(--line);
}

.debug-actions > span {
  margin-right: auto;
  color: var(--muted);
  font-size: .7rem;
}

@media (max-width: 980px) {
  .side-column {
    grid-template-columns: 1fr;
  }

  .remote-panel {
    grid-row: auto;
  }
}

@media (max-width: 720px) {
  .language-toggle button {
    padding: 7px 9px;
  }

  .camera-controls {
    grid-template-columns: 1fr 1fr;
  }

  .camera-controls label,
  .camera-controls select,
  .camera-controls input {
    width: 100%;
  }

  .remote {
    max-width: 280px;
  }

  .brand-cluster {
    gap: 8px;
  }

  .brand-cluster .brand > div {
    display: none;
  }

  .debug-link {
    padding-left: 8px;
  }

  .debug-summary {
    grid-template-columns: 1fr;
  }
}

/* Authentication, accounts and compact operational header. */
[hidden] {
  display: none !important;
}

.login-view {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #11151a;
}

.login-card {
  position: relative;
  width: min(430px, 100%);
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  box-shadow: 0 28px 80px rgba(0, 0, 0, .28);
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.login-brand > div {
  display: grid;
}

.login-brand small,
.login-copy p,
.form-hint {
  color: var(--muted);
}

.login-logo {
  display: grid;
  width: 50px;
  height: 50px;
  padding: 5px;
  place-items: center;
  border: 1px solid #d7d7d2;
  border-radius: 8px;
  background: #fff;
}

.login-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.login-copy {
  margin: 28px 0 22px;
}

.login-copy h1 {
  margin: 5px 0 8px;
  font-size: 1.75rem;
}

.login-copy p {
  margin: 0;
  line-height: 1.5;
}

#login-form,
.account-body {
  display: grid;
  gap: 14px;
}

#login-form label,
.account-body label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: .76rem;
}

#login-form input,
.account-body input,
.account-body select {
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 6px;
  outline: 0;
  background: var(--panel2);
  color: var(--text);
  font: inherit;
}

#login-form input:focus,
.account-body input:focus,
.account-body select:focus {
  border-color: #7694ad;
  box-shadow: 0 0 0 2px rgba(136, 169, 196, .15);
}

.login-submit {
  width: 100%;
  margin-top: 4px;
}

.form-error,
.bootstrap-message {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #765359;
  border-radius: 6px;
  background: #2b2023;
  color: #e0b1b5;
  font-size: .76rem;
  line-height: 1.45;
}

.bootstrap-message {
  margin-top: 16px;
  border-color: #5b6470;
  background: #1b2128;
  color: var(--muted);
}

.login-language {
  position: absolute;
  top: 34px;
  right: 34px;
}

.hardware-status,
.header-controls,
.active-users,
.avatar-stack {
  display: flex;
  align-items: center;
}

.hardware-status {
  gap: 5px;
}

.hardware-metric {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 57px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  font-size: .68rem;
  font-variant-numeric: tabular-nums;
}

.hardware-metric svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.hardware-metric b {
  color: var(--text);
  font-weight: 620;
}

.active-users {
  gap: 8px;
  color: var(--muted);
  font-size: .68rem;
}

.avatar-stack {
  min-width: 32px;
}

.avatar-stack .avatar + .avatar {
  margin-left: -7px;
}

.header-controls {
  gap: 10px;
}

.profile-button {
  display: grid;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
}

.avatar {
  display: inline-grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  place-items: center;
  border: 2px solid #14191f;
  border-radius: 50%;
  color: #f4f7f9;
  font-size: .72rem;
  font-weight: 750;
  letter-spacing: .02em;
}

.avatar.small {
  width: 29px;
  height: 29px;
  font-size: .61rem;
}

.color-slate { background: #586675; }
.color-blue { background: #52799a; }
.color-teal { background: #427f80; }
.color-green { background: #547b60; }
.color-violet { background: #75678e; }
.color-amber { background: #8b7046; }
.color-rose { background: #8d5d68; }

.account-dialog {
  width: min(620px, calc(100vw - 32px));
  max-height: min(820px, calc(100vh - 32px));
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  color: var(--text);
  box-shadow: 0 28px 90px rgba(0, 0, 0, .55);
}

.account-dialog.user-dialog {
  width: min(1080px, calc(100vw - 32px));
}

.account-dialog::backdrop {
  background: rgba(4, 7, 10, .82);
}

.account-shell > header,
.account-shell > footer {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.account-shell > header {
  justify-content: space-between;
}

.account-shell > header h2 {
  margin: 3px 0 0;
  font-size: 1.25rem;
}

.account-shell > footer {
  justify-content: flex-end;
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

.account-shell > footer #user-admin-open {
  margin-right: auto;
}

.dialog-close {
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--panel2);
  color: var(--muted);
  font-size: 1.2rem;
}

.account-body {
  padding: 20px;
  overflow: auto;
}

.account-body hr {
  width: 100%;
  margin: 4px 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.form-hint {
  margin: 0;
  font-size: .74rem;
}

.account-tabs {
  display: flex;
  gap: 4px;
  padding: 9px 15px;
  border-bottom: 1px solid var(--line);
}

.account-tabs button {
  padding: 8px 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
}

.account-tabs button.active {
  background: var(--panel2);
  color: var(--text);
}

.create-user-form {
  display: grid;
  grid-template-columns: 1fr 1.25fr 1.25fr auto auto;
  align-items: end;
  gap: 9px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.check-label {
  display: flex !important;
  align-items: center;
  gap: 7px !important;
  min-height: 42px;
  white-space: nowrap;
}

.check-label input {
  width: 16px !important;
  min-height: auto !important;
}

.users-list {
  display: grid;
  gap: 9px;
}

.user-card {
  display: grid;
  grid-template-columns: minmax(180px, .8fr) minmax(300px, 1.35fr) minmax(260px, 1fr);
  align-items: center;
  gap: 13px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #171c22;
}

.user-identity {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.user-identity > div {
  display: grid;
  min-width: 0;
}

.user-identity strong,
.user-identity small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-identity small {
  color: var(--muted);
  font-size: .67rem;
}

.user-fields,
.user-actions {
  display: grid;
  grid-template-columns: 1fr 90px auto auto;
  align-items: center;
  gap: 7px;
}

.user-actions {
  grid-template-columns: 1fr auto auto;
}

.audit-table-wrap {
  max-height: 570px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.audit-table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: .72rem;
}

.audit-table-wrap th,
.audit-table-wrap td {
  padding: 9px 11px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}

.audit-table-wrap th {
  position: sticky;
  top: 0;
  background: var(--panel2);
  color: var(--muted);
  font-weight: 600;
}

@media (max-width: 1180px) {
  .active-users > span,
  .clock {
    display: none;
  }

  .user-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .hardware-status {
    display: none;
  }

  .create-user-form {
    grid-template-columns: 1fr 1fr;
  }

  .create-user-form .button {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .login-card {
    padding: 24px;
  }

  .login-language {
    top: 24px;
    right: 24px;
  }

  .active-users {
    display: none;
  }

  .header-controls {
    margin-left: auto;
  }

  .header-controls #setup-select {
    max-width: 110px;
  }

  .user-fields,
  .user-actions,
  .create-user-form {
    grid-template-columns: 1fr;
  }
}

/* Restrained control-room theme: flat surfaces, quiet accents, clear hierarchy. */
:root {
  --bg: #11151a;
  --panel: #181d23;
  --panel2: #202731;
  --line: #323c47;
  --text: #edf1f5;
  --muted: #98a4b0;
  --cyan: #88a9c4;
  --orange: #91adc4;
  --green: #79a58a;
  --red: #bd777d;
  --radius: 10px;
}

body {
  background: var(--bg);
  color: var(--text);
}

.topbar {
  height: 70px;
  border-color: var(--line);
  background: #14191f;
  backdrop-filter: none;
}

.panel {
  border-color: var(--line);
  background: var(--panel);
  box-shadow: none;
}

.panel-title h1,
.panel-title h2 {
  font-weight: 650;
  letter-spacing: -.025em;
}

.eyebrow {
  color: #91abc1;
  font-weight: 650;
  letter-spacing: .09em;
}

.brand-mark {
  width: 44px;
  height: 44px;
  padding: 4px;
  overflow: hidden;
  border: 1px solid #d7d7d2;
  border-radius: 8px;
  background: #fff;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  transform: none;
}

.brand strong {
  font-weight: 680;
  letter-spacing: -.015em;
}

.debug-link {
  border-left-color: var(--line);
  color: var(--muted);
  font-weight: 600;
}

.debug-link:hover {
  color: var(--text);
  filter: none;
}

#setup-select,
.language-toggle,
.quality-select select,
.camera-controls,
.camera-controls select,
.camera-controls input {
  border-color: var(--line);
  border-radius: 6px;
  background: var(--panel2);
}

.language-toggle button.active {
  background: #9db6cb;
  color: #12181e;
}

.status {
  border-color: var(--line);
  border-radius: 6px;
  background: transparent;
}

.status.online i {
  background: var(--green);
  box-shadow: none;
}

.video-wrap {
  border-color: #303a45;
  border-radius: 6px;
  background: #090c10;
}

.video-overlay span {
  border-radius: 4px;
  background: rgba(8, 11, 14, .8);
}

.button,
.remote button,
.metrics span,
.job-box,
.debug-card {
  border-radius: 6px;
}

.button {
  font-weight: 620;
}

.button.primary {
  border-color: #8faabe;
  background: #9db6c9;
  color: #111820;
}

.button.secondary,
.remote button {
  border-color: #394550;
  background: #252d36;
}

.button.success {
  border-color: #688d70;
  background: #44694d;
}

.button.danger {
  border-color: #8f5a5a;
  background: #6d4141;
}

.nav-pad {
  border-color: #394550;
  background: #20262d;
}

.nav-pad .ok {
  background: #303b46;
}

.power-panel #watts {
  color: var(--orange);
}

.power-panel {
  padding: 0;
  overflow: hidden;
}

.power-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  cursor: pointer;
  list-style: none;
}

.power-summary::-webkit-details-marker {
  display: none;
}

.power-summary > span {
  display: grid;
  gap: 3px;
}

.power-summary > span > strong {
  font-size: 1.35rem;
  font-weight: 650;
  letter-spacing: -.025em;
}

.power-summary > b {
  font-size: 1.35rem;
  white-space: nowrap;
}

.power-summary::after {
  content: "⌄";
  color: var(--muted);
  font-size: .9rem;
  transition: transform .15s ease;
}

.power-panel[open] .power-summary::after {
  transform: rotate(180deg);
}

.power-details {
  padding: 0 16px 16px;
  border-top: 1px solid var(--line);
}

.power-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .8rem;
}

.power-table th,
.power-table td {
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.power-table tr:last-child th,
.power-table tr:last-child td {
  border-bottom: 0;
}

.power-table th {
  color: var(--muted);
  font-weight: 500;
}

.power-table td {
  font-weight: 650;
}

.power-toggle-cell {
  text-align: right !important;
}

.switch {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 24px;
  vertical-align: middle;
}

.switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.switch span {
  position: absolute;
  inset: 0;
  border: 1px solid #4b5864;
  border-radius: 12px;
  background: #2b333c;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}

.switch span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #d9e0e6;
  transition: transform .15s ease;
}

.switch input:checked + span {
  border-color: #7898b2;
  background: #496b86;
}

.switch input:checked + span::after {
  transform: translateX(18px);
}

.switch input:focus-visible + span {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

.switch input:disabled + span {
  cursor: not-allowed;
  opacity: .45;
}

.metrics span {
  background: #1e252c;
}

.debug-dialog {
  border-color: #3b4651;
  border-radius: 10px;
  background: #171c22;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .55);
}

.debug-dialog::backdrop {
  background: rgba(7, 10, 13, .82);
  backdrop-filter: none;
}

.debug-nav button,
.debug-close {
  border-radius: 6px;
}

.debug-nav button.active {
  background: #293541;
  color: var(--text);
}

.archive-fallback {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.archive-fallback-item {
  display: grid;
  grid-template-rows: 140px auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel2);
  color: var(--text);
  text-decoration: none;
}

.archive-fallback-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #0a0e12;
}

.archive-fallback-item span {
  overflow: hidden;
  padding: 10px;
  color: var(--muted);
  font-size: .72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.toast {
  border-color: #465462;
  border-radius: 7px;
  background: #252e37;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .4);
}

.network-panel {
  grid-column: 1 / -1;
  padding: 20px;
}

.network-header,
.network-tools,
.network-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.network-header h2 {
  margin: 3px 0 0;
  font-size: 1.45rem;
  font-weight: 650;
  letter-spacing: -.025em;
}

.network-tools {
  justify-content: flex-end;
}

.network-tools label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: .72rem;
}

.network-tools select {
  min-height: 36px;
  padding: 7px 30px 7px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel2);
  color: var(--text);
}

.network-tools a {
  text-decoration: none;
}

.network-message {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  background: #161b21;
}

.network-message.error {
  border-color: #765359;
  color: #d7a5aa;
}

.network-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.network-metrics article {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #1b2128;
}

.network-metrics small,
.network-metrics span {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: .68rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.network-metrics strong {
  display: block;
  margin: 7px 0 5px;
  overflow: hidden;
  font-size: 1.15rem;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.traffic-chart-block {
  margin-top: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #171c22;
}

.network-section-title {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: .75rem;
}

.network-section-title strong {
  color: var(--text);
  font-size: .82rem;
  font-weight: 620;
}

.network-timeline {
  display: flex;
  align-items: end;
  gap: 5px;
  height: 72px;
  padding-top: 8px;
  border-bottom: 1px solid #46515d;
}

.network-timeline span {
  flex: 1;
  min-height: 3px;
  border-radius: 2px 2px 0 0;
  background: #88a9c4;
  opacity: .82;
}

.network-columns {
  display: grid;
  grid-template-columns: 1.35fr 1.35fr .8fr;
  gap: 12px;
  margin-top: 12px;
}

.network-columns > section {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #171c22;
}

.network-list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  padding: 7px 0;
  border-top: 1px solid #2b343d;
  font-size: .75rem;
}

.network-list-row:first-child {
  border-top: 0;
}

.network-list-row span {
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.network-list-row strong {
  flex: 0 0 auto;
  font-weight: 620;
}

.network-empty {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: .74rem;
}

.network-sessions {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #171c22;
}

.network-sessions summary {
  padding: 13px 14px;
  color: var(--muted);
  cursor: pointer;
  font-size: .76rem;
  font-weight: 620;
}

.network-table-wrap {
  overflow-x: auto;
  border-top: 1px solid var(--line);
}

.network-sessions table {
  width: 100%;
  border-collapse: collapse;
  font-size: .72rem;
}

.network-sessions th,
.network-sessions td {
  padding: 9px 14px;
  border-bottom: 1px solid #2b343d;
  text-align: left;
  white-space: nowrap;
}

.network-sessions th {
  color: var(--muted);
  font-weight: 520;
}

.network-sessions tr:last-child td {
  border-bottom: 0;
}

@media (max-width: 980px) {
  .network-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .network-columns {
    grid-template-columns: 1fr 1fr;
  }

  .network-columns > section:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .network-panel {
    padding: 14px;
  }

  .network-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .network-tools {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .network-metrics,
  .network-columns {
    grid-template-columns: 1fr;
  }

  .network-columns > section:last-child {
    grid-column: auto;
  }
}
