#mzn-deckbuilder-app{font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;padding:1.5rem 1.75rem 2rem;background:#f5f5f7;color:#111;box-sizing:border-box}.mzn-db-header{display:flex;justify-content:space-between;align-items:flex-end;gap:1.5rem;margin-bottom:1.5rem}.mzn-db-header-title{display:flex;flex-direction:column;gap:.3rem}.mzn-db-header-title h1{font-size:1.8rem;margin:0}.mzn-db-subtitle{margin:.15rem 0 0;display:inline-block;padding:.12rem .7rem;border-radius:999px;background:#fff;border:1px solid #e0e0e8;font-size:.8rem;font-weight:500;color:#555}.mzn-db-header-summary{font-size:.9rem;display:flex;align-items:center;gap:.5rem;white-space:nowrap}.mzn-db-summary-label{text-transform:uppercase;letter-spacing:.08em;font-size:.75rem;color:#888}.mzn-db-summary-count{font-weight:600;font-size:.85rem;padding:.12rem .6rem;border-radius:999px;background:#fff;border:1px solid #e0e0e8}.mzn-db-summary-error{color:#b00020;font-weight:500}.mzn-db-layout{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:1.5rem}.mzn-db-sidebar{background:#fff;border-radius:.5rem;padding:1rem 1.1rem;box-shadow:0 1px 3px #0000000f;border:1px solid #e0e0e5}.mzn-db-sidebar-title{margin:0 0 .75rem;font-size:1rem}.mzn-db-sidebar-text{margin:0;font-size:.9rem;color:#555}.mzn-db-main{min-height:200px;background:#fcfcff;border-radius:.75rem;padding:.75rem .9rem 1rem;box-shadow:0 1px 3px #0000000a;border:1px solid #e4e4f0}.mzn-db-loading{font-size:.95rem;color:#555}.mzn-db-error{padding:.75rem .9rem;border-radius:.5rem;background:#ffe8e8;color:#8a0015;font-size:.9rem;border:1px solid #ffb7c0}.mzn-db-error-sub{display:block;font-size:.8rem;margin-top:.25rem;color:#b00020}.mzn-db-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:1rem;margin-top:.4rem}.mzn-db-card{background:#fff;border-radius:.5rem;overflow:hidden;box-shadow:0 1px 3px #0000000f;border:1px solid #e0e0e5;display:flex;flex-direction:column;transition:transform .12s ease,box-shadow .12s ease,border-color .12s ease;cursor:pointer}.mzn-db-card:hover{transform:translateY(-2px) scale(1.01);box-shadow:0 4px 10px #0000001f;border-color:#d0d0dd}.mzn-db-card:active{transform:translateY(0)}.mzn-db-card-image-wrapper{background:#111;aspect-ratio:3 / 4;position:relative}.mzn-db-card-image{width:100%;height:100%;object-fit:cover;display:block}.mzn-db-card-image-placeholder{width:100%;height:100%;display:flex;align-items:center;justify-content:center;color:#bbb;font-size:.85rem}.mzn-db-hover-preview{position:fixed;z-index:9999;pointer-events:none}.mzn-db-hover-preview-inner{background:#111;border-radius:.6rem;box-shadow:0 8px 24px #00000073;overflow:hidden}.mzn-db-hover-preview-image{display:block;width:320px;max-width:40vw;height:auto}.mzn-db-hover-preview-image--terra{transform:rotate(90deg);transform-origin:center center}.mzn-db-card-body{padding:.35rem .6rem .45rem;display:flex;flex-direction:column;gap:.15rem}.mzn-db-card-zoom{position:absolute;right:6px;top:6px;z-index:3;background:#ffffffd9;border:1px solid #ccc;border-radius:999px;width:1.4rem;height:1.4rem;display:flex;align-items:center;justify-content:center;font-size:.75rem;cursor:pointer;transition:background .12s ease,border-color .12s ease,transform .08s ease}.mzn-db-card-zoom:hover{background:#fff;border-color:#bbb;transform:translateY(-1px)}.mzn-db-card-name{font-size:.9rem;font-weight:600;line-height:1.15}.mzn-db-card-name-link{font-size:.9rem;font-weight:600;line-height:1.15;text-decoration:none;color:inherit;cursor:pointer}.mzn-db-card-name-link:hover{text-decoration:underline}.mzn-db-card-meta{font-size:.8rem;color:#666;display:flex;align-items:center;flex-wrap:wrap;gap:.3rem}.mzn-db-card-aura{font-weight:500}.mzn-db-card-meta-dot{font-size:.8rem;opacity:.6}.mzn-db-card-cost{font-feature-settings:"tnum"}.mzn-db-card-qty-controls{margin-top:.2rem;display:flex;align-items:center;justify-content:space-between;gap:.35rem}.mzn-db-qty-btn{border:1px solid #d0d0dd;background:#f7f7fb;border-radius:999px;width:1.3rem;height:1.3rem;display:inline-flex;align-items:center;justify-content:center;font-size:.7rem;padding:0;cursor:pointer;transition:background .12s ease,border-color .12s ease,transform .08s ease}.mzn-db-qty-btn:hover{background:#f0f0f8;border-color:#c0c0d0;transform:translateY(-1px)}.mzn-db-qty-btn:active{transform:translateY(0)}.mzn-db-qty-count{min-width:1.6rem;text-align:center;font-variant-numeric:tabular-nums;font-size:.78rem;color:#444}.mzn-db-toolbar{display:flex;justify-content:space-between;align-items:center;gap:1rem;margin-bottom:.75rem;font-size:.85rem;background:#f9f9ff;border-radius:.6rem;padding:.45rem .75rem;border:1px solid #e4e4f0}.mzn-db-toolbar-left,.mzn-db-toolbar-right{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap}.mzn-db-label{font-size:.85rem;color:#555}.mzn-db-select{padding:.25rem .5rem;font-size:.85rem;border-radius:.35rem;border:1px solid #d0d0dd;background:#fff}.mzn-db-select:disabled{background:#f3f3f5;color:#aaa}.mzn-db-button{padding:.25rem .7rem;font-size:.8rem;border-radius:999px;border:1px solid #d0d0dd;background:#fff;cursor:pointer;transition:background .12s ease,border-color .12s ease,transform .08s ease}.mzn-db-button:hover:not(:disabled){background:#f2f2f7;border-color:#c0c0d0;transform:translateY(-1px)}.mzn-db-button:disabled{opacity:.5;cursor:default}.mzn-db-page-indicator{font-size:.8rem;color:#666}.mzn-db-search-input{padding:.3rem .5rem;font-size:.85rem;border-radius:.35rem;border:1px solid #d0d0dd;background:#fff;min-width:220px}.mzn-db-search-input::placeholder{color:#aaa}.mzn-db-filters-toggle{padding:.25rem .6rem;font-size:.8rem;border-radius:999px;border:1px solid #f2c06b;background:#fff7e6;cursor:pointer;display:inline-flex;align-items:center;gap:.35rem;transition:background .12s ease,border-color .12s ease,transform .08s ease}.mzn-db-filters-toggle:hover{background:#ffeec9;border-color:#e6a94e;transform:translateY(-1px)}.mzn-db-filters-toggle--active{border-color:#e28b32;background:#ffe3b0;color:#7a4b00}.mzn-db-filters-toggle-icon{font-size:.9rem;opacity:.75}.mzn-db-filters-panel{margin-bottom:.75rem;padding:.75rem .9rem;background:#fff;border-radius:.5rem;border:1px solid #e0e0e5;box-shadow:0 1px 3px #0000000a;font-size:.85rem}.mzn-db-filters-section{margin-bottom:.75rem}.mzn-db-filters-section-advanced{border-top:1px solid #ececf5;padding-top:.6rem;margin-top:.4rem}.mzn-db-filters-title{margin:0 0 .4rem;font-size:.8rem;text-transform:uppercase;letter-spacing:.08em;color:#777}.mzn-db-filters-row{display:flex;flex-wrap:wrap;gap:.75rem;margin-bottom:.5rem}.mzn-db-filter-group{flex:1 1 220px;min-width:220px}.mzn-db-filter-group-header{width:100%;display:flex;justify-content:space-between;align-items:center;padding:.35rem .6rem;border-radius:.45rem;border:1px solid #e0e0e5;background:#f7f7fb;font-size:.8rem;font-weight:600;color:#333;cursor:pointer;text-align:left;transition:background .12s ease,border-color .12s ease,box-shadow .12s ease,transform .08s ease}.mzn-db-filter-group-header:hover{background:#f0f0f8;border-color:#d0d0e0;box-shadow:0 1px 3px #0000000f;transform:translateY(-1px)}.mzn-db-filter-chevron{font-size:.8rem;opacity:.7}.mzn-db-filter-group-body{margin-top:.3rem;padding:.4rem .5rem .35rem;border-radius:.45rem;border:1px solid #e6e6f0;background:#fff;box-shadow:0 1px 2px #00000008}.mzn-db-filters-checkbox-group{display:flex;flex-wrap:wrap;gap:.3rem .75rem}.mzn-db-checkbox-label{display:inline-flex;align-items:center;gap:.25rem;font-size:.8rem;color:#444;cursor:pointer}.mzn-db-checkbox-label input[type=checkbox]{width:.9rem;height:.9rem;cursor:pointer}.mzn-db-advanced-toggle{width:100%;display:flex;justify-content:space-between;align-items:center;padding:.4rem .7rem;border-radius:.55rem;border:1px solid #dedeea;background:#f9f9ff;font-size:.8rem;font-weight:600;color:#333;cursor:pointer;margin-bottom:.4rem;transition:background .12s ease,border-color .12s ease,box-shadow .12s ease,transform .08s ease}.mzn-db-advanced-toggle:hover{background:#f0f0fa;border-color:#cfd0e5;box-shadow:0 1px 3px #0000000f;transform:translateY(-1px)}.mzn-db-advanced-body{margin-top:.2rem}.mzn-db-filters-range{display:flex;align-items:center;gap:.25rem}.mzn-db-range-separator{font-size:.8rem;color:#999}.mzn-db-deck-panel{background:#fff;border-radius:.5rem;padding:1rem 1.1rem;box-shadow:0 1px 3px #0000000f;border:1px solid #e0e0e5;display:flex;flex-direction:column;gap:.75rem;position:sticky;top:1rem;align-self:flex-start;max-height:calc(100vh - 2rem);overflow-y:auto;overflow-x:visible}.mzn-db-status{margin-top:.25rem;padding:.55rem .65rem;border-radius:.45rem;background:#f7f7fb;border:1px solid #e2e2ee;font-size:.78rem}.mzn-db-status-title{margin:0 0 .3rem;text-transform:uppercase;letter-spacing:.08em;font-size:.7rem;color:#777;font-weight:600}.mzn-db-status-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.15rem}.mzn-db-status-item{display:flex;align-items:center;justify-content:space-between}.mzn-db-status-label{position:relative;padding-left:.75rem;color:#555}.mzn-db-status-label:before{content:"";position:absolute;left:0;top:50%;transform:translateY(-50%);width:.4rem;height:.4rem;border-radius:999px;background:#cfd2e6}.mzn-db-status-value{font-variant-numeric:tabular-nums;font-weight:500;color:#444;padding:.05rem .45rem;border-radius:999px;background:#00000005;border:1px solid #dedeea;font-size:.7rem}.mzn-db-status-item--ok .mzn-db-status-label:before{background:#6bbf76}.mzn-db-status-item--ok .mzn-db-status-value{background:#e9f6ec;border-color:#b9e0c0;color:#25682e}.mzn-db-status-item--warn .mzn-db-status-label:before{background:#f2b653}.mzn-db-status-item--warn .mzn-db-status-value{background:#fff2dd;border-color:#f3c58a;color:#b06a00}.mzn-db-deck-header{display:flex;flex-direction:column;align-items:flex-start;gap:.5rem}.mzn-db-view-toggle{display:flex;align-items:center;justify-content:center;gap:.4rem;margin-bottom:.4rem;padding:2px;border-radius:999px;background:#f5f5fb;border:1px solid #e0e0ed;position:relative;overflow:hidden}.mzn-db-view-toggle:before{content:"";position:absolute;top:2px;bottom:2px;left:2px;width:calc(50% - 3px);border-radius:999px;background:#ffe7a3;box-shadow:0 1px 3px #0000001f;transition:left .2s ease-out,opacity .2s ease-out;opacity:.9}.mzn-db-view-toggle:has(.mzn-db-view-toggle-button.is-active:last-child):before{left:calc(50% + 1px)}.mzn-db-view-toggle-button{position:relative;z-index:1;flex:1 1 0;padding:.25rem .7rem;font-size:.78rem;border-radius:999px;border:none;background:transparent;cursor:pointer;color:#555;font-weight:500;white-space:nowrap;transition:color .15s ease,transform .08s ease}.mzn-db-view-toggle-button:hover{transform:translateY(-1px);color:#222}.mzn-db-view-toggle-button.is-active{color:#000;font-weight:600}.mzn-db-deck-title{margin:0;font-size:1rem;font-weight:600}.mzn-db-deck-subtitle{margin:0;font-size:.8rem;color:#777}.mzn-db-deck-summary{margin-top:.35rem;padding:.55rem .65rem .65rem;border-radius:.5rem;background:#f7f7fb;border:1px solid #e2e2ee;display:flex;flex-direction:column;gap:.45rem;font-size:.78rem;color:#444}.mzn-db-deck-summary-header{display:flex;justify-content:space-between;align-items:center;gap:.5rem}.mzn-db-deck-summary-title{font-size:.78rem;text-transform:uppercase;letter-spacing:.08em;font-weight:700;color:#666}.mzn-db-deck-summary-subtitle{font-size:.75rem;color:#888}.mzn-db-deck-summary-modes{display:inline-flex;border-radius:999px;background:#eeeef7;padding:.1rem;gap:.15rem}.mzn-db-deck-summary-mode-btn{border:none;background:transparent;font-size:.72rem;padding:.2rem .55rem;border-radius:999px;cursor:pointer;color:#666;transition:background .12s ease,color .12s ease}.mzn-db-deck-summary-mode-btn--active{background:#fff;color:#333;box-shadow:0 1px 3px #00000014}.mzn-db-deck-summary-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.25rem}.mzn-db-deck-summary-item{display:flex;flex-direction:column;gap:.18rem}.mzn-db-deck-summary-item-main{display:flex;justify-content:space-between;align-items:center;column-gap:.75rem}.mzn-db-deck-summary-label{font-size:.75rem;color:#555;flex:1 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mzn-db-deck-summary-count{flex:0 0 auto;font-variant-numeric:tabular-nums;font-weight:600;font-size:.8rem;color:#333;text-align:right;margin-left:.35rem}.mzn-db-deck-summary-bar-outer{position:relative;width:100%;height:.45rem;border-radius:999px;background:#e4e4f0;overflow:hidden}.mzn-db-deck-summary-bar-inner{position:absolute;inset:0;border-radius:inherit;background:linear-gradient(90deg,#f7c84f,#f28a3a);transform-origin:left center}.mzn-db-deck-summary-item--ok .mzn-db-deck-summary-bar-inner{background:linear-gradient(90deg,#6bbf76,#43a049)}.mzn-db-deck-summary-item--warn .mzn-db-deck-summary-bar-inner{background:linear-gradient(90deg,#f2b653,#f2992e)}.mzn-db-deck-list{margin:.25rem 0 0;padding:.5rem .25rem 0 0;border-top:1px solid #e6e6ee;flex:1;min-height:0;display:flex;flex-direction:column;gap:.35rem;font-size:.8rem;overflow-y:visible;overflow-x:hidden}.mzn-db-deck-list::-webkit-scrollbar{width:6px}.mzn-db-deck-list::-webkit-scrollbar-track{background:transparent}.mzn-db-deck-list::-webkit-scrollbar-thumb{background:#c8c8d6;border-radius:999px}.mzn-db-deck-list::-webkit-scrollbar-thumb:hover{background:#b0b0c4}.mzn-db-deck-list{scrollbar-width:thin;scrollbar-color:#c8c8d6 transparent}.mzn-db-deck-category{font-weight:700;text-align:center;margin:.6rem 0 .25rem;font-size:.78rem;letter-spacing:.04em;color:#222;text-transform:uppercase}.mzn-db-deck-empty{font-size:.8rem;color:#777;font-style:italic}.mzn-db-deck-main-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.25rem}.mzn-db-deck-main-item{display:flex;align-items:center;gap:.4rem;padding:.2rem .25rem;border-radius:.35rem;transition:background .12s ease}.mzn-db-deck-main-item:hover{background:#f7f7fb}.mzn-db-deck-main-button{border:1px solid #d0d0dd;background:#f7f7fb;border-radius:999px;width:1.4rem;height:1.4rem;display:inline-flex;align-items:center;justify-content:center;font-size:.75rem;padding:0;cursor:pointer;transition:background .12s ease,border-color .12s ease,transform .08s ease}.mzn-db-deck-main-button:hover{background:#f0f0f8;border-color:#c0c0d0;transform:translateY(-1px)}.mzn-db-deck-main-button:active{transform:translateY(0)}.mzn-db-deck-main-count{min-width:2.2rem;font-variant-numeric:tabular-nums;color:#555}.mzn-db-deck-main-name{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mzn-db-deck-caster-row{display:flex;align-items:center;justify-content:space-between;gap:.5rem;margin-top:.25rem}.mzn-db-deck-caster-name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mzn-db-lightbox{position:fixed;inset:0;z-index:9999;display:flex;justify-content:center;align-items:center}.mzn-db-lightbox-backdrop{position:absolute;inset:0;background:#000000a6;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}.mzn-db-lightbox-content{position:relative;z-index:1;max-width:90vw;max-height:90vh;display:flex;flex-direction:column;align-items:center;gap:.6rem;padding:1rem}.mzn-db-lightbox-image{max-width:75vw;max-height:80vh;border-radius:.5rem;box-shadow:0 8px 24px #0000004d}.mzn-db-lightbox-name{font-size:1.1rem;font-weight:600;color:#fff;text-align:center}.mzn-db-lightbox-aura{font-size:.9rem;color:#ddd;text-align:center}.mzn-db-lightbox-close{position:absolute;top:.5rem;right:.75rem;font-size:1.4rem;color:#fff;cursor:pointer;background:#0006;width:2rem;height:2rem;border-radius:999px;display:flex;align-items:center;justify-content:center;transition:background .12s ease}.mzn-db-lightbox-close:hover{background:#0009}.mzn-db-status,.mzn-db-stats-panel,.mzn-db-status-actions{animation:mznDbSectionFadeIn .18s ease-out}@keyframes mznDbSectionFadeIn{0%{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}@media(max-width:900px){.mzn-db-layout{grid-template-columns:minmax(0,1fr)}.mzn-db-deck-panel{margin-top:.5rem;position:static;top:auto}.mzn-db-header{flex-direction:column;align-items:flex-start}.mzn-db-header-summary{margin-top:.3rem}}@media(max-width:600px){#mzn-deckbuilder-app{padding:1rem 1rem 1.5rem}.mzn-db-grid{grid-template-columns:repeat(auto-fill,minmax(150px,1fr))}}
