:root {
  color-scheme: light;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f3f4f6;
  color: #111827;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
}
.container {
  display: grid;
  gap: 24px;
  max-width: 1200px;
  margin: 24px auto;
  padding: 0 16px 32px;
  grid-template-columns: 1.1fr 0.9fr;
}
.panel,
.preview-panel {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
}
h1,
h2 {
  margin: 0 0 16px;
  line-height: 1.1;
}
p {
  margin: 0 0 18px;
  color: #4b5563;
}
.field-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}
label {
  font-weight: 600;
  color: #111827;
}
input[type="text"],
input[type="file"],
input[type="color"],
input[type="range"] {
  width: 100%;
  border-radius: 12px;
}
input[type="text"] {
  border: 1px solid #d1d5db;
  padding: 12px 14px;
  font-size: 1rem;
}
input[type="file"] {
  padding: 6px 0;
}
input[type="color"] {
  height: 44px;
  border: none;
  padding: 0;
  background: none;
  cursor: pointer;
}
input[type="range"] {
  width: 100%;
}
.logo-section {
  align-items: center;
}
.logo-section img {
  display: block;
  width: 104px;
  height: 104px;
  object-fit: contain;
  border: 1px solid #d1d5db;
  border-radius: 16px;
  background: #fff;
}
.range-group {
  gap: 8px;
}
.colors {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
button {
  border: none;
  border-radius: 12px;
  padding: 12px 18px;
  font-size: 1rem;
  cursor: pointer;
  background: #1f2937;
  color: white;
  transition: transform 0.15s ease, background 0.15s ease;
}
button:hover {
  transform: translateY(-1px);
  background: #111827;
}
.canvas-wrapper {
  display: grid;
  place-items: center;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 18px;
  background: linear-gradient(180deg,#f8fafc,#fff);
}
#qr-canvas {
  max-width: 100%;
  height: auto;
  border-radius: 18px;
  background: #ffffff;
}
.note {
  margin-top: 16px;
  font-size: 0.95rem;
}
@media (max-width: 960px) {
  .container {
    grid-template-columns: 1fr;
  }
}
