/* muRED authentication and navigation — scoped to preserve account services. */
body .top-panel{background:linear-gradient(100deg,#190907,#280d0b 55%,#130808);border-bottom:1px solid #714126;box-shadow:0 6px 28px #0005}
body .top-panel .menu>li>a{border-radius:10px;transition:color .15s,background .15s}
body .top-panel .menu>li>a:hover,body .top-panel .menu>li.active>a{background:linear-gradient(90deg,#bd712319,transparent);color:#ffc85b}
body .top_panel-right .mured-auth-link,body .top_panel-right .header-language>.main-item{border-radius:10px!important;min-height:42px!important;border-color:#925d35!important;box-shadow:inset 0 1px #ffdeae12,0 4px 12px #0003;letter-spacing:.35px!important}
body .top_panel-right .mured-auth-create,body .top_panel-right .header-language>.main-item{background:linear-gradient(145deg,#391913,#20100d)!important;color:#f2d9bc!important}
body .top_panel-right .mured-auth-login{background:linear-gradient(130deg,#f1b746,#ba681d)!important;color:#251207!important;text-shadow:none!important;border-color:#efb34c!important}
body .top_panel-right .mured-auth-link:hover,body .top_panel-right .header-language>.main-item:hover{filter:brightness(1.13);transform:translateY(-1px)}
body .top_panel-right .header-language .hidden-block{top:calc(100% + 8px);border-radius:12px;background:#24100e;border-color:#795034;padding:8px;box-shadow:0 16px 35px #0009}
body .top_panel-right .header-language .hidden-block li a{border-radius:7px;min-height:42px;font-size:12px}
body .top-panel a:focus-visible,body #signin_modal :focus-visible{outline:2px solid #ffd278;outline-offset:4px}
body #signin_modal.mured-signin{box-sizing:border-box;width:440px;max-width:calc(100vw - 32px);max-height:calc(100dvh - 40px);overflow:auto;margin-left:0;left:50%;translate:-50% 0;padding:32px;border:1px solid #976438;border-top:3px solid #e9ae4d;border-radius:20px;background:radial-gradient(ellipse at 15% 0,#75271d66,transparent 65%),linear-gradient(145deg,#2c1210,#140b0b);box-shadow:0 30px 100px #000b,inset 0 1px #ffe0a51a;color:#f5e5d5;text-align:left}
body #signin_modal.mured-signin:before,body #signin_modal.mured-signin:after{display:none}
body #signin_modal #close_modal{position:absolute;right:14px;top:14px;display:flex;align-items:center;justify-content:center;width:34px;height:34px;min-width:0;padding:0;background:#ffffff08;border:1px solid #c08c4933;border-radius:10px;font:26px/1 Arial;color:#ddc4ac;box-shadow:none;cursor:pointer}
body #signin_modal .mured-signin-brand{display:grid;grid-template-columns:46px auto;grid-template-rows:24px 18px;column-gap:12px;align-items:center;margin:0 0 25px}
body #signin_modal .mured-signin-brand>span{grid-row:1/3;display:grid;place-items:center;width:44px;height:44px;border:1px solid #bd853f;border-radius:13px;background:linear-gradient(135deg,#743523,#2d110e);color:#f5cb79;font:bold 28px Georgia;box-shadow:0 0 24px #df8b2220}
body #signin_modal .mured-signin-brand b{font:bold 22px Georgia;color:#f1ca83;letter-spacing:2px}
body #signin_modal .mured-signin-brand small{font:10px/1.4 Arial;letter-spacing:3px;color:#bb9479}
body #signin_modal h3{margin:0 0 25px;padding:0;color:#fff0dc;font:bold 28px/1.2 Arial;text-align:left}
body #signin_modal .modal_form{padding:0;margin:0}
body #signin_modal .formGroup{margin:0 0 18px;display:block;width:100%}
body #signin_modal .formGroup-name,body .mured-login-page label{display:block;margin:0 0 9px;color:#d6bca8;font:600 13px/1.5 Arial;text-align:left}
body #signin_modal input,body .mured-login-page #login_form_page input{box-sizing:border-box;width:100%;height:48px;padding:0 14px;background:#100909;border:1px solid #754a34;border-radius:10px;color:#fff1df;font:16px/1.4 Arial;box-shadow:inset 0 2px 5px #0003;outline:none;transition:border-color .15s,box-shadow .15s}
body #signin_modal input:focus,body .mured-login-page #login_form_page input:focus{border-color:#e3ac58;box-shadow:0 0 0 3px #e3ac581a}
body #signin_modal .formGroup-button{margin-top:26px}
body #signin_modal button[type=submit],body .mured-login-page #login_form_page button[type=submit]{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:48px;padding:12px 18px;border:1px solid #f1bb61;border-radius:10px;background:linear-gradient(115deg,#edb654,#be6b26);color:#29120a;font:800 13px/1.4 Arial;letter-spacing:.8px;box-shadow:0 6px 22px #a4521a25;text-transform:uppercase;cursor:pointer}
body #signin_modal button[type=submit]:hover,body .mured-login-page button[type=submit]:hover{filter:brightness(1.08)}
body form[aria-busy=true] button[type=submit]{opacity:.8;cursor:wait}
body form[aria-busy=true] button[type=submit]:before{content:"";width:15px;height:15px;border:2px solid #29120a44;border-top-color:#29120a;border-radius:50%;animation:mured-auth-spin .7s linear infinite}
@keyframes mured-auth-spin{to{transform:rotate(360deg)}}
body #signin_modal .mured-signin-recovery{display:block;margin:18px 0 0;font:13px/1.5 Arial;color:#d5b292}
body #signin_modal .mured-signin-register{display:flex;justify-content:space-between;align-items:center;margin-top:24px;padding-top:20px;border-top:1px solid #8a553533;color:#f0c679;font:600 13px/1.5 Arial}
body .mured-login-page #login_form_page{max-width:420px;margin:16px auto;padding:28px;border:1px solid #895b35;border-radius:16px;background:linear-gradient(145deg,#351613,#180c0a);box-sizing:border-box}
body .mured-login-page #login_form_page .form-group:last-child{display:flex;flex-wrap:wrap;justify-content:space-between;gap:16px;margin:24px 0 0}
body .mured-login-page #login_form_page a{color:#efc37b;font-size:13px}
@media(max-width:760px){body #signin_modal.mured-signin{padding:26px 22px;border-radius:16px}body #signin_modal h3{font-size:25px;margin-bottom:22px}body #signin_modal .mured-signin-brand{margin-bottom:22px}body .top_panel-right .mured-auth-link{padding:0 11px!important;font-size:10px!important}body .top_panel-right .mured-auth-login{min-width:68px!important}body .top_panel-right .header-language>.main-item{border-radius:10px!important}body .mured-login-page #login_form_page{padding:22px 16px}}
body #signin_modal.mured-signin{left:50%!important;margin:0!important;width:440px!important;transition:opacity .15s,transform .15s}
@media(max-width:360px){body .top_panel-right .mured-auth-link{padding:0 8px!important;font-size:9px!important}body .top_panel-right .mured-auth-actions{gap:5px!important}body #signin_modal.mured-signin{padding:24px 18px;max-width:calc(100vw - 24px)}}
@media(prefers-reduced-motion:reduce){body .top-panel a,body #signin_modal input{transition:none}body form[aria-busy=true] button[type=submit]:before{animation:none}}

/* Authentication dialogs: one real form per mode; no cloned passwords or duplicate IDs. */
#mured-auth-dialog button{background-image:none;position:static;min-width:0;width:auto;padding:0;font:14px/1.4 Arial;text-shadow:none;text-transform:none;box-shadow:none;transform:none}
#mured-auth-dialog button:before,#mured-auth-dialog button:after{display:none}

html.mured-auth-open{overflow:hidden;scrollbar-gutter:stable}
.mured-auth-dialog,.mured-auth-dialog *{box-sizing:border-box}
body #mured-auth-dialog{width:min(850px,calc(100vw - 40px));max-width:none;max-height:calc(100dvh - 40px);padding:0;margin:auto;overflow:auto;border:1px solid #80522f;border-radius:24px;background:#1b0d0c;color:#f8ebda;box-shadow:0 30px 100px #000c;overscroll-behavior:contain;font:14px/1.5 Arial,sans-serif}
body #mured-auth-dialog[open]{display:grid;grid-template-columns:260px minmax(0,1fr)}
.mured-auth-dialog::backdrop{background:#080506cf;backdrop-filter:blur(6px)}
.mured-auth-dialog [hidden]{display:none!important}
.mured-auth-story{position:relative;display:flex;flex-direction:column;align-items:center;min-height:580px;padding:56px 22px 32px;overflow:hidden;background:radial-gradient(ellipse at 50% 18%,#bc66334a,transparent 60%),linear-gradient(160deg,#592018,#260c0b 60%,#160b0a);border-right:1px solid #e0ae4f25}
.mured-auth-story:before,.mured-auth-story:after{content:"";position:absolute;width:370px;height:370px;border:1px solid #f3ba5c1f;border-radius:50%;pointer-events:none;top:20px;left:-55px}
.mured-auth-story:after{width:460px;height:460px;top:-25px;left:-100px}
.mured-auth-emblem{display:grid;place-items:center;width:86px;height:100px;clip-path:polygon(50% 0,100% 18%,100% 72%,50% 100%,0 72%,0 18%);background:linear-gradient(135deg,#e5ad55,#7c3e24);font:bold 55px Georgia;color:#28100b;text-shadow:0 1px #ffdba488;filter:drop-shadow(0 8px 18px #0004)}
.mured-auth-story>strong{margin-top:22px;font:bold 38px Georgia;color:#f3ce8b;letter-spacing:3px}
.mured-auth-story>span{margin-top:8px;font-size:10px;letter-spacing:5px;color:#c09b7a}
.mured-auth-story-bottom{z-index:1;margin-top:auto;padding-top:100px;text-align:center}
.mured-auth-story-bottom small{display:block;color:#c09b7a;font-size:12px}
.mured-auth-story-bottom b{display:block;color:#f4d7af;font:25px/1.3 Georgia;margin-top:12px}
.mured-auth-story-bottom i{display:block;width:36px;height:3px;margin:22px auto 0;background:linear-gradient(90deg,#e6b150,#9d3023);border-radius:3px}
#mured-auth-dialog .mured-auth-close{position:absolute;z-index:3;right:14px;top:14px;display:grid;place-items:center;width:34px;min-width:34px;height:34px;padding:0;border:1px solid #bc8a4033;border-radius:50%;background:#fff6e309;color:#dcbf9d;font:25px Arial;box-shadow:none;cursor:pointer}
.mured-auth-close:hover{background:#ffffff15;color:white}
.mured-auth-body{padding:35px 34px 26px;min-width:0;background:radial-gradient(ellipse at 100% 0,#5c291d33,transparent 60%)}
.mured-auth-kicker{color:#ae8966;font-size:9px;letter-spacing:2px;text-transform:uppercase;padding-right:12px}
.mured-auth-tabs{display:flex;gap:6px;margin:23px 0 26px;padding:4px;border:1px solid #bd8b4526;border-radius:12px;background:#08060655}
#mured-auth-dialog .mured-auth-tabs button{flex:1;min-height:40px;padding:9px 12px;background:none;border:0;box-shadow:none;border-radius:8px;color:#ac9282;font:600 13px Arial;cursor:pointer;text-transform:none}
#mured-auth-dialog .mured-auth-tabs button[aria-current=page]{background:linear-gradient(110deg,#bb77332e,#6f34262e);color:#f8cd81;box-shadow:inset 0 0 0 1px #dda45042}
#mured-auth-dialog .mured-auth-body h2{padding:0;margin:0 0 8px;text-align:left;color:#f8e5c5;font:700 32px/1.15 Georgia;text-transform:none;letter-spacing:-.3px}
.mured-auth-subtitle{color:#b59b8e;margin:0 0 22px;font-size:13px;line-height:1.6}
.mured-auth-dialog form>label,.mured-auth-fields label,.mured-auth-label label{display:block;margin:14px 0 7px;color:#d2b6a3;font-weight:600;font-size:12px;text-align:left}
body #mured-auth-dialog input:not([type=checkbox]):not([type=hidden]),body #mured-auth-dialog select{display:block;width:100%;height:46px;min-width:0;margin:0;padding:10px 12px;border:1px solid #89553880;border-radius:9px;outline:none;background:#0f0909;color:#f6e8d7;font:16px/1.4 Arial;box-shadow:inset 0 2px 5px #0002;transition:border-color .15s,box-shadow .15s}
.mured-auth-dialog select option{background:#180c0b;color:#f9e5cd}
body #mured-auth-dialog input:focus,body #mured-auth-dialog select:focus{border-color:#dfb064;box-shadow:0 0 0 3px #dca24d18}
.mured-auth-label{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:14px;margin-bottom:7px}
.mured-auth-label label{margin:0}
.mured-auth-label a,.mured-auth-check a{color:#e4b16d;font-size:11px;text-decoration:none}
.mured-auth-password{position:relative}
#mured-auth-dialog .mured-auth-password input{padding-right:46px!important}
#mured-auth-dialog .mured-auth-password button{position:absolute;right:3px;top:3px;width:40px;min-width:40px;height:40px;display:grid;place-items:center;padding:0;background:none;box-shadow:none;border:0;color:#bca08b;cursor:pointer}
.mured-auth-password svg,.mured-auth-footnote svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.5}
#mured-auth-dialog .mured-auth-submit,.mured-auth-launch{display:flex;justify-content:space-between;align-items:center;gap:12px;width:100%;min-height:48px;margin:24px 0 0;padding:13px 18px;border:1px solid #f1c471;border-radius:10px;background:linear-gradient(105deg,#f3c677,#c78337);box-shadow:0 8px 24px #ad561b20;color:#32180c;font:700 14px/1.4 Arial;text-transform:none;cursor:pointer}
.mured-auth-submit:hover,.mured-auth-launch:hover{filter:brightness(1.07);color:#32180c}
.mured-auth-submit:disabled{opacity:.65;cursor:wait}
.mured-auth-footnote{display:flex;align-items:center;justify-content:center;gap:7px;margin-top:24px;padding-top:18px;border-top:1px solid #b58b4920;color:#977e6d;font-size:10px;line-height:1.5;text-align:center}
.mured-auth-footnote svg{width:14px;height:14px;flex-shrink:0}
.mured-auth-fields{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:16px}
.mured-auth-fields small{display:block;margin-top:6px;color:#967c6c;font:10px/1.5 Arial}
body #mured-auth-dialog .mured-auth-check{display:flex;gap:10px;align-items:flex-start;margin:20px 0 0;font:12px/1.7 Arial;color:#b9a08e;cursor:pointer}
.mured-auth-check input{accent-color:#d9a459;width:17px;height:17px;flex:0 0 17px;margin:2px 0 0}
.mured-auth-message{padding:12px 14px;margin:0 0 16px;border:1px solid #ac4f3c88;background:#7c241d28;border-radius:9px;white-space:pre-line;color:#f4c6b8;font-size:12px}
.mured-auth-message[data-state=success]{color:#cce6bf;border-color:#648854;background:#527b2920}
.mured-auth-captcha{margin-top:18px;max-width:100%;overflow-x:auto}
.mured-auth-captcha img{max-width:100%}
.mured-auth-rules{white-space:pre-line;max-height:180px;overflow:auto;background:#0d0808;border:1px solid #74472d;padding:14px;margin-top:15px;border-radius:8px;color:#c3ad9c;font-size:12px}
.mured-auth-dialog :focus-visible{outline:2px solid #f6ce83;outline-offset:3px}
.mured-auth-landing{padding:64px 30px!important;min-height:400px;text-align:center;border:1px solid #875a33;border-radius:18px;background:radial-gradient(ellipse at top,#61281e77,transparent),#1c0b0a}
.mured-auth-landing>span{font-size:11px;letter-spacing:4px;color:#ad865b}
.mured-auth-landing h1{font:40px/1.2 Georgia;color:#f6d28f;margin:20px 0 15px}
.mured-auth-landing p{color:#b9a08b}
.mured-auth-launch{max-width:290px;margin:30px auto}
.mured-google-slot{margin:18px auto 4px;min-height:44px;display:flex;justify-content:center}
@media(max-width:700px){body #mured-auth-dialog[open]{grid-template-columns:1fr;width:min(500px,calc(100vw - 24px));max-height:calc(100dvh - 24px);border-radius:18px}.mured-auth-story{display:none}.mured-auth-body{padding:29px 24px 23px}.mured-auth-tabs{margin:20px 0 24px}.mured-auth-dialog .mured-auth-body h2{font-size:30px}.mured-auth-landing h1{font-size:30px}}
@media(max-width:420px){.mured-auth-body{padding:28px 19px 20px}.mured-auth-fields{grid-template-columns:1fr;gap:0}.mured-auth-dialog .mured-auth-body h2{font-size:28px}.mured-auth-dialog .mured-auth-subtitle{font-size:12px}.mured-auth-footnote{margin-top:20px}.mured-auth-kicker{letter-spacing:1px}}
@media(prefers-reduced-motion:reduce){.mured-auth-dialog *{transition:none!important;animation:none!important}}

/* Use the official muRED brand asset. */
#mured-auth-dialog .mured-auth-logo{position:relative;z-index:1;display:block;flex:0 0 auto;width:360px;max-width:none;height:auto;margin:15px 0 0;object-fit:contain;filter:drop-shadow(0 10px 22px #0006)}

#mured-google-settings .mured-auth-launch{background:linear-gradient(110deg,#f3d080,#bb7828);color:#241107;border:1px solid #dba750;border-radius:12px;padding:14px 24px;font-weight:700;cursor:pointer}

#mured-auth-dialog .mured-auth-honeypot{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
#mured-auth-dialog .mured-auth-captcha{margin:18px 0 6px;min-height:78px;display:flex;justify-content:center}
#mured-auth-dialog .mured-captcha-note{display:block;text-align:center;color:#c4ad9a;font-size:12px;line-height:1.5;margin-bottom:18px}
#mured-auth-dialog .mured-auth-captcha{overflow:visible}
#mured-auth-dialog .mured-auth-captcha iframe{display:block}
#mured-auth-dialog .mured-auth-captcha>div{flex:0 0 304px;transform:scale(var(--auth-captcha-scale,1));transform-origin:top center}
/* Google's fixed-width network fallback must not widen the mobile form. */
#mured-auth-dialog .mured-auth-captcha:has(iframe[src*="/recaptcha/api/fallback"]){overflow-x:auto;justify-content:flex-start}
#mured-auth-dialog .mured-auth-captcha:has(iframe[src*="/recaptcha/api/fallback"])>div{flex:0 0 302px;margin-inline:auto;transform:none}
body #mured-auth-dialog{position:fixed;inset:0;height:fit-content;z-index:100010}
.mured-auth-shade{position:fixed;inset:0;background:#080506cf;backdrop-filter:blur(6px);z-index:100009}
.mured-auth-shade[hidden]{display:none}
