/* ═══════════════════════════════════════════════════
   QR Studio — Result & History
   QR frame · Download row · History list
   ═══════════════════════════════════════════════════ */

/* ═══ QR RESULT ═══ */
#qr-result {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}

#qr-frame {
  padding: 18px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  display: inline-block;
  position: relative;
}

#qr-preview-text {
  font-size: 12px;
  color: var(--text-hint);
  text-align: center;
  max-width: 340px;
  word-break: break-all;
}

/* ═══ DOWNLOAD ROW ═══ */
.dl-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.copy-btn {
  font-size: 12px;
  padding: 5px 12px;
  cursor: pointer;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--bg);
  color: var(--text-muted);
  transition: all 0.15s;
}
.copy-btn:hover {
  border-color: var(--border-hover);
  color: var(--text);
}

/* ═══ HISTORY ═══ */
.history-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  margin-bottom: 8px;
  transition: border-color 0.15s, background 0.15s;
}
.history-item:hover {
  border-color: var(--border-hover);
  background: var(--bg);
}
.history-thumb {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 4px;
  overflow: hidden;
}
.history-label {
  font-size: 13px;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.history-meta {
  font-size: 11px;
  color: var(--text-hint);
  flex-shrink: 0;
}
.history-empty {
  font-size: 13px;
  color: var(--text-hint);
  text-align: center;
  padding: 2rem 0;
}
