:root {
  color-scheme: light;
  --bg: #efe8da;
  --bg-soft: #f7f2e8;
  --surface: #fffdf8;
  --surface-2: #f3ecdf;
  --text: #18202b;
  --text-soft: #65707a;
  --line: #d7cbb8;
  --line-strong: #b8a98f;
  --accent: #b48a48;
  --accent-strong: #8f6a32;
  --navy: #172537;
  --shadow: 0 18px 50px rgba(28, 33, 38, .08);
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 9px;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #111820;
  --bg-soft: #17212c;
  --surface: #1a2430;
  --surface-2: #202c38;
  --text: #edf0ee;
  --text-soft: #a7b0b7;
  --line: #34414d;
  --line-strong: #4c5d6d;
  --accent: #c89b52;
  --accent-strong: #e0b66e;
  --navy: #e9edf2;
  --shadow: 0 18px 50px rgba(0, 0, 0, .24);
}

* { box-sizing: border-box; }

html { min-height: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(180, 138, 72, .08), transparent 30rem),
    var(--bg);
  color: var(--text);
  transition: background-color .2s ease, color .2s ease;
}

button, input, select { font: inherit; }
button { cursor: pointer; }

.site-header {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px clamp(18px, 4vw, 54px);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
}

.brand { display: flex; align-items: center; gap: 14px; }
.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--accent);
  color: var(--accent-strong);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 23px;
  font-weight: 700;
  transform: rotate(45deg);
}
.brand-mark::first-letter { transform: rotate(-45deg); }
.brand-mark { line-height: 1; }
.brand-mark { text-indent: 0; }
.brand-mark { --rotation: -45deg; }
.brand-mark { font-style: normal; }
.brand-mark { writing-mode: horizontal-tb; }
.brand-mark { text-orientation: mixed; }
.brand-mark { position: relative; }
.brand-mark { overflow: hidden; }
.brand-mark { font-variant: small-caps; }

.brand-mark { color: transparent; }
.brand-mark::after {
  content: "R";
  color: var(--accent-strong);
  transform: rotate(-45deg);
  position: absolute;
}

.brand h1, .intro-panel h2, .panel h3 { margin: 0; }
.brand h1 { font-size: clamp(17px, 2vw, 22px); font-weight: 700; letter-spacing: -.02em; }
.eyebrow {
  margin: 0 0 4px;
  font-size: 10px;
  line-height: 1.2;
  letter-spacing: .16em;
  font-weight: 800;
  color: var(--accent-strong);
}

.header-actions { display: flex; gap: 10px; }
.icon-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: var(--surface);
}
.icon-button:hover { border-color: var(--accent); }

.page-shell { width: min(1480px, calc(100% - 32px)); margin: 28px auto 40px; }

.intro-panel {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(180,138,72,.08), transparent 44%),
    var(--surface);
  box-shadow: var(--shadow);
}
.intro-panel h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.05;
  font-weight: 600;
  color: var(--navy);
}
.intro-panel p:not(.eyebrow) { max-width: 760px; margin: 11px 0 0; color: var(--text-soft); line-height: 1.6; }
.status-pill {
  flex: 0 0 auto;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 700;
}

.workspace { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; align-items: start; }
.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.panel-heading {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}
.panel h3 { font-family: Georgia, "Times New Roman", serif; font-size: 26px; font-weight: 600; }
.result-count, .deck-count { color: var(--text-soft); font-size: 12px; font-weight: 700; }
.deck-count {
  min-width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 180px 160px;
  gap: 10px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}
input, select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  outline: none;
  padding: 0 12px;
}
input:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(180,138,72,.12); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(172px, 1fr));
  gap: 16px;
  padding: 20px;
}

