.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}

.tnr-tile {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.tnr-tile:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  background: var(--surface-2);
  text-decoration: none;
}

.tnr-tile-icon {
  font-size: 28px;
}

.tnr-tile-title {
  font-weight: 700;
  font-size: 17px;
}

.tnr-tile-desc {
  color: var(--text-dim);
  font-size: 13px;
  flex: 1;
}

.tnr-tile-placeholder {
  opacity: 0.55;
  border-style: dashed;
  cursor: default;
  pointer-events: none;
}

.tnr-tile .tnr-badge {
  position: absolute;
  top: 14px;
  right: 14px;
}

/* ─── Welcome header ─────────────────────────────────────────────────── */
/* Tight compact welcome. Identity info (email, role, logout) lives in
   the top nav — see shared/ui/header.js — so the main content just has
   a one-line title above the tile grid. The verbose identity card that
   used to sit above the grid was removed 2026-07-26 for wasting too
   much space above the fold. */
.portal-welcome {
  margin-bottom: 24px;
}

/* ─── Sectioned tile grid ─────────────────────────────────────────────── */
/* Each section (Retail / Management / Upper / Other) gets a heading and
   its own .tile-grid inside #tile-grid. Sections stack vertically with
   comfortable spacing. */
.portal-section + .portal-section {
  margin-top: 28px;
}

.portal-section-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin: 0 0 12px 0;
  padding: 0 2px 8px 2px;
  border-bottom: 1px solid var(--border);
}
