:root {
  /* Match aio.medomino.com: teal primary + purple-cyan header gradient */
  --mg-bg: #f9f9f9;
  --mg-header: #01c5bb;
  --mg-header-grad: linear-gradient(270deg, #c4bef6 0.75%, #45cbf4 100%);
  --mg-accent: #01c5bb;
  --mg-accent-dark: #009d95;
  --mg-accent-soft: #e5f9f8;
  --mg-text: #303133;
  --mg-text-regular: #606266;
  --mg-text-muted: #909399;
  --mg-border: #e8eef5;
  --mg-shadow: rgba(1, 197, 187, 0.14);

  --el-color-primary: #01c5bb;
  --el-color-primary-rgb: 1, 197, 187;
  --el-color-primary-dark-2: #009d95;
  --el-color-primary-light-3: #4dd4cd;
  --el-color-primary-light-5: #80e0db;
  --el-color-primary-light-7: #b3ebe8;
  --el-color-primary-light-8: #ccf2ef;
  --el-color-primary-light-9: #e5f9f8;
  --el-menu-active-color: #01c5bb;
  --el-menu-hover-bg-color: #e5f9f8;
}

* {
  box-sizing: border-box;
}

html,
body,
#app {
  margin: 0;
  min-height: 100%;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  color: var(--mg-text);
  background: var(--mg-bg);
}

/* Public gate: brand intro + account login (domain entry) */
.gate {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  overflow: hidden;
  background: #06161a;
}

.gate-stage {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 18% 20%, rgba(1, 197, 187, 0.35), transparent 60%),
    radial-gradient(ellipse 55% 45% at 88% 78%, rgba(69, 203, 244, 0.22), transparent 55%),
    linear-gradient(165deg, #0a2429 0%, #06161a 48%, #0d2f34 100%);
  animation: gate-glow 12s ease-in-out infinite alternate;
}

@keyframes gate-glow {
  from { filter: saturate(1) brightness(1); }
  to { filter: saturate(1.08) brightness(1.06); }
}

.gate-main {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  color: #f2fffd;
  animation: gate-rise 0.7s ease-out both;
}

@keyframes gate-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.gate-brand {
  margin: 0 0 18px;
  font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
  font-size: clamp(40px, 8vw, 56px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: #fff;
  text-shadow: 0 0 40px rgba(1, 197, 187, 0.35);
}

.gate-title {
  margin: 0 0 12px;
  font-size: clamp(22px, 4vw, 28px);
  font-weight: 600;
  line-height: 1.35;
  color: #e8fffc;
}

.gate-lead {
  margin: 0 0 32px;
  max-width: 36em;
  font-size: 15px;
  line-height: 1.65;
  color: rgba(232, 255, 252, 0.72);
}

.gate-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.gate-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: rgba(232, 255, 252, 0.78);
}

