:root {
  color-scheme: light;
  --bg: #f4f7fb;
  --panel: #ffffff;
  --panel-soft: #f8fafc;
  --text: #172033;
  --muted: #6b7385;
  --line: #dde3ee;
  --blue: #3d63f2;
  --blue-soft: #eef3ff;
  --green: #11a36a;
  --amber: #c87910;
  --red: #d64545;
  --shadow: 0 8px 24px rgba(31, 49, 91, 0.06);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 1180px;
  background: linear-gradient(180deg, #edf4ff 0, #f5f7fb 260px, #f5f7fb 100%);
  color: var(--text);
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

button,
input,
select {
  font: inherit;
}

.app-shell {
  display: grid;
  grid-template-columns: 236px 1fr;
  min-height: 100vh;
}

.sidebar {
  background: rgba(255, 255, 255, 0.92);
  border-right: 1px solid var(--line);
  padding: 24px 18px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 34px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: linear-gradient(135deg, #2454f4, #14b8a6);
  color: #fff;
  font-weight: 800;
}

.brand strong,
.brand span {
  display: block;
}

.brand span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.nav {
  display: grid;
  gap: 8px;
}

.view-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-bottom: 18px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.view-switch.inline {
  display: inline-grid;
  width: 190px;
  margin-bottom: 0;
}

.view-switch button {
  height: 30px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
}

.view-switch button.active {
  background: #fff;
  color: var(--blue);
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(31, 49, 91, 0.08);
}

.nav-group {
  display: grid;
  gap: 6px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.nav-group > span {
  padding: 0 16px 2px;
  color: #98a2b3;
  font-size: 12px;
}

.nav-item {
  height: 44px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #667085;
  text-align: left;
  padding: 0 16px;
  cursor: pointer;
}

.nav-item.muted {
  height: 38px;
  color: #8a94a6;
  font-size: 13px;
}

.nav-item.active,
.nav-item:hover {
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 700;
}

.nav-item.active {
  border-left: 3px solid var(--blue);
  padding-left: 13px;
}

.main {
  padding: 28px 24px 36px;
  min-width: 0;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  min-height: 82px;
  margin-bottom: 18px;
}

.leader-view .maintenance-only {
  display: none !important;
}

.leader-view #loadSampleBtn,
.leader-view #confirmImportBtn,
.leader-view .top-actions > .primary-button[data-target="importPanel"] {
  display: none;
}

.leader-view .top-actions {
  justify-content: flex-end;
}

.leader-filter-panel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.leader-filter-title {
  min-width: 210px;
}

.leader-filter-title strong,
.leader-filter-title span {
  display: block;
}

.leader-filter-title span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.leader-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(132px, 1fr)) auto;
  gap: 10px;
  align-items: end;
  flex: 1;
}

.leader-filters label {
  display: grid;
  gap: 6px;
}

.leader-filters span {
  color: var(--muted);
  font-size: 12px;
}

.leader-filters input,
.leader-filters select {
  width: 100%;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  padding: 0 10px;
  outline: none;
}

.boss-panel {
  min-height: 520px;
  margin-bottom: 16px;
  padding: 22px;
  border: 1px solid rgba(83, 154, 255, 0.35);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 12%, rgba(59, 130, 246, 0.35), transparent 28%),
    linear-gradient(135deg, #061329 0%, #092044 48%, #061629 100%);
  color: #e8f3ff;
  box-shadow: 0 18px 50px rgba(15, 36, 72, 0.18);
  overflow: hidden;
}

.boss-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.boss-header span {
  color: #62d8ff;
  font-size: 13px;
}

.boss-header h2 {
  margin-top: 5px;
  font-size: 25px;
  color: #fff;
}

.boss-time {
  color: #9ddcff;
  font-weight: 700;
}

.boss-main {
  display: grid;
  grid-template-columns: minmax(260px, 0.86fr) minmax(360px, 1.1fr) minmax(260px, 0.86fr);
  gap: 18px;
  align-items: stretch;
}

.boss-left,
.boss-right {
  display: grid;
  gap: 16px;
}

.boss-block {
  min-height: 185px;
  padding: 16px;
  border: 1px solid rgba(98, 216, 255, 0.18);
  border-radius: 8px;
  background: rgba(8, 31, 67, 0.72);
}

.boss-block h3 {
  margin-bottom: 14px;
  color: #8ee8ff;
  font-size: 15px;
}

.boss-center {
  display: grid;
  justify-items: center;
  align-content: center;
  min-height: 410px;
  padding: 22px;
  border: 1px solid rgba(98, 216, 255, 0.22);
  border-radius: 8px;
  background: rgba(3, 18, 42, 0.58);
  text-align: center;
}

.boss-center > span {
  color: #92dfff;
  font-weight: 700;
}

.boss-center > strong {
  display: block;
  margin-top: 18px;
  color: #fff;
  font-size: 54px;
  letter-spacing: 4px;
  text-shadow: 0 0 18px rgba(98, 216, 255, 0.82);
}

.boss-center > p {
  margin-top: 10px;
  color: #9fb9dc;
  font-size: 13px;
}

.boss-rings {
  display: grid;
  grid-template-columns: repeat(4, 92px);
  gap: 16px;
  margin-top: 30px;
}

.boss-ring {
  --ratio: 0.2;
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: conic-gradient(var(--ring-color) calc(var(--ratio) * 1turn), rgba(255, 255, 255, 0.12) 0);
  position: relative;
}

.boss-ring::after {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 50%;
  background: #082044;
}

.boss-ring span,
.boss-ring em {
  position: relative;
  z-index: 1;
  grid-area: 1 / 1;
}

.boss-ring span {
  font-size: 20px;
  font-weight: 800;
}

.boss-ring em {
  align-self: end;
  margin-bottom: 19px;
  color: #b8c8e4;
  font-style: normal;
  font-size: 12px;
}

.boss-ring span {
  align-self: start;
  margin-top: 25px;
}

.ring-green { --ring-color: #5eead4; }
.ring-blue { --ring-color: #38bdf8; }
.ring-amber { --ring-color: #f59e0b; }
.ring-purple { --ring-color: #a855f7; }

.trend-chart {
  display: flex;
  align-items: end;
  gap: 8px;
  height: 142px;
  padding-top: 10px;
}

.trend-item {
  display: grid;
  align-items: end;
  justify-items: center;
  flex: 1;
  height: 100%;
  gap: 6px;
}

.trend-item span {
  width: 100%;
  max-width: 24px;
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, #67e8f9, #2563eb);
  box-shadow: 0 0 14px rgba(103, 232, 249, 0.28);
}

.trend-item em {
  color: #91a9ca;
  font-style: normal;
  font-size: 11px;
}

.bar-list {
  display: grid;
  gap: 12px;
}

.boss-bar div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.boss-bar strong {
  overflow: hidden;
  color: #dbeafe;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.boss-bar span {
  color: #8ee8ff;
}

.boss-bar p {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.boss-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #22d3ee, #6366f1);
}

.boss-alerts {
  padding-left: 18px;
}

.boss-alerts li {
  color: #d8e9ff;
}

.chart-empty {
  color: #91a9ca;
  font-size: 13px;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: 26px;
  letter-spacing: 0;
}

.topbar p {
  margin-top: 7px;
  color: var(--muted);
}

.top-actions {
  display: flex;
  gap: 10px;
}

.primary-button,
.ghost-button,
.danger-button {
  height: 40px;
  border-radius: 8px;
  padding: 0 18px;
  cursor: pointer;
}

.primary-button {
  border: 1px solid var(--blue);
  background: var(--blue);
  color: #fff;
}

.primary-button:disabled {
  border-color: #b9c3d9;
  background: #b9c3d9;
  cursor: not-allowed;
}

.ghost-button {
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
}

.danger-button {
  border: 1px solid #f0b4b4;
  background: #fff5f5;
  color: var(--red);
}

.small-button {
  height: 34px;
  padding: 0 12px;
}

.import-panel,
.mapping-panel,
.table-panel,
.insight-panel,
.history-panel,
.team-panel,
.management-summary,
.report-panel,
.maintenance-panel,
.status-strip {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.import-panel {
  display: grid;
  grid-template-columns: 1fr 520px;
  gap: 20px;
  padding: 18px;
  margin-top: 16px;
}

.upload-box {
  display: grid;
  place-items: center;
  min-height: 138px;
  border: 1px dashed #9fb0cc;
  border-radius: 8px;
  background: linear-gradient(180deg, #fbfdff, #f4f8ff);
  cursor: pointer;
  text-align: center;
}

.upload-box input {
  display: none;
}

.upload-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 8px;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  font-size: 24px;
}

.upload-box small {
  margin-top: 6px;
  color: var(--muted);
}

.operator-box {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.operator-box label {
  display: grid;
  gap: 7px;
}

.operator-box span {
  color: var(--muted);
  font-size: 13px;
}

.operator-box p {
  color: var(--muted);
  font-size: 12px;
}

.import-settings {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-content: start;
}

.import-settings label,
.mapping-item {
  display: grid;
  gap: 7px;
}

.import-settings span,
.mapping-item span {
  color: var(--muted);
  font-size: 13px;
}

input,
select {
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--text);
  padding: 0 11px;
  outline: none;
}

input:focus,
select:focus {
  border-color: var(--blue);
}

.status-strip {
  margin-top: 16px;
  padding: 14px 18px;
}

.status-strip strong,
.status-strip span {
  display: block;
}

.status-strip span {
  margin-top: 4px;
  color: var(--muted);
}

.mapping-panel {
  margin-top: 16px;
  padding: 18px;
}

.team-panel {
  margin-top: 16px;
  padding: 18px;
}

.validation-panel {
  margin-top: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

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

.validation-item {
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.validation-item strong {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
}

.validation-item strong span {
  flex: 0 0 auto;
  padding: 3px 7px;
  border-radius: 999px;
  background: #eef2f7;
  color: var(--muted);
  font-size: 12px;
}

.validation-item p {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.5;
  font-size: 13px;
}

.validation-item.ok {
  border-color: #cfeadb;
}

.validation-item.ok strong span {
  background: #eef8f3;
  color: var(--green);
}

.validation-item.warning,
.validation-item.info {
  border-color: #ffe1a8;
}

.validation-item.warning strong span,
.validation-item.info strong span {
  background: #fff6df;
  color: #9a6700;
}

.validation-item.error {
  border-color: #ffd0d0;
}

.validation-item.error strong span {
  background: #fff2f2;
  color: var(--red);
}

.management-summary {
  margin-top: 16px;
  padding: 18px;
}

.leader-snapshot {
  margin-top: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.snapshot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.snapshot-card {
  min-height: 118px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.snapshot-card span {
  color: var(--muted);
  font-size: 13px;
}

.snapshot-card strong {
  display: block;
  margin-top: 8px;
  font-size: 20px;
  line-height: 1.25;
}

.snapshot-card p {
  margin-top: 9px;
  color: var(--muted);
  line-height: 1.45;
  font-size: 13px;
}

.report-panel {
  margin-top: 16px;
  padding: 18px;
}

.maintenance-panel {
  margin-top: 16px;
  padding: 18px;
}

.cloud-panel {
  margin-top: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.cloud-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto auto;
  gap: 10px;
  align-items: end;
}

.cloud-grid label {
  display: grid;
  gap: 6px;
}

.cloud-grid span {
  color: var(--muted);
  font-size: 12px;
}

.cloud-grid input {
  width: 100%;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  padding: 0 11px;
  outline: none;
}

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

.platform-config-panel {
  margin-top: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.account-profile-panel {
  margin-top: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.platform-config-list {
  display: grid;
  gap: 12px;
}

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

.platform-config-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.account-profile-card {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.platform-config-card strong {
  display: block;
  margin-bottom: 10px;
}

.account-profile-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.account-profile-title strong,
.account-profile-title span {
  display: block;
}

.account-profile-title strong {
  font-size: 16px;
  line-height: 1.35;
}

.account-profile-title span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.account-profile-title em {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 999px;
  background: #eaf2ff;
  color: #2254a3;
  font-style: normal;
  font-size: 12px;
}

.account-profile-fields {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 10px;
}

.account-profile-fields label {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.account-profile-fields span {
  color: var(--muted);
  font-size: 12px;
}

.platform-config-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.metric-option {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.metric-option input {
  width: 14px;
  height: 14px;
  margin: 0;
}

.metric-option span {
  font-size: 13px;
  color: var(--text);
}

.maintenance-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.file-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.file-button input {
  display: none;
}

.maintenance-note {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

.report-text {
  width: 100%;
  min-height: 260px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
  color: var(--text);
  padding: 14px;
  line-height: 1.65;
  outline: none;
}

.report-text:focus {
  border-color: var(--blue);
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.executive-line {
  margin: -4px 0 14px;
  padding: 12px 14px;
  border: 1px solid #dce5ff;
  border-radius: 8px;
  background: #f7f9ff;
  color: #34446f;
  line-height: 1.55;
}

.summary-card {
  min-height: 126px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
}

.summary-card span {
  color: var(--muted);
  font-size: 13px;
}

.summary-card strong {
  display: block;
  margin-top: 9px;
  font-size: 20px;
  line-height: 1.25;
}

.summary-card p {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.45;
  font-size: 13px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 16px;
}

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

.mode-tabs {
  display: inline-flex;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.mode-tab {
  height: 28px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  padding: 0 12px;
  cursor: pointer;
}

.mode-tab.active {
  background: #fff;
  color: var(--blue);
  font-weight: 700;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.source-banner,
.metric-hint {
  margin-bottom: 12px;
  border-radius: 8px;
  padding: 10px 12px;
  background: #f7f9ff;
  color: #4b5a8a;
  border: 1px solid #dce5ff;
  font-size: 13px;
}

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

.section-heading span {
  color: var(--muted);
  font-size: 13px;
}

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

.scope-filters {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.scope-filters label {
  display: grid;
  gap: 7px;
}

.scope-filters span {
  color: var(--muted);
  font-size: 13px;
}

.scope-filters input,
.scope-filters select {
  width: 100%;
}

.quick-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.quick-filter {
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #475467;
  padding: 0 14px;
  cursor: pointer;
}

.quick-filter.active,
.quick-filter:hover {
  border-color: #b9c7ff;
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 700;
}

.owner-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.history-list {
  display: grid;
  gap: 10px;
}

.operation-list {
  display: grid;
  gap: 10px;
}

.history-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.history-item strong {
  display: block;
  margin-bottom: 4px;
}

.history-item span {
  color: var(--muted);
  font-size: 12px;
}

.history-item button {
  height: 32px;
  border: 1px solid var(--red);
  border-radius: 8px;
  background: #fff;
  color: var(--red);
  padding: 0 12px;
  cursor: pointer;
}

.history-empty {
  color: var(--muted);
  font-size: 13px;
}

.operation-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.operation-item strong {
  display: block;
  margin-bottom: 4px;
}

.operation-item span {
  color: var(--muted);
  font-size: 12px;
}

.owner-card {
  min-height: 128px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  padding: 14px;
}

.owner-card.active {
  border-color: var(--blue);
  background: var(--blue-soft);
}

.owner-card button {
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  padding: 0;
  cursor: pointer;
}

.owner-card strong {
  display: block;
  font-size: 17px;
  margin-bottom: 10px;
}

.owner-card dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
  margin: 0;
}

.owner-card dt {
  color: var(--muted);
  font-size: 12px;
}

.owner-card dd {
  margin: 2px 0 0;
  font-weight: 700;
}

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

.metric-card {
  min-height: 88px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.metric-card span {
  color: var(--muted);
  font-size: 13px;
}

.metric-card strong {
  display: block;
  margin-top: 9px;
  font-size: 25px;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 16px;
  margin-top: 16px;
}

.table-panel,
.insight-panel {
  padding: 18px;
}

.filters {
  display: block;
  margin-bottom: 14px;
}

.filters input {
  width: 100%;
}

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

.table-actions select {
  min-width: 180px;
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  max-height: 62vh;
  scrollbar-gutter: stable both-edges;
}

table {
  width: 100%;
  min-width: 1050px;
  border-collapse: collapse;
  background: #fff;
}

th,
td {
  height: 46px;
  border-bottom: 1px solid var(--line);
  padding: 0 14px;
  text-align: left;
  white-space: nowrap;
  font-size: 13px;
}

th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--panel-soft);
  color: #475467;
  font-weight: 700;
}

tbody tr:hover {
  background: #fbfdff;
}

td.title-cell {
  max-width: 270px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.empty-cell {
  color: var(--muted);
  text-align: center;
}

.quality-pill {
  display: inline-flex;
  align-items: center;
  height: 24px;
  border-radius: 7px;
  padding: 0 8px;
  background: #eef8f3;
  color: var(--green);
  font-weight: 700;
}

.quality-pill.low {
  background: #fff2f2;
  color: var(--red);
}

.tag {
  display: inline-flex;
  align-items: center;
  height: 24px;
  border-radius: 7px;
  padding: 0 8px;
  background: #f2f4f7;
  color: #667085;
  font-weight: 700;
}

.tag-strong {
  background: #fff3d8;
  color: #a35d00;
}

.tag-good {
  background: #eef8f3;
  color: var(--green);
}

.tag-potential {
  background: #edf5ff;
  color: #2268c9;
}

.tag-risk {
  background: #fff2f2;
  color: var(--red);
}

.insight-panel {
  align-self: start;
}

.compact {
  margin-bottom: 10px;
}

.rank-block {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.rank-block:first-of-type {
  border-top: 0;
}

.rank-block h3 {
  margin-bottom: 10px;
  color: #475467;
  font-size: 14px;
}

ol,
ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
}

li {
  color: var(--muted);
  line-height: 1.45;
}

li strong {
  color: var(--text);
}

.account-row {
  display: grid;
  gap: 2px;
}

.account-row span {
  color: var(--muted);
  font-size: 12px;
}

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

.audit-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.78fr);
  gap: 16px;
  margin-top: 16px;
}

.audit-grid .history-panel {
  padding: 18px;
}

.dimension-card {
  min-height: 128px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  padding: 14px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.dimension-card:hover {
  border-color: var(--blue);
  background: var(--blue-soft);
}

.dimension-card strong {
  display: block;
  font-size: 17px;
  margin-bottom: 10px;
}

.dimension-card dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
  margin: 0;
}

.dimension-card dt {
  color: var(--muted);
  font-size: 12px;
}

.dimension-card dd {
  margin: 2px 0 0;
  font-weight: 700;
}

@media (max-width: 1300px) {
  .leader-filter-panel {
    display: grid;
  }

  .leader-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cloud-grid {
    grid-template-columns: 1fr;
  }

  .import-panel {
    grid-template-columns: 1fr;
  }

  .content-grid {
    grid-template-columns: 1fr;
  }

  .summary-grid,
  .snapshot-grid,
  .account-profile-list,
  .validation-list,
  .audit-grid {
    grid-template-columns: 1fr;
  }

  .account-profile-fields {
    grid-template-columns: 1fr;
  }

  .scope-filters,
  .owner-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .platform-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
