.bm-main{max-width:1180px;margin:32px auto;padding:0 20px}.bm-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.bm-main .panel{margin:20px 0;padding:24px}.bm-main p{line-height:1.65}.bm-main form{display:grid;grid-template-columns:1fr 1fr;gap:16px}.bm-main label{display:flex;flex-direction:column;gap:8px;min-width:0}.bm-main input{font:inherit;min-height:44px;padding:10px;box-sizing:border-box;width:100%}.bm-table{overflow-x:auto}.bm-main table{width:100%;border-collapse:collapse}.bm-main td,.bm-main th{text-align:left;padding:14px 10px;border-bottom:1px solid #dce5f0;overflow-wrap:anywhere}.bm-main code{overflow-wrap:anywhere;white-space:normal}.bm-main .btn{min-height:44px}.bm-main #message{overflow-wrap:anywhere}.bm-main #invitation{margin-top:16px;overflow-wrap:anywhere}@media(max-width:600px){.bm-main{padding:0 12px;margin:20px auto}.bm-main .panel{padding:16px}.bm-main h1{font-size:30px}.bm-main form{grid-template-columns:1fr}.bm-main td,.bm-main th{padding:12px 8px}}

.bm-main #rate-limit{line-height:1.5;color:var(--muted,#64748b)}.bm-pagination{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:16px}.bm-pagination[hidden]{display:none}.bm-main input{border:1px solid var(--border,#c9d5e7);border-radius:10px;background:var(--panel,#fff);color:inherit}

#authorization-message{grid-column:1/-1;margin:0;padding:12px;border-radius:10px;background:#eaf3ff;color:var(--ink)}#authorization-message[data-error=true]{color:#b42318;background:#fff1f0}.bm-main input[aria-invalid=true]{border-color:#b42318}

.bm-heading>button{flex-shrink:0;white-space:nowrap}@media(max-width:600px){#direct-children thead{display:none}#direct-children tbody{display:block}#direct-children tr{display:grid;gap:10px;padding:16px 0;border-bottom:1px solid var(--line)}#direct-children td{display:grid;grid-template-columns:80px minmax(0,1fr);gap:10px;padding:0;border:0;align-items:center}#direct-children td::before{content:attr(data-label);font-weight:600}#direct-children td button{width:100%}}

/* Use the retained partner workbench layout with current authorization controls. */
#airpc-agent-design[data-program=authorized] .ag-brand {text-decoration:none;color:inherit}
#airpc-agent-design[data-program=authorized] .panel {padding:22px;margin:18px 0;border:1px solid var(--ag-line);background:var(--ag-panel);border-radius:16px}
#airpc-agent-design[data-program=authorized] #authorization-form {display:grid;grid-template-columns:1fr 1fr;gap:16px}
#airpc-agent-design[data-program=authorized] #authorization-form label {display:flex;flex-direction:column;gap:8px;min-width:0}
#airpc-agent-design[data-program=authorized] #authorization-form input {box-sizing:border-box;width:100%;min-height:44px;font:inherit;padding:10px;border:1px solid var(--ag-line);border-radius:10px;color:inherit;background:var(--ag-panel)}
#business-report .ag-panel {margin:18px 0;padding:20px;border:1px solid var(--ag-line);border-radius:16px;background:var(--ag-panel);overflow-wrap:anywhere}
#business-report .ag-stat .ag-value {overflow-wrap:anywhere;font-size:clamp(19px,2.1vw,28px)}
#business-report td {overflow-wrap:anywhere}
#business-nav button {min-height:44px}
#airpc-agent-design[data-program=authorized] #business-nav {grid-template-columns:repeat(6,minmax(0,1fr))}
#airpc-agent-design[data-program=authorized] #save {color:#fff}
#business-report .ag-link {white-space:nowrap}
@media(max-width:600px){#airpc-agent-design[data-program=authorized] #authorization-form {grid-template-columns:1fr}#airpc-agent-design[data-program=authorized] .panel,#business-report .ag-panel {padding:16px}}
@media(max-width:600px){#airpc-agent-design[data-program=authorized] #business-nav button {font-size:13px;white-space:normal;overflow-wrap:anywhere}#airpc-agent-design[data-program=authorized] #direct-children tr {display:grid;grid-template-columns:1fr}#airpc-agent-design[data-program=authorized] #direct-children td {display:grid;grid-template-columns:80px minmax(0,1fr)}#airpc-agent-design[data-program=authorized] #direct-children td::before {display:block;margin:0}}

@media(max-width:620px){
 html:lang(ru) #airpc-agent-design[data-program=authorized] #business-nav{grid-template-columns:repeat(3,minmax(0,1fr));gap:4px}
 html:lang(ru) #airpc-agent-design[data-program=authorized] #business-nav button{overflow-wrap:normal;word-break:normal;white-space:normal;padding:8px 4px}
 html:lang(ru) #airpc-agent-design[data-program=authorized] #direct-children td{grid-template-columns:100px minmax(0,1fr)}
 html:lang(ru) #airpc-agent-design[data-program=authorized] #direct-children td::before{overflow-wrap:normal;word-break:normal}
}
