/* Project index: compact editorial grid, restrained mode colors and separate reading surfaces. */
body.workspace-shell-active:has(.sourcing-project-board-shell) {
    --bridge-canvas: #f7f8fa;
}
body.workspace-shell-active .sourcing-project-board-shell {
    --font-main: Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
    --font-display: Georgia, "Times New Roman", "Songti SC", SimSun, serif;
    --index-ink: #191a19; --index-muted: #686b70; --index-line: #d9dad7;
    width: 100% !important; max-width: 1560px !important;
    margin: 0 auto; padding: 32px 0 48px; gap: 0 !important;
    color: var(--index-ink);
}
body.workspace-shell-active .sourcing-project-board-shell .sourcing-project-board-header {
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
    margin-bottom: 22px;
}
body.workspace-shell-active .sourcing-project-board-header h1 {
    margin: 0; color: var(--index-ink); font-family:var(--font-display) !important; font-size: clamp(34px, 3.2vw, 50px) !important;
    font-weight: 400 !important; line-height: 1.15; letter-spacing: -.045em !important;
}
body.workspace-shell-active .sourcing-project-board-header p {
    margin: 4px 0 0; color: var(--index-muted); font-size: 15px; line-height: 1.5;
}
body.workspace-shell-active .sourcing-project-board-shell .sourcing-project-board-cta {
    flex-shrink: 0; min-height: 46px; padding: 12px 20px !important;
    background: #191a19 !important; border: 1px solid #191a19 !important;
    border-radius: 4px !important; color: #fff !important; box-shadow: none !important;
    font-size: 14px !important; font-weight: 500 !important; gap: 10px;
}
body.workspace-shell-active .sourcing-project-board-shell .sourcing-project-board-cta:hover { background: #343633 !important; }
body.workspace-shell-active .sourcing-project-board-shell .sourcing-project-board-toolbar {
    width: 100%; max-width: none; margin: 0; padding: 0 !important;
    background: transparent !important; border: 0 !important; box-shadow: none !important;
}
body.workspace-shell-active .sourcing-project-board-shell .sourcing-project-board-filters {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px;
    width: 100%; padding: 0; border: 0; background: transparent;
}
body.workspace-shell-active .sourcing-project-board-shell :is(.sourcing-project-board-search,.sourcing-project-board-sort) {
    min-height: 48px; padding: 0 16px !important; border: 1px solid #d9dad7 !important;
    border-radius: 4px !important; background: #fff !important; box-shadow: none !important;
    color: var(--index-muted); font-size: 13px !important; font-weight: 400 !important;
}
body.workspace-shell-active .sourcing-project-board-shell .sourcing-project-board-search input {
    width: 100%; height: 46px; min-height: 0 !important; padding: 0 !important;
    background: transparent !important; border: 0 !important; box-shadow: none !important;
    color: var(--index-ink) !important; font-size: 15px !important; font-weight: 400 !important;
}
body.workspace-shell-active .sourcing-project-board-shell .sourcing-project-board-search input::placeholder { color: #686b70 !important; }
body.workspace-shell-active .sourcing-project-board-shell .sourcing-project-board-search i { color: #686b70; }
body.workspace-shell-active .sourcing-project-board-shell .sourcing-project-board-sort select {
    min-height: 44px !important; min-width: 0; max-width: 280px;
    padding: 0 24px 0 8px !important; background-color: transparent !important;
    border: 0 !important; box-shadow: none !important; color: var(--index-ink) !important;
    font-size: 14px !important; font-weight: 500 !important;
}
body.workspace-shell-active .sourcing-project-board-sort > span { white-space:nowrap; }
body.workspace-shell-active .sourcing-project-board-shell :is(.sourcing-project-board-search,.sourcing-project-board-sort):focus-within { outline: 2px solid #0d8f89; outline-offset: 2px; }
body.workspace-shell-active .sourcing-project-board-count { color: var(--index-muted); font-size: 13px; min-height: 20px; margin: 20px 0 12px; }

/* Five columns by three rows per desktop page; 15 real projects, no placeholders. */
body.workspace-shell-active .sourcing-project-board-shell .sourcing-project-board-list {
    display:grid !important; grid-template-columns:repeat(5,minmax(0,1fr)); gap:20px !important;
    border:0; background:transparent;
}
body.workspace-shell-active .sourcing-project-board-shell .sourcing-project-row-shell { min-width:0; position:relative; }
body.workspace-shell-active .sourcing-project-board-shell .sourcing-project-row {
    position:relative; isolation:isolate; display:grid; grid-template-columns:minmax(0,1fr) !important;
    grid-template-rows:44px 1fr auto; gap:12px !important; align-items:start;
    min-height:190px !important; height:100%; padding:16px 18px !important;
    border:1px solid #e4e7ec !important; border-radius:12px !important;
    background:#fff !important; box-shadow:0 3px 14px rgba(20,30,45,.035) !important; transform:none !important;
    transition:border-color .16s ease !important;
}
body.workspace-shell-active .sourcing-project-board-shell .sourcing-project-row::before,
body.workspace-shell-active .sourcing-project-board-shell .sourcing-project-row::after { display:none !important; }
body.workspace-shell-active .sourcing-project-board-shell .sourcing-project-row:hover { border-color:#8c9188 !important; }
body.workspace-shell-active .sourcing-project-board-shell .sourcing-project-row-main { min-width:0; padding-right:0; grid-column:1/-1; grid-row:2; }
body.workspace-shell-active .sourcing-project-board-shell .sourcing-project-row-title {
    display:block; width:100%; padding:0; margin:0; border:0; background:transparent;
    color:#191a19 !important; text-align:left; font:400 17px/1.3 var(--font-display) !important;
    letter-spacing:-.025em !important; white-space:normal; overflow:visible; overflow-wrap:anywhere;
    -webkit-line-clamp:unset; box-shadow:none; cursor:pointer;
}
/* Native button opens the whole card; utility actions remain separate keyboard targets. */
body.workspace-shell-active .sourcing-project-board-shell .sourcing-project-row-title::after { content:''; position:absolute; inset:0; z-index:1; }
body.workspace-shell-active .sourcing-project-board-shell .sourcing-project-row-title:focus-visible { outline:none; }
body.workspace-shell-active .sourcing-project-board-shell .sourcing-project-row-title:focus-visible::after { outline:2px solid #0d8f89; outline-offset:2px; border-radius:4px; }
body.workspace-shell-active .sourcing-project-board-shell .sourcing-project-row-icon {
    position:static; grid-row:1; display:grid; place-items:center; width:44px !important; height:44px !important; min-width:44px !important;
    border:0 !important; border-radius:10px !important; font-size:23px !important; box-shadow:none !important;
}
body.workspace-shell-active .sourcing-project-board-shell .sourcing-project-row-icon--ai { background:#ecf1ff !important; color:#255bd6 !important; }
body.workspace-shell-active .sourcing-project-board-shell .sourcing-project-row-icon--supplier { background:#e6f7ef !important; color:#07895e !important; }
body.workspace-shell-active .sourcing-project-board-shell :is(.sourcing-project-row-customer,.sourcing-project-row-meta) { margin-top:8px !important; color:#686b70 !important; font-size:12px !important; line-height:1.5 !important; gap:5px !important; overflow-wrap:anywhere; }
body.workspace-shell-active .sourcing-project-board-shell .sourcing-project-row-customer { color:#40654a !important; }
body.workspace-shell-active .sourcing-project-row-people { display:flex; flex-wrap:wrap; gap:5px; margin-top:10px; color:#686b70; font-size:13px; line-height:1.5; }
body.workspace-shell-active .sourcing-project-row-people strong { font-weight:400; font-variant-numeric:tabular-nums; }
body.workspace-shell-active .sourcing-project-card-footer { grid-column:1/-1; grid-row:3; padding-top:6px; border:0; display:flex; align-items:center; gap:8px; }
body.workspace-shell-active .sourcing-project-row-mode { min-width:0; }
body.workspace-shell-active .sourcing-project-mode-label { font-size:11px; line-height:1.4; color:#686b70; }
body.workspace-shell-active .sourcing-project-mode-label::before { content:''; display:inline-block; width:8px; height:8px; margin-right:7px; border-radius:50%; background:#2472ef; }
body.workspace-shell-active .sourcing-project-mode-label--supplier::before { background:#20b583; }
body.workspace-shell-active .sourcing-project-board-shell .sourcing-project-row-shell:has(details[open]) { z-index:5; }
body.workspace-shell-active .sourcing-project-board-shell .sourcing-project-card-menu { position:absolute; top:10px; right:10px; z-index:3; }
body.workspace-shell-active .sourcing-project-board-shell .sourcing-project-card-menu summary { display:grid; place-items:center; width:36px; height:36px; list-style:none; cursor:pointer; border-radius:6px; color:#526583; font-size:24px; line-height:1; }
body.workspace-shell-active .sourcing-project-board-shell .sourcing-project-card-menu summary::-webkit-details-marker { display:none; }
body.workspace-shell-active .sourcing-project-board-shell .sourcing-project-card-menu summary:hover { background:#f0f3f6; }
body.workspace-shell-active .sourcing-project-board-shell .sourcing-project-card-menu:not([open]) > .sourcing-project-row-action { display:none !important; }
body.workspace-shell-active .sourcing-project-board-shell .sourcing-project-row-action { position:absolute; top:38px; right:0; z-index:2; display:grid !important; width:210px; padding:6px; background:#fff; border:1px solid #e1e5ea; border-radius:8px; box-shadow:0 8px 24px rgba(20,30,45,.12); }
body.workspace-shell-active .sourcing-project-board-shell .project-quick-actions--board { display:grid !important; gap:2px !important; }
body.workspace-shell-active .sourcing-project-board-shell .project-quick-actions--board .project-quick-action-btn,
body.workspace-shell-active .sourcing-project-board-shell .sourcing-project-row-delete {
    position:static !important; display:flex !important; justify-content:flex-start; align-items:center; gap:10px;
    width:100% !important; height:auto !important; min-height:36px !important;
    margin:0; padding:8px !important; border:0 !important; border-radius:4px !important;
    background:transparent !important; color:#344456 !important; box-shadow:none !important;
    opacity:1 !important; visibility:visible !important; transform:none !important; cursor:pointer; font-size:12px !important;
}
body.workspace-shell-active .sourcing-project-board-shell .project-quick-action-btn > span:not(.material-symbols-outlined) { font-size:12px; font-weight:400; white-space:normal; text-align:left; }
body.workspace-shell-active .sourcing-project-card-menu summary:focus-visible { outline:2px solid #557660; outline-offset:2px; }
body.workspace-shell-active .sourcing-project-board-shell .project-quick-action-btn:hover { border-color:#a6aba1 !important; background:#eeefed !important; }
body.workspace-shell-active .sourcing-project-board-shell .sourcing-project-row-delete:hover { color:#a52a22 !important; background:#fff0ef !important; }
body.workspace-shell-active .sourcing-project-board-shell :is(button,select):focus-visible { outline:2px solid #0d8f89; outline-offset:2px; }
body.workspace-shell-active .sourcing-project-board-shell :is(.sourcing-project-empty-state,.sourcing-project-board-loader) { grid-column:1/-1; background:#fff !important; border:1px solid #d9dad7 !important; border-radius:7px !important; padding:64px 24px; box-shadow:none !important; color:#686b70; }
body.workspace-shell-active .sourcing-project-board-shell .sourcing-project-empty-state h3 { color:#191a19; font-size:22px !important; font-weight:500 !important; }
body.workspace-shell-active .sourcing-project-board-shell .sourcing-project-pagination { padding:20px 0; }
@media(max-width:1100px) {
    body.workspace-shell-active .sourcing-project-board-shell .sourcing-project-board-list { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media(max-width:850px) {
    body.workspace-shell-active .sourcing-project-board-shell .sourcing-project-board-list { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:720px) {
    body.workspace-shell-active .sourcing-project-board-shell { padding-top:12px; }
    body.workspace-shell-active .sourcing-project-board-shell .sourcing-project-board-header { align-items:flex-start; flex-direction:column; gap:20px; margin-bottom:24px; }
    body.workspace-shell-active .sourcing-project-board-shell .sourcing-project-board-filters { grid-template-columns:minmax(0,1fr); gap:10px; }
    body.workspace-shell-active .sourcing-project-board-shell .sourcing-project-board-sort { justify-content:space-between; white-space:normal; }
    body.workspace-shell-active .sourcing-project-board-shell .sourcing-project-board-sort select { min-width:0; width:100%; max-width:100%; }
    body.workspace-shell-active .sourcing-project-board-shell .sourcing-project-board-list { grid-template-columns:minmax(0,1fr); }
    body.workspace-shell-active .sourcing-project-board-shell .sourcing-project-row { padding:18px !important; }
    body.workspace-shell-active .sourcing-project-board-shell .sourcing-project-row-main { padding-right:10px; }
    body.workspace-shell-active .sourcing-project-card-footer { flex-wrap:wrap; }
    body.workspace-shell-active .sourcing-project-board-shell .sourcing-project-row-action { margin-left:auto; }
    body.workspace-shell-active .sourcing-project-board-shell .sourcing-project-pagination { flex-wrap:wrap; gap:12px; }
}
@media(prefers-reduced-motion:reduce) { body.workspace-shell-active .sourcing-project-board-shell .sourcing-project-row { transition:none !important; } }
