/* FILE: public_html/qradio.app/radio/qr.css
   ARCHITECTURE: STYLE Layer - The Chappie Channel
   STORY: Phone first: one column, 16px gutters, thumb-sized buttons (44px+),
   no horizontal scroll, light and dark by the phone's own setting. */
:root { --bg:#f6f7f9; --fg:#14181f; --muted:#667085; --card:#fff; --line:#d9dde4; --accent:#1d4ed8; --accent-fg:#fff; --og:#eef2ff; --me:#ecfdf3; --warn:#b42318; --held:#fff4e5; }
@media (prefers-color-scheme: dark) { :root { --bg:#0e1116; --fg:#e8ebf0; --muted:#98a2b3; --card:#171b22; --line:#2a303a; --accent:#6d97ff; --accent-fg:#0b1220; --og:#1a2140; --me:#10281c; --warn:#ff8a7a; --held:#2b2110; } }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
body { padding: 0 16px calc(24px + env(safe-area-inset-bottom)); max-width: 640px; margin: 0 auto; overflow-x: hidden; }
header { display: flex; align-items: center; gap: 12px; padding: 14px 0 8px; }
h1 { font-size: 1.15rem; margin: 0; flex: 1; }
.muted { color: var(--muted); font-size: .9rem; }
.sr { position: absolute; left: -9999px; }
label { display: block; margin: 12px 0 4px; font-weight: 600; }
input, textarea, select { width: 100%; font: inherit; color: inherit; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 12px; min-height: 44px; }
button { font: inherit; min-height: 44px; padding: 10px 16px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--fg); cursor: pointer; }
button.primary { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); font-weight: 600; }
button.link { border: 0; background: none; color: var(--accent); min-height: 0; padding: 4px; }
button.small { min-height: 36px; padding: 6px 12px; font-size: .9rem; }
button:disabled { opacity: .5; cursor: default; }
form { margin: 12px 0; }
.row { display: flex; gap: 10px; margin: 10px 0; align-items: stretch; }
.row > * { flex: 1; }
.row > select { flex: 1; }
.talk { background: #7a1f1f; color: #fff; border-color: #7a1f1f; font-weight: 700; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.talk.live { background: #d92d20; box-shadow: 0 0 0 4px rgba(217,45,32,.35); }
ol { list-style: none; margin: 0; padding: 0; }
li.line { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin: 8px 0; max-width: 92%; overflow-wrap: anywhere; }
li.line.og { background: var(--og); margin-right: auto; }
li.line.me { background: var(--me); margin-left: auto; }
li.line.held { background: var(--held); border-style: dashed; }
li.line.new { outline: 2px solid var(--accent); }
.meta { color: var(--muted); font-size: .8rem; display: flex; gap: 8px; flex-wrap: wrap; }
.badge { border: 1px solid var(--line); border-radius: 999px; padding: 0 8px; }
.text { margin: 4px 0; white-space: pre-wrap; }
.acts { display: flex; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
.banner { background: var(--held); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; color: var(--warn); }
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,.55); display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 5; }
.overlay[hidden] { display: none; }
.card { background: var(--card); border-radius: 14px; padding: 16px; width: 100%; max-width: 420px; }
blockquote { margin: 8px 0; padding: 8px 12px; border-left: 4px solid var(--accent); background: var(--bg); overflow-wrap: anywhere; }
.pills { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
button.pill { min-height: 44px; border-radius: 999px; border-color: var(--accent); color: var(--accent); font-weight: 600; background: var(--card); white-space: pre; }
button.pill:hover:not(:disabled) { background: var(--accent); color: var(--accent-fg); }
.toggle { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-weight: 400; font-size: .9rem; color: var(--muted); white-space: nowrap; }
.toggle input { width: 20px; height: 20px; min-height: 0; padding: 0; margin: 0; }
a.lines { margin-left: auto; text-decoration: none; padding: 10px 4px; }

/* the language toggle (SO-61): the shared script fills it; a lone button is hidden until a second language is on */
.langs { display: inline-flex; flex-wrap: wrap; gap: 4px; }
header { flex-wrap: wrap; }
header .langs { flex-basis: 100%; order: 10; } /* many languages never push the header sideways: they wrap onto a row of their own */
.langs button { min-height: 44px; min-width: 44px; padding: 6px 10px; font-size: .85rem; }
.langs button:only-child { display: none; }
.langs button[aria-pressed="true"] { border-color: var(--accent, var(--signal)); font-weight: 700; }
