:root {
  --bg: #10151c;
  --card: #1b2430;
  --line: #2c3a4a;
  --text: #eef3f8;
  --muted: #93a4b5;
  --ok: #3ecf8e;
  --warn: #e6b84d;
  --accent: #3d9cf0;
  font-family: "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}
.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--line);
}
h1 { margin: 0; font-size: 1.25rem; }
h2 { margin: 0 0 0.75rem; font-size: 1rem; }
.status-pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  font-size: 0.85rem;
  color: var(--muted);
}
.status-pill.ok { color: var(--ok); border-color: #2a5a44; }
.status-pill.warn { color: var(--warn); border-color: #5a4a22; }

.simple {
  max-width: 720px;
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem;
}
.device-line { margin-bottom: 0.9rem; color: var(--muted); font-size: 0.95rem; }
.file-btn {
  display: block;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: 10px;
  padding: 0.9rem;
  cursor: pointer;
  margin-bottom: 0.75rem;
}
.file-btn:hover { border-color: var(--accent); }
.preview {
  min-height: 180px;
  border-radius: 10px;
  background: #0d1218;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  overflow: hidden;
}
.preview.empty { color: var(--muted); font-size: 0.9rem; }
.preview img { max-width: 100%; max-height: 320px; display: block; }
.big {
  width: 100%;
  border: 1px solid var(--line);
  background: #121820;
  color: var(--text);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  font: inherit;
  font-size: 1.05rem;
  cursor: pointer;
  margin-top: 0.5rem;
}
.big:disabled { opacity: 0.45; cursor: not-allowed; }
.big.primary { background: #1c4d7a; border-color: #2f6fa8; }
.big:hover:not(:disabled) { filter: brightness(1.08); }
.msg { min-height: 1.2em; color: var(--muted); font-size: 0.9rem; }
.hint { color: var(--muted); font-size: 0.8rem; line-height: 1.4; }
.row-opts {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}
.row-opts label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.8rem;
  color: var(--muted);
  flex: 1;
  min-width: 140px;
}
.row-opts select, .row-opts input {
  background: #121820;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.45rem 0.55rem;
  font: inherit;
}
.playlist { display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: 0.6rem; }
.pl-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  background: #121820;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.4rem 0.55rem;
  font-size: 0.82rem;
}
.pl-del {
  background: #3a2222;
  border: 1px solid #5a3333;
  color: var(--text);
  border-radius: 6px;
  padding: 0.2rem 0.45rem;
  cursor: pointer;
  font: inherit;
  font-size: 0.75rem;
}
.qr-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}
.qr-card {
  background: #121820;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.75rem;
  max-width: 360px;
}
.qr-card h3 {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
}
.qr-card canvas {
  display: block;
  background: #fff;
  border-radius: 6px;
  margin-bottom: 0.5rem;
}
.qr-card pre {
  max-height: 80px;
  overflow: auto;
  font-size: 0.7rem;
  white-space: pre-wrap;
  word-break: break-all;
}
.facts {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}
.facts strong { color: var(--text); }
code {
  font-size: 0.85em;
  background: #121820;
  padding: 0.05em 0.3em;
  border-radius: 4px;
}
.log {
  margin: 0;
  background: #0b1016;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.75rem;
  font-size: 0.78rem;
  max-height: 280px;
  overflow: auto;
  white-space: pre-wrap;
  color: #b8c6d4;
}
