.xm-dashboard {
  color: #101827;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.98), rgba(238, 242, 246, 1) 34%),
    #eef2f6;
}

.xm-dashboard,
.xm-dashboard button,
.xm-dashboard input,
.xm-dashboard select,
.xm-dashboard textarea {
}

.xm-dashboard #sidebar,
.xm-dashboard #sidebar * {
}

.xm-dashboard .workspace {
  min-width: 0;
  padding: 8px 32px 0;
}

.xm-dashboard .page-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin: 4px 0 8px;
}

.xm-dashboard .page-head h1 {
  margin: 0;
  font-size: clamp(28px, 2.2vw, 34px);
  line-height: 1.08;
  letter-spacing: -0.05em;
  font-weight: 900;
  color: #101827;
}

.xm-dashboard .page-head h1 span {
  color: #ff9600;
}

.xm-dashboard .eyebrow {
  display: block;
  margin-bottom: 4px;
  font-size: 11px;
  letter-spacing: 0.15em;
  font-weight: 800;
  color: #7f8897;
  text-transform: uppercase;
}

.xm-dashboard .head-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.xm-dashboard .icon-btn {
  position: relative;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  color: #172335;
  display: grid;
  place-items: center;
  border-radius: 50%;
  padding: 0;
}

.xm-dashboard .icon-btn .badge {
  position: absolute;
  top: -1px;
  right: -1px;
  min-width: 16px;
  height: 16px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #ff9300;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  box-shadow: 0 2px 6px rgba(255, 147, 0, 0.34);
}

.xm-dashboard .avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #586575;
  background: linear-gradient(180deg, #d7dde5, #b7c0cc);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.38);
}

.xm-dashboard .stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 8px;
}

.xm-dashboard .stat-card {
  min-height: 68px;
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background: #ffffff;
  border: 1px solid #e4e8ef;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(15, 17, 17, 0.04), 0 8px 24px rgba(15, 17, 17, 0.04);
}

.xm-dashboard .stat-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.xm-dashboard .stat-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  font-size: 15px;
}

.xm-dashboard .stat-icon.mint {
  background: linear-gradient(180deg, #dff3ea, #caebde);
  color: #2b8b59;
}

.xm-dashboard .stat-icon.rose {
  background: linear-gradient(180deg, #fae1df, #f7d2d0);
  color: #e0554e;
}

.xm-dashboard .stat-icon.sky {
  background: linear-gradient(180deg, #e2f1ff, #cde4ff);
  color: #2f8bea;
}

.xm-dashboard .stat-icon.amber {
  background: linear-gradient(180deg, #ffe9c7, #ffe0ae);
  color: #ec8e00;
}

.xm-dashboard .stat-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.xm-dashboard .stat-label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7b8796;
  font-weight: 800;
}

.xm-dashboard .stat-value {
  font-size: 22px;
  line-height: 1;
  font-weight: 900;
  color: #112033;
}

.xm-dashboard .stat-note {
  font-size: 11px;
  font-weight: 700;
}

.xm-dashboard .stat-note.green {
  color: #54a56a;
}

.xm-dashboard .stat-note.orange {
  color: #ff8d12;
}

.xm-dashboard .sparkline {
  width: 96px;
  height: 36px;
  flex: 0 0 auto;
}

.xm-dashboard .sparkline path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.xm-dashboard .content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.72fr) minmax(360px, 0.95fr);
  gap: 10px;
  align-items: start;
}

.xm-dashboard .left-col,
.xm-dashboard .right-col {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.xm-dashboard .panel {
  background: #ffffff;
  border: 1px solid #e3e8ef;
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(15, 17, 17, 0.04), 0 8px 24px rgba(15, 17, 17, 0.04);
  padding: 10px;
  min-width: 0;
}

.xm-dashboard .section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 16px;
  font-weight: 900;
  color: #111c2b;
}

.xm-dashboard .section-title::before {
  content: "";
  width: 10px;
  height: 2px;
  border-radius: 999px;
  background: #ff9600;
}

.xm-dashboard .section-title.inline {
  margin-bottom: 0;
}

.xm-dashboard .tab-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 8px;
}

