#companyProfileButton{margin-top:auto;display:flex;align-items:center;gap:11px}#companyProfileButton svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.company-profile-overlay{position:fixed;z-index:12000;inset:0;display:grid;place-items:center;padding:22px;background:rgba(17,25,22,.74);backdrop-filter:blur(8px)}.company-profile-panel{width:min(1120px,96vw);height:min(920px,95vh);display:flex;flex-direction:column;overflow:hidden;border:1px solid #d9ccb1;border-radius:20px;background:#f6f3ec;box-shadow:0 32px 90px rgba(0,0,0,.34)}.company-profile-panel>header{display:flex;justify-content:space-between;gap:28px;align-items:flex-start;padding:26px 30px;background:#fff;border-bottom:1px solid #ddd3bf}.company-profile-panel>header small{color:#9b6900;font-size:9px;font-weight:900;letter-spacing:.2em}.company-profile-panel>header h2{margin:5px 0 5px;font:700 30px Georgia,serif}.company-profile-panel>header p{margin:0;color:#6a665e}.company-profile-panel>header button{display:grid!important;place-items:center;width:42px!important;height:42px!important;padding:0!important;border:1px solid #ddd2bc!important;border-radius:11px!important;background:#fff!important}.company-profile-panel>header svg,.company-accounts-card button svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.company-profile-form{flex:1;overflow:auto;padding:26px 30px}.company-profile-card{margin:0 0 18px;padding:22px;border:1px solid #dfd5c2;border-radius:15px;background:#fff}.company-profile-card>h3,.company-accounts-card h3{margin:0 0 18px;padding-bottom:12px;border-bottom:2px solid #efad00;font:700 20px Georgia,serif}.company-profile-grid,.company-assets-grid,.company-account-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.company-profile-grid label,.company-assets-grid label,.company-account-fields label{display:flex;flex-direction:column;gap:7px;color:#5f5b53;font-size:11px;font-weight:700}.company-profile-grid input,.company-assets-grid input,.company-account-fields input{width:100%;min-height:42px}.company-profile-note{margin:16px 0 0;padding:12px 14px;border-left:3px solid #eeac00;background:#fff7da;color:#65542d;font-size:12px;line-height:1.5}.company-assets-grid{grid-template-columns:1fr 1fr}.company-upload>input{position:absolute;width:1px;height:1px;opacity:0}.company-upload>span{display:grid;place-items:center;min-height:130px;padding:15px;border:1px dashed #cdbf9f;border-radius:12px;background:#fbf9f3;color:#8a7442;cursor:pointer}.company-upload img{display:block;max-width:100%;max-height:100px;object-fit:contain}.company-assets-grid>label:last-child{grid-column:1/-1}.company-accounts-card>header,.company-account-row>header{display:flex;align-items:center;justify-content:space-between;gap:18px}.company-accounts-card>header h3{margin-bottom:4px}.company-accounts-card>header p{margin:0 0 16px;color:#6b665e}.company-accounts-card>header button{display:flex!important;align-items:center;gap:8px;min-height:40px}.company-accounts-list{display:grid;gap:13px}.company-account-row{padding:17px;border:1px solid #e1d7c4;border-radius:13px;background:#fbfaf6}.company-account-row>header{margin-bottom:14px}.company-account-row small{color:#9a6900;font-size:8px;font-weight:900;letter-spacing:.16em}.company-account-row h4{margin:3px 0 0;font:700 17px Georgia,serif}.company-account-row>header span{padding:5px 9px;border-radius:999px;background:#e8f1ec;color:#315d49;font-size:9px;font-weight:800}.company-account-row>header button{background:transparent!important;color:#a43b32!important;border:1px solid #e6c8c4!important}.company-profile-form>footer{position:sticky;bottom:-26px;display:flex;justify-content:flex-end;gap:10px;margin:0 -30px -26px;padding:18px 30px;border-top:1px solid #ddd2be;background:rgba(255,255,255,.96);backdrop-filter:blur(8px)}.company-profile-form>footer button{min-height:44px}.company-profile-form>footer .primary{min-width:210px}.kh-letterhead{max-width:760px;min-height:1000px;margin:0 auto;padding:42px 50px;background:#fff;color:#181710;border:1px solid #ded3bd;box-shadow:0 14px 35px rgba(31,27,18,.12);font:14px/1.72 Arial,sans-serif}.kh-letterhead>header{display:grid;grid-template-columns:auto 1fr auto;gap:16px;align-items:center;padding:0 0 20px;border-bottom:3px solid #edae00}.kh-letterhead-logo{display:block;width:82px;height:58px;object-fit:contain}.kh-letterhead-fallback{display:grid;place-items:center;width:54px;height:54px;border-radius:10px;background:#181710;color:#f4b600;font-weight:900}.kh-letterhead>header strong{display:block;font-size:21px;letter-spacing:.06em}.kh-letterhead>header span{display:block;color:#6e695f;font-size:9px;letter-spacing:.11em}.kh-letterhead>header aside{text-align:right}.kh-letterhead>header aside b,.kh-letterhead>header aside span{display:block}.kh-letterhead-meta{display:flex;justify-content:space-between;gap:20px;margin:22px 0;color:#6d675e;font-size:11px}.kh-letterhead main h1{margin:35px 0 8px;font:700 29px Georgia,serif}.kh-letterhead-subject{margin:0 0 28px!important;padding-bottom:16px;border-bottom:1px solid #ded3bd;color:#976700;font-size:10px!important;font-weight:800;letter-spacing:.13em}.kh-letterhead main p{margin:0 0 18px}.kh-letterhead-signoff{margin-top:62px}.kh-letterhead-signature{display:block;max-width:130px;max-height:55px;object-fit:contain}.kh-letterhead-signoff span,.kh-letterhead-signoff b{display:block}.kh-letterhead>footer{display:flex;justify-content:space-between;gap:25px;margin-top:34px;padding-top:14px;border-top:1px solid #ded3bd;color:#706b62;font-size:9px}@media(max-width:760px){.company-profile-overlay{padding:6px}.company-profile-panel{width:100%;height:98vh}.company-profile-panel>header,.company-profile-form{padding-left:18px;padding-right:18px}.company-profile-grid,.company-assets-grid,.company-account-fields{grid-template-columns:1fr}.company-assets-grid>label:last-child{grid-column:auto}.company-profile-form>footer{margin-left:-18px;margin-right:-18px;padding-left:18px;padding-right:18px}.kh-letterhead{padding:28px 24px}.kh-letterhead>header{grid-template-columns:auto 1fr}.kh-letterhead>header aside{grid-column:1/-1;text-align:left}.kh-letterhead>footer{display:block}}
/* Keep organisation setup visually consistent with the existing company profile cards. */
.organisation-masters-card>p{margin:-8px 0 18px;color:#6b665e;font-size:12px}.organisation-master-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.organisation-master-group{min-width:0;padding:15px;border:1px solid #e1d7c4;border-radius:13px;background:#fbfaf6}.organisation-master-group>header{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.organisation-master-group small{color:#9a6900;font-size:8px;font-weight:900;letter-spacing:.16em}.organisation-master-group h4{margin:3px 0 0;font:700 17px Georgia,serif}.organisation-master-add,.organisation-master-row{display:grid;grid-template-columns:minmax(0,1fr) 38px;gap:7px;align-items:center}.organisation-master-add{margin-bottom:10px}.organisation-master-row{grid-template-columns:minmax(0,1fr) 34px 34px;margin-top:7px}.organisation-master-add input,.organisation-master-row input{min-width:0;width:100%;height:38px;margin:0;padding:8px 10px;text-transform:uppercase}.organisation-master-row input:disabled{border-color:#e5dfd2;background:#fff;color:#27241e;opacity:1}.organisation-master-add button,.organisation-master-row button{display:grid!important;place-items:center;width:34px!important;height:34px!important;min-height:0!important;padding:0!important;border:1px solid #d9cfbb!important;background:#fff!important;color:#6e590f!important}.organisation-master-add button{width:38px!important;height:38px!important;background:#171717!important;color:#f4b400!important}.organisation-master-row button.danger{color:#a43b32!important}.organisation-master-row button.saving{border-color:#f4b400!important;background:#fff4c7!important}.organisation-master-add svg,.organisation-master-row svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.organisation-master-list>p{margin:12px 0;color:#777168;font-size:11px}@media(max-width:900px){.organisation-master-grid{grid-template-columns:1fr}}@media(max-width:600px){.company-profile-overlay{padding:0}.company-profile-panel{width:100vw;height:100dvh;max-height:100dvh;border-radius:0}.company-profile-form{padding:18px}.company-profile-form>footer{margin:0 -18px -18px;padding:15px 18px}}

/* Identity guidance and aligned, non-destructive letterhead asset editors. */
.company-identity-note,.company-assets-note{margin:-7px 0 18px;color:#6b665e;font-size:12px;line-height:1.55}.company-identity-note{padding:12px 14px;border-left:3px solid #eeac00;background:#fff9e6}.company-assets-grid.company-assets-aligned{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:stretch}.company-asset-group{display:flex;min-width:0;min-height:270px;flex-direction:column;gap:14px;padding:17px;border:1px solid #e1d7c4;border-radius:13px;background:#fbfaf6}.company-asset-group>header{min-height:45px;padding-bottom:11px;border-bottom:1px solid #e8dfcf}.company-asset-group>header small{display:block;color:#9a6900;font-size:8px;font-weight:900;letter-spacing:.16em}.company-asset-group>header h4{margin:4px 0 0;font:700 17px Georgia,serif}.company-asset-group>label{margin:0}.company-asset-group>.company-upload{margin-top:auto}.company-asset-group>.company-upload>span{min-height:142px;background:#fff}.kh-letterhead-legal{max-width:250px;line-height:1.4;letter-spacing:.04em!important}
@media(max-width:760px){.company-assets-grid.company-assets-aligned{grid-template-columns:1fr}.company-asset-group{min-height:0}.company-asset-group>.company-upload>span{min-height:118px}}
