/* ── Design Tokens ── */
:root {
  --bg:        #FAFAF9;
  --surface:   #FFFFFF;
  --border:    #E7E5E4;
  --border-2:  #D6D3D1;
  --primary:   #16A34A;
  --primary-d: #15803D;
  --success:   #15803D;
  --danger:    #DC2626;
  --warning:   #D97706;
  --text:      #1C1917;
  --muted:     #78716C;
  --font-ui:   'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --sidebar-w: 220px;
  --radius:    10px;
  --radius-lg: 14px;
  --shadow:    0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.10);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 15px; }

body {
  font-family: var(--font-ui);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body.modal-open { overflow: hidden; }

h1, h2, h3, h4, h5, h6 { margin: 0; line-height: 1.25; color: var(--text); }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; margin: 0; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}
.mono { font-family: var(--font-mono); }
.hidden { display: none !important; }

/* ── Login Overlay ── */
.login-overlay {
  position: fixed; inset: 0;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  z-index: 100;
}
.login-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 36px;
  width: min(400px, 92vw);
  display: flex; flex-direction: column; gap: 20px;
}
.login-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 20px; font-weight: 700; color: var(--primary);
  letter-spacing: -0.3px;
}
.logo-dot {
  width: 10px; height: 10px;
  background: var(--primary); border-radius: 50%;
  flex-shrink: 0;
}
.auth-tabs {
  display: flex; gap: 4px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
}
.auth-tab {
  padding: 6px 16px; border-radius: 6px;
  border: none; background: transparent;
  font: 600 13px var(--font-ui);
  color: var(--muted); cursor: pointer;
  transition: all 0.15s;
}
.auth-tab.active {
  background: #f0fdf4; color: var(--primary);
}
.auth-hint {
  font-size: 12px; color: var(--muted); text-align: center;
}

/* ── App Shell ── */
.app-shell {
  display: flex; min-height: 100vh;
}

/* ── Sidebar ── */
.sidebar {
  width: var(--sidebar-w);
  min-height: 100vh;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  padding: 24px 0; flex-shrink: 0;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.sidebar-logo {
  display: flex; align-items: center; gap: 8px;
  padding: 0 20px 24px;
  font-size: 17px; font-weight: 700; color: var(--primary);
  letter-spacing: -0.3px;
}
.nav-section-label {
  display: block;
  font-size: 11px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted);
  padding: 14px 20px 6px;
}
.sidebar-nav { display: flex; flex-direction: column; }
.nav-link {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 20px;
  font-size: 13.5px; font-weight: 500;
  color: var(--muted);
  border-left: 3px solid transparent;
  transition: all 0.15s; cursor: pointer;
}
.nav-link svg { width: 15px; height: 15px; flex-shrink: 0; }
.nav-link:hover { background: var(--bg); color: var(--text); }
.nav-link.active {
  color: var(--primary);
  border-left-color: var(--primary);
  background: #f0fdf4;
}
.sidebar-footer {
  margin-top: auto;
  padding: 16px 20px 0;
  display: flex; flex-direction: column; gap: 8px;
  border-top: 1px solid var(--border);
}
.sidebar-user {
  font-size: 12px; color: var(--muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.btn-logout {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  padding: 6px 12px; border-radius: 6px;
  font: 500 12px var(--font-ui);
  cursor: pointer; text-align: left;
  transition: all 0.15s;
}
.btn-logout:hover { color: var(--danger); border-color: var(--danger); }

/* ── Main Content ── */
.main-content {
  flex: 1; min-width: 0;
  overflow-y: auto;
}

/* ── Pages ── */
.page { display: none; padding: 32px; }
.page.active { display: block; }

.page-header {
  display: flex; align-items: flex-start;
  justify-content: space-between; gap: 16px;
  margin-bottom: 28px;
}
.page-title {
  font-size: 22px; font-weight: 700;
  letter-spacing: -0.4px; color: var(--text);
}
.page-sub {
  font-size: 13px; color: var(--muted); margin-top: 3px;
}

/* ── Account Chips ── */
.account-bar {
  display: flex; align-items: center; gap: 8px;
  flex-wrap: wrap; margin-bottom: 20px;
}
.account-chip {
  display: flex; align-items: center; gap: 6px;
  padding: 5px 14px; border-radius: 20px;
  font-size: 12px; font-weight: 600;
  cursor: pointer; transition: all 0.15s; border: 1px solid var(--border);
  background: var(--surface); color: var(--muted);
}
.account-chip .chip-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--border); }
.account-chip.active {
  background: #f0fdf4; color: var(--primary);
  border-color: #bbf7d0;
}
.account-chip.active .chip-dot { background: var(--primary); }

