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

.stat {
  background: var(--panel);
  border: 1px solid rgba(60, 60, 67, 0.12);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 12px 28px var(--shadow);
  animation: cardIn 0.34s ease both;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.stat:hover,
.item-card:hover,
.surface:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px var(--shadow);
}

.stat span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.stat strong {
  display: block;
  margin-top: 8px;
  color: var(--ink);
  font-size: 28px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.4fr);
  gap: 14px;
  align-items: start;
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
}

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

.module-launcher-utility {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
}

.module-launcher-support {
  width: min(100%, 520px);
}

.module-launcher {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 104px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 16px;
  color: var(--text);
  background: var(--row-bg);
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  box-shadow: 0 10px 24px var(--shadow);
  text-align: right;
  white-space: normal;
}

.module-launcher > span:nth-child(2) {
  min-width: 0;
}

.module-launcher:hover {
  color: var(--blue);
  background: var(--blue-soft);
  border-color: var(--blue);
}

.module-launcher-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--brand-bg);
  border-radius: 13px;
  font-size: 20px;
}

.module-launcher strong,
.module-launcher small {
  display: block;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}

.module-launcher small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

@media (max-width: 900px) {
  .module-launcher-grid { grid-template-columns: 1fr; }
}

.grid-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

.compact-list {
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

.compact-list .item-card {
  padding: 10px;
}

.item-card {
  background: var(--panel);
  border: 1px solid rgba(60, 60, 67, 0.12);
  border-radius: 18px;
  padding: 14px;
  display: grid;
  gap: 10px;
  box-shadow: 0 10px 26px var(--shadow);
  animation: cardIn 0.34s ease both;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.item-card h3 {
  margin: 0;
  font-size: 16px;
  color: var(--ink);
}

.item-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}