.xm-dashboard .tab-pill {
  height: 34px;
  border-radius: 6px;
  border: 1px solid #dbe2eb;
  background: linear-gradient(180deg, #ffffff, #fafcff);
  color: #344257;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  padding: 0 10px;
}

.xm-dashboard .tab-pill i {
  color: #ff8c1b;
  font-size: 13px;
}

.xm-dashboard .tab-pill.active {
  border-color: #d8e8ff;
  background: linear-gradient(180deg, #ebf4ff, #e2eefc);
  color: #1a4b90;
}

.xm-dashboard .search-row {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.xm-dashboard .search-box {
  flex: 1 1 auto;
  height: 36px;
  border-radius: 6px;
  border: 1px solid #dbe2eb;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
}

.xm-dashboard .search-box input {
  flex: 1 1 auto;
  min-height: 100%;
  border: none;
  outline: none;
  width: 100%;
  color: #263241;
  background: transparent;
  box-shadow: none;
}

.xm-dashboard .search-box input::placeholder {
  color: #8e98a8;
}

.xm-dashboard .search-box input:focus,
.xm-dashboard .search-box input:focus-visible {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

.xm-dashboard .search-glyph {
  width: 16px;
  height: 16px;
  color: #ff8c1b;
}

.xm-dashboard .search-btn {
  border: none;
  background: linear-gradient(180deg, #ffd814 0%, #f3a847 46%, #ff9900 100%);
  color: #111;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 2px 5px rgba(213, 126, 0, 0.22);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.xm-dashboard .search-btn:hover,
.xm-dashboard .tool-card:hover,
.xm-dashboard .row-action:hover,
.xm-dashboard .tab-pill:hover,
.xm-dashboard .quick-search-chip:hover,
.xm-dashboard .back-top:hover {
  transform: translateY(-1px);
}

.xm-dashboard .search-btn {
  height: 36px;
  min-width: 92px;
  border-radius: 6px;
  padding: 0 14px;
  flex: 0 0 auto;
}

.xm-dashboard .quick-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding-left: 2px;
  margin-bottom: 6px;
  font-size: 12px;
  color: #7c8695;
}

.xm-dashboard .quick-tags span {
  font-weight: 700;
}

.xm-dashboard .quick-search-chip {
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid #dce9fb;
  background: #eef5ff;
  color: #3877c1;
  font-size: 12px;
  font-weight: 700;
}

.xm-dashboard .feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.xm-dashboard .feature-card {
  min-height: 46px;
  border-radius: 8px;
  border: 1px solid #dbe3ed;
  background: linear-gradient(180deg, #fff, #fbfcfe);
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 7px 8px;
  box-shadow: 0 1px 2px rgba(15, 17, 17, 0.03);
}

.xm-dashboard .feature-ico,
.xm-dashboard .tool-ico {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: linear-gradient(180deg, #fff7ea, #fff1dc);
  color: #ff8d11;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.xm-dashboard .feature-copy h3,
.xm-dashboard .feed-copy h3,
.xm-dashboard .success-case {
  margin: 0;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 800;
  color: #253246;
}

.xm-dashboard .feature-copy p,
.xm-dashboard .feed-copy p,
.xm-dashboard .success-name {
  margin: 3px 0 0;
  font-size: 11px;
  line-height: 1.45;
  color: #7d8797;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.xm-dashboard .table-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
}

.xm-dashboard .table-head.compact {
  margin-bottom: 10px;
}

.xm-dashboard .table-head h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 900;
  color: #122033;
}

.xm-dashboard .table-head a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #2e77c7;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
}

.xm-dashboard .table-wrap {
  overflow: auto;
  border-radius: 8px;
  border: 1px solid #e4e8ef;
}

.xm-dashboard .cases-table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
  font-size: 12px;
}

.xm-dashboard .cases-table thead th {
  background: linear-gradient(180deg, #223043, #182636);
  color: rgba(255, 255, 255, 0.92);
  text-align: left;
  padding: 6px 8px;
  font-size: 11px;
  font-weight: 800;
}

.xm-dashboard .cases-table tbody td {
  border-bottom: 1px solid #edf1f5;
  padding: 5px 8px;
  white-space: nowrap;
  color: #2a3443;
}

.xm-dashboard .cases-table tbody tr:hover {
  background: #f8fbff;
}

.xm-dashboard .row-action,
.xm-dashboard .row-tag {
  min-width: 30px;
  height: 20px;
  padding: 0 8px;
  border-radius: 4px;
  border: none;
  background: linear-gradient(180deg, #ffc54f, #ff9a06);
  color: #37270d;
  font-size: 11px;
  font-weight: 800;
}

.xm-dashboard .row-tag {
  min-width: 34px;
}

.xm-dashboard .link {
  color: #2a7dcb;
  font-weight: 700;
  text-decoration: none;
}

.xm-dashboard .status {
  color: #3f4a58;
}

.xm-dashboard .tool-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 6px;
}

.xm-dashboard .tool-card {
  min-height: 76px;
  padding: 6px 7px;
  border-radius: 8px;
  border: 1px solid #dce3ec;
  background: linear-gradient(180deg, #ffffff, #fbfcfe);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(15, 17, 17, 0.03);
}

.xm-dashboard .tool-card::before,
.xm-dashboard .tool-card:hover::before {
  content: none !important;
  display: none !important;
}

.xm-dashboard .tool-label {
  font-size: 12px;
  font-weight: 700;
  color: #3b4656;
  text-align: center;
}

.xm-dashboard .bottom-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(280px, 1.1fr) !important;
  gap: 16px !important;
  align-items: stretch;
  width: 100%;
}

.xm-dashboard .bottom-full-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(280px, 1.1fr);
  gap: 16px;
  align-items: stretch;
  width: 100%;
}

.xm-dashboard .list-panel {
  min-height: 136px;
}

.xm-dashboard .feed-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 5px 6px;
  border: 1px solid #edf1f5;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #fbfcfe);
  text-decoration: none;
  color: inherit;
}

.xm-dashboard .feed-item + .feed-item {
  margin-top: 4px;
}

.xm-dashboard .thumb {
  width: 34px;
  height: 28px;
  flex: 0 0 auto;
  border-radius: 4px;
  background-size: cover;
  background-position: center;
}

.xm-dashboard .thumb-a {
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(37, 99, 235, 0.42)),
    linear-gradient(180deg, #27406b, #132033);
}

.xm-dashboard .thumb-b {
  background:
    linear-gradient(135deg, rgba(250, 179, 67, 0.9), rgba(255, 255, 255, 0.15)),
    linear-gradient(180deg, #f1dfc0, #e2c59a);
}

.xm-dashboard .thumb-c {
  background:
    linear-gradient(135deg, rgba(78, 124, 196, 0.75), rgba(18, 29, 46, 0.7)),
    linear-gradient(180deg, #dfe9f7, #bcd0ea);
}

.xm-dashboard .thumb-d {
  background:
    linear-gradient(135deg, rgba(238, 144, 90, 0.9), rgba(252, 244, 230, 0.4)),
    linear-gradient(180deg, #f1dccb, #e9be9f);
}

.xm-dashboard .thumb-e {
  background:
    linear-gradient(135deg, rgba(40, 44, 61, 0.88), rgba(255, 164, 32, 0.42)),
    linear-gradient(180deg, #d9dbe0, #b0b6c2);
}

.xm-dashboard .success-item {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
  padding: 6px 7px;
  border: 1px solid #edf1f5;
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, #fbfcfe);
  text-decoration: none;
  color: inherit;
}

.xm-dashboard .success-item + .success-item {
  margin-top: 4px;
}

.xm-dashboard .open-pill {
  min-width: 42px;
  height: 22px;
  border-radius: 999px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff3e2;
  color: #ff9a0a;
  font-size: 11px;
  font-weight: 800;
  flex: 0 0 auto;
}

.xm-dashboard .footer-bar {
  margin-top: 14px;
  background: linear-gradient(180deg, #233145 0%, #182536 100%);
  color: rgba(239, 245, 252, 0.9);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}
  margin-top: 14px;
  background: linear-gradient(180deg, #233145 0%, #182536 100%);
  color: rgba(239, 245, 252, 0.9);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.xm-dashboard .footer-shell {
  min-height: 74px;
  padding: 12px 18px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 18px;
}

.xm-dashboard .footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.xm-dashboard .footer-mark {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #243247 0%, #1a2435 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.xm-dashboard .brand-name {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #f8fbff;
}

.xm-dashboard .brand-subtitle {
  margin-top: 2px;
  font-size: 12px;
  color: rgba(233, 239, 248, 0.72);
}

.xm-dashboard .footer-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.xm-dashboard .footer-nav {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12px;
  color: rgba(239, 245, 252, 0.88);
}

.xm-dashboard .footer-nav a,
.xm-dashboard .footer-links-right a {
  color: inherit;
  text-decoration: none;
}

.xm-dashboard .footer-copy {
  font-size: 11px;
  color: rgba(231, 238, 247, 0.64);
}

.xm-dashboard .footer-contact {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: 16px;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.xm-dashboard .contact-title {
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
}

.xm-dashboard .contact-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
}

.xm-dashboard .contact-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(233, 240, 249, 0.82);
  font-size: 11px;
  white-space: nowrap;
}

.xm-dashboard .footer-links-right {
  display: flex;
  gap: 14px;
  font-size: 11px;
  color: rgba(233, 240, 249, 0.68);
  flex-wrap: wrap;
}

.xm-dashboard .back-top {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  display: grid;
  place-items: center;
}

@media (max-width: 1360px) {
  .xm-dashboard .content-grid {
    grid-template-columns: 1fr;
  }

  .xm-dashboard .settlement-body {
    grid-template-columns: 1fr;
  }

  .xm-dashboard .stats-grid,
  .xm-dashboard .feature-grid,
  .xm-dashboard .tool-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }
}

@media (max-width: 980px) {
  .xm-dashboard .workspace {
    padding: 12px;
  }

  .xm-dashboard .stats-grid,
  .xm-dashboard .feature-grid,
  .xm-dashboard .tool-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .xm-dashboard .bottom-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .xm-dashboard .bottom-grid .list-panel:last-child {
    grid-column: 1 / -1;
  }

  .xm-dashboard .bottom-full-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .xm-dashboard .bottom-full-grid .list-panel:last-child {
    grid-column: 1 / -1;
  }

  .xm-dashboard .tab-row {
    grid-template-columns: 1fr;
  }

  .xm-dashboard .footer-shell {
    grid-template-columns: 1fr;
  }

  .xm-dashboard .footer-contact {
    padding-left: 0;
    border-left: 0;
  }
}

@media (max-width: 720px) {
  .xm-dashboard .page-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .xm-dashboard .search-row {
    flex-direction: column;
  }

  .xm-dashboard .search-btn {
    width: 100%;
  }

  .xm-dashboard .stats-grid,
  .xm-dashboard .feature-grid,
  .xm-dashboard .tool-grid {
    grid-template-columns: 1fr;
  }

  .xm-dashboard .bottom-grid {
    grid-template-columns: 1fr !important;
  }

  .xm-dashboard .bottom-grid .list-panel:last-child {
    grid-column: auto;
  }

  .xm-dashboard .bottom-full-grid {
    grid-template-columns: 1fr;
  }

  .xm-dashboard .bottom-full-grid .list-panel:last-child {
    grid-column: auto;
  }

  .xm-dashboard .footer-shell {
    padding: 16px 14px 18px;
  }
}
