/* Shared */
:root { --ok: #1f7a3a; --err: #b42318; }
.muted { color: var(--pico-muted-color); }
.ok { color: var(--ok); }
.err { color: var(--err); }
.flash-ok { animation: flash-ok 0.4s ease-out; }
.flash-err { animation: flash-err 0.6s ease-out; }
@keyframes flash-ok { from { background-color: #c6f6d5; } to { background-color: transparent; } }
@keyframes flash-err { from { background-color: #fed7d7; } to { background-color: transparent; } }
.banner { background: #fff4e5; border: 2px solid #f59e0b; padding: 0.75rem 1rem; margin-bottom: 1rem; }
.banner.halted { background: #fde8e8; border-color: var(--err); }
.msg { padding: 0.5rem 0.75rem; border-radius: 4px; margin: 0.5rem 0; }
.msg.ok { background: #e6f7ec; color: var(--ok); }
.msg.err { background: #fde8e8; color: var(--err); font-weight: 600; }
code.hash { font-size: 0.8em; }
tr.rejected td { color: var(--err); }
tr.inactive td { color: var(--pico-muted-color); }
tr.editing td .inline-form .msg { flex-basis: 100%; }
td .msg { display: inline-block; margin: 0 0 0 0.5rem; padding: 0.1rem 0.5rem; }
details.journal > summary { cursor: pointer; }
pre.payload { max-height: 20rem; overflow: auto; font-size: 0.8em; }
table.compact td, table.compact th { padding: 0.3rem 0.5rem; }
.inline-form { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: end; }
.inline-form > label { margin: 0; }
.actions form { display: inline; }
.actions button { margin-right: 0.25rem; }
nav.desk ul li a.active { font-weight: 700; text-decoration: underline; }

/* RF scanner UI: portrait 360–480 px, big text, big targets, one input per screen */
body.rf { font-size: 18px; max-width: 480px; margin: 0 auto; padding: 0.5rem; }
body.rf header { display: flex; justify-content: space-between; align-items: center; padding: 0.25rem 0; border-bottom: 1px solid #ccc; margin-bottom: 0.5rem; font-size: 16px; }
body.rf h1 { font-size: 1.4rem; margin: 0.5rem 0; }
body.rf .step { font-size: 16px; color: #555; }
body.rf input, body.rf button, body.rf a.btn { font-size: 20px; min-height: 48px; width: 100%; box-sizing: border-box; margin-bottom: 0.5rem; }
body.rf a.btn { display: block; text-align: center; padding: 0.75rem; background: #1d4ed8; color: #fff; border-radius: 6px; text-decoration: none; font-weight: 600; }
body.rf a.btn.secondary, body.rf button.secondary { background: #e5e7eb; color: #111; }
body.rf button { background: #1d4ed8; color: #fff; border: 0; border-radius: 6px; font-weight: 600; }
body.rf button.warn { background: #b45309; }
body.rf .menu a.btn { margin-bottom: 0.75rem; }
body.rf .msg { font-size: 20px; }
body.rf .msg.err { font-size: 22px; }
body.rf dl { display: grid; grid-template-columns: auto 1fr; gap: 0.25rem 0.75rem; margin: 0.5rem 0; }
body.rf dt { color: #555; }
body.rf dd { margin: 0; font-weight: 700; font-size: 22px; }
body.rf .big { font-size: 28px; font-weight: 800; }
