.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.png");
}

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

/* 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;
}

/* Login and registration wallpapers should be shown at their original brightness. */
.login-page::before,
.register-page::before{
  display: none;
}

.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 {
  --forge-badge-chart-color: #64748b;
  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-badge-warning {
  --forge-badge-chart-color: #d97706;
  background: #fef3c7;
  border-color: #fcd34d;
  color: #92400e;
}

.forge-badge-danger {
  --forge-badge-chart-color: #dc2626;
  background: #fee2e2;
  border-color: #fca5a5;
  color: #991b1b;
}

html.app-skin-dark .forge-badge-warning {
  background: rgba(217, 119, 6, 0.2);
  border-color: rgba(251, 191, 36, 0.55);
  color: #fde68a;
}

html.app-skin-dark .forge-badge-danger {
  background: rgba(220, 38, 38, 0.2);
  border-color: rgba(248, 113, 113, 0.55);
  color: #fecaca;
}

.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 {
  --forge-badge-chart-color: #2563eb;
  background: #e0f3ff;
  border-color: #9ec8ff;
  color: #0c4a8a;
}

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

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

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

.forge-badge-status-in-review {
  --forge-badge-chart-color: #4f46e5;
  background: #eef2ff;
  border-color: #a5b4fc;
  color: #3730a3;
}

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

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

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

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

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

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

html.app-skin-dark .forge-badge-status-in-review {
  background: rgba(79, 70, 229, 0.2);
  border-color: rgba(129, 140, 248, 0.55);
  color: #c7d2fe;
}

.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;
    min-width: 0;
    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;
    justify-content: flex-end;
    flex-wrap: wrap;
    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: stretch;
    }

    .forge-public-actions .btn {
        flex: 1 1 8.5rem;
        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 .forge-mobile-header-wrapper {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
}

.nxl-header .forge-mobile-primary-bar {
  display: contents;
}

.nxl-header .forge-mobile-action-rail {
  min-width: 0;
  grid-column: 2;
  grid-row: 1;
}

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

.nxl-header .header-left {
  flex: 0 0 auto;
  grid-column: 1;
  grid-row: 1;
}

.nxl-header .header-right {
  flex: 0 0 auto;
  grid-column: 3;
  grid-row: 1;
  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;
}

.forge-mobile-context-title {
  display: none;
}

.forge-xp-toast-container {
  position: fixed;
  top: 82px;
  right: 1rem;
  z-index: 1095;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: min(360px, calc(100vw - 2rem));
  pointer-events: none;
}

.forge-xp-toast {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  overflow: hidden;
  padding: 0.85rem 0.9rem;
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.16);
  color: #0f172a;
  pointer-events: auto;
  animation: forgeXpToastIn 0.24s ease-out;
}

.forge-xp-toast-level-up {
  border-color: rgba(245, 158, 11, 0.34);
  background:
    linear-gradient(135deg, rgba(255, 251, 235, 0.96) 0%, rgba(255, 255, 255, 0.98) 62%),
    #ffffff;
  box-shadow: 0 22px 56px rgba(180, 83, 9, 0.22);
}

.forge-xp-toast-hiding {
  animation: forgeXpToastOut 0.2s ease-in forwards;
}

.forge-xp-toast-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  flex: 0 0 2.25rem;
  border-radius: 8px;
  background: rgba(37, 99, 235, 0.1);
  color: #1d4ed8;
}

.forge-xp-toast-level-up .forge-xp-toast-icon {
  background: rgba(245, 158, 11, 0.16);
  color: #b45309;
}

.forge-xp-toast-body {
  min-width: 0;
  flex: 1 1 auto;
}

