/* controls */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px; border: 1.5px solid var(--ink); border-radius: 999px; background: transparent; color: var(--fg); font-weight: 600; font-size: 0.98rem; text-decoration: none; white-space: nowrap; transition: transform 0.15s, background 0.2s, color 0.2s; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:hover { background: color-mix(in srgb, var(--fg) 8%, transparent); }
.btn:active { transform: scale(0.97); }
.btn.solid { background: var(--ink); color: var(--on-ink); }
.btn.solid:hover { background: color-mix(in srgb, var(--ink) 88%, var(--accent)); }
.btn.sm { min-height: 38px; padding: 0 16px; font-size: 0.88rem; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: 0.4; cursor: not-allowed; transform: none; }
.btn.bad { border-color: var(--danger); color: var(--danger); }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; background: transparent; border: none; border-radius: 50%; color: var(--fg); position: relative; }
.icon-btn:hover { background: color-mix(in srgb, var(--fg) 9%, transparent); }
.icon-btn svg { width: 22px; height: 22px; }
.count { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: var(--on-accent); font-size: 0.72rem; font-weight: 700; display: grid; place-items: center; }
.chip { border: 1.5px solid var(--line); background: transparent; border-radius: 999px; padding: 0 16px; min-height: 40px; font-weight: 500; font-size: 0.95rem; white-space: nowrap; transition: background 0.15s, border-color 0.15s; }
.chip:hover { border-color: var(--fg); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.field-in { background: var(--surface); border: 1.5px solid var(--line); border-radius: 14px; padding: 0 14px; min-height: 46px; min-width: 0; }
.field-in:focus { outline: 2px solid var(--fg); outline-offset: 1px; }
textarea.field-in { padding: 10px 14px; min-height: 80px; resize: vertical; }
/* Own chevron instead of the browser's, so every dropdown has the same arrow and spacing. */
select.field-in { -webkit-appearance: none; appearance: none; padding-right: 42px; background-image: var(--chevron); background-repeat: no-repeat; background-position: right 16px center; background-size: 12px 8px; cursor: pointer; }
