/* Standalone account modal. Scoped to the #ml-auth-dialog. */
body.ml-auth-open{overflow:hidden!important}
#ml-auth-dialog{box-sizing:border-box;position:fixed;inset:0;margin:auto;width:min(440px,calc(100% - 20px));max-height:min(91dvh,710px);padding:0;background:radial-gradient(ellipse at top right,#532136,#250710 75%);color:#f5e4cc;border:1px solid #ba8f5d;border-radius:14px;box-shadow:0 25px 70px #000b;overflow:hidden;font:15px/1.5 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}
#ml-auth-dialog::backdrop{background:#12040ccc;backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px)}
#ml-auth-dialog *{box-sizing:border-box}
#ml-auth-dialog .ml-head{display:flex;align-items:center;justify-content:space-between;padding:19px 23px 16px;border-bottom:1px solid #bd925e55;font:20px Georgia,serif;letter-spacing:.035em;color:#f2d29e}
#ml-auth-dialog .ml-close{border:0;background:transparent;color:#f1d7af;font-size:28px;cursor:pointer;line-height:1;min-height:36px;min-width:36px}
#ml-auth-dialog .ml-content{max-height:calc(91dvh - 75px);overflow:auto;padding:18px 23px calc(24px + env(safe-area-inset-bottom,0px))}
#ml-auth-dialog h2{font:26px/1.2 Georgia,serif;font-weight:normal;margin:10px 0 16px;color:#f4dcb9}
#ml-auth-dialog .ml-tabs{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:0 0 18px}
#ml-auth-dialog .ml-tabs button{font:15px Georgia,serif;color:#e3c3a2;border:1px solid #8c5a47;border-radius:7px;background:#3a101f;padding:11px 5px;cursor:pointer}
#ml-auth-dialog .ml-tabs button.active{color:#2a0c16;border-color:#f2d59a;background:#dfb783}
#ml-auth-dialog .ml-label{display:block;margin:13px 0 6px;color:#f1d9bc;font-size:14px}
#ml-auth-dialog .ml-input{display:block;width:100%;padding:13px 12px;border:1px solid #b99177;border-radius:7px;background:#fff9f0;color:#32131c;font:16px/1.3 -apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;appearance:auto;-webkit-appearance:auto}
#ml-auth-dialog .ml-input:focus{outline:2px solid #d8a35e;outline-offset:2px}
#ml-auth-dialog .ml-btn{display:block;width:100%;min-height:45px;margin:19px 0 0;border:1px solid #e8c58c;border-radius:7px;padding:10px 12px;background:linear-gradient(110deg,#cea771,#eed09a);color:#31101b;font:15px/1.4 -apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;cursor:pointer}
#ml-auth-dialog .ml-btn:disabled{opacity:.5;cursor:not-allowed}
#ml-auth-dialog .ml-btn--quiet{background:transparent;color:#e9c9a8;border-color:#ad795b;margin:9px 0 0}
#ml-auth-dialog .ml-actions{display:flex;gap:10px;flex-wrap:wrap}
#ml-auth-dialog .ml-actions .ml-btn{font-size:13px;flex:1 1 115px}
#ml-auth-dialog .ml-check{display:flex;gap:10px;align-items:flex-start;margin-top:16px;font-size:13px;line-height:1.65;color:#dcc1a4}
#ml-auth-dialog .ml-check input{flex:none;margin:4px 0 0;width:18px;height:18px;accent-color:#cc9c5e;appearance:auto;-webkit-appearance:checkbox}
#ml-auth-dialog a{color:#f4d39e;text-decoration:underline;text-underline-offset:2px}
#ml-auth-dialog .ml-small{font-size:13px;color:#d5baa2;line-height:1.6}
#ml-auth-dialog .ml-notice{font-size:13px;color:#e6b1a2;margin:12px 0}
#ml-auth-dialog .ml-status{font-size:13px;margin:18px 0 0;padding:12px;border:1px solid #b7a075;border-radius:8px;background:#3e1c25;color:#f0d9b1}
#ml-auth-dialog .ml-status.error{border-color:#bc7874;color:#ffcdc2}
#ml-auth-dialog .ml-status[hidden]{display:none}
#ml-auth-dialog .ml-account{font-size:18px;font-weight:600;color:#f1cc92;overflow-wrap:anywhere}
#ml-auth-dialog .ml-device-list{display:flex;flex-direction:column;gap:12px}
#ml-auth-dialog .ml-device{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center;padding:12px;border:1px solid #a4775988;border-radius:8px}
#ml-auth-dialog .ml-device strong{display:block;font-size:14px;font-weight:500}
#ml-auth-dialog .ml-device small{display:block;font-size:11px;color:#ccaf9b;margin-top:5px;overflow-wrap:anywhere}
#ml-auth-dialog .ml-device button{background:transparent;border:1px solid #b98c65;border-radius:6px;padding:8px;color:#ebcfaa;cursor:pointer}
@media (max-width:767px){#ml-auth-dialog{width:100%;max-width:none;inset:auto 0 0;margin:0;border-radius:18px 18px 0 0;border-bottom:0;max-height:92dvh}#ml-auth-dialog .ml-content{max-height:calc(92dvh - 70px)}#ml-auth-dialog .ml-head{padding-top:22px}}
