/* Shared application shell styles. Extracted from base templates so CSP can avoid inline styles. */
/* Inline fallback so project/comment identity circles still render
   if the shared stylesheet is stale or cached on logged-in pages. */
.identity-avatar {
  --identity-size: 40px;
  --identity-base: #ddeaf8;
  --identity-accent: #123c7a;
  --identity-secondary: #6fa5e3;
  --identity-highlight: #f59e0b;
  position: relative;
  width: var(--identity-size);
  height: var(--identity-size);
  min-width: var(--identity-size);
  min-height: var(--identity-size);
  border-radius: 999px;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
  font-weight: 800;
  letter-spacing: -0.04em;
  border: 1px solid rgba(255, 255, 255, 0.68);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
  background:
    radial-gradient(circle at 82% 22%, var(--identity-highlight) 0 16%, transparent 17%),
    radial-gradient(circle at 90% 106%, var(--identity-secondary) 0 36%, transparent 37%),
    linear-gradient(-28deg, transparent 0 27%, var(--identity-accent) 27% 46%, transparent 46% 100%),
    var(--identity-base);
}

.identity-avatar.has-photo {
  background: #e9eef6;
}

.identity-avatar img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.identity-avatar__initials {
  position: relative;
  z-index: 1;
  font-size: 0.92em;
  line-height: 1;
  text-shadow: 0 1px 2px rgba(15, 23, 42, 0.18);
}

.identity-avatar--xs {
  --identity-size: 24px;
  font-size: 0.58rem;
}

.identity-avatar--sm {
  --identity-size: 32px;
  font-size: 0.66rem;
}

.identity-avatar--md {
  --identity-size: 44px;
  font-size: 0.82rem;
}

.identity-avatar--lg {
  --identity-size: 88px;
  font-size: 1.5rem;
}

.identity-pattern-0 {
  --identity-base: #ddeaf8;
  --identity-accent: #123c7a;
  --identity-secondary: #6fa5e3;
  --identity-highlight: #f59e0b;
}

.identity-pattern-1 {
  --identity-base: #e0f1ed;
  --identity-accent: #2f6f60;
  --identity-secondary: #7fc0a8;
  --identity-highlight: #f4a261;
}

.identity-pattern-2 {
  --identity-base: #ece6fb;
  --identity-accent: #5b4b8a;
  --identity-secondary: #a995d6;
  --identity-highlight: #f08a5d;
}

.identity-pattern-3 {
  --identity-base: #fdedd9;
  --identity-accent: #b45309;
  --identity-secondary: #f6c177;
  --identity-highlight: #2563eb;
}

.identity-pattern-4 {
  --identity-base: #ddeaf8;
  --identity-accent: #123c7a;
  --identity-secondary: #6fa5e3;
  --identity-highlight: #f59e0b;
}

.identity-pattern-5 {
  --identity-base: #e0f1ed;
  --identity-accent: #2f6f60;
  --identity-secondary: #7fc0a8;
  --identity-highlight: #f4a261;
}

body.dashboard-page,
body.dashboard-test-page,
body.project-settings-page,
body.project-setup-page,
body.project-create-page,
body.investigations-page,
body.records-workbook-page,
body.ai-privacy-help-page,
body.billing-page,
body.account-page,
body.workspace-members-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #f8fbff 0%, #eef7fc 54%, #f7fbff 100%);
  background-size: auto;
}

.app-shell-nav {
  position: sticky;
  top: 0;
  z-index: 1030;
  border-bottom: 1px solid #e0e5ef;
  background: rgba(248, 250, 254, 0.96);
  backdrop-filter: blur(6px);
}

.app-shell-nav .navbar {
  padding: 0.58rem 0;
}

.app-nav-inner {
  gap: 0.78rem;
}

.app-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: #0f172a;
  font-weight: 800;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.app-brand:hover {
  color: #2b3b57;
}

.app-brand-logo {
  width: 34px;
  height: 34px;
  display: block;
  flex: 0 0 auto;
  object-fit: contain;
}

.app-nav-toggle {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 12px;
  border: 1px solid #d3dbe9;
  background: #fff;
  color: #344054;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
}

.app-nav-toggle:hover {
  background: #f8fafe;
  border-color: #becbdf;
  color: #1f2e45;
}

.app-nav-toggle:focus {
  box-shadow: 0 0 0 0.2rem rgba(10, 61, 98, 0.14);
}

