/* ══════════════════════════════════════════════════════════
   Partitura Fácil — CSS Principal
   ══════════════════════════════════════════════════════════ */

/* ── Variáveis ─────────────────────────────────────────── */
:root {
  --color-bg: #f5f7fa;
  --color-surface: #ffffff;
  --color-primary: #4a6cf7;
  --color-primary-dark: #3a5ce5;
  --color-primary-light: #e8edff;
  --color-secondary: #6c757d;
  --color-success: #28a745;
  --color-danger: #dc3545;
  --color-warning: #ffc107;
  --color-text: #1a1d23;
  --color-text-muted: #6c757d;
  --color-border: #dee2e6;
  --color-highlight: #ffeb3b;
  --color-playbar: rgba(74, 108, 247, 0.35);
  --radius: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.16);
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --sidebar-width: 200px;
  --playbar-height: 64px;
  --header-height: 64px;
  --transition: 0.2s ease;
}

/* ── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--color-bg);
  color: var(--color-text);
  min-height: 100vh;
  line-height: 1.5;
}
button, input, select, textarea { font-family: inherit; font-size: inherit; }
input[type="range"] { cursor: pointer; }
a { color: var(--color-primary); text-decoration: none; }

/* ── Views ─────────────────────────────────────────────── */
.view { display: none; min-height: 100vh; }
.view.active { display: flex; flex-direction: column; }
.hidden { display: none !important; }

/* ── Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 500;
  transition: background var(--transition), box-shadow var(--transition), opacity var(--transition);
  min-height: 44px;
  min-width: 44px;
  white-space: nowrap;
  user-select: none;
}
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--color-primary-dark); box-shadow: var(--shadow-sm); }
.btn-ghost { background: transparent; color: var(--color-text); }
.btn-ghost:hover:not(:disabled) { background: rgba(0,0,0,0.06); }
.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
}
.btn-outline:hover:not(:disabled) { background: var(--color-primary-light); }
.btn-danger { background: var(--color-danger); color: #fff; }
.btn-danger:hover:not(:disabled) { background: #b02a37; }
.btn-lg { padding: 10px 24px; font-size: 1rem; }
.btn-sm { padding: 6px 12px; font-size: 0.875rem; min-height: 36px; }
.btn-xs { padding: 4px 8px; font-size: 0.78rem; min-height: 32px; }
.btn-back { color: var(--color-text-muted); font-size: 0.9rem; }
.btn-play {
  background: var(--color-primary);
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.1rem;
  box-shadow: var(--shadow-sm);
}
.btn-play:hover:not(:disabled) { background: var(--color-primary-dark); }

/* ── Header ────────────────────────────────────────────── */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: var(--header-height);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
  gap: 8px;
  overflow: hidden;
}
.header-brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.header-logo { font-size: 2rem; }
.header-title { font-size: 1.4rem; font-weight: 700; color: var(--color-primary); white-space: nowrap; }
.header-slogan { font-size: 0.78rem; color: var(--color-text-muted); }
.header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.list-main { padding: 24px; width: 100%; }

.exercises-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}

.exercise-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow var(--transition), transform var(--transition);
  border: 1.5px solid var(--color-border);
}
.exercise-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.exercise-card-name { font-size: 1.1rem; font-weight: 700; color: var(--color-text); }
.exercise-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.meta-badge {
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
  border-radius: 100px;
  padding: 2px 10px;
  font-size: 0.75rem;
  font-weight: 500;
}
.meta-badge--imported {
  background: #e8f5e9;
  color: #2e7d32;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-block;
  vertical-align: middle;
}

/* Header list: agrupar os botões de ação */
.header-actions { display: flex; align-items: center; gap: 8px; }
.exercise-card-date { font-size: 0.78rem; color: var(--color-text-muted); }
.exercise-card-actions {
  display: flex;
  gap: 6px;
  flex-wrap: nowrap;
  margin-top: 4px;
}
.exercise-card-actions .btn {
  flex: 0 0 auto;
  font-size: 0.76rem;
  padding: 5px 9px;
  min-height: 34px;
  white-space: nowrap;
}

/* Estado vazio */
.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--color-text-muted);
}
.empty-icon { font-size: 4rem; margin-bottom: 16px; }
.empty-state h2 { font-size: 1.4rem; margin-bottom: 8px; color: var(--color-text); }
.empty-state p { margin-bottom: 24px; }

/* ── Formulário ────────────────────────────────────────── */
.form-main {
  padding: 24px;
  width: 100%;
  overflow-y: auto;
  flex: 1;
}

