/* Seeker Mines — dark neon crypto-casino theme, mobile-first. */
:root {
  --sol-purple: #9945ff;
  --sol-green: #14f195;
  --sol-cyan: #19fb9b;
  --bg-0: #0a0a14;
  --bg-1: #12121f;
  --bg-2: #1a1a2e;
  --bg-3: #23233d;
  --line: #2c2c47;
  --text: #eef0ff;
  --muted: #8b8fb0;
  --gold: #ffce4f;
  --danger: #ff4d6d;
  --tile: linear-gradient(160deg, #2a2a48, #1d1d33);
  --tile-hover: linear-gradient(160deg, #34345a, #232340);
  --radius: 16px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  font-size: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; } /* class display rules (flex/grid) must never override the hidden attribute */

body {
  font-family: 'Segoe UI', system-ui, -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(153, 69, 255, 0.18), transparent 60%),
    radial-gradient(1000px 500px at -10% 110%, rgba(20, 241, 149, 0.12), transparent 60%),
    var(--bg-0);
  min-height: 100vh;
  -webkit-user-select: none;
  user-select: none;
}

.app { max-width: 480px; margin: 0 auto; padding: 14px 14px 32px; }

/* ── Header ───────────────────────────────────────────── */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 800; letter-spacing: 0.5px; }
.brand .logo {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, var(--sol-purple), var(--sol-green));
  display: grid; place-items: center; font-size: 19px; box-shadow: 0 0 18px rgba(153, 69, 255, 0.5);
}
.brand .name { font-size: 17px; }
.brand .name span { background: linear-gradient(90deg, var(--sol-purple), var(--sol-green)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand .tag { font-size: 10px; color: var(--muted); font-weight: 600; letter-spacing: 1px; }

.btn {
  border: none; border-radius: 12px; color: var(--text); font-weight: 700; font-size: 14px;
  padding: 10px 14px; cursor: pointer; background: var(--bg-3); transition: transform .08s, filter .15s, box-shadow .15s;
}
.btn:active { transform: scale(0.96); }
.btn.ghost { background: var(--bg-2); border: 1px solid var(--line); }
.btn.wallet { display: flex; align-items: center; gap: 7px; }
.btn.wallet .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--danger); box-shadow: 0 0 8px var(--danger); }
.btn.wallet.connected .dot { background: var(--sol-green); box-shadow: 0 0 8px var(--sol-green); }