.app-nav-toggle-burger,
.app-nav-toggle-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: currentColor;
}

.app-nav-toggle-burger {
  flex-direction: column;
  gap: 4px;
}

.app-nav-toggle-burger span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  display: block;
}

.app-nav-toggle-chevron {
  display: none;
  font-size: 1.35rem;
  line-height: 1;
  transform: translateY(-1px);
}

.app-nav-toggle[aria-expanded="true"] .app-nav-toggle-burger {
  display: none;
}

.app-nav-toggle[aria-expanded="true"] .app-nav-toggle-chevron {
  display: inline-flex;
}

.app-nav-segment {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid #dce3ef;
  background: #f4f7fc;
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.app-nav-list {
  display: inline-flex;
  align-items: stretch;
  gap: 0;
  margin: 0;
  padding: 0;
  border-radius: 8px 0 0 8px;
  overflow: hidden;
}

.app-nav-list .nav-item {
  display: inline-flex;
}

.app-link {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  padding: 0.42rem 0.86rem;
  font-size: 0.79rem;
  font-weight: 700;
  color: #566176;
  text-decoration: none;
  border-right: 1px solid #dce3ef;
  background: transparent;
  line-height: 1.1;
  transition: background 0.16s ease, color 0.16s ease;
}

.app-link:hover {
  background: #eaf0f9;
  color: #1f2e45;
}

.app-link.is-active {
  background: #dfe7f3;
  color: #1c2a40;
}

.app-link.app-link-dot::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #f59e0b;
  display: inline-block;
  flex-shrink: 0;
}

.app-nav-more {
  display: inline-flex;
}

.app-nav-more-btn {
  border: 0;
  border-left: 1px solid #dce3ef;
  background: transparent;
  color: #59667d;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 0 0.68rem;
  font-size: 0.86rem;
  line-height: 1;
  cursor: pointer;
}

.app-nav-more-btn:hover {
  background: #eaf0f9;
  color: #1f2e45;
}

.app-notification-link {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid #d3dbe9;
  background: #fff;
  color: #475467;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
  margin-left: 0.4rem;
}

.app-notification-link:hover {
  background: #f8fafe;
  border-color: #becbdf;
  color: #1f2e45;
}

.app-notification-link.is-active,
.app-notification-link.has-unread {
  border-color: #bfd1f3;
  color: #1744ad;
  background: #eef4ff;
}

.app-notification-icon {
  width: 16px;
  height: 16px;
  display: block;
}

.app-notification-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #dc2626;
  color: #fff;
  font-size: 0.64rem;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  padding: 0 4px;
  border: 2px solid #fff;
  box-sizing: border-box;
}

.app-project-links {
  border-left: 1px dashed #d7deeb;
  padding-left: 0.7rem;
  margin-left: 0.08rem;
  gap: 0.45rem !important;
}

.app-project-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid #b9cbe3;
  background: #fff;
  color: #0a3d62;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  padding: 0.34rem 0.78rem;
  max-width: 16rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.app-project-links .app-project-action {
  border-radius: 999px;
  border-color: #b9cbe3;
  background: #fff;
  color: #0a3d62;
  min-height: 34px;
  padding: 0.3rem 0.78rem;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.05);
}

.app-project-links .app-project-action:hover {
  border-color: #9fb8d7;
  background: #f7fbff;
  color: #08314e;
}

