@import "https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap";

/* src/styles.css */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
:root {
  --navy: #0E1220;
  --purple: #6B4CFF;
  --blue: #3D8BFF;
  --cyan: #00D1FF;
  --white: #FFFFFF;
  --light: #F2F2F2;
  --success: #34D399;
  --danger: #F87171;
  --surface-0: #0E1220;
  --surface-1: #141a29;
  --surface-2: #1a2233;
  --surface-3: #212b3f;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #F5F6FA;
  --text-muted: #9096A8;
  --text-faint: #5B6274;
  --accent-grad:
    linear-gradient(
      135deg,
      var(--purple) 0%,
      var(--cyan) 100%);
  --accent-soft: rgba(107, 76, 255, 0.14);
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-7: 32px;
  --sp-8: 40px;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --fs-xs: 11.5px;
  --fs-sm: 13px;
  --fs-base: 14.5px;
  --fs-md: 16px;
  --fs-lg: 19px;
  --fs-xl: 24px;
  --font-main:
    "Poppins",
    -apple-system,
    sans-serif;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}
html,
body {
  font-family: var(--font-main);
  background: var(--surface-0);
  color: var(--text);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}
body {
  font-size: var(--fs-base);
  line-height: 1.5;
}
button,
input,
select,
textarea {
  font-family: var(--font-main);
}
.app {
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100vw;
  background: var(--surface-0);
}
.app-header {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-5);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.app-logo {
  width: 34px;
  height: 34px;
  border-radius: var(--r-sm);
  object-fit: contain;
  flex-shrink: 0;
}
.app-title-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.app-title-section h1 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.app-title-section p {
  font-size: 9.5px;
  color: #B9AEFF;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.view-container {
  flex: 1;
  overflow: auto;
}
.view {
  padding: var(--sp-6) var(--sp-5) var(--sp-7);
  max-width: 720px;
  margin: 0 auto;
}
.view-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--sp-6);
  gap: var(--sp-3);
}
.view-header h1 {
  font-size: var(--fs-xl);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.header-actions {
  display: flex;
  gap: var(--sp-2);
}
.btn-primary,
.btn-secondary,
.btn-icon,
.btn-success,
.btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 10px var(--sp-4);
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  font-size: var(--fs-sm);
  font-weight: 600;
  cursor: pointer;
  transition:
    background 0.15s var(--ease),
    border-color 0.15s var(--ease),
    color 0.15s var(--ease),
    transform 0.15s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent-grad);
  color: var(--white);
  box-shadow: 0 2px 10px rgba(107, 76, 255, 0.25);
}
.btn-primary:hover {
  box-shadow: 0 4px 16px rgba(107, 76, 255, 0.35);
  transform: translateY(-1px);
}
.btn-primary:active {
  transform: translateY(0);
}
.btn-secondary {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border-strong);
}
.btn-secondary:hover {
  color: var(--text);
  border-color: var(--text-faint);
  background: var(--surface-2);
}
.btn-icon {
  padding: var(--sp-2);
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border);
}
.btn-icon:hover:not(:disabled) {
  color: var(--text);
  border-color: var(--border-strong);
  background: var(--surface-2);
}
.btn-icon:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.btn-icon.active {
  color: var(--cyan);
  border-color: rgba(0, 209, 255, 0.4);
  background: rgba(0, 209, 255, 0.08);
}
.btn-icon.flash {
  animation: btn-flash 1s ease-in-out infinite;
}
@keyframes btn-flash {
  0%, 100% {
    color: var(--text-muted);
    border-color: var(--border);
    background: transparent;
  }
  50% {
    color: var(--cyan);
    border-color: rgba(0, 209, 255, 0.6);
    background: var(--accent-soft);
    box-shadow: 0 0 12px rgba(0, 209, 255, 0.5);
  }
}
.btn-icon.btn-success:hover:not(:disabled) {
  color: var(--success);
  border-color: rgba(52, 211, 153, 0.4);
  background: rgba(52, 211, 153, 0.08);
}
.btn-icon.btn-danger:hover:not(:disabled) {
  color: var(--danger);
  border-color: rgba(248, 113, 113, 0.4);
  background: rgba(248, 113, 113, 0.08);
}
.btn-success {
  background: var(--success);
  color: #05261C;
}
.btn-success:hover {
  opacity: 0.88;
}
.btn-danger {
  background: var(--danger);
  color: #2B0B0B;
}
.btn-danger:hover {
  opacity: 0.88;
}
.search-box {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: var(--sp-3) var(--sp-3);
  margin-bottom: var(--sp-5);
  color: var(--text-faint);
  transition: border-color 0.15s var(--ease);
}
.search-box:focus-within {
  border-color: var(--border-strong);
  color: var(--text-muted);
}
.search-box input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: var(--fs-base);
}
.search-box input:focus {
  outline: none;
}
.search-box input::placeholder {
  color: var(--text-faint);
}
.song-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.song-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--sp-4);
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: border-color 0.15s var(--ease), background 0.15s var(--ease);
  gap: var(--sp-3);
}
.song-item:hover {
  border-color: var(--border-strong);
  background: var(--surface-2);
}
.song-info h3 {
  font-size: var(--fs-md);
  font-weight: 600;
  margin-bottom: 3px;
  letter-spacing: -0.01em;
}
.song-info p {
  font-size: var(--fs-xs);
  color: var(--text-muted);
}
.song-actions {
  display: flex;
  gap: 2px;
  flex-shrink: 0;
}
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  background: var(--accent-grad);
  color: var(--white);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  border: 2px solid var(--surface-0);
}
.form-new-song {
  background: var(--surface-1);
  border: 1px solid var(--border);
  padding: var(--sp-5);
  border-radius: var(--r-md);
  margin-bottom: var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.form-new-song input,
.form-new-song select {
  padding: var(--sp-3);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--text);
  font-size: var(--fs-base);
  transition: border-color 0.15s var(--ease);
}
.form-new-song input:focus,
.form-new-song select:focus {
  outline: none;
  border-color: var(--cyan);
}
.form-new-song input::placeholder {
  color: var(--text-faint);
}
.form-row {
  display: flex;
  gap: var(--sp-3);
}
.form-row > * {
  flex: 1;
}
.form-actions {
  display: flex;
  gap: var(--sp-3);
  justify-content: flex-end;
  margin-top: var(--sp-1);
}
.lineup-container {
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
}
.lineup-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.lineup-item {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-4);
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}
.lineup-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-weight: 700;
  font-size: var(--fs-xs);
  color: var(--text-muted);
  flex-shrink: 0;
}
.lineup-info {
  flex: 1;
  min-width: 0;
}
.lineup-info h3 {
  font-size: var(--fs-md);
  font-weight: 600;
  margin-bottom: 3px;
}
.lineup-info p {
  font-size: var(--fs-xs);
  color: var(--text-muted);
}
.lineup-actions {
  display: flex;
  gap: 2px;
  flex-shrink: 0;
}
.btn-start-set {
  background: var(--accent-grad);
  color: var(--white);
  padding: 15px var(--sp-7);
  font-size: var(--fs-md);
  font-weight: 700;
  width: 100%;
  border-radius: var(--r-md);
  box-shadow: 0 4px 20px rgba(107, 76, 255, 0.3);
}
.btn-start-set:hover {
  box-shadow: 0 6px 24px rgba(107, 76, 255, 0.4);
  transform: translateY(-1px);
}
.editor-container {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: var(--sp-5);
  height: calc(100vh - 180px);
  max-width: none;
}
.editor-sidebar {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--sp-4);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
}
.sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(6, 8, 16, 0.6);
  z-index: 499;
}
.sidebar-close-btn {
  display: none;
}
.song-info-toggle-btn {
  display: none;
  align-items: center;
  gap: var(--sp-2);
  align-self: flex-start;
  padding: var(--sp-2) var(--sp-3);
  margin-bottom: var(--sp-2);
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  color: var(--text);
  font-size: var(--fs-sm);
  font-weight: 600;
  cursor: pointer;
}
.song-info-toggle-btn:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}
.section-group {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.section-group h3 {
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 2px;
}
.section-group label {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  font-size: var(--fs-xs);
  color: var(--text-muted);
}
.section-group input,
.section-group select {
  padding: var(--sp-2) var(--sp-2);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--text);
  font-size: var(--fs-sm);
  transition: border-color 0.15s var(--ease);
}
.section-group input:focus,
.section-group select:focus {
  outline: none;
  border-color: var(--cyan);
}
.section-item {
  display: flex;
  gap: var(--sp-2);
  align-items: center;
  padding: var(--sp-2);
  background: var(--surface-2);
  border-radius: var(--r-sm);
}
.section-name-input {
  flex: 1;
  padding: var(--sp-1) 2px;
  background: transparent;
  border: none;
  border-bottom: 1px solid transparent;
  color: var(--text);
  font-size: var(--fs-sm);
  transition: border-color 0.15s var(--ease);
}
.section-name-input:focus {
  outline: none;
  border-bottom-color: var(--cyan);
}
.section-item-actions {
  display: flex;
  gap: 2px;
}
.editor-main {
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
}
.section-editor {
  background: var(--surface-1);
  border: 1px solid var(--border);
  padding: var(--sp-4);
  border-radius: var(--r-md);
}
.section-editor h2 {
  font-size: var(--fs-md);
  font-weight: 700;
  margin-bottom: var(--sp-3);
  color: var(--text);
}
.line-editor {
  margin-bottom: var(--sp-3);
  padding: var(--sp-3);
  background: var(--surface-2);
  border-radius: var(--r-sm);
}
.line-editor:last-child {
  margin-bottom: 0;
}
.words-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-bottom: var(--sp-2);
}
.word-box {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  padding: var(--sp-2);
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  font-size: var(--fs-xs);
  transition: border-color 0.15s var(--ease);
}
.word-box:hover {
  border-color: var(--border-strong);
}
.word-text {
  font-weight: 600;
  color: var(--text);
}
.chord-input,
.cue-select {
  padding: 3px 4px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
  font-size: 11px;
  transition: border-color 0.15s var(--ease);
}
.chord-input:focus,
.cue-select:focus {
  outline: none;
  border-color: var(--cyan);
}
.chord-input::placeholder {
  color: var(--text-faint);
}
.modal {
  position: fixed;
  inset: 0;
  background: rgba(6, 8, 16, 0.72);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.modal-content {
  background: var(--surface-1);
  border: 1px solid var(--border-strong);
  padding: var(--sp-6);
  border-radius: var(--r-lg);
  max-width: 480px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.modal-content h2 {
  font-size: var(--fs-lg);
  font-weight: 700;
  margin-bottom: var(--sp-4);
}
.modal-content textarea {
  width: 100%;
  padding: var(--sp-3);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--text);
  font-size: var(--fs-base);
  resize: vertical;
}
.modal-content textarea:focus {
  outline: none;
  border-color: var(--cyan);
}
.modal-text-input {
  width: 100%;
  padding: var(--sp-3);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--text);
  font-size: var(--fs-base);
  font-family: var(--font-main);
}
.modal-text-input:focus {
  outline: none;
  border-color: var(--cyan);
}
.modal-actions {
  display: flex;
  gap: var(--sp-3);
  justify-content: flex-end;
  margin-top: var(--sp-4);
}
.performance-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  background: var(--surface-0);
  position: relative;
}
.performance-header {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-5);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.song-view-title {
  flex: 1;
  min-width: 0;
  padding: 0 var(--sp-3);
}
.song-view-title h1 {
  font-size: var(--fs-lg);
  font-weight: 700;
  margin-bottom: 2px;
}
.song-view-title p {
  font-size: var(--fs-xs);
  color: var(--text-muted);
}
.performance-title {
  flex: 1;
  min-width: 0;
}
.performance-title h1 {
  font-size: var(--fs-lg);
  font-weight: 700;
  margin-bottom: 2px;
  letter-spacing: -0.01em;
}
.performance-title p {
  font-size: var(--fs-xs);
  color: var(--text-muted);
}
.performance-controls {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  padding: var(--sp-3) var(--sp-5);
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  background: var(--surface-1);
  flex-shrink: 0;
}
.control-group {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-xs);
}
.control-group label {
  font-weight: 600;
  color: var(--text-muted);
  min-width: 70px;
}
.control-buttons {
  display: flex;
  gap: var(--sp-1);
  align-items: center;
}
.control-buttons button {
  width: 26px;
  height: 26px;
  padding: 0;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--text);
  cursor: pointer;
  font-weight: 600;
  transition: border-color 0.15s var(--ease), color 0.15s var(--ease);
}
.control-buttons button:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}
.control-buttons span {
  min-width: 28px;
  text-align: center;
  font-weight: 600;
}
.control-group input[type=range] {
  width: 110px;
  accent-color: var(--cyan);
}
.control-slider {
  flex: 1;
  min-width: 120px;
}
.control-slider input[type=range] {
  width: 100%;
  flex: 1;
}
.btn-flat,
.btn-sharp {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  padding: 0;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--text);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: border-color 0.15s var(--ease), color 0.15s var(--ease);
}
.btn-flat:hover,
.btn-sharp:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}
.control-group select {
  padding: 5px var(--sp-2);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--text);
  font-size: var(--fs-xs);
}
.performance-main {
  flex: 1;
  display: flex;
  gap: 0;
  overflow: hidden;
  position: relative;
}
.progress-track {
  width: 24px;
  flex-shrink: 0;
  position: relative;
}
.progress-track::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background:
    linear-gradient(
      180deg,
      rgba(107, 76, 255, 0.25),
      rgba(0, 209, 255, 0.25));
}
.progress-dot {
  position: absolute;
  left: 50%;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--accent-grad);
  box-shadow: 0 0 10px rgba(0, 209, 255, 0.7), 0 0 4px rgba(107, 76, 255, 0.6);
  transform: translate(-50%, -50%);
  transition: top 0.15s linear;
}
.section-nav {
  display: flex;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-5);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  flex-shrink: 0;
  background: var(--surface-1);
}
.section-pill {
  flex-shrink: 0;
  padding: 6px var(--sp-3);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
  font-size: var(--fs-xs);
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s var(--ease);
}
.section-pill:hover {
  border-color: var(--border-strong);
  color: var(--text);
}
.section-pill.active {
  background: var(--accent-soft);
  border-color: rgba(0, 209, 255, 0.35);
  color: var(--cyan);
}
.transposed-key {
  color: var(--cyan);
  font-weight: 700;
}
.btn-play {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: none;
  background: var(--accent-grad);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(107, 76, 255, 0.35);
  transition: transform 0.15s var(--ease);
}
.btn-play:hover {
  transform: scale(1.05);
}
.btn-play:active {
  transform: scale(0.97);
}
.performance-content {
  flex: 1;
  overflow-y: auto;
  padding: var(--sp-6) var(--sp-6) var(--sp-8);
  max-width: 820px;
  margin: 0 auto;
  width: 100%;
}
.perf-section {
  margin-bottom: var(--sp-7);
}
.perf-section-title {
  font-size: var(--fs-sm);
  color: var(--text-faint);
  margin-bottom: var(--sp-4);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.perf-line {
  margin-bottom: var(--sp-4);
}
.perf-line-gap {
  margin-top: var(--sp-6);
}
.perf-words {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3) var(--sp-4);
}
.perf-word {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.perf-word-top {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 1.1em;
}
.cue-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.cue-dot.cue-drum {
  background: var(--success);
}
.cue-dot.cue-accent,
.cue-dot.cue-pause,
.cue-dot.cue-stop,
.cue-dot.cue-break {
  background: var(--purple);
}
.cue-custom {
  font-size: 0.6em;
  font-weight: 700;
  color: var(--purple);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.review-section {
  margin-top: var(--sp-6);
}
.review-summary {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  color: var(--text-muted);
  font-size: var(--fs-sm);
  margin-bottom: var(--sp-3);
}
.review-stars {
  display: flex;
  gap: 2px;
  color: #FFC94D;
}
.review-stars-input {
  gap: 4px;
  margin-bottom: var(--sp-2);
}
.star-btn {
  background: transparent;
  border: none;
  color: #FFC94D;
  cursor: pointer;
  padding: 2px;
}
.review-form {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--sp-4);
  margin-bottom: var(--sp-4);
}
.review-form textarea {
  width: 100%;
  padding: var(--sp-2);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--text);
  font-size: var(--fs-sm);
  font-family: var(--font-main);
  resize: vertical;
  margin-bottom: var(--sp-3);
}
.review-form textarea:focus {
  outline: none;
  border-color: var(--cyan);
}
.review-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.review-item {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: var(--sp-3);
}
.review-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.review-author {
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--text-muted);
}
.review-item p {
  font-size: var(--fs-sm);
  color: var(--text);
}
.chord {
  font-size: 0.72em;
  font-weight: 600;
  color: #7EE8FF;
  letter-spacing: 0.02em;
  min-height: 1em;
}
.lyric {
  font-weight: 500;
}
.performance-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-4) var(--sp-5);
  border-top: 1px solid var(--border);
  gap: var(--sp-4);
  flex-shrink: 0;
  background: var(--surface-1);
}
.song-counter {
  font-weight: 600;
  font-size: var(--fs-sm);
  color: var(--text-muted);
}
.next-song-preview {
  font-size: var(--fs-xs);
  color: var(--text-faint);
}
.nav-bar {
  display: flex;
  gap: 2px;
  padding: var(--sp-2) var(--sp-2);
  border-top: 1px solid var(--border);
  background: var(--surface-1);
  flex-shrink: 0;
}
.nav-btn {
  position: relative;
  flex: 1;
  padding: 6px 2px 8px;
  background: transparent;
  color: var(--text-faint);
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
.nav-btn:hover {
  color: var(--text-muted);
  background: var(--surface-2);
}
.nav-btn.active {
  background: var(--accent-soft);
  color: var(--cyan);
}
.nav-label {
  font-size: 10px;
  font-weight: 600;
}
.filter-chips {
  display: flex;
  gap: var(--sp-2);
  overflow-x: auto;
  margin-bottom: var(--sp-4);
  padding-bottom: 2px;
}
.filter-chip {
  flex-shrink: 0;
  padding: 7px var(--sp-4);
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
  font-size: var(--fs-xs);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s var(--ease);
  white-space: nowrap;
}
.filter-chip:hover {
  border-color: var(--border-strong);
  color: var(--text);
}
.filter-chip.active {
  background: var(--accent-soft);
  border-color: rgba(0, 209, 255, 0.3);
  color: var(--cyan);
}
.song-card {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: var(--sp-4);
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: border-color 0.15s var(--ease), background 0.15s var(--ease);
}
.song-card:hover {
  border-color: var(--border-strong);
  background: var(--surface-2);
}
.song-card .song-info {
  flex: 1;
  min-width: 0;
  cursor: pointer;
}
.song-card .song-actions {
  display: flex;
  gap: 2px;
  flex-shrink: 0;
  padding-top: 2px;
}
.fav-star {
  flex-shrink: 0;
  background: transparent;
  border: none;
  color: var(--text-faint);
  cursor: pointer;
  padding: 2px;
  margin-top: 2px;
  transition: color 0.15s var(--ease);
}
.fav-star:hover {
  color: var(--text-muted);
}
.fav-star.active {
  color: var(--cyan);
}
.song-meta {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-top: var(--sp-2);
  flex-wrap: wrap;
}
.meta-chip {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 6px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.meta-time {
  font-size: var(--fs-xs);
  color: var(--text-faint);
}
.practice-card {
  cursor: pointer;
  align-items: center;
}
.practice-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-2);
  border-radius: var(--r-md);
  color: var(--cyan);
}
.add-menu-wrap {
  position: relative;
}
.add-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  min-width: 180px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  z-index: 20;
  padding: var(--sp-1);
  display: flex;
  flex-direction: column;
}
.add-menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-3);
  background: transparent;
  border: none;
  border-radius: var(--r-sm);
  color: var(--text);
  font-size: var(--fs-sm);
  cursor: pointer;
  text-align: left;
}
.add-menu-item:hover:not(:disabled) {
  background: var(--surface-3);
}
.add-menu-item:disabled {
  color: var(--text-faint);
  cursor: default;
}
.add-menu-new {
  color: var(--cyan);
  border-top: 1px solid var(--border);
  margin-top: 2px;
  padding-top: var(--sp-2);
}
.add-menu-empty {
  padding: var(--sp-2) var(--sp-3);
  font-size: var(--fs-xs);
  color: var(--text-faint);
}
.setlist-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: var(--sp-4);
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: border-color 0.15s var(--ease), background 0.15s var(--ease);
}
.setlist-card .song-info {
  flex: 1;
  min-width: 0;
  cursor: pointer;
}
.setlist-card:hover {
  border-color: var(--border-strong);
  background: var(--surface-2);
}
.setlist-name-input {
  flex: 1;
  background: transparent;
  border: none;
  border-bottom: 1px solid transparent;
  color: var(--text);
  font-size: var(--fs-lg);
  font-weight: 700;
  padding: var(--sp-1) 0;
}
.setlist-name-input:focus {
  outline: none;
  border-bottom-color: var(--cyan);
}
.drag-handle {
  color: var(--text-faint);
  cursor: grab;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.lineup-item.dragging,
.section-item.dragging {
  opacity: 0.4;
}
.btn-block {
  width: 100%;
  justify-content: center;
  margin-top: var(--sp-2);
}
.picker-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  max-height: 320px;
  overflow-y: auto;
}
.picker-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-3);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--text);
  cursor: pointer;
  text-align: left;
}
.picker-item:hover {
  border-color: var(--cyan);
}
.picker-title {
  font-size: var(--fs-sm);
  font-weight: 600;
}
.picker-sub {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  margin-top: 2px;
}
.live-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--sp-1);
  padding: var(--sp-7) var(--sp-5);
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}
.live-hero-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--cyan);
  margin-bottom: var(--sp-2);
}
.live-hero-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-faint);
}
.live-hero-name {
  font-size: var(--fs-xl);
  font-weight: 700;
  margin: 2px 0;
}
.live-hero-sub {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  margin-bottom: var(--sp-4);
}
.live-hero .btn-start-set {
  max-width: 280px;
}
.profile-card {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-5);
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  margin-bottom: var(--sp-5);
}
.profile-brand {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-md);
  background: var(--accent-grad);
  color: var(--white);
}
.profile-avatar-btn {
  position: relative;
  padding: 0;
  border: none;
  cursor: pointer;
  overflow: visible;
}
.profile-avatar-btn:disabled {
  opacity: 0.6;
  cursor: default;
}
.profile-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--r-md);
}
.profile-avatar-edit {
  position: absolute;
  bottom: -4px;
  right: -4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--surface-1);
  border: 2px solid var(--navy);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
}
.bug-photo-preview {
  position: relative;
  display: inline-block;
  margin: var(--sp-2) 0;
}
.bug-photo-preview img {
  max-width: 100%;
  max-height: 160px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  display: block;
}
.bug-photo-preview .btn-icon {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--surface-1);
  border: 1px solid var(--border-strong);
}
.profile-name {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: var(--fs-lg);
  font-weight: 700;
}
.profile-name-edit {
  display: flex;
  align-items: center;
  gap: 4px;
}
.profile-name-edit input {
  flex: 1;
  min-width: 0;
  padding: 4px var(--sp-2);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--text);
  font-size: var(--fs-base);
  font-weight: 700;
}
.profile-name-edit input:focus {
  outline: none;
  border-color: var(--cyan);
}
.profile-tagline {
  font-size: var(--fs-xs);
  color: var(--text-faint);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 2px;
}
.profile-stats {
  display: flex;
  gap: var(--sp-3);
  margin-bottom: var(--sp-6);
}
.profile-stat {
  flex: 1;
  display: flex;
  flex-direction: column-reverse;
  gap: 2px;
  padding: var(--sp-3);
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  font-size: var(--fs-xs);
  color: var(--text-muted);
  text-align: center;
}
.profile-stat span {
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--text);
}
.version-tag {
  margin-top: var(--sp-6);
  font-size: var(--fs-xs);
  color: var(--text-faint);
  text-align: center;
}
.section-hint {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  margin-bottom: var(--sp-4);
}
.type-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-2);
}
.type-grid-lg {
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  max-width: 480px;
  margin: 0 auto;
}
.type-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: var(--sp-2);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--text-muted);
  font-size: var(--fs-xs);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s var(--ease);
}
.type-btn:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: var(--accent-soft);
}
.editor-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-5);
  text-align: center;
  padding: var(--sp-8) var(--sp-5);
  background: var(--surface-1);
  border: 1px dashed var(--border-strong);
  border-radius: var(--r-lg);
  color: var(--text-muted);
  font-size: var(--fs-sm);
}
.join-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  align-self: flex-start;
  padding: 4px var(--sp-2);
  margin-bottom: var(--sp-2);
  background: transparent;
  border: 1px dashed var(--border-strong);
  border-radius: var(--r-sm);
  color: var(--text-faint);
  font-size: var(--fs-xs);
  cursor: pointer;
}
.join-btn:hover {
  color: var(--cyan);
  border-color: var(--cyan);
}
.section-editor-header {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-3);
  flex-wrap: wrap;
}
.section-title-input {
  flex: 1;
  min-width: 100px;
  background: transparent;
  border: none;
  border-bottom: 1px solid transparent;
  color: var(--text);
  font-size: var(--fs-md);
  font-weight: 700;
  padding: 2px 0;
}
.section-title-input:focus {
  outline: none;
  border-bottom-color: var(--cyan);
}
.section-footer-actions {
  display: flex;
  gap: var(--sp-2);
  flex-wrap: wrap;
}
.cut-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  align-self: center;
  padding: 3px var(--sp-2);
  margin: 2px 0 var(--sp-2);
  background: transparent;
  border: none;
  color: var(--text-faint);
  font-size: 10px;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.15s var(--ease), color 0.15s var(--ease);
}
.cut-btn:hover {
  opacity: 1;
  color: var(--cyan);
}
.line-gap-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  flex-wrap: wrap;
}
.space-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  align-self: center;
  padding: 3px var(--sp-2);
  margin: 2px 0 var(--sp-2);
  background: transparent;
  border: none;
  color: var(--text-faint);
  font-size: 10px;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.15s var(--ease), color 0.15s var(--ease);
}
.space-btn:hover {
  opacity: 1;
  color: var(--purple);
}
.space-btn.active {
  opacity: 1;
  color: var(--purple);
  font-weight: 600;
}
.line-editor {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-2);
}
.line-editor-gap {
  margin-top: var(--sp-5);
}
.line-editor .words-grid {
  flex: 1;
  margin-bottom: 0;
}
.line-delete {
  flex-shrink: 0;
  margin-top: 2px;
}
.word-chip {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 6px var(--sp-2);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: border-color 0.15s var(--ease), background 0.15s var(--ease);
  font-family: var(--font-main);
}
.word-chip:hover {
  border-color: var(--cyan);
  background: var(--surface-3);
}
.chord-tag {
  font-size: 10px;
  font-weight: 700;
  color: #7EE8FF;
}
.word-chip-text {
  font-size: var(--fs-sm);
  color: var(--text);
}
.word-popup-label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: var(--fs-xs);
  color: var(--text-muted);
  margin-bottom: var(--sp-3);
}
.word-popup-label input,
.word-popup-label select {
  padding: var(--sp-2);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--text);
  font-size: var(--fs-base);
}
.word-popup-label input:focus,
.word-popup-label select:focus {
  outline: none;
  border-color: var(--cyan);
}
.chord-suggest-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-bottom: var(--sp-3);
}
.chord-suggest-btn {
  padding: 5px var(--sp-3);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--cyan);
  font-size: var(--fs-xs);
  font-weight: 600;
  cursor: pointer;
}
.chord-suggest-btn:hover {
  border-color: var(--cyan);
  background: var(--accent-soft);
}
.chord-suggest-btn.clear {
  color: var(--text-faint);
}
.word-popup .modal-actions {
  justify-content: space-between;
}
.empty-state {
  text-align: center;
  padding: var(--sp-8);
  color: var(--text-faint);
  font-size: var(--fs-sm);
}
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--surface-3);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-faint);
  background-clip: padding-box;
}
.auth-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  padding: var(--sp-6);
  text-align: center;
  gap: var(--sp-2);
}
.auth-logo {
  width: 56px;
  height: 56px;
  border-radius: var(--r-md);
  object-fit: contain;
  margin-bottom: var(--sp-3);
}
.auth-screen h1 {
  font-size: var(--fs-xl);
  font-weight: 700;
}
.auth-tagline {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  margin-bottom: var(--sp-6);
}
.auth-form {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  width: 100%;
  max-width: 320px;
}
.auth-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-xs);
  color: var(--text-muted);
  font-weight: 600;
  text-align: left;
}
.auth-form input {
  padding: var(--sp-3);
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--text);
  font-size: var(--fs-base);
  margin-bottom: var(--sp-2);
}
.auth-form input:focus {
  outline: none;
  border-color: var(--cyan);
}
.auth-error {
  color: var(--danger);
  font-size: var(--fs-xs);
  text-align: left;
}
.auth-pending {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  color: var(--cyan);
  font-size: 11px;
  text-align: left;
  line-height: 1.4;
  background: var(--accent-soft);
  border: 1px solid rgba(0, 209, 255, 0.25);
  border-radius: var(--r-sm);
  padding: var(--sp-2) var(--sp-3);
  margin-bottom: var(--sp-2);
}
.auth-pending svg {
  flex-shrink: 0;
  margin-top: 1px;
}
.auth-sent {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-3);
  color: var(--cyan);
  max-width: 320px;
}
.auth-sent p {
  color: var(--text-muted);
  font-size: var(--fs-sm);
}
.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  max-width: 320px;
  padding: var(--sp-3);
  background: var(--surface-1);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  color: var(--text);
  font-size: var(--fs-sm);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s var(--ease), border-color 0.15s var(--ease);
}
.btn-google:hover {
  background: var(--surface-2);
  border-color: var(--text-faint);
}
.auth-divider {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  width: 100%;
  max-width: 320px;
  margin: var(--sp-4) 0;
  color: var(--text-faint);
  font-size: var(--fs-xs);
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}
.auth-switch {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  margin-top: var(--sp-4);
}
.auth-switch button {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: var(--fs-xs);
  cursor: pointer;
  text-decoration: underline;
}
.auth-switch button:hover {
  color: var(--cyan);
}
.auth-forgot {
  align-self: flex-end;
  background: transparent;
  border: none;
  color: var(--text-faint);
  font-size: 11px;
  cursor: pointer;
  text-decoration: underline;
  margin-top: -4px;
  margin-bottom: var(--sp-2);
}
.auth-forgot:hover {
  color: var(--cyan);
}
.mode-toggle {
  display: flex;
  gap: 2px;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 3px;
  margin-bottom: var(--sp-4);
}
.mode-toggle button {
  flex: 1;
  padding: var(--sp-2);
  background: transparent;
  border: none;
  border-radius: 6px;
  color: var(--text-muted);
  font-size: var(--fs-sm);
  font-weight: 600;
  cursor: pointer;
}
.mode-toggle button.active {
  background: var(--surface-3);
  color: var(--text);
}
.share-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-3);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  margin-bottom: var(--sp-2);
}
.share-actions {
  display: flex;
  gap: 2px;
}
.present-stage {
  width: 100vw;
  height: 100vh;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
  position: relative;
}
.present-canvas {
  max-width: 100%;
  max-height: 100%;
}
.present-loading {
  position: absolute;
  color: rgba(255, 255, 255, 0.4);
  font-family: var(--font-main);
  font-size: 14px;
}
.present-error {
  color: var(--danger);
  font-family: var(--font-main);
  font-size: 14px;
  cursor: default;
}
.present-flash {
  position: absolute;
  bottom: 18px;
  right: 18px;
  background: rgba(0, 0, 0, 0.55);
  color: rgba(255, 255, 255, 0.75);
  font-family: var(--font-main);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  animation: present-flash-fade 0.9s ease forwards;
  pointer-events: none;
}
@keyframes present-flash-fade {
  0% {
    opacity: 1;
  }
  70% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
.donation-fab {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + var(--sp-3));
  right: var(--sp-3);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background:
    linear-gradient(
      135deg,
      var(--purple),
      var(--cyan));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 400;
  padding: 0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.donation-fab:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}
