.flow-auth,.flow-accounts{--account-ink:#465a35;--account-muted:#748167;--account-line:#e1e9d7;--account-soft:#f3f7ed;--account-lime:#d7fa83;--account-error:#9a523e;color:var(--account-ink)}
.flow-account-locked .app{display:none}
.login-box.flow-auth{width:min(460px,calc(100vw - 36px));margin:clamp(28px,9vh,100px) auto 36px;padding:34px 36px 30px;border:1px solid #e0e8d6;border-radius:26px;background:#fff;box-shadow:0 18px 60px #354a2109}
.flow-auth .account-auth-brand{padding:0;justify-content:center;gap:12px;margin-bottom:36px}
.flow-auth .account-auth-brand img{width:44px;height:44px;border-radius:14px}
.flow-auth .account-auth-brand .flow-wordmark{width:84px;height:auto}
.account-auth-heading{text-align:center;margin-bottom:28px}
.account-auth-heading .eyebrow{display:block;font-size:8px;letter-spacing:1.7px;margin-bottom:12px;color:#7b8b6a}
.flow-auth .account-auth-heading h1{font-size:27px;font-weight:600;line-height:1.2;letter-spacing:-.75px;color:#4d663b}
.account-auth-heading p{font-size:12px;line-height:1.65;color:var(--account-muted);margin-top:12px}
.flow-auth .account-form,.flow-accounts .account-form{display:grid;gap:17px;min-width:0}
.flow-auth .account-field,.flow-accounts .account-field{display:flex;flex-direction:column;gap:8px;margin:0;font-size:12px;font-weight:550;color:#687f50;min-width:0;line-height:1.5}
.flow-auth .account-field input,.flow-accounts .account-field input,.flow-accounts .account-search input{display:block;box-sizing:border-box;width:100%;min-width:0;min-height:46px;border:1px solid var(--account-line);border-radius:11px;background:#fbfdf8;color:#435837;padding:11px 13px;font:inherit;font-size:14px;font-weight:400;outline-offset:2px;box-shadow:none}
.flow-auth .account-field input:focus,.flow-accounts .account-field input:focus,.flow-accounts .account-search input:focus{border-color:#a5be81;background:#fff;box-shadow:0 0 0 3px #eef5e3}
.flow-auth .account-field small,.flow-accounts .account-field small{font-size:10px;font-weight:400;line-height:1.55;color:var(--account-muted)}
.account-password{position:relative;display:block;min-width:0}
.flow-auth .account-password input,.flow-accounts .account-password input{padding-right:86px}
.flow-auth .account-password-toggle,.flow-accounts .account-password-toggle{position:absolute;right:3px;top:3px;bottom:3px;min-height:38px;min-width:72px;border:0;background:transparent;border-radius:8px;font-size:10px;font-weight:550;color:#6c844f;padding:0 9px}
.account-password-toggle:hover{background:#eff5e7}
.flow-auth .account-check{display:flex;align-items:flex-start;gap:10px;margin:0;font-size:11px;line-height:1.6;font-weight:400;color:var(--account-muted);cursor:pointer}
.flow-auth .account-check input{width:17px;height:17px;min-height:17px;flex:0 0 17px;margin:1px 0 0;accent-color:#6f9245}
.flow-auth .account-primary,.flow-accounts .account-primary,.flow-auth .account-secondary,.flow-accounts .account-secondary{font-size:12px;font-weight:550;min-height:42px;line-height:1.4;padding:10px 15px;border:1px solid var(--account-line);border-radius:11px;background:#fff;color:#617e44;white-space:normal}
.flow-auth .account-primary,.flow-accounts .account-primary{background:var(--account-lime);border-color:#cbe99e;color:#3e5d27}
.flow-auth .account-primary:hover:not(:disabled),.flow-accounts .account-primary:hover:not(:disabled){background:#ceef7c;border-color:#b9d98a}
.flow-auth .account-secondary:hover:not(:disabled),.flow-accounts .account-secondary:hover:not(:disabled){background:#f4f8ed}
.flow-auth .account-primary.account-full{min-height:47px;width:100%;font-size:14px;margin-top:0}
.flow-auth .account-auth-help{font-size:10px;line-height:1.7;text-align:center;color:#7d8b70;margin:0 6px}
.flow-auth .account-feedback,.flow-accounts .account-feedback{font-size:12px;line-height:1.6;color:#617e44;min-width:0;white-space:pre-line;overflow-wrap:anywhere;margin:0}
.flow-auth #loginStatus.account-feedback{font-size:12px;color:#617e44;margin:0}
.flow-auth .account-feedback:empty,.flow-accounts .account-feedback:empty{display:none}
.flow-auth .account-feedback.is-error,.flow-accounts .account-feedback.is-error,.flow-auth #loginStatus.is-error{color:var(--account-error);padding:10px 12px;background:#fff6f1;border:1px solid #efded3;border-radius:10px}
.account-setup-elsewhere{text-align:center}
.account-setup-elsewhere p{font-size:13px;line-height:1.7;color:var(--account-muted);margin:15px 0 20px}
.account-setup-symbol{display:inline-flex;align-items:center;justify-content:center;width:48px;height:48px;border-radius:15px;background:#eff6e4;color:#6f8f4c;font-size:27px}
.topbar .account-profile-button{display:inline-flex;border:1px solid #e4ebd9;min-height:34px;width:34px;height:34px;flex:0 0 34px;padding:0;color:#5e7747}
.account-page-heading{margin:0 0 24px}
.account-page-heading h1{font-size:30px;font-weight:610;letter-spacing:-.9px;color:#46523f}
.account-description{font-size:12px;line-height:1.65;color:var(--account-muted);margin-top:10px}
.account-profile-card{display:flex;align-items:center;gap:16px;padding:22px 24px;background:#fff;border:1px solid var(--account-line);border-radius:17px;margin-bottom:18px;min-width:0;flex-wrap:wrap}
.flow-accounts .account-avatar{display:flex;align-items:center;justify-content:center;flex:0 0 48px;width:48px;height:48px;border-radius:15px;background:#eff7e1;color:#6b8c47;font-size:17px;font-weight:600}
.account-profile-details{min-width:100px;flex:1}
.account-caption{display:block;font-size:9px;color:#8a987d;line-height:1.4;margin-bottom:5px}
.account-profile-details h2{font-size:17px;font-weight:550;line-height:1.4;color:#526c3e;overflow-wrap:anywhere}
.account-profile-details p{font-size:11px;line-height:1.6;color:#748367;margin-top:5px;overflow-wrap:anywhere}
.account-role{border:1px solid #e5ecd9;border-radius:8px;padding:6px 9px;background:#f7faf2;color:#748d5c;font-size:10px;white-space:nowrap}
.account-profile-actions{display:flex;flex-wrap:wrap;gap:8px;margin-left:auto}
.account-workspace-note{font-size:12px;line-height:1.75;color:var(--account-muted);max-width:620px;margin-top:20px}
.account-members{margin-top:28px;min-width:0}
.account-members-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:19px}
.account-members-heading h2{font-size:20px;font-weight:550;letter-spacing:-.4px;color:#5a7443;display:flex;align-items:center;gap:9px}
.account-members-heading .account-description{margin-top:7px}
.account-count{display:inline-flex;align-items:center;justify-content:center;background:#eaf2df;color:#79935b;border-radius:7px;font-size:11px;min-width:24px;height:24px;padding:0 6px;letter-spacing:0}
.account-toolbar{display:flex;align-items:center;gap:10px;margin-bottom:15px}
.account-search{display:block;width:min(340px,100%);margin-right:auto;min-width:0}
.flow-accounts .account-search input{min-height:42px;padding:10px 13px;font-size:12px;background:#fff}
.account-search input::placeholder{color:#8a987c}
.account-table{width:100%;border-collapse:separate;border-spacing:0 7px;table-layout:fixed}
.account-table th{text-align:left;font-size:9px;letter-spacing:.06em;text-transform:uppercase;color:#8b997d;font-weight:550;padding:0 17px 6px}
.account-table th:first-child{width:29%}.account-table th:nth-child(2){width:24%}.account-table th:nth-child(3){width:17%}.account-table th:last-child{width:30%;text-align:right}
.account-table td{padding:16px 17px;background:#fff;border-top:1px solid var(--account-line);border-bottom:1px solid var(--account-line);vertical-align:middle;overflow-wrap:anywhere}
.account-table td:first-child{border-left:1px solid var(--account-line);border-radius:13px 0 0 13px}
.account-table td:last-child{border-right:1px solid var(--account-line);border-radius:0 13px 13px 0}
.account-member-name strong{display:block;font-size:13px;font-weight:550;line-height:1.5;color:#5d7747}
.account-member-role{display:block;font-size:10px;color:#859575;line-height:1.5;margin-top:5px}
.account-member-login{font-size:12px;color:#748964}
.account-state{display:inline-flex;align-items:center;gap:6px;font-size:10px;color:#8b8173;line-height:1.5}
.account-state:before{content:"";width:6px;height:6px;flex:0 0 6px;border-radius:50%;background:#b7afa3}
.account-state.is-enabled{color:#71904f}.account-state.is-enabled:before{background:#8db660}
.account-table .account-member-actions{text-align:right}
.account-member-actions .account-secondary,.account-member-actions .account-text-button{font-size:10px;min-height:37px;padding:8px 10px;margin:3px 0 3px 5px}
.account-text-button{background:transparent;border-color:transparent;color:#8a785f;font-size:11px;font-weight:500;min-height:38px;padding:8px 10px}
.account-text-button:hover{background:#f7f3ec;color:#80664e}
.account-table .is-disabled td{background:#fbfcf8}
.account-empty{padding:36px 20px;text-align:center;color:#80946e;border:1px solid var(--account-line);background:#fbfdf8;border-radius:13px;font-size:12px;line-height:1.6}
.account-dialog{width:min(470px,calc(100vw - 32px));max-height:calc(100dvh - 40px);overflow:auto;overscroll-behavior:contain;padding:25px;border:1px solid #e0e8d6;border-radius:22px;background:#fff;box-shadow:0 25px 90px #30451f25}
.account-dialog::backdrop{background:#26361c49;backdrop-filter:blur(5px)}
.account-dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:12px}
.account-dialog-heading h2{font-size:22px;font-weight:550;letter-spacing:-.5px;line-height:1.25;color:#5c7645;margin:0}
.account-dialog-close{width:36px;height:36px;min-height:36px;flex:0 0 36px;border:0;border-radius:50%;background:#f1f6e9;color:#7e9764;font-size:24px;font-weight:400;padding:0}
.account-dialog-intro{font-size:12px;line-height:1.7;color:var(--account-muted);margin:0 0 20px;overflow-wrap:anywhere}
.account-inline-note{font-size:11px;line-height:1.65;background:#f4f8ed;color:#758963;border:1px solid #e8eedf;border-radius:10px;padding:11px 13px}
.account-form-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.account-login-actions{border-top:1px solid var(--account-line);padding-top:20px;margin-top:23px}
.account-login-actions h3{font-size:13px;font-weight:550;margin:0 0 8px;color:#637e49}
.account-login-actions p{font-size:11px;line-height:1.7;color:var(--account-muted);margin-bottom:13px}
.flow-auth button:focus-visible,.flow-accounts button:focus-visible,.account-profile-button:focus-visible{outline:2px solid #6e9544;outline-offset:3px}
.flow-auth [hidden],.flow-accounts [hidden]{display:none!important}
@media(max-width:1100px){
 .account-profile-actions{flex-basis:100%;margin-left:64px}
 .account-table th:last-child{width:27%}.account-table th:first-child{width:30%}.account-table th:nth-child(2){width:25%}.account-table th:nth-child(3){width:18%}
 .account-table th,.account-table td{padding-left:13px;padding-right:13px}
}
@media(max-width:760px){
 .account-members-heading{align-items:flex-start;flex-direction:column;gap:14px}
 .account-profile-card{padding:18px;gap:13px}
 .account-profile-actions{margin-left:61px}
 .account-table,.account-table tbody{display:block;width:100%}
 .account-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 .account-table tr{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px 18px;border:1px solid var(--account-line);border-radius:13px;background:#fff;margin-bottom:10px;padding:17px;min-width:0}
 .account-table td,.account-table td:first-child,.account-table td:last-child{display:block;border:0;border-radius:0;padding:0;background:transparent}
 .account-member-name{grid-column:1;grid-row:1}.account-member-state{grid-column:2;grid-row:1;align-self:center}
 .account-member-login{grid-column:1/-1;grid-row:2;font-size:12px}
 .account-member-login:before{content:"Логин: ";color:#8b9a7d;font-size:10px}
 .account-table .account-member-actions{grid-column:1/-1;grid-row:3;text-align:left;border-top:1px solid #edf2e6;padding-top:10px}
 .account-member-actions .account-secondary,.account-member-actions .account-text-button{font-size:11px;min-height:40px;margin:0 7px 0 0}
 .account-table .is-disabled{background:#fbfcf8}.account-table .is-disabled td{background:transparent}
}
@media(max-width:500px){
 .login-box.flow-auth{width:calc(100vw - 28px);margin:25px auto;padding:27px 23px;border-radius:23px}
 .flow-auth .account-auth-brand{margin-bottom:28px}
 .flow-auth .account-auth-heading h1{font-size:25px}
 .account-auth-heading{margin-bottom:24px}
 .flow-auth .account-field input,.flow-accounts .account-field input,.flow-accounts .account-search input{font-size:16px}
 .account-page-heading h1{font-size:28px}
 .account-profile-card{gap:12px;padding:17px}
 .account-role{margin-left:60px;margin-top:-3px}
 .account-profile-actions{margin-left:0;flex-basis:100%;padding-top:5px}
 .account-profile-actions button{flex:1;min-width:0;font-size:11px;padding-inline:10px}
 .account-members-heading .account-primary{width:100%;min-height:44px}
 .account-description{font-size:11px}
 .account-dialog{width:calc(100vw - 24px);padding:21px;max-height:calc(100dvh - 24px)}
 .account-dialog-heading h2{font-size:21px}
 .account-form-actions>button{flex:1;min-width:110px}
 .account-form-actions{align-items:stretch}
 .account-form-actions>.account-primary{flex:1.45}
}
@media(prefers-reduced-transparency:reduce){.account-dialog::backdrop{backdrop-filter:none}}
