/* Ovládacie prvky: tlačidlá, pilulky, segmenty */

/* ---------- Tlačidlá ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  height: 40px; padding: 0 13px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); color: var(--ink);
  font: 600 .875rem/1 var(--sans);
  white-space: nowrap; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.pill svg { width: 18px; height: 18px; flex: none; }
.pill:hover:not(:disabled) { background: var(--accent-soft); color: var(--accent); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.pill[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--surface); }
.pill:disabled { opacity: .4; cursor: default; }
.pill.sel { padding-right: 6px; cursor: default; }
.pill.sel select { max-width: 6.5rem; border: 0; background: transparent; font-weight: 700; cursor: pointer; }
.pill.sel select:focus-visible { outline-offset: 4px; border-radius: 6px; }
.icon-btn {
  display: inline-grid; place-items: center;
  border: 0; background: transparent; color: var(--muted);
  cursor: pointer;
}
.icon-btn:hover:not(:disabled) { background: var(--accent-soft); color: var(--accent); }
.icon-btn:disabled { opacity: .3; cursor: default; }
.icon-btn svg { width: 20px; height: 20px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 16px;
  border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface); color: var(--ink);
  font: 600 .92rem/1.2 var(--sans); text-align: center;
  cursor: pointer;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover:not(:disabled) { background: var(--accent-soft); color: var(--accent); }
.btn:disabled { opacity: .4; cursor: default; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--surface); }
.btn.primary:hover:not(:disabled) { background: var(--accent); color: var(--surface); filter: brightness(1.08); }
.btn.danger { color: var(--danger); }
.seg { display: inline-flex; align-items: stretch; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--surface); }
.seg .pill { border: 0; border-radius: 0; padding: 0 14px; }
.seg .pill + .pill, .seg .tr-val + .pill { border-left: 1px solid var(--line); }
.seg .tr-val { display: inline-flex; align-items: center; justify-content: center; min-width: 3.1rem; padding: 0 6px; border-left: 1px solid var(--line); font: 700 .95rem/1 var(--sans); color: var(--chord); }
.seg select.tr-val {
  appearance: none; -webkit-appearance: none; border-top: 0; border-bottom: 0; border-right: 0; border-radius: 0;
  min-width: 3.6rem; padding: 0 8px; background: transparent; text-align: center; text-align-last: center; cursor: pointer;
}
.seg select.tr-val:hover { background: var(--accent-soft); }
.pill.star[aria-pressed="true"] svg path { fill: currentColor; }
.tag-fav { flex: none; display: grid; place-items: center; width: 26px; height: 26px; color: var(--star); }
.tag-fav svg { width: 18px; height: 18px; }
.tag-fav svg path { fill: currentColor; }
