:root {
  color-scheme: dark;
  --ink: #0a0d16;
  --ink-deep: #06080d;
  --panel: #12172a;
  --panel-2: #1b2238;
  --line: #262e4a;
  --body: #e8eaf2;
  --muted: #98a0bd;
  --brand: #e94560;
  --brand-text: #ff8093;
  --success: #57d39b;
  --warning: #f0bd67;
  --radius: 13px;
  --mono: "Azeret Mono", "SFMono-Regular", Consolas, monospace;
  --sans: Chivo, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--ink); scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--body); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { color: inherit; font: inherit; }
button, summary, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--brand-text); outline-offset: 3px; }
[hidden] { display: none !important; }
.dl-visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.dl-body { min-height: 100vh; display: flex; flex-direction: column; }
.dl-nav { height: 64px; position: sticky; top: 0; z-index: 80; display: grid; grid-template-columns: minmax(0,1fr) auto auto; align-items: center; gap: 4px; padding: 0 max(24px, calc((100vw - 1240px)/2)); border-bottom: 1px solid var(--line); background: rgba(18,23,42,.94); backdrop-filter: blur(16px); }
.dl-wordmark { display: inline-flex; width: max-content; align-items: center; gap: 9px; font-weight: 650; letter-spacing: -.02em; }
.dl-mark { position: relative; display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 8px; background: var(--brand); overflow: hidden; }
.dl-mark svg { width: 26px; height: 26px; overflow: visible; }
.dl-mark-flame { fill: var(--ink); }
.dl-mark-hand { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dl-mark-spark { fill: #ffd27a; }
.dl-nav-links { justify-self: end; display: flex; gap: 5px; }
.dl-nav-links a { min-height: 40px; display: grid; place-items: center; padding: 0 18px; border-radius: 10px; color: var(--muted); }
.dl-nav-links a:hover { color: var(--body); background: rgba(255,255,255,.04); }
.dl-nav-links a[aria-current=page] { color: var(--brand-text); background: rgba(233,69,96,.14); }
.dl-nav-account { justify-self: end; display: flex; align-items: center; gap: 4px; }
.dl-account-menu { position: relative; }
.dl-account-menu summary { min-height: 44px; display: flex; align-items: center; gap: 8px; padding: 0 10px; cursor: pointer; list-style: none; border-radius: 10px; }
.dl-account-menu summary::-webkit-details-marker { display: none; }
.dl-account-menu summary:hover { background: rgba(255,255,255,.04); }
.dl-account-popover { position: absolute; right: 0; top: calc(100% + 8px); width: 230px; display: grid; gap: 2px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); box-shadow: 0 18px 50px rgba(0,0,0,.45); }
.dl-account-popover strong, .dl-account-popover > span { padding: 4px 8px; overflow: hidden; text-overflow: ellipsis; }
.dl-account-popover > span { color: var(--muted); font-size: 12px; border-bottom: 1px solid var(--line); padding-bottom: 10px; margin-bottom: 4px; }
.dl-account-popover a { padding: 9px 8px; border-radius: 7px; color: var(--muted); }
.dl-account-popover a:hover { background: var(--panel-2); color: var(--body); }
.dl-menu-button { display: none; width: 44px; height: 44px; border: 0; background: transparent; font-size: 18px; }
.dl-drawer, .dl-drawer-backdrop { display: none; }
.dl-main { width: min(1240px, 100%); margin: 0 auto; flex: 1; padding: 44px 24px 72px; }
.dl-main-wide { width: 100%; max-width: none; padding: 0; }
.dl-footer { position: relative; padding: 30px 76px 28px 24px; color: var(--muted); text-align: center; font: 11px var(--mono); letter-spacing: .03em; }
.dl-footer::before { content: ""; position: absolute; top: 0; left: 24px; right: 76px; height: 1px; background: linear-gradient(90deg, transparent, rgba(38,46,74,.62) 10%, rgba(38,46,74,.38) 78%, transparent); }
.dl-flash { margin: 0 0 18px; padding: 12px 15px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.dl-flash-error { color: var(--brand-text); border-color: rgba(233,69,96,.4); }
.dl-kicker, .dl-eyebrow { color: var(--muted); font: 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.dl-page-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.dl-page-head h1, .dl-page-head h2 { margin: 0; font-size: clamp(25px, 3vw, 38px); letter-spacing: -.04em; }
.dl-page-head p { margin: 7px 0 0; color: var(--muted); }
.dl-button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 17px; border: 1px solid var(--line); border-radius: 10px; background: transparent; color: var(--body); font-weight: 550; }
.dl-button:hover { background: var(--panel-2); }
.dl-button-primary { border-color: var(--brand); background: var(--brand); color: var(--ink-deep); }
.dl-button-primary:hover { background: #f05b72; }
.dl-button-quiet { color: var(--muted); }
.dl-icon-button { width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-size: 18px; }
.dl-icon-button:hover { color: var(--brand-text); background: rgba(233,69,96,.1); }
.dl-field { min-height: 44px; width: 100%; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-2); padding: 10px 13px; }
.dl-field::placeholder { color: var(--muted); }
.dl-field:focus { border-color: var(--brand); outline: 2px solid rgba(233,69,96,.18); }
.dl-select-control { position: relative; min-width: 0; width: 100%; display: inline-flex; vertical-align: middle; }
.dl-native-select { position: absolute !important; width: 1px !important; height: 1px !important; min-height: 0 !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; clip-path: inset(50%) !important; white-space: nowrap !important; border: 0 !important; opacity: 0 !important; pointer-events: none !important; }
.dl-select-trigger { width: 100%; min-width: 0; min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 11px 9px 13px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-2); color: var(--body); text-align: left; }
.dl-select-trigger > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dl-select-trigger svg { width: 12px; height: 12px; flex: none; fill: none; stroke: var(--muted); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s ease; }
.dl-select-trigger:hover, .dl-select-control.open .dl-select-trigger { border-color: #3a4468; background: #202842; }
.dl-select-trigger:focus-visible { border-color: var(--brand); outline: 2px solid rgba(233,69,96,.2); outline-offset: 1px; }
.dl-select-control.open .dl-select-trigger svg { transform: rotate(180deg); }
.dl-select-trigger:disabled { cursor: not-allowed; opacity: .55; }
.dl-select-popover { position: fixed; z-index: 250; max-height: 280px; overflow: auto; display: grid; gap: 3px; padding: 7px; border: 1px solid #333d61; border-radius: 10px; background: #161c30; box-shadow: 0 18px 45px rgba(0,0,0,.55); }
.dl-select-popover[hidden] { display: none; }
.dl-select-option { width: 100%; min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 10px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); font-size: 12px; text-align: left; }
.dl-select-option:hover, .dl-select-option:focus-visible { background: var(--panel-2); color: var(--body); outline: 0; }
.dl-select-option[aria-selected=true] { background: rgba(233,69,96,.09); color: var(--body); }
.dl-select-check { visibility: hidden; flex: none; color: var(--brand-text); }
.dl-select-option[aria-selected=true] .dl-select-check { visibility: visible; }
.dl-select-control-compact { width: auto; max-width: 150px; }
.dl-select-control-compact .dl-select-trigger { min-height: 34px; padding: 6px 8px 6px 10px; border-radius: 7px; background: var(--ink); font-size: 11px; }
.dl-segments { display: inline-flex; padding: 3px; gap: 3px; border-radius: 10px; background: var(--panel-2); }
.dl-segments a, .dl-segments button { min-height: 38px; padding: 0 14px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); }
.dl-segments [aria-current=page], .dl-segments [aria-pressed=true] { color: var(--body); background: var(--panel); box-shadow: 0 1px 5px rgba(0,0,0,.25); }
.dl-chip-row { display: flex; flex-wrap: wrap; gap: 7px; }
.dl-chip { min-height: 34px; display: inline-flex; align-items: center; gap: 7px; padding: 0 11px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: var(--panel); font-size: 12px; }
.dl-chip[aria-pressed=true], .dl-chip.active { color: var(--body); border-color: rgba(233,69,96,.45); background: rgba(233,69,96,.1); }
.dl-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.dl-mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.dl-muted { color: var(--muted); }
.mana { width: 23px; height: 23px; display: inline-grid; place-items: center; border-radius: 50%; color: white; font: 700 11px var(--sans); box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); }
.mana-W { background: #ede7cf; color: #29271f; }.mana-U{background:#2371b8}.mana-B{background:#211a24}.mana-R{background:#bb4337}.mana-G{background:#28734b}.mana-C{background:#666f7d}

/* Home */
.dl-home-hero { min-height: 570px; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 72px; }
.dl-home-hero h1 { margin: 0 0 20px; max-width: 700px; font-size: clamp(48px, 7vw, 86px); line-height: .99; letter-spacing: -.065em; }
.dl-home-hero p { max-width: 650px; color: var(--muted); font-size: 18px; line-height: 1.65; }
.dl-home-actions { display: flex; gap: 11px; margin-top: 28px; }
.mobile-copy{display:none}
.dl-hero-mat { min-height: 360px; position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: radial-gradient(circle at 30% 25%,rgba(233,69,96,.18),transparent 35%), repeating-linear-gradient(0deg,transparent 0 31px,rgba(255,255,255,.025) 32px), var(--panel); }
.dl-hero-zone { position: absolute; min-width: 180px; padding: 14px; border: 1px solid rgba(255,255,255,.12); border-radius: 13px; background: rgba(10,13,22,.78); }
.dl-hero-zone:first-child { top: 45px; left: 35px; }.dl-hero-zone:nth-child(2){right:30px;bottom:50px}
.dl-hero-zone b { display: block; margin-bottom: 12px; font: 11px var(--mono); color: var(--muted); }
.dl-mini-cards { display: flex; gap: 7px; }.dl-mini-cards i{display:block;width:46px;height:65px;border-radius:5px;background:linear-gradient(145deg,#32405d,#181e31);box-shadow:0 8px 15px rgba(0,0,0,.3)}
.dl-door-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; }
.dl-door { padding: 30px 34px; min-height: 250px; display: flex; flex-direction: column; }
.dl-door h2 { margin: 0 0 14px; font-size: 30px; letter-spacing: -.035em; }.dl-door p{margin:0;color:var(--muted);line-height:1.6}.dl-door-actions{display:flex;flex-wrap:wrap;align-items:center;gap:7px;margin-top:auto;padding-top:24px}.dl-door-actions .dl-button{margin:0}
.dl-how { margin: 72px 0; }.dl-how-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1px;background:var(--line);border:1px solid var(--line);border-radius:14px;overflow:hidden}.dl-step{display:grid;gap:8px;padding:28px;background:var(--panel)}.dl-step-head{display:flex;align-items:baseline;column-gap:14px;min-width:0}.dl-step-head b{flex:none;color:var(--brand-text);font:13px var(--mono)}.dl-step-head h3{min-width:0;margin:0}.dl-step p{margin:0;color:var(--muted);line-height:1.55}

/* Library */
.dl-library-main { width: min(1440px,100%); padding: 30px 22px 72px; }
.dl-library-controls { display: grid; gap: 22px; margin-bottom: 22px; }
.dl-library-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.dl-library-head h1 { margin: 0; font-size: 24px; line-height: 1.15; letter-spacing: -.025em; }
.dl-library-head p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.dl-library-head-actions { display: flex; align-items: center; gap: 9px; }
.dl-library-head-actions > .dl-button { min-height: 40px; border-radius: 9px; padding: 0 16px; font-size: 13px; }
.dl-library-search { position: relative; display: block; width: 240px; }
.dl-library-search svg { position: absolute; z-index: 1; left: 11px; top: 50%; width: 15px; height: 15px; transform: translateY(-50%); fill: none; stroke: var(--muted); stroke-width: 1.6; stroke-linecap: round; pointer-events: none; }
.dl-library-search input { width: 100%; min-height: 40px; padding: 8px 12px 8px 34px; border: 1px solid var(--line); border-radius: 9px; background: var(--panel-2); color: var(--body); font-size: 13px; }
.dl-library-search input::placeholder { color: var(--muted); }
.dl-library-search input:focus { border-color: var(--brand); outline: 2px solid rgba(233,69,96,.18); }
.dl-library-filter-row { display: flex; align-items: center; gap: 12px; }
.dl-library-pills { display: flex; align-items: center; gap: 7px; }
.dl-library-pills a { min-height: 32px; display: inline-flex; align-items: center; gap: 5px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel-2); color: var(--muted); font-size: 13px; white-space: nowrap; }
.dl-library-pills a:hover { border-color: #333d61; color: var(--body); }
.dl-library-pills a[aria-current=page] { border-color: var(--brand); background: var(--brand); color: var(--ink-deep); font-weight: 550; }
.dl-library-sort { position: relative; z-index: 20; margin-left: auto; color: var(--muted); font-size: 13px; }
.dl-library-sort summary { min-height: 34px; display: inline-flex; align-items: center; gap: 4px; padding: 0 10px 0 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel-2); cursor: pointer; list-style: none; transition: border-color .15s ease, background-color .15s ease, color .15s ease; }
.dl-library-sort summary::-webkit-details-marker { display: none; }
.dl-library-sort summary strong { color: inherit; font-weight: 400; }
.dl-library-sort summary svg { width: 12px; height: 12px; margin-left: 4px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s ease; }
.dl-library-sort summary:hover, .dl-library-sort[open] summary { border-color: #3a4468; background: #202842; color: var(--body); }
.dl-library-sort summary:focus-visible { outline: 2px solid rgba(255,128,147,.42); outline-offset: 2px; }
.dl-library-sort[open] summary svg { transform: rotate(180deg); }
.dl-library-sort-menu { position: absolute; right: 0; top: calc(100% + 7px); width: 168px; display: grid; gap: 3px; padding: 7px; border: 1px solid #333d61; border-radius: 10px; background: #161c30; box-shadow: 0 18px 45px rgba(0,0,0,.5); }
.dl-library-sort-menu a { min-height: 38px; display: flex; align-items: center; justify-content: space-between; padding: 0 10px; border-radius: 6px; color: var(--muted); font-size: 12px; }
.dl-library-sort-menu a span:last-child { visibility: hidden; color: var(--brand-text); }
.dl-library-sort-menu a:hover, .dl-library-sort-menu a:focus-visible { background: var(--panel-2); color: var(--body); }
.dl-library-sort-menu a[aria-current=true] { background: rgba(233,69,96,.09); color: var(--body); }
.dl-library-sort-menu a[aria-current=true] span:last-child { visibility: visible; }
.dl-library-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.dl-deck-card { position: relative; min-width: 0; min-height: 180px; padding: 10px 18px; display: flex; flex-direction: column; gap: 6px; transition: transform .16s ease, border-color .16s ease, background-color .16s ease, box-shadow .16s ease; }
.dl-deck-card:hover { transform: translateY(-2px); border-color: #3a4468; background: #151b30; box-shadow: 0 12px 28px rgba(0,0,0,.24); }
.dl-deck-card:has(.dl-deck-card-hit-area:focus-visible) { border-color: var(--brand-text); box-shadow: 0 0 0 2px rgba(255,128,147,.22), 0 12px 28px rgba(0,0,0,.24); }
.dl-deck-card:has(.dl-deck-actions[open]) { z-index: 12; }
.dl-deck-card-hit-area { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.dl-deck-card-hit-area:focus-visible { outline: 0; }
.dl-deck-card-head { min-width: 0; display: grid; grid-template-columns: 88px minmax(0,1fr) 32px; align-items: start; gap: 18px; }
.dl-deck-actions { position: relative; z-index: 3; margin: -2px -4px 0 0; }
.dl-deck-actions summary { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; color: var(--muted); font-size: 14px; font-weight: 700; letter-spacing: 1px; cursor: pointer; list-style: none; }
.dl-deck-actions summary::-webkit-details-marker { display: none; }
.dl-deck-actions summary:hover, .dl-deck-actions[open] summary { background: rgba(255,255,255,.06); color: var(--body); }
.dl-deck-action-menu { position: absolute; right: 0; top: calc(100% + 6px); width: 210px; display: grid; gap: 2px; padding: 7px; border: 1px solid #333d61; border-radius: 10px; background: #161c30; box-shadow: 0 18px 45px rgba(0,0,0,.5); }
.dl-deck-action-menu a, .dl-deck-action-menu button { width: 100%; min-height: 36px; display: flex; align-items: center; padding: 0 10px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); font-size: 12px; text-align: left; }
.dl-deck-action-menu a:hover, .dl-deck-action-menu button:hover, .dl-deck-action-menu a:focus-visible, .dl-deck-action-menu button:focus-visible { background: var(--panel-2); color: var(--body); }
.dl-deck-action-menu form { margin: 0; }
.dl-deck-action-menu .dl-deck-delete-form { margin-top: 4px; padding-top: 5px; border-top: 1px solid var(--line); }
.dl-deck-action-menu button.danger { color: var(--brand-text); }
.dl-deck-stack { position: relative; display: block; width: 88px; height: 114px; flex: none; }
.dl-deck-stack i { position: absolute; left: 5px; top: 3px; width: 76px; height: 106px; overflow: hidden; border: 2px solid #111827; border-radius: 6px; background: #342116; box-shadow: inset 0 0 0 1px #9b6237, 0 4px 9px rgba(0,0,0,.36); transform-origin: 50% 88%; }
.dl-deck-stack i::before { content: ""; position: absolute; inset: 3px; border: 1px solid #c08a4d; border-radius: 50% / 42%; background: radial-gradient(ellipse at center,#1d5066 0 25%,#c97a37 26% 32%,#e1aa55 33% 36%,#3a2116 37% 52%,#17100d 53% 100%); box-shadow: 0 0 0 2px #24150f; }
.dl-deck-stack i:first-child { transform: rotate(-13deg); }
.dl-deck-stack i:nth-child(2) { transform: rotate(13deg); }
.dl-deck-stack i:last-child { top: 3px; transform: rotate(0); }
.dl-deck-stack img { position: absolute; z-index: 2; left: 3px; top: 0; width: 80px; height: 112px; object-fit: cover; border: 1px solid #3a4468; border-radius: 6px; background: var(--panel-2); box-shadow: 0 7px 16px rgba(0,0,0,.36); }
.dl-deck-card-copy { min-width: 0; }
.dl-deck-card h2 { margin: 0; overflow: hidden; color: var(--body); font-size: 15px; line-height: 1.2; letter-spacing: -.01em; text-overflow: ellipsis; white-space: nowrap; }
.dl-deck-card p { margin: 4px 0 0; overflow: hidden; color: var(--muted); font-size: 12.5px; text-overflow: ellipsis; white-space: nowrap; }
.dl-color-identity { width: max-content; max-width: 100%; margin-top: 7px; display: flex; align-items: center; gap: 3px; }
.dl-color-identity .mana { width: 18px; height: 18px; font-size: 8px; }
.dl-deck-recency { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; }
.dl-deck-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.dl-deck-card-copy .dl-deck-tags { margin-top: 10px; }
.dl-deck-tags span, .dl-tag-label { width: max-content; padding: 4px 8px; border: 1px solid #303958; border-radius: 6px; background: var(--panel-2); color: #aab2cf; font: 10px var(--mono); letter-spacing: .02em; }
.dl-deck-card-foot { min-height: 33px; margin-top: auto; display: flex; align-items: center; gap: 10px; padding-top: 3px; border-top: 1px solid var(--line); }
.dl-deck-card-foot time, .dl-deck-card-foot .dl-deck-recency { color: #6f7899; font: 10px var(--mono); text-transform: uppercase; }
.dl-deck-card-foot form { position: relative; z-index: 2; margin: 0 0 0 auto; }
.dl-deck-favorite { width: 30px; height: 30px; display: grid; place-items: center; border: 0; border-radius: 7px; background: transparent; color: #66708f; font-size: 17px; cursor: pointer; transition: color .15s ease, background-color .15s ease, transform .15s ease; }
.dl-deck-favorite:hover, .dl-deck-favorite:focus-visible { background: rgba(255,255,255,.06); color: #aab2cf; }
.dl-deck-favorite:focus-visible { outline: 2px solid rgba(255,128,147,.48); outline-offset: 1px; }
.dl-deck-favorite:active { transform: scale(.92); }
.dl-deck-favorite.active { color: var(--brand); }
.dl-new-deck-card { min-height: 180px; display: grid; place-content: center; justify-items: center; gap: 7px; padding: 20px; border: 1px dashed var(--line); border-radius: var(--radius); background: transparent; color: var(--muted); text-align: center; }
.dl-new-deck-card:hover { border-color: rgba(233,69,96,.55); background: rgba(233,69,96,.04); color: var(--body); }
.dl-new-deck-card > span { color: var(--brand-text); font-size: 19px; line-height: 1; }
.dl-new-deck-card strong { color: var(--body); font-size: 13px; font-weight: 550; }
.dl-new-deck-card small { max-width: 250px; color: var(--muted); font-size: 11px; font-weight: 400; }
.dl-legacy { margin-top: 34px; }.dl-legacy-row{padding:15px 18px;display:flex;align-items:center;justify-content:space-between;gap:15px;border-bottom:1px solid var(--line)}.dl-legacy-row:last-child{border:0}
.dl-empty { padding: 64px 24px; text-align: center; border: 1px dashed var(--line); border-radius: 14px; color: var(--muted); }
.dl-dialog{width:min(500px,calc(100% - 28px));padding:0;border:1px solid var(--line);border-radius:16px;background:var(--panel);color:var(--body);box-shadow:0 30px 90px rgba(0,0,0,.65)}.dl-dialog::backdrop{background:rgba(6,8,13,.72);backdrop-filter:blur(3px)}.dl-dialog form{display:grid;gap:16px;padding:22px}.dl-dialog label{display:grid;gap:7px;font-size:12px}.dl-dialog-head{display:flex;align-items:flex-start;justify-content:space-between}.dl-dialog-head h2{margin:5px 0 0}.dl-commander-results{display:grid;max-height:220px;overflow:auto}.dl-commander-results button{min-height:48px;display:flex;align-items:center;justify-content:space-between;padding:0 10px;border:0;border-bottom:1px solid var(--line);background:transparent;text-align:left}.dl-commander-results button:hover{background:var(--panel-2)}
.dl-toolbar-count { min-width: 19px; height: 19px; display: inline-grid; place-items: center; padding: 0 5px; border-radius: 999px; background: var(--panel-2); color: var(--muted); font: 9px var(--mono); }
.dl-tag-list, .dl-builder-tag-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.dl-tag-list > p { margin: 0; font-size: 12px; }
.dl-tag-chip { min-height: 34px; display: inline-flex; align-items: center; gap: 8px; padding: 0 8px 0 11px; border: 1px solid #303958; border-radius: 999px; background: var(--panel-2); color: var(--body); font-size: 12px; }
.dl-tag-chip:hover { border-color: rgba(233,69,96,.55); background: rgba(233,69,96,.09); }
.dl-tag-chip span { color: var(--brand-text); font-size: 15px; line-height: 1; }
.dl-tag-entry { display: grid; gap: 7px; }
.dl-tag-entry > div { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; }
.dl-tag-error { min-height: 17px; color: var(--brand-text); font-size: 12px; }
.dl-builder-tag-summary { min-height: 28px; margin: 9px 0 20px; }
.dl-builder-tag-summary > .dl-muted { font-size: 12px; }
.dl-surface-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:9px}.dl-surface{height:92px;position:relative;overflow:hidden;border:2px solid var(--line);border-radius:10px;background:#11182b}.dl-surface.active{border-color:var(--brand)}.dl-surface span{position:absolute;left:7px;bottom:7px;padding:4px 6px;border-radius:5px;background:rgba(6,8,13,.85);font-size:11px}.dl-surface.slate-grid,.dl-surface.graph-paper{background-image:linear-gradient(rgba(255,255,255,.06) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.06) 1px,transparent 1px);background-size:16px 16px}.dl-surface.night-ritual{background-image:linear-gradient(rgba(5,8,12,.15),rgba(5,8,12,.15)),url("playmats/night-ritual.jpg");background-position:center;background-size:cover}.dl-surface.felt-weave{background:repeating-linear-gradient(35deg,#173329 0 3px,#10251e 3px 7px)}.dl-surface.deep-field{background:radial-gradient(circle at 35% 30%,#1c385d,#090e19 70%)}.dl-surface.void{background:#07090e}

/* Research */
.dl-research-main { width: 100%; max-width: none; padding: 26px 22px 72px; }
.dl-research-main .dl-page-head { margin-bottom: 14px; }
.dl-research-main .dl-page-head h1 { font-size: 24px; line-height: 1.15; letter-spacing: -.025em; }
.dl-research-main .dl-page-head p { margin-top: 4px; font-size: 13px; }
.dl-research-search { position: relative; width: 100%; margin: 0 0 14px; }
.dl-research-search .dl-field { height: 48px; padding: 10px 46px 10px 43px; border-color: #333d61; border-radius: 11px; font-size: 15px; }
.dl-research-search > svg, .dl-filter-search > svg { position: absolute; z-index: 1; left: 15px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); fill: none; stroke: var(--muted); stroke-width: 1.6; stroke-linecap: round; pointer-events: none; }
.dl-research-search kbd { position: absolute; right: 14px; top: 50%; min-width: 23px; padding: 3px 7px; transform: translateY(-50%); border: 1px solid #333d61; border-radius: 5px; color: #6f7899; background: transparent; font: 10px var(--mono); text-align: center; }
.dl-research-main > .dl-segments { width: max-content; padding: 3px; gap: 3px; border: 1px solid var(--line); background: var(--ink); }
.dl-research-main > .dl-segments a { min-height: 34px; display: inline-flex; align-items: center; justify-content: center; padding: 0 17px; font-size: 13px; font-weight: 500; line-height: 1; }
.dl-research-main > .dl-segments [aria-current=page] { color: var(--ink-deep); background: var(--brand); box-shadow: none; }
.dl-research-layout { display: grid; grid-template-columns: 236px minmax(0,1fr); gap: 18px; margin-top: 18px; }
.dl-filters { position: sticky; top: 82px; height: max-content; display: flex; flex-direction: column; gap: 14px; padding: 15px 13px; }
.dl-filter-group { min-width: 0; padding: 0; border: 0; }
.dl-filter-group > label:first-child:not(.dl-favorite-filter), .dl-filter-group > span:first-child { display: block; margin-bottom: 7px; color: #7f88a6; font: 9.5px var(--mono); letter-spacing: .07em; text-transform: uppercase; }
.dl-filters .dl-field { min-height: 36px; padding: 7px 10px; border-radius: 8px; font-size: 12px; }
.dl-filters select.dl-field { padding-right: 28px; }
.dl-filters .dl-select-trigger { min-height: 36px; padding: 7px 9px 7px 10px; border-radius: 8px; font-size: 12px; }
.dl-filters input[type=number] { appearance: textfield; font-family: var(--mono); }
.dl-filters input[type=number]::-webkit-inner-spin-button, .dl-filters input[type=number]::-webkit-outer-spin-button { margin: 0; appearance: none; }
.dl-range-fields { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); align-items: center; gap: 7px; }
.dl-range-fields > span { color: #6f7899; }
.dl-filter-search { position: relative; }
.dl-filter-search > svg { left: 10px; width: 13px; height: 13px; }
.dl-filter-search .dl-field { padding-left: 31px; }
.dl-filter-group > small { display: block; margin-top: 6px; color: var(--muted); font-size: 11px; line-height: 1.3; }
#research-filters .dl-chip-row { align-items: center; flex-wrap: nowrap; gap: 5px; margin-bottom: 7px; }
#research-filters .dl-color-filter-chip { width: 28px; min-height: 28px; display: grid; place-items: center; padding: 2px; border-color: transparent; background: transparent; line-height: 0; }
#research-filters .dl-color-filter-chip .mana { width: 21px; height: 21px; display: grid; place-items: center; font-size: 10px; line-height: 1; }
#research-filters .dl-color-filter-chip:hover { background: rgba(255,255,255,.04); }
#research-filters .dl-color-filter-chip.active, #research-filters .dl-color-filter-chip:has(input:checked) { border-color: var(--brand); background: rgba(233,69,96,.1); }
#research-filters .dl-color-filter-chip:has(input:focus-visible) { outline: 2px solid rgba(255,128,147,.42); outline-offset: 2px; }
.dl-raw-filter { overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: rgba(10,13,22,.34); }
.dl-raw-filter summary { min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 10px; list-style: none; cursor: pointer; color: var(--muted); font-size: 12px; transition: background-color .15s ease, color .15s ease; }
.dl-raw-filter summary::-webkit-details-marker { display: none; }
.dl-raw-filter summary:hover, .dl-raw-filter[open] summary { color: var(--body); background: var(--panel-2); }
.dl-raw-filter summary:focus-visible { outline: 2px solid rgba(255,128,147,.42); outline-offset: -2px; }
.dl-raw-filter summary svg { width: 12px; height: 12px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s ease; }
.dl-raw-filter[open] summary svg { transform: rotate(180deg); }
.dl-raw-filter-body { display: grid; gap: 7px; padding: 10px; border-top: 1px solid var(--line); }
.dl-raw-filter-body label { color: #7f88a6; font: 9px var(--mono); letter-spacing: .07em; text-transform: uppercase; }
.dl-raw-filter-body p { margin: 0; color: var(--muted); font-size: 10.5px; line-height: 1.45; }
.dl-filter-compact { margin-top: -2px; }
.dl-filter-group label.dl-favorite-filter { width: max-content; min-height: 30px; display: inline-flex; align-items: center; gap: 7px; margin: 0; padding: 0 10px; color: var(--muted); font: 10px/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; }
.dl-favorite-filter input { width: 13px; height: 13px; display: block; flex: none; margin: 0; accent-color: var(--brand); }
.dl-favorite-filter > span { display: block; line-height: 1; }
.dl-favorite-filter.active { color: var(--brand-text); }
.dl-filter-actions { display: flex; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.dl-filter-actions .dl-button:first-child { flex: 1; }
.dl-filter-actions .dl-button { min-height: 40px; border-radius: 8px; font-size: 12.5px; }
.dl-research-summary { display: flex; align-items:center;justify-content:space-between;gap:15px;margin-bottom:12px;color:var(--muted);font:11px var(--mono);letter-spacing:.05em;text-transform:uppercase }
.dl-research-summary [data-filter-open] { display: none; }
.dl-research-summary-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.dl-research-window .dl-select-control { width: auto; min-width: 136px; }
.dl-research-window .dl-select-trigger { min-height: 34px; padding: 6px 9px 6px 10px; border-radius: 8px; color: var(--muted); font: 12.5px var(--sans); letter-spacing: 0; text-transform: none; }
.dl-research-sort { margin-left: 0; font-family: var(--sans); letter-spacing: 0; text-transform: none; }
.dl-research-sort summary { min-height: 34px; }
.dl-research-sort .dl-library-sort-menu { width: 190px; }
.dl-research-table { width:100%;border-collapse:collapse; }.dl-research-table th{text-align:left;color:var(--muted);font:10px var(--mono);padding:12px;border-bottom:1px solid var(--line)}.dl-research-table td{padding:15px 12px;border-bottom:1px solid var(--line);font-size:13px}.dl-research-table tbody tr:hover{background:rgba(255,255,255,.025)}.dl-research-table a{font-weight:600}.dl-research-table a:hover{color:var(--brand-text)}
.dl-percent { display: grid; grid-template-columns:52px 80px;align-items:center;gap:8px;font:12px var(--mono)}.dl-bar{height:4px;border-radius:8px;background:var(--panel-2);overflow:hidden}.dl-bar i{display:block;height:100%;background:var(--brand)}
.dl-card-result-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(190px,1fr)); align-items: start; gap: 16px; }
.dl-card-result { position: relative; display: block; aspect-ratio: 488/680; overflow: hidden; border: 1px solid #303959; border-radius: 4.75% / 3.5%; background: var(--panel); box-shadow: 0 8px 20px rgba(0,0,0,.22); transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease; }
.dl-card-result:hover { z-index: 2; transform: translateY(-4px); border-color: rgba(255,128,147,.72); box-shadow: 0 16px 34px rgba(0,0,0,.45); }
.dl-card-result:focus-visible { outline: 2px solid var(--brand-text); outline-offset: 3px; }
.dl-card-result > img { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; display: block; object-fit: cover; background: var(--panel); }
.dl-card-result-fallback { position: absolute; inset: 0; display: grid; grid-template-rows: auto auto minmax(0,1fr) auto; gap: 6px; padding: 8% 7%; color: var(--body); background: linear-gradient(145deg,rgba(40,51,84,.82),rgba(15,20,36,.98)); }
.dl-card-result-fallback-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 7px; font-size: 11px; line-height: 1.2; }
.dl-card-result-fallback-head strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.dl-card-result-fallback-head .dl-mono { flex: none; font-size: 9px; }
.dl-card-result-fallback > span:nth-child(2) { color: var(--muted); font-size: 8.5px; line-height: 1.25; }
.dl-card-result-fallback-art { min-height: 0; border: 1px solid rgba(255,255,255,.08); border-radius: 5px; background: radial-gradient(circle at 70% 25%,rgba(233,69,96,.2),transparent 32%),repeating-linear-gradient(135deg,#1e2540 0 5px,#182034 5px 10px); }
.dl-card-result-fallback-foot { display: flex; align-items: center; gap: 4px; }
.dl-card-result-fallback-foot .mana { width: 17px; height: 17px; font-size: 8px; font-style: normal; }
.dl-card-result-fallback-foot small { margin-left: auto; color: var(--muted); font: 8px var(--mono); text-transform: uppercase; }
.dl-mobile-results { display:none; }.dl-result-card{padding:16px;display:grid;gap:13px}.dl-result-card-head{display:flex;justify-content:space-between;gap:10px}.dl-result-card h2{font-size:16px;margin:0}.dl-result-meta{display:flex;align-items:center;gap:7px}.dl-result-meta .dl-mono{margin-left:auto;color:var(--muted);font-size:11px}
.dl-pagination{display:flex;align-items:center;justify-content:space-between;margin-top:18px;color:var(--muted);font:11px var(--mono)}
.dl-detail-head{display:grid;grid-template-columns:260px 1fr;gap:34px;align-items:start}.dl-card-art{width:100%;aspect-ratio:5/7;border-radius:15px;object-fit:cover;background:linear-gradient(140deg,#27324d,#111527);border:1px solid var(--line)}.dl-detail-title h1{font-size:42px;letter-spacing:-.05em;margin:10px 0 14px}.dl-detail-actions{display:flex;gap:9px;margin:24px 0}.dl-stat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.dl-stat{padding:16px;border-radius:10px;background:var(--panel)}.dl-stat span{display:block;color:var(--muted);font:10px var(--mono);text-transform:uppercase}.dl-stat b{display:block;margin-top:8px;font:22px var(--mono)}
.dl-detail-section{margin-top:42px}.dl-detail-section-head{display:flex;align-items:end;justify-content:space-between;margin-bottom:12px}.dl-detail-section h2{margin:0}.dl-disclosure{color:var(--muted);font-size:12px}.dl-inclusion-row{display:grid;grid-template-columns:minmax(220px,1fr) 120px 120px 44px;align-items:center;min-height:56px;border-bottom:1px solid var(--line);gap:12px}.dl-inclusion-row .dl-icon-button{justify-self:end}.dl-compare-form{display:grid;grid-template-columns:1fr 1fr 180px auto;gap:12px;align-items:end;padding:16px}.dl-compare-form label{display:grid;gap:7px}.dl-compare-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:16px}.dl-compare-card{padding:20px}.dl-compare-card h2{margin:8px 0 12px}

/* Builder */
.dl-workspace-body { overflow: hidden; }.dl-workspace-body .dl-footer{display:none}.dl-workspace-body .feedback-launcher{bottom:92px}
.dl-workspace-header{height:70px;display:flex;align-items:center;gap:15px;padding:0 18px;border-bottom:1px solid var(--line);background:var(--panel);position:relative;z-index:50}.dl-workspace-header h1{font-size:16px;margin:0;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.dl-workspace-title{min-width:0}.dl-workspace-title small{display:block;margin-top:3px;color:var(--muted);font:9px var(--mono);text-transform:uppercase}.dl-workspace-header .dl-segments{margin-left:auto}.dl-save-state{color:var(--success);font:10px var(--mono);text-transform:uppercase}.dl-save-state.error{color:var(--brand-text)}
.dl-builder { height: calc(100vh - 70px); display:grid;grid-template-columns:minmax(0,1fr) 292px;background:var(--ink-deep) }.dl-builder-main{min-width:0;display:flex;flex-direction:column}.dl-builder-toolbar{min-height:62px;display:flex;align-items:center;gap:9px;padding:9px 16px;border-bottom:1px solid var(--line);background:var(--ink)}.dl-builder-toolbar .push{margin-left:auto}.dl-bulk-controls{display:flex;align-items:center;gap:6px}.dl-bulk-controls .dl-mono{font-size:9px;color:var(--muted)}.dl-builder-content{flex:1;overflow:auto;padding:18px}.dl-stats-rail{border-left:1px solid var(--line);background:var(--panel);overflow:auto;padding:20px}.dl-stats-rail h2{font:11px var(--mono);color:var(--muted);text-transform:uppercase}.dl-stat-list{display:grid;gap:8px}.dl-stat-list div{display:flex;justify-content:space-between;padding:9px 0;border-bottom:1px solid var(--line)}.dl-stat-list b{font:13px var(--mono)}
.dl-zone-section{margin-bottom:18px;border:1px solid var(--line);border-radius:11px;background:var(--panel);overflow:hidden}.dl-zone-heading{min-height:48px;display:flex;align-items:center;gap:9px;padding:0 13px;background:rgba(255,255,255,.015)}.dl-zone-heading button{border:0;background:transparent;color:var(--muted)}.dl-zone-heading h2{margin:0;font:12px var(--mono);letter-spacing:.04em;text-transform:uppercase}.dl-zone-heading .dl-mono{margin-left:auto;color:var(--muted)}.dl-zone-rows{overflow-x:auto}.dl-deck-row{min-height:48px;display:grid;grid-template-columns:28px 82px minmax(190px,1.2fr) 90px minmax(130px,1fr) 160px 70px;align-items:center;gap:9px;padding:0 12px;border-top:1px solid var(--line);font-size:12px}.dl-deck-row:hover{background:rgba(255,255,255,.025)}.dl-row-select{width:18px;height:18px;accent-color:var(--brand)}.dl-qty{display:flex;align-items:center;gap:4px}.dl-qty button{width:27px;height:27px;border:1px solid var(--line);border-radius:6px;background:var(--ink)}.dl-qty span{min-width:18px;text-align:center;font:11px var(--mono)}.dl-card-name{font-weight:600}.dl-card-name small{display:block;margin-top:2px;color:var(--muted);font-weight:400}.dl-row-actions{display:flex}.dl-zone-select{min-height:34px;border:1px solid var(--line);border-radius:7px;background:var(--ink);font-size:11px;max-width:150px}
.dl-grid-display{display:grid;grid-template-columns:repeat(auto-fill,minmax(128px,1fr));gap:10px;padding:12px}.dl-grid-card{position:relative;min-height:178px;border:1px solid var(--line);border-radius:9px;overflow:hidden;background:var(--ink)}.dl-grid-card img{width:100%;height:100%;object-fit:cover;display:block}.dl-grid-card .fallback{height:100%;display:grid;place-items:center;text-align:center;padding:12px}.dl-grid-card b{position:absolute;right:7px;bottom:7px;padding:3px 6px;border-radius:5px;background:rgba(6,8,13,.9);font:10px var(--mono)}
.dl-spoiler-display{display:grid;grid-template-columns:repeat(auto-fill,minmax(270px,1fr));gap:10px;padding:12px}.dl-spoiler-card{display:grid;grid-template-columns:68px 1fr;gap:11px;min-height:96px;padding:10px;border:1px solid var(--line);border-radius:9px;background:var(--ink)}.dl-spoiler-card img{width:68px;height:94px;object-fit:cover;border-radius:5px}.dl-spoiler-card p{margin:5px 0;color:var(--muted);font-size:11px;line-height:1.45}.dl-spoiler-card .dl-mana-inline{display:inline;white-space:nowrap}.dl-spoiler-card .dl-mana-symbol,.dl-spoiler-card p .mana{display:inline-grid;width:1.15em;height:1.15em;flex:none;vertical-align:-0.2em;margin:0 .05em;font-size:7px;font-style:normal;font-weight:700}
.dl-add-panel{position:fixed;left:0;top:70px;bottom:0;width:360px;z-index:65;display:flex;flex-direction:column;border-right:1px solid var(--line);background:var(--panel);box-shadow:20px 0 50px rgba(0,0,0,.35);transform:translateX(-101%);transition:transform .2s ease}.dl-add-panel.open{transform:translateX(0)}.dl-add-head{padding:17px;border-bottom:1px solid var(--line)}.dl-add-head>div{display:flex;align-items:center;justify-content:space-between}.dl-add-head h2{margin:0;font-size:16px}.dl-add-results{flex:1;overflow:auto;padding:8px 14px}.dl-search-result{min-height:60px;display:grid;grid-template-columns:minmax(0,1fr) 44px;align-items:center;border-bottom:1px solid var(--line);gap:8px}.dl-search-result strong{display:block;font-size:13px}.dl-search-result small{color:var(--muted)}.dl-advanced{display:grid;gap:10px;padding-top:12px}.dl-add-destination{padding:10px 14px;color:var(--muted);font:10px var(--mono);text-transform:uppercase;background:var(--ink)}
.dl-playmat{min-width:100%;min-height:900px;position:relative;overflow:hidden;border-radius:12px;background-color:#11182b;background-size:32px 32px;transform-origin:0 0}.dl-playmat.slate-grid{background-image:linear-gradient(rgba(255,255,255,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.035) 1px,transparent 1px)}.dl-playmat.felt-weave{background:repeating-linear-gradient(35deg,#13251f 0 3px,#10211c 3px 7px)}.dl-playmat.deep-field{background:radial-gradient(circle at 35% 30%,#172943,#090e19 70%)}.dl-playmat.graph-paper{background-color:#1a2030;background-image:linear-gradient(rgba(152,160,189,.08) 1px,transparent 1px),linear-gradient(90deg,rgba(152,160,189,.08) 1px,transparent 1px)}.dl-playmat.void{background:#07090e}.dl-mat-zone{position:absolute;width:250px;min-height:190px;padding:12px;border:1px dashed transparent;border-radius:13px;background:rgba(10,13,22,.72);touch-action:none;transition:border-color .15s,opacity .15s}.dl-playmat.show-zone-outlines .dl-mat-zone{border-color:rgba(152,160,189,.45)}.dl-mat-zone.active,.dl-mat-zone:focus-visible{border-color:var(--brand)!important;outline:none}.dl-mat-zone.drop-target{box-shadow:0 0 0 2px var(--brand),0 12px 35px rgba(0,0,0,.3)}.dl-playmat.dim-inactive .dl-mat-zone.active~.dl-mat-zone:not(.active) .dl-mat-card,.dl-playmat.dim-inactive:has(.dl-mat-zone.active) .dl-mat-zone:not(.active) .dl-mat-card{opacity:.3}.dl-mat-zone h2{margin:0 0 11px;font:11px var(--mono);text-transform:uppercase}.dl-mat-cards{display:flex;flex-wrap:wrap;gap:6px}.dl-mat-card{width:64px;height:89px;border:1px solid var(--line);border-radius:6px;overflow:hidden;background:var(--panel-2);font-size:9px;display:grid;place-items:center;text-align:center;touch-action:none;transition:opacity .15s,transform .15s}.dl-mat-card.dragging{opacity:.25}.dl-mat-card img{width:100%;height:100%;object-fit:cover}.dl-mat-zone.fan .dl-mat-cards{display:block;min-height:110px}.dl-mat-zone.fan .dl-mat-card{position:absolute;margin-top:3px;transform:translateX(calc(var(--card-index) * 10px)) rotate(calc((var(--card-index) - 3) * 2deg));transform-origin:50% 110%}.dl-mat-command{border-style:solid;border-color:rgba(233,69,96,.45)}.dl-zoom{position:fixed;left:18px;bottom:18px;z-index:30;display:flex;align-items:center;gap:5px;padding:5px;border:1px solid var(--line);border-radius:10px;background:var(--panel)}
.dl-bottom-action{display:none}

/* Shared read-only */
.dl-shared-banner{padding:10px 18px;text-align:center;background:rgba(233,69,96,.12);color:var(--brand-text);font-size:12px}
.dl-body:has(.dl-add-panel.open) .feedback-launcher,.dl-body:has(.dl-filters.open) .feedback-launcher,.dl-body:has(.dl-drawer.open) .feedback-launcher,.dl-body:has(dialog[open]) .feedback-launcher{display:none}
/* Admin */
.dl-admin-nav .dl-wordmark small{padding:4px 6px;border:1px solid var(--line);border-radius:5px;color:var(--brand-text);font:9px var(--mono);letter-spacing:.08em}.dl-admin-kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:16px 0 34px}.dl-admin-kpi{display:grid;gap:8px;padding:20px}.dl-admin-kpi>span{color:var(--muted);font-size:12px}.dl-admin-kpi>b{font:30px var(--mono)}.dl-admin-kpi>small{color:var(--success);font:10px var(--mono)}.dl-admin-columns{display:grid;grid-template-columns:1fr 1fr;gap:24px}.dl-attention,.dl-activity{min-height:70px;display:flex;align-items:center;justify-content:space-between;gap:15px;padding:13px 16px;border-bottom:1px solid var(--line)}.dl-attention:last-child,.dl-activity:last-child{border:0}.dl-attention small{display:block;margin-top:4px;color:var(--muted)}.dl-attention>span{color:var(--brand-text);font-size:12px}.dl-activity{font-size:13px}.dl-activity time{color:var(--muted);font:10px var(--mono);white-space:nowrap}.dl-user-controls{display:grid;grid-template-columns:minmax(250px,1fr) auto;gap:12px;margin:20px 0}.dl-user-card{padding:18px;display:grid;gap:15px}.dl-user-card-head{display:flex;align-items:start;justify-content:space-between;gap:10px}.dl-user-card-head small{display:block;margin-top:5px;color:var(--muted)}.dl-status{display:inline-flex;align-items:center;gap:6px;font:10px var(--mono);text-transform:uppercase}.dl-status-active{color:var(--success)}.dl-status-invited{color:var(--warning)}.dl-status-disabled{color:var(--muted)}.dl-user-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.dl-user-metrics div{padding:10px;border-radius:8px;background:var(--ink)}.dl-user-metrics span{display:block;color:var(--muted);font-size:10px}.dl-user-metrics b{display:block;margin-top:6px;font:13px var(--mono)}.dl-invite-result{display:grid;gap:12px;padding:18px;margin-bottom:20px;border-color:rgba(87,211,155,.45)}.dl-invite-link{display:flex;gap:8px}.dl-invite-link code{flex:1;padding:12px;border-radius:8px;background:var(--ink);overflow:auto;color:var(--muted)}

@media (max-width: 1100px) {
  .dl-library-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media (max-width: 767px) {
  .dl-nav { height:54px;grid-template-columns:1fr auto;padding:0 16px }.dl-nav-links,.dl-account-menu{display:none}.dl-menu-button{display:flex;align-items:center;justify-content:center;gap:4px;width:52px}.dl-main{padding:24px 16px 86px}.dl-footer{padding-bottom:calc(24px + env(safe-area-inset-bottom))}
  .dl-drawer-backdrop{display:block;position:fixed;inset:0;z-index:88;background:rgba(6,8,13,.65)}.dl-drawer{display:flex;position:fixed;z-index:90;inset:0 0 0 auto;width:min(300px,86vw);flex-direction:column;padding:18px;background:var(--panel);border-left:1px solid var(--line);transform:translateX(101%);transition:transform .2s ease}.dl-drawer.open{transform:translateX(0)}.dl-drawer-head{display:flex;align-items:center;justify-content:space-between}.dl-drawer-head button{width:44px;height:44px;border:0;background:transparent;font-size:24px}.dl-drawer-user{display:flex;gap:11px;align-items:center;padding:20px 10px;margin-top:8px;border-bottom:1px solid var(--line)}.dl-drawer-user>span{font-size:25px}.dl-drawer-user small{display:block;margin-top:3px;color:var(--muted);max-width:190px;overflow:hidden;text-overflow:ellipsis}.dl-drawer nav{display:grid;padding-top:12px}.dl-drawer nav a,.dl-drawer-bottom>a{min-height:48px;display:flex;align-items:center;padding:0 13px;border-radius:10px;color:var(--muted)}.dl-drawer nav a:hover{background:rgba(233,69,96,.12);color:var(--brand-text)}.dl-drawer-bottom{margin-top:auto;display:grid;gap:10px}
  .dl-page-head{align-items:start;margin-bottom:18px}.dl-page-head h1{font-size:24px}.dl-page-head p{font-size:13px}.dl-page-head .dl-button{display:none}
  .dl-home-hero{min-height:auto;display:block;padding:30px 0 50px}.dl-home-hero h1{font-size:49px}.dl-home-hero p{font-size:16px}.dl-hero-mat{display:none}.dl-home-actions{display:grid}.dl-door-grid{grid-template-columns:1fr}.dl-door{min-height:0;padding:24px}.dl-how{margin:48px 0}.dl-how-grid{grid-template-columns:1fr}.dl-step{padding:22px}.desktop-copy{display:none}.mobile-copy{display:block}
  .dl-library-main{padding:24px 16px 100px}.dl-library-controls{gap:16px;margin-bottom:16px}.dl-library-head{display:grid;grid-template-columns:minmax(0,1fr);justify-content:stretch;gap:16px}.dl-library-head-actions{width:100%;display:grid;grid-template-columns:minmax(0,1fr)}.dl-library-head-actions>.dl-button{display:none}.dl-library-search{width:100%}.dl-library-search input{min-height:46px;font-size:14px}.dl-library-filter-row{align-items:stretch;flex-direction:column;gap:11px}.dl-library-pills{overflow-x:auto;padding-bottom:2px}.dl-library-sort{align-self:flex-end;margin-left:0}.dl-library-grid{grid-template-columns:1fr}.dl-deck-card{min-height:180px;padding:10px 18px}.dl-deck-card-foot .dl-button{min-height:44px}.dl-new-deck-card{display:none}.dl-legacy-row{align-items:flex-start;flex-direction:column}.dl-bottom-action{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:55;padding:12px 16px calc(12px + env(safe-area-inset-bottom));background:var(--panel);border-top:1px solid var(--line)}.dl-bottom-action .dl-button{width:100%}.dl-body:has(.dl-library-main) .feedback-launcher{bottom:calc(78px + env(safe-area-inset-bottom))}
  .dl-research-search{margin:0 0 12px}.dl-research-search .dl-field{height:46px;padding-right:13px;font-size:14px}.dl-research-search kbd{display:none}.dl-research-main>.dl-segments{width:100%;display:flex}.dl-research-main>.dl-segments a{flex:1;justify-content:center}.dl-research-layout{display:block;margin-top:14px}.dl-filters{display:none;position:fixed;z-index:100;left:0;right:0;bottom:0;top:auto;max-height:84vh;overflow:auto;border-radius:18px 18px 0 0;padding:20px}.dl-filters.open{display:flex}.dl-research-summary{flex-wrap:wrap;font-size:10px}.dl-research-summary-actions{width:100%;margin-left:0;justify-content:flex-end}.dl-research-window .dl-select-control{min-width:132px}.dl-research-sort summary>span:first-child{display:none}.dl-research-sort .dl-library-sort-menu{width:180px}.dl-card-result-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.dl-research-table{display:none}.dl-mobile-results{display:grid;gap:11px}.dl-result-actions{display:flex;gap:8px}.dl-result-actions .dl-button{flex:1}.dl-percent{grid-template-columns:48px 1fr}.dl-detail-head{grid-template-columns:1fr;gap:15px}.dl-card-art{width:140px;margin:0 auto}.dl-detail-title h1{font-size:27px}.dl-detail-actions{display:grid;grid-template-columns:1fr 1fr}.dl-stat-grid{grid-template-columns:repeat(2,1fr)}.dl-inclusion-row{grid-template-columns:minmax(0,1fr) 64px 44px}.dl-inclusion-row>:nth-child(3){display:none}.dl-compare-form,.dl-compare-grid{grid-template-columns:1fr}.dl-compare-form .dl-button{width:100%}
  .dl-workspace-body{overflow:auto}.dl-workspace-header{height:64px;padding:0 10px}.dl-workspace-title{max-width:50vw}.dl-workspace-title small{font-size:8px}.dl-workspace-header .dl-segments{display:none}.dl-builder{height:calc(100vh - 64px);display:block}.dl-builder-toolbar{overflow-x:auto;padding:8px 10px}.dl-builder-toolbar .desktop-only,.dl-stats-rail{display:none}.dl-builder-content{padding:10px 10px 90px}.dl-deck-row{grid-template-columns:minmax(0,1fr) 60px;min-height:64px}.dl-deck-row>:not(.dl-card-name):not(.dl-row-actions){display:none}.dl-row-actions{justify-content:end}.dl-row-actions .dl-icon-button:first-child{display:none}.dl-zone-heading{position:sticky;top:0;z-index:4}.dl-grid-display{grid-template-columns:repeat(3,1fr);gap:7px;padding:8px}.dl-grid-card{min-height:145px}.dl-spoiler-display{grid-template-columns:1fr;padding:8px}.dl-add-panel{top:0;width:100%;z-index:120}.dl-playmat-view{display:none!important}.dl-zoom{display:none}.dl-workspace-body .feedback-launcher{bottom:92px}
  .dl-admin-kpis{grid-template-columns:repeat(2,1fr)}.dl-admin-columns{grid-template-columns:1fr}.dl-user-controls{grid-template-columns:1fr}.dl-user-metrics{grid-template-columns:repeat(2,1fr)}.dl-invite-link{display:grid}
}
@media (prefers-reduced-motion: reduce) { *,*::before,*::after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important} }

/* Builder workspace — fixed, three-pane application shell */
.dl-workspace-body{height:100dvh;overflow:hidden}.dl-workspace-body .dl-main-wide{height:calc(100dvh - 56px);padding:0;max-width:none}.dl-workspace-body .feedback-launcher{bottom:20px;right:20px}
.dl-workspace-header{height:56px;padding:0 10px;gap:10px;background:#111626}.dl-workspace-header>.push{margin-left:auto}.dl-workspace-back{width:34px;height:34px;font-size:20px}.dl-workspace-brand{width:34px;height:34px;display:grid;place-items:center}.dl-workspace-brand .dl-mark{width:30px;height:30px}.dl-workspace-crumb{min-width:0;display:flex;align-items:center;gap:10px;color:var(--muted);font-size:13px}.dl-workspace-crumb i{font-style:normal;color:#5e6680}.dl-workspace-crumb button{max-width:260px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border:0;background:transparent;color:var(--paper);font:600 14px var(--sans);padding:5px 0;border-bottom:1px solid transparent}.dl-workspace-crumb button:not(:disabled):hover{border-color:var(--muted)}.dl-save-state{padding:6px;border:0;background:transparent}.dl-rail-toggle{width:34px;height:34px;display:grid;place-items:center;padding:0;border:1px solid var(--line);border-radius:8px;background:var(--ink);color:var(--muted)}.dl-rail-toggle:hover{color:var(--paper);border-color:#4b5573}.dl-rail-toggle svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.4}.dl-view-switch{margin-left:4px}.dl-workspace-header .dl-account-menu{margin-left:0}
.dl-builder{height:100%;display:grid;grid-template-columns:250px minmax(0,1fr) 272px;overflow:hidden;background:var(--ink-deep);transition:grid-template-columns .2s ease}.dl-builder.left-collapsed{grid-template-columns:0 minmax(0,1fr) 272px}.dl-builder.right-collapsed{grid-template-columns:250px minmax(0,1fr) 0}.dl-builder.left-collapsed.right-collapsed{grid-template-columns:0 minmax(0,1fr) 0}.dl-builder[data-shared="true"]{grid-template-columns:minmax(0,1fr) 272px}.dl-builder[data-shared="true"].right-collapsed{grid-template-columns:minmax(0,1fr) 0}
.dl-builder-main{min-width:0;min-height:0;display:flex;flex-direction:column;overflow:hidden}.dl-builder-toolbar{min-height:54px;flex:0 0 54px;padding:8px 14px}.dl-builder-content{min-height:0;flex:1;overflow:auto;padding:16px}.dl-builder-rail-head{min-height:50px;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 14px;border-bottom:1px solid var(--line)}.dl-builder-rail-head>.dl-icon-button{width:28px;height:28px}.dl-builder-rail-head .dl-mono{display:block;margin-top:3px;color:var(--muted);font-size:9px}
.dl-add-panel{position:relative;inset:auto;width:auto;min-width:0;height:100%;z-index:20;display:flex;flex-direction:column;overflow:hidden;border:0;border-right:1px solid var(--line);background:#0d1220;box-shadow:none;transform:none;transition:none}.dl-builder.left-collapsed .dl-add-panel,.dl-builder.right-collapsed .dl-stats-rail{visibility:hidden;overflow:hidden}.dl-add-search{display:grid;gap:10px;padding:12px 14px}.dl-search-field{position:relative;display:block}.dl-search-field>span{position:absolute;z-index:1;left:11px;top:50%;transform:translateY(-50%);color:var(--muted)}.dl-search-field .dl-field{width:100%;min-height:39px;padding-left:32px}.dl-add-types{display:flex;flex-wrap:wrap;gap:7px}.dl-add-types button{min-height:30px;padding:0 11px;border:1px solid var(--line);border-radius:999px;background:#161d31;color:var(--muted);font-size:11px}.dl-add-types button[aria-pressed="true"]{border-color:var(--brand);background:var(--brand);color:#090b10}.dl-add-more{border-top:1px solid var(--line);padding-top:8px}.dl-add-more summary{cursor:pointer;color:var(--muted);font:10px var(--mono);text-transform:uppercase}.dl-add-more .dl-advanced{padding:10px 0 0}.dl-add-more .dl-advanced>div{display:grid;grid-template-columns:1fr 1fr;gap:7px}.dl-add-destination{display:grid;gap:5px;padding:9px 14px;border-block:1px solid var(--line);background:var(--ink);text-transform:none}.dl-add-destination label{display:flex;align-items:center;justify-content:space-between;gap:8px;color:var(--paper);font:10px var(--mono);text-transform:uppercase}.dl-add-destination .dl-zone-select{max-width:145px}.dl-add-results{min-height:0;flex:1;display:grid;align-content:start;gap:7px;overflow:auto;padding:10px}.dl-search-result{min-height:78px;display:grid;grid-template-columns:48px minmax(0,1fr) 30px;align-items:center;gap:8px;padding:6px;border:1px solid transparent;border-radius:9px;background:#12182a;cursor:grab}.dl-search-result:hover{border-color:#3a4566;background:#171f34}.dl-search-result-art{width:48px;height:66px;border-radius:5px;overflow:hidden;background:var(--panel-2)}.dl-search-result-art img{width:100%;height:100%;object-fit:cover}.dl-search-result strong{display:block;font-size:11px;line-height:1.25}.dl-search-result small{display:block;margin-top:4px;color:var(--muted);font-size:9px;line-height:1.3}.dl-add-help{margin:0;padding:10px 14px;border-top:1px solid var(--line);color:var(--muted);font:9px/1.5 var(--mono);text-transform:uppercase}
.dl-add-panel [data-commanders-open] {
  margin: 0 14px 10px;
  min-height: 34px;
  padding: 0 10px;
  font-size: 11px;
  white-space: nowrap;
  flex: none;
}
.dl-stats-rail{min-width:0;height:100%;overflow:auto;padding:0 14px 70px;border:0;border-left:1px solid var(--line);background:#0d1220}.dl-stats-rail .dl-builder-rail-head{margin:0 -14px}.dl-stats-rail section{padding:15px 0;border-bottom:1px solid var(--line)}.dl-stats-rail h2{margin:0 0 11px;color:var(--muted);font:10px var(--mono);letter-spacing:.08em;text-transform:uppercase}.dl-mana-curve{height:95px;display:flex;align-items:end;gap:7px}.dl-curve-bin{height:100%;flex:1;display:flex;flex-direction:column;align-items:center;justify-content:end;gap:5px}.dl-curve-bin i{width:100%;min-height:2px;border-radius:3px 3px 0 0;background:#4a5b8b}.dl-curve-bin:first-child i{background:var(--brand)}.dl-curve-bin span{color:var(--muted);font:9px var(--mono)}.dl-color-stats{display:flex;flex-wrap:wrap;gap:12px}.dl-color-stats>div{display:flex;align-items:center;gap:6px}.dl-color-stats span{font:11px var(--mono);color:var(--muted)}.dl-color-stats .mana{width:22px;height:22px;font-size:9px}.dl-stat-list{gap:7px}.dl-stat-list>button{width:100%;min-height:35px;display:flex;align-items:center;justify-content:space-between;padding:0 10px;border:1px solid var(--line);border-radius:8px;background:#12182a;color:var(--paper);font-size:11px}.dl-stat-list>button:not(:disabled):hover{border-color:#4a587d;background:#182137}.dl-stat-list>button:disabled{opacity:1}.dl-stat-list b{font:10px var(--mono)}.dl-builder-tag-summary{display:flex;flex-wrap:wrap;gap:6px}.dl-text-button{margin-top:9px;padding:0;border:0;background:transparent;color:var(--brand-text);font-size:11px}.dl-text-button:hover{text-decoration:underline}
.dl-playmat-view{position:relative;min-height:0;flex:1;overflow:hidden;background:#090d17}.dl-playmat-stage{position:absolute;inset:0;overflow:hidden;touch-action:none}.dl-playmat{position:absolute;left:0;top:0;min-width:0;min-height:0;overflow:visible;border-radius:0;transform-origin:0 0;background-color:#11182b;background-size:24px 24px;box-shadow:0 0 0 1px rgba(89,101,137,.26)}.dl-playmat.slate-grid{background-image:linear-gradient(rgba(255,255,255,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.035) 1px,transparent 1px)}.dl-playmat.graph-paper{background-color:#141a29;background-image:linear-gradient(rgba(152,160,189,.07) 1px,transparent 1px),linear-gradient(90deg,rgba(152,160,189,.07) 1px,transparent 1px)}.dl-pan-hint{position:absolute;right:14px;bottom:14px;padding:6px 10px;border:1px solid var(--line);border-radius:7px;background:rgba(12,16,27,.86);color:var(--muted);font:9px var(--mono);letter-spacing:.05em;text-transform:uppercase}.dl-space-held .dl-playmat-stage{cursor:grab}.dl-playmat-stage.panning{cursor:grabbing}.dl-zoom{position:absolute;left:14px;bottom:14px;z-index:30}.dl-workspace-body .feedback-launcher{z-index:45}
.dl-mat-zone{position:absolute;width:auto;min-width:170px;min-height:142px;padding:0 10px 10px;border:1px solid rgba(58,69,100,.65);border-radius:12px;background:rgba(10,14,24,.82);touch-action:none;transition:border-color .15s,box-shadow .15s,opacity .15s}.dl-playmat.show-zone-outlines .dl-mat-zone{border-color:#39435f}.dl-mat-zone.active,.dl-mat-zone:focus-visible{border-color:#6577aa!important;box-shadow:0 0 0 1px rgba(102,121,171,.24);outline:none}.dl-mat-zone.moving{box-shadow:0 16px 38px rgba(0,0,0,.45)}.dl-mat-zone.drop-target{border:2px dashed var(--brand)!important;background:rgba(233,69,96,.09);box-shadow:0 0 0 3px rgba(233,69,96,.12)}.dl-mat-zone.drop-target::after{content:"Drop here";position:absolute;right:10px;top:9px;padding:4px 7px;border-radius:5px;background:var(--brand);color:#090b10;font:9px var(--mono);text-transform:uppercase}.dl-playmat.dim-inactive:has(.dl-mat-zone.active) .dl-mat-zone:not(.active) .dl-mat-card{opacity:.35}.dl-mat-zone-bar{height:39px;display:flex;align-items:center;gap:7px;margin:0 -10px 8px;padding:0 9px;border-bottom:1px solid rgba(67,78,109,.65);border-radius:11px 11px 0 0;background:rgba(18,24,41,.94);cursor:grab;user-select:none}.dl-mat-zone.moving .dl-mat-zone-bar{cursor:grabbing}.dl-zone-grip{color:#6f7892;font-size:14px}.dl-mat-zone-bar h2{margin:0;color:var(--paper);font:10px var(--mono);letter-spacing:.07em;text-transform:uppercase}.dl-mat-zone-bar b{color:var(--muted);font:10px var(--mono)}.dl-zone-average{margin-left:auto;color:var(--muted);font:8px var(--mono);white-space:nowrap}.dl-zone-menu{position:relative;margin-left:auto}.dl-zone-average+.dl-zone-menu{margin-left:0}.dl-zone-menu summary{width:27px;height:27px;display:grid;place-items:center;border-radius:6px;color:var(--muted);cursor:pointer;list-style:none;letter-spacing:1px}.dl-zone-menu summary::-webkit-details-marker{display:none}.dl-zone-menu summary:hover,.dl-zone-menu[open] summary{background:#27314d;color:var(--paper)}.dl-zone-menu-popover{position:absolute;z-index:80;right:0;top:31px;width:178px;padding:5px;border:1px solid #3b4668;border-radius:9px;background:#171e32;box-shadow:0 16px 40px rgba(0,0,0,.45)}.dl-zone-menu-popover button{width:100%;min-height:34px;display:flex;align-items:center;padding:0 9px;border:0;border-radius:6px;background:transparent;color:var(--paper);font-size:11px;text-align:left}.dl-zone-menu-popover button:hover{background:#26304b}.dl-zone-menu-popover button.danger{margin-top:4px;border-top:1px solid var(--line);border-radius:0 0 6px 6px;color:#ff7890}.dl-mat-cards{position:relative;display:flex;flex-wrap:nowrap;align-items:start;gap:7px;min-height:103px}.dl-mat-card{position:relative;width:74px;height:103px;flex:0 0 74px;padding:0;border:1px solid #35415f;border-radius:7px;overflow:hidden;background:#171d31;color:var(--muted);font-size:8px;cursor:grab;transition:opacity .15s,transform .15s,box-shadow .15s}.dl-mat-card:hover{z-index:4;transform:translateY(-4px);box-shadow:0 12px 22px rgba(0,0,0,.4)}.dl-mat-card.selected{border-color:var(--brand);box-shadow:0 0 0 2px rgba(233,69,96,.24)}.dl-mat-card.drag-source{opacity:0}.dl-drag-preview{position:fixed;left:0;top:0;z-index:500;width:132px;height:184px;margin:0;padding:0;border:1px solid #35415f;border-radius:7px;overflow:hidden;background:#171d31;box-shadow:0 18px 40px rgba(0,0,0,.55);pointer-events:none}.dl-drag-preview img{width:100%;height:100%;display:block;object-fit:cover}.dl-drag-preview span{display:grid;place-items:center;height:100%;padding:8px;color:var(--paper);font-size:11px;text-align:center}.dl-search-result.drag-source{opacity:.45}.dl-mat-card img{width:100%;height:100%;display:block;object-fit:cover}.dl-mat-zone.fan .dl-mat-cards{display:block;min-height:110px}.dl-mat-zone.fan .dl-mat-card{position:absolute;left:0;top:0;transform:translateX(calc(var(--card-index) * 15px)) rotate(calc((var(--card-index) - 3) * 1.5deg));transform-origin:50% 130%}.dl-mat-zone.fan .dl-mat-card:hover{transform:translateX(calc(var(--card-index) * 15px)) translateY(-6px)}.dl-mat-add{width:74px;height:103px;flex:0 0 74px;border:1px dashed #465373;border-radius:7px;background:rgba(13,18,32,.65);color:#74809f;font-size:20px}.dl-mat-add:hover{border-color:var(--brand);color:var(--brand-text);background:rgba(233,69,96,.07)}.dl-mat-command{min-width:170px;border-color:rgba(233,69,96,.5);background:rgba(37,20,34,.6)}.dl-mat-command .dl-mat-card{width:132px;height:184px;flex-basis:132px}.dl-mat-command .dl-mat-cards{justify-content:center}.dl-mat-command .dl-mat-zone-bar{background:rgba(54,24,43,.9)}
.dl-mat-cards{max-width:100%;min-height:115px;padding:4px 0 8px;overflow-x:auto;overflow-y:hidden;overscroll-behavior-inline:contain;scroll-snap-type:x proximity;scrollbar-width:thin;scrollbar-color:#465373 rgba(10,14,24,.55)}.dl-mat-cards::-webkit-scrollbar{height:5px}.dl-mat-cards::-webkit-scrollbar-track{border-radius:999px;background:rgba(10,14,24,.55)}.dl-mat-cards::-webkit-scrollbar-thumb{border-radius:999px;background:#465373}.dl-mat-cards:focus-visible{outline:1px solid #6577aa;outline-offset:3px}.dl-mat-card,.dl-mat-add{scroll-snap-align:start}.dl-mat-zone.fan .dl-mat-cards{min-height:118px}.dl-mat-zone.fan .dl-mat-card{top:4px}.dl-mat-command .dl-mat-cards{overflow:visible;min-height:184px;padding-block:0}
.dl-zone-dialog form{display:grid;gap:14px}.dl-zone-dialog label{display:grid;gap:7px}.dl-dialog-actions{display:flex;justify-content:flex-end;gap:8px}.dl-danger-button{border-color:#8f3347;color:#ff7890}.dl-danger-button:hover{background:rgba(233,69,96,.13)}
@media (max-width:1100px) and (min-width:768px){.dl-builder{grid-template-columns:220px minmax(0,1fr) 238px}.dl-builder.left-collapsed{grid-template-columns:0 minmax(0,1fr) 238px}.dl-builder.right-collapsed{grid-template-columns:220px minmax(0,1fr) 0}.dl-workspace-crumb span,.dl-workspace-crumb i{display:none}.dl-workspace-header>.dl-button{display:none}}
@media (max-width:767px){.dl-workspace-body{height:auto;overflow:auto}.dl-workspace-body .dl-main-wide{height:calc(100dvh - 56px);padding:0}.dl-workspace-header{height:56px}.dl-workspace-header .dl-rail-toggle,.dl-workspace-header .dl-view-switch,.dl-workspace-header>[data-playmat-only],.dl-workspace-header>[data-table-only]{display:none!important}.dl-workspace-crumb span,.dl-workspace-crumb i{display:none}.dl-workspace-crumb button{max-width:42vw}.dl-builder,.dl-builder.left-collapsed,.dl-builder.right-collapsed,.dl-builder.left-collapsed.right-collapsed{height:100%;display:block}.dl-builder-main{height:100%}.dl-add-panel{display:none;position:fixed;inset:56px 0 0;z-index:120;width:100%;height:auto}.dl-builder:not(.left-collapsed) .dl-add-panel{display:flex}.dl-add-panel .dl-builder-rail-head>.dl-icon-button{display:grid}.dl-builder-toolbar{min-height:54px;overflow:auto}.dl-stats-rail{display:none}.dl-playmat-view{display:none!important}.dl-builder-content{padding:10px 10px 90px}.dl-bottom-action{display:flex}.dl-workspace-body .feedback-launcher{bottom:92px}}
.dl-playmat-selection{position:absolute;z-index:45;left:50%;top:12px;transform:translateX(-50%);min-height:44px;display:flex;align-items:center;gap:7px;padding:5px 7px 5px 12px;border:1px solid #414c6d;border-radius:10px;background:rgba(20,26,44,.96);box-shadow:0 12px 34px rgba(0,0,0,.4)}.dl-playmat-selection>strong{margin-right:3px;font:10px var(--mono);white-space:nowrap}.dl-playmat-selection .dl-select-control{width:130px}.dl-playmat-selection .dl-button{min-height:32px;padding:0 10px;border-radius:7px;font-size:11px}.dl-playmat-selection .dl-text-button{min-height:32px;margin:0;padding:0 7px;text-decoration:none}.dl-playmat-selection .dl-text-button.danger{color:#ff7890}.dl-playmat-selection .dl-icon-button{width:32px;height:32px}.dl-new-zone-floating{position:absolute;z-index:35;left:156px;bottom:14px;min-height:36px;padding:0 11px;border-style:dashed;border-radius:8px;background:rgba(13,18,32,.9);color:var(--muted);font-size:10px}.dl-new-zone-floating:hover{border-color:var(--brand);color:var(--brand-text)}
.dl-zoom{gap:2px;padding:3px;border-radius:8px;box-shadow:0 8px 22px rgba(0,0,0,.24)}.dl-zoom .dl-icon-button{width:28px;height:28px;border-radius:6px;font-size:15px}.dl-zoom .dl-mono{min-width:32px;text-align:center;font-size:10px}.dl-zoom .dl-button{min-height:28px;padding:0 9px;border-radius:6px;font-size:10px}

/* Authentication */
.dl-auth-body{min-height:100dvh;background:radial-gradient(circle at 20% 12%,rgba(233,69,96,.09),transparent 29%),radial-gradient(circle at 82% 72%,rgba(69,96,160,.1),transparent 31%),var(--ink-deep)}.dl-auth-nav{height:64px;display:flex;align-items:center;justify-content:space-between;padding:0 max(24px,calc((100vw - 1240px)/2));border-bottom:1px solid rgba(38,46,74,.76);background:rgba(14,18,31,.88);backdrop-filter:blur(16px)}.dl-auth-nav-note{color:#737c99;font:10px var(--mono);letter-spacing:.11em;text-transform:uppercase}.dl-auth-main{width:100%;max-width:none;display:grid;align-items:center;padding:46px max(28px,calc((100vw - 1100px)/2))}.dl-auth-layout{width:100%;display:grid;grid-template-columns:minmax(0,1fr) 410px;align-items:center;gap:90px}.dl-auth-intro{min-width:0}.dl-auth-intro h1{max-width:620px;margin:15px 0 18px;color:var(--body);font-size:clamp(48px,6vw,76px);line-height:.98;letter-spacing:-.065em}.dl-auth-intro>p{max-width:570px;margin:0;color:var(--muted);font-size:16px;line-height:1.65}.dl-auth-playmat{position:relative;width:min(520px,100%);height:205px;margin-top:36px;overflow:hidden;border:1px solid #252e49;border-radius:17px;background-image:linear-gradient(rgba(255,255,255,.03) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.03) 1px,transparent 1px),radial-gradient(circle at 17% 24%,rgba(233,69,96,.13),transparent 35%);background-size:24px 24px,24px 24px,auto;box-shadow:0 22px 55px rgba(0,0,0,.22)}.dl-auth-zone{position:absolute;padding:9px;border:1px solid #36415f;border-radius:9px;background:rgba(17,23,42,.9)}.dl-auth-zone span{display:block;margin-bottom:7px;color:#8992ae;font:8px var(--mono);letter-spacing:.08em}.dl-auth-zone i{display:inline-block;width:39px;height:55px;margin-right:4px;border:1px solid #35405f;border-radius:4px;background:repeating-linear-gradient(135deg,#242d49 0 5px,#1c243c 5px 10px);box-shadow:0 6px 12px rgba(0,0,0,.24)}.dl-auth-zone-one{left:18px;top:18px;border-color:rgba(233,69,96,.55)}.dl-auth-zone-two{left:108px;top:18px}.dl-auth-zone-three{right:18px;bottom:17px}.dl-auth-panel{padding:34px;border-color:#29324f;background:rgba(18,23,42,.94);box-shadow:0 28px 70px rgba(0,0,0,.32)}.dl-auth-panel h1{margin:11px 0 8px;font-size:28px;letter-spacing:-.04em}.dl-auth-lead{margin:0;color:var(--muted);font-size:13px;line-height:1.55}.dl-auth-form{display:grid;gap:17px;margin-top:27px}.dl-auth-form label{display:grid;gap:7px}.dl-auth-form label>span{color:#a5adc8;font-size:12px;font-weight:600}.dl-auth-form .dl-field{min-height:48px;background:#1a2238}.dl-auth-form .dl-button{min-height:48px;margin-top:3px;font-size:13px;font-weight:650}.dl-auth-error,.dl-auth-notice{margin-top:19px;padding:12px 14px;border:1px solid rgba(233,69,96,.38);border-radius:9px;background:rgba(233,69,96,.09);color:var(--brand-text);font-size:12px;line-height:1.5}.dl-auth-notice{border-color:var(--line);background:var(--ink);color:var(--body)}.dl-auth-notice strong{display:block}.dl-auth-notice p{margin:5px 0 0;color:var(--muted)}.dl-auth-notice code{color:var(--brand-text)}.dl-auth-notice pre{margin:10px 0 0;padding:9px;border-radius:6px;background:#070a11;color:#c9cde0;overflow:auto;font:10px var(--mono)}.dl-auth-recovery{display:block;width:max-content;margin:17px auto 0;color:var(--muted);font-size:12px}.dl-auth-recovery:hover{color:var(--brand-text)}.dl-auth-body .dl-footer{padding-top:20px;padding-bottom:20px}
@media (max-width:850px){.dl-auth-main{padding:38px 20px}.dl-auth-layout{display:block}.dl-auth-intro{display:none}.dl-auth-panel{width:min(410px,100%);margin:auto}}
@media (max-width:520px){.dl-auth-nav{height:58px;padding:0 17px}.dl-auth-nav-note{display:none}.dl-auth-main{padding:28px 16px}.dl-auth-panel{padding:25px 21px}.dl-auth-panel h1{font-size:25px}.dl-auth-body .dl-footer{padding-inline:24px;font-size:10px}}

/* Builder rail controls stay attached to their respective edges. */
.dl-playmat.night-ritual{background-image:linear-gradient(rgba(5,8,12,.18),rgba(5,8,12,.18)),url("playmats/night-ritual.jpg");background-position:center;background-size:cover}
.dl-zone-layout-toggle svg{width:18px;height:18px;overflow:visible;fill:#171e32;stroke:currentColor;stroke-width:1.25;stroke-linejoin:round}
.dl-mat-card-quantity{position:absolute;z-index:5;top:7px;right:7px;min-width:28px;height:24px;display:grid;place-items:center;padding:0 6px;border:1px solid rgba(255,255,255,.38);border-radius:999px;background:rgba(7,10,17,.9);box-shadow:0 3px 10px rgba(0,0,0,.45);color:#fff;font:700 11px var(--mono);letter-spacing:.02em;pointer-events:none}
.dl-mat-zone{z-index:var(--zone-layer,1)}.dl-mat-zone.moving{z-index:240}.dl-mat-zone.menu-open{z-index:250}.dl-mat-zone-bar h2{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dl-zone-layout-toggle{width:27px;height:27px;flex:0 0 27px;display:grid;place-items:center;margin-left:auto;padding:0;border:0;border-radius:6px;background:transparent;color:var(--muted)}.dl-zone-layout-toggle:hover,.dl-zone-layout-toggle:focus-visible{background:#27314d;color:var(--paper);outline:none}.dl-zone-layout-icon{position:relative;width:16px;height:14px}.dl-zone-layout-icon::before,.dl-zone-layout-icon::after{content:"";position:absolute;width:8px;height:11px;border:1px solid currentColor;border-radius:2px;background:#171e32}.dl-zone-layout-icon.spread::before{left:0;top:1px}.dl-zone-layout-icon.spread::after{right:0;top:1px}.dl-zone-layout-icon.stacked::before{left:5px;top:3px}.dl-zone-layout-icon.stacked::after{left:2px;top:0}.dl-zone-layout-toggle+.dl-zone-menu{z-index:260;margin-left:0}.dl-zone-menu[open] .dl-zone-menu-popover{z-index:270}.dl-mat-zone.fan .dl-zone-menu-popover{left:calc(100% + 16px);right:auto;top:0}
.dl-mat-cards{min-height:196px}.dl-mat-card,.dl-mat-add{width:132px;height:184px;flex-basis:132px}.dl-mat-zone.fan .dl-mat-cards{min-height:192px;overflow:visible}.dl-mat-zone.fan .dl-mat-card{left:var(--stack-x,0);top:var(--stack-y,0);transform:none;box-shadow:2px 3px 0 rgba(7,9,15,.8),0 0 0 1px rgba(98,109,142,.32)}.dl-mat-zone.fan .dl-mat-card:hover{transform:none;box-shadow:2px 3px 0 rgba(7,9,15,.8),0 0 0 2px var(--brand)}.dl-mat-zone.fan .dl-mat-add.compact{position:absolute;z-index:120;width:32px;height:32px;min-height:0;flex-basis:32px;border-radius:7px;font-size:16px}.dl-mat-command .dl-mat-cards{min-height:184px}
.dl-playmat-stage{cursor:grab}.dl-playmat-stage.panning,.dl-playmat-stage.panning *{cursor:grabbing!important;user-select:none}
@media (min-width:768px){
  .dl-builder.left-collapsed{grid-template-columns:44px minmax(0,1fr) 272px}
  .dl-builder.right-collapsed{grid-template-columns:250px minmax(0,1fr) 44px}
  .dl-builder.left-collapsed.right-collapsed{grid-template-columns:44px minmax(0,1fr) 44px}
  .dl-builder[data-shared="true"].right-collapsed{grid-template-columns:minmax(0,1fr) 44px}
  .dl-builder.left-collapsed .dl-add-panel,.dl-builder.right-collapsed .dl-stats-rail{visibility:visible;overflow:hidden}
  .dl-builder.left-collapsed .dl-add-panel>*:not(.dl-builder-rail-head),.dl-builder.right-collapsed .dl-stats-rail>*:not(.dl-builder-rail-head){display:none}
  .dl-builder.left-collapsed .dl-add-panel .dl-builder-rail-head>div,.dl-builder.right-collapsed .dl-stats-rail .dl-builder-rail-head>div{display:none}
  .dl-builder.left-collapsed .dl-add-panel .dl-builder-rail-head,.dl-builder.right-collapsed .dl-stats-rail .dl-builder-rail-head{min-height:50px;justify-content:center;padding:7px 5px}
  .dl-builder-rail-head>.dl-rail-toggle{width:32px;height:32px;flex:0 0 32px}
}
@media (max-width:1100px) and (min-width:768px){
  .dl-builder.left-collapsed{grid-template-columns:44px minmax(0,1fr) 238px}
  .dl-builder.right-collapsed{grid-template-columns:220px minmax(0,1fr) 44px}
  .dl-builder.left-collapsed.right-collapsed{grid-template-columns:44px minmax(0,1fr) 44px}
}

/* Decklist — dense, column-aligned editing surface */
.dl-builder-toolbar{position:relative;z-index:20;min-height:58px;flex-basis:58px;gap:8px;padding:9px 12px;overflow:visible;scrollbar-width:none}
.dl-builder-toolbar::-webkit-scrollbar{display:none}
.dl-decklist-search{position:relative;width:clamp(190px,22vw,300px);min-width:190px;flex:0 1 300px;display:flex;align-items:center}
.dl-decklist-search svg{position:absolute;z-index:1;left:11px;width:15px;height:15px;fill:none;stroke:var(--muted);stroke-width:1.6;stroke-linecap:round;pointer-events:none}
.dl-decklist-search input{width:100%;height:38px;padding:0 12px 0 34px;border:1px solid var(--line);border-radius:8px;background:#182036;color:var(--body);font-size:12px;outline:none}
.dl-decklist-search input::placeholder{color:var(--muted)}
.dl-decklist-search input:focus{border-color:var(--brand);box-shadow:0 0 0 2px rgba(233,69,96,.14)}
.dl-toolbar-select{display:block;flex:0 0 auto}
.dl-toolbar-select:first-of-type .dl-select-control{width:124px}
.dl-toolbar-select:nth-of-type(2) .dl-select-control{width:156px}
.dl-toolbar-select .dl-select-trigger{min-height:38px;padding:7px 9px 7px 11px;background:#182036;font-size:11px}
.dl-toolbar-divider{width:1px;height:26px;margin:0 2px;background:var(--line)}
.dl-decklist-display{flex:0 0 auto;padding:2px;border:1px solid var(--line);background:#0d111d}
.dl-decklist-display button{min-height:32px;padding:0 12px;border-radius:7px;font-size:11px}
.dl-density{display:flex;align-items:center;gap:7px;flex:0 0 auto}
.dl-density>span{color:var(--muted);font:8px var(--mono);letter-spacing:.08em;text-transform:uppercase}
.dl-density .dl-segments{padding:2px;border:1px solid var(--line);background:#0d111d}
.dl-density button{min-height:32px;padding:0 10px;border-radius:7px;font-size:10px}
.dl-toolbar-action{min-height:38px;padding:0 11px;border-radius:8px;font-size:11px;white-space:nowrap}
.dl-decklist-more{position:relative;z-index:24;display:none;flex:0 0 auto}
.dl-decklist-more summary{width:38px;height:38px;display:grid;place-items:center;border:1px solid var(--line);border-radius:8px;background:#111728;color:var(--muted);cursor:pointer;list-style:none;letter-spacing:1px}
.dl-decklist-more summary::-webkit-details-marker{display:none}.dl-decklist-more summary:hover,.dl-decklist-more[open] summary{border-color:#465272;background:#1b2339;color:var(--paper)}
.dl-decklist-more>div{position:absolute;right:0;top:44px;width:176px;display:grid;gap:3px;padding:7px;border:1px solid #333d61;border-radius:9px;background:#161c30;box-shadow:0 18px 45px rgba(0,0,0,.55)}
.dl-decklist-more>div button{min-height:34px;padding:0 9px;border:0;border-radius:6px;background:transparent;color:var(--muted);font-size:11px;text-align:left}.dl-decklist-more>div button:hover{background:#222b45;color:var(--paper)}.dl-decklist-more>div button[aria-pressed=true]{background:rgba(233,69,96,.1);color:var(--brand-text)}
.dl-decklist-more-label{padding:5px 9px 3px;color:#7d86a3;font:8px var(--mono);letter-spacing:.08em;text-transform:uppercase}.dl-decklist-more-rule{height:1px;margin:4px;background:var(--line)}
.dl-bulk-controls{position:absolute;z-index:20;left:50%;top:7px;transform:translateX(-50%);min-height:44px;padding:5px 6px 5px 11px;border:1px solid #414c6d;border-radius:9px;background:rgba(20,26,44,.98);box-shadow:0 12px 34px rgba(0,0,0,.42)}
.dl-bulk-controls .dl-mono{min-width:max-content;color:var(--paper);font-size:9px}
.dl-bulk-controls .dl-select-control{width:142px}.dl-bulk-controls .dl-button{min-height:32px;padding:0 11px;border-radius:7px;font-size:10px}.dl-bulk-controls .dl-icon-button{width:32px;height:32px}

.dl-builder-main{container-type:inline-size}
.dl-builder-content{padding:0;background:#090c14}
.dl-decklist-surface{--dl-list-columns:28px 78px minmax(190px,1.35fr) 126px minmax(160px,1fr) 142px 118px 62px;min-width:950px;border-inline:1px solid rgba(38,46,74,.8);background:#0d111d}
.dl-decklist-columns,.dl-deck-row{display:grid;grid-template-columns:var(--dl-list-columns);align-items:center;column-gap:10px;padding-inline:12px}
.dl-decklist-columns{position:sticky;z-index:12;top:0;min-height:38px;border-bottom:1px solid var(--line);background:rgba(8,11,19,.97);color:#818aa8;font:8px var(--mono);letter-spacing:.1em;text-transform:uppercase;backdrop-filter:blur(12px)}
.dl-zone-section{margin:0;border:0;border-radius:0;background:transparent;overflow:visible}
.dl-zone-section+.dl-zone-section{border-top:1px solid #202840}
.dl-zone-heading{position:sticky;z-index:10;top:38px;min-height:40px;gap:8px;padding:0 12px;border-bottom:1px solid var(--line);background:rgba(16,21,36,.97);backdrop-filter:blur(12px)}
.dl-zone-heading h2{font-size:10px;letter-spacing:.1em;color:var(--paper)}
.dl-zone-heading.commander,.dl-zone-section.commander .dl-zone-heading{background:rgba(46,20,35,.96)}
.dl-zone-section.commander .dl-zone-heading h2,.dl-zone-section.commander .dl-zone-count{color:#ff7890}
.dl-zone-collapse{width:20px;height:26px;padding:0;font-size:10px}
.dl-zone-collapse:hover{color:var(--paper)}
.dl-zone-count{color:var(--muted);font:10px var(--mono)}
.dl-group-select{width:16px;height:16px;margin-left:auto;accent-color:var(--brand)}
.dl-zone-rows{overflow:visible}
.dl-deck-row{min-height:44px;border-top:0;border-bottom:1px solid rgba(38,46,74,.68);background:#0d111d;font-size:11px;transition:background-color .12s ease,box-shadow .12s ease}
.dl-density-comfortable .dl-deck-row{min-height:56px;font-size:12px}
.dl-deck-row:hover{background:#12182a}
.dl-deck-row.selected{background:rgba(233,69,96,.075);box-shadow:inset 3px 0 0 var(--brand)}
.dl-row-select,.dl-group-select{border-radius:4px}
.dl-row-select{width:15px;height:15px;margin:0;accent-color:var(--brand)}
.dl-qty{min-width:0;justify-content:flex-start;gap:1px;color:#d9dcea}
.dl-qty button{width:22px;height:26px;padding:0;border:0;border-radius:6px;background:transparent;color:#929bb8;font:14px var(--mono)}
.dl-qty button:hover{background:#202941;color:var(--paper)}
.dl-qty span{min-width:19px;font-size:10px}
.dl-card-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--paper);font-size:12px;font-weight:600}
a.dl-card-name:hover{color:var(--brand-text)}
.dl-card-type,.dl-zone-value{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted)}
.dl-mana-cost{min-width:0;display:flex;align-items:center;gap:3px;color:var(--muted);font:10px var(--mono);white-space:nowrap}
.dl-mana-symbol{width:20px;height:20px;flex:0 0 20px;font-size:8px;font-style:normal}
.dl-mana-generic{display:inline-grid;place-items:center;border-radius:50%;background:#bab7c9;color:#1a1820;font-weight:700;box-shadow:inset 0 0 0 1px rgba(255,255,255,.28)}
.dl-inline-zone-control{width:100%;max-width:142px}
.dl-inline-zone-control .dl-select-trigger{min-height:30px;padding:4px 7px;border-color:transparent;border-radius:6px;background:transparent;color:#aab1c9;font-size:10px}
.dl-inline-zone-control .dl-select-trigger:hover,.dl-inline-zone-control.open .dl-select-trigger{border-color:#303a5b;background:#171e32;color:var(--paper)}
.dl-role-control{width:max-content;max-width:116px}
.dl-role-control .dl-select-trigger{min-height:26px;padding:3px 7px 3px 9px;border-color:#2f395a;border-radius:999px;background:#1a2238;color:#b4bbd1;font-size:9px}
.dl-role-control .dl-select-trigger:hover,.dl-role-control.open .dl-select-trigger{border-color:#4b587d;background:#222c47;color:var(--paper)}
.dl-role-chip{width:max-content;max-width:116px;padding:5px 9px;border:1px solid #2f395a;border-radius:999px;background:#1a2238;color:#b4bbd1;font-size:9px;text-transform:capitalize}
.dl-role-empty{color:#626b88}
.dl-row-actions{justify-content:flex-end;gap:1px}
.dl-row-actions .dl-icon-button{width:28px;height:28px;border-radius:6px;font-size:15px}
.dl-row-actions .dl-icon-button:last-child{opacity:0;transition:opacity .12s ease,color .12s ease,background-color .12s ease}
.dl-deck-row:hover .dl-row-actions .dl-icon-button:last-child,.dl-deck-row:focus-within .dl-row-actions .dl-icon-button:last-child{opacity:1}
.dl-card-preview svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.35;stroke-linejoin:round}
.dl-display-grid .dl-zone-heading,.dl-display-spoiler .dl-zone-heading{top:0}
.dl-display-grid .dl-zone-section,.dl-display-spoiler .dl-zone-section{background:#0d111d}

@media (max-width:1500px) and (min-width:768px){
  .dl-decklist-search{width:210px;flex-basis:210px}.dl-density,.dl-toolbar-action{display:none}.dl-decklist-more{display:block}
}
@media (max-width:1120px) and (min-width:768px){
  .dl-density{display:none}.dl-toolbar-divider{display:none}.dl-decklist-display button{padding-inline:9px}
}
@container (max-width:1000px){
  .dl-decklist-surface{--dl-list-columns:28px 72px minmax(180px,1.35fr) 108px minmax(130px,1fr) 124px 58px;min-width:0}
  .dl-decklist-columns>:nth-child(7),.dl-deck-row>:nth-child(7){display:none}
}
@container (max-width:800px){
  .dl-decklist-surface{--dl-list-columns:28px 70px minmax(170px,1fr) 102px 112px 58px;min-width:0}
  .dl-decklist-columns>:nth-child(5),.dl-deck-row>:nth-child(5),.dl-decklist-columns>:nth-child(7),.dl-deck-row>:nth-child(7){display:none}
}
@container (min-width:1050px){
  .dl-density{display:flex}.dl-toolbar-action{display:inline-flex}.dl-decklist-more{display:none}
}
@media (max-width:767px){
  .dl-builder-toolbar{min-height:56px;flex-basis:56px;gap:7px;padding:8px 10px;overflow-x:auto;overflow-y:hidden}.dl-decklist-search{width:210px;min-width:210px}.dl-decklist-search input{height:40px}.dl-decklist-display button{min-height:34px;padding-inline:10px}.dl-toolbar-action{display:none}
  .dl-builder-content{padding:0 0 86px}.dl-decklist-surface{min-width:0;border-inline:0}.dl-decklist-columns{display:none}
  .dl-zone-heading{top:0;min-height:40px}.dl-zone-section+.dl-zone-section{border-top:0}
  .dl-deck-row{min-height:60px;grid-template-columns:86px minmax(0,1fr) 58px;grid-template-rows:27px 23px;column-gap:8px;padding:5px 10px}
  .dl-deck-row>.dl-row-select,.dl-deck-row>.dl-card-type,.dl-deck-row>.dl-inline-zone-control,.dl-deck-row>.dl-zone-value,.dl-deck-row>.dl-role-control,.dl-deck-row>.dl-role-chip,.dl-deck-row>.dl-role-empty{display:none}
  .dl-deck-row>.dl-qty,.dl-deck-row>.dl-mana-cost{display:flex}.dl-qty{grid-column:1;grid-row:1/3}.dl-card-name{grid-column:2;grid-row:1;align-self:end}.dl-mana-cost{grid-column:2;grid-row:2;align-self:start}.dl-row-actions{grid-column:3;grid-row:1/3}.dl-row-actions .dl-icon-button:last-child{opacity:1}
}

.dl-commander-art { display: flex; gap: 10px; max-width: 100%; align-items: start; }
.dl-commander-art .dl-card-art { min-width: 0; width: 120px; height: auto; }
.dl-commander-results button { display: block; width: 100%; padding: 10px; text-align: left; }
