:root {
  --bg: #f5f7f6;
  --panel: #ffffff;
  --panel-2: #fbfcfb;
  --line: #e6ebe8;
  --line-strong: #d7e0da;
  --text: #16211c;
  --muted: #6d7d74;
  --green: #12a150;
  --green-2: #0e8a44;
  --green-soft: #e8f7ee;
  --amber: #f2a33c;
  --amber-soft: #fef4e5;
  --red: #d94848;
  --red-soft: #fdecec;
  --blue: #2f7bef;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(16, 24, 20, 0.04), 0 8px 24px -12px rgba(16, 24, 20, 0.18);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB',
    'Microsoft YaHei', sans-serif;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

.app {
  display: flex;
  min-height: 100vh;
}

/* ---------------- 侧边栏 ---------------- */
.sidebar {
  width: 216px;
  flex: 0 0 216px;
  background: #0f1a15;
  color: #dfe9e3;
  display: flex;
  flex-direction: column;
  padding: 18px 14px;
  position: sticky;
  top: 0;
  height: 100vh;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px 20px;
}

.brand-icon {
  font-size: 22px;
  filter: drop-shadow(0 0 10px rgba(242, 163, 60, 0.6));
}

.brand-text strong {
  display: block;
  font-size: 15px;
  letter-spacing: 0.5px;
}

.brand-text small {
  color: #7f9488;
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  background: transparent;
  border: 0;
  color: #b9c9c0;
  border-radius: 10px;
  cursor: pointer;
  font-size: 13.5px;
  text-align: left;
  transition: background 0.15s, color 0.15s;
}

.nav-item i {
  font-style: normal;
  width: 16px;
  opacity: 0.75;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.nav-item.is-active {
  background: linear-gradient(90deg, rgba(18, 161, 80, 0.9), rgba(18, 161, 80, 0.55));
  color: #fff;
}

.sidefoot {
  margin-top: auto;
  padding: 10px 8px 0;
}

.side-status {
  font-size: 11.5px;
  color: #7f9488;
  line-height: 1.6;
  word-break: break-all;
}

/* ---------------- 主区域 ---------------- */
.main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 26px 8px;
  flex-wrap: wrap;
}

.topbar h1 {
  margin: 0;
  font-size: 20px;
  letter-spacing: 0.2px;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 12px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 13px;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s;
  white-space: nowrap;
}

.btn:hover {
  border-color: var(--green);
  color: var(--green-2);
}

.btn-primary {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
  font-weight: 600;
}

.btn-primary:hover {
  background: var(--green-2);
  color: #fff;
}

.btn-danger {
  color: var(--red);
  border-color: #f0c9c9;
}

.btn-danger:hover {
  background: var(--red-soft);
  border-color: var(--red);
  color: var(--red);
}

.btn-sm {
  padding: 5px 10px;
  font-size: 12px;
  border-radius: 8px;
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.view-root {
  padding: 8px 26px 40px;
}

/* ---------------- 提示条 ---------------- */
.banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  background: linear-gradient(90deg, #fff6e8, #fffdf8);
  border: 1px solid #f3ddba;
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 16px;
}

.banner-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 13px;
  min-width: 0;
}

.banner-text span {
  color: #8a6a37;
  font-size: 12px;
  word-break: break-all;
}

/* ---------------- 粘贴凭据向导 ---------------- */
.steps {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-2);
  padding: 6px 14px;
  margin-bottom: 14px;
}

.step {
  display: flex;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 13px;
  line-height: 1.6;
  color: var(--text);
}

.step:last-child {
  border-bottom: 0;
}

