/* The phone page of the phone line: gold on Host 1; the server adds the purple values on Host 2. */
:root { --bg: #1a0a00; --panel: #2a1204; --text: #FFF3D6; --muted: #c9a878; --accent: #F2A900; --line: #D47C0F; --err: #e8866a; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font: 16px/1.4 system-ui, sans-serif; }
body { display: flex; flex-direction: column; padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); }
header { display: flex; align-items: center; gap: .5rem; padding: .6rem 1rem; border-bottom: 1px solid var(--line); }
h1 { flex: 1; margin: 0; font-size: 1.1rem; color: var(--accent); letter-spacing: .08em; font-weight: 600; }
#host { color: var(--muted); font-size: .85rem; }
button { background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: .5rem; padding: .6rem 1rem; font: inherit; }
button:active { background: var(--line); }
input, textarea { width: 100%; background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: .5rem; padding: .6rem; font: inherit; }
section, main { padding: 1rem; flex: 1; overflow-y: auto; }
#chat { display: flex; flex-direction: column; padding: .5rem 1rem; }
#items { flex: 1; overflow-y: auto; }
ul { list-style: none; margin: 0 0 1rem; padding: 0; }
li { border: 1px solid var(--line); border-radius: .5rem; padding: .7rem; margin-bottom: .5rem; background: var(--panel); }
li small { display: block; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
li.busy { border-color: var(--accent); }
.msg { margin: .4rem 0; padding: .6rem .8rem; border-radius: .7rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.me { background: var(--panel); border: 1px solid var(--line); margin-left: 2rem; }
.sol { background: transparent; border-left: 3px solid var(--accent); }
.err { color: var(--err); }
.tool, .note { color: var(--muted); font-size: .85rem; }
.ask { border: 1px solid var(--accent); border-radius: .5rem; padding: .6rem; margin: .5rem 0; background: var(--panel); }
.ask button { margin: .25rem .25rem 0 0; }
#form { display: grid; grid-template-columns: 1fr auto; gap: .4rem; padding-top: .5rem; }
#form textarea { grid-column: 1 / -1; }
#pair p { color: var(--muted); }
nav { display: flex; gap: .5rem; padding: .5rem 1rem 0; }
nav button { flex: 1; }
nav button.on { border-color: var(--accent); color: var(--accent); }
#report-text { white-space: pre-wrap; overflow-wrap: anywhere; font-size: .95rem; }
#report-text h { display: block; color: var(--accent); font-weight: 600; margin: .8rem 0 .3rem; }
