/* @ds-v23 (затвор: только токены) — полоса D: настройки учётной записи и организации */
html .ds22 .ld-more{margin-top:var(--space-6)}
html .ds22 .ld-more > summary{cursor:pointer;color:var(--text-secondary);font:var(--type-caption)}
html .ds22 .ld-more__body{margin-top:var(--space-3);max-width:640px;font:var(--type-caption);color:var(--text-secondary)}
html .ds22 .ld-more__row{padding:var(--space-2) 0;border-bottom:1px solid var(--surface-muted)}

/* ───────── «Безопасность»: ряды, состояние, окна 2FA ───────── */
html .ds22 .ld-row{align-items:center;padding:var(--space-5) 0}
html .ds22 .ld-row + .ld-row{border-top:1px solid var(--surface-muted)}
html .ds22 .ld-acts{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-3)}
html .ds22 .ld-note{margin-top:var(--space-2);font:var(--type-caption);color:var(--text-secondary)}
html .ds22 .ld-dots{letter-spacing:.2em;color:var(--text-secondary)}
html .ds22 .ld-state{display:inline-flex;align-items:center;gap:var(--space-2);font:var(--type-body);font-weight:600}
html .ds22 .ld-state--pos{color:var(--positive-strong)}
html .ds22 .ld-state--neg{color:var(--negative-strong)}
html .ds22 .ld-form{display:grid;gap:var(--space-5);max-width:420px}
html .ds22 .ld-form .ds-input{width:100%}
html .ds22 .ld-qr{display:flex;flex-wrap:wrap;align-items:flex-start;gap:var(--space-6);margin:var(--space-5) 0}
html .ds22 .ld-qr__code{flex:0 0 auto;line-height:0}
html .ds22 .ld-qr__text{flex:1 1 220px;min-width:0}
html .ds22 .ld-qr__text a{display:block;overflow-wrap:anywhere;color:var(--action-primary)}
html .ds22 .ld-secret{font:var(--type-body);letter-spacing:.08em;overflow-wrap:anywhere}
html .ds22 .ld-acts .ds-input{width:auto;flex:1 1 140px;max-width:220px}
html .ds22 .ld-codes{columns:2;margin:var(--space-5) 0;font-family:ui-monospace,monospace}
html .ds22 .ld-code-row{padding:var(--space-1) 0;font:var(--type-body);letter-spacing:.06em}

