:root {
  color-scheme: light;
  --bg: #f4efe8;
  --panel: rgba(255, 255, 255, 0.92);
  --panel-strong: #ffffff;
  --text: #1e1a16;
  --muted: #6c6258;
  --line: rgba(30, 26, 22, 0.12);
  --soft-fill: rgba(117, 96, 68, 0.06);
  --soft-fill-strong: rgba(117, 96, 68, 0.12);
  --accent: #231e19;
  --accent-contrast: #f8f5f0;
  --error: #b53d2e;
  --success: #2b7d43;
  --warning: #9a6a00;
  --shadow: 0 18px 42px rgba(33, 27, 21, 0.08);
  font-family: "Segoe UI", "Helvetica Neue", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top right, rgba(117, 96, 68, 0.14), transparent 24%),
    radial-gradient(circle at bottom left, rgba(168, 147, 116, 0.18), transparent 24%),
    var(--bg);
  color: var(--text);
}

#mobile-app {
  min-height: 100vh;
  padding: 12px 14px 28px;
}

.mobile-header,
.header-actions,
.button-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.mobile-header {
  align-items: flex-start;
  flex-direction: column;
  margin-bottom: 10px;
  justify-content: flex-start;
}

.header-actions,
.button-row {
  flex-wrap: wrap;
}

.button-row {
  margin-top: 10px;
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  font-size: 0.72rem;
}

h1,
h2 {
  margin: 4px 0 0;
  line-height: 1.1;
}

h1 {
  font-size: clamp(1.55rem, 6vw, 2.15rem);
}

h2 {
  font-size: 1.15rem;
}

.banner,
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.banner {
  margin-bottom: 14px;
  padding: 14px 16px;
  display: grid;
  gap: 6px;
}

.banner a,
.ghost-link {
  color: var(--text);
  font-weight: 400;
}

.header-actions {
  width: 100%;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  margin-top: 0;
}

.mobile-shell,
.stack-layout,
.stack-form,
.meta-list,
.section-heading,
.summary-grid,
.chip-list {
  display: grid;
  gap: 14px;
}

.card {
  padding: 18px;
}

.section-heading {
  gap: 4px;
}

#mobile-batch-selector {
  margin-bottom: 8px;
}

label {
  display: grid;
  gap: 8px;
}

input,
button {
  font: inherit;
}

input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel-strong);
  color: var(--text);
  padding: 13px 14px;
}

select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel-strong);
  color: var(--text);
  padding: 13px 14px;
  font: inherit;
}

button,
.ghost-link {
  border-radius: 999px;
  min-height: 46px;
}

button {
  border: 1px solid transparent;
  background: var(--accent);
  color: var(--accent-contrast);
  cursor: pointer;
  padding: 11px 16px;
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.ghost-button,
.ghost-link {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
}

.ghost-link {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  min-width: 0;
}

.segmented-control {
  display: inline-flex;
  width: 100%;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--soft-fill), var(--panel-strong) 40%);
}

.segment-button {
  flex: 1 1 0;
  min-height: 42px;
  border-color: transparent;
  background: transparent;
  color: var(--muted);
  box-shadow: none;
}

.segment-button.is-active {
  background: var(--accent);
  color: var(--accent-contrast);
}

.meta-list {
  color: var(--muted);
  font-size: 0.96rem;
}

.meta-list strong {
  color: var(--text);
}

#mobile-new-batch {
  width: 100%;
}

.summary-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 8px;
}

.summary-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel-strong);
  padding: 14px;
}

.summary-card strong {
  display: block;
  margin-top: 6px;
  font-size: 1.25rem;
}

.hint,
.feedback {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.feedback.error {
  color: var(--error);
}

.feedback.success {
  color: var(--success);
}


.chip-list {
  margin-top: 18px;
}

.chip {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel-strong);
  padding: 12px 14px;
  line-height: 1.45;
}

.chip.success {
  border-color: rgba(43, 125, 67, 0.2);
  background: rgba(43, 125, 67, 0.08);
}

.chip.error {
  border-color: rgba(181, 61, 46, 0.2);
  background: rgba(181, 61, 46, 0.08);
}

.chip.info {
  border-color: rgba(35, 30, 25, 0.14);
  background: rgba(35, 30, 25, 0.04);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--soft-fill);
  color: var(--text);
  font-weight: 600;
}

.status-pill.processing,
.status-pill.paused {
  color: var(--warning);
}

.status-pill.descriptions_ready {
  color: var(--success);
}

.status-pill.review_required {
  color: var(--error);
}

.status-pill.exported {
  color: #286fb3;
}

.hidden {
  display: none !important;
}

@media (min-width: 961px) {
  #mobile-app {
    max-width: 720px;
    margin: 0 auto;
    padding: 28px 20px 36px;
  }
}