/* ── Risk Status ── */
.risk-row {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 24px;
}
.status-badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 4px 12px; border-radius: 20px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em;
}
.status-badge.healthy { background: #f0fdf4; color: var(--success); border: 1px solid #bbf7d0; }
.status-badge.warning { background: #fffbeb; color: var(--warning); border: 1px solid #fde68a; }
.status-badge.halted  { background: #fef2f2; color: var(--danger);  border: 1px solid #fecaca; }
.status-blink {
  width: 7px; height: 7px; border-radius: 50%;
  animation: blink 1.4s infinite;
}
.status-badge.healthy .status-blink { background: var(--success); }
.status-badge.warning .status-blink { background: var(--warning); }
.status-badge.halted .status-blink  { background: var(--danger); }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.3} }
.risk-meta { font-size: 13px; color: var(--muted); }

/* ── Stat Cards ── */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px; margin-bottom: 20px;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  box-shadow: var(--shadow);
}
.stat-label {
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--muted); margin-bottom: 6px;
}
.stat-value {
  font-family: var(--font-mono);
  font-size: 22px; font-weight: 500;
  color: var(--text); line-height: 1.2;
}
.stat-value.green { color: var(--success); }
.stat-value.red   { color: var(--danger); }
.stat-value.warn  { color: var(--warning); }
.stat-sub {
  font-size: 12px; color: var(--muted); margin-top: 5px;
}

/* ── Drawdown Card ── */
.drawdown-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px; box-shadow: var(--shadow);
  margin-bottom: 24px;
}
.drawdown-header {
  display: flex; justify-content: space-between;
  align-items: center; margin-bottom: 12px;
}
.drawdown-title { font-size: 13px; font-weight: 600; color: var(--text); }
.drawdown-pct { font-size: 13px; font-weight: 500; color: var(--warning); }
.progress-track {
  height: 8px; background: var(--bg);
  border-radius: 99px; border: 1px solid var(--border);
  overflow: hidden;
}
.progress-fill {
  height: 100%; border-radius: 99px;
  background: linear-gradient(90deg, var(--success), var(--warning));
  transition: width 0.6s ease;
}
.progress-labels {
  display: flex; justify-content: space-between;
  font-size: 11px; color: var(--muted); margin-top: 6px;
}

