.m-header {
  display: flex;
  align-items: center;
  height: 60px;              /* match your navbar height */
  overflow: hidden;
}

.m-header .b-brand {
  display: flex;
  align-items: center;
  height: 100%;
}

.m-header .logo {
  max-height: 110px;          /* shrink to fit navbar */
  width: auto;
  object-fit: contain;
}

.logo-lg {
  max-height: 50px;
}

.logo-sm {
  max-height: 50px;
}

.auth-logo {
    width: 100%;
    height: auto;
    display: block;
}

/* =========================================================
   LOGIN PAGE (custom, isolated)
   ========================================================= */
.auth-page{
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  min-height: 100vh;
  margin: 0;
}

/* Login wallpaper */
.login-page{
  background-image: url("../images/auth/login-wallpaper.jpeg");
}

/* Register wallpaper */
.register-page{
  background-image: url("../images/auth/register-wallpaper.jpeg");
}

/* Optional: dark overlay so text/form pops */
.auth-page::before{
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 0;
}

.auth-page .auth-cover-wrapper{
  min-height: 100vh;
  background: transparent !important;
  position: relative;
  z-index: 1; /* above overlay */
}

/* Centered container */
.auth-page .login-container{
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

/* Glass card */
.auth-page .login-card{
  width: 100%;
  max-width: 420px;
  padding: 40px 36px;

  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.45);

  color: #ffffff;
}

/* Logo */
.auth-page .login-logo{
  text-align: center;
  margin-bottom: 28px;
}

.auth-page .login-logo img{
  max-width: 200px;
  width: 100%;
  height: auto;
  display: inline-block;
}

/* Text colors on dark glass */
.auth-page .login-card h2,
.auth-page .login-card h4{
  color: #ffffff;
}

.auth-page .login-card .text-muted{
  color: rgba(255,255,255,0.75) !important;
}

/* Inputs */
.auth-page .login-card .form-control{
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.18);
  color: #ffffff;
}

.auth-page .login-card .form-control::placeholder{
  color: rgba(255,255,255,0.6);
}

.auth-page .login-card .form-control:focus{
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.35);
  box-shadow: none;
  color: #ffffff;
}

/* Links */
.auth-page .login-card a{
  color: rgba(147,197,253,1);
}
.auth-page .login-card a:hover{
  color: rgba(191,219,254,1);
}

.auth-page .custom-control-label {
  color: rgba(255,255,255,0.75);
}

.forge-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 1.85rem;
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
}

.forge-badge-neutral {
  background: #e2e8f0;
  border-color: #cbd5e1;
  color: #0f172a;
}

.forge-badge-info {
  background: #e0f2fe;
  border-color: #bae6fd;
  color: #075985;
}

.forge-badge-secondary {
  background: #e5e7eb;
  border-color: #d1d5db;
  color: #374151;
}

.forge-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
}

.forge-action-btn i {
  font-size: 0.9rem;
}

.forge-action-btn span {
  display: inline-flex;
  align-items: center;
}

.forge-badge-status-active {
  background: #e0f3ff;
  border-color: #9ec8ff;
  color: #0c4a8a;
}

.forge-badge-status-planning {
  background: #ecfeff;
  border-color: #67e8f9;
  color: #0f766e;
}

.forge-badge-status-completed {
  background: #dcfce7;
  border-color: #86efac;
  color: #166534;
}

.forge-badge-status-in-progress {
  background: #fff5e0;
  border-color: #fcd34d;
  color: #c2410c;
}

.forge-badge-status-not-started {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #0f172a;
}

.forge-badge-status-pending {
  background: #fef3c7;
  border-color: #fcd34d;
  color: #92400e;
}

.forge-badge-status-on-hold {
  background: #fdf2fb;
  border-color: #fbcfe8;
  color: #a21caf;
}

.forge-badge-status-blocked {
  background: #fee2e2;
  border-color: #fecaca;
  color: #991b1b;
}

.forge-badge-status-cancelled {
  background: #f3f4f6;
  border-color: #d6d9e3;
  color: #475569;
}

.forge-badge-status-archived {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #1f2937;
}

.forge-badge-priority-low {
  background: #ecfdf5;
  border-color: #6ee7b7;
  color: #064e3b;
}

.forge-badge-priority-medium {
  background: #fffbeb;
  border-color: #fcd34d;
  color: #92400e;
}

.forge-badge-priority-high {
  background: #fee2e2;
  border-color: #fb7185;
  color: #b91c1c;
}

.forge-badge-priority-critical {
  background: #fdf2f8;
  border-color: #f9a8d4;
  color: #9d174d;
}

.forge-public-header {
    position: sticky;
    top: 0;
    z-index: 1020;
    padding: 1rem 0;
    backdrop-filter: blur(14px);
    background: rgba(9, 16, 31, 0.72);
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.forge-public-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    text-decoration: none;
}

.forge-public-brand-logo {
    width: 164px;
    max-width: 42vw;
    height: auto;
    object-fit: contain;
}

.forge-public-brand-copy strong {
    display: block;
    font-size: 1rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #f8fafc;
}

.forge-public-brand-copy span {
    display: block;
    font-size: 0.78rem;
    color: rgba(226, 232, 240, 0.76);
}