.gate-field .el-input__wrapper {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.gate-field .el-input__wrapper:hover,
.gate-field .el-input__wrapper.is-focus {
  box-shadow: inset 0 0 0 1px rgba(1, 197, 187, 0.7);
}

.gate-field .el-input__inner {
  color: #fff;
}

.gate-field .el-input__inner::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.gate-submit {
  margin-top: 6px;
  width: 100%;
  height: 44px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.gate-error {
  margin: 0;
  font-size: 13px;
  color: #ff8f8f;
}

@media (max-width: 520px) {
  .gate {
    align-items: flex-start;
    padding-top: 72px;
  }
}

.shell {
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.shell-header {
  flex: 0 0 auto;
  background: transparent;
  color: #fff;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  min-height: 56px;
  z-index: 50;
}

.header-top {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 20px;
  min-height: 56px;
  background: var(--mg-header-grad);
  color: #fff;
  box-shadow: 0 1px 4px rgba(69, 203, 244, 0.18);
}

.header-tabs {
  padding: 0 20px;
  flex: none;
  background: #fff;
  border-bottom: 1px solid #e4e7ed;
}

.shell-main {
  flex: 1;
  min-height: 0;
  overflow: auto;
}

.brand {
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  flex: 1;
}

.tab-link {
  color: #303133;
  text-decoration: none;
  padding: 12px 14px;
  border-radius: 0;
  font-size: 14px;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.tab-link:hover {
  color: var(--mg-accent);
  background: transparent;
}

.tab-link.router-link-active {
  background: transparent;
  color: var(--mg-accent);
  border-bottom-color: var(--mg-accent);
  font-weight: 600;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

.header-right a,
.header-right button {
  color: #fff;
}

.settings-link {
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 4px 10px;
  border-radius: 6px;
}

.settings-link.router-link-active {
  background: #fff;
  color: var(--mg-accent-dark);
}

.page {
  padding: 20px 24px 40px;
}

.note-bar {
  background: #fff7e6;
  border: 1px solid #ffe1a6;
  color: #8a5a00;
  padding: 8px 12px;
  border-radius: 6px;
  margin-bottom: 16px;
  font-size: 13px;
}

.page h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

.empty-box {
  background: #fff;
  border: 1px dashed #dcdfe6;
  border-radius: 8px;
  padding: 48px 20px;
  text-align: center;
  color: #6a7a84;
}

.start-box {
  background: #fff;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 1px 4px rgba(1, 197, 187, 0.06);
}

.start-box > strong {
  display: block;
  font-size: 18px;
  color: var(--mg-header);
  margin-bottom: 8px;
}

.start-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.start-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  border: 1px solid #dcdfe6;
  border-radius: 8px;
  text-decoration: none;
  color: var(--mg-text);
  background: #fafafa;
}

.start-card:hover {
  border-color: var(--mg-accent);
  background: #e5f9f8;
}

.start-card b {
  color: var(--mg-header);
}

.empty-box strong {
  display: block;
  color: var(--mg-header);
  margin-bottom: 8px;
  font-size: 16px;
}

.settings-table {
  width: 100%;
  background: #fff;
  border-collapse: collapse;
}

.settings-table th,
.settings-table td {
  border-bottom: 1px solid #e8eef5;
  padding: 10px 12px;
  text-align: left;
  font-size: 14px;
}

.settings-table th {
  background: #e5f9f8;
  color: #3d5561;
}

.muted {
  color: #8a97a0;
}

.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  background: #f0f2f5;
}

.badge.off {
  background: #f3f3f3;
  color: #999;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0 0 16px;
}

.kpi-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.kpi,
.card {
  background: #fff;
  border-radius: 10px;
  padding: 16px;
  border: 1px solid rgba(29, 122, 156, 0.06);
  box-shadow: 0 4px 18px rgba(1, 197, 187, 0.05);
}

.kpi-label {
  color: #6a7a84;
  font-size: 13px;
}

.kpi-num {
  font-size: 28px;
  font-weight: 700;
  color: var(--mg-header);
  margin-top: 6px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.card h3 {
  margin: 0 0 12px;
  font-size: 15px;
}

.cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cloud-word {
  border: 0;
  background: transparent;
  color: var(--mg-accent);
  cursor: pointer;
}

.bar-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bar-row {
  display: grid;
  grid-template-columns: 90px 1fr 56px;
  gap: 8px;
  align-items: center;
  cursor: pointer;
  font-size: 13px;
}

.bar {
  background: #f0f2f5;
  height: 10px;
  border-radius: 99px;
  overflow: hidden;
}

.bar i {
  display: block;
  height: 100%;
  background: var(--mg-accent);
}

.answer-box {
  white-space: pre-wrap;
  background: #f7fafc;
  padding: 12px;
  border-radius: 6px;
  max-height: 240px;
  overflow: auto;
}

.summary-result {
  position: relative;
}

.summary-result .answer-box {
  padding-right: 40px;
}

.summary-copy-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid #d7e2ea;
  border-radius: 6px;
  background: #fff;
  color: #5b6b7c;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(15, 35, 52, 0.06);
}

.summary-copy-btn:hover {
  color: var(--mg-accent, #01c5bb);
  border-color: var(--mg-accent, #01c5bb);
}

.summary-copy-btn:active {
  transform: translateY(1px);
}

.form-grid,
.alias-row,
.focus-line {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 8px 0;
}

.comp-box {
  border: 1px solid #e8eef5;
  border-radius: 8px;
  padding: 12px;
  margin: 10px 0;
}

.prompt-field {
  margin-bottom: 12px;
}

.prompt-field label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}

.warn {
  color: #c0392b;
  background: #fff1f0;
  border: 1px solid #ffccc7;
  padding: 8px 12px;
  border-radius: 6px;
}

.progress-panel {
  background: #fff;
  border: 1px solid #c6e6c3;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
}

.progress-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.geo-sticky {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--mg-bg);
  margin: 0 -24px 16px;
  padding: 12px 24px 0;
  box-shadow: 0 1px 0 #e8eef5;
}

.geo-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0 0 8px;
}

.geo-section-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
}

.geo-section-tabs button {
  border: 0;
  background: transparent;
  color: #5b6b75;
  font-size: 14px;
  padding: 10px 14px 8px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
}

.geo-section-tabs button.active,
.geo-section-tabs button:hover {
  color: var(--mg-accent);
}

.geo-section-tabs button.active {
  font-weight: 600;
  border-bottom-color: var(--mg-accent);
}

.geo-main > section {
  scroll-margin-top: 12px;
}

.geo-filter.extra {
  padding: 8px 0 4px;
}

.compare-pop {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.geo-body {
  display: block;
}

.kpi-row.five {
  grid-template-columns: repeat(5, minmax(140px, 1fr));
}

.kpi-row.four {
  grid-template-columns: repeat(4, minmax(160px, 1fr));
}

.kpi.rate {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  min-height: 168px;
}

.kpi.rate .kpi-num {
  color: #24343a;
}

.kpi-rate-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  min-height: 44px;
}

.kpi-rate-row .pp-up,
.kpi-rate-row .pp-down,
.kpi-rate-row .pp-none {
  font-size: 13px;
  line-height: 1.2;
  white-space: nowrap;
}

.pp-word {
  margin-left: 4px;
  font-weight: 500;
}

.spark {
  display: block;
  flex: 0 0 auto;
}

.kpi-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: flex-start;
}

