/* Temporary UI (slice 1). Plain and functional on purpose: the screen design is being redone. */
:root { --fg: #1b1b1b; --muted: #6b6b6b; --line: #ddd; --bg: #fff; --card: #f6f6f4; --accent: #2a5bd7; --warn: #b3261e; --ok: #1e7b34; }
@media (prefers-color-scheme: dark) { :root { --fg: #eee; --muted: #9a9a9a; --line: #333; --bg: #121212; --card: #1d1d1d; --accent: #8fb0ff; --warn: #ff8a80; --ok: #7ed492; } }
* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.45 system-ui, -apple-system, "Apple SD Gothic Neo", sans-serif; color: var(--fg); background: var(--bg); }
header { position: sticky; top: 0; display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--line); background: var(--bg); z-index: 2; }
header a { color: var(--fg); text-decoration: none; font-weight: 600; }
.conn.on { color: var(--ok); } .conn.off { color: var(--warn); }
main { padding: 12px 16px 120px; max-width: 760px; margin: 0 auto; }
h2 { font-size: 16px; margin: 18px 0 8px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin: 8px 0; overflow-wrap: anywhere; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.muted { color: var(--muted); font-size: 13px; }
.badge { display: inline-block; font-size: 12px; padding: 1px 7px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.badge.warn { color: var(--warn); border-color: var(--warn); } .badge.ok { color: var(--ok); border-color: var(--ok); }
button, select, input, textarea { font: inherit; color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; }
button { cursor: pointer; min-height: 40px; } button.primary { background: var(--accent); color: #fff; border-color: var(--accent); } button.danger { color: var(--warn); border-color: var(--warn); }
button:disabled { opacity: .45; cursor: default; }
textarea { width: 100%; min-height: 64px; resize: vertical; }
input[type=text], select { width: 100%; }
.session-link { display: block; color: inherit; text-decoration: none; }
details.queue-row > summary { cursor: pointer; list-style: none; }
.clip { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.warn-text { color: var(--warn); }
.msg-user { border-left: 3px solid var(--accent); }
.msg-agent { white-space: pre-wrap; }
.tool { font-family: ui-monospace, Menlo, monospace; font-size: 13px; white-space: pre-wrap; }
.composer { position: fixed; left: 0; right: 0; bottom: 0; background: var(--bg); border-top: 1px solid var(--line); padding: 8px 16px calc(8px + env(safe-area-inset-bottom)); }
.composer .inner { max-width: 760px; margin: 0 auto; display: grid; grid-template-columns: 1fr auto; gap: 6px; }
.composer textarea { min-height: 44px; max-height: 30vh; }
.composer .controls { grid-column: 1 / -1; display: flex; gap: 6px; }
.composer select { width: auto; }
.req { border-color: var(--accent); }
pre { white-space: pre-wrap; margin: 4px 0; font-size: 13px; }

/* login sheet (T4.2) */
.sheet { position: fixed; left: 0; right: 0; bottom: 0; max-height: 80vh; overflow: auto; padding: 12px 16px; z-index: 10; }
.sheet[hidden] { display: none; }
.sheet ol li { margin: 8px 0; }
.sheet input { display: block; width: 100%; margin-top: 6px; box-sizing: border-box; }