/* ── Cards ── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 16px;
}
.card-header {
  display: flex; justify-content: space-between;
  align-items: flex-start; gap: 12px; flex-wrap: wrap;
}
.card-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.eyebrow {
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.07em;
  color: var(--muted); margin-bottom: 2px;
}
.section-label {
  font-size: 12px; font-weight: 600; color: var(--text);
  margin-bottom: 8px; letter-spacing: -0.1px;
}

/* ── Tables ── */
.table-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow);
}
.table-scroll {
  overflow: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.data-table, .results-table {
  width: 100%; border-collapse: collapse;
  font-size: 13px; min-width: 600px;
}
.data-table thead th, .results-table thead th {
  padding: 11px 16px; text-align: left;
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--muted); background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 2;
}
.data-table tbody tr, .results-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background 0.1s;
}
.data-table tbody tr:last-child { border-bottom: none; }
.data-table tbody tr:hover, .results-table tbody tr:hover { background: #fafaf8; }
.data-table tbody td, .results-table tbody td {
  padding: 12px 16px; color: var(--text);
}
.results-table tbody td {
  font-family: var(--font-mono); font-size: 12px;
  word-break: break-word; white-space: pre-wrap;
  position: relative;
}
.results-table tbody tr:nth-child(even) { background: #fafaf8; }

/* ── Outcome Badges ── */
.outcome-allowed {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px; border-radius: 20px;
  font-size: 11px; font-weight: 600;
  background: #f0fdf4; color: var(--success); border: 1px solid #bbf7d0;
  white-space: nowrap;
}
.outcome-rejected {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px; border-radius: 20px;
  font-size: 11px; font-weight: 600;
  background: #fef2f2; color: var(--danger); border: 1px solid #fecaca;
  white-space: nowrap;
}
.side-buy {
  display: inline-flex; align-items: center;
  padding: 2px 8px; border-radius: 4px;
  font-size: 11px; font-weight: 700;
  background: #f0fdf4; color: var(--success);
  border-left: 3px solid var(--success);
}
.side-sell {
  display: inline-flex; align-items: center;
  padding: 2px 8px; border-radius: 4px;
  font-size: 11px; font-weight: 700;
  background: #fef2f2; color: var(--danger);
  border-left: 3px solid var(--danger);
}
.corr-id { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }

/* ── Badges ── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 20px;
  font-size: 12px; font-weight: 500;
  background: #f0fdf4; color: var(--primary); border: 1px solid #bbf7d0;
}
.badge-muted {
  background: var(--bg); color: var(--muted); border-color: var(--border);
}
.badge-success { background: #f0fdf4; color: var(--success); border-color: #bbf7d0; }
.badge-danger  { background: #fef2f2; color: var(--danger);  border-color: #fecaca; }
.badge-warn    { background: #fffbeb; color: var(--warning); border-color: #fde68a; }
.badge-row { display: flex; gap: 6px; flex-wrap: wrap; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 18px; border-radius: 8px; border: none;
  font: 600 13px var(--font-ui); cursor: pointer;
  transition: all 0.15s; white-space: nowrap;
}
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn.primary {
  background: var(--primary); color: #fff;
}
.btn.primary:hover:not(:disabled) { background: var(--primary-d); }
.btn.secondary {
  background: #166534; color: #fff;
}
.btn.secondary:hover:not(:disabled) { background: #14532d; }
.btn.outline {
  background: transparent; color: var(--text);
  border: 1px solid var(--border-2);
}
.btn.outline:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); }
.btn.ghost {
  background: var(--bg); color: var(--muted);
  border: 1px solid var(--border);
}
.btn.ghost:hover:not(:disabled) { color: var(--text); border-color: var(--border-2); }
.btn.small { padding: 5px 12px; font-size: 12px; border-radius: 6px; }
.btn.full { width: 100%; }

/* ── Forms ── */
.form { display: none; flex-direction: column; gap: 14px; }
.form.visible { display: flex; }

label {
  display: flex; flex-direction: column; gap: 5px;
  font-size: 13px; font-weight: 600; color: var(--text);
}
input, textarea, select {
  font: 14px var(--font-ui);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  padding: 8px 12px;
  background: var(--surface); color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(22,163,74,0.12);
}
input:disabled, textarea:disabled, select:disabled {
  opacity: 0.5; cursor: not-allowed; background: var(--bg);
}
input::placeholder, textarea::placeholder { color: #A8A29E; }
textarea { resize: vertical; min-height: 80px; }
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2378716C' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 32px;
}

.form-grid { display: grid; gap: 12px; }
.form-grid.two-cols { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }

.toggle-row {
  flex-direction: row; align-items: center; gap: 8px; font-weight: 500;
}
.toggle-row input[type="checkbox"] { width: 15px; height: 15px; flex-shrink: 0; accent-color: var(--primary); }

/* ── Rules Panel ── */
.rules-panel {
  border-top: 1px solid var(--border);
  padding-top: 16px; display: flex; flex-direction: column; gap: 14px;
}
.rules-header {
  display: flex; justify-content: space-between;
  align-items: flex-start; gap: 10px;
}
.rules-form { display: flex; flex-direction: column; gap: 14px; }
.rules-group {
  border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px;
  display: flex; flex-direction: column; gap: 10px;
  background: var(--bg);
}
.rules-grid { display: grid; gap: 10px; }
.rules-grid.two-cols   { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.rules-grid.three-cols { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }

/* ── Configuration Grid ── */
.config-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px; align-items: start;
}

/* ── Item Grid (Accounts / Strategies) ── */
.item-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}
.item-card {
  border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px;
  background: var(--surface); cursor: pointer;
  text-align: left; transition: all 0.15s; border-left: 3px solid var(--border);
}
.item-card:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.item-card.selected { border-color: var(--primary); border-left-color: var(--primary); box-shadow: 0 0 0 1px rgba(22,163,74,0.15); }
.item-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.item-card h4 { font-size: 13px; font-weight: 700; margin: 4px 0 6px; }
.item-card-meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }

