.acj-logo-preview{width:100%;max-width:300px;min-height:100px;display:flex;align-items:center;justify-content:center;background:#f4f7f5;border:1px dashed #c4d5cc;border-radius:12px;padding:16px;box-sizing:border-box;margin:8px 0 12px}
.acj-logo-preview img{display:block;width:auto;height:auto;max-width:100%;max-height:110px;object-fit:contain}.acj-logo-preview span{font-size:13px;color:#6a7c74}
#acjCompanyForm input[type=file]{width:100%;max-width:100%;font-size:14px}#acjCompanyForm small{display:block;color:#64776e;margin:7px 0}#acjCompanyForm [hidden]{display:none!important}#acjLogoRemove{margin-top:8px}.acj-logo-help{font-size:12px;line-height:1.5;max-width:430px}
#acjCompanyIdentity{display:flex;gap:8px;align-items:center;margin-top:7px;min-width:0;max-width:320px}#acjCompanyIdentity[hidden]{display:none!important}#acjCompanyIdentity img{width:58px;height:28px;object-fit:contain;background:#fff;border-radius:4px;padding:3px;flex:none}#acjCompanyIdentity span{font-size:12px;color:#557267;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
@media(max-width:760px){#acjCompanyIdentity{max-width:190px}#acjCompanyIdentity img{width:42px;height:24px}#acjCompanyIdentity span{font-size:10px}}

body.acj-disc-participant #acjCompanyIdentity,body.acj-testes-only #acjCompanyIdentity{display:none!important}

/* Preserve the entire logo; enlarge proportionally without cropping. */
.acj-logo-preview{max-width:100%;min-height:150px;background:#fff}
.acj-logo-preview img{width:calc(104px * var(--acj-logo-scale,1));height:calc(50px * var(--acj-logo-scale,1));max-height:150px;max-width:100%;object-fit:contain}
#acjLogoSizing{margin:12px 0 16px}#acjLogoSizing label{font-size:13px}#acjLogoScale{display:block;width:100%;padding:0;margin:12px 0 16px;accent-color:#14513e;min-height:32px}
#acjCompanyIdentity{max-width:420px;flex-wrap:wrap;gap:8px}
#acjCompanyIdentity .acj-company-logo-button{display:flex;align-items:center;justify-content:center;border:1px solid #e0e8e3;background:#fff;border-radius:8px;padding:5px;cursor:zoom-in;max-width:100%;flex:none}
#acjCompanyIdentity img{width:calc(104px * var(--acj-logo-scale,1));height:calc(50px * var(--acj-logo-scale,1));max-width:100%;padding:0}
.acj-logo-expanded{border:0;border-radius:16px;padding:18px;max-width:92vw;max-height:90dvh;width:min(850px,92vw);box-sizing:border-box;z-index:15000;background:#fff}
.acj-logo-expanded::backdrop{background:#092b24b8}.acj-logo-expanded button{display:block;margin-left:auto;margin-bottom:16px}.acj-logo-expanded img{display:block;width:100%;height:auto;max-height:70dvh;object-fit:contain}
@media(max-width:760px){#acjCompanyIdentity{max-width:100%}#acjCompanyIdentity img{width:calc(84px * var(--acj-logo-scale,1));height:calc(42px * var(--acj-logo-scale,1))}#acjCompanyIdentity span{max-width:110px;white-space:normal;line-height:1.3}}

.acj-logo-crop{box-sizing:border-box;border:0;border-radius:16px;padding:20px;width:min(720px,94vw);max-height:92dvh;overflow-y:auto;background:#fff;color:#153f31;z-index:15000}.acj-logo-crop::backdrop{background:#092b24bd}.acj-logo-crop h2{font-size:22px;margin:0 0 8px}.acj-logo-crop p{font-size:13px;line-height:1.5}.acj-logo-crop canvas{display:block;width:auto;max-width:100%;margin:0 auto;height:auto;max-height:38dvh;object-fit:contain;background:#f2f4f3;touch-action:none;cursor:crosshair;border-radius:6px}.acj-crop-tools{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.acj-crop-sliders{display:grid;grid-template-columns:1fr 1fr;gap:12px}.acj-crop-sliders label{display:block;font-size:12px;font-weight:600}.acj-crop-sliders input{display:block;width:100%;min-height:32px;accent-color:#14513e}.acj-logo-crop .actions{display:flex;gap:10px;justify-content:flex-end;position:sticky;bottom:-20px;background:#fff;padding:12px 0;margin-top:12px}.acj-logo-crop .btn{min-height:42px;font-size:13px}#acjLogoSizing .btn{margin:4px 6px 4px 0}
@media(max-width:600px){.acj-logo-crop{padding:16px}.acj-logo-crop .actions{bottom:-16px}.acj-crop-tools .btn{width:100%}}

/* Company identity gets its own row; it never changes the title/control row height. */
.top{grid-template-rows:auto!important;overflow:visible!important}
.top>div:has(>#pageTitle){min-width:0!important;align-self:center!important}
.top #acjCompanyIdentity{grid-column:1/-1!important;grid-row:3!important;box-sizing:border-box;width:100%;max-width:none!important;margin:0!important;padding:10px 14px;border:1px solid #e0e9e3;border-radius:12px;background:#fff;flex-wrap:nowrap;gap:14px;min-width:0;align-items:center;justify-content:flex-start}
.top #acjCompanyIdentity[hidden]{display:none!important}
.top #acjCompanyIdentity .acj-company-logo-button{border:0;padding:0;background:transparent;flex:0 0 auto}
.top #acjCompanyIdentity img{width:calc(96px * var(--acj-logo-scale,1));height:calc(38px * var(--acj-logo-scale,1));max-width:173px;max-height:69px;background:transparent}
.top #acjCompanyIdentity span{font-size:13px;color:#345d4b;white-space:normal;line-height:1.35;max-width:none;overflow-wrap:anywhere;min-width:0}
@media(max-width:760px){.top #acj-setup-actions{grid-area:4/1/5/-1!important}.top #acjCompanyIdentity{padding:9px 12px}.top #acjCompanyIdentity img{width:calc(84px * var(--acj-logo-scale,1));height:calc(34px * var(--acj-logo-scale,1));max-width:151px;max-height:62px}#acjCompanyForm input:not([type=range]),#acjCompanyForm select{font-size:16px!important}}
