/* Components — buttons, chips, cards, forms, sheets, toast. Shared everywhere. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid var(--border2); background: var(--white); color: var(--ink);
  border-radius: var(--radius); padding: 10px 16px;
  font-size: 14px; font-weight: 600; min-height: 44px;
}
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-green { background: var(--green); border-color: var(--green); color: #fff; }
.btn-block { width: 100%; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid var(--border2); background: var(--white); color: var(--ink2);
  border-radius: 999px; padding: 8px 14px; font-size: 13px; font-weight: 600;
}
.chip.on { background: var(--accent); border-color: var(--accent); color: #fff; }

.card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px;
}

.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--ink2); margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; border: 1px solid var(--border2); border-radius: var(--radius);
  padding: 11px 12px; font-size: 16px; font-family: inherit; background: var(--white); color: var(--ink);
}

.sheet-back {
  position: fixed; inset: 0; background: rgba(26, 26, 46, .45);
  display: none; align-items: flex-end; justify-content: center; z-index: 90;
}
.sheet-back.open { display: flex; }
.sheet {
  background: var(--white); width: 100%; max-width: 480px; max-height: 92vh; overflow-y: auto;
  border-radius: 16px 16px 0 0; padding: 20px 18px 28px;
}
@media (min-width: 760px) {
  .sheet-back { align-items: center; }
  .sheet { border-radius: 16px; }
}

.toast {
  position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%) translateY(80px);
  background: var(--ink); color: #fff; border-radius: var(--radius);
  padding: 12px 18px; font-size: 14px; z-index: 200; opacity: 0; transition: all .2s;
  max-width: 92vw; text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.empty { text-align: center; color: var(--ink2); padding: 28px 10px; font-size: 14px; }
.blink { animation: blink 1s ease-in-out 3; }
@keyframes blink { 50% { box-shadow: 0 0 0 4px var(--accent-light); } }
