:root {
  --overview-blue: #1268b7;
  --overview-blue-dark: #075aa8;
  --overview-blue-soft: #edf5ff;
  --overview-ink: #1d2c40;
  --overview-muted: #718096;
  --overview-line: #e6ebf2;
  --overview-bg: #f5f6f9;
  --overview-card: #fff;
  --overview-green: #19a85b;
  --overview-orange: #f29a2e;
  --overview-red: #ef4b56;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body.console-overview-page {
  margin: 0;
  background: var(--overview-bg);
  color: var(--overview-ink);
  font: 14px/1.55 "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}
body.console-overview-page button,
body.console-overview-page input { font: inherit; }
body.console-overview-page a { color: inherit; text-decoration: none; }

/* Use the supplied profile image consistently in the console header and account card. */
body.console-overview-page .tj-site-header .user-avatar {
  color: transparent;
  background: url('assets/default-avatar.jpg') center / cover no-repeat;
  overflow: hidden;
}
body.console-overview-page .overview-avatar { overflow: hidden; }
body.console-overview-page .overview-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.overview-shell { display: block; min-height: calc(100vh - 80px); }
.overview-sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: #fff;
  border-right: 1px solid var(--overview-line);
  z-index: 10;
}
.overview-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 76px;
  padding: 0 22px;
  color: var(--overview-blue-dark);
  border-bottom: 1px solid #f0f2f6;
}
.overview-brand .brand-wordmark { font-size: 22px; font-weight: 800; letter-spacing: -1px; }
.overview-brand small { margin-left: 3px; padding-left: 10px; color: #8c98a8; border-left: 1px solid #dce4ef; font-size: 12px; }
.overview-sigil { display: flex; align-items: flex-end; gap: 3px; width: 25px; height: 23px; transform: skewX(-12deg); }
.overview-sigil i { display: block; width: 6px; border-radius: 5px; background: #7bc9ff; }
.overview-sigil i:nth-child(1) { height: 11px; }
.overview-sigil i:nth-child(2) { height: 22px; background: var(--overview-blue); }
.overview-sigil i:nth-child(3) { height: 15px; background: #20b6d5; }
.overview-nav { padding: 20px 12px; }
.overview-nav a,
.overview-sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 0 14px;
  color: #536175;
  border-radius: 7px;
  transition: background .15s ease, color .15s ease;
}
.overview-nav a:hover,
.overview-sidebar-link:hover { color: var(--overview-blue); background: #f5f9ff; }
.overview-nav a.selected { color: var(--overview-blue); background: var(--overview-blue-soft); font-weight: 700; }
.overview-nav .nav-icon,
.overview-sidebar-link .nav-icon { display: grid; place-items: center; width: 20px; color: currentColor; font-size: 18px; }
.overview-nav-section { margin: 20px 14px 7px; color: #a1acba; font-size: 11px; letter-spacing: .08em; }
.overview-sidebar-bottom { margin-top: auto; padding: 14px 12px 18px; border-top: 1px solid #f0f2f6; }
.overview-profile { display: flex; align-items: center; gap: 9px; margin-top: 12px; padding: 11px 8px; background: #f7f9fc; border-radius: 8px; }
.overview-avatar { display: grid; flex: 0 0 auto; place-items: center; width: 34px; height: 34px; border: 3px solid var(--overview-blue); border-radius: 50%; color: var(--overview-blue); background: #fff; font-weight: 700; }
.overview-profile-copy { min-width: 0; flex: 1; }
.overview-profile-copy strong,
.overview-profile-copy span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.overview-profile-copy strong { color: var(--overview-ink); font-size: 12px; }
.overview-profile-copy span { margin-top: 2px; color: #91a0b2; font-size: 11px; }
.overview-logout { padding: 5px; color: #7f8da0; border: 0; background: transparent; cursor: pointer; font-size: 18px; }
.overview-logout:hover { color: var(--overview-red); }

.overview-main { min-width: 0; }
.overview-topbar { display: flex; align-items: center; justify-content: space-between; min-height: 76px; padding: 0 30px; background: #fff; border-bottom: 1px solid var(--overview-line); }
.overview-breadcrumb { margin: 0 0 2px; color: #9aa6b5; font-size: 12px; }
.overview-topbar h1 { margin: 0; font-size: 21px; letter-spacing: -.02em; }
.overview-topbar-actions { display: flex; align-items: center; gap: 16px; color: #8290a2; font-size: 12px; }
.overview-topbar-actions a { padding: 8px 15px; color: #fff; background: var(--overview-blue); border-radius: 5px; box-shadow: 0 5px 12px #1268b733; }
.overview-content { max-width: 1530px; margin: 0 auto; padding: 22px 28px 40px; }
.overview-grid { display: grid; grid-template-columns: minmax(0, 1fr) 328px; gap: 20px; align-items: start; }
.overview-primary,
.overview-secondary { display: grid; gap: 20px; min-width: 0; align-content: start; }
.overview-card { min-width: 0; padding: 18px; background: var(--overview-card); border: 1px solid var(--overview-line); border-radius: 8px; box-shadow: 0 5px 18px #203a5b08; }
.overview-card-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 13px; border-bottom: 1px solid var(--overview-line); }
.overview-card-title { display: flex; align-items: center; gap: 9px; min-width: 0; }
.overview-card-title h2 { margin: 0; font-size: 17px; }
.overview-card-title p { margin: 0 0 1px; color: #98a4b3; font-size: 11px; }
.section-icon { display: grid; place-items: center; width: 25px; height: 25px; color: var(--overview-blue); font-size: 22px; }
.section-icon { display: none; }
.overview-card-action { flex: 0 0 auto; padding: 8px 13px; color: #fff; background: var(--overview-blue); border-radius: 5px; font-size: 12px; box-shadow: 0 4px 10px #1268b733; }
.overview-card-action,
.overview-card-action:visited { color: #fff; background: var(--overview-blue); }
.overview-card-action:hover { background: var(--overview-blue-dark); }
.overview-stat-grid { display: grid; gap: 12px; margin-top: 16px; }
.overview-stat-grid--five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.overview-stat-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.overview-stat { min-width: 0; padding: 16px 10px 14px; text-align: center; background: #f2f3f5; border-radius: 5px; }
.overview-stat span { display: block; overflow: hidden; color: #667487; text-overflow: ellipsis; white-space: nowrap; }
.overview-stat strong { display: block; margin-top: 8px; color: #075eae; font-size: 25px; line-height: 1; }
.overview-stat small { display: block; margin-top: 7px; color: #a0a8b5; font-size: 11px; }
.overview-table-wrap { overflow: auto; margin-top: 16px; }
.overview-table { width: 100%; border-collapse: collapse; min-width: 510px; }
.overview-table th { padding: 10px 11px; color: #425065; background: #f2f3f5; font-weight: 700; text-align: left; }
.overview-table td { padding: 11px; border-bottom: 1px solid #edf0f4; color: #637286; }
.overview-table td:not(:first-child) { text-align: center; }
.overview-table td:first-child { color: #536176; }
.overview-table .value-running { color: var(--overview-green); }
.overview-table .value-stopped { color: #8c99aa; }
.overview-table .value-warning { color: var(--overview-orange); }
.overview-table .value-danger { color: var(--overview-red); }
.overview-table a { color: #2f7cdb; }
.overview-table a:hover { text-decoration: underline; }
.overview-empty { color: #9aa7b7; font-size: 12px; }
.overview-quick-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 11px; margin-top: 16px; }
.overview-quick-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 91px; padding: 11px 5px; color: #5b687b; background: #f3f6fa; border: 1px solid #dae2ed; border-radius: 7px; transition: transform .15s ease, color .15s ease, border-color .15s ease; }
.overview-quick-tile:hover { color: var(--overview-blue); border-color: #93bde9; transform: translateY(-2px); }
.quick-icon { color: #a9c9e9; font-size: 25px; line-height: 1; }
.overview-help-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; margin-top: 12px; }
.overview-help-link { position: relative; padding-left: 14px; color: #748297; font-size: 13px; }
.overview-help-link::before { content: ''; position: absolute; left: 0; top: .65em; width: 5px; height: 5px; border-radius: 50%; background: #9cc8ed; }
.overview-help-link:hover { color: var(--overview-blue); }

.overview-account-card { padding-bottom: 17px; }
.account-identity { display: flex; align-items: center; gap: 11px; padding-bottom: 16px; border-bottom: 1px solid var(--overview-line); }
.account-identity .overview-avatar { width: 42px; height: 42px; font-size: 22px; }
.account-identity strong { display: block; overflow: hidden; max-width: 204px; text-overflow: ellipsis; white-space: nowrap; }
.account-identity span { display: block; margin-top: 3px; color: #8290a3; font-size: 12px; }
.real-name { color: var(--overview-green) !important; }
.overview-balance { padding: 16px 0 14px; border-bottom: 1px solid var(--overview-line); }
.overview-balance-head { display: flex; align-items: center; justify-content: space-between; color: #4c5d73; }
.overview-balance-head a { color: #2f80e5; }
.overview-balance strong { display: block; margin-top: 7px; color: var(--overview-blue); font-size: 29px; line-height: 1; }
.overview-balance small { color: #99a5b3; }
.overview-balance-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 14px; }
.balance-meta-cell { padding: 10px; background: #f2f3f5; }
.balance-meta-cell span { display: block; color: #919dac; font-size: 11px; }
.balance-meta-cell strong { margin-top: 4px; color: #59697d; font-size: 14px; }
.balance-meta-cell.danger strong { color: var(--overview-red); }
.overview-notice-list { display: grid; gap: 10px; margin: 15px 0 0; padding: 0; list-style: none; }
.overview-notice-list li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; align-items: start; color: #657388; font-size: 12px; }
.notice-tag { display: inline-block; padding: 2px 6px; color: #e8a143; border: 1px solid #f1d6aa; border-radius: 4px; background: #fffaf1; font-size: 10px; white-space: nowrap; }
.notice-tag.service { color: #e36a91; border-color: #f1b9ca; background: #fff4f7; }
.notice-tag.system { color: #df9f2e; border-color: #f0d89f; background: #fff9e9; }
.notice-tag.product { color: #56a268; border-color: #bde4c5; background: #f2fff5; }
.notice-time { display: block; margin-top: 2px; color: #a3adbb; font-size: 10px; }
.overview-support { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-items: start; padding-top: 14px; }
.overview-qr-item { min-width: 0; text-align: center; }
.overview-qr-item img { display: block; width: 96px; height: 96px; max-width: 100%; margin: 0 auto 7px; object-fit: contain; border: 1px solid #eef1f5; }
.overview-qr-item strong { display: block; color: #53657c; font-size: 12px; font-weight: 600; }
.overview-support-note { grid-column: 1 / -1; margin: 3px 0 0; color: #738095; font-size: 12px; line-height: 1.8; text-align: center; }
.overview-status { min-height: 20px; margin-top: 10px; color: #a05a35; font-size: 12px; }

@media (max-width: 1200px) {
  .overview-grid { grid-template-columns: minmax(0, 1fr) 292px; }
  .overview-quick-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .overview-stat-grid--five { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 920px) {
  .overview-shell { display: block; }
  .overview-sidebar { position: static; min-height: 0; }
  .overview-brand { min-height: 62px; }
  .overview-nav { display: flex; gap: 5px; overflow-x: auto; padding: 9px 12px; }
  .overview-nav-section { display: none; }
  .overview-nav a { flex: 0 0 auto; min-height: 38px; padding: 0 12px; }
  .overview-sidebar-bottom { display: none; }
  .overview-topbar { min-height: 66px; padding: 0 18px; }
  .overview-content { padding: 16px 18px 30px; }
  .overview-grid { grid-template-columns: 1fr; }
  .overview-secondary { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
}
@media (max-width: 620px) {
  .overview-topbar-actions span { display: none; }
  .overview-stat-grid--five { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .overview-stat-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
  .overview-stat { padding: 13px 5px; font-size: 12px; }
  .overview-stat strong { font-size: 21px; }
  .overview-card { padding: 14px; }
  .overview-card-head { align-items: flex-start; }
  .overview-card-action { padding: 7px 9px; font-size: 11px; }
  .overview-quick-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
  .overview-quick-tile { min-height: 77px; font-size: 12px; }
  .overview-help-grid { grid-template-columns: 1fr; gap: 8px; }
  .overview-secondary { grid-template-columns: 1fr; }
  .overview-qr-item img { width: 86px; height: 86px; }
}
