:root {
  --pku-red: #990000;
  --pku-red-light: #bd1b2a;
  --ops-blue: #1685e8;
  --ops-cyan: #17c6df;
  --ops-green: #28c76f;
  --ops-dark: #303741;
  --ops-dark-2: #252c35;
}

body {
  background:
    linear-gradient(90deg, rgba(15, 23, 42, .045) 1px, transparent 1px),
    linear-gradient(rgba(15, 23, 42, .035) 1px, transparent 1px),
    #eef2f6;
  background-size: 26px 26px;
  font-family: "Microsoft YaHei", "Source Sans Pro", Arial, sans-serif;
}

.main-sidebar {
  background: linear-gradient(180deg, #313943, #252c35);
}

.brand-link {
  min-height: 56px;
}

.brand-link .brand-image {
  background: rgba(255, 255, 255, .12);
}

.nav-sidebar .nav-link {
  border-radius: 4px;
}

.nav-sidebar > .nav-item > .nav-link.active {
  background-color: var(--ops-blue);
}

.main-header {
  min-height: 58px;
  border-bottom: 1px solid #dfe5ed;
}

.pku-navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
}

.pku-navbar-brand img {
  height: 36px;
  width: auto;
  object-fit: contain;
}

.pku-navbar-brand .math-logo {
  height: 31px;
  max-width: 300px;
}

.pku-navbar-brand span {
  padding-left: 12px;
  border-left: 1px solid rgba(153, 0, 0, .25);
  color: var(--pku-red);
  font-weight: 700;
  white-space: nowrap;
}

.admin-user {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: 8px;
  border: 1px solid #e0e6ee;
  border-radius: 4px;
  background: #f8fafc;
}

.content-wrapper {
  background: transparent;
}

.content-header h1 {
  font-size: 22px;
  font-weight: 700;
}

.pku-alert-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
  color: #fff;
  border-radius: 4px;
  background:
    linear-gradient(90deg, rgba(153, 0, 0, .9), rgba(17, 48, 76, .95) 44%, rgba(11, 33, 54, .98)),
    repeating-linear-gradient(90deg, rgba(255,255,255,.08) 0 1px, transparent 1px 60px);
  box-shadow: 0 8px 24px rgba(15, 33, 56, .18);
}

.pku-alert-band h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.pku-alert-band p {
  margin: 8px 0 0;
  max-width: 920px;
  color: rgba(255, 255, 255, .82);
  font-size: 13px;
  line-height: 1.65;
}

.emergency-flow {
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.emergency-flow span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 3px;
  background: rgba(255, 255, 255, .1);
  font-size: 12px;
}

.emergency-flow b {
  color: rgba(255, 255, 255, .55);
}

.small-box {
  border-radius: 4px;
  box-shadow: 0 3px 8px rgba(38, 50, 56, .18);
}

.small-box .inner {
  min-height: 106px;
}

.small-box h3 {
  font-size: 40px;
  font-weight: 700;
}

.small-box p {
  margin-bottom: 8px;
}

.small-box .progress {
  height: 8px;
  margin: 0 18px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .36);
}

.small-box .progress-bar {
  background-color: #f42b88;
}

.small-box .small-box-footer {
  display: flex;
  justify-content: space-between;
  padding: 6px 18px;
  text-align: left;
}

