* { box-sizing: border-box; margin: 0; padding: 0; }
  body { font-family: 'Segoe UI', Arial, sans-serif; background: #f0f2f5; color: #333; font-size: 15px; min-height: 100vh; }

  :root {
    --color-accent: #48667d;
    --color-accent-hover: #38566d;
    --color-accent-strong: #527192;
    --color-accent-soft: #e8f1f8;
    --color-neutral: #6a8093;
    --color-neutral-soft: #edf3f7;
    --color-success: #5a8b78;
    --color-success-soft: #e8f3ed;
    --color-warning: #a97835;
    --color-warning-soft: #f7efe0;
    --color-danger: #ae554c;
    --color-danger-soft: #f7e8e6;
    --color-plum: #7a6b98;
    --color-plum-soft: #f0ecf7;
    --surface-soft: #fcfdff;
    --surface-tint: #fafcfe;
    --surface-muted: #f5f8fb;
  }

  /* ── NAV ── */
  .nav-bar {
    background: #f8fafc;
    color: #1f2f43;
    padding: 42px 28px 28px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    flex-wrap: nowrap;
    position: fixed;
    top: 54px;
    left: 0;
    bottom: 0;
    width: 268px;
    height: calc(100vh - 54px);
    overflow-y: auto;
    border-right: 1px solid #edf1f5;
    box-shadow: none;
    z-index: 1000;
  }
  .nav-header {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 0 2px 2px;
    border-bottom: 1px solid #dbe3eb;
  }
  .nav-brand {
    display: flex;
    align-items: flex-start;
    gap: 14px;
  }
  .nav-brand-mark {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(180deg, #1d4f7a 0%, #163955 100%);
    color: #ffffff;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.02em;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
  }
  .nav-brand-copy {
    min-width: 0;
  }
  .nav-kicker {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #5f7488;
    margin-bottom: 8px;
  }
  .nav-title-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 6px;
  }
  .nav-title {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: #16324f;
  }
  .nav-subtitle {
    font-size: 13px;
    line-height: 1.5;
    color: #60758a;
  }
  .nav-header-note {
    padding: 12px 13px;
    border: 1px solid #dbe3eb;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.85);
  }
  .nav-header-note-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #70869a;
    margin-bottom: 6px;
  }
  .nav-header-note-value {
    font-size: 13px;
    font-weight: 600;
    color: #183b56;
    line-height: 1.4;
  }
  .nav-groups {
    display: flex;
    flex-direction: column;
    gap: 26px;
  }
  .nav-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .nav-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }
  .nav-group-label {
    padding: 0 8px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #9aa7b4;
  }
  .nav-group-count {
    font-size: 11px;
    font-weight: 600;
    color: #8a9bad;
  }
  .nav-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
    background: transparent;
    color: #26364a;
    border: 1px solid transparent;
    padding: 12px 12px 12px 10px;
    min-height: 52px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    text-align: left;
    text-decoration: none;
  }
  .nav-btn-indicator {
    position: absolute;
    left: -17px;
    top: 8px;
    bottom: 8px;
    width: 4px;
    border-radius: 0 999px 999px 0;
    background: #0064a8;
    opacity: 0;
  }
  .nav-btn-icon-shell {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    background: transparent;
    border: 0;
  }
  .nav-btn-icon {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    color: #7d8b9c;
  }
  .nav-btn-icon svg {
    width: 24px;
    height: 24px;
    display: block;
  }
  .nav-btn-copy {
    flex: 1;
    min-width: 0;
  }
  .nav-btn-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .nav-btn:hover {
    background: rgba(239, 244, 250, 0.72);
    border-color: #e1e8ef;
    color: #143b5b;
  }
  .nav-btn:hover .nav-btn-indicator {
    opacity: 0;
  }
  .nav-btn:hover .nav-btn-icon-shell {
    background: transparent;
    border-color: transparent;
  }
  .nav-btn:hover .nav-btn-icon {
    color: #52677c;
  }
  .nav-btn.active {
    background: #f3f6fb;
    border-color: transparent;
    color: #153f64;
    box-shadow: 0 8px 18px rgba(31, 50, 75, 0.03);
  }
  .nav-btn.active .nav-btn-indicator {
    opacity: 1;
  }
  .nav-btn.active .nav-btn-icon-shell {
    background: transparent;
    border-color: transparent;
  }
  .nav-btn.active .nav-btn-icon {
    color: #0064a8;
  }
  .nav-divider {
    height: 1px;
    background: #dfe6ee;
    margin: 4px 0 8px;
  }
  .nav-separator { display: none; }
  .nav-version {
    font-size: 11px;
    font-weight: 600;
    color: #36536d;
    padding: 5px 10px;
    border-radius: 999px;
    background: #edf3f8;
    border: 1px solid #d4dfe8;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
  .nav-account {
    margin-top: auto;
    padding-top: 34px;
    border-top: 1px solid #dfe6ee;
    display: flex;
    flex-direction: column;
    gap: 18px;
  }
  .nav-account-card {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
  }
  .nav-avatar {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #00549a;
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
  }
  .nav-account-copy {
    flex: 1;
    min-width: 0;
  }
  .nav-account-name {
    overflow: hidden;
    color: #17283d;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .nav-account-role {
    margin-top: 2px;
    color: #8996a3;
    font-size: 13px;
    font-weight: 400;
  }
  .nav-account-chevron {
    width: 20px;
    height: 20px;
    color: #8b98a7;
  }
  .nav-account-chevron svg {
    width: 20px;
    height: 20px;
    display: block;
  }
  .nav-account-link {
    display: flex;
    align-items: center;
    gap: 16px;
    color: #556474;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
  }
  .nav-account-link:hover {
    color: #143b5b;
  }
  .nav-account-link-icon {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #7d8b9c;
  }
  .nav-account-link-icon svg {
    width: 24px;
    height: 24px;
    display: block;
  }
  .nav-footer {
    margin-top: auto;
    padding: 14px 14px;
    border: 1px solid #dbe3eb;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.9);
  }
  .nav-footer-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #72879a;
    margin-bottom: 8px;
  }
  .nav-footer-text {
    font-size: 13px;
    line-height: 1.5;
    color: #4f6479;
  }
  .nav-bar ~ *,
  .sidebar-shell ~ * { margin-left: 268px; }

  /* ── SCREEN WRAPPER ── */
  .screen { display: none; }
  .screen.active { display: block; }

  /* ── SHARED LAYOUT ── */
  .btn-primary { background: var(--color-accent); color: #fff; border: none; padding: 8px 18px; border-radius: 4px; cursor: pointer; font-size: 14px; }
  .btn-primary:hover { background: var(--color-accent-hover); }
  .btn-secondary { background: #fff; color: #374151; border: 1px solid #d1d5db; padding: 8px 18px; border-radius: 4px; cursor: pointer; font-size: 14px; }
  .btn-secondary.btn-text-danger {
    color: var(--color-danger);
    font-weight: 700;
  }
  .btn-secondary.btn-text-danger.btn-text-danger-regular {
    font-weight: 500;
  }
  .btn-secondary.btn-text-danger:hover {
    color: var(--color-danger);
    background: color-mix(in srgb, var(--color-danger-soft) 55%, #ffffff);
  }
  .btn-sm { padding: 5px 12px; font-size: 13px; }

  .page-body { padding: 20px 24px; }

  /* ── SIDEBAR LAYOUT ── */
  .main-content { padding: 24px 36px; overflow-x: auto; }
  .portal-header {
    min-height: 54px;
    background: #f5f5f5;
    border-bottom: 1px solid #d6d6d6;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1100;
  }
  .portal-header-brand {
    display: flex;
    align-items: center;
    gap: 26px;
    min-width: 0;
  }
  .portal-header-logo {
    height: 34px;
    width: auto;
    display: block;
    flex-shrink: 0;
  }
  .portal-header-title {
    font-size: 26px;
    font-weight: 900;
    line-height: 1;
    color: #123f73;
    letter-spacing: 0.01em;
    white-space: nowrap;
  }
  .portal-header-company {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #1a6ea0;
    font-size: 16px;
    font-weight: 700;
    white-space: nowrap;
  }
  .portal-header-company-mark {
    width: 14px;
    height: 14px;
    border: 2px solid #2d8b57;
    border-radius: 999px;
    position: relative;
    flex-shrink: 0;
  }
  .portal-header-company-mark::after {
    content: "";
    position: absolute;
    width: 6px;
    height: 6px;
    right: -4px;
    bottom: -2px;
    border: 2px solid #3a9d73;
    border-radius: 999px;
    background: transparent;
  }
  .portal-header-actions {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-left: auto;
    color: #3f3f46;
    font-size: 12px;
    white-space: nowrap;
  }
  .portal-header-context-badge {
    display: inline-block;
    color: #627384;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
  }
  .portal-header-notifications {
    display: flex;
    align-items: center;
    gap: 6px;
  }
  .portal-header-icon {
    position: relative;
    width: 16px;
    height: 16px;
    color: #111827;
    flex-shrink: 0;
  }
  .portal-header-icon svg {
    width: 16px;
    height: 16px;
    display: block;
  }
  .portal-header-badge {
    position: absolute;
    top: -7px;
    right: -8px;
    min-width: 14px;
    height: 14px;
    padding: 0 4px;
    border-radius: 999px;
    background: #2b6aa3;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    line-height: 14px;
    text-align: center;
  }
  .portal-header-user {
    color: #3f3f46;
  }
  .portal-header + *,
  .portal-header-shell + * {
    margin-top: 54px;
  }

  .dashboard-top { margin-bottom: 18px; }
  .dashboard-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
  .dashboard-page-title { font-size:22px;font-weight:600;color:#2f3c48;margin:0 0 4px; }
  .dashboard-breadcrumb { font-size: 12px; color: #6d7885; text-align: right; padding-top: 3px; white-space: nowrap; }
  .dashboard-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
  .dashboard-stat-card {
    --stat-accent: #6b7a88;
    --stat-soft: #edf2f6;
    background: linear-gradient(180deg, #fdfdfd 0%, #f8fafb 100%);
    border: 1px solid #dde4ea;
    border-radius: 12px;
    padding: 8px 12px 11px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
    border-top: 3px solid var(--stat-accent);
  }
  .dashboard-stat-card:nth-child(1) {
    --stat-accent: #b58849;
    --stat-soft: #faf1e2;
  }
  .dashboard-stat-card:nth-child(2) {
    --stat-accent: #5f7fa4;
    --stat-soft: #edf3fa;
  }
  .dashboard-stat-card:nth-child(3) {
    --stat-accent: #5c8d84;
    --stat-soft: #ebf5f2;
  }
  .dashboard-stat-card:nth-child(4) {
    --stat-accent: #7b7092;
    --stat-soft: #f1edf7;
  }
  .dashboard-stat-head { display: flex; align-items: center; gap: 8px; margin-bottom: 3px; }
  .dashboard-stat-icon {
    width: 18px;
    height: 18px;
    border: 1px solid color-mix(in srgb, var(--stat-accent) 24%, #d9e0e7);
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--stat-accent);
    background: var(--stat-soft);
    flex-shrink: 0;
  }
  .dashboard-stat-icon svg { width: 11px; height: 11px; display: block; }
  .dashboard-stat-label { font-size: 13px; font-weight: 600; color: #425466; }
  .dashboard-stat-value { font-size: 24px; line-height: 1; font-weight: 700; color: #334454; margin: 2px 0 4px 24px; }
  .dashboard-stat-sub { font-size: 12px; color: #7a8794; margin-left: 24px; }

  /* ── CARDS ── */
  .card { background: var(--surface-soft); border: 1px solid #e2e8f0; border-radius: 6px; padding: 16px; }
  .card-title { font-size: 14px; font-weight: 600; color: #374151; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid #f3f4f6; }

  /* ── GRID ── */
  .grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
  .grid-4 { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 16px; }

  /* ── STAT BOXES ── */
  .stat-box { background: #fff; border: 1px solid #e2e8f0; border-radius: 6px; padding: 16px; }
  .stat-box .label { font-size: 13px; color: #6b7280; }
  .stat-box .value { font-size: 32px; font-weight: 700; color: #0f2d45; margin: 6px 0; }
  .stat-box .sub { font-size: 13px; color: #9ca3af; }
  .stat-box.alert { border-top: 3px solid #ef4444; }
  .stat-box.warning { border-top: 3px solid #f59e0b; }
  .stat-box.success { border-top: 3px solid #10b981; }
  .stat-box.info { border-top: 3px solid #00897b; }

  /* ── QUADRANT PANELS ── */
  .quadrant-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
  .quadrant {
    --quadrant-accent: #5f758c;
    --quadrant-soft: #edf3f8;
    position: relative;
    background: linear-gradient(180deg, #fdfdfd 0%, #f8fafb 100%);
    border: 1px solid #dde4ea;
    border-radius: 14px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.05);
    overflow: hidden;
  }

  .quadrant-urgent {
    --quadrant-accent: #b07f38;
    --quadrant-soft: #fbf1e2;
  }
  .quadrant-updates {
    --quadrant-accent: #5f81a5;
    --quadrant-soft: #edf3fa;
  }
  .quadrant-vendors {
    --quadrant-accent: #5f8f7e;
    --quadrant-soft: #eaf5ef;
  }
  .quadrant-review {
    --quadrant-accent: #7c6a99;
    --quadrant-soft: #f2eef8;
  }
  .quadrant-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e7edf2;
  }
  .quadrant-head-main {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
    flex: 1;
  }
  .quadrant-icon {
    width: 28px;
    height: 28px;
    border: 1px solid color-mix(in srgb, var(--quadrant-accent) 20%, #dfe5eb);
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--quadrant-accent);
    background: var(--quadrant-soft);
    flex-shrink: 0;
  }
  .quadrant-icon svg { width: 13px; height: 13px; display: block; }
  .quadrant-heading { min-width: 0; }
  .quadrant-title-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 3px;
  }
  .quadrant-title { font-size: 15px; font-weight: 700; color: #2f3c48; line-height: 1.25; }
  .quadrant-subtitle {
    font-size: 12px;
    line-height: 1.45;
    color: #6f7d8c;
  }
  .quadrant-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .quadrant-item {
    font-size: 13px;
    padding: 9px 12px;
    border-radius: 8px;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    background: #ffffff;
    border: 1px solid #e3e7ec;
    color: #374151;
  }
  .quadrant-item.red { background: #fef2f2; color: #991b1b; }
  .quadrant-item.yellow { background: #fffbeb; color: #92400e; }
  .quadrant-item.green { background: #f0fdf4; color: #166534; }
  .quadrant-item.blue { background: #eff6ff; color: #1e40af; }
  .quadrant-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--quadrant-accent) 18%, #dce4eb);
    background: color-mix(in srgb, var(--quadrant-soft) 72%, #ffffff);
    font-size: 12px;
    color: color-mix(in srgb, var(--quadrant-accent) 82%, #465665);
    cursor: pointer;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
  }
  .quadrant-link.top-link { margin-left: auto; }
  .quadrant-link:hover {
    background: color-mix(in srgb, var(--quadrant-soft) 82%, #ffffff);
  }
  .quadrant-table-wrap {
    background: #fafbfd;
    border: 1px solid #e2e8ed;
    border-radius: 12px;
    overflow-x: auto;
    overflow-y: hidden;
  }
  .quadrant-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
  }
  .quadrant-table th {
    background: #f6f8fa;
    color: #667585;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 9px 12px;
    border-bottom: 1px solid #e5eaef;
    text-align: left;
  }
  .quadrant-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #ebeff3;
    font-size: 12px;
    color: #334155;
    background: #ffffff;
    vertical-align: top;
  }
  .quadrant-table tbody tr:nth-child(odd) td { background: #fcfcfd; }
  .quadrant-table tr:last-child td { border-bottom: none; }
  .quadrant-table th:last-child,
  .quadrant-table td:last-child { text-align: right; }
  .quadrant-table td.quadrant-table-id {
    white-space: nowrap;
  }
  .quadrant-table td.quadrant-table-id,
  .quadrant-table td.quadrant-table-id a {
    color: #527192;
    font-weight: 600;
    font-family: monospace;
  }
  .quadrant-table td.quadrant-table-id a {
    text-decoration: none;
    cursor: pointer;
  }
  .quadrant-table-title { color: #3d4b58; line-height: 1.45; }
  .quadrant-table-age {
    color: #6d7885;
    white-space: nowrap;
    text-align: right;
    font-weight: 600;
  }
  .quadrant-table-age.overdue {
    color: var(--color-danger);
    font-weight: 600;
  }
  .quadrant-table-age.today {
    font-weight: 600;
  }
  .status-feed { display: flex; flex-direction: column; gap: 10px; padding: 0; }
  .status-feed-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 11px 12px;
    border: 1px solid #e4e9ee;
    border-radius: 12px;
    background: #fcfcfd;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
  }
  .status-feed-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    flex-shrink: 0;
    margin-top: 2px;
  }
  .status-feed-icon svg { width: 12px; height: 12px; display: block; }
  .status-feed-icon.green { background: #5f8f7e; }
  .status-feed-icon.blue { background: #5f81a5; }
  .status-feed-icon.gray { background: #7e8fa0; }
  .status-feed-body {
    min-width: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
  }
  .status-feed-time {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 999px;
    background: #f2f5f7;
    font-size: 11px;
    font-weight: 600;
    color: #6d7885;
    margin-bottom: 0;
    flex-shrink: 0;
  }
  .status-feed-title {
    font-size: 13px;
    line-height: 1.45;
    color: #3d4b58;
  }
  .status-feed-id {
    color: #527192;
    font-weight: 600;
    font-family: monospace;
  }
  a.status-feed-id {
    text-decoration: none;
    cursor: pointer;
  }
  .vendor-status-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .vendor-status-header,
  .project-review-header {
    display: grid;
    align-items: center;
    background: transparent;
    color: #6d7885;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 0 12px;
  }
  .vendor-status-header { grid-template-columns: minmax(0, 1.8fr) 80px minmax(0, 1.1fr) 126px; }
  .vendor-status-row {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) 80px minmax(0, 1.1fr) 126px;
    gap: 0;
    align-items: center;
    padding: 11px 12px;
    border: 1px solid #e4e9ee;
    border-radius: 12px;
    background: #fcfcfd;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
  }
  .vendor-status-vendor {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
  }
  .vendor-status-icon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    flex-shrink: 0;
  }
  .vendor-status-icon svg { width: 12px; height: 12px; display: block; }
  .vendor-status-icon.red { background: #b06f62; }
  .vendor-status-icon.orange { background: #b2863f; }
  .vendor-status-icon.green { background: #5f8f7e; }
  .vendor-status-main { min-width: 0; }
  .vendor-status-name {
    font-size: 13px;
    font-weight: 600;
    color: #2f3c48;
    line-height: 1.3;
  }
  .vendor-status-alert {
    font-size: 11px;
    line-height: 1.3;
    margin-top: 1px;
  }
  .vendor-status-alert.red { color: #a76558; }
  .vendor-status-alert.orange { color: #9d742f; }
  .vendor-status-alert.green { color: #4f7f6e; }
  .vendor-status-sub {
    font-size: 11px;
    color: #7a8794;
    margin-top: 2px;
    line-height: 1.3;
    font-family: monospace;
  }
  .vendor-status-age {
    font-size: 12px;
    color: #6d7885;
    line-height: 1.35;
  }
  .vendor-status-age .emphasis {
    display: block;
    font-weight: 600;
    margin-bottom: 2px;
    font-size: 13px;
  }
  .vendor-status-age .emphasis.red { color: #a76558; }
  .vendor-status-age .emphasis.orange { color: #9d742f; }
  .vendor-status-age .emphasis.green { color: #4f7f6e; }
  .vendor-status-stage {
    font-size: 12px;
    color: #5f6c79;
    line-height: 1.35;
  }
  .vendor-status-stage strong {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 2px;
    color: #2f3c48;
  }
  .vendor-status-action {
    display: flex;
    justify-content: flex-end;
  }
  .vendor-action-btn {
    min-width: 98px;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid #dde4ea;
    background: #f7f9fb;
    color: #556676;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
  }
  .vendor-action-btn:hover {
    background: #f1f4f6;
  }
  .project-review-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .project-review-header { grid-template-columns: minmax(0, 1fr) 110px; }
  .project-review-header > div:last-child { text-align: right; }
  .project-review-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 110px;
    align-items: center;
    gap: 12px;
    padding: 11px 12px;
    border: 1px solid #e4e9ee;
    border-radius: 12px;
    background: #fcfcfd;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
  }
  .project-review-main {
    min-width: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
  }
  .project-review-title {
    font-size: 14px;
    font-weight: 600;
    color: #527192;
    line-height: 1.35;
    margin-bottom: 0;
  }
  .project-review-title a {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    font-family: monospace;
  }
  .req-id {
    font-family: monospace;
  }
  .project-review-meta {
    font-size: 12px;
    color: #6d7885;
    line-height: 1.3;
    white-space: nowrap;
    flex-shrink: 0;
  }
  .project-review-value {
    font-size: 16px;
    font-weight: 700;
    color: #2f3c48;
    text-align: right;
    white-space: nowrap;
  }
  .dashboard-main {
    height: calc(100vh - 54px);
    padding: 14px 32px 16px;
    box-sizing: border-box;
    overflow: hidden;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 14px;
  }
  .dashboard-page .quadrant-table td.quadrant-table-id,
  .dashboard-page .quadrant-table td.quadrant-table-id a {
    font-weight: 400;
  }
  .dashboard-page .status-feed-id {
    font-weight: 400;
  }
  .dashboard-page .project-review-title a {
    font-weight: 400;
  }
  .vendor-dashboard-page .quadrant-table td.quadrant-table-id,
  .vendor-dashboard-page .quadrant-table td.quadrant-table-id a {
    font-weight: 400;
  }
  .vendor-dashboard-page .status-feed-id {
    font-weight: 400;
  }
  .vendor-dashboard-page .project-review-title a {
    font-weight: 400;
  }
  .vendor-dashboard-page .project-review-title {
    font-weight: 400;
  }
  .dashboard-main .dashboard-top {
    margin-bottom: 0;
    display: grid;
    gap: 10px;
  }
  .dashboard-main .project-list-header { margin-bottom: 0; }
  .dashboard-main .dashboard-stats { gap: 14px; }
  .dashboard-main .dashboard-stat-card { padding: 10px 18px 12px; }
  .dashboard-main .dashboard-stat-head { margin-bottom: 2px; }
  .dashboard-main .dashboard-stat-icon {
    width: 16px;
    height: 16px;
  }
  .dashboard-main .dashboard-stat-icon svg {
    width: 10px;
    height: 10px;
  }
  .dashboard-main .dashboard-stat-label { font-size: 14px; }
  .dashboard-main .dashboard-stat-value { font-size: 26px; margin: 2px 0 2px 22px; }
  .dashboard-main .dashboard-stat-sub {
    font-size: 13px;
    line-height: 1.25;
    margin-left: 22px;
  }
  .dashboard-main .quadrant-grid {
    gap: 24px;
    min-height: 0;
    grid-template-rows: repeat(2, minmax(0, 1fr));
  }
  .dashboard-main .quadrant {
    min-height: 0;
    padding: 12px 22px;
  }
  .dashboard-main .quadrant-head {
    margin-bottom: 7px;
    padding-bottom: 7px;
    gap: 10px;
  }
  .dashboard-main .quadrant-head-main { gap: 10px; }
  .dashboard-main .quadrant-icon {
    width: 24px;
    height: 24px;
  }
  .dashboard-main .quadrant-icon svg {
    width: 12px;
    height: 12px;
  }
  .dashboard-main .quadrant-title { font-size: 16px; }
  .dashboard-main .quadrant-subtitle {
    font-size: 12px;
    line-height: 1.3;
  }
  .dashboard-main .quadrant-link {
    min-height: 30px;
    padding: 0 14px;
    font-size: 12px;
  }
  .dashboard-main .quadrant-body,
  .dashboard-main .quadrant-table-wrap,
  .dashboard-main .status-feed,
  .dashboard-main .vendor-status-wrap,
  .dashboard-main .project-review-wrap {
    min-height: 0;
  }
  .dashboard-main .status-feed,
  .dashboard-main .vendor-status-wrap,
  .dashboard-main .project-review-wrap {
    background: #fafbfd;
    overflow: hidden;
  }
  .dashboard-main .quadrant-body { gap: 10px; }
  .dashboard-main .quadrant-table { font-size: 13px; }
  .dashboard-main .quadrant-table th {
    font-size: 11px;
    padding: 7px 14px;
  }
  .dashboard-main .quadrant-table td {
    font-size: 12px;
    padding: 8px 14px;
  }
  .dashboard-main .quadrant-urgent .quadrant-table th {
    padding: 12px 14px;
  }
  .dashboard-main .quadrant-urgent .quadrant-table td {
    padding: 16px 14px;
  }
  .dashboard-main .quadrant-table-title,
  .dashboard-main .status-feed-title,
  .dashboard-main .project-review-title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
  }
  .dashboard-main .status-feed {
    position: relative;
    gap: 0;
    padding: 4px 0;
  }
  .dashboard-main .status-feed::before {
    content: "";
    position: absolute;
    top: 18px;
    bottom: 18px;
    left: 21px;
    width: 2px;
    border-radius: 999px;
    background: #e2e8ee;
  }
  .dashboard-main .status-feed-item {
    position: relative;
    gap: 10px;
    padding: 12px 12px;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
  .dashboard-main .status-feed-icon {
    width: 20px;
    height: 20px;
    position: relative;
    z-index: 1;
    box-shadow: 0 0 0 4px #fafbfd;
  }
  .dashboard-main .status-feed-icon svg {
    width: 10px;
    height: 10px;
  }
  .dashboard-main .status-feed-time {
    font-size: 11px;
    padding: 2px 7px;
    margin-bottom: 0;
  }
  .dashboard-main .status-feed-title {
    font-size: 13px;
    line-height: 1.25;
  }
  .dashboard-main .vendor-status-header,
  .dashboard-main .project-review-header {
    font-size: 11px;
    padding: 10px 14px 9px;
    background: #f5f7f9;
    border-bottom: 1px solid #e7ecf1;
    line-height: 1.2;
  }
  .dashboard-main .vendor-status-wrap { gap: 0; }
  .dashboard-main .vendor-status-row {
    padding: 12px 14px;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
  .dashboard-main .vendor-status-row + .vendor-status-row { border-top: 1px solid #e7ecf1; }
  .dashboard-main .vendor-status-vendor { gap: 9px; }
  .dashboard-main .vendor-status-icon {
    width: 22px;
    height: 22px;
  }
  .dashboard-main .vendor-status-icon svg {
    width: 10px;
    height: 10px;
  }
  .dashboard-main .vendor-status-name { font-size: 13px; line-height: 1.2; }
  .dashboard-main .vendor-status-alert,
  .dashboard-main .vendor-status-sub,
  .dashboard-main .vendor-status-age,
  .dashboard-main .vendor-status-stage,
  .dashboard-main .vendor-action-btn {
    font-size: 11px;
  }
  .dashboard-main .vendor-status-stage strong { font-size: 13px; }
  .dashboard-main .vendor-action-btn {
    min-width: 84px;
    min-height: 28px;
    padding: 0 10px;
  }
  .dashboard-main .project-review-wrap { gap: 0; }
  .dashboard-main .project-review-row {
    padding: 12px 14px;
    gap: 12px;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
  .dashboard-main .project-review-row + .project-review-row { border-top: 1px solid #e7ecf1; }
  .dashboard-main .project-review-title {
    font-size: 13px;
    margin-bottom: 0;
  }
  .dashboard-main .project-review-meta {
    font-size: 11px;
    line-height: 1.45;
    margin-top: 2px;
  }
  .dashboard-main .project-review-value { font-size: 15px; }
  .badge { font-size: 11px; padding: 2px 8px; border-radius: 10px; font-weight: 600; }
  .badge-red { background: var(--color-danger-soft); color: var(--color-danger); }
  .badge-yellow { background: var(--color-warning-soft); color: var(--color-warning); }
  .badge-green { background: var(--color-success-soft); color: var(--color-success); }
  .badge-blue { background: var(--color-accent-soft); color: var(--color-accent-strong); }
  .badge-gray { background: var(--color-neutral-soft); color: var(--color-neutral); }

  /* ── TABLE ── */
  table { width: 100%; border-collapse: collapse; font-size: 14px; }
  th { background: #f8fafc; text-align: left; padding: 10px 14px; font-weight: 600; color: #374151; border-bottom: 2px solid #e2e8f0; font-size: 13px; }
  td { padding: 11px 14px; border-bottom: 1px solid #f3f4f6; color: #374151; }
  tr:hover td { background: #f9fafb; }
  .status-pill { display: inline-block; padding: 3px 10px; border-radius: 10px; font-size: 12px; font-weight: 500; }
  .vendor-cleanup-table th {
    background: #fbfcfd;
    color: #6b7280;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }
  .vendor-cleanup-table td {
    padding-top: 14px;
    padding-bottom: 14px;
    vertical-align: middle;
  }
  .vendor-cleanup-table tr:hover td { background: #fcfcfd; }
  .vendor-cleanup-table th:nth-child(1),
  .vendor-cleanup-table td:nth-child(1) { width: 26%; }
  .vendor-cleanup-table th:nth-child(2),
  .vendor-cleanup-table td:nth-child(2) { width: 12%; }
  .vendor-cleanup-table th:nth-child(3),
  .vendor-cleanup-table td:nth-child(3) { width: 15%; }
  .vendor-cleanup-table th:nth-child(4),
  .vendor-cleanup-table td:nth-child(4) { width: 14%; }
  .vendor-cleanup-table th:nth-child(5),
  .vendor-cleanup-table td:nth-child(5) { width: 14%; }
  .vendor-cleanup-table th:nth-child(6),
  .vendor-cleanup-table td:nth-child(6) { width: 11%; }
  .vendor-cleanup-table th:nth-child(7),
  .vendor-cleanup-table td:nth-child(7) { width: 8%; }
  .vendor-name {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.35;
  }
  .vendor-ext-id {
    font-size: 11px;
    color: #9ca3af;
    letter-spacing: 0.02em;
    white-space: nowrap;
  }
  .vendor-category-list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 8px;
  }
  .vendor-category-item {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
  }
  .vendor-category-item.sb { color: #315ea8; }
  .vendor-category-item.sdbe { color: #2f855a; }
  .vendor-category-item.wosb { color: #9a6700; }
  .vendor-category-item.vosb { color: #5b47b7; }
  .status-inline {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
  }
  .status-inline-icon {
    width: 16px;
    height: 16px;
    border-radius: 999px;
    border: 1px solid currentColor;
    position: relative;
    flex-shrink: 0;
    opacity: 0.85;
  }
  .status-inline-icon::after {
    content: "";
    position: absolute;
    inset: 4px;
    border-radius: 999px;
    background: currentColor;
  }
  .status-inline.pending .status-inline-icon::after {
    inset: 5px;
    background: transparent;
    border: 1px solid currentColor;
  }
  .status-inline.success { color: var(--color-success); }
  .status-inline.pending { color: var(--color-neutral); }
  .status-outline {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #fff;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
  }
  .status-outline.pending {
    border-color: color-mix(in srgb, var(--color-warning) 28%, #ffffff);
    color: var(--color-warning);
    background: color-mix(in srgb, var(--color-warning-soft) 70%, #ffffff);
  }
  .status-outline.review {
    border-color: color-mix(in srgb, var(--color-warning) 34%, #ffffff);
    color: color-mix(in srgb, var(--color-warning) 88%, #65471d);
    background: color-mix(in srgb, var(--color-warning-soft) 78%, #ffffff);
  }
  .status-outline.missing {
    border-color: color-mix(in srgb, var(--color-danger) 28%, #ffffff);
    color: var(--color-danger);
    background: color-mix(in srgb, var(--color-danger-soft) 72%, #ffffff);
  }
  .status-fill {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
  }
  .status-fill.progress {
    background: var(--color-accent-soft);
    color: var(--color-accent-strong);
  }
  .status-fill.awaiting {
    background: var(--color-warning-soft);
    color: var(--color-warning);
  }
  .status-fill.doc-pending {
    background: color-mix(in srgb, var(--color-warning-soft) 82%, #ffffff);
    color: var(--color-warning);
  }
  .status-fill.doc-review {
    background: color-mix(in srgb, var(--color-warning-soft) 86%, #ffffff);
    color: color-mix(in srgb, var(--color-warning) 86%, #6a4c22);
  }
  .status-fill.doc-missing {
    background: color-mix(in srgb, var(--color-danger-soft) 86%, #ffffff);
    color: var(--color-danger);
  }
  .table-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
  }
  .table-link-danger {
    border: none;
    background: transparent;
    padding: 0;
    color: #dc2626;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
  }
  .table-link-danger:hover {
    color: #b91c1c;
    text-decoration: underline;
  }

  /* ── FORM ── */
  .form-row { display: flex; gap: 16px; margin-bottom: 14px; flex-wrap: wrap; }
  .form-group { flex: 1; min-width: 160px; }
  .form-group label { display: block; font-size: 13px; font-weight: 500; color: #374151; margin-bottom: 5px; }
  .form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 8px 12px; border: 1px solid #d1d5db; border-radius: 4px;
    font-size: 14px; background: #fff; color: #374151;
  }
  .form-group textarea { height: 70px; resize: vertical; }
  .form-divider { border: none; border-top: 1px solid #e2e8f0; margin: 16px 0; }

  /* ── SECTION TITLE ── */
  .section-title { font-size: 15px; font-weight: 600; color: #0f2d45; margin-bottom: 12px; }
  .section-subtitle { font-size: 11px; color: #6b7280; margin-top: -8px; margin-bottom: 12px; }

  /* ── INBOX ── */
  .inbox-item { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid #f3f4f6; }
  .inbox-icon { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; }
  .inbox-body .title { font-size: 13px; font-weight: 500; }
  .inbox-body .meta { font-size: 11px; color: #9ca3af; margin-top: 2px; }

  /* ── TABS ── */
  .tab-bar { display: flex; gap: 0; border-bottom: 2px solid #e2e8f0; margin-bottom: 16px; flex-wrap: wrap; }
  .tab {
    padding: 10px 22px;
    font-size: 14px;
    cursor: pointer;
    color: #6b7280;
    border: none;
    background: transparent;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
  }
  .tab.active { color: var(--color-accent); border-bottom-color: var(--color-accent-strong); font-weight: 500; }
  .tab:hover { color: #374151; }
  .tab:focus-visible {
    outline: none;
    color: var(--color-accent);
    border-bottom-color: var(--color-accent-strong);
  }
  .project-tab-content,
  .vendor-project-tab-content,
  .admin-tab-content { min-height: 320px; }
  .project-page .btn-primary { background: var(--color-accent); }
  .project-page .btn-primary:hover { background: var(--color-accent-hover); }
  .project-page .tab.active {
    color: var(--color-accent);
    border-bottom-color: var(--color-accent-strong);
    font-weight: 600;
  }
  .project-page .tab:focus-visible {
    color: var(--color-accent);
    border-bottom-color: var(--color-accent-strong);
  }
  .project-page .main-content {
    min-height: calc(100vh - 54px);
    display: flex;
    flex-direction: column;
  }
  .project-page #project-tab-content[data-active-tab="communications"] {
    flex: 1;
    min-height: 0;
    min-width: 0;
    display: flex;
  }

  /* ── TIMELINE ── */
  .timeline-item { display: flex; gap: 12px; padding: 8px 0; font-size: 13px; }
  .timeline-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--color-accent-strong); flex-shrink: 0; margin-top: 5px; }
  .timeline-dot.green { background: var(--color-success); }
  .timeline-dot.yellow { background: var(--color-warning); }
  .timeline-dot.gray { background: #cfd7e0; }

  /* ── DOCUMENT LIST ── */
  .doc-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid #e2e8f0; border-radius: 4px; margin-bottom: 6px; background: #fff; font-size: 13px; }
  .doc-icon { font-size: 18px; }
  .doc-name { flex: 1; font-weight: 500; }
  .doc-meta { font-size: 11px; color: #9ca3af; }

  /* ── COLLAPSE / EXPAND ── */
  .collapsible { border: 1px solid #e2e8f0; border-radius: 4px; margin-bottom: 6px; overflow: hidden; }
  .collapsible-header { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; background: #f8fafc; cursor: pointer; font-size: 13px; font-weight: 500; }
  .collapsible-body { padding: 10px 14px; font-size: 12px; color: #6b7280; background: #fff; border-top: 1px solid #e2e8f0; }

  /* ── CHAT / COLLAB ── */
  .chat-msg { display: flex; gap: 10px; margin-bottom: 12px; }
  .chat-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--color-accent-soft); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; color: var(--color-accent); flex-shrink: 0; }
  .chat-bubble { background: #f3f4f6; border-radius: 0 8px 8px 8px; padding: 8px 12px; font-size: 13px; max-width: 80%; }
  .chat-bubble.mine { background: var(--color-accent-soft); border-radius: 8px 0 8px 8px; }
  .chat-meta { font-size: 11px; color: #9ca3af; margin-top: 4px; }

  .comm-shell {
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    flex: 1 1 auto;
    width: 100%;
    max-width: 100%;
    height: 860px;
    min-height: 860px;
    background: #fbfcfd;
    border: 1px solid #dde4ea;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
  }
  .comm-inbox-panel {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    background: #fcfcfd;
    border-right: 1px solid #e7ecf1;
  }
  .comm-inbox-head,
  .comm-chat-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 18px 12px;
  }
  .comm-title-select {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    background: transparent;
    color: #111827;
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
  }
  .comm-title-select span {
    color: var(--color-neutral);
    font-size: 15px;
  }
  .comm-head-actions,
  .comm-chat-actions,
  .comm-page-controls,
  .comm-reply-input {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .comm-icon-btn,
  .comm-pill-btn,
  .comm-filter-chip,
  .comm-clear-btn,
  .comm-thread-item,
  .comm-page-controls button,
  .comm-reply-tabs button,
  .comm-attach-btn,
  .comm-send-btn {
    cursor: pointer;
  }
  .comm-icon-btn {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #dde4ea;
    border-radius: 8px;
    background: var(--surface-soft);
    color: var(--color-accent);
  }
  .comm-icon-btn svg,
  .comm-pill-btn svg,
  .comm-search svg,
  .comm-paperclip svg,
  .comm-attach-btn svg {
    width: 16px;
    height: 16px;
    display: block;
    fill: currentColor;
  }
  .comm-search {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 34px;
    margin: 0 14px 10px;
    padding: 0 10px;
    color: #8894a3;
    border: 1px solid #dde4ea;
    border-radius: 8px;
    background: #fcfcfd;
  }
  .comm-search input {
    width: 100%;
    min-width: 0;
    border: none;
    outline: none;
    color: #1f2937;
    font-size: 12px;
  }
  .comm-search input::placeholder {
    color: #8a94a6;
  }
  .comm-filter-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    align-items: center;
    gap: 8px;
    padding: 0 14px 12px;
    border-bottom: 1px solid #e5e7eb;
  }
  .comm-filter-chip {
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 1px solid #dde4ea;
    border-radius: 8px;
    background: var(--surface-soft);
    color: #4c5d6d;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
  }
  .comm-filter-chip span {
    color: var(--color-neutral);
    font-weight: 700;
  }
  .comm-clear-btn {
    border: none;
    background: transparent;
    color: #667585;
    font-size: 11px;
    font-weight: 700;
  }
  .comm-thread-list {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
  }
  .comm-thread-item {
    position: relative;
    width: 100%;
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    align-items: start;
    gap: 10px;
    min-height: 90px;
    padding: 16px 20px 12px;
    border: none;
    border-bottom: 1px solid #edf1f4;
    background: #fcfcfd;
    text-align: left;
  }
  .comm-thread-item.active {
    background: #f1f5f9;
    box-shadow: inset 3px 0 0 var(--color-accent-strong);
  }
  .comm-thread-item:hover {
    background: #f7f8fa;
  }
  .comm-thread-item.active:hover {
    background: #f2f4f7;
  }
  .comm-avatar {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #425466;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    flex-shrink: 0;
  }
  .comm-avatar.small {
    width: 30px;
    height: 30px;
    font-size: 11px;
  }
  .comm-avatar.slate { background: var(--color-accent-soft); color: var(--color-accent); }
  .comm-avatar.sand { background: var(--color-warning-soft); color: var(--color-warning); }
  .comm-avatar.sage { background: var(--color-success-soft); color: var(--color-success); }
  .comm-avatar.plum { background: var(--color-plum-soft); color: var(--color-plum); }
  .comm-avatar.gray { background: var(--color-neutral-soft); color: var(--color-neutral); }
  .comm-thread-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
  }
  .comm-thread-top {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 5px;
  }
  .comm-thread-top strong {
    min-width: 0;
    color: #111827;
    font-size: 13px;
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .comm-thread-top time {
    color: #475467;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
  }
  .comm-tag {
    display: inline-flex;
    align-items: center;
    min-height: 18px;
    margin-bottom: 7px;
    padding: 2px 7px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.2;
  }
  .comm-tag.slate { background: var(--color-accent-soft); color: var(--color-accent); }
  .comm-tag.sand { background: var(--color-warning-soft); color: var(--color-warning); }
  .comm-tag.sage { background: var(--color-success-soft); color: var(--color-success); }
  .comm-tag.stone { background: #f3ece7; color: #7f6958; }
  .comm-tag.gray { background: var(--color-neutral-soft); color: var(--color-neutral); }
  .comm-thread-preview {
    width: 100%;
    color: #667589;
    font-size: 12px;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .comm-unread {
    align-self: end;
    justify-self: end;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--color-accent-strong);
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    line-height: 18px;
    text-align: center;
  }
  .comm-paperclip {
    position: absolute;
    right: 50px;
    bottom: 18px;
    color: #728091;
  }
  .comm-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px 18px;
    color: #64748b;
    font-size: 12px;
    border-top: 1px solid #eef0f3;
  }
  .comm-page-controls button {
    width: 26px;
    height: 26px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
  }
  .comm-page-controls button.active {
    background: #e9edf1;
    color: #334155;
  }
  .comm-chat-panel {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    background: #fbfcfd;
  }
  .comm-chat-head {
    padding: 20px 22px 16px;
  }
  .comm-chat-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
  }
  .comm-status-dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: var(--color-success);
  }
  .comm-chat-title-row h3 {
    margin: 0;
    color: #111827;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.2;
  }
  .comm-chat-subtitle {
    padding-left: 24px;
    color: #667085;
    font-size: 12px;
    font-weight: 700;
  }
  .comm-pill-btn {
    height: 32px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0 10px;
    border: 1px solid #dde4ea;
    border-radius: 8px;
    background: var(--surface-soft);
    color: var(--color-accent);
    font-size: 12px;
    font-weight: 700;
  }
  .comm-thread-meta {
    display: grid;
    grid-template-columns: 1fr 1.18fr 1fr 1.25fr;
    margin: 0 22px 18px;
    background: #fafbfc;
    border: 1px solid #edf1f4;
  }
  .comm-thread-meta div {
    padding: 14px 18px;
    border-right: 1px solid #e5e7eb;
  }
  .comm-thread-meta div:last-child {
    border-right: none;
  }
  .comm-thread-meta span {
    display: block;
    margin-bottom: 8px;
    color: #6d7885;
    font-size: 11px;
    font-weight: 800;
  }
  .comm-thread-meta strong {
    color: #2f3c48;
    font-size: 12px;
    font-weight: 800;
  }
  .comm-thread-meta .comm-meta-warning {
    display: inline-flex;
    padding: 3px 8px;
    border-radius: 4px;
    color: var(--color-warning);
  }
  .comm-message-list {
    flex: 1;
    min-height: 0;
    padding: 0 22px 12px;
    overflow-y: auto;
  }
  .comm-message {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 22px;
  }
  .comm-message-main {
    flex: 1;
    min-width: 0;
  }
  .comm-message-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 8px;
  }
  .comm-message-head strong {
    color: #111827;
    font-size: 12px;
    font-weight: 500;
  }
  .comm-message-head time,
  .comm-system-message time {
    color: #687684;
    font-size: 11px;
    white-space: nowrap;
  }
  .comm-bubble {
    position: relative;
    max-width: 420px;
    padding: 12px 16px;
    border-radius: 8px;
    background: #f4f5f7;
    color: #182230;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.55;
  }
  .comm-bubble.vendor {
    max-width: 500px;
    background: var(--color-neutral-soft);
  }
  .comm-bubble.mine {
    max-width: 440px;
    background: var(--color-success-soft);
  }
  .comm-read-mark {
    position: absolute;
    right: 12px;
    bottom: 8px;
    color: #73869a;
    font-size: 13px;
    letter-spacing: -3px;
  }
  .comm-system-message {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    margin-top: 2px;
    color: #667085;
    font-size: 12px;
  }
  .comm-system-icon {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--color-neutral-soft);
    color: var(--color-neutral);
    font-size: 16px;
  }
  .comm-system-message div div {
    margin-bottom: 4px;
    color: #667085;
    font-size: 11px;
    font-weight: 500;
  }
  .comm-system-message p {
    color: #667085;
    font-size: 12px;
    font-weight: 400;
  }
  .comm-reply-box {
    margin: 0 22px 18px;
    padding: 0 12px 16px;
    border: 1px solid #dde4ea;
    border-radius: 10px;
    background: #fdfdfd;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
  }
  .comm-reply-tabs {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-bottom: 14px;
  }
  .comm-reply-tabs button {
    height: 42px;
    border: none;
    border-bottom: 3px solid transparent;
    background: transparent;
    color: #586676;
    font-size: 12px;
    font-weight: 800;
  }
  .comm-reply-tabs button.active {
    color: var(--color-accent);
    border-bottom-color: var(--color-accent);
  }
  .comm-reply-input {
    height: 44px;
    padding: 0 8px 0 12px;
    border: 1px solid #dde4ea;
    border-radius: 8px;
    background: #ffffff;
  }
  .comm-reply-input input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    color: #1f2937;
    font-size: 12px;
  }
  .comm-attach-btn {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: var(--color-neutral);
  }
  .comm-send-btn {
    height: 34px;
    min-width: 64px;
    border: none;
    border-radius: 8px;
    background: var(--color-accent);
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
  }
  .comm-icon-btn:hover,
  .comm-pill-btn:hover,
  .comm-filter-chip:hover,
  .comm-page-controls button:hover,
  .comm-send-btn:hover {
    background: #f3f5f7;
  }
  .comm-send-btn:hover {
    background: var(--color-accent-hover);
  }

  /* ── TOOLTIP LABELS ── */
  .wf-label { font-size: 11px; color: #9ca3af; font-style: italic; margin-top: 4px; }

  /* ── PROGRESS ── */
  .progress-bar-wrap { height: 6px; background: #e2e8f0; border-radius: 3px; margin-top: 4px; }
  .progress-bar { height: 100%; border-radius: 3px; background: var(--color-accent-strong); }

  /* ── CHECKBOX LIST ── */
  .checklist-item { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 8px; font-size: 13px; }
  .checklist-item input[type=checkbox] { margin-top: 2px; }
  .checklist-item label { line-height: 1.4; }

  /* ── MFA / LOGIN ── */
  .login-wrapper { display: flex; align-items: center; justify-content: center; min-height: calc(100vh - 52px); background: #f0f2f5; }
  .login-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; padding: 40px; width: 380px; text-align: center; }
  .login-logo { font-size: 28px; font-weight: 800; color: #0f2d45; letter-spacing: -1px; margin-bottom: 4px; }
  .login-brand-wrap { margin-bottom: 12px; }
  .login-brand-logo { height: 44px; width: auto; display: inline-block; vertical-align: middle; }
  .login-sub { font-size: 14px; color: #6b7280; margin-bottom: 28px; }
  .login-card .form-group { text-align: left; margin-bottom: 14px; }
  .login-btn { width: 100%; padding: 12px; background: var(--color-accent); color: #fff; border: none; border-radius: 4px; font-size: 15px; cursor: pointer; margin-top: 4px; }

  /* ── REPORT ── */
  .report-kpi { background: #fff; border: 1px solid #e2e8f0; border-radius: 6px; padding: 14px; text-align: center; }
  .report-kpi .big { font-size: 32px; font-weight: 700; color: #1a2b4a; }
  .report-kpi .label { font-size: 12px; color: #6b7280; margin-top: 4px; }

  /* ── PLACEHOLDER CHART ── */
  .chart-placeholder { background: #f8fafc; border: 2px dashed #d1d5db; border-radius: 6px; height: 160px; display: flex; align-items: center; justify-content: center; color: #9ca3af; font-size: 13px; }

  /* ── WORKFLOW ── */
  .workflow-steps { display: flex; gap: 0; margin: 16px 0; }
  .wf-step { flex: 1; text-align: center; position: relative; z-index: 0; }
  .wf-step-circle { width: 36px; height: 36px; border-radius: 50%; border: 2px solid #d1d5db; background: #fff; display: flex; align-items: center; justify-content: center; margin: 0 auto 6px; font-size: 13px; font-weight: 600; color: #6b7280; transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background-color 180ms ease; }
  .wf-step-circle.done { background: var(--color-success); border-color: var(--color-success); color: #fff; }
  .wf-step-circle.active { background: var(--color-accent-strong); border-color: var(--color-accent-strong); color: #fff; }
  .wf-step-label { font-size: 11px; color: #6b7280; }
  .wf-step::after { content: ''; position: absolute; top: 17px; left: 50%; width: 100%; height: 2px; background: #e2e8f0; z-index: 0; }
  .wf-step:last-child::after { display: none; }
  .wf-step-circle,
  .wf-step-label { position: relative; z-index: 1; }
  .project-page .wf-step-circle.done {
    background: var(--color-success);
    border-color: var(--color-success);
    color: #fff;
  }
  .project-page .wf-step-circle.active {
    background: #244e72;
    border-color: #244e72;
    color: #fff;
  }
  .project-page .wf-step.active-step .wf-step-circle {
    transform: scale(1.03);
    box-shadow: 0 0 0 3px rgba(82, 113, 146, 0.12);
  }
  .project-page .wf-step:has(.wf-step-circle.done)::after {
    background: var(--color-success);
  }

  /* ── VENDOR TAG ── */
  .vendor-tag { display: inline-block; font-size: 11px; padding: 2px 7px; border-radius: 10px; margin-right: 4px; margin-bottom: 2px; }

  /* ── VENDOR SEARCH ── */
  .vendor-search-result { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; border: 1px solid #e2e8f0; border-radius: 4px; margin-bottom: 4px; background: #fff; font-size: 13px; }
  .vendor-search-result:hover { background: #f3f4f6; cursor: pointer; }
  .vendor-search-result.selected { background: var(--color-accent-soft); border-color: var(--color-accent-strong); }

  .project-docs .card-title,
  .project-history .card-title {
    color: #2f3c48;
    border-bottom-color: #edf1f4;
  }
  .project-docs .docs-config {
    margin-bottom: 20px;
    border: 1px solid #dde4ea;
    border-radius: 12px;
    overflow: hidden;
    background: #fcfcfd;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
  }
  .project-docs .docs-config-head,
  .project-docs .docs-actions,
  .project-docs .docs-section-head,
  .project-docs .docs-subhead-row,
  .project-docs .docs-file-actions,
  .project-docs .docs-table-actions,
  .project-docs .docs-collapsible-left,
  .project-docs .docs-pill-row,
  .project-docs .docs-action-row,
  .project-docs .docs-final-actions,
  .project-history .history-toolbar,
  .project-history .history-event-head,
  .project-history .history-event-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .project-docs .docs-config-head,
  .project-docs .docs-section-head,
  .project-docs .docs-subhead-row,
  .project-docs .docs-action-row,
  .project-history .history-event-head {
    justify-content: space-between;
  }
  .project-docs .docs-config-head {
    padding: 12px 16px;
    background: #f5f7fa;
    border-bottom: 1px solid #e3e8ed;
  }
  .project-docs .docs-config-head-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
  }
  .project-docs .docs-config-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--color-accent);
  }
  .project-docs .docs-config-hint {
    font-size: 12px;
    color: var(--color-neutral);
  }
  .project-docs .docs-config-body {
    padding: 14px;
    background: #ffffff;
  }
  .project-docs .docs-table {
    margin-bottom: 12px;
  }
  .project-docs .docs-table-spaced {
    margin-bottom: 14px;
  }
  .project-docs .docs-th-req {
    width: 32px;
  }
  .project-docs .docs-muted-text {
    margin-top: 3px;
    font-size: 11px;
    color: var(--color-neutral);
  }
  .project-docs .docs-muted-copy {
    font-size: 12px;
    color: var(--color-neutral);
  }
  .project-docs .docs-muted-note {
    font-size: 11px;
    color: #97a2ad;
  }
  .project-docs .docs-success-text {
    color: var(--color-success);
    font-size: 12px;
    font-weight: 600;
  }
  .project-docs .docs-file-name {
    margin-bottom: 4px;
    font-size: 11px;
    color: #374151;
  }
  .project-docs .docs-file-actions,
  .project-docs .docs-actions,
  .project-docs .docs-table-actions,
  .project-docs .docs-pill-row {
    align-items: center;
    flex-wrap: wrap;
  }
  .project-docs .docs-actions {
    margin-top: 8px;
  }
  .project-docs .docs-flow {
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
  }
  .project-docs .docs-flow-outbound {
    color: var(--color-accent);
  }
  .project-docs .docs-flow-inbound {
    color: var(--color-success);
  }
  .project-docs .docs-flow-faded {
    opacity: 0.55;
  }
  .project-docs .docs-input,
  .project-history .history-select,
  .project-history .history-date {
    border: 1px solid #dde4ea;
    border-radius: 8px;
    background: var(--surface-soft);
    color: var(--color-accent);
  }
  .project-docs .docs-input {
    padding: 4px 8px;
    font-size: 12px;
  }
  .project-docs .docs-row-muted td {
    background: #fafbfd;
  }
  .project-docs .docs-faded-title {
    color: #97a2ad;
  }
  .project-docs .docs-stats {
    margin-bottom: 20px;
  }
  .project-docs .docs-stats-final {
    margin-bottom: 12px;
  }
  .project-docs .docs-stat-value {
    font-size: 22px;
  }
  .project-docs .stat-box {
    border: 1px solid #e3e8ed;
    border-radius: 12px;
    background: #fcfcfd;
  }
  .project-docs .stat-box .label {
    color: var(--color-neutral);
  }
  .project-docs .stat-box .value {
    color: #2f3c48;
  }
  .project-docs .stat-box .sub {
    color: #97a2ad;
  }
  .project-docs .stat-box.alert {
    border-top-color: var(--color-danger);
  }
  .project-docs .stat-box.warning {
    border-top-color: var(--color-warning);
  }
  .project-docs .stat-box.success {
    border-top-color: var(--color-success);
  }
  .project-docs .stat-box.info {
    border-top-color: var(--color-accent-strong);
  }
  .project-docs .docs-section-head {
    margin-bottom: 8px;
  }
  .project-docs .docs-section-head-spaced {
    margin-top: 20px;
  }
  .project-docs .docs-section-title {
    margin-bottom: 0;
  }
  .project-docs .docs-section-note {
    font-size: 11px;
    font-weight: 400;
    color: #97a2ad;
  }
  .project-docs .docs-subhead-row {
    margin-bottom: 6px;
  }
  .project-docs .docs-subhead {
    margin-bottom: 6px;
    font-size: 11px;
    font-weight: 700;
    color: var(--color-neutral);
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }
  .project-docs .docs-subhead-note {
    font-weight: 400;
    text-transform: none;
  }
  .project-docs .collapsible {
    margin-bottom: 10px;
    border: 1px solid #e4e9ee;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.03);
  }
  .project-docs .docs-collapsible-last {
    margin-bottom: 20px;
  }
  .project-docs .collapsible-header {
    padding: 14px 16px;
  }
  .project-docs .docs-collapsible-head {
    background: var(--surface-tint);
  }
  .project-docs .docs-collapsible-head-success {
    background: color-mix(in srgb, var(--color-success-soft) 76%, #ffffff);
  }
  .project-docs .docs-collapsible-head-review {
    background: color-mix(in srgb, var(--color-warning-soft) 76%, #ffffff);
  }
  .project-docs .docs-collapsible-head-pending {
    background: color-mix(in srgb, var(--color-neutral-soft) 78%, #ffffff);
  }
  .project-docs .docs-collapsible-left {
    align-items: flex-start;
  }
  .project-docs .docs-collapsible-toggle {
    font-size: 15px;
    color: var(--color-accent-strong);
    line-height: 1;
  }
  .project-docs .docs-collapsible-title {
    font-size: 13px;
    font-weight: 600;
    color: #2f3c48;
  }
  .project-docs .docs-collapsible-subtitle {
    margin-top: 2px;
    font-size: 11px;
    font-weight: 400;
    color: var(--color-neutral);
  }
  .project-docs .docs-helper {
    margin-bottom: 10px;
    font-size: 12px;
    line-height: 1.5;
    color: var(--color-neutral);
  }
  .project-docs .docs-meta-inline {
    font-size: 12px;
    color: var(--color-accent);
  }
  .project-docs .docs-button-disabled {
    cursor: not-allowed;
    opacity: 0.4;
  }
  .project-docs .docs-nowrap {
    white-space: nowrap;
  }
  .project-docs .docs-final-state {
    padding: 16px;
    border: 1px solid #dbe5dd;
    border-radius: 12px;
    background: color-mix(in srgb, var(--color-success-soft) 48%, #ffffff);
  }
  .project-docs .docs-final-title {
    margin-bottom: 10px;
    font-size: 10px;
    font-weight: 700;
    color: var(--color-success);
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }
  .project-docs .docs-final-actions {
    justify-content: flex-end;
  }
  .project-docs .badge-blue {
    background: var(--color-accent-soft);
    color: var(--color-accent);
  }
  .project-docs .badge-green {
    background: var(--color-success-soft);
    color: var(--color-success);
  }
  .project-docs .badge-yellow {
    background: var(--color-warning-soft);
    color: var(--color-warning);
  }
  .project-docs .badge-gray {
    background: var(--color-neutral-soft);
    color: var(--color-neutral);
  }
  .project-docs .badge-red {
    background: var(--color-danger-soft);
    color: var(--color-danger);
  }
  .project-docs .docs-pill-success {
    background: var(--color-success-soft);
    color: var(--color-success);
  }
  .project-docs .docs-pill-review {
    background: var(--color-warning-soft);
    color: var(--color-warning);
  }
  .project-docs .docs-pill-danger {
    background: var(--color-danger-soft);
    color: var(--color-danger);
  }
  .project-docs .docs-pill-neutral {
    background: var(--color-neutral-soft);
    color: var(--color-neutral);
  }
  .project-history .history-toolbar {
    margin-bottom: 16px;
    flex-wrap: wrap;
  }
  .project-history .history-select,
  .project-history .history-date {
    padding: 6px 10px;
    font-size: 13px;
  }
  .project-history .history-date {
    width: 180px;
  }
  .project-history .history-export-btn {
    margin-left: auto;
  }
  .project-history .history-timeline {
    margin-left: 10px;
    padding-left: 22px;
    border-left: 2px solid #e3e8ed;
  }
  .project-history .history-event {
    position: relative;
    margin-bottom: 14px;
    padding: 12px 14px 12px 18px;
    border: 1px solid #e6ebf0;
    border-radius: 12px;
    background: #fcfcfd;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.03);
  }
  .project-history .history-event:last-child {
    margin-bottom: 0;
  }
  .project-history .history-event-dot {
    position: absolute;
    top: 16px;
    left: -31px;
    width: 12px;
    height: 12px;
    border: 2px solid #fbfcfd;
    border-radius: 999px;
    background: #7b8792;
    box-shadow: 0 0 0 2px #7b8792;
  }
  .project-history .history-event.success .history-event-dot {
    background: var(--color-success);
    box-shadow: 0 0 0 2px var(--color-success);
  }
  .project-history .history-event.info .history-event-dot {
    background: var(--color-accent-strong);
    box-shadow: 0 0 0 2px var(--color-accent-strong);
  }
  .project-history .history-event.danger .history-event-dot {
    background: var(--color-danger);
    box-shadow: 0 0 0 2px var(--color-danger);
  }
  .project-history .history-event.accent .history-event-dot {
    background: var(--color-plum);
    box-shadow: 0 0 0 2px var(--color-plum);
  }
  .project-history .history-event.warning .history-event-dot {
    background: var(--color-warning);
    box-shadow: 0 0 0 2px var(--color-warning);
  }
  .project-history .history-event.neutral .history-event-dot {
    background: #7b8792;
    box-shadow: 0 0 0 2px #7b8792;
  }
  .project-history .history-event-head {
    align-items: flex-start;
    gap: 6px 10px;
    flex-wrap: wrap;
  }
  .project-history .history-event-title-row {
    flex-wrap: wrap;
  }
  .project-history .history-event-title {
    font-size: 12px;
    font-weight: 700;
    color: #334155;
  }
  .project-history .history-event-meta {
    font-size: 11px;
    color: #97a2ad;
  }
  .project-history .history-event-body {
    margin-top: 4px;
    font-size: 12px;
    line-height: 1.5;
    color: #6f7d8c;
  }
  .project-history .history-tag {
    display: inline-flex;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
  }
  .project-history .history-tag-document {
    background: var(--color-success-soft);
    color: var(--color-success);
  }
  .project-history .history-tag-naics {
    background: var(--color-accent-soft);
    color: var(--color-accent);
  }
  .project-history .history-tag-vendors {
    background: var(--color-plum-soft);
    color: var(--color-plum);
  }
  .project-history .history-tag-workflow {
    background: var(--color-warning-soft);
    color: var(--color-warning);
  }
  .project-vendors .card-title,
  .project-naics .card-title {
    color: #2f3c48;
    border-bottom-color: #edf1f4;
  }
  .project-vendors .section-title,
  .project-naics .section-title {
    color: #2f3c48;
  }
  .project-vendors-head,
  .project-naics-head,
  .project-vendors-search-row,
  .project-naics-search-row {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .project-vendors-head,
  .project-naics-head {
    justify-content: space-between;
    margin-bottom: 12px;
  }
  .project-vendors-title,
  .project-naics-title {
    margin-bottom: 0;
  }
  .project-vendors-table-wrap {
    margin-bottom: 16px;
    border: 1px solid #e3e8ed;
    border-radius: 12px;
    background: #fcfcfd;
    overflow: hidden;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.03);
  }
  .project-vendors .vendor-cleanup-table th {
    background: #f6f8fa;
    color: #6d7885;
    border-bottom-color: #e7ecf1;
  }
  .project-vendors .vendor-cleanup-table td {
    color: #334155;
    border-bottom-color: #ebeff3;
  }
  .project-vendors .vendor-cleanup-table tr:hover td {
    background: #fafbfd;
  }
  .project-vendors .vendor-name {
    color: #2f3c48;
  }
  .project-vendors .vendor-ext-id {
    color: #97a2ad;
  }
  .project-vendors .vendor-cleanup-table th:nth-child(3),
  .project-vendors .vendor-cleanup-table td:nth-child(3) .vendor-category-item {
    font-weight: 700;
  }
  .project-vendors .vendor-category-item.sb { color: var(--color-accent-strong); }
  .project-vendors .vendor-category-item.sdbe { color: var(--color-success); }
  .project-vendors .vendor-category-item.wosb { color: var(--color-warning); }
  .project-vendors .vendor-category-item.vosb { color: var(--color-plum); }
  .project-vendors .status-inline.success {
    color: var(--color-success);
    font-weight: 700;
  }
  .project-vendors .status-fill.progress {
    background: var(--color-accent-soft);
    color: var(--color-accent);
  }
  .project-vendors-panel,
  .project-naics-panel {
    padding: 14px;
    border: 1px solid #dde4ea;
    border-radius: 12px;
    background: #fcfcfd;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.03);
  }
  .project-vendors-panel-title,
  .project-naics-panel-title {
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 700;
    color: #425466;
  }
  .project-vendors-search-row,
  .project-naics-search-row {
    margin-bottom: 10px;
  }
  .project-vendors-input,
  .project-naics-input {
    flex: 1;
    padding: 7px 10px;
    border: 1px solid #dde4ea;
    border-radius: 8px;
    background: #ffffff;
    color: #334155;
    font-size: 13px;
  }
  .project-vendors .vendor-search-result,
  .project-naics .vendor-search-result {
    margin-bottom: 8px;
    padding: 10px 12px;
    border: 1px solid #e3e8ed;
    border-radius: 10px;
    background: #ffffff;
  }
  .project-vendors .vendor-search-result:last-child,
  .project-naics .vendor-search-result:last-child {
    margin-bottom: 0;
  }
  .project-vendors .vendor-search-result:hover,
  .project-naics .vendor-search-result:hover {
    background: #fafbfd;
  }
  .project-vendors-result-meta,
  .project-naics-result-meta {
    margin-top: 3px;
    font-size: 11px;
    color: #6f7d8c;
  }
  .project-naics .badge-blue {
    background: var(--color-accent);
    color: #fff;
    border: 1px solid color-mix(in srgb, var(--color-accent) 88%, #000000);
    padding: 3px 10px;
    font-weight: 700;
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.06);
  }
  .project-naics .badge-gray {
    background: #fff;
    color: #64748b;
    border: 1px solid #94a3b8;
    padding: 3px 10px;
    font-weight: 600;
  }
  .project-naics-table-wrap {
    margin-bottom: 16px;
    border: 1px solid #e3e8ed;
    border-radius: 12px;
    overflow: hidden;
    background: #fcfcfd;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.03);
  }
  .project-naics-table {
    margin-bottom: 0;
  }
  .project-naics-table th {
    background: #f6f8fa;
    color: #6d7885;
    border-bottom-color: #e7ecf1;
  }
  .project-naics-table td {
    color: #334155;
    border-bottom-color: #ebeff3;
  }
  .project-naics-table tr:hover td {
    background: #fafbfd;
  }
  .project-naics .status-inline.success {
    color: var(--color-success);
    font-weight: 700;
  }
  .project-remove-btn {
    color: var(--color-danger);
    white-space: nowrap;
  }
  .project-remove-btn:hover {
    color: var(--color-danger);
    background: color-mix(in srgb, var(--color-danger-soft) 55%, #ffffff);
    border-color: color-mix(in srgb, var(--color-danger) 28%, #d1d5db);
  }
  .tone-pill {
    font-weight: 600;
  }
  .tone-pill.success {
    background: var(--color-success-soft);
    color: var(--color-success);
  }
  .tone-pill.neutral {

  }
  .tone-pill.warning {
    background: var(--color-warning-soft);
    color: var(--color-warning);
  }
  .tone-pill.info {
    background: var(--color-accent-soft);
    color: var(--color-accent);
  }
  .tone-pill.danger {
    background: var(--color-danger-soft);
    color: var(--color-danger);
  }
  .admin-tab-strip {
    display: flex;
    padding: 0 24px;
    background: #f6f8fa;
    border-bottom: 1px solid #e3e8ed;
  }
  .admin-page-header,
  .project-list-header {
    margin-bottom: 20px;
  }
  .admin-page-title,
  .project-list-title {
    margin: 0 0 4px;
    font-size: 22px;
    font-weight: 600;
    color: #2f3c48;
  }
  .admin-page-breadcrumb,
  .project-list-breadcrumb {
    font-size: 13px;
    color: #6d7885;
  }
  .admin-page .admin-tab {
    font-size: 13px;
    cursor: default;
    color: #6d7885;
  }
  .admin-page .admin-tab:hover {
    color: #6d7885;
  }
  .admin-page .admin-tab.active {
    color: #425466;
    border-bottom-color: #6b7a88;
    font-weight: 600;
  }
  .admin-page .card,
  .project-list-page .card {
    border: 1px solid #dde4ea;
    border-radius: 12px;
    background: #fcfcfd;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
  }
  .admin-page .card-title,
  .project-list-page .card-title {
    color: #2f3c48;
    border-bottom-color: #edf1f4;
  }
  .admin-page .btn-primary,
  .project-list-page .btn-primary {
    background: var(--color-accent);
  }
  .admin-page .btn-primary:hover,
  .project-list-page .btn-primary:hover {
    background: var(--color-accent-hover);
  }
  .admin-page .btn-secondary,
  .project-list-page .btn-secondary {
    border-color: #dde4ea;
    background: #fcfcfd;
    color: #556676;
  }
  .admin-page .btn-secondary:hover,
  .project-list-page .btn-secondary:hover {
    background: #f3f5f7;
  }
  .admin-page .btn-secondary.btn-text-danger,
  .project-list-page .btn-secondary.btn-text-danger {
    color: var(--color-danger);
    font-weight: 700;
  }
  .admin-page .btn-secondary.btn-text-danger.btn-text-danger-regular,
  .project-list-page .btn-secondary.btn-text-danger.btn-text-danger-regular {
    font-weight: 500;
  }
  .admin-page .btn-secondary.btn-text-danger:hover,
  .project-list-page .btn-secondary.btn-text-danger:hover {
    color: var(--color-danger);
    background: color-mix(in srgb, var(--color-danger-soft) 45%, #f3f5f7);
  }
  .admin-page .badge-blue {
    background: var(--color-accent-soft);
    color: var(--color-accent);
  }
  .admin-page .badge-red {
    background: var(--color-danger-soft);
    color: var(--color-danger);
  }
  .admin-page .badge-green {
    background: var(--color-success-soft);
    color: var(--color-success);
  }
  .admin-page .badge-yellow {
    background: var(--color-warning-soft);
    color: var(--color-warning);
  }
  .admin-page .badge-gray,
  .project-list-page .badge-gray {
    background: var(--color-neutral-soft);
    color: var(--color-neutral);
  }
  .admin-page table th,
  .project-list-page table th {
    background: #f6f8fa;
    color: #6d7885;
    border-bottom-color: #e7ecf1;
  }
  .admin-page table td,
  .project-list-page table td {
    color: #334155;
    border-bottom-color: #ebeff3;
  }
  .admin-page tr:hover td,
  .project-list-page tr:hover td {
    background: #fafbfd;
  }
  .admin-page input[type="text"],
  .admin-page input[type="date"],
  .admin-page select,
  .admin-page textarea,
  .project-list-page input[type="text"],
  .project-list-page input[type="date"],
  .project-list-page select {
    border: 1px solid #dde4ea !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    color: #334155 !important;
  }
  .admin-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
  }
  .admin-toolbar-input {
    flex: 1;
    padding: 7px 10px;
    font-size: 13px;
  }
  .admin-page .section-title {
    color: #2f3c48;
  }
  .admin-editor-card {
    padding: 16px;
    border: 1px solid #dde4ea;
    border-radius: 12px;
    background: #fcfcfd;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.03);
  }
  .admin-editor-title {
    color: var(--color-accent) !important;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 12px;
  }
  .admin-subeditor-title {
    margin-bottom: 12px;
  }
  .admin-readonly-input {
    background: var(--surface-muted) !important;
    color: var(--color-neutral) !important;
  }
  .admin-page .vendor-search-result {
    border: 1px solid #e3e8ed;
    border-radius: 10px;
    padding: 10px 12px;
    background: #ffffff;
  }
  .admin-page .vendor-search-result:hover {
    background: #fafbfd;
  }
  .admin-page .admin-flow {
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
  }
  .admin-page .admin-flow-outbound {
    color: var(--color-accent);
  }
  .admin-page .admin-flow-inbound {
    color: var(--color-success);
  }
  .admin-page .vendor-search-result.selected {
    background: var(--color-accent-soft);
    border-color: color-mix(in srgb, var(--color-accent) 26%, #d7dfe6);
  }
  .admin-result-meta {
    font-size: 11px;
    color: var(--color-neutral);
  }
  .admin-linked-vendor {
    margin-bottom: 14px;
    padding: 12px;
    border: 1px solid #dbe5dd;
    border-radius: 10px;
    background: #f6f8f6;
  }
  .admin-linked-vendor-title {
    margin-bottom: 4px;
    font-size: 12px;
    font-weight: 700;
    color: var(--color-success);
  }
  .admin-linked-vendor-main {
    font-size: 13px;
    color: #334155;
  }
  .admin-warning-text {
    font-size: 12px;
    color: var(--color-danger);
  }
  .user-shell {
    display: grid;
    grid-template-columns: minmax(500px, 0.9fr) minmax(0, 1.1fr);
    width: 100%;
    min-height: 790px;
    border: 1px solid #dde4ea;
    border-radius: 12px;
    overflow: hidden;
    background: #fbfcfd;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
  }
  .user-directory-panel,
  .user-detail-panel {
    min-width: 0;
    background: #fcfcfd;
  }
  .user-directory-panel {
    display: flex;
    flex-direction: column;
    border-right: 1px solid #e7ecf1;
  }
  .user-directory-head {
    display: flex;
    align-items: center;
    min-height: 60px;
    padding: 0 20px;
    border-bottom: 1px solid #edf1f4;
  }
  .user-directory-head h3 {
    margin: 0;
    color: #111827;
    font-size: 15px;
    font-weight: 800;
  }
  .user-directory-head span {
    color: #667085;
  }
  .user-directory-controls {
    padding: 16px 18px 18px;
    border-bottom: 1px solid #edf1f4;
    background: #ffffff;
  }
  .user-search {
    position: relative;
    display: block;
    margin-bottom: 14px;
  }
  .user-search svg {
    position: absolute;
    top: 50%;
    left: 12px;
    width: 18px;
    height: 18px;
    fill: #94a3b8;
    transform: translateY(-50%);
  }
  .user-search input {
    width: 100%;
    min-height: 40px;
    padding: 0 14px 0 40px;
    border: 1px solid #d9e1e8;
    border-radius: 9px;
    background: #ffffff;
    color: #111827;
    font: inherit;
  }
  .user-search input::placeholder {
    color: #94a3b8;
  }
  .user-filter-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
  }
  .user-filter-grid label {
    min-width: 0;
  }
  .user-filter-grid span {
    display: block;
    margin-bottom: 6px;
    color: #667085;
    font-size: 11px;
    font-weight: 800;
  }
  .user-filter-grid select {
    width: 100%;
    min-height: 36px;
    padding: 0 30px 0 10px;
    border: 1px solid #d9e1e8;
    border-radius: 8px;
    background: #ffffff;
    color: #334155;
    font-size: 12px;
    font-weight: 700;
  }
  .user-list-head,
  .user-row {
    display: grid;
    grid-template-columns: 40px minmax(0, 1.35fr) minmax(68px, 0.75fr) minmax(76px, 0.85fr) minmax(76px, 0.75fr);
    column-gap: 16px;
    align-items: center;
    justify-items: start;
  }
  .user-list-head {
    min-height: 56px;
    padding: 0 18px;
    color: #667085;
    border-bottom: 1px solid #edf1f4;
    font-size: 12px;
    font-weight: 800;
  }
  .user-list-head span:first-child {
    grid-column: 1 / span 2;
  }
  .user-list-head b {
    margin-left: 4px;
    color: #94a3b8;
    font-size: 14px;
  }
  .user-list {
    flex: 1;
    min-height: 0;
  }
  .user-empty-state {
    padding: 24px 18px;
    border-bottom: 1px solid #edf1f4;
    color: #667085;
    font-size: 13px;
    font-weight: 700;
  }
  .user-row {
    width: 100%;
    min-height: 86px;
    padding: 0 18px;
    border: none;
    border-bottom: 1px solid #edf1f4;
    background: #fcfcfd;
    color: #334155;
    font-size: 13px;
    text-align: left;
    cursor: pointer;
  }
  .user-row:hover {
    background: #f7f8fa;
  }
  .user-row.active {
    background: #eef6ff;
    box-shadow: inset 3px 0 0 var(--color-accent-strong);
  }
  .user-row.active:hover {
    background: #eef6ff;
  }
  .user-avatar,
  .user-profile-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    font-weight: 800;
    line-height: 1;
  }
  .user-avatar {
    width: 40px;
    height: 40px;
    font-size: 12px;
  }
  .user-profile-avatar {
    width: 68px;
    height: 68px;
    font-size: 19px;
    box-shadow: 0 0 0 4px #f2f5f8;
  }
  .portrait-sarah { background: linear-gradient(135deg, #8f705d, #c79c81); }
  .portrait-john { background: linear-gradient(135deg, #3d6670, #8aa1a7); }
  .portrait-lisa { background: linear-gradient(135deg, #7b5c57, #c99986); }
  .portrait-mike { background: linear-gradient(135deg, #35495d, #6f879d); }
  .portrait-nicole { background: linear-gradient(135deg, #7b5544, #b9876f); }
  .portrait-carlos { background: linear-gradient(135deg, #5d6772, #9da6af); }
  .user-avatar.muted {
    color: #607080;
    background: #eef2f6;
  }
  .user-identity {
    display: flex;
    flex-direction: column;
    min-width: 0;
  }
  .user-identity strong {
    margin-bottom: 4px;
    overflow: hidden;
    color: #111827;
    font-size: 13px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .user-row.active .user-identity strong {
    color: var(--color-accent);
  }
  .user-identity em {
    overflow: hidden;
    color: #667085;
    font-size: 12px;
    font-style: normal;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .user-role-pill,
  .user-status-pill {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 24px;
    padding: 0 9px;
    border-radius: 7px;
    font-size: 11px;
    font-style: normal;
    line-height: 1;
  }
  .user-role-pill.vendor-rep {
    color: var(--color-plum);
    background: var(--color-plum-soft);
  }
  .user-status-pill.active {
    color: var(--color-success);
    background: var(--color-success-soft);
  }
  .user-status-pill.inactive {
    color: var(--color-neutral);
    background: var(--color-neutral-soft);
  }
  .user-status-pill.incomplete {
    color: var(--color-warning);
    background: var(--color-warning-soft);
  }
  .user-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 70px;
    padding: 0 18px;
    border-top: 1px solid #eef0f3;
  }
  .user-page-controls {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .user-page-controls button,
  .user-page-size {
    border: none;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
  }
  .user-page-controls button {
    width: 30px;
    height: 30px;
    border-radius: 7px;
  }
  .user-page-controls button.active {
    color: #334155;
    background: #e9edf1;
  }
  .user-page-size {
    height: 38px;
    padding: 0 14px;
    border: 1px solid #dde4ea;
    border-radius: 8px;
    background: #ffffff;
  }
  .user-page-size span {
    margin-left: 4px;
  }
  .user-detail-panel {
    display: flex;
    flex-direction: column;
  }
  .user-profile-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
    min-height: 130px;
    padding: 20px 28px;
    border-bottom: 1px solid #edf1f4;
  }
  .user-profile-main {
    display: flex;
    align-items: center;
    gap: 20px;
    min-width: 0;
  }
  .user-profile-title-row,
  .user-profile-contact-row,
  .user-profile-meta-row {
    display: flex;
    align-items: center;
  }
  .user-profile-title-row {
    gap: 10px;
    margin-bottom: 10px;
  }
  .user-profile-title-row h3 {
    margin: 0 8px 0 0;
    color: #111827;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.1;
  }
  .user-profile-contact-row {
    gap: 18px;
    margin-bottom: 8px;
    color: #536273;
    font-size: 13px;
  }
  .user-profile-contact-row span,
  .user-profile-meta-row i {
    display: inline-flex;
    align-items: center;
    gap: 7px;
  }
  .user-profile-contact-row svg,
  .user-profile-meta-row svg,
  .user-outline-btn svg,
  .user-linked-vendor-main svg {
    display: block;
    fill: currentColor;
  }
  .user-profile-contact-row svg {
    width: 15px;
    height: 15px;
  }
  .user-profile-meta-row {
    gap: 12px;
    color: #667085;
    font-size: 13px;
  }
  .user-profile-meta-row b {
    color: #94a3b8;
    font-size: 11px;
  }
  .user-profile-meta-row i {
    width: 18px;
    height: 18px;
    justify-content: center;
    border-radius: 999px;
    color: var(--color-success);
    background: var(--color-success-soft);
  }
  .user-profile-meta-row svg {
    width: 13px;
    height: 13px;
  }
  .user-actions-btn,
  .user-outline-btn,
  .user-save-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 800;
  }
  .user-actions-btn {
    gap: 10px;
    height: 44px;
    min-width: 138px;
    border: 1px solid #dde4ea;
    background: #ffffff;
    color: #334155;
  }
  .user-detail-tabs {
    display: flex;
    align-items: center;
    min-height: 62px;
    padding: 0 28px;
    border-bottom: 1px solid #edf1f4;
  }
  .user-detail-tabs button {
    height: 62px;
    padding: 0 22px;
    border: none;
    border-bottom: 2px solid transparent;
    background: transparent;
    color: #536273;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
  }
  .user-detail-tabs button:first-child {
    padding-left: 0;
  }
  .user-detail-tabs button.active {
    color: var(--color-accent);
    border-bottom-color: var(--color-accent-strong);
  }
  .user-detail-body {
    flex: 1;
    padding: 24px 28px 18px;
  }
  .user-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
  }
  .user-section h4,
  .user-card h4 {
    margin: 0;
    color: #111827;
    font-size: 15px;
    font-weight: 800;
  }
  .user-outline-btn {
    gap: 8px;
    height: 38px;
    padding: 0 16px;
    border: 1px solid #dde4ea;
    background: #ffffff;
    color: #536273;
  }
  .user-outline-btn svg {
    width: 16px;
    height: 16px;
  }
  .user-outline-btn.strong {
    color: var(--color-accent);
  }
  .user-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 22px 28px;
    margin-bottom: 24px;
  }
  .user-form-grid label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
  }
  .user-form-grid span,
  .user-summary-grid span {
    color: #667085;
    font-size: 13px;
    font-weight: 700;
  }
  .user-form-grid strong {
    color: #334155;
    font-size: 14px;
    font-weight: 600;
  }
  .user-select {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-height: 46px;
    padding: 0 16px;
    border: 1px solid #dde4ea;
    border-radius: 8px;
    background: #ffffff;
    color: #334155;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    text-align: left;
  }
  .user-select.compact {
    max-width: 290px;
  }
  .user-select b {
    color: #64748b;
  }
  .user-card {
    margin-bottom: 14px;
    padding: 18px 20px;
    border: 1px solid #dde4ea;
    border-radius: 10px;
    background: #ffffff;
  }
  .user-linked-vendor-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
  }
  .user-linked-vendor-main {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 16px;
  }
  .user-linked-vendor-main span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    color: var(--color-accent);
    background: var(--color-accent-soft);
  }
  .user-linked-vendor-main svg {
    width: 26px;
    height: 26px;
  }
  .user-linked-vendor-main strong {
    display: block;
    margin-bottom: 6px;
    color: #111827;
    font-size: 15px;
    font-weight: 800;
  }
  .user-linked-vendor-main p {
    margin: 0;
    color: #667085;
    font-size: 13px;
  }
  .user-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 18px 28px;
    margin-top: 18px;
  }
  .user-summary-grid div {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .user-summary-grid strong {
    color: #334155;
    font-size: 14px;
    font-weight: 600;
  }
  .user-detail-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 78px;
    padding: 0 28px;
    border-top: 1px solid #edf1f4;
  }
  .user-detail-footer div {
    display: flex;
    gap: 10px;
  }
  .user-detail-footer .user-detail-deactivate {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 16px;
    border-radius: 8px;
    font-weight: 700;
  }
  .user-detail-footer .user-detail-deactivate span {
    font-size: 18px;
    line-height: 1;
  }
  .user-save-btn {
    height: 42px;
    padding: 0 20px;
    border: none;
    color: #ffffff;
    background: var(--color-accent);
  }
  .user-save-btn:hover {
    background: var(--color-accent-hover);
  }
  .admin-preview-card {
    background: #fafbfd !important;
    border-style: dashed;
    border-color: #dce3e9;
  }
  .admin-preview-title {
    color: var(--color-neutral) !important;
  }
  .project-list-filters {
    margin-bottom: 16px;
    padding: 14px;
  }
  .project-list-filter-row {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    flex-wrap: wrap;
  }
  .project-list-filter-actions {
    display: flex;
    gap: 6px;
    margin-bottom: 1px;
  }
  .project-list-results-meta,
  .project-list-pagination,
  .project-list-pagination-controls {
    display: flex;
    align-items: center;
  }
  .project-list-results-meta,
  .project-list-pagination {
    justify-content: space-between;
  }
  .project-list-results-meta {
    margin-bottom: 12px;
  }
  .project-list-results-count {
    font-size: 13px;
    font-weight: 600;
    color: #2f3c48;
  }
  .project-list-results-sort,
  .project-list-pagination-meta {
    font-size: 12px;
    color: var(--color-neutral);
  }
  .project-list-req {
    font-family: monospace;
    font-size: 12px;
    color: var(--color-accent-strong);
  }
  .project-list-date {
    font-size: 14px;
    color: var(--color-neutral);
  }
  .project-list-note {
    font-size: 10px;
    color: #97a2ad;
  }
  .project-list-row-active td {
    background: #f1f5f9 !important;
  }
  .project-list-row-active td:first-child {
    box-shadow: inset 3px 0 0 var(--color-accent-strong);
  }
  .project-list-pagination {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #edf1f4;
  }
  .project-list-pagination-controls {
    gap: 4px;
  }
  .project-list-pagination-ellipsis {
    padding: 4px 6px;
    font-size: 12px;
    color: #97a2ad;
  }
  .project-list-page-btn.active {
    background: var(--color-accent) !important;
    color: #ffffff !important;
    border-color: var(--color-accent-hover) !important;
  }
  .vendor-portal-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--color-success-soft);
    color: var(--color-success);
    font-size: 11px;
    font-weight: 600;
  }
  .vendor-project-page .card,
  .vendor-projects-page .card {
    border: 1px solid #dde4ea;
    border-radius: 12px;
    background: #fcfcfd;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
  }
  .vendor-project-page .card-title,
  .vendor-projects-page .card-title {
    color: #2f3c48;
    border-bottom-color: #edf1f4;
  }
  .vendor-project-page .btn-primary,
  .vendor-projects-page .btn-primary {
    background: var(--color-accent);
  }
  .vendor-project-page .btn-primary:hover,
  .vendor-projects-page .btn-primary:hover {
    background: var(--color-accent-hover);
  }
  .vendor-project-page .btn-secondary,
  .vendor-projects-page .btn-secondary {
    border-color: #dde4ea;
    background: #fcfcfd;
    color: #556676;
  }
  .vendor-project-page .btn-secondary:hover,
  .vendor-projects-page .btn-secondary:hover {
    background: #f3f5f7;
  }
  .vendor-project-page .badge-blue,
  .vendor-projects-page .badge-blue {
    background: var(--color-accent-soft);
    color: var(--color-accent);
  }
  .vendor-project-page .badge-green,
  .vendor-projects-page .badge-green {
    background: var(--color-success-soft);
    color: var(--color-success);
  }
  .vendor-project-page .badge-yellow,
  .vendor-projects-page .badge-yellow {
    background: var(--color-warning-soft);
    color: var(--color-warning);
  }
  .vendor-project-page .badge-red,
  .vendor-projects-page .badge-red {
    background: var(--color-danger-soft);
    color: var(--color-danger);
  }
  .vendor-project-page .badge-gray,
  .vendor-projects-page .badge-gray {
    background: var(--color-neutral-soft);
    color: var(--color-neutral);
  }
  .vendor-project-page table th,
  .vendor-projects-page table th {
    background: #f6f8fa;
    color: var(--color-neutral);
    border-bottom-color: #e7ecf1;
  }
  .vendor-project-page table td,
  .vendor-projects-page table td {
    color: #334155;
    border-bottom-color: #ebeff3;
  }
  .vendor-project-page tr:hover td,
  .vendor-projects-page tr:hover td {
    background: #fafbfd;
  }
  .vendor-project-page input,
  .vendor-project-page select,
  .vendor-project-page textarea,
  .vendor-projects-page input,
  .vendor-projects-page select {
    border: 1px solid #dde4ea !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    color: #334155 !important;
  }
  .vendor-project-page .comm-search input {
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #1f2937 !important;
  }
  .vendor-project-main,
  .vendor-projects-main {
    min-height: calc(100vh - 120px);
  }
  .vendor-project-header,
  .vendor-projects-header {
    margin-bottom: 20px;
  }
  .vendor-project-title,
  .vendor-projects-title {
    margin: 0 0 4px;
    font-size: 22px;
    font-weight: 600;
    color: #2f3c48;
  }
  .vendor-project-breadcrumb,
  .vendor-projects-breadcrumb {
    font-size: 13px;
    color: var(--color-neutral);
  }
  .vendor-project-link {
    color: var(--color-accent);
    cursor: pointer;
  }
  .vendor-project-card {
    padding: 16px;
  }
  .vendor-project-shell-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2px;
    gap: 12px;
  }
  .vendor-project-shell-title {
    margin-bottom: 0 !important;
    border-bottom: none !important;
  }
  .vendor-project-page .tab.active {
    color: var(--color-accent);
    border-bottom-color: var(--color-accent-strong);
    font-weight: 600;
  }
  .vendor-project-page .tab:focus-visible {
    color: var(--color-accent);
    border-bottom-color: var(--color-accent-strong);
  }
  .vendor-project-readonly {
    background: var(--surface-muted) !important;
    color: var(--color-neutral) !important;
  }
  .vendor-project-tag-list {
    margin-top: 6px;
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  .vendor-project-tag {
    width: fit-content;
  }
  .vendor-project-tag.info {
    background: var(--color-accent-soft);
    color: var(--color-accent);
  }
  .vendor-project-tag.success {
    background: var(--color-success-soft);
    color: var(--color-success);
  }
  .vendor-project-checklist {
    margin-top: 4px;
    padding: 14px;
    border: 1px solid #e2e8ed;
    border-radius: 12px;
    background: #fafbfd;
  }
  .vendor-project-checklist-title {
    margin-bottom: 10px;
    font-size: 12px;
    font-weight: 700;
    color: #374151;
  }
  .vendor-checklist-label.success { color: var(--color-success); }
  .vendor-checklist-label.warning { color: var(--color-warning); }
  .vendor-checklist-label.danger {
    color: var(--color-danger);
    font-weight: 600;
  }
  .vendor-preview-card {
    margin-top: 16px;
    background: #fafbfd !important;
    border-style: dashed;
    border-color: #dce3e9;
  }
  .vendor-preview-title {
    color: var(--color-neutral) !important;
  }
  .vendor-section-heading {
    margin-bottom: 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }
  .vendor-section-heading.accent {
    color: var(--color-accent);
  }
  .vendor-collapsible-head.success {
    background: color-mix(in srgb, var(--color-success-soft) 76%, #ffffff);
  }
  .vendor-collapsible-head.warning {
    background: color-mix(in srgb, var(--color-warning-soft) 76%, #ffffff);
  }
  .vendor-collapsible-head.danger {
    background: color-mix(in srgb, var(--color-danger-soft) 76%, #ffffff);
  }
  .vendor-project-inline-notice {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    padding: 8px 12px;
    border: 1px solid #dde4ea;
    border-radius: 8px;
    background: #f2f5f7;
    font-size: 12px;
  }
  .vendor-danger-copy {
    font-size: 11px;
    font-weight: 400;
    color: var(--color-danger);
  }
  .vendor-postaward-card {
    padding: 14px;
    border: 1px solid #e2e8ed;
    border-radius: 12px;
    background: #f7f9fb;
  }
  .vendor-naics-card {
    margin-bottom: 12px;
    padding: 14px;
    border: 1px solid #dbe5dd;
    border-radius: 12px;
    background: #ffffff;
  }
  .vendor-naics-card-spaced {
    margin-bottom: 16px;
  }
  .vendor-project-next-step {
    margin-top: 4px;
    padding: 12px 14px;
    border-color: #dbe4ea;
    background: #f2f5f7;
    justify-content: flex-start;
  }
  .vendor-project-next-step-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--color-accent);
  }
  .vendor-message-thread {
    margin-bottom: 10px;
    overflow: hidden;
    border: 1px solid #e2e8ed;
    border-radius: 10px;
  }
  .vendor-message-thread.resolved {
    border-color: #dbe5dd;
  }
  .vendor-message-thread.review {
    border-color: #e6dcc8;
  }
  .vendor-message-thread-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
  }
  .vendor-message-thread-head.resolved {
    background: color-mix(in srgb, var(--color-success-soft) 76%, #ffffff);
  }
  .vendor-message-thread-head.review {
    background: color-mix(in srgb, var(--color-warning-soft) 76%, #ffffff);
  }
  .vendor-message-compose {
    padding: 14px;
    border: 1px solid #e2e8ed;
    border-radius: 10px;
    background: #ffffff;
  }
  .vendor-projects-header {
    margin-bottom: 20px;
  }
  .vendor-projects-card {
    padding: 16px;
  }
  .vendor-projects-toolbar,
  .vendor-projects-toolbar-controls {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .vendor-projects-toolbar {
    justify-content: space-between;
    margin-bottom: 14px;
  }
  .vendor-projects-toolbar-title {
    font-size: 14px;
    font-weight: 600;
    color: #2f3c48;
  }
  .vendor-projects-input {
    width: 200px;
    padding: 5px 10px;
    font-size: 13px;
  }
  .vendor-projects-select {
    padding: 5px 10px;
    font-size: 13px;
  }
  .vendor-projects-req {
    font-family: monospace;
    font-size: 12px;
    color: var(--color-accent-strong);
  }
  .vendor-projects-date {
    font-size: 12px;
    color: var(--color-neutral);
  }
  .vendor-projects-empty {
    color: #97a2ad;
  }
  .vendor-projects-page .status-pill.tone-pill {
    font-weight: 400;
  }
  .vendor-projects-row-active td {
    background: #f1f5f9 !important;
  }
  .vendor-projects-row-active td:first-child {
    box-shadow: inset 3px 0 0 var(--color-accent-strong);
  }

a.nav-btn { text-decoration: none; display: flex; width: 100%; }
.screen { display: block; }


a.btn-primary, a.btn-secondary { text-decoration: none; display: inline-block; }

  @media (max-width: 1100px) {
    .nav-bar { width: 232px; }
    .nav-bar ~ *,
    .sidebar-shell ~ * { margin-left: 232px; }
    .dashboard-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dashboard-main {
      height: auto;
      overflow: visible;
      display: block;
      padding: 18px 30px 22px;
    }
    .dashboard-main .dashboard-top { display: block; }
    .dashboard-main .project-list-header { margin-bottom: 12px; }
    .dashboard-main .dashboard-stats { gap: 12px; }
    .dashboard-main .quadrant-grid {
      grid-template-rows: none;
      min-height: unset;
    }
    .vendor-status-header,
    .vendor-status-row { grid-template-columns: minmax(0, 1.6fr) 70px minmax(0, 1fr) 110px; }
    .comm-shell { grid-template-columns: 320px minmax(0, 1fr); }
    .comm-filter-row { grid-template-columns: 1fr 1fr; }
    .comm-clear-btn { justify-self: start; }
    .comm-thread-meta { grid-template-columns: 1fr 1fr; }
    .comm-thread-meta div:nth-child(2n) { border-right: none; }
    .comm-thread-meta div:nth-child(-n + 2) { border-bottom: 1px solid #e5e7eb; }
    .project-docs .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .user-shell { grid-template-columns: 1fr; }
    .user-directory-panel {
      border-right: none;
      border-bottom: 1px solid #e7ecf1;
    }
    .user-profile-head { align-items: flex-start; }
  }

  @media (max-width: 700px) {
    .portal-header {
      padding: 12px 16px;
      align-items: flex-start;
      flex-direction: column;
    }
    .portal-header-brand,
    .portal-header-actions {
      width: 100%;
    }
    .portal-header-actions {
      gap: 16px;
      justify-content: space-between;
      margin-left: 0;
    }
    .dashboard-header { flex-direction: column; }
    .dashboard-breadcrumb { text-align: left; white-space: normal; }
    .dashboard-stats { grid-template-columns: 1fr; }
    .quadrant-grid { grid-template-columns: 1fr; }
    .dashboard-main {
      padding: 16px 22px;
      height: auto;
      overflow: visible;
      display: block;
    }
    .quadrant { padding: 16px; }
    .quadrant-head { flex-direction: column; }
    .quadrant-head-main { width: 100%; }
    .quadrant-link.top-link { margin-left: 0; align-self: flex-start; }
    .vendor-status-header,
    .project-review-header { display: none; }
    .vendor-status-row,
    .project-review-row {
      grid-template-columns: 1fr;
      gap: 12px;
    }
    .vendor-status-action { justify-content: flex-start; padding-top: 0; }
    .project-review-value { text-align: left; }
    .comm-shell { grid-template-columns: 1fr; }
    .comm-inbox-panel { border-right: none; border-bottom: 1px solid #e5e7eb; }
    .comm-chat-head { align-items: flex-start; flex-direction: column; }
    .comm-thread-meta { grid-template-columns: 1fr; }
    .comm-thread-meta div { border-right: none; border-bottom: 1px solid #e5e7eb; }
    .comm-thread-meta div:last-child { border-bottom: none; }
    .comm-message-head { align-items: flex-start; flex-direction: column; gap: 4px; }
    .project-docs .grid-4 { grid-template-columns: 1fr; }
    .user-list-head { display: none; }
    .user-filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .user-row {
      grid-template-columns: 40px minmax(0, 1fr);
      gap: 12px;
      min-height: 98px;
      padding: 14px 18px;
    }
    .user-row > span:nth-child(n + 3) { display: none; }
    .user-pagination,
    .user-profile-head,
    .user-profile-title-row,
    .user-profile-contact-row,
    .user-profile-meta-row,
    .user-linked-vendor-card,
    .user-detail-footer {
      align-items: flex-start;
      flex-direction: column;
    }
    .user-profile-head {
      min-height: 0;
      padding: 20px;
    }
    .user-profile-main {
      align-items: flex-start;
      flex-direction: column;
    }
    .user-actions-btn { min-width: 0; }
    .user-detail-tabs {
      min-height: 0;
      padding: 0 20px;
      overflow-x: auto;
    }
    .user-detail-tabs button {
      flex: 0 0 auto;
      white-space: nowrap;
    }
    .user-detail-body { padding: 20px; }
    .user-form-grid,
    .user-summary-grid { grid-template-columns: 1fr; }
    .user-detail-footer {
      min-height: 0;
      padding: 20px;
    }
    .project-docs .docs-config-head,
    .project-docs .docs-subhead-row,
    .project-docs .docs-section-head,
    .project-docs .docs-action-row,
    .project-vendors-head,
    .project-naics-head,
    .project-vendors-search-row,
    .project-naics-search-row,
    .project-history .history-toolbar,
    .project-history .history-event-head {
      align-items: flex-start;
      flex-direction: column;
    }
    .project-history .history-date { width: 100%; }
    .project-history .history-export-btn { margin-left: 0; }
  }