.step-num {
  flex: 0 0 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.step strong {
  font-weight: 600;
  color: var(--text);
}

.step a {
  color: var(--green-2);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px dashed currentColor;
}

.step code,
.hint code {
  background: #eef3f0;
  border: 1px solid #dde7e1;
  padding: 1px 6px;
  border-radius: 5px;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 12px;
  color: #24603f;
}

kbd {
  display: inline-block;
  padding: 1px 6px;
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  border-radius: 5px;
  background: #fff;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 11.5px;
}

.parse-box {
  border: 1px dashed var(--line-strong);
  border-radius: 10px;
  padding: 10px 12px;
  background: #fafcfb;
  min-height: 42px;
  font-size: 12px;
  line-height: 1.7;
}

.console-tip {
  border: 1px solid #d9e7df;
  background: linear-gradient(180deg, #f2fbf6, #fbfefc);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 14px;
}

.console-tip-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--green-2);
}

.code-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.code-row code {
  flex: 1 1 320px;
  min-width: 0;
  background: #0f1a15;
  color: #d5e6dd;
  border-radius: 8px;
  padding: 8px 10px;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 11.5px;
  overflow-x: auto;
  white-space: nowrap;
}

.auth-error {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--red-soft);
  border: 1px solid #f0c9c9;
  color: #a53333;
  font-size: 12.5px;
  line-height: 1.6;
}

.probe-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 10px;
  background: var(--panel-2);
}

.probe-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12.5px;
}

.probe-head code {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 12px;
  word-break: break-all;
}

.probe-body {
  margin: 8px 0 0;
  max-height: 220px;
  overflow: auto;
  background: #0f1a15;
  color: #cfe3d8;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 11.5px;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-all;
}

/* ---------------- KPI ---------------- */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.kpi {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  min-width: 0;
}

.kpi::after {
  content: '';
  position: absolute;
  right: -26px;
  top: -26px;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--green-soft);
  opacity: 0.85;
}

.kpi.today::after {
  background: var(--amber-soft);
}

.kpi-label {
  font-size: 12.5px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.kpi-value {
  font-size: 27px;
  font-weight: 700;
  letter-spacing: -0.6px;
  margin-top: 8px;
  font-variant-numeric: tabular-nums;
  min-width: 0;
  overflow-wrap: anywhere;
}

.kpi-value small {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  margin-left: 4px;
}

.kpi-delta {
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
}

.delta-up {
  color: var(--green-2);
}

.delta-down {
  color: var(--red);
}

/* ---------------- 卡片 / 面板 ---------------- */
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 16px;
  overflow: hidden;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}

.panel-head h3 {
  margin: 0;
  font-size: 14.5px;
}

.panel-body {
  padding: 16px 18px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 16px;
}

.grid-2 > * {
  min-width: 0;
}