.bg-ops-green { background: linear-gradient(135deg, #05b985, #78c850) !important; color: #fff; }
.bg-ops-cyan { background: linear-gradient(135deg, #14cddd, #168eea) !important; color: #fff; }
.bg-ops-blue { background: linear-gradient(135deg, #08d7c9, #008ee6) !important; color: #fff; }
.bg-ops-red { background: linear-gradient(135deg, #ff758c, #ff7f50) !important; color: #fff; }
.bg-ops-pink { background: linear-gradient(135deg, #f15bb5, #a855f7) !important; color: #fff; }

.ops-status-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 4px 0 14px;
  color: #536170;
  font-size: 14px;
  line-height: 1.7;
}

.ops-status-line b {
  color: #1677c8;
}

.ops-status-line .danger {
  color: #d92345;
}

.ops-metric-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-bottom: 18px;
  overflow: hidden;
  border: 1px solid #e0e6ee;
  border-radius: 4px;
  background: rgba(255, 255, 255, .55);
}

.ops-metric {
  min-height: 105px;
  padding: 13px 10px;
  text-align: center;
  border-right: 1px solid #e0e6ee;
}

.ops-metric:last-child {
  border-right: 0;
}

.ops-metric strong,
.ops-metric span,
.ops-metric em {
  display: block;
  font-style: normal;
  font-weight: 700;
}

.ops-metric strong { color: #d92345; }
.ops-metric span { color: #e1ac00; }
.ops-metric em { color: #08a66d; }
.ops-metric label {
  display: block;
  margin-top: 8px;
  color: #5c6876;
  font-size: 13px;
  font-weight: 400 !important;
}

.card {
  border-radius: 4px;
  border: 1px solid #dde3ec;
  box-shadow: 0 1px 4px rgba(36, 50, 67, .08);
}

.resource-total {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 96px;
  margin-bottom: 14px;
  padding: 16px 18px;
  color: #fff;
  border-radius: 4px;
  background: linear-gradient(135deg, #34d4b0, #22b8aa);
  box-shadow: 0 2px 7px rgba(29, 128, 133, .25);
}

.resource-total i {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 4px;
  background: rgba(255, 255, 255, .14);
  font-size: 24px;
}

.resource-total span {
  display: block;
  color: rgba(255,255,255,.82);
  font-size: 14px;
}

.resource-total strong {
  display: block;
  margin-top: 5px;
  font-size: 17px;
}

.solution-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.solution-card {
  min-height: 184px;
  padding: 16px;
  border: 1px solid var(--ui-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, .88);
  box-shadow: var(--ui-shadow);
}

.solution-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.solution-card-head i {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #fff;
  border-radius: 10px;
  background: linear-gradient(135deg, #409eff, #36cfc9);
  font-size: 17px;
}

.solution-card h3 {
  margin: 0;
  color: var(--ui-text);
  font-size: 15px;
  font-weight: 700;
}

.solution-card p {
  min-height: 62px;
  margin: 0 0 10px;
  color: var(--ui-muted);
  font-size: 13px;
  line-height: 1.6;
}

.solution-card ul {
  margin: 0;
  padding-left: 18px;
  color: #4b5563;
  font-size: 12px;
  line-height: 1.75;
}

.solution-plan-card .card-body {
  padding: 16px;
}

.solution-plan-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.solution-plan-list section {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  min-height: 104px;
  padding: 14px;
  border: 1px solid var(--ui-line);
  border-radius: 10px;
  background: #fbfdff;
}

.solution-plan-list b {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: #fff;
  border-radius: 8px;
  background: #409eff;
  font-size: 13px;
}

.solution-plan-list h4 {
  margin: 0 0 7px;
  color: var(--ui-text);
  font-size: 14px;
  font-weight: 700;
}

.solution-plan-list p {
  margin: 0;
  color: var(--ui-muted);
  font-size: 13px;
  line-height: 1.65;
}

.chart-row {
  min-height: 290px;
  align-items: center;
}

.host-card {
  color: #edf3fa;
  background: #303741;
  border-color: #3e4652;
}

.host-card .card-header {
  color: #fff;
  border-color: #3e4652;
  background: #333b46;
}

.host-card .card-body {
  padding: 16px 18px 18px;
}

.host-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.host-search {
  display: flex;
  gap: 8px;
}

.host-search select,
.host-search input {
  width: 150px;
  color: #dce5ee;
  border-color: #49525d;
  background: #2d343e;
}

.host-table {
  min-width: 1120px;
  color: #f1f5fa;
  font-size: 13px;
}

.host-table th,
.host-table td {
  border-color: #48505b !important;
  white-space: nowrap;
  vertical-align: middle;
}

.host-table thead th {
  color: #fff;
  background: #343c47;
}

.host-table tbody tr:nth-child(even) td {
  background: #353d48;
}

.host-table tbody tr:hover td {
  background: #3d4652;
}

.host-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
}

.module-table th {
  color: #344050;
  background: #f5f7fb;
  white-space: nowrap;
}

.module-table td {
  vertical-align: middle;
}

.module-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.module-flow span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  color: #fff;
  border-radius: 3px;
  background: #1685e8;
}

.module-flow i {
  color: #8da0b4;
}

.big-screen {
  min-height: 920px;
  padding: 12px 14px 18px;
  color: #dbeafe;
  border: 1px solid rgba(63, 166, 255, .34);
  border-radius: 2px;
  background:
    radial-gradient(circle at 50% 24%, rgba(32, 108, 223, .28), transparent 34%),
    linear-gradient(180deg, rgba(12, 32, 71, .98), rgba(24, 31, 42, .99) 42%, rgba(30, 35, 43, 1)),
    linear-gradient(90deg, rgba(65, 152, 255, .12) 1px, transparent 1px),
    linear-gradient(rgba(65, 152, 255, .08) 1px, transparent 1px);
  background-size: auto, auto, 30px 30px, 30px 30px;
  box-shadow: 0 18px 42px rgba(9, 21, 39, .32);
}

.screen-topbar {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 42px;
  padding: 0 10px 8px;
  border-bottom: 1px solid rgba(91, 156, 230, .32);
}

.screen-brand {
  padding: 5px 12px;
  color: #fff;
  border: 1px solid rgba(38, 226, 255, .5);
  border-radius: 2px;
  background: rgba(45, 140, 255, .18);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
}

.screen-title {
  flex: 1;
  text-align: center;
}

.screen-title strong {
  display: block;
  color: #fff;
  font-size: 17px;
}

.screen-title span {
  display: block;
  margin-top: 3px;
  color: #8fc8ff;
  font-size: 11px;
}

.screen-clock {
  min-width: 128px;
  color: #dbeafe;
  text-align: right;
  font-size: 12px;
}

.screen-filterbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 11px 0 8px;
}

.screen-filterbar button,
.screen-filterbar input {
  height: 26px;
  border: 1px solid rgba(69, 151, 255, .55);
  border-radius: 2px;
  color: #dbeafe;
  background: rgba(17, 42, 92, .76);
  font-size: 11px;
}

.screen-filterbar button {
  min-width: 76px;
  padding: 0 10px;
}

.screen-filterbar button.active,
.screen-filterbar button.query {
  background: #2d8cff;
  color: #fff;
}

.screen-filterbar button.danger {
  border-color: rgba(255, 75, 123, .7);
  background: #d92345;
}

.screen-filterbar label {
  margin: 0;
  color: #9eb4cd;
  font-size: 11px;
  font-weight: 400 !important;
}

.screen-filterbar input {
  width: 132px;
  margin-left: 5px;
  padding: 0 7px;
}

.big-screen-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin: 6px 0 12px;
}

.screen-tile {
  min-height: 76px;
  padding: 10px 12px;
  border: 1px solid rgba(38, 226, 255, .32);
  border-radius: 2px;
  background:
    linear-gradient(135deg, rgba(36, 54, 92, .82), rgba(20, 64, 111, .62)),
    linear-gradient(90deg, rgba(38, 226, 255, .22), transparent);
  box-shadow: inset 0 0 20px rgba(45, 140, 255, .1);
}

.screen-tile span,
.screen-tile em {
  display: block;
  overflow: hidden;
  color: #b8d4f2;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.screen-tile span {
  font-size: 12px;
}

.screen-tile em {
  font-size: 11px;
}

.screen-tile strong {
  display: block;
  margin: 4px 0;
  color: #fff;
  font-size: 27px;
  line-height: 1;
}

.screen-chart-stack {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.screen-chart-panel {
  min-height: 220px;
  padding: 8px 10px 10px;
  border: 1px solid rgba(91, 156, 230, .24);
  border-radius: 2px;
  background: rgba(31, 38, 48, .84);
}

.screen-chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 28px;
  color: #dbeafe;
  font-size: 11px;
}

.screen-chart-head h3 {
  margin: 0;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.screen-chart-head div {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.screen-chart-head span {
  color: #9ee7ff;
}

.screen-chart-body {
  height: 176px;
}

.screen-chart-body canvas,
.screen-overview-grid canvas {
  width: 100% !important;
}

.screen-overview-grid {
  display: grid;
  grid-template-columns: 1.2fr 1.15fr .9fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.screen-overview-grid section {
  min-height: 214px;
  padding: 12px;
  border: 1px solid rgba(38, 226, 255, .32);
  border-radius: 2px;
  background:
    linear-gradient(180deg, rgba(13, 43, 104, .8), rgba(17, 31, 71, .88)),
    linear-gradient(90deg, rgba(38, 226, 255, .14), transparent);
}

.screen-overview-grid h3 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.screen-overview-grid canvas {
  height: 150px !important;
}

.screen-kpi-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 8px;
}

.screen-kpi-row b {
  display: block;
  padding: 6px 4px;
  color: #ffe45c;
  border: 1px solid rgba(38, 226, 255, .22);
  text-align: center;
  background: rgba(3, 16, 32, .45);
  font-size: 20px;
}

.screen-rank-list p {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) 36px;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  color: #dbeafe;
  font-size: 12px;
}

.screen-rank-list i {
  display: block;
  height: 9px;
  border-radius: 99px;
  background: linear-gradient(90deg, #26e2ff, #ff5a94);
}

.screen-rank-list b {
  color: #ffe45c;
  text-align: right;
}

.screen-alert-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.screen-alert-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 35px;
  color: #dbeafe;
  border-bottom: 1px solid rgba(142, 174, 214, .18);
  font-size: 12px;
}

.screen-alert-list b {
  display: inline-flex;
  justify-content: center;
  min-width: 38px;
  padding: 2px 5px;
  color: #fff;
  border-radius: 2px;
  background: #d92345;
  font-size: 11px;
}

.topology-map {
  min-height: 430px;
  padding: 10px;
  border-radius: 4px;
  background:
    linear-gradient(90deg, rgba(15, 23, 42, .045) 1px, transparent 1px),
    linear-gradient(rgba(15, 23, 42, .035) 1px, transparent 1px),
    #f8fafc;
  background-size: 24px 24px;
}

.topology-map svg {
  width: 100%;
  min-height: 420px;
}

.badge {
  border-radius: 3px;
}

.badge-ip-ok { background-color: #28a745; }
.badge-ip-risk { background-color: #dc3545; }
.badge-blue { background-color: #1685e8; }
.badge-teal { background-color: #20c997; }

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

  .ops-metric-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ops-metric:nth-child(3) {
    border-right: 0;
  }

  .ops-metric:nth-child(-n + 3) {
    border-bottom: 1px solid #e0e6ee;
  }

  .pku-alert-band {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .solution-grid,
  .solution-plan-list {
    grid-template-columns: 1fr;
  }

  .pku-navbar-brand .math-logo,
  .pku-navbar-brand span {
    display: none;
  }

  .ops-metric-strip {
    grid-template-columns: 1fr;
  }

  .ops-metric {
    border-right: 0;
    border-bottom: 1px solid #e0e6ee;
  }

  .host-toolbar,
  .host-search,
  .emergency-flow {
    flex-direction: column;
    align-items: stretch;
  }

  .host-toolbar .btn-group {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .host-toolbar .btn-group .btn {
    border-radius: 3px !important;
  }

  .host-search select,
  .host-search input {
    width: 100%;
  }

  .big-screen-grid,
  .screen-overview-grid {
    grid-template-columns: 1fr;
  }

  .screen-topbar {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* aiproject-inspired light admin refresh */
:root {
  --ui-bg: #f5f7fb;
  --ui-bg-soft: #f8fbff;
  --ui-card: #ffffff;
  --ui-text: #303133;
  --ui-muted: #606266;
  --ui-subtle: #909399;
  --ui-line: #ebeef5;
  --ui-primary: #409eff;
  --ui-success: #67c23a;
  --ui-warning: #e6a23c;
  --ui-danger: #f56c6c;
  --ui-cyan: #36cfc9;
  --ui-shadow: 0 6px 22px rgba(31, 45, 61, .08);
  --ui-shadow-hover: 0 12px 34px rgba(31, 45, 61, .13);
}

body {
  background:
    radial-gradient(circle at 8% 0%, rgba(64, 158, 255, .12), transparent 30%),
    radial-gradient(circle at 92% 10%, rgba(103, 194, 58, .10), transparent 28%),
    linear-gradient(135deg, #f7fbff 0%, #f4f7fb 48%, #fff7fa 100%);
  color: var(--ui-text);
}

.main-header.navbar {
  min-height: 64px;
  border-bottom: 1px solid rgba(235, 238, 245, .92);
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 2px 20px rgba(31, 45, 61, .08);
  backdrop-filter: blur(10px);
}

.main-header .nav-link {
  color: #6b7280;
  border-radius: 8px;
}

.main-header .nav-link:hover {
  color: var(--ui-primary);
  background: #eef6ff;
}

.pku-navbar-brand span {
  color: var(--pku-red);
  font-size: 16px;
}

.admin-user {
  height: 36px;
  padding: 0 12px;
  border-color: #dcdfe6;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(31, 45, 61, .05);
}

.main-sidebar {
  background: #fff !important;
  box-shadow: 2px 0 12px rgba(31, 45, 61, .08) !important;
}

.sidebar-dark-primary .brand-link {
  min-height: 66px;
  color: var(--ui-text);
  border-bottom: 1px solid var(--ui-line);
  background: #fff;
}

.brand-link .brand-image {
  background: #fff;
  box-shadow: 0 2px 8px rgba(153, 0, 0, .16);
}

.brand-link .brand-text {
  color: var(--pku-red);
  font-weight: 700 !important;
}

.sidebar {
  padding-top: 18px;
}

.nav-sidebar .nav-header {
  padding: 16px 18px 8px;
  color: var(--ui-subtle);
  font-size: 12px;
  letter-spacing: 0;
}

.sidebar-dark-primary .nav-sidebar > .nav-item > .nav-link,
.sidebar-dark-primary .nav-treeview > .nav-item > .nav-link {
  min-height: 42px;
  margin: 6px 14px;
  color: #4b5563;
  border-radius: 8px;
  transition: all .24s ease;
}

.sidebar-dark-primary .nav-sidebar > .nav-item > .nav-link:hover,
.sidebar-dark-primary .nav-treeview > .nav-item > .nav-link:hover {
  color: var(--ui-primary);
  background: #eef6ff;
}

.sidebar-dark-primary .nav-sidebar > .nav-item > .nav-link.active,
.sidebar-dark-primary .nav-treeview > .nav-item > .nav-link.active {
  color: #fff;
  background: linear-gradient(135deg, #409eff, #66b1ff);
  box-shadow: 0 10px 22px rgba(64, 158, 255, .24);
}

.nav-sidebar .nav-icon {
  color: inherit;
}

.content-wrapper {
  background: transparent;
}

.content-header {
  padding: 22px 24px 12px;
}

.content-header h1 {
  color: var(--ui-text) !important;
  font-size: 24px;
  font-weight: 700;
}

.content-header p,
.breadcrumb {
  color: var(--ui-muted) !important;
}

.content {
  padding: 0 24px 28px;
}

.pku-alert-band {
  border: 1px solid rgba(64, 158, 255, .12);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(153, 0, 0, .92), rgba(64, 158, 255, .88) 58%, rgba(54, 207, 201, .82)),
    linear-gradient(90deg, rgba(255,255,255,.16), transparent);
  box-shadow: var(--ui-shadow);
}

.pku-alert-band h2 {
  font-size: 18px;
}

.emergency-flow span {
  min-height: 34px;
  border-color: rgba(255, 255, 255, .26);
  border-radius: 8px;
  background: rgba(255, 255, 255, .14);
}

.small-box {
  border-radius: 14px;
  box-shadow: var(--ui-shadow);
  transition: transform .24s ease, box-shadow .24s ease;
}

.small-box:hover {
  transform: translateY(-4px);
  box-shadow: var(--ui-shadow-hover);
}

.small-box h3 {
  font-size: 38px;
}

.small-box .small-box-footer {
  border-radius: 0 0 14px 14px;
}

.bg-ops-green { background: linear-gradient(135deg, #67c23a, #95d475) !important; }
.bg-ops-cyan { background: linear-gradient(135deg, #36cfc9, #409eff) !important; }
.bg-ops-blue { background: linear-gradient(135deg, #409eff, #66b1ff) !important; }
.bg-ops-red { background: linear-gradient(135deg, #f56c6c, #f3a683) !important; }
.bg-ops-pink { background: linear-gradient(135deg, #ec5ead, #8b7cf6) !important; }

.ops-status-line {
  padding: 10px 14px;
  border: 1px solid var(--ui-line);
  border-radius: 10px;
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 2px 10px rgba(31, 45, 61, .04);
}

.ops-status-line b {
  color: var(--ui-primary);
}

.ops-status-line .danger {
  color: var(--ui-danger);
}

.ops-metric-strip {
  border-color: var(--ui-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, .84);
  box-shadow: var(--ui-shadow);
}

.ops-metric {
  border-right-color: var(--ui-line);
}

.ops-metric strong { color: var(--ui-danger); }
.ops-metric span { color: var(--ui-warning); }
.ops-metric em { color: var(--ui-success); }
.ops-metric label { color: var(--ui-muted); }

.card {
  border: 1px solid var(--ui-line);
  border-radius: 12px;
  background: var(--ui-card);
  box-shadow: var(--ui-shadow);
  overflow: hidden;
}

.card-header {
  min-height: 52px;
  border-bottom-color: var(--ui-line);
  background: #fff;
}

.card-title {
  color: var(--ui-text);
  font-weight: 700;
}

.card-tools {
  color: var(--ui-muted);
}

.resource-total {
  border-radius: 12px;
  background: linear-gradient(135deg, #36cfc9, #67c23a);
  box-shadow: var(--ui-shadow);
  transition: transform .24s ease, box-shadow .24s ease;
}

.resource-total:hover {
  transform: translateY(-3px);
  box-shadow: var(--ui-shadow-hover);
}

.info-box {
  min-height: 92px;
  border: 1px solid var(--ui-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--ui-shadow);
  overflow: hidden;
}

.info-box-icon {
  width: 74px;
  border-radius: 0;
}

.info-box-text {
  color: var(--ui-muted);
}

.info-box-number {
  color: var(--ui-text);
  font-size: 22px;
}

.btn {
  border-radius: 8px;
  box-shadow: none !important;
}

.btn-primary {
  border-color: #409eff;
  background: #409eff;
}

.btn-success {
  border-color: #67c23a;
  background: #67c23a;
}

.btn-danger {
  border-color: #f56c6c;
  background: #f56c6c;
}

.btn-warning {
  border-color: #e6a23c;
  background: #e6a23c;
}

.btn-light,
.btn-secondary {
  color: #606266;
  border-color: #dcdfe6;
  background: #fff;
}

.badge {
  min-height: 20px;
  padding: 4px 7px;
  border-radius: 6px;
  font-weight: 600;
}

.badge-blue,
.badge-primary {
  background: var(--ui-primary);
}

.badge-teal {
  background: var(--ui-cyan);
}

.badge-success,
.badge-ip-ok {
  background: var(--ui-success);
}

.badge-warning {
  color: #fff;
  background: var(--ui-warning);
}

.badge-danger,
.badge-ip-risk {
  background: var(--ui-danger);
}

.host-card {
  color: var(--ui-text);
  background: #fff;
  border-color: var(--ui-line);
}

.host-card .card-header {
  color: var(--ui-text);
  border-color: var(--ui-line);
  background: #fff;
}

.host-card .card-body {
  background: #fff;
}

.host-toolbar {
  align-items: center;
}

.host-search select,
.host-search input {
  color: var(--ui-text);
  border-color: #dcdfe6;
  border-radius: 8px;
  background: #fff;
}

.host-table {
  color: var(--ui-text);
}

.host-table th,
.host-table td {
  border-color: var(--ui-line) !important;
}

.host-table thead th {
  color: var(--ui-text);
  background: #f5f7fa;
}

.host-table tbody tr:nth-child(even) td {
  background: #fbfcff;
}

.host-table tbody tr:hover td {
  background: #f0f7ff;
}

.host-pagination {
  color: var(--ui-muted);
}

.module-table th {
  color: var(--ui-text);
  background: #f5f7fa;
}

.module-table td {
  color: var(--ui-text);
}

.module-flow span {
  border-radius: 8px;
  background: #409eff;
}

.topology-map {
  border: 1px solid var(--ui-line);
  border-radius: 12px;
  background:
    radial-gradient(circle at 0% 0%, rgba(64, 158, 255, .12), transparent 28%),
    linear-gradient(90deg, rgba(64, 158, 255, .05) 1px, transparent 1px),
    linear-gradient(rgba(64, 158, 255, .04) 1px, transparent 1px),
    #fbfdff;
  background-size: auto, 24px 24px, 24px 24px, auto;
}

.topology-map {
  min-height: 640px;
  overflow-x: auto;
}

.topology-map svg {
  min-width: 1080px;
  min-height: 640px;
}

.topology-zone rect {
  fill: rgba(255, 255, 255, .68);
  stroke: rgba(148, 163, 184, .42);
  stroke-width: 1;
}

.topology-zone .zone-title {
  fill: #334155;
  font-size: 15px;
  font-weight: 800;
}

.topology-zone .zone-subtitle {
  fill: #64748b;
  font-size: 12px;
}

.topology-edge path {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.topology-edge path.main {
  stroke: #64748b;
}

.topology-edge path.backup {
  stroke: #94a3b8;
  stroke-dasharray: 8 7;
}

.topology-edge path.muted {
  stroke: #cbd5e1;
  stroke-dasharray: 4 5;
}

.topology-edge path.green {
  stroke: #16a34a;
}

.topology-edge rect {
  fill: rgba(255, 255, 255, .92);
  stroke: rgba(203, 213, 225, .9);
}

.topology-edge text {
  fill: #475569;
  font-size: 10px;
  font-weight: 700;
  text-anchor: middle;
}

.topology-device rect {
  stroke: rgba(255, 255, 255, .74);
  stroke-width: 1.5;
}

.topology-device .device-title,
.topology-device .device-subtitle {
  fill: #fff;
  text-anchor: middle;
}

.topology-device .device-title {
  font-size: 14px;
  font-weight: 800;
}

.topology-device .device-subtitle {
  font-size: 11px;
  opacity: .86;
}

.topology-rack rect:first-child {
  fill: #fff;
  stroke: rgba(203, 213, 225, .94);
  stroke-width: 1;
}

.topology-rack .rack-title {
  fill: #1f2937;
  font-size: 14px;
  font-weight: 800;
}

.topology-rack .rack-row {
  fill: #64748b;
  font-size: 11px;
}

.topology-device circle,
.topology-rack circle,
.topology-legend circle {
  stroke: #fff;
  stroke-width: 2;
}

.topology-device circle.ok,
.topology-rack circle.ok,
.topology-legend .ok {
  fill: #22c55e;
}

.topology-device circle.warn,
.topology-rack circle.warn,
.topology-legend .warn {
  fill: #f59e0b;
}

.topology-legend rect {
  fill: rgba(255, 255, 255, .92);
  stroke: rgba(203, 213, 225, .9);
}

.topology-legend text {
  fill: #475569;
  font-size: 11px;
  font-weight: 700;
}

.topology-legend line {
  stroke-width: 3;
  stroke-linecap: round;
}

.topology-legend line.main {
  stroke: #64748b;
}

.topology-legend line.backup {
  stroke: #94a3b8;
  stroke-dasharray: 8 7;
}

.topology-legend line.green {
  stroke: #16a34a;
}

.topology-physical-map {
  padding: 26px 24px 36px;
  background:
    linear-gradient(90deg, rgba(30, 64, 175, .045) 1px, transparent 1px),
    linear-gradient(rgba(30, 64, 175, .035) 1px, transparent 1px),
    #fff;
  background-size: 28px 28px;
}

.topology-physical-map svg {
  display: block;
  width: 1080px;
  max-width: 100%;
  height: auto;
  min-width: 0;
  min-height: 0;
  margin: 0 auto;
}

.topology-physical-map text,
.topology-physical-map .physical-title-box,
.topology-physical-map .physical-note {
  display: none;
}

.physical-title-box {
  fill: #dbeafe;
  stroke: #94a3b8;
  stroke-width: 1.5;
}

.physical-title {
  fill: #111827;
  font-size: 22px;
  font-weight: 800;
  text-anchor: middle;
}

.physical-cable {
  stroke: #1f4e79;
  stroke-width: 4;
  stroke-linecap: round;
  opacity: .9;
}

.physical-link-label {
  fill: #334155;
  font-size: 12px;
  font-weight: 700;
  text-anchor: middle;
  paint-order: stroke;
  stroke: #fff;
  stroke-width: 4px;
  stroke-linejoin: round;
}

.physical-lightning {
  fill: none;
  stroke: #f5c542;
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.physical-cloud ellipse,
.physical-cloud circle {
  fill: #dbeafe;
  stroke: #bfdbfe;
  stroke-width: 2;
}

.physical-cloud text {
  fill: #111827;
  font-size: 24px;
  font-weight: 700;
  text-anchor: middle;
}

.physical-router path:first-child,
.physical-switch path:first-child {
  fill: url(#device-top);
  stroke: #111827;
  stroke-width: .6;
}

.physical-switch path:first-child {
  fill: url(#switch-top);
}

.physical-router .device-side,
.physical-switch .device-side {
  fill: #1f2937;
  opacity: .92;
}

.physical-router rect,
.physical-switch rect {
  fill: #fbbf24;
  stroke: rgba(15, 23, 42, .45);
  stroke-width: .5;
}

.physical-switch.warn path:first-child {
  fill: #6b4f2a;
}

.physical-switch.core path:first-child {
  fill: #26374f;
}

.physical-firewall rect {
  fill: #b91c1c;
  stroke: #7f1d1d;
  stroke-width: 1;
}

.physical-firewall path {
  fill: none;
  stroke: #fee2e2;
  stroke-width: 3;
  stroke-linecap: square;
  stroke-linejoin: round;
}

.physical-server rect:first-child {
  fill: #e5e7eb;
  stroke: #64748b;
  stroke-width: 1.2;
}

.physical-server rect:not(:first-child) {
  fill: #94a3b8;
}

.physical-server circle {
  fill: #22c55e;
}

.physical-pc path:first-child {
  fill: url(#pc-screen);
  stroke: #60a5fa;
  stroke-width: 1.2;
}

.physical-pc rect {
  fill: #cbd5e1;
  stroke: #94a3b8;
}

.physical-pc path:nth-of-type(2) {
  fill: #e5e7eb;
  stroke: #94a3b8;
}

.physical-device-title {
  fill: #111827;
  font-size: 13px;
  font-weight: 800;
  text-anchor: middle;
  paint-order: stroke;
  stroke: #fff;
  stroke-width: 4px;
  stroke-linejoin: round;
}

.physical-device-subtitle {
  fill: #475569;
  font-size: 11px;
  font-weight: 700;
  text-anchor: middle;
  paint-order: stroke;
  stroke: #fff;
  stroke-width: 4px;
  stroke-linejoin: round;
}

.physical-note rect {
  fill: rgba(255, 255, 255, .9);
  stroke: #cbd5e1;
  stroke-width: 1.2;
}

.physical-note text:first-of-type {
  fill: #111827;
  font-size: 14px;
  font-weight: 800;
}

.physical-note text:not(:first-of-type) {
  fill: #475569;
  font-size: 12px;
  font-weight: 700;
}

.main-footer {
  color: var(--ui-muted);
  border-top: 1px solid var(--ui-line);
  background: rgba(255, 255, 255, .92);
}

@media (max-width: 768px) {
  .content-header,
  .content {
    padding-left: 14px;
    padding-right: 14px;
  }

  .small-box {
    border-radius: 12px;
  }
}

.dynamic-screen-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding: 10px 12px;
  border: 1px solid rgba(38, 226, 255, .24);
  border-radius: 8px;
  background: rgba(9, 20, 48, .92);
  box-shadow: 0 10px 24px rgba(15, 23, 42, .18);
}

.dynamic-screen-toolbar a,
.dynamic-screen-toolbar span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 0 12px;
  color: #dbeafe;
  border: 1px solid rgba(64, 158, 255, .38);
  border-radius: 4px;
  background: rgba(45, 140, 255, .18);
  font-size: 12px;
}

.dynamic-screen-toolbar span {
  margin-left: auto;
  color: #8ff3ff;
  background: rgba(38, 226, 255, .08);
}

.screen-template {
  position: relative;
  min-height: 760px;
  margin-bottom: 30px;
  padding: 18px;
  color: #dbeafe;
  border: 1px solid rgba(38, 226, 255, .46);
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 20px 48px rgba(8, 16, 38, .3);
}

.screen-template::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(38, 226, 255, .1) 1px, transparent 1px),
    linear-gradient(rgba(38, 226, 255, .07) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.8), transparent 70%);
}

.screen-template > * {
  position: relative;
  z-index: 1;
}

.screen-template canvas {
  width: 100% !important;
  height: 100% !important;
}

.screen-template h3 {
  margin: 0 0 10px;
  color: #f8fbff;
  font-size: 13px;
  font-weight: 700;
}

.screen-template-stars {
  background:
    radial-gradient(circle at 20% 10%, rgba(96, 165, 250, .28), transparent 24%),
    radial-gradient(circle at 80% 82%, rgba(38, 226, 255, .24), transparent 28%),
    linear-gradient(135deg, #092a9a, #07105e 46%, #08184c);
}

.template-crown,
.template-titlebar,
.platform-header {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  color: #8ff3ff;
  font-weight: 800;
  font-size: 18px;
  text-align: center;
}

.template-titlebar {
  justify-content: space-between;
  color: #fff;
}

.template-titlebar span {
  color: #b8d4f2;
  font-size: 12px;
  font-weight: 400;
}

.template-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 12px 0 14px;
}

.template-metrics div,
.template-stars-grid section,
.template-core-grid section,
.platform-grid section {
  border: 1px solid rgba(38, 226, 255, .42);
  background: rgba(8, 38, 100, .52);
  box-shadow: inset 0 0 22px rgba(38, 226, 255, .11);
}

.template-metrics div {
  min-height: 86px;
  padding: 12px 14px;
}

.template-metrics span,
.template-metrics em {
  display: block;
  color: #b8d4f2;
  font-size: 12px;
  font-style: normal;
}

.template-metrics b {
  display: block;
  margin: 4px 0;
  color: #2ef2ff;
  font-size: 26px;
}

.template-stars-grid {
  display: grid;
  grid-template-columns: 1.1fr .75fr .7fr;
  grid-auto-rows: 190px;
  gap: 14px;
}

.template-stars-grid section,
.template-core-grid section,
.platform-grid section {
  padding: 12px;
  min-width: 0;
}

.template-stars-grid section,
.template-core-grid section:not(.core-center) {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.template-stars-grid h3,
.template-core-grid h3 {
  flex: 0 0 auto;
  min-height: 20px;
  margin-bottom: 8px;
}

.template-stars-grid canvas,
.template-core-grid section:not(.core-center) canvas {
  flex: 1 1 auto;
  min-height: 0;
  height: calc(100% - 28px) !important;
  max-height: calc(100% - 28px);
}

.template-stars-grid .span-2 {
  grid-column: span 2;
}

.template-stars-grid .row-2 {
  grid-row: span 2;
}

.template-stars-grid .row-2 canvas {
  height: 334px !important;
  max-height: 334px;
}

.template-progress-list p,
.core-bars p {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  color: #dbeafe;
  font-size: 11px;
}

.template-progress-list i,
.core-bars i {
  display: block;
  height: 11px;
  border-radius: 999px;
  background: linear-gradient(90deg, #26e2ff, #ff5a94);
  transition: width .5s ease;
}

.template-progress-list b,
.core-bars b {
  color: #dbeafe;
  text-align: right;
  font-size: 11px;
}

.template-number-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px 10px;
  align-content: center;
  flex: 1 1 auto;
  min-height: 0;
  text-align: center;
}

.template-number-grid b {
  display: block;
  color: #2ef2ff;
  font-size: 24px;
}

.template-number-grid span,
.template-log-list {
  color: #dbeafe;
  font-size: 12px;
}

.template-log-list {
  margin: 0;
  padding: 0;
  list-style: none;
  overflow: hidden;
}

.template-log-list li {
  min-height: 28px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(142, 174, 214, .22);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.screen-template-core {
  background:
    radial-gradient(circle at 50% 54%, rgba(45, 140, 255, .34), transparent 30%),
    linear-gradient(135deg, #060b3d, #071762 50%, #060b3d);
}

.template-core-grid {
  display: grid;
  grid-template-columns: .9fr 1.25fr .9fr;
  grid-template-rows: repeat(3, 188px);
  gap: 14px;
}

.template-core-grid .core-center {
  grid-row: span 3;
  padding: 20px 18px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 52%, rgba(45, 140, 255, .34), transparent 34%),
    rgba(5, 29, 90, .62);
}

.core-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 12px;
  margin: 0 0 24px;
  text-align: center;
}

.core-kpis b {
  color: #ffe45c;
  font-size: 38px;
  line-height: 1;
}

.core-kpis span {
  color: #b8d4f2;
  font-size: 12px;
}

.core-bars p {
  grid-template-columns: 84px minmax(0, 1fr) 44px;
  margin-bottom: 10px;
}

.screen-template-platform {
  background:
    radial-gradient(circle at 50% 18%, rgba(38, 226, 255, .16), transparent 22%),
    linear-gradient(135deg, #1c2f66, #17285c 48%, #1b244f);
}

.platform-header {
  gap: 20px;
}

.platform-header span {
  flex: 1;
  max-width: 240px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #26e2ff, transparent);
}

.platform-code {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 8px 0 14px;
  color: #8ff3ff;
}

.platform-code b {
  display: grid;
  place-items: center;
  width: 42px;
  height: 56px;
  border: 1px solid rgba(38, 226, 255, .5);
  color: #dbeafe;
  background: rgba(15, 52, 108, .7);
  font-size: 28px;
}

.platform-grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr 1.2fr .85fr;
  grid-auto-rows: 172px;
  gap: 12px;
}

.platform-grid section {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.platform-grid h3 {
  flex: 0 0 auto;
  min-height: 20px;
  margin-bottom: 8px;
}

.platform-grid canvas {
  flex: 0 0 118px;
  height: 118px !important;
  max-height: 118px;
}

.platform-wide {
  grid-column: 1 / -1;
  min-height: 104px !important;
}

.platform-total-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.platform-total-row b {
  display: grid;
  place-items: center;
  min-height: 62px;
  color: #dbeafe;
  border: 1px solid rgba(38, 226, 255, .36);
  background: rgba(38, 226, 255, .14);
  box-shadow: inset 0 0 20px rgba(38, 226, 255, .18);
  font-size: 15px;
}

.mini-cards div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  align-content: start;
  overflow: hidden;
}

.mini-cards b {
  display: grid;
  place-items: center;
  min-height: 32px;
  color: #fff;
  background: linear-gradient(135deg, #26e2ff, #38e6a5);
  font-size: 13px;
}

.mini-cards b:nth-child(3n) {
  background: #8b5cf6;
}

.mini-cards b:nth-child(4n) {
  background: #ff8c42;
}

.radar-fake {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle, transparent 18%, rgba(38, 226, 255, .2) 19% 20%, transparent 21% 38%, rgba(38, 226, 255, .16) 39% 40%, transparent 41%),
    conic-gradient(from 20deg, rgba(38, 226, 255, .5), rgba(139, 92, 246, .2), rgba(255, 90, 148, .36), rgba(38, 226, 255, .5));
}

.radar-fake span {
  position: absolute;
  color: #dbeafe;
  font-size: 11px;
}

.radar-fake span:nth-child(1) { left: 6px; top: 20px; }
.radar-fake span:nth-child(2) { right: 4px; top: 24px; }
.radar-fake span:nth-child(3) { right: 14px; bottom: 16px; }
.radar-fake span:nth-child(4) { left: 18px; bottom: 18px; }

@media (max-width: 1200px) {
  .template-metrics,
  .template-stars-grid,
  .template-core-grid,
  .platform-grid,
  .platform-total-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .template-core-grid .core-center,
  .template-stars-grid .row-2,
  .template-stars-grid .span-2,
  .platform-wide {
    grid-column: auto;
    grid-row: auto;
  }
}

@media (max-width: 768px) {
  .template-metrics,
  .template-stars-grid,
  .template-core-grid,
  .platform-grid,
  .platform-total-row {
    grid-template-columns: 1fr;
  }

  .screen-template {
    padding: 12px;
  }
}

/* geo-education inspired portal refresh */
:root {
  --geo-blue: #1677ff;
  --geo-blue-deep: #0f4fb6;
  --geo-green: #1fbf84;
  --geo-cyan: #18b9d2;
  --geo-purple: #5f2d80;
  --geo-orange: #fb8c1f;
  --geo-text: #10233f;
  --geo-muted: #627086;
  --geo-line: #dbe6f4;
  --geo-soft: #f2f7ff;
  --geo-surface: rgba(255, 255, 255, .92);
  --geo-shadow: 0 18px 48px rgba(31, 86, 145, .12);
}

body {
  background:
    radial-gradient(circle at 92% 4%, rgba(71, 172, 255, .18), transparent 28%),
    radial-gradient(circle at 12% 0%, rgba(31, 191, 132, .12), transparent 24%),
    linear-gradient(180deg, #f8fcff 0%, #eef7ff 42%, #f8fbff 100%);
  color: var(--geo-text);
  font-family: Inter, "Noto Sans SC", "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif;
}

.main-header.navbar {
  min-height: 68px;
  border-bottom: 1px solid rgba(219, 230, 244, .82);
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 10px 30px rgba(31, 86, 145, .08);
  backdrop-filter: blur(18px);
}

.pku-navbar-brand {
  min-height: 58px;
}

.pku-navbar-brand span {
  color: var(--geo-text);
  font-size: 16px;
  font-weight: 800;
}

.main-header .nav-link {
  color: #52657d;
  transition: color 180ms ease, background 180ms ease;
}

.main-header .nav-link:hover {
  color: var(--geo-blue);
  background: #edf6ff;
}

.admin-user {
  border-color: #dce8f6;
  border-radius: 8px;
}

.main-sidebar {
  background: rgba(255, 255, 255, .96) !important;
  box-shadow: 2px 0 18px rgba(31, 86, 145, .09) !important;
}

.sidebar-dark-primary .brand-link {
  min-height: 68px;
  border-bottom-color: #e3edf9;
}

.brand-link .brand-text {
  color: var(--geo-text);
  font-weight: 800 !important;
}

.sidebar-dark-primary .nav-sidebar > .nav-item > .nav-link,
.sidebar-dark-primary .nav-treeview > .nav-item > .nav-link {
  min-height: 42px;
  color: #384c66;
  border-radius: 8px;
  margin: 6px 14px;
  transition: color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.sidebar-dark-primary .nav-sidebar > .nav-item > .nav-link:hover,
.sidebar-dark-primary .nav-treeview > .nav-item > .nav-link:hover {
  color: var(--geo-blue);
  background: #edf6ff;
}

.sidebar-dark-primary .nav-sidebar > .nav-item > .nav-link.active,
.sidebar-dark-primary .nav-treeview > .nav-item > .nav-link.active {
  color: #fff;
  background: linear-gradient(135deg, var(--geo-blue), var(--geo-cyan));
  box-shadow: 0 10px 22px rgba(22, 119, 255, .2);
}

.content-header {
  padding: 22px 28px 10px;
}

.content-header h1 {
  color: var(--geo-text) !important;
  font-size: 24px;
  font-weight: 900;
}

.content-header p,
.breadcrumb {
  color: var(--geo-muted) !important;
}

.content {
  padding: 8px 28px 36px;
}

.ops-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr);
  align-items: stretch;
  gap: 34px;
  min-height: 380px;
  margin-bottom: 30px;
  padding: 50px 52px;
  overflow: hidden;
  color: #fff;
  border: 1px solid rgba(219, 230, 244, .76);
  border-radius: 8px;
  background:
    linear-gradient(112deg, rgba(22, 119, 255, .96), rgba(19, 166, 194, .9) 52%, rgba(31, 191, 132, .78)),
    repeating-linear-gradient(160deg, rgba(255, 255, 255, .12) 0 1px, transparent 1px 22px);
  box-shadow: var(--geo-shadow);
}

.ops-hero::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(90deg, rgba(12, 40, 98, .2), transparent 50%),
    radial-gradient(circle at 92% 14%, rgba(255, 255, 255, .18), transparent 28%);
}

.ops-hero > * {
  position: relative;
  z-index: 1;
}

.ops-hero-copy {
  display: grid;
  align-content: center;
  max-width: 760px;
}

.ops-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  min-height: 32px;
  padding: 0 12px;
  color: rgba(255, 255, 255, .9);
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  font-size: 13px;
  font-weight: 800;
}

.ops-eyebrow i {
  color: #cbf7ff;
}

.ops-hero h2 {
  margin: 22px 0 0;
  max-width: 760px;
  font-size: 40px;
  font-weight: 900;
  line-height: 1.2;
}

.ops-hero p {
  max-width: 720px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, .86);
  font-size: 16px;
  line-height: 1.8;
}

.ops-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.ops-primary-cta,
.ops-secondary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.ops-primary-cta {
  color: #fff;
  background: linear-gradient(135deg, var(--geo-purple), #7c45a7);
  box-shadow: 0 14px 26px rgba(95, 45, 128, .28);
}

.ops-secondary-cta {
  color: #e8f8ff;
  border: 1px solid rgba(255, 255, 255, .34);
  background: rgba(255, 255, 255, .12);
}

.ops-primary-cta:hover,
.ops-secondary-cta:hover {
  color: #fff;
  transform: translateY(-1px);
  text-decoration: none;
}

.ops-primary-cta:hover {
  box-shadow: 0 18px 30px rgba(95, 45, 128, .34);
}

.ops-hero-panel {
  display: grid;
  align-content: stretch;
  gap: 18px;
  min-width: 0;
}

.ops-brand-display {
  display: grid;
  align-content: center;
  gap: 18px;
  min-height: 164px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 8px;
  background: rgba(255, 255, 255, .14);
  backdrop-filter: blur(14px);
}

.ops-brand-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.ops-brand-lockup img:first-child {
  width: 54px;
  height: 54px;
  object-fit: contain;
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
}

.ops-brand-lockup img:last-child {
  max-width: 270px;
  height: 42px;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(16, 35, 63, .16));
}

.ops-brand-signals {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ops-brand-signals span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 0 10px;
  color: #eaffff;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  font-size: 12px;
  font-weight: 800;
}

.ops-hero-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.ops-hero-metrics article {
  min-height: 92px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 8px;
  background: rgba(255, 255, 255, .12);
  backdrop-filter: blur(14px);
}

.ops-hero-metrics strong,
.ops-hero-metrics span,
.ops-hero-metrics small {
  display: block;
}

.ops-hero-metrics strong {
  font-size: 28px;
  line-height: 1;
}

.ops-hero-metrics span {
  margin-top: 8px;
  font-weight: 900;
}

.ops-hero-metrics small {
  margin-top: 4px;
  color: rgba(255, 255, 255, .74);
  font-size: 12px;
}

.ops-gateway-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

.ops-gateway-card {
  display: grid;
  gap: 10px;
  min-height: 150px;
  padding: 20px;
  color: var(--geo-text);
  border: 1px solid rgba(219, 230, 244, .9);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(242, 247, 255, .78), rgba(255, 255, 255, .94)),
    #fff;
  box-shadow: 0 15px 34px rgba(31, 86, 145, .08);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.ops-gateway-card:nth-child(2) span { background: linear-gradient(135deg, var(--geo-green), #69d8a8); }
.ops-gateway-card:nth-child(3) span { background: linear-gradient(135deg, var(--geo-cyan), var(--geo-blue)); }
.ops-gateway-card:nth-child(4) span { background: linear-gradient(135deg, var(--geo-purple), #8b5cf6); }

.ops-gateway-card:hover {
  color: var(--geo-text);
  border-color: rgba(22, 119, 255, .32);
  box-shadow: 0 20px 42px rgba(31, 86, 145, .14);
  text-decoration: none;
  transform: translateY(-2px);
}

.ops-gateway-card span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #fff;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--geo-blue), var(--geo-cyan));
  box-shadow: 0 10px 22px rgba(22, 119, 255, .22);
}

.ops-gateway-card strong {
  font-size: 18px;
  font-weight: 900;
}

.ops-gateway-card small {
  color: var(--geo-muted);
  line-height: 1.65;
}

.ops-workflow-ribbon {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-bottom: 30px;
  overflow: hidden;
  border: 1px solid rgba(219, 230, 244, .9);
  border-radius: 8px;
  background: var(--geo-surface);
  box-shadow: 0 15px 34px rgba(31, 86, 145, .08);
}

.ops-workflow-ribbon section {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  min-height: 88px;
  padding: 16px 18px;
  border-right: 1px solid #e4edf8;
}

.ops-workflow-ribbon section:last-child {
  border-right: 0;
}

.ops-workflow-ribbon b {
  color: #c9d8ec;
  font-size: 24px;
  line-height: 1;
}

.ops-workflow-ribbon strong,
.ops-workflow-ribbon small {
  display: block;
}

.ops-workflow-ribbon strong {
  color: var(--geo-text);
  font-weight: 900;
}

.ops-workflow-ribbon small {
  margin-top: 4px;
  color: var(--geo-muted);
  font-size: 12px;
}

.ops-section-heading,
.ops-panel-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.ops-section-heading {
  margin: 12px 0 18px;
}

.ops-section-heading small,
.ops-panel-head small {
  color: #7e8ca0;
  font-size: 12px;
  font-weight: 900;
}

.ops-section-heading h2,
.ops-panel-head h3 {
  margin: 0;
  color: var(--geo-text);
  font-weight: 900;
}

.ops-section-heading h2 {
  font-size: 28px;
}

.ops-section-heading p {
  margin: 8px 0 0;
  color: var(--geo-muted);
}

.ops-section-heading a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 14px;
  color: var(--geo-blue);
  border: 1px solid #dce8f6;
  border-radius: 8px;
  background: #fff;
  font-weight: 900;
}

.ops-section-heading a:hover {
  color: var(--geo-blue-deep);
  text-decoration: none;
}

.summary-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

.summary-card {
  min-width: 0;
  min-height: 172px;
  padding: 18px;
  color: var(--geo-text);
  border: 1px solid rgba(219, 230, 244, .9);
  border-radius: 8px;
  background: var(--geo-surface);
  box-shadow: 0 15px 34px rgba(31, 86, 145, .08);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.summary-card:hover {
  border-color: rgba(22, 119, 255, .28);
  box-shadow: 0 20px 42px rgba(31, 86, 145, .14);
  transform: translateY(-2px);
}

.summary-card-top {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.summary-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #fff;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--geo-blue), var(--geo-cyan));
  box-shadow: 0 10px 22px rgba(22, 119, 255, .2);
}

.summary-card.summary-green .summary-icon { background: linear-gradient(135deg, var(--geo-green), #83d96d); }
.summary-card.summary-cyan .summary-icon { background: linear-gradient(135deg, var(--geo-cyan), var(--geo-blue)); }
.summary-card.summary-blue .summary-icon { background: linear-gradient(135deg, var(--geo-blue), #49a1ff); }
.summary-card.summary-red .summary-icon { background: linear-gradient(135deg, #ff5a66, var(--geo-orange)); }
.summary-card.summary-pink .summary-icon { background: linear-gradient(135deg, #ec5ead, #8b5cf6); }

.summary-card strong,
.summary-card small {
  display: block;
}

.summary-card strong {
  font-size: 15px;
  font-weight: 900;
}

.summary-card small {
  margin-top: 3px;
  color: var(--geo-muted);
  font-size: 12px;
  line-height: 1.45;
}

.summary-card-value {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
}

.summary-card-value b {
  color: var(--geo-text);
  font-size: 34px;
  line-height: 1;
}

.summary-card-value em {
  color: var(--geo-green);
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
}

.summary-progress {
  height: 8px;
  margin-top: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf3fb;
}

.summary-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--geo-blue), var(--geo-green));
}

.summary-card footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  color: var(--geo-muted);
  font-size: 12px;
}

.summary-card footer a {
  color: var(--geo-blue);
  font-weight: 900;
}

.ops-insight-grid {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 20px;
  margin-bottom: 24px;
}

.ops-insight-panel,
.card,
.info-box,
.resource-total,
.solution-card,
.solution-plan-list section {
  border-radius: 8px;
}

.ops-insight-panel {
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(219, 230, 244, .9);
  background: var(--geo-surface);
  box-shadow: 0 15px 34px rgba(31, 86, 145, .08);
}

.ops-panel-head {
  margin-bottom: 14px;
}

.ops-panel-head h3 {
  font-size: 18px;
}

.ops-status-line {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.ops-status-line span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin: 0 8px 8px 0;
  padding: 0 10px;
  border: 1px solid #e3edf9;
  border-radius: 999px;
  background: #f8fbff;
  font-size: 12px;
}

.ops-status-line b {
  color: var(--geo-blue);
}

.ops-status-line .danger {
  color: #ff5a66;
}

.ops-metric-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.ops-metric {
  min-height: 90px;
  padding: 12px 10px;
  border-right-color: #e3edf9;
}

.ops-metric:nth-child(3) {
  border-right: 0;
}

.ops-metric:nth-child(-n + 3) {
  border-bottom: 1px solid #e3edf9;
}

.ops-metric strong,
.ops-metric span,
.ops-metric em {
  font-size: 13px;
}

.card,
.info-box {
  border-color: rgba(219, 230, 244, .9);
  box-shadow: 0 15px 34px rgba(31, 86, 145, .08);
}

.card-header {
  border-bottom-color: #edf3fb;
}

.card-title {
  color: var(--geo-text);
  font-weight: 900;
}

.ops-chart-card .card-body {
  background: linear-gradient(180deg, rgba(248, 251, 255, .64), #fff);
}

.resource-total {
  min-height: 88px;
  color: var(--geo-text);
  border: 1px solid rgba(219, 230, 244, .9);
  background: linear-gradient(135deg, #e6fbf3, #e8f5ff);
  box-shadow: 0 15px 34px rgba(31, 86, 145, .08);
}

.resource-total i {
  color: #fff;
  background: linear-gradient(135deg, var(--geo-green), var(--geo-cyan));
}

.resource-total span {
  color: var(--geo-muted);
}

.resource-total strong {
  color: var(--geo-text);
}

.solution-grid {
  gap: 16px;
}

.solution-card {
  border-color: rgba(219, 230, 244, .9);
  background:
    linear-gradient(180deg, rgba(242, 247, 255, .7), rgba(255, 255, 255, .94)),
    #fff;
  box-shadow: 0 15px 34px rgba(31, 86, 145, .08);
}

.solution-card-head i {
  border-radius: 8px;
  background: linear-gradient(135deg, var(--geo-blue), var(--geo-cyan));
}

.btn,
.badge,
.module-flow span {
  border-radius: 8px;
}

.btn-primary,
.badge-primary,
.badge-blue {
  border-color: var(--geo-blue);
  background: var(--geo-blue);
}

.badge-info,
.badge-teal {
  background: var(--geo-cyan);
}

.badge-success,
.badge-ip-ok {
  background: var(--geo-green);
}

.module-table th {
  color: #233852;
  background: #f2f7ff;
}

.module-table tbody tr:hover td {
  background: #f7fbff;
}

@media (max-width: 1280px) {
  .ops-hero {
    grid-template-columns: 1fr;
  }

  .ops-gateway-grid,
  .summary-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ops-insight-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 992px) {
  .ops-workflow-ribbon {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ops-workflow-ribbon section {
    border-bottom: 1px solid #e4edf8;
  }

  .ops-workflow-ribbon section:nth-child(2n) {
    border-right: 0;
  }
}

@media (max-width: 768px) {
  .content-header,
  .content {
    padding-right: 14px;
    padding-left: 14px;
  }

  .ops-hero {
    padding: 28px 20px;
  }

  .ops-hero h2 {
    font-size: 31px;
  }

  .ops-hero-actions,
  .ops-section-heading,
  .ops-panel-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .ops-primary-cta,
  .ops-secondary-cta {
    width: 100%;
  }

  .ops-brand-lockup {
    align-items: flex-start;
    flex-direction: column;
  }

  .ops-brand-lockup img:last-child {
    max-width: 100%;
  }

  .ops-hero-metrics,
  .ops-gateway-grid,
  .summary-card-grid,
  .ops-workflow-ribbon,
  .ops-metric-strip {
    grid-template-columns: 1fr;
  }

  .ops-workflow-ribbon section,
  .ops-metric {
    border-right: 0;
    border-bottom: 1px solid #e4edf8;
  }

  .ops-workflow-ribbon section:last-child,
  .ops-metric:last-child {
    border-bottom: 0;
  }

  .summary-card {
    min-height: 156px;
  }
}

.sidebar-mini.sidebar-collapse .main-sidebar {
  background: #fff !important;
}

.sidebar-mini.sidebar-collapse .brand-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 68px;
  padding-right: 0;
  padding-left: 0;
  background: #fff !important;
}

.sidebar-mini.sidebar-collapse .brand-link .brand-image {
  float: none;
  max-height: 38px;
  margin-right: 0;
  margin-left: 0;
  opacity: 1 !important;
}

.sidebar-mini.sidebar-collapse .brand-link .brand-text,
.sidebar-mini.sidebar-collapse .nav-sidebar .nav-link p,
.sidebar-mini.sidebar-collapse .nav-sidebar .right,
.sidebar-mini.sidebar-collapse .nav-sidebar .nav-header {
  display: none !important;
}

.sidebar-mini.sidebar-collapse .nav-sidebar .nav-treeview {
  display: none !important;
}

.sidebar-mini.sidebar-collapse .sidebar {
  padding-top: 12px;
}

.sidebar-mini.sidebar-collapse .nav-sidebar > .nav-item > .nav-link,
.sidebar-mini.sidebar-collapse .nav-treeview > .nav-item > .nav-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  min-height: 42px;
  margin: 6px auto;
  padding: 0;
}

.sidebar-mini.sidebar-collapse .nav-sidebar .nav-icon {
  width: auto;
  margin-right: 0;
  font-size: 1.05rem;
  text-align: center;
}