.app-project-links .app-project-action.is-primary {
  border-color: #072a44;
  background: linear-gradient(180deg, #0a3d62, #072a44);
  color: #fff;
  box-shadow: 0 10px 20px rgba(7, 42, 68, 0.2);
}

.app-project-view-links {
  align-items: stretch;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid #d8e5f2;
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
  display: inline-flex;
  min-height: 34px;
  min-width: 0;
  overflow: hidden;
}

.app-project-view-link {
  align-items: center;
  border-bottom: 3px solid transparent;
  color: #475569;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.1;
  padding: 0.48rem 0.74rem 0.38rem;
  text-decoration: none;
  white-space: nowrap;
}

.app-project-view-link:hover,
.app-project-view-link:focus {
  background: rgba(255, 255, 255, 0.68);
  color: #0a3d62;
}

.app-project-view-link.is-active {
  background: rgba(255, 255, 255, 0.88);
  border-bottom-color: #0a3d62;
  color: #0a3d62;
}

.app-project-action {
  text-decoration: none;
  border-radius: 8px;
  border: 1px solid #d0d9e8;
  background: #fff;
  color: #344054;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.36rem 0.82rem;
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
}

.app-project-action:hover {
  border-color: #b8c6dd;
  background: #f7f9fd;
  color: #1f2e45;
}

.app-project-action.is-primary {
  border-color: #0a3d62;
  background: linear-gradient(180deg, #0e5a8a, #0a3d62);
  color: #fff;
  box-shadow: 0 6px 14px rgba(10, 61, 98, 0.18);
}

.app-project-action.is-primary:hover {
  border-color: #072a44;
  background: linear-gradient(180deg, #0a3d62, #072a44);
  color: #fff;
}

.project-view-nav {
  border: 1px solid #d7e4f0;
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(10, 61, 98, 0.08), rgba(14, 90, 138, 0.025) 55%, rgba(255, 255, 255, 0.96));
  box-shadow: 0 14px 28px rgba(16, 24, 40, 0.06);
  display: grid;
  gap: 1rem;
  padding: 1rem;
  position: relative;
}

.project-view-nav > .project-view-nav-settings {
  align-items: center;
  border-radius: 999px;
  color: #0f172a;
  display: inline-flex;
  height: 2.25rem;
  justify-content: center;
  left: auto;
  position: absolute;
  right: 0.75rem;
  text-decoration: none;
  top: 0.75rem;
  width: 2.25rem;
  z-index: 2;
}

.project-view-nav > .project-view-nav-settings:hover,
.project-view-nav > .project-view-nav-settings:focus {
  background: rgba(10, 61, 98, 0.08);
  color: #000;
}

.project-view-nav > .project-view-nav-settings:focus-visible {
  outline: 3px solid rgba(10, 61, 98, 0.18);
  outline-offset: 2px;
}

.project-view-nav > .project-view-nav-settings svg {
  display: block;
  height: 1.65rem;
  width: 1.65rem;
}

.project-view-nav-copy {
  display: grid;
  gap: 0.65rem;
}

.project-view-nav--has-settings .project-view-nav-copy {
  padding-right: 2.75rem;
}

.project-view-nav-kicker {
  align-self: start;
  border: 1px solid #bdd1e5;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: #0a3d62;
  display: inline-flex;
  font-size: 0.76rem;
  font-weight: 800;
  justify-self: start;
  line-height: 1;
  max-width: 100%;
  padding: 0.42rem 0.68rem;
  text-transform: uppercase;
  width: fit-content;
}

.project-view-nav-title {
  color: #0f172a;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.15;
  margin: 0;
}

.project-view-nav-meta,
.project-view-nav-caption {
  color: #526174;
  font-size: 0.92rem;
  margin: 0.28rem 0 0;
}

.project-view-nav-actions {
  align-items: center;
  display: flex;
  gap: 0.6rem;
  justify-content: flex-start;
  min-width: 0;
}

.project-view-nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  min-width: 0;
}

.project-view-nav-link {
  align-items: center;
  border: 1px solid #c8d8e8;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  color: #0a3d62;
  display: inline-flex;
  font-size: 0.9rem;
  font-weight: 800;
  min-height: 2.25rem;
  padding: 0.45rem 0.7rem;
  text-decoration: none;
}

.project-view-nav-link:hover,
.project-view-nav-link:focus {
  background: #f2f7fc;
  border-color: #a9c1d8;
  color: #073452;
}

.project-view-nav-link.is-active {
  background: #0a3d62;
  border-color: #0a3d62;
  color: #fff;
}

.project-view-nav-link-dashboard {
  color: #334155;
}

@media (min-width: 768px) {
  .project-view-nav {
    gap: 0.85rem;
    grid-template-columns: minmax(0, 1fr);
    padding: 1.15rem 1.25rem 0;
  }

  .project-view-nav > .project-view-nav-settings {
    right: 0.85rem;
    top: 0.85rem;
  }

  .project-view-nav-actions {
    border-top: 1px solid #d8e5f2;
    margin: 0 -1.25rem;
    min-width: 0;
    overflow-x: auto;
    padding: 0 1.25rem;
  }

  .project-view-nav-links {
    flex-wrap: nowrap;
    gap: 0.2rem;
  }

  .project-view-nav-link {
    background: transparent;
    border: 0;
    border-bottom: 3px solid transparent;
    border-radius: 0;
    color: #475569;
    min-height: 2.8rem;
    padding: 0.75rem 0.9rem 0.7rem;
    position: relative;
    white-space: nowrap;
  }

  .project-view-nav-link:hover,
  .project-view-nav-link:focus {
    background: rgba(255, 255, 255, 0.55);
    border-color: transparent;
    color: #0a3d62;
  }

  .project-view-nav-link.is-active {
    background: transparent;
    border-color: #0a3d62;
    color: #0a3d62;
  }

  .project-view-nav-link-dashboard {
    margin-left: 0.35rem;
  }
}

@media (min-width: 1200px) {
  .project-view-nav-title {
    font-size: 1.42rem;
  }
}

.app-account-actions {
  margin-left: auto;
  gap: 0.45rem;
}

.app-cta-link {
  text-decoration: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.77rem;
  padding: 0.4rem 0.75rem;
  color: #fff;
  background: #1f6feb;
  border: 1px solid #1f6feb;
}

.app-cta-link:hover {
  background: #1a5fcc;
  border-color: #1a5fcc;
  color: #fff;
}

.app-create-project-link {
  border-color: #0a3d62;
  background: linear-gradient(180deg, #0e5a8a, #0a3d62);
  color: #fff;
  box-shadow: 0 10px 20px rgba(10, 61, 98, 0.18);
}

.app-create-project-link:hover {
  border-color: #072a44;
  background: linear-gradient(180deg, #0a3d62, #072a44);
  color: #fff;
}

.app-user-trigger {
  width: 50px;
  height: 50px;
  border-radius: 999px;
  border: 1px solid #d3dbe9;
  background: #fff;
  color: #344054;
  font-weight: 700;
  font-size: 0.78rem;
  padding: 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: none;
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.1);
}

.app-user-trigger::after {
  display: none;
}

.app-user-trigger:hover {
  background: #f8fafe;
  border-color: #becbdf;
  color: #1f2e45;
}

.app-user-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #22c55e;
  flex-shrink: 0;
}

.app-user-label {
  display: inline-block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-user-trigger .identity-avatar {
  --identity-size: 42px;
  border: 0;
  box-shadow: none;
}

.app-user-menu .dropdown-menu,
.app-nav-more .dropdown-menu {
  border-radius: 9px;
  border-color: #dce3ef;
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.12);
}

.app-user-menu .dropdown-header,
.app-nav-more .dropdown-header {
  padding: 0.8rem 0.95rem 0.7rem;
  border-bottom: 1px solid #e8eef6;
  white-space: normal;
}

.app-dropdown-title {
  display: block;
  color: #0f172a;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.35;
}

.app-dropdown-meta {
  display: block;
  margin-top: 0.18rem;
  color: #667085;
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.4;
}

.app-user-menu .dropdown-item,
.app-nav-more .dropdown-item {
  display: block;
  padding: 0.72rem 0.95rem;
  text-align: left;
}

.app-mobile-user-menu {
  margin-left: auto;
}

.app-mobile-user-trigger {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid #d3dbe9;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
}

.app-mobile-user-trigger::after {
  display: none;
}

.app-mobile-user-menu .dropdown-menu {
  border-radius: 12px;
  border-color: #dce3ef;
  box-shadow: 0 12px 28px rgba(16, 24, 40, 0.16);
  min-width: 220px;
}

.app-mobile-account {
  width: 100%;
}

.app-mobile-account-card {
  border: 1px solid #dce3ef;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.app-mobile-account-head {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 1rem 0.9rem;
  border-bottom: 1px solid #e8eef6;
  background: rgba(10, 61, 98, 0.04);
}

.app-mobile-account-copy {
  min-width: 0;
  flex: 1;
}

.app-mobile-account-name {
  color: #0f172a;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.3;
  word-break: break-word;
}

.app-mobile-account-meta {
  margin-top: 0.18rem;
  color: #667085;
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.35;
  word-break: break-word;
}

.app-mobile-account-links {
  display: grid;
  gap: 0.72rem;
  padding: 0.95rem 1rem 1rem;
}

.app-mobile-account-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  min-height: 48px;
  padding: 0.85rem 0.95rem;
  border-radius: 12px;
  border: 1px solid #d5deeb;
  background: #fff;
  color: #1f2e45;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.25;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
}