.form-section {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}
.form-section-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-primary-light);
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 160px;
}
.form-group--wide { flex: 2; min-width: 280px; }

/* Variantes de tamanho para a linha de configurações musicais */
.form-row--compact { align-items: flex-end; flex-wrap: wrap; gap: 12px; }
.form-group--key  { flex: 2; min-width: 170px; }
.form-group--sm   { flex: 1; min-width: 90px;  max-width: 140px; }
.form-group--xs   { flex: 0 0 80px;            min-width: 72px;  max-width: 96px; }

/* Faz os selects da linha compacta aceitarem font menor sem quebrar */
.form-row--compact select,
.form-row--compact input[type="number"] { font-size: 0.88rem; padding: 7px 8px; }

label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text);
}
.form-hint { font-size: 0.82rem; color: var(--color-text-muted); margin-bottom: 12px; }

input[type="text"], input[type="number"], select, textarea {
  padding: 9px 12px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg);
  color: var(--color-text);
  transition: border-color var(--transition);
  min-height: 44px;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  background: #fff;
}
input.error, select.error { border-color: var(--color-danger); }
textarea { resize: vertical; min-height: 80px; }

/* BPM */
.bpm-control {
  display: flex;
  align-items: center;
  gap: 12px;
}
.bpm-control input[type="range"] { flex: 1; height: 6px; }
.bpm-control input[type="number"] { width: 70px; text-align: center; }
.form-row--bpm { align-items: flex-end; }

/* Notas grid */
.notes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 8px;
}
.note-check-label {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.85rem;
  transition: background var(--transition), border-color var(--transition);
  min-height: 44px;
  user-select: none;
}
.note-check-label:hover { background: var(--color-primary-light); border-color: var(--color-primary); }
.note-check-label input:checked + span { color: var(--color-primary); font-weight: 700; }
.note-check-label input { width: 16px; height: 16px; cursor: pointer; }

/* Oitavas */
.octave-checks { display: flex; gap: 10px; flex-wrap: wrap; }
.check-label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  min-height: 44px;
  padding: 0 8px;
}
.check-label input { width: 16px; height: 16px; cursor: pointer; }

/* Durações */
.durations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 8px;
}
.dur-check-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.82rem;
  transition: background var(--transition), border-color var(--transition);
  min-height: 54px;
  user-select: none;
}
.dur-check-label:hover { background: var(--color-primary-light); border-color: var(--color-primary); }
.dur-check-label input { width: 16px; height: 16px; cursor: pointer; }
.dur-check-label span:first-of-type {
  font-size: 1.8rem;
  line-height: 1;
  min-width: 28px;
  text-align: center;
  display: inline-block;
}

/* Modo de geração */
.mode-selector { display: flex; gap: 16px; flex-wrap: wrap; }
.mode-option { flex: 1; min-width: 180px; cursor: pointer; }
.mode-option input { display: none; }
.mode-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 20px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: border-color var(--transition), background var(--transition);
  min-height: 100px;
  background: var(--color-bg);
}
.mode-option input:checked ~ .mode-card {
  border-color: var(--color-primary);
  background: var(--color-primary-light);
}
.mode-icon { font-size: 1.8rem; }

.form-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  padding: 8px 0 24px;
}
.form-edit-banner {
  background: #fff8e1;
  border: 1.5px solid #ffe082;
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 0.9rem;
  color: #5c4000;
  margin-bottom: 16px;
}

