﻿:root {
  color-scheme: light;
  --bg: #f6f3ee;
  --ink: #111827;
  --muted: #6b7280;
  --line: #ded8cf;
  --card: #fffdf8;
  --accent: #0f766e;
  --accent-dark: #115e59;
  --danger: #b91c1c;
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}

button,
input,
textarea {
  font: inherit;
}

button {
  border: 0;
  border-radius: var(--radius);
  background: var(--ink);
  color: white;
  min-height: 48px;
  padding: 0 16px;
  font-weight: 700;
}

button:active {
  transform: translateY(1px);
}

.app-shell {
  width: min(720px, 100%);
  margin: 0 auto;
  padding: 16px;
  padding-bottom: 48px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: 28px;
  line-height: 1.05;
}

h2 {
  margin-bottom: 8px;
  font-size: 18px;
}

.icon-button {
  width: 48px;
  padding: 0;
  font-size: 26px;
}

.status-panel,
.card,
.voice-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  padding: 16px;
  margin-bottom: 14px;
}

.status-panel {
  background: #111827;
  color: #fffdf8;
}

.status-label {
  margin-bottom: 6px;
  color: #a7f3d0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

#statusHint {
  margin-bottom: 0;
  color: #e5e7eb;
  line-height: 1.45;
}

.voice-panel {
  display: grid;
  gap: 12px;
}

.primary-mic {
  display: grid;
  place-items: center;
  min-height: 124px;
  background: var(--accent);
  font-size: 20px;
}

.primary-mic.listening {
  background: var(--danger);
}

#micIcon {
  display: block;
  font-size: 34px;
  line-height: 1;
}

.secondary-button {
  background: #374151;
}

.toggle-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-weight: 700;
}

.toggle-row input {
  width: 22px;
  height: 22px;
}

.transcript {
  min-height: 42px;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.4;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.section-header h2 {
  margin: 0;
}

.sku-pill {
  border-radius: 999px;
  background: #e6fffb;
  color: var(--accent-dark);
  padding: 6px 10px;
  font-weight: 800;
  white-space: nowrap;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

label {
  display: grid;
  gap: 6px;
  color: #374151;
  font-size: 13px;
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  color: var(--ink);
  min-height: 44px;
  padding: 10px;
}

textarea {
  resize: vertical;
}

.full-field {
  margin-top: 10px;
}

.generated-panel {
  border-top: 1px solid var(--line);
  margin-top: 14px;
  padding-top: 14px;
}

.generated-panel .section-header {
  align-items: center;
}

#generateListingButton {
  min-height: 40px;
  padding: 0 12px;
  background: #374151;
}

#title,
#description {
  line-height: 1.45;
}

.time-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.time-grid div {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
}

.time-grid span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.time-grid strong {
  display: block;
  margin-top: 4px;
  font-size: 15px;
}

.action-row,
.export-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.export-row {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

#finishPhotosButton {
  background: #374151;
}

#saveItemButton {
  background: var(--accent);
}

#clearButton {
  background: var(--danger);
}

.items-list {
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.items-list li {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  padding: 10px;
}

.items-list strong {
  display: block;
}

.items-list span {
  color: var(--muted);
  font-size: 13px;
}

.help {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.help ul {
  padding-left: 18px;
}

@media (max-width: 480px) {
  .app-shell {
    padding: 12px;
    padding-bottom: 36px;
  }

  h1 {
    font-size: 24px;
  }

  .field-grid,
  .time-grid,
  .action-row,
  .export-row {
    grid-template-columns: 1fr;
  }
}
