.tg-ai-steps{grid-template-columns:repeat(4,1fr)}
.tg-company-profile-head{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:end}
.tg-ai-secondary-btn{min-height:44px;padding:0 16px;border:1px solid #0b7186;border-radius:5px;background:#fff;color:#0b7186;font:inherit;font-weight:800;cursor:pointer}
.tg-ai-secondary-btn:disabled{opacity:.6}
.tg-company-profile{border:1px solid #d7e2e8;border-radius:6px;background:#f8fafb}
.tg-company-profile summary{padding:13px 15px;color:#173d6b;font-weight:900;cursor:pointer}
.tg-company-profile>div{display:grid;gap:15px;padding:4px 15px 16px;border-top:1px solid #e1e8ed}
.tg-company-profile>div>label:first-child{margin-top:13px}
.tg-company-profile-head .tg-ai-secondary-btn{display:flex;align-items:center;justify-content:center;box-sizing:border-box;text-decoration:none}
.tg-selected-profile{padding:14px 16px;border-left:3px solid #0b7186;background:#f1f7f8;color:#60778b}.tg-selected-profile strong{display:block;margin-bottom:4px;color:#173d6b}.tg-selected-profile p{margin:0;line-height:1.55}
.tg-profile-manager{display:grid;gap:18px}.tg-profile-manager>nav{display:flex;gap:9px;overflow-x:auto;padding-bottom:2px}.tg-profile-manager>nav button{display:flex;flex:0 0 auto;align-items:center;gap:8px;min-height:42px;padding:8px 14px;border:1px solid #d8e2e8;border-radius:21px;background:#fff;color:#173d6b;text-align:left;cursor:pointer}.tg-profile-manager>nav button.active{border-color:#0b7186;background:#eaf5f5;box-shadow:inset 0 0 0 1px #0b7186}.tg-profile-manager>nav button span{color:#718397;font-size:.8125rem}.tg-profile-manager>nav button.active span{display:none}.tg-profile-manager>nav button[data-new]{border-style:dashed;color:#0b7186}.tg-profile-manager>form{display:grid;gap:16px;padding:22px;border:1px solid #e0e7ec;border-radius:7px;background:#f8fafb}.tg-profile-manager label{display:grid;gap:6px;color:#173d6b;font-weight:800}.tg-profile-manager input,.tg-profile-manager textarea{box-sizing:border-box;width:100%;padding:11px 12px;border:1px solid #cbd7df;border-radius:5px;background:#fff;font:inherit;font-weight:400;resize:vertical}.tg-profile-manager textarea{min-height:82px;line-height:1.55}.tg-profile-manager input:focus,.tg-profile-manager textarea:focus{outline:2px solid rgba(11,113,134,.15);border-color:#0b7186}.tg-profile-actions{display:flex;align-items:center;justify-content:flex-end;gap:15px;padding-top:2px}.tg-profile-actions span{color:#0b7186}.tg-profile-actions button{min-width:150px;border:0}
@media(max-width:620px){.tg-company-profile-head{grid-template-columns:1fr}.tg-ai-steps{grid-template-columns:1fr 1fr}.tg-ai-steps span:nth-child(3){border-left:0;border-top:1px solid #d6e0e8}.tg-ai-steps span:nth-child(4){border-top:1px solid #d6e0e8}}
@media(max-width:760px){.tg-profile-manager>nav button span{display:none}.tg-profile-manager>form{padding:17px}.tg-profile-manager>form .tg-bid-two{grid-template-columns:1fr}}

/* Dashboard company profiles: safe list view with editing isolated in a modal. */
.tg-profile-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.tg-profile-list article,.tg-profile-add{display:flex;align-items:center;gap:12px;min-height:78px;padding:14px;border:1px solid #d9e3e9;border-radius:7px;background:#fff}.tg-profile-card-mark,.tg-profile-add>b{display:grid;flex:0 0 42px;width:42px;height:42px;place-items:center;border-radius:50%;background:#e7f4f4;color:#0b7186;font-size:1.05rem}.tg-profile-list article>div:nth-child(2){display:grid;flex:1;min-width:0;gap:3px}.tg-profile-list article strong{overflow:hidden;color:#173d6b;text-overflow:ellipsis;white-space:nowrap}.tg-profile-list article span{overflow:hidden;color:#718397;font-size:.875rem;text-overflow:ellipsis;white-space:nowrap}.tg-profile-list article>button{padding:6px 10px;border:1px solid #cbd8e1;border-radius:4px;background:#fff;color:#0b7186;cursor:pointer}.tg-profile-add{border-style:dashed;color:#0b7186;text-align:left;cursor:pointer}.tg-profile-add span{display:grid;gap:2px}.tg-profile-add small{color:#718397}.tg-profile-dialog{width:min(820px,calc(100% - 32px));max-height:90vh;padding:0;border:0;border-radius:9px;box-shadow:0 24px 70px rgba(8,35,60,.28)}.tg-profile-dialog::backdrop{background:rgba(8,31,52,.55);backdrop-filter:blur(2px)}.tg-profile-dialog>form{display:grid;gap:17px;padding:24px;background:#fff}.tg-profile-dialog header{display:flex;align-items:start;justify-content:space-between;padding-bottom:15px;border-bottom:1px solid #e2e8ed}.tg-profile-dialog header span{color:#f36b2b;font-weight:800}.tg-profile-dialog h3{margin:3px 0 0;color:#173d6b;font-size:1.35rem}.tg-profile-dialog header button{width:34px;height:34px;border:0;border-radius:50%;background:#eef3f5;color:#526a7e;font-size:1.4rem;cursor:pointer}.tg-profile-dialog label{display:grid;gap:6px;color:#173d6b;font-weight:800}.tg-profile-dialog input,.tg-profile-dialog textarea{box-sizing:border-box;width:100%;padding:11px 12px;border:1px solid #cbd7df;border-radius:5px;font:inherit;font-weight:400;resize:vertical}.tg-profile-dialog .tg-profile-actions{padding-top:12px;border-top:1px solid #e2e8ed}.tg-profile-dialog .tg-profile-actions button{min-height:40px;padding:8px 17px;border:1px solid #cbd7df;border-radius:4px;background:#fff;color:#173d6b;font:inherit;font-weight:800;cursor:pointer}.tg-profile-dialog .tg-profile-actions .btn-primary{border-color:#0b8d73;background:#0b8d73;color:#fff}@media(max-width:850px){.tg-profile-list{grid-template-columns:1fr 1fr}}@media(max-width:580px){.tg-profile-list{grid-template-columns:1fr}.tg-profile-dialog>form{padding:18px}.tg-profile-dialog .tg-bid-two{grid-template-columns:1fr}}
