/* Shared account entry, large tap targets and restrained form hierarchy. */
.mc-subhead{gap:10px;padding:12px 16px;min-height:68px;box-sizing:border-box}.mc-subhead h1{flex:1;font-size:21px!important;line-height:1.3;min-width:0}.mc-back,.mc-subhead>.mc-back{display:grid;place-items:center;width:48px;height:48px;flex:0 0 48px;border-radius:50%;font-size:inherit!important;touch-action:manipulation;color:inherit;text-decoration:none}.mc-back svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:2}.mc-back:hover,.mc-back:active{background:#f0f1f3}.mc-back:focus-visible,.mc-scan-button:focus-visible{outline:2px solid #7660a6;outline-offset:2px}.mc-scan-button{display:grid;place-items:center;width:44px;height:44px;flex:0 0 44px;border:0;border-radius:50%;background:#edeef0;color:#303234;padding:10px;cursor:pointer}.mc-scan-button svg{width:24px;height:24px}.mc-cover .mc-back{background:#697785;color:white}
.mc-import-entry{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 22px}.mc-import-entry button{font:inherit;font-size:14px;font-weight:600;padding:10px 14px;border:1px solid #ddd;border-radius:10px;background:#fafafa;color:inherit;cursor:pointer}.mc-import-entry span{font-size:12px;color:#85858b}.mc-terminal .mc-mt-field{border-radius:12px;padding:12px 15px 7px!important;font-size:13px!important;color:#64646d!important}.mc-terminal .mc-mt-field:focus-within{border-color:#777!important;box-shadow:0 0 0 2px #7771}.mc-terminal .mc-mt-field input{font-size:16px!important;color:#27272b!important;min-height:34px}.mc-terminal .mc-mt-field input::placeholder{font-size:14px;color:#9c9ca4}.mc-terminal .grid{gap:14px}.mc-terminal .mc-mt-field.mc-password{padding-right:58px!important}.mc-terminal-content{padding:20px 24px}.mc-server-search{margin:-8px 0 6px;font-size:12px;color:#85858b}.mc-server-search p{margin:7px 0}.mc-server-search details{line-height:1.6}.mc-server-search summary{cursor:pointer;color:#67616f}.mc-server-search [role=listbox]{max-height:235px;overflow:auto;border:1px solid #e1e1e6;border-radius:12px;background:white;margin:6px 0}.mc-server-search button{display:block;width:100%;border:0;border-bottom:1px solid #eee;background:transparent;text-align:left;padding:12px;color:#303234;cursor:pointer}.mc-server-search button:focus,.mc-server-search button:hover{background:#f0eef7}.mc-server-search strong,.mc-server-search small{display:block;overflow-wrap:anywhere}.mc-server-search strong{font-size:14px}.mc-server-search small{color:#85858b;font-size:12px}
.mc-scan-dialog{position:fixed;inset:0;margin:auto;width:calc(100% - 32px);max-width:480px;max-height:90dvh;overflow:auto;padding:22px;border:0;border-radius:20px;background:#fff;color:#303234;font-family:Arial,'Microsoft YaHei',sans-serif;box-sizing:border-box}.mc-scan-dialog::backdrop{background:#0007;backdrop-filter:blur(3px)}.mc-scan-dialog header{display:flex;align-items:center;justify-content:space-between;gap:12px}.mc-scan-dialog h2{font-size:21px;color:inherit;margin:0}.mc-scan-dialog header button{width:44px;height:44px;border:0;background:#f0f1f3;border-radius:50%;font-size:25px;color:inherit}.mc-scan-dialog p{font-size:14px;line-height:1.6;margin:14px 0;color:#75757d}.mc-scan-options{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:18px 0}.mc-scan-dialog label{font-size:13px;color:inherit}.mc-scan-dialog select{width:100%;font-size:16px;margin-top:8px;border:1px solid #dadae0;border-radius:10px;background:white;color:#303234;padding:12px 8px}.mc-scan-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:18px 0}.mc-scan-actions button,.mc-scan-file,.mc-scan-camera button,.mc-scan-dialog [data-batch-start]{display:grid;place-items:center;position:relative;min-height:48px;box-sizing:border-box;border:0;border-radius:12px;background:#303234;color:#fff!important;font-size:15px!important;text-align:center;padding:12px;cursor:pointer;text-decoration:none;overflow:hidden}.mc-scan-file{background:#f0f1f3;color:#303234!important}.mc-scan-file input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}.mc-scan-dialog .mc-scan-consent{display:flex;gap:10px;align-items:flex-start;margin:18px 0;line-height:1.6}.mc-scan-consent input{width:18px;height:18px;flex:0 0 18px;margin:2px 0}.mc-scan-consent small{display:block;overflow-wrap:anywhere;font-size:11px;color:#818188}.mc-scan-dialog .mc-scan-hint{font-size:12px;color:#8c8c94}.mc-scan-camera video{display:block;width:100%;max-height:35dvh;object-fit:contain;background:#17171a;border-radius:12px}.mc-scan-camera button{width:100%;margin-top:8px}.mc-scan-dialog .mc-scan-manual{display:block;width:100%;border:0;background:none;color:#696173;padding:14px;cursor:pointer}.mc-scan-dialog [data-scan-status],.mc-scan-dialog [data-batch-status]{color:inherit}.mc-template{display:block;margin:15px 0;color:#655092;text-decoration:underline}.mc-batch-dialog [data-batch-rows] article{padding:14px 0;border-bottom:1px solid #eee}.mc-batch-dialog article>div{display:flex;justify-content:space-between;gap:10px;font-size:14px}.mc-batch-dialog article span,.mc-batch-dialog article small{font-size:12px;color:#777}.mc-batch-dialog article small{display:block;margin-top:5px;overflow-wrap:anywhere}.mc-batch-dialog .mc-import-error{color:#ba465b;font-size:12px;margin:5px 0 0}.mc-scan-dialog [data-batch-start]{width:100%}.mc-scan-dialog button:disabled{opacity:.45;cursor:default}.mc-scan-dialog [data-batch-cancel]{width:100%;padding:14px;border:0;background:none;color:#a24b59}.mc-batch-view{display:block;text-align:center;margin-top:15px;color:#655092}
.mc-scan-dialog [hidden],.mc-server-search [hidden]{display:none!important}
[data-theme=dark] .mc-scan-dialog,[data-theme=dark] .mc-terminal,[data-theme=dark] .mc-server-search [role=listbox]{background:#202027!important;color:#ececf0!important}[data-theme=dark] .mc-scan-dialog select,[data-theme=dark] .mc-import-entry button{background:#292932;color:#eee;border-color:#454550}[data-theme=dark] .mc-terminal input{color:#eee!important}[data-theme=dark] .mc-back:hover,[data-theme=dark] .mc-scan-button{background:#34343e;color:#eee}
@media(max-width:360px){.mc-subhead{padding:10px}.mc-subhead h1{font-size:19px!important}.mc-terminal-content{padding:16px}.mc-scan-dialog{padding:16px}.mc-import-entry span{font-size:11px}}
.mc-server-search{position:relative}.mc-server-search [role=listbox]{position:absolute;z-index:15;left:0;right:0;top:0;margin:0;max-height:none;border:1px solid #ececf0;box-shadow:0 10px 30px #0002;border-radius:14px;overflow:hidden}.mc-server-results-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:15px 16px;color:#67676c;font-size:13px}.mc-server-search .mc-server-results-head button{width:auto;padding:0;border:0;color:#377ca7;white-space:nowrap;font-size:13px}.mc-server-results-list{max-height:min(390px,48dvh);overflow:auto;overscroll-behavior:contain}.mc-server-search .mc-server-results-list button{display:flex;gap:12px;align-items:center;border:0;padding:14px 16px}.mc-server-radio{width:20px;height:20px;flex:0 0 20px;border:1.5px solid #929298;border-radius:50%}.mc-server-mark{display:grid;place-items:center;width:43px;height:43px;flex:0 0 43px;background:#ececf3;color:#575463;border-radius:8px;font-size:16px;font-weight:700}.mc-server-results-list strong{font-size:17px;font-weight:500;line-height:1.4}.mc-server-results-list small{font-size:12px;line-height:1.6;color:#95959c}.mc-scan-options{grid-template-columns:1fr}
.mc-terminal,.mc-terminal input,.mc-terminal select,.mc-terminal button{font-family:Arial,'Microsoft YaHei',sans-serif!important}.mc-terminal .mc-environment,.mc-terminal .mc-mt-consent{margin:0!important}.mc-terminal .mc-environment{min-height:44px}.mc-terminal .mc-mt-consent{padding-top:6px}.mc-terminal .mc-mt-field{padding-top:10px!important;padding-bottom:5px!important}.mc-terminal .mt5-note{font-size:12px!important;line-height:1.6!important}.mc-terminal .mc-subhead{border-bottom:1px solid #eee}.mc-terminal .mc-connect-submit{margin-top:4px!important;border-radius:12px!important;font-size:17px!important}.mc-terminal .mc-mt-field input{min-height:31px}.mc-terminal-content>.mc-import-entry{margin-bottom:18px}

.mc-terminal .mc-mt-field.mc-invalid{border-color:#d34159!important}.mc-terminal .mc-mt-field.mc-invalid>span,.mc-terminal .mc-field-error{color:#d34159!important}.mc-terminal .mc-field-error{margin:-8px 12px 0;font-size:14px;line-height:1.5}.mc-terminal .mc-field-error[hidden]{display:none}

.mc-platform-logo.mc-platform-image{overflow:hidden;padding:0}.mc-platform-image img{display:block;width:100%;height:100%;object-fit:contain;border-radius:8px}

/* All member/account UI follows the shared site theme; broker logo colors stay intact. */
html:root[data-surface=mobile] .mobile-app :is(.mc-member,.mc-terminal,.mc-scan-dialog){background:var(--panel);color:var(--text)!important}
html:root[data-surface=mobile] .mobile-app :is(.mc-subhead,.mc-mt-field,.mc-platforms>a,.mc-platforms>button,.mc-group,.mc-account,.mc-scan-dialog select){border-color:var(--border)!important;background:var(--panel);color:var(--text)!important}
html:root[data-surface=mobile] .mobile-app :is(.mc-member,.mc-terminal,.mc-scan-dialog) :is(h1,h2,h3,strong,input,select,textarea){color:var(--text)!important}
html:root[data-surface=mobile] .mobile-app :is(.mc-back,.mc-scan-button,.mc-tools button,.mc-tools a,.mc-template,.mc-server-results-head button){color:var(--purple)!important}
html:root[data-surface=mobile] .mobile-app :is(.mc-scan-button,.mc-tools button,.mc-tools a,.mc-soft,.mc-edit,.mc-import-entry button,.mc-scan-file,.mc-scan-dialog header button){background:var(--panel2)!important;color:var(--purple)!important;border-color:var(--border)!important}
html:root[data-surface=mobile] .mobile-app :is(.mc-primary,.mc-connect-submit,.mc-scan-actions button,.mc-scan-camera button,[data-batch-start]){background:var(--purple)!important;border-color:var(--purple)!important;color:#fff!important}
html:root[data-surface=mobile] .mobile-app :is(.mc-muted,.mc-terminal .mt5-note,.mc-scan-dialog p,.mc-import-entry span,.mc-server-search,.mc-scan-consent small){color:var(--muted)!important}
html:root[data-surface=mobile] .mobile-app .mc-terminal input:focus{outline:none;box-shadow:none}
html:root[data-surface=mobile] .mobile-app .mc-mt-field:focus-within{border-color:var(--purple)!important;box-shadow:0 0 0 2px color-mix(in srgb,var(--purple) 15%,transparent)}
html:root[data-surface=mobile] .mobile-app :is(.mc-field-error,.mc-import-error,.mc-mt-field.mc-invalid>span){color:var(--red)!important}
html:root[data-surface=mobile] .mobile-app .mc-mt-field.mc-invalid{border-color:var(--red)!important}
html:root[data-surface=mobile] .mobile-app :is(.mc-back,.mc-scan-button):focus-visible{outline-color:var(--purple)}
.mc-tools [aria-disabled=true]{opacity:.7}
.mc-home .mc-tools{justify-content:flex-start!important;gap:14px}
.mc-home .mc-tools>[data-member-info="scan"]{margin-right:auto}

.mc-terminal .mc-remember-server{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:14px;margin:0}.mc-terminal .mc-remember-server input{width:17px;height:17px;flex:none;accent-color:var(--purple)}.mc-terminal [data-mt-error]:empty{display:none}.mc-terminal [data-mt-server-picker]{min-width:0;max-width:100%}
.mc-login-attempts{margin-top:16px;padding-top:12px;border-top:1px solid var(--border,#ddd)}
.mc-login-attempts h2{font-size:16px;margin:0 0 4px}.mc-login-attempts>p{font-size:12px;color:var(--muted,#777);margin:0 0 8px}
.mc-login-attempts article{display:flex;align-items:center;gap:6px;border-radius:10px;background:var(--panel2,#f4f3f7);margin:6px 0;padding:4px}
.mc-login-attempts button{border:0;background:transparent;color:inherit;min-height:44px;padding:8px}
.mc-login-attempts [data-mt-retry]{flex:1;min-width:0;text-align:left}.mc-login-attempts strong,.mc-login-attempts small{display:block;overflow-wrap:anywhere}
.mc-login-attempts strong{font-size:14px}.mc-login-attempts small{font-size:12px}.mc-login-attempts strong span{font-size:11px;color:var(--red,#b33c4d);margin-left:6px}
.mc-login-attempts .mc-attempt-error{color:var(--red,#b33c4d);margin-top:2px}.mc-login-attempts [data-mt-forget]{flex-shrink:0;color:var(--muted,#777);font-size:13px}
