﻿:root {
  --bg: #f3f6fa;
  --text: #172235;
  --muted: #6f7b8d;
  --line: #e2e8f0;
  --panel: #ffffff;
  --panel-soft: #f8fafc;
  --accent: #12a7b4;
  --accent-strong: #0b8397;
  --blue: #3864d9;
  --red: #d64545;
  --green: #0e9f6e;
  --amber: #d97706;
  --shadow: 0 12px 28px rgba(20, 35, 58, .07);
}
* { box-sizing: border-box; }
body { margin: 0; font-family: "Microsoft YaHei UI", "Segoe UI", Arial, sans-serif; color: var(--text); background: var(--bg); font-size: 14px; }
a { color: inherit; text-decoration: none; }
input, select, textarea { width: 100%; height: 32px; border: 1px solid #d7e0ec; border-radius: 6px; padding: 5px 9px; font: inherit; background: #fff; color: var(--text); outline: none; transition: border-color .15s, box-shadow .15s; }
textarea { min-height: 82px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: #55bfd0; box-shadow: 0 0 0 3px rgba(18, 167, 180, .12); }
label { display: grid; gap: 5px; color: #4c5b70; font-size: 13px; }
.btn { height: 32px; border: 1px solid #d7e0ec; border-radius: 6px; padding: 0 12px; background: #fff; color: #2e3d52; font: inherit; cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s, transform .15s; }
.btn:hover { border-color: #b8c6d8; background: #f8fbff; }
.btn.primary { border: 0; color: #fff; background: linear-gradient(135deg, #1ba8c5, #0b8f80); box-shadow: 0 10px 20px rgba(18, 143, 154, .18); }
.btn.primary:hover { box-shadow: 0 12px 22px rgba(18, 143, 154, .24); transform: translateY(-1px); }
.full { width: 100%; }
.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 10% 20%, rgba(108, 92, 231, .16), transparent 24%),
    radial-gradient(circle at 47% 34%, rgba(255, 99, 132, .18), transparent 19%),
    radial-gradient(circle at 12% 72%, rgba(56, 189, 248, .12), transparent 20%),
    #fbfcff;
}
.login-wrap { width: min(980px, calc(100vw - 36px)); display: grid; grid-template-columns: 1.1fr 460px; align-items: center; gap: 46px; }
.login-brand { position: relative; min-height: 360px; display: grid; align-content: center; padding-left: 24px; }
.login-brand h1 { margin: 0; font-size: 38px; line-height: 1.2; letter-spacing: 0; color: #060a13; }
.login-brand p { max-width: 420px; margin: 14px 0 0; color: var(--muted); line-height: 1.8; }
.glow { position: absolute; inset: 10px auto auto 0; width: 440px; height: 360px; opacity: .62; background: radial-gradient(circle at 42% 42%, rgba(168,85,247,.36), transparent 34%), radial-gradient(circle at 58% 54%, rgba(244,114,182,.32), transparent 34%); filter: blur(24px); z-index: -1; }
.login-card, .install-card {
  position: relative;
  padding: 34px;
  border-radius: 18px;
  background: rgba(255,255,255,.78);
  box-shadow: var(--shadow);
}
.login-card form, .install-grid { display: grid; gap: 18px; }
.logo-pill { width: 42px; height: 18px; margin: -50px auto 64px; border-radius: 999px; background: linear-gradient(90deg, #f43f5e, #22d3ee); box-shadow: 0 12px 22px rgba(34,211,238,.28); }
.login-links { display: flex; justify-content: flex-end; color: #0f9f91; font-size: 13px; }
.install-card { width: min(720px, calc(100vw - 36px)); }
.install-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.install-grid .full { grid-column: 1 / -1; }
.alert { padding: 10px 12px; margin-bottom: 12px; border-radius: 10px; background: #e6fcf5; color: #087f5b; border: 1px solid #c3fae8; }
.alert.danger { background: #fff5f5; color: var(--red); border-color: #ffc9c9; }
.console {
  background:
    linear-gradient(180deg, #f5f8fb 0, #eef3f8 260px, #eef3f8 100%);
}
.side {
  position: fixed;
  inset: 0 auto 0 0;
  width: 214px;
  padding: 0;
  background: #263241;
  color: white;
  box-shadow: 10px 0 26px rgba(22, 33, 50, .12);
  overflow: hidden;
}
.side-logo {
  height: 60px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  background: linear-gradient(135deg, #1d2836, #263747);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.logo-dot {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, #1fd1b9, #188ad4);
  position: relative;
  box-shadow: 0 8px 18px rgba(24, 138, 212, .25);
}
.logo-dot::after {
  content: "C";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: white;
}
.side-logo strong { font-size: 16px; letter-spacing: 0; font-weight: 800; }
.menu { height: calc(100vh - 60px); padding: 10px 10px 22px; display: grid; gap: 3px; overflow-y: auto; }
.menu::-webkit-scrollbar { width: 6px; }
.menu::-webkit-scrollbar-thumb { background: rgba(255,255,255,.18); border-radius: 999px; }
.menu-title {
  margin: 12px 8px 5px;
  color: #9eb0c4;
  font-size: 12px;
  font-weight: 700;
}
.menu-item {
  width: 100%;
  height: 31px;
  border: 0;
  border-radius: 6px;
  padding: 0 12px;
  background: transparent;
  color: #d6e1ec;
  text-align: left;
  font: inherit;
  cursor: pointer;
}
.menu-item:hover { background: rgba(255,255,255,.075); color: white; }
.menu-item.active {
  color: white;
  background: linear-gradient(90deg, #1687c7, #0e9d95);
  box-shadow: inset 3px 0 0 rgba(255,255,255,.46), 0 8px 18px rgba(0, 0, 0, .08);
}
.main { margin-left: 214px; padding: 12px; min-height: 100vh; }
.topbar {
  min-height: 54px;
  margin: -12px -12px 12px;
  padding: 8px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background: #fff;
  border-bottom: 1px solid #dde6f0;
  box-shadow: 0 5px 18px rgba(28, 43, 65, .045);
}
.topbar h1 { margin: 0 0 2px; font-size: 18px; color: #1c2a3a; font-weight: 800; }
.topbar p { margin: 0; color: #78869a; font-size: 12px; }
.top-actions { display: flex; align-items: center; gap: 8px; }
.top-actions span {
  padding: 5px 10px;
  border-radius: 999px;
  color: #46566b;
  background: #f1f5fa;
  border: 1px solid #e2e9f2;
}
.btn.ghost { background: #fff; color: #415066; }
.btn.small { height: 26px; padding: 0 8px; border-radius: 4px; font-size: 12px; }
.view { display: none !important; }
.view.active { display: block !important; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 10px; }
.stats div, .card {
  background: var(--panel);
  border: 1px solid #dce5ef;
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.stats div {
  position: relative;
  padding: 10px 12px;
  min-height: 70px;
  border-top: 0;
  overflow: hidden;
}
.stats div::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, #1ba8c5, #0d9d86);
}
.stats span, .stats small { display: block; color: var(--muted); }
.stats b { display: block; margin: 2px 0 1px; font-size: 21px; color: #162234; font-weight: 800; }
.grid-two { display: grid; grid-template-columns: minmax(360px, .72fr) minmax(0, 1fr); gap: 10px; margin-bottom: 10px; align-items: start; }
.card { padding: 10px; overflow: hidden; }
.card h2 { margin: 0 0 8px; font-size: 15px; color: #223248; font-weight: 800; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.card-head h2 { margin: 0; }
.table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 2px 0 8px;
  padding: 7px;
  border: 1px solid #e3eaf3;
  border-radius: 8px;
  background: linear-gradient(180deg, #fbfdff, #f7fafc);
}
.table-search { min-width: 220px; max-width: 360px; flex: 1; }
.table-search input { height: 30px; background: #fff; }
.table-actions { display: flex; align-items: center; gap: 6px; color: #66758a; font-size: 12px; }
.table-count {
  min-width: 56px;
  padding: 0 4px;
  text-align: right;
}
.form { display: grid; gap: 8px; }
.form.narrow { max-width: 760px; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.check { display: flex; align-items: center; gap: 7px; }
.check input { width: auto; height: auto; }
.inline-form { display: inline; margin: 0; }
table { width: 100%; min-width: 0; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
th, td { padding: 7px 8px; border-bottom: 1px solid #e7edf4; text-align: left; vertical-align: middle; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
th { color: #5b6b80; font-weight: 800; background: #f6f8fb; }
th:first-child { border-radius: 6px 0 0 0; }
th:last-child { border-radius: 0 6px 0 0; }
td small { display: block; margin-top: 2px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
tr:hover td { background: #f9fcff; }
tbody tr { cursor: default; }
tbody tr:hover { outline: 1px solid rgba(18, 167, 180, .12); outline-offset: -1px; }
table.dense th, table.dense td { padding-top: 4px; padding-bottom: 4px; }
.shortcut-card { margin-bottom: 10px; }
.shortcut-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(82px, 1fr));
  gap: 8px;
}
.shortcut-grid button {
  height: 66px;
  border: 1px solid #dfe7f1;
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, #f9fbfe);
  color: #233247;
  display: grid;
  place-items: center;
  gap: 4px;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.shortcut-grid button:hover { border-color: #75c6d4; box-shadow: 0 10px 18px rgba(29, 77, 118, .08); transform: translateY(-1px); }
.shortcut-grid span {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  color: white;
  font-size: 13px;
  background: linear-gradient(135deg, #1687c7, #12a78f);
  box-shadow: 0 7px 14px rgba(18, 151, 172, .2);
}
.shortcut-grid b { font-size: 12px; font-weight: 600; }
.tag { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; padding: 3px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; background: #eef3ff; color: var(--blue); border: 1px solid #dce6ff; }
.tag.active, .tag.online, .tag.done, .tag.paid { background: #e9f8f1; color: var(--green); border-color: #cfeee0; }
.tag.paused, .tag.pending, .tag.queued { background: #fff7e8; color: var(--amber); border-color: #ffe4b8; }
.tag.blocked, .tag.failed, .tag.offline, .tag.disabled, .tag.closed { background: #fff0f0; color: var(--red); border-color: #ffd3d3; }
.muted { color: #8a96a8; font-size: 12px; }
.monitor-tip {
  margin: 8px 0 0;
  padding: 7px 10px;
  border: 1px solid #dbeafe;
  border-radius: 4px;
  color: #2563eb;
  background: #eff6ff;
  font-size: 12px;
}
.ops-panel {
  margin-top: 10px;
  padding: 10px;
  border: 1px solid #dce5ef;
  border-radius: 8px;
  background: #fbfdff;
}
.command-table code {
  display: block;
  max-width: 100%;
  padding: 7px 8px;
  border: 1px solid #e1e8f0;
  border-radius: 6px;
  background: #0f172a;
  color: #d1fae5;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.55;
}
.security-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.security-grid div { padding: 10px; border: 1px solid #dfe7f2; border-radius: 5px; background: #fbfdff; }
.security-grid b { display: block; margin-bottom: 5px; font-size: 14px; }
.security-grid span { color: #637287; line-height: 1.7; }
.detail-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 360px;
  max-width: calc(100vw - 28px);
  background: #fff;
  border-left: 1px solid #dce5ef;
  box-shadow: -18px 0 38px rgba(20, 35, 58, .13);
  transform: translateX(105%);
  transition: transform .2s ease;
  z-index: 30;
}
.detail-drawer.open { transform: translateX(0); }
.drawer-head {
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid #e5ecf4;
  background: linear-gradient(180deg, #fff, #f8fbfe);
}
.drawer-head strong { display: block; font-size: 16px; color: #1c2a3a; }
.drawer-head span { display: block; margin-top: 2px; color: #758399; font-size: 12px; }
.drawer-close {
  width: 30px;
  height: 30px;
  border: 1px solid #d8e1ec;
  border-radius: 8px;
  background: #fff;
  color: #53647a;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.drawer-body { padding: 12px 14px; display: grid; gap: 8px; }
.drawer-field {
  padding: 9px 10px;
  border: 1px solid #e3eaf3;
  border-radius: 8px;
  background: #fbfdff;
}
.drawer-field span { display: block; color: #758399; font-size: 12px; margin-bottom: 4px; }
.drawer-field b { display: block; color: #172235; font-size: 13px; line-height: 1.5; word-break: break-all; }
@media (max-width: 1050px) {
  .side { position: static; width: auto; }
  .menu { height: auto; max-height: 320px; }
  .main { margin-left: 0; }
  .stats, .grid-two, .security-grid, .login-wrap { grid-template-columns: 1fr; }
  .shortcut-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .topbar { margin: 0 0 12px; }
  .table-toolbar { align-items: stretch; flex-direction: column; }
  .table-search { max-width: none; width: 100%; }
  .table-actions { justify-content: flex-end; }
}
@media (max-width: 620px) {
  .main { padding: 12px; }
  .stats, .cols, .install-grid { grid-template-columns: 1fr; }
  .login-card, .install-card { padding: 22px; }
  .login-brand h1 { font-size: 30px; }
  .shortcut-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* CDN classic console skin */
.console {
  --bg: #eeeeee;
  --text: #333333;
  --muted: #777777;
  --line: #e6e6e6;
  --panel: #ffffff;
  --accent: #009688;
  --accent-strong: #00877a;
  background: #eeeeee;
  color: #333333;
}
.console input,
.console select,
.console textarea {
  height: 34px;
  border-color: #dddddd;
  border-radius: 2px;
  box-shadow: none;
}
.console textarea {
  height: auto;
  min-height: 92px;
}
.console input:focus,
.console select:focus,
.console textarea:focus {
  border-color: #009688;
  box-shadow: 0 0 0 2px rgba(0, 150, 136, .08);
}
.console .btn {
  height: 30px;
  border-radius: 2px;
  border-color: #d8d8d8;
  background: #fff;
  color: #444;
  box-shadow: none;
}
.console .btn.primary {
  background: #1e9fff;
  border-color: #1e9fff;
  color: #fff;
  box-shadow: none;
}
.console .btn:hover,
.console .btn.primary:hover {
  transform: none;
  box-shadow: none;
}
.console .side {
  width: 220px;
  background: #20242d;
  box-shadow: none;
}
.console .side-logo {
  height: 62px;
  justify-content: center;
  padding: 0 18px;
  background: #20242d;
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.console .logo-dot { display: none; }
.console .side-logo strong {
  color: rgba(255,255,255,.68);
  font-size: 16px;
  font-weight: 500;
}
.console .menu {
  height: calc(100vh - 62px);
  padding: 0;
  gap: 0;
  display: block;
}
.console .menu-title {
  position: relative;
  height: 56px;
  margin: 0;
  padding: 0 36px 0 48px;
  display: flex;
  align-items: center;
  color: rgba(255,255,255,.66);
  background: #20242d;
  border-bottom: 1px solid rgba(255,255,255,.025);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
}
.console .menu-title::before {
  content: "鈼?;
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,.72);
  font-size: 17px;
}
.console .menu-title::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  margin-top: -3px;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 7px solid rgba(255,255,255,.72);
  transition: transform .16s ease;
}
.console .menu-group.open .menu-title::after {
  transform: rotate(180deg);
}
.console .menu-item {
  position: relative;
  height: 42px;
  border-radius: 0;
  padding: 0 18px 0 64px;
  color: rgba(255,255,255,.68);
  background: #171b22;
  font-size: 14px;
}
.console .menu-group:not(.open) .menu-item {
  display: none;
}
.console .menu > .menu-item:first-child {
  height: 58px;
  padding-left: 48px;
  background: #009688;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}
.console .menu > .menu-item:first-child::before {
  content: "鈱?;
  position: absolute;
  left: 18px;
}
.console .menu-item:hover {
  color: #fff;
  background: #1f252e;
}
.console .menu-item.active {
  color: #fff;
  background: #009688;
  box-shadow: none;
}
.console .main {
  margin-left: 220px;
  min-height: 100vh;
  padding: 28px 24px 40px;
}
.console .topbar {
  height: 62px;
  min-height: 62px;
  margin: -28px -24px 28px;
  padding: 0 22px;
  background: #fff;
  border-bottom: 1px solid #e9e9e9;
  box-shadow: 0 1px 5px rgba(0,0,0,.06);
}
.console .top-left,
.console .top-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}
.console .top-title {
  flex: 1;
  opacity: 0;
  pointer-events: none;
}
.console .icon-btn {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: #444;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.console .icon-btn:hover { color: #009688; }
.console .top-actions span {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #555;
  font-size: 14px;
}
.console .top-actions span::after {
  content: "";
  display: inline-block;
  margin-left: 6px;
  vertical-align: middle;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #666;
}
.console .welcome-line {
  margin: 0 0 22px;
  color: #777;
  font-size: 14px;
}
.console .stats {
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}
.console .stats div,
.console .card {
  border-radius: 2px;
  border: 1px solid #e7e7e7;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.console .stats div {
  min-height: 118px;
  padding: 20px 24px;
  background: #f8f8f8;
}
.console .stats div::before { display: none; }
.console .stats span {
  color: #999;
  font-size: 14px;
}
.console .stats b {
  margin-top: 14px;
  color: #009688;
  font-size: 30px;
  font-weight: 500;
}
.console .stats small {
  margin-top: 6px;
  color: #999;
}
.console .grid-two {
  grid-template-columns: minmax(480px, 1fr) minmax(420px, .95fr);
  gap: 16px 18px;
  margin-bottom: 16px;
}
.console .card {
  padding: 0;
  background: #fff;
}
.console .card h2,
.console .card-head {
  min-height: 48px;
  margin: 0;
  padding: 0 20px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #eee;
  color: #333;
  font-size: 15px;
  font-weight: 500;
}
.console .card-head h2 {
  min-height: auto;
  padding: 0;
  border: 0;
}
.console .card > .form,
.console form.card,
.console .card > table,
.console .card > .security-grid,
.console .card > .shortcut-grid,
.console .table-toolbar {
  margin: 16px 20px;
}
.console form.card {
  padding-bottom: 18px;
}
.console form.card h2 {
  margin: 0 0 16px;
}
.console .form {
  gap: 10px;
}
.console .shortcut-card {
  padding-bottom: 10px;
}
.console .shortcut-grid {
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 12px 14px;
}
.console .shortcut-grid button {
  height: 86px;
  border: 0;
  border-radius: 2px;
  background: #f7f7f7;
  color: #555;
  box-shadow: none;
}
.console .shortcut-grid button:hover {
  border: 0;
  box-shadow: none;
  transform: none;
  color: #009688;
}
.console .shortcut-grid span {
  width: auto;
  height: auto;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #333;
  font-size: 25px;
}
.console .shortcut-grid b {
  font-size: 14px;
  font-weight: 500;
}
.console .table-toolbar {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.console .table-search input {
  height: 32px;
}
.console table {
  border: 1px solid #e6e6e6;
  table-layout: auto;
}
.console th,
.console td {
  padding: 11px 14px;
  border-bottom-color: #e8e8e8;
  color: #555;
}
.console th {
  background: #fafafa;
  color: #666;
  font-weight: 600;
}
.console tr:hover td {
  background: #fafafa;
}
.console .tag {
  border-radius: 2px;
  min-width: auto;
  padding: 2px 7px;
  background: #009688;
  border-color: #009688;
  color: #fff;
  font-weight: 500;
}
.console .tag.paused,
.console .tag.pending,
.console .tag.queued {
  background: #ffb800;
  border-color: #ffb800;
}
.console .tag.blocked,
.console .tag.failed,
.console .tag.offline,
.console .tag.disabled,
.console .tag.closed {
  background: #ff5722;
  border-color: #ff5722;
}
.console .security-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.console .security-grid div {
  border-radius: 2px;
  background: #fafafa;
}
@media (max-width: 1050px) {
  .console .side { width: 100%; }
  .console .main { margin-left: 0; padding: 16px; }
  .console .topbar { margin: -16px -16px 18px; }
  .console .grid-two,
  .console .stats {
    grid-template-columns: 1fr;
  }
}

/* CDNfly-inspired light console refinement */
.console {
  --bg: #f4f7fb;
  --text: #354052;
  --muted: #8a97a8;
  --line: #e8edf4;
  --accent: #2d8cf0;
  background: #f4f7fb;
}
.console .side {
  width: 232px;
  background: #fff;
  color: #354052;
  border-right: 1px solid #e9eef5;
  box-shadow: 2px 0 10px rgba(37, 54, 80, .04);
}
.console .side-logo {
  height: 56px;
  background: #fff;
  border-bottom: 1px solid #eef2f7;
}
.console .side-logo strong {
  color: #405169;
  font-size: 15px;
  font-weight: 600;
}
.console .menu {
  height: calc(100vh - 56px);
  background: #fff;
}
.console .menu-title {
  height: 48px;
  padding: 0 34px 0 48px;
  color: #405169;
  background: #fff;
  border-bottom: 0;
  font-size: 14px;
  font-weight: 600;
}
.console .menu-title:hover {
  color: #2d8cf0;
  background: #f9fbfe;
}
.console .menu-title::before {
  left: 22px;
  color: #52647c;
  font-size: 13px;
}
.console .menu-title::after {
  right: 18px;
  border-left-width: 4px;
  border-right-width: 4px;
  border-top: 5px solid #7d8ca1;
}
.console .menu-group.open .menu-title {
  color: #2d8cf0;
}
.console .menu-item {
  height: 43px;
  padding: 0 16px 0 54px;
  color: #485a71;
  background: #fff;
  font-size: 14px;
}
.console .menu > .menu-item:first-child {
  height: 48px;
  padding-left: 48px;
  background: #fff;
  color: #405169;
  font-size: 14px;
  font-weight: 600;
}
.console .menu > .menu-item:first-child::before {
  left: 22px;
  color: #52647c;
}
.console .menu-item:hover,
.console .menu > .menu-item:first-child:hover {
  color: #2d8cf0;
  background: #f7fbff;
}
.console .menu-item.active,
.console .menu > .menu-item:first-child.active {
  color: #2d8cf0;
  background: #eaf6ff;
  box-shadow: inset -3px 0 0 #2d8cf0;
  font-weight: 500;
}
.console .main {
  margin-left: 232px;
  padding: 26px 10px 38px;
}
.console .topbar {
  height: 54px;
  min-height: 54px;
  margin: -26px -10px 18px;
  padding: 0 16px 0 46px;
  border-bottom: 1px solid #edf1f6;
  box-shadow: 0 1px 8px rgba(37, 54, 80, .04);
}
.console .icon-btn {
  color: #4b5d74;
  font-size: 19px;
}
.console .card,
.console .stats div {
  border-color: #e6ebf2;
  box-shadow: 0 1px 4px rgba(37, 54, 80, .035);
}
.console .card h2,
.console .card-head {
  border-bottom-color: #edf1f6;
}
.monitor-console {
  margin: 8px 4px 18px;
  min-height: 820px;
  padding: 0 14px 38px;
  border-radius: 3px;
  box-shadow: 0 1px 7px rgba(32, 45, 64, .16);
}
.monitor-console .tabs {
  height: 52px;
  display: flex;
  align-items: flex-end;
  gap: 28px;
  border-bottom: 1px solid #dde5f0;
}
.monitor-console .tab {
  height: 52px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #52647c;
  padding: 0 6px;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
}
.monitor-console .tab.active {
  color: #2d8cf0;
  border-bottom-color: #2d8cf0;
}
.filter-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 15px 32px 8px;
  flex-wrap: wrap;
}
.filter-row input {
  width: 235px;
  height: 30px;
  border-radius: 3px;
  font-size: 13px;
}
.segmented {
  display: inline-flex;
  border: 1px solid #d8e2ef;
  border-radius: 3px;
  overflow: hidden;
  background: #fff;
}
.segmented button {
  height: 30px;
  min-width: 76px;
  border: 0;
  border-right: 1px solid #d8e2ef;
  background: #fff;
  color: #52647c;
  cursor: pointer;
}
.segmented button:last-child {
  border-right: 0;
}
.segmented button.active {
  color: #2d8cf0;
  background: #f5faff;
  box-shadow: inset 0 0 0 1px #2d8cf0;
}
.monitor-pane {
  display: none;
}
.monitor-pane.active {
  display: block;
}
.chart-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 520px), 1fr));
  gap: 22px 28px;
  padding: 22px 32px 24px;
}
.chart-grid.origin-grid {
  grid-template-rows: auto auto;
}
.chart-box {
  min-height: 276px;
  padding: 18px 20px 18px 76px;
  border: 1px solid #dfe7f1;
  border-radius: 3px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(37, 54, 80, .05);
}
.chart-box h3 {
  margin: 0 0 18px;
  color: #333;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
}
.chart-lines {
  position: relative;
  height: 198px;
  border: 1px solid #d7e1ed;
  border-top: 0;
  border-right: 0;
  background:
    repeating-linear-gradient(to bottom, transparent 0, transparent 38px, #e9eef5 39px, transparent 40px);
}
.chart-lines::before {
  white-space: pre;
  position: absolute;
  left: 0;
  top: -3px;
  transform: translateX(-66px);
  color: #70819a;
  font-size: 12px;
  line-height: 39px;
  text-align: right;
  min-width: 58px;
}
.chart-lines[data-scale="bandwidth"]::before {
  content: "0.01 Kbps\A 0.01 Kbps\A 0.00 Kbps\A 0.00 Kbps\A 0.00 Kbps\A 0.00 Kbps";
}
.chart-lines[data-scale="flow"]::before {
  content: "0.00 KB\A 0.00 KB\A 0.00 KB\A 0.00 KB\A 0.00 KB\A 0.00 KB";
}
.chart-lines[data-scale="count"]::before {
  content: "1\A 0.8\A 0.6\A 0.4\A 0.2\A 0";
}
.chart-lines[data-scale="percent"]::before {
  content: "1 %\A 0.8 %\A 0.6 %\A 0.4 %\A 0.2 %\A 0 %";
}
.chart-lines[data-scale="second"]::before {
  content: "1 秒\A 0.8 秒\A 0.6 秒\A 0.4 秒\A 0.2 秒\A 0 秒";
}
.chart-lines::after {
  content: "01/01 08:00";
  position: absolute;
  left: 50%;
  bottom: -24px;
  transform: translateX(-50%);
  color: #70819a;
  font-size: 12px;
}
.chart-lines span.point {
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #6e8ee6;
  transform: translateX(-50%);
}
.chart-lines span.crosshair {
  display: none;
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  border-left: 1px dashed #bcc8d6;
}
.chart-lines span.tooltip {
  display: none;
  position: absolute;
  left: calc(50% - 156px);
  top: 82px;
  padding: 10px 12px;
  background: #fff;
  border-radius: 3px;
  box-shadow: 0 2px 10px rgba(25, 38, 55, .16);
  color: #7a8492;
  font-size: 13px;
  line-height: 1.6;
}
.chart-lines:hover span.crosshair,
.chart-lines:hover span.tooltip {
  display: block;
}
.cdnfly-console {
  margin: 8px 4px 18px;
  padding: 16px 0 30px;
  min-height: calc(100vh - 132px);
  border-radius: 3px;
  box-shadow: 0 1px 7px rgba(32, 45, 64, .11);
}
.console .card.cdnfly-console {
  padding: 16px 0 30px;
}
.monitor-console {
  min-height: 820px;
  padding-bottom: 38px;
}
.cdnfly-console .tabs {
  min-height: 38px;
  display: flex;
  align-items: flex-end;
  gap: 0;
  padding: 0 32px;
  border-bottom: 1px solid #dde5f0;
}
.cdnfly-console .tab {
  height: 34px;
  min-width: 82px;
  margin: 0 3px 0 0;
  padding: 0 12px;
  border: 1px solid #d9e2ee;
  border-bottom-color: transparent;
  border-radius: 3px 3px 0 0;
  background: #fbfcfe;
  color: #52647c;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
}
.cdnfly-console .sub-tabs .tab {
  min-width: 74px;
  border-color: transparent;
  background: transparent;
}
.cdnfly-console .tab.active {
  color: #2d8cf0;
  background: #fff;
  border-color: #2d8cf0 #d9e2ee #fff;
}
.cdnfly-console .sub-tabs .tab.active {
  border-color: transparent;
  border-bottom: 2px solid #2d8cf0;
}
.cdnfly-filter,
.cdnfly-toolbar {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  padding: 12px 0 8px;
}
.cdnfly-toolbar {
  padding-bottom: 8px;
}
.cdnfly-filter,
.cdnfly-toolbar,
.pager {
  padding-left: 32px;
  padding-right: 32px;
}
.cdnfly-table {
  width: calc(100% - 64px);
  margin-left: 32px;
  margin-right: 32px;
}
.monitor-summary {
  width: calc(100% - 64px);
  margin-left: 32px;
  margin-right: 32px;
}
.cdnfly-filter input,
.cdnfly-filter select {
  height: 30px;
  border-radius: 3px;
  font-size: 13px;
}
.cdnfly-filter .select-mini {
  width: 62px;
}
.search-compact {
  position: relative;
  width: 258px;
}
.search-compact input {
  padding-right: 34px;
}
.search-compact span {
  position: absolute;
  right: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: #8a97a8;
  font-size: 15px;
}
.input-group {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0;
  width: 236px;
}
.input-group span {
  height: 30px;
  min-width: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  border: 1px solid #d9e2ee;
  border-right: 0;
  border-radius: 3px 0 0 3px;
  background: #fbfcfe;
  color: #4f5f76;
  font-size: 13px;
}
.input-group input {
  border-radius: 0 3px 3px 0;
}
.input-group.small-select {
  width: 216px;
}
.input-group.date-range {
  width: 270px;
}
.input-group.date-range span {
  min-width: 34px;
  border-left: 0;
  border-right: 1px solid #d9e2ee;
  border-radius: 0 3px 3px 0;
}
.input-group.date-range input {
  border-radius: 3px 0 0 3px;
}
.text-link {
  border: 0;
  background: transparent;
  color: #2d8cf0;
  cursor: pointer;
  padding: 0 4px;
  font: inherit;
}
.text-link.danger {
  color: #e45649;
}
.dot {
  width: 8px;
  height: 8px;
  display: inline-block;
  margin-right: 6px;
  border-radius: 50%;
  background: #95a3b8;
  vertical-align: middle;
}
.dot.online,
.dot.active {
  background: #19be6b;
}
.dot.offline,
.dot.disabled {
  background: #ed4014;
}
.dot.maintenance,
.dot.pending {
  background: #ff9900;
}
.cdnfly-table {
  table-layout: fixed;
  border-collapse: collapse;
}
.cdnfly-table th,
.cdnfly-table td {
  height: 36px;
  padding: 0 14px;
  border-bottom: 1px solid #e5ebf3;
  font-size: 13px;
  text-align: center;
}
.cdnfly-table th {
  background: #f6f7f9;
  color: #44536a;
}
.cdnfly-table .empty {
  height: 45px;
  color: #53647c;
  background: #fff;
  text-align: center;
}
.cdnfly-table .check-col {
  width: 46px;
}
.cdnfly-table input[type="checkbox"] {
  width: 14px;
  height: 14px;
  padding: 0;
}
.pane,
.rank-pane {
  display: none;
}
.pane.active,
.rank-pane.active {
  display: block;
}
.pager {
  height: 44px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #52647c;
  font-size: 13px;
}
.pager button {
  min-width: 30px;
  height: 30px;
  border: 1px solid #d9e2ee;
  border-radius: 3px;
  background: #fff;
  color: #52647c;
}
.pager button.active {
  color: #2d8cf0;
  border-color: #2d8cf0;
}
.pager button:disabled {
  opacity: .55;
}
.pager select {
  width: 82px;
  height: 30px;
  border-radius: 3px;
}
.compact-settings {
  max-width: 680px;
  padding: 18px 14px 4px;
}
.global-config-console {
  padding-bottom: 18px;
}
.global-config-console [data-pane],
.global-config-console .pane {
  display: none;
}
.global-config-console [data-pane].active,
.global-config-console .pane.active {
  display: block;
}
.global-config-console .config-pane {
  padding-top: 12px;
}
.config-subtabs {
  margin-top: 10px;
}
.settings-section {
  margin: 18px 0 20px;
  padding-top: 14px;
  border-top: 1px solid #edf1f6;
}
.settings-section:first-child {
  border-top: 0;
  padding-top: 0;
}
.settings-heading {
  margin: 0 0 14px 46px;
  color: #52647c;
  font-weight: 600;
}
.inline-setting textarea {
  width: 320px;
  min-height: 96px;
  resize: vertical;
}
.inline-setting .setting-help {
  display: block;
  grid-column: 2 / 4;
  max-width: 520px;
  color: #8a98aa;
  line-height: 1.7;
}
.inline-setting .radio-line,
.inline-setting .check-line {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.inline-setting .radio-line label,
.inline-setting .check-line label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  white-space: nowrap;
}
.inline-setting .radio-line input,
.inline-setting .check-line input {
  width: 14px;
  height: 14px;
}
.input-unit {
  display: inline-flex;
  align-items: center;
}
.input-unit input {
  border-radius: 3px 0 0 3px;
}
.input-unit span {
  height: 30px;
  padding: 0 10px;
  border: 1px solid #d9e2ee;
  border-left: 0;
  border-radius: 0 3px 3px 0;
  background: #f8fafc;
  color: #67758a;
}
.region-config-table {
  margin-top: 12px;
}
.region-config-table .cdnfly-toolbar {
  padding-top: 8px;
}
.inline-setting {
  min-height: 38px;
  display: grid;
  grid-template-columns: 118px minmax(220px, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  color: #52647c;
  font-size: 13px;
}
.inline-setting input,
.inline-setting select {
  max-width: 320px;
  height: 30px;
}
.inline-setting span {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  color: #52647c;
}
.inline-setting label {
  width: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0;
}
.inline-setting input[type="radio"],
.inline-setting input[type="checkbox"] {
  width: 14px;
  height: 14px;
  padding: 0;
}
.range-chip {
  height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 0;
  margin: 0 0 8px;
  color: #52647c;
  font-size: 13px;
}
.range-chip button {
  width: 28px;
  height: 28px;
  margin-left: 4px;
  border: 1px solid #d9e2ee;
  background: #fff;
  color: #8a97a8;
}
.range-chip a {
  margin-left: 10px;
  color: #2d8cf0;
}
.table-scroll {
  overflow-x: auto;
  border-bottom: 1px solid #e5ebf3;
}
.table-scroll::-webkit-scrollbar {
  height: 12px;
}
.table-scroll::-webkit-scrollbar-thumb {
  background: #8d8d8d;
  border-radius: 999px;
}
.wide-log {
  min-width: 1760px;
}
.layer4-console {
  min-height: 464px;
}
.layer4-grid {
  gap: 72px 92px;
  padding-top: 14px;
}
.port-filter {
  width: 240px;
}
.port-rank {
  max-width: 780px;
}
.advanced-search-row {
  display: none;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin: 4px 0 10px;
  padding: 10px 12px;
  border: 1px solid #e6edf6;
  border-radius: 3px;
  background: #fbfcff;
}
.advanced-search-row.open {
  display: flex;
}
.advanced-search-row input {
  width: 220px;
  height: 30px;
  border-radius: 3px;
  font-size: 13px;
}
.prompt-modal-form {
  display: grid;
  gap: 18px;
  padding: 0;
}
.prompt-modal-form input {
  height: 32px;
  border-radius: 3px;
}
.prompt-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 8px;
}
@media (max-width: 1050px) {
  .console .main { margin-left: 0; }
  .chart-grid { grid-template-columns: 1fr; gap: 18px; padding: 16px 8px 20px; }
  .chart-box { min-height: 260px; padding: 16px 18px 18px 72px; }
  .cdnfly-console { margin: 10px 0; }
  .wide-log { min-width: 1480px; }
}

/* CDNfly interaction pass */
.console .breadcrumb-line {
  min-width: 260px;
  color: #8792a3;
  font-size: 13px;
  white-space: nowrap;
}
.console .breadcrumb-line::before {
  content: "棣栭〉 / ";
  display: none;
}
.console .page-actionbar {
  min-height: 48px;
  margin: 0 0 0;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #fff;
  border: 1px solid #e6ebf2;
  border-bottom: 0;
  border-radius: 2px 2px 0 0;
}
.console .page-tabs {
  display: flex;
  align-items: flex-end;
  gap: 20px;
  align-self: stretch;
}
.console .mini-tab {
  height: 48px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #52647c;
  font: inherit;
  cursor: pointer;
}
.console .mini-tab.active {
  color: #2d8cf0;
  border-bottom-color: #2d8cf0;
}
.console .page-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.console .cdn-filterbar {
  margin: 0 0 0;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  background: #fff;
  border-left: 1px solid #e6ebf2;
  border-right: 1px solid #e6ebf2;
}
.console .cdn-filterbar input {
  width: 220px;
  height: 32px;
}
.console .advanced-filter {
  flex-basis: 100%;
  display: flex;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px dashed #e1e7ef;
}
.console .advanced-filter[hidden] {
  display: none;
}
.console .single-content {
  display: block;
}
.console .view > .card,
.console .view > .grid-two.single-content,
.console .view > .grid-two:not(:has(form.card)) {
  margin-top: 0;
}
.console .view > .page-actionbar + .cdn-filterbar + .card,
.console .view > .page-actionbar + .cdn-filterbar + .grid-two,
.console .view > .page-actionbar + .cdn-filterbar + section.card {
  border-radius: 0 0 2px 2px;
}
.console .grid-two.single-content > .card {
  width: 100%;
}
.console .table-toolbar {
  margin: 0 0 8px;
  padding: 10px 16px 0;
  border-left: 1px solid #e6ebf2;
  border-right: 1px solid #e6ebf2;
  background: #fff;
}
.console .view > .card .table-toolbar,
.console .view > .grid-two .table-toolbar {
  border-left: 0;
  border-right: 0;
}
.console table {
  font-size: 13px;
}
.console th,
.console td {
  padding: 9px 12px;
}
.console .btn.small {
  height: 30px;
  padding: 0 10px;
}
.console .btn.primary {
  height: 32px;
  background: #2d8cf0;
  border-color: #2d8cf0;
}
.console-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 86px 20px 32px;
  background: rgba(17, 24, 39, .46);
}
.console-modal.open {
  display: flex;
}
.console-modal-panel {
  width: min(620px, calc(100vw - 32px));
  max-height: calc(100vh - 120px);
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 3px;
  box-shadow: 0 16px 44px rgba(15, 23, 42, .22);
  overflow: hidden;
}
.console-modal-panel:has(.l2-condition-editor) {
  width: min(860px, calc(100vw - 32px));
}
.console-modal-head {
  height: 48px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #edf1f6;
}
.console-modal-head strong {
  color: #26364d;
  font-size: 15px;
  font-weight: 600;
}
.console-modal-close {
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  color: #8b96a6;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.console-modal-close:hover {
  color: #2d8cf0;
}
.console-modal-body {
  padding: 16px;
  overflow: auto;
}
#modalFormStash {
  display: none !important;
}
.console > .modal-form-card,
body > .modal-form-card {
  display: none !important;
}
.console .modal-form-card,
.console-modal .modal-form-card {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  box-shadow: none;
}
.console-modal .modal-form-card h2 {
  display: none;
}
.console-modal .modal-form-card label {
  gap: 6px;
  font-size: 13px;
}
.console-modal .modal-form-card .cols {
  gap: 10px;
}
.console-modal .modal-form-card input,
.console-modal .modal-form-card select,
.console-modal .modal-form-card textarea {
  height: 32px;
}
.console-modal .modal-form-card textarea {
  min-height: 78px;
}
.console-modal .modal-form-card .form-row-label {
  margin-top: 4px;
  color: var(--muted);
}
.console-modal .modal-form-card .compact-table th,
.console-modal .modal-form-card .compact-table td {
  padding: 10px 12px;
}
.l2-rule-builder-row {
  display: grid;
  grid-template-columns: minmax(130px, 150px) minmax(130px, 150px) minmax(260px, 1fr) auto;
  gap: 8px;
  align-items: start;
}
.l2-rule-builder-row textarea {
  min-height: 92px;
}
.console-modal .modal-form-card .btn.primary {
  margin-top: 4px;
  width: auto;
  justify-self: end;
}
.console .detail-drawer {
  width: 410px;
}
.console .promoted-hidden {
  display: none !important;
}
.console.side-collapsed .side {
  width: 64px;
}
.console.side-collapsed .main {
  margin-left: 64px;
}
.console.side-collapsed .side-logo {
  padding: 0;
}
.console.side-collapsed .side-logo strong,
.console.side-collapsed .menu-title,
.console.side-collapsed .menu-item {
  font-size: 0;
  padding-left: 0;
  padding-right: 0;
  justify-content: center;
  text-align: center;
}
.console.side-collapsed .menu-title::before {
  left: 50%;
  transform: translate(-50%, -50%);
}
.console.side-collapsed .menu-title::after,
.console.side-collapsed .menu-item::before {
  display: none;
}
.console .settings-form {
  max-width: 980px;
}
.console .settings-console .settings-form {
  max-width: 760px;
}
.console .settings-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 14px;
}
.console .section-title {
  color: #17233d;
  font-size: 15px;
  font-weight: 700;
  margin: 2px 0 4px;
}
.console .settings-pane {
  display: none;
  gap: 10px;
}
.console .settings-pane.active {
  display: grid;
}
.console .security-grid.compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.console .compact-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 12px 0 16px;
}
.console .compact-stats > div {
  background: #f8fafc;
  border: 1px solid #edf0f5;
  border-radius: 3px;
  padding: 12px 14px;
}
.console .compact-stats span {
  color: #808695;
  display: block;
  font-size: 13px;
  margin-bottom: 6px;
}
.console .compact-stats strong {
  color: #17233d;
  font-size: 22px;
}
.console .form-actions {
  border-top: 1px solid #edf0f5;
  margin-top: 4px;
  padding-top: 12px;
}
body.modal-open .detail-drawer.open {
  transform: translateX(105%);
}
.console .package-table {
  min-width: 0;
  width: calc(100% - 64px) !important;
  table-layout: fixed;
}
.console .package-table small {
  color: #808695;
  display: block;
  font-size: 12px;
  margin-top: 3px;
  max-width: 180px;
}
.console-modal-panel .package-form-card {
  width: min(980px, calc(100vw - 48px));
  max-height: calc(100vh - 96px);
  overflow: auto;
}
.console .package-section {
  border-bottom: 1px solid #edf0f5;
  display: grid;
  gap: 12px;
  padding-bottom: 14px;
}
.console .package-section:last-of-type {
  border-bottom: 0;
}
.console .cols.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.console .package-switches {
  justify-content: flex-start;
  margin: 0;
}
@media (max-width: 780px) {
  .console .page-actionbar,
  .console .cdn-filterbar,
  .console .advanced-filter {
    align-items: stretch;
    flex-direction: column;
  }
  .console .cdn-filterbar input,
  .console .advanced-filter input {
    width: 100%;
  }
  .console-modal {
    padding-top: 52px;
  }
  .console-modal-panel {
    width: calc(100vw - 20px);
    max-height: calc(100vh - 70px);
  }
.console .cols.three {
  grid-template-columns: 1fr;
  }
}

/* Unified CDNfly page gutters */
.console .page-actionbar {
  padding-left: 32px;
  padding-right: 32px;
}
.console .cdn-filterbar,
.console .table-toolbar {
  padding-left: 32px;
  padding-right: 32px;
}
.console .card > table {
  width: calc(100% - 64px);
  margin-left: 32px;
  margin-right: 32px;
}
.cdnfly-console .tabs,
.cdnfly-console .cdnfly-filter,
.cdnfly-console .cdnfly-toolbar,
.cdnfly-console .pager,
.cdnfly-console .filter-row {
  padding-left: 32px;
  padding-right: 32px;
}
.cdnfly-console > .cdnfly-table,
.console .card.cdnfly-console > table.cdnfly-table,
.cdnfly-console > .pane > .cdnfly-table,
.cdnfly-console > .pane > form + .cdnfly-table,
.cdnfly-console > .pane > .rank-pane > .cdnfly-table,
.cdnfly-console > .pane > .cdnfly-toolbar + .cdnfly-table,
.cdnfly-console > .pane > .cdnfly-filter + .cdnfly-table,
.cdnfly-console > .pane > .cdnfly-filter + .chart-grid + .monitor-summary,
.cdnfly-console .analysis-table,
.cdnfly-console .monitor-summary {
  width: calc(100% - 64px);
  margin-left: 32px;
  margin-right: 32px;
}

/* Server overview, aligned with CDNfly-style dashboard */
.console .overview-page {
  padding: 0 24px 28px;
}
.console .overview-layout {
  display: grid;
  grid-template-columns: minmax(720px, 1fr) 470px;
  gap: 24px;
  align-items: start;
}
.console .overview-main,
.console .overview-side {
  display: grid;
  gap: 12px;
}
.console .overview-card {
  background: #fff;
  border: 1px solid #e5ebf3;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(37, 54, 80, .045);
  overflow: hidden;
}
.console .overview-card-head {
  min-height: 46px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #edf1f6;
}
.console .overview-card-head h2 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #2f4056;
  font-size: 14px;
  font-weight: 600;
}
.console .overview-icon {
  color: #2d8cf0;
  font-size: 13px;
  line-height: 1;
}
.console .overview-icon.pulse {
  font-size: 18px;
}
.console .overview-ranges {
  display: inline-flex;
  align-items: center;
  border: 1px solid #d9e5f3;
  border-radius: 3px;
  overflow: hidden;
  background: #fff;
}
.console .overview-ranges button,
.console .trend-tabs button,
.console .top-tabs button {
  height: 28px;
  min-width: 56px;
  border: 0;
  border-right: 1px solid #d9e5f3;
  background: #fff;
  color: #405169;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.console .overview-ranges button:last-child,
.console .trend-tabs button:last-child,
.console .top-tabs button:last-child {
  border-right: 0;
}
.console .overview-ranges button.active,
.console .trend-tabs button.active,
.console .top-tabs button.active {
  color: #2d8cf0;
  background: #f6fbff;
  box-shadow: inset 0 0 0 1px #2d8cf0;
}
.console .ops-grid {
  min-height: 226px;
  padding: 20px 18px 22px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px;
}
.console .ops-chart h3 {
  margin: 0 0 16px;
  color: #485a71;
  text-align: left;
  font-size: 13px;
  font-weight: 500;
}
.console .bar-stage,
.console .empty-stage {
  position: relative;
  height: 158px;
  border-bottom: 1px solid #6b7280;
  background:
    repeating-linear-gradient(to bottom, transparent 0, transparent 30px, #e8eef6 31px, transparent 32px);
}
.console .bar-stage {
  padding-left: 44px;
}
.console .bar-stage span {
  position: relative;
  display: block;
  width: 34px;
  height: 31px;
  margin-left: -44px;
  color: #7c8da4;
  font-size: 12px;
  line-height: 31px;
  text-align: right;
}
.console .bar-stage i,
.console .empty-stage i {
  position: absolute;
  left: 68px;
  bottom: 0;
  width: 166px;
  max-width: 52%;
  background: linear-gradient(180deg, #6ac7ef, #2295dd);
  border-radius: 2px 2px 0 0;
}
.console .bar-stage em,
.console .empty-stage em {
  position: absolute;
  left: 50%;
  bottom: -22px;
  transform: translateX(-50%);
  color: #6f7f96;
  font-style: normal;
  font-size: 12px;
}
.console .empty-stage {
  display: grid;
  place-items: center;
  color: #8a97a8;
}
.console .empty-stage i {
  left: 50%;
  width: 110px;
  transform: translateX(-50%);
}
.console .network-metrics {
  min-height: 108px;
  padding: 28px 18px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}
.console .network-metrics span {
  display: block;
  margin-bottom: 9px;
  color: #6d7c92;
  font-size: 13px;
}
.console .network-metrics strong {
  color: #2f4056;
  font-size: 22px;
  font-weight: 400;
}
.console .overview-bottom {
  display: grid;
  grid-template-columns: minmax(420px, 2.1fr) minmax(260px, 1fr);
  gap: 24px;
}
.console .trend-card,
.console .top-card {
  min-height: 500px;
}
.console .trend-tabs {
  height: 48px;
  padding: 10px 16px 0;
  display: flex;
  align-items: end;
  gap: 20px;
  border-bottom: 1px solid #edf1f6;
}
.console .trend-tabs button {
  min-width: 54px;
  border: 0;
  border-bottom: 2px solid transparent;
  box-shadow: none;
}
.console .trend-tabs button.active {
  background: #fff;
  border-bottom-color: #2d8cf0;
}
.console .trend-blank {
  position: relative;
  height: 386px;
  margin: 34px 34px 28px;
  border-bottom: 1px solid #667085;
  background:
    repeating-linear-gradient(to bottom, transparent 0, transparent 46px, #edf1f6 47px, transparent 48px);
}
.console .trend-blank span {
  position: absolute;
  inset: 45% 0 auto;
  text-align: center;
  color: #8b98aa;
}
.console .top-tabs {
  height: 48px;
  padding: 10px 16px 0;
  display: flex;
  align-items: end;
  gap: 8px;
  border-bottom: 1px solid #edf1f6;
}
.console .top-tabs button {
  min-width: 42px;
  border: 0;
  border-bottom: 2px solid transparent;
  box-shadow: none;
}
.console .top-tabs button.active {
  background: #fff;
  border-bottom-color: #2d8cf0;
}
.console .overview-mini-table {
  width: calc(100% - 32px);
  margin: 0 16px;
  border: 0;
  table-layout: fixed;
}
.console .overview-mini-table td {
  height: 56px;
  text-align: center;
  border-bottom: 1px solid #edf1f6;
}
.console .profile-card {
  min-height: 124px;
  padding: 20px 16px;
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 18px;
  align-items: center;
}
.console .profile-avatar {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #5aa6f8;
  color: #fff;
  font-size: 34px;
  font-weight: 700;
}
.console .profile-card p {
  margin: 0 0 6px;
  color: #52647c;
}
.console .profile-card p strong {
  margin-right: 8px;
  color: #2f4056;
  font-weight: 600;
}
.console .profile-card p span {
  color: #7e8da1;
  font-size: 13px;
}
.console .profile-card dl {
  margin: 0;
  display: grid;
  grid-template-columns: 78px 1fr;
  row-gap: 3px;
  color: #405169;
  font-size: 13px;
}
.console .profile-card dt,
.console .profile-card dd {
  margin: 0;
}
.console .overview-side .overview-card-head {
  justify-content: flex-start;
}
.console .side-list-card {
  min-height: 150px;
}
.console .overview-rows {
  padding: 14px 16px 16px;
}
.console .overview-rows div {
  min-height: 48px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #edf1f6;
  color: #405169;
}
.console .overview-rows div:last-child {
  border-bottom: 0;
}
.console .overview-rows span {
  color: #405169;
}
.console .overview-rows strong {
  min-width: 118px;
  color: #2f4056;
  font-weight: 400;
  text-align: left;
}
.console .overview-rows .ok-dot {
  color: #19be6b;
  font-size: 16px;
  text-align: center;
}
.console .overview-rows p {
  margin: 10px 0 0;
  color: #8a97a8;
  font-size: 12px;
}
.console .status-card .overview-rows div {
  grid-template-columns: minmax(120px, 1fr) 72px 86px;
  column-gap: 0;
}
.console .status-card .overview-rows span {
  padding-left: 16px;
}
.console .status-card .overview-rows .ok-dot {
  width: 16px;
  height: 16px;
  min-width: 16px;
  justify-self: center;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: #19be6b;
  color: #fff;
  font-size: 11px;
  line-height: 1;
  font-weight: 700;
}
.console .status-card .overview-rows .ok-dot::before {
  content: "✓";
}
.console .status-card .overview-rows em {
  display: block;
  width: 86px;
  height: 1px;
}
.console .status-card .overview-rows .btn.small {
  width: 72px;
  height: 24px;
  justify-self: start;
  padding: 0;
  border-color: #2d8cf0;
  background: #2d8cf0;
  color: #fff;
  font-size: 12px;
}
.console .status-card .overview-rows p {
  padding-left: 16px;
}
@media (max-width: 1380px) {
  .console .overview-layout {
    grid-template-columns: 1fr;
  }
  .console .overview-side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .console .profile-card {
    grid-column: 1 / -1;
  }
}
@media (max-width: 960px) {
  .console .overview-page {
    padding: 0 8px 20px;
  }
  .console .ops-grid,
  .console .network-metrics,
  .console .overview-bottom,
  .console .overview-side {
    grid-template-columns: 1fr;
  }
}
