:root {
  --bg: #0b1220;
  --panel: #111b2d;
  --panel2: #151f32;
  --border: #243149;
  --muted: #8290a7;
  --text: #e8eef7;
  --teal: #20b99a;
  --green: #45d4a1;
  --amber: #f3b64b;
  --red: #f17479;
  --blue: #7b9cff;
  --sidebar: 248px;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  color: var(--text);
  background: var(--bg);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
.app-shell {
  min-height: 100vh;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar);
  background: #0e1727;
  border-right: 1px solid #1d2a3d;
  padding: 25px 16px;
  display: flex;
  flex-direction: column;
  z-index: 5;
  transition:
    transform 0.24s,
    width 0.24s;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
  padding: 0 8px 35px;
}
.brand-name span {
  color: #47d5b4;
}
.brand-mark {
  width: 45px;
  height: 45px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: linear-gradient(145deg, #29c8a6, #178f88);
  font-weight: 800;
  color: #071a22;
  box-shadow: 0 8px 28px #10b99732;
}
.brand-mark.small {
  height: 35px;
  width: 35px;
  border-radius: 11px;
  font-size: 12px;
}
.workspace-label,
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.5px;
  font-weight: 700;
  color: #72829a;
}
.workspace-label {
  padding: 0 12px 12px;
}
.sidebar nav {
  display: grid;
  gap: 5px;
}
.nav-item {
  border: 0;
  background: transparent;
  color: #8998ad;
  text-decoration: none;
  padding: 12px 13px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 13px;
  text-align: left;
}
.nav-item > span:first-child {
  width: 18px;
  text-align: center;
  font-size: 16px;
}
.nav-item.active {
  background: #142b34;
  color: #48d2b2;
  box-shadow: inset 2px 0 #25c3a0;
}
.nav-item:hover {
  background: #172438;
  color: #eaf1fa;
}
.nav-count {
  margin-left: auto;
  font-size: 10px;
  color: #98a7bb;
  background: #202d40;
  padding: 3px 7px;
  border-radius: 20px;
}
.sidebar-bottom {
  margin-top: auto;
}
.daemon-state {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 5px 18px;
  padding: 14px 10px;
  border: 1px solid #223149;
  border-radius: 11px;
  color: #8998ad;
  font-size: 11px;
  line-height: 1.7;
}
.daemon-state i,
.live-indicator i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #37ce99;
  box-shadow: 0 0 10px #37ce99;
}
.daemon-state b {
  color: #dbe5f1;
  font-size: 12px;
}
.signout {
  width: 100%;
  border-top: 1px solid #1d2a3d;
  border-radius: 0;
  padding-top: 19px;
}
.main-area {
  margin-left: var(--sidebar);
  min-width: 0;
  transition: margin 0.24s;
}
.topbar {
  height: 72px;
  border-bottom: 1px solid #1c293b;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 36px;
  background: #0c1422;
}
.breadcrumbs {
  font-size: 12px;
  color: #8391a7;
}
.breadcrumbs span {
  padding: 0 10px;
  color: #46546a;
}
.breadcrumbs b {
  color: #dbe5ef;
  font-weight: 600;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 19px;
}
.live-indicator {
  font-size: 9px;
  color: #50d7aa;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.icon-button {
  border: 1px solid transparent;
  background: transparent;
  color: #a8b5c6;
  font-size: 18px;
  width: 34px;
  height: 34px;
  border-radius: 8px;
}
.icon-button:hover {
  background: #1a273b;
}
.sidebar-toggle {
  border-color: #26354c;
}
.profile {
  display: flex;
  gap: 9px;
  align-items: center;
  font-size: 11px;
  color: #e1eaf4;
  line-height: 1.35;
}
.profile small {
  font-size: 9px;
  color: #8493a8;
}
.profile > b {
  color: #8493a8;
  margin-left: 3px;
}
.avatar {
  width: 31px;
  height: 31px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #263b51;
  color: #7fe3ca;
  font-weight: 700;
}
.content {
  max-width: 1500px;
  margin: auto;
  padding: 31px 36px 55px;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 21px;
}
.page-heading h1 {
  font-size: 25px;
  margin: 7px 0 5px;
  letter-spacing: -0.7px;
}
.page-heading .eyebrow {
  margin: 0;
}
.muted {
  color: var(--muted);
  font-size: 12px;
  margin: 0;
}
.btn-primary,
.btn-secondary {
  border: 0;
  border-radius: 8px;
  padding: 11px 15px;
  font-size: 11px;
  font-weight: 650;
  white-space: nowrap;
}
.btn-primary {
  color: #061c1a;
  background: linear-gradient(135deg, #35d0ae, #1caf94);
  box-shadow: 0 5px 18px #19be9b24;
}
.btn-primary:hover {
  filter: brightness(1.08);
}
.btn-secondary {
  color: #b9c5d4;
  border: 1px solid #2a3850;
  background: #141e30;
}
.notice-demo {
  background: #332a1b;
  color: #e9c980;
  border: 1px solid #5a4827;
  border-radius: 8px;
  padding: 10px 13px;
  font-size: 10px;
  margin-bottom: 17px;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.stat-card,
.panel {
  background: linear-gradient(145deg, #121d2f, #101a2a);
  border: 1px solid #202e43;
  border-radius: 12px;
}
.stat-card {
  min-height: 126px;
  padding: 17px 18px;
  position: relative;
}
.stat-title {
  color: #9aa8bb;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.stat-icon {
  width: 27px;
  height: 27px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #193032;
}
.stat-icon.green {
  color: #44d7a0;
  background: #153229;
}
.stat-icon.blue {
  color: #84a9ff;
  background: #1b2942;
}
.stat-icon.violet {
  color: #a99cff;
  background: #292745;
}
.stat-value {
  font-size: 26px;
  font-weight: 700;
  margin-top: 13px;
  letter-spacing: -0.8px;
}
.stat-value small {
  font-size: 10px;
  font-weight: 450;
  color: #8a99ad;
  letter-spacing: 0;
}
.stat-meta {
  font-size: 9px;
  color: #718198;
  margin-top: 6px;
}
.stat-meta.positive {
  color: #e7bb66;
}
.mini-bars {
  position: absolute;
  right: 16px;
  bottom: 19px;
  height: 25px;
  display: flex;
  align-items: end;
  gap: 3px;
}
.mini-bars i {
  display: block;
  width: 3px;
  border-radius: 3px;
  background: #9185ea;
  opacity: 0.78;
}
.analytics-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(260px, 1fr);
  gap: 14px;
  margin-top: 15px;
}
.panel {
  padding: 19px;
}
.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.panel-heading h2 {
  font-size: 13px;
  margin: 0 0 5px;
}
.panel-heading p {
  font-size: 10px;
}
.panel-heading select {
  border: 1px solid #2b3950;
  border-radius: 7px;
  background: #131e30;
  color: #a9b7c9;
  padding: 8px 10px;
  font-size: 9px;
}
.traffic-legend {
  display: flex;
  gap: 24px;
  margin: 21px 0 9px 43px;
  font-size: 9px;
  color: #8795aa;
}
.traffic-legend span {
  display: flex;
  align-items: center;
  gap: 7px;
}
.traffic-legend b {
  color: #dce6f2;
  font-weight: 600;
  margin-left: 2px;
}
.traffic-legend i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
}
.traffic-legend .legend-out {
  background: #8d83ef;
}
.chart {
  height: 163px;
  position: relative;
  padding-left: 43px;
}
.chart svg {
  width: 100%;
  height: 135px;
  overflow: visible;
  border-bottom: 1px solid #29364b;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 32px,
    #243148 33px,
    #243148 34px
  );
}
.chart-y {
  position: absolute;
  inset: 0 auto 25px 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #66758c;
  font-size: 8px;
}
.chart-x {
  display: flex;
  justify-content: space-between;
  color: #66758c;
  font-size: 8px;
  padding-top: 8px;
}
.health-ok {
  font-size: 9px;
  color: #42d2a0;
  background: #173127;
  border-radius: 20px;
  padding: 6px 9px;
}
.resource-row {
  margin-top: 22px;
}
.resource-label {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #a9b7c9;
  margin-bottom: 8px;
}
.resource-label b {
  font-size: 11px;
  color: #e1eaf4;
}
.progress {
  height: 5px;
  border-radius: 5px;
  background: #263249;
  overflow: hidden;
}
.progress i {
  height: 100%;
  display: block;
  border-radius: 5px;
  background: linear-gradient(90deg, #21b895, #4dd3ae);
}
.progress.purple i {
  background: linear-gradient(90deg, #7168d9, #a499ff);
}
.resource-row > small {
  display: block;
  color: #718097;
  font-size: 9px;
  margin-top: 7px;
}
.resource-label .text-green {
  color: #43d4a0;
}
.warp-route {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #8090a6;
  font-size: 8px;
  margin-top: 12px;
}
.warp-route i {
  color: #38b899;
  letter-spacing: 1px;
}
.channel-panel {
  margin-top: 15px;
  padding: 0;
}
.channel-heading {
  padding: 19px 19px 16px;
}
.table-actions {
  display: flex;
  gap: 7px;
}
.search-input {
  width: 155px;
  border: 1px solid #29384e;
  border-radius: 7px;
  background: #0e1828;
  padding: 8px 10px;
  color: #dce5f0;
  font-size: 9px;
  outline: none;
}
.search-input:focus,
input:focus,
select:focus {
  border-color: #2bb99b;
  box-shadow: 0 0 0 3px #24b9971a;
}
.table-actions .btn-secondary {
  padding: 8px 10px;
  font-size: 9px;
}
.table-wrap {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  min-width: 770px;
}
th {
  text-align: left;
  color: #687992;
  font-weight: 650;
  font-size: 8px;
  letter-spacing: 0.8px;
  background: #101a2a;
  padding: 11px 15px;
  border-top: 1px solid #202e43;
  border-bottom: 1px solid #202e43;
}
td {
  padding: 12px 15px;
  border-bottom: 1px solid #202b3e;
  color: #aebacc;
  font-size: 10px;
  white-space: nowrap;
}
tbody tr:hover {
  background: #142034;
}
.channel-name {
  display: flex;
  align-items: center;
  gap: 9px;
}
.channel-name b {
  display: block;
  font-size: 10px;
  color: #e2eaf3;
  font-weight: 600;
}
.channel-name small {
  font-size: 8px;
  color: #78879d;
  display: block;
  margin-top: 4px;
}
.channel-avatar {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: #193c3a;
  color: #51d7b3;
  display: grid;
  place-items: center;
  font-size: 9px;
  font-weight: 700;
}
.blue-bg {
  background: #1c2b45;
  color: #87a8fc;
}
.amber-bg {
  background: #3a3021;
  color: #e6b969;
}
.status {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.3px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.status i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
}
.status.online {
  color: #50d8a7;
}
.status.online i {
  background: #50d8a7;
  box-shadow: 0 0 7px #50d8a7;
}
.status.reconnecting {
  color: #edbd5d;
}
.status.reconnecting i {
  background: #edbd5d;
}
.status.offline {
  color: #a0aabd;
}
.status.offline i {
  background: #748197;
}
td code {
  color: #69d2bb;
  background: #172b34;
  padding: 5px 7px;
  border-radius: 5px;
  font-size: 8px;
}
.row-action {
  border: 0;
  background: #19263a;
  color: #9caec3;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  margin-right: 4px;
}
.row-action:hover {
  color: #46d3b0;
}
.table-footer {
  padding: 13px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #728198;
  font-size: 9px;
}
.page-btn {
  border: 1px solid #29364a;
  background: #121e2f;
  color: #94a2b7;
  border-radius: 5px;
  min-width: 25px;
  height: 25px;
  margin-left: 4px;
}
.page-btn.selected {
  background: #15332f;
  border-color: #267d6c;
  color: #5dd8b8;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: #050a12c9;
  backdrop-filter: blur(5px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-backdrop.open {
  display: flex;
}
.form-modal {
  width: min(100%, 490px);
  background: #111c2e;
  border: 1px solid #2a3a52;
  border-radius: 15px;
  box-shadow: 0 25px 90px #0009;
  padding: 25px;
}
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
}
.modal-head .eyebrow {
  margin: 0 0 7px;
}
.modal-head h2 {
  font-size: 18px;
  margin: 0;
}
.form-modal label:not(.switch-row) {
  display: block;
  font-size: 10px;
  color: #cad4e2;
  margin: 15px 0 7px;
}
.form-modal input:not([type="checkbox"]),
.form-modal select {
  width: 100%;
  border: 1px solid #2c3a50;
  background: #0b1423;
  color: #e4edf7;
  border-radius: 8px;
  padding: 12px;
  font-size: 11px;
  outline: none;
}
.field-help {
  font-size: 9px;
  color: #8190a6;
  display: block;
  margin-top: 7px;
}
.switch-row {
  margin-top: 19px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid #25334a;
  border-radius: 9px;
  padding: 12px;
}
.switch-row b,
.switch-row small {
  display: block;
  font-size: 10px;
  color: #cbd5e1;
}
.switch-row small {
  color: #8190a6;
  font-size: 9px;
  margin-top: 4px;
}
.switch-row input {
  accent-color: #22c09c;
  width: 16px;
  height: 16px;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 24px;
  padding-top: 17px;
  border-top: 1px solid #26344a;
}
.modal-actions button {
  min-width: 105px;
}
.login-page {
  min-height: 100vh;
  overflow: hidden;
  background: radial-gradient(
    ellipse at 50% 46%,
    #14213a 0,
    #0b1220 48%,
    #070b13 100%
  );
  position: relative;
}
.login-page:before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(
    ellipse at 50% 50%,
    transparent 0,
    transparent 30%,
    #05080eb0 100%
  );
  pointer-events: none;
}
#starfield {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
.login-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 24px;
}
.login-card {
  width: min(100%, 440px);
  padding: 42px 40px 31px;
  border: 1px solid #40506a88;
  border-radius: 24px;
  background: linear-gradient(145deg, #121d30f2, #10192bf0);
  box-shadow:
    0 32px 110px #0009,
    0 0 80px #47cdb31b;
  backdrop-filter: blur(16px);
}
.login-card .brand-mark {
  margin: 0 auto 22px;
}
.login-card .eyebrow {
  text-align: center;
  margin: 0 0 9px;
}
.login-card h1 {
  text-align: center;
  font-size: 24px;
  margin: 0 0 8px;
  letter-spacing: -0.5px;
}
.login-card > .muted {
  text-align: center;
  margin-bottom: 30px;
  font-size: 13px;
}
.login-card form label {
  display: block;
  font-size: 12px;
  color: #c8d3e2;
  margin: 17px 0 8px;
}
.login-card form > input,
.password-input-wrap > input {
  width: 100%;
  min-height: 52px;
  padding: 13px 15px;
  border: 1px solid #34445d;
  background: #0c1524e8;
  border-radius: 11px;
  color: #e8eef7;
  font-size: 14px;
  outline: none;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}
.login-card form > input:focus,
.password-input-wrap > input:focus {
  border-color: #39c6a9;
  background: #0d1929;
  box-shadow: 0 0 0 4px #35d0ae1a;
}
.password-input-wrap {
  position: relative;
}
.password-input-wrap > input {
  padding-right: 52px;
}
.password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  padding: 0;
  transform: translateY(-50%);
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #8798b0;
  transition:
    color 160ms ease,
    background 160ms ease;
}
.password-toggle:hover,
.password-toggle:focus-visible {
  color: #5ce0c1;
  background: #24364c;
  outline: none;
}
.eye-icon {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}
.password-toggle[aria-pressed="true"] .eye-icon circle {
  fill: currentColor;
}
.login-card input::placeholder {
  color: #5f6e83;
}
.turnstile-wrap {
  display: flex;
  justify-content: center;
  width: 100%;
  min-height: 66px;
  margin-top: 18px;
  overflow: hidden;
}
.turnstile-wrap .cf-turnstile {
  max-width: 100%;
}
.login-submit {
  position: relative;
  width: 100%;
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 12px;
  padding: 10px 11px 10px 19px;
  overflow: hidden;
  border: 1px solid #63e4c7;
  border-radius: 13px;
  color: #06241e;
  background: linear-gradient(115deg, #49dfbd 0%, #24c6a3 52%, #18a98f 100%);
  box-shadow:
    0 12px 30px #20c5a336,
    inset 0 1px 0 #ffffff4d;
  font-size: 14px;
  font-weight: 750;
  letter-spacing: 0.01em;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    filter 160ms ease;
}
.login-submit::before {
  position: absolute;
  inset: 0;
  content: "";
  transform: translateX(-130%) skewX(-18deg);
  background: linear-gradient(90deg, transparent, #ffffff55, transparent);
  transition: transform 500ms ease;
}
.login-submit:hover {
  transform: translateY(-1px);
  filter: saturate(1.08) brightness(1.04);
  box-shadow:
    0 16px 34px #20c5a34a,
    inset 0 1px 0 #ffffff66;
}
.login-submit:hover::before {
  transform: translateX(130%) skewX(-18deg);
}
.login-submit:active {
  transform: translateY(0);
}
.login-submit:focus-visible {
  outline: 3px solid #70f0d1;
  outline-offset: 3px;
}
.login-submit-label,
.login-submit-icon {
  position: relative;
  z-index: 1;
}
.login-submit-icon {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border: 1px solid #ffffff4d;
  border-radius: 10px;
  background: #0a786a26;
}
.login-submit-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  transition: transform 160ms ease;
}
.login-submit:hover .login-submit-icon svg {
  transform: translateX(2px);
}
.login-foot {
  text-align: center;
  margin: 22px 0 0;
  color: #8190a4;
  font-size: 11px;
}
.lock-icon {
  color: #4bd2b0;
  margin-right: 4px;
}
.login-caption {
  font-size: 11px;
  color: #66748a;
  margin: 20px 0 0;
}
.login-caption span {
  padding: 0 6px;
  color: #2bb99b;
}
.collapsed .sidebar {
  width: 72px;
  padding-inline: 12px;
}
.collapsed .brand {
  padding-inline: 6px;
}
.collapsed .brand-name,
.collapsed .workspace-label,
.collapsed .nav-item:not(.active) > span + *,
.collapsed .nav-item:not(.active),
.collapsed .nav-item.active {
  font-size: 0;
}
.collapsed .nav-item {
  justify-content: center;
  padding: 13px 8px;
}
.collapsed .nav-item > span:first-child {
  font-size: 17px;
}
.collapsed .nav-count,
.collapsed .daemon-state span,
.collapsed .signout span {
  display: none;
}
.collapsed .daemon-state {
  justify-content: center;
}
.collapsed .main-area {
  margin-left: 72px;
}
@media (max-width: 1100px) {
  :root {
    --sidebar: 220px;
  }
  .content {
    padding-inline: 24px;
  }
  .topbar {
    padding-inline: 24px;
  }
  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .analytics-grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(240px, 1fr);
  }
}
@media (max-width: 760px) {
  .sidebar {
    transform: translateX(-100%);
    width: 248px !important;
  }
  .mobile-menu .sidebar {
    transform: translateX(0);
    box-shadow: 20px 0 50px #0008;
  }
  .main-area,
  .collapsed .main-area {
    margin-left: 0;
  }
  .collapsed .sidebar {
    transform: translateX(-100%);
  }
  .topbar {
    height: 60px;
    padding: 0 15px;
  }
  .content {
    padding: 23px 15px 38px;
  }
  .breadcrumbs {
    font-size: 10px;
  }
  .top-actions {
    gap: 9px;
  }
  .live-indicator {
    font-size: 0;
  }
  .live-indicator i {
    width: 8px;
    height: 8px;
  }
  .profile > span,
  .profile > b {
    display: none;
  }
  .page-heading {
    align-items: flex-start;
    gap: 12px;
  }
  .page-heading h1 {
    font-size: 22px;
  }
  .page-heading .muted {
    max-width: 230px;
    line-height: 1.5;
  }
  .page-heading > .btn-primary {
    font-size: 9px;
    padding: 10px 9px;
  }
  .stat-grid {
    gap: 9px;
  }
  .stat-card {
    padding: 13px;
    min-height: 112px;
  }
  .stat-title {
    font-size: 9px;
  }
  .stat-value {
    font-size: 23px;
  }
  .analytics-grid {
    grid-template-columns: 1fr;
  }
  .health-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 16px;
  }
  .health-panel > .panel-heading {
    grid-column: 1/-1;
  }
  .health-panel .resource-row:last-child {
    grid-column: 1/-1;
  }
  .channel-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .table-actions {
    width: 100%;
    flex-wrap: wrap;
  }
  .search-input {
    flex: 1;
    min-width: 130px;
  }
  .table-actions .btn-secondary {
    flex: 1;
  }
  .table-footer {
    padding-inline: 12px;
  }
  .channel-panel {
    margin-top: 12px;
  }
  .panel {
    padding: 15px;
  }
  .traffic-panel {
    padding: 15px;
  }
  .table-wrap {
    margin-inline: -15px;
  }
  .notice-demo {
    font-size: 9px;
    line-height: 1.5;
  }
  .login-card {
    padding: 34px 26px 25px;
  }
  .login-card h1 {
    font-size: 22px;
  }
  .turnstile-wrap {
    justify-content: center;
  }
}
@media (max-width: 390px) {
  .stat-grid {
    grid-template-columns: 1fr 1fr;
  }
  .stat-card {
    min-height: 105px;
    padding: 11px;
  }
  .stat-value {
    font-size: 21px;
  }
  .stat-meta {
    font-size: 8px;
  }
  .page-heading > .btn-primary {
    max-width: 100px;
    white-space: normal;
    line-height: 1.3;
  }
  .health-panel {
    grid-template-columns: 1fr;
  }
  .health-panel .resource-row:last-child {
    grid-column: auto;
  }
  .login-card {
    padding-inline: 18px;
  }
  .turnstile-wrap {
    justify-content: center;
  }
  .turnstile-wrap .cf-turnstile {
    transform: scale(0.94);
    transform-origin: center top;
  }
}
@media (max-width: 350px) {
  .turnstile-wrap .cf-turnstile {
    transform: scale(0.86);
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}

/* Dashboard readability and responsive layout refinements. */
.app-page {
  min-height: 100vh;
  overflow-x: hidden;
  font-size: 14px;
  line-height: 1.55;
}
.sidebar {
  width: 250px;
  padding: 24px 14px;
}
.main-area {
  margin-left: 250px;
}
.brand {
  font-size: 16px;
  padding-bottom: 30px;
}
.workspace-label,
.eyebrow {
  font-size: 11px;
}
.nav-item {
  min-height: 44px;
  font-size: 14px;
}
.topbar {
  min-height: 72px;
  padding-inline: clamp(18px, 3vw, 42px);
}
.breadcrumbs {
  font-size: 14px;
}
.profile {
  font-size: 13px;
}
.profile small {
  font-size: 11px;
}
.content {
  width: 100%;
  max-width: 1680px;
  padding: 34px clamp(20px, 3vw, 46px) 58px;
}
.page-heading h1 {
  font-size: 30px;
}
.muted {
  font-size: 14px;
  line-height: 1.55;
}
.btn-primary,
.btn-secondary {
  min-height: 42px;
  padding: 10px 16px;
  font-size: 13px;
}
.stat-title {
  font-size: 13px;
}
.stat-value {
  font-size: 30px;
}
.stat-meta,
.panel-heading p,
.resource-row > small {
  font-size: 12px;
}
.panel-heading h2 {
  font-size: 17px;
}
.traffic-legend,
.resource-label {
  font-size: 13px;
}
.resource-label b {
  font-size: 13px;
}
.search-input,
.table-actions .btn-secondary {
  min-height: 40px;
  font-size: 13px;
}
th {
  font-size: 11px;
}
td {
  font-size: 13px;
}
.channel-name b {
  font-size: 13px;
}
.channel-name small {
  font-size: 11px;
}
.status {
  font-size: 11px;
}
.channel-status-hint {
  display: block;
  max-width: 260px;
  margin-top: 5px;
  overflow: hidden;
  color: #f0bd68;
  font-size: 11px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.row-action {
  width: 34px;
  height: 34px;
  margin-right: 5px;
  border: 1px solid #2c3c54;
  border-radius: 9px;
  font-size: 14px;
  transition:
    color 150ms ease,
    border-color 150ms ease,
    background 150ms ease;
}
.row-action:hover,
.row-action:focus-visible {
  color: #60e1c3;
  border-color: #329a87;
  background: #17343a;
  outline: none;
}
.row-action:disabled {
  cursor: not-allowed;
  color: #586579;
  border-color: #202b3b;
  background: #111b2a;
  opacity: 0.55;
}

.diagnostics-panel {
  margin-top: 18px;
}
.tool-status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
  margin-top: 18px;
}
.tool-status-card {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
  min-width: 0;
  padding: 14px;
  border: 1px solid #2a3a52;
  border-radius: 11px;
  background: #0d1828;
}
.tool-status-indicator {
  width: 8px;
  height: 8px;
  margin-top: 4px;
  border-radius: 50%;
  background: #edbd5d;
  box-shadow: 0 0 10px #edbd5d55;
}
.tool-status-card > div {
  min-width: 0;
}
.tool-status-card b,
.tool-status-card small {
  display: block;
}
.tool-status-card b {
  font-size: 13px;
}
.tool-status-card small {
  margin-top: 5px;
  overflow-wrap: anywhere;
  color: #8494aa;
  font-size: 11px;
  line-height: 1.5;
}
.tool-status-card strong {
  color: #edbd5d;
  font-size: 10px;
  letter-spacing: 0.06em;
}
.tool-status-card.tool-ready .tool-status-indicator {
  background: #50d8a7;
  box-shadow: 0 0 10px #50d8a755;
}
.tool-status-card.tool-ready strong {
  color: #50d8a7;
}
.tool-status-card.tool-failed .tool-status-indicator {
  background: #f07474;
  box-shadow: 0 0 10px #f0747455;
}
.tool-status-card.tool-failed strong {
  color: #f07474;
}
.tool-status-card.tool-disabled .tool-status-indicator {
  background: #748197;
  box-shadow: none;
}
.tool-status-card.tool-disabled strong {
  color: #9caac0;
}
.diagnostic-source-form {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(220px, 1.4fr) minmax(
      130px,
      0.55fr
    ) auto;
  align-items: end;
  gap: 12px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #27364d;
}
.diagnostic-source-form label {
  display: block;
  margin-bottom: 5px;
  font-size: 12px;
  font-weight: 600;
}
.diagnostic-source-form p {
  margin: 0;
  font-size: 11px;
  line-height: 1.5;
}
.diagnostic-source-form input,
.diagnostic-source-form select {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid #2b3c55;
  border-radius: 8px;
  background: #0c1625;
  color: #e4ebf5;
  font: inherit;
}
.diagnostic-source-form input:focus,
.diagnostic-source-form select:focus {
  border-color: #2fc7a7;
  outline: 2px solid #2fc7a733;
}
.diagnostic-source-form button:disabled {
  cursor: wait;
  opacity: 0.65;
}
.diagnostic-result {
  grid-column: 1 / -1;
  min-height: 18px;
  color: #aebbd0;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.diagnostic-result.result-success {
  color: #50d8a7;
}
.diagnostic-result.result-failed {
  color: #f0bd68;
}

@media (max-width: 1100px) {
  .sidebar {
    width: 220px;
  }
  .main-area {
    margin-left: 220px;
  }
}
@media (max-width: 760px) {
  .tool-status-grid {
    grid-template-columns: 1fr;
  }
  .diagnostic-source-form {
    grid-template-columns: 1fr;
  }
  .diagnostic-result {
    grid-column: auto;
  }
  .sidebar {
    width: 250px !important;
  }
  .main-area,
  .collapsed .main-area {
    margin-left: 0;
  }
  .content {
    padding: 24px 16px 40px;
  }
  .page-heading h1 {
    font-size: 25px;
  }
  .stat-title {
    font-size: 12px;
  }
  .panel {
    padding: 16px;
  }
}

.nav-item:focus-visible,
.icon-button:focus-visible,
.btn-primary:focus-visible,
.btn-secondary:focus-visible {
  outline: 2px solid #59dfc0;
  outline-offset: 3px;
}
.daemon-state.offline i {
  background: #f0b24d;
  box-shadow: 0 0 10px #f0b24d;
}
.traffic-legend {
  gap: 26px;
  margin: 18px 0 8px;
}
.traffic-legend i {
  display: inline-block;
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
}
.traffic-chart {
  height: 145px;
  width: 100%;
  overflow: hidden;
}
.traffic-chart svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.traffic-chart line {
  stroke: #26364d;
  stroke-width: 1;
  stroke-dasharray: 4 6;
}
.traffic-line {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.traffic-line-in {
  stroke: #35d0ae;
  filter: drop-shadow(0 0 4px #35d0ae66);
}
.traffic-line-out {
  stroke: #988af5;
  filter: drop-shadow(0 0 4px #988af566);
}
.traffic-caption {
  margin: 2px 0 0;
  color: #8290a7;
  font-size: 11px;
}
.brand-mark-image {
  display: block;
  flex: 0 0 auto;
  object-fit: contain;
}
.sidebar-brand-mark {
  width: 35px;
  height: 35px;
  border-radius: 10px;
}
.login-brand-mark {
  width: 56px;
  height: 56px;
  margin: 0 auto 22px;
  border-radius: 15px;
  filter: drop-shadow(0 8px 20px #18bd9c30);
}
.sidebar-close {
  display: none;
}
.sidebar-backdrop {
  display: none;
}
.modal-close {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  padding: 0 0 3px;
  border: 1px solid #34445a;
  border-radius: 11px;
  color: #b9c6d7;
  background: #172439;
  font-size: 25px;
  line-height: 1;
  transition:
    color 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}
.modal-close:hover,
.modal-close:focus-visible {
  color: #effffb;
  border-color: #3ac9aa;
  background: #1d3640;
  outline: none;
}

@media (max-width: 760px) {
  #appShell.mobile-menu .sidebar {
    transform: translateX(0);
    box-shadow: 20px 0 50px #000a;
  }
  #appShell.mobile-menu .sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 4;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: #030914bd;
    backdrop-filter: blur(4px);
  }
  #appShell.mobile-menu .sidebar-close {
    position: absolute;
    top: 19px;
    right: 14px;
    z-index: 1;
    display: grid;
    width: 36px;
    height: 36px;
    border-color: #2c3d54;
    background: #121f31;
    font-size: 24px;
  }
  #appShell.mobile-menu .brand {
    padding-right: 48px;
  }
  .sidebar-toggle[aria-expanded="true"] {
    color: #48d2b2;
    border-color: #348d7d;
  }
}

/* Keep browser autofill colors consistent with the dark login form. */
.login-card input:-webkit-autofill,
.login-card input:-webkit-autofill:hover,
.login-card input:-webkit-autofill:active {
  -webkit-text-fill-color: #e8eef7 !important;
  -webkit-box-shadow: 0 0 0 1000px #0c1524 inset !important;
  background-color: #0c1524 !important;
  caret-color: #e8eef7;
  transition: background-color 99999s ease-out 0s;
}
.login-card input:-webkit-autofill:focus {
  -webkit-text-fill-color: #e8eef7 !important;
  -webkit-box-shadow:
    0 0 0 1000px #0d1929 inset,
    0 0 0 4px #35d0ae1a !important;
  background-color: #0d1929 !important;
}
.login-card input:-moz-autofill {
  box-shadow: 0 0 0 1000px #0c1524 inset !important;
  color: #e8eef7;
  caret-color: #e8eef7;
}
.health-ok.health-warning {
  color: #f0c66d;
  background: #3a3021;
}
