/* ShieldTrade · User Dashboard
 *
 * Static-asset stylesheet for the user-dashboard SPA (ADR-0036).
 * One origin, one entry point; no build pipeline; this is a plain
 * CSS file. The palette is muted, dark-on-light, with a single
 * accent colour reserved for the primary action.
 */

:root {
  --bg:        #0d0f14;
  --surface:   #13161d;
  --card:      #1a1e28;
  --border:    #252a38;
  --text:      #e8ecf4;
  --muted:     #6b7280;
  --green:     #34d399;
  --red:       #f87171;
  --amber:     #fbbf24;
  --accent:    #818cf8;
  --accent-2:  #6366f1;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  min-height: 100vh;
}

.muted { color: var(--muted); font-size: 12px; }
.empty { color: var(--muted); font-style: italic; padding: 12px 0; }

.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 28px; border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 32px; height: 32px; border-radius: 6px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.brand-title { font-weight: 600; }
.brand-sub { color: var(--muted); font-size: 12px; }

.auth-pill { display: flex; align-items: center; gap: 10px; }
.auth-pill .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--muted);
  display: inline-block;
}
.auth-pill .dot.ok { background: var(--green); box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.18); }

.btn {
  border: 1px solid var(--border); background: transparent; color: var(--text);
  padding: 6px 12px; border-radius: 6px; cursor: pointer; font-size: 13px;
  transition: background 120ms, border-color 120ms;
}
.btn:hover { border-color: var(--accent); }
.btn.primary {
  background: var(--accent-2); border-color: var(--accent-2); color: #fff;
}
.btn.primary:hover { background: var(--accent); border-color: var(--accent); }
.btn.ghost { background: transparent; }

.grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 16px; padding: 24px 28px;
}
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 10px; padding: 0; overflow: hidden;
}
.card-head { padding: 16px 18px 0 18px; }
.card-head h2 { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.card-body { padding: 12px 18px 18px 18px; }

.list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
}
.row-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.row-title { font-weight: 500; }
.row-meta { color: var(--muted); font-size: 12px; }
.row-actions { display: flex; gap: 6px; }

.footer {
  display: flex; justify-content: space-between; padding: 16px 28px;
  border-top: 1px solid var(--border); color: var(--muted); font-size: 12px;
}
