/* Spare Tracker components — only sbwz-tokens.css variables allowed */

/* Reset browser defaults for flush header */
html, body { margin: 0; padding: 0; }

/* Message bubbles */
.msg {
    border-radius: var(--radius-md);
}
.msg-mine {
    background: var(--navy-50);
    border: 1px solid var(--navy-200);
    color: var(--text);
}
.msg-theirs {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
}

.pin-up { fill: var(--nav-bg); }
.pin-down { fill: none; stroke: var(--border-strong); stroke-width: 1.5; }
.pin-label { fill: var(--text-inverse); font: 700 10px var(--font-body); }
.pin-selector { display: flex; flex-direction: column; align-items: center; gap: var(--sp-2); }
.pin-selector-row { display: flex; gap: var(--sp-2); }
.pin-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.pin-toggle span { display: inline-flex; width: 48px; height: 48px; border-radius: var(--radius-full); align-items: center; justify-content: center; border: 2px solid var(--border-strong); font-weight: 700; cursor: pointer; background: var(--surface); color: var(--text); }
.pin-toggle input:checked + span { background: var(--nav-bg); border-color: var(--nav-bg); color: var(--text-inverse); }
.pin-toggle input:focus-visible + span { outline: 3px solid var(--input-focus-ring); }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--sp-3); }
.plan-item { border: 1px solid var(--border); border-radius: var(--radius-md); padding: var(--sp-3); background: var(--surface); display: flex; flex-direction: column; align-items: center; gap: var(--sp-2); }
.plan-item:has(input[type=checkbox]:checked) { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.muted { color: var(--text-muted); }
.wrap { max-width: 900px; margin: 0 auto; padding: var(--sp-6) 16px; }
.card { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--sp-4); background: var(--surface); }
.practice-card { max-width: 520px; margin: 0 auto; text-align: center; }
.make-miss { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); margin: var(--sp-4) 0; }
.btn-make, .btn-miss { min-height: 72px; font-size: 20px; color: var(--text-inverse); border: 0; }
.btn-make { background: var(--color-success); }
.btn-miss { background: var(--color-error); }
.conv-bar { height: 8px; background: var(--surface-3); border-radius: var(--radius-full); overflow: hidden; }
.conv-bar > span { display: block; height: 100%; background: var(--color-success); }
.stat-widget { border: 1px solid var(--border); border-radius: var(--radius-md); padding: var(--sp-3); text-align: center; }
.stat-label { font-size: 12px; color: var(--text-muted); margin-bottom: var(--sp-2); }
.stat-value { font-size: 32px; font-weight: 700; color: var(--text); }
.badge-neutral { background: var(--surface-3); color: var(--text); }
.btn-danger { background: var(--color-error); color: var(--text-inverse); }
.table-scroll { overflow-x: auto; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: var(--sp-3); }
.sparkline { width: 100%; height: 60px; }
.sparkline-line { stroke: var(--accent); stroke-width: 2; }
.sparkline-dot { fill: var(--accent); }
@media (max-width: 480px) { .col-planned { display: none; } }