.kpi-sub,
.foot {
  margin-top: 6px;
  font-size: 12px;
  color: #6a7a84;
}

.kpi.rate .foot {
  margin-top: 4px;
  font-size: 10px;
  line-height: 1.3;
  color: #b0b8be;
  text-align: center;
}

.tag {
  background: #e5f9f8;
  color: #3d5561;
  border-radius: 999px;
  font-size: 12px;
  padding: 1px 8px;
  white-space: nowrap;
}

.tag-info {
  background: #e7f1ff;
  color: #3b82f6;
}

.tag-good {
  background: #e7f8ee;
  color: #2f9e44;
}

.tag-warn {
  background: #fff4e6;
  color: #e67700;
}

.pp-up {
  color: #2f9e44;
  font-weight: 600;
}

.pp-down {
  color: #c0392b;
  font-weight: 600;
}

.pp-none {
  color: #8a97a0;
}

.card-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: flex-start;
  margin-bottom: 8px;
}

.cite-summary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.card-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.focus-level-tabs {
  align-items: center;
  gap: 12px;
}

.chart-tools-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}

.chart-tools {
  display: flex;
  gap: 0;
}

.chart-kind {
  margin-left: auto;
}

.chart-wrap {
  margin-top: 8px;
}

.echart-host {
  width: 100%;
  height: 280px;
  min-height: 220px;
}

.echart-host.is-quad {
  height: 260px;
}

.echart-host.is-pie {
  height: 360px;
  min-height: 300px;
}

.echart-host.is-stack {
  height: 320px;
}

.echart-host.is-spark {
  width: 108px;
  height: 40px;
  min-height: 40px;
  flex: 0 0 auto;
}

.echart-host.is-hbar {
  min-height: 120px;
}

.echart-host.is-heat {
  min-height: 220px;
}

.echart-host.is-cloud {
  min-height: 240px;
}

.echart-host.is-dim {
  min-height: 200px;
  width: 100%;
}

.dim-echarts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
  margin-top: 8px;
}

.dim-echart-card {
  background: #fafafa;
  border: 1px solid #e8eef5;
  border-radius: 8px;
  padding: 10px 10px 8px;
  overflow: hidden;
}

.dim-echart-card > b {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
  color: #1f2a33;
}

.trend-svg {
  display: block;
  width: 100%;
  height: auto;
}

.chart-tick,
.chart-val {
  font-size: 11px;
  fill: #6a7a84;
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
  font-size: 12px;
  color: #5b6b75;
}

.legend-item i {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  margin-right: 4px;
}

.insight-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.insight-box {
  background: #fafafa;
  border: 1px solid #e8eef5;
  border-radius: 8px;
  padding: 12px;
  min-height: 96px;
}

.insight-box b {
  display: block;
  margin-bottom: 6px;
  color: var(--mg-header);
}

.insight-box p {
  margin: 0;
  font-size: 13px;
  color: #3d5561;
}

.contrib-foot {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}

.contrib-note-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.contrib-note-head b {
  margin-bottom: 0;
}

.contrib-foot .insight-box p + p {
  margin-top: 6px;
}

.rank-grid,
.rank-growth-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.rank-growth-row {
  margin-top: 16px;
}

.rank-list {
  max-height: 220px;
  overflow: auto;
  margin-top: 8px;
}

.rank-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 64px;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  padding: 6px 0;
  border-bottom: 1px solid #f0f2f5;
  cursor: pointer;
}

.rank-row.growth {
  grid-template-columns: 1fr auto;
}

.dim-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.dim-col {
  background: #fafafa;
  border-radius: 8px;
  padding: 10px;
}

.dim-brand {
  display: grid;
  gap: 4px;
  margin-top: 8px;
  font-size: 12px;
}

.bar.thin {
  height: 6px;
}

