* { box-sizing: border-box; }

html, body {
  min-height: 100%;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

body { margin: 0; background: #f4f7f4; color: var(--ink); }

button, input, select, textarea { font: inherit; }
button { border: 0; cursor: pointer; }

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(240, 201, 76, 0.72);
  outline-offset: 2px;
}

h1, h2, p { margin: 0; }

select, input, textarea {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}
select, input { min-height: 38px; padding: 8px 10px; }
textarea { width: 100%; resize: vertical; padding: 10px 12px; line-height: 1.55; }

.primary-button,
.secondary-button,
.danger-button,
.text-button {
  min-height: 38px;
  border-radius: 8px;
  padding: 8px 12px;
  font-weight: 700;
  white-space: nowrap;
}
.primary-button { background: var(--ink); color: #fff; }
.secondary-button { background: #e7eee9; color: var(--ink); }
.secondary-button.is-active { background: var(--accent); color: #fff; }
.danger-button { width: 100%; margin-top: 12px; background: #f7e8e6; color: var(--danger); }
.text-button { min-height: 32px; background: transparent; color: var(--muted); padding: 4px 8px; }

@media (prefers-reduced-motion: reduce) {
  .side-panel,
  .panel-scrim,
  .plays-panel,
  .orientation-icon { transition: none; }
}
