/* MyVoice v1 — переиспользуемые компоненты (поверх tokens.css) */

.chip {
  display: inline-block;
  background: var(--surface-2);
  color: var(--text-muted);
  font-weight: 600;
  font-size: var(--text-xs);
  line-height: var(--leading-xs);
  padding: var(--s-1) var(--s-3);
  border-radius: var(--r-full);
  vertical-align: middle;
}

.section-title {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--cat-place);
}

.section-title--people {
  color: var(--cat-people);
}

.section-title--action {
  color: var(--cat-action);
}

.section-title--thing {
  color: var(--cat-thing);
}

.section-title--place {
  color: var(--cat-place);
}

.section-title__rule {
  display: block;
  width: 24px;
  height: 3px;
  margin-top: var(--s-2);
  border-radius: var(--r-full);
  background: currentColor;
}

.card {
  background: var(--surface);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  padding: var(--s-3);
  box-shadow: var(--shadow-sm);
}

.pick-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-width: 88px;
  min-height: 104px;
  padding: var(--s-3) var(--s-3);
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  font-family: inherit;
  transition:
    transform var(--dur-fast) var(--ease),
    box-shadow var(--dur-fast) var(--ease),
    border-color var(--dur-fast) var(--ease),
    background-color var(--dur-fast) var(--ease);
  -webkit-tap-highlight-color: transparent;
}

.pick-card:active {
  transform: scale(0.96) translateY(1px);
}

.pick-card[data-category='people'].pick-card--selected,
.pick-card--people.pick-card--selected {
  background: var(--cat-people-bg);
  border: 2px solid var(--cat-people);
}

.pick-card[data-category='action'].pick-card--selected,
.pick-card--action.pick-card--selected {
  background: var(--cat-action-bg);
  border: 2px solid var(--cat-action);
}

.pick-card[data-category='thing'].pick-card--selected,
.pick-card--thing.pick-card--selected {
  background: var(--cat-thing-bg);
  border: 2px solid var(--cat-thing);
}

.pick-card[data-category='place'].pick-card--selected,
.pick-card--place.pick-card--selected {
  background: var(--cat-place-bg);
  border: 2px solid var(--cat-place);
}

.pick-card__emoji {
  font-size: 48px;
  line-height: 1;
}

.pick-card__label {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--text-muted);
  text-align: center;
}

.pick-card--selected {
  box-shadow: none;
}

.pick-card__check {
  position: absolute;
  top: var(--s-2);
  right: var(--s-2);
  width: 22px;
  height: 22px;
  border-radius: var(--r-full);
  background: var(--surface);
  border: 2px solid currentColor;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 56px;
  padding: 0 var(--s-5);
  border-radius: var(--s-4);
  border: none;
  background: var(--accent);
  color: var(--accent-text);
  font-family: inherit;
  font-weight: 700;
  font-size: 17px;
  line-height: 1.25;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition:
    background var(--dur-fast) var(--ease),
    transform var(--dur-fast) var(--ease),
    opacity var(--dur-fast) var(--ease);
  -webkit-tap-highlight-color: transparent;
}

.btn-primary:active:not(:disabled) {
  background: var(--accent-hover);
  transform: scale(0.98);
}

.btn-primary:disabled {
  background: #d9d2c7;
  color: var(--accent-text);
  box-shadow: none;
  opacity: 1;
  cursor: not-allowed;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  padding: 0 var(--s-4);
  border-radius: var(--r-md);
  border: none;
  background: var(--surface-2);
  color: var(--text);
  font-family: inherit;
  font-weight: 600;
  font-size: var(--text-sm);
  line-height: var(--leading-sm);
  cursor: pointer;
  transition:
    background var(--dur-fast) var(--ease),
    transform var(--dur-fast) var(--ease);
  -webkit-tap-highlight-color: transparent;
}

.btn-secondary__ico {
  font-size: 20px;
  line-height: 1;
  width: 22px;
  flex-shrink: 0;
  text-align: center;
}

.btn-secondary:active {
  transform: scale(0.98);
}

.btn-secondary:active:not(:disabled) {
  filter: brightness(0.97);
}

.btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  padding: 0 var(--s-4);
  border-radius: var(--r-md);
  border: none;
  background: var(--danger-bg);
  color: var(--danger);
  font-family: inherit;
  font-weight: 600;
  font-size: var(--text-sm);
  line-height: var(--leading-sm);
  cursor: pointer;
  transition:
    background var(--dur-fast) var(--ease),
    transform var(--dur-fast) var(--ease);
  -webkit-tap-highlight-color: transparent;
}

.btn-danger__ico {
  font-size: 20px;
  line-height: 1;
  width: 22px;
  flex-shrink: 0;
  text-align: center;
}

.btn-danger:active {
  transform: scale(0.98);
  filter: brightness(0.98);
}

/* Твёрдая опасная кнопка (модалки) */
.btn-danger-solid {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-md);
  border: none;
  background: var(--danger);
  color: var(--accent-text);
  font-family: inherit;
  font-weight: 700;
  font-size: var(--text-base);
  cursor: pointer;
  transition:
    transform var(--dur-fast) var(--ease),
    filter var(--dur-fast) var(--ease);
}

.btn-danger-solid:active {
  transform: scale(0.98);
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  min-width: 40px;
  height: 40px;
  min-height: 40px;
  padding: 0;
  border: none;
  border-radius: var(--s-3);
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
  transition:
    background var(--dur-fast) var(--ease),
    transform var(--dur-fast) var(--ease);
  -webkit-tap-highlight-color: transparent;
}

.btn-icon:active {
  background: var(--surface-2);
  transform: scale(0.96);
}