.forge-public-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

@media (max-width: 575.98px) {
    .forge-public-header .container-fluid {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .forge-public-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .forge-public-actions .btn {
        padding-left: 0.95rem;
        padding-right: 0.95rem;
    }
}

.nxl-search-dropdown {
        width: min(440px, calc(100vw - 1.5rem));
        padding: 0;
        overflow: hidden;
    }

    .header-search-panel {
        padding: 1rem;
    }

    .header-search-note {
        font-size: 0.76rem;
        color: #64748b;
    }

    .header-search-results {
        max-height: 380px;
        overflow-y: auto;
    }

    .header-search-result-group + .header-search-result-group {
        margin-top: 0.85rem;
    }

    .header-search-result-label {
        font-size: 0.7rem;
        font-weight: 700;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        color: #64748b;
        margin-bottom: 0.45rem;
    }

    .header-search-result-link {
        display: block;
        padding: 0.75rem;
        border: 1px solid rgba(148, 163, 184, 0.2);
        border-radius: 14px;
        text-decoration: none;
        color: inherit;
        background: #ffffff;
        transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
    }

    .header-search-result-link:hover,
    .header-search-result-link:focus {
        border-color: rgba(14, 165, 233, 0.45);
        box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
        transform: translateY(-1px);
        color: inherit;
    }

    .header-search-result-badge {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0.2rem 0.55rem;
        border-radius: 999px;
        font-size: 0.68rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.04em;
    }

    .header-search-result-badge.type-project {
        background: rgba(14, 165, 233, 0.12);
        color: #0369a1;
    }

    .header-search-result-badge.type-task {
        background: rgba(16, 185, 129, 0.12);
        color: #047857;
    }

    .header-search-result-badge.type-note {
        background: rgba(245, 158, 11, 0.15);
        color: #b45309;
    }

    .header-search-result-badge.type-comment {
        background: rgba(99, 102, 241, 0.12);
        color: #4338ca;
    }

    .header-search-empty-state {
        padding: 1rem;
        border: 1px dashed rgba(148, 163, 184, 0.35);
        border-radius: 14px;
        text-align: center;
        color: #64748b;
        background: #f8fafc;
    }

    @media (max-width: 575.98px) {
        .nxl-search-dropdown {
            width: min(100vw - 1rem, 440px);
        }
    }

/* =========================================================
   AUTHENTICATED HEADER - MOBILE FIXES
   ========================================================= */

.forge-avatar {
  width: 44px;
  height: 44px;
  max-width: none;
  display: inline-block;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  aspect-ratio: 1 / 1;
  flex-shrink: 0;
}

.nxl-header .header-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nxl-header .header-left,
.nxl-header .header-right {
  min-width: 0;
}

.nxl-header .header-left {
  flex: 1 1 auto;
}

.nxl-header .header-right {
  flex: 0 0 auto;
  margin-left: auto;
}

.nxl-header .header-right > .d-flex {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.15rem;
}

.nxl-header .user-avtar {
  width: 44px;
  height: 44px;
}

.nxl-header .nxl-level-badge-wrapper {
  flex: 0 0 auto;
  margin-left: 0.35rem;
}

.nxl-header .nxl-level-badge {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 150px;
  max-width: 190px;
  padding: 0.4rem 0.75rem;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
}

.nxl-header .nxl-level-badge-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
}

.nxl-header .nxl-level-label {
  color: #0f172a;
}

.nxl-header .nxl-level-xp {
  color: #475569;
  font-size: 0.66rem;
}

.nxl-header .nxl-level-progress {
  height: 4px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.2);
  overflow: hidden;
}

.nxl-header .nxl-level-progress-bar {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #2563eb, #0ea5e9);
  transition: width 0.3s ease;
}

@media (max-width: 991.98px) {
  .nxl-header .nxl-level-badge {
    min-width: 130px;
    padding: 0.35rem 0.6rem;
  }

  .nxl-header .nxl-level-badge-heading {
    font-size: 0.68rem;
  }
}

@media (max-width: 767.98px) {
  .nxl-header .nxl-level-xp {
    display: none;
  }

  .nxl-header .nxl-level-badge {
    min-width: 110px;
    padding: 0.3rem 0.5rem;
  }
}

.nxl-header .header-right .nxl-h-item,
.nxl-header .header-right .dropdown,
.nxl-header .header-right .dark-light-theme {
  flex: 0 0 auto;
}

@media (max-width: 991.98px) {
  .nxl-header .header-wrapper {
    flex-wrap: nowrap;
  }

  .nxl-header .header-left {
    gap: 0.75rem !important;
    overflow: hidden;
  }

  .nxl-header .nxl-lavel-mega-menu-wrapper {
    display: none !important;
  }

  .nxl-header .header-right .nxl-head-link,
  .nxl-header .header-right .dropdown > a,
  .nxl-header .header-right .dark-button,
  .nxl-header .header-right .light-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
  }
}

