:root {
  color-scheme: dark;
  --bg: #0f141a;
  --panel: #151b23;
  --text: #e6edf3;
  --muted: #9aa6b2;
  --primary: #2f81f7;
  --danger: #f85149;
  --border: #263040;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.app-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.app-header h1 {
  margin: 0 0 4px 0;
  font-size: 20px;
}
.subtitle { color: var(--muted); margin: 0; font-size: 12px; }

.container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding: 16px;
}

.record-panel, .list-panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
}
.input-row { margin-bottom: 12px; }
.input-row input,
.input-row textarea {
  width: 100%;
  padding: 10px 12px;
  padding-right: 96px; /* space for Dump button */
  background: #0c1116;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.input-row textarea { resize: none; line-height: 1.4; }
.input-row { position: relative; }
.dump-btn {
  position: absolute;
  right: 6px;
  top: 6px;
  bottom: 6px;
  padding: 0 14px;
  background: var(--primary);
  border-color: #1b6fe4;
}

.controls { display: flex; gap: 8px; }
.status { margin-top: 10px; display: flex; justify-content: space-between; color: var(--muted); }

.btn {
  appearance: none;
  border: 1px solid var(--border);
  background: #1b2330;
  color: var(--text);
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
}
.btn.primary { background: var(--primary); border-color: #1b6fe4; }
.btn.secondary { background: #1a2636; }
.btn.danger { background: var(--danger); border-color: #db3b34; }
.btn:disabled { opacity: .6; cursor: not-allowed; }
.btn.small { padding: 6px 8px; font-size: 12px; }

.list-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.muted { color: var(--muted); font-size: 12px; }

.recordings { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #0f1622;
}
.item .meta { display: grid; gap: 6px; }
.item .title {
  width: 100%;
  background: transparent;
  color: var(--text);
  border: 1px dashed var(--border);
  border-radius: 6px;
  padding: 6px 8px;
  font-size: 14px;
}
.item .sub { color: var(--muted); font-size: 12px; display: flex; gap: 10px; flex-wrap: wrap; }
.badge { padding: 2px 6px; border-radius: 999px; border: 1px solid var(--border); }
.actions { display: flex; gap: 6px; align-items: center; }
.actions { display: none; } /* hide per-item buttons on main view */
.item { cursor: pointer; }

.player { width: calc(100% - 32px); margin: 8px 16px 24px; }

@media (min-width: 820px) {
  .container {
    grid-template-columns: 360px 1fr;
  }
}


