:root {
  --bg: #f6f5f3;
  --card: #ffffff;
  --ink: #23201c;
  --muted: #7a736a;
  --line: #e6e2dc;
  --brand: #b4531f;
  --brand-ink: #fff;
  --ok: #2f7d4f;
  --err: #b3261e;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
}
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 18px; background: var(--card); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 10;
}
.brand { font-weight: 700; text-decoration: none; color: var(--ink); }
.who { color: var(--muted); margin-right: 12px; }
.wrap { max-width: 820px; margin: 22px auto; padding: 0 16px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 20px; margin-bottom: 18px;
}
.card.narrow { max-width: 380px; margin: 60px auto; }
h1 { margin: 0 0 8px; font-size: 22px; }
h2 { margin: 0 0 12px; font-size: 18px; }
h3 { margin: 0; font-size: 17px; }
.muted { color: var(--muted); }
.error { color: var(--err); font-weight: 600; }
.ok { color: var(--ok); font-weight: 600; }
code { background: #efece7; padding: 1px 5px; border-radius: 5px; font-size: 90%; }

label { display: block; margin: 10px 0; font-size: 13px; color: var(--muted); font-weight: 600; }
input, textarea, select {
  width: 100%; margin-top: 4px; padding: 9px 10px; font-size: 15px; color: var(--ink);
  border: 1px solid var(--line); border-radius: 8px; background: #fff; font-family: inherit;
}
textarea { resize: vertical; }
.row { display: flex; gap: 10px; }
.row > label { flex: 1; }

button {
  cursor: pointer; border: 1px solid var(--line); background: #fff; color: var(--ink);
  padding: 9px 14px; border-radius: 8px; font-size: 14px; font-weight: 600;
}
button.primary { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
button.danger { color: var(--err); border-color: #e7c3c0; }
button.link { border: none; background: none; color: var(--muted); padding: 0; }
.btn {
  display: inline-block; text-decoration: none; border: 1px solid var(--line);
  padding: 8px 12px; border-radius: 8px; color: var(--ink); font-weight: 600; font-size: 14px;
}
.inline { display: inline; }
.actions { display: flex; gap: 8px; margin-top: 12px; }
.uploader { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.pushbar { display: flex; gap: 10px; align-items: center; margin-top: 14px; }

table.books { width: 100%; border-collapse: collapse; }
table.books th, table.books td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.pill { display: inline-block; background: #efece7; border-radius: 20px; padding: 2px 10px; font-size: 12px; }
.status { display: inline-block; border-radius: 20px; padding: 2px 10px; font-size: 12px; font-weight: 700; text-transform: capitalize; }
.status-uploaded, .status-processing { background: #fff3d6; color: #8a6d1a; }
.status-ready, .status-pending { background: #e3eefc; color: #24568f; }
.status-approved { background: #dff3e5; color: var(--ok); }
.status-pushed, .status-done { background: #d7f0dd; color: var(--ok); }
.status-rejected, .status-error { background: #fbe0de; color: var(--err); }

.bar { height: 8px; background: #eee7de; border-radius: 6px; overflow: hidden; margin: 8px 0; }
.bar-fill { height: 100%; background: var(--brand); transition: width .3s; }

.recipe-head { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.recipe-body { display: flex; gap: 16px; align-items: flex-start; }
.recipe-body .grow { flex: 1; min-width: 0; }
.thumb { width: 150px; height: 150px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }

@media (max-width: 620px) {
  .recipe-body { flex-direction: column; }
  .thumb { width: 100%; height: 220px; }
  .row { flex-direction: column; gap: 0; }
}
