/* Portal-only styles, on top of fhc-theme.css */

/* user chip in header */
.user-chip { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.user-chip .avatar {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  font-size: 12.5px; font-weight: 600; color: #fff;
  background: linear-gradient(135deg, hsl(var(--brand-blue)), hsl(var(--brand-navy)));
}
.user-chip .who { line-height: 1.2; }
.user-chip .who small { display: block; color: hsl(var(--muted-foreground)); font-size: 12px; }

/* app tiles */
.tile {
  --tile: var(--primary);
  position: relative; display: flex; flex-direction: column; gap: 18px; min-height: 186px;
  padding: 22px; text-decoration: none; color: inherit;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
a.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: hsl(var(--tile) / .45); }
a.tile:active { transform: translateY(-1px); }
.tile .icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: hsl(var(--tile) / .12); color: hsl(var(--tile));
}
.tile .icon svg { width: 26px; height: 26px; }
.tile .name { font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.tile .desc { font-size: 13.5px; color: hsl(var(--muted-foreground)); margin-top: 3px; padding-right: 38px; }
.tile .go {
  position: absolute; right: 20px; bottom: 20px; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; background: hsl(var(--muted)); color: hsl(var(--muted-foreground));
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.tile .go svg { width: 15px; height: 15px; }
a.tile:hover .go { background: hsl(var(--tile)); color: #fff; transform: translateX(2px); }
.tile.disabled { cursor: default; }
.tile.disabled .icon, .tile.disabled .name, .tile.disabled .desc { opacity: .55; }
.tile .fhc-badge { position: absolute; top: 18px; right: 18px; }
.empty { text-align: center; padding: 40px; color: hsl(var(--muted-foreground)); }
.section-label { margin: 34px 0 14px; }

/* sign-in + message pages: navy brand backdrop with logo arrows' colors */
body.auth {
  display: grid; place-items: center; padding: 24px;
  background:
    radial-gradient(900px 500px at 12% 0%, hsl(var(--brand-blue) / .35), transparent 60%),
    radial-gradient(700px 420px at 100% 100%, hsl(var(--brand-red) / .22), transparent 60%),
    hsl(var(--brand-navy));
}
.auth-card { width: 100%; max-width: 410px; padding: 36px 32px; box-shadow: 0 24px 60px -12px #00000080; }
.auth-card .logo { display: block; height: 64px; margin: 0 auto 22px; }
.auth-card .logo-dark { display: none; }
.dark .auth-card .logo-light { display: none; }
.dark .auth-card .logo-dark { display: block; }
.auth-card h1 { font-size: 24px; text-align: center; }
.auth-card .lead { text-align: center; color: hsl(var(--muted-foreground)); margin: 6px 0 24px; }
.auth-card .fine { font-size: 12.5px; color: hsl(var(--muted-foreground)); text-align: center; margin-top: 20px; }
.auth-card p { margin-bottom: 14px; }
.auth-card form { display: grid; gap: 14px; }
.ms-logo { width: 18px; height: 18px; }