/* ── Detail Card ── */
.detail-card { }
.detail-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
}
.detail-metrics h2 {
  font-family: var(--font-mono);
  font-size: 18px; font-weight: 500;
  margin-top: 4px; color: var(--text);
}

/* ── Simple List ── */
.simple-list { display: flex; flex-direction: column; gap: 6px; }
.simple-list li {
  font-size: 13px; color: var(--text);
  padding: 6px 0; border-bottom: 1px solid var(--border);
}
.simple-list li:last-child { border-bottom: none; }
.trade-row { display: flex; justify-content: space-between; align-items: center; }
.text-positive { color: var(--success); font-family: var(--font-mono); }
.text-negative { color: var(--danger);  font-family: var(--font-mono); }

/* ── Tools ── */
.tools-layout {
  display: grid;
  grid-template-columns: 2.5fr 1fr;
  gap: 20px; align-items: start;
}
.tools-main { display: flex; flex-direction: column; gap: 20px; }
.tools-side  { display: flex; flex-direction: column; gap: 20px; }
.tables-list { display: flex; flex-direction: column; gap: 6px; }
.tables-list li {
  display: flex; justify-content: space-between;
  align-items: center; gap: 8px;
  font-size: 12px; color: var(--muted);
  padding: 5px 0; border-bottom: 1px solid var(--border);
}
.tables-list li:last-child { border-bottom: none; }

.query-card textarea {
  font-family: var(--font-mono); font-size: 13px;
  line-height: 1.5; background: var(--bg);
  border-color: var(--border); border-radius: var(--radius);
}
.query-actions {
  display: flex; align-items: center;
  justify-content: space-between; gap: 10px; flex-wrap: wrap;
}
.query-status { font-size: 12px; color: var(--muted); }

.results-body {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  max-height: 280px; overflow: auto;
  font-size: calc(14px * var(--zoom, 1));
  scrollbar-gutter: stable both-edges;
}
.results-body::-webkit-scrollbar { height: 6px; width: 6px; }
.results-body::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 99px; }
.nowrap .results-table td { white-space: pre; }
.wrap .results-table td { white-space: pre-wrap; }

.zoom-controls {
  display: inline-flex; align-items: center; gap: 4px;
  border: 1px solid var(--border); border-radius: 6px;
  padding: 3px; background: var(--bg);
}
.btn-zoom {
  padding: 3px 8px; border: none;
  background: transparent; color: var(--text);
  font: 500 13px var(--font-ui); cursor: pointer;
  border-radius: 4px; transition: background 0.1s;
}
.btn-zoom:hover { background: var(--border); }
.fit-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--muted); cursor: pointer;
}
.fit-toggle input { accent-color: var(--primary); }

.copy-cell {
  position: absolute; top: 4px; right: 4px;
  opacity: 0; transition: opacity 0.15s;
  border-radius: 4px; border: 1px solid var(--border-2);
  background: var(--surface); font-size: 10px;
  padding: 2px 6px; cursor: pointer; color: var(--muted);
}
.results-table td:hover .copy-cell,
.results-table td:focus-within .copy-cell { opacity: 1; }