.dim-hit {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.dim-hit:hover .bar i {
  outline: 1px solid #01c5bb;
}

.dim-info {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 8px 0 16px;
}

.dim-info-col {
  background: #fff;
  border: 1px solid #e8eef5;
  border-radius: 10px;
  padding: 12px;
  border-top: 3px solid #dcdfe6;
}

.dim-info-col.pos {
  border-top-color: #01c5bb;
  background: linear-gradient(180deg, #ecfdfb 0%, #fff 42%);
}

.dim-info-col.neu {
  border-top-color: #909399;
  background: linear-gradient(180deg, #f5f7fa 0%, #fff 42%);
}

.dim-info-col.neg {
  border-top-color: #f35f7b;
  background: linear-gradient(180deg, #fff1f3 0%, #fff 42%);
}

.dim-info-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.dim-info-col h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
}

.dim-info-col.pos h4 {
  color: #01c5bb;
}

.dim-info-col.neu h4 {
  color: #606266;
}

.dim-info-col.neg h4 {
  color: #f35f7b;
}

.dim-info-count {
  color: #a0a8b3;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.dim-info-empty {
  border: 1px dashed #dcdfe6;
  border-radius: 8px;
  color: #a0a8b3;
  font-size: 13px;
  padding: 18px 12px;
  text-align: center;
  background: #fafafa;
}

.dim-info-block {
  margin-bottom: 12px;
}

.dim-info-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 13px;
  color: #4b5563;
}

.dim-info-row b {
  color: #303133;
  font-weight: 600;
}

.dim-info-bar {
  height: 8px;
  border-radius: 999px;
  background: #f1f3f5;
  overflow: hidden;
  margin-bottom: 8px;
}

.dim-info-bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: #909399;
}

.dim-info-col.pos .dim-info-bar i {
  background: #01c5bb;
}

.dim-info-col.neu .dim-info-bar i {
  background: #909399;
}

.dim-info-col.neg .dim-info-bar i {
  background: #f35f7b;
}

.dim-tag {
  display: inline-block;
  margin: 0 6px 6px 0;
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid #b9ebe6;
  background: #ecfdfb;
  color: #01c5bb;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.6;
}

.dim-tag.pos,
.dim-tag.positive {
  border-color: #b9ebe6;
  background: #ecfdfb;
  color: #01c5bb;
}

.dim-tag.neu,
.dim-tag.neutral {
  border-color: #e4e7ed;
  background: #f4f6f8;
  color: #606266;
}

.dim-tag.neg,
.dim-tag.negative {
  border-color: #ffc9d3;
  background: #fff1f3;
  color: #f35f7b;
}

.dim-tag.none {
  border-color: #e4e7ed;
  background: #fafafa;
  color: #a0a8b3;
}

.dim-tag.mini {
  margin: 2px 4px 2px 0;
  padding: 0 8px;
  font-size: 11px;
}

.dim-sent {
  display: inline-block;
  margin: 0 4px 4px 0;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.6;
  background: #f4f6f8;
  color: #606266;
}

.dim-sent.positive,
.dim-sent.pos {
  background: #ecfdfb;
  color: #01c5bb;
}

.dim-sent.neutral,
.dim-sent.neu {
  background: #f4f6f8;
  color: #606266;
}

.dim-sent.negative,
.dim-sent.neg {
  background: #fff1f3;
  color: #f35f7b;
}

.dim-sent.none {
  background: #fafafa;
  color: #a0a8b3;
}

.dim-more {
  color: #a0a8b3;
  font-size: 12px;
}

.dim-table-wrap {
  overflow: auto;
  max-height: 360px;
  border: 1px solid #e8eef5;
  border-radius: 8px;
}

.dim-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  background: #fff;
}

.dim-table th,
.dim-table td {
  border-bottom: 1px solid #f0f2f5;
  padding: 8px 8px;
  text-align: left;
  vertical-align: top;
}

.dim-table th {
  color: #909399;
  font-weight: 600;
  background: #fafafa;
  position: sticky;
  top: 0;
  z-index: 1;
}

.dim-q {
  max-width: 220px;
}

.dim-link {
  border: 0;
  background: transparent;
  color: #01c5bb;
  cursor: pointer;
  padding: 0;
  font-weight: 600;
}

.dim-link:hover {
  color: #009d95;
  text-decoration: underline;
}

.heat-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

.heat-table th,
.heat-table td {
  border: 1px solid #e8eef5;
  padding: 8px;
  text-align: center;
  cursor: pointer;
}

.heat-delta {
  font-weight: 700;
}

.heat-acc {
  font-size: 12px;
  color: #6a7a84;
}

.heat-up {
  background: #d3f9d8;
}

.heat-up-strong {
  background: #8ce99a;
}

.heat-down {
  background: #ffe8cc;
}

.heat-down-strong {
  background: #ffc078;
}

.heat-flat,
.heat-empty {
  background: #fff;
}

.empty-mini {
  background: #fafafa;
  border: 1px dashed #dcdfe6;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  color: #6a7a84;
  margin-bottom: 8px;
}

.pager {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 12px;
}

@media (max-width: 1100px) {
  .kpi-row.five,
  .kpi-row.four,
  .dim-grid,
  .insight-grid {
    grid-template-columns: 1fr 1fr;
  }
  .rank-grid,
  .rank-growth-row,
  .contrib-foot {
    grid-template-columns: 1fr;
  }
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -8px 0 12px;
}

.mon-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(1, 197, 187, 0.06);
  padding: 12px 16px 16px;
}

.mon-tools {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 8px;
}

.mon-head,
.mon-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px 168px;
  gap: 12px;
  align-items: center;
}

.mon-head.admin,
.mon-row.admin {
  grid-template-columns: 28px minmax(0, 1fr) 120px 168px;
}

.mon-head {
  color: #6a7a84;
  font-size: 13px;
  border-bottom: 1px solid #e8eef5;
  padding: 8px 0;
}

.mon-row {
  border-bottom: 1px solid #f0f4f7;
  padding: 12px 0;
}

.mon-empty {
  text-align: center;
  color: #8a97a0;
  padding: 36px 0;
}

.mon-check {
  display: flex;
  align-items: center;
}

.qa-card {
  display: flex;
  gap: 10px;
  min-width: 0;
  cursor: pointer;
}

.qa-card > div:last-child {
  min-width: 0;
  flex: 1;
}

.qa-card.static {
  cursor: default;
}

