body.newmagic .account-compact-form{max-width:none!important;width:100%!important}
body.newmagic .account-compact-form :is(label,input,select,textarea){max-width:none!important;min-width:0}
body.newmagic .account-compact-form>.form-grid>label{width:100%!important}
body.newmagic .account-compact-form>.form-grid>label :is(input,select){width:100%!important}
body.newmagic .account-compact-form>.form-grid>.notice{width:100%;max-width:none!important;margin:0}
body.newmagic .account-compact-form #childContractFields{min-width:0;width:100%}
body.newmagic [data-limit-draft-root]>.help,body.newmagic [data-limit-draft-root]>.limit-presets{grid-column:1/-1}
body.newmagic .account-compact-form>.form-grid,body.newmagic #modal .account-compact-form>.form-grid{width:100%!important;max-width:none!important;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
body.newmagic .account-compact-form [hidden],body.newmagic .limit-provider [hidden]{display:none!important}
body.newmagic .account-section{display:block;margin:18px 0;padding:18px;border:1px solid #e7d6ec;border-radius:12px;background:#fffafd;min-width:0;width:100%}
body.newmagic .account-section>summary{display:flex;align-items:center;gap:12px;min-height:38px;font-size:16px;font-weight:700;color:#5b236d;cursor:pointer;list-style:none}
body.newmagic .account-section>summary:after,body.newmagic .limit-provider>summary:after{content:'';width:8px;height:8px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg);margin-left:auto;margin-right:5px;transition:transform .15s}
body.newmagic .account-section:not([open])>summary:after,body.newmagic .limit-provider:not([open])>summary:after{transform:rotate(-45deg)}
body.newmagic .account-section>summary small{font-size:12px;font-weight:400;color:#916a9d}
body.newmagic .access-group{margin-top:16px}.access-group-head{display:flex;align-items:center;gap:10px;padding:10px 12px;background:#f6f1fa;border-radius:8px;color:#803798}
body.newmagic .access-group-head button{font-size:12px;padding:4px 8px;border:0;background:transparent;min-height:32px}
body.newmagic .access-group-head button:first-of-type{margin-left:auto}
body.newmagic .count-pill{display:inline-grid;place-items:center;min-width:24px;height:24px;padding:0 7px;border-radius:20px;color:white;background:#9e39ba;font-size:12px;font-weight:700}
body.newmagic .access-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:12px}
body.newmagic .access-card{display:flex!important;align-items:center;justify-content:space-between;gap:8px;padding:12px 14px;background:#f7f3fa;border:1px solid #ede3f1;border-radius:10px;margin:0!important;min-width:0;font-size:14px!important}
body.newmagic .access-card>span:first-child{font-weight:600}.access-card small{display:block;font-size:11px;font-weight:400;color:#9975a5;margin-top:3px}
body.newmagic .access-switch{position:relative;display:block;flex:0 0 64px;width:64px;height:29px}
body.newmagic .access-switch input{position:absolute;width:100%;height:100%;inset:0;margin:0;opacity:0;z-index:2;cursor:pointer}
body.newmagic .switch-track{display:block;width:100%;height:100%;border-radius:18px;background:#d1c5d5;border:1px solid #bbacc1;box-shadow:inset 0 2px 4px #55336220;position:relative}
body.newmagic .switch-track i{position:absolute;width:21px;height:21px;top:3px;left:3px;background:white;border-radius:50%;box-shadow:0 1px 3px #37213e35;transition:left .15s}
body.newmagic .switch-label:after{content:'停用';position:absolute;right:6px;top:5px;color:#59445f;font-size:11px;font-weight:700;line-height:17px}
body.newmagic .access-switch input:checked+.switch-track{background:linear-gradient(#ffdf62,#ffbc18);border-color:#eab51e}
body.newmagic .access-switch input:checked+.switch-track i{left:37px}.access-switch input:checked+.switch-track .switch-label:after{content:'啟用';left:6px;right:auto;color:#653c0b}
body.newmagic .access-switch input:focus-visible+.switch-track{outline:2px solid #a44bbf;outline-offset:3px}.access-switch input:disabled+.switch-track{opacity:.45}
body.newmagic .account-field-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 18px;max-width:none!important;width:100%!important;margin-top:12px}
body.newmagic .account-field-grid>label{display:flex!important;flex-direction:column;gap:7px;min-width:0;margin:0!important;font-weight:600;font-size:14px}
body.newmagic .account-field-grid :is(input,select){width:100%;min-width:0;max-width:none;height:40px}
body.newmagic .account-field-grid small{font-size:11px;font-weight:400;color:#9974a4}
body.newmagic .contract-bulk{display:flex;align-items:end;gap:10px;flex-wrap:wrap;padding:12px;background:#f6f0fa;border-radius:8px;margin-top:12px}
body.newmagic .contract-bulk label{display:grid;gap:6px;font-size:13px;margin:0}.contract-bulk input{width:170px}.contract-bulk [data-contract-feedback]{font-size:12px;color:#8d368f}
body.newmagic .limit-presets{display:flex;flex-wrap:wrap;gap:9px;margin:12px 0}
body.newmagic .limit-presets button{border-color:#e6ba50;color:#5d3b12;background:linear-gradient(#ffe88d,#ffc638);font-weight:700}
body.newmagic .limit-provider{margin:14px 0;padding:14px;border:1px solid #e6d8ed;border-radius:11px;background:#fffafd}
body.newmagic .limit-provider>summary{display:flex;align-items:center;gap:10px;cursor:pointer;list-style:none;min-height:38px;color:#7a3291}
body.newmagic .limit-provider>summary small{font-size:12px;font-weight:400;color:#a383ad}
body.newmagic .vendor-monogram{display:grid;place-items:center;width:32px;height:32px;border-radius:9px;background:#f0e5f7;color:#8e3da5;font-weight:800;font-size:12px}
body.newmagic .limit-custom-bulk{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;align-items:end;gap:12px;margin:12px 0;padding:12px;background:#f8f2fa;border-radius:8px}
body.newmagic .limit-custom-bulk label{display:grid;gap:6px;font-size:12px;min-width:0;margin:0}.limit-custom-bulk input{width:100%;min-width:0}
body.newmagic .limit-game-details{margin-top:12px}.limit-game-details>summary{font-size:13px;color:#81518f;padding:8px;cursor:pointer}
body.newmagic .limit-game-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;max-height:380px;overflow:auto;padding:4px 6px 8px 0;overscroll-behavior:contain}
body.newmagic .limit-game{padding:12px;background:#f6f1f9;border-radius:8px;min-width:0;border:1px solid #ece2f1}
body.newmagic .limit-game>label{display:grid;gap:7px;margin:0;font-size:13px;font-weight:600;min-width:0}.limit-game select{width:100%;min-width:0}.limit-game>small{display:block;font-size:11px;color:#94729e;margin-top:7px}
body.newmagic .limit-row-range{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:10px}.limit-row-range label{display:grid;gap:5px;font-size:11px;min-width:0}.limit-row-range input{width:100%;min-width:0}
body.newmagic .account-identity{display:flex;align-items:center;gap:10px;min-width:210px;max-width:360px;white-space:normal}
body.newmagic .account-identity>div{min-width:0;line-height:1.7;overflow-wrap:anywhere}.account-identity .muted{font-size:11px;margin-right:5px}.account-identity strong{font-size:14px;color:#4a2858}
body.newmagic .account-avatar{width:46px;height:46px;flex:0 0 46px;padding:8px;display:grid;place-items:center;border:1px solid #e2c6ed;border-radius:14px;background:#eee0f6;color:#9650b6}
.account-avatar svg{display:block;width:100%;height:100%}.account-avatar.avatar-1{background:#ffe6ee;color:#c34a82}.account-avatar.avatar-2{background:#fff1cd;color:#aa7b22}.account-avatar.avatar-3{background:#dcf3f3;color:#388f97}.account-avatar.avatar-4{background:#e6e9ff;color:#7275b3}
body.newmagic .account-inspect{display:inline-grid;place-items:center;vertical-align:middle;width:28px;height:28px;padding:5px;margin-left:5px;border:0;background:#f2e9fa;color:#9952ad;border-radius:7px}.account-inspect svg{display:block;width:16px;height:16px}
body.newmagic .account-id-link{display:inline;padding:2px 0;border:0;background:transparent;color:#83379d;font-weight:700;white-space:normal;text-align:left;min-height:28px}
body.newmagic .account-id-link:hover{text-decoration:underline;color:#bc3fbf}
body.newmagic .detail-toolbar{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:14px}
body.newmagic .detail-toolbar button{min-height:38px;border-color:#d4b3df;background:#f8effc;color:#7b3194}
body.newmagic .detail-hero{display:flex;gap:14px;align-items:center;padding:18px;background:linear-gradient(110deg,#f5e7ff,#fff5fd);border:1px solid #e6c9f0;border-radius:13px}
body.newmagic .detail-hero-avatar{display:grid;place-items:center;flex:0 0 56px;width:56px;height:56px;border-radius:16px;background:linear-gradient(145deg,#ba6ed0,#7730a0);color:#fff3ff;padding:10px}
body.newmagic .detail-hero-avatar svg{display:block;width:100%;height:100%}.detail-hero h3{font-size:21px!important;margin:4px 0!important}.detail-hero p{margin:0;color:#80558e}.detail-hero small{color:#9b6aaa}.detail-hero>.detail-status{margin-left:auto}
body.newmagic .detail-path{padding:12px 0;color:#966ca5;font-size:12px;line-height:1.8}
body.newmagic #modal .account-detail-designed .detail-card{padding:14px;background:#fff;border-color:#e6d6ed;box-shadow:0 3px 12px #62327608}
body.newmagic .detail-card>h3{display:flex;gap:9px;align-items:center;padding-bottom:10px;border-bottom:1px solid #eee3f3;font-size:15px}
body.newmagic .detail-card-icon{display:inline-grid;place-items:center;flex:0 0 25px;width:25px;height:25px;border-radius:7px;color:white;background:#9d6ac4;font-size:15px;font-weight:800;line-height:1}
body.newmagic .detail-card-icon.pink{background:#d874a3}.detail-card-icon.green{background:#45ad9a}.detail-card-icon.gold{background:#d8a442}
body.newmagic .detail-status{display:inline-block;border-radius:20px;padding:4px 10px;font-size:12px;font-weight:700;background:#eee7f0;color:#8f7f95;white-space:nowrap}
body.newmagic .detail-status.enabled{background:#e6f5eb;color:#298052}.detail-status.disabled{background:#fbe9ed;color:#b2506c}
body.newmagic .detail-balance{display:block;font-size:25px;font-weight:800;color:#8a37a1;line-height:1.5;margin:15px 0;letter-spacing:.3px}
body.newmagic .detail-action-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:12px}
body.newmagic .detail-action-grid button{min-height:40px;white-space:normal;font-size:13px;border-color:#e7d5ee;color:#803a92;background:#faf3ff}
body.newmagic .detail-setting-tile{padding:14px;border:1px solid #e5ceee;border-radius:10px;background:#faf5fd;display:grid;gap:7px}
body.newmagic .detail-copy{padding:2px 7px;font-size:11px;border:0;background:#f2e5f9;color:#9c4eb1;margin-left:6px}
body.newmagic .permission-radio{display:flex;gap:15px;flex-wrap:wrap;align-items:center;padding:15px;border:1px solid #e5cbed;border-radius:10px;margin:14px 0}
body.newmagic .permission-radio label{display:flex;align-items:center;gap:7px;min-height:36px;margin:0}.permission-radio input{width:auto!important;accent-color:#b542c8}
@media(max-width:480px){body.newmagic .detail-action-grid{grid-template-columns:minmax(0,1fr)}body.newmagic .detail-hero{padding:12px;gap:10px}.detail-hero h3{font-size:18px!important}.detail-hero-avatar{flex-basis:46px;width:46px;height:46px}}
body.newmagic .agency-navigation>.checks{display:inline-flex;gap:0;margin:12px 0;border:1px solid #dcb8e8;border-radius:9px;overflow:hidden;flex-wrap:wrap;background:#fff}
body.newmagic .agency-navigation>.checks>label{position:relative;margin:0;padding:10px 19px;min-height:42px;cursor:pointer;color:#653774;font-size:14px;font-weight:600;border-right:1px solid #eddbf3}
body.newmagic .agency-navigation>.checks>label:last-child{border-right:0}
body.newmagic .agency-navigation>.checks>label:has(input:checked){background:linear-gradient(#ffe778,#ffc526);color:#59310d}
body.newmagic .agency-navigation>.checks input{position:absolute;inset:0;opacity:0;width:100%;height:100%;cursor:pointer;margin:0}
body.newmagic .agency-navigation>.checks>label:has(input:focus-visible){outline:2px solid #aa4bc7;outline-offset:-3px}
@media(min-width:1500px){body.newmagic .account-field-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(min-width:1100px){body.newmagic .account-compact-form #childContractFields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 18px;align-items:start}body.newmagic #childContractFields>p{grid-column:1/-1}body.newmagic #childContractFields>[data-capabilities],body.newmagic #childContractFields>.form-section:has([data-limit-draft-root]){grid-column:1/-1}body.newmagic [data-limit-draft-root]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 18px}body.newmagic .account-compact-form>.form-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(min-width:901px){body.newmagic .account-access[open]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 18px}body.newmagic .account-access>summary{grid-column:1/-1}body.newmagic .access-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){body.newmagic .access-cards{grid-template-columns:repeat(2,minmax(0,1fr))}body.newmagic .limit-game-grid{grid-template-columns:minmax(0,1fr)}body.newmagic .limit-custom-bulk{grid-template-columns:repeat(2,minmax(0,1fr))}.limit-custom-bulk button{grid-column:1/-1}body.newmagic .access-card{padding:10px;gap:4px}}
@media(max-width:480px){body.newmagic .account-compact-form>.form-grid,body.newmagic #modal .account-compact-form>.form-grid,body.newmagic .account-field-grid{grid-template-columns:minmax(0,1fr)}body.newmagic .account-section{padding:12px}.access-group-head{flex-wrap:wrap}.access-group-head b{font-size:13px}.access-group-head button{padding:3px}.access-card small{font-size:10px}}