.forge-xp-toast-title {
  font-weight: 800;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.forge-xp-toast-text {
  margin-top: 0.18rem;
  color: #64748b;
  font-size: 0.78rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.forge-xp-toast-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.8rem;
  height: 1.8rem;
  flex: 0 0 auto;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #64748b;
}

.forge-xp-toast-close:hover,
.forge-xp-toast-close:focus {
  background: rgba(15, 23, 42, 0.06);
  color: #0f172a;
}

.forge-mission-toast .forge-xp-toast-icon {
  background: rgba(37, 99, 235, 0.12);
  color: #2563eb;
}

.forge-mission-toast-complete .forge-xp-toast-icon {
  background: rgba(22, 163, 74, 0.12);
  color: #16a34a;
}

.forge-missions-hero .card-body {
  min-height: 132px;
}

.forge-mission-summary-card,
.forge-mission-card {
  border: 1px solid rgba(148, 163, 184, 0.22);
}

.forge-mission-card {
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.forge-mission-card:hover {
  transform: translateY(-2px);
  border-color: rgba(52, 84, 209, 0.24);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
}

.forge-mission-card-completed {
  border-color: rgba(22, 163, 74, 0.28);
}

.forge-mission-card-expired {
  opacity: 0.72;
  background: #f8fafc;
}

.forge-mission-card-candidate {
  border-style: dashed;
  background: rgba(248, 250, 252, 0.66);
}

.forge-mission-card-candidate:hover {
  border-color: rgba(100, 116, 139, 0.38);
}

.forge-mission-group-empty {
  background: rgba(248, 250, 252, 0.72);
  border-color: rgba(148, 163, 184, 0.24) !important;
}

.forge-mission-context .badge {
  max-width: 100%;
  overflow-wrap: anywhere;
  white-space: normal;
  text-align: left;
}

.forge-mission-actions .btn {
  white-space: nowrap;
}

.forge-mission-why {
  border-left: 3px solid rgba(52, 84, 209, 0.24);
  padding-left: 12px;
}

@media (max-width: 575.98px) {
  .forge-mission-card .card-body {
    padding: 18px;
  }

  .forge-mission-card .btn {
    width: 100%;
  }
}

.forge-xp-confetti {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.forge-xp-confetti span {
  position: absolute;
  top: -0.4rem;
  left: calc(8% + (var(--i) * 9%));
  width: 0.38rem;
  height: 0.72rem;
  border-radius: 2px;
  background: hsl(calc(35 + var(--i) * 28), 82%, 56%);
  opacity: 0.85;
  transform: translateY(-0.5rem) rotate(0deg);
  animation: forgeXpConfetti 1.2s ease-out forwards;
  animation-delay: calc(var(--i) * 0.035s);
}

.nxl-header .nxl-level-badge.forge-level-badge-pulse {
  animation: forgeLevelBadgePulse 2.4s ease-out;
}

.nxl-header .nxl-level-badge.forge-level-badge-pulse .nxl-level-progress-bar {
  background: linear-gradient(90deg, #f59e0b, #22c55e, #0ea5e9);
  animation: forgeLevelProgressGlow 1.35s ease-out;
}

.forge-topbar-actions {
  align-items: center;
  flex-wrap: nowrap;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  touch-action: pan-x;
  overscroll-behavior-x: contain;
}

.forge-topbar-actions::-webkit-scrollbar {
  display: none;
}

.nxl-header {
  z-index: 1030 !important;
}

.forge-topbar-action {
  --forge-topbar-action-bg: #f8fafc;
  --forge-topbar-action-border: #e2e8f0;
  --forge-topbar-action-color: #475569;
  --forge-topbar-action-hover-bg: #f1f5f9;
  --forge-topbar-action-hover-border: #cbd5e1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-width: 2.45rem;
  height: 2.45rem;
  padding: 0 0.72rem;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  background: var(--forge-topbar-action-bg);
  border-color: var(--forge-topbar-action-border);
  color: var(--forge-topbar-action-color);
  transition: border-color 0.16s ease, background-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.forge-topbar-action i {
  font-size: 1rem;
  flex: 0 0 auto;
}

.forge-topbar-action span {
  min-width: 0;
}

.forge-topbar-action.forge-topbar-action-icon-only {
  width: 2.45rem;
  min-width: 2.45rem;
  padding-inline: 0;
  gap: 0;
}

.forge-topbar-action.forge-topbar-action-icon-only span {
  display: none;
}

.forge-topbar-action-client { --forge-topbar-action-bg: #e0f2fe; --forge-topbar-action-border: #bae6fd; --forge-topbar-action-color: #075985; --forge-topbar-action-hover-bg: #dbeafe; --forge-topbar-action-hover-border: #7dd3fc; }
.forge-topbar-action-project { --forge-topbar-action-bg: #eef2ff; --forge-topbar-action-border: #c7d2fe; --forge-topbar-action-color: #3730a3; --forge-topbar-action-hover-bg: #e0e7ff; --forge-topbar-action-hover-border: #a5b4fc; }
.forge-topbar-action-task { --forge-topbar-action-bg: #dcfce7; --forge-topbar-action-border: #bbf7d0; --forge-topbar-action-color: #166534; --forge-topbar-action-hover-bg: #d1fae5; --forge-topbar-action-hover-border: #86efac; }
.forge-topbar-action-note { --forge-topbar-action-bg: #fef3c7; --forge-topbar-action-border: #fde68a; --forge-topbar-action-color: #92400e; --forge-topbar-action-hover-bg: #fef9c3; --forge-topbar-action-hover-border: #fcd34d; }
.forge-topbar-action-issue { --forge-topbar-action-bg: #fee2e2; --forge-topbar-action-border: #fecaca; --forge-topbar-action-color: #991b1b; --forge-topbar-action-hover-bg: #ffe4e6; --forge-topbar-action-hover-border: #fca5a5; }
.forge-topbar-action-vault { --forge-topbar-action-bg: #f3e8ff; --forge-topbar-action-border: #e9d5ff; --forge-topbar-action-color: #6b21a8; --forge-topbar-action-hover-bg: #ede9fe; --forge-topbar-action-hover-border: #d8b4fe; }
.forge-topbar-action-management { --forge-topbar-action-bg: #e2e8f0; --forge-topbar-action-border: #cbd5e1; --forge-topbar-action-color: #0f172a; --forge-topbar-action-hover-bg: #f1f5f9; --forge-topbar-action-hover-border: #94a3b8; }
.forge-topbar-action-documentation,
.forge-topbar-action-muted { --forge-topbar-action-bg: #f8fafc; --forge-topbar-action-border: #e2e8f0; --forge-topbar-action-color: #475569; --forge-topbar-action-hover-bg: #f1f5f9; --forge-topbar-action-hover-border: #cbd5e1; }

.forge-topbar-action:hover,
.forge-topbar-action:focus {
  background: var(--forge-topbar-action-hover-bg);
  border-color: var(--forge-topbar-action-hover-border);
  color: var(--forge-topbar-action-color);
  box-shadow: 0 0 0 2px rgba(148, 163, 184, 0.08);
}

.forge-topbar-action.active,
.forge-topbar-action[aria-current="page"] {
  background: var(--forge-topbar-action-active-bg, var(--forge-topbar-action-hover-bg));
  border-color: var(--forge-topbar-action-active-border, var(--forge-topbar-action-hover-border));
  color: var(--forge-topbar-action-color);
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.12);
}

.forge-topbar-action.disabled,
.forge-topbar-action[aria-disabled="true"] {
  opacity: 0.55;
  pointer-events: none;
  cursor: default;
  box-shadow: none;
}

.forge-pwa-install-label {
  display: none;
}

.forge-sticky-table:not(.forge-table-no-sticky) thead th,
.forge-table-sticky-header:not(.forge-table-no-sticky) thead th,
.table-responsive:not(.forge-table-no-sticky) > table.dataTable:not(.forge-table-no-sticky) thead th,
table.dataTable.forge-sticky-table:not(.forge-table-no-sticky) thead th {
  --forge-table-header-border: rgba(148, 163, 184, 0.42);
  --forge-table-header-shadow: rgba(15, 23, 42, 0.08);
  position: sticky !important;
  top: var(--forge-sticky-table-offset, 72px) !important;
  z-index: 20 !important;
  background: var(--forge-table-header-bg, var(--card-bg, #ffffff)) !important;
  background-color: var(--forge-table-header-bg, var(--card-bg, #ffffff)) !important;
  background-clip: border-box;
  border-bottom: 1px solid var(--forge-table-header-border) !important;
  box-shadow:
    0 3px 6px -5px var(--forge-table-header-shadow),
    inset 0 -1px 0 var(--forge-table-header-border);
}

.forge-sticky-table:not(.forge-table-no-sticky) thead tr.datatable-filters th,
.forge-table-sticky-header:not(.forge-table-no-sticky) thead tr.datatable-filters th,
.table-responsive:not(.forge-table-no-sticky) > table.dataTable:not(.forge-table-no-sticky) thead tr.datatable-filters th,
table.dataTable.forge-sticky-table:not(.forge-table-no-sticky) thead tr.datatable-filters th {
  top: calc(var(--forge-sticky-table-offset, 72px) + var(--forge-sticky-header-row-height, 42px)) !important;
  z-index: 19 !important;
  background: var(--forge-table-filter-header-bg, #f8fafc) !important;
  background-color: var(--forge-table-filter-header-bg, #f8fafc) !important;
}

.forge-sticky-table:not(.forge-table-no-sticky) thead th::after,
.forge-table-sticky-header:not(.forge-table-no-sticky) thead th::after,
.table-responsive:not(.forge-table-no-sticky) > table.dataTable:not(.forge-table-no-sticky) thead th::after,
table.dataTable.forge-sticky-table:not(.forge-table-no-sticky) thead th::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  background: linear-gradient(to bottom, var(--forge-table-header-border), rgba(148, 163, 184, 0));
  pointer-events: none;
}

.forge-sticky-table:not(.forge-table-no-sticky) tbody tr:first-child > *,
.forge-table-sticky-header:not(.forge-table-no-sticky) tbody tr:first-child > *,
.table-responsive:not(.forge-table-no-sticky) > table.dataTable:not(.forge-table-no-sticky) tbody tr:first-child > *,
table.dataTable.forge-sticky-table:not(.forge-table-no-sticky) tbody tr:first-child > * {
  padding-top: calc(var(--bs-table-cell-padding-y, 0.5rem) + 0.25rem);
}

.table-responsive .forge-sticky-table {
  border-collapse: separate;
  border-spacing: 0;
}

.nxl-container .nxl-content .main-content.forge-main-content-with-sticky-tables {
  overflow-x: visible !important;
}

.table-responsive.forge-sticky-table-wrapper {
  overflow: visible !important;
}

.table-responsive.forge-table-no-sticky .forge-sticky-table thead th,
.forge-table-no-sticky.forge-sticky-table thead th {
  position: static;
  box-shadow: none;
}

@keyframes forgeXpToastIn {
  from { opacity: 0; transform: translate3d(18px, -8px, 0) scale(0.98); }
  to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

@keyframes forgeXpToastOut {
  to { opacity: 0; transform: translate3d(18px, -4px, 0) scale(0.98); }
}

@keyframes forgeXpConfetti {
  0% { opacity: 0; transform: translateY(-0.5rem) rotate(0deg); }
  12% { opacity: 1; }
  100% { opacity: 0; transform: translateY(4.5rem) rotate(210deg); }
}

@keyframes forgeLevelBadgePulse {
  0% { box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08); transform: translateY(0); }
  22% { box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.2), 0 18px 40px rgba(245, 158, 11, 0.22); transform: translateY(-1px); }
  100% { box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08); transform: translateY(0); }
}

@keyframes forgeLevelProgressGlow {
  0% { filter: brightness(1); }
  35% { filter: brightness(1.3); }
  100% { filter: brightness(1); }
}

@media (max-width: 575.98px) {
  .forge-xp-toast-container {
    top: 72px;
    right: 0.75rem;
    width: min(330px, calc(100vw - 1.5rem));
  }
}

@media (prefers-reduced-motion: reduce) {
  .forge-xp-toast,
  .forge-xp-toast-hiding,
  .forge-xp-confetti span,
  .nxl-header .nxl-level-badge.forge-level-badge-pulse,
  .nxl-header .nxl-level-badge.forge-level-badge-pulse .nxl-level-progress-bar {
    animation: none !important;
    transition: none !important;
  }

  .forge-xp-confetti {
    display: none;
  }
}

html.app-skin-dark .forge-xp-toast {
  border-color: #1b2436;
  background: #121a2d;
  color: #f8fafc;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.32);
}

html.app-skin-dark .forge-xp-toast-level-up {
  border-color: rgba(245, 158, 11, 0.38);
  background:
    linear-gradient(135deg, rgba(69, 45, 10, 0.96) 0%, rgba(18, 26, 45, 0.98) 62%),
    #121a2d;
}

html.app-skin-dark .forge-xp-toast-text,
html.app-skin-dark .forge-xp-toast-close {
  color: #b1b4c0;
}

html.app-skin-dark .forge-xp-toast-close:hover,
html.app-skin-dark .forge-xp-toast-close:focus {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

html.app-skin-dark .forge-topbar-action-client { --forge-topbar-action-bg: rgba(14, 165, 233, 0.16); --forge-topbar-action-border: rgba(125, 211, 252, 0.28); --forge-topbar-action-color: #bae6fd; --forge-topbar-action-hover-bg: rgba(14, 165, 233, 0.24); --forge-topbar-action-hover-border: rgba(125, 211, 252, 0.44); }
html.app-skin-dark .forge-topbar-action-project { --forge-topbar-action-bg: rgba(79, 70, 229, 0.2); --forge-topbar-action-border: rgba(129, 140, 248, 0.35); --forge-topbar-action-color: #c7d2fe; --forge-topbar-action-hover-bg: rgba(79, 70, 229, 0.28); --forge-topbar-action-hover-border: rgba(129, 140, 248, 0.52); }
html.app-skin-dark .forge-topbar-action-task { --forge-topbar-action-bg: rgba(22, 163, 74, 0.16); --forge-topbar-action-border: rgba(134, 239, 172, 0.3); --forge-topbar-action-color: #bbf7d0; --forge-topbar-action-hover-bg: rgba(22, 163, 74, 0.24); --forge-topbar-action-hover-border: rgba(134, 239, 172, 0.48); }
html.app-skin-dark .forge-topbar-action-note { --forge-topbar-action-bg: rgba(217, 119, 6, 0.18); --forge-topbar-action-border: rgba(252, 211, 77, 0.32); --forge-topbar-action-color: #fde68a; --forge-topbar-action-hover-bg: rgba(217, 119, 6, 0.26); --forge-topbar-action-hover-border: rgba(252, 211, 77, 0.5); }
html.app-skin-dark .forge-topbar-action-issue { --forge-topbar-action-bg: rgba(220, 38, 38, 0.18); --forge-topbar-action-border: rgba(252, 165, 165, 0.28); --forge-topbar-action-color: #fecaca; --forge-topbar-action-hover-bg: rgba(220, 38, 38, 0.26); --forge-topbar-action-hover-border: rgba(252, 165, 165, 0.46); }
html.app-skin-dark .forge-topbar-action-vault { --forge-topbar-action-bg: rgba(147, 51, 234, 0.18); --forge-topbar-action-border: rgba(216, 180, 254, 0.28); --forge-topbar-action-color: #e9d5ff; --forge-topbar-action-hover-bg: rgba(147, 51, 234, 0.26); --forge-topbar-action-hover-border: rgba(216, 180, 254, 0.44); }
html.app-skin-dark .forge-topbar-action-management,
html.app-skin-dark .forge-topbar-action-documentation,
html.app-skin-dark .forge-topbar-action-muted { --forge-topbar-action-bg: #121a2d; --forge-topbar-action-border: #1b2436; --forge-topbar-action-color: #cbd5e1; --forge-topbar-action-hover-bg: #172033; --forge-topbar-action-hover-border: #2d3a50; }

html.app-skin-dark .forge-topbar-action.active,
html.app-skin-dark .forge-topbar-action[aria-current="page"] {
  box-shadow: inset 0 0 0 1px rgba(226, 232, 240, 0.14);
}

html.app-skin-dark .forge-sticky-table:not(.forge-table-no-sticky) thead th,
html.app-skin-dark .forge-table-sticky-header:not(.forge-table-no-sticky) thead th,
html.app-skin-dark .table-responsive:not(.forge-table-no-sticky) > table.dataTable:not(.forge-table-no-sticky) thead th,
html.app-skin-dark table.dataTable.forge-sticky-table:not(.forge-table-no-sticky) thead th {
  --forge-table-header-border: #2a3650;
  --forge-table-header-shadow: rgba(0, 0, 0, 0.32);
  background: var(--forge-table-header-bg, #121a2d) !important;
  background-color: var(--forge-table-header-bg, #121a2d) !important;
}

html.app-skin-dark .forge-sticky-table:not(.forge-table-no-sticky) thead tr.datatable-filters th,
html.app-skin-dark .forge-table-sticky-header:not(.forge-table-no-sticky) thead tr.datatable-filters th,
html.app-skin-dark .table-responsive:not(.forge-table-no-sticky) > table.dataTable:not(.forge-table-no-sticky) thead tr.datatable-filters th,
html.app-skin-dark table.dataTable.forge-sticky-table:not(.forge-table-no-sticky) thead tr.datatable-filters th {
  background: var(--forge-table-filter-header-bg, #0f172a) !important;
  background-color: var(--forge-table-filter-header-bg, #0f172a) !important;
}

html.app-skin-dark .forge-sticky-table:not(.forge-table-no-sticky) thead th::after,
html.app-skin-dark .forge-table-sticky-header:not(.forge-table-no-sticky) thead th::after,
html.app-skin-dark .table-responsive:not(.forge-table-no-sticky) > table.dataTable:not(.forge-table-no-sticky) thead th::after,
html.app-skin-dark table.dataTable.forge-sticky-table:not(.forge-table-no-sticky) thead th::after {
  background: linear-gradient(to bottom, var(--forge-table-header-border), rgba(27, 36, 54, 0));
}

@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;
    min-width: 0;
  }

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

  .nxl-header .nxl-lavel-mega-menu-wrapper.forge-topbar-actions {
    display: flex !important;
    gap: 0.35rem !important;
    flex: 0 1 auto;
    flex-wrap: nowrap;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    touch-action: pan-x;
    overscroll-behavior-x: contain;
    contain: content;
  }

  .nxl-header .nxl-lavel-mega-menu-wrapper.forge-topbar-actions::-webkit-scrollbar {
    display: none;
  }

  .nxl-header .forge-topbar-action span {
    display: none;
  }

  .nxl-header .forge-topbar-action {
    width: 2.35rem;
    height: 2.35rem;
    min-width: 2.35rem;
    padding: 0;
    box-shadow: none;
  }

  .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;
  }

  .nxl-header .dropdown-menu {
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.14);
  }
}

@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));
  }

  .nxl-header .forge-pwa-topbar-action .nxl-head-link {
    width: auto;
    min-width: 2.2rem;
    gap: 0.35rem;
    padding: 0 0.55rem;
    white-space: nowrap;
  }

  .forge-pwa-install-label {
    display: inline-flex;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
  }
}

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

@media (max-width: 767.98px) {
  .nxl-header.forge-mobile-shell-header {
    height: auto;
    min-height: calc(58px + env(safe-area-inset-top, 0px));
    overflow: visible;
  }

  .nxl-header .forge-mobile-header-wrapper {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    height: auto;
    min-height: calc(58px + env(safe-area-inset-top, 0px));
    padding-top: env(safe-area-inset-top, 0px);
    overflow: visible;
  }

  .nxl-header .forge-mobile-primary-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    width: 100%;
    min-height: 58px;
    padding: 0 0.65rem;
  }

  .nxl-header .header-left {
    flex: 1 1 auto;
    min-width: 0;
    overflow: visible;
  }

  .nxl-header .header-right {
    flex: 0 0 auto;
    min-width: 0;
  }

  .nxl-header .nxl-navigation-toggle,
  .nxl-header .nxl-drp-link.nxl-lavel-mega-menu,
  .nxl-header .full-screen-switcher,
  .nxl-header .nxl-level-badge-wrapper {
    display: none !important;
  }

  .nxl-header .nxl-head-mobile-toggler {
    flex: 0 0 auto;
  }

  .forge-mobile-context-title {
    display: block;
    min-width: 0;
    max-width: 100%;
    color: var(--forge-text, #0f172a);
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  html.app-skin-dark .forge-mobile-context-title {
    color: #f8fafc;
  }

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

  .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.45rem;
    height: 2.45rem;
    min-width: 2.45rem;
  }

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

  .nxl-header .forge-mobile-action-rail {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 0.4rem 0.75rem;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    touch-action: pan-x;
    overscroll-behavior-x: contain;
  }

  .nxl-header .forge-mobile-action-rail::-webkit-scrollbar {
    display: none;
  }

  .nxl-header .nxl-lavel-mega-menu-wrapper.forge-topbar-actions {
    display: flex !important;
    width: max-content;
    max-width: none;
    min-width: 100%;
    gap: 0.45rem !important;
    padding: 0;
    overflow: visible;
    contain: none;
  }

  .nxl-header .forge-topbar-action {
    width: auto;
    min-width: 2.65rem;
    height: 2.65rem;
    padding: 0 0.75rem;
    flex: 0 0 auto;
    gap: 0.35rem;
    box-shadow: none;
  }

  .nxl-header .forge-topbar-action span {
    display: inline-flex;
    max-width: 8.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .nxl-header .forge-topbar-action.forge-topbar-action-icon-only {
    width: 2.65rem;
    min-width: 2.65rem;
    padding: 0;
  }

  .nxl-header .forge-topbar-action.forge-topbar-action-icon-only span {
    display: none;
  }

  .table-responsive,
  .table-responsive.forge-sticky-table-wrapper,
  .dataTables_wrapper {
    width: 100%;
    max-width: 100%;
    overflow-x: auto !important;
    overflow-y: visible !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    touch-action: pan-x pan-y;
  }

  .table-responsive > table,
  .table-responsive table,
  table.dataTable {
    width: max-content;
    min-width: max-content;
  }

  .forge-sticky-table thead th,
  .forge-table-sticky-header thead th,
  .table-responsive > table.dataTable thead th,
  table.dataTable.forge-sticky-table thead th,
  .forge-sticky-table thead th::after,
  .forge-table-sticky-header thead th::after,
  .table-responsive > table.dataTable thead th::after,
  table.dataTable.forge-sticky-table thead th::after {
    position: static !important;
    top: auto !important;
    z-index: auto !important;
    box-shadow: none !important;
  }

  .forge-sticky-table thead th::after,
  .forge-table-sticky-header thead th::after,
  .table-responsive > table.dataTable thead th::after,
  table.dataTable.forge-sticky-table thead th::after {
    display: none !important;
  }

  .nxl-container .nxl-content .main-content.forge-main-content-with-sticky-tables {
    overflow-x: visible !important;
  }

  .dataTables_wrapper .row,
  .dataTables_wrapper div.row {
    --bs-gutter-y: 0.65rem;
  }

  .dataTables_wrapper .dataTables_length,
  .dataTables_wrapper .dataTables_filter,
  .dataTables_wrapper .dataTables_info,
  .dataTables_wrapper .dataTables_paginate {
    width: 100%;
    float: none !important;
    text-align: left !important;
  }

  .dataTables_wrapper .dataTables_filter label,
  .dataTables_wrapper .dataTables_length label {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    width: 100%;
  }

  .dataTables_wrapper .dataTables_filter input,
  .dataTables_wrapper .dataTables_length select {
    width: 100% !important;
    min-height: 40px;
    margin-left: 0 !important;
  }

  .dataTables_wrapper .dataTables_paginate {
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 0.15rem;
    -webkit-overflow-scrolling: touch;
  }

  .dataTables_wrapper .pagination {
    justify-content: flex-start !important;
    flex-wrap: nowrap;
    width: max-content;
    min-width: 100%;
  }

  html,
  body {
    scroll-behavior: auto;
    overscroll-behavior-y: auto;
  }

  .nxl-container,
  .nxl-content,
  .main-content {
    overflow-y: visible !important;
    height: auto !important;
    min-height: auto !important;
  }

  .project-kanban-board,
  .project-task-kanban-board {
    scroll-snap-type: none !important;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pan-y;
  }

  .project-kanban-column,
  .project-task-kanban-column {
    scroll-snap-align: none !important;
  }

  .project-kanban-shell .card-body,
  .project-task-kanban-shell .card-body {
    overflow: visible !important;
  }

  .page-header {
    margin-top: 0.75rem;
  }

  .card {
    border-radius: 8px;
  }

  .nxl-content {
    padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  }

  .nxl-header .nxl-search-dropdown,
  .nxl-header .nxl-user-dropdown,
  .nxl-header .dropdown-menu[data-bs-popper] {
    max-width: calc(100vw - 1rem);
    max-height: calc(100vh - 80px - env(safe-area-inset-bottom, 0px));
    max-height: calc(100dvh - 80px - env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
    overflow-x: hidden;
    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;
  }

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

  .header-search-panel .row {
    --bs-gutter-x: 0.5rem;
  }

  .header-search-results {
    max-height: min(360px, calc(100dvh - 220px));
  }
}

.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: #f8fafc;
}

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

.forge-get-started {
  --forge-public-ink: #0f172a;
  --forge-public-muted: #475569;
  --forge-public-soft: #f5f7fb;
  --forge-public-band: #eaf2f7;
  --forge-public-card: #ffffff;
  --forge-public-border: rgba(100, 116, 139, 0.2);
  --forge-public-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
  --forge-public-accent: #0f766e;
  color: var(--forge-public-ink);
  background: #f8fafc;
  overflow-x: hidden;
}

.forge-get-started .btn {
  border-radius: 8px;
  white-space: normal;
}

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

.forge-hero {
  overflow: hidden;
  padding: 4.25rem 0 4.75rem;
  color: #f8fafc;
  background:
    radial-gradient(circle at 78% 14%, rgba(20, 184, 166, 0.24), transparent 34%),
    linear-gradient(135deg, #07111f 0%, #132a36 52%, #193a3c 100%);
}

.forge-eyebrow,
.forge-section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border-radius: 8px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.forge-eyebrow {
  padding: 0.45rem 0.85rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #dff7f2;
}

.forge-section-kicker {
  margin-bottom: 0.75rem;
  color: var(--forge-public-accent);
}

.forge-hero h1 {
  max-width: 780px;
  font-size: clamp(2.35rem, 4.5vw, 4.45rem);
  line-height: 1.04;
  margin: 1rem 0;
  letter-spacing: 0;
  color: #ffffff;
}

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

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

.forge-hero-chips {
  margin-top: 1.4rem;
}

.forge-hero-chips span {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.42rem 0.78rem;
  border: 1px solid rgba(203, 213, 225, 0.2);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.28);
  color: rgba(241, 245, 249, 0.88);
  font-size: 0.78rem;
  font-weight: 700;
}

.forge-hero-visual {
  padding: 0.55rem;
  border: 1px solid rgba(203, 213, 225, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
}

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

.forge-section-light {
  background: var(--forge-public-soft);
}

.forge-section-soft {
  background: var(--forge-public-band);
}

.forge-section-heading {
  max-width: 790px;
  margin-bottom: 2.35rem;
}

.forge-section-heading h2 {
  font-size: clamp(1.85rem, 2.8vw, 3rem);
  line-height: 1.1;
  letter-spacing: 0;
  margin-bottom: 0.8rem;
  color: var(--forge-public-ink);
}

.forge-section-heading p {
  margin: 0;
  color: var(--forge-public-muted);
  font-size: 1rem;
  line-height: 1.65;
}

.forge-problem-grid,
.forge-persona-grid,
.forge-callout-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.forge-persona-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.forge-callout-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.forge-problem-card,
.forge-workflow-step,
.forge-tour-card,
.forge-persona-card,
.forge-callout,
.forge-registration-list li,
.forge-media-frame {
  border-radius: 8px;
  border: 1px solid var(--forge-public-border);
  box-shadow: var(--forge-public-shadow);
}

.forge-problem-card,
.forge-workflow-step,
.forge-persona-card,
.forge-callout,
.forge-registration-list li {
  background: var(--forge-public-card);
}

.forge-problem-card,
.forge-persona-card {
  min-width: 0;
  padding: 1.35rem;
}

.forge-problem-card i,
.forge-persona-card i,
.forge-callout > i {
  display: inline-flex;
  width: 2.55rem;
  height: 2.55rem;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  border-radius: 8px;
  background: rgba(15, 118, 110, 0.1);
  color: var(--forge-public-accent);
  font-size: 1.08rem;
}

.forge-problem-card h3,
.forge-workflow-step h3,
.forge-tour-copy h3,
.forge-persona-card h3,
.forge-callout h2 {
  color: var(--forge-public-ink);
  letter-spacing: 0;
}

.forge-problem-card h3,
.forge-persona-card h3 {
  margin-bottom: 0.55rem;
  font-size: 1.02rem;
}

.forge-problem-card p,
.forge-workflow-step p,
.forge-tour-copy p,
.forge-persona-card p,
.forge-callout p,
.forge-registration-list p,
.forge-final-cta p {
  color: var(--forge-public-muted);
  margin-bottom: 0;
  line-height: 1.58;
}

.forge-workflow {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.85rem;
}

.forge-workflow-step {
  position: relative;
  min-width: 0;
  padding: 1.05rem;
  overflow: hidden;
}

.forge-workflow-step::after {
  content: "";
  position: absolute;
  top: 1.45rem;
  right: -0.55rem;
  width: 1.1rem;
  height: 1.1rem;
  border-top: 1px solid rgba(15, 118, 110, 0.42);
  border-right: 1px solid rgba(15, 118, 110, 0.42);
  background: var(--forge-public-card);
  transform: rotate(45deg);
}

.forge-workflow-step:last-child::after {
  display: none;
}

.forge-workflow-index,
.forge-tour-copy span {
  display: block;
  margin-bottom: 0.8rem;
  color: rgba(15, 118, 110, 0.82);
  font-size: 0.72rem;
  font-weight: 800;
}

.forge-icon-wrap {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  margin-bottom: 0.95rem;
  background: rgba(245, 158, 11, 0.14);
  color: #b45309;
  font-size: 1.06rem;
}

.forge-workflow-step h3 {
  min-height: 2.35rem;
  margin-bottom: 0.45rem;
  font-size: 0.98rem;
}

.forge-workflow-step p {
  font-size: 0.86rem;
}

.forge-tour-list {
  display: grid;
  gap: 1.15rem;
}

.forge-tour-card {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1.05fr);
  align-items: center;
  overflow: hidden;
  background: var(--forge-public-card);
}

.forge-tour-card-reverse {
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
}

.forge-tour-card-reverse .forge-tour-media {
  order: 2;
}

.forge-tour-copy {
  min-width: 0;
  padding: clamp(1.25rem, 3vw, 2.2rem);
}

.forge-tour-copy h3 {
  font-size: clamp(1.3rem, 2.3vw, 2rem);
  margin-bottom: 0.7rem;
}

.forge-tour-card .forge-media-frame {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.forge-media-frame {
  position: relative;
  overflow: hidden;
  margin: 0;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #101827;
  border-color: rgba(255, 255, 255, 0.14);
}

.forge-media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  display: block;
}

.forge-media-placeholder {
  display: flex;
  flex-direction: column;
  color: #cbd5e1;
}

.forge-placeholder-chrome {
  display: flex;
  gap: 0.4rem;
  padding: 0.8rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
}

.forge-placeholder-chrome span {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #64748b;
}

.forge-placeholder-body {
  flex: 1;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.45rem;
  text-align: center;
  padding: 1rem;
}

.forge-placeholder-body i {
  font-size: 1.5rem;
  color: #f59e0b;
}

.forge-placeholder-body strong {
  color: #ffffff;
}

.forge-registration-list {
  display: grid;
  gap: 0.85rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.forge-registration-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 1rem;
}

.forge-registration-list span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  flex: 0 0 2rem;
  border-radius: 8px;
  background: #0f172a;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
}

.forge-callout {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  min-width: 0;
  padding: 1.35rem;
}

.forge-callout > i {
  flex: 0 0 2.55rem;
  margin-bottom: 0;
}

.forge-callout h2 {
  margin-bottom: 0.45rem;
  font-size: 1.1rem;
}

.forge-final-cta {
  padding: 4.5rem 0;
  color: #ffffff;
  background: linear-gradient(135deg, #0b1220 0%, #12302f 100%);
}

.forge-final-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.forge-final-cta h2 {
  max-width: 650px;
  color: #ffffff;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.08;
  letter-spacing: 0;
  margin-bottom: 0.85rem;
}

.forge-final-cta .forge-section-kicker {
  color: #99f6e4;
}

.forge-final-cta p {
  max-width: 650px;
  color: rgba(226, 232, 240, 0.8);
}

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

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

.forge-public-footer a:hover,
.forge-public-footer a:focus {
  color: var(--forge-public-accent);
}

html.app-skin-dark .forge-public-container,
html.app-skin-dark .forge-get-started,
html.app-skin-dark .forge-section-light,
html.app-skin-dark .forge-public-footer {
  background: #0f172a;
}

html.app-skin-dark .forge-get-started {
  --forge-public-ink: #f8fafc;
  --forge-public-muted: #b1b4c0;
  --forge-public-soft: #0f172a;
  --forge-public-band: #111c2f;
  --forge-public-card: #121a2d;
  --forge-public-border: #1b2436;
  --forge-public-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
  --forge-public-accent: #5eead4;
}

html.app-skin-dark .forge-section-soft {
  background: #111c2f;
}

html.app-skin-dark .forge-registration-list span {
  background: #e2e8f0;
  color: #0f172a;
}

html.app-skin-dark .forge-public-footer {
  color: #b1b4c0;
}

@media (max-width: 1199.98px) {
  .forge-workflow {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .forge-workflow-step:nth-child(3)::after {
    display: none;
  }

  .forge-persona-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .forge-problem-grid,
  .forge-callout-grid {
    grid-template-columns: 1fr;
  }

  .forge-tour-card,
  .forge-tour-card-reverse {
    grid-template-columns: 1fr;
  }

  .forge-tour-card-reverse .forge-tour-media {
    order: 0;
  }

  .forge-final-cta-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

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

  .forge-workflow,
  .forge-persona-grid {
    grid-template-columns: 1fr;
  }

  .forge-workflow-step::after {
    display: none;
  }

  .forge-workflow-step h3 {
    min-height: 0;
  }
}

@media (max-width: 575.98px) {
  .forge-hero {
    padding: 2.5rem 0 3rem;
  }

  .forge-hero-actions .btn,
  .forge-final-cta .btn {
    width: 100%;
  }

  .forge-hero-chips {
    gap: 0.55rem;
  }

  .forge-hero-chips span {
    width: 100%;
  }

  .forge-tour-copy,
  .forge-problem-card,
  .forge-persona-card,
  .forge-callout {
    padding: 1rem;
  }

  .forge-registration-list li {
    padding: 0.9rem;
  }
}

.project-workspace-shell {
        border: 1px solid var(--forge-card-border, rgba(15, 23, 42, 0.08));
        border-radius: 22px;
        background: var(--forge-card-bg, #ffffff);
    }

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

    .project-workspace-tab {
        border: 1px solid var(--forge-card-border, rgba(148, 163, 184, 0.25));
        border-radius: 999px;
        padding: 0.6rem 1rem;
        color: var(--forge-text, #0f172a);
        background: var(--forge-card-bg, #ffffff);
        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 var(--forge-card-border, rgba(15, 23, 42, 0.08));
        border-radius: 20px;
        background: var(--forge-card-bg, #ffffff);
        color: var(--forge-text-soft, #334155);
        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: var(--forge-text-muted, #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: var(--forge-card-bg-soft, #f8fafc);
        border: 1px solid var(--forge-card-border, 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 var(--forge-card-border, rgba(148, 163, 184, 0.18));
        border-radius: 20px;
        background: var(--forge-card-bg, #ffffff);
        color: var(--forge-text-soft, #334155);
    }

    .project-reports-section-card {
        overflow: hidden;
    }

    .project-reports-section-header {
        display: block;
        border: 0;
        background: transparent;
        color: inherit;
        text-align: left;
        cursor: pointer;
        transition: background-color 0.18s ease;
    }

    .project-reports-section-header:hover,
    .project-reports-section-header:focus {
        background: rgba(15, 118, 110, 0.04);
    }

    .project-reports-section-header:hover .project-reports-section-title,
    .project-reports-section-header:focus .project-reports-section-title {
        color: #0f766e;
    }

    .project-reports-section-header:focus-visible {
        outline: 0;
        box-shadow: inset 0 0 0 0.2rem rgba(15, 118, 110, 0.12);
    }

    .project-reports-section-number {
        width: 2rem;
        height: 2rem;
        border-radius: 999px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: rgba(15, 118, 110, 0.1);
        color: #0f766e;
        font-weight: 700;
        flex: 0 0 auto;
    }

    .project-reports-section-title {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .project-reports-section-chevron {
        transition: transform 0.18s ease;
        flex: 0 0 auto;
    }

    .project-reports-section-card:not(.is-collapsed) .project-reports-section-chevron {
        transform: rotate(180deg);
    }

    .project-reports-section-body {
        border-top: 1px solid var(--forge-card-border, rgba(148, 163, 184, 0.18));
    }

    .project-reports-row-count-badge {
        border: 1px solid var(--forge-card-border, rgba(148, 163, 184, 0.3));
        background: var(--forge-card-bg-soft, #f8fafc);
        color: var(--forge-text, #0f172a);
    }

    .project-reports-metadata-table-wrap {
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    #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-reports-table-responsive {
        max-width: 100%;
        overflow-x: auto;
        overflow-y: visible;
        -webkit-overflow-scrolling: touch;
    }

    .project-reports-table-responsive .dataTables_wrapper {
        width: 100%;
        min-width: 0;
    }

    .project-reports-table-responsive .dataTables_length,
    .project-reports-table-responsive .dataTables_filter,
    .project-reports-table-responsive .dataTables_info,
    .project-reports-table-responsive .dataTables_paginate {
        max-width: 100%;
    }

    .project-reports-table-responsive #projectReportsTable {
        width: 100% !important;
        min-width: 820px;
    }

    .project-reports-table-responsive #projectReportsTable th,
    .project-reports-table-responsive #projectReportsTable td {
        white-space: nowrap;
    }

    .project-reports-table-responsive #projectReportsTable th:nth-child(2),
    .project-reports-table-responsive #projectReportsTable td:nth-child(2) {
        min-width: 220px;
        max-width: 360px;
        white-space: normal;
    }

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

    .project-reports-task-summary-card,
    .project-reports-task-summary-unavailable {
        border: 1px solid var(--forge-card-border, rgba(148, 163, 184, 0.18));
        border-radius: 16px;
        background: var(--forge-card-bg, #ffffff);
    }

    html.app-skin-dark .project-reports-workspace-shell,
    html.app-skin-dark .project-reports-shell,
    html.app-skin-dark .project-reports-section-card,
    html.app-skin-dark .project-reports-task-summary-card,
    html.app-skin-dark .project-reports-task-summary-unavailable {
        border-color: #1b2436;
        background: #121a2d;
    }

    html.app-skin-dark .project-reports-section-header {
        background: transparent;
        color: #e2e8f0;
    }

    html.app-skin-dark .project-reports-section-header:hover,
    html.app-skin-dark .project-reports-section-header:focus {
        background: rgba(45, 212, 191, 0.06);
    }

    html.app-skin-dark .project-reports-section-title,
    html.app-skin-dark .project-reports-section-chevron {
        color: #e2e8f0;
    }

    html.app-skin-dark .project-reports-section-body {
        border-top-color: #1b2436;
    }

    html.app-skin-dark .project-reports-section-number {
        background: rgba(45, 212, 191, 0.12);
        color: #5eead4;
    }

    html.app-skin-dark .project-reports-section-header:hover .project-reports-section-title,
    html.app-skin-dark .project-reports-section-header:focus .project-reports-section-title {
        color: #5eead4;
    }

    html.app-skin-dark .project-reports-row-count-badge {
        border-color: #1b2436;
        background: #172033;
        color: #cbd5e1;
    }

    html.app-skin-dark .project-reports-metadata-table-wrap,
    html.app-skin-dark .project-reports-table-responsive {
        color: #cbd5e1;
    }

    html.app-skin-dark .project-reports-section-card .table {
        --bs-table-bg: transparent;
        --bs-table-color: #cbd5e1;
        --bs-table-border-color: #1b2436;
        --bs-table-hover-bg: #172033;
        --bs-table-hover-color: #ffffff;
        color: #cbd5e1;
    }

    html.app-skin-dark .project-reports-section-card .table th,
    html.app-skin-dark .project-reports-section-card .table td {
        border-color: #1b2436;
        color: inherit;
    }

    html.app-skin-dark .project-reports-section-card .table thead th {
        background: #121a2d;
        color: #e2e8f0;
    }

    html.app-skin-dark .project-reports-section-card .table thead .datatable-filters th {
        background: #0f172a;
    }

    html.app-skin-dark .project-reports-section-card .form-label,
    html.app-skin-dark .project-reports-section-card .form-text,
    html.app-skin-dark .project-reports-table-responsive .dataTables_info,
    html.app-skin-dark .project-reports-table-responsive .dataTables_length,
    html.app-skin-dark .project-reports-table-responsive .dataTables_filter {
        color: #b1b4c0;
    }

    html.app-skin-dark .project-reports-section-card .form-control,
    html.app-skin-dark .project-reports-section-card .form-select,
    html.app-skin-dark .project-reports-table-responsive .dataTables_filter input,
    html.app-skin-dark .project-reports-table-responsive .dataTables_length select {
        border-color: #1b2436;
        background-color: #0f172a;
        color: #e2e8f0;
    }

    html.app-skin-dark .project-reports-section-card .form-control:focus,
    html.app-skin-dark .project-reports-section-card .form-select:focus {
        border-color: rgba(94, 234, 212, 0.5);
        box-shadow: 0 0 0 0.2rem rgba(45, 212, 191, 0.12);
    }

    html.app-skin-dark .project-reports-section-card .form-control::placeholder {
        color: #64748b;
    }

    html.app-skin-dark .project-reports-section-card .form-select option {
        background-color: #0f172a;
        color: #e2e8f0;
    }

    html.app-skin-dark .project-reports-table-responsive .dataTables_paginate .page-link {
        border-color: #1b2436;
        background-color: #121a2d;
        color: #cbd5e1;
    }

    html.app-skin-dark .project-reports-table-responsive .dataTables_paginate .page-item.active .page-link,
    html.app-skin-dark .project-reports-table-responsive .dataTables_paginate .page-link:hover,
    html.app-skin-dark .project-reports-table-responsive .dataTables_paginate .page-link:focus {
        border-color: rgba(94, 234, 212, 0.38);
        background-color: #172033;
        color: #5eead4;
    }

    .project-workspace-shell { border: 1px solid var(--forge-card-border, rgba(15, 23, 42, 0.08)); border-radius: 22px; background: var(--forge-card-bg, #ffffff); }
    .project-workspace-tabs { display: flex; gap: 0.75rem; flex-wrap: wrap; }
    .project-workspace-tab { border: 1px solid var(--forge-card-border, rgba(148, 163, 184, 0.25)); border-radius: 999px; padding: 0.6rem 1rem; color: var(--forge-text, #0f172a); background: var(--forge-card-bg, #ffffff); font-weight: 600; }
    .project-workspace-tab.active { background: #0f172a; color: #fff; }
    .task-list-card, .task-detail-hint { border: 1px solid var(--forge-card-border, rgba(148, 163, 184, 0.18)); border-radius: 20px; background: var(--forge-card-bg, #ffffff); color: var(--forge-text-soft, #334155); }
    .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; }
    .project-task-kanban-shell .card-body { overflow: hidden; }
    .project-task-kanban-toolbar { display: grid; grid-template-columns: minmax(220px, 1.4fr) repeat(6, minmax(145px, 1fr)) auto; gap: 0.85rem; align-items: end; }
    .project-task-kanban-filter .form-label { color: #475569; font-size: 0.76rem; font-weight: 700; margin-bottom: 0.35rem; text-transform: uppercase; }
    .project-task-kanban-sort-dir .btn, .project-task-kanban-reset .btn { width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; min-height: 42px; }
    .project-task-kanban-statuses { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 0.5rem; padding-top: 0.15rem; }
    .project-task-kanban-status-toggle { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.25rem 0.45rem; border: 1px solid var(--forge-card-border, rgba(148, 163, 184, 0.25)); border-radius: 999px; background: var(--forge-card-bg, #ffffff); cursor: pointer; }
    .project-task-kanban-status-toggle input { width: 14px; height: 14px; accent-color: #0ea5e9; }
    .project-task-kanban-board { display: flex; gap: 1rem; align-items: stretch; overflow-x: auto; padding-bottom: 0.45rem; scroll-snap-type: x proximity; }
    .project-task-kanban-column { flex: 0 0 320px; width: 320px; min-width: 285px; display: flex; flex-direction: column; border: 1px solid var(--forge-card-border, rgba(148, 163, 184, 0.22)); border-radius: 18px; background: var(--forge-card-bg-soft, #f8fafc); max-height: calc(100vh - 240px); scroll-snap-align: start; }
    .project-task-kanban-column-header { position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; gap: 0.75rem; align-items: flex-start; padding: 0.85rem; border-bottom: 1px solid rgba(148, 163, 184, 0.22); background: rgba(248, 250, 252, 0.96); border-radius: 18px 18px 0 0; }
    .project-task-kanban-column-title { display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem; min-width: 0; }
    .project-task-kanban-count { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 24px; padding: 0 0.4rem; border-radius: 999px; background: #e2e8f0; color: #0f172a; font-weight: 800; font-size: 0.78rem; }
    .project-task-kanban-summary { color: var(--forge-text-muted, #64748b); font-size: 0.76rem; font-weight: 700; white-space: nowrap; padding-top: 0.25rem; }
    .project-task-kanban-column-body { display: flex; flex: 1 1 auto; flex-direction: column; gap: 0.75rem; overflow-y: auto; padding: 0.85rem; }
    .project-task-kanban-column-body.is-drop-target { background: rgba(14, 165, 233, 0.08); outline: 2px dashed rgba(14, 165, 233, 0.42); outline-offset: -8px; }
    .project-task-kanban-column-body.is-saving { cursor: progress; }
    .project-task-kanban-card { border-radius: 14px; box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04); }
    .project-task-kanban-card.is-draggable { cursor: grab; }
    .project-task-kanban-card.is-dragging { opacity: 0.5; }
    .project-task-kanban-card.is-saving { opacity: 0.72; pointer-events: none; }
    .project-task-kanban-drag-handle { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 6px; background: #eef2f7; color: #475569; }
    .project-task-kanban-card-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 0.5rem; margin-bottom: 0.65rem; }
    .project-task-kanban-card-title { line-height: 1.35; word-break: break-word; }
    .project-task-kanban-meta { gap: 0.45rem 0.75rem; }
    .project-task-kanban-meta span { display: inline-flex; align-items: center; gap: 0.3rem; }
    .project-task-kanban-assignee { min-height: 20px; }
    .project-task-kanban-actions { display: flex; flex-wrap: wrap; gap: 0.45rem; }
    .project-task-kanban-actions .forge-action-btn { flex: 1 1 calc(50% - 0.45rem); justify-content: center; min-width: 112px; }
    .project-task-kanban-empty, .project-task-kanban-column-empty { border: 1px dashed rgba(148, 163, 184, 0.4); border-radius: 14px; background: var(--forge-card-bg, #ffffff); color: var(--forge-text-muted, #64748b); }
    .project-task-kanban-column-empty { padding: 1rem; text-align: center; font-size: 0.84rem; }
    @media (max-width: 1399.98px) { .project-task-kanban-toolbar { grid-template-columns: repeat(4, minmax(150px, 1fr)); } .project-task-kanban-search { grid-column: span 2; } }
    @media (max-width: 991.98px) { .project-task-kanban-toolbar { grid-template-columns: repeat(2, minmax(0, 1fr)); } .project-task-kanban-search { grid-column: 1 / -1; } .project-task-kanban-board { align-items: flex-start; } .project-task-kanban-column { max-height: none; } }
    @media (max-width: 575.98px) { .project-task-kanban-toolbar { grid-template-columns: 1fr; } .project-task-kanban-filter, .project-task-kanban-search { grid-column: 1; } .project-task-kanban-board { flex-direction: column; overflow-x: visible; } .project-task-kanban-column { width: 100%; min-width: 0; flex-basis: auto; } .project-task-kanban-actions .forge-action-btn { flex-basis: 100%; } }

    .project-kanban-shell .card-body { overflow: hidden; }
    .project-kanban-toolbar { display: grid; grid-template-columns: minmax(220px, 1.4fr) repeat(5, minmax(145px, 1fr)) minmax(145px, auto); gap: 0.85rem; align-items: end; }
    .project-kanban-filter .form-label { color: #475569; font-size: 0.76rem; font-weight: 700; margin-bottom: 0.35rem; text-transform: uppercase; }
    .project-kanban-sort-dir .btn, .project-kanban-reset .btn { width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; min-height: 42px; }
    .project-kanban-statuses { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 0.5rem; padding-top: 0.15rem; }
    .project-kanban-status-toggle { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.25rem 0.45rem; border: 1px solid var(--forge-card-border, rgba(148, 163, 184, 0.25)); border-radius: 999px; background: var(--forge-card-bg, #ffffff); cursor: pointer; }
    .project-kanban-status-toggle input { width: 14px; height: 14px; accent-color: #0ea5e9; }
    .project-kanban-board { display: flex; gap: 1rem; align-items: stretch; overflow-x: auto; max-width: 100%; padding-bottom: 0.45rem; scroll-snap-type: x proximity; }
    .project-kanban-column { flex: 0 0 330px; width: 330px; min-width: 290px; display: flex; flex-direction: column; border: 1px solid var(--forge-card-border, rgba(148, 163, 184, 0.22)); border-radius: 18px; background: var(--forge-card-bg-soft, #f8fafc); max-height: calc(100vh - 240px); scroll-snap-align: start; }
    .project-kanban-column-header { position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; gap: 0.75rem; align-items: flex-start; padding: 0.85rem; border-bottom: 1px solid rgba(148, 163, 184, 0.22); background: rgba(248, 250, 252, 0.96); border-radius: 18px 18px 0 0; }
    .project-kanban-column-title { display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem; min-width: 0; }
    .project-kanban-count { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 24px; padding: 0 0.4rem; border-radius: 999px; background: #e2e8f0; color: #0f172a; font-weight: 800; font-size: 0.78rem; }
    .project-kanban-summary { color: var(--forge-text-muted, #64748b); font-size: 0.76rem; font-weight: 700; white-space: nowrap; padding-top: 0.25rem; }
    .project-kanban-column-body { display: flex; flex: 1 1 auto; flex-direction: column; gap: 0.75rem; overflow-y: auto; padding: 0.85rem; }
    .project-kanban-column-body.is-drop-target { background: rgba(14, 165, 233, 0.08); outline: 2px dashed rgba(14, 165, 233, 0.42); outline-offset: -8px; }
    .project-kanban-column-body.is-saving { cursor: progress; }
    .project-kanban-card { border: 1px solid var(--forge-card-border, rgba(148, 163, 184, 0.18)); border-radius: 14px; background: var(--forge-card-bg, #ffffff); color: var(--forge-text-soft, #334155); padding: 1rem; box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04); transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease; }
    .project-kanban-card:hover { transform: translateY(-1px); box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08); border-color: rgba(14, 116, 144, 0.3); }
    .project-kanban-card.is-draggable { cursor: grab; }
    .project-kanban-card.is-dragging { opacity: 0.5; }
    .project-kanban-card.is-saving { opacity: 0.72; pointer-events: none; }
    .project-kanban-drag-handle { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 24px; height: 24px; border-radius: 6px; background: #eef2f7; color: #475569; }
    .project-kanban-card-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 0.5rem; margin-bottom: 0.75rem; }
    .project-kanban-card-identity { display: flex; align-items: flex-start; gap: 0.6rem; min-width: 0; }
    .project-kanban-title-stack { min-width: 0; }
    .project-kanban-card-title { display: inline-block; color: var(--forge-text, #0f172a); font-weight: 700; line-height: 1.35; text-decoration: none; word-break: break-word; }
    .project-kanban-card-title:hover { color: var(--forge-accent, #0ea5e9); }
    .project-kanban-badges { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.75rem; }
    .project-kanban-meta { display: flex; flex-direction: column; gap: 0.45rem; color: var(--forge-text-muted, #64748b); font-size: 0.84rem; }
    .project-kanban-meta span { display: flex; align-items: center; gap: 0.35rem; min-width: 0; }
    .project-kanban-meta a { font-weight: 700; }
    .project-kanban-meta .forge-user-link { min-width: 0; }
    .project-kanban-actions { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 1rem; }
    .project-kanban-actions .forge-action-btn { flex: 1 1 calc(50% - 0.45rem); justify-content: center; min-width: 112px; }
    .project-kanban-empty, .project-kanban-column-empty { border: 1px dashed rgba(148, 163, 184, 0.4); border-radius: 14px; background: var(--forge-card-bg, #ffffff); color: var(--forge-text-muted, #64748b); }
    .project-kanban-column-empty { padding: 1rem; text-align: center; font-size: 0.84rem; }
    @media (max-width: 1399.98px) { .project-kanban-toolbar { grid-template-columns: repeat(4, minmax(150px, 1fr)); } .project-kanban-search { grid-column: span 2; } }
    @media (max-width: 991.98px) { .project-kanban-toolbar { grid-template-columns: repeat(2, minmax(0, 1fr)); } .project-kanban-search { grid-column: 1 / -1; } .project-kanban-board { align-items: flex-start; } .project-kanban-column { max-height: none; } }
    @media (max-width: 575.98px) { .project-kanban-toolbar { grid-template-columns: 1fr; } .project-kanban-filter, .project-kanban-search { grid-column: 1; } .project-kanban-board { flex-direction: column; overflow-x: visible; } .project-kanban-column { width: 100%; min-width: 0; flex-basis: auto; } .project-kanban-actions .forge-action-btn { flex-basis: 100%; } }
    .forge-user-link { display: inline-flex; align-items: center; gap: 0.45rem; color: var(--forge-text, #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 var(--forge-card-border, rgba(15, 23, 42, 0.08)); border-radius: 22px; background: var(--forge-card-bg, #ffffff); }
    .project-workspace-tabs { display: flex; gap: 0.75rem; flex-wrap: wrap; }
    .project-workspace-tab { border: 1px solid var(--forge-card-border, rgba(148, 163, 184, 0.25)); border-radius: 999px; padding: 0.6rem 1rem; color: var(--forge-text, #0f172a); background: var(--forge-card-bg, #ffffff); 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 var(--forge-card-border, rgba(148, 163, 184, 0.18)); border-radius: 20px; background: var(--forge-card-bg, #ffffff); color: var(--forge-text-soft, #334155); }
    .notes-tree-header-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 0.5rem; }
    .notes-quick-action-btn, .notes-full-note-link { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 34px; white-space: nowrap; }
    .notes-quick-action-copy { display: inline-flex; flex-direction: column; align-items: flex-start; line-height: 1.05; }
    .notes-quick-action-copy strong { font-size: 0.84rem; }
    .notes-quick-action-copy small { font-size: 0.68rem; opacity: 0.86; }
    .notes-quick-action-icon { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 999px; background: rgba(255, 255, 255, 0.18); }
    .notes-quick-create-panel { display: grid; grid-template-columns: minmax(180px, 0.9fr) minmax(220px, 1fr) auto; align-items: center; gap: 0.85rem; padding: 1rem; border: 1px solid rgba(14, 165, 233, 0.32); border-radius: 16px; background: linear-gradient(180deg, rgba(240, 249, 255, 0.96) 0%, #ffffff 100%); box-shadow: 0 16px 34px rgba(15, 23, 42, 0.07); }
    .notes-quick-create-panel[hidden] { display: none; }
    .notes-quick-create-copy { min-width: 0; }
    .notes-quick-create-title { display: inline-flex; align-items: center; gap: 0.45rem; color: #075985; font-weight: 800; }
    .notes-quick-create-help { margin-top: 0.18rem; color: var(--forge-text-muted, #64748b); font-size: 0.78rem; line-height: 1.4; }
    .notes-quick-create-field { min-width: 0; }
    .notes-quick-create-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: flex-end; }
    .notes-empty-guidance { display: flex; flex-direction: column; align-items: center; gap: 0.65rem; text-align: center; }
    .notes-empty-guidance h6 { margin: 0; color: var(--forge-text, #0f172a); font-weight: 800; }
    .notes-empty-guidance p { max-width: 620px; margin: 0; color: var(--forge-text-muted, #64748b); line-height: 1.55; }
    .notes-empty-icon { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 999px; color: #075985; background: #e0f2fe; }
    .notes-empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.65rem; margin-top: 0.25rem; }
    .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); }
    .notes-tree-list { display: flex; flex-direction: column; gap: 0.65rem; }
    .note-tree-node { display: flex; flex-direction: column; gap: 0.55rem; }
    .note-tree-children { display: flex; flex-direction: column; gap: 0.55rem; margin-left: clamp(0.85rem, calc(var(--note-depth, 0) * 0.25rem + 0.85rem), 2rem); padding-left: 0.9rem; border-left: 1px solid rgba(148, 163, 184, 0.24); }
    .note-tree-children[hidden] { display: none; }
    .note-tree-button { width: 100%; display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 0.75rem; align-items: start; padding: 0.85rem; text-align: left; color: var(--forge-text, #0f172a); cursor: pointer; transition: box-shadow 0.18s ease, border-color 0.18s ease, transform 0.18s ease; }
    .note-tree-button:hover, .note-tree-button.active { transform: translateY(-1px); box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08); border-color: rgba(14, 116, 144, 0.3); }
    .note-tree-button.expanded { border-color: rgba(14, 116, 144, 0.28); }
    .note-tree-control-wrap { display: flex; flex-direction: column; align-items: center; gap: 0.4rem; min-height: 100%; }
    .note-tree-toggle, .note-tree-leaf { width: 24px; height: 24px; min-width: 24px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; }
    .note-tree-toggle { border: 1px solid var(--forge-card-border, rgba(148, 163, 184, 0.35)); background: var(--forge-card-bg, #ffffff); color: var(--forge-text, #0f172a); transition: background 0.18s ease, transform 0.18s ease, border-color 0.18s ease; }
    .note-tree-toggle:hover { background: #f1f5f9; border-color: rgba(14, 116, 144, 0.38); }
    .note-tree-button.expanded .note-tree-toggle i { transform: rotate(90deg); }
    .note-tree-toggle i { transition: transform 0.18s ease; }
    .note-tree-leaf { background: #f1f5f9; border: 1px solid rgba(148, 163, 184, 0.18); }
    .note-tree-rail { width: 8px; height: 100%; min-height: 48px; border-radius: 999px; background: #dbeafe; }
    .note-tree-main { min-width: 0; display: flex; flex-direction: column; }
    .note-tree-title { display: block; font-weight: 700; font-size: 0.98rem; color: var(--forge-text, #0f172a); word-break: break-word; }
    .note-tree-meta, .note-tree-summary { display: block; color: var(--forge-text-muted, #64748b); font-size: 0.78rem; line-height: 1.45; }
    .note-tree-actions { display: flex; flex-direction: column; gap: 0.4rem; align-items: flex-end; }
    .note-structure-line { display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem; padding: 0.7rem 0.85rem; border: 1px solid var(--forge-card-border, rgba(148, 163, 184, 0.2)); border-radius: 14px; background: var(--forge-card-bg, #ffffff); }
    .note-path-separator { color: #94a3b8; }
    .note-structure-panel { border: 1px solid var(--forge-card-border, rgba(148, 163, 184, 0.2)); border-radius: 14px; background: var(--forge-card-bg, #ffffff); padding: 0.85rem; }
    .note-child-link { display: flex; justify-content: space-between; gap: 0.75rem; color: var(--forge-text, #0f172a); padding: 0.5rem 0; border-top: 1px solid var(--forge-card-border, rgba(148, 163, 184, 0.16)); }
    .note-child-link:first-child { border-top: 0; }
    .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: var(--forge-text-soft, #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: var(--forge-text, #0f172a); margin: 1rem 0; }
    .forge-rich-checklist {
        list-style: none;
        padding-left: 0;
        margin: 0 0 1rem;
    }
    .forge-rich-checklist li {
        display: flex;
        align-items: flex-start;
        gap: 0.5rem;
        margin: 0.3rem 0;
    }
    .forge-rich-checklist-box {
        flex: 0 0 auto;
        color: #0f766e;
        line-height: inherit;
    }
    html.app-skin-dark .forge-rich-checklist-box {
        color: #5eead4;
    }
    @media (max-width: 991.98px) { .notes-main-grid { grid-template-columns: 1fr; } .note-tree-button { grid-template-columns: 28px minmax(0, 1fr); } .note-tree-actions { grid-column: 2; flex-direction: row; align-items: center; flex-wrap: wrap; } .notes-quick-create-panel { grid-template-columns: 1fr; } .notes-quick-create-actions { justify-content: flex-start; } .note-preview-card > .card-header { align-items: flex-start !important; flex-wrap: wrap; gap: 0.75rem; } #notePreviewActions { flex-wrap: wrap; } }
    @media (max-width: 575.98px) { .notes-tree-header-actions { justify-content: flex-start; width: 100%; } .notes-tree-header-actions > .btn, .notes-tree-header-actions > a, .notes-tree-header-actions > button { flex: 1 1 100%; } .notes-quick-action-btn, .notes-full-note-link { width: 100%; } .notes-quick-create-actions .btn { flex: 1 1 100%; } .note-tree-actions .btn { flex: 1 1 100%; justify-content: center; } }


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

.project-workspace-actions {
    display: none;
    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: var(--forge-text, #0f172a);
}

.project-actions-text {
    color: var(--forge-text-muted, #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 var(--forge-card-border, rgba(148, 163, 184, 0.18));
    background: var(--forge-card-bg, #ffffff);
    color: var(--forge-text, #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: var(--forge-text, #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: var(--forge-card-bg, #ffffff);
}

.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: var(--forge-card-bg, #ffffff);
}

.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: var(--forge-card-bg, #ffffff);
}

.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 var(--forge-card-border, rgba(15, 23, 42, 0.08));
        border-radius: 22px;
        background: var(--forge-card-bg, #ffffff);
    }

    #projectsTable,
    #projectNotesTable,
    #projectTasksTable,
    #projectArchivedTasksTable {
        min-width: 920px;
    }

    #projectTasksTable {
        min-width: 1040px;
    }

    #projectArchivedTasksTable {
        min-width: 1480px;
    }

    #projectsTable th,
    #projectNotesTable th,
    #projectTasksTable th,
    #projectArchivedTasksTable th {
        white-space: nowrap;
    }

    #projectsTable td,
    #projectNotesTable td,
    #projectTasksTable td,
    #projectArchivedTasksTable td {
        vertical-align: middle;
    }

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

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

    .table-title-cell {
        min-width: 280px;
        white-space: normal;
    }

    .table-title-stack {
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
        max-width: 100%;
        min-width: 0;
        white-space: normal;
    }

    .table-primary-link {
        color: #0f172a;
        font-weight: 700;
        line-height: 1.35;
        overflow-wrap: anywhere;
        text-decoration: none;
    }

    .table-primary-link:hover {
        color: #0369a1;
        text-decoration: underline;
        text-underline-offset: 0.15em;
    }

    .table-meta-line {
        display: flex;
        align-items: flex-start;
        gap: 0.35rem;
        color: #64748b;
        font-size: 0.78rem;
        line-height: 1.35;
        min-width: 0;
    }

    .table-meta-line i {
        flex: 0 0 auto;
        margin-top: 0.12rem;
        font-size: 0.82rem;
        color: #94a3b8;
    }

    .table-meta-line a {
        color: #334155;
        font-weight: 600;
        text-decoration: none;
        overflow-wrap: anywhere;
    }

    .table-meta-line a:hover {
        color: #0369a1;
        text-decoration: underline;
        text-underline-offset: 0.15em;
    }

    .table-meta-label {
        color: #64748b;
        font-weight: 700;
    }

    .table-timeline {
        display: flex;
        flex-direction: column;
        gap: 0.32rem;
        min-width: 170px;
        color: #64748b;
        font-size: 0.8rem;
        line-height: 1.35;
    }

    .table-timeline-item {
        display: flex;
        align-items: flex-start;
        gap: 0.4rem;
        white-space: normal;
    }

    .table-timeline-item i {
        flex: 0 0 auto;
        margin-top: 0.08rem;
        color: #94a3b8;
        font-size: 0.86rem;
    }

    .table-actions {
        display: inline-flex;
        justify-content: flex-end;
        align-items: center;
        gap: 0.45rem;
        flex-wrap: wrap;
        min-width: 150px;
    }

    .project-table-title,
    .project-note-table-title,
    .project-task-table-title {
        max-width: 460px;
        white-space: normal;
    }

    .project-note-table-tags {
        display: flex;
        flex-wrap: wrap;
        gap: 0.35rem;
        min-width: 150px;
        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 var(--forge-card-border, rgba(15, 23, 42, 0.08));
        border-radius: 22px;
        background: var(--forge-card-bg, #ffffff);
    }

    @media (max-width: 991.98px) {
        #projectsTable,
        #projectNotesTable,
        #projectTasksTable,
        #projectArchivedTasksTable {
            min-width: 860px;
        }

        #projectTasksTable {
            min-width: 980px;
        }

        #projectArchivedTasksTable {
            min-width: 1320px;
        }

        .table-title-cell {
            min-width: 260px;
        }

        .table-actions {
            min-width: 135px;
        }
    }

    html.app-skin-dark .project-notes-table-shell,
    html.app-skin-dark .project-tasks-table-shell {
        border-color: #1b2436;
        background: linear-gradient(180deg, #121a2d 0%, #0f172a 100%);
    }

    html.app-skin-dark .table-primary-link,
    html.app-skin-dark .table-meta-line a {
        color: #f8fafc;
    }

    html.app-skin-dark .table-primary-link:hover,
    html.app-skin-dark .table-meta-line a:hover {
        color: #93c5fd;
    }

    html.app-skin-dark .table-meta-line,
    html.app-skin-dark .table-meta-label,
    html.app-skin-dark .table-timeline {
        color: #b1b4c0;
    }

    html.app-skin-dark .table-meta-line i,
    html.app-skin-dark .table-timeline-item i {
        color: #91a1b6;
    }

    .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: 8px;
        background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
        height: 100%;
    }

    .vault-explorer-layout {
        display: grid;
        grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
        gap: 1rem;
        align-items: start;
    }

    .vault-explorer-sidebar,
    .vault-explorer-main,
    .vault-explorer-toolbar,
    .vault-result-header,
    .vault-empty-state {
        border: 1px solid rgba(15, 23, 42, 0.08);
        border-radius: 8px;
        background: #fff;
    }

    .vault-explorer-sidebar {
        position: sticky;
        top: 88px;
        padding: 1rem;
    }

    .vault-explorer-main {
        padding: 1rem;
        min-width: 0;
    }

    .vault-explorer-toolbar {
        padding: 1rem;
        margin-bottom: 1rem;
        background: #f8fafc;
    }

    .vault-result-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .vault-folder-create {
        padding: 0.75rem;
        margin-bottom: 0.75rem;
        border: 1px solid rgba(52, 84, 209, 0.16);
        border-radius: 8px;
        background: #f8fafc;
    }

    .vault-folder-tree {
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
    }

    .vault-folder-node {
        width: 100%;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.55rem 0.7rem 0.55rem calc(0.7rem + (var(--folder-depth, 0) * 1rem));
        border: 0;
        border-radius: 6px;
        background: transparent;
        color: #334155;
        text-align: left;
        font-weight: 600;
    }

    .vault-folder-node:hover,
    .vault-folder-node.active {
        background: #eef2ff;
        color: #3454d1;
    }

    .vault-breadcrumb {
        display: flex;
        align-items: center;
        gap: 0.35rem;
        flex-wrap: wrap;
        margin-bottom: 1rem;
    }

    .vault-breadcrumb-link {
        border: 0;
        background: transparent;
        color: #3454d1;
        padding: 0;
        font-weight: 700;
    }

    .vault-breadcrumb-separator {
        color: #94a3b8;
    }

    .vault-nested-toggle {
        min-height: 38px;
        display: flex;
        align-items: center;
        gap: 0.45rem;
        padding-top: 1.55rem;
    }

    .vault-entity-meta {
        display: flex;
        gap: 0.5rem 0.9rem;
        flex-wrap: wrap;
        color: #64748b;
        font-size: 0.78rem;
    }

    .vault-empty-state {
        grid-column: 1 / -1;
        padding: 3rem 1rem;
        text-align: center;
        background: #f8fafc;
    }

    .vault-secret-form-shell,
    .vault-secret-view-shell,
    .vault-secret-detail-card {
        border: 1px solid rgba(15, 23, 42, 0.08);
        border-radius: 8px;
        background: #fff;
    }

    .vault-tag-pill {
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
        padding: 0.4rem 0.75rem;
        border-radius: 999px;
        background: #e2e8f0;
        color: #0f172a;
        font-size: 0.78rem;
        font-weight: 700;
    }

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

    .vault-secret-detail-card {
        padding: 1rem;
        background: #f8fafc;
    }

    .vault-secret-multiline-value {
        min-height: 6.5rem;
        resize: vertical;
        white-space: pre;
        overflow-wrap: normal;
    }

    .vault-secret-multiline-value.is-masked {
        -webkit-text-security: disc;
        text-security: disc;
    }

    @supports not (-webkit-text-security: disc) {
        .vault-secret-multiline-value.is-masked {
            filter: blur(4px);
        }
    }

    .vault-readable-metadata {
        display: grid;
        gap: 0.65rem;
    }

    .vault-readable-metadata-row,
    .vault-audit-list > div {
        display: flex;
        justify-content: space-between;
        gap: 1rem;
        padding-bottom: 0.65rem;
        border-bottom: 1px solid rgba(148, 163, 184, 0.16);
    }

    .vault-readable-metadata-row:last-child,
    .vault-audit-list > div:last-child {
        border-bottom: 0;
        padding-bottom: 0;
    }

    html.app-skin-dark .vault-explorer-sidebar,
    html.app-skin-dark .vault-explorer-main,
    html.app-skin-dark .vault-explorer-toolbar,
    html.app-skin-dark .vault-result-header,
    html.app-skin-dark .vault-empty-state,
    html.app-skin-dark .vault-entity-card,
    html.app-skin-dark .vault-folder-create,
    html.app-skin-dark .vault-secret-form-shell,
    html.app-skin-dark .vault-secret-view-shell,
    html.app-skin-dark .vault-secret-detail-card {
        border-color: #1b2436;
        background: #121a2d;
    }

    html.app-skin-dark .vault-explorer-toolbar,
    html.app-skin-dark .vault-empty-state,
    html.app-skin-dark .vault-folder-create {
        background: #0f172a;
    }

    html.app-skin-dark .vault-folder-node {
        color: #cbd5e1;
    }

    html.app-skin-dark .vault-folder-node:hover,
    html.app-skin-dark .vault-folder-node.active {
        background: rgba(84, 112, 231, 0.18);
        color: #9db1ff;
    }

    html.app-skin-dark .vault-readable-metadata-row,
    html.app-skin-dark .vault-audit-list > div {
        border-color: #1b2436;
    }

    @media (max-width: 991.98px) {
        .vault-explorer-layout {
            grid-template-columns: 1fr;
        }

        .vault-explorer-sidebar {
            position: static;
        }
    }

    .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;
    }

    .project-directory-toolbar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        padding: 1rem 1.1rem;
        border: 1px solid rgba(15, 23, 42, 0.08);
        border-radius: 14px;
        background: #fff;
    }

    .project-directory-view-switcher {
        flex-shrink: 0;
    }

    .project-workspace-group-list {
        display: flex;
        flex-direction: column;
        gap: 1.25rem;
    }

    .project-workspace-group-card {
        border: 1px solid rgba(15, 23, 42, 0.08);
        border-radius: 18px;
        overflow: hidden;
    }

    .project-workspace-group-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        background: linear-gradient(135deg, #f8fafc 0%, #f4f7ff 100%);
    }

    .project-workspace-group-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        border-radius: 12px;
        background: rgba(52, 84, 209, 0.1);
        color: #3454d1;
        flex-shrink: 0;
    }

    .project-workspace-group-title-link {
        color: inherit;
        text-decoration: none;
    }

    .project-workspace-group-title-link:hover,
    .project-workspace-group-title-link:focus {
        color: #3454d1;
    }

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

    .project-workspace-project-card {
        display: flex;
        flex-direction: column;
        gap: 0.9rem;
        min-width: 0;
        padding: 1rem;
        border: 1px solid rgba(148, 163, 184, 0.22);
        border-radius: 14px;
        background: #fff;
    }

    .project-workspace-project-title {
        color: #0f172a;
        font-weight: 700;
        text-decoration: none;
        overflow-wrap: anywhere;
    }

    .project-workspace-project-title:hover,
    .project-workspace-project-title:focus {
        color: #3454d1;
    }

    .project-workspace-project-description {
        display: -webkit-box;
        margin: 0;
        overflow: hidden;
        color: #64748b;
        font-size: 0.86rem;
        line-height: 1.55;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
    }

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

    .project-workspace-project-actions {
        margin-top: auto;
        padding-top: 0.15rem;
    }

    .project-workspace-project-meta {
        display: grid;
        gap: 0.6rem;
    }

    .project-workspace-project-meta > div {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
    }

    .project-workspace-project-meta dt {
        margin: 0;
        color: #64748b;
        font-size: 0.72rem;
        font-weight: 700;
        letter-spacing: 0.04em;
        text-transform: uppercase;
    }

    .project-workspace-project-meta dd {
        min-width: 0;
        margin: 0;
        text-align: right;
    }

    @media (max-width: 767.98px) {
        .project-directory-toolbar,
        .project-workspace-group-header {
            align-items: stretch;
            flex-direction: column;
        }

        .project-directory-view-switcher {
            display: grid;
            grid-template-columns: 1fr;
            width: 100%;
        }

        .project-directory-view-switcher .btn {
            border-radius: 6px !important;
        }

        .project-workspace-group-grid {
            grid-template-columns: 1fr;
        }
    }

    .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;
    }

    .workspace-context-copy {
        min-height: 72px;
        white-space: pre-wrap;
        overflow-wrap: anywhere;
        line-height: 1.65;
    }

    .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%;
    }

    .client-next-step {
        max-width: 760px;
        padding: 0.85rem 1rem;
        border: 1px solid rgba(14, 165, 233, 0.16);
        border-radius: 16px;
        background: rgba(14, 165, 233, 0.06);
    }

    .client-next-step-label {
        margin-bottom: 0.35rem;
        color: #0369a1;
        font-size: 0.7rem;
        font-weight: 800;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }

    .client-next-step-body {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
        flex-wrap: wrap;
        color: var(--forge-text-soft, #334155);
        line-height: 1.45;
    }

    .client-module-card-action {
        display: flex;
        flex-direction: column;
        gap: 0.15rem;
        min-height: 280px;
    }

    .client-module-card-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
        margin-bottom: 1rem;
    }

    .client-module-icon {
        width: 42px;
        height: 42px;
        border-radius: 14px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 42px;
        background: rgba(14, 165, 233, 0.10);
        color: #0369a1;
    }

    .client-module-card h5 {
        color: var(--forge-text, #0f172a);
        font-size: 1rem;
        font-weight: 800;
        margin-bottom: 0.5rem;
    }

    .client-module-status {
        color: var(--forge-text-muted, #64748b);
        font-size: 0.84rem;
        line-height: 1.45;
    }

    .client-module-actions {
        display: flex;
        gap: 0.5rem;
        flex-wrap: wrap;
        align-items: center;
        margin-top: auto;
    }

    .client-module-helper {
        min-height: 1.15rem;
        margin-top: 0.7rem;
        color: var(--forge-text-muted, #64748b);
        font-size: 0.76rem;
        line-height: 1.35;
        transition: opacity 0.18s ease, max-height 0.18s ease, margin 0.18s ease;
    }

    .client-module-helper.client-overview-helper-compact {
        max-height: 0;
        margin-top: 0;
        overflow: hidden;
        opacity: 0;
    }

    .client-overview-action-compact {
        min-width: 0;
    }

    @media (max-width: 575.98px) {
        .client-next-step-body,
        .client-module-actions {
            align-items: stretch;
            flex-direction: column;
        }

        .client-next-step-body .btn,
        .client-module-actions .btn {
            width: 100%;
        }

        .client-module-card-action {
            min-height: 0;
        }
    }

    .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-overview-card { overflow: hidden; }
    .task-overview-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr); gap: 1.25rem; align-items: start; }
    .task-overview-main, .task-overview-side { min-width: 0; }
    .task-view-title { overflow-wrap: anywhere; }
    .task-description-card {
        border: 1px solid rgba(148, 163, 184, 0.18);
        border-radius: 18px;
        background: rgba(255, 255, 255, 0.72);
        padding: 1rem;
    }
    .task-section-kicker, .task-summary-label {
        display: inline-flex;
        align-items: center;
        gap: 0.4rem;
        color: #64748b;
        font-size: 0.72rem;
        font-weight: 700;
        text-transform: uppercase;
        margin-bottom: 0.45rem;
    }
    .task-action-stack { display: flex; justify-content: flex-end; gap: 0.5rem; flex-wrap: wrap; }
    .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-grid.compact { grid-template-columns: 1fr; gap: 0.75rem; }
    .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-timeline-list { display: flex; flex-direction: column; gap: 0.4rem; }
    .task-timeline-item { display: flex; justify-content: space-between; gap: 1rem; }
    .task-timeline-item span { color: #64748b; }
    .task-timeline-item strong { color: #0f172a; font-weight: 700; text-align: right; }
    .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-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0.75rem; }
    .task-relationship-context {
        border: 1px solid rgba(148, 163, 184, 0.18);
        border-radius: 18px;
        background: #f8fafc;
        padding: 1rem;
    }
    .task-relationship-sections { display: flex; flex-direction: column; gap: 1.25rem; }
    .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;
    }
    @media (max-width: 991.98px) {
        .task-overview-layout { grid-template-columns: 1fr; }
        .task-action-stack { justify-content: flex-start; }
    }
    html.app-skin-dark .task-view-shell,
    html.app-skin-dark .task-meta-card,
    html.app-skin-dark .task-section-card,
    html.app-skin-dark .task-description-card,
    html.app-skin-dark .task-summary-item,
    html.app-skin-dark .task-metadata-panel,
    html.app-skin-dark .task-relationship-item,
    html.app-skin-dark .task-relationship-context {
        background: #121a2d;
        border-color: #1b2436;
    }
    html.app-skin-dark .task-view-shell { background: linear-gradient(180deg, #121a2d 0%, #0f172a 100%); }
    html.app-skin-dark .task-rich-text,
    html.app-skin-dark .task-rich-text *:not(a),
    html.app-skin-dark .task-timeline-item strong,
    html.app-skin-dark .task-relationship-context .text-dark,
    html.app-skin-dark .task-relationship-item .text-dark,
    html.app-skin-dark .task-summary-item .text-dark {
        color: #fff !important;
    }
    html.app-skin-dark .task-section-kicker,
    html.app-skin-dark .task-summary-label,
    html.app-skin-dark .task-timeline-item span {
        color: #b1b4c0;
    }
    .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 var(--forge-card-border, rgba(148, 163, 184, 0.25));
        border-radius: 16px;
        background: var(--forge-card-bg, #ffffff);
        box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
        overflow: hidden;
    }
    .comment-mention-option {
        width: 100%;
        border: 0;
        border-bottom: 1px solid var(--forge-card-border, rgba(226, 232, 240, 0.9));
        background: var(--forge-card-bg, #ffffff);
        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-layout { position: relative; }
    .task-form-header-subtitle { max-width: 680px; line-height: 1.45; }
    .task-form-shell { border: 1px solid rgba(15, 23, 42, 0.08); border-radius: 8px; background: #fff; box-shadow: 0 10px 28px rgba(15, 23, 42, 0.04); }
    .task-form-card-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; border-bottom: 1px solid rgba(148, 163, 184, 0.16); background: #fff; border-radius: 8px 8px 0 0; }
    .task-form-side-stack { display: flex; flex-direction: column; gap: 1rem; }
    .task-description-editor-panel { border: 1px solid rgba(148, 163, 184, 0.22); border-radius: 8px; overflow: hidden; background: #fff; }
    .task-description-editor-toggle { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.85rem 1rem; border: 0; background: #f8fafc; color: #0f172a; text-align: left; }
    .task-description-editor-toggle:hover,
    .task-description-editor-toggle:focus-visible { background: #f1f5f9; }
    .task-description-editor-toggle-action { display: inline-flex; align-items: center; gap: 0.45rem; flex-shrink: 0; color: #3454d1; font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
    .task-description-editor-chevron { transition: transform 160ms ease; }
    .task-description-editor-toggle[aria-expanded="true"] .task-description-editor-chevron { transform: rotate(180deg); }
    .task-description-editor-body { padding: 1rem; border-top: 1px solid rgba(148, 163, 184, 0.16); }
    .task-form-actions { position: sticky; bottom: 0; z-index: 4; margin-top: 1rem; padding: 1rem; border: 1px solid rgba(148, 163, 184, 0.16); border-radius: 8px; background: rgba(255, 255, 255, 0.94); box-shadow: 0 -8px 26px rgba(15, 23, 42, 0.08); backdrop-filter: blur(10px); }
    .task-form-reset-highlight { animation: taskFormResetPulse 0.9s ease; }
    .task-relationship-group { padding-bottom: 1rem; margin-bottom: 1rem; border-bottom: 1px solid rgba(148, 163, 184, 0.16); }
    .task-relationship-heading { margin-bottom: 0.75rem; }
    .task-relationship-card { border: 1px solid rgba(148, 163, 184, 0.18); border-radius: 8px; background: #fff; }
    .task-relationship-list { display: flex; flex-direction: column; gap: 0.75rem; }
    .task-relationship-empty { padding: 1rem; border: 1px dashed rgba(52, 84, 209, 0.35); border-radius: 8px; background: #f8fafc; }
    .task-form-shell .select2-container--default .select2-selection--single { min-height: 38px; border-color: #dcdee4; border-radius: 6px; display: flex; align-items: center; }
    .task-form-shell .select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 36px; color: #283c50; }
    .task-form-shell .select2-container--default .select2-selection--single .select2-selection__arrow { top: 6px; }

    html.app-skin-dark .task-form-shell,
    html.app-skin-dark .task-form-card-header,
    html.app-skin-dark .task-relationship-card,
    html.app-skin-dark .task-description-editor-panel {
        border-color: #1b2436;
        background: #121a2d;
        box-shadow: none;
    }

    html.app-skin-dark .task-description-editor-toggle {
        background: #0f172a;
        color: #fff;
    }

    html.app-skin-dark .task-description-editor-toggle:hover,
    html.app-skin-dark .task-description-editor-toggle:focus-visible {
        background: #172033;
    }

    html.app-skin-dark .task-description-editor-body {
        border-color: #1b2436;
    }

    html.app-skin-dark .task-form-actions {
        border-color: #1b2436;
        background: rgba(18, 26, 45, 0.94);
        box-shadow: 0 -8px 26px rgba(0, 0, 0, 0.22);
    }

    html.app-skin-dark .task-relationship-empty {
        border-color: rgba(84, 112, 231, 0.5);
        background: #0f172a;
    }

    html.app-skin-dark .task-form-shell .text-dark,
    html.app-skin-dark .task-relationship-empty .text-dark {
        color: #fff !important;
    }

    html.app-skin-dark .task-form-shell .select2-container--default .select2-selection--single {
        border-color: #1b2436;
        background: #0f172a;
    }

    html.app-skin-dark .task-form-shell .select2-container--default .select2-selection--single .select2-selection__rendered {
        color: #fff;
    }

    html.app-skin-dark .select2-dropdown {
        border-color: #1b2436;
        background: #121a2d;
        color: #fff;
    }

    @media (max-width: 575.98px) {
        .task-form-actions { align-items: stretch; }
        .task-form-actions .btn { width: 100%; }
    }

    @keyframes taskFormResetPulse {
        0% { box-shadow: 0 0 0 0 rgba(13, 110, 253, 0); }
        35% { box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.16); }
        100% { box-shadow: 0 0 0 0 rgba(13, 110, 253, 0); }
    }

.forge-project-visual {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 8px;
    background: #f8fafc;
        color: var(--forge-text, #0f172a);
    font-weight: 800;
    line-height: 1;
}

.forge-project-visual-sm { width: 38px; height: 38px; font-size: 0.82rem; }
.forge-project-visual-md { width: 56px; height: 56px; font-size: 1.1rem; }
.forge-project-visual-lg { width: 84px; height: 84px; font-size: 1.7rem; }
.forge-project-visual img { width: 100%; height: 100%; object-fit: cover; }
.forge-project-visual i { font-size: 1.1em; }
.forge-project-visual-emoji { font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }
.forge-project-visual-icon { background: #eef2ff; color: #3454d1; }
.forge-project-visual-placeholder, .forge-project-visual-fallback { background: #e2e8f0; color: #334155; }
.forge-project-visual-fallback { width: 100%; height: 100%; align-items: center; justify-content: center; }
.project-title-with-visual { display: flex; align-items: flex-start; gap: 0.75rem; min-width: 0; }
.project-title-with-visual .table-title-stack { min-width: 0; }
.project-description-preview {
    max-width: 420px;
        color: var(--forge-text-muted, #64748b);
    font-size: 0.8rem;
    line-height: 1.35;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.project-identity-preview { display: flex; align-items: center; gap: 0.85rem; }
.project-visual-choice-panel { border: 1px solid rgba(148, 163, 184, 0.2); border-radius: 8px; padding: 1rem; background: #f8fafc; }
.project-overview-identity { display: flex; align-items: flex-start; gap: 1.25rem; }
.project-overview-description {
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 8px;
    background: #fff;
    padding: 1rem;
    color: #475569;
    line-height: 1.7;
}
.project-overview-description p:last-child { margin-bottom: 0; }

@media (max-width: 575.98px) {
    .project-overview-identity { flex-direction: column; }
    .project-description-preview { max-width: 260px; }
}
.forge-attachment-dropzone {
    border: 1px dashed rgba(100, 116, 139, 0.42);
    border-radius: 8px;
    background: #f8fafc;
    padding: 1rem;
    transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.forge-attachment-dropzone-active {
    border-color: #0d6efd;
    background: rgba(13, 110, 253, 0.06);
    box-shadow: inset 0 0 0 1px rgba(13, 110, 253, 0.18);
}

.forge-attachment-reference-image {
    margin: 1rem 0;
}

.forge-attachment-reference-image img {
    display: block;
    max-width: 100%;
    max-height: 32rem;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 8px;
    object-fit: contain;
}

.forge-attachment-reference-image figcaption {
    margin-top: 0.45rem;
    color: var(--forge-text-muted, #64748b);
    font-size: 0.85rem;
}

.forge-attachment-reference-file {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin: 0.15rem 0.35rem 0.15rem 0;
    font-weight: 600;
}

.forge-attachment-reference-download {
    display: inline-flex;
    margin-left: 0.25rem;
    font-size: 0.85rem;
}

/* Mobile shell guardrails shared by Forge pages. */
@media (max-width: 991.98px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .nxl-container,
  .nxl-content,
  .main-content,
  .page-header,
  .card,
  .footer {
    min-width: 0;
    max-width: 100%;
  }

  .nxl-container {
    width: 100% !important;
    padding-left: max(0px, env(safe-area-inset-left, 0px));
    padding-right: max(0px, env(safe-area-inset-right, 0px));
  }

  .nxl-content {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }

  .page-header {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .page-header .page-header-left,
  .page-header .page-header-right,
  .page-header .page-header-title,
  .page-header .page-header-right-items {
    min-width: 0;
    max-width: 100%;
    flex-wrap: wrap;
  }

  .card > .card-header,
  .card > .card-body,
  .card > .card-footer {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .table-responsive {
    max-width: 100%;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
  }

  .table-responsive > table {
    width: max-content;
    min-width: 100%;
  }

  .footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding-left: 0.85rem;
    padding-right: 0.85rem;
    padding-bottom: calc(0.85rem + env(safe-area-inset-bottom, 0px));
  }

  .footer > .d-flex {
    min-width: 0;
    flex-wrap: wrap;
    gap: 0.75rem !important;
  }
}

@media (max-width: 575.98px) {
  .nxl-content {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .card > .card-header,
  .card > .card-body,
  .card > .card-footer {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }

  .page-header h1,
  .page-header h2,
  .page-header h3,
  .page-header .page-title {
    overflow-wrap: anywhere;
  }
}

@media (max-width: 767.98px) {
  .table-responsive,
  .table-responsive.forge-sticky-table-wrapper,
  .dataTables_wrapper {
    width: 100%;
    max-width: 100%;
    overflow-x: auto !important;
    overflow-y: visible !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    touch-action: pan-x pan-y;
  }

  .table-responsive > table,
  .table-responsive table,
  table.dataTable {
    width: max-content;
    min-width: max-content;
  }

  .nxl-content {
    padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  }
}
