:root {
  --pine: #1c3a2e;
  --pine-2: #2d5a45;
  --cream: #f4efe4;
  --paper: #fbf8f2;
  --ink: #1e2420;
  --muted: #5e675f;
  --line: #e4dccb;
  --ok: #1f7a4d;
  --ok-bg: #e5f4eb;
  --warn: #9a5b10;
  --warn-bg: #fbf0dc;
  --bad: #9c2f2f;
  --bad-bg: #f8e6e4;
  --info: #1e4d73;
  --info-bg: #e7f0f7;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: radial-gradient(1200px 500px at 10% -10%, #dfe8df 0%, transparent 50%), var(--cream);
  color: var(--ink);
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
}
.wrap { max-width: 980px; margin: 0 auto; padding: 28px 20px 64px; }
header.top { display: flex; justify-content: space-between; gap: 16px; align-items: end; margin-bottom: 22px; }
.brand { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--pine-2); font-weight: 700; }
h1 { font-family: Georgia, serif; font-size: 42px; line-height: 1; margin: 6px 0 8px; color: var(--pine); }
.sub { color: var(--muted); margin: 0; max-width: 560px; }
a.home {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--pine); color: #f4efe4; text-decoration: none;
  border-radius: 999px; padding: 8px 12px; font-weight: 700; margin-bottom: 8px;
}
a.home img { width: 20px; height: 20px; border-radius: 4px; }
.checked { text-align: right; color: var(--muted); font-size: 14px; }
.checked strong { color: var(--ink); display: block; font-size: 15px; }
.grid { display: grid; grid-template-columns: 1.4fr .9fr; gap: 16px; }
.chips { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.chip, .feed, .panel { border-radius: 16px; }
.chip, .feed { background: var(--paper); border: 1px solid var(--line); }
.chip { padding: 16px 16px 14px; }
.chip .k { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.pill { display: inline-block; margin-top: 10px; padding: 4px 10px; border-radius: 999px; font-weight: 700; font-size: 13px; }
.ok { background: var(--ok-bg); color: var(--ok); }
.warn { background: var(--warn-bg); color: var(--warn); }
.bad { background: var(--bad-bg); color: var(--bad); }
.info { background: var(--info-bg); color: var(--info); }
.chip h2 { font-family: Georgia, serif; font-size: 26px; margin: 8px 0 4px; font-weight: 560; }
.chip p, .fine { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.4; }
.src { margin-top: 8px; font-size: 12.5px; color: var(--pine-2); }
.panel { background: var(--pine); color: #f4efe4; padding: 18px; }
.panel h3, .feed h3 { font-family: Georgia, serif; margin: 0 0 6px; font-weight: 560; font-size: 24px; }
.feed h3 { padding: 14px 16px 8px; }
.panel p { margin: 0 0 14px; color: #d5e0d6; font-size: 14.5px; }
label { display: block; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; margin: 10px 0 4px; color: #c9d7cc; font-weight: 700; }
select, input, textarea {
  width: 100%; border: 0; border-radius: 10px; padding: 10px 12px;
  font: inherit; background: #fbf8f2; color: var(--ink);
}
textarea { min-height: 72px; resize: vertical; }
button {
  margin-top: 12px; border: 0; border-radius: 10px; padding: 12px 14px;
  background: #e7c98a; color: #2a2112; font-weight: 700; font-size: 15px; cursor: pointer;
}
button.ghost { background: transparent; color: var(--pine); border: 1px solid var(--line); }
.feed { margin-top: 16px; overflow: hidden; }
button, .home, select, input, textarea { min-height: 44px; }
input, select, textarea { font-size: 16px; }
img { max-width: 100%; height: auto; }
.row { display: grid; grid-template-columns: 92px 1fr auto; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--line); align-items: center; }
.tag { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.row p { margin: 0; }
.when { color: var(--muted); font-size: 13px; }
.note { margin-top: 14px; color: var(--muted); font-size: 13px; }
.queue-item { border-top: 1px solid var(--line); padding: 8px 16px 16px; }
.queue-item textarea { margin-top: 8px; }
.actions { display: flex; gap: 8px; }
.thumb { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; border: 0; padding: 0; background: transparent; cursor: pointer; }
dialog { border: 0; border-radius: 12px; padding: 12px; max-width: 96vw; }
dialog img { max-width: 92vw; max-height: 80vh; }
#photos[hidden] { display: none !important; }
@media (max-width: 800px) {
  .wrap { padding: 16px 14px 48px; }
  .grid, .chips, header.top { display: block; }
  .chip, .panel, .feed { margin-top: 12px; }
  .checked { text-align: left; margin-top: 12px; }
  h1 { font-size: 32px; }
  a.home { margin-bottom: 10px; }
  .row { grid-template-columns: 1fr; gap: 4px; }
  .actions { flex-wrap: wrap; }
  button { width: 100%; }
}
