/* Taylor's web interface: one small stylesheet, no framework. */
:root {
  --bg: #f7f7f5; --surface: #ffffff; --text: #1d1d1b; --muted: #6b6b66;
  --line: #e2e1dc; --accent: #2f5bd3; --accent-text: #ffffff;
  --good: #1f7a4d; --warn: #9a5b00; --bad: #b3261e;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #151514; --surface: #1f1f1d; --text: #ecebe6; --muted: #a3a29b;
          --line: #34332f; --accent: #7a9cff; --accent-text: #0b0b0a;
          --good: #5cc28f; --warn: #e0a64a; --bad: #ff8a80; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text);
       font: 15px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: var(--accent); }
.topbar { display: flex; align-items: center; justify-content: space-between;
          padding: 10px 20px; border-bottom: 1px solid var(--line); background: var(--surface); }
.brand { font-weight: 700; text-decoration: none; color: var(--text); }
.nav { display: flex; gap: 16px; align-items: center; }
.nav form { margin: 0; }
.page { max-width: 1100px; margin: 0 auto; padding: 24px 20px 64px; }
h1 { font-size: 22px; margin: 0 0 12px; }
h2 { font-size: 17px; margin: 24px 0 8px; }
.muted { color: var(--muted); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; }
.narrow { max-width: 420px; margin: 48px auto; }
.button { display: inline-block; border: 1px solid var(--line); background: var(--surface); color: var(--text);
          border-radius: 8px; padding: 8px 14px; font: inherit; cursor: pointer; text-decoration: none; }
.button.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.button.danger { border-color: var(--bad); color: var(--bad); }
.link-button { background: none; border: 0; color: var(--accent); font: inherit; cursor: pointer; padding: 0; }
.flash { padding: 8px 12px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); }
.flash-alert { border-color: var(--bad); }


.count { font-size: 15px; font-weight: 400; margin-left: 8px; }
.small { font-size: 13px; }
.tag { font-size: 12px; color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 0 5px; }
.decide { display: flex; gap: 10px; margin: 12px 0; flex-wrap: wrap; }
.inline { display: inline-flex; gap: 8px; align-items: center; margin: 0; }
.plain { list-style: none; margin: 0; padding: 0; }
.plain li { padding: 8px 0; border-top: 1px solid var(--line); display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.plain li:first-child { border-top: 0; }
.plain form { margin: 0; }
.split { border-collapse: collapse; width: 100%; background: var(--surface); }
.split td, .split th { border-bottom: 1px solid var(--line); padding: 8px; text-align: left; vertical-align: top; }

/* The feed */
.finds { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.find { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; }
.find-image { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; background: var(--line); }
.find-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.find-meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.find-title { font-size: 15px; margin: 0; line-height: 1.3; }
.find-title a { color: var(--text); text-decoration: none; }
.find-reason { margin: 0; color: var(--muted); font-size: 13px; flex: 1; }
.thumbs { display: grid; grid-template-columns: 1fr auto auto; gap: 6px; margin: 0; }
.thumbs input[type=text] { font: inherit; font-size: 13px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px;
                           background: var(--bg); color: var(--text); min-width: 0; }
.thumbs .button { padding: 4px 10px; }
.brief-body { width: 100%; font: inherit; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--text); }
.brief-version { white-space: pre-wrap; background: var(--bg); padding: 8px; border-radius: 6px; }
.health-ok { color: var(--good); } .health-degraded { color: var(--bad); } .health-unchecked { color: var(--muted); }
