/* Dashboard tiles in light UNN profile colors */

.tiles-wrap {
  margin-top: 14px;
  padding: 18px;
  border-radius: 18px;
  background:
    radial-gradient(900px 420px at 15% 8%, rgba(10, 122, 164, 0.12), transparent 62%),
    radial-gradient(700px 420px at 85% 92%, rgba(124, 184, 171, 0.1), transparent 65%),
    linear-gradient(165deg, rgba(255, 255, 255, 0.99), rgba(247, 251, 253, 0.99));
  border: 1px solid var(--app-border);
  box-shadow: var(--app-shadow-shell);
}

.tiles-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.tiles-head h1 {
  margin: 0;
  font-size: 20px;
  font-weight: 750;
  letter-spacing: 0.2px;
  color: var(--app-heading);
}

.tiles-head p {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--app-text-muted);
}

.tiles-section-head {
  margin: 10px 0 10px;
}

.tiles-section-head h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--app-heading);
}

.tiles-section-head p {
  margin: 4px 0 0;
  font-size: 12.5px;
  color: var(--app-text-muted);
}

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

@media (max-width: 1200px) {
  .tiles-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .tiles-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
  .tiles-grid { grid-template-columns: 1fr; }
}

.tiles-empty {
  padding: 18px;
  border-radius: 14px;
  border: 1px dashed rgba(10, 122, 164, 0.35);
  color: var(--app-text-muted);
  text-align: center;
  background: rgba(255, 255, 255, 0.75);
}

.tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  min-height: 190px;
  padding: 22px 18px;
  border-radius: 18px;
  border: 1px solid var(--app-border);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.98), rgba(243, 248, 251, 0.98));
  box-shadow: 0 10px 24px rgba(40, 82, 142, 0.12);
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.tile:hover {
  transform: translateY(-3px);
  border-color: rgba(10, 122, 164, 0.45);
  background: linear-gradient(165deg, rgba(255, 255, 255, 1), rgba(232, 243, 248, 0.94));
  box-shadow: 0 14px 30px rgba(40, 82, 142, 0.18);
}

.tile:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 0.24rem rgba(10, 122, 164, 0.25),
    0 14px 30px rgba(40, 82, 142, 0.18);
}

.tile-locked {
  opacity: 0.9;
  border-color: rgba(51, 63, 72, 0.16);
}

.tile-locked:hover {
  transform: none;
  border-color: rgba(51, 63, 72, 0.2);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.98), rgba(243, 248, 251, 0.98));
  box-shadow: 0 10px 24px rgba(40, 82, 142, 0.12);
}

.tile-icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  border: 1px solid rgba(10, 122, 164, 0.26);
  background: linear-gradient(145deg, rgba(10, 122, 164, 0.12), rgba(124, 184, 171, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.tile-icon img {
  width: 78%;
  height: 78%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 4px 10px rgba(40, 82, 142, 0.2));
}

.tile-icon-fallback {
  color: var(--app-accent-strong);
  font-weight: 800;
  font-size: 26px;
}

.tile-meta {
  width: 100%;
}

.tile-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--app-heading);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tile-desc {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--app-text-muted);
  line-height: 1.45;
  min-height: 38px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tile-foot {
  margin-top: auto;
  width: 100%;
  display: flex;
  justify-content: center;
}

.tile-open {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--app-accent-strong);
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(10, 122, 164, 0.3);
  background: rgba(255, 255, 255, 0.86);
  letter-spacing: 0.2px;
}

.tile-open-login {
  color: var(--app-accent-strong);
  text-decoration: none;
  border-color: rgba(10, 122, 164, 0.34);
}

.tile-open-login:hover {
  color: var(--app-accent);
  border-color: rgba(10, 122, 164, 0.52);
  background: rgba(10, 122, 164, 0.12);
}