.app-mobile-account-link:hover {
  border-color: #b9cbe3;
  background: #f8fbff;
  color: #0a3d62;
}

.app-mobile-account-link--primary {
  border-color: #0a3d62;
  background: linear-gradient(180deg, #0e5a8a, #0a3d62);
  color: #fff;
  box-shadow: 0 12px 22px rgba(10, 61, 98, 0.18);
}

.app-mobile-account-link--primary:hover {
  border-color: #072a44;
  background: linear-gradient(180deg, #0a3d62, #072a44);
  color: #fff;
}

.app-mobile-account-link--danger {
  border-color: #fecaca;
  background: #fff5f5;
  color: #b42318;
}

.app-mobile-account-link--danger:hover {
  border-color: #fca5a5;
  background: #ffecec;
  color: #912018;
}

.app-mobile-link-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.6rem;
  height: 1.6rem;
  padding: 0 0.42rem;
  border-radius: 999px;
  background: #e7efff;
  color: #1744ad;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  flex-shrink: 0;
}

@media (max-width: 991.98px) {
  .app-nav-inner {
    align-items: center;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    grid-template-rows: 44px auto;
    gap: 0.5rem;
    position: relative;
  }

  .app-nav-toggle {
    grid-column: 1;
    grid-row: 1;
  }

  .app-brand {
    grid-column: 2;
    grid-row: 1;
    left: 50%;
    max-width: calc(100vw - 150px);
    position: absolute;
    top: 22px;
    justify-self: center;
    transform: translate(-50%, -50%);
    justify-content: center;
  }

  .app-brand > span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .app-mobile-user-menu {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    margin-left: 0;
  }

  .app-mobile-user-trigger {
    overflow: hidden;
    padding: 2px;
  }

  .app-mobile-user-trigger .identity-avatar {
    --identity-size: 38px;
    border: 0;
    border-radius: 12px;
    box-shadow: none;
  }

  .navbar-collapse {
    grid-column: 1 / -1;
    width: 100%;
    padding-top: 0.7rem;
  }

  .app-nav-segment {
    width: 100%;
    order: 0;
  }

  .app-nav-more {
    display: none !important;
  }

  .app-nav-list {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    border-radius: 8px;
  }

  .app-nav-list .nav-item {
    flex: none;
    width: 100%;
  }

  .app-link {
    width: 100%;
    justify-content: flex-start;
    border-right: 0;
    border-bottom: 1px solid #dce3ef;
    padding: 0.72rem 0.92rem;
  }

  .app-nav-list .nav-item:last-child .app-link {
    border-bottom: 0;
  }

  .app-project-links {
    border-left: 0;
    border-top: 1px dashed #d7deeb;
    padding-left: 0;
    padding-top: 0.58rem;
    margin-left: 0;
    margin-top: 0;
    width: 100%;
    flex-wrap: wrap;
    order: -2;
  }

  .app-account-actions {
    margin-left: 0;
    margin-top: 0.7rem;
    flex-wrap: wrap;
    width: 100%;
    order: -1;
    justify-content: flex-start;
  }

  .app-user-menu,
  .app-create-project-link,
  .app-cta-link,
  #sign-up-link,
  #log-in-link {
    width: 100%;
  }

  .app-user-trigger,
  .app-nav-more-btn {
    width: 100%;
    justify-content: flex-start;
    max-width: none;
  }

  .app-user-menu .dropdown-menu,
  .app-nav-more .dropdown-menu {
    position: static !important;
    inset: auto !important;
    transform: none !important;
    width: 100%;
    margin-top: 0.45rem;
  }

  .app-user-menu .dropdown-item,
  .app-nav-more .dropdown-item {
    white-space: normal;
    padding-top: 0.72rem;
    padding-bottom: 0.72rem;
  }

  .app-user-menu .dropdown-header,
  .app-nav-more .dropdown-header {
    padding-left: 0.92rem;
    padding-right: 0.92rem;
  }

  .app-mobile-account {
    display: none;
  }
}

/* HTMX indicator styles are local because htmx inline indicator styles are disabled by CSP. */
.htmx-indicator {
  opacity: 0;
  transition: opacity 200ms ease-in;
}

.htmx-request .htmx-indicator,
.htmx-request.htmx-indicator {
  opacity: 1;
}
