.deck-workspace .portal-top{padding:14px 24px}.deck-workspace .portal-top .brand{font-size:28px}
.deck-workspace .portal-layout{grid-template-columns:126px minmax(0,1fr);gap:20px;padding:20px 24px;min-height:0}
.deck-workspace:has(.de-filter-overlay) .portal-layout{z-index:10}
.deck-workspace .portal-content{width:100%;margin:0;min-width:0}
.deck-workspace .portal-nav{padding:8px 0;gap:5px}.deck-workspace .portal-nav button{padding:12px 9px;font-size:13px;gap:5px}.deck-workspace .portal-nav small{display:none}
.deck-workspace .portal-backdrop{opacity:.32}.deck-workspace .portal-embers{display:none}
.deck-editor{color:var(--frost);--de-border:var(--slate-3);--de-muted:var(--frost-2);--de-accent:var(--neon-3)}
.deck-editor .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.deck-editor button,.deck-editor select,.deck-editor input,.deck-editor summary{font:inherit}
.deck-editor button{border:1px solid var(--de-border);border-radius:7px;background:var(--night-4);color:var(--frost);padding:8px 11px}
.deck-editor button:where(:not(.de-filter-scrim)):hover:not(:disabled){border-color:var(--frost-2);background:var(--slate-2)}
.deck-editor button:focus-visible,.deck-editor summary:focus-visible,.deck-editor input:focus-visible,.deck-editor select:focus-visible{outline:2px solid var(--frost-2);outline-offset:2px}
.deck-editor button[aria-pressed=true]{border-color:var(--neon-light);background:#4d3842;color:#ffffff}
.deck-editor button[aria-pressed=true]:hover{border-color:var(--frost);background:#57444d}
.deck-editor input,.deck-editor select{border:1px solid var(--de-border);border-radius:7px;background:var(--night-2);color:var(--frost);padding:9px;min-width:0}
.deck-editor svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex:none}
.de-heading{display:flex;align-items:center;gap:20px;margin-bottom:16px}.de-heading h1{margin:2px 0 0;font-size:28px}.de-heading .eyebrow{font-size:10px}.de-save{color:#afcdc7;font-size:12px;white-space:nowrap}
.de-management{display:flex;align-items:center;gap:8px;margin-left:auto;font-size:12px}.de-slot-label{display:flex;gap:10px;align-items:center}.de-slot-label select{max-width:220px}
.de-manage-menu{position:relative;z-index:40}.de-manage-menu>summary{padding:10px;border:1px solid var(--de-border);border-radius:7px;cursor:pointer;white-space:nowrap;background:var(--night-4)}
.de-manage-menu>div{position:absolute;right:0;top:calc(100% + 8px);width:270px;padding:16px;border:1px solid var(--steel-2);border-radius:12px;background:var(--night-3);box-shadow:0 14px 50px #000000aa;display:grid;gap:10px}
.de-manage-menu label{display:grid;gap:5px}.de-manage-menu .deck-case-art{display:block;height:110px;width:auto;max-width:100%;object-fit:contain;border:0;border-radius:0;background:transparent;box-shadow:none;margin:auto}
.de-columns{display:grid;grid-template-columns:minmax(220px,.7fr) minmax(300px,1.1fr) minmax(380px,1.4fr);gap:16px;height:calc(100 * var(--ui-dvh,1dvh) - 180px);min-height:460px}
.de-detail,.de-current,.de-library{min-width:0;min-height:0;border:1px solid var(--de-border);border-radius:12px;background:linear-gradient(155deg,#222c38f5,#141a24f5);box-shadow:0 14px 30px #00000033;overflow:hidden}
.de-detail{padding:15px;overflow-y:auto;scrollbar-width:thin}.de-panel-head{display:flex;align-items:center;justify-content:space-between;gap:8px}.de-detail .de-panel-head .eyebrow{font-size:10px;color:var(--frost-2)}
.de-detail h2{font-size:20px;line-height:1.4;margin:6px 0}.de-card-code{font-size:11px;color:var(--frost-2);line-height:1.7;margin-bottom:12px}
.deck-editor .de-favorite{width:34px;height:34px;padding:0;font-size:24px;color:var(--neon-light);line-height:1}
.deck-editor .de-detail-image{display:block;position:relative;isolation:isolate;width:min(100%,245px);aspect-ratio:3/4;margin:0 auto 12px;padding:0;border:0;border-radius:7px;overflow:hidden;background:var(--night);cursor:zoom-in}
.de-detail-image>img{width:100%;height:100%;object-fit:contain}.de-quantity{display:flex;gap:5px;color:#cad2da;font-size:12px;margin:10px 0}.de-quantity span{margin-left:auto}.de-quantity b{color:#ffffff}
.de-add-remove{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-bottom:14px}.de-add-remove button{font-weight:700;font-size:12px;padding:11px 3px}.de-add-remove button:last-child:not(:disabled){background:#5e4350;border-color:var(--steel)}
.de-facts{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:0}.de-facts>div{padding:8px;border:1px solid #5d6b7a66;border-radius:6px;background:#ffffff04}.de-facts .de-frame{grid-column:1/-1}.de-facts dt{font-size:10px;color:var(--steel)}.de-facts dd{font-size:14px;font-weight:800;margin:2px 0 0}
.de-effect{margin-top:14px;padding-top:12px;border-top:1px solid #637f9a55}.de-effect h3{font-size:12px;margin:0;color:#c3d3e2}.de-effect p,.de-acquisition p{font-size:12px;line-height:1.8;white-space:pre-line;color:var(--frost);margin:8px 0}.de-limit{font-size:11px;color:var(--frost-2)}.de-acquisition{border-top:1px solid #5d6b7a55;margin-top:16px;padding-top:12px}.de-acquisition summary{font-size:12px;cursor:pointer;font-weight:700}.de-acquisition p{color:var(--frost-2)}
.de-current{display:flex;flex-direction:column}.de-current>.de-panel-head{padding:18px 16px 12px}.de-current h2{margin:4px 0 0;font-size:19px;overflow-wrap:anywhere}.de-total{font:700 semi-expanded 30px Archivo,sans-serif;color:var(--frost);white-space:nowrap}.de-total small{font-size:15px;color:var(--frost-2)}.de-deck-stats{padding:0 16px 13px;display:flex;gap:14px;border-bottom:1px solid #4a566588;font-size:11px;color:var(--frost-2)}.de-deck-stats b{color:#ffffff}
.de-deck-grid,.de-catalog{display:grid;grid-template-columns:repeat(auto-fill,minmax(80px,1fr));align-content:start;gap:10px;padding:14px;overflow-y:auto;scrollbar-width:thin;min-height:0;flex:1}
.de-deck-tools{display:flex;align-items:center;gap:7px;padding:10px 14px 0;font-size:12px}.de-deck-tools label{display:flex;align-items:center;gap:9px;flex:1;min-width:0;color:var(--de-muted)}.de-deck-tools select{flex:1;min-width:0;font-size:12px}.de-deck-tools button{min-width:36px;align-self:stretch}
.de-current>footer{padding:12px 15px;font-size:10px;color:var(--steel);border-top:1px solid #4a566588}
.de-catalog .de-card-pick[draggable=true]{cursor:grab}.de-catalog .de-card-pick[draggable=true]:active{cursor:grabbing}
.de-current.de-drop-ready{position:relative;border-color:var(--frost-2);box-shadow:inset 0 0 0 2px #b9c6d244}
.de-current.de-drop-ready::after{content:'여기에 놓아 덱에 추가';position:absolute;left:15px;right:15px;bottom:70px;padding:20px 12px;border:2px dashed var(--frost-2);border-radius:10px;background:#222c38ee;color:var(--frost);font-size:15px;font-weight:700;text-align:center;pointer-events:none;z-index:2}
.de-current.de-drop-over{background:var(--slate-2);border-color:var(--frost);box-shadow:inset 0 0 0 3px #8fe6ff99}
.de-tile{position:relative;min-width:0;border-radius:6px;background:var(--night-2)}.de-tile.selected{outline:2px solid var(--neon-light);outline-offset:2px}
.deck-editor .de-card-pick{display:block;width:100%;aspect-ratio:3/4;padding:0;border:0;border-radius:5px 5px 0 0;position:relative;overflow:hidden;background:var(--night);isolation:isolate}
.de-card-pick>img{width:100%;height:100%;object-fit:contain}.de-tile.unowned .de-card-pick>img{filter:grayscale(.9) brightness(.4)}.de-unowned{position:absolute;bottom:10px;left:0;right:0;color:#ffffff;font-size:11px;letter-spacing:.06em;background:#0b1018cc;padding:4px 0}
.de-rarity{position:absolute;top:0;right:0;padding:1px 5px;border-radius:0 0 0 5px;background:#222c38f5;font:800 semi-expanded 12px Archivo,sans-serif}.grade-C{color:#c8d0d8}.grade-R{color:var(--frost-2)}.grade-SR{color:#d6e1eb}.de-rarity.grade-R{background:#2c3642e8}.de-rarity.grade-SR{background:#62394cee}
.de-star{position:absolute;top:0;left:2px;color:var(--pink-light);font-size:15px;text-shadow:0 1px 4px #000000}.de-alt{position:absolute;left:0;bottom:0;padding:1px 3px;background:#5b3b4a;color:#ffffff;font-size:9px}
.de-tile-bottom{display:flex;justify-content:space-between;align-items:center;gap:2px;padding:3px;font-size:9px;color:var(--frost-2);white-space:nowrap}.de-tile-bottom b{color:#ffffff}.deck-editor .de-tile-bottom button{padding:0;width:25px;height:25px;flex:none;font-size:17px;background:var(--slate)}
.de-library{display:flex;flex-direction:column}.de-tabs{display:flex;border-bottom:1px solid var(--de-border);padding:8px 10px;gap:6px}.de-tabs button{flex:1;font-weight:800;font-size:12px}.de-search{display:flex;gap:6px;padding:12px 12px 8px}.de-search input{width:0;flex:1;font-size:12px}.de-search button{display:flex;align-items:center;gap:5px;font-size:10px;white-space:nowrap;padding:7px}
.de-tools{display:flex;gap:6px;padding:0 12px;align-items:stretch}.de-tools button{display:flex;align-items:center;justify-content:center;gap:5px;padding:7px 9px;font-size:12px}.de-tools button:first-child{flex:1}.de-sort{min-width:0;flex:1}.de-sort select{width:100%;height:100%;font-size:12px}.de-filter-count{color:var(--frost)}.de-result-count{margin:10px 14px 0;color:#afbbc7;font-size:11px}.de-catalog{grid-template-columns:repeat(auto-fill,minmax(83px,1fr))}
.de-empty{grid-column:1/-1;text-align:center;padding:50px 10px;color:var(--steel);font-size:13px;line-height:1.8}.de-library .de-empty{padding-top:80px}
.de-filter-overlay{position:fixed;inset:0;z-index:140;display:grid;place-items:center;padding:24px}.deck-editor .de-filter-scrim{position:absolute;inset:0;width:100%;height:100%;background:#0b1018c9;border:0;border-radius:0;cursor:default}.deck-editor .de-filter-scrim:hover{background:#0b1018c9}
.de-filter-dialog{position:relative;display:flex;flex-direction:column;width:min(900px,100%);max-height:calc(100 * var(--ui-dvh,1dvh) - 48px);min-height:0;border:1px solid var(--steel);border-radius:14px;background:var(--night-3);box-shadow:0 25px 90px #000000cc;overflow:hidden}
.de-filter-dialog>header{padding:18px 22px;border-bottom:1px solid #5d6b7a55;display:flex;justify-content:space-between;align-items:center;gap:12px}.de-filter-dialog h2{margin:0;font-size:23px}.de-filter-dialog header p{font-size:11px;color:var(--frost-2);margin:6px 0 0}.de-filter-dialog header button{font-size:25px;padding:0;width:36px;height:36px;flex:none}
.de-filter-body{overflow:auto;min-height:0;padding:0 22px 20px;scrollbar-width:thin}.de-filter-body fieldset{border:0;border-bottom:1px solid #5d6b7a66;margin:0;padding:20px 0}.de-filter-body legend{float:left;width:100%;font-size:13px;font-weight:800;padding:0;margin-bottom:11px;color:var(--frost)}.de-toggles{clear:both;display:flex;flex-wrap:wrap;gap:7px}.de-toggles button{min-width:68px;font-size:12px}.de-number-toggles{max-height:126px;overflow:auto;padding:3px}.de-number-toggles button{min-width:55px}.de-range{display:flex;align-items:center;gap:10px;clear:both;margin-bottom:9px}.de-range label{display:flex;align-items:center;gap:7px;font-size:11px;color:var(--frost-2)}.de-range input{width:125px;font-size:12px}
.de-filter-body input[type=search]{width:100%;margin-bottom:10px}.de-frame-results{max-height:132px;overflow:auto;padding:3px}.de-selected-frames{display:flex;gap:5px;flex-wrap:wrap;margin-bottom:8px;clear:both}.de-selected-frames:empty{display:none}.de-selected-frames button{padding:5px 8px;font-size:11px}.de-filter-note{font-size:11px;color:var(--frost-2);line-height:1.7}
.de-filter-dialog>footer{display:flex;align-items:center;gap:12px;padding:14px 22px;border-top:1px solid var(--steel-3);background:var(--night-4)}.de-filter-dialog footer button{display:flex;align-items:center;gap:5px}.de-filter-result{margin-left:auto;font-size:12px;color:#ccd5dd}.de-filter-dialog footer .primary{color:#25191f;background:var(--frost-2);border-color:var(--frost);font-weight:800;padding-inline:24px}
@media(min-width:1600px){.de-catalog{grid-template-columns:repeat(auto-fill,minmax(96px,1fr))}.de-deck-grid{grid-template-columns:repeat(auto-fill,minmax(86px,1fr))}.de-detail-image{max-width:260px}}
@media(max-width:1250px){.deck-workspace .portal-layout{grid-template-columns:1fr;padding:14px 18px}.deck-workspace .portal-nav{flex-direction:row;gap:5px;padding:0}.deck-workspace .portal-nav button{font-size:12px;padding:7px 10px}.de-columns{height:calc(100 * var(--ui-dvh,1dvh) - 220px);grid-template-columns:minmax(200px,.65fr) minmax(250px,1fr) minmax(320px,1.2fr);gap:10px}.de-heading{margin-bottom:12px}.de-management{font-size:11px;gap:5px}.de-deck-grid,.de-catalog{gap:8px;padding:10px;grid-template-columns:repeat(auto-fill,minmax(70px,1fr))}}
@media(max-width:850px){.deck-workspace .portal-top{padding:12px}.deck-workspace .portal-account{flex-wrap:wrap;gap:5px}.deck-workspace .portal-layout{padding:12px}.deck-workspace .portal-nav{flex-wrap:nowrap;overflow-x:auto}.deck-workspace .portal-nav button{min-width:max-content;flex:0 0 auto}.de-columns{grid-template-columns:1fr 1fr;height:auto;min-height:0}.de-detail{grid-column:1/-1;order:3;max-height:620px}.de-current,.de-library{height:590px}.de-detail .de-detail-image{width:210px}.de-heading{flex-wrap:wrap;gap:8px}.de-heading h1{font-size:25px}.de-management{width:100%;margin-left:0}.de-slot-label{flex:1}.de-slot-label select{max-width:none;width:100%}.de-save{margin-left:auto}}
@media(max-width:580px){.de-columns{grid-template-columns:1fr}.de-library{order:1;height:580px}.de-current{order:2;height:440px}.de-detail{order:0;max-height:480px}.de-detail .de-detail-image{width:150px;float:left;margin:0 14px 12px 0}.de-detail .de-add-remove{grid-template-columns:1fr}.de-detail .de-facts{clear:both}.de-detail .de-quantity{display:block}.de-detail .de-quantity span{display:block}.de-current .de-deck-grid,.de-catalog{grid-template-columns:repeat(auto-fill,minmax(78px,1fr))}.de-slot-label{display:block}.de-slot-label select{margin-top:3px}.de-management>.tiny{font-size:10px;padding:9px 5px}.de-filter-overlay{padding:10px}.de-filter-dialog{max-height:calc(100 * var(--ui-dvh,1dvh) - 20px)}.de-filter-dialog>header,.de-filter-dialog>footer{padding:14px}.de-filter-body{padding-inline:14px}.de-range{gap:5px}.de-range label{gap:4px}.de-range input{width:95px}.de-filter-dialog footer .primary{padding-inline:12px}.de-filter-result{font-size:10px}}
.coin-chip small{font-size:11px;color:#e2d0d8;margin-left:6px}.soul-chip{color:#b1e7dc;border-color:#607a95}.soul-chip b{font:inherit}
.de-soul{clear:both;margin:14px 0;padding:12px;border:1px solid var(--steel-3);border-radius:9px;background:var(--night-3)}.de-soul header{display:flex;justify-content:space-between;gap:8px;color:#c4efe7;font-size:14px}.de-soul p{font-size:11px;line-height:1.65;color:#cbd3db;margin:7px 0}.de-soul-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:10px}.deck-editor .de-soul-actions button{background:var(--slate);color:var(--frost);border-color:#768ba0;padding:10px 4px;font-size:12px}.de-soul-actions b{display:block;margin-top:4px;font-size:14px}.de-soul details{font-size:11px;color:#cdd5dd}.de-soul summary{cursor:pointer;padding:5px 0}.de-soul table{width:100%;text-align:center;font-size:12px;border-collapse:collapse;margin:8px 0}.de-soul td,.de-soul th{padding:5px;border-bottom:1px solid #5d6b7a66}.de-soul-pending{padding:10px;background:var(--slate-2);font-size:12px;line-height:1.6;border-radius:6px}.de-soul-pending button{display:block;width:100%;margin-top:7px}
.soul-dialog{box-sizing:border-box;width:min(440px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto;margin:auto;padding:24px;border:1px solid var(--steel);border-radius:16px;background:var(--night-3);color:var(--frost);box-shadow:0 24px 90px #000000aa;font-family:inherit}.soul-dialog::backdrop{background:#0b1018d9}.soul-dialog h2{font-size:23px;margin:0 0 22px}.soul-confirm-card{display:flex;gap:17px;align-items:center}.soul-confirm-card img{width:100px;aspect-ratio:3/4;object-fit:contain;border-radius:5px}.soul-confirm-card strong{font-size:17px}.soul-dialog p{font-size:12px;line-height:1.7;color:#cad3db}.soul-dialog .soul-confirm-amount{color:#bdede3;font-size:21px;font-weight:800;margin:22px 0 4px}.soul-dialog footer{display:flex;gap:10px;margin-top:23px}.soul-dialog button{flex:1;min-height:44px;border:1px solid #798ea2;border-radius:7px;background:var(--slate);color:var(--frost);font:inherit;cursor:pointer}.soul-dialog [data-soul-confirm]{background:#b8e1d9;color:var(--night-3);font-weight:800}.soul-dialog button:disabled{opacity:.5;cursor:wait}.soul-dialog button:focus-visible{outline:3px solid var(--neon-light);outline-offset:3px}

.de-library-summary{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;padding:8px 12px 0}.de-library-summary .de-result-count{margin:0}.de-bulk-control button{font-size:11px;padding:6px 9px;white-space:nowrap}.soul-bulk-dialog{width:min(660px,calc(100vw - 28px));max-height:calc(100dvh - 32px);overflow:auto}.soul-bulk-dialog>p{font-size:12px;line-height:1.7}.soul-bulk-list{max-height:44dvh;overflow:auto;border:1px solid var(--slate-3);border-radius:8px}.soul-bulk-list table{width:100%;border-collapse:collapse;font-size:12px}.soul-bulk-list th,.soul-bulk-list td{padding:9px 8px;border-bottom:1px solid #4a566555;text-align:right}.soul-bulk-list th:first-child{text-align:left}.soul-bulk-list thead{position:sticky;top:0;background:var(--night-4)}.soul-bulk-list small{display:block;color:var(--frost-2);font-weight:400;margin-top:3px}.soul-bulk-list td{white-space:nowrap}.soul-bulk-dialog .soul-confirm-amount{font-size:17px}@media(max-width:480px){.soul-bulk-list th,.soul-bulk-list td{padding:7px 5px;font-size:11px}}

.soul-quantity{display:flex;align-items:end;gap:10px;margin-top:16px}.soul-quantity label{display:grid;gap:6px;flex:1;font-size:13px}.soul-quantity input{width:100%;min-width:0;box-sizing:border-box;background:var(--night-2);color:var(--white);border:1px solid var(--steel-2);border-radius:7px;padding:10px;font-size:16px}.soul-quantity button{white-space:nowrap;min-height:42px}.soul-quantity-error{color:var(--pink-light);min-height:1em;font-size:12px}
.de-deck-actions{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;padding:10px 14px 0;font-size:12px}
.de-deck-actions .de-ai-build{background:#47343d;border-color:var(--steel);color:#ffffff;white-space:nowrap}
.de-clear-dialog{width:min(420px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto;padding:24px;border:1px solid var(--steel-2);border-radius:16px;background:var(--night-3);color:var(--frost);box-shadow:0 20px 80px #00000088}
.de-clear-dialog::backdrop{background:#0b1018d9}.de-clear-dialog h2{font-size:21px;margin:0 0 16px}.de-clear-dialog p{font-size:14px;line-height:1.8;overflow-wrap:anywhere}.de-clear-dialog [data-clear-error]{color:var(--pink-light)}.de-clear-dialog footer{display:flex;gap:10px;margin-top:20px}
/* Deck code dialog (2026-11-03). */
.de-code-dialog{width:min(520px,calc(100vw - 24px))}
.de-code-field{display:block;margin:14px 0 6px}.de-code-field span{display:block;margin:0 0 6px;font-size:12px;color:var(--steel-3,#b4a8ae)}
.de-code-field textarea{width:100%;box-sizing:border-box;padding:10px 12px;border:1px solid var(--steel-2);border-radius:10px;background:var(--night-2,#111820);color:var(--frost);font:12px/1.5 ui-monospace,Consolas,monospace;resize:vertical;overflow-wrap:anywhere}
.de-code-row{display:flex;align-items:center;gap:10px;font-size:13px}.de-code-row [data-code-copied]{color:var(--pink-light)}
.de-code-dialog [data-code-error]{color:var(--pink-light);min-height:1.2em;margin:8px 0 0}.de-clear-dialog button{flex:1;font:inherit;padding:11px;border:1px solid #768b9f;border-radius:8px;color:var(--frost);background:var(--slate)}.de-clear-dialog [data-clear-confirm]{background:var(--frost-2);color:#291e23;font-weight:700}.de-clear-dialog button:focus-visible{outline:2px solid var(--neon-light);outline-offset:3px}
.ai-deck-dialog{box-sizing:border-box;width:min(1000px,calc(100vw - 24px));max-height:calc(100dvh - 32px);padding:0;border:1px solid var(--steel-2);border-radius:18px;color:var(--frost);background:var(--night-3);box-shadow:0 25px 100px #00000088;overflow:hidden}
.ai-deck-dialog[open]{display:flex;flex-direction:column}.ai-deck-dialog::backdrop{background:#0b1018d9}
.ai-deck-dialog *{box-sizing:border-box}.ai-deck-dialog header{display:flex;justify-content:space-between;gap:16px;padding:22px 26px;border-bottom:1px solid var(--slate-3);flex-shrink:0}
.ai-deck-dialog h2{font-size:24px;margin:6px 0 9px}.ai-deck-dialog p{font-size:13px;line-height:1.6;color:#cad2da;margin:5px 0}
.ai-deck-dialog button,.ai-deck-dialog input,.ai-deck-dialog select{font:inherit;border:1px solid var(--steel-3);border-radius:8px;background:var(--night-4);color:var(--frost);padding:10px 13px}
.ai-deck-dialog button{cursor:pointer}.ai-deck-dialog button:hover:not(:disabled){background:var(--slate-3)}.ai-deck-dialog button:disabled{opacity:.45;cursor:default}
.ai-deck-dialog :is(button,input,select):focus-visible{outline:2px solid var(--neon-light);outline-offset:2px}
.ai-deck-dialog header>button{align-self:flex-start;line-height:1;font-size:25px}.ai-deck-body{min-height:0;overflow:auto;padding:20px 26px;scrollbar-gutter:stable}
.ai-deck-controls{display:flex;gap:12px;align-items:end;flex-wrap:wrap;margin-bottom:20px}.ai-deck-controls label{display:flex;flex-direction:column;gap:7px;font-size:13px}.ai-deck-controls label:first-child{flex:1;min-width:200px}.ai-deck-controls input{width:100%;min-width:0}.ai-deck-controls select{min-width:120px}
.ai-deck-summary{padding:15px 18px;background:var(--slate);border:1px solid var(--slate-3);border-radius:12px;margin-bottom:16px}.ai-deck-summary>div:first-child{display:flex;align-items:center;gap:16px;justify-content:space-between}.ai-deck-summary h3{margin:0;font-size:19px}.ai-deck-summary strong{font-size:26px;white-space:nowrap}.ai-deck-summary strong small{font-size:13px;color:var(--frost-2)}.ai-deck-stats{display:flex;gap:10px 20px;flex-wrap:wrap;font-size:12px;margin-top:12px}.ai-deck-stats b{color:var(--neon-light);margin-left:5px}
.ai-deck-dialog .ai-deck-warning{color:var(--pink-light);border-left:3px solid #6890b7;padding:5px 10px;margin:10px 0}.ai-deck-dialog .ai-deck-error{color:var(--pink-light)}
.ai-builder-preview{display:grid;grid-template-columns:repeat(auto-fill,minmax(90px,1fr));gap:16px 12px}.ai-builder-preview figure{margin:0;min-width:0}.ai-builder-preview figure>div{position:relative;aspect-ratio:3/4}.ai-builder-preview img{display:block;width:100%;height:100%;object-fit:contain;border-radius:4px}.ai-builder-preview b{position:absolute;right:2px;bottom:2px;padding:3px 7px;background:#0b1018ed;border:1px solid var(--frost-2);border-radius:5px;font-size:13px}.ai-builder-preview figcaption{font-size:11px;line-height:1.4;margin-top:6px;overflow-wrap:anywhere}.ai-builder-preview small{display:block;color:var(--frost-2)}.ai-builder-preview .ai-reason{color:#9fb4c8;font-size:10px;margin-top:2px}
.ai-deck-dialog footer{flex-shrink:0;padding:16px 26px;border-top:1px solid var(--slate-3);display:flex;align-items:center;justify-content:space-between;gap:16px;background:var(--night-4)}.ai-deck-dialog footer>div{display:flex;gap:8px;flex-shrink:0}.ai-deck-dialog .primary{background:var(--frost-2);color:#291e23;border-color:var(--frost-2);font-weight:700}.ai-deck-dialog .primary:hover:not(:disabled){background:var(--neon-light)}
@media(max-width:600px){.ai-deck-dialog header,.ai-deck-body,.ai-deck-dialog footer{padding:16px}.ai-deck-dialog h2{font-size:21px}.ai-deck-dialog footer{align-items:stretch;flex-direction:column;gap:8px}.ai-deck-dialog footer>div{justify-content:flex-end}.ai-deck-controls label:first-child{flex-basis:100%}.ai-deck-controls label:nth-child(2){flex:1}.ai-deck-summary>div:first-child{align-items:flex-start}.ai-deck-summary h3{font-size:16px}.ai-builder-preview{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 9px}}

.ai-deck-modes{display:grid;grid-template-columns:1fr 1fr;gap:10px;border:0;padding:0;margin:0 0 20px}.ai-deck-modes legend{font-size:13px;margin-bottom:9px;color:#cad2da}.ai-deck-modes label{display:flex;gap:9px;align-items:center;border:1px solid var(--steel-3);border-radius:10px;padding:13px;font-size:13px;cursor:pointer}.ai-deck-modes label:has(:checked){border-color:var(--neon-light);background:#44323b;color:#ffffff}.ai-deck-modes input{accent-color:var(--frost-2);flex-shrink:0}.ai-deck-missing{border:1px solid #5b7896;border-radius:10px;padding:15px;margin-bottom:16px;background:var(--night-4)}.ai-deck-missing h3{font-size:15px;margin:0 0 7px}.ai-deck-missing ul{max-height:150px;overflow:auto;padding-left:20px;font-size:12px;line-height:1.9;margin:8px 0 0}.ai-deck-missing b,.ai-builder-preview .ai-missing-label,.de-deck-stats .de-missing-count{color:var(--pink-light)}.ai-deck-missing small{color:#cad2da}@media(max-width:600px){.ai-deck-modes{grid-template-columns:1fr}.ai-deck-modes label{padding:10px;font-size:12px}}
/* Rarity at a glance (owner, 2026-11-03): without foil the small tiles all looked alike, so R gets a silver edge and SR a
   gold glow drawn by an overlay above the art (edge lines were dropped 2026-11-04: they read like the selection outline). Unowned tiles get none. */
.de-card-pick::after{content:'';position:absolute;inset:0;z-index:1;pointer-events:none;border-radius:inherit;border:0 solid transparent}
.de-tile.grade-R .de-card-pick::after{box-shadow:inset 0 0 10px #9cc0e466}
.de-tile.grade-SR .de-card-pick::after{box-shadow:inset 0 0 14px #f3cf7880}
.de-tile.grade-SR .de-card-pick{box-shadow:0 0 12px #f3cf7855}
.de-rarity{z-index:2}
.de-rarity.grade-R{background:#bcd4ec;color:#0f1a26}
.de-rarity.grade-SR{background:linear-gradient(135deg,#f8e09a,#e8a846);color:#2a1a05}
.de-star,.de-unowned,.de-alt{z-index:2}
.de-tile.unowned .de-card-pick{box-shadow:none}
.de-tile.unowned .de-card-pick::after{box-shadow:none}
