#file-upload {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.file-drop {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 12px;
  align-items: center;
  min-height: 118px;
  padding: 18px;
  cursor: pointer;
  border: 2px dashed var(--line);
  background: var(--panel-strong);
  transition: border-color 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.file-drop:hover,
.file-drop.is-dragging {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.file-drop-icon {
  display: grid;
  place-items: center;
  grid-row: span 2;
  width: 42px;
  height: 42px;
  border: 2px solid currentColor;
  border-radius: 50%;
  color: var(--text);
  font-size: 1.6rem;
  line-height: 1;
}

.file-drop-text {
  font-weight: 700;
  font-size: 1.08rem;
}

.file-drop-name {
  min-width: 0;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  overflow-wrap: anywhere;
}

.status-line,
.validation-summary,
.stat-line {
  color: var(--muted);
  line-height: 1.45;
}

#export-section:not([hidden]) {
  margin-bottom: 18px;
}

.status-line {
  min-height: 1.45em;
  margin-top: 14px;
  font-weight: 700;
  color: var(--text);
}

.validation-summary {
  margin-top: 12px;
  padding: 12px;
  border-left: 5px solid var(--yellow-600);
  background: color-mix(in srgb, var(--yellow-600) 12%, transparent);
  font-size: 0.9rem;
}

.validation-summary strong {
  color: var(--text);
}

.badge-type-pill {
  flex: 0 0 auto;
  padding: 8px 12px;
  color: var(--black-02);
  background: var(--pastel-yellow);
  border: 2px solid var(--black-02);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-weight: 700;
}

.canvas-frame {
  width: min(100%, 280px);
  margin: 0 auto;
  padding: 8px;
  background: var(--panel-strong);
  border: 2px solid var(--line);
}

#badge-preview {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1310 / 2048;
  background: #eeeeee;
}

.primary-action {
  width: 100%;
  min-height: 54px;
  border: 2px solid var(--text);
  border-radius: 999px;
  color: var(--accent-contrast);
  background: var(--accent);
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.primary-action:enabled:hover {
  transform: translateY(-1px);
}

.primary-action:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.progress-container {
  width: 100%;
  height: 24px;
  margin-top: 16px;
  overflow: hidden;
  border: 2px solid var(--line);
  background: var(--panel-strong);
}

.progress-bar {
  width: 0%;
  height: 100%;
  min-width: 2.5rem;
  color: var(--accent-contrast);
  background: var(--green-500);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
  transition: width 0.2s ease;
}

.stat-line {
  margin: 14px 0 0;
  font-size: 0.95rem;
}

.stat-line strong {
  color: var(--text);
}

.badge-font-google-sans { font-family: var(--font-sans); font-weight: 400; }
.badge-font-google-sans-medium { font-family: var(--font-sans); font-weight: 500; }
.badge-font-google-sans-mono { font-family: var(--font-mono); font-weight: 400; }
.badge-font-google-sans-mono-medium { font-family: var(--font-mono); font-weight: 500; }

.love-mark {
  width: 1.5rem;
  height: 1.32rem;
  margin: 0 0.2rem;
  vertical-align: -0.24rem;
}

.love-mark-outline {
  stroke: var(--line);
  fill: none;
  stroke-width: 2.2;
  stroke-linejoin: round;
}

.love-mark-blue,
.love-mark-red,
.love-mark-yellow,
.love-mark-green {
  stroke: none;
}

.love-mark-blue { fill: var(--blue-500); }
.love-mark-red { fill: var(--red-500); }
.love-mark-yellow { fill: var(--yellow-600); }
.love-mark-green { fill: var(--green-500); }

.lang-selector-wrapper {
  display: inline-flex;
  align-items: center;
}

.lang-select {
  padding: 6px 12px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: var(--panel-strong);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  outline: none;
  transition: border-color 0.18s ease;
}

.lang-select:hover,
.lang-select:focus {
  border-color: var(--accent);
}