/* ───────── «Пользователи»: список, приглашение, карточка ───────── */
html .ds22 .ld-users{flex:1;min-height:0;display:flex;flex-direction:column;overflow:hidden}
html .ds22 .ld-bar{flex:none;display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-4);padding:var(--space-5) var(--space-7)}
html .ds22 .ld-bar__hint{margin:0 0 0 auto}
html .ds22 .ld-utable{flex:1;min-height:0;overflow:auto;background:var(--surface);padding:0 var(--space-7)}
html .ds22 .ld-ugrid{display:grid;grid-template-columns:minmax(90px,133fr) minmax(120px,283fr) minmax(70px,146fr) minmax(120px,170px) minmax(176px,230px);align-items:center;column-gap:var(--space-3)}
html .ds22 .ld-uhead{position:sticky;top:0;z-index:2;min-height:var(--control-md);background:var(--surface);border-bottom:1px solid var(--surface-muted)}
html .ds22 .ld-urow{min-height:77px;border-bottom:1px solid var(--surface-muted);cursor:pointer}
html .ds22 .ld-urow:hover{background:var(--surface-sunken)}
html .ds22 .ld-urow--on{background:var(--accent-mint-subtle)}
html .ds22 .ld-cell{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html .ds22 .ld-cell--muted{color:var(--text-muted)}
html .ds22 .ld-acts--end{justify-content:flex-end}
html .ds22 .ld-foot{flex:none;padding:var(--space-4) var(--space-7);border-top:1px solid var(--surface-muted);font:var(--type-caption);color:var(--text-secondary)}
html .ds22 .ld-invite{flex:none;display:flex;flex-direction:column;gap:var(--space-4);padding:0 var(--space-7) var(--space-5)}
html .ds22 .ld-invite__row{display:flex;flex-wrap:wrap;align-items:flex-end;gap:var(--space-4)}
html .ds22 .ld-if{width:200px;max-width:100%}
html .ds22 .ld-if--email{width:280px}
html .ds22 .ld-if .ds-input,html .ds22 .ld-if .ds-select{width:100%}
html .ds22 .ld-perms{display:flex;flex-direction:column;max-width:480px}
html .ds22 .ld-perm{cursor:pointer}
html .ds22 .ld-perm:has(input:disabled){opacity:.5;cursor:not-allowed}
html .ds22 .ld-ind{padding-left:var(--space-8)}
html .ds22 .ld-roles{display:flex;flex-direction:column;gap:var(--space-4);margin:var(--space-5) 0}
html .ds22 .ld-role{align-items:flex-start}
html .ds22 .ld-role input{margin-top:var(--space-1)}
html .ds22 .ld-ros{display:flex;flex-direction:column;gap:var(--space-3)}
html .ds22 .ld-ro{padding:var(--space-3) var(--space-4);background:var(--surface-sunken);border-radius:var(--radius-md)}
html .ds22 .ld-ro__v{font:var(--type-body);color:var(--text-primary)}
html .ds22 .ld-ro__v--empty{color:var(--text-muted)}
html .ds22 .ld-drawer{width:min(560px,100vw)}
html .ds22 .ld-drawer__head{flex:none;display:flex;align-items:center;gap:var(--space-3);padding:var(--space-5) var(--space-7);border-bottom:1px solid var(--surface-muted)}
html .ds22 .ld-drawer__title{flex:1;margin:0;font:var(--type-section-title);font-weight:800}
html .ds22 .ld-drawer__body{flex:1;min-height:0;overflow:auto;padding:var(--space-6) var(--space-7)}
html .ds22 .ld-drawer__foot{flex:none;display:flex;gap:var(--space-3);padding:var(--space-5) var(--space-7);border-top:1px solid var(--surface-muted)}

/* ───────── Переключатель организаций и экран выбора ───────── */
html .ds22 .ld-orgsw{position:relative}
html .ds22 .ld-orgsw__btn{max-width:160px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html .ds22 .ld-orgsw__menu{position:absolute;top:100%;left:0;z-index:var(--z-popover,80);min-width:220px;margin-top:var(--space-2);padding:var(--space-2);display:flex;flex-direction:column;background:var(--surface);border-radius:var(--radius-lg);box-shadow:var(--shadow-overlay)}
html .ds22 .ld-orgsw__item{display:flex;flex-direction:column;align-items:flex-start;gap:var(--space-1);width:100%;height:auto;padding:var(--space-3) var(--space-4);text-align:left}
html .ds22 .ld-orgsw__item small{font:var(--type-caption);color:var(--text-secondary)}
html .ds22 .ld-orgsw__item--on{background:var(--accent-mint-subtle)}
html .ds22 .ld-chooser{min-height:100vh;display:flex;align-items:center;justify-content:center}
html .ds22 .ld-chooser__card{width:min(480px,92vw);padding:var(--space-8);background:var(--surface);border-radius:var(--radius-xl);box-shadow:var(--shadow-panel)}
html .ds22 .ld-chooser__list{display:flex;flex-direction:column;gap:var(--space-3);margin-top:var(--space-5)}

/* ───────── «Организация»: вкладки, ряды команды/ключей/сессий/подключений ───────── */
html .ds22 .ld-org{flex:1;min-height:0;display:flex;flex-direction:column;overflow:hidden}
html .ds22 .ld-org__tabs{flex:none;padding:var(--space-5) var(--space-7) 0;overflow-x:auto}
html .ds22 .ld-org__body{flex:1;min-height:0;overflow:auto;padding:var(--space-6) var(--space-7)}
html .ds22 .ld-org .ld-invite{padding:0 0 var(--space-5)}
html .ds22 .ld-toolbar{display:flex;flex-wrap:wrap;gap:var(--space-3);margin-bottom:var(--space-5)}
html .ds22 .ld-sec{max-width:640px}
html .ds22 .ld-list{margin:var(--space-3) 0 0;padding-left:var(--space-7);line-height:1.6}
html .ds22 .ld-trow{display:grid;align-items:center;column-gap:var(--space-4);padding:var(--space-4) 0;border-bottom:1px solid var(--surface-muted)}
html .ds22 .ld-trow--team{grid-template-columns:minmax(0,1fr) 170px 190px 190px}
html .ds22 .ld-trow--key{grid-template-columns:minmax(0,1fr) 170px 140px 120px}
html .ds22 .ld-trow--sess{grid-template-columns:minmax(0,1fr) 170px 100px}
html .ds22 .ld-trow--conn{grid-template-columns:minmax(0,1fr) 140px 190px}
html .ds22 .ld-trow--off{opacity:.55}
html .ds22 .ld-danger{color:var(--negative-strong)}
html .ds22 .ld-pick[aria-pressed="true"]{background:var(--accent-mint-subtle);border-color:var(--action-primary)}
html .ds22 .ld-linkbox{display:flex;flex-direction:column;gap:var(--space-3);margin:var(--space-4) 0;padding:var(--space-4) var(--space-5);background:var(--surface-sunken);border-radius:var(--radius-md)}
html .ds22 .ld-secret{overflow-wrap:anywhere;font:var(--type-body)}
@media (max-width:767px){html .ds22 .ld-trow--team,html .ds22 .ld-trow--key,html .ds22 .ld-trow--sess,html .ds22 .ld-trow--conn{grid-template-columns:minmax(0,1fr)}}

/* ───────── «Профиль»: группа радио и узкое поле ───────── */
html .ds22 .ld-fieldset{margin:0 0 var(--space-6);padding:0;border:0}
html .ds22 .ld-fieldset .ds-field__label{margin-bottom:var(--space-2)}
html .ds22 .ld-fieldset .ds-field__hint{display:block;margin-top:var(--space-2)}
html .ds22 .ld-narrow{max-width:320px}