@media (max-width: 1080px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

/* ---------------- 表格 ---------------- */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

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

th {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
  background: var(--panel-2);
}

tbody tr:last-child td {
  border-bottom: 0;
}

tbody tr:hover {
  background: #fafcfb;
}

td.num,
th.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.table-wrap {
  overflow-x: auto;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11.5px;
  border: 1px solid transparent;
  white-space: nowrap;
}

.tag-huawei {
  background: #eef4ff;
  color: #2b58c4;
}

.tag-aiswei {
  background: #fff1e8;
  color: #bd5a17;
}

.tag-manual {
  background: #f1f2f4;
  color: #5b6470;
}

.tag-ok {
  background: var(--green-soft);
  color: var(--green-2);
}

.tag-warn {
  background: var(--amber-soft);
  color: #a8641a;
}

.tag-error {
  background: var(--red-soft);
  color: var(--red);
}

/* ---------------- 图表 ---------------- */
.chart {
  width: 100%;
  height: auto;
  display: block;
}

.chart-empty {
  padding: 36px 10px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

.chart-note {
  display: none;
  margin-top: 8px;
  font-size: 11.5px;
  color: var(--muted);
  text-align: center;
}

/* 启动占位（iOS 添加到主屏幕时先画这个，避免黑屏） */
.boot-screen {
  min-height: 46vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 40px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

.boot-screen .big {
  font-size: 34px;
  line-height: 1;
}

.boot-spinner {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2.5px solid rgba(18, 161, 80, 0.2);
  border-top-color: var(--green);
  animation: bootspin 0.9s linear infinite;
}

@keyframes bootspin {
  to {
    transform: rotate(360deg);
  }
}

/* 只读模式角标 */
.role-badge {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(43, 88, 196, 0.12);
  color: #2b58c4;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* ---------------- 表单 ---------------- */
.field {
  margin-bottom: 14px;
}

.field label {
  display: block;
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 6px;
}

.field .hint {
  font-size: 11.5px;
  color: #93a29a;
  margin-top: 5px;
  line-height: 1.5;
}

input[type='text'],
input[type='password'],
input[type='number'],
input[type='time'],
input[type='date'],
select,
textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  font-size: 13px;
  background: #fff;
  color: var(--text);
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(18, 161, 80, 0.12);
}

textarea {
  resize: vertical;
  min-height: 90px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px;
  line-height: 1.55;
}

.row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.row > .field {
  flex: 1;
  min-width: 180px;
}

.checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  cursor: pointer;
}

.checkbox input {
  width: 16px;
  height: 16px;
  accent-color: var(--green);
}

/* 开关（需覆盖 .field label 的默认样式） */
.field label.switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  padding: 6px 0;
  margin-bottom: 0;
  font-size: 13px;
  color: var(--text);
}

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

.switch-track {
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: #d7e0da;
  position: relative;
  transition: background 0.18s;
  flex: 0 0 auto;
}

.switch-dot {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: transform 0.18s;
}

.switch input:checked + .switch-track {
  background: var(--green);
}

.switch input:checked + .switch-track .switch-dot {
  transform: translateX(18px);
}

.switch-label {
  font-size: 13px;
  color: var(--text);
}

/* ---------------- 弹窗 ---------------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(12, 20, 16, 0.45);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 50;
  animation: fade 0.15s ease;
}

@keyframes fade {
  from {
    opacity: 0;
  }
}

.modal {
  background: #fff;
  border-radius: 18px;
  width: min(560px, 100%);
  max-height: 88vh;
  overflow: auto;
  box-shadow: 0 30px 80px -20px rgba(8, 20, 14, 0.5);
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 2;
}

.modal-head h3 {
  margin: 0;
  font-size: 15.5px;
}

.modal-body {
  padding: 18px 20px;
}

.modal-foot {
  padding: 14px 20px 18px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  position: sticky;
  bottom: 0;
  background: #fff;
  border-top: 1px solid var(--line);
}

.close-x {
  border: 0;
  background: transparent;
  font-size: 20px;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
}

/* ---------------- 提示 ---------------- */
.toasts {
  position: fixed;
  right: 20px;
  bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 90;
}

.toast {
  background: #16211c;
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 13px;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  animation: slidein 0.2s ease;
  max-width: 380px;
}

.toast.error {
  background: #b03333;
}

.toast.ok {
  background: #0f7a3d;
}

@keyframes slidein {
  from {
    transform: translateY(8px);
    opacity: 0;
  }
}

/* ---------------- 其它 ---------------- */
.list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.item {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  background: var(--panel-2);
}

.item-main {
  min-width: 0;
}

.item-title {
  font-weight: 600;
  font-size: 13.5px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.item-sub {
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
  word-break: break-all;
}

.empty {
  text-align: center;
  padding: 46px 20px;
  color: var(--muted);
}

.empty .big {
  font-size: 34px;
  margin-bottom: 10px;
  opacity: 0.6;
}

.chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.chip {
  border: 1px solid var(--line-strong);
  background: #fff;
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12px;
  cursor: pointer;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s;
}

.chip:hover {
  border-color: var(--green);
  color: var(--green-2);
}

.chip.is-active {
  background: var(--green-soft);
  border-color: rgba(18, 161, 80, 0.45);
  color: var(--green-2);
  font-weight: 600;
}

/* 电站范围切换条 */
.scope-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  padding: 10px 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.scope-label {
  font-size: 12px;
  color: var(--muted);
  margin-right: 2px;
}

.scope-count {
  font-size: 10.5px;
  background: rgba(18, 161, 80, 0.14);
  color: var(--green-2);
  border-radius: 999px;
  padding: 0 6px;
  margin-left: 2px;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
  flex: 0 0 auto;
}

.dot-huawei {
  background: #2b58c4;
}

.dot-aiswei {
  background: #bd5a17;
}

.dot-manual {
  background: #8a9490;
}

.item[role='button'] {
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.item[role='button']:hover {
  border-color: var(--green);
}

.item-active {
  border-color: rgba(18, 161, 80, 0.5) !important;
  background: var(--green-soft) !important;
}

/* 图表悬停提示 */
.chart-tip {
  position: absolute;
  top: 6px;
  transform: translateX(-50%);
  background: rgba(15, 26, 21, 0.94);
  color: #fff;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 11.5px;
  line-height: 1.35;
  pointer-events: none;
  white-space: nowrap;
  z-index: 5;
  box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.55);
}

.chart-tip .tip-x {
  color: #a9c6b7;
  font-size: 10.5px;
}

.chart-tip .tip-v {
  font-weight: 700;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.chart-tip small {
  font-weight: 400;
  opacity: 0.72;
  font-size: 10px;
}

.captcha-img {
  width: 210px;
  height: 70px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: #f7f7f7;
}

.code-inline {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  background: #f3f6f4;
  padding: 2px 6px;
  border-radius: 6px;
}

.log-line {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  padding: 7px 10px;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 10px;
  align-items: baseline;
}

.log-line .t {
  color: #93a29a;
  flex: 0 0 auto;
}

.log-line .lv {
  flex: 0 0 auto;
  font-weight: 700;
  font-size: 10.5px;
  text-transform: uppercase;
}

.lv-info {
  color: var(--green-2);
}

.lv-error {
  color: var(--red);
}

.lv-warn {
  color: #b5761d;
}

.log-line .msg {
  word-break: break-word;
}

.preview-box {
  background: #0f1a15;
  color: #d5e6dd;
  border-radius: 12px;
  padding: 14px 16px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 320px;
  overflow: auto;
}

.var-table {
  font-size: 12px;
}

.var-table td {
  padding: 5px 8px;
  border-bottom: 1px dashed var(--line);
}

.section-title {
  font-size: 13px;
  font-weight: 600;
  margin: 20px 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title::before {
  content: '';
  width: 3px;
  height: 13px;
  border-radius: 2px;
  background: var(--green);
}

@media (max-width: 820px) {
  .sidebar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    top: auto;
    width: 100%;
    flex: none;
    height: auto;
    flex-direction: row;
    padding: 6px 8px;
    z-index: 30;
    overflow-x: auto;
  }

  .brand,
  .sidefoot {
    display: none;
  }

  .nav {
    flex-direction: row;
    width: 100%;
    gap: 2px;
  }

  .nav-item {
    flex: 1;
    flex-direction: column;
    gap: 2px;
    font-size: 11px;
    padding: 7px 4px;
    justify-content: center;
    text-align: center;
  }

  .nav-item i {
    width: auto;
  }

  .main {
    padding-bottom: 66px;
  }

  .topbar,
  .view-root {
    padding-left: 14px;
    padding-right: 14px;
  }

  .topbar {
    padding-top: 14px;
  }

  .panel-head,
  .panel-body {
    padding-left: 14px;
    padding-right: 14px;
  }

  .scope-bar {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .scope-bar::-webkit-scrollbar {
    display: none;
  }

  .scope-bar .chip {
    flex: 0 0 auto;
  }
}

@media (max-width: 520px) {
  .kpi-value {
    font-size: 21px;
  }

  .kpi {
    padding: 12px 14px;
  }

  .kpi::after {
    display: none;
  }

  .topbar h1 {
    font-size: 18px;
  }

  .topbar-actions .btn {
    padding: 6px 10px;
    font-size: 12px;
  }

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

  .chart {
    min-height: 180px;
  }
}
