.crm-project-extras{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:20px;border-top:1px solid #e1e7ef;padding-top:16px}.crm-project-extras label{display:flex;flex-direction:column;gap:8px;min-width:0;font-weight:600}.crm-project-extras textarea{width:100%;box-sizing:border-box;min-height:130px;resize:vertical;line-height:1.6;white-space:pre-wrap}.crm-project-extras .crm-extra-actions{grid-column:1/-1;display:flex;justify-content:flex-end}.crm-project-extra-settings{margin-top:14px}.crm-project-extra-settings summary{cursor:pointer;font-weight:600}.crm-project-extra-settings label{display:inline-flex;gap:7px;margin:10px 20px 0 0;align-items:center}.crm-project-extra-settings input{width:auto}.crm-project-photos{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:14px}.crm-project-photo{margin:0;min-width:0;border:1px solid #e1e7ef;border-radius:12px;overflow:hidden;background:#f8faff}.crm-project-photo button[data-photo-open]{display:block;border:0;padding:0;width:100%;cursor:zoom-in;background:transparent}.crm-project-photo img{display:block;width:100%;height:150px;object-fit:cover}.crm-project-photo figcaption{padding:10px;font-size:12px;overflow-wrap:anywhere}.crm-project-photo .btn{margin:0 10px 10px}.crm-photo-dialog{width:min(1000px,calc(100vw - 28px));max-width:none;max-height:92dvh;box-sizing:border-box;padding:22px;border:1px solid #d8e2ef;border-radius:16px;color:#20334d}.crm-photo-dialog::backdrop{background:#14243b99}.crm-photo-dialog header,.crm-photo-dialog footer{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 18px}.crm-photo-dialog footer{justify-content:flex-end;margin:20px 0 0}.crm-photo-dialog h2{font-size:20px;margin:0}.crm-photo-dialog img{display:block;max-width:100%;max-height:65dvh;object-fit:contain;margin:auto}.crm-photo-dialog input[type=file]{display:block;width:100%;box-sizing:border-box;margin:18px 0}.crm-photo-error{color:#a52222;white-space:pre-wrap}.crm-external-responsible{display:flex;flex-direction:column;gap:8px}.crm-external-responsible label{display:flex;flex-direction:column;gap:5px}.crm-external-fields{display:grid;gap:10px;padding:12px;border:1px solid #d9e3ef;border-radius:10px;background:#f7faff}.crm-external-fields[hidden],.crm-project-extras [hidden]{display:none!important}.crm-external-fields small{color:#64748b;line-height:1.5}.crm-project-extras [role=alert]{grid-column:1/-1;color:#a52222}.crm-photo-empty{padding:30px 16px;border:1px dashed #cbd7e7;text-align:center;border-radius:12px;color:#61738a}
.crm-project-extras,.crm-external-responsible,[data-project-gallery],.crm-project-extra-settings{font-family:var(--crm-ui-font,system-ui,sans-serif)}.crm-project-extras textarea{font:inherit;font-weight:400;color:inherit}.crm-project-extras:has(>label[hidden]){grid-template-columns:1fr}.crm-project-extras[hidden]{display:none!important}[data-project-gallery] h2{font-family:inherit;font-size:17px;font-weight:700}
@media(max-width:650px){.crm-project-extras{grid-template-columns:1fr}.crm-project-photos{grid-template-columns:repeat(2,minmax(0,1fr))}.crm-project-photo img{height:125px}.crm-photo-dialog{padding:16px}.crm-photo-dialog header{align-items:flex-start}.crm-project-extra-settings label{display:flex}}

#projectForm.crm-project-editor{display:grid;grid-template-columns:minmax(240px,300px) minmax(0,1fr);gap:24px;align-items:start}.crm-project-editor-fields{min-width:0}.crm-project-cover-editor{display:flex;flex-direction:column;gap:12px;min-width:0;padding:16px;background:#f7f9fd;border:1px solid #dce4f1;border-radius:12px}.crm-project-cover-editor h4{margin:0;font-size:15px}.crm-project-cover-editor label{display:flex;flex-direction:column;gap:6px}.crm-project-cover-editor small{color:#64748b;line-height:1.5}.crm-project-cover-editor input{max-width:100%;min-width:0}.crm-project-cover-frame{height:240px;border:1px solid #dce4f1;border-radius:10px;overflow:hidden;display:flex;align-items:center;justify-content:center;background:#eef2f8;position:relative}.crm-cover-open{border:0;background:none;padding:0;width:100%;height:100%;cursor:zoom-in;display:flex;align-items:center;justify-content:center}.crm-cover-open img{display:block;width:100%;height:100%;object-fit:contain}.crm-cover-empty{position:absolute;font-size:13px;color:#64748b;pointer-events:none}.crm-cover-empty[hidden]{display:none}.crm-project-cover-thumb{display:flex;height:64px;width:96px;position:relative;background:#eef2f8;border-radius:7px;overflow:hidden;align-items:center;justify-content:center}.crm-project-detail #overview{display:grid;grid-template-columns:260px minmax(0,1fr);gap:20px;align-items:start}.crm-project-detail #overview>.crm-project-detail-cover{grid-column:1;grid-row:1 / span 3;height:210px}.crm-project-detail #overview>:not(.crm-project-detail-cover){grid-column:2;min-width:0}.crm-project-editor-fields .full{grid-column:1/-1}@media(max-width:1100px){.crm-project-editor-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:700px){#projectForm.crm-project-editor{grid-template-columns:minmax(0,1fr)}.crm-project-editor-fields{grid-template-columns:minmax(0,1fr)}.crm-project-cover-frame{height:220px}.crm-project-detail #overview{display:block}.crm-project-detail-cover{margin-bottom:16px}}

#crmRecordSurface #projectForm.crm-project-editor{grid-template-columns:minmax(240px,300px) minmax(0,1fr)!important;gap:24px!important}#projectForm .crm-project-editor-fields{width:100%;grid-template-columns:repeat(2,minmax(0,1fr))}#projectForm .crm-project-cover-editor input:not([type=file]):not([type=hidden]){width:100%;padding:10px 12px;border:1px solid #d4deeb;border-radius:8px;background:white;color:#1d304c;font-size:14px}#projectForm .crm-project-cover-editor label{font-size:13px;color:#4c5d76;line-height:1.5}#projectForm .crm-project-cover-editor input[type=file]{width:100%;font-size:12px}@media(min-width:1700px){#projectForm .crm-project-editor-fields{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:700px){#crmRecordSurface #projectForm.crm-project-editor{grid-template-columns:minmax(0,1fr)!important}#projectForm .crm-project-editor-fields{grid-template-columns:minmax(0,1fr)}}

.crm-photo-dialog form label{display:flex;flex-direction:column;gap:8px;margin:12px 0}.crm-photo-dialog form input:not([type=file]){padding:10px 12px;border:1px solid #d4deeb;border-radius:8px;width:100%}.crm-project-photo>[data-photo-delete]{width:auto;height:auto;min-height:36px;cursor:pointer;margin-top:8px}.crm-project-photo figcaption{overflow-wrap:anywhere}

/* Project directory results stay in normal document flow inside the editor. */
#projectForm .crm-project-links-editor{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;min-width:0;max-width:100%}
#projectForm .crm-project-links-editor>[data-planning-multi=projectCompanyLinks],#projectForm .crm-project-links-editor>[data-planning-multi=projectContactLinks]{grid-column:1/-1}
#projectForm .crm-project-links-editor>.crm-planning-picker{grid-column:auto;min-width:0;max-width:100%;box-sizing:border-box;overflow:hidden}
#projectForm .crm-project-links-editor input[type=search]{width:100%;min-width:0;max-width:100%;box-sizing:border-box}
#projectForm .crm-project-links-editor .crm-planning-options{position:static;max-width:100%;max-height:180px;overflow:auto}
#projectForm .crm-project-links-editor .crm-planning-options span{min-width:0;overflow-wrap:anywhere;white-space:normal}
#projectForm .crm-project-links-editor .crm-planning-chip{box-sizing:border-box;min-width:0}
#projectForm .crm-project-links-editor .crm-planning-chip>span{min-width:0;white-space:normal}
#projectForm .crm-project-links-editor .crm-planning-chip>button{flex:none}
#projectForm .crm-project-links-editor>fieldset>button{max-width:100%;white-space:normal;margin-top:8px}
#projectForm .crm-project-links-editor select[hidden],#projectForm label[hidden]{display:none!important}
@media(max-width:1100px){#projectForm .crm-project-links-editor{grid-template-columns:minmax(0,1fr)}}

#projectForm .crm-project-links-editor>fieldset[data-planning-multi=projectCompanyLinks],#projectForm .crm-project-links-editor>fieldset[data-planning-multi=projectContactLinks]{grid-column:1/-1}

@media screen {
 html body:not(.crm-printing) #projectForm .crm-project-editor-fields>label:has(>#projectBrandChoices),html body:not(.crm-printing) #projectForm .crm-project-editor-fields>label:has(>#projectProtectionChoices){grid-column:auto!important;min-width:0}
 #projectForm :is(#projectBrandChoices,#projectProtectionChoices){margin-top:4px!important;min-width:0;max-width:100%}
 #projectForm .crm-project-brand-dropdown{min-width:0;border:1px solid #d4deeb;border-radius:8px;background:#fff;font-weight:400}
 #projectForm .crm-project-brand-dropdown>summary{display:flex;align-items:center;justify-content:space-between;gap:8px;cursor:pointer;padding:8px 10px;min-height:34px;box-sizing:border-box;list-style:none;font-size:13px;color:#263e5c}
 #projectForm .crm-project-brand-dropdown>summary:after{content:'▾';margin-left:auto}
 #projectForm .crm-project-brand-dropdown[open]>summary:after{content:'▴'}
 #projectForm .crm-project-brand-dropdown>summary::-webkit-details-marker{display:none}
 #projectForm .crm-project-brand-panel{padding:0 8px 8px;min-width:0;max-width:100%;box-sizing:border-box}
 #projectForm .crm-project-brand-options{max-height:210px;overflow:auto;display:grid;gap:4px;margin:6px 0}
 html body:not(.crm-printing) #projectForm .crm-project-brand-option{display:flex!important;align-items:center;gap:8px;margin:0;padding:5px 3px;min-width:0;font-size:13px!important;font-weight:400;color:#263e5c}
 html body:not(.crm-printing) #projectForm .crm-project-brand-option input[type=checkbox]{appearance:auto;width:18px!important;height:18px!important;min-width:18px;min-height:18px;flex:none;margin:0;padding:0;accent-color:#2853a5}
 #projectForm .crm-project-brand-option>span{min-width:0;white-space:normal;overflow-wrap:break-word;word-break:normal}
 #projectForm .crm-project-brand-option[hidden],#projectForm [data-brand-empty][hidden]{display:none!important}
 #projectForm :is(#projectBrandChoices,#projectProtectionChoices)>[data-selection-summary]{gap:4px;margin-bottom:5px;max-height:72px;overflow:auto}
 #projectForm :is(#projectBrandChoices,#projectProtectionChoices)>[data-selection-summary][hidden]{display:none}
 #projectForm .crm-project-brand-panel>.btn{margin-top:3px}
}

@media screen{html body:not(.crm-printing) #projectForm .crm-project-brand-field{grid-column:auto!important;min-width:0;max-width:100%}html body:not(.crm-printing) #projectForm .crm-project-brand-field>.crm-field-caption{font-size:14px;font-weight:700;color:#233b58;line-height:1.35;display:block}#projectForm .crm-project-brand-field>small{display:block;font-size:11px;color:#60718a;line-height:1.35;margin-top:4px}}
