/* Standalone authentication and application-error pages */
:root{--ink:#182c45;--muted:#607088;--blue:#245edb;--line:#e2e8f0;--bg:#f4f6fa;--red:#bd343f;--green:#188363;--amber:#9b6500}
*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--ink);font:16px Arial,sans-serif}
button,input,select{font:inherit}
button,a,select{cursor:pointer}
button{border:1px solid var(--line);border-radius:8px;background:white;padding:12px 18px;color:var(--ink);font-weight:600}
button:hover{filter:brightness(.97)}
.primary{background:var(--blue);border-color:var(--blue);color:white}
.brand{font-size:25px;color:white;font-weight:700;padding:0 15px 9px}
.brand span{color:#7ad9b5}
h1{font-size:29px;margin:0 0 9px;letter-spacing:-.6px}
p{margin:0;color:var(--muted);line-height:1.5}
h2{font-size:19px;margin:0 0 8px}
input,select{border:1px solid #cfd8e5;border-radius:7px;background:white;padding:12px;width:100%;color:var(--ink)}
.subtle{font-size:13px;color:var(--muted)}
input[type=checkbox]{width:16px;height:16px;accent-color:var(--blue)}
.check-row{display:flex;align-items:center;gap:12px;margin:17px 0;font-size:14px}
@media(max-width:850px){.brand{font-size:21px;padding:0}h1{font-size:25px}}
:root{--ink:#181b19;--muted:#6f746f;--blue:#24533f;--line:#dfe3de;--bg:#fafbf9;--red:#a6383e;--green:#327354;--amber:#96701f}
body{background:var(--bg);color:var(--ink)}
button{border-radius:6px;font-weight:500}
button.primary{background:#254b39;border-color:#254b39}
input,select{border-color:#d8ded6;border-radius:5px;color:#20241f}
input[type=checkbox]{accent-color:#315a44}
.brand{padding:0;font-size:11px;display:flex;align-items:center;flex-direction:column;gap:9px;color:#f1f6ef;letter-spacing:.2px}
.brand:before{content:'Mc';display:grid;place-items:center;width:34px;height:34px;border:1px solid #9ebba9;border-radius:9px;font-size:25px;font-weight:600;color:#f3f7ef}
.brand span{display:none}
.text-link{border:0;padding:0;font-size:10px;color:#5f6d53;background:transparent;margin-top:11px}
@media(max-width:850px){.brand{font-size:11px;flex-direction:row;gap:10px}.brand:before{width:28px;height:28px;font-size:21px}}
@media(min-width:851px){.text-link{font-size:11px}}
:root{--ink:#171717;--muted:#737373;--blue:#202020;--line:#e5e5e5;--bg:#fafafa}
body{background:#fafafa;color:#171717}
.brand{color:#fff}
.brand:before{border-color:#69866d;color:#ffbc0d}
input,select{border-color:#d9d9d9;color:#202020}
.text-link{color:#555}
.primary,button.primary{background:#ffbc0d;color:#171717;border-color:#ffbc0d}
.subtle{color:#777}
input[type=checkbox]{accent-color:#264f36}
[x-cloak]{display:none!important}
.login{display:grid;place-items:center;min-height:100vh;background:#264f36}
.login-card{width:440px;max-width:95%;background:white;border-radius:12px;padding:38px}
.login-card>.brand{color:#264f36;font-size:30px;display:block;font-weight:bold}
.login-card h1{font-size:22px;margin-top:22px}
.login-card label{display:block;margin:20px 0;color:#6a755e;font-size:12px}
.login-card input{display:block;width:100%;margin-top:8px}
.login-card button{width:100%}
.login .error{color:#a13d32}
.icon{width:20px;height:20px;display:inline-block;flex-shrink:0;vertical-align:middle}
.brand:before,.brand:after{content:none!important}
.brand-lockup{display:flex;gap:10px;align-items:center}
.brand-symbol{width:39px;height:44px;flex-shrink:0}
.brand-word{font-size:27px;font-weight:750;letter-spacing:-1px;color:#234d36}
.brand-word span{color:inherit;display:inline!important}
.login-brand{text-decoration:none;display:inline-flex;margin-bottom:26px}
.login-card .brand-word{font-size:32px}
.login-card .brand-symbol{width:43px;height:48px}
.telegram-button{display:flex;align-items:center;justify-content:center;gap:10px}
.telegram-button .icon{color:#229ed9}
.icon-button{border:0;background:transparent;padding:8px}
.icon-button:hover{background:#f3f5ef}
.login-card .login-brand .brand-word{display:inline-block}
.telegram-auth-page{padding:28px 16px;background:radial-gradient(ellipse at 50% 0%,#346447 0%,#234d36 55%,#1b3d2b 100%);font-family:Arial,sans-serif}
.telegram-auth-card{width:500px;max-width:100%;padding:30px 34px 24px;border:1px solid #ffffff60;border-radius:22px;box-shadow:0 22px 65px #102b2040}
.telegram-auth-header{display:flex;align-items:center;justify-content:space-between;gap:15px;padding-bottom:24px;border-bottom:1px solid #edf0e9}
.telegram-auth-header .login-brand{margin:0}
.telegram-auth-header .brand-word{font-size:26px}
.telegram-auth-header .brand-symbol{width:32px;height:37px}
.auth-protected{display:flex;gap:5px;align-items:center;font-size:10px;color:#7b877b;white-space:nowrap}
.auth-protected .icon{width:14px;height:14px}
.telegram-auth-intro{text-align:center;padding:26px 0 23px}
.telegram-auth-emblem{display:grid;place-items:center;width:62px;height:62px;margin:0 auto 18px;background:#edf7fc;border:1px solid #dceef8;border-radius:20px;color:#229ed9}
.telegram-auth-emblem .icon{width:31px;height:31px;transform:translateX(-2px)}
.telegram-auth-card h1{margin:0 0 12px;font-size:24px;line-height:1.25;letter-spacing:-.5px;color:#213e2c}
.telegram-auth-intro p{font-size:13px;line-height:1.7;color:#7a8479}
.telegram-auth-steps{list-style:none;padding:0;margin:0 0 23px;display:flex;flex-direction:column;gap:18px}
.telegram-auth-steps li{display:flex;gap:12px;align-items:flex-start}
.telegram-auth-steps li>span{display:grid;place-items:center;width:25px;height:25px;flex-shrink:0;border-radius:50%;background:#f3f5ef;color:#52644d;font-size:11px;font-weight:700}
.telegram-auth-steps b{display:block;font-size:12px;color:#2c3e2d;margin:2px 0 5px}
.telegram-auth-steps small{display:block;color:#83907f;font-size:11px;line-height:1.65}
.telegram-auth-primary{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;padding:15px 18px;border:1px solid #229ed9;border-radius:9px;background:#229ed9;color:white;text-decoration:none;font-size:14px;font-weight:600;box-shadow:0 4px 10px #229ed91a;transition:background .15s}
.telegram-auth-primary:hover{background:#178cc4}
.telegram-auth-primary>span:last-child{margin-left:auto;opacity:.8}
.telegram-auth-primary .icon{width:20px;height:20px}
.telegram-auth-primary>span:nth-child(2){margin-right:auto}
.telegram-auth-primary[aria-disabled=true]{background:#e7ece5;border-color:#e7ece5;color:#8c9789;box-shadow:none;cursor:default}
.telegram-auth-status{display:flex;gap:10px;align-items:center;margin:17px 0 22px;padding:13px 12px;border:1px solid #e5eadf;border-radius:9px;background:#f7f9f4}
.auth-status-dot{width:7px;height:7px;border-radius:50%;background:#c0982e;flex-shrink:0;box-shadow:0 0 0 4px #c0982e13}
.telegram-auth-status b{display:block;font-size:11px;color:#526047;margin-bottom:5px;font-weight:600}
.telegram-auth-status small{display:block;font-size:10px;color:#8b9486;line-height:1.4}
.telegram-auth-status time{margin-left:auto;font-size:12px;font-weight:600;font-variant-numeric:tabular-nums;color:#647158;align-self:flex-start;padding-top:1px}
.telegram-auth-status[data-state=expired],.telegram-auth-status[data-state=denied]{background:#fff6ed;border-color:#f2dfcb}
.telegram-auth-status[data-state=expired] .auth-status-dot,.telegram-auth-status[data-state=denied] .auth-status-dot{background:#be7740}
.telegram-auth-status[data-state=approved] .auth-status-dot{background:#298452}
.telegram-auth-status[data-state=connection]{background:#fffaf0}
.telegram-auth-renew{margin:-5px 0 22px}
.telegram-auth-renew[hidden]{display:none}
.telegram-auth-primary:focus-visible{outline:3px solid #ffbc0d;outline-offset:4px}
@media(max-width:540px){.telegram-auth-page{padding:18px 16px}.telegram-auth-card{padding:24px 22px 21px;border-radius:18px}.telegram-auth-card h1{font-size:22px}.telegram-auth-header{padding-bottom:20px}.telegram-auth-header .brand-word{font-size:24px}.auth-protected{font-size:9px}.telegram-auth-intro{padding:23px 0}.telegram-auth-status{gap:9px}.telegram-auth-status small{max-width:220px}}
.telegram-auth-page{grid-template-columns:minmax(0,1fr)}
.telegram-auth-card{width:100%;max-width:500px;min-width:0}
.telegram-auth-steps li>div,.telegram-auth-status>div{min-width:0}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition-duration:.001ms!important;animation-duration:.001ms!important;scroll-behavior:auto!important}}
html{scrollbar-gutter:stable}
input[type=checkbox],input[type=radio]{appearance:none!important;-webkit-appearance:none!important;width:19px!important;height:19px!important;min-width:19px!important;padding:0!important;margin:0!important;flex:0 0 19px;border:1.5px solid #aab9a5;border-radius:6px;background:#fff;display:inline-grid;place-content:center;vertical-align:middle;cursor:pointer;transition:background .12s,border-color .12s}
input[type=checkbox]:before{content:'';width:9px;height:5px;border:solid white;border-width:0 0 2px 2px;transform:rotate(-45deg) scale(0)}
input[type=checkbox]:checked{background:#28563c;border-color:#28563c}
input[type=checkbox]:checked:before{transform:rotate(-45deg) scale(1)}
input[type=radio]{border-radius:50%}
input[type=radio]:checked{border:5px solid #28563c}
input[type=checkbox]:focus-visible,input[type=radio]:focus-visible{outline:3px solid #ffbc0d70;outline-offset:2px}
input[type=checkbox]:disabled,input[type=radio]:disabled{opacity:.45;cursor:default}
.choice-label,.check-row{display:flex!important;align-items:center!important;gap:9px!important;line-height:1.45;min-height:30px}
.choice-label input{align-self:center}
fieldset{border:0;padding:0;margin:0;min-width:0}
fieldset:disabled{opacity:.72}
fieldset:disabled input,fieldset:disabled textarea,fieldset:disabled select{background:#f6f7f4;cursor:default}
.password-input{display:flex;position:relative;align-items:center;width:100%;margin-top:8px}
.password-input input{padding-right:46px}
.password-input button{position:absolute;right:5px;top:50%;transform:translateY(-50%);padding:7px}
.password-editor-header{display:flex;align-items:center;justify-content:space-between;margin-top:22px;font-size:13px;gap:10px}
.password-editor-header .text-link{display:inline-flex;align-items:center;gap:6px;font-size:12px}
.password-editor-header .icon{width:15px;height:15px}
[data-password-editor]>label{display:block;margin-top:16px;font-size:13px}
.password-requirements{padding:14px;background:#f6f8f3;border:1px solid #e5eadf;border-radius:10px;margin:18px 0}
.password-requirements h3{font-size:12px;margin:0 0 10px}
.password-requirements ul{display:grid;grid-template-columns:1fr 1fr;gap:9px 14px;padding:0;margin:0;list-style:none}
.password-requirements li{display:flex;align-items:center;gap:7px;font-size:11px;color:#818b7b;line-height:1.45}
.password-requirements .icon{width:15px;height:15px;flex-shrink:0}
.password-requirements li.is-valid{color:#287447}
.password-requirements p{font-size:10px;line-height:1.5;margin:12px 0 0}
.generated-password{padding:12px;border:1px solid #f2d273;border-radius:10px;background:#fffbef}
.generated-password p{font-size:11px}
.generated-password>div{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:10px}
.generated-password code{word-break:break-all;font-size:13px}
@media(max-width:800px){.password-requirements ul{grid-template-columns:1fr}}
.standalone-toast{position:fixed;top:20px;right:20px;z-index:2000;padding:12px 18px;background:#28563c;color:white;border-radius:9px;font-size:12px;box-shadow:0 10px 25px #0002}
input[type=checkbox]{background-image:none!important;position:relative!important;display:inline-block!important;vertical-align:middle!important;line-height:1!important;box-sizing:border-box!important}
input[type=checkbox]::before{display:none!important;content:none!important}
input[type=checkbox]:checked{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m5 10 3 3 7-7' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")!important;background-size:100% 100%!important;background-position:center!important;background-repeat:no-repeat!important}
.choice-label{margin-block:0!important;min-height:28px!important}
.choice-label>span{min-width:0}
[data-password-editor] .password-editor-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:22px 0 8px}
[data-password-editor] .password-editor-header>label{margin:0;flex:1;min-width:0;white-space:normal}
[data-password-editor] .password-editor-header>button{width:auto;flex:none;margin:0;padding:6px 0;white-space:nowrap;line-height:1.4}
[data-password-editor] .password-input{display:block;position:relative;width:100%;margin:8px 0 0}
[data-password-editor] .password-input>input{display:block;width:100%;margin:0;min-height:44px;padding-right:48px}
[data-password-editor] .password-input>button{position:absolute;inset:50% 4px auto auto;transform:translateY(-50%);width:36px;height:36px;min-width:36px;padding:8px;margin:0;display:grid;place-items:center;border:0;background:transparent}
[data-password-editor] .generated-password>div{display:grid;grid-template-columns:minmax(0,1fr) 36px;gap:12px;align-items:center}
[data-password-editor] .generated-password code{overflow-wrap:anywhere;word-break:normal;line-height:1.6}
[data-password-editor] .generated-password button{display:grid;place-items:center;width:36px;height:36px;margin:0;padding:8px;justify-self:end}
[data-password-editor] .icon-button .icon{width:20px;height:20px}
@media(max-width:420px){[data-password-editor] .password-editor-header{flex-wrap:wrap;gap:2px 10px}[data-password-editor] .password-editor-header>label{flex-basis:100%}.password-requirements ul{grid-template-columns:1fr}}
.auth-error-card{width:460px;max-width:calc(100vw - 32px);padding:32px;border:1px solid #ffffff70;box-shadow:0 18px 60px #102b2030}
.auth-error-card .login-brand{margin:0 0 28px}
.auth-error-symbol{display:grid;place-items:center;width:44px;height:44px;border-radius:12px;background:#fff5dd;color:#9b6500;margin-bottom:18px}
.auth-error-symbol .icon{width:25px;height:25px}
.auth-error-card h1.auth-error-message{font-size:18px;font-weight:500;line-height:1.55;margin:0 0 14px;color:#263d2e}
.auth-error-code{display:block;font:10px/1.5 ui-monospace,monospace;color:#879080;overflow-wrap:anywhere}
.auth-error-return{display:flex;align-items:center;justify-content:center;width:100%;padding:13px 16px;margin-top:28px;border-radius:7px;background:#ffbc0d;color:#19251c;font-size:14px;font-weight:600;text-decoration:none}
.auth-error-return:hover{background:#f4b000}
.auth-error-return:focus-visible{outline:3px solid #28563c;outline-offset:3px}
@media(max-width:480px){.auth-error-card{padding:26px 24px}.auth-error-card .brand-word{font-size:28px}}
[data-guide-statistics-example]:has(>[data-guide-example])+[data-guide-statistics-content],[data-guide-report-schedule-example]:has(>[data-guide-example])~[data-guide-empty]{display:none}
[data-guide-statistics-example]:empty,[data-guide-report-schedule-example]:empty{display:none}
[data-message-preview]{white-space:pre-wrap;overflow-wrap:anywhere}
