/* Shared cabinet controls. Compact actions stay separate from explanatory copy. */
body .button,body .button:not(.danger):not(.ghost){box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:40px;height:auto;width:auto;max-width:100%;padding:10px 16px;border:1px solid #424247;border-radius:10px;background:#1a1a1d;color:#e9e9ed;font:600 12px/1.35 Arial,sans-serif;box-shadow:none;text-decoration:none;white-space:normal;text-align:center;flex:0 0 auto;transition:background .16s,border-color .16s}
body .button::after,body .button:not(.danger):not(.ghost)::after{display:none}body .button:hover,body .button:not(.danger):not(.ghost):hover{background:#252529;border-color:#62626b;box-shadow:none;transform:none}body .button.primary:not(.danger){background:#303034;border-color:#62626b}body .button.primary:not(.danger):hover{background:#3b3b40}body .button.ghost,body .button.secondary:not(.danger){background:#141416;border-color:#38383e}body .button.danger{background:#2b1d23;border-color:#61404c;color:#e9aebd}.button.small{min-height:36px;padding:8px 13px;font-size:13px}.button svg{width:16px;height:16px;flex-shrink:0}.button:disabled{opacity:.45;cursor:default}.button:focus-visible,input:focus-visible{outline:2px solid #aaaab5;outline-offset:3px}
.bar{align-items:center;gap:12px}.bar>p{margin:0}.form-row{align-items:start}.form-row>.button{align-self:end;justify-self:start;min-height:40px;max-height:56px}.inline-field-row{grid-template-columns:minmax(0,1fr) auto;align-items:end;margin-top:18px}.inline-field-row>label{margin:0}.inline-field-row>.button{align-self:end;margin:0;max-height:40px}.modal-actions,.auth-actions,.actions{gap:12px}.modal-actions .button{min-width:100px}
.context-toolbar{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:19px 22px;margin:0 0 20px;border:1px solid #303034;border-radius:14px;background:#101012}.context-copy{min-width:0}.context-copy h3{margin:0 0 6px;font-size:13px;line-height:1.5}.context-copy p{margin:0;color:#96969f;font-size:14px;line-height:1.65;overflow-wrap:anywhere}.context-toolbar>.button{margin:0}
input[type=file]{font-size:14px;line-height:1.5}input[type=file]::file-selector-button{min-height:36px;padding:8px 13px;margin-right:12px;border:1px solid #424247;border-radius:8px;color:#e9e9ed;background:#202023;font:600 11px Arial;cursor:pointer}
#passwordForm .remember-login{display:flex;align-items:center;gap:10px;margin:8px 0 4px;color:#b5b5bf;font:13px/1.5 Arial,sans-serif;cursor:pointer}#passwordForm .remember-login input{appearance:auto;width:18px;min-width:18px;height:18px;min-height:18px;margin:0;padding:0;flex:0 0 18px;accent-color:#b9b9c5;border-radius:4px}#passwordForm .remember-login span{display:block}#passwordForm .auth-actions>.button{width:auto;flex:1;min-width:140px}#passwordForm>.button{margin-top:16px}
@media(max-width:600px){.context-toolbar{align-items:flex-start;flex-direction:column;gap:15px;padding:18px}.context-toolbar>.button{align-self:flex-start}.inline-field-row{grid-template-columns:minmax(0,1fr) auto;gap:10px}.button{padding:10px 14px}.modal-actions{flex-wrap:wrap}.modal-actions>.button{flex:1}#passwordForm .auth-actions{flex-wrap:wrap}}

.telegram-box{margin-bottom:22px}.telegram-heading{display:flex;align-items:flex-start;gap:16px}.telegram-heading>div{flex:1;min-width:0}.telegram-heading h2{margin:0 0 8px;font-size:18px}.telegram-heading .hint{margin:0;max-width:740px}.telegram-heading .badge{flex-shrink:0}.telegram-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:20px}.telegram-steps{margin:20px 0 0;padding-left:20px;color:#b5b6c0;font-size:15px;line-height:1.9}@media(max-width:600px){.telegram-heading{flex-wrap:wrap}.telegram-heading .badge{margin-left:56px}.telegram-actions>.button{flex:1;min-width:160px}}
.telegram-heading{display:grid;grid-template-columns:34px minmax(0,1fr) auto;align-items:start}.telegram-heading>div{width:100%;min-width:0}.telegram-heading .hint{width:100%;max-width:740px}@media(max-width:600px){.telegram-heading{grid-template-columns:34px minmax(0,1fr);gap:12px 16px}.telegram-heading>.badge{grid-column:2;margin:0;justify-self:start}.telegram-heading .hint{max-width:none;width:100%}.telegram-actions{align-items:stretch}.telegram-actions>.button{width:100%;min-width:0;flex:1 1 100%}}
@media(max-width:600px){.telegram-actions>.button:not(.danger):not(.ghost),.telegram-actions>.button.ghost,.telegram-actions>.button.danger{width:100%;min-width:0;flex:1 1 100%}}
.telegram-actions .action-group{display:flex;flex-wrap:wrap;gap:12px;margin:0}@media(max-width:600px){.telegram-actions .action-group{width:100%;flex-direction:column}.telegram-actions .action-group>.button:not(.danger):not(.ghost),.telegram-actions .action-group>.button.ghost,.telegram-actions .action-group>.button.danger{width:100%;min-width:0}}