/* ── Biblioteca de Músicas ─────────────────────────────── */
.app-header--sub {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.app-header--sub h2 {
  flex: 1;
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0;
  color: var(--text-primary);
}
.library-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.exercise-card-date {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

/* ── Editor ────────────────────────────────────────────── */
.editor-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: var(--header-height);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
  z-index: 100;
  gap: 12px;
}
.editor-exercise-name {
  font-size: 1rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
}
.editor-title-group {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  overflow: hidden;
}
.editor-header-actions { display: flex; gap: 8px; }

.editor-body {
  display: flex;
  flex: 1;
  overflow: hidden;
  height: calc(100vh - var(--header-height));
}

/* Sidebar */
.editor-sidebar {
  width: 220px;
  background: var(--color-surface);
  border-right: 1px solid var(--color-border);
  overflow-y: auto;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex-shrink: 0;
}
.sidebar-section h3 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  margin-bottom: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--color-border);
}
.sidebar-durations, .sidebar-notes {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sidebar-btn {
  padding: 7px 10px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg);
  cursor: pointer;
  font-size: 0.8rem;
  text-align: left;
  transition: background var(--transition), border-color var(--transition);
  min-height: 36px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.sidebar-btn:hover { background: var(--color-primary-light); border-color: var(--color-primary); }
.sidebar-btn.selected { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.sidebar-section--actions { display: flex; flex-direction: column; gap: 6px; }

/* Controles de playback dentro da sidebar */
.sidebar-playback-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.sidebar-slider-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 4px;
}
.sidebar-slider-row label {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
}
.btn-mute {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  padding: 0 2px;
  line-height: 1;
  border-radius: 4px;
  transition: opacity var(--transition), background var(--transition);
  min-height: unset;
  min-width: unset;
}
.btn-mute:hover { background: rgba(0,0,0,0.07); }
.btn-mute.muted { opacity: 0.4; }
.btn-metro-off  { opacity: 0.35; }
.btn-metro-on   { opacity: 1; color: var(--color-primary); }
.sidebar-slider-row input[type="range"] {
  width: 100%;
  height: 5px;
  cursor: pointer;
  border: none;
  background: transparent;
  min-height: unset;
  padding: 0;
}

/* Zoom na sidebar */
.zoom-buttons { display: flex; gap: 4px; flex-wrap: wrap; }
.zoom-btn { min-width: 40px; flex: 1; }
.zoom-btn.active { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }

/* Score area */
.score-area {
  flex: 1;
  overflow: auto;
  background: #f0f2f5;
  padding: 20px;
}
.score-container-wrapper { min-width: 100%; }
#score-container {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
  overflow-y: hidden;
  min-height: 200px;
  padding: 16px;
  width: 100%;
}
#score-container svg { display: block; max-width: 100%; }

/* ── OSMD (partituras importadas) ──────────────────────── */
.osmd-loading, .osmd-error {
  padding: 24px 16px;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  text-align: center;
}
.osmd-error { color: var(--color-danger); }
/* OSMD injeta canvas/svg diretamente no container */
#score-container canvas { max-width: 100%; }

/* Modo importado: ocultar volume, edição manual e BPM da sidebar (só mostra no bottom-bar) */
.editor-imported .editor-sidebar > .sidebar-section:first-child .sidebar-slider-row,
.editor-imported .bb-vol,
.editor-imported #btn-switch-manual-m,
.editor-imported #btn-mute-m,
.editor-imported .manual-only { display: none !important; }

/* Play bar highlight */
.note-highlight rect { fill: var(--color-highlight) !important; opacity: 0.55; }

/* Rodapé antigo — desativado */
.playback-bar { display: none; }
.sidebar-toggle { display: none; }

/* ── Barra fixa no rodapé (tablet + mobile ≤1024px) ────── */
.bottom-bar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -2px 12px rgba(0,0,0,0.1);
  z-index: 400;
  flex-direction: column;
}
.bottom-bar-main {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  height: 57px;
  overflow-x: auto;
}
.bb-transport { display: flex; align-items: center; gap: 5px; flex-shrink: 0; }
.btn-play-sm  { width: 40px; height: 40px; font-size: 1rem; border-radius: 50%; background: var(--color-primary); color: #fff; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.btn-play-sm:hover { background: var(--color-primary-dark); }
.bb-bpm  { display: flex; align-items: center; gap: 6px; flex: 1; min-width: 120px; }
.bb-vol  { display: flex; align-items: center; gap: 6px; flex: 1; min-width: 100px; }
.bb-label { font-size: 0.75rem; color: var(--color-text-muted); white-space: nowrap; flex-shrink: 0; }
.bb-bpm input[type="range"],
.bb-vol  input[type="range"] { flex: 1; height: 5px; cursor: pointer; border: none; background: transparent; min-height: unset; padding: 0; }
.bb-zoom-toggle { flex-shrink: 0; min-width: 40px; }

.bottom-bar-zoom {
  padding: 6px 16px 8px;
  border-top: 1px solid var(--color-border);
}
.zoom-buttons-m { justify-content: center; }
.zoom-buttons-m .zoom-btn { flex: none; min-width: 44px; }

.bottom-bar-manual {
  padding: 10px 16px;
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 45vh;
  overflow-y: auto;
}
.bb-manual-durations,
.bb-manual-notes { display: flex; flex-wrap: wrap; gap: 6px; }
.bb-manual-durations .sidebar-btn,
.bb-manual-notes .sidebar-btn { min-width: 80px; justify-content: center; font-size: 0.75rem; min-height: 34px; }
.bb-manual-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.manual-drawer-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.25); z-index: 399; }

