/* ECG Portal — launcher-specific styles on top of the shared design system. */
.portal-wrap { max-width: 1000px; margin: 0 auto; padding: 40px 20px 64px; }
.portal-hero h1 { font-size: 26px; margin: 0 0 4px; color: var(--text); }
.portal-hero p { color: var(--text-muted); margin: 0 0 28px; }

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

.tile {
  display: flex; gap: 14px; align-items: flex-start; text-decoration: none;
  background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 18px; transition: box-shadow .12s, transform .12s, border-color .12s;
}
.tile:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); border-color: var(--brand-ring); }
.tile-badge {
  flex: none; width: 46px; height: 46px; border-radius: 12px; display: inline-flex;
  align-items: center; justify-content: center; font-weight: 800; font-size: 15px;
  background: var(--brand-soft); color: var(--brand); letter-spacing: .02em;
}
.tile-body { min-width: 0; }
.tile-name { font-weight: 700; color: var(--text); display: flex; align-items: center; gap: 8px; }
.tile-desc { font-size: 13px; color: var(--text-muted); margin-top: 3px; line-height: 1.45; }
.tile-badge-status {
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  padding: 1px 7px; border-radius: 999px;
}
.status-down { background: #fff7ed; color: var(--amber); }

/* Locked / no-access tiles: greyed out, not clickable. */
.tile.locked { opacity: .55; filter: grayscale(.4); cursor: not-allowed; pointer-events: none; }
.tile.locked .tile-badge { background: var(--surface-subtle); color: var(--text-light); }
.lock-note { font-size: 11px; color: var(--text-light); margin-top: 6px; display: inline-flex; align-items: center; gap: 4px; }

/* Login card */
.login-wrap { min-height: calc(100vh - var(--nav-h)); display: grid; place-items: center; padding: 24px; }
.login-card { width: 100%; max-width: 380px; }
.login-card h1 { font-size: 20px; margin: 0 0 4px; color: var(--text); }
.login-card p.sub { color: var(--text-muted); font-size: 13px; margin: 0 0 20px; }

/* User button in the topbar */
.pt-userbtn { display: inline-flex; align-items: center; gap: 10px; }
.pt-avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--brand); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; }