/* ── Modals ── */
.modal-layer {
  position: fixed; inset: 0;
  background: rgba(28, 25, 23, 0.4);
  display: flex; align-items: center; justify-content: center;
  padding: 16px; z-index: 60; backdrop-filter: blur(2px);
}
.modal-sheet {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 24px; width: min(720px, 96vw);
  display: flex; flex-direction: column; gap: 16px;
  max-height: 90vh; overflow: hidden;
}
.modal-header {
  display: flex; align-items: flex-start;
  justify-content: space-between; gap: 12px;
}
.modal-actions { display: flex; gap: 8px; }
.modal-body {
  display: flex; flex-direction: column; gap: 16px;
  overflow-y: auto; overflow-x: hidden; padding-right: 2px;
  max-height: 70vh; min-width: 0;
}
/* Prevent grid children from blowing out modal width */
.modal-body .rules-grid,
.modal-body .form-grid { min-width: 0; }
.modal-body .rules-grid > *,
.modal-body .form-grid > * { min-width: 0; }

/* Checklist (strategy subscriptions) */
.checklist { display: flex; flex-direction: column; gap: 8px; }
.checklist-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding: 10px 12px;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg);
}
.checklist-left { display: flex; gap: 10px; align-items: center; }
.check-title { font-size: 13px; font-weight: 700; }

/* ── Toast ── */
.toast {
  position: fixed; top: 24px; left: 50%;
  transform: translateX(-50%);
  background: var(--text); color: #fff;
  padding: 10px 20px; border-radius: 8px;
  box-shadow: var(--shadow-md);
  font-size: 13px; font-weight: 500;
  animation: slideDown 0.25s ease;
  z-index: 90; white-space: nowrap;
}
.toast.error { background: var(--danger); }
.toast.success { background: var(--success); }
@keyframes slideDown {
  from { opacity: 0; transform: translateX(-50%) translateY(-8px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ── Responsive ── */
@media (max-width: 1100px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .config-grid { grid-template-columns: 1fr; }
  .tools-layout { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .sidebar { display: none; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .page { padding: 20px; }
}

/* ═══════════════════════════════════════════════════════════════
   PAPER TRADING STYLES
   ═══════════════════════════════════════════════════════════════ */

/* ── Paper Trading Color Palette ─────────────────────────────── */
:root {
  --paper:   #7C3AED;
  --paper-d: #5B21B6;
  --paper-bg: #F5F3FF;
  --paper-border: #DDD6FE;
}

/* Sidebar nav — purple accent */
.nav-section-label.paper-label { color: var(--paper); opacity: 1; }
.nav-section-label.paper-label ~ .sidebar-nav .nav-link:hover { background: var(--paper-bg); color: var(--paper-d); }
.nav-section-label.paper-label ~ .sidebar-nav .nav-link.active { background: var(--paper-bg); color: var(--paper-d); box-shadow: inset 3px 0 0 var(--paper); }

/* Paper badge — status, mode labels */
.badge-paper {
  background: #EDE9FE;
  color: var(--paper-d);
  font-weight: 600;
  border: 1px solid var(--paper-border);
}

/* Paper item cards — purple hover and selected state */
#page-paper-accounts .item-card:hover,
#page-paper-strategies .item-card:hover,
#liveStrategiesGrid .item-card:hover {
  border-color: var(--paper);
}
#page-paper-accounts .item-card.selected,
#page-paper-strategies .item-card.selected,
#liveStrategiesGrid .item-card.selected {
  border-color: var(--paper);
  border-left-color: var(--paper);
  box-shadow: 0 0 0 1px rgba(124,58,237,0.15);
}

/* Paper primary button — used on paper pages */
.btn.paper-primary {
  background: var(--paper);
  color: #fff;
  border-color: var(--paper);
}
.btn.paper-primary:hover:not(:disabled) { background: var(--paper-d); }

/* Table scroll (shared utility) */
.table-scroll { overflow-x: auto; }
