:root {
  --bg: #1a1410;
  --panel: #2a1f17;
  --panel-2: #382a1f;
  --ink: #f0e6d2;
  --muted: #b8a888;
  --accent: #d4a040;
  --accent-2: #c0392b;
  --good: #2ecc71;
  --warn: #e67e22;
  --bad: #c0392b;
  --line: #4a3826;
  --card-w: 92px;
  --card-h: 128px;
  --card-w-sm: 60px;
  --card-h-sm: 84px;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
  height: 100%;
  overflow: hidden;
}

.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 12px; }

.screen {
  width: 100%;
  height: 100vh;
  display: flex;
}

/* ---------- Setup ---------- */
#setup-screen {
  background: linear-gradient(135deg, #1a1410, #2d1810);
  align-items: center;
  justify-content: center;
}
.setup-card {
  background: var(--panel);
  border: 2px solid var(--accent);
  border-radius: 10px;
  padding: 32px 40px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 320px;
  text-align: center;
}
.setup-card h1 {
  margin: 0;
  color: var(--accent);
  font-size: 32px;
  letter-spacing: 2px;
}
.setup-card label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.setup-card select, .setup-card button, .setup-card input[type="text"] {
  background: var(--panel-2);
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 6px 10px;
  font: inherit;
  border-radius: 4px;
  cursor: pointer;
}
.setup-card input[type="text"] { cursor: text; }
.setup-card button {
  background: var(--accent);
  color: #1a1410;
  font-weight: bold;
  margin-top: 12px;
  padding: 10px;
}
.setup-card button:hover { background: #e6b450; }
.setup-sets {
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 6px;
  padding: 6px 10px 8px;
  margin: 4px 0 0;
  display: flex; flex-direction: column; gap: 4px;
}
.setup-sets legend { padding: 0 6px; font-size: 12px; color: #ccc; }
.setup-sets label { display: flex; flex-direction: row; align-items: center; gap: 6px; margin: 0; }
.setup-sets input[type="checkbox"] { width: 16px; height: 16px; margin: 0; }

.setup-bots {
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 6px;
  padding: 6px 10px 8px;
  margin: 4px 0 0;
}
.setup-bots legend { padding: 0 6px; font-size: 12px; color: #ccc; }
.setup-bots .bot-row {
  display: grid;
  grid-template-columns: 60px 1fr 1fr 1fr;
  gap: 6px;
  align-items: center;
  margin: 4px 0;
}
.setup-bots .bot-row .bot-label { font-size: 12px; color: #ccc; text-align: left; }
.setup-bots .bot-row select { font-size: 12px; padding: 4px 6px; }
.setup-bots .bot-headers {
  display: grid;
  grid-template-columns: 60px 1fr 1fr 1fr;
  gap: 6px;
  font-size: 10px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0 0 4px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  margin-bottom: 4px;
}
.setup-bots .bot-headers > div:first-child { text-align: left; }
.setup-bots .bot-headers > div { text-align: left; }

/* ---------- Game ---------- */
#game-screen { flex-direction: column; }

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  padding: 6px 14px;
  height: 40px;
}
.topbar-title {
  color: var(--accent);
  font-weight: bold;
  letter-spacing: 1px;
}
.phase {
  background: var(--panel-2);
  padding: 4px 12px;
  border-radius: 4px;
  border: 1px solid var(--line);
}
.thinking-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--panel-2);
  padding: 4px 12px;
  border-radius: 4px;
  border: 1px solid var(--accent);
  color: var(--accent);
  margin-left: 8px;
  font-size: 13px;
}
.thinking-indicator.hidden { display: none; }
.thinking-indicator .dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: thinking 1s infinite ease-in-out;
}
.thinking-indicator .dot:nth-child(2) { animation-delay: 0.2s; }
.thinking-indicator .dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes thinking {
  0%, 80%, 100% { opacity: 0.3; transform: scale(0.7); }
  40% { opacity: 1; transform: scale(1); }
}
.topbar-actions button {
  background: var(--panel-2);
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 5px 12px;
  margin-left: 6px;
  cursor: pointer;
  font: inherit;
  border-radius: 4px;
}
.topbar-actions button:hover { background: var(--accent); color: #000; }

.board {
  flex: 1;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 8px;
  padding: 8px;
  /* Reserve space on the right ONLY for the fixed log pane (270px). The
     stack pane is now a grid column inside `.middle` so it shares the
     middle row's vertical extent (between opponents and player panel). */
  padding-right: 280px;
  min-height: 0;
  overflow: hidden;
}

/* Opponents */
.opponents {
  display: flex;
  gap: 8px;
  justify-content: space-around;
  flex-wrap: wrap;
}
.player.opponent {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 6px 10px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  flex: 1;
  min-width: 230px;
  max-width: 33%;
}
.player.opponent.active { border-color: var(--accent); box-shadow: 0 0 8px var(--accent); }
.player.opponent .name {
  font-weight: bold;
  color: var(--accent);
  font-size: 13px;
}
.player.opponent .stats {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
.player.opponent .icons {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
}
.player.opponent .items, .player.opponent .souls {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  margin-top: 2px;
}

/* Middle */
.middle {
  display: grid;
  /* decks | side | stack — stack lives in the middle row so its vertical
     extent matches the opponents/me grid bounds. v1398. */
  grid-template-columns: 1fr 240px 200px;
  gap: 8px;
  min-height: 0;
}
.decks {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.deck-col {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 6px 8px;
}
.deck-label {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}
.slot-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  min-height: var(--card-h);
}
/* The loot area only holds small (sm) cards — the deck-back and the discard
   preview — so the row only needs the small card height. v1393. */
#loot-pile.slot-row {
  min-height: var(--card-h-sm);
}
/* (v1394's earlier .bonus-souls + #bonus-slots rules moved AFTER the
   .bonus-souls, .stack-area shared rule below so they actually win the
   cascade. v1395.) */

.side {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.bonus-souls, .stack-area {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 6px 8px;
}
.stack-area {
  flex: 2;
  min-height: 0;
}
/* Bonus souls hold small cards (84px tall). Give the panel a fixed natural
   height that fits the card + label + padding so the side-column flex doesn't
   crush it below the card height. v1394/v1395. */
.bonus-souls {
  flex: 0 0 auto;
  min-height: calc(var(--card-h-sm) + 32px);
}
#bonus-slots.slot-row {
  min-height: var(--card-h-sm);
}
/* Room area: stack the deck-back ABOVE the discard pile vertically to save
   horizontal space — the active room card and this column sit side-by-side.
   v1396. */
.room-deck-stack {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
}
.stack-area { overflow-y: auto; }
.stack-list {
  display: flex;
  flex-direction: column-reverse;
  gap: 2px;
}
.stack-item {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  padding: 4px 6px;
  font-size: 11px;
  border-radius: 3px;
}
.stack-item.roll {
  border-left-color: var(--accent-2);
  font-weight: bold;
}

/* Reaction banner */
#reaction-bar {
  position: fixed;
  left: 50%;
  bottom: 220px;
  transform: translateX(-50%);
  background: var(--panel);
  border: 2px solid var(--accent);
  border-radius: 8px;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 80;
  box-shadow: 0 6px 20px rgba(0,0,0,0.6);
}
#reaction-bar.hidden { display: none; }
#reaction-bar .roll-display {
  font-size: 32px;
  font-weight: bold;
  color: var(--accent);
  width: 40px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