/* ── Balance / mode ───────────────────────────────────── */
.balance-card {
  background: linear-gradient(135deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 13px 16px;
  display: flex; align-items: center; justify-content: space-between; box-shadow: var(--shadow); margin-bottom: 14px;
}
.balance-card .label { font-size: 11px; color: var(--muted); letter-spacing: 1px; text-transform: uppercase; }
.balance-card .amount { font-size: 26px; font-weight: 800; line-height: 1.1; }
.balance-card .amount .cur { font-size: 13px; color: var(--gold); font-weight: 700; margin-left: 4px; }
.mode-switch { display: flex; background: var(--bg-0); border-radius: 11px; padding: 3px; border: 1px solid var(--line); }
.mode-switch button { border: none; background: transparent; color: var(--muted); font-weight: 700; font-size: 13px; padding: 7px 12px; border-radius: 8px; cursor: pointer; }
.mode-switch button.on { background: linear-gradient(135deg, var(--sol-purple), #6b2fd6); color: #fff; }
.mode-switch button.on.sol { background: linear-gradient(135deg, #0e9d66, var(--sol-green)); color: #04140d; }

/* ── Board ────────────────────────────────────────────── */
.board-wrap { position: relative; }
.multiplier-float {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0.8);
  z-index: 5; pointer-events: none; opacity: 0; transition: opacity .25s, transform .25s;
  font-size: 44px; font-weight: 900; text-shadow: 0 0 24px rgba(20, 241, 149, 0.7); color: var(--sol-green);
}
.multiplier-float.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.multiplier-float.bust { color: var(--danger); text-shadow: 0 0 24px rgba(255, 77, 109, 0.7); }

.grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 9px;
  background: linear-gradient(135deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; box-shadow: var(--shadow);
}
.tile {
  aspect-ratio: 1 / 1; border-radius: 13px; background: var(--tile); border: 1px solid rgba(255, 255, 255, 0.04);
  display: grid; place-items: center; font-size: 26px; cursor: pointer; position: relative;
  transition: transform .12s, background .15s, box-shadow .15s; transform-style: preserve-3d;
}
.tile::after {
  content: ''; position: absolute; inset: 0; border-radius: 13px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.08), transparent 50%); pointer-events: none;
}
.tile:not(.revealed):hover { background: var(--tile-hover); }
.tile:not(.revealed):active { transform: scale(0.93); }
.tile.disabled { cursor: default; opacity: 0.96; }
.tile .face { transition: transform .25s; }

.tile.gem {
  background: radial-gradient(circle at 50% 35%, rgba(20, 241, 149, 0.35), transparent 60%), var(--bg-3);
  box-shadow: 0 0 16px rgba(20, 241, 149, 0.35) inset, 0 0 12px rgba(20, 241, 149, 0.25);
  animation: pop .32s cubic-bezier(.2, 1.4, .4, 1);
}
.tile.mine {
  background: radial-gradient(circle at 50% 35%, rgba(255, 77, 109, 0.45), transparent 60%), var(--bg-3);
  box-shadow: 0 0 18px rgba(255, 77, 109, 0.5) inset, 0 0 16px rgba(255, 77, 109, 0.4);
  animation: shake .4s;
}
.tile.mine.hit { animation: boom .5s; }
.tile.mine-faded { opacity: 0.4; }

@keyframes pop { 0% { transform: scale(0.3) rotate(-12deg); } 70% { transform: scale(1.15); } 100% { transform: scale(1); } }
@keyframes boom { 0% { transform: scale(0.5); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }
@keyframes shake { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

/* ── Controls ─────────────────────────────────────────── */
.controls { margin-top: 14px; display: grid; gap: 12px; }
.control-row { background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.control-row .head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 9px; }
.control-row .head .k { font-size: 12px; color: var(--muted); letter-spacing: .5px; text-transform: uppercase; }
.control-row .head .v { font-size: 15px; font-weight: 800; }
.control-row .head .v.green { color: var(--sol-green); }

.stepper { display: flex; align-items: stretch; gap: 8px; }
.stepper input {
  flex: 1; min-width: 0; background: var(--bg-0); border: 1px solid var(--line); color: var(--text);
  border-radius: 10px; padding: 11px 12px; font-size: 16px; font-weight: 700; text-align: center;
}
.stepper input:focus { outline: none; border-color: var(--sol-purple); }
.stepper .sbtn { width: 46px; background: var(--bg-3); border: 1px solid var(--line); border-radius: 10px; color: var(--text); font-size: 18px; font-weight: 800; cursor: pointer; }
.chips { display: flex; gap: 7px; margin-top: 9px; flex-wrap: wrap; }
.chips button { flex: 1; background: var(--bg-0); border: 1px solid var(--line); color: var(--muted); border-radius: 9px; padding: 8px 0; font-size: 13px; font-weight: 700; cursor: pointer; }
.chips button:active { transform: scale(0.95); }

.mines-slider { display: flex; align-items: center; gap: 12px; }
.mines-slider input[type=range] { flex: 1; accent-color: var(--sol-purple); height: 6px; }

.payout-bar { display: flex; gap: 10px; }
.payout-bar .box { flex: 1; background: var(--bg-1); border: 1px solid var(--line); border-radius: 13px; padding: 11px 14px; text-align: center; }
.payout-bar .box .k { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.payout-bar .box .v { font-size: 19px; font-weight: 800; margin-top: 3px; }
.payout-bar .box .v.gold { color: var(--gold); }
.payout-bar .box .v.green { color: var(--sol-green); }

.action {
  width: 100%; border: none; border-radius: 15px; padding: 17px; font-size: 18px; font-weight: 900; letter-spacing: .5px;
  cursor: pointer; color: #06130c; background: linear-gradient(135deg, var(--sol-green), #0bbf78);
  box-shadow: 0 8px 24px rgba(20, 241, 149, 0.3); transition: transform .08s, filter .15s;
}
.action:active { transform: scale(0.98); }
.action:disabled { filter: grayscale(0.7) brightness(0.6); cursor: not-allowed; box-shadow: none; }
.action.cashout { background: linear-gradient(135deg, var(--gold), #f0a93a); color: #1c1200; box-shadow: 0 8px 24px rgba(255, 206, 79, 0.3); }
.action.cashout .sub { display: block; font-size: 13px; font-weight: 700; opacity: 0.85; margin-top: 2px; }

/* ── Provably-fair panel ─────────────────────────────── */
.fair { margin-top: 16px; background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.fair > summary { list-style: none; cursor: pointer; padding: 13px 15px; display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; }
.fair > summary::-webkit-details-marker { display: none; }
.fair > summary .badge { margin-left: auto; font-size: 10px; background: rgba(20, 241, 149, 0.15); color: var(--sol-green); border: 1px solid rgba(20, 241, 149, 0.3); padding: 3px 8px; border-radius: 20px; font-weight: 700; }
.fair .body { padding: 0 15px 15px; display: grid; gap: 11px; }
.fair:not([open]) > .body { display: none; } /* actually collapse when closed (overrides display:grid) */
.fair .field label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; display: block; margin-bottom: 4px; }
.fair .field .val { font-family: 'Consolas', monospace; font-size: 12px; word-break: break-all; background: var(--bg-0); border: 1px solid var(--line); border-radius: 9px; padding: 9px 11px; color: var(--sol-cyan); }
.fair .field input { width: 100%; font-family: 'Consolas', monospace; font-size: 12px; background: var(--bg-0); border: 1px solid var(--line); border-radius: 9px; padding: 9px 11px; color: var(--text); }
.fair .field input:focus { outline: none; border-color: var(--sol-purple); }
.fair .note { font-size: 11px; color: var(--muted); line-height: 1.6; }
.fair .reveal-row { display: flex; gap: 8px; }

/* ── History ──────────────────────────────────────────── */
.history { margin-top: 16px; }
.history .h-title { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.history .h-list { display: flex; gap: 7px; overflow-x: auto; padding-bottom: 4px; }
.history .pill { flex: 0 0 auto; padding: 6px 11px; border-radius: 20px; font-size: 12px; font-weight: 800; border: 1px solid var(--line); }
.history .pill.win { background: rgba(20, 241, 149, 0.12); color: var(--sol-green); border-color: rgba(20, 241, 149, 0.3); }
.history .pill.loss { background: rgba(255, 77, 109, 0.1); color: var(--danger); border-color: rgba(255, 77, 109, 0.25); }

/* ── Toast ────────────────────────────────────────────── */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(20px);
  background: var(--bg-3); border: 1px solid var(--line); color: var(--text); padding: 13px 20px; border-radius: 13px;
  font-weight: 700; font-size: 14px; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; z-index: 50; max-width: 90%; text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.good { border-color: rgba(20, 241, 149, 0.5); }
.toast.bad { border-color: rgba(255, 77, 109, 0.5); }

.footer { margin-top: 22px; text-align: center; font-size: 11px; color: var(--muted); line-height: 1.7; }
.footer a { color: var(--sol-cyan); text-decoration: none; }

/* ── Added: topbar actions, segmented control, stats, verifier, fx ── */
.topbar-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn { padding: 10px 12px; font-size: 16px; line-height: 1; }

.seg { display: flex; background: var(--bg-0); border-radius: 11px; padding: 3px; border: 1px solid var(--line); gap: 3px; }
.seg button { flex: 1; border: none; background: transparent; color: var(--muted); font-weight: 700; font-size: 13px; padding: 9px 0; border-radius: 8px; cursor: pointer; transition: background .15s, color .15s; }
.seg button.on { background: linear-gradient(135deg, var(--sol-purple), #6b2fd6); color: #fff; }

/* Board size variants (set by JS as cols-N on #grid). */
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); gap: 12px; }
.grid.cols-3 .tile { font-size: 34px; }
.grid.cols-5 { grid-template-columns: repeat(5, 1fr); }
.grid.cols-7 { grid-template-columns: repeat(7, 1fr); gap: 6px; padding: 9px; }
.grid.cols-7 .tile { font-size: 17px; border-radius: 9px; }
.grid.shake { animation: boardshake .42s; }
@keyframes boardshake { 0%,100% { transform: translateX(0); } 20% { transform: translateX(-7px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(3px); } }

.stats { display: flex; gap: 10px; margin-top: 16px; }
.stat { flex: 1; background: var(--bg-1); border: 1px solid var(--line); border-radius: 13px; padding: 10px 8px; text-align: center; }
.stat .k { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; }
.stat .v { font-size: 17px; font-weight: 800; margin-top: 3px; }

.verify-result { font-size: 12.5px; line-height: 1.65; margin-top: 2px; }
.verify-result .ok { color: var(--sol-green); font-weight: 700; }
.verify-result .bad { color: var(--danger); font-weight: 700; }
.verify-result code { font-family: 'Consolas', monospace; color: var(--sol-cyan); word-break: break-all; }

.fx-canvas { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 40; }
.toast { z-index: 60; }

/* ── Tutorial / onboarding ───────────────────────────── */
.tut-overlay {
  position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 22px;
  background: rgba(5, 5, 12, 0.78); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
.tut-overlay.show { opacity: 1; pointer-events: auto; }
.tut-card {
  position: relative; width: 100%; max-width: 360px; text-align: center;
  background: linear-gradient(160deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--line); border-radius: 22px; padding: 30px 24px 22px; box-shadow: var(--shadow);
}
.tut-card.pop { animation: tutpop .34s cubic-bezier(.2, 1.3, .4, 1); }
@keyframes tutpop { 0% { transform: translateY(10px) scale(.96); opacity: .4; } 100% { transform: none; opacity: 1; } }
.tut-skip { position: absolute; top: 12px; right: 14px; background: none; border: none; color: var(--muted); font-size: 13px; font-weight: 600; cursor: pointer; padding: 6px; }
.tut-icon {
  width: 84px; height: 84px; margin: 4px auto 16px; border-radius: 50%; display: grid; place-items: center; font-size: 44px;
  background: radial-gradient(circle at 50% 40%, rgba(153, 69, 255, 0.35), transparent 65%), var(--bg-3);
  box-shadow: 0 0 30px rgba(153, 69, 255, 0.35);
}
.tut-title { font-size: 20px; font-weight: 800; margin-bottom: 12px; }
.tut-body { font-size: 14.5px; line-height: 1.75; color: #c9cce8; margin-bottom: 20px; }
.tut-body b { color: var(--text); }
.tut-dots { display: flex; justify-content: center; gap: 7px; margin-bottom: 18px; }
.tut-dots span { width: 7px; height: 7px; border-radius: 50%; background: var(--line); transition: width .2s, background .2s; }
.tut-dots span.on { width: 22px; border-radius: 4px; background: linear-gradient(90deg, var(--sol-purple), var(--sol-green)); }
.tut-nav { display: flex; gap: 10px; align-items: center; }
.tut-nav .tut-prev { flex: 0 0 auto; padding: 14px 18px; }
.tut-nav .tut-next { flex: 1; padding: 15px; font-size: 16px; }

/* ── SOL deposit / withdraw ──────────────────────────── */
.sol-wallet { display: flex; gap: 10px; margin-bottom: 14px; }
.sol-wallet button { flex: 1; padding: 12px; font-weight: 800; }
.sol-wallet #depositBtn { background: linear-gradient(135deg, var(--sol-green), #0bbf78); color: #06130c; }
.claim-btn { margin-top: 8px; background: linear-gradient(135deg, #ffce4d, #f0a020); color: #3a2600; border: none; border-radius: 10px; padding: 7px 12px; font-size: 13px; font-weight: 800; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; }
.claim-btn:active { transform: scale(0.96); }
.claim-btn:disabled { background: var(--bg-3); color: var(--muted); cursor: default; transform: none; }

.sol-modal { position: fixed; inset: 0; z-index: 85; display: grid; place-items: center; padding: 20px; background: rgba(5, 5, 12, 0.78); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.sol-modal[hidden] { display: none; }
.sol-modal-card { position: relative; width: 100%; max-width: 380px; background: linear-gradient(160deg, var(--bg-2), var(--bg-1)); border: 1px solid var(--line); border-radius: 20px; padding: 22px 20px; box-shadow: var(--shadow); animation: tutpop .3s cubic-bezier(.2, 1.3, .4, 1); }
.sol-modal-x { position: absolute; top: 10px; right: 14px; background: none; border: none; color: var(--muted); font-size: 24px; line-height: 1; cursor: pointer; }
.sol-modal-card h3 { font-size: 19px; font-weight: 800; margin-bottom: 14px; }
.sol-modal-card .mlabel { font-size: 13px; color: var(--muted); line-height: 1.6; margin-bottom: 8px; }
.sol-modal-card .addr-box { display: flex; gap: 8px; align-items: center; background: var(--bg-0); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 14px; }
.sol-modal-card .addr-box code { flex: 1; font-family: 'Consolas', monospace; font-size: 12px; color: var(--sol-cyan); word-break: break-all; }
.sol-modal-card .addr-box button { flex: 0 0 auto; background: var(--bg-3); border: 1px solid var(--line); color: var(--text); border-radius: 8px; padding: 7px 11px; font-size: 12px; font-weight: 700; cursor: pointer; }
.sol-modal-card input { width: 100%; background: var(--bg-0); border: 1px solid var(--line); color: var(--text); border-radius: 10px; padding: 12px; font-size: 15px; margin-bottom: 12px; }
.sol-modal-card input:focus { outline: none; border-color: var(--sol-purple); }
.sol-modal-card .maction { width: 100%; border: none; border-radius: 13px; padding: 15px; font-size: 16px; font-weight: 900; cursor: pointer; color: #06130c; background: linear-gradient(135deg, var(--sol-green), #0bbf78); }
.sol-modal-card .maction:disabled { filter: grayscale(.6) brightness(.6); cursor: default; }
.sol-modal-card .mstatus { font-size: 13px; margin-top: 12px; line-height: 1.6; min-height: 18px; }
.sol-modal-card .mstatus.ok { color: var(--sol-green); }
.sol-modal-card .mstatus.bad { color: var(--danger); }
/* Pre-game confirmation */
.sol-modal-card .confirm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.sol-modal-card .cbox { background: var(--bg-0); border: 1px solid var(--line); border-radius: 12px; padding: 11px 12px; }
.sol-modal-card .cbox .ck { font-size: 12px; color: var(--muted); }
.sol-modal-card .cbox .cv { font-size: 20px; font-weight: 800; margin-top: 3px; }
.sol-modal-card .cv.green, .sol-modal-card b.green { color: var(--sol-green); }
.sol-modal-card .confirm-row { display: flex; justify-content: space-between; align-items: center; background: var(--bg-0); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 12px; font-size: 13px; color: var(--muted); }
.sol-modal-card .confirm-warn { display: flex; gap: 8px; font-size: 13px; border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; line-height: 1.5; }
.sol-modal-card .confirm-warn.bad { background: rgba(255, 77, 109, 0.12); color: var(--danger); border: 1px solid rgba(255, 77, 109, 0.25); }
.sol-modal-card .confirm-warn.warn { background: rgba(255, 184, 77, 0.1); color: #ffc266; border: 1px solid rgba(255, 184, 77, 0.22); }
.sol-modal-card .confirm-actions { display: flex; gap: 10px; margin-top: 14px; }
.sol-modal-card .confirm-actions .btn { flex: 1; padding: 14px; border-radius: 13px; font-size: 15px; font-weight: 800; }
.sol-modal-card .confirm-actions .maction { flex: 2; width: auto; }

/* ── Auto-bet mode ───────────────────────────────────── */
.mode-tabs { display: flex; background: var(--bg-0); border: 1px solid var(--line); border-radius: 12px; padding: 3px; gap: 3px; }
.mode-tabs button { flex: 1; border: none; background: transparent; color: var(--muted); font-weight: 800; font-size: 14px; padding: 11px 0; border-radius: 9px; cursor: pointer; transition: background .15s, color .15s; }
.mode-tabs button.on { background: linear-gradient(135deg, var(--sol-purple), #6b2fd6); color: #fff; }
.mode-tabs[hidden] { display: none; }
.extras .stats, .extras .history { margin-top: 0; }

.tile.picked {
  background: radial-gradient(circle at 50% 35%, rgba(153, 69, 255, 0.35), transparent 60%), var(--bg-3);
  box-shadow: 0 0 0 2px var(--sol-purple) inset, 0 0 14px rgba(153, 69, 255, 0.4);
}
.tile.picked::before { content: '◆'; color: var(--sol-purple); font-size: 0.7em; opacity: 0.9; }

.auto-panel { display: grid; gap: 12px; }
.auto-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.auto-field { background: var(--bg-1); border: 1px solid var(--line); border-radius: 12px; padding: 9px 12px; }
.auto-field label { display: block; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .3px; margin-bottom: 6px; }
.auto-field input, .auto-field select {
  width: 100%; background: var(--bg-0); border: 1px solid var(--line); color: var(--text);
  border-radius: 9px; padding: 9px 10px; font-size: 15px; font-weight: 700;
}
.auto-field input:focus, .auto-field select:focus { outline: none; border-color: var(--sol-purple); }
.auto-field .auto-val { font-size: 15px; font-weight: 800; color: var(--sol-purple); padding: 9px 0; }

.auto-run { background: var(--bg-1); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.auto-runbar { height: 8px; background: var(--bg-0); border-radius: 6px; overflow: hidden; }
.auto-runfill { height: 100%; width: 0%; background: linear-gradient(90deg, var(--sol-purple), var(--sol-green)); transition: width .25s; }
.auto-runstats { display: flex; justify-content: space-between; margin-top: 9px; font-size: 14px; font-weight: 700; }
.auto-runstats #autoPnl.up { color: var(--sol-green); }
.auto-runstats #autoPnl.down { color: var(--danger); }
.action.stop { background: linear-gradient(135deg, var(--danger), #d63354); color: #fff; box-shadow: 0 8px 24px rgba(255, 77, 109, 0.3); }
.control-row.locked, .mode-tabs.locked { opacity: 0.5; pointer-events: none; }
