:root{font-family:system-ui,-apple-system,sans-serif;color:#20324b;background:#f3f6fa;font-size:14px}*{box-sizing:border-box}body{margin:0}header{display:flex;align-items:center;gap:24px;padding:20px 4%;background:#10243d;color:white}header div{flex:1}header strong{font-size:22px}header span{margin-left:18px;color:#a9bfd7}header a{color:#d7e8ff}main{max-width:1450px;margin:24px auto;padding:0 24px}nav{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:20px}.card{background:white;padding:22px;border:1px solid #dce4ef;border-radius:10px;margin-bottom:18px}.grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.chat-grid{display:grid;grid-template-columns:300px 1fr;gap:18px}h1,h2{margin:0 0 16px}h2{font-size:18px}p{line-height:1.6;color:#62748a}label{display:block;font-weight:600;margin:14px 0}input,textarea,select{display:block;width:100%;padding:10px;border:1px solid #becbdb;border-radius:5px;margin-top:6px;font:inherit}button{padding:9px 14px;border:1px solid #b6c7dc;border-radius:6px;background:#edf3fc;color:#183e70;cursor:pointer;font:inherit}button:disabled{opacity:.45;cursor:wait}form>button{background:#245fba;color:white;border-color:#245fba}table{border-collapse:collapse;width:100%;white-space:nowrap}td,th{text-align:left;padding:10px;border-bottom:1px solid #e4eaf3}td button{margin:2px}th{color:#61748c}.scroll{overflow:auto}#login{max-width:500px;margin:10vh auto}#notice{position:sticky;bottom:14px;background:#153b68;color:white;padding:14px;border-radius:8px;white-space:pre-wrap}#notice:empty{display:none}#conversation-list button{display:block;width:100%;text-align:left;margin-bottom:6px;white-space:normal}#messages{height:48vh;overflow-y:auto;display:flex;flex-direction:column;gap:12px}.bubble{max-width:90%;padding:12px;background:#edf2f8;border-radius:8px;white-space:pre-wrap;overflow-wrap:anywhere}.bubble.out{align-self:flex-end;background:#e2eeff}.stamp{font-size:11px;color:#647991;margin-bottom:5px}.bot-row{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}#reply-keyboard{margin:10px 0}[hidden]{display:none!important}@media(max-width:800px){.grid,.chat-grid{grid-template-columns:1fr}header span{display:none}main{padding:0 12px}td,th{padding:7px}#messages{height:50vh}}
:root{color-scheme:light}.toolbar{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin:12px 0}.check{display:flex;gap:10px;align-items:center}.check input,input[type=checkbox]{display:inline-block;width:auto;margin:0}.muted{font-size:11px;color:#62748a}.notes{white-space:pre-wrap;min-width:170px;max-width:300px;overflow-wrap:anywhere}pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:480px;overflow:auto}#policy-form,#profile-form{max-width:850px}input[type=file]{max-width:100%}header{flex-wrap:wrap}header strong{overflow-wrap:anywhere}#totals{line-height:1.8}
.operation-result{border-top:1px solid #e4eaf3;padding:12px 0}.operation-response{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6;margin:8px 0}summary{cursor:pointer;color:#245fba;padding:6px 0}
#payment-dialog{width:min(720px,94vw);max-height:92vh;border:1px solid #becbdb;border-radius:10px;padding:22px;color:#20324b}#payment-dialog::backdrop{background:#10243da8}#payment-dialog iframe{width:100%;height:460px;border:1px solid #dce4ef;border-radius:6px}#payment-dialog p{white-space:pre-wrap;overflow-wrap:anywhere}.payment-amount{font-size:20px;font-weight:700}

#account-history-dialog{width:min(850px,94vw);max-height:80vh;border:1px solid #ccd7e5;border-radius:10px;padding:22px}#account-history-dialog::backdrop{background:#10243d66}.history-list{max-height:60vh;overflow:auto;overflow-wrap:anywhere}.history-list p{padding:10px 0;border-bottom:1px solid #ddd}

/* Operator workspace */
main{max-width:1920px;margin:16px auto}header{padding:12px 24px}header strong{font-size:18px}nav{gap:5px;margin-bottom:12px}nav button{padding:7px 12px}#totals{padding:10px 16px;font-size:13px;margin-bottom:12px}.account-workspace{padding:16px}.account-workspace>p{font-size:12px;margin:7px 0}.account-workspace h2{margin:0 0 6px}.account-workspace .toolbar{gap:5px;margin:8px 0}.account-workspace button{font-size:12px;padding:6px 9px}.grid-tools{display:flex;align-items:end;gap:14px;flex-wrap:wrap;padding:10px 0;border-bottom:1px solid #dce4ef}.grid-tools label{margin:0;font-size:12px}.grid-search{flex:1;max-width:460px}.grid-tools input,.grid-tools select{padding:7px 10px;margin-top:4px}.grid-tools>span{font-size:12px;color:#62748a;padding-bottom:9px}.account-grid-wrap{max-height:64vh;min-height:260px;border:1px solid #ccd7e5;border-radius:6px;margin-top:12px;scrollbar-gutter:stable}.account-grid{font-size:12px;border-collapse:separate;border-spacing:0;table-layout:auto;width:max-content;min-width:100%}.account-grid th,.account-grid td{padding:7px 10px;border-right:1px solid #e4eaf3;border-bottom:1px solid #e4eaf3;max-width:240px;overflow:hidden;text-overflow:ellipsis;height:54px;white-space:nowrap}.account-grid th{position:sticky;top:0;z-index:4;background:#edf2f8;color:#41566f;height:38px;font-size:11px}.account-grid th button{border:0;background:transparent;padding:0;font-weight:700;color:inherit}.account-grid td{background:#fff}.account-grid tr:nth-child(even) td{background:#f8fafc}.account-grid tr:hover td{background:#eff6ff}.account-grid tr.grid-selected td{background:#e1efff}.account-grid tr:focus{outline:0}.account-grid tr:focus td{background:#eaf4ff;border-bottom-color:#3b82f6}.account-grid th:first-child,.account-grid td:first-child{position:sticky;left:0;min-width:48px;width:48px;z-index:2}.account-grid th:nth-child(2),.account-grid td:nth-child(2){position:sticky;left:48px;min-width:60px;width:60px;z-index:2}.account-grid th:nth-child(3),.account-grid td:nth-child(3){position:sticky;left:108px;min-width:210px;max-width:240px;z-index:2;box-shadow:2px 0 3px #20324b12}.account-grid th:nth-child(-n+3){z-index:5}.account-grid small{display:block;color:#64748b;font-size:11px;margin-top:3px}.grid-person{display:flex;align-items:center;gap:9px}.grid-person strong{max-width:170px;overflow:hidden;text-overflow:ellipsis;font-size:12px}.grid-avatar{width:34px;height:34px;flex:0 0 34px;display:flex;align-items:center;justify-content:center;background:#dceafe;color:#245fba;border-radius:50%;font-weight:600;overflow:hidden}.grid-avatar img{width:100%;height:100%;object-fit:cover}.grid-tag{display:inline-block;padding:1px 6px;border-radius:4px;font-size:11px}.grid-tag.ok{color:#166534;background:#dcfce7}.grid-tag.warn{color:#92400e;background:#fef3c7}.grid-tag.bad{color:#991b1b;background:#fee2e2}.grid-number{font-variant-numeric:tabular-nums}.grid-note{max-width:200px!important}.grid-error{max-width:230px!important;color:#92400e}.grid-pager{display:flex;align-items:center;justify-content:end;gap:12px;padding-top:10px;font-size:12px;color:#62748a}.grid-pager>span:first-child{margin-right:auto}.account-registration>summary{font-size:13px;padding:12px}.account-registration{border:1px solid #dce4ef;background:#fff;border-radius:8px;margin-bottom:18px;padding:0 12px}#single-profile-dialog{width:min(620px,94vw);max-height:90vh;border:1px solid #ccd7e5;border-radius:12px;padding:24px;color:#20324b}#single-profile-dialog::backdrop{background:#10243d80}.profile-dialog-head{display:flex;justify-content:space-between;gap:12px}.profile-dialog-head p{margin:6px 0;font-size:12px}.profile-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}.profile-dialog-actions{display:flex;justify-content:end;gap:10px;margin-top:20px}.profile-dialog-actions button[type=submit]{background:#245fba;color:#fff}#profile-editor-message{color:#245fba;white-space:pre-wrap;font-size:13px}#single-profile-dialog form>p{font-size:12px}@media(max-width:800px){.grid-tools{align-items:stretch}.grid-pager{flex-wrap:wrap}.grid-pager>span:first-child{width:100%}.account-grid-wrap{max-height:60vh}.account-grid th:nth-child(3),.account-grid td:nth-child(3){position:static;min-width:180px}.profile-fields{grid-template-columns:1fr}}

.account-grid th:last-child,.account-grid td:last-child{min-width:310px;max-width:none;overflow:visible}

#account-context-menu{position:fixed;z-index:2200;width:270px;max-width:calc(100vw - 16px);max-height:calc(100vh - 16px);overflow-y:auto;background:#fff;border:1px solid #ccd7e5;border-radius:9px;padding:6px;box-shadow:0 10px 36px #10243d33}#account-context-menu .context-heading{padding:8px 10px;color:#64748b;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;border-bottom:1px solid #e4eaf3;margin-bottom:4px}#account-context-menu button{display:block;width:100%;border:0;background:transparent;text-align:left;font-size:13px;padding:8px 10px;border-radius:5px}#account-context-menu button:hover,#account-context-menu button:focus-visible{background:#eaf3ff;outline:2px solid #b6d4ff;outline-offset:-2px}#account-context-menu button.danger{color:#b91c1c}

.grid-tag.included{color:#1d4ed8;background:#dbeafe}.grid-tag.excluded{color:#64748b;background:#e2e8f0}.grid-send-state{display:inline-block;margin-left:3px}

#quick-spambot-dialog{width:min(900px,95vw);max-height:90vh;overflow:auto;border:1px solid #ccd7e5;border-radius:12px;padding:24px;color:#20324b}#quick-spambot-dialog::backdrop{background:#10243d80}#quick-spambot-targets{max-height:90px;overflow:auto;overflow-wrap:anywhere;white-space:normal}#quick-spambot-form p,#quick-spambot-message{font-size:12px}#quick-spambot-results>.card{margin:12px 0 0;padding:14px}#quick-spambot-results pre{max-height:260px}

#freeze-check-dialog{width:min(850px,95vw);max-height:90vh;overflow:auto;border:1px solid #ccd7e5;border-radius:12px;padding:24px}#freeze-check-dialog::backdrop{background:#10243d80}

.account-quick-filters{display:flex;gap:7px;flex-wrap:wrap;margin:14px 0 4px}.account-quick-filters button{background:#fff;border:1px solid #ccd7e5;padding:7px 12px;font-weight:600}.account-quick-filters button[aria-pressed=true]{background:#e1efff;border-color:#3b82f6;color:#1d4ed8}.account-quick-filters button[data-account-filter=frozen][aria-pressed=true]{background:#fee2e2;border-color:#ef4444;color:#991b1b}

#appeal-dialog{width:min(920px,95vw);max-height:92vh;overflow:auto;border:1px solid #ccd7e5;border-radius:12px;padding:24px}#appeal-dialog::backdrop{background:#10243d80}#appeal-dialog p{font-size:12px}#appeal-chat{height:260px;overflow:auto;display:flex;flex-direction:column;gap:10px;background:#f7f9fc;border:1px solid #e4eaf3;padding:12px;border-radius:8px;margin-top:14px}.appeal-actions,#appeal-buttons{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0}#appeal-send{background:#245fba;color:white}#appeal-status{white-space:pre-wrap;color:#245fba}

.appeal-message-link{display:block;background:#fff;border:1px solid #a9c8ec;border-radius:6px;color:#1d4ed8;padding:8px 10px;margin-top:8px;overflow-wrap:anywhere;white-space:normal}

/* Sign-in */
body:has(#login:not([hidden])){background:#f1f5fa}body:has(#login:not([hidden]))>header{display:none}body:has(#login:not([hidden])) main{max-width:none;margin:0;padding:24px;min-height:100dvh;display:grid;place-items:center}#login{max-width:960px;width:100%;margin:0}.auth-shell{display:grid;grid-template-columns:.95fr 1.15fr;background:#fff;border:1px solid #dce4ef;border-radius:20px;overflow:hidden;box-shadow:0 16px 60px #10243d0d;min-height:540px}.auth-brand{padding:36px;color:#fff;background:radial-gradient(ellipse at 0% 100%,#235694 0,transparent 65%),#10243d;display:flex;flex-direction:column;justify-content:space-between;gap:60px}.auth-brand-name{display:flex;align-items:center;gap:10px;font-size:20px;font-weight:750;letter-spacing:1px}.auth-mark{display:grid;place-items:center;background:#fff1;border:1px solid #ffffff26;width:36px;height:36px;border-radius:10px;font-size:27px}.auth-brand-name>span:last-child{font-size:10px;color:#a9c9eb;letter-spacing:2px;border:1px solid #ffffff30;border-radius:5px;padding:5px 7px}.auth-eyebrow{font-size:11px;font-weight:650;letter-spacing:1.6px;color:#7b91ab}.auth-brand .auth-eyebrow{color:#a9c9eb}.auth-brand-copy h2{font-size:27px;line-height:1.5;letter-spacing:-.8px;font-weight:650;margin:16px 0}.auth-brand-copy p{color:#adc1d9;font-size:13px;line-height:1.8;margin:0;max-width:280px}.auth-features{display:flex;flex-wrap:wrap;gap:8px;margin-top:24px}.auth-features span{font-size:11px;color:#c4d8f0;padding:6px 9px;border:1px solid #ffffff26;border-radius:6px}.auth-brand-footer{font-size:11px;color:#91aac7}.auth-content{padding:60px 50px;display:flex;flex-direction:column;justify-content:center}.auth-content h1{font-size:28px;letter-spacing:-.9px;margin:10px 0 12px}.auth-description{font-size:13px;color:#718096;line-height:1.7;margin:0 0 28px}#login-form label{font-size:12px;color:#415269;margin:0 0 9px}.auth-password{position:relative}.auth-password input{height:48px;margin:0;padding:12px 72px 12px 14px;border:1px solid #d5deea;border-radius:9px;background:#fbfcfe;font-size:14px;width:100%;transition:border-color .15s,box-shadow .15s}.auth-password input:focus{outline:0;border-color:#4684dc;box-shadow:0 0 0 3px #3b82f618;background:#fff}.auth-password input[aria-invalid=true]{border-color:#dc5555}.auth-password #password-toggle{position:absolute;right:7px;top:7px;height:34px;padding:0 9px;background:transparent;border:0;color:#6b7e94;font-size:12px}.auth-password #password-toggle:focus-visible{outline:2px solid #4684dc;border-radius:5px}#login-caps{font-size:11px;color:#a16207;margin:8px 0}#login-error{font-size:12px;line-height:1.5;color:#b91c1c;min-height:18px;margin:10px 0 12px;overflow-wrap:anywhere}#login-submit{display:flex;align-items:center;justify-content:center;gap:9px;width:100%;height:47px;background:#245fba;border:1px solid #245fba;border-radius:9px;font-weight:650;color:#fff;box-shadow:0 3px 8px #245fba1a}#login-submit:hover{background:#1c509e}#login-submit:disabled{opacity:.65;cursor:wait}#login-submit:focus-visible{outline:3px solid #8bb5ed;outline-offset:3px}.auth-spinner{width:14px;height:14px;border:2px solid #ffffff50;border-top-color:#fff;border-radius:50%;animation:auth-spin .8s linear infinite}@keyframes auth-spin{to{transform:rotate(360deg)}}.auth-help{font-size:11px;color:#8a98a9;line-height:1.7;margin-top:22px}.auth-back{font-size:12px;color:#637b98;text-decoration:none;margin-top:32px}.auth-back:hover{text-decoration:underline}.auth-bottom{text-align:center;margin-top:22px;font-size:11px;color:#94a3b8;letter-spacing:.4px}.auth-mobile-brand{display:none}@media(max-width:700px){body:has(#login:not([hidden])) main{padding:20px}.auth-shell{display:block;min-height:0;border-radius:16px}.auth-brand{display:none}.auth-content{padding:36px 26px}.auth-mobile-brand{display:block;color:#10243d;font-size:17px;font-weight:750;margin-bottom:40px}.auth-mobile-brand span{font-size:10px;color:#6b86a7;letter-spacing:1.5px;margin-left:7px}.auth-content h1{font-size:25px}.auth-bottom{margin-top:18px}}@media(prefers-reduced-motion:reduce){.auth-spinner{animation:none}.auth-password input{transition:none}}