.donation-bubble {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + var(--sp-3) + 56px);
  right: var(--sp-3);
  background: var(--surface-1);
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  padding: var(--sp-2) var(--sp-3);
  font-size: var(--fs-sm);
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  z-index: 399;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
  animation: donation-bubble-flash 1.6s ease-in-out infinite;
}
.donation-bubble::after {
  content: "";
  position: absolute;
  top: -6px;
  right: 18px;
  width: 12px;
  height: 12px;
  background: var(--surface-1);
  border-left: 1px solid var(--border-strong);
  border-top: 1px solid var(--border-strong);
  transform: rotate(45deg);
}
.donation-bubble-close {
  position: absolute;
  top: -8px;
  left: -8px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
}
@keyframes donation-bubble-flash {
  0%, 100% {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35), 0 0 0 0 rgba(107, 76, 255, 0.5);
  }
  50% {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35), 0 0 0 6px rgba(107, 76, 255, 0);
  }
}
.tuner-fab {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + var(--sp-3));
  right: calc(var(--sp-3) + 46px + var(--sp-2));
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background:
    linear-gradient(
      135deg,
      var(--blue),
      var(--cyan));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 400;
  padding: 0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.tuner-fab:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}
.tuner-modal-content {
  text-align: center;
  max-width: 320px;
  position: relative;
}
.tuner-error {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: 1.5;
}
.tuner-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  padding-top: var(--sp-2);
}
.tuner-needle-wrap {
  position: relative;
  width: 140px;
  height: 80px;
  overflow: hidden;
  margin-bottom: var(--sp-2);
}
.tuner-needle-wrap::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 140px;
  height: 70px;
  margin-left: -70px;
  border: 2px solid var(--border);
  border-bottom: none;
  border-radius: 70px 70px 0 0;
}
.tuner-needle {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 2px;
  height: 70px;
  margin-left: -1px;
  background: var(--cyan);
  transform-origin: bottom center;
  border-radius: 2px;
  transition: transform 0.1s linear;
}
.tuner-needle-base {
  position: absolute;
  bottom: -5px;
  left: 50%;
  width: 10px;
  height: 10px;
  margin-left: -5px;
  border-radius: 50%;
  background: var(--cyan);
}
.tuner-note {
  font-size: 40px;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}
