.stage {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  position: relative;
  min-height: 520px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
}

.notes-container {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.notes-container h2 {
  font-size: 18px;
  margin: 0 0 16px 0;
  color: #cfd6e6;
}

.notes-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  padding: 8px;
  background: #0f1218;
  border: 1px solid var(--border);
  border-radius: 10px;
  min-height: 400px;
}

.empty-state {
  color: var(--muted);
  text-align: center;
  padding: 60px 20px;
  font-size: 14px;
}

.note-card {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  position: relative;
  transition: all 0.2s;
}

.note-card:hover {
  border-color: #3a82f6;
  transform: translateY(-2px);
}

.note-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.note-id {
  font-size: 11px;
  color: var(--muted);
  font-family: monospace;
}

.note-actions {
  display: flex;
  gap: 8px;
}

.note-actions button {
  padding: 4px 8px;
  font-size: 12px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  color: var(--text);
  transition: all 0.2s;
  height: 35px;
}

.note-actions button:hover {
  border-color: #3a82f6;
  background: rgba(58, 130, 246, 0.1);
}

.note-actions .delete-btn:hover {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.note-content {
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}

.note-time {
  font-size: 11px;
  color: var(--muted);
  margin-top: 8px;
  font-family: monospace;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.panel-section {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
}

.panel-section h2 {
  font-size: 13px;
  margin: 0 0 8px 0;
  color: #cfd6e6;
  letter-spacing: 0.2px;
}

textarea {
  width: 100%;
  background: #0f1218;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px;
  font-size: 13px;
  font-family: inherit;
  resize: vertical;
  margin-bottom: 8px;
}

textarea:focus {
  outline: none;
  border-color: #3a82f6;
}

button {
  width: 100%;
  background: #0f1218;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
  margin-bottom: 8px;
  font-size: 13px;
  transition: all 0.2s;
}

button:last-child {
  margin-bottom: 0;
}

button:hover {
  border-color: #3a82f6;
  background: rgba(58, 130, 246, 0.1);
}

button:active {
  transform: scale(0.98);
}

.db-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.info-item {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.info-item:last-child {
  border-bottom: none;
}

.info-item .label {
  color: var(--muted);
}

.info-item .value {
  color: var(--text);
  font-family: monospace;
}

.status {
  margin-top: 12px;
  padding: 8px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 6px;
  font-size: 12px;
  font-family: monospace;
  color: var(--muted);
  text-align: center;
}

.log {
  list-style: none;
  padding: 0;
  margin: 8px 0 0 0;
  max-height: 180px;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #0f1218;
}

.log li {
  font-size: 11px;
  padding: 6px 8px;
  border-bottom: 1px solid #222;
  color: #ccc;
  font-family: monospace;
}

.log li:last-child {
  border-bottom: none;
}

.demo-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 16px;
  align-items: start;
}

@media (max-width: 1100px) {
  .demo-grid {
    grid-template-columns: 1fr 340px;
  }
}

@media (max-width: 900px) {
  .demo-grid {
    grid-template-columns: 1fr;
  }
}
