:root {
  --bg-top: #131a23;
  --bg-bottom: #0d1218;
  --panel-text: #eaf1fb;
  --panel-muted: #aab9cd;
  --pill-text: rgba(235, 242, 255, 0.92);

  --tile-radius: 24px;
  --tile-shadow: 0 10px 24px rgba(0, 0, 0, 0.30);
  --tile-shadow-hover: 0 16px 34px rgba(0, 0, 0, 0.42);

  --tile-min-width: 250px;
  --tile-height: 298px;

  --icon-wrap-size: 110px;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--panel-text);
  background:
    radial-gradient(circle at top center, rgba(92, 132, 198, 0.16), transparent 34%),
    linear-gradient(to bottom, var(--bg-top) 0%, var(--bg-bottom) 100%);
}

.shell {
  max-width: 1460px;
  margin: 0 auto;
  padding: 22px 30px 28px;
}

.hero {
  margin-bottom: 18px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(76, 123, 204, 0.14);
  border: 1px solid rgba(150, 188, 255, 0.14);
  color: #a9c4ff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 0 8px;
  font-size: 34px;
  line-height: 1.05;
  font-weight: 700;
}

.hero p {
  margin: 0;
  max-width: 780px;
  color: var(--panel-muted);
  font-size: 15px;
  line-height: 1.55;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(var(--tile-min-width), 1fr));
  gap: 14px;
}

.tile {
  position: relative;
  min-height: var(--tile-height);
  border-radius: var(--tile-radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--tile-shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
  border: 1px solid rgba(255, 255, 255, 0.08);
  isolation: isolate;
}

.tile:hover {
  transform: translateY(-5px);
  box-shadow: var(--tile-shadow-hover);
  filter: brightness(1.03);
}

.tile:active {
  transform: translateY(-1px);
}

.tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to bottom,
      rgba(255,255,255,0.12) 0%,
      rgba(255,255,255,0.05) 22%,
      rgba(255,255,255,0.02) 40%,
      rgba(0,0,0,0.15) 100%
    );
  pointer-events: none;
  z-index: 0;
}

.tile-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 14px 16px 14px;
}

.tile-top {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  margin-bottom: 4px;
}

.tile-icon-wrap {
  width: var(--icon-wrap-size);
  height: var(--icon-wrap-size);
  display: grid;
  place-items: center;
  border-radius: 18px;
  padding: 10px;
  background:
    linear-gradient(
      to bottom,
      rgba(255,255,255,0.25),
      rgba(255,255,255,0.11)
    );
  border: 1px solid rgba(255,255,255,0.30);
  box-shadow:
    inset 0 2px 3px rgba(255,255,255,0.28),
    inset 0 -8px 10px rgba(0,0,0,0.18),
    0 3px 6px rgba(0,0,0,0.24);
}

.tile-icon {
  width: 72px;
  height: 72px;
  object-fit: contain;
  display: block;
  transform: scale(1.12);
  transform-origin: center;
}

.tile-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.tile-title {
  font-size: 20px;
  font-weight: 700;
  margin: 4px 0 10px;
  line-height: 1.05;
}

.tile-desc {
  margin: 0;
  color: rgba(242, 247, 255, 0.90);
  font-size: 12px;
  line-height: 1.45;
  max-width: 95%;
}

.tile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 18px;
  font-size: 12px;
  color: var(--pill-text);
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.10);
  white-space: nowrap;
  font-weight: 600;
}

.meta-pill.is-loading {
  opacity: 0.72;
}

.meta-pill.is-error {
  background: rgba(140, 59, 76, 0.46);
  border-color: rgba(255, 182, 193, 0.18);
}

.theme-inventory {
  background:
    linear-gradient(
      to bottom,
      #6f95d0 0%,
      #4e79ba 38%,
      #345d99 70%,
      #274e87 100%
    );
}

.theme-metadata {
  background:
    linear-gradient(
      to bottom,
      #7395ca 0%,
      #5278ab 40%,
      #3c5f8d 72%,
      #2d4e76 100%
    );
}

.theme-workflow {
  background:
    linear-gradient(
      to bottom,
      #7394ca 0%,
      #4f76a9 42%,
      #39598a 72%,
      #2f4e77 100%
    );
}

.theme-alert {
  background:
    linear-gradient(
      to bottom,
      #bb8d9d 0%,
      #956272 44%,
      #6d4251 74%,
      #57303d 100%
    );
}

@media (max-width: 720px) {
  .shell {
    padding: 18px 16px 24px;
  }

  .hero h1 {
    font-size: 28px;
  }

  :root {
    --tile-height: 266px;
    --icon-wrap-size: 86px;
  }

  .tile-icon {
    width: 58px;
    height: 58px;
  }
}