/* Karten bleiben absichtlich unabhängig von Light/Dark-Mode. */
.card-tile {
  --card-paper: #eee4cf;
  --card-ink: #20242a;
  --card-muted: #5e625f;
  --card-line: #bda880;
  background: linear-gradient(180deg, #f5eddc 0%, var(--card-paper) 100%);
  color: var(--card-ink);
  border: 1px solid var(--card-line);
  border-radius: 13px;
  box-shadow: 0 9px 24px rgba(29, 22, 14, .16);
  overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease;
}
.card-tile:hover { transform: translateY(-2px); box-shadow: 0 13px 28px rgba(29,22,14,.2); }
.card-art {
  aspect-ratio: 4 / 3;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 10px;
  background:
    linear-gradient(180deg, transparent, rgba(12,18,25,.72)),
    radial-gradient(circle at 30% 30%, #557185, #24374a 58%, #152230);
  color: #fff;
}
.card-art.domain-fury { background: linear-gradient(180deg, transparent, rgba(39,13,12,.8)), radial-gradient(circle at 32% 32%, #a96a50, #6c2c2a 58%, #351719); }
.card-art.domain-order { background: linear-gradient(180deg, transparent, rgba(30,24,11,.78)), radial-gradient(circle at 32% 32%, #d0b36d, #7c6837 58%, #3a321d); }
.card-art.domain-calm { background: linear-gradient(180deg, transparent, rgba(10,25,31,.82)), radial-gradient(circle at 32% 32%, #6fa2aa, #365e69 58%, #1d3338); }
.card-art.domain-body { background: linear-gradient(180deg, transparent, rgba(20,24,14,.8)), radial-gradient(circle at 32% 32%, #7f9e5f, #475f36 58%, #24311e); }
.card-art.domain-mind { background: linear-gradient(180deg, transparent, rgba(20,15,35,.82)), radial-gradient(circle at 32% 32%, #8873a8, #4c3c69 58%, #251d35); }
.card-cost {
  position: absolute;
  top: 9px;
  left: 9px;
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f7edd5;
  color: #20242a;
  border: 1px solid rgba(35,28,16,.35);
  font-weight: 900;
}
.card-domain { font-size: 10px; letter-spacing: .12em; font-weight: 800; opacity: .9; }
.card-body { padding: 12px; }
.card-title { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 17px; line-height: 1.15; }
.card-subline { display: flex; justify-content: space-between; gap: 10px; margin-top: 5px; color: var(--card-muted); font-size: 11px; }
.card-text { min-height: 42px; margin: 10px 0 12px; color: #40443f; font-size: 12px; line-height: 1.45; }
.card-add {
  width: 100%;
  min-height: 34px;
  border: 1px solid #9d855e;
  border-radius: 8px;
  background: #dfcfad;
  color: #2a2d2f;
  font-weight: 800;
}
.card-add:hover { background: #d2bf98; }

.deck-panel { position: sticky; top: 96px; }
.deck-meta { padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.deck-meta label { display: grid; gap: 6px; color: var(--text-soft); font-size: 11px; font-weight: 800; }
.deck-list { max-height: calc(100vh - 360px); min-height: 350px; overflow: auto; padding: 10px; }
.empty-state {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 7px;
  padding: 24px;
  color: var(--text-soft);
}
.empty-state strong { color: var(--text); }
.empty-icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px dashed var(--line-strong);
  font-size: 25px;
  margin-bottom: 5px;
}
.deck-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-bottom: 1px solid var(--line);
}
.deck-row:last-child { border-bottom: 0; }
.deck-row-title { font-weight: 800; font-size: 13px; }
.deck-row-meta { color: var(--text-soft); font-size: 11px; margin-top: 2px; }
.quantity-controls { display: flex; align-items: center; gap: 7px; }
.quantity-controls button {
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-2);
  color: var(--text);
}
.quantity-controls strong { min-width: 16px; text-align: center; }

.deck-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 18px;
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
}
.deck-summary { display: grid; gap: 1px; }
.deck-summary span { color: var(--text-soft); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.deck-summary strong { font-size: 20px; }
.primary-button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--accent-strong);
  border-radius: 9px;
  background: var(--accent);
  color: #18140e;
  font-weight: 800;
}
.primary-button:disabled { opacity: .45; cursor: not-allowed; }

.site-footer {
  width: min(1480px, calc(100% - 32px));
  margin: 0 auto 26px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--text-soft);
  font-size: 11px;
}
.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;
}

@media (max-width: 980px) {
  .workspace { grid-template-columns: 1fr; }
  .deck-panel { position: static; }
  .deck-list { max-height: none; }
}

@media (max-width: 720px) {
  .site-header { padding-inline: 16px; }
  .theme-label { display: none; }
  .page-shell { width: min(100% - 20px, 1480px); margin-top: 14px; }
  .intro-panel { align-items: flex-start; flex-direction: column; }
  .toolbar { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 12px; }
  .site-footer { width: calc(100% - 20px); }
}

@media (max-width: 460px) {
  .brand .eyebrow { display: none; }
  .brand h1 { font-size: 16px; }
  .brand-mark { width: 36px; height: 36px; }
  .card-grid { grid-template-columns: 1fr; }
  .intro-panel h2 { font-size: 31px; }
}

/* v0.2 rules reference */
a { color: inherit; }
.brand-link { text-decoration: none; }
.nav-button {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 13px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
  color: var(--text); text-decoration: none; font-size: 13px; font-weight: 800;
}
.nav-button:hover { border-color: var(--accent); }
.status-stack { display: grid; gap: 8px; justify-items: end; }
.status-current { color: var(--accent-strong); }
.rules-shell { max-width: 1420px; }
.rules-hero { align-items: center; }
.rules-toolbar { margin-bottom: 18px; padding: 14px; display: flex; gap: 14px; justify-content: space-between; align-items: center; }
.rules-controls { display: grid; grid-template-columns: minmax(260px, 1fr) 240px 160px; gap: 10px; flex: 1; }
.segmented { display: inline-flex; padding: 4px; border: 1px solid var(--line); border-radius: 11px; background: var(--bg-soft); }
.segment { min-height: 36px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; color: var(--text-soft); font-weight: 800; }
.segment.active { background: var(--surface); color: var(--text); box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.rules-layout { display: grid; grid-template-columns: 280px minmax(0,1fr); gap: 18px; align-items: start; }
.rules-sidebar { position: sticky; top: 96px; }
.rules-nav { display: grid; padding: 10px; }
.rules-nav a { display:flex; justify-content:space-between; gap:12px; padding:10px 11px; border-radius:9px; text-decoration:none; color:var(--text-soft); font-size:13px; font-weight:800; }
.rules-nav a:hover { background:var(--surface-2); color:var(--text); }
.rules-nav small { color:var(--accent-strong); }
.rules-source-note { border-top:1px solid var(--line); padding:16px; font-size:12px; color:var(--text-soft); line-height:1.5; }
.rules-source-note strong { color:var(--text); }
.source-links { display:grid; gap:6px; margin-top:10px; }
.source-links a { color:var(--accent-strong); text-decoration:none; font-weight:800; }
.rules-content { padding: clamp(18px,3vw,30px); }
.rule-section { scroll-margin-top:110px; }
.rule-section + .rule-section { margin-top:38px; padding-top:32px; border-top:1px solid var(--line); }
.rule-section-heading h2, .history-header h2 { margin:0; font-family:Georgia,"Times New Roman",serif; font-size:32px; font-weight:600; color:var(--navy); }
.rule-card { margin-top:14px; padding:18px; border:1px solid var(--line); border-radius:14px; background:var(--bg-soft); }
.rule-card-top, .history-title-row { display:flex; justify-content:space-between; gap:12px; align-items:flex-start; }
.rule-card h3, .history-item h3 { margin:0; font-size:17px; }
.rule-badge { flex:0 0 auto; padding:4px 7px; border-radius:999px; font-size:10px; font-weight:900; letter-spacing:.04em; text-transform:uppercase; border:1px solid var(--line); }
.badge-current, .badge-added { background:rgba(89,135,96,.12); color:#4d7b55; }
.badge-changed, .badge-clarified { background:rgba(180,138,72,.14); color:var(--accent-strong); }
.rule-languages { display:grid; grid-template-columns:1fr 1fr; gap:16px; margin-top:14px; }
.rule-languages > div { padding:14px; border-radius:11px; background:var(--surface); border:1px solid var(--line); }
.language-label { font-size:10px; text-transform:uppercase; letter-spacing:.12em; font-weight:900; color:var(--accent-strong); }
.rule-languages p { margin:8px 0 0; color:var(--text-soft); line-height:1.6; font-size:13px; }
.history-header p:not(.eyebrow) { color:var(--text-soft); }
.history-item { display:grid; grid-template-columns:110px minmax(0,1fr); gap:18px; padding:20px 0; border-top:1px solid var(--line); }
.history-date { font-weight:900; color:var(--accent-strong); font-size:12px; }
.history-release { display:inline-block; margin-top:4px; color:var(--text-soft); font-size:11px; font-weight:800; }
.history-item p { margin:9px 0 0; color:var(--text-soft); line-height:1.55; font-size:13px; }
.rules-empty { padding:48px; text-align:center; color:var(--text-soft); }
@media (max-width: 900px) {
  .rules-toolbar { display:grid; }
  .rules-controls { grid-template-columns:1fr; }
  .rules-layout { grid-template-columns:1fr; }
  .rules-sidebar { position:static; }
  .rules-nav { grid-template-columns:repeat(2,1fr); }
  .rule-languages { grid-template-columns:1fr; }
}
@media (max-width: 620px) {
  .rules-nav { grid-template-columns:1fr; }
  .history-item { grid-template-columns:1fr; gap:7px; }
  .status-stack { justify-items:start; }
  .rules-hero { align-items:flex-start; }
}

/* v0.3 official card library */
.nav-button { display:inline-flex; align-items:center; min-height:40px; padding:0 13px; border:1px solid var(--line); border-radius:999px; background:var(--surface); color:var(--text); text-decoration:none; font-size:13px; font-weight:700; }
.nav-button:hover { border-color:var(--accent); }
.status-stack { display:grid; gap:6px; justify-items:end; }
.status-note { max-width:300px; color:var(--text-soft); font-size:11px; text-align:right; }
.toolbar-extended { grid-template-columns:minmax(180px,1.6fr) repeat(3,minmax(125px,.7fr)); }
.toolbar-span-2 { grid-column:span 2; }
.catalog-summary { display:flex; flex-wrap:wrap; gap:8px 16px; padding:10px 20px; border-bottom:1px solid var(--line); color:var(--text-soft); font-size:11px; }
.catalog-summary strong { color:var(--text); }
.official-card-image-wrap { position:relative; aspect-ratio:744/1039; background:#161b20; overflow:hidden; }
.official-card-image { width:100%; height:100%; display:block; object-fit:contain; background:#161b20; }
.card-badges { position:absolute; top:8px; right:8px; display:flex; flex-direction:column; gap:5px; align-items:flex-end; }
.card-badge { padding:4px 6px; border-radius:999px; background:rgba(16,20,24,.88); border:1px solid rgba(255,255,255,.26); color:#fff; font-size:8px; font-weight:900; letter-spacing:.08em; }
.compact-card-body { padding:10px; }
.card-code { margin-bottom:4px; color:#756a56; font-size:9px; font-weight:800; letter-spacing:.06em; }
.compact-card-body .card-title { min-height:39px; }
.compact-card-body .card-subline { min-height:30px; flex-direction:column; gap:2px; }
.compact-card-body .card-add { margin-top:8px; }
.catalog-footer { padding:0 20px 22px; text-align:center; }
.secondary-button { min-height:42px; padding:0 18px; border:1px solid var(--line-strong); border-radius:9px; background:var(--surface-2); color:var(--text); font-weight:800; }
.catalog-empty,.data-error { grid-column:1/-1; min-height:280px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:7px; padding:30px; text-align:center; color:var(--text-soft); }
.catalog-empty strong,.data-error strong { color:var(--text); }
.card-skeleton { pointer-events:none; }
.skeleton-art { aspect-ratio:744/1039; background:linear-gradient(100deg,#d8cbb5 20%,#eee4d3 40%,#d8cbb5 60%); background-size:200% 100%; animation:skeleton 1.3s linear infinite; }
.skeleton-line { height:10px; width:62%; margin-top:9px; border-radius:6px; background:#d5c8b1; }
.skeleton-line.wide { width:88%; height:16px; }
@keyframes skeleton { to { background-position-x:-200%; } }
.deck-row { grid-template-columns:42px minmax(0,1fr) auto; }
.deck-thumb { width:36px; height:50px; object-fit:cover; border-radius:4px; background:#111; }
.sr-only { position:absolute!important; width:1px!important; height:1px!important; padding:0!important; margin:-1px!important; overflow:hidden!important; clip:rect(0,0,0,0)!important; white-space:nowrap!important; border:0!important; }
@media (max-width:1100px) { .toolbar-extended { grid-template-columns:repeat(2,minmax(0,1fr)); } .toolbar-span-2 { grid-column:span 2; } }
@media (max-width:680px) { .toolbar-extended { grid-template-columns:1fr; } .toolbar-span-2 { grid-column:span 1; } .status-stack { justify-items:start; } .status-note { text-align:left; } }

/* v0.4 account + persistence */
.deck-actions { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; padding:12px 16px 0; border-top:1px solid var(--line); }
.file-button { display:inline-flex; align-items:center; justify-content:center; cursor:pointer; font-size:12px; }
.account-dialog { width:min(680px,calc(100% - 28px)); max-height:82vh; padding:0; border:1px solid var(--line); border-radius:18px; background:var(--surface); color:var(--text); box-shadow:0 24px 80px rgba(0,0,0,.28); }
.account-dialog::backdrop { background:rgba(8,12,18,.48); backdrop-filter:blur(3px); }
.dialog-head { display:flex; justify-content:space-between; gap:16px; align-items:flex-start; padding:20px 22px; border-bottom:1px solid var(--line); }
.dialog-head h2 { margin:2px 0 0; font-family:Georgia,"Times New Roman",serif; color:var(--navy); }
.auth-tabs { display:flex; gap:6px; padding:18px 22px 0; }
.auth-form { display:grid; gap:14px; padding:18px 22px 24px; }
.auth-form label { display:grid; gap:6px; font-size:12px; font-weight:800; }
.auth-form input { min-height:44px; padding:0 12px; border:1px solid var(--line); border-radius:9px; background:var(--surface-2); color:var(--text); }
.form-message { min-height:18px; margin:0; color:var(--text-soft); font-size:12px; line-height:1.45; }
.form-message.error { color:#a04444; }
.account-summary { display:flex; justify-content:space-between; gap:12px; padding:18px 22px; border-bottom:1px solid var(--line); }
.account-summary span { color:var(--text-soft); font-size:12px; }
.saved-decks { display:grid; gap:8px; max-height:330px; overflow:auto; padding:14px 22px; }
.saved-deck-row { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:12px; align-items:center; padding:12px; border:1px solid var(--line); border-radius:11px; background:var(--bg-soft); }
.saved-deck-row strong { display:block; }
.saved-deck-row small { color:var(--text-soft); }
.saved-deck-actions { display:flex; gap:6px; }
.saved-deck-actions button { min-height:34px; padding:0 9px; border:1px solid var(--line); border-radius:8px; background:var(--surface); color:var(--text); font-weight:800; }
.account-actions { display:flex; flex-wrap:wrap; gap:8px; padding:14px 22px 8px; border-top:1px solid var(--line); }
#accountMessage { padding:0 22px 20px; }
@media (max-width:640px){ .deck-actions{grid-template-columns:1fr;} .account-summary{flex-direction:column;} .saved-deck-row{grid-template-columns:1fr;} }

/* v0.5 structured deck construction */
.deck-panel{max-height:none}.deck-zone{border-top:1px solid var(--border,rgba(120,100,70,.22));padding:14px 0}.deck-zone-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:9px}.deck-zone-head>div{display:flex;flex-direction:column;gap:2px}.zone-kicker{font-size:.67rem;letter-spacing:.13em;opacity:.62}.deck-zone-list{display:grid;gap:8px}.zone-empty{padding:12px;border:1px dashed var(--border,rgba(120,100,70,.28));border-radius:10px;font-size:.82rem;opacity:.72}.legality-box{border:1px solid var(--border,rgba(120,100,70,.28));border-radius:12px;padding:12px;margin:8px 0 14px;background:var(--surface-soft,rgba(125,104,69,.055))}.legality-head{display:flex;justify-content:space-between;gap:12px;align-items:center}.status-badge{font-size:.72rem;padding:4px 8px;border-radius:999px;border:1px solid currentColor}.status-badge.ok{color:#2b7a50}.status-badge.warn{color:#9a6328}.legality-list{margin:9px 0 0;padding-left:18px;font-size:.79rem;line-height:1.45;display:grid;gap:4px}.legal-ok{color:#2b7a50}.inline-badge{font-size:.62rem;letter-spacing:.09em;padding:2px 5px;border-radius:999px;border:1px solid currentColor;opacity:.75}.chosen-row{outline:1px solid rgba(181,145,70,.55)}.choose-button{min-width:30px}.card-actions-row{display:grid;grid-template-columns:1fr auto;gap:6px}.secondary-card-action{background:transparent!important;color:inherit!important;border:1px solid currentColor!important;padding-inline:10px!important}.deck-row .quantity-controls{flex-wrap:wrap;justify-content:flex-end}.deck-row{grid-template-columns:auto minmax(0,1fr) auto}.deck-thumb{width:42px;height:58px;object-fit:cover;border-radius:5px}.deck-zone .deck-row{padding:7px}.deck-zone .deck-row-meta{font-size:.68rem}.deck-zone .deck-row-title{font-size:.82rem}@media(max-width:900px){.deck-panel{position:static}.workspace{grid-template-columns:1fr}.card-actions-row{grid-template-columns:1fr 1fr}}
