/* ════════════════════════════════════════════════
   PIANO SUITE — BASE
   ════════════════════════════════════════════════ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  /* Global theme transition — overridden for interactive elements below */
  transition-property: background-color, border-color, color;
  transition-duration: 0.2s;
  transition-timing-function: ease;
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  overflow: hidden;
  height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Suppress global transition on interactive elements — let component rules win */
.btn, .sidebar-item, .note-chip, .landing-card,
.topbar-tab, canvas, input, select, textarea {
  transition: all 0.17s var(--ease);
}

/* Scrollbars */
::-webkit-scrollbar        { width: 5px; height: 5px; }
::-webkit-scrollbar-thumb  { background: var(--border2); border-radius: 3px; }
::-webkit-scrollbar-track  { background: transparent; }

/* Forms */
label {
  display: block;
  font-size: 11px;
  color: var(--text2);
  margin-bottom: 4px;
  font-weight: 400;
  letter-spacing: 0.01em;
}
input[type=text],
input[type=number],
select,
textarea {
  width: 100%;
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: var(--r);
  color: var(--text);
  font-family: var(--mono);
  font-size: 12px;
  padding: 7px 10px;
  outline: none;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
select option { background: var(--surface); }

input[type=range] {
  -webkit-appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(
    to right,
    var(--a3) 0%, var(--a3) var(--val, 50%),
    var(--border2) var(--val, 50%)
  );
  outline: none;
  accent-color: var(--accent);
  cursor: pointer;
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  box-shadow: 0 0 0 3px var(--accent-soft), 0 1px 4px rgba(0,71,225,0.4);
}
input[type=range]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 0 0 5px var(--accent-soft), 0 2px 8px rgba(0,71,225,0.5);
}
input[type=range]::-moz-range-thumb {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  cursor: pointer;
  box-shadow: 0 0 0 3px var(--accent-soft);
}

textarea { resize: vertical; min-height: 72px; }

[contenteditable="true"]:hover { border-bottom-color: var(--border2) !important; }
[contenteditable="true"]:focus { border-bottom-color: var(--accent) !important; }

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 14px 0;
}