#reaction-bar .source-card {
  width: 80px;
  height: 112px;
  background-size: cover;
  background-position: center;
  border-radius: 4px;
  border: 1px solid var(--accent);
}
/* Rooms are landscape — swap width/height so the preview frame matches the
   actual card orientation. */
#reaction-bar .source-card.landscape {
  width: 112px;
  height: 80px;
}
#reaction-bar .roll-info {
  font-size: 12px;
  color: var(--ink);
  line-height: 1.4;
}
#reaction-bar .roll-info .target { color: var(--muted); }
#reaction-bar .roll-info .verdict.hit { color: var(--good); font-weight: bold; }
#reaction-bar .roll-info .verdict.miss { color: var(--bad); font-weight: bold; }
#reaction-bar button {
  background: var(--accent);
  color: #1a1410;
  border: none;
  padding: 8px 16px;
  font: inherit;
  font-weight: bold;
  cursor: pointer;
  border-radius: 4px;
}
#reaction-bar button:hover { background: #e6b450; }
#reaction-bar button.secondary {
  background: var(--panel-2);
  color: var(--ink);
  border: 1px solid var(--line);
}

/* Highlight reroll-capable items during a roll */
.card.reroll-suggestion {
  box-shadow: 0 0 0 2px var(--accent), 0 0 12px var(--accent);
  animation: pulse 1.2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 2px var(--accent), 0 0 12px var(--accent); }
  50% { box-shadow: 0 0 0 2px var(--accent), 0 0 24px var(--accent); }
}