@media (max-width: 575.98px) {
  .nxl-header .header-wrapper {
    gap: 0.45rem;
  }

  .nxl-header .header-left {
    gap: 0.45rem !important;
  }

  .nxl-header .header-right > .d-flex {
    gap: 0.05rem;
  }

  .nxl-header .header-right .nxl-head-link,
  .nxl-header .header-right .dropdown > a,
  .nxl-header .header-right .dark-button,
  .nxl-header .header-right .light-button {
    width: 2.2rem;
    height: 2.2rem;
  }

  .nxl-header .user-avtar {
    width: 36px;
    height: 36px;
    object-fit: cover;
  }

  .nxl-header .nxl-search-dropdown {
    right: 0 !important;
    left: auto !important;
    width: min(320px, calc(100vw - 1rem));
  }
}

/* =========================================================
   HEADER DROPDOWNS - MOBILE SCROLL FIX
   ========================================================= */

@media (max-width: 767.98px) {
  .nxl-header .nxl-search-dropdown,
  .nxl-header .nxl-user-dropdown,
  .nxl-header .dropdown-menu[data-bs-popper] {
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .nxl-header .nxl-user-dropdown {
    width: min(320px, calc(100vw - 1rem));
  }

  .nxl-header .nxl-search-dropdown {
    width: min(320px, calc(100vw - 1rem));
  }

  .nxl-header .dropdown-menu.dropdown-menu-end {
    right: 0 !important;
    left: auto !important;
  }
}

.issue-link {
        color: #0f766e;
        text-decoration: underline;
        text-underline-offset: 0.18em;
        word-break: break-word;
}

.forge-public-container {
        padding: 0;
        min-height: 100vh;
        background:
            radial-gradient(circle at top left, rgba(249, 115, 22, 0.2), transparent 32%),
            radial-gradient(circle at top right, rgba(14, 165, 233, 0.16), transparent 28%),
            linear-gradient(180deg, #081120 0%, #101b31 35%, #f8fafc 35%, #f8fafc 100%);
    }

    .forge-public-content {
        padding: 0;
    }

    .forge-get-started {
        color: #0f172a;
    }

    .forge-get-started section {
        position: relative;
    }

    .forge-hero {
        overflow: hidden;
        padding: 4rem 0 4.75rem;
        color: #f8fafc;
    }

    .forge-hero::after {
        content: "";
        position: absolute;
        inset: auto -8% -20% auto;
        width: 320px;
        height: 320px;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(251, 191, 36, 0.18), rgba(251, 191, 36, 0));
        pointer-events: none;
    }

    .forge-hero-logo {
        width: min(320px, 100%);
        height: auto;
        object-fit: contain;
        margin-bottom: 1.5rem;
    }

    .forge-eyebrow {
        display: inline-flex;
        align-items: center;
        gap: 0.45rem;
        padding: 0.45rem 0.85rem;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.12);
        font-size: 0.78rem;
        font-weight: 700;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }

    .forge-hero h1 {
        font-size: clamp(2.5rem, 5vw, 4.2rem);
        line-height: 1.04;
        margin: 1rem 0;
        letter-spacing: -0.04em;
    }

    .forge-hero p.lead {
        max-width: 700px;
        color: rgba(226, 232, 240, 0.9);
        font-size: 1.08rem;
    }

    .forge-hero-note {
        margin-top: 1rem;
        color: rgba(226, 232, 240, 0.74);
        font-size: 0.94rem;
        max-width: 660px;
    }

    .forge-hero-actions,
    .forge-footer-links {
        display: flex;
        flex-wrap: wrap;
        gap: 0.9rem;
    }

    .forge-hero-panel,
    .forge-card,
    .forge-update-card,
    .forge-start-card {
        border-radius: 26px;
        border: 1px solid rgba(148, 163, 184, 0.16);
        box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
    }

    .forge-hero-panel {
        padding: 1.6rem;
        background: rgba(15, 23, 42, 0.56);
        border-color: rgba(255, 255, 255, 0.08);
        box-shadow: 0 24px 60px rgba(8, 15, 30, 0.34);
        backdrop-filter: blur(18px);
    }

    .forge-hero-panel h2 {
        color: #f8fafc;
        font-size: 1.35rem;
        margin-bottom: 0.85rem;
    }

    .forge-hero-panel p,
    .forge-hero-panel li {
        color: rgba(226, 232, 240, 0.8);
    }

    .forge-hero-list {
        margin: 0;
        padding-left: 1.15rem;
    }

    .forge-hero-list li + li {
        margin-top: 0.65rem;
    }

    .forge-section {
        padding: 4.5rem 0;
    }

    .forge-section-light {
        background: #f8fafc;
    }

    .forge-section-soft {
        background: linear-gradient(180deg, #fff7ed 0%, #ffffff 100%);
    }

    .forge-section-heading {
        max-width: 760px;
        margin-bottom: 2.5rem;
    }

    .forge-section-heading h2 {
        font-size: clamp(1.95rem, 3vw, 3rem);
        line-height: 1.08;
        letter-spacing: -0.03em;
        margin-bottom: 0.85rem;
    }

    .forge-section-heading p {
        margin: 0;
        color: #475569;
        font-size: 1rem;
    }

    .forge-card,
    .forge-update-card,
    .forge-start-card {
        height: 100%;
        padding: 1.5rem;
        background: #ffffff;
    }

    .forge-icon-wrap {
        display: inline-flex;
        width: 52px;
        height: 52px;
        align-items: center;
        justify-content: center;
        border-radius: 18px;
        margin-bottom: 1rem;
        background: linear-gradient(135deg, rgba(249, 115, 22, 0.14), rgba(14, 165, 233, 0.12));
        color: #ea580c;
        font-size: 1.1rem;
    }

    .forge-card p,
    .forge-update-card p,
    .forge-start-card p {
        color: #475569;
        margin-bottom: 0;
    }

    .forge-benefit-list {
        display: grid;
        gap: 1rem;
    }

    .forge-benefit-item {
        display: flex;
        align-items: flex-start;
        gap: 0.85rem;
        padding: 1rem 1.1rem;
        border-radius: 18px;
        background: #ffffff;
        border: 1px solid rgba(148, 163, 184, 0.16);
        box-shadow: 0 16px 32px rgba(15, 23, 42, 0.05);
    }

    .forge-benefit-item i {
        color: #0f766e;
        margin-top: 0.15rem;
    }

    .forge-update-pill {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.5rem 0.85rem;
        border-radius: 999px;
        background: rgba(14, 165, 233, 0.08);
        color: #0369a1;
        font-size: 0.82rem;
        font-weight: 700;
    }

    .forge-public-footer {
        padding: 0 0 2rem;
        color: #64748b;
    }

    .forge-public-footer a {
        color: inherit;
        text-decoration: none;
    }

    @media (max-width: 991.98px) {
        .forge-hero {
            padding-top: 3rem;
        }

        .forge-hero-panel {
            margin-top: 1rem;
        }
    }

    @media (max-width: 767.98px) {
        .forge-section {
            padding: 3.75rem 0;
        }
    }

.project-workspace-shell {
        border: 1px solid rgba(15, 23, 42, 0.08);
        border-radius: 22px;
        background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    }

    .project-workspace-tabs {
        display: flex;
        gap: 0.75rem;
        flex-wrap: wrap;
    }

    .project-workspace-tab {
        border: 1px solid rgba(148, 163, 184, 0.25);
        border-radius: 999px;
        padding: 0.6rem 1rem;
        color: #0f172a;
        background: #fff;
        font-weight: 600;
    }

    .project-workspace-tab.active {
        background: #0f172a;
        color: #fff;
    }

    .project-overview-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 1rem;
    }

    .project-module-card,
    .project-overview-list,
    .project-overview-progress {
        border: 1px solid rgba(15, 23, 42, 0.08);
        border-radius: 20px;
        background: #fff;
        padding: 1.25rem;
    }

    .project-module-card {
        height: 100%;
    }

    .project-overview-progress-bar {
        height: 12px;
        border-radius: 999px;
        background: #e2e8f0;
        overflow: hidden;
    }

    .project-overview-progress-bar > span {
        display: block;
        height: 100%;
        border-radius: inherit;
        background: linear-gradient(90deg, #0ea5e9 0%, #22c55e 100%);
    }

    .project-overview-list {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .project-overview-item {
        border: 1px solid rgba(148, 163, 184, 0.18);
        border-radius: 16px;
        padding: 1rem;
    }

    .project-overview-empty {
        border: 1px dashed rgba(148, 163, 184, 0.4);
        border-radius: 16px;
        padding: 1.25rem;
        color: #64748b;
        text-align: center;
    }

    .project-status-breakdown {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 0.75rem;
    }

    .project-status-breakdown-card {
        border-radius: 18px;
        padding: 1rem;
        background: #f8fafc;
        border: 1px solid rgba(148, 163, 184, 0.16);
    }

    .comment-composer-card,
    .comment-item-card {
        border: 1px solid rgba(148, 163, 184, 0.18);
        border-radius: 20px;
        background: #fff;
    }

    .comment-composer-shell {
        position: relative;
    }

    .comment-mention-menu {
        position: absolute;
        left: 0;
        right: 0;
        top: calc(100% + 0.5rem);
        z-index: 10;
        display: none;
        border: 1px solid rgba(148, 163, 184, 0.25);
        border-radius: 16px;
        background: #fff;
        box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
        overflow: hidden;
    }

    .comment-mention-option {
        width: 100%;
        border: 0;
        border-bottom: 1px solid rgba(226, 232, 240, 0.9);
        background: #fff;
        padding: 0.85rem 1rem;
        text-align: left;
        display: flex;
        justify-content: space-between;
        gap: 1rem;
    }

    .comment-mention-option:last-child {
        border-bottom: 0;
    }

    .comment-mention-option.active,
    .comment-mention-option:hover {
        background: #eff6ff;
    }

    .comment-mention-option-name {
        font-weight: 700;
        color: #0f172a;
    }

    .comment-mention-option-role {
        color: #64748b;
        font-size: 0.85rem;
    }

    .comment-list {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .comment-header-meta {
        display: flex;
        align-items: center;
        gap: 0.85rem;
    }

    .comment-avatar {
        width: 44px;
        height: 44px;
        border-radius: 50%;
        object-fit: cover;
        background: #e2e8f0;
    }

    .comment-body {
        color: #334155;
        line-height: 1.6;
        word-break: break-word;
    }

    .comment-body .mention,
    .comment-body .comment-mention {
        display: inline-flex;
        align-items: center;
        padding: 0.05rem 0.4rem;
        border-radius: 999px;
        background: #dbeafe;
        color: #1d4ed8;
        font-weight: 700;
        text-decoration: none;
    }

    .comment-body .mention:hover,
    .comment-body .comment-mention:hover {
        background: #bfdbfe;
        color: #1e40af;
    }

    .comment-body .comment-link {
        color: #0f766e;
        font-weight: 600;
        text-decoration: underline;
        text-underline-offset: 0.18em;
    }

    .comment-item-card.comment-targeted {
        border-color: rgba(14, 165, 233, 0.7);
        box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.14);
        transition: box-shadow 0.25s ease, border-color 0.25s ease;
    }

    .project-reports-shell {
        border: 1px solid rgba(148, 163, 184, 0.18);
        border-radius: 20px;
        background: #fff;
    }

    #projectReportsTable thead .datatable-filters th {
        padding: 0.5rem;
        vertical-align: middle;
    }

    #projectReportsTable thead .datatable-filters input,
    #projectReportsTable thead .datatable-filters select {
        min-width: 100%;
    }

    .project-workspace-shell { border: 1px solid rgba(15, 23, 42, 0.08); border-radius: 22px; background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%); }
    .project-workspace-tabs { display: flex; gap: 0.75rem; flex-wrap: wrap; }
    .project-workspace-tab { border: 1px solid rgba(148, 163, 184, 0.25); border-radius: 999px; padding: 0.6rem 1rem; color: #0f172a; background: #fff; font-weight: 600; }
    .project-workspace-tab.active { background: #0f172a; color: #fff; }
    .task-stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; }
    .task-stat-card, .task-list-card, .task-detail-hint { border: 1px solid rgba(148, 163, 184, 0.18); border-radius: 20px; background: #fff; }
    .task-list-card { transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease; }
    .task-list-card:hover { transform: translateY(-1px); box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08); border-color: rgba(14, 116, 144, 0.3); }
    .task-indent { border-left: 2px dashed rgba(148, 163, 184, 0.5); margin-left: 1rem; padding-left: 1rem; }
    .task-meta { display: flex; flex-wrap: wrap; gap: 0.5rem; }
    .task-meta span { font-size: 0.8rem; color: #475569; }
    .forge-user-link { display: inline-flex; align-items: center; gap: 0.45rem; color: #0f172a; font-weight: 600; text-decoration: none; }
    .forge-user-link:hover { color: #0369a1; }
    .forge-user-link-inline { vertical-align: middle; }
    .forge-user-link-text { line-height: 1.2; }
    .forge-user-avatar { display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; overflow: hidden; background: #e2e8f0; color: #334155; border: 1px solid rgba(148, 163, 184, 0.35); flex: 0 0 auto; }
    .forge-user-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
    .forge-user-avatar-fallback { width: 100%; height: 100%; align-items: center; justify-content: center; font-size: 0.67rem; font-weight: 700; }
    .forge-user-avatar-xs { width: 18px; height: 18px; min-width: 18px; min-height: 18px; }
    .forge-user-avatar-sm { width: 24px; height: 24px; min-width: 24px; min-height: 24px; }


    .project-workspace-shell { border: 1px solid rgba(15, 23, 42, 0.08); border-radius: 22px; background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%); }
    .project-workspace-tabs { display: flex; gap: 0.75rem; flex-wrap: wrap; }
    .project-workspace-tab { border: 1px solid rgba(148, 163, 184, 0.25); border-radius: 999px; padding: 0.6rem 1rem; color: #0f172a; background: #fff; font-weight: 600; }
    .project-workspace-tab.active { background: #0f172a; color: #fff; }
    .notes-stats-grid, .notes-tag-grid, .notes-main-grid { display: grid; gap: 1rem; }
    .notes-stats-grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
    .notes-tag-grid { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
    .notes-main-grid { grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr); }
    .notes-card, .note-preview-card, .tag-summary-card { border: 1px solid rgba(148, 163, 184, 0.18); border-radius: 20px; background: #fff; }
    .note-list-card { cursor: pointer; transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease; }
    .note-list-card:hover, .note-list-card.active { transform: translateY(-1px); box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08); border-color: rgba(14, 116, 144, 0.3); }
    .note-chip { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.35rem 0.7rem; border-radius: 999px; background: #e2e8f0; color: #0f172a; font-size: 0.78rem; font-weight: 600; border: 0; }
    .note-chip.active { background: #0f172a; color: #fff; }
    .note-tag { display: inline-flex; align-items: center; padding: 0.28rem 0.65rem; border-radius: 999px; color: #0f172a; font-size: 0.75rem; font-weight: 700; background: #e2e8f0; }
    .note-preview-content { line-height: 1.75; color: #334155; }
    .note-preview-content pre { background: #0f172a; color: #f8fafc; padding: 1rem; border-radius: 16px; overflow: auto; }
    .note-preview-content blockquote { border-left: 4px solid #0ea5e9; padding-left: 1rem; color: #0f172a; margin: 1rem 0; }
    @media (max-width: 991.98px) { .notes-main-grid { grid-template-columns: 1fr; } }


    /* =========================================================
   PROJECT WORKSPACE ACTION BAR
   ========================================================= */

.project-workspace-actions {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(14, 165, 233, 0.18);
    background:
        radial-gradient(circle at top right, rgba(14, 165, 233, 0.12), transparent 32%),
        linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
}

.project-workspace-actions::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: linear-gradient(180deg, #0ea5e9 0%, #22c55e 100%);
}

.project-actions-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.project-actions-copy {
    flex: 1 1 320px;
    min-width: 260px;
}

.project-actions-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.75rem;
    margin-bottom: 0.85rem;
    border-radius: 999px;
    background: rgba(14, 165, 233, 0.08);
    border: 1px solid rgba(14, 165, 233, 0.14);
    color: #0369a1;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.project-actions-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
}

.project-actions-text {
    color: #64748b;
    max-width: 620px;
    line-height: 1.55;
}

.project-actions-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    justify-content: flex-end;
    flex: 0 1 auto;
}

.project-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 200px;
    padding: 0.9rem 1rem;
    border-radius: 18px;
    text-decoration: none;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: #ffffff;
    color: #0f172a;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.project-action-btn:hover,
.project-action-btn:focus {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.10);
    color: #0f172a;
    text-decoration: none;
}

.project-action-btn-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    font-size: 1rem;
}

.project-action-btn strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.2;
}

.project-action-btn small {
    display: block;
    margin-top: 0.15rem;
    color: #64748b;
    font-size: 0.78rem;
    line-height: 1.2;
}

.project-action-btn.primary {
    border-color: rgba(14, 165, 233, 0.22);
    background: linear-gradient(180deg, #ffffff 0%, #f0f9ff 100%);
}

.project-action-btn.primary .project-action-btn-icon {
    background: rgba(14, 165, 233, 0.12);
    color: #0369a1;
}

.project-action-btn.primary:hover {
    border-color: rgba(14, 165, 233, 0.38);
}

.project-action-btn.secondary {
    border-color: rgba(34, 197, 94, 0.20);
    background: linear-gradient(180deg, #ffffff 0%, #f0fdf4 100%);
}

.project-action-btn.secondary .project-action-btn-icon {
    background: rgba(34, 197, 94, 0.12);
    color: #15803d;
}

.project-action-btn.secondary:hover {
    border-color: rgba(34, 197, 94, 0.34);
}

.project-action-btn.subtle {
    border-color: rgba(148, 163, 184, 0.22);
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.project-action-btn.subtle .project-action-btn-icon {
    background: rgba(148, 163, 184, 0.14);
    color: #334155;
}

.project-action-btn.subtle:hover {
    border-color: rgba(100, 116, 139, 0.34);
}

@media (max-width: 991.98px) {
    .project-actions-bar {
        align-items: stretch;
    }

    .project-actions-buttons {
        width: 100%;
        justify-content: flex-start;
    }
}

@media (max-width: 575.98px) {
    .project-action-btn {
        width: 100%;
        min-width: 0;
    }

    .project-actions-title {
        font-size: 1rem;
    }

    .project-actions-text {
        font-size: 0.92rem;
    }
}

.project-actions-right {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-end;
}

.project-actions-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.project-actions-group-label {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748b;
    margin-right: 0.35rem;
}

/* smaller buttons for client navigation */
.project-action-btn.small {
    min-width: auto;
    padding: 0.5rem 0.7rem;
    border-radius: 12px;
    font-size: 0.8rem;
    gap: 0.4rem;
}

.project-action-btn.small i {
    font-size: 0.9rem;
}

.project-actions-group .project-action-btn.small {
    min-width: auto;
    padding: 0.6rem 0.8rem;
    border-radius: 12px;
    font-size: 0.82rem;
    font-weight: 700;
    gap: 0.45rem;
}

.project-actions-group .project-action-btn.small span {
    display: inline;
}

.project-actions-group .project-action-btn.small.primary {
    box-shadow: 0 12px 24px rgba(14, 165, 233, 0.10);
}

.project-actions-group .project-action-btn.small.subtle {
    background: #ffffff;
}

@media (max-width: 991.98px) {
    .project-actions-right {
        width: 100%;
        align-items: stretch;
    }

    .project-actions-group {
        width: 100%;
    }
}

@media (max-width: 575.98px) {
    .project-actions-group {
        align-items: stretch;
    }

    .project-actions-group-label {
        width: 100%;
        margin-right: 0;
        margin-bottom: 0.2rem;
    }

    .project-actions-group .project-action-btn.small {
        flex: 1 1 calc(50% - 0.5rem);
        justify-content: center;
    }
}

.project-notes-table-shell {
        border: 1px solid rgba(15, 23, 42, 0.08);
        border-radius: 22px;
        background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    }

    #projectNotesTable thead .datatable-filters th {
        padding: 0.5rem;
        vertical-align: middle;
    }

    #projectNotesTable thead .datatable-filters input,
    #projectNotesTable thead .datatable-filters select {
        min-width: 100%;
    }

    .project-note-table-title {
        max-width: 320px;
        white-space: normal;
        word-break: break-word;
    }

    .project-note-table-tags {
        display: flex;
        flex-wrap: wrap;
        gap: 0.35rem;
        min-width: 180px;
        white-space: normal;
    }

    .project-note-tag {
        display: inline-flex;
        align-items: center;
        padding: 0.25rem 0.65rem;
        border-radius: 999px;
        font-size: 0.75rem;
        font-weight: 700;
        background: #e2e8f0;
        color: #0f172a;
    }

    .project-action-btn.view-active {
    border-color: rgba(14, 165, 233, 0.38);
    background: linear-gradient(180deg, #eff6ff 0%, #dbeafe 100%);
    color: #0f172a;
    box-shadow:
        0 10px 24px rgba(14, 165, 233, 0.14),
        inset 0 0 0 1px rgba(14, 165, 233, 0.10);
}

.project-action-btn.view-active:hover,
.project-action-btn.view-active:focus {
    color: #0f172a;
    border-color: rgba(14, 165, 233, 0.48);
    box-shadow:
        0 14px 30px rgba(14, 165, 233, 0.18),
        inset 0 0 0 1px rgba(14, 165, 233, 0.12);
}

.project-action-btn.view-active i {
    color: #0369a1;
}

.project-action-btn.view-active span {
    font-weight: 800;
}

.project-action-btn.action-active {
    border-color: rgba(14, 165, 233, 0.38);
    background: linear-gradient(180deg, #f0f9ff 0%, #e0f2fe 100%);
    box-shadow:
        0 12px 28px rgba(14, 165, 233, 0.18),
        inset 0 0 0 1px rgba(14, 165, 233, 0.12);
    transform: translateY(-1px);
}

.project-action-btn.action-active:hover {
    border-color: rgba(14, 165, 233, 0.55);
    box-shadow:
        0 16px 36px rgba(14, 165, 233, 0.22),
        inset 0 0 0 1px rgba(14, 165, 233, 0.16);
}

.project-action-btn.action-active .project-action-btn-icon {
    background: rgba(14, 165, 233, 0.18);
    color: #0369a1;
}

.project-action-btn.action-active strong {
    color: #0c4a6e;
}

.project-tasks-table-shell {
        border: 1px solid rgba(15, 23, 42, 0.08);
        border-radius: 22px;
        background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    }

    #projectTasksTable thead .datatable-filters th {
        padding: 0.5rem;
        vertical-align: middle;
    }

    #projectTasksTable thead .datatable-filters input,
    #projectTasksTable thead .datatable-filters select {
        min-width: 100%;
    }

    .project-task-table-title {
        max-width: 320px;
        white-space: normal;
        word-break: break-word;
    }

    .vault-hero-card {
        background:
            radial-gradient(circle at top right, rgba(15, 23, 42, 0.2), transparent 36%),
            linear-gradient(135deg, #0f172a 0%, #134e4a 100%);
        color: #fff;
        border: 0;
    }

    .vault-summary-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 1rem;
    }

    .vault-entity-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1rem;
    }

    .vault-entity-card {
        border: 1px solid rgba(15, 23, 42, 0.08);
        border-radius: 22px;
        background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
        height: 100%;
    }

    .vault-table-hero-card {
        background:
            radial-gradient(circle at top right, rgba(15, 23, 42, 0.2), transparent 36%),
            linear-gradient(135deg, #0f172a 0%, #134e4a 100%);
        color: #fff;
        border: 0;
    }

    .vault-table-name {
        max-width: 280px;
        white-space: normal;
        word-break: break-word;
    }

    #vaultEntitiesTable thead .datatable-filters th {
        padding: 0.5rem;
        vertical-align: middle;
    }

    #vaultEntitiesTable thead .datatable-filters input,
    #vaultEntitiesTable thead .datatable-filters select {
        min-width: 100%;
    }

    .project-workspace-hero {
        background:
            radial-gradient(circle at top right, rgba(14, 165, 233, 0.22), transparent 34%),
            linear-gradient(135deg, #0f172a 0%, #1d4ed8 100%);
        color: #fff;
        border: 0;
    }

    .project-workspace-hero-summary {
        line-height: 1.75;
    }

    .project-workspace-hero-summary p:last-child {
        margin-bottom: 0;
    }

    .project-workspace-hero-summary ul,
    .project-workspace-hero-summary ol {
        padding-left: 1.25rem;
    }

    .project-workspace-hero-summary a {
        color: #bfdbfe;
        text-decoration: underline;
        text-underline-offset: 0.18em;
    }

    .client-projects-hero {
        background:
            radial-gradient(circle at top right, rgba(14, 165, 233, 0.14), transparent 34%),
            linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
        border: 1px solid rgba(14, 165, 233, 0.16);
    }

    .client-projects-shell {
        border: 1px solid rgba(15, 23, 42, 0.08);
        border-radius: 22px;
        background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    }

    #clientProjectsTable thead .datatable-filters th {
        padding: 0.5rem;
        vertical-align: middle;
    }

    #clientProjectsTable thead .datatable-filters input,
    #clientProjectsTable thead .datatable-filters select {
        min-width: 100%;
    }

    .client-project-name {
        max-width: 320px;
        white-space: normal;
        word-break: break-word;
    }

    .client-workspace-hero {
        background:
            radial-gradient(circle at top right, rgba(14, 116, 144, 0.18), transparent 34%),
            linear-gradient(135deg, #ffffff 0%, #f4fbfd 100%);
        border: 1px solid rgba(14, 116, 144, 0.12);
    }

    .client-workspace-card {
        border: 1px solid rgba(15, 23, 42, 0.08);
        background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
        border-radius: 22px;
    }

    .client-module-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 1rem;
    }

    .client-module-card {
        border: 1px solid rgba(15, 23, 42, 0.08);
        border-radius: 20px;
        padding: 1.2rem;
        background: #fff;
        height: 100%;
    }

    .workspace-meta {
    text-align: right;
    padding: 0.6rem 0.8rem;
    border-radius: 12px;
    background: rgba(14, 165, 233, 0.06);
    border: 1px solid rgba(14, 165, 233, 0.12);
    min-width: 90px;
}

.workspace-meta-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748b;
    margin-bottom: 0.1rem;
}

.workspace-meta-value {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
}

.task-view-shell { border: 1px solid rgba(15, 23, 42, 0.08); border-radius: 22px; background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%); }
    .task-meta-card, .task-section-card { border: 1px solid rgba(148, 163, 184, 0.18); border-radius: 20px; background: #fff; }
    .task-link-list { display: flex; flex-direction: column; gap: 0.75rem; }
    .task-context-list { display: flex; flex-direction: column; gap: 0.85rem; }
    .task-summary-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; }
    .task-summary-item, .task-metadata-panel, .task-relationship-item {
        border: 1px solid rgba(148, 163, 184, 0.18);
        border-radius: 18px;
        background: #fff;
    }
    .task-summary-item { padding: 1rem; }
    .task-rich-text { color: #475569; line-height: 1.75; }
    .task-rich-text p:last-child { margin-bottom: 0; }
    .task-rich-text ul, .task-rich-text ol { padding-left: 1.25rem; }
    .task-rich-text a { color: #0f766e; text-decoration: underline; text-underline-offset: 0.18em; }
    .task-relationship-group + .task-relationship-group {
        border-top: 1px solid rgba(226, 232, 240, 0.9);
        margin-top: 1.25rem;
        padding-top: 1.25rem;
    }
    .task-metadata-stack { display: flex; flex-direction: column; gap: 1rem; }
    .task-metadata-json {
        margin: 0;
        padding: 0.9rem 1rem;
        border-radius: 16px;
        background: #0f172a;
        color: #e2e8f0;
        font-size: 0.82rem;
        line-height: 1.55;
        white-space: pre-wrap;
        word-break: break-word;
    }
    .task-meta-table td {
        background: transparent;
        vertical-align: top;
    }
    .comment-composer-shell { position: relative; }
    .comment-mention-menu {
        position: absolute;
        left: 0;
        right: 0;
        top: calc(100% + 0.5rem);
        z-index: 10;
        display: none;
        border: 1px solid rgba(148, 163, 184, 0.25);
        border-radius: 16px;
        background: #fff;
        box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
        overflow: hidden;
    }
    .comment-mention-option {
        width: 100%;
        border: 0;
        border-bottom: 1px solid rgba(226, 232, 240, 0.9);
        background: #fff;
        padding: 0.85rem 1rem;
        text-align: left;
        display: flex;
        justify-content: space-between;
        gap: 1rem;
    }
    .comment-mention-option:last-child { border-bottom: 0; }
    .comment-mention-option.active, .comment-mention-option:hover { background: #eff6ff; }
    .comment-mention-option-name { font-weight: 700; color: #0f172a; }
    .comment-mention-option-role { color: #64748b; font-size: 0.85rem; }
    .comment-list { display: flex; flex-direction: column; gap: 1rem; }
    .comment-avatar { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; background: #e2e8f0; }
    .comment-body { color: #334155; line-height: 1.6; word-break: break-word; }
    .comment-body .mention,
    .comment-body .comment-mention {
        display: inline-flex;
        align-items: center;
        padding: 0.05rem 0.4rem;
        border-radius: 999px;
        background: #dbeafe;
        color: #1d4ed8;
        font-weight: 700;
        text-decoration: none;
    }

    .comment-body .mention:hover,
    .comment-body .comment-mention:hover {
        background: #bfdbfe;
        color: #1e40af;
    }
    .comment-body .comment-link {
        color: #0f766e;
        font-weight: 600;
        text-decoration: underline;
        text-underline-offset: 0.18em;
    }
    .task-section-card.comment-targeted {
        border-color: rgba(14, 165, 233, 0.7);
        box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.14);
        transition: box-shadow 0.25s ease, border-color 0.25s ease;
    }

    .task-form-shell { border: 1px solid rgba(15, 23, 42, 0.08); border-radius: 22px; background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%); }
    .task-form-help { border-radius: 20px; background: #0f172a; color: #f8fafc; }
    .task-relationship-card { border: 1px solid rgba(148, 163, 184, 0.18); border-radius: 18px; background: #fff; }
    .task-relationship-list { display: flex; flex-direction: column; gap: 0.75rem; }