.tuner-note.in-tune {
  color: var(--success);
}
.tuner-cents {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  font-weight: 600;
}
.tuner-freq {
  font-size: var(--fs-xs);
  color: var(--text-faint);
}
.donation-modal-content {
  text-align: center;
  max-width: 340px;
  position: relative;
}
.donation-close {
  position: absolute;
  top: var(--sp-2);
  right: var(--sp-2);
}
.donation-qr {
  width: 100%;
  max-width: 220px;
  border-radius: var(--r-md);
  margin: var(--sp-3) auto;
  display: block;
  border: 1px solid var(--border);
}
.donation-message {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: var(--sp-4);
  text-align: left;
}
.toast {
  position: absolute;
  top: var(--sp-4);
  left: 50%;
  transform: translateX(-50%);
  background: var(--surface-3);
  border: 1px solid rgba(0, 209, 255, 0.35);
  color: var(--text);
  font-size: var(--fs-sm);
  font-weight: 600;
  padding: 10px var(--sp-4);
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  z-index: 500;
  animation: toast-in 0.2s var(--ease);
  pointer-events: none;
}
@keyframes toast-in {
  from {
    opacity: 0;
    transform: translate(-50%, -8px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}
@media (max-width: 768px) {
  .editor-container {
    grid-template-columns: 1fr;
    height: auto;
  }
  .editor-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 85%;
    max-width: 340px;
    z-index: 500;
    border-radius: 0;
    border-right: 1px solid var(--border-strong);
    box-shadow: 12px 0 32px rgba(0, 0, 0, 0.5);
    transform: translateX(-105%);
    transition: transform 0.25s var(--ease);
  }
  .editor-sidebar.open {
    transform: translateX(0);
  }
  .sidebar-close-btn {
    align-self: flex-end;
  }
  .song-info-toggle-btn {
    display: flex;
  }
  .performance-controls {
    gap: var(--sp-3);
  }
  .control-group {
    width: 100%;
    justify-content: space-between;
  }
  .view-header {
    flex-direction: column;
    align-items: flex-start;
  }
}
