.home-quick-action--disabled,
.home-section-row--disabled,
.is-action-hidden,
[data-expenses-portal][hidden] {
  display: none !important;
}

.home-section-row--disabled .home-section-row__chevron {
  opacity: 0.45;
}

.visible-actions-loading {
  width: 100%;
}

.visible-actions-loading__grid {
  display: grid;
  gap: 8px;
}

.visible-actions-loading__grid--quick {
  display: flex;
  gap: 8px;
}

.visible-actions-skeleton--quick {
  flex: 0 0 calc((100% - 16px) / 3);
  width: calc((100% - 16px) / 3);
  min-height: 74px;
  box-sizing: border-box;
}

.visible-actions-loading__grid--section,
.visible-actions-loading__grid--card {
  grid-template-columns: 1fr;
  gap: 10px;
}

@media (min-width: 520px) {
  .visible-actions-loading__grid--card {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
}

.visible-actions-skeleton {
  border-radius: 14px;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.05) 0%,
    rgba(0, 0, 0, 0.09) 50%,
    rgba(0, 0, 0, 0.05) 100%
  );
  background-size: 200% 100%;
  animation: visible-actions-shimmer 1.2s ease-in-out infinite;
}

.visible-actions-skeleton--section {
  min-height: 68px;
}

.visible-actions-skeleton--card {
  min-height: 118px;
}

.auth-page-loading {
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 240px;
  padding: 32px 16px;
}

html.auth-pending .auth-page-loading {
  display: flex;
}

.visible-actions-page-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
  padding: 32px 16px;
}

.visible-actions-page-loading__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.visible-actions-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid rgba(0, 0, 0, 0.08);
  border-top-color: var(--accent, #ff5a00);
  border-radius: 50%;
  animation: visible-actions-spin 0.8s linear infinite;
}

html.visible-actions-ready .visible-actions-loading,
html.visible-actions-ready .visible-actions-page-loading {
  display: none !important;
}

@keyframes visible-actions-shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

@keyframes visible-actions-spin {
  to {
    transform: rotate(360deg);
  }
}

.visible-actions-access-denied {
  margin: 0 0 12px;
}

/* Shared page header chrome (section hubs + feature pages) */
.prod-page-header .title {
  margin-top: 0;
}

/*
 * Sticky chrome: home logo/user menu + inner-page back/title.
 * Pull into shell top/side padding so the bar can pin under the notch with a solid bg.
 */
.home-header,
.prod-page-header {
  position: sticky;
  top: 0;
  z-index: 50;
  box-sizing: border-box;
  max-width: none;
  width: auto;
  margin-top: calc(-1 * var(--shell-pad-top, 12px));
  margin-left: calc(-1 * var(--shell-pad-x, 16px));
  margin-right: calc(-1 * var(--shell-pad-right, 16px));
  padding-top: var(--shell-pad-top, 12px);
  padding-left: var(--shell-pad-x, 16px);
  padding-right: var(--shell-pad-right, 16px);
  background: var(--bg);
  /* Separate scrolled content without a heavy chrome bar */
  box-shadow: 0 1px 0 rgba(17, 17, 17, 0.06);
}

.home-header {
  margin-bottom: 16px;
  padding-bottom: 12px;
}

.prod-page-header {
  margin-bottom: 16px;
  padding-bottom: 12px;
}

.home-header .home-user-menu {
  z-index: 60;
}

/* Shared brand block (home + manage) */
.tc-header {
  width: auto;
  max-width: 460px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  text-align: left;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.tc-logo {
  display: block;
  width: 156px;
  max-width: 48vw;
  height: auto;
  margin: 0;
}

.tc-logo-dark {
  display: none !important;
}

.tc-logo-light {
  display: block;
}

.tc-logo-wordmark {
  display: none;
  font-family: var(--font-family-base, var(--font));
  font-size: clamp(28px, 8vw, 42px);
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.04em;
  text-transform: uppercase;
  text-align: left;
}

.tc-logo-wordmark span {
  color: var(--accent);
}

.tc-tagline {
  font-family: var(--font-family-base, var(--font));
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 2px 0 0;
  text-align: left;
}