/* Me */
.me {
  background: var(--panel);
  border: 1px solid var(--accent);
  border-radius: 6px;
  padding: 8px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: stretch;
}
.me.active { box-shadow: 0 0 12px var(--accent); }
.me-character {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 110px;
}
.me-character .name {
  color: var(--accent);
  font-weight: bold;
}
.me-character .stats { font-size: 12px; }
.me-items {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.me-items .row-label {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
}
.me-items .items, .me-souls {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  min-height: var(--card-h-sm);
}
.me-hand-area {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.me-hand {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

/* Cards */
.card {
  width: var(--card-w);
  height: var(--card-h);
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  cursor: pointer;
  position: relative;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  transition: transform 0.1s;
}
.card.sm { width: var(--card-w-sm); height: var(--card-h-sm); }
/* Landscape cards (rooms) — swap width/height. */
.card.landscape { width: var(--card-h); height: var(--card-w); }
.card.landscape.sm { width: var(--card-h-sm); height: var(--card-w-sm); }
.card:hover { transform: translateY(-3px); z-index: 10; box-shadow: 0 4px 8px rgba(0,0,0,0.5); }
.card.deactivated { transform: rotate(90deg); }
.card.deactivated:hover { transform: rotate(90deg) translateX(3px); }
.card.selectable { box-shadow: 0 0 0 2px var(--good); }
.card.selectable:hover { box-shadow: 0 0 0 2px var(--good), 0 4px 8px rgba(0,0,0,0.5); }
.card.dim { opacity: 0.55; }
.card .badge {
  position: absolute;
  bottom: 2px;
  right: 2px;
  background: rgba(0,0,0,0.8);
  color: var(--ink);
  font-size: 10px;
  padding: 1px 4px;
  border-radius: 3px;
}
.card.deck-back .deck-count {
  position: absolute;
  bottom: 4px;
  right: 4px;
  background: rgba(0,0,0,0.85);
  color: var(--accent);
  font-size: 14px;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 3px;
  border: 1px solid var(--accent);
}
.discard-pile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.discard-label {
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.card.discard-empty {
  background: var(--panel);
  border: 1px dashed var(--line);
}
.card .hp-overlay {
  position: absolute;
  top: 2px;
  left: 2px;
  background: rgba(192,57,43,0.9);
  color: white;
  font-size: 10px;
  padding: 1px 4px;
  border-radius: 3px;
  font-weight: bold;
}
.card .ev-overlay {
  position: absolute;
  top: 2px;
  right: 2px;
  background: rgba(40,80,180,0.9);
  color: white;
  font-size: 10px;
  padding: 1px 4px;
  border-radius: 3px;
  font-weight: bold;
}
.card .at-overlay {
  position: absolute;
  bottom: 2px;
  left: 2px;
  background: rgba(0,0,0,0.85);
  color: var(--accent);
  font-size: 10px;
  padding: 1px 4px;
  border-radius: 3px;
  font-weight: bold;
}
.card .counter-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(20, 20, 20, 0.92);
  color: var(--accent);
  font-size: 16px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 2px solid var(--accent);
  font-weight: bold;
  pointer-events: none;
}
.card.deactivated .counter-overlay {
  transform: translate(-50%, -50%) rotate(-90deg);
}

/* Stack pane — sits as a 3rd grid column inside `.middle` (after decks and
   side). This keeps its vertical extent aligned with the opponents/me grid
   rows: starts at the top of the bonus panel and ends before the player
   panel. v1397/v1398. */
.stack-pane {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  padding: 6px 8px;
  overflow-y: auto;
  min-height: 0;
}
.stack-pane .deck-label {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}
/* Log */
.logpane {
  position: fixed;
  right: 0;
  top: 40px;
  bottom: 0;
  width: 270px;
  background: var(--panel);
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
.log-title {
  padding: 6px 10px;
  border-bottom: 1px solid var(--line);
  color: var(--accent);
  font-weight: bold;
  font-size: 12px;
  letter-spacing: 1px;
}
.log {
  flex: 1;
  overflow-y: auto;
  padding: 6px 10px;
  font-size: 12px;
  line-height: 1.4;
}
.log-line {
  padding: 2px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.log-line.combat { color: var(--accent-2); }
.log-line.gain { color: var(--good); }
.log-line.death { color: var(--bad); font-weight: bold; }
.log-line.phase { color: var(--accent); font-style: italic; }

/* Prompt overlay */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}
.prompt-box {
  background: var(--panel);
  border: 2px solid var(--accent);
  border-radius: 8px;
  padding: 18px 22px;
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto;
}
.prompt-text { margin-bottom: 12px; }
.prompt-options {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.prompt-options button {
  background: var(--panel-2);
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 6px 12px;
  font: inherit;
  cursor: pointer;
  border-radius: 4px;
}
.prompt-options button:hover { background: var(--accent); color: #000; }
.prompt-options .card-option {
  padding: 0;
  border: 1px solid var(--line);
  background: transparent;
}
.prompt-options .card-option:hover { border-color: var(--accent); }

/* Reorder modal */
.reorder-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.reorder-card {
  width: 110px;
  height: 154px;
  background-size: cover;
  background-position: center;
  border: 2px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
  position: relative;
}
.reorder-card.picked { border-color: var(--accent); }
.reorder-card .order-badge {
  position: absolute;
  top: 4px;
  left: 4px;
  background: var(--accent);
  color: #1a1410;
  font-weight: bold;
  border-radius: 999px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
.reorder-confirm {
  background: var(--good);
  color: white;
  border: none;
  padding: 10px 16px;
  cursor: pointer;
  border-radius: 4px;
  font: inherit;
  font-weight: bold;
}
.reorder-confirm:disabled { opacity: 0.4; cursor: default; }

/* Card zoom */
.zoom {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  cursor: pointer;
}
.zoom img {
  max-width: 380px;
  max-height: 90vh;
  border-radius: 8px;
  box-shadow: 0 0 24px var(--accent);
}

/* Hover preview — large card that follows the cursor edge */
#hover-preview {
  position: fixed;
  pointer-events: none;
  z-index: 150;
  width: 320px;
  height: 448px;
  border-radius: 10px;
  border: 2px solid var(--accent);
  background-size: cover;
  background-position: center;
  background-color: var(--panel);
  box-shadow: 0 8px 32px rgba(0,0,0,0.7);
  display: none;
  transition: opacity 0.05s;
}
#hover-preview.visible { display: block; }

/* Banner / dead */
.player.opponent.dead, .me.dead { opacity: 0.55; filter: grayscale(0.5); }
.you-win, .you-lose {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 300;
  font-size: 64px;
  font-weight: bold;
  color: var(--accent);
  letter-spacing: 4px;
}
.you-lose { color: var(--bad); }

/* Coin display */
.cents { color: var(--accent); font-weight: bold; }
.hp { color: var(--good); }
.atk { color: var(--accent-2); }

/* Hand cards visible */
.me-hand .card { cursor: pointer; }
.me-hand .card.unplayable { opacity: 0.6; }

/* ===== Deck builder overlay ===== */
#deckbuilder-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.75); z-index: 1000; display: flex; align-items: center; justify-content: center; }
#deckbuilder-overlay.hidden { display: none; }
.db-box { background: var(--bg, #111); color: var(--fg, #eee); border: 1px solid var(--border, #444); border-radius: 8px; width: min(1200px, 96vw); max-height: 92vh; overflow: hidden; display: flex; flex-direction: column; padding: 14px 16px; }
.db-header { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-bottom: 10px; border-bottom: 1px solid var(--border, #444); margin-bottom: 10px; }
.db-header h2 { margin: 0 8px 0 0; font-size: 18px; }
.db-header .db-name { flex: 0 0 200px; padding: 6px 8px; background: #1a1a1a; color: #eee; border: 1px solid #555; border-radius: 4px; }
.db-header .db-saved { padding: 6px 8px; background: #1a1a1a; color: #eee; border: 1px solid #555; border-radius: 4px; }
.db-header button { padding: 6px 10px; background: #2a2a2a; color: #eee; border: 1px solid #555; border-radius: 4px; cursor: pointer; }
.db-header button:hover { background: #3a3a3a; }
.db-header .db-close { margin-left: auto; background: #1f5a1f; border-color: #2a6a2a; }
.db-header .db-close:hover { background: #297a29; }
.db-header .db-delete { background: #5a1f1f; border-color: #6a2a2a; }
.db-header .db-delete:hover { background: #7a2929; }
.db-header .db-reset { background: #3a3a1f; border-color: #555; }
.db-cols { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; overflow: auto; padding-right: 4px; }
.db-col { background: #181818; border: 1px solid #333; border-radius: 6px; padding: 10px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.db-col h3 { margin: 0; padding-bottom: 6px; border-bottom: 1px solid #333; }
.db-col h4 { margin: 8px 0 4px 0; font-size: 13px; color: #aaa; }
.db-cats { display: flex; flex-direction: column; gap: 3px; }
.db-cat-row { display: flex; align-items: center; gap: 6px; }
.db-cat-name { flex: 1; font-size: 13px; color: #ccc; }
.db-cat-input { width: 56px; padding: 4px 6px; background: #1a1a1a; color: #eee; border: 1px solid #555; border-radius: 4px; text-align: right; }
.db-pick-row { display: flex; gap: 6px; }
.db-pick-row .db-search { flex: 1; padding: 5px 8px; background: #1a1a1a; color: #eee; border: 1px solid #555; border-radius: 4px; }
.db-pick-row .db-add { padding: 5px 10px; background: #2a2a2a; color: #eee; border: 1px solid #555; border-radius: 4px; cursor: pointer; }
.db-pick-row .db-add:hover { background: #3a3a3a; }
.db-fixed-list { display: flex; flex-wrap: wrap; gap: 4px; max-height: 240px; overflow-y: auto; padding: 4px; background: #141414; border: 1px solid #2a2a2a; border-radius: 4px; }
.db-fixed { position: relative; width: 70px; height: 100px; background: #222; border: 1px solid #555; border-radius: 3px; overflow: hidden; }
.db-fixed-img { width: 100%; height: 100%; background-size: cover; background-position: center; }
.db-fixed-name { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(0,0,0,0.75); color: #fff; font-size: 9px; padding: 2px 3px; text-align: center; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.db-fixed-remove { position: absolute; top: 2px; right: 2px; width: 18px; height: 18px; padding: 0; background: rgba(120,0,0,0.85); color: #fff; border: none; border-radius: 3px; font-weight: bold; cursor: pointer; line-height: 1; }
.db-fixed-remove:hover { background: rgba(200,0,0,1); }

#setup-custom-row { margin-top: -4px; margin-bottom: 8px; }
#setup-custom-row button { padding: 4px 10px; background: #2a2a2a; color: #eee; border: 1px solid #555; border-radius: 4px; cursor: pointer; }
#setup-custom-row button:hover { background: #3a3a3a; }
