/* A quiet shelf inside each board, not another top-level application. */
#project-material-dialog [hidden],#project-materials-panel[hidden],#project-board-panel[hidden],#project-materials-new[hidden],#project-materials-archive-label[hidden] {display:none!important}
.project-view-tabs {display:flex;gap:6px;margin:0 0 22px;padding:5px;width:fit-content;max-width:100%;border:1px solid #2b2c3e;border-radius:13px;background:#151622}
.project-view-tabs button {border:0;border-radius:8px;background:none;padding:10px 20px;color:#9ca2b7;font:inherit;font-size:12px;cursor:pointer;min-height:40px}
.project-view-tabs button[aria-selected="true"] {color:#e8e2ff;background:#ac91ef1c;box-shadow:inset 0 0 0 1px #a486e522}
.project-view-tabs button:focus-visible,.project-materials-list button:focus-visible,.project-material-source-results button:focus-visible {outline:2px solid #b9a3f0;outline-offset:3px}
.projects-page[data-project-tab="materials"] #projects-task-new {display:none}
.project-materials-head {display:flex;align-items:center;justify-content:space-between;gap:20px;margin:0 0 20px}
.project-materials-head h4 {margin:0 0 7px;font-size:18px;font-weight:600;letter-spacing:-.3px}
.project-materials-head p {margin:0;color:#8f95aa;font-size:12px;line-height:1.7}
.project-materials-tools {display:flex;align-items:center;gap:20px;flex-wrap:wrap;margin-bottom:16px}
.project-materials-tools .check {margin:12px 0 0}
.project-materials-list {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-items:start}
.project-material {min-width:0;border:1px solid #303044;border-radius:15px;padding:22px;background:linear-gradient(125deg,#b294f607,transparent 70%),#141520}
.project-material.is-pinned {border-color:#a18acb51}
.project-material-meta {display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:10px;color:#9295ac;margin-bottom:14px}
.project-material-meta > span:first-child {color:#b6a2dc}
.project-material-title {display:block;width:100%;border:0;background:none;color:#e6e6ef;text-align:left;font:inherit;font-size:15px;font-weight:600;line-height:1.6;overflow-wrap:anywhere;padding:0;cursor:pointer}
.project-material-body {white-space:pre-wrap;overflow-wrap:anywhere;color:#9da2b7;font-size:12px;line-height:1.8;margin:10px 0 0;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}
.project-material-url {display:inline-flex;gap:6px;align-items:center;max-width:100%;color:#9dd5c2;text-decoration:none;font-size:11px;overflow-wrap:anywhere;margin-top:16px;min-height:28px}
.project-material-url:hover {text-decoration:underline}
.project-material-actions {display:flex;flex-wrap:wrap;gap:8px;margin-top:18px;border-top:1px solid #ffffff09;padding-top:14px}
.project-material-actions button {font:inherit;font-size:10px;min-height:32px;background:#ffffff03;border:1px solid #ffffff10;color:#a6a8be;border-radius:7px;padding:6px 9px;cursor:pointer}
.project-material-actions button[aria-pressed="true"] {color:#d1baf5;background:#a58ad415}
.project-material-empty {grid-column:1/-1;padding:46px 20px;text-align:center;border:1px dashed #353448;border-radius:16px;color:#9298af;font-size:12px;line-height:1.8}
.project-material-empty strong {display:block;color:#d9d7e8;font-size:15px;margin-bottom:7px}
.project-materials-notice {margin:20px 0 0;max-width:780px}
.project-material-dialog {width:min(620px,calc(100% - 24px));max-height:calc(100dvh - 28px)}
.project-material-dialog form {width:100%;min-width:0}
.project-material-dialog fieldset {border:0;padding:0;margin:0;min-width:0}
.project-material-dialog select {width:100%;min-width:0}
.project-material-dialog input {min-width:0;width:100%}
.project-material-source-results {display:grid;gap:7px;max-height:240px;overflow:auto;padding:3px}
.project-material-source-results button {display:flex;align-items:center;justify-content:space-between;gap:15px;padding:11px 13px;min-height:44px;width:100%;text-align:left;border:1px solid #343447;border-radius:9px;background:#191925;color:#c3c1d5;font:inherit;font-size:12px;cursor:pointer;overflow-wrap:anywhere}
.project-material-source-results button[aria-pressed="true"] {background:#ac8fe21a;border-color:#ac8fe267}
.project-material-source-results small {font-size:9px;color:#9994ad;flex-shrink:0}
@media(max-width:720px) {.project-materials-list{grid-template-columns:minmax(0,1fr)}.project-materials-head{align-items:stretch;flex-direction:column;gap:15px}.project-materials-head .actions{display:flex;flex-wrap:wrap}.project-materials-head .button{flex:1}.project-material{padding:18px}.project-materials-tools{gap:8px}.project-view-tabs{width:100%}.project-view-tabs button{flex:1}.project-material-source-results button{align-items:start;flex-direction:column;gap:4px}}
