.company-templates-dialog{width:min(1120px,calc(100vw - 32px));max-height:calc(100dvh - 32px);padding:24px;overflow-y:auto;color:var(--ink);border:1px solid var(--line);border-radius:12px}
.company-templates-dialog::backdrop{background:#102e4266}
.ct-layout{display:grid;grid-template-columns:220px minmax(0,1fr);gap:28px}
.ct-sidebar{border-right:1px solid var(--line);padding-right:20px;min-width:0}
.ct-sidebar>h3{margin-top:0}.ct-template{display:block;width:100%;text-align:left;white-space:normal;margin:8px 0;padding:12px;border:1px solid var(--line);border-radius:7px;background:white;color:var(--ink)}
.ct-template[aria-pressed=true]{border-color:var(--blue);background:#f0f5f6;font-weight:600}.ct-active{font-size:13px;color:var(--blue)}
.ct-import{display:block;margin-top:24px;font-size:13px;line-height:1.5}.ct-import input{font-size:12px;padding:8px;margin-top:8px}
.ct-editor{min-width:0}.ct-toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:20px}.ct-toolbar>strong{font-size:20px;margin-right:auto}
.ct-section{display:grid;grid-template-columns:1fr 1fr;gap:16px 20px;border-top:1px solid var(--line);padding-top:20px;margin:24px 0}.ct-section>h3,.ct-section>.ct-hint,.ct-section>.ct-row,.ct-section>.ct-logo,.ct-section>#company-template-readiness{grid-column:1/-1}.ct-section>h3{margin:0}
.ct-field{min-width:0}.ct-field textarea{min-height:85px;line-height:1.5}.ct-field p{white-space:pre-wrap;overflow-wrap:anywhere;margin:6px 0}.ct-field input[type=color]{width:120px;height:42px}
.ct-row{display:grid;grid-template-columns:1fr 1fr;gap:14px 18px;border:1px solid var(--line);border-radius:7px;padding:16px;min-width:0}.ct-row legend{font-size:13px;padding:0 6px}.ct-row>button{justify-self:end;grid-column:1/-1}
.ct-hint{font-size:13px;line-height:1.55;color:#4d6270;margin:6px 0;overflow-wrap:anywhere}.ct-logo{display:flex;align-items:center;gap:16px}.ct-logo img{width:120px;height:48px;object-fit:contain;flex:none}.ct-logo input{min-width:0}
.ct-module{display:flex;align-items:center;gap:10px;font-size:14px}.ct-module input{width:18px;height:18px;margin:0}.ct-readiness{font-size:13px;line-height:1.8;padding-left:20px;overflow-wrap:anywhere}
.ct-confirm:not(:empty){padding:16px;margin-top:18px;background:#f2f6f7;border:1px solid var(--line);border-radius:7px;line-height:1.6}.ct-confirm button{margin:12px 12px 0 0}.company-templates-status{margin:18px 0 0;font-size:14px;line-height:1.6}.brand-template-context{font-size:11px;line-height:1.3;color:#4d6270}
@media(max-width:760px){.company-templates-dialog{padding:18px}.ct-layout{grid-template-columns:1fr;gap:20px}.ct-sidebar{border-right:0;border-bottom:1px solid var(--line);padding:0 0 18px}.ct-section,.ct-row{grid-template-columns:1fr}.ct-logo{flex-wrap:wrap}.ct-toolbar{gap:10px}}
@media print{.company-templates-dialog{display:none!important}}

.company-template-change{margin:0 0 1rem;padding:1rem;border:1px solid #b38a3a;border-radius:.65rem;background:#fff9ed;color:#433311}.company-template-change p{margin:0 0 .6rem}
