:root {
  --bg: #f4f7fb;
  --surface: rgba(255, 255, 255, 0.92);
  --surface-strong: #ffffff;
  --text: #10213a;
  --muted: #68758d;
  --line: rgba(23, 43, 77, 0.12);
  --primary: #1858ff;
  --success: #1d9b63;
  --warning: #d68a1d;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "PingFang SC", "Helvetica Neue", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #edf3ff 0%, #f7fafc 100%);
}

.app-shell {
  max-width: 420px;
  margin: 0 auto;
  padding: 8px 8px 14px;
}

.card {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(16, 33, 58, 0.06);
  padding: 14px;
  margin-bottom: 10px;
}

.hero-card {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(245, 249, 255, 0.92)),
    linear-gradient(140deg, rgba(24, 88, 255, 0.08), rgba(0, 196, 140, 0.05));
}

.title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.eyebrow {
  margin: 0 0 6px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

h1 {
  margin: 0;
  font-size: 18px;
  line-height: 1.1;
}

.intro {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.45;
  font-size: 13px;
}

.status-pill {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}

.status-idle {
  background: rgba(104, 117, 141, 0.12);
  color: var(--muted);
}

.status-running {
  background: rgba(24, 88, 255, 0.1);
  color: var(--primary);
}

.status-success {
  background: rgba(29, 155, 99, 0.12);
  color: var(--success);
}

.status-error {
  background: rgba(214, 138, 29, 0.14);
  color: var(--warning);
}

.section-title {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 10px;
}

.orange-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.orange-button {
  border: 1px solid var(--line);
  border-radius: 14px;
  min-height: 42px;
  background: var(--surface-strong);
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 120ms ease, border-color 120ms ease, background 120ms ease;
}

.orange-button.selected {
  border-color: rgba(24, 88, 255, 0.4);
  background: linear-gradient(135deg, rgba(24, 88, 255, 0.1), rgba(72, 187, 255, 0.14));
  color: var(--primary);
  transform: translateY(-1px);
}

.paste-zone {
  display: block;
  border: 2px dashed rgba(24, 88, 255, 0.18);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(24, 88, 255, 0.03), rgba(255, 255, 255, 0.85));
  padding: 14px 12px;
  text-align: center;
  cursor: pointer;
}

.paste-title {
  font-size: 16px;
  font-weight: 700;
}

.paste-subtitle {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.45;
  font-size: 13px;
}

.image-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.image-item {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.7);
}

.image-item img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 10px;
}

.image-meta {
  min-width: 0;
}

.image-name {
  font-weight: 600;
  word-break: break-all;
}

.image-size {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.delete-button {
  border: 0;
  border-radius: 10px;
  min-width: 34px;
  min-height: 34px;
  background: rgba(214, 138, 29, 0.14);
  color: var(--warning);
  font-size: 16px;
  cursor: pointer;
}

.text-area,
.select-field {
  width: 100%;
  border: 1px solid rgba(16, 33, 58, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  padding: 12px 14px;
  font: inherit;
  color: inherit;
}

.text-area {
  resize: none;
  min-height: 42px;
  max-height: 42px;
  max-width: 320px;
  overflow-y: hidden;
  display: block;
}

.dual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.field-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 14px;
}

.action-card {
  display: flex;
  align-items: center;
  gap: 10px;
}

.submit-button {
  border: 0;
  border-radius: 14px;
  min-height: 46px;
  padding: 0 20px;
  background: linear-gradient(135deg, #1858ff, #00a3ff);
  color: white;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(24, 88, 255, 0.18);
}

.submit-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

.message {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.recent-list {
  display: grid;
  gap: 8px;
}

.recent-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.78);
}

.recent-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.recent-title {
  font-weight: 700;
}

.recent-meta {
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 680px) {
  .action-card {
    flex-direction: column;
    align-items: stretch;
  }
}
