.auth-gate[hidden],.auth-account[hidden],.modal-layer[hidden]{display:none!important}
body.auth-pending,body.auth-required:not(.auth-ready){overflow:hidden}
body.auth-pending>.topbar,body.auth-pending>.container,body.auth-pending>footer,body.auth-required:not(.auth-ready)>.topbar,body.auth-required:not(.auth-ready)>.container,body.auth-required:not(.auth-ready)>footer{pointer-events:none;user-select:none}
body.auth-required:not(.auth-ready)>.topbar,body.auth-required:not(.auth-ready)>.container,body.auth-required:not(.auth-ready)>footer{opacity:.72}
.auth-gate{box-sizing:border-box;position:fixed;inset:0;z-index:1000;display:grid;place-items:center;padding:24px;background:rgba(244,246,245,.58);backdrop-filter:blur(1.5px);color:#1c201f}
.auth-card{box-sizing:border-box;width:min(430px,100%);max-width:100%;padding:34px;border:1px solid #dde3df;border-radius:20px;background:#fff;box-shadow:0 24px 70px rgba(21,26,24,.12)}
.auth-brand{margin-bottom:28px}.auth-brand strong{display:block;color:#151a18;font-size:25px}.auth-brand span{display:block;margin-top:5px;color:#6f7773}
.auth-panel h1{margin:0;font-size:22px}.auth-panel>p{margin:8px 0 22px;color:#707773}
.auth-panel form{display:grid;gap:14px}.auth-panel label{display:grid;gap:7px;font-weight:700}.auth-panel input{height:44px;padding:0 13px;border:1px solid #cfd6d2;border-radius:10px;font:inherit}.auth-panel button{height:44px;border:0;border-radius:10px;background:#0b83f6;color:#fff;font:inherit;font-weight:700;cursor:pointer}.auth-panel button:disabled{opacity:.55}
.auth-panel textarea{box-sizing:border-box;width:100%;padding:11px 13px;border:1px solid #cfd6d2;border-radius:10px;resize:vertical;font:inherit}.optional-label{color:#78817d;font-size:12px;font-weight:400}.auth-honeypot{position:absolute!important;left:-10000px!important;width:1px!important;height:1px!important;overflow:hidden!important}
.auth-panel .auth-text-button{height:auto;padding:4px 0;border:0;background:transparent;color:#087be8;font-weight:400;text-align:left}.auth-panel .auth-text-button:hover{text-decoration:underline}
#auth-status{min-height:20px;margin:16px 0 0;color:#65706a;font-size:12px}#auth-status.error{color:#b21f2d}
.auth-account{min-width:0;display:flex;align-items:center;justify-content:flex-end;gap:10px;color:#e5ece8;font-size:12px;font-weight:400}.auth-account button{flex:0 0 auto;padding:7px 10px;border:1px solid #53605a;border-radius:8px;background:transparent;color:#e5ece8;cursor:pointer}.auth-account button:hover{border-color:#b8ec33;color:#b8ec33}.auth-account .account-name-button{max-width:210px;overflow:hidden;border-color:transparent;text-overflow:ellipsis;white-space:nowrap}.auth-account .admin-console-button{border-color:#8eae47;background:#26331d;color:#c9ed69;font-weight:700}
.auth-account #auth-telegram-link.linked{border-color:#78a51d;color:#b8ec33}.auth-account #auth-telegram-link:disabled{cursor:not-allowed;opacity:.7}.telegram-link-dialog[hidden]{display:none!important}.telegram-link-dialog{position:fixed;inset:0;z-index:1200;display:grid;place-items:center;padding:20px;background:rgba(10,15,13,.62);backdrop-filter:blur(2px)}.telegram-link-card{position:relative;box-sizing:border-box;width:min(520px,100%);padding:30px;border-radius:18px;background:#fff;color:#18201c;box-shadow:0 24px 70px rgba(0,0,0,.25)}.telegram-link-card h2{margin:0 0 10px}.telegram-link-card p{color:#66706b}.telegram-link-card code{display:block;margin:18px 0;padding:14px;border:1px solid #cdd8d2;border-radius:10px;background:#f4f7f5;font-size:18px;font-weight:700;text-align:center;user-select:all}.telegram-link-status{min-height:20px;margin:0 0 16px!important;color:#287240!important;font-weight:700}.telegram-link-actions{display:flex;align-items:stretch;gap:10px}.telegram-link-actions a{display:inline-flex;align-items:center;justify-content:center;flex:1;text-align:center;text-decoration:none}.telegram-link-card dl{display:grid;gap:8px;margin:18px 0}.telegram-link-card dl div{display:flex;justify-content:space-between;gap:18px;padding:9px 0;border-bottom:1px solid #edf0ee}.telegram-link-card dt{color:#66706b}.telegram-link-card dd{margin:0;font-weight:700}.telegram-unlink-button{min-height:40px;padding:0 15px;border:1px solid #d7a4aa;border-radius:9px;background:#fff;color:#a12835;font:inherit;font-weight:700;cursor:pointer}.telegram-link-close{position:absolute;top:12px;right:12px;width:32px;height:32px;border:0;border-radius:50%;background:#edf1ef;font-size:22px;cursor:pointer}
@media(max-width:760px){.auth-gate{width:100vw;max-width:100vw;height:100dvh;padding:16px;align-items:center}.auth-card{width:calc(100vw - 32px);max-width:430px;max-height:calc(100dvh - 32px);overflow:auto;padding:24px}.auth-account .account-name-button{max-width:170px}}
@media(max-width:460px){.auth-account{width:100%;justify-content:flex-start;flex-wrap:wrap}.auth-account .account-name-button{max-width:calc(100% - 70px)}}
@media(max-width:560px){.telegram-link-card{padding:26px 18px}.telegram-link-actions{flex-direction:column}.telegram-link-card dl div{align-items:flex-start;flex-direction:column;gap:3px}}

.password-requirement{display:block;color:#66706b;font-size:12px;font-weight:400}.modal-layer{position:fixed;inset:0;z-index:1100;display:grid;place-items:center;padding:20px;background:rgba(10,15,13,.62);backdrop-filter:blur(2px)}.account-card{position:relative;box-sizing:border-box;width:min(480px,100%);padding:30px;border-radius:18px;background:#fff;color:#18201c;box-shadow:0 24px 70px rgba(0,0,0,.28)}.account-card h2{margin:0 0 22px}.account-card h3{margin:0 0 14px}.account-card form{display:grid;gap:15px}.account-card label,.admin-invite-form label{display:grid;gap:7px;font-weight:700}.account-card input,.admin-invite-form input,.admin-invite-form select{box-sizing:border-box;width:100%;height:44px;padding:0 13px;border:1px solid #cfd6d2;border-radius:10px;background:#fff;font:inherit}.account-card input[readonly]{background:#f2f4f3;color:#707773}.modal-close{position:absolute;top:14px;right:14px;width:34px;height:34px;border:0;border-radius:50%;background:#edf1ef;color:#17201c;font-size:23px;cursor:pointer}.account-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:6px}.primary-button,.secondary-button{min-height:40px;padding:0 15px;border-radius:9px;font:inherit;font-weight:700;cursor:pointer}.primary-button{border:0;background:#0b83f6;color:#fff}.secondary-button{border:1px solid #cdd5d1;background:#fff;color:#1a211e}.modal-status{min-height:18px;margin:14px 0 0;color:#287240;font-size:13px}.modal-status.error{color:#b21f2d}
.admin-console{place-items:stretch;padding:18px}.admin-shell{position:relative;display:grid;grid-template-rows:auto auto minmax(0,1fr) auto;box-sizing:border-box;width:min(1180px,100%);height:min(820px,calc(100dvh - 36px));margin:auto;overflow:hidden;border-radius:18px;background:#f6f8f7;color:#18201c;box-shadow:0 25px 80px rgba(0,0,0,.34)}.admin-head{position:relative;padding:24px 28px 18px;background:#151a18;color:#fff}.admin-head small{color:#b8ec33;font-weight:700}.admin-head h2{margin:4px 0 0;font-size:24px}.admin-head .modal-close{background:#2a312e;color:#fff}.admin-tabs{display:flex;gap:5px;padding:10px 24px;border-bottom:1px solid #dfe5e1;background:#fff;overflow:auto}.admin-tabs button{padding:9px 13px;border:0;border-radius:8px;background:transparent;color:#505a55;font:inherit;font-weight:700;white-space:nowrap;cursor:pointer}.admin-tabs button.active{background:#e7f4c9;color:#294500}.admin-content{overflow:auto;padding:24px 28px}.admin-section{margin-bottom:20px;padding:20px;border:1px solid #dce3df;border-radius:14px;background:#fff}.admin-section h3,.admin-section-heading h3{margin:0 0 10px}.admin-section-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px}.admin-section-heading p{margin:4px 0 0;color:#68716d}.admin-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:18px}.admin-metric{padding:17px;border:1px solid #dce3df;border-radius:13px;background:#fff}.admin-metric small{display:block;color:#68716d}.admin-metric strong{display:block;margin-top:8px;font-size:24px}.admin-details,.settings-list{display:grid;gap:0}.admin-detail,.setting-row{display:flex;justify-content:space-between;gap:20px;padding:11px 0;border-bottom:1px solid #edf0ee}.admin-detail:last-child,.setting-row:last-child{border-bottom:0}.admin-detail span,.setting-row span{color:#68716d}.admin-invite-form{display:grid;grid-template-columns:1.2fr 1fr 180px auto;align-items:end;gap:12px;margin-bottom:18px;padding:16px;border:1px solid #cad9d0;border-radius:12px;background:#fff}.admin-table-wrap{overflow:auto;border:1px solid #dce3df;border-radius:12px;background:#fff}.admin-users-table{width:100%;border-collapse:collapse;white-space:nowrap}.admin-users-table th,.admin-users-table td{padding:12px 13px;border-bottom:1px solid #edf0ee;text-align:left;font-size:13px}.admin-users-table th{color:#68716d;font-size:11px;text-transform:uppercase}.admin-user-name{display:grid;gap:3px}.admin-user-name small{color:#75807a}.status-chip{display:inline-flex;padding:4px 8px;border-radius:99px;background:#e6f4ea;color:#26733d;font-size:11px;font-weight:700}.status-chip.suspended{background:#f6dfe1;color:#9b2733}.admin-row-actions{display:flex;gap:6px}.admin-row-actions button{padding:6px 8px;border:1px solid #ccd5d0;border-radius:7px;background:#fff;cursor:pointer}.source-admin-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.source-admin-item{display:flex;justify-content:space-between;padding:14px;border:1px solid #dce3df;border-radius:10px}.source-admin-item b.connected{color:#28743e}.source-admin-item b.disconnected{color:#a2323d}.admin-shell>.modal-status{padding:0 28px 16px}.admin-invite-form[hidden]{display:none!important}
.temporary-password-dialog{z-index:1400}.temporary-password-card{position:relative;box-sizing:border-box;width:min(560px,100%);padding:30px;border-radius:18px;background:#fff;color:#18201c;box-shadow:0 24px 70px rgba(0,0,0,.3)}.temporary-password-card>small{color:#66811d;font-weight:700}.temporary-password-card h2{margin:5px 0 10px}.temporary-password-card>p{color:#66706b}.temporary-password-card dl{display:grid;gap:0;margin:20px 0}.temporary-password-card dl div{display:grid;grid-template-columns:150px 1fr;gap:18px;padding:11px 0;border-bottom:1px solid #edf0ee}.temporary-password-card dt{color:#66706b}.temporary-password-card dd{min-width:0;margin:0;font-weight:700;overflow-wrap:anywhere}.temporary-password-card code{display:inline-block;padding:7px 12px;border-radius:8px;background:#edf7d7;color:#263b00;font-size:22px;letter-spacing:3px;user-select:all}.temporary-password-warning{padding:12px 14px;border:1px solid #ecd99d;border-radius:10px;background:#fff9e8;color:#755600}.temporary-password-card>.modal-status{margin-bottom:0}
.admin-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.admin-metric-note{display:block;margin-top:6px;color:#68716d;font-size:12px}
.admin-access-section{margin-bottom:24px;padding:18px;border:1px solid #dce3df;border-radius:14px;background:#fff}.admin-access-section .admin-section-heading{margin-bottom:12px}.admin-access-list{display:grid;gap:10px}.admin-access-empty{margin:0;color:#68716d}.admin-access-item{display:grid;grid-template-columns:minmax(210px,.8fr) minmax(260px,1.4fr) auto;align-items:center;gap:16px;padding:13px;border:1px solid #e1e6e3;border-radius:10px;background:#fafbfa}.admin-access-identity{display:grid;gap:3px}.admin-access-identity small,.admin-access-meta{color:#68716d}.admin-access-comment{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}.admin-access-actions{display:flex;gap:7px}.admin-access-actions button{min-height:36px;padding:0 11px;border:1px solid #cdd5d1;border-radius:8px;background:#fff;font:inherit;cursor:pointer}.admin-access-actions .approve{border-color:#0b83f6;background:#0b83f6;color:#fff}
@media(max-width:850px){.admin-access-item{grid-template-columns:1fr auto}.admin-access-comment{grid-column:1/-1;grid-row:2}}@media(max-width:560px){.admin-access-item{grid-template-columns:1fr}.admin-access-comment{grid-column:auto;grid-row:auto}.admin-access-actions{flex-direction:column}.admin-access-actions button{width:100%}}
@media(max-width:850px){.admin-metrics{grid-template-columns:repeat(2,1fr)}.admin-invite-form{grid-template-columns:1fr 1fr}.source-admin-list{grid-template-columns:1fr}}@media(max-width:560px){.modal-layer{padding:8px}.account-card,.temporary-password-card{padding:24px 18px}.account-actions{flex-direction:column}.admin-console{padding:0}.admin-shell{height:100dvh;border-radius:0}.admin-head,.admin-content{padding-left:16px;padding-right:16px}.admin-tabs{padding-left:12px}.admin-metrics{grid-template-columns:1fr 1fr}.admin-invite-form{grid-template-columns:1fr}.admin-section-heading{align-items:stretch;flex-direction:column}.temporary-password-card dl div{grid-template-columns:1fr;gap:4px}}
