:root {
  --ink: #122033;
  --paper: #f3efe6;
  --panel: #fffdf8;
  --line: #d7d0c3;
  --muted: #6b7280;
  --accent: #e85d04;
  --accent-ink: #fff7ed;
  --ok: #2a9d8f;
  --danger: #c1121f;
  --shadow: 0 18px 40px rgba(18, 32, 51, 0.08);
  --radius: 14px;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "Source Sans 3", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(232, 93, 4, 0.12), transparent 60%),
    radial-gradient(900px 400px at 100% 0%, rgba(42, 157, 143, 0.1), transparent 55%),
    linear-gradient(180deg, #e8e2d6 0%, var(--paper) 40%, #ebe6db 100%);
  color: var(--ink);
  font-family: var(--sans);
}

body {
  padding: 28px 16px 48px;
}

.page {
  width: min(720px, 100%);
  margin: 0 auto;
}

.hero {
  margin-bottom: 22px;
}

.eyebrow {
  margin: 0 0 8px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  color: var(--accent);
}

h1 {
  margin: 0;
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.lede {
  margin: 10px 0 0;
  max-width: 36em;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.composer,
.board {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}

.composer {
  margin-bottom: 16px;
}

.label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

textarea {
  width: 100%;
  resize: vertical;
  min-height: 120px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #faf7f0;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.5;
}

textarea:focus {
  outline: 2px solid rgba(232, 93, 4, 0.35);
  border-color: var(--accent);
}

.row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 9px 16px;
  font: 600 14px/1 var(--sans);
  cursor: pointer;
  transition: transform 0.12s ease, background 0.12s ease, opacity 0.12s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn.primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn.primary:hover:not(:disabled) {
  background: #d14f00;
}

.btn.ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.btn.ghost:hover {
  background: #f3eee4;
}

.btn.danger {
  background: transparent;
  border-color: rgba(193, 18, 31, 0.25);
  color: var(--danger);
}

.btn.small {
  padding: 6px 12px;
  font-size: 13px;
}

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

.drop {
  margin-top: 18px;
  padding: 22px 16px;
  border: 1.5px dashed #c9bfae;
  border-radius: 12px;
  background: #faf7f0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.drop strong {
  font-size: 15px;
}

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

.drop:hover,
.drop:focus-visible,
.drop.dragover {
  border-color: var(--accent);
  background: #fff4ea;
  outline: none;
}

.progress {
  margin-top: 10px;
  height: 6px;
  border-radius: 999px;
  background: #efe8db;
  overflow: hidden;
}

.progress__bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), #f4a261);
  transition: width 0.2s ease;
}

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

.board__head h2 {
  margin: 0;
  font-size: 16px;
}

.list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  background: #faf7f0;
}

.card--enter {
  animation: rise 0.28s ease;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(42, 157, 143, 0.12);
  color: #1f6f66;
  font-weight: 500;
}

.badge.file {
  background: rgba(232, 93, 4, 0.12);
  color: #b64500;
}

.card__body {
  white-space: pre-wrap;
  word-break: break-word;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.5;
  max-height: 220px;
  overflow: auto;
}

.card__file {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.card__file-name {
  font-weight: 600;
  font-size: 14px;
}

.card__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.empty {
  margin: 18px 0 6px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

.foot {
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted);
  font-family: var(--mono);
}

.status.ok {
  color: var(--ok);
}

.status.err {
  color: var(--danger);
}

@media (max-width: 520px) {
  body {
    padding: 18px 12px 36px;
  }

  .composer,
  .board {
    padding: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .card {
    animation: none;
  }

  .btn {
    transition: none;
  }
}