.qa-logo {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 8px;
  background: #e7eef2;
  color: #3d5561;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.qa-q,
.qa-a {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: #606266;
  font-weight: 600;
}

.qa-a {
  font-weight: 500;
  margin-top: 2px;
}

.qa-card:hover .qa-q,
.qa-card:hover .qa-a {
  text-decoration: underline;
}

.qa-card.static:hover .qa-q,
.qa-card.static:hover .qa-a {
  text-decoration: none;
}

.qa-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.qa-meta,
.mon-date {
  color: #6f7686;
  font-size: 12px;
  margin-top: 6px;
}

.mon-date {
  text-align: center;
  margin-top: 0;
}

.mon-ops {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.detail-head {
  background: #fff;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 12px;
}

.detail-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: start;
}

.detail-left,
.detail-right {
  background: #fff;
  border-radius: 8px;
  padding: 16px 18px 24px;
  min-height: 420px;
}

.md h2,
.md h3 {
  margin: 12px 0 8px;
}

.md p {
  margin: 0 0 8px;
  line-height: 1.6;
}

.ref-title {
  font-weight: 700;
  margin: 16px 0 8px;
}

.ref-item {
  background: #fafafa;
  border-radius: 6px;
  padding: 8px 10px;
  margin-bottom: 8px;
}

.ref-item.ref-on {
  outline: 2px solid #12b3a8;
}

.ref-source,
.ref-no {
  color: #8a97a0;
  font-size: 12px;
}

.judge-card {
  border: 1px solid #e4e4e7;
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 12px;
}

.judge-card h3 {
  margin: 0 0 10px;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dot {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: inline-block;
}

.dot-a { background: #7c5cfc; }
.dot-b { background: #4caf93; }
.dot-c { background: #e8973f; }
.dot-d { background: #5b8ff9; }

.brand-line,
.focus-top,
.dim-line,
.edit-line {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}

.dim-line,
.focus-item {
  background: #fafafa;
  border-radius: 8px;
  padding: 8px 10px;
  margin-top: 8px;
}

.count-pill,
.sent-pill {
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 12px;
  background: #f4f4f5;
  color: #52525b;
}

.step-line {
  display: flex;
  gap: 8px;
  background: #fafafa;
  border-radius: 8px;
  padding: 8px 10px;
  margin-top: 8px;
}

.step-line span {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #e4e4e7;
  text-align: center;
  line-height: 20px;
  font-size: 12px;
}

.metric-workspace {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.metric-main {
  flex: 1;
  min-width: 0;
  background: #fff;
  border: 1px solid #e4e7ed;
  border-radius: 8px;
  padding: 12px;
}

.metric-toolbar,
.metric-search {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.metric-toolbar-left,
.metric-toolbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.metric-count {
  font-size: 12px;
  color: #6a7a84;
  background: #f2f4f7;
  border-radius: 4px;
  padding: 2px 6px;
}

.metric-search-input {
  width: 220px;
}

.metric-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.metric-empty {
  min-height: 280px;
  border: 1px dashed #d4d7de;
  border-radius: 8px;
}

.metric-card {
  border: 1px solid #e4e7ed;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.metric-card.active {
  border-color: #409eff;
  box-shadow: 0 8px 28px rgba(64, 128, 255, 0.12);
}

.metric-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid #f0f2f5;
}

.metric-card-title h2 {
  margin: 0;
  font-size: 16px;
}

.metric-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: #98a2b3;
  font-size: 12px;
  margin-top: 4px;
}

.metric-card-tools {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.metric-card-body {
  min-height: 264px;
  padding: 12px;
}

.metric-card-empty {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #98a2b3;
  text-align: center;
  gap: 8px;
}

.metric-table-wrap {
  overflow: auto;
  max-height: 240px;
}

.metric-pivot {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.metric-pivot th,
.metric-pivot td {
  border: 1px solid #ebeef5;
  padding: 6px 8px;
  white-space: nowrap;
}

.metric-pivot th {
  background: #f3f6fa;
  font-weight: 600;
}

.metric-num {
  text-align: right;
}

.metric-total-row td {
  background: #fafafa;
  font-weight: 600;
}

.metric-drawer {
  width: 320px;
  flex-shrink: 0;
  background: #fff;
  border: 1px solid #e4e7ed;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 180px);
}

.metric-drawer-head,
.metric-drawer-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border-bottom: 1px solid #eef0f4;
}

.metric-drawer-foot {
  border-bottom: 0;
  border-top: 1px solid #eef0f4;
  justify-content: flex-end;
  gap: 8px;
}

.metric-drawer-body {
  padding: 12px;
  overflow: auto;
}

.metric-order,
.metric-order-item {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.metric-order-item {
  border: 1px solid #e4e7ed;
  border-radius: 6px;
  padding: 0 6px;
  background: #fafafa;
}

.tiny {
  font-size: 11px;
  line-height: 16px;
  margin-top: 4px;
}

.metric-pager {
  display: flex;
  justify-content: flex-end;
  padding: 12px 0 4px;
}

.focus-summary,
.focus-charts .card,
.focus-table-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(1, 197, 187, 0.06);
}

.focus-summary {
  padding: 16px 20px 8px;
  margin-bottom: 16px;
}

.focus-summary h3,
.focus-chart-head h3,
.focus-table-head h3 {
  margin: 0;
  font-size: 16px;
}

.focus-summary-body {
  margin: 12px 8px 16px;
  padding: 16px 24px;
  border-radius: 8px;
  background: #f7f8fa;
}

.focus-summary-title {
  font-weight: 700;
  margin-bottom: 8px;
}

.focus-summary-line {
  margin: 0;
  line-height: 1.7;
}

.focus-rose {
  color: #f43f5e;
  font-size: 18px;
}

.focus-charts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.focus-chart-head,
.focus-table-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.focus-chart-empty {
  min-height: 180px;
  display: flex;
  align-items: center;
}

.focus-pie {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(160px, 0.8fr);
  align-items: center;
  gap: 12px;
}

.focus-pie .echart-host {
  min-width: 0;
}

.focus-legend,
.focus-bar-legend {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: #4b5563;
}

.focus-bar-legend {
  flex-direction: row;
  flex-wrap: wrap;
  margin: 8px 0;
}

.focus-legend-pager {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.focus-legend-pager button {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.focus-table-card {
  padding: 16px 20px 20px;
}

.focus-km-table .clamp {
  margin: 0;
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.qs-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}

.qs-filter label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #3d5561;
}

.qs-right {
  margin-left: auto;
}

.qs-pager {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
  color: #5c6b74;
}

.qs-tag {
  display: inline-block;
  margin: 2px 4px 2px 0;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  line-height: 20px;
  background: #f0f2f5;
}

.qs-tag.green { background: #e8f7ef; color: #1f9d55; }
.qs-tag.orange { background: #fff3e6; color: #e07a1f; }
.qs-tag.gray { background: #eef0f3; color: #7a8490; }
.qs-tag.blue { background: #e8f4ff; color: #2f7de1; }
.qs-tag.cyan { background: #e7f8f6; color: #14968d; }

.qs-link {
  border: 0;
  background: none;
  color: #2f7de1;
  cursor: pointer;
  padding: 0 6px;
}

.qs-link.warn { color: #e07a1f; }

.qs-brand { font-weight: 600; }
.qs-sub, .qs-id { color: #8a97a0; font-size: 12px; margin-top: 2px; }
.qs-qtext { white-space: normal; max-width: 280px; }
.qs-th-wrap { white-space: normal; width: 88px; line-height: 1.3; }
.qs-ops { white-space: nowrap; }
.qs-inline { margin-left: 16px; }
.qs-box-title { display: flex; align-items: center; font-weight: 600; margin-bottom: 8px; }
.qs-node, .qs-comp, .qs-focus-row, .qs-focus-head {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 8px 0;
}
.qs-node label, .qs-comp label { display: inline-flex; align-items: center; gap: 6px; }
.qs-focus-no { width: 92px; color: #3d5561; }
.qs-variant-box { flex: 1; min-width: 0; }
.qs-variant-row { display: flex; gap: 8px; align-items: center; margin: 8px 0; }
.qs-variant-row .el-input { flex: 1; }
.qs-variant-note { color: #2f7a4a; font-size: 13px; margin: 6px 0 0; line-height: 1.5; }
.qa-asked { color: #8a97a0; font-size: 12px; margin-top: 2px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.detail-wrap .qa-asked { white-space: normal; }
.qs-focus-row .el-textarea { flex: 1; min-width: 220px; }
.qs-alert { margin-bottom: 12px; }
.qs-file { display: none; }

.eff-page .eff-filters {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #fff;
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 16px;
}

.eff-filters-left {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.eff-plat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.eff-plat i {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background: #01c5bb;
  color: #fff;
  font-style: normal;
  font-size: 10px;
  line-height: 16px;
  text-align: center;
}

.eff-kpis,
.eff-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.eff-kpi {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  border: 1px solid #e6ebf0;
  border-left-width: 4px;
  border-radius: 8px;
  padding: 18px 20px;
}

.eff-kpi.channel { border-left-color: #45cbf4; }
.eff-kpi.content { border-left-color: #01c5bb; }

.eff-kpi-label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #8aa0ad;
  font-size: 12px;
}

.eff-info {
  width: 14px;
  height: 14px;
  border: 1px solid #c5d0d8;
  border-radius: 50%;
  color: #9aabb5;
  font-style: normal;
  font-size: 10px;
  line-height: 12px;
  text-align: center;
  cursor: help;
}

.eff-kpi-num {
  margin-top: 6px;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.1;
}

.eff-kpi-num span {
  margin-left: 2px;
  font-size: 16px;
  font-weight: 400;
  color: #6b7c88;
}

.eff-kpi-side {
  text-align: right;
  color: #6b7c88;
  font-size: 12px;
  line-height: 1.7;
}

.eff-report {
  background: #fff;
  border: 1px solid #e6ebf0;
  border-radius: 8px;
  margin: 16px 0;
  overflow: hidden;
}

.eff-report header,
.eff-rank header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.eff-report header {
  gap: 8px;
  justify-content: flex-start;
  padding: 14px 16px;
  border-bottom: 1px solid #f0f2f5;
  background: linear-gradient(90deg, rgba(29, 122, 156, 0.12), transparent);
}

.eff-report h3,
.eff-rank h3 {
  margin: 0;
  font-size: 14px;
}

.eff-spark { color: #01c5bb; }

.eff-report-loading,
.eff-report-empty,
.eff-rank-empty {
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8aa0ad;
  padding: 24px;
  text-align: center;
}

.eff-report-loading { color: #01c5bb; }

.eff-report-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 28px;
  padding: 16px 18px 8px;
  color: #4d5d68;
  font-size: 13px;
  line-height: 1.7;
}

.eff-report-body h4 { margin: 0 0 8px; color: #24343d; }
.eff-report-body ul { margin: 0 0 10px; padding-left: 18px; }

.eff-advice {
  grid-column: 1 / -1;
  background: #f3f8ff;
  border: 1px solid #d6e6fb;
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 8px;
}

.eff-rank {
  background: #fff;
  border: 1px solid #e6ebf0;
  border-radius: 8px;
  overflow: hidden;
}

.eff-rank.bottom { border-color: #ffe4e6; }

.eff-rank header {
  padding: 14px 16px;
  border-bottom: 1px solid #f0f2f5;
  background: #fafbfc;
}

.eff-rank.bottom header {
  background: #fff5f5;
  border-bottom-color: #ffe4e6;
}

.eff-rank.bottom h3 { color: #e11d48; }
.eff-metric { color: #9aa8b2; font-size: 12px; }

.eff-rank-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-top: 1px solid #f2f5f7;
}

.eff-rank-main {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
}

.eff-rank-main.content { max-width: 70%; }

.eff-no {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  background: #f0f2f5;
  color: #64748b;
}

.eff-no.n0 { background: #fff4d6; color: #b7791f; }
.eff-no.n2 { background: #f8efe6; color: #9a6b3f; }

.eff-name { min-width: 0; }
.eff-name strong { font-weight: 600; font-size: 14px; }
.eff-name .warn { color: #e11d48; }

.eff-title {
  display: block;
  max-width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  color: #24343d;
  font: inherit;
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.eff-title:hover { color: #01c5bb; }
.eff-sub { margin-top: 4px; color: #9aa8b2; font-size: 12px; }

.eff-score { text-align: right; flex: none; }
.eff-score b { display: block; font-size: 14px; }
.eff-score small { color: #9aa8b2; font-size: 12px; }
.eff-score.hi b { color: #01c5bb; }
.eff-score.mid b { color: #64748b; }
.eff-score.low b { color: #fb7185; }

.eff-alert {
  display: inline-block;
  width: 0;
  height: 0;
  margin-right: 4px;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 10px solid #fb7185;
  vertical-align: -1px;
}

.eff-detail {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
}

.eff-detail h3 { margin-top: 0; }
.eff-channel {
  border: 0;
  background: transparent;
  padding: 0;
  color: inherit;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
}
.eff-channel:hover { color: #01c5bb; }
.eff-lib .eff-filters { flex-wrap: wrap; }
.eff-url-row { display: flex; gap: 8px; align-items: center; }
.eff-form { display: flex; flex-direction: column; gap: 8px; }
.eff-form label { font-size: 13px; color: #3d5561; }
.eff-form label span { margin-left: 8px; color: #9aa8b2; font-weight: 400; }
.eff-clip, .eff-link { display: inline-block; max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
.eff-link { color: #01c5bb; }
.eff-pager { display: flex; justify-content: flex-end; margin-top: 12px; }
.eff-tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.eff-tag, .eff-chip {
  border: 1px solid #d5e2ea;
  background: #f4fafc;
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 12px;
}
.eff-tag button, .eff-chip { border: 0; background: transparent; cursor: pointer; }
.eff-chip-title { margin: 8px 0 0; font-size: 13px; }
.eff-preview { max-height: 360px; overflow: auto; }
.eff-preview-row { display: flex; gap: 10px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid #f0f2f5; }
.eff-preview-row em.ready { color: #0f9f6e; font-style: normal; }
.eff-preview-row em.skipped { color: #e11d48; font-style: normal; }
.eff-chain {
  background: #fff;
  border-radius: 8px;
  padding: 8px 20px 16px;
  margin-bottom: 16px;
}
.eff-chain section { padding-top: 8px; border-top: 1px solid #f0f2f5; }
.eff-chain section:first-child { border-top: 0; }
.eff-chain h3 { margin: 8px 0; font-size: 15px; }
.eff-original { white-space: pre-wrap; background: #f7fafb; border-radius: 8px; padding: 12px; }

.modules {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
}
.module-link {
  position: relative;
  color: #fff;
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 8px;
  font-weight: 700;
  white-space: nowrap;
}
.module-link a { color: inherit; text-decoration: none; }
.module-link.on,
.module-link.router-link-active.on {
  background: rgba(255, 255, 255, 0.92);
  color: var(--mg-accent-dark);
}
.module-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 520px;
  padding: 8px;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  z-index: 80;
  gap: 4px;
}
.module-drop:hover .module-menu { display: flex; }
.module-menu a {
  color: #24343a;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: 600;
}
.module-menu a.router-link-active { background: #f4f7f8; }
.sys-title { font-size: 18px; font-weight: 700; margin-bottom: 12px; }
.sys-filters {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: #fff;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 12px;
}
.sys-filter-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 10px 12px;
}
.sys-filter-grid.one { grid-template-columns: repeat(3, minmax(180px, 1fr)); }
.sys-filter-grid label,
.stack { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: #52656c; }
.sys-filter-actions { display: flex; flex-direction: column; gap: 8px; }
.sys-filter-actions.row { flex-direction: row; }
.sys-toolbar { display: flex; justify-content: flex-end; gap: 8px; margin-bottom: 10px; }
.sys-pager { display: flex; align-items: center; gap: 8px; justify-content: flex-end; margin-top: 12px; }
.sys-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.sys-form .wide { grid-column: 1 / -1; }
.sys-form i, .stack i, label i { color: #e03131; font-style: normal; font-size: 12px; }
.inline { display: flex; gap: 8px; }
.type-tag { color: #eb2f96; border-color: #ffadd2; background: #fff0f6; }
.sys-more { display: flex; justify-content: center; margin-top: 16px; }
.json-view { background: #f7fafb; padding: 12px; border-radius: 8px; overflow: auto; max-height: 60vh; }
.api-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.api-card, .api-plus {
  background: #fff;
  border-radius: 8px;
  aspect-ratio: 1;
  padding: 12px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}
.api-name { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.api-desc {
  color: #66777d;
  font-size: 13px;
  margin-top: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.api-ops { display: flex; align-items: center; gap: 4px; }
.api-plus {
  border: 1px dashed #8fd3dc;
  color: #1aa6b8;
  font-size: 42px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: #fff;
}
.log-date { grid-column: span 2; }
.perm-title { margin: 12px 0 6px; font-weight: 700; }

@media (max-width: 900px) {
  .grid-2,
  .geo-body,
  .detail-cols,
  .metric-workspace,
  .focus-charts {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .eff-kpis,
  .eff-grid,
  .eff-report-body {
    grid-template-columns: 1fr;
  }
}

.tag-title { margin: 0 0 16px; font-size: 20px; }
.tag-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.tag-search { width: 50%; display: flex; gap: 8px; }
.tag-mag { vertical-align: -2px; margin-right: 4px; }
.tag-actions { display: flex; gap: 8px; }
.tag-file { display: none; }
.tag-groups { display: flex; background: #e7eef1; border-radius: 8px; overflow: hidden; margin-bottom: 14px; }
.tag-groups button { flex: 1; border: 0; background: transparent; color: #7b8b92; padding: 10px 8px; cursor: pointer; }
.tag-groups button.on { background: #fff; color: var(--mg-accent); font-weight: 700; }
.tag-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.tag-chips button { border: 1px solid #d5dee3; background: #fff; color: #24343a; border-radius: 16px; padding: 4px 12px; cursor: pointer; }
.tag-chips button.on { background: var(--mg-accent); border-color: var(--mg-accent); color: #fff; }
.tag-tree { background: #fff; border-radius: 8px; padding: 12px; }
.tag-add-root { width: 28px; height: 28px; border: 1px solid var(--mg-accent); color: var(--mg-accent); background: #fff; border-radius: 6px; cursor: pointer; font-size: 18px; line-height: 1; }
.tag-row { display: flex; align-items: center; min-height: 32px; border-radius: 4px; }
.tag-row.picked { box-shadow: inset 0 0 0 2px var(--mg-accent); }
.tag-row.disabled .tag-label { text-decoration: line-through; color: #98a6ac; }
.tag-arrow { width: 16px; height: 16px; border: 0; background: transparent; padding: 0; position: relative; flex: 0 0 16px; }
button.tag-arrow { cursor: pointer; }
button.tag-arrow:before { content: ""; position: absolute; left: 3px; top: 6px; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 6px solid #6b7c83; }
button.tag-arrow.open:before { top: 4px; border-top: 0; border-bottom: 6px solid #6b7c83; }
.tag-label { margin-left: 6px; }
.tag-label .tid { color: #98a6ac; }
.tag-label.hit, .tag-label.hit .tid { color: var(--mg-accent); font-weight: 700; }
.tag-ops { display: none; margin-left: 8px; gap: 4px; }
.tag-row:hover .tag-ops { display: inline-flex; }
.tag-ops button { width: 22px; height: 22px; border: 1px solid #d5dee3; background: #fff; border-radius: 4px; cursor: pointer; color: #52656c; }
.tag-menu { position: fixed; z-index: 4000; background: #fff; border: 1px solid #e8eef5; box-shadow: 0 8px 24px rgba(0,0,0,.12); min-width: 180px; padding: 4px 0; }
.tag-menu button { display: block; width: 100%; text-align: left; background: #fff; border: 0; padding: 8px 14px; cursor: pointer; }
.tag-menu button:hover { background: #f4f8fa; }
.tag-form { display: flex; flex-direction: column; gap: 12px; }
.tag-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: #52656c; }
.tag-alias-bar { margin-bottom: 8px; }
.tag-mark { color: #c5d0d6; font-size: 16px; }
.tag-mark.on { color: var(--mg-accent); }
.tag-pager { margin-top: 10px; color: #52656c; font-size: 13px; }
