.projects-page{padding:34px 42px 70px;min-height:100%;overflow:auto;background:linear-gradient(180deg,#fbfbfa 0%,#f3f4f1 100%);color:#20211f}.projects-page-header{display:flex;justify-content:space-between;gap:24px;align-items:flex-start;max-width:1180px;margin:0 auto 26px}.projects-eyebrow,.project-detail-header span{font-size:10px;letter-spacing:.14em;color:#8a8e88;font-weight:700}.projects-page h1{font-size:34px;letter-spacing:-.04em;margin:6px 0 5px}.projects-page-header p,.project-detail-header p{margin:0;color:#858982;font-size:13px}.projects-header-actions{display:flex;gap:9px;padding-top:10px}.projects-primary,.projects-secondary{border:0;border-radius:12px;min-height:38px;padding:0 16px;font:600 13px inherit;cursor:pointer}.projects-primary{background:#20231f;color:#fff;box-shadow:0 8px 18px #1e241d1c}.projects-secondary{background:#ffffffb8;color:#41453f;border:1px solid #dfe2dc}.projects-secondary.danger{color:#9a493c}.projects-toolbar{max-width:1180px;margin:0 auto 18px;display:flex;justify-content:space-between;gap:18px;align-items:center}.projects-views{display:flex;gap:5px;padding:4px;background:#e9ece7;border-radius:13px}.projects-views button{border:0;background:transparent;color:#72786f;border-radius:10px;padding:8px 13px;font:600 12px inherit;cursor:pointer}.projects-views button.active{background:#fff;color:#242821;box-shadow:0 2px 8px #2d3a2d16}.projects-search{display:flex;align-items:center;gap:8px;background:#fff9;border:1px solid #e2e5df;border-radius:12px;padding:0 12px;min-width:240px;height:38px}.projects-search input{border:0;outline:0;background:transparent;width:100%;font:13px inherit}.projects-status{max-width:1180px;margin:0 auto 14px;color:#878d84;font-size:12px;min-height:18px}.projects-status[data-kind=error]{color:#ae554b}.projects-grid{max-width:1180px;margin:auto;display:grid;grid-template-columns:repeat(auto-fit,minmax(330px,1fr));gap:12px}.project-card{display:flex;align-items:center;text-align:left;gap:14px;border:1px solid #e0e4dd;border-radius:18px;background:#fff8;box-shadow:0 10px 26px #2d392b0b;padding:14px;cursor:pointer;color:inherit;min-height:104px}.project-card:hover{background:#fff;transform:translateY(-1px)}.project-card-cover{display:grid;place-items:center;width:72px;height:72px;border-radius:13px;background:#e4e7e1;color:#8e958c;font-size:28px;flex:none}.project-card-copy{display:flex;flex-direction:column;gap:6px;min-width:0;flex:1}.project-card-copy strong{font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.project-card-copy small,.project-card-copy>span{font-size:12px;color:#81877f;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.project-card-meta{display:flex;flex-direction:column;align-items:flex-end;gap:16px;color:#858c83;font-size:11px}.project-card-meta em{font-style:normal}.project-card-meta b{font-weight:600;color:#637a63}.projects-empty{text-align:center;grid-column:1/-1;padding:92px 20px;color:#92988f}.projects-empty span{font-size:38px}.projects-empty h2{font-size:20px;color:#4d554c;margin:12px 0 5px}.projects-empty p{font-size:13px;margin:0 0 18px}.project-create-overlay{position:fixed;inset:0;z-index:80;background:#24302428;backdrop-filter:blur(9px);display:grid;place-items:center;padding:24px}.project-create-card,.project-edit-card,.project-files-card{background:#fffffff2;border:1px solid #e1e4df;border-radius:22px;box-shadow:0 22px 70px #1c251b25}.project-create-card{width:min(560px,100%);padding:24px}.project-create-card header,.project-detail-header,.project-files-card>header{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}.project-create-card header button,.project-detail-header>button{border:0;background:transparent;color:#70766e;font-size:20px;cursor:pointer}.project-create-card h2{margin:6px 0 22px;font-size:24px}.project-create-card label,.project-edit-card label{display:flex;flex-direction:column;gap:7px;color:#6e756c;font-size:12px;margin-bottom:14px}.project-create-card input,.project-create-card textarea,.project-edit-card input,.project-edit-card textarea{border:1px solid #dfe4dc;border-radius:10px;padding:10px 11px;background:#fbfcfa;font:13px inherit;color:#2d322c;outline:0}.project-create-card input:focus,.project-create-card textarea:focus,.project-edit-card input:focus,.project-edit-card textarea:focus{border-color:#879b82;box-shadow:0 0 0 3px #9eb19a26}.project-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.project-create-card footer{display:flex;justify-content:flex-end;gap:9px;margin-top:20px}.project-create-card footer>button:first-child{border:0;background:transparent;color:#777d75;padding:0 12px}.project-detail{max-width:1180px;margin:auto}.project-detail-header{align-items:center;margin-bottom:22px}.project-detail-header>div:nth-child(2){flex:1}.project-detail-header h2{margin:5px 0 4px;font-size:26px;letter-spacing:-.03em}.project-detail-header>div:last-child{display:flex;gap:8px}.project-detail-grid{display:grid;grid-template-columns:minmax(280px,.75fr) minmax(420px,1.25fr);gap:16px}.project-edit-card,.project-files-card{padding:20px}.project-edit-card h3,.project-files-card h3{margin:0 0 16px;font-size:15px}.project-source-note{font-size:11px;color:#8a9188;line-height:1.6}.project-files-card>header p{margin:5px 0 0;font-size:11px;color:#8a9180}.project-preview-upload{display:inline-flex;align-items:center;cursor:pointer}.project-preview-strip{display:flex;gap:9px;overflow:auto;margin:15px 0}.project-preview-strip img{width:104px;height:78px;object-fit:cover;border-radius:10px;background:#ecefe9}.project-no-preview,.project-no-files{padding:30px 14px;text-align:center;color:#959b92;background:#f5f7f3;border-radius:12px;font-size:12px;width:100%}.project-file-list{display:flex;flex-direction:column;gap:7px}.project-file-row{display:flex;align-items:center;gap:10px;border:1px solid #e8ebe6;border-radius:12px;padding:10px}.project-file-row.is-unavailable{opacity:.62}.project-file-check{width:22px;height:22px;border-radius:50%;display:grid;place-items:center;background:#eef2ec;color:#6c826c}.project-file-row>div{min-width:0;flex:1}.project-file-row strong,.project-file-row small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.project-file-row small{font-size:10px;color:#929890;margin-top:4px}.project-file-actions{display:flex;align-items:center;gap:5px}.project-file-actions button{border:1px solid #dfe5dc;background:#fff;border-radius:8px;color:#687268;padding:6px 8px;font:11px inherit;white-space:nowrap}.project-file-actions em{font-size:10px;color:#658065;font-style:normal}.projects-page [hidden]{display:none!important}@media(max-width:800px){.projects-page{padding:24px 18px 56px}.projects-page-header,.projects-toolbar,.project-detail-header{display:block}.projects-header-actions{padding-top:18px}.projects-toolbar>*{margin-bottom:10px}.projects-views{overflow:auto}.projects-views button{white-space:nowrap}.projects-search{width:100%}.project-detail-grid{grid-template-columns:1fr}.project-detail-header>div:last-child{margin-top:14px}.project-detail-header>div:last-child button{margin-right:6px}.project-file-row{align-items:flex-start}.project-file-actions{flex-direction:column}.project-card-meta{display:none}}
.projects-page{position:relative;isolation:isolate;min-height:100%;overflow:auto;padding:34px 42px 72px;background:linear-gradient(135deg,#f7f8ff 0%,#f3faf8 48%,#fbf7ff 100%);color:#262938}
.projects-page::before,.projects-page::after{content:"";position:absolute;z-index:-1;border-radius:999px;pointer-events:none;filter:blur(2px)}
.projects-page::before{width:360px;height:360px;top:18px;right:5%;background:radial-gradient(circle,#c9d9ff66 0%,#d9e8ff00 70%)}
.projects-page::after{width:420px;height:420px;left:-150px;bottom:5%;background:radial-gradient(circle,#c8f0df55 0%,#e9ddff00 72%)}
.projects-page-header,.projects-toolbar,.projects-status,.projects-grid,.project-detail{position:relative;z-index:1;max-width:1180px;margin-left:auto;margin-right:auto}
.projects-page-header{display:flex;align-items:center;justify-content:space-between;gap:28px;margin-bottom:18px;padding:25px 28px 24px;border:1px solid #fff;border-radius:28px;background:#ffffffb8;box-shadow:0 18px 50px #6d78a314,0 2px 8px #fff8;backdrop-filter:blur(22px);-webkit-backdrop-filter:blur(22px)}
.projects-eyebrow,.project-detail-header>div:nth-child(2)>span{display:inline-flex;align-items:center;gap:6px;color:#777be0;font-size:10px;font-weight:750;letter-spacing:.16em;text-transform:uppercase}
.projects-eyebrow::before{content:"";width:7px;height:7px;border-radius:50%;background:linear-gradient(135deg,#75d7bf,#8d7be9);box-shadow:0 0 0 4px #8b9aed18}
.projects-page h1{margin:8px 0 7px;color:#26283b;font-size:36px;font-weight:720;letter-spacing:-.055em;line-height:1.05}
.projects-page-header p,.project-detail-header p{margin:0;color:#7c8295;font-size:13px;line-height:1.6}
.projects-header-actions{display:flex;align-items:center;gap:9px;flex:none}
.projects-primary,.projects-secondary{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:0 16px;border:1px solid transparent;border-radius:14px;font:650 13px/1 inherit;letter-spacing:-.01em;cursor:pointer;transition:transform .18s ease,box-shadow .18s ease,background .18s ease,opacity .18s ease}
.projects-primary{color:#fff;background:linear-gradient(135deg,#7b70e8 0%,#659ee6 100%);box-shadow:0 10px 22px #7189e639,0 2px 4px #fff7 inset}
.projects-primary:hover{transform:translateY(-1px);box-shadow:0 14px 28px #7189e64b,0 2px 4px #fff9 inset}
.projects-secondary{color:#596079;background:#ffffffb8;border-color:#fff;box-shadow:0 5px 14px #7782a112,0 1px 2px #fff inset}
.projects-secondary:hover{transform:translateY(-1px);background:#fff;box-shadow:0 9px 20px #7782a21d,0 1px 2px #fff inset}
.projects-secondary.danger{color:#af6371}
.projects-primary:focus-visible,.projects-secondary:focus-visible,.projects-views button:focus-visible,.project-card:focus-visible,.project-file-actions button:focus-visible{outline:3px solid #8f91ed42;outline-offset:3px}
.projects-primary:disabled,.projects-secondary:disabled{cursor:not-allowed;opacity:.52;transform:none;box-shadow:none}
.projects-toolbar{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:12px;padding:8px 10px 8px 14px;border:1px solid #fff;border-radius:20px;background:#ffffff99;box-shadow:0 12px 34px #7d89a30f;backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}
.projects-views{display:flex;gap:3px;max-width:100%;padding:3px;border:1px solid #fff9;border-radius:14px;background:#e6eaf59c;overflow:auto}
.projects-views button{min-height:32px;padding:0 12px;border:0;border-radius:11px;background:transparent;color:#7b8297;font:650 12px/1 inherit;white-space:nowrap;cursor:pointer;transition:color .18s ease,background .18s ease,box-shadow .18s ease}
.projects-views button:hover{color:#535a74}.projects-views button.active{color:#4b4a86;background:#fff;box-shadow:0 4px 12px #7780a21c,0 1px 2px #fff inset}
.projects-search{display:flex;align-items:center;gap:8px;width:min(260px,34%);height:38px;padding:0 13px;border:1px solid #fff;border-radius:13px;background:#ffffffb8;color:#8990a5;box-shadow:0 5px 15px #7e88a012 inset}
.projects-search>span{font-size:18px;line-height:1;transform:translateY(-1px)}.projects-search input{width:100%;border:0;outline:0;background:transparent;color:#34374b;font:500 13px inherit}.projects-search input::placeholder{color:#a0a5b6}
.projects-status{min-height:20px;margin-bottom:8px;padding:0 4px;color:#858ca0;font-size:12px}.projects-status[data-kind=error]{color:#bd6977}
.projects-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(330px,1fr));gap:15px}
.project-card{position:relative;display:flex;align-items:center;min-height:128px;width:100%;padding:16px;text-align:left;gap:15px;border:1px solid #fff;border-radius:23px;background:#ffffffb0;color:inherit;box-shadow:0 17px 38px #7b86a316,0 1px 2px #fff inset;cursor:pointer;overflow:hidden;transition:transform .2s ease,box-shadow .2s ease,background .2s ease}
.project-card::after{content:"";position:absolute;inset:auto -40px -68px auto;width:150px;height:150px;border-radius:50%;background:radial-gradient(circle,#d9ceff55 0%,#d9ceff00 68%);pointer-events:none}.project-card:hover{transform:translateY(-3px);background:#fffffff0;box-shadow:0 22px 42px #7180ae22,0 1px 2px #fff inset}
.project-card-cover{position:relative;display:grid;place-items:center;flex:none;width:84px;height:94px;overflow:hidden;border:1px solid #fff;border-radius:18px;background:linear-gradient(145deg,#d9f2e9 0%,#d7e5ff 48%,#e6dbff 100%);box-shadow:inset 0 1px 1px #fff,0 9px 18px #8291b426}
.project-card-cover::before,.project-card-cover::after{content:"";position:absolute;border-radius:50%;filter:blur(1px)}.project-card-cover::before{width:92px;height:92px;top:-34px;right:-28px;background:#fff8}.project-card-cover::after{width:66px;height:66px;bottom:-28px;left:-18px;background:#b8ebd688}
.project-card-cover i{position:relative;z-index:1;display:grid;place-items:center;width:40px;height:40px;border:1px solid #fff;border-radius:14px;background:#ffffff8c;color:#6269a3;font-size:22px;font-style:normal;box-shadow:0 8px 16px #6975a31c}
.project-card-copy{display:flex;flex:1;min-width:0;flex-direction:column;gap:7px}.project-card-copy strong{overflow:hidden;color:#303247;font-size:16px;font-weight:700;letter-spacing:-.025em;text-overflow:ellipsis;white-space:nowrap}.project-card-copy small,.project-card-copy>span{overflow:hidden;color:#81889d;font-size:12px;line-height:1.35;text-overflow:ellipsis;white-space:nowrap}.project-card-copy>span{color:#9299aa}
.project-card-meta{position:relative;z-index:1;display:flex;flex:none;min-width:68px;align-items:flex-end;flex-direction:column;gap:12px;color:#9299aa;font-size:10px}.project-card-meta em{font-style:normal;white-space:nowrap}.project-card-meta b{padding:6px 8px;border:1px solid #fff;border-radius:999px;background:#e7f5ef;color:#558c7d;font-size:10px;font-weight:700;white-space:nowrap}
.projects-empty{grid-column:1/-1;display:flex;align-items:center;flex-direction:column;min-height:330px;padding:50px 24px 42px;border:1px solid #fff;border-radius:28px;background:#ffffff9e;box-shadow:0 18px 42px #7b86a314,0 1px 2px #fff inset;text-align:center;color:#9299aa;backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px)}
.projects-empty-art{position:relative;display:grid;place-items:center;width:94px;height:94px;margin-bottom:18px;border:1px solid #fff;border-radius:28px;background:linear-gradient(145deg,#ddf5ed,#dbe5ff 50%,#eadfff);box-shadow:0 14px 28px #7a88ad24,0 1px 2px #fff inset}.projects-empty-art::before,.projects-empty-art::after{content:"";position:absolute;border-radius:50%;background:#fff8}.projects-empty-art::before{width:48px;height:48px;top:-12px;right:-10px}.projects-empty-art::after{width:38px;height:38px;bottom:-8px;left:-8px;background:#bcebdc99}.projects-empty-art span{position:relative;z-index:1;font-size:34px;color:#6e75b2}
.projects-empty h2{margin:0 0 7px;color:#4e536b;font-size:21px;letter-spacing:-.03em}.projects-empty p{max-width:360px;margin:0 0 22px;color:#8d94a5;font-size:13px;line-height:1.6}.projects-empty.projects-error{min-height:230px}.projects-empty.projects-error .projects-empty-art{background:linear-gradient(145deg,#ffe8ed,#e9e2ff)}
.project-create-overlay{position:fixed;inset:0;z-index:80;display:grid;place-items:center;padding:24px;background:#66719629;backdrop-filter:blur(13px);-webkit-backdrop-filter:blur(13px)}
.project-create-card,.project-edit-card,.project-files-card{border:1px solid #fff;border-radius:26px;background:#ffffffd9;box-shadow:0 28px 80px #68739d2d,0 1px 2px #fff inset;backdrop-filter:blur(25px);-webkit-backdrop-filter:blur(25px)}.project-create-card{width:min(560px,100%);padding:26px}
.project-create-card header,.project-detail-header,.project-files-card>header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.project-create-card header button,.project-detail-header>button{border:0;background:transparent;color:#7b8297;font-size:22px;line-height:1;cursor:pointer}.project-create-card h2{margin:7px 0 23px;color:#303247;font-size:25px;letter-spacing:-.045em}
.project-create-card label,.project-edit-card label{display:flex;flex-direction:column;gap:7px;margin-bottom:14px;color:#737b91;font-size:12px;font-weight:650}.project-create-card input,.project-create-card textarea,.project-edit-card input,.project-edit-card textarea{border:1px solid #fff;border-radius:13px;padding:11px 12px;background:#f8faffb8;color:#34374b;font:500 13px inherit;outline:0;box-shadow:0 4px 12px #7481a20b inset;transition:border-color .18s ease,box-shadow .18s ease,background .18s ease}.project-create-card input:focus,.project-create-card textarea:focus,.project-edit-card input:focus,.project-edit-card textarea:focus{border-color:#a8abed;background:#fff;box-shadow:0 0 0 4px #9b9cec22,0 4px 12px #7481a20b inset}.project-create-card input::placeholder,.project-create-card textarea::placeholder{color:#a2a8b8}
.project-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.project-create-card footer{display:flex;justify-content:flex-end;gap:9px;margin-top:22px;padding-top:5px}.project-create-card footer>button:first-child{min-height:40px;padding:0 13px;border:0;background:transparent;color:#80879a;font:650 13px inherit;cursor:pointer}
.project-detail{padding-bottom:20px}.project-detail-header{align-items:center;margin-bottom:18px;padding:13px 4px 18px;border-bottom:1px solid #fff8}.project-detail-header>div:nth-child(2){flex:1}.project-detail-header h2{margin:6px 0 4px;color:#303247;font-size:28px;letter-spacing:-.045em}.project-detail-header>div:last-child{display:flex;gap:8px}.project-detail-grid{display:grid;grid-template-columns:minmax(280px,.75fr) minmax(420px,1.25fr);gap:16px}.project-edit-card,.project-files-card{padding:22px}.project-edit-card h3,.project-files-card h3{margin:0 0 16px;color:#3e435b;font-size:15px;letter-spacing:-.02em}.project-source-note{margin:13px 0 0;color:#8f96a8;font-size:11px;line-height:1.7}.project-files-card>header p{margin:5px 0 0;color:#9097a8;font-size:11px}
.project-preview-upload{display:inline-flex;align-items:center;cursor:pointer}.project-preview-strip{display:flex;gap:10px;min-height:78px;margin:16px 0;overflow:auto}.project-preview-strip img{width:116px;height:84px;object-fit:cover;border:1px solid #fff;border-radius:15px;background:#eef1f8;box-shadow:0 8px 18px #7682a21c}.project-no-preview,.project-no-files{width:100%;padding:28px 15px;border:1px dashed #d6dbea;border-radius:16px;background:#f8f9fdad;color:#969caf;font-size:12px;text-align:center}
.project-file-list{display:flex;flex-direction:column;gap:8px}.project-file-row{display:flex;align-items:center;gap:10px;padding:11px;border:1px solid #fff;border-radius:15px;background:#f8faff9e;box-shadow:0 6px 15px #7c87a20b}.project-file-row.is-unavailable{opacity:.62}.project-file-check{display:grid;place-items:center;flex:none;width:24px;height:24px;border-radius:50%;background:#e5f5ef;color:#57917f;font-size:13px}.project-file-row>div{min-width:0;flex:1}.project-file-row strong,.project-file-row small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.project-file-row strong{color:#555b70;font-size:12px}.project-file-row small{margin-top:4px;color:#969cad;font-size:10px}.project-file-actions{display:flex;align-items:center;gap:6px}.project-file-actions button{padding:7px 9px;border:1px solid #fff;border-radius:10px;background:#fff;color:#68708a;font:650 11px inherit;box-shadow:0 4px 10px #7b86a214;cursor:pointer}.project-file-actions button:hover{color:#5552a0;background:#f6f5ff}.project-file-actions em{padding:4px 7px;border-radius:999px;background:#ecebff;color:#6d68bb;font-size:10px;font-style:normal;white-space:nowrap}
.projects-page [hidden]{display:none!important}
@media(max-width:900px){.projects-page{padding:24px 20px 56px}.projects-page-header{align-items:flex-start;flex-direction:column}.projects-header-actions{width:100%}.projects-header-actions>*{flex:1}.projects-toolbar{align-items:stretch;flex-direction:column}.projects-search{width:100%}.project-detail-grid{grid-template-columns:1fr}}
@media(max-width:620px){.projects-page{padding:18px 14px 44px}.projects-page-header{padding:21px 18px}.projects-page h1{font-size:30px}.projects-header-actions{align-items:stretch;flex-direction:column}.projects-views{width:100%}.projects-views button{flex:1;padding:0 10px}.projects-grid{grid-template-columns:1fr}.project-card{min-height:112px;padding:12px}.project-card-cover{width:70px;height:78px}.project-card-meta{display:none}.project-form-grid{grid-template-columns:1fr}.project-detail-header{align-items:flex-start;flex-direction:column}.project-detail-header>div:last-child{width:100%;margin-top:8px}.project-detail-header>div:last-child .projects-secondary{flex:1}.project-file-row{align-items:flex-start;flex-wrap:wrap}.project-file-actions{width:100%;padding-left:34px}.project-file-actions button{flex:1}.project-create-overlay{padding:14px}.project-create-card{padding:21px}}


/* Project IA-24: the project archive is intentionally compact. The creative
   workspace records remain persisted and available to their existing flows,
   but are not appended to this default project detail view. */
.project-detail-stack{display:flex;flex-direction:column;gap:14px;max-width:980px;margin:0 auto 48px}
.project-section{border:1px solid #fff;border-radius:22px;background:#ffffffb8;box-shadow:0 14px 36px #7582a212;backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);padding:22px}
.project-section-header{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:18px}
.project-section-header>div{min-width:0}
.project-section-header span{display:block;color:#777be0;font-size:10px;font-weight:750;letter-spacing:.15em;text-transform:uppercase}
.project-section-header h3{margin:6px 0 5px;color:#303349;font-size:17px;letter-spacing:-.025em}
.project-section-header p{margin:0;color:#858ca0;font-size:12px;line-height:1.6}
.project-basic-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.project-basic-grid label{display:flex;flex-direction:column;gap:7px;color:#6f768a;font-size:11px}
.project-basic-grid label:first-child{grid-column:span 2}
.project-basic-grid input{width:100%;min-height:38px;border:1px solid #e1e5ef;border-radius:11px;background:#fbfcff;color:#303349;padding:9px 11px;outline:0;font:13px inherit}
.project-basic-grid input:focus{border-color:#8b8de9;box-shadow:0 0 0 3px #8b8de921}
.project-sources-section{padding-bottom:16px}
.project-source-list{display:flex;flex-direction:column;gap:8px}
.project-source-row{display:flex;align-items:center;gap:12px;padding:12px 13px;border:1px solid #e7eaf2;border-radius:15px;background:#fbfcff99}
.project-source-icon{display:grid;place-items:center;flex:none;width:31px;height:31px;border-radius:10px;background:#e8f5ef;color:#5e9b84;font-size:16px}
.project-source-copy{display:flex;flex:1;min-width:0;flex-direction:column;gap:3px}
.project-source-copy strong{overflow:hidden;color:#4d5369;font-size:13px;text-overflow:ellipsis;white-space:nowrap}
.project-source-copy span,.project-source-copy small{overflow:hidden;color:#8c93a4;font-size:11px;text-overflow:ellipsis;white-space:nowrap}
.project-source-copy small{color:#737b91}
.project-source-actions{display:flex;align-items:center;gap:6px;flex:none}
.project-source-actions button{min-height:32px;padding:0 10px;font-size:11px}
.project-source-actions button:disabled{cursor:not-allowed;opacity:.45}
.project-section-empty{padding:20px 12px;border:1px dashed #d9deea;border-radius:14px;background:#fafbfe99;color:#9299aa;font-size:12px;line-height:1.6;text-align:center}
.project-files-section{padding-bottom:18px}
.project-recognized-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.project-recognized-file{display:flex;align-items:center;gap:12px;min-width:0;padding:10px;border:1px solid #e5e9f1;border-radius:16px;background:#fbfcffb8}
.project-recognized-thumb{display:grid;place-items:center;flex:none;width:100px;height:76px;overflow:hidden;border-radius:11px;background:#eef1f7;color:#9aa1b1;font-size:11px;text-align:center}
.project-recognized-thumb img{display:block;width:100%;height:100%;object-fit:cover}
.project-no-preview{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;width:100%;height:100%;padding:8px;color:#989faf;font-size:11px}
.project-no-preview small{max-width:94px;overflow:hidden;font-size:9px;text-overflow:ellipsis;white-space:nowrap}
.project-recognized-copy{display:flex;min-width:0;flex:1;flex-direction:column;gap:5px}
.project-recognized-copy strong{overflow:hidden;color:#444a62;font-size:13px;text-overflow:ellipsis;white-space:nowrap}
.project-recognized-copy span,.project-recognized-copy small{overflow:hidden;color:#777f94;font-size:11px;line-height:1.45;text-overflow:ellipsis;white-space:nowrap}
.project-recognized-copy small{color:#9aa1b1}
.project-all-files{margin-top:16px;border-top:1px solid #e8ebf2;padding-top:13px}
.project-all-files summary{color:#656d84;font-size:12px;cursor:pointer;list-style:none}
.project-all-files summary::-webkit-details-marker{display:none}
.project-all-files summary::before{content:"＋";display:inline-block;margin-right:6px;color:#8588db}
.project-all-files[open] summary::before{content:"−"}
.project-all-file-list{display:flex;flex-direction:column;gap:6px;margin-top:11px}
.project-all-file-row{display:grid;grid-template-columns:minmax(130px,.7fr) minmax(180px,1fr) auto;align-items:center;gap:10px;padding:8px 10px;border-radius:10px;background:#f7f8fc}
.project-all-file-row strong,.project-all-file-row span,.project-all-file-row small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.project-all-file-row strong{color:#555c72;font-size:11px}.project-all-file-row span,.project-all-file-row small{color:#9299aa;font-size:10px}
.project-workspace-extra,.project-creative-links,.project-work-summary{display:none!important}
@media(max-width:760px){.project-basic-grid{grid-template-columns:1fr 1fr}.project-basic-grid label:first-child{grid-column:span 2}.project-recognized-grid{grid-template-columns:1fr}.project-source-row{align-items:flex-start;flex-wrap:wrap}.project-source-copy{min-width:calc(100% - 45px)}.project-source-actions{width:100%;padding-left:43px}.project-source-actions button{flex:1}.project-all-file-row{grid-template-columns:1fr}.project-all-file-row span,.project-all-file-row small{white-space:normal}}
@media(max-width:480px){.project-section{padding:17px}.project-section-header{display:block}.project-section-header>.projects-primary{margin-top:12px}.project-basic-grid{grid-template-columns:1fr}.project-basic-grid label:first-child{grid-column:auto}}

/* DB-V04-PROJECT-VISUAL-CLOSURE-33: the detail view is a visual archive,
   while list-only controls stay available on the project home. */
.projects-page.project-detail-active .projects-page-header,.projects-page.project-detail-active .projects-toolbar{display:none}
.projects-page.project-detail-active{padding-top:24px}
.project-detail-header{align-items:center;gap:18px;margin-bottom:22px;padding:5px 0 16px;border-bottom:1px solid #ffffffb8}
.project-back-button{display:inline-flex;align-items:center;gap:5px;flex:none;padding:7px 5px;border:0;background:transparent;color:#69758c;font:650 13px inherit;cursor:pointer}
.project-back-button:hover{color:#5552a0}
.project-back-button:first-letter{font-size:21px}
.project-detail-header h2{margin:0 0 7px;color:#303247;font-size:30px}
.project-detail-meta{display:flex;align-items:center;gap:8px;min-height:24px}
.project-client-tag{display:inline-flex;align-items:center;min-height:24px;padding:0 9px;border:1px solid #d8e7df;border-radius:999px;background:#eff8f3;color:#548376;font:650 11px inherit;cursor:pointer}
.project-client-tag:hover{background:#e4f3ec;border-color:#bcd9cd}
.project-detail-actions{display:flex;align-items:center;gap:8px}
.project-action-menu{position:relative}
.project-action-menu>summary{display:grid;place-items:center;width:36px;height:36px;border:1px solid #fff;border-radius:11px;background:#ffffffaa;color:#69748a;font-size:19px;line-height:1;cursor:pointer;list-style:none;box-shadow:0 5px 14px #7782a112}
.project-action-menu>summary::-webkit-details-marker{display:none}
.project-action-menu-popover{position:absolute;z-index:5;top:43px;right:0;display:flex;min-width:120px;padding:6px;border:1px solid #fff;border-radius:13px;background:#fffffff2;box-shadow:0 14px 30px #7782a22b}
.project-action-menu-popover .projects-secondary{width:100%;border:0;box-shadow:none}
.project-detail-edit-row{align-self:flex-end;margin:0 0 0 auto;border:0;background:transparent;box-shadow:none;padding:0}
.project-detail-edit-row>summary{color:#6672a8;font-size:12px;cursor:pointer;list-style:none}
.project-detail-edit-row>summary::-webkit-details-marker{display:none}
.project-detail-edit-row>summary::after{content:"＋";margin-left:4px}
.project-detail-edit-row[open]>summary::after{content:"−"}
.project-detail-edit-row .project-basic-section{position:relative;right:auto;width:min(780px,calc(100vw - 48px));margin-top:10px;padding:18px;border:1px solid #fff;border-radius:18px;background:#ffffffdd;box-shadow:0 16px 36px #7782a21f}
.project-files-section{padding-top:18px}
.project-files-section>.project-section-header{margin-bottom:14px}
.project-recognized-grid{grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:14px}
.project-recognized-file{display:flex;align-items:stretch;flex-direction:column;gap:0;overflow:hidden;padding:0;border:1px solid #fff;border-radius:18px;background:#ffffffc7;box-shadow:0 12px 28px #7782a216}
.project-recognized-thumb{width:100%;height:210px;border-radius:0;background:#eef1f7}
.project-recognized-thumb img{object-fit:contain;background:#eef1f7}
.project-recognized-copy{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;padding:12px 14px 14px}
.project-recognized-copy strong{color:#3e435b;font-size:14px}
.project-format-badge{display:inline-flex!important;align-items:center;justify-content:center;padding:4px 7px;border-radius:7px;background:#ecebff;color:#6d68bb!important;font-size:10px!important;font-weight:750}
.project-preview-state{position:absolute;left:10px;bottom:10px;padding:4px 7px;border-radius:999px;background:#263241b8;color:#fff;font-size:10px;line-height:1}
.project-preview-state.is-uploaded{background:#497b6cdd}
.project-recognized-thumb{position:relative}
.project-no-preview{gap:8px;background:linear-gradient(145deg,#f6f7fb,#eef4f1);color:#80899a}
.project-no-preview strong{font-size:12px;color:#6d768a}
.project-no-preview .projects-secondary{min-height:30px;padding:0 10px;font-size:11px}
.project-sources-section{padding:14px 18px}
.project-sources-section>summary{display:flex;align-items:center;justify-content:space-between;list-style:none;color:#56637d;font-size:13px;font-weight:700;cursor:pointer}
.project-sources-section>summary::-webkit-details-marker{display:none}
.project-sources-section>summary::before{content:"＋";margin-right:8px;color:#8187d8}.project-sources-section[open]>summary::before{content:"−"}
.project-sources-body{padding-top:14px}
.project-sources-body .project-section-header{margin-bottom:10px}
.project-sources-body .project-section-header>div{display:none}
.project-scan-notice{margin:4px 0 0!important;color:#8d776d!important;font-size:11px!important}
@media(max-width:760px){.project-detail-header{align-items:flex-start}.project-detail-actions{margin-left:auto}.project-recognized-thumb{height:190px}.project-detail-edit-row .project-basic-section{width:calc(100vw - 44px)}}

/* DB-V04-PROJECT-OWNER-CLOSURE-34: visual project dossiers use the same
   cool neutral/lavender language as the main Design Brain surfaces. */
.projects-page{background:linear-gradient(135deg,#f7f8fc 0%,#f8f9fd 54%,#f7f7fb 100%);color:#2f3144}
.projects-page::before{background:radial-gradient(circle,#d9ddff4a 0%,#d9ddff00 70%)}
.projects-page::after{background:radial-gradient(circle,#e5e1ff38 0%,#e5e1ff00 72%)}
.projects-grid{grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:18px}
.project-card{display:grid;grid-template-columns:1fr;align-items:stretch;gap:12px;min-height:286px;padding:12px;border-radius:22px;background:#ffffffc7;box-shadow:0 16px 32px #7782a316,0 1px 2px #fff inset}
.project-card:hover{transform:translateY(-3px);background:#ffffffe8;box-shadow:0 22px 40px #7180ae24,0 1px 2px #fff inset}
.project-card-cover{width:100%;height:182px;border-radius:17px;background:linear-gradient(145deg,#e6e9ff 0%,#edf1fb 48%,#e9e6fa 100%);box-shadow:inset 0 1px 2px #fff,0 8px 18px #8291b414}
.project-card-cover::before{content:"";position:absolute;z-index:2;top:-1px;left:13px;width:78px;height:20px;border:1px solid #fff9;border-bottom:0;border-radius:10px 10px 0 0;background:#d9dcfa;box-shadow:0 -1px 2px #fff inset}
.project-card-cover::after{content:"";position:absolute;z-index:1;inset:11px;border:1px solid #ffffffb8;border-radius:12px;background:linear-gradient(145deg,#ffffff42,#b7b8ef18);pointer-events:none}
.project-card-cover.has-preview::after{background:linear-gradient(180deg,#ffffff12,#312d6b16)}
.project-card-cover i{position:relative;z-index:1;width:80px;height:54px;border:1px solid #fff;border-radius:11px 11px 15px 15px;background:#ffffff80;box-shadow:0 8px 16px #6975a31c}
.project-card-cover i::before{content:"";position:absolute;top:-9px;left:8px;width:31px;height:10px;border:1px solid #fff;border-bottom:0;border-radius:6px 6px 0 0;background:#e3e5ff}
.project-card-cover img{position:relative;z-index:0;width:100%;height:100%;object-fit:cover;border-radius:17px}
.project-card-copy{gap:5px;padding:0 3px 2px}.project-card-copy strong{font-size:16px}.project-card-copy small{font-size:11px;white-space:nowrap}
.project-card-meta{display:none}
.project-detail-header{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:22px}
.project-detail-header>div:nth-child(2){min-width:0}
.project-detail-header h2{font-size:28px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.project-detail-meta{gap:8px;flex-wrap:wrap}
.project-related-projects{padding:17px 20px;border:1px solid #fff;border-radius:18px;background:#ffffffa8;box-shadow:0 10px 24px #7782a212}
.project-related-projects header{display:flex;align-items:baseline;justify-content:space-between;gap:14px;margin-bottom:11px}.project-related-projects header span{color:#7778b2;font-size:10px;font-weight:750;letter-spacing:.14em}.project-related-projects h3{margin:4px 0 0;color:#424760;font-size:15px}.project-related-projects header small{color:#7f879c;font-size:11px}
.project-related-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:8px}
.project-related-card{display:flex;align-items:flex-start;justify-content:space-between;gap:9px;padding:11px 12px;border:1px solid #e4e6f2;border-radius:12px;background:#fbfbff;color:#515871;text-align:left;cursor:pointer}.project-related-card:hover{border-color:#c8c8ed;background:#fff}.project-related-card strong{overflow:hidden;font-size:12px;text-overflow:ellipsis;white-space:nowrap}.project-related-card span{flex:none;color:#8c93a7;font-size:10px}
@media(max-width:760px){.projects-grid{grid-template-columns:repeat(auto-fill,minmax(220px,1fr))}.project-card{min-height:260px}.project-card-cover{height:156px}.project-detail-header{grid-template-columns:auto minmax(0,1fr);gap:12px}.project-detail-actions{grid-column:2;justify-self:end;grid-row:1}.project-detail-header>div:nth-child(2){grid-column:2;grid-row:1}}

/* Explicit, opt-in local preview persistence confirmation. */
.project-preview-batch-action{display:flex;align-items:center;justify-content:space-between;gap:14px;max-width:1180px;margin:0 auto 12px;padding:10px 12px;border:1px solid #e0e5ef;border-radius:12px;background:#fff;color:#667087;font-size:12px}
.project-preview-batch-action button{flex:none;min-height:32px;padding:0 12px;font-size:12px}
@media(max-width:760px){.project-preview-batch-action{align-items:flex-start;flex-direction:column}.project-preview-batch-action button{width:100%}}

/* DB-V04-PROJECT-MASTER-INDEX-38: compact dossier header and work cards. */
.project-detail-header{display:grid;grid-template-columns:minmax(0,45fr) minmax(0,35fr) minmax(120px,20fr);align-items:center;gap:16px;min-height:96px;padding:0 4px;margin-bottom:18px;border-bottom:1px solid #e1e5f0}
.project-detail-title{display:flex;align-items:center;gap:12px;min-width:0}
.project-detail-title .project-back-button{flex:none}
.project-detail-title h2{margin:0;color:#303247;font-size:27px;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.project-detail-meta-panel{min-width:0}
.project-detail-meta{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:0;color:#707890;font-size:12px;line-height:1.4}
.project-detail-meta>span{display:inline-flex;align-items:center;color:#707890;font-size:12px;letter-spacing:0;text-transform:none}
.project-detail-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;min-width:0}
.project-header-edit{min-height:32px;padding:0 11px;font-size:12px}
.project-action-menu{position:relative}.project-action-menu>summary{display:grid;place-items:center;width:34px;height:32px;border:1px solid #e0e3ed;border-radius:10px;color:#737b94;list-style:none;cursor:pointer}.project-action-menu>summary::-webkit-details-marker{display:none}
.project-action-menu-popover{right:0;top:40px;z-index:5;min-width:116px}
.project-recognized-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.project-recognized-file{display:grid;grid-template-columns:minmax(190px,220px) minmax(0,1fr);height:164px;min-height:164px;align-items:stretch;padding:0;overflow:hidden}
.project-recognized-thumb{width:auto;height:100%;min-height:0;padding:8px;border-radius:0;background:#f0f1fa}
.project-recognized-thumb>img{width:100%;height:100%;min-height:0;max-height:none;object-fit:contain;background:#e8eaf6}
.project-recognized-thumb>img.project-session-preview{object-fit:contain}
.project-recognized-copy{display:flex;align-items:center;align-content:center;flex-wrap:wrap;gap:8px;padding:16px 14px;min-width:0}
.project-recognized-copy strong{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.project-no-preview{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:8px;min-height:0;padding:12px;background:#f0f1fa}
@media(max-width:860px){.project-recognized-grid{grid-template-columns:1fr}.project-detail-header{grid-template-columns:minmax(0,1fr) auto;min-height:88px}.project-detail-meta-panel{grid-column:1/-1;grid-row:2;padding:0 0 10px}.project-detail-actions{grid-column:2;grid-row:1}}
@media(max-width:620px){.project-detail-header{grid-template-columns:minmax(0,1fr) auto;min-height:82px}.project-detail-title h2{font-size:23px}.project-recognized-file{grid-template-columns:120px minmax(0,1fr);height:150px;min-height:150px}.project-recognized-copy{padding:12px}.project-recognized-thumb{padding:6px}}

/* DB-PRODUCT-UX-17: project-level review without changing the existing schema. */
.project-work-summary{margin:0 0 18px;padding-top:16px;border-top:1px solid #ffffff8a}
.project-work-summary header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:10px}
.project-work-summary h3{margin:0;color:#3e435b;font-size:15px;letter-spacing:-.02em}
.project-work-summary p{margin:5px 0 0;color:#9097a8;font-size:11px}
.project-work-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:8px}
.project-work-card{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center;padding:11px 12px;border:1px solid #e1e8f0;border-radius:14px;background:#f8faffb8}
.project-work-card.is-conflict{border-color:#ead6cf;background:#fffaf8}
.project-work-card strong,.project-work-card small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.project-work-card strong{color:#46516a;font-size:12px;font-weight:650}.project-work-card small{margin-top:4px;color:#919bad;font-size:10px}
.project-work-card>span{color:#738096;font-size:10px;white-space:nowrap}.project-work-card.is-conflict>span{color:#a66f67}
.project-work-card button{grid-column:1/-1;justify-self:start;min-height:28px;padding:0 9px;font-size:11px}
.project-scan-notice{margin:7px 0 0!important;color:#a26e63!important;font-size:11px!important}

/* DB-PROJECT-04: restrained archive surface; keeps the existing component contract. */
.projects-page{background:#f4f6f4;color:#28302d}
.projects-page::before,.projects-page::after{display:none}
.projects-page-header{align-items:flex-start;margin-bottom:10px;padding:8px 0 12px;border:0;border-radius:0;background:transparent;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none}
.projects-eyebrow,.project-detail-header>div:nth-child(2)>span{color:#778780;letter-spacing:.12em}
.projects-eyebrow::before{width:5px;height:5px;background:#9bc9bb;box-shadow:none}
.projects-page h1{margin:4px 0 4px;color:#27302d;font-size:28px;font-weight:680;letter-spacing:-.045em}
.projects-page-header p,.project-detail-header p{color:#77827d;font-size:12px}
.projects-header-actions{padding-top:2px}
.projects-primary,.projects-secondary{min-height:36px;border-radius:11px;font-weight:620;box-shadow:none;transition:background .18s ease,border-color .18s ease,transform .18s ease}
.projects-primary{color:#fff;background:#3e5b55;border-color:#3e5b55}
.projects-primary:hover{background:#334e49;box-shadow:0 6px 14px #3e5b5520}
.projects-secondary{color:#52635d;background:#fff;border-color:#dfe6e2}
.projects-secondary:hover{background:#f7faf8;border-color:#c8d8d1}
.projects-secondary.projects-cancel-scan{color:#8a6555}
.projects-connection-note{max-width:1180px;margin:0 auto 14px;color:#89958f;font-size:11px;line-height:1.5}
.projects-toolbar{padding:6px 8px 6px 10px;border:1px solid #e1e8e4;border-radius:14px;background:#ffffffcc;box-shadow:0 6px 18px #53665d0b;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}
.projects-views{background:#edf1ee;border:1px solid #e2e9e5;border-radius:11px}
.projects-views button.active{color:#314c45;background:#fff;box-shadow:0 2px 7px #526d6118}
.projects-search{height:36px;border-color:#e1e8e4;background:#fff;box-shadow:none}
.project-card{min-height:112px;padding:14px;border-color:#e2e8e4;border-radius:16px;background:#fff;box-shadow:0 8px 20px #53665d0d}
.project-card::after{display:none}
.project-card:hover{transform:translateY(-1px);background:#fff;box-shadow:0 12px 24px #53665d16}
.project-card-cover{width:78px;height:82px;border-color:#e1e8e4;border-radius:14px;background:#eef2ef;box-shadow:none;color:#71837c}
.project-card-cover::before,.project-card-cover::after{display:none}
.project-card-cover.has-preview{background:#edf1ef}
.project-card-cover img{display:block;width:100%;height:100%;object-fit:cover}
.project-card-cover i{width:auto;height:auto;border:0;background:transparent;box-shadow:none;color:#7a8e86;font-size:23px}
.project-card-copy strong{color:#29332f;font-size:15px}
.project-card-copy small,.project-card-copy>span{color:#788780}
.project-card-meta{color:#89958f}
.project-card-meta b{padding:5px 7px;border:0;background:#edf5f1;color:#597d70;font-weight:620}
.projects-empty{min-height:260px;padding:58px 20px 40px;border-color:#e2e9e5;border-radius:18px;background:#fff;box-shadow:0 8px 22px #53665d0d;backdrop-filter:none;-webkit-backdrop-filter:none}
.projects-empty-art{width:52px;height:52px;margin-bottom:16px;border-color:#dfe8e3;border-radius:15px;background:#f0f4f1;box-shadow:none}
.projects-empty-art::before,.projects-empty-art::after{display:none}
.projects-empty-art span{font-size:22px;color:#6f8c81}
.projects-empty h2{color:#33403b;font-size:18px}
.projects-empty p{margin-bottom:18px;color:#81908a}
.projects-empty .projects-secondary{margin-left:6px}
.project-create-card,.project-edit-card,.project-files-card{border-color:#e1e8e4;border-radius:18px;background:#fffffff7;box-shadow:0 18px 46px #40584d22;backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}
.project-detail-header{border-bottom-color:#e0e8e3}
.project-detail-header h2{color:#29352f;font-size:25px}
.project-preview-strip img{border-color:#e1e8e4;box-shadow:none}

/* DB-PROJECT-04-VISUAL-FIX01: restore the accepted 03 visual weight without changing behavior. */
.projects-page{background:linear-gradient(135deg,#f7f8fc 0%,#f4faf8 52%,#faf8fc 100%);color:#282b3c}
.projects-page::before,.projects-page::after{display:block;opacity:.48}
.projects-page-header{align-items:center;margin-bottom:15px;padding:18px 22px 17px;border:1px solid #ffffffc7;border-radius:22px;background:#ffffffb8;box-shadow:0 14px 34px #7785aa18,0 1px 2px #fff inset;backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}
.projects-eyebrow,.project-detail-header>div:nth-child(2)>span{color:#7778b2}
.projects-eyebrow::before{width:6px;height:6px;background:linear-gradient(135deg,#78d0bd,#9a8fe8);box-shadow:0 0 0 4px #8b9aed16}
.projects-page h1{margin:6px 0 5px;color:#2c2f47;font-size:32px;font-weight:710;letter-spacing:-.055em}
.projects-page-header p,.project-detail-header p{color:#7d8398;font-size:12px}
.projects-header-actions{padding-top:0}
.projects-primary,.projects-secondary{min-height:38px;border-radius:13px}
.projects-primary{color:#fff;background:linear-gradient(135deg,#7c78df 0%,#6fa6dc 100%);border-color:#817ee4;box-shadow:0 8px 18px #7c83d52c,0 1px 2px #fff8 inset}
.projects-primary:hover{background:linear-gradient(135deg,#736fd5 0%,#679bd0 100%);box-shadow:0 11px 22px #7c83d53b,0 1px 2px #fff9 inset}
.projects-secondary{color:#626981;background:#ffffffa8;border-color:#fff;box-shadow:0 4px 12px #7782a112,0 1px 2px #fff inset}
.projects-secondary:hover{background:#fffffff0;border-color:#fff;box-shadow:0 7px 16px #7782a21b,0 1px 2px #fff inset}
.projects-toolbar{margin-bottom:14px;padding:6px 9px 6px 12px;border:1px solid #ffffffc4;border-radius:16px;background:#ffffff9e;box-shadow:0 10px 25px #7d89a314;backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px)}
.projects-views{padding:3px;background:#e9ebf6a8;border-color:#fff9;border-radius:13px}
.projects-views button.active{color:#57539b;background:#fff;box-shadow:0 3px 10px #7780a21b}
.projects-search{height:36px;background:#ffffffb8;border-color:#fff;box-shadow:0 4px 12px #7e88a00d inset}
.project-card{min-height:118px;padding:15px;border-color:#ffffffd0;border-radius:20px;background:#ffffffb3;box-shadow:0 13px 30px #7b86a31a,0 1px 2px #fff inset}
.project-card:hover{transform:translateY(-2px);background:#ffffffe8;box-shadow:0 18px 34px #7180ae25,0 1px 2px #fff inset}
.project-card-cover{width:80px;height:86px;border-color:#fff;background:#eef1f4;box-shadow:inset 0 1px 2px #fff,0 7px 15px #8291b414}
.project-card-cover.has-preview{background:#eef1f4}
.project-card-copy strong{color:#303247;font-size:16px}
.project-card-copy small,.project-card-copy>span{color:#858ba0}
.project-card-meta{color:#9299aa}.project-card-meta b{background:#e8f3f0;color:#5b887c}
.projects-empty{min-height:285px;padding:50px 20px 38px;border-color:#ffffffc7;border-radius:24px;background:#ffffffa8;box-shadow:0 15px 34px #7b86a31b,0 1px 2px #fff inset;backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px)}
.projects-empty-art{width:64px;height:64px;margin-bottom:16px;border-color:#fff;border-radius:20px;background:linear-gradient(145deg,#e1f3ef,#e3e8fb 52%,#eee9fa);box-shadow:0 9px 19px #7a88ad1d,0 1px 2px #fff inset}
.projects-empty-art::before,.projects-empty-art::after{display:none}
.projects-empty-art span{font-size:25px;color:#7472b4}
.projects-empty h2{color:#4c5069;font-size:20px}.projects-empty p{color:#8c93a5}
.projects-empty .projects-secondary{margin-left:6px}

.project-workspace-extra{max-width:1180px;margin:16px auto 40px;padding:20px;border:1px solid #ffffffd0;border-radius:22px;background:#ffffffa8;box-shadow:0 15px 34px #7b86a31b,0 1px 2px #fff inset;backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px)}
.project-workspace-title{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;margin-bottom:16px}.project-workspace-title span:first-child{color:#7778b2;font-size:10px;letter-spacing:.14em}.project-workspace-title h3{margin:4px 0;color:#303247;font-size:20px}.project-workspace-title p{margin:0;color:#858ba0;font-size:12px}.project-save-state{color:#6f8c81;font-size:11px;white-space:nowrap}
.project-workspace-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.project-workspace-card{padding:16px;border:1px solid #fff;border-radius:17px;background:#ffffffb8;box-shadow:0 5px 16px #7782a212}.project-workspace-card:nth-child(2),.project-workspace-card:nth-child(3){min-height:210px}.project-workspace-card>header{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;margin-bottom:12px}.project-workspace-card h4{margin:0;color:#3b4058;font-size:15px}.project-workspace-card header small{display:block;margin-top:4px;color:#9095a7;font-size:11px;line-height:1.45}.project-workspace-card label{display:block;margin:10px 0;color:#646b80;font-size:11px}.project-workspace-card textarea{display:block;width:100%;margin-top:5px;min-height:50px;padding:9px;border:1px solid #e8eaf2;border-radius:10px;background:#ffffffb3;color:#3e4252;resize:vertical;font:inherit;font-size:12px}.project-workspace-card .projects-primary,.project-workspace-card .projects-secondary{min-height:32px;padding:7px 11px;border-radius:10px;font-size:11px}.project-workspace-empty{margin:20px 0;color:#969bad;font-size:12px}.project-direction-list,.project-decision-list,.project-grant-list{display:grid;gap:9px}.project-direction-item,.project-decision-item,.project-grant-item{padding:10px;border:1px solid #edf0f4;border-radius:12px;background:#ffffffaa}.project-direction-item{display:grid;grid-template-columns:1fr auto;gap:7px 10px}.project-direction-item strong,.project-decision-item strong,.project-grant-item strong{color:#41465f;font-size:12px}.project-direction-item p,.project-decision-item p{margin:4px 0;color:#767d90;font-size:11px;line-height:1.45}.project-direction-item small,.project-decision-item small,.project-grant-item small{color:#9a9faf;font-size:10px}.project-direction-item select{padding:5px 7px;border:1px solid #e8eaf2;border-radius:8px;background:#fff;color:#68708a;font-size:11px}.project-direction-item details{grid-column:1/-1;color:#858b9c;font-size:11px}.project-direction-item details p{margin:5px 0}.project-decision-item{display:grid;grid-template-columns:auto 1fr auto;gap:5px 8px;align-items:center}.project-decision-item>span{padding:3px 5px;border-radius:5px;background:#eef0fb;color:#7778b2;font-size:10px}.project-decision-item p,.project-decision-item small{grid-column:1/-1}.project-decision-item button,.project-grant-item button{padding:4px 7px;border:1px solid #eadfe4;border-radius:7px;background:#fff7f8;color:#9b6874;font-size:10px;cursor:pointer}.project-decision-item button:disabled,.project-grant-item button:disabled{opacity:.5;cursor:default}.project-grant-item{display:flex;justify-content:space-between;gap:10px;align-items:center}.project-grant-item span,.project-grant-item small{display:block;margin-top:3px;color:#858b9c;font-size:10px}.project-state-card{grid-column:1/-1}.project-state-card p{margin:0;color:#858b9c;font-size:12px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media (max-width:760px){.project-workspace-grid{grid-template-columns:1fr}.project-state-card{grid-column:auto}.project-workspace-title{display:block}.project-save-state{display:block;margin-top:8px}}

.project-save-state-wrap{display:flex;align-items:center;gap:8px}.project-save-state{display:inline-flex;align-items:center;min-height:28px;padding:0 9px;border-radius:999px;background:#eef7f2;color:#5e8774;font-size:11px;white-space:nowrap}.project-brief-retry{min-height:28px!important;padding:5px 9px!important;font-size:11px!important}
.project-brief-card>label{margin-bottom:12px}.project-brief-more{margin-top:8px;border-top:1px solid #eef0f4;padding-top:10px}.project-brief-more summary{color:#737b91;font-size:11px;cursor:pointer}.project-brief-more label{margin-top:10px}
.project-direction-item header{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;grid-column:1/-1}.project-direction-actions{display:flex;align-items:center;gap:6px}.project-direction-actions select{max-width:92px}.project-direction-meta{grid-column:1/-1;color:#9a9faf;font-size:10px}.project-direction-item.is-selected{border-color:#b9d9ca;background:#f8fcf9}.project-status-chip{display:inline-flex;margin:0 5px 5px 0;padding:3px 7px;border-radius:999px;background:#eef0fb;color:#7778b2;font-size:10px}.project-status-selected{background:#e6f5ed;color:#5d8b70}.project-status-abandoned{background:#f5eeee;color:#a97777}.project-status-to_validate{background:#fff5df;color:#aa8651}.project-direction-item details{grid-column:1/-1}.project-direction-item details summary{cursor:pointer;color:#777e91}.project-direction-item details p{margin:6px 0}.project-inline-form{grid-column:1/-1;margin-top:9px;padding:13px;border:1px solid #e3e7f0;border-radius:14px;background:#fafbfe}.project-inline-form[hidden]{display:none!important}.project-inline-form-title{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:10px;color:#4a5068;font-size:12px}.project-inline-close{border:0;background:transparent;color:#8c92a4;cursor:pointer;font-size:11px}.project-inline-form label{display:block;margin:8px 0;color:#737a8e;font-size:11px}.project-inline-form input,.project-inline-form textarea,.project-inline-form select{box-sizing:border-box;width:100%;margin-top:5px;padding:8px 9px;border:1px solid #e5e8ef;border-radius:9px;background:#fff;color:#3f4559;font:inherit;font-size:12px;outline:0}.project-inline-form input:focus,.project-inline-form textarea:focus,.project-inline-form select:focus{border-color:#9b9be5;box-shadow:0 0 0 3px #8d91e51c}.project-inline-form textarea{resize:vertical}.project-inline-form footer{display:flex;justify-content:flex-end;margin-top:10px}.project-inline-form .projects-primary{min-height:32px;padding:7px 12px;border-radius:10px;font-size:11px}.project-inline-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.project-reference-pick{margin-top:10px;padding-top:9px;border-top:1px solid #e9ebf1}.project-reference-pick>div:first-child{display:flex;justify-content:space-between;gap:10px;align-items:baseline}.project-reference-pick span{color:#697187;font-size:11px}.project-reference-pick small,.project-inline-help{color:#969cad;font-size:10px;line-height:1.5}.project-reference-selects select{min-height:58px}.project-decision-heading{display:flex;align-items:center;gap:8px;min-width:0}.project-decision-heading strong{overflow:hidden;text-overflow:ellipsis}.project-decision-actions{display:flex;gap:5px;justify-content:flex-end}.project-decision-item .project-inline-form{grid-column:1/-1}.project-decision-item .projects-secondary{padding:4px 7px;border-radius:7px;font-size:10px}.project-grant-card .project-inline-form{margin-bottom:10px}.project-method-card{grid-column:1/-1}.project-inline-picker{max-width:1180px;margin:16px auto 0;padding:15px;border:1px solid #fff;border-radius:17px;background:#ffffffc2;box-shadow:0 12px 26px #7b86a31a}.project-inline-picker header{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;margin-bottom:10px}.project-inline-picker header strong,.project-inline-picker header small{display:block}.project-inline-picker header strong{color:#454b63;font-size:13px}.project-inline-picker header small{margin-top:4px;color:#9298a9;font-size:11px}.project-asset-picker-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:8px}.project-asset-choice{display:flex;align-items:center;gap:9px;padding:10px;text-align:left;border:1px solid #e8ebf1;border-radius:11px;background:#ffffffb5;color:#4c5267;cursor:pointer}.project-asset-choice:hover{border-color:#a2a2e2;background:#fff}.project-asset-choice-mark{display:grid;place-items:center;flex:none;width:28px;height:28px;border-radius:8px;background:#eef0fb;color:#7778b2}.project-asset-choice strong,.project-asset-choice small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.project-asset-choice strong{font-size:11px}.project-asset-choice small{margin-top:3px;color:#969cad;font-size:10px}
@media (max-width:760px){.project-inline-grid{grid-template-columns:1fr}.project-save-state-wrap{display:block}.project-save-state-wrap .project-brief-retry{margin-top:7px}.project-direction-item header{display:block}.project-direction-actions{margin-top:9px}.project-asset-picker-grid{grid-template-columns:1fr}}

/* DB-PROJECT-INTELLIGENCE-25: evidence-first candidate previews and route errors. */
.project-preview-candidate{display:flex;flex-direction:column;align-items:center;gap:5px;width:100%;padding:12px 8px;color:#68758a;text-align:center}
.project-preview-candidate strong{color:#5d6f83;font-size:12px;font-weight:650}
.project-preview-candidate small{max-width:100%;overflow:hidden;color:#8c97a8;font-size:10px;line-height:1.45;text-overflow:ellipsis}
.project-save-preview{min-height:28px!important;padding:5px 9px!important;font-size:10px!important}
.project-route-debug{display:block;margin-top:12px;color:#a1a7b6;font-size:10px;word-break:break-all}

/* DB-V04-PROJECT-VISUAL-FIRST-31: the project module is an index of visual work.
   This block is intentionally project-scoped and leaves the canvas shell alone. */
.projects-page-header{align-items:center}
.projects-page-heading{min-width:0}
.projects-page-heading h1{margin:5px 0 3px}
.projects-page-heading p{margin:0;color:#7c8790;font-size:12px}
.projects-header-actions{align-items:center}
.projects-toolbar{margin-top:4px}
.projects-search{min-width:300px}
.project-card{display:grid;grid-template-columns:104px minmax(0,1fr) auto;align-items:stretch;gap:15px;min-height:132px;padding:13px;border-radius:18px}
.project-card-cover{width:104px;height:104px;border-radius:13px;overflow:hidden;background:#eef2ef}
.project-card-cover.has-preview{background:#e9eeeb}
.project-card-cover img{display:block;width:100%;height:100%;object-fit:cover}
.project-card-cover.is-empty i{font-style:normal;font-size:22px;color:#99aaa2}
.project-card-copy{justify-content:center;gap:7px}
.project-card-copy strong{font-size:16px;letter-spacing:-.02em}
.project-card-copy small{display:block;line-height:1.5;white-space:normal}
.project-card-meta{justify-content:flex-start;padding-top:4px}
.project-card-meta b{font-size:10px;font-weight:650;white-space:nowrap}
.projects-empty{padding:58px 20px 46px;min-height:230px}
.projects-empty h2{margin:8px 0 6px}
.projects-empty p{max-width:430px;margin:0 auto 18px;line-height:1.6}
.project-detail-header{align-items:flex-start;padding-bottom:15px;margin-bottom:15px}
.project-detail-header>div:nth-child(2){padding-top:2px}
.project-detail-header h2{margin:3px 0 6px}
.project-detail-meta{color:#66776f!important}
.project-detail-stack{display:flex;flex-direction:column;gap:13px}
.project-detail-edit-row{display:flex;align-items:center;justify-content:flex-end;gap:10px;color:#87938d;font-size:11px}
.project-edit-details{position:relative}
.project-edit-details>summary{display:inline-flex;align-items:center;min-height:31px;padding:0 11px;border:1px solid #dfe8e2;border-radius:10px;background:#fff;color:#5a7168;cursor:pointer;font-size:11px;list-style:none}
.project-edit-details>summary::-webkit-details-marker{display:none}
.project-edit-details>summary::after{content:"＋";margin-left:6px;color:#92a69b}
.project-edit-details[open]>summary::after{content:"−"}
.project-basic-section{position:absolute;right:0;top:38px;z-index:4;width:min(560px,calc(100vw - 48px));padding:16px;border:1px solid #dfe8e2;border-radius:14px;background:#fffffff5;box-shadow:0 18px 42px #53665d22}
.project-basic-section .project-basic-grid{margin-bottom:12px}
.project-basic-section label{font-size:11px}
.project-basic-section input{min-height:34px}
.project-files-section,.project-sources-section{border:1px solid #e1e9e4;border-radius:17px;background:#ffffffc7;box-shadow:0 8px 22px #53665d0b}
.project-files-section{padding:17px}
.project-files-section>.project-section-header{margin-bottom:13px}
.project-files-section>.project-section-header h3{margin:0;color:#34483f;font-size:17px}
.project-files-section>.project-section-header p{margin:4px 0 0;color:#85928b;font-size:11px}
.project-recognized-grid{grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px}
.project-recognized-file{overflow:hidden;border:1px solid #e0e9e3;border-radius:15px;background:#fff;box-shadow:0 8px 18px #53665d0a}
.project-recognized-thumb{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;min-height:166px;padding:9px;background:#f0f4f1}
.project-recognized-thumb>img{display:block;width:100%;height:148px;object-fit:contain;border-radius:9px;background:#e8eeea}
.project-recognized-thumb>img.project-session-preview{object-fit:cover}
.project-preview-state{display:block;color:#708a7d;font-size:10px;line-height:1.3;text-align:center}
.project-preview-state.is-uploaded{position:absolute;left:14px;bottom:13px;padding:4px 6px;border-radius:999px;background:#f1faf4e8;color:#4d856b}
.project-recognized-thumb .project-save-preview{margin-top:1px}
.project-no-preview{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-height:148px;width:100%;padding:12px;background:#f7f9f7;border-radius:9px;color:#8c9a93;font-size:11px;text-align:center}
.project-no-preview strong{font-size:11px;font-weight:650;color:#71857b}
.project-no-preview small{max-width:100%;color:#99a59f;font-size:10px;line-height:1.4}
.project-recognized-copy{display:flex;flex-direction:column;gap:5px;padding:12px 13px 14px}
.project-recognized-copy strong{overflow:hidden;color:#32463d;font-size:13px;text-overflow:ellipsis;white-space:nowrap}
.project-recognized-copy span,.project-recognized-copy small{overflow:hidden;color:#83918a;font-size:10px;line-height:1.4;text-overflow:ellipsis;white-space:nowrap}
.project-recognized-copy span b{color:#678b7a;font-weight:700}
.project-sources-section{padding:0;overflow:hidden}
.project-sources-section>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px 17px;color:#3f594e;cursor:pointer;list-style:none}
.project-sources-section>summary::-webkit-details-marker{display:none}
.project-sources-section>summary::after{content:"＋";margin-left:auto;color:#94a79d}
.project-sources-section[open]>summary::after{content:"−"}
.project-summary-title{font-size:14px;font-weight:680}
.project-summary-count{margin-left:auto;color:#87978f;font-size:11px}
.project-sources-body{padding:0 17px 16px;border-top:1px solid #edf1ee}
.project-sources-body .project-section-header{align-items:center;margin:12px 0 9px}
.project-sources-body .project-section-header p{margin:0;color:#8c9993;font-size:11px}
.project-source-list{gap:7px}
.project-source-row{padding:9px 10px;border-color:#e7eee9;background:#fbfcfb}
.project-source-actions .projects-secondary{min-height:29px;padding:0 9px;font-size:10px}
.project-secondary-records{border:1px solid #e4ebe7;border-radius:15px;background:#ffffff9e;overflow:hidden}
.project-secondary-records>summary{padding:13px 16px;color:#62766d;cursor:pointer;font-size:12px;list-style:none}
.project-secondary-records>summary::-webkit-details-marker{display:none}
.project-secondary-records>summary::after{content:"＋";float:right;color:#94a79d}
.project-secondary-records[open]>summary::after{content:"−"}
.project-secondary-records>summary span{margin-left:7px;color:#9aa6a0;font-size:10px}
.project-secondary-records .project-workspace-extra{display:block!important;margin:0;padding:16px;border:0;border-top:1px solid #e9efeb;border-radius:0;box-shadow:none;background:transparent}
.project-secondary-records .project-workspace-title{margin-bottom:12px}
.project-secondary-records .project-workspace-title h3{font-size:16px}
.project-secondary-records .project-workspace-title p{font-size:11px}
@media(max-width:760px){.projects-page-header{display:block}.projects-header-actions{margin-top:14px;flex-wrap:wrap}.projects-search{min-width:0;width:100%}.project-card{grid-template-columns:78px minmax(0,1fr);min-height:104px}.project-card-cover{width:78px;height:78px}.project-card-meta{display:none}.project-detail-edit-row{align-items:flex-end;flex-direction:column;gap:6px}.project-basic-section{right:-4px;width:calc(100vw - 44px)}}

/* DB-V04-PROJECT-OWNER-CLOSURE-34 FINAL: keep the project module's visual
   dossier treatment after legacy project rules, without changing global UI. */
.projects-page{background:linear-gradient(135deg,#f7f8fc 0%,#f8f9fd 54%,#f7f7fb 100%);color:#2f3144}
.projects-page::before,.projects-page::after{background:radial-gradient(circle,#d9ddff38 0%,#d9ddff00 70%);opacity:.55}
.projects-page-header{align-items:center;margin-bottom:15px;padding:16px 20px;border:1px solid #ffffffc7;border-radius:20px;background:#ffffffb8;box-shadow:0 12px 28px #7785aa18,0 1px 2px #fff inset;backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px)}
.projects-page-heading h1{margin:0;color:#2c2f47;font-size:30px;font-weight:710;letter-spacing:-.05em}
.projects-page-heading p,.projects-eyebrow{display:none}
.projects-primary{color:#fff;background:linear-gradient(135deg,#7c78df 0%,#6fa6dc 100%);border-color:#817ee4;box-shadow:0 8px 18px #7c83d52c,0 1px 2px #fff8 inset}
.projects-secondary{color:#626981;background:#ffffffc7;border-color:#e1e4f0;box-shadow:0 4px 12px #7782a112,0 1px 2px #fff inset}
.projects-grid{grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:18px}
.project-card{display:grid;grid-template-columns:1fr;align-items:stretch;gap:12px;min-height:286px;padding:12px;border:1px solid #ffffffd0;border-radius:22px;background:#ffffffc7;box-shadow:0 16px 32px #7782a316,0 1px 2px #fff inset}
.project-card:hover{transform:translateY(-3px);background:#ffffffe8;box-shadow:0 22px 40px #7180ae24,0 1px 2px #fff inset}
.project-card-cover{position:relative;width:100%;height:182px;border:0;border-radius:17px;overflow:hidden;background:linear-gradient(145deg,#e6e9ff 0%,#edf1fb 48%,#e9e6fa 100%);box-shadow:inset 0 1px 2px #fff,0 8px 18px #8291b414}
.project-card-cover::before{content:"";position:absolute;z-index:2;top:-1px;left:13px;width:78px;height:20px;border:1px solid #fff9;border-bottom:0;border-radius:10px 10px 0 0;background:#d9dcfa;box-shadow:0 -1px 2px #fff inset}
.project-card-cover::after{content:"";position:absolute;z-index:1;inset:11px;border:1px solid #ffffffb8;border-radius:12px;background:linear-gradient(145deg,#ffffff42,#b7b8ef18);pointer-events:none}
.project-card-cover.has-preview::after{background:linear-gradient(180deg,#ffffff12,#312d6b16)}
.project-card-cover i{position:relative;z-index:1;width:80px;height:54px;border:1px solid #fff;border-radius:11px 11px 15px 15px;background:#ffffff80;box-shadow:0 8px 16px #6975a31c}
.project-card-cover i::before{content:"";position:absolute;top:-9px;left:8px;width:31px;height:10px;border:1px solid #fff;border-bottom:0;border-radius:6px 6px 0 0;background:#e3e5ff}
.project-card-cover img{position:relative;z-index:0;width:100%;height:100%;object-fit:cover;border-radius:17px}
.project-card-copy{gap:5px;padding:0 3px 2px}.project-card-copy strong{color:#303247;font-size:16px}.project-card-copy small{color:#858ba0;font-size:11px;white-space:nowrap}
.project-card-meta{display:none}
.project-detail-header{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:22px;padding-bottom:15px;margin-bottom:15px;border-bottom:1px solid #e6e8f1}
.project-detail-header h2{margin:3px 0 6px;color:#303247;font-size:28px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.project-detail-meta{gap:8px;flex-wrap:wrap;color:#66708a!important}
.project-files-section,.project-sources-section,.project-related-projects{border-color:#e1e4f0;background:#ffffffc7;box-shadow:0 8px 22px #7782a212}
.project-files-section>.project-section-header h3{color:#424760}
.project-recognized-grid{grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:14px}
.project-recognized-file{border-color:#e0e3ef;background:#fff;box-shadow:0 10px 22px #7782a212}
.project-recognized-thumb{min-height:190px;background:#f0f1fa}
.project-recognized-thumb>img{height:172px;background:#e8eaf6}
.project-no-preview{min-height:172px;background:#f7f7fc;color:#8c91a8}
.project-no-preview strong{color:#737b97}
.project-recognized-copy strong{color:#3b4058}.project-recognized-copy span{color:#858ba0}
.project-sources-section>summary{color:#515871}.project-summary-count{color:#8c93a7}
.project-related-projects{color:#515871}
@media(max-width:760px){.projects-page-header{display:block}.projects-header-actions{margin-top:14px;flex-wrap:wrap}.projects-search{min-width:0;width:100%}.project-card{min-height:260px}.project-card-cover{height:156px}.project-detail-header{grid-template-columns:auto minmax(0,1fr);gap:12px}.project-detail-actions{grid-column:2;justify-self:end;grid-row:1}.project-detail-header>div:nth-child(2){grid-column:2;grid-row:1}}

/* DB-V04-PROJECT-REAL-CLOSURE-35: compact horizontal work cards on desktop;
   the project folder language stays in the same light neutral material family. */
.project-recognized-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.project-recognized-file{display:grid;grid-template-columns:minmax(150px,.82fr) minmax(0,1fr);min-height:174px}
.project-recognized-thumb{min-height:174px;height:100%;padding:8px;background:#f0f1fa}
.project-recognized-thumb>img{height:100%;min-height:150px;max-height:188px;object-fit:contain;background:#e8eaf6}
.project-recognized-thumb>img.project-session-preview{object-fit:cover}
.project-no-preview{min-height:150px;height:100%;padding:10px;background:#f7f7fc}
.project-recognized-copy{justify-content:center;align-items:flex-start;padding:18px 16px}
.project-recognized-copy strong{font-size:13px;white-space:normal;word-break:break-word}
.project-recognized-copy span{margin-top:3px}
.project-detail-header{grid-template-columns:auto minmax(0,1fr) auto;min-height:58px}
.project-back-button{width:28px;height:32px;padding:0;font-size:24px;line-height:1;color:#777c98}
.project-scan-notice{margin:3px 0 0!important;color:#8a819d!important;font-size:10px!important}
@media(max-width:860px){.project-recognized-grid{grid-template-columns:1fr}}
@media(max-width:620px){.project-recognized-file{grid-template-columns:120px minmax(0,1fr);min-height:150px}.project-recognized-thumb{min-height:150px}.project-recognized-thumb>img{min-height:126px}.project-no-preview{min-height:126px}.project-recognized-copy{padding:14px 12px}}

/* DB-V04-PROJECT-SAFARI-704-FIX-45: the empty project cover uses one quiet,
   solid folder mark; real previews keep their existing priority and layout. */
.project-card-cover.is-empty .project-card-folder-icon{position:relative;z-index:3;display:block;width:58px;height:auto;color:#5b5d67;filter:drop-shadow(0 5px 7px #3436401c)}

/* DB-V04-PROJECT-SCAN-DIAGNOSTIC-46: low-noise, local-only export affordance. */
.project-scan-diagnostic-action{display:flex;align-items:center;justify-content:flex-end;gap:10px;max-width:1180px;margin:-5px auto 12px;color:#858ba0;font-size:11px}
.project-scan-diagnostic-action .projects-secondary{min-height:30px;padding:0 10px;font-size:11px}

/* DB-PROJECT-AB-HANDOFF: visual-only alternatives over the shared project
   renderer. Scheme A is recovered from the DB-PROJECT-04-VISUAL-FIX01 block;
   scheme B is the current lavender glass dossier treatment above. */
.project-visual-controls{display:flex;align-items:center;gap:7px;margin-right:8px;padding:3px;border:1px solid #ffffffb8;border-radius:12px;background:#ffffff80}
.project-visual-label{padding:0 4px;color:#8a90a3;font-size:10px;white-space:nowrap}
.project-visual-switch,.project-layout-switch{display:flex;gap:2px}
.project-visual-controls button{min-height:27px;padding:0 8px;border:0;border-radius:8px;background:transparent;color:#858ba0;font:600 10px inherit;cursor:pointer;white-space:nowrap}
.project-visual-controls button.active{background:#fff;color:#5a579b;box-shadow:0 2px 7px #7780a21b}
.projects-page[data-project-visual="a"]{background:#f4f6f4;color:#28302d}
.projects-page[data-project-visual="a"]::before,.projects-page[data-project-visual="a"]::after{display:none}
.projects-page[data-project-visual="a"] .projects-page-header{align-items:flex-start;margin-bottom:10px;padding:8px 0 12px;border:0;border-radius:0;background:transparent;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none}
.projects-page[data-project-visual="a"] .projects-page h1{color:#27302d;font-size:28px}
.projects-page[data-project-visual="a"] .projects-primary{background:#3e5b55;border-color:#3e5b55;box-shadow:none}
.projects-page[data-project-visual="a"] .projects-secondary{color:#52635d;background:#fff;border-color:#dfe6e2;box-shadow:none}
.projects-page[data-project-visual="a"] .projects-toolbar{padding:6px 8px 6px 10px;border-color:#e1e8e4;border-radius:14px;background:#ffffffcc;box-shadow:0 6px 18px #53665d0b;backdrop-filter:blur(12px)}
.projects-page[data-project-visual="a"] .project-card{display:flex;min-height:112px;padding:14px;border-color:#e2e8e4;border-radius:16px;background:#fff;box-shadow:0 8px 20px #53665d0d}
.projects-page[data-project-visual="a"] .project-card-cover{width:78px;height:82px;border-color:#e1e8e4;border-radius:14px;background:#eef2ef;box-shadow:none}
.projects-page[data-project-visual="a"] .project-card-cover::before,.projects-page[data-project-visual="a"] .project-card-cover::after{display:none}
.projects-page[data-project-visual="a"] .project-card-copy strong{color:#29332f;font-size:15px}
.projects-page[data-project-visual="a"] .project-card-copy small{color:#788780}
.projects-page[data-project-visual="a"] .project-card-meta{display:flex;color:#89958f}
.projects-page[data-project-visual="a"] .project-visual-controls{background:#fff;border-color:#e1e8e4}
.projects-page[data-project-visual="a"] .project-visual-controls button.active{color:#314c45}

/* The list mode is an information-scanning view, not a large-card variant. */
.projects-page[data-project-layout="list"] .projects-grid{display:flex;flex-direction:column;gap:6px}
.project-list-row{display:grid;grid-template-columns:56px minmax(190px,1.5fr) minmax(92px,.75fr) minmax(92px,.75fr) minmax(100px,.8fr) minmax(105px,.8fr);align-items:center;gap:14px;width:100%;min-height:62px;padding:7px 12px;border:1px solid #e6e8f1;border-radius:12px;background:#ffffffc7;color:#3b4058;text-align:left;box-shadow:0 4px 12px #7782a20b;cursor:pointer}
.project-list-row:hover{background:#fff;box-shadow:0 8px 18px #7782a218}
.project-list-thumb{display:grid;place-items:center;width:48px;height:46px;overflow:hidden;border-radius:8px;background:#eef1f8}
.project-list-thumb img{display:block;width:100%;height:100%;object-fit:cover}
.project-list-empty-cover{display:block;width:26px;height:19px;border-radius:3px 4px 4px 4px;background:#5b5d67;clip-path:polygon(0 20%,38% 20%,48% 0,100% 0,100% 100%,0 100%)}
.project-list-name{display:flex;min-width:0;flex-direction:column;gap:3px}
.project-list-name strong,.project-list-name small,.project-list-field{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.project-list-name strong{font-size:13px;font-weight:680}.project-list-name small,.project-list-field{color:#858ba0;font-size:11px}
.project-list-source{color:#6e7d9a}
.projects-page[data-project-layout="compact"] .projects-grid{grid-template-columns:repeat(auto-fill,minmax(290px,1fr));gap:10px}
.projects-page[data-project-layout="compact"] .project-card{min-height:112px;grid-template-columns:78px minmax(0,1fr) auto;padding:10px;border-radius:16px}
.projects-page[data-project-layout="compact"] .project-card-cover{width:78px;height:82px;border-radius:13px}
@media(max-width:900px){.project-visual-controls{width:100%;margin:0;justify-content:space-between}.project-list-row{grid-template-columns:50px minmax(0,1fr) minmax(74px,.6fr) minmax(74px,.6fr)}.project-list-row .project-list-field:nth-last-child(-n+2){display:none}}
@media(max-width:620px){.project-visual-controls{align-items:stretch;flex-wrap:wrap}.project-visual-label{width:100%;padding:3px 4px}.project-list-row{grid-template-columns:48px minmax(0,1fr) minmax(72px,.6fr);gap:9px}.project-list-row .project-list-field:nth-last-child(-n+3){display:none}}

/* The Figma adapter adds a hidden cover slot to the shared detail markup;
   legacy visual themes keep the previous three-column header unchanged. */
.project-detail-cover{display:none}

/* DB-V04-FIGMA-DUAL-HANDOFF-47: Figma Make project archive reference mode.
   This is an isolated visual adapter over the real project renderer. It does
   not import mock data, alter API calls, or replace the default B theme. */
.projects-page[data-project-visual="figma"]{
  background:#f6f6f8;
  color:#17151c;
}
.projects-page[data-project-visual="figma"]::before,
.projects-page[data-project-visual="figma"]::after{display:none}
.projects-page[data-project-visual="figma"] .projects-page-header{
  align-items:flex-end;
  margin-bottom:28px;
  padding:0 0 4px;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
  backdrop-filter:none;
  -webkit-backdrop-filter:none;
}
.projects-page[data-project-visual="figma"] .projects-page-heading h1{
  margin:0;
  color:#17151c;
  font-size:34px;
  font-weight:650;
  letter-spacing:-.04em;
  line-height:1.1;
}
.projects-page[data-project-visual="figma"] .projects-page-heading::after{
  content:"项目档案";
  display:block;
  margin-top:8px;
  color:#7c7884;
  font-size:12px;
}
.projects-page[data-project-visual="figma"] .projects-primary{
  min-height:38px;
  border-color:#26222d;
  border-radius:9px;
  background:#26222d;
  color:#fff;
  box-shadow:0 5px 16px rgba(28,23,40,.15);
}
.projects-page[data-project-visual="figma"] .projects-secondary{
  min-height:38px;
  border-color:#dfdde5;
  border-radius:9px;
  background:#fff;
  color:#4f4a57;
  box-shadow:none;
}
.projects-page[data-project-visual="figma"] .projects-toolbar{
  margin-bottom:0;
  padding:10px;
  border:1px solid rgba(255,255,255,.9);
  border-radius:14px;
  background:rgba(255,255,255,.72);
  box-shadow:0 8px 28px rgba(51,56,71,.06),inset 0 0 0 1px rgba(219,222,229,.7);
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
}
.projects-page[data-project-visual="figma"] .projects-search{
  min-width:260px;
  height:38px;
  border:0;
  border-radius:9px;
  background:#f7f7f9;
  box-shadow:none;
}
.projects-page[data-project-visual="figma"] .projects-views{
  gap:2px;
  padding:3px;
  border:0;
  border-radius:8px;
  background:#f3f2f5;
}
.projects-page[data-project-visual="figma"] .projects-views button{
  min-height:30px;
  border-radius:6px;
  color:#8d8995;
}
.projects-page[data-project-visual="figma"] .projects-views button.active{
  background:#fff;
  color:#4e426f;
  box-shadow:0 1px 5px #ddd9e5;
}
.projects-page[data-project-visual="figma"] .projects-grid{
  grid-template-columns:repeat(auto-fill,minmax(220px,1fr));
  gap:20px 16px;
}
.projects-page[data-project-visual="figma"] .project-card{
  display:block;
  min-height:0;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
}
.projects-page[data-project-visual="figma"] .project-card:hover{
  transform:none;
  background:transparent;
  box-shadow:none;
}
.projects-page[data-project-visual="figma"] .project-card-cover{
  position:relative;
  width:100%;
  height:auto;
  aspect-ratio:1.28;
  border:1px solid #e4e6e9;
  border-radius:16px;
  background:#eef0f3;
  box-shadow:none;
}
.projects-page[data-project-visual="figma"] .project-card-cover::before,
.projects-page[data-project-visual="figma"] .project-card-cover::after{display:none}
.projects-page[data-project-visual="figma"] .project-card-cover img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius:16px;
}
.projects-page[data-project-visual="figma"] .project-card-cover.is-empty .project-card-folder-icon{
  width:72px;
  color:#d9dce1;
  filter:none;
}
.projects-page[data-project-visual="figma"] .project-card-copy{
  display:grid;
  gap:5px;
  padding:9px 3px 0;
}
.projects-page[data-project-visual="figma"] .project-card-copy strong{
  color:#34313a;
  font-size:13px;
  font-weight:650;
}
.projects-page[data-project-visual="figma"] .project-card-copy small{
  color:#85818b;
  font-size:10px;
  line-height:1.35;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.projects-page[data-project-visual="figma"] .project-card-meta{display:none}
.projects-page[data-project-visual="figma"] .project-list-row{
  min-height:62px;
  padding:7px 12px;
  border:1px solid #e6e4e9;
  border-radius:13px;
  background:#fff;
  color:#3b3642;
  box-shadow:none;
}
.projects-page[data-project-visual="figma"] .project-list-row:hover{background:#f8f7fb;box-shadow:none}
.projects-page[data-project-visual="figma"] .project-list-thumb{background:#eef0f3}
.projects-page[data-project-visual="figma"] .project-list-name strong{font-size:12px}
.projects-page[data-project-visual="figma"] .project-list-name small,
.projects-page[data-project-visual="figma"] .project-list-field{color:#716d77;font-size:11px}
.projects-page[data-project-visual="figma"] .project-detail-cover{display:none}
.projects-page[data-project-visual="figma"] .project-detail-header{
  grid-template-columns:220px minmax(0,1fr) minmax(170px,auto) auto;
  align-items:end;
  gap:24px;
  padding-bottom:28px;
  border-bottom:1px solid #e4e2e7;
}
.projects-page[data-project-visual="figma"] .project-detail-cover{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  aspect-ratio:1.45;
  overflow:hidden;
  border:1px solid #e4e6e9;
  border-radius:16px;
  background:#eef0f3;
}
.projects-page[data-project-visual="figma"] .project-detail-cover img{display:block;width:100%;height:100%;object-fit:cover}
.projects-page[data-project-visual="figma"] .project-detail-folder-icon{width:82px;color:#d9dce1}
.projects-page[data-project-visual="figma"] .project-detail-title h2{color:#34313a;font-size:34px;letter-spacing:-.04em}
.projects-page[data-project-visual="figma"] .project-detail-meta{color:#706b77!important}
.projects-page[data-project-visual="figma"] .project-files-section,
.projects-page[data-project-visual="figma"] .project-sources-section,
.projects-page[data-project-visual="figma"] .project-related-projects{
  border-color:#e3e1e7;
  border-radius:15px;
  background:#fff;
  box-shadow:none;
}
.projects-page[data-project-visual="figma"] .project-recognized-file{border-color:#e6e4e9;background:#fff;box-shadow:none}
.projects-page[data-project-visual="figma"] .project-recognized-thumb{background:#d8dbe0}
.projects-page[data-project-visual="figma"] .project-recognized-copy strong{color:#34313a}
.projects-page[data-project-visual="figma"] .project-no-preview{background:#f1f2f4;color:#8e8994}
.projects-page[data-project-visual="figma"] .project-sources-section>summary{color:#4c4652}
@media(max-width:900px){
  .projects-page[data-project-visual="figma"] .project-detail-header{grid-template-columns:160px minmax(0,1fr) auto;gap:18px}
  .projects-page[data-project-visual="figma"] .project-detail-meta-panel{grid-column:2}
}
@media(max-width:620px){
  .projects-page[data-project-visual="figma"] .projects-page-header{display:block}
  .projects-page[data-project-visual="figma"] .projects-header-actions{margin-top:18px;flex-wrap:wrap}
  .projects-page[data-project-visual="figma"] .projects-search{min-width:0;width:100%}
  .projects-page[data-project-visual="figma"] .project-detail-header{grid-template-columns:1fr;gap:12px}
  .projects-page[data-project-visual="figma"] .project-detail-cover{display:none}
  .projects-page[data-project-visual="figma"] .project-detail-meta-panel{grid-column:auto}
}

/* Launch-05 P1: keep list cards aligned with the accepted folder-card geometry. */
.projects-grid .project-card { height: 286px; min-height: 286px; box-sizing: border-box; }
.projects-grid .project-card-copy strong { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-height: 1.35; }
.projects-grid .project-card-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
