/* Auth gate + titlebar/tenant/help hover refinements */

.public-shell {
  grid-template-columns: 58px 1fr;
}

.public-main {
  grid-template-rows: 64px 1fr;
}

.icon-rail.compact .brand-mark {
  margin-top: 15px;
}

.public-content {
  min-height: 0;
  overflow: auto;
  height: 100%;
  background:
    radial-gradient(circle at 18% 18%, var(--accent-auth-glow), transparent 24rem),
    radial-gradient(circle at 78% 14%, var(--blue-auth-glow), transparent 22rem),
    var(--bg);
}

.public-landing {
  min-height: calc(100vh - 64px);
  display: grid;
  place-items: center;
  padding: 42px;
}

.public-card {
  width: min(720px, 100%);
  background: var(--panel);
  border: var(--border-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 42px 48px;
}

.public-kicker {
  color: var(--accent);
  text-transform: uppercase;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .08em;
  margin-bottom: 14px;
}

.public-card h1 {
  margin: 0;
  max-width: 620px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.08;
  color: var(--text-strong);
  letter-spacing: -.035em;
}

.public-card p {
  margin: 18px 0 0;
  max-width: 560px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.public-actions {
  margin-top: 28px;
  display: flex;
  gap: 12px;
}

.public-maintenance {
  display: grid;
  gap: 4px;
  margin-top: 18px;
  text-align: left;
}

.public-maintenance strong {
  color: var(--text-strong);
}

.public-maintenance span {
  color: var(--text);
}

.public-footnote {
  margin-top: 22px;
  color: var(--muted);
  font-size: 13px;
}

/* Tenant: no field border. Only Titlebar decides whether it is rendered/dropdown. */
.tenant-selector {
  position: relative;
  height: auto;
  min-width: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
  gap: 15px;
}

.tenant-name-button {
  border: 0;
  background: transparent;
  color: var(--text-strong);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font: inherit;
  font-weight: 700;
  padding: 8px 10px;
  margin: -8px -10px;
  border-radius: 7px;
  cursor: pointer;
  transition: background-color .12s ease, color .12s ease, box-shadow .12s ease;
}

/* Help/account should feel button-like only on interaction. */
.titlebar-link,
.account-pill {
  padding: 8px 10px;
  margin: -8px -10px;
  border-radius: 7px;
  transition: background-color .12s ease, color .12s ease, box-shadow .12s ease;
  cursor: pointer;
}

.tenant-name-button:hover,
.titlebar-link:hover,
.account-pill:hover,
.context-menu-wrap:focus-within .account-pill {
  background: var(--titlebar-hover-bg);
  color: var(--text-strong);
  box-shadow: inset 0 0 0 1px rgba(var(--shadow-color-rgb), .04);
}

.dropdown-menu {
  animation: dropdown-in .08s ease-out;
  padding: 6px;
}

.dropdown-item {
  border-radius: 6px;
  transition: background-color .12s ease, color .12s ease;
}

.dropdown-item:hover,
.dropdown-item.active {
  background: var(--accent-hover-bg);
  color: var(--text-strong);
}

.dropdown-item.active {
  font-weight: 700;
}

.tenant-menu {
  min-width: 230px;
  right: inherit;
  left: 0;
}

.tenant-menu .dropdown-item {
  justify-content: space-between;
}

@keyframes dropdown-in {
  from {
    opacity: 0;
    transform: translateY(-3px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
