/* =========================================================================
   Soft cards and pill buttons (from the client's reference board)
   Cards: borderless light-grey surfaces on white, large radii, no shadows; icons in small white circles.
   Buttons: pills; outlined hairline for secondary, solid accent for primary, solid dark pill for the selected
   tab / chip / segment; round outlined icon buttons. Shape and surface only - sizes are unchanged.
   Loaded last; delete this file (and its <link>) to undo.
   ========================================================================= */
:root {
  --s-card: #f4f4f5; --s-card-2: #ececee; --s-inner: #ffffff; --s-line: rgba(17, 24, 39, .10); --s-dark: #111214; --s-on-dark: #ffffff;
  --s-r-card: 14px; --s-r-inner: 10px;
}
:root[data-theme="dark"] { --s-card: #161618; --s-card-2: #1d1d20; --s-inner: #0f0f11; --s-line: rgba(255, 255, 255, .12); --s-dark: #f2f2f2; --s-on-dark: #111214; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --s-card: #161618; --s-card-2: #1d1d20; --s-inner: #0f0f11; --s-line: rgba(255, 255, 255, .12); --s-dark: #f2f2f2; --s-on-dark: #111214; } }

/* ---------------------------------------------------------------- cards */
.card, .kpi, .ov-hero, .day-summary, .area-detail, .lp-card {
  background: var(--s-card) !important; border: 0 !important; box-shadow: none !important; border-radius: var(--s-r-card) !important; }
.kpi { border-radius: 12px !important; }
.kpi:hover, .card:hover { background: var(--s-card-2) !important; border: 0 !important; }
.kpi::before { display: none !important; }                       /* the hover bloom is replaced by the surface step */
.kpi-ico, .dlg-ico { background: var(--s-inner) !important; border-radius: 50% !important; }
.kpi:hover .kpi-ico { transform: none; box-shadow: none; }
.table-wrap { background: var(--s-inner); border: 0 !important; border-radius: var(--s-r-inner) !important; }
.table th { background: var(--s-inner) !important; }
.stat, .dc-stats div, .area-detail .kv div, .dc-files li { background: var(--s-inner) !important; border: 0 !important; border-radius: 8px !important; }
.day-summary .ds-bars i { border-radius: 2px 2px 0 0; }
.menu, .combo-pop, .dc-pop, .dialog, .map-overlay, .tip { border-radius: 12px !important; border: 1px solid var(--s-line) !important; }
.menu button, .combo-pop li { border-radius: 999px !important; }
.day-item, .rank-item, .hbar, .stop-item, .split-row { border-radius: 10px !important; }
.date-badge { border-radius: 50% !important; }
.lp-drop { border-radius: 999px !important; border: 1px solid var(--s-line) !important; background: var(--s-inner) !important; }
.lp-drop::after { border-radius: 999px !important; }

/* ---------------------------------------------------------------- buttons: pills and circles */
.btn, .chip, .seg button, .combo-btn, .date-range, .data-chip, .dc-main, .mv-chip, .btn-link, .card-pill, .meta-chip, .tag, .mv-pill, .kpi-trend, .kpi-aside,
select, .input, input[type="date"], .hold-bar, .lp-drop-btn, .count-pill { border-radius: 999px !important; }
.btn-icon, .hold-x, .btn-play, .dd-nav .btn-icon { border-radius: 50% !important; }

/* round, outlined icon buttons */
.top-actions .btn-icon, .dd-nav .btn-icon { border: 1px solid var(--s-line) !important; background: var(--s-inner) !important; color: var(--text) !important; }
.top-actions .btn-icon:hover, .dd-nav .btn-icon:hover { border-color: var(--text-2) !important; }

/* outlined pills for the filter bar and secondary controls */
.combo-btn, .date-range, .data-chip, .mv-chip, .btn-link, .dialog .btn:not(.btn-primary) {
  border: 1px solid var(--s-line) !important; background: var(--s-inner) !important; box-shadow: none !important; }
.combo-ico { border-radius: 50% !important; background: var(--s-card) !important; }
.btn-link { padding: 0 12px !important; }
.mv-chip b { border-radius: 999px !important; }

/* primary: a solid accent pill */
.btn-primary { border-radius: 999px !important; }
@media (min-width: 1361px) { .btn-primary:not(.btn-icon) { padding: 0 16px !important; } }

/* tabs, presets and toggles: plain pills; the selected one is a solid dark pill */
.tabs, .chips, .seg { background: var(--s-card) !important; border-radius: 999px !important; padding: 3px !important; gap: 2px !important; }
.tab, .chip, .seg button { border-radius: 999px !important; box-shadow: none !important; }
.tab-ink { background: var(--s-dark) !important; border-radius: 999px !important; box-shadow: none !important; }
.tab[aria-selected="true"] { color: var(--s-on-dark) !important; box-shadow: none !important; }
.tab[aria-selected="true"] .ico { color: var(--s-on-dark) !important; }
.tab[aria-selected="true"]::before { display: none !important; }
.chip.active, .seg button[aria-pressed="true"] { background: var(--s-dark) !important; color: var(--s-on-dark) !important; box-shadow: none !important; }
.chip.active::before, .seg button[aria-pressed="true"]::before { display: none !important; }
.mv-chip.on { background: var(--mv-crit) !important; color: #fff !important; border-color: transparent !important; }

/* small accent dots on pills, like the reference's tag markers */
.chip:not(.active)::after { content: none; }
