/* web version: song list + practice (on top of the desktop app.css) */
#view { flex: 1 1 auto; min-height: 0; overflow: auto; }
.topbar .brand { color: inherit; text-decoration: none; }
.topbar .proj-title { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }

.web-list { max-width: 1100px; margin: 0 auto; padding: 20px 16px 40px; }
.web-list-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.web-list-head h1 { font-size: 20px; margin: 0; }
.web-search { flex: 0 1 320px; min-width: 0; width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; background: #fff; }
.web-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.web-card { display: flex; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px; color: inherit; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.web-card:hover, .web-card:focus-visible { border-color: var(--accent); box-shadow: 0 2px 10px rgba(0, 0, 0, .06); outline: none; }
.web-thumb { flex: 0 0 72px; height: 96px; background: #f2f1ed; border-radius: 6px; overflow: hidden; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 28px; }
.web-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.web-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.web-title { font-weight: 700; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.web-tools-btn { display: none; }

@media (max-width: 640px) {
  .web-grid { grid-template-columns: 1fr; }
  .topbar { gap: 8px; padding: 6px 10px; flex-wrap: nowrap; }
  .topbar .brand { font-size: 0; gap: 0; }
  .topbar .brand .logo { font-size: 20px; }
  .practice-bar { padding: 6px 10px; overflow-x: hidden; }
  .practice-bar .row, .tools-row, .tool-group { flex-wrap: wrap; max-width: 100%; min-width: 0; }
  .practice-bar input[type="range"] { width: 90px; min-width: 0; }
  .practice-bar .grow { display: none; }
  .btn.play { min-width: 96px; }
  .practice-score { margin: 0 6px 6px; }
  .web-tools-btn { display: inline-flex; }
  .practice-view.tools-collapsed .practice-bar > .row ~ .row,
  .practice-view.tools-collapsed .tools-row,
  .practice-view.tools-collapsed .practice-info { display: none; }
}