/* ── Countdown overlay ─────────────────────────────────── */
.countdown-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9000;
}
.countdown-beat {
  font-size: clamp(6rem, 20vw, 12rem);
  font-weight: 900;
  color: #fff;
  line-height: 1;
  animation: pulse 0.15s ease-out;
}
.countdown-label {
  color: rgba(255,255,255,0.7);
  font-size: 1.2rem;
  margin-top: 16px;
}
@keyframes pulse {
  0% { transform: scale(1.4); opacity: 0.5; }
  100% { transform: scale(1); opacity: 1; }
}
.beat-pulse { animation: pulse 0.15s ease-out; }

/* ── Modal ─────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 8000;
}
.modal {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 28px;
  max-width: 400px;
  width: 90%;
  box-shadow: var(--shadow-lg);
}
.modal h3 { margin-bottom: 12px; font-size: 1.1rem; }
.modal p { color: var(--color-text-muted); margin-bottom: 20px; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; }

/* ── Toast ─────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: #1a1d23;
  color: #fff;
  padding: 10px 24px;
  border-radius: 100px;
  font-size: 0.9rem;
  z-index: 7000;
  box-shadow: var(--shadow-md);
  animation: toast-in 0.25s ease;
}
@keyframes toast-in { from { opacity: 0; transform: translateX(-50%) translateY(12px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }

/* ── Progress bar (playback) ───────────────────────────── */
.playbar-cursor {
  position: absolute;
  top: 0;
  width: 2px;
  background: var(--color-primary);
  opacity: 0.65;
  pointer-events: none;
  z-index: 10;
  border-radius: 1px;
  transition: left 0.05s linear;
}

/* ── Print ─────────────────────────────────────────────── */
@media print {
  .app-header, .editor-header, .editor-sidebar,
  .playback-bar, .countdown-overlay, .toast,
  .modal-overlay, .view-list, .view-form, #btn-print, #btn-pdf { display: none !important; }
  body { background: #fff; }
  #view-editor { display: flex !important; min-height: auto; }
  .editor-body { height: auto; overflow: visible; }
  .score-area { overflow: visible; padding: 0; }
  #score-container { box-shadow: none; overflow: visible; }
  .print-header { display: block !important; }
}
.print-header {
  display: none;
  padding: 16px 0;
  border-bottom: 1px solid #333;
  margin-bottom: 16px;
}
.print-header h1 { font-size: 1.2rem; }
.print-header p { font-size: 0.85rem; color: #555; }
.print-footer {
  display: none;
  padding: 8px 0;
  border-top: 1px solid #ccc;
  margin-top: 16px;
  font-size: 0.78rem;
  color: #777;
}

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 1024px) {
  /* Tablet + Mobile: esconde sidebar, mostra bottom-bar fixa */
  .editor-sidebar { display: none !important; }
  .bottom-bar { display: flex; }
  .editor-body { height: calc(100vh - var(--header-height) - 57px); }

  .list-main  { padding: 16px; }
  .form-main  { padding: 16px; }
  .form-section { padding: 18px; }
  .app-header { padding: 0 12px; }
  .header-slogan { display: none; }
  .header-title { font-size: 1rem; }
  /* Botões do header menores em tablet */
  .header-actions .btn { font-size: 0.82rem; padding: 8px 12px; }
}

@media (max-width: 768px) {
  .exercises-grid { grid-template-columns: 1fr; }
  .form-row { flex-direction: column; }
  .form-row--compact { flex-direction: row; flex-wrap: wrap; }
  .form-group--sm, .form-group--xs { max-width: unset; }
  .form-group--wide { min-width: unset; }
  .mode-selector { flex-direction: column; }
  .editor-header-actions .btn { padding: 6px 10px; font-size: 0.78rem; }
  /* Biblioteca */
  .app-header--sub { padding: 0 12px; }
  .app-header--sub h2 { font-size: 1rem; }
}

@media (max-width: 480px) {
  .editor-header-actions { display: none; }
  .notes-grid { grid-template-columns: repeat(3, 1fr); }
  .durations-grid { grid-template-columns: repeat(2, 1fr); }
  /* Header: esconde título, mantém só logo e botões */
  .header-title { display: none; }
  .header-actions .btn-lg { font-size: 0.78rem; padding: 7px 10px; }
  /* Bottom-bar mais compacta */
  .bb-vol { gap: 4px; }
  .bb-vol input[type="range"] { width: 60px; }
  .bottom-bar-main { gap: 4px; }
  /* Cards de exercício: botões menores */
  .exercise-card-actions .btn { font-size: 0.72rem; padding: 5px 7px; }
}
