/* Isolation: no selectors from either legacy calculator are overridden. */
[data-fc14-open]{display:none!important}
body.fc14-enabled [data-fc14-open]{display:inline-flex!important;align-items:center;justify-content:center;gap:5px;background:#151b1c;color:#e6cd88;border:1px solid rgba(211,182,108,.47);border-radius:8px;padding:7px 11px;font:600 12px system-ui,-apple-system,sans-serif;cursor:pointer}
.fc14-dialog-backdrop[hidden]{display:none!important}
.fc14-dialog-backdrop{position:fixed;inset:0;background:rgba(2,4,8,.86);z-index:2147483600;display:flex;justify-content:center;align-items:center;padding:12px;box-sizing:border-box;backdrop-filter:blur(9px)}
.fc14-dialog{color:#e6e5e0;background:#101419;border:1px solid #514936;border-radius:14px;width:min(780px,100%);max-height:min(92vh,840px);overflow-y:auto;box-shadow:0 24px 85px rgba(0,0,0,.66);padding:18px;box-sizing:border-box;font:13px/1.5 system-ui,-apple-system,'Segoe UI',sans-serif;overscroll-behavior:contain}
.fc14-dialog *{box-sizing:border-box}.fc14-dialog button,.fc14-dialog select{font:inherit;color:inherit}
.fc14-header,.fc14-options,.fc14-pager,.fc14-tabs,.fc14-actions,.fc14-row-actions,.fc14-detail-head{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.fc14-header{justify-content:space-between;position:sticky;top:-18px;background:#101419;z-index:1;padding:6px 0 12px;border-bottom:1px solid #342f25}
.fc14-header h2{font-size:19px;line-height:1.1;margin:3px 0}.fc14-header small{font-size:10px;letter-spacing:.1em;color:#bcaa81}
.fc14-source{font-size:11px;color:#99a2a8;margin:10px 0}.fc14-dialog button:not(.fc14-open-item){border:1px solid #4c483c;background:#1b2227;border-radius:7px;padding:6px 11px;cursor:pointer}
.fc14-dialog button[disabled]{opacity:.45;cursor:not-allowed}.fc14-dialog button:hover:not([disabled]){border-color:#d4b976}
.fc14-tabs{margin:13px 0;gap:5px}.fc14-tabs button[aria-pressed="true"]{background:#51412a;color:#f1d790;border-color:#d5b96f}
.fc14-options{justify-content:space-between;margin:7px 0 15px}.fc14-options select{padding:6px;border-radius:5px;background:#181f22;border:1px solid #605a49}
.fc14-login{color:#e5c77a}.fc14-results{min-height:120px}.fc14-row{padding:12px 3px;border-top:1px solid #343839}
.fc14-open-item{text-align:left;width:100%;padding:0;background:transparent;border:0;cursor:pointer;color:#e1e4e3}
.fc14-row strong,.fc14-hero strong{display:block;font-weight:700;font-size:14px}.fc14-row small,.fc14-hero small{display:block;color:#a0a7aa;margin-top:3px}
.fc14-top{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0}.fc14-top span{border:1px solid #494637;border-radius:5px;padding:2px 5px;color:#d4c19e;font-size:11px}
.fc14-top b{color:#f2d17f}.fc14-pager{justify-content:center;padding-top:16px}.fc14-empty{padding:26px 10px;color:#a6adb4;text-align:center}
.fc14-hero{display:flex;gap:15px;align-items:center;padding:13px;border:1px solid #4c4434;border-radius:10px;background:#171b1c}.fc14-ovr{font-size:32px;font-weight:850;min-width:60px;color:#ead094}.fc14-ovr small{font-size:9px;font-weight:500;color:#b3ab9d}
.fc14-detail h4{margin-bottom:8px;font-size:14px;color:#e3ca89}.fc14-attrs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
.fc14-attrs span{border:1px solid #30363a;border-radius:4px;padding:4px 6px;font-size:11px;color:#adb5bd}.fc14-attrs b{color:#e1d2ab;float:right}
.fc14-lock{margin:12px 0;padding:8px 12px;border:1px solid #3c342a;border-radius:8px;background:#14191b}.fc14-actions{margin-top:15px}
@media(max-width:550px){.fc14-dialog-backdrop{padding:0;align-items:end}.fc14-dialog{width:100%;max-height:94dvh;padding:15px 12px;border-radius:17px 17px 0 0}.fc14-header{top:-15px}.fc14-attrs{grid-template-columns:repeat(2,minmax(0,1fr))}.fc14-dialog button:not(.fc14-open-item){padding:8px}}

.fc14-gallery-viewer{display:block;width:100%;height:min(720px,80dvh);min-height:300px;border:0;background:#080d11;}

body.fc14-enabled #playerCardPanel #mb24Library,body.fc14-enabled #playerCardPanel [data-mb29-save]{display:none!important}
