:root { --bg: #fbfaf7; --fg: #1d1d1b; --muted: #66635c; --line: #d9d5cc; --accent: #2f5d50; --bad: #a23b2a; }
@media (prefers-color-scheme: dark) {
  :root { --bg: #161615; --fg: #ecebe6; --muted: #a29f97; --line: #3a3935; --accent: #7fb8a6; --bad: #e08a78; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 17px/1.45 -apple-system, system-ui, sans-serif; }
main { max-width: 40rem; margin: 0 auto; padding: 24px 16px 64px; }
h1 { font-size: 1.5rem; margin: 0 0 4px; }
h2 { font-size: 1.1rem; margin: 0 0 4px; }
.lede, .hint, .limit, .who { color: var(--muted); margin: 0 0 12px; }
.slot { border-top: 1px solid var(--line); padding: 16px 0; }
.note { width: 100%; font: inherit; padding: 8px; border: 1px solid var(--line); border-radius: 8px;
        background: transparent; color: inherit; resize: vertical; }
.buttons { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
button, .button { font: inherit; padding: 10px 16px; border-radius: 8px; border: 1px solid var(--accent);
                  background: var(--accent); color: var(--bg); cursor: pointer; display: inline-block; }
.button.file { background: transparent; color: var(--accent); }
.button input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
/* (#322: the preset tags, from /api/me; a chosen one changes colour only, never size, so nothing moves, #259) */
.tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.tag { padding: 6px 12px; border-radius: 999px; background: transparent; color: var(--accent); }
.tag[aria-pressed="true"] { background: var(--accent); color: var(--bg); }
button.link { background: none; border: 0; padding: 0; color: var(--accent); text-decoration: underline; }
/* (#259: every status line keeps its height, empty or not, so nothing moves when it changes) */
.status { min-height: 1.45em; height: 2.9em; margin: 8px 0 0; overflow: hidden; }
.status.bad { color: var(--bad); }
.code { font-size: 2.4rem; letter-spacing: .2em; font-variant-numeric: tabular-nums; height: 3.5rem; margin: 12px 0 0; }
#sent-list { padding-left: 20px; }
#sent-list li { margin: 6px 0; }
#sent-list img { width: 72px; height: 72px; object-fit: cover; vertical-align: middle; margin-right: 8px; border-radius: 4px; }
