/* 'Mijn bots' — builds on the calendar tokens in globals.css. */
.bots-shell { padding-bottom: 72px; }
.bots-nav-link {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px;
  color: var(--bc-on-gold); background: var(--bc-gold-fill); border-radius: 999px;
  font-size: 13px; font-weight: 800; text-decoration: none; white-space: nowrap;
}
.bots-nav-link:hover { background: var(--bc-gold-fill-hover); }
.calendar-brand { text-decoration: none; }
.bots-hero { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; margin: 28px 0 24px; }
.bots-hero h1 { margin: 0; font-size: clamp(32px, 5vw, 48px); letter-spacing: -.04em; line-height: 1; }
.bots-updated { margin: 10px 0 0; color: var(--muted); font-size: 13px; }
.bots-totals { display: grid; grid-template-columns: repeat(4, minmax(96px, auto)); gap: 10px; margin: 0; }
.bots-total { padding: 12px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.bots-total dt, .bot-stats dt { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.bots-total dd { margin: 6px 0 0; font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
[data-tone='win'] { color: var(--positive); }
[data-tone='loss'] { color: var(--negative); }
.bots-notice { margin: 0 0 20px; padding: 12px 16px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface); font-size: 14px; }
.bots-notice[data-tone='warn'] { border-color: var(--negative); background: var(--lost-bg); }
.bots-notice[data-tone='ok'] { border-color: var(--positive); background: var(--won-bg); }
.bots-section-title { margin: 0 0 14px; font-size: 18px; letter-spacing: -.02em; }
.bots-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-bottom: 40px; }
.bot-card { display: flex; flex-direction: column; gap: 12px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--card-shadow); }
.bot-card[data-state='running'] { border-color: color-mix(in srgb, var(--positive) 45%, var(--line)); }
.bot-card[data-state='retired'] { opacity: .78; }
.bot-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.bot-card h3 { margin: 4px 0 0; font-size: 17px; letter-spacing: -.02em; }
.bot-platform { margin: 0; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.bot-state { flex: 0 0 auto; padding: 5px 10px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 12px; font-weight: 800; white-space: nowrap; }
.bot-state[data-state='running'] { color: var(--positive); border-color: var(--positive); background: var(--won-bg); }
.bot-state[data-state='stopping'] { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.bot-state[data-state='unknown'] { color: var(--negative); border-color: var(--negative); }
.bot-reason { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.4; }
.bot-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 0; }
.bot-stats dd { margin: 4px 0 0; font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums; }
.bot-since { margin: 0; color: var(--muted); font-size: 12px; }
.bot-control { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.bot-control-label { font-size: 13px; font-weight: 800; }
.bots-history-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.bots-history-head .bots-section-title { margin: 0; }
.bots-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.bots-filter { min-width: 160px; }
.bots-history-summary { margin: 12px 0; color: var(--muted); font-size: 13px; }
.bots-table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.bots-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.bots-table th { position: sticky; top: 0; padding: 12px 14px; color: var(--muted); background: var(--surface); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-align: left; text-transform: uppercase; border-bottom: 1px solid var(--line); }
.bots-table td { padding: 11px 14px; border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); white-space: nowrap; }
.bots-table tr:last-child td { border-bottom: 0; }
.bots-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.bots-table tr[data-result='win'] .bots-result, .bots-table tr[data-result='win'] .bots-pnl { color: var(--positive); font-weight: 800; }
.bots-table tr[data-result='loss'] .bots-result, .bots-table tr[data-result='loss'] .bots-pnl { color: var(--negative); font-weight: 800; }
.bots-empty { color: var(--muted); }
.bots-more { display: block; margin: 16px auto 0; min-height: 44px; }
.bots-dialog { width: min(440px, calc(100% - 32px)); padding: 24px; color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 18px; box-shadow: var(--shadow); }
.bots-dialog::backdrop { background: var(--backdrop); backdrop-filter: blur(6px); }
.bots-dialog h2 { margin: 0 0 10px; font-size: 20px; }
.bots-dialog p { margin: 0 0 20px; color: var(--muted); line-height: 1.5; }
.bots-dialog-actions { display: flex; justify-content: flex-end; gap: 10px; }
@media (max-width: 760px) {
  .bots-shell { width: calc(100% - 32px); }
  .app-topbar { margin: 0 -16px 8px; padding: 10px 16px; }
  .calendar-brand-type { display: none; }
  .bots-totals { grid-template-columns: repeat(2, 1fr); width: 100%; }
  .bots-table th:nth-child(3), .bots-table td:nth-child(3), .bots-table th:nth-child(4), .bots-table td:nth-child(4) { display: none; }
  .bots-table td, .bots-table th { padding: 10px; }
  .bots-filter { min-width: 0; flex: 1; }
  .bots-filters { width: 100%; }
  .bots-filters label { flex: 1; display: flex; }
}
